@umbraco-cms/backoffice 14.0.0--preview004-b3446294 → 14.0.0--preview003
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 +3 -0
- package/dist-cms/assets/lang/da-dk.js +0 -3
- package/dist-cms/assets/lang/da-dk.ts +0 -3
- package/dist-cms/assets/lang/en-us.js +18 -21
- package/dist-cms/assets/lang/en-us.ts +18 -21
- package/dist-cms/custom-elements.json +19 -288
- package/dist-cms/external/tinymce/index.js +36 -36
- package/dist-cms/mocks/browser-handlers.js +1 -1
- package/dist-cms/mocks/data/entity.data.d.ts +1 -1
- package/dist-cms/mocks/data/entity.data.js +9 -1
- package/dist-cms/mocks/data/media.data.d.ts +1 -2
- package/dist-cms/mocks/data/media.data.js +0 -11
- package/dist-cms/mocks/data/user-groups.data.d.ts +9 -0
- package/dist-cms/mocks/data/user-groups.data.js +21 -0
- package/dist-cms/mocks/data/users.data.d.ts +16 -0
- package/dist-cms/mocks/data/{user.data.js → users.data.js} +41 -27
- package/dist-cms/mocks/handlers/dictionary.handlers.js +2 -2
- package/dist-cms/mocks/handlers/media.handlers.js +0 -8
- package/dist-cms/mocks/handlers/partial-views.handlers.js +3 -3
- package/dist-cms/mocks/handlers/user-group.handlers.js +17 -0
- package/dist-cms/mocks/handlers/user.handlers.js +1 -15
- 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/extension-registry/conditions/types.d.ts +2 -3
- package/dist-cms/packages/core/extension-registry/models/index.d.ts +1 -5
- package/dist-cms/packages/core/extension-registry/models/index.js +0 -2
- package/dist-cms/packages/core/localization/index.d.ts +0 -3
- package/dist-cms/packages/core/localization/index.js +0 -3
- package/dist-cms/packages/core/localization/localize.element.js +1 -1
- package/dist-cms/packages/core/modal/common/manifests.js +0 -6
- package/dist-cms/packages/core/modal/common/tree-picker/tree-picker-modal.element.js +3 -5
- package/dist-cms/packages/core/modal/token/index.d.ts +0 -1
- package/dist-cms/packages/core/modal/token/index.js +0 -1
- package/dist-cms/packages/core/picker-input/picker-input.context.js +3 -1
- package/dist-cms/packages/core/tree/tree.context.js +2 -3
- package/dist-cms/packages/documents/documents/components/index.d.ts +0 -1
- package/dist-cms/packages/documents/documents/components/index.js +0 -1
- package/dist-cms/packages/documents/documents/components/input-document/input-document.element.d.ts +12 -7
- package/dist-cms/packages/documents/documents/components/input-document/input-document.element.js +64 -51
- package/dist-cms/packages/documents/documents/entity-actions/create/manifests.js +0 -9
- package/dist-cms/packages/documents/documents/entity-actions/manifests.js +1 -1
- package/dist-cms/packages/documents/documents/entity-actions/permissions.action.d.ts +1 -2
- package/dist-cms/packages/documents/documents/entity-actions/permissions.action.js +2 -22
- package/dist-cms/packages/documents/documents/index.d.ts +0 -2
- package/dist-cms/packages/documents/documents/index.js +0 -2
- package/dist-cms/packages/documents/documents/manifests.d.ts +0 -4
- package/dist-cms/packages/documents/documents/manifests.js +0 -2
- package/dist-cms/packages/documents/documents/recycle-bin/entity-action/manifests.d.ts +0 -4
- package/dist-cms/packages/documents/documents/recycle-bin/entity-action/manifests.js +0 -6
- package/dist-cms/packages/documents/documents/recycle-bin/manifests.d.ts +0 -4
- package/dist-cms/packages/documents/documents/repository/document.repository.js +4 -4
- package/dist-cms/packages/documents/documents/repository/manifests.d.ts +2 -3
- package/dist-cms/packages/documents/documents/repository/manifests.js +1 -9
- package/dist-cms/packages/documents/documents/workspace/views/info/document-info-workspace-view.element.js +28 -29
- package/dist-cms/packages/documents/manifests.d.ts +0 -4
- package/dist-cms/packages/log-viewer/workspace/views/overview/components/log-viewer-saved-searches-overview.element.js +1 -1
- package/dist-cms/packages/media/manifests.d.ts +1 -2
- package/dist-cms/packages/media/manifests.js +0 -1
- package/dist-cms/packages/media/media/components/index.d.ts +0 -1
- package/dist-cms/packages/media/media/components/index.js +0 -1
- package/dist-cms/packages/media/media/components/input-media/input-media.element.d.ts +15 -7
- package/dist-cms/packages/media/media/components/input-media/input-media.element.js +72 -50
- package/dist-cms/packages/media/media/index.d.ts +0 -2
- 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 +0 -2
- package/dist-cms/packages/media/media/repository/manifests.d.ts +2 -3
- package/dist-cms/packages/media/media/repository/manifests.js +1 -9
- package/dist-cms/packages/media/media/repository/media.repository.d.ts +0 -6
- package/dist-cms/packages/media/media/repository/media.repository.js +0 -22
- package/dist-cms/packages/users/current-user/index.d.ts +0 -1
- package/dist-cms/packages/users/current-user/index.js +0 -1
- package/dist-cms/packages/users/current-user/manifests.js +1 -7
- 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 +2 -4
- package/dist-cms/packages/users/index.js +2 -4
- package/dist-cms/packages/users/manifests.d.ts +0 -2
- package/dist-cms/packages/users/manifests.js +0 -3
- 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 +0 -1
- package/dist-cms/packages/users/user-groups/components/index.js +0 -1
- package/dist-cms/packages/users/user-groups/index.d.ts +0 -2
- package/dist-cms/packages/users/user-groups/index.js +0 -2
- package/dist-cms/packages/users/user-groups/manifests.d.ts +1 -1
- package/dist-cms/packages/users/user-groups/manifests.js +0 -2
- package/dist-cms/packages/users/user-groups/workspace/user-group-workspace-editor.element.d.ts +0 -2
- package/dist-cms/packages/users/user-groups/workspace/user-group-workspace-editor.element.js +56 -57
- package/dist-cms/packages/users/user-groups/workspace/user-group-workspace.context.d.ts +0 -12
- package/dist-cms/packages/users/user-groups/workspace/user-group-workspace.context.js +0 -20
- 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 +11 -18
- 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 +0 -3
- package/dist-cms/packages/users/users/components/index.js +0 -3
- package/dist-cms/packages/users/users/components/user-input/user-input.element.js +2 -2
- package/dist-cms/packages/users/users/index.d.ts +0 -2
- package/dist-cms/packages/users/users/index.js +0 -2
- package/dist-cms/packages/users/users/modals/user-picker/user-picker-modal.element.d.ts +1 -3
- package/dist-cms/packages/users/users/modals/user-picker/user-picker-modal.element.js +25 -20
- package/dist-cms/packages/users/users/repository/user.repository.js +1 -1
- package/dist-cms/packages/users/users/workspace/user-workspace-editor.element.js +56 -73
- package/dist-cms/packages/users/utils.d.ts +2 -5
- package/dist-cms/packages/users/utils.js +14 -14
- package/dist-cms/shared/auth/auth-flow.d.ts +4 -0
- package/dist-cms/shared/auth/auth-flow.js +25 -6
- package/dist-cms/shared/repository/repository-items.manager.js +0 -5
- package/dist-cms/shared/umb-events/index.d.ts +0 -1
- package/dist-cms/shared/umb-events/index.js +0 -1
- package/dist-cms/tinymce/CHANGELOG.md +0 -48
- 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 +8 -63
- package/dist-cms/tinymce/plugins/lists/plugin.min.js +2 -2
- package/dist-cms/tinymce/plugins/media/plugin.js +23 -3
- 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 +4 -13
- 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 +11 -51
- 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 +14 -54
- 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 +11 -51
- 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 +11 -51
- package/dist-cms/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -1
- package/dist-cms/tinymce/themes/silver/theme.js +55 -158
- package/dist-cms/tinymce/themes/silver/theme.min.js +2 -2
- package/dist-cms/tinymce/tinymce.d.ts +6 -4
- package/dist-cms/tinymce/tinymce.js +644 -864
- package/dist-cms/tinymce/tinymce.min.js +2 -2
- package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
- package/dist-cms/umbraco-package-schema.json +0 -154
- package/dist-cms/vscode-html-custom-data.json +18 -167
- package/package.json +2 -2
- package/dist-cms/mocks/data/user-group.data.d.ts +0 -17
- package/dist-cms/mocks/data/user-group.data.js +0 -61
- package/dist-cms/mocks/data/user.data.d.ts +0 -15
- package/dist-cms/mocks/handlers/user-group/collection.handlers.d.ts +0 -1
- package/dist-cms/mocks/handlers/user-group/collection.handlers.js +0 -10
- package/dist-cms/mocks/handlers/user-group/detail.handlers.d.ts +0 -1
- package/dist-cms/mocks/handlers/user-group/detail.handlers.js +0 -37
- package/dist-cms/mocks/handlers/user-group/index.js +0 -4
- package/dist-cms/mocks/handlers/user-group/item.handlers.d.ts +0 -1
- package/dist-cms/mocks/handlers/user-group/item.handlers.js +0 -13
- package/dist-cms/mocks/handlers/user-group/slug.d.ts +0 -1
- package/dist-cms/mocks/handlers/user-group/slug.js +0 -1
- package/dist-cms/packages/core/extension-registry/models/user-granular-permission.model.d.ts +0 -8
- package/dist-cms/packages/core/extension-registry/models/user-granular-permission.model.js +0 -1
- package/dist-cms/packages/core/extension-registry/models/user-permission.model.d.ts +0 -11
- package/dist-cms/packages/core/extension-registry/models/user-permission.model.js +0 -1
- package/dist-cms/packages/core/localization/localize-date.element.d.ts +0 -28
- package/dist-cms/packages/core/localization/localize-date.element.js +0 -42
- package/dist-cms/packages/core/localization/localize-number.element.d.ts +0 -28
- package/dist-cms/packages/core/localization/localize-number.element.js +0 -42
- package/dist-cms/packages/core/localization/localize-relative-time.element.d.ts +0 -34
- package/dist-cms/packages/core/localization/localize-relative-time.element.js +0 -54
- package/dist-cms/packages/core/modal/common/entity-user-permission-settings/entity-user-permission-settings-modal.element.d.ts +0 -19
- package/dist-cms/packages/core/modal/common/entity-user-permission-settings/entity-user-permission-settings-modal.element.js +0 -97
- package/dist-cms/packages/core/modal/token/entity-user-permission-settings-modal.token.d.ts +0 -7
- package/dist-cms/packages/core/modal/token/entity-user-permission-settings-modal.token.js +0 -4
- package/dist-cms/packages/documents/documents/components/input-document/input-document.context.d.ts +0 -6
- package/dist-cms/packages/documents/documents/components/input-document/input-document.context.js +0 -7
- package/dist-cms/packages/documents/documents/components/input-document-granular-permission/input-document-granular-permission.element.d.ts +0 -23
- package/dist-cms/packages/documents/documents/components/input-document-granular-permission/input-document-granular-permission.element.js +0 -102
- package/dist-cms/packages/documents/documents/user-permissions/index.d.ts +0 -1
- package/dist-cms/packages/documents/documents/user-permissions/index.js +0 -1
- package/dist-cms/packages/documents/documents/user-permissions/manifests.d.ts +0 -19
- package/dist-cms/packages/documents/documents/user-permissions/manifests.js +0 -196
- package/dist-cms/packages/media/media/components/input-media/input-media.context.d.ts +0 -6
- package/dist-cms/packages/media/media/components/input-media/input-media.context.js +0 -7
- package/dist-cms/packages/media/media/repository/media-item.store.d.ts +0 -20
- package/dist-cms/packages/media/media/repository/media-item.store.js +0 -23
- package/dist-cms/packages/media/media/repository/sources/media-item.server.data.d.ts +0 -24
- package/dist-cms/packages/media/media/repository/sources/media-item.server.data.js +0 -31
- package/dist-cms/packages/media/media/user-permissions/index.d.ts +0 -1
- package/dist-cms/packages/media/media/user-permissions/index.js +0 -1
- package/dist-cms/packages/media/media/user-permissions/manifests.d.ts +0 -4
- package/dist-cms/packages/media/media/user-permissions/manifests.js +0 -27
- package/dist-cms/packages/users/current-user/conditions/index.d.ts +0 -1
- package/dist-cms/packages/users/current-user/conditions/index.js +0 -1
- package/dist-cms/packages/users/current-user/conditions/user-permission.condition.d.ts +0 -18
- package/dist-cms/packages/users/current-user/conditions/user-permission.condition.js +0 -23
- package/dist-cms/packages/users/user-groups/entity-actions/manifests.d.ts +0 -2
- package/dist-cms/packages/users/user-groups/entity-actions/manifests.js +0 -19
- package/dist-cms/packages/users/user-groups/workspace/components/user-group-default-permission-list.element.d.ts +0 -16
- package/dist-cms/packages/users/user-groups/workspace/components/user-group-default-permission-list.element.js +0 -69
- package/dist-cms/packages/users/user-groups/workspace/components/user-group-granular-permission-list.element.d.ts +0 -14
- package/dist-cms/packages/users/user-groups/workspace/components/user-group-granular-permission-list.element.js +0 -31
- package/dist-cms/packages/users/users/components/user-permission-setting/user-permission-setting.element.d.ts +0 -15
- package/dist-cms/packages/users/users/components/user-permission-setting/user-permission-setting.element.js +0 -66
- package/dist-cms/packages/users/users/repository/index.d.ts +0 -1
- package/dist-cms/packages/users/users/repository/index.js +0 -1
- package/dist-cms/shared/umb-events/selected.event.d.ts +0 -3
- package/dist-cms/shared/umb-events/selected.event.js +0 -6
- /package/dist-cms/mocks/handlers/{user-group/index.d.ts → user-group.handlers.d.ts} +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
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);
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
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);
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
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);
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { UmbModalToken } from '../index.js';
|
|
2
|
-
export interface UmbEntityUserPermissionSettingsModalData {
|
|
3
|
-
unique: string;
|
|
4
|
-
entityType: Array<string>;
|
|
5
|
-
}
|
|
6
|
-
export type UmbEntityUserPermissionSettingsModalResult = undefined;
|
|
7
|
-
export declare const UMB_ENTITY_USER_PERMISSION_MODAL: UmbModalToken<UmbEntityUserPermissionSettingsModalData, undefined>;
|
package/dist-cms/packages/documents/documents/components/input-document/input-document.context.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { UmbPickerInputContext } from '../../../../core/picker-input/index.js';
|
|
2
|
-
import { UmbControllerHostElement } from '../../../../../libs/controller-api/index.js';
|
|
3
|
-
import { DocumentItemResponseModel } from '../../../../../external/backend-api/index.js';
|
|
4
|
-
export declare class UmbDocumentPickerContext extends UmbPickerInputContext<DocumentItemResponseModel> {
|
|
5
|
-
constructor(host: UmbControllerHostElement);
|
|
6
|
-
}
|
package/dist-cms/packages/documents/documents/components/input-document/input-document.context.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { UmbPickerInputContext } from '../../../../core/picker-input/index.js';
|
|
2
|
-
import { UMB_DOCUMENT_PICKER_MODAL } from '../../../../core/modal/index.js';
|
|
3
|
-
export class UmbDocumentPickerContext extends UmbPickerInputContext {
|
|
4
|
-
constructor(host) {
|
|
5
|
-
super(host, 'Umb.Repository.Document', UMB_DOCUMENT_PICKER_MODAL);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { PropertyValueMap } from '../../../../../external/lit/index.js';
|
|
2
|
-
import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
3
|
-
declare const UmbInputDocumentGranularPermissionElement_base: (new (...args: any[]) => import("../../../../../external/uui/index.js").FormControlMixinInterface) & typeof UmbLitElement;
|
|
4
|
-
export declare class UmbInputDocumentGranularPermissionElement extends UmbInputDocumentGranularPermissionElement_base {
|
|
5
|
-
#private;
|
|
6
|
-
private _selectedIds;
|
|
7
|
-
get selectedIds(): Array<string>;
|
|
8
|
-
set selectedIds(ids: Array<string>);
|
|
9
|
-
set value(idsString: string);
|
|
10
|
-
private _items?;
|
|
11
|
-
constructor();
|
|
12
|
-
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
13
|
-
protected getFormElement(): undefined;
|
|
14
|
-
disconnectedCallback(): void;
|
|
15
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
16
|
-
static styles: import("@lit/reactive-element/css-tag").CSSResult[];
|
|
17
|
-
}
|
|
18
|
-
export default UmbInputDocumentGranularPermissionElement;
|
|
19
|
-
declare global {
|
|
20
|
-
interface HTMLElementTagNameMap {
|
|
21
|
-
'umb-input-document-granular-permission': UmbInputDocumentGranularPermissionElement;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
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, html, customElement, property, state } from '../../../../../external/lit/index.js';
|
|
8
|
-
import { FormControlMixin } from '../../../../../external/uui/index.js';
|
|
9
|
-
import { UMB_MODAL_MANAGER_CONTEXT_TOKEN, UMB_CONFIRM_MODAL, UMB_DOCUMENT_PICKER_MODAL, } from '../../../../core/modal/index.js';
|
|
10
|
-
import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
11
|
-
import { UmbDocumentRepository } from '../../index.js';
|
|
12
|
-
import { UmbChangeEvent } from '../../../../../shared/umb-events/index.js';
|
|
13
|
-
export let UmbInputDocumentGranularPermissionElement = class UmbInputDocumentGranularPermissionElement extends FormControlMixin(UmbLitElement) {
|
|
14
|
-
get selectedIds() {
|
|
15
|
-
return this._selectedIds;
|
|
16
|
-
}
|
|
17
|
-
set selectedIds(ids) {
|
|
18
|
-
this._selectedIds = ids;
|
|
19
|
-
super.value = ids.join(',');
|
|
20
|
-
this.#observePickedDocuments();
|
|
21
|
-
}
|
|
22
|
-
set value(idsString) {
|
|
23
|
-
if (idsString !== this._value) {
|
|
24
|
-
this.selectedIds = idsString.split(/[ ,]+/);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
#documentRepository;
|
|
28
|
-
#modalContext;
|
|
29
|
-
#pickedItemsObserver;
|
|
30
|
-
constructor() {
|
|
31
|
-
super();
|
|
32
|
-
this._selectedIds = [];
|
|
33
|
-
this.#documentRepository = new UmbDocumentRepository(this);
|
|
34
|
-
this.consumeContext(UMB_MODAL_MANAGER_CONTEXT_TOKEN, (instance) => (this.#modalContext = instance));
|
|
35
|
-
}
|
|
36
|
-
firstUpdated(_changedProperties) {
|
|
37
|
-
super.firstUpdated(_changedProperties);
|
|
38
|
-
this.#observePickedDocuments();
|
|
39
|
-
}
|
|
40
|
-
getFormElement() {
|
|
41
|
-
return undefined;
|
|
42
|
-
}
|
|
43
|
-
async #observePickedDocuments() {
|
|
44
|
-
this.#pickedItemsObserver?.destroy();
|
|
45
|
-
const { asObservable } = await this.#documentRepository.requestItems(this._selectedIds);
|
|
46
|
-
this.#pickedItemsObserver = this.observe(asObservable(), (items) => (this._items = items));
|
|
47
|
-
}
|
|
48
|
-
#openDocumentPicker() {
|
|
49
|
-
// We send a shallow copy(good enough as its just an array of ids) of our this._selectedIds, as we don't want the modal to manipulate our data:
|
|
50
|
-
const modalContext = this.#modalContext?.open(UMB_DOCUMENT_PICKER_MODAL, {
|
|
51
|
-
selection: [...this._selectedIds],
|
|
52
|
-
});
|
|
53
|
-
modalContext?.onSubmit().then(({ selection }) => {
|
|
54
|
-
//this.#setSelection(selection);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
async #removeItem(item) {
|
|
58
|
-
const modalContext = this.#modalContext?.open(UMB_CONFIRM_MODAL, {
|
|
59
|
-
color: 'danger',
|
|
60
|
-
headline: `Remove ${item.name}?`,
|
|
61
|
-
content: 'Are you sure you want to remove this item',
|
|
62
|
-
confirmLabel: 'Remove',
|
|
63
|
-
});
|
|
64
|
-
await modalContext?.onSubmit();
|
|
65
|
-
const newSelection = this._selectedIds.filter((value) => value !== item.id);
|
|
66
|
-
this.#setSelection(newSelection);
|
|
67
|
-
}
|
|
68
|
-
#setSelection(newSelection) {
|
|
69
|
-
this.selectedIds = newSelection;
|
|
70
|
-
this.dispatchEvent(new UmbChangeEvent());
|
|
71
|
-
}
|
|
72
|
-
disconnectedCallback() {
|
|
73
|
-
super.disconnectedCallback();
|
|
74
|
-
this.#pickedItemsObserver?.destroy();
|
|
75
|
-
}
|
|
76
|
-
render() {
|
|
77
|
-
return html `
|
|
78
|
-
${this._items?.map((item) => this.#renderItem(item))}
|
|
79
|
-
<uui-button id="add-button" look="placeholder" @click=${this.#openDocumentPicker} label="open">Add</uui-button>
|
|
80
|
-
`;
|
|
81
|
-
}
|
|
82
|
-
#renderItem(item) {
|
|
83
|
-
return html ` <div>Render something here</div> `;
|
|
84
|
-
}
|
|
85
|
-
static { this.styles = [
|
|
86
|
-
css `
|
|
87
|
-
#add-button {
|
|
88
|
-
width: 100%;
|
|
89
|
-
}
|
|
90
|
-
`,
|
|
91
|
-
]; }
|
|
92
|
-
};
|
|
93
|
-
__decorate([
|
|
94
|
-
property()
|
|
95
|
-
], UmbInputDocumentGranularPermissionElement.prototype, "value", null);
|
|
96
|
-
__decorate([
|
|
97
|
-
state()
|
|
98
|
-
], UmbInputDocumentGranularPermissionElement.prototype, "_items", void 0);
|
|
99
|
-
UmbInputDocumentGranularPermissionElement = __decorate([
|
|
100
|
-
customElement('umb-input-document-granular-permission')
|
|
101
|
-
], UmbInputDocumentGranularPermissionElement);
|
|
102
|
-
export default UmbInputDocumentGranularPermissionElement;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './manifests.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './manifests.js';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ManifestUserGranularPermission, ManifestUserPermission } from '../../../core/extension-registry/index.js';
|
|
2
|
-
export declare const UMB_USER_PERMISSION_DOCUMENT_CREATE = "Umb.UserPermission.Document.Create";
|
|
3
|
-
export declare const UMB_USER_PERMISSION_DOCUMENT_READ = "Umb.UserPermission.Document.Read";
|
|
4
|
-
export declare const UMB_USER_PERMISSION_DOCUMENT_UPDATE = "Umb.UserPermission.Document.Update";
|
|
5
|
-
export declare const UMB_USER_PERMISSION_DOCUMENT_DELETE = "Umb.UserPermission.Document.Delete";
|
|
6
|
-
export declare const UMB_USER_PERMISSION_DOCUMENT_CREATE_BLUEPRINT = "Umb.UserPermission.Document.CreateBlueprint";
|
|
7
|
-
export declare const UMB_USER_PERMISSION_DOCUMENT_NOTIFICATIONS = "Umb.UserPermission.Document.Notifications";
|
|
8
|
-
export declare const UMB_USER_PERMISSION_DOCUMENT_PUBLISH = "Umb.UserPermission.Document.Publish";
|
|
9
|
-
export declare const UMB_USER_PERMISSION_DOCUMENT_PERMISSIONS = "Umb.UserPermission.Document.Permissions";
|
|
10
|
-
export declare const UMB_USER_PERMISSION_DOCUMENT_SEND_FOR_APPROVAL = "Umb.UserPermission.Document.SendForApproval";
|
|
11
|
-
export declare const UMB_USER_PERMISSION_DOCUMENT_UNPUBLISH = "Umb.UserPermission.Document.Unpublish";
|
|
12
|
-
export declare const UMB_USER_PERMISSION_DOCUMENT_COPY = "Umb.UserPermission.Document.Copy";
|
|
13
|
-
export declare const UMB_USER_PERMISSION_DOCUMENT_MOVE = "Umb.UserPermission.Document.Move";
|
|
14
|
-
export declare const UMB_USER_PERMISSION_DOCUMENT_SORT = "Umb.UserPermission.Document.Sort";
|
|
15
|
-
export declare const UMB_USER_PERMISSION_DOCUMENT_CULTURE_AND_HOSTNAMES = "Umb.UserPermission.Document.CultureAndHostnames";
|
|
16
|
-
export declare const UMB_USER_PERMISSION_DOCUMENT_PUBLIC_ACCESS = "Umb.UserPermission.Document.PublicAccess";
|
|
17
|
-
export declare const UMB_USER_PERMISSION_DOCUMENT_ROLLBACK = "Umb.UserPermission.Document.Rollback";
|
|
18
|
-
export declare const granularPermissions: Array<ManifestUserGranularPermission>;
|
|
19
|
-
export declare const manifests: (ManifestUserPermission | ManifestUserGranularPermission)[];
|