Commit Graph

34126 Commits

Author SHA1 Message Date
Mads Rasmussen
a9039389f4 register references 2025-01-17 09:28:05 +01:00
Mads Rasmussen
61c3f529e5 move url files into folder 2025-01-17 08:43:42 +01:00
Mads Rasmussen
dc7f02f121 register media history 2025-01-16 22:25:39 +01:00
Mads Rasmussen
810b7d6de3 remove double box containers + adjust styling 2025-01-16 21:05:03 +01:00
Mads Rasmussen
df8da92344 wrap apps in a box element 2025-01-16 20:53:32 +01:00
Mads Rasmussen
faf13c3f9e localize labels 2025-01-16 18:54:54 +01:00
Mads Rasmussen
6a6353d01b add types for the extension point 2025-01-16 18:50:01 +01:00
Mads Rasmussen
f5c0e15716 Merge branch 'v15/dev' into v15/feature/workspace-info-app-extension 2025-01-16 18:30:43 +01:00
Mads Rasmussen
daf2e18cd2 get unique from context 2025-01-16 15:55:43 +01:00
Mads Rasmussen
e00290f400 Feature: Clipboard (#17820)
* wip clipboard context + tests

* clean up property action module + register copy action

* split manifests

* add clipboard module

* import type

* export type

* mark all methods async

* scaffold copy + paste property actions

* scaffold workspace, collection, repo + data sources

* remove references to language

* register detail manifests

* call repo when creating

* load clipboard collection data

* remove debugger

* register clipboard item picker modal

* return value from picker

* accept native error

* clean up data source

* add tests for error states

* make clipboard local storage manager

* add clip entry entity type

* create unique in scaffold

* add clipboard entry item data

* align naming

* move around

* name alignment

* fix imports

* fix missing entityType

* clean up

* use picker input context

* remove unused context

* Update clipboard.context.ts

* map to item model

* poc paste property action

* register copy/paste as kinds

* lint fix

* add tests

* rename test

* add repository tests

* register delete clipboard action + enable action dropdown outside of context menu

* remove notifcation

* export entity type

* temp use repo instead of context

* delete unused copy property action

* make data source non breaking

* Update vite.config.ts

* add icons for clipboard copy, paste + entry

* remove unused

* return if there is no property value

* add kind interfaces

* pass entry type for copy and paste

* register clipboard for block list

* implement filter on entry type

* delete unused context

* remove references

* rename data to value and don't force an array

* make icons and single value

* allow to add create and update dates for clipboard entries

* use clipboard icon

* add create and update dates

* export constants

* don't set as an array

* reload picker content

* add copy to clipboard button to block list entry

* make picker element

* allow to pick multiple

* remove generic block list clipboard actions

* Revert "remove generic block list clipboard actions"

This reverts commit 6ea65a02ce6315a781b80d0ccf0da288df602a7d.

* add get methods

* wip construct block clipboard entry value

* add method to get exposes + add jsdocs

* add expose

* remove todo + add jsdocs

* move clipboard out of core package

* add package files

* load package again

* render entry icon

* render correct icon

* remove clipboard from core vite.config

* Update package-lock.json

* wip copy/paste resolvers

* allow multiple accepted entry types

* move logic to resolvers

* transforming clipboard block value to fit block list

* wip copy/paste resolvers

* clean up

* remove unused

* fix missing exports

* fix tests

* return clipboard entry unique from modal

* Update block-list-entries.context.ts

* clipboard feature: clipboard property value cloner (#17824)

* restructure of property package

* content data merge controller tests

* deprecate meta from propertyValueResolver

* temp work

* temp

* poc

* rename to cloner

* stached block value cloner work

* block list implementation

* correct property value implementation

* RTE Block Property Value Cloner

* Block Grid Value Cloner

* update with comments

* try out cloner

* wip translators

* Revert "delete unused context"

This reverts commit ec31ae55aaa9e958b64c44019398e9af7cd61df4.

* move translator + cloner logic to context

* clean up

* implement read from clipboard in block list property editor

* remove debugger

* values array

* handle paste

* Update types.ts

* move files

* Update clipboard-local-storage.manager.ts

* set both create and update date when creating a clipboard entry

* align naming

* handle paste

* clean up + wip block grid translators

* updates types

* add grid block copy translator

* only allow paste translator to handle a single value

* align copy and paste translators

* remove debugger

* move to folders

* add block const

* rename

* add tests

* Update index.ts

* use correct type

* add tests for UmbBlockListToBlockClipboardCopyTranslator

* fix tests

* add translator tests

* add tests

* organize

* organize

* clean up translator tests

* align naming

* remove unused button

* only render copy property action if property has a value

* use constants

* copy single grid block

* get block grid property value from clipboard entry

* add clear method to extension registry + add js docs

* Update index.ts

* add tests for copy value resolver

* add icon for clipboard

* use clipboard icon in modal

* add tests

* remove unused setting

* fix log

* only create array once

* filter for supported paste translators

* use write method instead of duplicating the code

* add condition config type

* use config type

* Update manifests.ts

* add support for multi picker

* move multiple look up logic to context

* add js docs

* add js docs

* remove unused

* remove unused

* remove unused

* implement paste translator filtering for block catalogue modal

* temp color translator

* adding a UmbPropertyValueDataPotentiallyWithEditorAlias

* simplify observer

* append user unique to local storage key

* remove temp color picker clipboard implementations

* more explicit extension type name

* more renaming

* type specifications

* fix test and missing type

* more types for test

* renaming of paste translators

* rename folder

* rename value resolvers

* correct variable name

* wip tests for clipboard context

* clean up tests correctly

* add more tests for clipboard context

* Update clipboard.context.test.ts

* use after each for clean up

* fix test that times out

* correct name

* optimize

* remove webkit

* newest first when picking

* use fingerprint local storage key to obfuscate user id

* rename method

* use const

* set content max length

* return object including the selection uniques

* show confirm dialog before pasting value

* only show confirm dialog if there is a value

* Feature: clipboard block insert (#17935)

* insert methods

* fix originData

* move logic to base class

* progress on Grid and RTE

* correct for Block Grid paste implementation

* update async across

* remove expose from block clipboard entry model

* remove expose from grid block clipboard entry

* remove todo

* wip move value expand responsibility

* wip split clipboard context

* experiment with an extendable property context

* create propertyContexts + proxy events

* rename methods

* move proxy to context + update grid copy logic

* split tests

* remove unused

* add property context extension type

* fix tests

* fix tests

* reorganize

* Update clipboard.property-context.ts

* use context

* register property context clipboard kind

* register for block grid

* remove redundant code

* rename to replace

* Revert "rename to replace"

This reverts commit eb0535edcfaa9f68d0fc4c431c93739a43c7b29c.

* rename prop

* rename label

* improve block clean-up abilities

* Update rte-base.element.ts

* make local get of clipboard context

* add asyncFilter option to the type

* add is compatible method to the interface

* support asyncFilter in picker

* add compatability check for block list

* more explicit name

* wip implementation of filter

* add compatability checks

* add temp types

* add clipboard filtering for grid and list

* lint corrections

---------

Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
2025-01-16 15:50:09 +01:00
Mads Rasmussen
49aae77b8e align naming 2025-01-16 15:18:16 +01:00
Mads Rasmussen
4026e03606 register references as an extension 2025-01-16 15:15:56 +01:00
Mads Rasmussen
04f7da81ec register links and history as info apps 2025-01-16 15:07:54 +01:00
Mads Rasmussen
434bac788f Feature: Data Type Folder workspace (#17996)
* implement folder workspace view for data types

* Update index.ts

* export consts
2025-01-16 11:52:52 +00:00
Mads Rasmussen
aaa025f85e close modal for create options with links (#17988) 2025-01-15 15:02:15 +00:00
Andy Butland
a29f51049b Link to content type and/or template from content/media/member info workspace view only if current user has access to settings (#17965)
* Link to content type and/or template from content/media/member info workspace view only if current user has access to sections.

* Fixed HTML

* add const for condition alias

* export const

* return permitted value in onChange callback

* use condition to check for access

* implement across content

* replace strings with consts

* replace strings with const

* remove attr with the ifDefined directive

* allow to pass in callback type

* Pass callback type

* Update index.ts

* add tests for UmbSectionUserPermissionCondition

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2025-01-15 13:46:01 +01:00
Jacob Overgaard
c8547d9ff0 Build: Detect circular dependencies with Madge (#17924)
* feat: adds script to run madge in a CI environment

* build: adds check for circular dependencies

* build: move actions higher up

* build: only print annotation once

* build: make script not fail CI until dependencies are fixed
2025-01-15 09:19:43 +00:00
Jacob Overgaard
1347074330 V15: Adds validation to all entity workspaces (#17980)
* chore: add validation to mocked endpoints

* feat: create new base context `UmbEntityNamedDetailWorkspaceContextBase` to use for named entities

* feat: extend from `UmbEntityNamedDetailWorkspaceContextBase` to be able to save some code

* feat: allow to pass on the generic parameters

* feat: add type-safety property

* chore: remove duplicate code by extending from correct interface

* chore: fix type casting

* feat: make class abstract and add explanatory comment

* feat: Extend from UmbEntityNamedDetailWorkspaceContextBase to ensure all workspaces with a name follows the same interface

this allows the workspace to act as a UmbNamableWorkspace

* feat: adds a few needed properties to umb-workspace-header-name-editable

* fix: use <umb-workspace-header-name-editable> for partial views

* fix: bind to validation for templates

* chore: remove unused css

* fix(script editor): use `<umb-workspace-header-name-editable />` for the name field

* fix(stylesheet editor): use `<umb-workspace-header-name-editable />` for the name field

* chore: add missing mock endpoint for `tree/data-type/ancestors`

* chore: adds mocks for relations and relation-types

* chore: remove unused handlers

* feat: adds **readonly** to `<umb-input-with-alias />`

* fix: use `<umb-input-with-alias />` for relation type workspace editor

* chore: adds missing handler for package configuration (marketplace url)

* fix(packages): adds validation and data-marks to the package section

* feat: adds a validation context for all entity detail workspaces

* chore: remove duplicated validation contexts as that is now being set by their base class

---------

Co-authored-by: leekelleher <leekelleher@gmail.com>
2025-01-14 17:14:28 +00:00
Jacob Overgaard
c3134cbb9d V15: Add abstraction for named entity detail workspaces (#17959)
* chore: add validation to mocked endpoints

* feat: create new base context `UmbEntityNamedDetailWorkspaceContextBase` to use for named entities

* feat: extend from `UmbEntityNamedDetailWorkspaceContextBase` to be able to save some code

* feat: allow to pass on the generic parameters

* feat: add type-safety property

* chore: remove duplicate code by extending from correct interface

* chore: fix type casting

* feat: make class abstract and add explanatory comment
2025-01-14 16:38:24 +00:00
Niels Lyngsø
b5e48062b3 Merge pull request #17943 from umbraco/v15/feature/no-callback-then-destroy
Feature: no callback then destroy
2025-01-14 16:26:11 +01:00
Jacob Overgaard
836d526be8 Merge branch 'v15/dev' of https://github.com/umbraco/Umbraco-CMS into v15/dev 2025-01-14 16:06:15 +01:00
Jacob Overgaard
e49374d3f0 deps(build-dev): bump simple-icons from 13.21.0 to 14.2.0 and regenerate **icon-linkedin** 2025-01-14 16:06:12 +01:00
Jacob Overgaard
95f7aff360 hotfix: restore icon-layers due to renaming 2025-01-14 16:00:58 +01:00
Niels Lyngsø
f86919410c Merge pull request #17978 from umbraco/v15/chore/lint-corrections
Lint corrections
2025-01-14 16:00:08 +01:00
Niels Lyngsø
baecd565cc Fix: 17428 (#17976)
* method to extract json query properties

* fix issue when validation context has been destroyed

* method to remove and get validation messages

* param key

* do not assign a controller alias to this observation

* clean up delete method

* clean up validation messages

* remove unused imports
2025-01-14 15:52:54 +01:00
Mathias Helsengren
482af686a0 Updated the npm packages (#17975)
* Updated the npm packages

* generated server api and icons
2025-01-14 15:50:33 +01:00
Niels Lyngsø
bd0031d4cf lint auto corrections 2025-01-14 15:00:31 +01:00
Niels Lyngsø
45603e2689 rule to accept element base for abstract element class names (#17969) 2025-01-14 08:59:41 +01:00
Krüger
42f49eb564 Visual update to user group modal (#17934)
* Initial commit of changes

* final touches on styling

* Refactored to observe and resolve the document/media node names

---------

Co-authored-by: DESKTOP-16T01G5\Umbraco <obk@umbraco.dk>
Co-authored-by: leekelleher <leekelleher@gmail.com>
2025-01-13 13:17:05 +00:00
Niels Lyngsø
80e94023d2 destroy if observer has no callback 2025-01-10 20:29:07 +01:00
leekelleher
533a644e12 Removed console.log
Updated typo in test.
2025-01-10 17:24:29 +00:00
Niels Lyngsø
e9865eb503 correct imports 2025-01-10 08:57:08 +01:00
Niels Lyngsø
b2690a373d mark for deprecated 2025-01-09 22:21:01 +01:00
Niels Lyngsø
252f2f5d04 rename to inherit addendum 2025-01-09 22:16:40 +01:00
Niels Lyngsø
3ccb10d7c0 implement/replace existing unique router paths 2025-01-09 22:08:07 +01:00
Niels Lyngsø
2c8117c8a5 addendum implemented 2025-01-09 21:12:57 +01:00
Niels Lyngsø
81ebf3fc02 Merge branch 'v15/bugfix/fix-omitted-callback' into v15/bugfix/17312 2025-01-09 20:51:49 +01:00
Niels Lyngsø
82b740e3ef extra test 2025-01-09 20:49:50 +01:00
Niels Lyngsø
bd456a1dfa correct null case 2025-01-09 20:28:58 +01:00
Niels Lyngsø
f862736163 make sure callback can be undefined 2025-01-09 20:23:28 +01:00
Niels Lyngsø
989781c94d use addendum 2025-01-09 20:17:24 +01:00
Niels Lyngsø
756fa05c46 improve test 2025-01-09 20:04:11 +01:00
Andy Butland
75e7bb48ea Render all URLs in document workspace info tab and ensure protocol-less links can be used to access the intended URL. (#17926)
* Render all URLs in document workspace info tab and ensure protocol-less links can be used to access the intended URL.

* Removed unused import.

* Removed scheme from resolved URL.
2025-01-09 16:19:33 +01:00
Niels Lyngsø
d879919d75 correct path generation 2025-01-09 14:29:49 +01:00
Andy Butland
0eb6a16017 Reload children of destination after duplicate of content (#17878)
* Reload children of destination after duplicate of content.

* Revert changes to generic duplicate to action.

* Don't assume entity type of duplicated item is the same as the destination. Instead treat as "document" unless destination unique is null, when it will be "document-root".

* add todo back

* remove console log

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2025-01-09 14:24:33 +01:00
Niels Lyngsø
0eef5e5801 context 2025-01-09 11:39:51 +01:00
Niels Lyngsø
6fdb898467 ensure controller host destroys sub controllers (#17916) 2025-01-09 10:15:42 +01:00
Niels Lyngsø
8f9bfb4143 move router-slot component 2025-01-09 08:43:38 +01:00
Niels Lyngsø
cce056b7de Merge pull request #17912 from umbraco/v15/bugfix/block-list-amount-validation-message
Block list amount valivation message
2025-01-08 16:36:05 +01:00
Niels Lyngsø
77c064af89 prettier update 2025-01-08 16:02:36 +01:00