@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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* TinyMCE version 6.
|
|
2
|
+
* TinyMCE version 6.6.1 (2023-08-02)
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
(function () {
|
|
@@ -616,7 +616,6 @@
|
|
|
616
616
|
const documentElement = element => SugarElement.fromDom(documentOrOwner(element).dom.documentElement);
|
|
617
617
|
const defaultView = element => SugarElement.fromDom(documentOrOwner(element).dom.defaultView);
|
|
618
618
|
const parent = element => Optional.from(element.dom.parentNode).map(SugarElement.fromDom);
|
|
619
|
-
const parentNode = element => parent(element);
|
|
620
619
|
const parentElement = element => Optional.from(element.dom.parentElement).map(SugarElement.fromDom);
|
|
621
620
|
const parents = (element, isRoot) => {
|
|
622
621
|
const stop = isFunction(isRoot) ? isRoot : never;
|
|
@@ -6204,8 +6203,6 @@
|
|
|
6204
6203
|
const navigate = tabbingConfig.cyclic ? cycleNext : tryNext;
|
|
6205
6204
|
return go(component, simulatedEvent, tabbingConfig, navigate);
|
|
6206
6205
|
};
|
|
6207
|
-
const isFirstChild = elem => parentNode(elem).bind(firstChild).exists(child => eq(child, elem));
|
|
6208
|
-
const goFromPseudoTabstop = (component, simulatedEvent, tabbingConfig) => findCurrent(component, tabbingConfig).filter(elem => !tabbingConfig.useTabstopAt(elem)).bind(elem => (isFirstChild(elem) ? goBackwards : goForwards)(component, simulatedEvent, tabbingConfig));
|
|
6209
6206
|
const execute = (component, simulatedEvent, tabbingConfig) => tabbingConfig.onEnter.bind(f => f(component, simulatedEvent));
|
|
6210
6207
|
const exit = (component, simulatedEvent, tabbingConfig) => tabbingConfig.onEscape.bind(f => f(component, simulatedEvent));
|
|
6211
6208
|
const getKeydownRules = constant$1([
|
|
@@ -6219,10 +6216,7 @@
|
|
|
6219
6216
|
inSet(ENTER)
|
|
6220
6217
|
]), execute)
|
|
6221
6218
|
]);
|
|
6222
|
-
const getKeyupRules = constant$1([
|
|
6223
|
-
rule(inSet(ESCAPE), exit),
|
|
6224
|
-
rule(inSet(TAB), goFromPseudoTabstop)
|
|
6225
|
-
]);
|
|
6219
|
+
const getKeyupRules = constant$1([rule(inSet(ESCAPE), exit)]);
|
|
6226
6220
|
return typical(schema, NoState.init, getKeydownRules, getKeyupRules, () => Optional.some(focusIn));
|
|
6227
6221
|
};
|
|
6228
6222
|
|
|
@@ -8564,10 +8558,6 @@
|
|
|
8564
8558
|
default: !global$5.deviceType.isTouch()
|
|
8565
8559
|
});
|
|
8566
8560
|
registerOption('sidebar_show', { processor: 'string' });
|
|
8567
|
-
registerOption('help_accessibility', {
|
|
8568
|
-
processor: 'boolean',
|
|
8569
|
-
default: editor.hasPlugin('help')
|
|
8570
|
-
});
|
|
8571
8561
|
};
|
|
8572
8562
|
const isReadOnly = option$2('readonly');
|
|
8573
8563
|
const getHeightOption = option$2('height');
|
|
@@ -8605,7 +8595,6 @@
|
|
|
8605
8595
|
const getPasteAsText = option$2('paste_as_text');
|
|
8606
8596
|
const getSidebarShow = option$2('sidebar_show');
|
|
8607
8597
|
const promotionEnabled = option$2('promotion');
|
|
8608
|
-
const useHelpAccessibility = option$2('help_accessibility');
|
|
8609
8598
|
const isSkinDisabled = editor => editor.options.get('skin') === false;
|
|
8610
8599
|
const isMenubarEnabled = editor => editor.options.get('menubar') !== false;
|
|
8611
8600
|
const getSkinUrl = editor => {
|
|
@@ -8724,8 +8713,7 @@
|
|
|
8724
8713
|
useBranding: useBranding,
|
|
8725
8714
|
getResize: getResize,
|
|
8726
8715
|
getPasteAsText: getPasteAsText,
|
|
8727
|
-
getSidebarShow: getSidebarShow
|
|
8728
|
-
useHelpAccessibility: useHelpAccessibility
|
|
8716
|
+
getSidebarShow: getSidebarShow
|
|
8729
8717
|
});
|
|
8730
8718
|
|
|
8731
8719
|
const autocompleteSelector = '[data-mce-autocompleter]';
|
|
@@ -10444,7 +10432,13 @@
|
|
|
10444
10432
|
|
|
10445
10433
|
const foregroundId = 'forecolor';
|
|
10446
10434
|
const backgroundId = 'hilitecolor';
|
|
10447
|
-
const
|
|
10435
|
+
const DEFAULT_COLS = 5;
|
|
10436
|
+
const calcCols = colors => Math.max(DEFAULT_COLS, Math.ceil(Math.sqrt(colors)));
|
|
10437
|
+
const calcColsOption = (editor, numColors) => {
|
|
10438
|
+
const calculatedCols = calcCols(numColors);
|
|
10439
|
+
const fallbackCols = option$1('color_cols')(editor);
|
|
10440
|
+
return fallbackCols !== DEFAULT_COLS ? fallbackCols : calculatedCols;
|
|
10441
|
+
};
|
|
10448
10442
|
const mapColors = colorMap => {
|
|
10449
10443
|
const colors = [];
|
|
10450
10444
|
for (let i = 0; i < colorMap.length; i += 2) {
|
|
@@ -10474,19 +10468,6 @@
|
|
|
10474
10468
|
};
|
|
10475
10469
|
}
|
|
10476
10470
|
};
|
|
10477
|
-
const colorColsProcessor = value => {
|
|
10478
|
-
if (isNumber(value) && value > 0) {
|
|
10479
|
-
return {
|
|
10480
|
-
value,
|
|
10481
|
-
valid: true
|
|
10482
|
-
};
|
|
10483
|
-
} else {
|
|
10484
|
-
return {
|
|
10485
|
-
valid: false,
|
|
10486
|
-
message: 'Must be a positive number.'
|
|
10487
|
-
};
|
|
10488
|
-
}
|
|
10489
|
-
};
|
|
10490
10471
|
registerOption('color_map', {
|
|
10491
10472
|
processor: colorProcessor,
|
|
10492
10473
|
default: [
|
|
@@ -10539,16 +10520,16 @@
|
|
|
10539
10520
|
registerOption('color_map_background', { processor: colorProcessor });
|
|
10540
10521
|
registerOption('color_map_foreground', { processor: colorProcessor });
|
|
10541
10522
|
registerOption('color_cols', {
|
|
10542
|
-
processor:
|
|
10543
|
-
default: calcCols(editor)
|
|
10523
|
+
processor: 'number',
|
|
10524
|
+
default: calcCols(getColors$2(editor, 'default').length)
|
|
10544
10525
|
});
|
|
10545
10526
|
registerOption('color_cols_foreground', {
|
|
10546
|
-
processor:
|
|
10547
|
-
default:
|
|
10527
|
+
processor: 'number',
|
|
10528
|
+
default: calcColsOption(editor, getColors$2(editor, foregroundId).length)
|
|
10548
10529
|
});
|
|
10549
10530
|
registerOption('color_cols_background', {
|
|
10550
|
-
processor:
|
|
10551
|
-
default:
|
|
10531
|
+
processor: 'number',
|
|
10532
|
+
default: calcColsOption(editor, getColors$2(editor, backgroundId).length)
|
|
10552
10533
|
});
|
|
10553
10534
|
registerOption('custom_colors', {
|
|
10554
10535
|
processor: 'boolean',
|
|
@@ -10563,6 +10544,20 @@
|
|
|
10563
10544
|
default: fallbackColor
|
|
10564
10545
|
});
|
|
10565
10546
|
};
|
|
10547
|
+
const colorColsOption = (editor, id) => {
|
|
10548
|
+
if (id === foregroundId) {
|
|
10549
|
+
return option$1('color_cols_foreground')(editor);
|
|
10550
|
+
} else if (id === backgroundId) {
|
|
10551
|
+
return option$1('color_cols_background')(editor);
|
|
10552
|
+
} else {
|
|
10553
|
+
return option$1('color_cols')(editor);
|
|
10554
|
+
}
|
|
10555
|
+
};
|
|
10556
|
+
const getColorCols$1 = (editor, id) => {
|
|
10557
|
+
const colorCols = Math.round(colorColsOption(editor, id));
|
|
10558
|
+
return colorCols > 0 ? colorCols : DEFAULT_COLS;
|
|
10559
|
+
};
|
|
10560
|
+
const hasCustomColors$1 = option$1('custom_colors');
|
|
10566
10561
|
const getColors$2 = (editor, id) => {
|
|
10567
10562
|
if (id === foregroundId && editor.options.isSet('color_map_foreground')) {
|
|
10568
10563
|
return option$1('color_map_foreground')(editor);
|
|
@@ -10572,29 +10567,6 @@
|
|
|
10572
10567
|
return option$1('color_map')(editor);
|
|
10573
10568
|
}
|
|
10574
10569
|
};
|
|
10575
|
-
const calcCols = (editor, id = 'default') => Math.max(fallbackCols, Math.ceil(Math.sqrt(getColors$2(editor, id).length)));
|
|
10576
|
-
const defaultCols = (editor, id) => {
|
|
10577
|
-
const defaultCols = option$1('color_cols')(editor);
|
|
10578
|
-
const calculatedCols = calcCols(editor, id);
|
|
10579
|
-
if (defaultCols === calcCols(editor)) {
|
|
10580
|
-
return calculatedCols;
|
|
10581
|
-
} else {
|
|
10582
|
-
return defaultCols;
|
|
10583
|
-
}
|
|
10584
|
-
};
|
|
10585
|
-
const getColorCols$1 = (editor, id = 'default') => {
|
|
10586
|
-
const getCols = () => {
|
|
10587
|
-
if (id === foregroundId) {
|
|
10588
|
-
return option$1('color_cols_foreground')(editor);
|
|
10589
|
-
} else if (id === backgroundId) {
|
|
10590
|
-
return option$1('color_cols_background')(editor);
|
|
10591
|
-
} else {
|
|
10592
|
-
return option$1('color_cols')(editor);
|
|
10593
|
-
}
|
|
10594
|
-
};
|
|
10595
|
-
return Math.round(getCols());
|
|
10596
|
-
};
|
|
10597
|
-
const hasCustomColors$1 = option$1('custom_colors');
|
|
10598
10570
|
const getDefaultForegroundColor = option$1('color_default_foreground');
|
|
10599
10571
|
const getDefaultBackgroundColor = option$1('color_default_background');
|
|
10600
10572
|
|
|
@@ -10910,8 +10882,7 @@
|
|
|
10910
10882
|
|
|
10911
10883
|
const cellOverEvent = generate$6('cell-over');
|
|
10912
10884
|
const cellExecuteEvent = generate$6('cell-execute');
|
|
10913
|
-
const
|
|
10914
|
-
const makeCell = (row, col, label) => {
|
|
10885
|
+
const makeCell = (row, col, labelId) => {
|
|
10915
10886
|
const emitCellOver = c => emitWith(c, cellOverEvent, {
|
|
10916
10887
|
row,
|
|
10917
10888
|
col
|
|
@@ -10929,7 +10900,7 @@
|
|
|
10929
10900
|
tag: 'div',
|
|
10930
10901
|
attributes: {
|
|
10931
10902
|
role: 'button',
|
|
10932
|
-
['aria-
|
|
10903
|
+
['aria-labelledby']: labelId
|
|
10933
10904
|
}
|
|
10934
10905
|
},
|
|
10935
10906
|
behaviours: derive$1([
|
|
@@ -10947,13 +10918,12 @@
|
|
|
10947
10918
|
])
|
|
10948
10919
|
});
|
|
10949
10920
|
};
|
|
10950
|
-
const makeCells = (
|
|
10921
|
+
const makeCells = (labelId, numRows, numCols) => {
|
|
10951
10922
|
const cells = [];
|
|
10952
10923
|
for (let i = 0; i < numRows; i++) {
|
|
10953
10924
|
const row = [];
|
|
10954
10925
|
for (let j = 0; j < numCols; j++) {
|
|
10955
|
-
|
|
10956
|
-
row.push(makeCell(i, j, label));
|
|
10926
|
+
row.push(makeCell(i, j, labelId));
|
|
10957
10927
|
}
|
|
10958
10928
|
cells.push(row);
|
|
10959
10929
|
}
|
|
@@ -10968,16 +10938,17 @@
|
|
|
10968
10938
|
};
|
|
10969
10939
|
const makeComponents = cells => bind$3(cells, cellRow => map$2(cellRow, premade));
|
|
10970
10940
|
const makeLabelText = (row, col) => text$2(`${ col }x${ row }`);
|
|
10971
|
-
const renderInsertTableMenuItem =
|
|
10941
|
+
const renderInsertTableMenuItem = spec => {
|
|
10972
10942
|
const numRows = 10;
|
|
10973
10943
|
const numColumns = 10;
|
|
10974
|
-
const
|
|
10975
|
-
const cells = makeCells(
|
|
10944
|
+
const sizeLabelId = generate$6('size-label');
|
|
10945
|
+
const cells = makeCells(sizeLabelId, numRows, numColumns);
|
|
10976
10946
|
const emptyLabelText = makeLabelText(0, 0);
|
|
10977
10947
|
const memLabel = record({
|
|
10978
10948
|
dom: {
|
|
10979
10949
|
tag: 'span',
|
|
10980
|
-
classes: ['tox-insert-table-picker__label']
|
|
10950
|
+
classes: ['tox-insert-table-picker__label'],
|
|
10951
|
+
attributes: { id: sizeLabelId }
|
|
10981
10952
|
},
|
|
10982
10953
|
components: [emptyLabelText],
|
|
10983
10954
|
behaviours: derive$1([Replacing.config({})])
|
|
@@ -11902,15 +11873,12 @@
|
|
|
11902
11873
|
|
|
11903
11874
|
const nonScrollingOverflows = [
|
|
11904
11875
|
'visible',
|
|
11905
|
-
'hidden'
|
|
11906
|
-
'clip'
|
|
11876
|
+
'hidden'
|
|
11907
11877
|
];
|
|
11908
|
-
const isScrollingOverflowValue = value => trim$1(value).length > 0 && !contains$2(nonScrollingOverflows, value);
|
|
11909
11878
|
const isScroller = elem => {
|
|
11910
11879
|
if (isHTMLElement(elem)) {
|
|
11911
|
-
const
|
|
11912
|
-
|
|
11913
|
-
return isScrollingOverflowValue(overflowX) || isScrollingOverflowValue(overflowY);
|
|
11880
|
+
const overflow = get$e(elem, 'overflow');
|
|
11881
|
+
return trim$1(overflow).length > 0 && !contains$2(nonScrollingOverflows, overflow);
|
|
11914
11882
|
} else {
|
|
11915
11883
|
return false;
|
|
11916
11884
|
}
|
|
@@ -14734,7 +14702,7 @@
|
|
|
14734
14702
|
const isSafariOrFirefox = isSafari || isFirefox;
|
|
14735
14703
|
const isChromium = browser.isChromium();
|
|
14736
14704
|
const isElementScrollAtBottom = ({scrollTop, scrollHeight, clientHeight}) => Math.ceil(scrollTop) + clientHeight >= scrollHeight;
|
|
14737
|
-
const scrollToY = (win, y) => win.scrollTo(0, y === 'bottom' ?
|
|
14705
|
+
const scrollToY = (win, y) => win.scrollTo(0, y === 'bottom' ? win.document.body.scrollHeight : y);
|
|
14738
14706
|
const getScrollingElement = (doc, html) => {
|
|
14739
14707
|
const body = doc.body;
|
|
14740
14708
|
return Optional.from(!/^<!DOCTYPE (html|HTML)/.test(html) && (!isChromium && !isSafari || isNonNullable(body) && (body.scrollTop !== 0 || Math.abs(body.scrollHeight - body.clientHeight) > 1)) ? body : doc.documentElement);
|
|
@@ -14768,7 +14736,7 @@
|
|
|
14768
14736
|
}
|
|
14769
14737
|
});
|
|
14770
14738
|
};
|
|
14771
|
-
const throttleInterval =
|
|
14739
|
+
const throttleInterval = isSafariOrFirefox ? Optional.some(isSafari ? 500 : 200) : Optional.none();
|
|
14772
14740
|
const writeValueThrottler = throttleInterval.map(interval => adaptable(writeValue, interval));
|
|
14773
14741
|
const getDynamicSource = (initialData, stream) => {
|
|
14774
14742
|
const cachedValue = Cell(initialData.getOr(''));
|
|
@@ -15143,13 +15111,6 @@
|
|
|
15143
15111
|
onDehighlightItem: updateAriaOnDehighlight
|
|
15144
15112
|
}
|
|
15145
15113
|
},
|
|
15146
|
-
getAnchorOverrides: () => {
|
|
15147
|
-
return {
|
|
15148
|
-
maxHeightFunction: (element, available) => {
|
|
15149
|
-
anchored()(element, available - 10);
|
|
15150
|
-
}
|
|
15151
|
-
};
|
|
15152
|
-
},
|
|
15153
15114
|
fetch: comp => Future.nu(curry(spec.fetch, comp))
|
|
15154
15115
|
}));
|
|
15155
15116
|
return memDropdown.asSpec();
|
|
@@ -18655,10 +18616,7 @@
|
|
|
18655
18616
|
dom: detail.dom,
|
|
18656
18617
|
components: extra.components,
|
|
18657
18618
|
behaviours: augment(detail.toolbarBehaviours, extra.behaviours),
|
|
18658
|
-
apis: {
|
|
18659
|
-
setGroups,
|
|
18660
|
-
refresh: noop
|
|
18661
|
-
},
|
|
18619
|
+
apis: { setGroups },
|
|
18662
18620
|
domModification: { attributes: { role: 'group' } }
|
|
18663
18621
|
};
|
|
18664
18622
|
};
|
|
@@ -20603,7 +20561,7 @@
|
|
|
20603
20561
|
name: 'more',
|
|
20604
20562
|
icon: Optional.some('more-drawer'),
|
|
20605
20563
|
enabled: true,
|
|
20606
|
-
tooltip: Optional.some('
|
|
20564
|
+
tooltip: Optional.some('More...'),
|
|
20607
20565
|
primary: false,
|
|
20608
20566
|
buttonType: Optional.none(),
|
|
20609
20567
|
borderless: false
|
|
@@ -21885,7 +21843,7 @@
|
|
|
21885
21843
|
const createBespokeNumberInput = (editor, backstage, spec) => {
|
|
21886
21844
|
let currentComp = Optional.none();
|
|
21887
21845
|
const getValueFromCurrentComp = comp => comp.map(alloyComp => Representing.getValue(alloyComp)).getOr('');
|
|
21888
|
-
const onSetup = onSetupEvent(editor, 'NodeChange
|
|
21846
|
+
const onSetup = onSetupEvent(editor, 'NodeChange', api => {
|
|
21889
21847
|
const comp = api.getComponent();
|
|
21890
21848
|
currentComp = Optional.some(comp);
|
|
21891
21849
|
spec.updateInputValue(comp);
|
|
@@ -21926,7 +21884,7 @@
|
|
|
21926
21884
|
const makeStepperButton = (action, title, tooltip, classes) => {
|
|
21927
21885
|
const translatedTooltip = backstage.shared.providers.translate(tooltip);
|
|
21928
21886
|
const altExecuting = generate$6('altExecuting');
|
|
21929
|
-
const onSetup = onSetupEvent(editor, 'NodeChange
|
|
21887
|
+
const onSetup = onSetupEvent(editor, 'NodeChange', api => {
|
|
21930
21888
|
Disabling.set(api.getComponent(), !editor.selection.isEditable());
|
|
21931
21889
|
});
|
|
21932
21890
|
const onClick = comp => {
|
|
@@ -24966,9 +24924,9 @@
|
|
|
24966
24924
|
const sections = foldl(menuConfig, (acc, name) => {
|
|
24967
24925
|
return get$g(contextMenus, name.toLowerCase()).map(menu => {
|
|
24968
24926
|
const items = menu.update(selectedElement);
|
|
24969
|
-
if (isString(items)
|
|
24927
|
+
if (isString(items)) {
|
|
24970
24928
|
return addContextMenuGroup(acc, items.split(' '));
|
|
24971
|
-
} else if (
|
|
24929
|
+
} else if (items.length > 0) {
|
|
24972
24930
|
const allItems = map$2(items, makeContextItem);
|
|
24973
24931
|
return addContextMenuGroup(acc, allItems);
|
|
24974
24932
|
} else {
|
|
@@ -25945,83 +25903,22 @@
|
|
|
25945
25903
|
}]
|
|
25946
25904
|
};
|
|
25947
25905
|
};
|
|
25948
|
-
const
|
|
25949
|
-
const shortcutText = convertText('Alt+0');
|
|
25950
|
-
const text = `Press {0} for help`;
|
|
25951
|
-
return {
|
|
25952
|
-
dom: {
|
|
25953
|
-
tag: 'div',
|
|
25954
|
-
classes: ['tox-statusbar__help-text']
|
|
25955
|
-
},
|
|
25956
|
-
components: [text$2(global$8.translate([
|
|
25957
|
-
text,
|
|
25958
|
-
shortcutText
|
|
25959
|
-
]))]
|
|
25960
|
-
};
|
|
25961
|
-
};
|
|
25962
|
-
const renderRightContainer = () => {
|
|
25906
|
+
const getTextComponents = () => {
|
|
25963
25907
|
const components = [];
|
|
25908
|
+
if (useElementPath(editor)) {
|
|
25909
|
+
components.push(renderElementPath(editor, {}, providersBackstage));
|
|
25910
|
+
}
|
|
25964
25911
|
if (editor.hasPlugin('wordcount')) {
|
|
25965
25912
|
components.push(renderWordCount(editor, providersBackstage));
|
|
25966
25913
|
}
|
|
25967
25914
|
if (useBranding(editor)) {
|
|
25968
25915
|
components.push(renderBranding());
|
|
25969
25916
|
}
|
|
25970
|
-
return {
|
|
25971
|
-
dom: {
|
|
25972
|
-
tag: 'div',
|
|
25973
|
-
classes: ['tox-statusbar__right-container']
|
|
25974
|
-
},
|
|
25975
|
-
components
|
|
25976
|
-
};
|
|
25977
|
-
};
|
|
25978
|
-
const getTextComponents = () => {
|
|
25979
|
-
const components = [];
|
|
25980
|
-
const shouldRenderHelp = useHelpAccessibility(editor);
|
|
25981
|
-
const shouldRenderElementPath = useElementPath(editor);
|
|
25982
|
-
const shouldRenderRightContainer = useBranding(editor) || editor.hasPlugin('wordcount');
|
|
25983
|
-
const getTextComponentClasses = () => {
|
|
25984
|
-
const flexStart = 'tox-statusbar__text-container--flex-start';
|
|
25985
|
-
const flexEnd = 'tox-statusbar__text-container--flex-end';
|
|
25986
|
-
const spaceAround = 'tox-statusbar__text-container--space-around';
|
|
25987
|
-
if (shouldRenderHelp) {
|
|
25988
|
-
const container3Columns = 'tox-statusbar__text-container-3-cols';
|
|
25989
|
-
if (!shouldRenderRightContainer && !shouldRenderElementPath) {
|
|
25990
|
-
return [
|
|
25991
|
-
container3Columns,
|
|
25992
|
-
spaceAround
|
|
25993
|
-
];
|
|
25994
|
-
}
|
|
25995
|
-
if (shouldRenderRightContainer && !shouldRenderElementPath) {
|
|
25996
|
-
return [
|
|
25997
|
-
container3Columns,
|
|
25998
|
-
flexEnd
|
|
25999
|
-
];
|
|
26000
|
-
}
|
|
26001
|
-
return [
|
|
26002
|
-
container3Columns,
|
|
26003
|
-
flexStart
|
|
26004
|
-
];
|
|
26005
|
-
}
|
|
26006
|
-
return [shouldRenderRightContainer && !shouldRenderElementPath ? flexEnd : flexStart];
|
|
26007
|
-
};
|
|
26008
|
-
if (shouldRenderElementPath) {
|
|
26009
|
-
components.push(renderElementPath(editor, {}, providersBackstage));
|
|
26010
|
-
}
|
|
26011
|
-
if (shouldRenderHelp) {
|
|
26012
|
-
components.push(renderHelpAccessibility());
|
|
26013
|
-
}
|
|
26014
|
-
if (shouldRenderRightContainer) {
|
|
26015
|
-
components.push(renderRightContainer());
|
|
26016
|
-
}
|
|
26017
25917
|
if (components.length > 0) {
|
|
26018
25918
|
return [{
|
|
26019
25919
|
dom: {
|
|
26020
25920
|
tag: 'div',
|
|
26021
|
-
classes: [
|
|
26022
|
-
'tox-statusbar__text-container',
|
|
26023
|
-
...getTextComponentClasses()
|
|
26024
|
-
]
|
|
25921
|
+
classes: ['tox-statusbar__text-container']
|
|
26025
25922
|
},
|
|
26026
25923
|
components
|
|
26027
25924
|
}];
|