Commit Graph

19867 Commits

Author SHA1 Message Date
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ø
f001e168c9 correct config field alias to 'useLiveEditing' 2024-10-16 10:55:08 +02:00
Niels Lyngsø
eb18359a59 Merge branch 'release/15.0' 2024-10-16 10:15:06 +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
Richard Thompson
d4a2453075 Adds read-only mode to Color Picker Property Editor (#2451)
* Adds read-only mode to Color Picker Property Editor

Implemented the read-only mode of the Color Picker Property Editor UI to close https://github.com/umbraco/Umbraco-CMS/issues/17045.

* feat: forward the `readonly` attribute to the swatch* elements

* chore: rearrange properties in the element

---------

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2024-10-14 08:12:55 +00:00
Jacob Overgaard
f30e86efd3 Merge branch 'release/15.0' 2024-10-14 10:02:35 +02:00
Lee Kelleher
db7a683dc9 Chore: Update's VS Code new UmbLitElement code snippet (#2449)
* Reworked VSCode code snippet for creating new `UmbLitElement` classes

* Removed ctor

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

* Marks `styles` as `readonly`

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

* Removes `elementName` constant

---------

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2024-10-14 07:56:33 +00:00
Jacob Overgaard
bc2d2916fd build(deps): update @umbraco-ui/uui to 1.11.0 2024-10-14 09:40:41 +02:00
Allen Smith
3015c3813f Update instruction text for Collection elements. 2024-10-14 09:27:54 +02:00
Lee Kelleher
8e39004c59 Chore: Lee's code sweep (during Hacktoberfest '24) (#2450)
* Removed my outdated TODO comments

* Manifest Picker code tidy-up

* Attribute tidy-up

Things I'd picked up during development

* Corrects Storybook control type for `umb-localize` key

* Ran `npm run lint:fix`
2024-10-14 08:44:19 +02:00
Niels Lyngsø
1f56d3c263 small refactor 2024-10-11 16:22:59 +02:00
Mads Rasmussen
4c371fc1d6 Merge branch 'release/15.0' into v15/hotfix/pass-workspace-pattern-to-edit-doc-type 2024-10-11 14:38:02 +02:00
Mads Rasmussen
a5df883776 Merge branch 'main' into v15/feature/select-all-option-in-publishing-dialogs 2024-10-11 14:37:31 +02:00
JesmoDev
a689b1c961 adds formatting to source blocks and excldues decorators 2024-10-11 13:15:48 +02:00
Lone Iversen
9ddd64c429 Feature: Media Collection Placeholders (#2439)
* mediacollection placeholder logic

* media collection placeholder showing

* make observables available

* complete option for temp badge

* placeholder entity

* placeholder logic

* remove consolelog

* update todo and jdocs
2024-10-11 13:09:42 +02:00
Mads Rasmussen
9d0391242a Merge branch 'main' into v15/feature/select-all-option-in-publishing-dialogs 2024-10-11 12:12:58 +02:00
dependabot[bot]
76930c4a0e Bump @types/chai from 4.3.17 to 5.0.0
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai) from 4.3.17 to 5.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai)

---
updated-dependencies:
- dependency-name: "@types/chai"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-11 12:01:13 +02:00
Mads Rasmussen
eb999f6363 Merge branch 'main' into v15/hotfix/readonly-block-grid-property-editor-ui 2024-10-11 10:28:27 +02:00
Ibrahim Muhammad Nada
3e620f2b68 Make Grid List Create Button Respect the Translation of a document type (#2435)
* fix label

* Make umb-block-workspace-view-edit Respect Translations as well

* fix umb-workspace-editor

* Update src/libs/localization-api/localization.controller.ts

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

* Update src/packages/block/block-list/property-editors/block-list-editor/property-editor-ui-block-list.element.ts

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

* Update src/packages/block/block-type/components/block-type-card/block-type-card.element.ts

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

* Update src/packages/block/block/workspace/views/edit/block-workspace-view-edit.element.ts

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

* Update src/packages/block/block/workspace/block-workspace-editor.element.ts

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

* fix: ensure strings are actual strings at runtime

* fix: allow LocalizationController#string to receive unknown values to support various usecases

* test: add tests for undefined|unknown scenarios

* fix: translate the name of the entity as well

* fix: localize create labels

* fix: localize only when data changes

* chore: fix sonarcloud issues

---------

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2024-10-11 09:32:09 +02:00
Mads Rasmussen
b51b375a98 Merge branch 'main' into v15/feature/select-all-option-in-publishing-dialogs 2024-10-11 08:54:32 +02:00
Jacob Overgaard
396fd6c3e4 Merge branch 'release/15.0' 2024-10-11 08:34:48 +02:00
Niels Lyngsø
0d61ff3411 Fix: Block Editors — use create labels and hide 'edit'-action if no properties (#2424)
use create labels and hide edit if no properties

Co-authored-by: Mads Rasmussen <madsr@hey.com>
Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2024-10-11 08:33:26 +02:00
Niels Lyngsø
72b0e6f30d Fix: Block Editors — use create labels and hide 'edit'-action if no properties (#2424)
use create labels and hide edit if no properties

Co-authored-by: Mads Rasmussen <madsr@hey.com>
Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2024-10-11 06:32:48 +00:00
Mads Rasmussen
11f69be335 Hotfix: Expose global types (#2442)
* add script

* run script post build

* remove unused script

* add types to root import

* add util

* build to packages folder

* Update global-types.js

* only include js files in importmap
2024-10-11 08:22:51 +02:00
JesmoDev
1ecf9c5c51 Storybook 8 Upgrade (#2440)
* upgrade storybook to 8.3.5

* remove packages no longer needed

* fix: overwrite storybooks favicon

* chore: replace deprecated `Story` with `StoryFn`

---------

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2024-10-10 16:17:39 +02:00
JesmoDev
0bf6f85e25 Storybook 8 Upgrade (#2440)
* upgrade storybook to 8.3.5

* remove packages no longer needed

* fix: overwrite storybooks favicon

* chore: replace deprecated `Story` with `StoryFn`

---------

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2024-10-10 14:16:24 +00:00
Jacob Overgaard
0489d879eb Merge remote-tracking branch 'origin/release/15.0' 2024-10-10 15:45:19 +02:00
Niels Lyngsø
44d5610a27 Merge pull request #2423 from umbraco/v15/feature/ufm-as-text
UFM as text
2024-10-10 14:54:10 +02:00
leekelleher
9f9b83a9dd Traverse the Shadow DOM children
to gather text content.
2024-10-10 13:45:50 +01:00
Mads Rasmussen
882c22d2c8 pass workspace path 2024-10-10 11:33:05 +02:00
Jacob Overgaard
ab7da94789 build(deps): update @umbraco-ui/uui from 1.10.0 to 1.10.1 2024-10-10 09:43:16 +02:00
Mads Rasmussen
a81f4386e3 prevent empty state flash 2024-10-10 09:41:22 +02:00
Mads Rasmussen
9084ef3693 add todo 2024-10-10 08:48:39 +02:00
Mads Rasmussen
61385e502f hide router instead of removing it 2024-10-09 22:18:06 +02:00
Mads Rasmussen
30371a5d87 remove custom empty state implementations 2024-10-09 20:31:34 +02:00