Commit Graph

20930 Commits

Author SHA1 Message Date
Busra Sengul
7c54064f59 Bugfix: Tiptap RTE custom dimensions configuration (#2469)
* tiptop min height configuration

* Removed `min-height`; credit to @innovoix

* Clarified the use of `display:flex`

* Changed to use `height` instead of `min-height`

as this will control the maximum height of the editor input area.

---------

Co-authored-by: leekelleher <leekelleher@gmail.com>
2024-10-21 11:05:39 +00:00
Emanuel Gustafzon
6cf6019706 Chore: Change "Select member" to "Choose Member" + Swedish localization (#2472)
change member picker model from select member/ members to choose and also added selectMember and members varible in swedish localisation file
2024-10-21 10:52:45 +01:00
Niels Lyngsø
706464f8e4 Merge branch 'release/15.0' 2024-10-18 13:39:10 +02:00
Lee Kelleher
dc215171c4 Feature: Collection Toolbar Filter Field (#2467)
* Sets `umb-collection-action-bundle` to use `display:contents`

This should only display if the component has any contents.

* Refactored Dictionary collection toolbar

* Refactored Document collection toolbar

Deprecates `umb-document-collection-toolbar`

* Refactored Media collection toolbar

Deprecates `umb-media-collection-toolbar`

* Refactored Extension collection toolbar

Enables support for future Create and Views functionality.

* Exported collection element classes as `element`

deprecated the "default" export

* Adds `elementName` constant

* Refactored UserGroup collection toolbar

Deprecates `umb-user-group-collection-header`

* Code formatting

* Added `umb-collection-filter-field` component

Reusable filter field for a collection toolbar.

* Used `umb-collection-filter-field` component

on existing collections, removed duplicated code.

* Reverted adding `elementName` constant

Seems that this may cause issues with the eslint plugin
(for ensuring element names start with "umb-").
2024-10-17 13:38:45 +02:00
Niels Lyngsø
ca17401694 use server paths for preview url construction 2024-10-17 13:09:52 +02:00
Søren Kottal
2067e0dc58 Removes unnecessary margin in ufm-render-element (#2461) 2024-10-17 10:31:12 +01:00
Jacob Overgaard
790f15afcc Merge branch 'release/15.0' 2024-10-16 21:19:12 +02:00
Jacob Overgaard
e445ce989f docs: add generated file to ignore for typedoc 2024-10-16 21:17:29 +02:00
Jacob Overgaard
cdfcd929ee docs(storybook): remove invalid argType that is not useful 2024-10-16 21:12:47 +02:00
Jacob Overgaard
13d50a6ca2 Merge branch 'release/15.0' 2024-10-16 17:13:13 +02:00
Niels Lyngsø
19de38f021 Bugfix: Variant Blocks create duplicates in the frontend when created in an area (#2464)
* revert to previous code before tiptap

* correct rte-entries context
2024-10-16 17:11:47 +02:00
Niels Lyngsø
8c9cf71f05 Merge pull request #2466 from umbraco/v15/chore/simplify-validation-promise-code
Chore: simplify code
2024-10-16 17:11:02 +02:00
Jacob Overgaard
53ccd2344b Merge pull request #2465 from umbraco/v15/feature/tiptap-paste-files
Tiptap: allow images to be uploaded from the clipboard
2024-10-16 16:31:24 +02:00
Niels Lyngsø
67c0fcee35 simplify code 2024-10-16 16:26:05 +02:00
Jacob Overgaard
dcc2ced8ff fix: catch any uncaught promises up the chain that could be thrown if there is a fatal error with the request 2024-10-16 15:16:51 +02:00
Jacob Overgaard
5003e1c1e7 feat: allow images to be uploaded from the clipboard 2024-10-16 15:09:24 +02:00
Niels Lyngsø
0600bd3fa7 Merge pull request #2445 from umbraco/v15/feature/property-dataset-properties-observable
feature: property-dataset properties observable & Block Workspace Alignment
2024-10-16 14:15:38 +02:00
Bjarne Fyrstenborg
c53cb49496 Adjust Image Cropper handle (focal point) (#1021)
* Adjust Image Cropper focal point to be consistent with Color Area handle

* Make focus point focusable via keyboard

* Update import of utils from uui

* Make focal point accessible via keyboard

* Move logic to function

* Reset coords

* Remove reset coords

* Reset coords if focal point is updated to center

* Format document

* Set focal point property instead

* Formatting

* Fix warnings

* Width and height

* Remove added outline so we can see when focal point has focus via keyboard

* Reset coords

* Cleanup

* Update import

* Cleanup

* Use UmbChangeEvent

* Adjust elements

* Import drag for uui

* Cleanup styling

* Cleanup

* Remove unnecessary events

* Container is HTMLElement

* Check focal point updated

* Fix conflicts after merge

* Null check

* Update correct element types

* Revert to custom event

* Cleanup console

* Don't hide overflow, so focal point is not cut off on edges on image

* Add margin top at actions so focal point doesn't overlap buttons

* Top margin at actions

* Crosshair cursor when focal point is not hidden

* Cancel update focal point

* Add move cursor to viewport image

* Use crop label

* Add missing label

* Disable draggable of image as in old backoffice

* Fix previous merge conflicts

* Update src/packages/media/media/components/input-image-cropper/image-cropper-focus-setter.element.ts

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>

* Update src/packages/media/media/components/input-image-cropper/image-cropper-focus-setter.element.ts

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>

* Update src/packages/media/media/components/input-image-cropper/image-cropper-focus-setter.element.ts

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>

* Update src/packages/media/media/components/input-image-cropper/image-cropper-focus-setter.element.ts

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>

* Remove disconnectedCallback

* Ignore in the debug element

* Add custom event for focal point change

* Import type

* Replace with UmbImageCropChangeEvent

* Use UmbFocalPointModel

* Move set focal pont style to setter

* Update custom event name

* Localize focal point label

* Fix import of UmbFocalPointModel type

* Localize buttons

* Update labels

* Combine imports

---------

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2024-10-16 14:13:57 +02:00
Jacob Overgaard
6c6a525619 Merge remote-tracking branch 'origin/release/15.0' 2024-10-16 13:49:21 +02:00
Niels Lyngsø
472a0cddad Merge pull request #2460 from umbraco/v15/hotfix/17274
Hotfix: correct config field alias to 'useLiveEditing'
2024-10-16 13:48:10 +02:00
Lee Kelleher
ef6afe1975 Bugfix: TinyMCE anchor links without base URL (#2462)
* Fixes TinyMCE anchor links without a base URL

it was previously prefixing the `href` with the current backoffice page URL.

* Code tidy-up + remove unused code
2024-10-16 11:37:11 +00:00
Niels Lyngsø
d95cfbc331 remove await for live editing config 2024-10-16 13:20:49 +02:00
Niels Lyngsø
b76e95dd62 liveEditing value can be undefined, therefor custom promise 2024-10-16 13:19:42 +02:00
Niels Lyngsø
288ba4e0a6 destroy block list elements 2024-10-16 13:13:35 +02:00
Niels Lyngsø
704d2bea78 clean up 2024-10-16 12:04:05 +02:00
Niels Lyngsø
c79001a7b6 remove if 2024-10-16 12:03:41 +02:00
Niels Lyngsø
5493c0a2a1 implement expose button for rte block 2024-10-16 12:03:35 +02:00
Niels Lyngsø
0bb54c6af6 clean up 2024-10-16 11:58:16 +02:00
Niels Lyngsø
dbca6ef78d block list entry expose ability 2024-10-16 11:54:36 +02:00
Niels Lyngsø
f66990551c general expose button for grid 2024-10-16 11:50:56 +02:00
Niels Lyngsø
f99b542ece expose button for no content editor block 2024-10-16 11:40:04 +02:00
Niels Lyngsø
f001e168c9 correct config field alias to 'useLiveEditing' 2024-10-16 10:55:08 +02:00
Niels Lyngsø
d192f9ea55 fix live editing mode 2024-10-16 10:53:41 +02:00
Niels Lyngsø
928a3352bf property editor ui name, using label value 2024-10-16 10:33:03 +02:00
Niels Lyngsø
85ed0c6194 Merge branch 'main' into v15/feature/property-dataset-properties-observable
# Conflicts:
#	src/packages/core/content/index.ts
2024-10-16 10:20:20 +02:00
Niels Lyngsø
eb18359a59 Merge branch 'release/15.0' 2024-10-16 10:15:06 +02:00
Niels Lyngsø
ecede7f3ad Merge branch 'release/15.0' into v15/feature/property-dataset-properties-observable 2024-10-16 09:08:55 +02:00
Warren Buckley
e3d0acc8a2 Adds CONST for 'Umb.Condition.WorkspaceAlias' (#2454)
* Add a const for 'Umb.Condition.WorkspaceAlias'

* Update usages 'Umb.Condition.WorkspaceAlias' of to the new CONST

* Somehow accidently deleted .nvmrc

* Change from 'src/packages/core/workspace/conditions/const.js' to '@umbraco-cms/backoffice/workspace' as the import

* Another fix from the build errors from GitHub - didnt come up locally which was weird

* Update src/packages/core/workspace/conditions/workspace-alias.condition.ts

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>

* Renames the consts as agreed in the PR and adds the deprecated notice

---------

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2024-10-15 09:17:11 +02:00
Søren Kottal
b92f0052fa Adds gap between grouped buttons in settings welcome dashboard (#2457)
* Adds gap between grouped buttons to prevent them from sticking together on small screens

* Gremlins :)
2024-10-14 17:45:38 +02:00
leekelleher
22f8aac99f Tiptap extensions field
observes the Block configuration,
updates UI accordingly, to enable/disable the Block extension.
2024-10-14 15:27:31 +02:00
leekelleher
bd5b898fce Tiptap toolbar designer reworking
Observes the enabled extensions,
updates available items accordingly.

Adds a context API and label localizations.
2024-10-14 15:27:31 +02:00
leekelleher
0b7c50730e Updated Tiptap data-type config labels/descriptions 2024-10-14 15:27:31 +02:00
leekelleher
7f84bc31a8 Updated tiptapToolbarExtension manifest with forExtensions data 2024-10-14 15:27:31 +02:00
leekelleher
171b899828 Relocated UmbTiptapToolbarValue 2024-10-14 15:27:31 +02:00
leekelleher
36b7a68f7c Adds "Rich Text Essentials" as a hard-coded core option
This is to indicate that the basic formatting,
e.g. bold, italic, etc are enabled by default.
2024-10-14 15:27:31 +02:00
leekelleher
7b548768c6 Reworked Tiptap Extensions configuration
Refactored UI to be a grouped checkbox lists,
improves on intend and accessibility.
2024-10-14 15:27:31 +02:00
leekelleher
7719d4b578 Reordered Tiptap extension manifests
Removed the weighing and put into order of perceived usefulness.
2024-10-14 15:27:31 +02:00
Warren Buckley
e2b8a788f6 Fixes #17254 Making 'Umb.Section.Content' as a const UMB_CONTENT_SECTION_ALIAS that can be imported 2024-10-14 15:04:52 +02:00
Søren Kottal
62050e9cb6 fixes icon alignment in links in redirect dashboard 2024-10-14 14:58:10 +02:00
Jacob Overgaard
4726335a7d fix: only set the ?readonly attribute on the swatches element since it handles setting it on the colors afterwards 2024-10-14 11:19:20 +02:00