@umbraco-cms/backoffice 14.0.0-abd22b1c → 14.0.0-ad074301
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cms/apps/app/app.element.js +0 -3
- package/dist-cms/assets/lang/da-dk.js +3 -0
- package/dist-cms/assets/lang/da-dk.ts +3 -0
- package/dist-cms/assets/lang/en-us.js +21 -18
- package/dist-cms/assets/lang/en-us.ts +21 -18
- package/dist-cms/custom-elements.json +297 -28
- package/dist-cms/external/backend-api/index.js +1 -1
- package/dist-cms/external/backend-api/src/index.d.ts +17 -1
- package/dist-cms/external/backend-api/src/models/CreateContentRequestModelBaseDocumentValueModelDocumentVariantRequestModel.d.ts +1 -0
- package/dist-cms/external/backend-api/src/models/CreateContentRequestModelBaseMediaValueModelMediaVariantRequestModel.d.ts +1 -0
- package/dist-cms/external/backend-api/src/models/CreateContentTypeRequestModelBaseCreateDocumentTypePropertyTypeRequestModelCreateDocumentTypePropertyTypeContainerRequestModel.d.ts +2 -0
- package/dist-cms/external/backend-api/src/models/CreateContentTypeRequestModelBaseCreateMediaTypePropertyTypeRequestModelCreateMediaTypePropertyTypeContainerRequestModel.d.ts +20 -0
- package/dist-cms/external/backend-api/src/models/CreateMediaTypePropertyTypeContainerRequestModel.d.ts +2 -0
- package/dist-cms/external/backend-api/src/models/CreateMediaTypePropertyTypeRequestModel.d.ts +2 -0
- package/dist-cms/external/backend-api/src/models/CreateMediaTypeRequestModel.d.ts +2 -0
- package/dist-cms/external/backend-api/src/models/DeleteUserGroupsRequestModel.d.ts +3 -0
- package/dist-cms/external/backend-api/src/models/DeleteUsersRequestModel.d.ts +3 -0
- package/dist-cms/external/backend-api/src/models/ItemSortingRequestModel.d.ts +4 -0
- package/dist-cms/external/backend-api/src/models/ProblemDetailsBuilderModel.d.ts +1 -0
- package/dist-cms/external/backend-api/src/models/RelationResponseModel.d.ts +2 -2
- package/dist-cms/external/backend-api/src/models/ResetPasswordRequestModel.d.ts +3 -0
- package/dist-cms/external/backend-api/src/models/ResetPasswordTokenRequestModel.d.ts +4 -0
- package/dist-cms/external/backend-api/src/models/SortingRequestModel.d.ts +5 -0
- package/dist-cms/external/backend-api/src/models/UpdateContentTypeRequestModelBaseUpdateMediaTypePropertyTypeRequestModelUpdateMediaTypePropertyTypeContainerRequestModel.d.ts +18 -0
- package/dist-cms/external/backend-api/src/models/{UpdateFolderReponseModel.d.ts → UpdateFolderResponseModel.d.ts} +1 -1
- package/dist-cms/external/backend-api/src/models/UpdateMediaTypePropertyTypeContainerRequestModel.d.ts +2 -0
- package/dist-cms/external/backend-api/src/models/UpdateMediaTypePropertyTypeRequestModel.d.ts +2 -0
- package/dist-cms/external/backend-api/src/models/UpdateMediaTypeRequestModel.d.ts +2 -0
- package/dist-cms/external/backend-api/src/models/VerifyResetPasswordTokenRequestModel.d.ts +4 -0
- package/dist-cms/external/backend-api/src/services/DataTypeResource.d.ts +2 -2
- package/dist-cms/external/backend-api/src/services/DocumentResource.d.ts +21 -21
- package/dist-cms/external/backend-api/src/services/DocumentTypeResource.d.ts +35 -3
- package/dist-cms/external/backend-api/src/services/MediaResource.d.ts +13 -5
- package/dist-cms/external/backend-api/src/services/MediaTypeResource.d.ts +56 -0
- package/dist-cms/external/backend-api/src/services/RelationResource.d.ts +1 -9
- package/dist-cms/external/backend-api/src/services/SecurityResource.d.ts +24 -0
- package/dist-cms/external/backend-api/src/services/UserGroupResource.d.ts +8 -0
- package/dist-cms/external/backend-api/src/services/UserResource.d.ts +8 -0
- package/dist-cms/external/router-slot/config.d.ts +8 -0
- package/dist-cms/external/router-slot/index.d.ts +4 -3
- package/dist-cms/external/router-slot/index.js +1 -1
- package/dist-cms/external/router-slot/model.d.ts +123 -0
- package/dist-cms/external/router-slot/router-slot.d.ts +111 -0
- package/dist-cms/external/router-slot/util/anchor.d.ts +5 -0
- package/dist-cms/external/router-slot/util/events.d.ts +26 -0
- package/dist-cms/external/router-slot/util/history.d.ts +32 -0
- package/dist-cms/external/router-slot/util/index.d.ts +6 -0
- package/dist-cms/external/router-slot/util/router.d.ts +72 -0
- package/dist-cms/external/router-slot/util/shadow.d.ts +15 -0
- package/dist-cms/external/router-slot/util/url.d.ts +78 -0
- package/dist-cms/external/router-slot/util.d.ts +1 -0
- package/dist-cms/external/tinymce/index.js +36 -36
- package/dist-cms/libs/observable-api/observer.js +2 -1
- package/dist-cms/mocks/browser-handlers.js +2 -2
- package/dist-cms/mocks/data/document.data.d.ts +6 -2
- package/dist-cms/mocks/data/document.data.js +54 -4
- package/dist-cms/mocks/data/entity.data.d.ts +1 -1
- package/dist-cms/mocks/data/entity.data.js +1 -11
- package/dist-cms/mocks/data/media.data.d.ts +2 -1
- package/dist-cms/mocks/data/media.data.js +11 -0
- package/dist-cms/mocks/data/user-group.data.d.ts +17 -0
- package/dist-cms/mocks/data/user-group.data.js +61 -0
- package/dist-cms/mocks/data/user.data.d.ts +15 -0
- package/dist-cms/mocks/data/{users.data.js → user.data.js} +27 -41
- package/dist-cms/mocks/handlers/dictionary.handlers.js +2 -2
- package/dist-cms/mocks/handlers/{document.handlers.js → document/document.handlers.js} +28 -40
- package/dist-cms/mocks/handlers/document/index.js +5 -0
- package/dist-cms/mocks/handlers/document/item.handlers.d.ts +1 -0
- package/dist-cms/mocks/handlers/document/item.handlers.js +13 -0
- package/dist-cms/mocks/handlers/document/recycle-bin.handlers.d.ts +1 -0
- package/dist-cms/mocks/handlers/document/recycle-bin.handlers.js +16 -0
- package/dist-cms/mocks/handlers/document/slug.d.ts +1 -0
- package/dist-cms/mocks/handlers/document/slug.js +1 -0
- package/dist-cms/mocks/handlers/document/tree.handlers.d.ts +1 -0
- package/dist-cms/mocks/handlers/document/tree.handlers.js +16 -0
- package/dist-cms/mocks/handlers/media.handlers.js +8 -0
- package/dist-cms/mocks/handlers/partial-views.handlers.js +3 -3
- package/dist-cms/mocks/handlers/user-group/collection.handlers.d.ts +1 -0
- package/dist-cms/mocks/handlers/user-group/collection.handlers.js +10 -0
- package/dist-cms/mocks/handlers/user-group/detail.handlers.d.ts +1 -0
- package/dist-cms/mocks/handlers/user-group/detail.handlers.js +37 -0
- package/dist-cms/mocks/handlers/user-group/index.d.ts +1 -0
- package/dist-cms/mocks/handlers/user-group/index.js +4 -0
- package/dist-cms/mocks/handlers/user-group/item.handlers.d.ts +1 -0
- package/dist-cms/mocks/handlers/user-group/item.handlers.js +13 -0
- package/dist-cms/mocks/handlers/user-group/slug.d.ts +1 -0
- package/dist-cms/mocks/handlers/user-group/slug.js +1 -0
- package/dist-cms/mocks/handlers/user.handlers.js +15 -1
- package/dist-cms/packages/core/components/input-list-base/input-list-base.js +1 -1
- package/dist-cms/packages/core/components/input-section/input-section.element.d.ts +2 -2
- package/dist-cms/packages/core/components/input-section/input-section.element.js +5 -5
- package/dist-cms/packages/core/entity-action/common/trash/trash.action.d.ts +1 -1
- package/dist-cms/packages/core/entity-action/common/trash/trash.action.js +1 -1
- package/dist-cms/packages/core/extension-registry/conditions/types.d.ts +3 -2
- package/dist-cms/packages/core/extension-registry/models/index.d.ts +5 -1
- package/dist-cms/packages/core/extension-registry/models/index.js +2 -0
- package/dist-cms/packages/core/extension-registry/models/user-granular-permission.model.d.ts +8 -0
- package/dist-cms/packages/core/extension-registry/models/user-granular-permission.model.js +1 -0
- package/dist-cms/packages/core/extension-registry/models/user-permission.model.d.ts +11 -0
- package/dist-cms/packages/core/extension-registry/models/user-permission.model.js +1 -0
- package/dist-cms/packages/core/localization/index.d.ts +3 -0
- package/dist-cms/packages/core/localization/index.js +3 -0
- package/dist-cms/packages/core/localization/localize-date.element.d.ts +28 -0
- package/dist-cms/packages/core/localization/localize-date.element.js +42 -0
- package/dist-cms/packages/core/localization/localize-number.element.d.ts +28 -0
- package/dist-cms/packages/core/localization/localize-number.element.js +42 -0
- package/dist-cms/packages/core/localization/localize-relative-time.element.d.ts +34 -0
- package/dist-cms/packages/core/localization/localize-relative-time.element.js +54 -0
- package/dist-cms/packages/core/localization/localize.element.js +1 -1
- package/dist-cms/packages/core/modal/common/entity-user-permission-settings/entity-user-permission-settings-modal.element.d.ts +19 -0
- package/dist-cms/packages/core/modal/common/entity-user-permission-settings/entity-user-permission-settings-modal.element.js +97 -0
- package/dist-cms/packages/core/modal/common/manifests.js +6 -0
- package/dist-cms/packages/core/modal/common/tree-picker/tree-picker-modal.element.js +5 -3
- package/dist-cms/packages/core/modal/token/create-document-modal.token.d.ts +8 -0
- package/dist-cms/packages/core/modal/token/create-document-modal.token.js +5 -0
- package/dist-cms/packages/core/modal/token/entity-user-permission-settings-modal.token.d.ts +7 -0
- package/dist-cms/packages/core/modal/token/entity-user-permission-settings-modal.token.js +4 -0
- package/dist-cms/packages/core/modal/token/index.d.ts +2 -1
- package/dist-cms/packages/core/modal/token/index.js +2 -1
- package/dist-cms/packages/core/picker-input/picker-input.context.js +1 -3
- package/dist-cms/packages/core/store/store-base.d.ts +18 -6
- package/dist-cms/packages/core/store/store-base.js +22 -6
- package/dist-cms/packages/core/tree/tree.context.js +3 -2
- package/dist-cms/packages/documents/document-types/manifests.js +0 -2
- package/dist-cms/packages/documents/document-types/repository/sources/document-type.server.data.d.ts +1 -1
- package/dist-cms/packages/documents/documents/components/index.d.ts +1 -0
- package/dist-cms/packages/documents/documents/components/index.js +1 -0
- package/dist-cms/packages/documents/documents/components/input-document/input-document.context.d.ts +6 -0
- package/dist-cms/packages/documents/documents/components/input-document/input-document.context.js +7 -0
- package/dist-cms/packages/documents/documents/components/input-document/input-document.element.d.ts +7 -12
- package/dist-cms/packages/documents/documents/components/input-document/input-document.element.js +51 -64
- package/dist-cms/packages/documents/documents/components/input-document-granular-permission/input-document-granular-permission.element.d.ts +23 -0
- package/dist-cms/packages/documents/documents/components/input-document-granular-permission/input-document-granular-permission.element.js +102 -0
- package/dist-cms/packages/documents/documents/entity-actions/create/create-document-modal.element.d.ts +17 -0
- package/dist-cms/packages/documents/{document-types/modals/allowed-document-types/allowed-document-types-modal.element.js → documents/entity-actions/create/create-document-modal.element.js} +29 -38
- package/dist-cms/packages/documents/documents/entity-actions/create/create.action.d.ts +0 -2
- package/dist-cms/packages/documents/documents/entity-actions/create/create.action.js +7 -23
- package/dist-cms/packages/documents/documents/entity-actions/create/manifests.d.ts +2 -0
- package/dist-cms/packages/documents/documents/entity-actions/create/manifests.js +36 -0
- package/dist-cms/packages/documents/documents/entity-actions/manifests.d.ts +2 -2
- package/dist-cms/packages/documents/documents/entity-actions/manifests.js +15 -48
- package/dist-cms/packages/documents/documents/entity-actions/permissions.action.d.ts +2 -1
- package/dist-cms/packages/documents/documents/entity-actions/permissions.action.js +22 -2
- package/dist-cms/packages/documents/documents/index.d.ts +3 -0
- package/dist-cms/packages/documents/documents/index.js +3 -0
- package/dist-cms/packages/documents/documents/manifests.d.ts +17 -1
- package/dist-cms/packages/documents/documents/manifests.js +4 -0
- package/dist-cms/packages/documents/documents/menu-item/manifests.js +1 -1
- package/dist-cms/packages/documents/documents/recycle-bin/entity-action/manifests.d.ts +18 -0
- package/dist-cms/packages/documents/documents/recycle-bin/entity-action/manifests.js +24 -0
- package/dist-cms/packages/documents/documents/recycle-bin/index.d.ts +1 -0
- package/dist-cms/packages/documents/documents/recycle-bin/index.js +1 -0
- package/dist-cms/packages/documents/documents/recycle-bin/manifests.d.ts +17 -0
- package/dist-cms/packages/documents/documents/recycle-bin/manifests.js +5 -0
- package/dist-cms/packages/documents/documents/recycle-bin/menu-item/manifests.d.ts +1 -0
- package/dist-cms/packages/documents/documents/recycle-bin/menu-item/manifests.js +14 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/document-recycle-bin.repository.d.ts +28 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/document-recycle-bin.repository.js +56 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/document-recycle.bin.tree.store.d.ts +18 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/document-recycle.bin.tree.store.js +19 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/index.d.ts +1 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/index.js +1 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/manifests.d.ts +4 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/manifests.js +17 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/sources/document-recycle-bin.tree.server.data.d.ts +29 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/sources/document-recycle-bin.tree.server.data.js +49 -0
- package/dist-cms/packages/documents/documents/recycle-bin/tree/manifests.d.ts +2 -0
- package/dist-cms/packages/documents/documents/recycle-bin/tree/manifests.js +19 -0
- package/dist-cms/packages/documents/documents/repository/document-item.store.d.ts +20 -0
- package/dist-cms/packages/documents/documents/repository/document-item.store.js +23 -0
- package/dist-cms/packages/documents/documents/repository/document.repository.d.ts +10 -9
- package/dist-cms/packages/documents/documents/repository/document.repository.js +50 -28
- package/dist-cms/packages/documents/documents/repository/document.store.d.ts +0 -12
- package/dist-cms/packages/documents/documents/repository/document.store.js +0 -16
- package/dist-cms/packages/documents/documents/repository/manifests.d.ts +3 -2
- package/dist-cms/packages/documents/documents/repository/manifests.js +9 -1
- package/dist-cms/packages/documents/documents/repository/sources/document-item.server.data.d.ts +24 -0
- package/dist-cms/packages/documents/documents/repository/sources/document-item.server.data.js +31 -0
- package/dist-cms/packages/documents/documents/repository/sources/document.server.data.d.ts +9 -21
- package/dist-cms/packages/documents/documents/repository/sources/document.server.data.js +33 -62
- package/dist-cms/packages/documents/documents/user-permissions/index.d.ts +1 -0
- package/dist-cms/packages/documents/documents/user-permissions/index.js +1 -0
- package/dist-cms/packages/documents/documents/user-permissions/manifests.d.ts +19 -0
- package/dist-cms/packages/documents/documents/user-permissions/manifests.js +196 -0
- package/dist-cms/packages/documents/documents/workspace/manifests.js +6 -4
- package/dist-cms/packages/documents/documents/workspace/views/info/document-info-workspace-view.element.js +29 -28
- package/dist-cms/packages/documents/manifests.d.ts +17 -1
- package/dist-cms/packages/media/manifests.d.ts +2 -1
- package/dist-cms/packages/media/manifests.js +1 -0
- package/dist-cms/packages/media/media/components/index.d.ts +1 -0
- package/dist-cms/packages/media/media/components/index.js +1 -0
- package/dist-cms/packages/media/media/components/input-media/input-media.context.d.ts +6 -0
- package/dist-cms/packages/media/media/components/input-media/input-media.context.js +7 -0
- package/dist-cms/packages/media/media/components/input-media/input-media.element.d.ts +7 -15
- package/dist-cms/packages/media/media/components/input-media/input-media.element.js +50 -72
- package/dist-cms/packages/media/media/index.d.ts +2 -0
- package/dist-cms/packages/media/media/index.js +1 -1
- package/dist-cms/packages/media/media/manifests.d.ts +1 -1
- package/dist-cms/packages/media/media/manifests.js +2 -0
- package/dist-cms/packages/media/media/repository/manifests.d.ts +3 -2
- package/dist-cms/packages/media/media/repository/manifests.js +9 -1
- package/dist-cms/packages/media/media/repository/media-item.store.d.ts +20 -0
- package/dist-cms/packages/media/media/repository/media-item.store.js +23 -0
- package/dist-cms/packages/media/media/repository/media.repository.d.ts +6 -0
- package/dist-cms/packages/media/media/repository/media.repository.js +22 -0
- package/dist-cms/packages/media/media/repository/sources/media-item.server.data.d.ts +24 -0
- package/dist-cms/packages/media/media/repository/sources/media-item.server.data.js +31 -0
- package/dist-cms/packages/media/media/user-permissions/index.d.ts +1 -0
- package/dist-cms/packages/media/media/user-permissions/index.js +1 -0
- package/dist-cms/packages/media/media/user-permissions/manifests.d.ts +4 -0
- package/dist-cms/packages/media/media/user-permissions/manifests.js +27 -0
- package/dist-cms/packages/settings/relation-types/workspace/views/relation/workspace-view-relation-type-relation.element.js +17 -17
- package/dist-cms/packages/templating/templates/modals/query-builder/query-builder.element.d.ts +1 -1
- package/dist-cms/packages/templating/templates/modals/query-builder/query-builder.element.js +1 -1
- package/dist-cms/packages/users/current-user/conditions/index.d.ts +1 -0
- package/dist-cms/packages/users/current-user/conditions/index.js +1 -0
- package/dist-cms/packages/users/current-user/conditions/user-permission.condition.d.ts +18 -0
- package/dist-cms/packages/users/current-user/conditions/user-permission.condition.js +23 -0
- package/dist-cms/packages/users/current-user/index.d.ts +1 -0
- package/dist-cms/packages/users/current-user/index.js +1 -0
- package/dist-cms/packages/users/current-user/manifests.js +7 -1
- package/dist-cms/packages/users/current-user/modals/current-user/current-user-modal.element.js +7 -7
- package/dist-cms/packages/users/index.d.ts +4 -2
- package/dist-cms/packages/users/index.js +4 -2
- package/dist-cms/packages/users/manifests.d.ts +2 -0
- package/dist-cms/packages/users/manifests.js +3 -0
- package/dist-cms/packages/users/user-groups/collection/user-group-collection-header.element.js +2 -2
- package/dist-cms/packages/users/user-groups/collection/user-group-collection-view.element.js +6 -6
- package/dist-cms/packages/users/user-groups/components/index.d.ts +1 -0
- package/dist-cms/packages/users/user-groups/components/index.js +1 -0
- package/dist-cms/packages/users/user-groups/entity-actions/manifests.d.ts +2 -0
- package/dist-cms/packages/users/user-groups/entity-actions/manifests.js +19 -0
- package/dist-cms/packages/users/user-groups/index.d.ts +2 -0
- package/dist-cms/packages/users/user-groups/index.js +2 -0
- package/dist-cms/packages/users/user-groups/manifests.d.ts +1 -1
- package/dist-cms/packages/users/user-groups/manifests.js +2 -0
- package/dist-cms/packages/users/user-groups/workspace/components/user-group-default-permission-list.element.d.ts +16 -0
- package/dist-cms/packages/users/user-groups/workspace/components/user-group-default-permission-list.element.js +69 -0
- package/dist-cms/packages/users/user-groups/workspace/components/user-group-granular-permission-list.element.d.ts +14 -0
- package/dist-cms/packages/users/user-groups/workspace/components/user-group-granular-permission-list.element.js +31 -0
- package/dist-cms/packages/users/user-groups/workspace/user-group-workspace-editor.element.d.ts +2 -0
- package/dist-cms/packages/users/user-groups/workspace/user-group-workspace-editor.element.js +57 -56
- package/dist-cms/packages/users/user-groups/workspace/user-group-workspace.context.d.ts +12 -0
- package/dist-cms/packages/users/user-groups/workspace/user-group-workspace.context.js +20 -0
- package/dist-cms/packages/users/user-groups/workspace/user-group-workspace.element.js +1 -1
- package/dist-cms/packages/users/users/collection/user-collection-header.element.js +18 -11
- package/dist-cms/packages/users/users/collection/views/grid/user-collection-grid-view.element.js +6 -6
- package/dist-cms/packages/users/users/collection/views/table/column-layouts/status/user-table-status-column-layout.element.js +3 -3
- package/dist-cms/packages/users/users/components/index.d.ts +3 -0
- package/dist-cms/packages/users/users/components/index.js +3 -0
- package/dist-cms/packages/users/users/components/user-input/user-input.element.js +2 -2
- package/dist-cms/packages/users/users/components/user-permission-setting/user-permission-setting.element.d.ts +15 -0
- package/dist-cms/packages/users/users/components/user-permission-setting/user-permission-setting.element.js +66 -0
- package/dist-cms/packages/users/users/index.d.ts +2 -0
- package/dist-cms/packages/users/users/index.js +2 -0
- package/dist-cms/packages/users/users/modals/user-picker/user-picker-modal.element.d.ts +3 -1
- package/dist-cms/packages/users/users/modals/user-picker/user-picker-modal.element.js +20 -25
- package/dist-cms/packages/users/users/repository/index.d.ts +1 -0
- package/dist-cms/packages/users/users/repository/index.js +1 -0
- package/dist-cms/packages/users/users/repository/user.repository.js +1 -1
- package/dist-cms/packages/users/users/workspace/user-workspace-editor.element.js +73 -56
- package/dist-cms/packages/users/utils.d.ts +5 -2
- package/dist-cms/packages/users/utils.js +14 -14
- package/dist-cms/shared/auth/auth-flow.d.ts +0 -4
- package/dist-cms/shared/auth/auth-flow.js +6 -25
- package/dist-cms/shared/repository/data-source/folder-data-source.interface.d.ts +2 -2
- package/dist-cms/shared/repository/folder-repository.interface.d.ts +2 -2
- package/dist-cms/shared/repository/repository-items.manager.js +5 -0
- package/dist-cms/shared/router/index.d.ts +1 -1
- package/dist-cms/shared/router/index.js +1 -1
- package/dist-cms/shared/umb-events/index.d.ts +1 -0
- package/dist-cms/shared/umb-events/index.js +1 -0
- package/dist-cms/shared/umb-events/selected.event.d.ts +3 -0
- package/dist-cms/shared/umb-events/selected.event.js +6 -0
- package/dist-cms/tinymce/CHANGELOG.md +48 -0
- package/dist-cms/tinymce/composer.json +1 -1
- package/dist-cms/tinymce/models/dom/model.js +1 -1
- package/dist-cms/tinymce/models/dom/model.min.js +1 -1
- package/dist-cms/tinymce/package.json +1 -1
- package/dist-cms/tinymce/plugins/accordion/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/accordion/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/advlist/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/advlist/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/anchor/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/anchor/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/autolink/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/autolink/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/autoresize/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/autoresize/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/autosave/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/autosave/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/charmap/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/charmap/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/code/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/code/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/codesample/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/codesample/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/directionality/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/directionality/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/emoticons/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/emoticons/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/fullscreen/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/fullscreen/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/help/plugin.js +5 -5
- package/dist-cms/tinymce/plugins/help/plugin.min.js +2 -2
- package/dist-cms/tinymce/plugins/image/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/image/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/importcss/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/importcss/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/insertdatetime/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/insertdatetime/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/link/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/link/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/lists/plugin.js +63 -8
- package/dist-cms/tinymce/plugins/lists/plugin.min.js +2 -2
- package/dist-cms/tinymce/plugins/media/plugin.js +3 -23
- package/dist-cms/tinymce/plugins/media/plugin.min.js +2 -2
- package/dist-cms/tinymce/plugins/nonbreaking/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/nonbreaking/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/pagebreak/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/pagebreak/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/preview/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/preview/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/quickbars/plugin.js +13 -4
- package/dist-cms/tinymce/plugins/quickbars/plugin.min.js +2 -2
- package/dist-cms/tinymce/plugins/save/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/save/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/searchreplace/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/searchreplace/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/table/plugin.js +2 -2
- package/dist-cms/tinymce/plugins/table/plugin.min.js +2 -2
- package/dist-cms/tinymce/plugins/template/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/template/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/visualblocks/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/visualblocks/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/visualchars/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/visualchars/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/wordcount/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/wordcount/plugin.min.js +1 -1
- package/dist-cms/tinymce/skins/ui/oxide/content.css +1 -1
- package/dist-cms/tinymce/skins/ui/oxide/content.inline.css +1 -1
- package/dist-cms/tinymce/skins/ui/oxide/content.inline.min.css +1 -1
- package/dist-cms/tinymce/skins/ui/oxide/content.min.css +1 -1
- package/dist-cms/tinymce/skins/ui/oxide/skin.css +51 -11
- package/dist-cms/tinymce/skins/ui/oxide/skin.min.css +1 -1
- package/dist-cms/tinymce/skins/ui/oxide-dark/content.css +1 -1
- package/dist-cms/tinymce/skins/ui/oxide-dark/content.inline.css +1 -1
- package/dist-cms/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -1
- package/dist-cms/tinymce/skins/ui/oxide-dark/content.min.css +1 -1
- package/dist-cms/tinymce/skins/ui/oxide-dark/skin.css +54 -14
- package/dist-cms/tinymce/skins/ui/oxide-dark/skin.min.css +1 -1
- package/dist-cms/tinymce/skins/ui/tinymce-5/content.css +1 -1
- package/dist-cms/tinymce/skins/ui/tinymce-5/content.inline.css +1 -1
- package/dist-cms/tinymce/skins/ui/tinymce-5/content.inline.min.css +1 -1
- package/dist-cms/tinymce/skins/ui/tinymce-5/content.min.css +1 -1
- package/dist-cms/tinymce/skins/ui/tinymce-5/skin.css +51 -11
- package/dist-cms/tinymce/skins/ui/tinymce-5/skin.min.css +1 -1
- package/dist-cms/tinymce/skins/ui/tinymce-5-dark/content.css +1 -1
- package/dist-cms/tinymce/skins/ui/tinymce-5-dark/content.inline.css +1 -1
- package/dist-cms/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +1 -1
- package/dist-cms/tinymce/skins/ui/tinymce-5-dark/content.min.css +1 -1
- package/dist-cms/tinymce/skins/ui/tinymce-5-dark/skin.css +51 -11
- package/dist-cms/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -1
- package/dist-cms/tinymce/themes/silver/theme.js +158 -55
- package/dist-cms/tinymce/themes/silver/theme.min.js +2 -2
- package/dist-cms/tinymce/tinymce.d.ts +4 -6
- package/dist-cms/tinymce/tinymce.js +911 -691
- package/dist-cms/tinymce/tinymce.min.js +2 -2
- package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
- package/dist-cms/umbraco-package-schema.json +154 -0
- package/dist-cms/vscode-html-custom-data.json +173 -24
- package/package.json +3 -4
- package/dist-cms/mocks/data/user-groups.data.d.ts +0 -9
- package/dist-cms/mocks/data/user-groups.data.js +0 -21
- package/dist-cms/mocks/data/users.data.d.ts +0 -16
- package/dist-cms/mocks/handlers/user-group.handlers.js +0 -17
- package/dist-cms/packages/core/modal/token/allowed-document-types-modal.token.d.ts +0 -9
- package/dist-cms/packages/core/modal/token/allowed-document-types-modal.token.js +0 -5
- package/dist-cms/packages/documents/document-types/modals/allowed-document-types/allowed-document-types-modal.element.d.ts +0 -19
- package/dist-cms/packages/documents/document-types/modals/manifests.d.ts +0 -2
- package/dist-cms/packages/documents/document-types/modals/manifests.js +0 -9
- package/router-slot-2.3.0.tgz +0 -0
- /package/dist-cms/mocks/handlers/{document.handlers.d.ts → document/document.handlers.d.ts} +0 -0
- /package/dist-cms/mocks/handlers/{user-group.handlers.d.ts → document/index.d.ts} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const { rest } = window.MockServiceWorker;
|
|
2
|
+
import { umbUserGroupData } from '../../data/user-group.data.js';
|
|
3
|
+
import { slug } from './slug.js';
|
|
4
|
+
import { umbracoPath } from '../../../shared/utils/index.js';
|
|
5
|
+
export const collectionHandlers = [
|
|
6
|
+
rest.get(umbracoPath(`${slug}`), (req, res, ctx) => {
|
|
7
|
+
const response = umbUserGroupData.getAll();
|
|
8
|
+
return res(ctx.status(200), ctx.json(response));
|
|
9
|
+
}),
|
|
10
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const detailHandlers: import("msw").RestHandler<import("msw/lib/glossary-de6278a9.js").M<import("msw/lib/glossary-de6278a9.js").h>>[];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const { rest } = window.MockServiceWorker;
|
|
2
|
+
import { umbUserGroupData } from '../../data/user-group.data.js';
|
|
3
|
+
import { slug } from './slug.js';
|
|
4
|
+
import { umbracoPath } from '../../../shared/utils/index.js';
|
|
5
|
+
export const detailHandlers = [
|
|
6
|
+
rest.post(umbracoPath(`${slug}`), async (req, res, ctx) => {
|
|
7
|
+
const data = await req.json();
|
|
8
|
+
if (!data)
|
|
9
|
+
return;
|
|
10
|
+
umbUserGroupData.insert(data);
|
|
11
|
+
return res(ctx.status(200));
|
|
12
|
+
}),
|
|
13
|
+
rest.get(umbracoPath(`${slug}/:id`), (req, res, ctx) => {
|
|
14
|
+
const id = req.params.id;
|
|
15
|
+
if (!id)
|
|
16
|
+
return;
|
|
17
|
+
const dataType = umbUserGroupData.getById(id);
|
|
18
|
+
return res(ctx.status(200), ctx.json(dataType));
|
|
19
|
+
}),
|
|
20
|
+
rest.put(umbracoPath(`${slug}/:id`), async (req, res, ctx) => {
|
|
21
|
+
const id = req.params.id;
|
|
22
|
+
if (!id)
|
|
23
|
+
return;
|
|
24
|
+
const data = await req.json();
|
|
25
|
+
if (!data)
|
|
26
|
+
return;
|
|
27
|
+
umbUserGroupData.save(id, data);
|
|
28
|
+
return res(ctx.status(200));
|
|
29
|
+
}),
|
|
30
|
+
rest.delete(umbracoPath(`${slug}/:id`), async (req, res, ctx) => {
|
|
31
|
+
const id = req.params.id;
|
|
32
|
+
if (!id)
|
|
33
|
+
return;
|
|
34
|
+
umbUserGroupData.delete([id]);
|
|
35
|
+
return res(ctx.status(200));
|
|
36
|
+
}),
|
|
37
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const handlers: import("msw").RestHandler<import("msw/lib/glossary-de6278a9.js").M<import("msw/lib/glossary-de6278a9.js").h>>[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const itemHandlers: import("msw").RestHandler<import("msw/lib/glossary-de6278a9.js").M<import("msw/lib/glossary-de6278a9.js").h>>[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { rest } = window.MockServiceWorker;
|
|
2
|
+
import { umbUserGroupData } from '../../data/user-group.data.js';
|
|
3
|
+
import { slug } from './slug.js';
|
|
4
|
+
import { umbracoPath } from '../../../shared/utils/index.js';
|
|
5
|
+
export const itemHandlers = [
|
|
6
|
+
rest.get(umbracoPath(`${slug}/item`), (req, res, ctx) => {
|
|
7
|
+
const ids = req.url.searchParams.getAll('id');
|
|
8
|
+
if (!ids)
|
|
9
|
+
return;
|
|
10
|
+
const items = umbUserGroupData.getItems(ids);
|
|
11
|
+
return res(ctx.status(200), ctx.json(items));
|
|
12
|
+
}),
|
|
13
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const slug = "/user-group";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const slug = '/user-group';
|
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
const { rest } = window.MockServiceWorker;
|
|
2
|
-
import { umbUsersData } from '../data/
|
|
2
|
+
import { umbUsersData } from '../data/user.data.js';
|
|
3
3
|
import { umbracoPath } from '../../shared/utils/index.js';
|
|
4
4
|
const slug = '/user';
|
|
5
5
|
export const handlers = [
|
|
6
|
+
rest.get(umbracoPath(`${slug}/item`), (req, res, ctx) => {
|
|
7
|
+
const ids = req.url.searchParams.getAll('id');
|
|
8
|
+
if (!ids)
|
|
9
|
+
return;
|
|
10
|
+
const items = umbUsersData.getItems(ids);
|
|
11
|
+
return res(ctx.status(200), ctx.json(items));
|
|
12
|
+
}),
|
|
13
|
+
rest.post(umbracoPath(`${slug}/set-user-groups`), async (req, res, ctx) => {
|
|
14
|
+
const data = await req.json();
|
|
15
|
+
if (!data)
|
|
16
|
+
return;
|
|
17
|
+
umbUsersData.setUserGroups(data);
|
|
18
|
+
return res(ctx.status(200));
|
|
19
|
+
}),
|
|
6
20
|
rest.get(umbracoPath(`${slug}/filter`), (req, res, ctx) => {
|
|
7
21
|
//TODO: Implementer filter
|
|
8
22
|
const response = umbUsersData.getAll();
|
|
@@ -42,7 +42,7 @@ export class UmbInputListBaseElement extends UmbLitElement {
|
|
|
42
42
|
}
|
|
43
43
|
renderButton() {
|
|
44
44
|
return html `<uui-button id="add-button" look="placeholder" @click=${this._openPicker} label="open">
|
|
45
|
-
|
|
45
|
+
${this.localize.term('general_add')}
|
|
46
46
|
</uui-button>`;
|
|
47
47
|
}
|
|
48
48
|
renderContent() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UmbInputListBaseElement } from '../input-list-base/input-list-base.js';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class UmbInputSectionElement extends UmbInputListBaseElement {
|
|
3
3
|
private _sections;
|
|
4
4
|
connectedCallback(): void;
|
|
5
5
|
private _observeSections;
|
|
@@ -9,6 +9,6 @@ export declare class UmbInputPickerSectionElement extends UmbInputListBaseElemen
|
|
|
9
9
|
}
|
|
10
10
|
declare global {
|
|
11
11
|
interface HTMLElementTagNameMap {
|
|
12
|
-
'umb-input-section':
|
|
12
|
+
'umb-input-section': UmbInputSectionElement;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -5,11 +5,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { UmbInputListBaseElement } from '../input-list-base/input-list-base.js';
|
|
8
|
-
import { UmbTextStyles } from
|
|
8
|
+
import { UmbTextStyles } from '../../../../shared/style/index.js';
|
|
9
9
|
import { css, html, nothing, customElement, state } from '../../../../external/lit/index.js';
|
|
10
10
|
import { UMB_SECTION_PICKER_MODAL } from '../../modal/index.js';
|
|
11
11
|
import { umbExtensionsRegistry } from '../../extension-registry/index.js';
|
|
12
|
-
export let
|
|
12
|
+
export let UmbInputSectionElement = class UmbInputSectionElement extends UmbInputListBaseElement {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
15
|
this._sections = [];
|
|
@@ -84,7 +84,7 @@ export let UmbInputPickerSectionElement = class UmbInputPickerSectionElement ext
|
|
|
84
84
|
};
|
|
85
85
|
__decorate([
|
|
86
86
|
state()
|
|
87
|
-
],
|
|
88
|
-
|
|
87
|
+
], UmbInputSectionElement.prototype, "_sections", void 0);
|
|
88
|
+
UmbInputSectionElement = __decorate([
|
|
89
89
|
customElement('umb-input-section')
|
|
90
|
-
],
|
|
90
|
+
], UmbInputSectionElement);
|
|
@@ -2,7 +2,7 @@ import { UmbEntityActionBase } from '../../entity-action.js';
|
|
|
2
2
|
import { UmbControllerHostElement } from '../../../../../libs/controller-api/index.js';
|
|
3
3
|
import { UmbItemRepository } from '../../../../../shared/repository/index.js';
|
|
4
4
|
export declare class UmbTrashEntityAction<T extends UmbItemRepository<any> & {
|
|
5
|
-
trash(unique:
|
|
5
|
+
trash(unique: string): Promise<void>;
|
|
6
6
|
}> extends UmbEntityActionBase<T> {
|
|
7
7
|
#private;
|
|
8
8
|
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { SectionAliasConditionConfig } from './section-alias.condition.js';
|
|
2
2
|
import type { SwitchConditionConfig } from './switch.condition.js';
|
|
3
3
|
import type { WorkspaceAliasConditionConfig } from '../../workspace/index.js';
|
|
4
|
-
import { UmbConditionConfigBase } from '../../../../libs/extension-api/index.js';
|
|
5
|
-
|
|
4
|
+
import type { UmbConditionConfigBase } from '../../../../libs/extension-api/index.js';
|
|
5
|
+
import type { UserPermissionConditionConfig } from '../../../users/current-user/index.js';
|
|
6
|
+
export type ConditionTypes = SectionAliasConditionConfig | WorkspaceAliasConditionConfig | SwitchConditionConfig | UserPermissionConditionConfig | UmbConditionConfigBase;
|
|
@@ -28,6 +28,8 @@ import type { ManifestWorkspace } from './workspace.model.js';
|
|
|
28
28
|
import type { ManifestWorkspaceAction } from './workspace-action.model.js';
|
|
29
29
|
import type { ManifestWorkspaceEditorView } from './workspace-editor-view.model.js';
|
|
30
30
|
import type { ManifestWorkspaceViewCollection } from './workspace-view-collection.model.js';
|
|
31
|
+
import type { ManifestUserPermission } from './user-permission.model.js';
|
|
32
|
+
import type { ManifestUserGranularPermission } from './user-granular-permission.model.js';
|
|
31
33
|
import type { ManifestBase, ManifestBundle, ManifestCondition, ManifestEntryPoint } from '../../../../libs/extension-api/index.js';
|
|
32
34
|
export * from './collection-view.model.js';
|
|
33
35
|
export * from './dashboard-collection.model.js';
|
|
@@ -59,4 +61,6 @@ export * from './workspace-action.model.js';
|
|
|
59
61
|
export * from './workspace-view-collection.model.js';
|
|
60
62
|
export * from './workspace-editor-view.model.js';
|
|
61
63
|
export * from './workspace.model.js';
|
|
62
|
-
export
|
|
64
|
+
export * from './user-permission.model.js';
|
|
65
|
+
export * from './user-granular-permission.model.js';
|
|
66
|
+
export type ManifestTypes = ManifestBundle<ManifestTypes> | ManifestCondition | ManifestCollectionView | ManifestDashboard | ManifestDashboardCollection | ManifestEntityAction | ManifestEntityBulkAction | ManifestEntryPoint | ManifestExternalLoginProvider | ManifestGlobalContext | ManifestHeaderApp | ManifestHeaderAppButtonKind | ManifestHealthCheck | ManifestItemStore | ManifestMenu | ManifestMenuItem | ManifestMenuItemTreeKind | ManifestModal | ManifestPackageView | ManifestPropertyAction | ManifestPropertyEditorSchema | ManifestPropertyEditorUi | ManifestRepository | ManifestSection | ManifestSectionSidebarApp | ManifestSectionSidebarAppMenuKind | ManifestSectionView | ManifestStore | ManifestTheme | ManifestTinyMcePlugin | ManifestLocalization | ManifestTree | ManifestTreeItem | ManifestTreeStore | ManifestUserProfileApp | ManifestWorkspace | ManifestWorkspaceAction | ManifestWorkspaceEditorView | ManifestWorkspaceViewCollection | ManifestUserPermission | ManifestUserGranularPermission | ManifestBase;
|
|
@@ -28,3 +28,5 @@ export * from './workspace-action.model.js';
|
|
|
28
28
|
export * from './workspace-view-collection.model.js';
|
|
29
29
|
export * from './workspace-editor-view.model.js';
|
|
30
30
|
export * from './workspace.model.js';
|
|
31
|
+
export * from './user-permission.model.js';
|
|
32
|
+
export * from './user-granular-permission.model.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ManifestElement } from '../../../../libs/extension-api/index.js';
|
|
2
|
+
export interface ManifestUserGranularPermission extends ManifestElement {
|
|
3
|
+
type: 'userGranularPermission';
|
|
4
|
+
meta: MetaUserGranularPermission;
|
|
5
|
+
}
|
|
6
|
+
export interface MetaUserGranularPermission {
|
|
7
|
+
entityType: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ManifestBase } from '../../../../libs/extension-api/index.js';
|
|
2
|
+
export interface ManifestUserPermission extends ManifestBase {
|
|
3
|
+
type: 'userPermission';
|
|
4
|
+
meta: MetaUserPermission;
|
|
5
|
+
}
|
|
6
|
+
export interface MetaUserPermission {
|
|
7
|
+
label: string;
|
|
8
|
+
entityType: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
group?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UmbLitElement } from '../../../shared/lit-element/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* This element allows you to localize a date
|
|
4
|
+
* @element umb-localize-date
|
|
5
|
+
* @slot - The fallback value if the key is not found.
|
|
6
|
+
*/
|
|
7
|
+
export declare class UmbLocalizeDateElement extends UmbLitElement {
|
|
8
|
+
/**
|
|
9
|
+
* The date to localize.
|
|
10
|
+
* @attr
|
|
11
|
+
* @example date="Sep 22 2023"
|
|
12
|
+
*/
|
|
13
|
+
date: string | Date;
|
|
14
|
+
/**
|
|
15
|
+
* Formatting options
|
|
16
|
+
* @attr
|
|
17
|
+
* @example options={ dateStyle: 'full', timeStyle: 'long', timeZone: 'Australia/Sydney' }
|
|
18
|
+
*/
|
|
19
|
+
options?: Intl.DateTimeFormatOptions;
|
|
20
|
+
protected get text(): string;
|
|
21
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
22
|
+
static styles: import("@lit/reactive-element/css-tag").CSSResult[];
|
|
23
|
+
}
|
|
24
|
+
declare global {
|
|
25
|
+
interface HTMLElementTagNameMap {
|
|
26
|
+
'umb-localize-date': UmbLocalizeDateElement;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { css, customElement, html, property, state, unsafeHTML } from '../../../external/lit/index.js';
|
|
8
|
+
import { UmbLitElement } from '../../../shared/lit-element/index.js';
|
|
9
|
+
/**
|
|
10
|
+
* This element allows you to localize a date
|
|
11
|
+
* @element umb-localize-date
|
|
12
|
+
* @slot - The fallback value if the key is not found.
|
|
13
|
+
*/
|
|
14
|
+
export let UmbLocalizeDateElement = class UmbLocalizeDateElement extends UmbLitElement {
|
|
15
|
+
get text() {
|
|
16
|
+
return this.localize.date(this.date, this.options);
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return this.date
|
|
20
|
+
? html `${unsafeHTML(this.text)}`
|
|
21
|
+
: html `<slot></slot>`;
|
|
22
|
+
}
|
|
23
|
+
static { this.styles = [
|
|
24
|
+
css `
|
|
25
|
+
:host {
|
|
26
|
+
display: contents;
|
|
27
|
+
}
|
|
28
|
+
`,
|
|
29
|
+
]; }
|
|
30
|
+
};
|
|
31
|
+
__decorate([
|
|
32
|
+
property()
|
|
33
|
+
], UmbLocalizeDateElement.prototype, "date", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
property()
|
|
36
|
+
], UmbLocalizeDateElement.prototype, "options", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
state()
|
|
39
|
+
], UmbLocalizeDateElement.prototype, "text", null);
|
|
40
|
+
UmbLocalizeDateElement = __decorate([
|
|
41
|
+
customElement('umb-localize-date')
|
|
42
|
+
], UmbLocalizeDateElement);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UmbLitElement } from '../../../shared/lit-element/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* This element allows you to localize a number
|
|
4
|
+
* @element umb-localize-number
|
|
5
|
+
* @slot - The fallback value if the key is not found.
|
|
6
|
+
*/
|
|
7
|
+
export declare class UmbLocalizeNumberElement extends UmbLitElement {
|
|
8
|
+
/**
|
|
9
|
+
* The number to localize.
|
|
10
|
+
* @attr
|
|
11
|
+
* @example number=1_000_000
|
|
12
|
+
*/
|
|
13
|
+
number: number | string;
|
|
14
|
+
/**
|
|
15
|
+
* Formatting options
|
|
16
|
+
* @attr
|
|
17
|
+
* @example options={ style: 'currency', currency: 'EUR' }
|
|
18
|
+
*/
|
|
19
|
+
options?: Intl.NumberFormatOptions;
|
|
20
|
+
protected get text(): string;
|
|
21
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
22
|
+
static styles: import("@lit/reactive-element/css-tag").CSSResult[];
|
|
23
|
+
}
|
|
24
|
+
declare global {
|
|
25
|
+
interface HTMLElementTagNameMap {
|
|
26
|
+
'umb-localize-number': UmbLocalizeNumberElement;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { css, customElement, html, property, state, unsafeHTML } from '../../../external/lit/index.js';
|
|
8
|
+
import { UmbLitElement } from '../../../shared/lit-element/index.js';
|
|
9
|
+
/**
|
|
10
|
+
* This element allows you to localize a number
|
|
11
|
+
* @element umb-localize-number
|
|
12
|
+
* @slot - The fallback value if the key is not found.
|
|
13
|
+
*/
|
|
14
|
+
export let UmbLocalizeNumberElement = class UmbLocalizeNumberElement extends UmbLitElement {
|
|
15
|
+
get text() {
|
|
16
|
+
return this.localize.number(this.number, this.options);
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return this.number
|
|
20
|
+
? html `${unsafeHTML(this.text)}`
|
|
21
|
+
: html `<slot></slot>`;
|
|
22
|
+
}
|
|
23
|
+
static { this.styles = [
|
|
24
|
+
css `
|
|
25
|
+
:host {
|
|
26
|
+
display: contents;
|
|
27
|
+
}
|
|
28
|
+
`,
|
|
29
|
+
]; }
|
|
30
|
+
};
|
|
31
|
+
__decorate([
|
|
32
|
+
property()
|
|
33
|
+
], UmbLocalizeNumberElement.prototype, "number", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
property()
|
|
36
|
+
], UmbLocalizeNumberElement.prototype, "options", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
state()
|
|
39
|
+
], UmbLocalizeNumberElement.prototype, "text", null);
|
|
40
|
+
UmbLocalizeNumberElement = __decorate([
|
|
41
|
+
customElement('umb-localize-number')
|
|
42
|
+
], UmbLocalizeNumberElement);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { UmbLitElement } from '../../../shared/lit-element/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* This element allows you to localize a relative time
|
|
4
|
+
* @element umb-localize-relative-time
|
|
5
|
+
* @slot - The fallback value if the key is not found.
|
|
6
|
+
*/
|
|
7
|
+
export declare class UmbLocalizeRelativeTimeElement extends UmbLitElement {
|
|
8
|
+
/**
|
|
9
|
+
* The date to localize.
|
|
10
|
+
* @attr
|
|
11
|
+
* @example time=10
|
|
12
|
+
*/
|
|
13
|
+
time: number;
|
|
14
|
+
/**
|
|
15
|
+
* Formatting options
|
|
16
|
+
* @attr
|
|
17
|
+
* @example options={ dateStyle: 'full', timeStyle: 'long', timeZone: 'Australia/Sydney' }
|
|
18
|
+
*/
|
|
19
|
+
options?: Intl.RelativeTimeFormatOptions;
|
|
20
|
+
/**
|
|
21
|
+
* Unit
|
|
22
|
+
* @attr
|
|
23
|
+
* @example unit='seconds'
|
|
24
|
+
*/
|
|
25
|
+
unit: Intl.RelativeTimeFormatUnit;
|
|
26
|
+
protected get text(): string;
|
|
27
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
28
|
+
static styles: import("@lit/reactive-element/css-tag").CSSResult[];
|
|
29
|
+
}
|
|
30
|
+
declare global {
|
|
31
|
+
interface HTMLElementTagNameMap {
|
|
32
|
+
'umb-localize-relative-time': UmbLocalizeRelativeTimeElement;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { css, customElement, html, property, state, unsafeHTML } from '../../../external/lit/index.js';
|
|
8
|
+
import { UmbLitElement } from '../../../shared/lit-element/index.js';
|
|
9
|
+
/**
|
|
10
|
+
* This element allows you to localize a relative time
|
|
11
|
+
* @element umb-localize-relative-time
|
|
12
|
+
* @slot - The fallback value if the key is not found.
|
|
13
|
+
*/
|
|
14
|
+
export let UmbLocalizeRelativeTimeElement = class UmbLocalizeRelativeTimeElement extends UmbLitElement {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
/**
|
|
18
|
+
* Unit
|
|
19
|
+
* @attr
|
|
20
|
+
* @example unit='seconds'
|
|
21
|
+
*/
|
|
22
|
+
this.unit = 'seconds';
|
|
23
|
+
}
|
|
24
|
+
get text() {
|
|
25
|
+
return this.localize.relativeTime(this.time, this.unit, this.options);
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
return this.time
|
|
29
|
+
? html `${unsafeHTML(this.text)}`
|
|
30
|
+
: html `<slot></slot>`;
|
|
31
|
+
}
|
|
32
|
+
static { this.styles = [
|
|
33
|
+
css `
|
|
34
|
+
:host {
|
|
35
|
+
display: contents;
|
|
36
|
+
}
|
|
37
|
+
`,
|
|
38
|
+
]; }
|
|
39
|
+
};
|
|
40
|
+
__decorate([
|
|
41
|
+
property()
|
|
42
|
+
], UmbLocalizeRelativeTimeElement.prototype, "time", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
property()
|
|
45
|
+
], UmbLocalizeRelativeTimeElement.prototype, "options", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
property()
|
|
48
|
+
], UmbLocalizeRelativeTimeElement.prototype, "unit", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
state()
|
|
51
|
+
], UmbLocalizeRelativeTimeElement.prototype, "text", null);
|
|
52
|
+
UmbLocalizeRelativeTimeElement = __decorate([
|
|
53
|
+
customElement('umb-localize-relative-time')
|
|
54
|
+
], UmbLocalizeRelativeTimeElement);
|
|
@@ -31,7 +31,7 @@ export let UmbLocalizeElement = class UmbLocalizeElement extends UmbLitElement {
|
|
|
31
31
|
return localizedValue;
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return this.text
|
|
34
|
+
return this.text.trim()
|
|
35
35
|
? html `${unsafeHTML(this.text)}`
|
|
36
36
|
: this.debug
|
|
37
37
|
? html `<span style="color:red">${this.key}</span>`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UmbEntityUserPermissionSettingsModalData, UmbEntityUserPermissionSettingsModalResult, UmbModalContext } from '../../index.js';
|
|
2
|
+
import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
3
|
+
export declare class UmbEntityUserPermissionSettingsModalElement extends UmbLitElement {
|
|
4
|
+
#private;
|
|
5
|
+
modalContext?: UmbModalContext<UmbEntityUserPermissionSettingsModalData, UmbEntityUserPermissionSettingsModalResult>;
|
|
6
|
+
data?: UmbEntityUserPermissionSettingsModalData;
|
|
7
|
+
private _userPermissionManifests;
|
|
8
|
+
private _handleConfirm;
|
|
9
|
+
private _handleCancel;
|
|
10
|
+
constructor();
|
|
11
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
12
|
+
static styles: import("@lit/reactive-element/css-tag").CSSResult[];
|
|
13
|
+
}
|
|
14
|
+
export default UmbEntityUserPermissionSettingsModalElement;
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
'umb-entity-user-permission-modal': UmbEntityUserPermissionSettingsModalElement;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, customElement, property, state, css } from '../../../../../external/lit/index.js';
|
|
8
|
+
import { UmbTextStyles } from '../../../../../shared/style/index.js';
|
|
9
|
+
import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
10
|
+
import { umbExtensionsRegistry } from '../../../extension-registry/index.js';
|
|
11
|
+
export let UmbEntityUserPermissionSettingsModalElement = class UmbEntityUserPermissionSettingsModalElement extends UmbLitElement {
|
|
12
|
+
_handleConfirm() {
|
|
13
|
+
this.modalContext?.submit();
|
|
14
|
+
}
|
|
15
|
+
_handleCancel() {
|
|
16
|
+
this.modalContext?.reject();
|
|
17
|
+
}
|
|
18
|
+
constructor() {
|
|
19
|
+
super();
|
|
20
|
+
this._userPermissionManifests = [];
|
|
21
|
+
this.observe(umbExtensionsRegistry.extensionsOfType('userPermission'), (userPermissionManifests) => (this._userPermissionManifests = userPermissionManifests));
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
return html `
|
|
25
|
+
<umb-body-layout headline="Hello">
|
|
26
|
+
<uui-box>
|
|
27
|
+
Render user permissions for ${this.data?.entityType} ${this.data?.unique}
|
|
28
|
+
${this._userPermissionManifests.map((permission) => this.#renderPermission(permission))}
|
|
29
|
+
|
|
30
|
+
<uui-button slot="actions" id="cancel" label="Cancel" @click="${this._handleCancel}">Cancel</uui-button>
|
|
31
|
+
<uui-button
|
|
32
|
+
slot="actions"
|
|
33
|
+
id="confirm"
|
|
34
|
+
color="positive"
|
|
35
|
+
look="primary"
|
|
36
|
+
label="Confirm"
|
|
37
|
+
@click=${this._handleConfirm}></uui-button>
|
|
38
|
+
</uui-box>
|
|
39
|
+
</umb-body-layout>
|
|
40
|
+
`;
|
|
41
|
+
}
|
|
42
|
+
#onChangeUserPermission(event, userPermissionManifest) {
|
|
43
|
+
console.log(userPermissionManifest);
|
|
44
|
+
console.log(event.target.checked);
|
|
45
|
+
}
|
|
46
|
+
#isAllowed(userPermissionManifest) {
|
|
47
|
+
return true;
|
|
48
|
+
//return this._userGroup?.permissions?.includes(userPermissionManifest.alias);
|
|
49
|
+
}
|
|
50
|
+
#renderPermission(userPermissionManifest) {
|
|
51
|
+
return html `<div
|
|
52
|
+
style="display: flex; align-items:center; border-bottom: 1px solid var(--uui-color-divider); padding: 9px 0 12px 0;">
|
|
53
|
+
<uui-toggle
|
|
54
|
+
label=${userPermissionManifest.meta.label}
|
|
55
|
+
?checked=${this.#isAllowed(userPermissionManifest)}
|
|
56
|
+
@change=${(event) => this.#onChangeUserPermission(event, userPermissionManifest)}>
|
|
57
|
+
<div class="permission-meta">
|
|
58
|
+
<div class="permission-name">${userPermissionManifest.meta.label}</div>
|
|
59
|
+
<small>${userPermissionManifest.meta.description}</small>
|
|
60
|
+
</div>
|
|
61
|
+
</uui-toggle>
|
|
62
|
+
</div>`;
|
|
63
|
+
}
|
|
64
|
+
static { this.styles = [
|
|
65
|
+
UmbTextStyles,
|
|
66
|
+
css `
|
|
67
|
+
.permission-toggle {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
border-bottom: 1px solid var(--uui-color-divider);
|
|
71
|
+
padding: var(--uui-size-space-3) 0 var(--uui-size-space-4) 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.permission-meta {
|
|
75
|
+
margin-left: var(--uui-size-space-4);
|
|
76
|
+
line-height: 1.2em;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.permission-name {
|
|
80
|
+
font-weight: bold;
|
|
81
|
+
}
|
|
82
|
+
`,
|
|
83
|
+
]; }
|
|
84
|
+
};
|
|
85
|
+
__decorate([
|
|
86
|
+
property({ attribute: false })
|
|
87
|
+
], UmbEntityUserPermissionSettingsModalElement.prototype, "modalContext", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
property({ type: Object })
|
|
90
|
+
], UmbEntityUserPermissionSettingsModalElement.prototype, "data", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
state()
|
|
93
|
+
], UmbEntityUserPermissionSettingsModalElement.prototype, "_userPermissionManifests", void 0);
|
|
94
|
+
UmbEntityUserPermissionSettingsModalElement = __decorate([
|
|
95
|
+
customElement('umb-entity-user-permission-settings-modal')
|
|
96
|
+
], UmbEntityUserPermissionSettingsModalElement);
|
|
97
|
+
export default UmbEntityUserPermissionSettingsModalElement;
|
|
@@ -59,5 +59,11 @@ const modals = [
|
|
|
59
59
|
name: 'Tree Picker Modal',
|
|
60
60
|
loader: () => import('./tree-picker/tree-picker-modal.element.js'),
|
|
61
61
|
},
|
|
62
|
+
{
|
|
63
|
+
type: 'modal',
|
|
64
|
+
alias: 'Umb.Modal.EntityUserPermissionSettings',
|
|
65
|
+
name: 'Entity User Permission Settings Modal',
|
|
66
|
+
loader: () => import('./entity-user-permission-settings/entity-user-permission-settings-modal.element.js'),
|
|
67
|
+
},
|
|
62
68
|
];
|
|
63
69
|
export const manifests = [...modals];
|