@umbraco-cms/backoffice 14.0.0-d542ed7d → 14.0.0-d9a74398
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/README.md +12 -6
- package/dist-cms/apps/app/app.element.d.ts +0 -1
- package/dist-cms/apps/app/app.element.js +21 -1
- package/dist-cms/apps/backoffice/backoffice.context.d.ts +5 -1
- package/dist-cms/apps/backoffice/backoffice.context.js +13 -5
- package/dist-cms/apps/backoffice/backoffice.element.d.ts +0 -1
- package/dist-cms/apps/backoffice/backoffice.element.js +5 -6
- package/dist-cms/apps/backoffice/components/backoffice-header-sections.element.d.ts +0 -2
- package/dist-cms/apps/backoffice/components/backoffice-header-sections.element.js +6 -13
- package/dist-cms/apps/backoffice/components/backoffice-main.element.js +11 -9
- package/dist-cms/apps/backoffice/{extension.controller.js → extension-initializer.controller.js} +2 -0
- package/dist-cms/assets/lang/da-dk.d.ts +3 -0
- package/dist-cms/assets/lang/da-dk.js +2989 -0
- package/dist-cms/assets/lang/da-dk.ts +3246 -0
- package/dist-cms/assets/lang/en-us.d.ts +3 -0
- package/dist-cms/assets/lang/en-us.js +2966 -0
- package/dist-cms/assets/lang/en-us.ts +3219 -0
- package/dist-cms/css/uui-css.css +13 -5
- package/dist-cms/custom-elements.json +208 -160
- package/dist-cms/external/backend-api/index.js +1 -1
- package/dist-cms/external/lit/index.js +27 -27
- package/dist-cms/external/monaco-editor/{abap-42d5eca7.js → abap-b029dff1.js} +1 -1
- package/dist-cms/external/monaco-editor/{apex-051da044.js → apex-039bfc5f.js} +1 -1
- package/dist-cms/external/monaco-editor/{bundle.css → assets/bundle-b9e43664.css} +611 -285
- package/dist-cms/external/monaco-editor/{azcli-ad3d7346.js → azcli-f1f7c576.js} +1 -1
- package/dist-cms/external/monaco-editor/{bat-0217c0bc.js → bat-86aea46a.js} +1 -1
- package/dist-cms/external/monaco-editor/{bicep-0cadb30a.js → bicep-75c0c4d5.js} +1 -1
- package/dist-cms/external/monaco-editor/{cameligo-ac55f854.js → cameligo-8043f913.js} +1 -1
- package/dist-cms/external/monaco-editor/{clojure-388a0d58.js → clojure-73642b02.js} +1 -1
- package/dist-cms/external/monaco-editor/{coffee-7e7a2971.js → coffee-a18badcf.js} +1 -1
- package/dist-cms/external/monaco-editor/{cpp-840d082a.js → cpp-4034161e.js} +1 -1
- package/dist-cms/external/monaco-editor/{csharp-b3429875.js → csharp-49cbf0d2.js} +1 -1
- package/dist-cms/external/monaco-editor/{csp-83442b86.js → csp-d207cac4.js} +1 -1
- package/dist-cms/external/monaco-editor/{css-7a34b8c3.js → css-74326df0.js} +1 -1
- package/dist-cms/external/monaco-editor/{cssMode-98237bd7.js → cssMode-57ec49ea.js} +3 -3
- package/dist-cms/external/monaco-editor/{cypher-cc9c23cc.js → cypher-49f5f839.js} +1 -1
- package/dist-cms/external/monaco-editor/{dart-00a58d1c.js → dart-84b7c6b4.js} +1 -1
- package/dist-cms/external/monaco-editor/{dockerfile-668ee825.js → dockerfile-bbf114b2.js} +1 -1
- package/dist-cms/external/monaco-editor/{ecl-b42ffd48.js → ecl-15840f49.js} +1 -1
- package/dist-cms/external/monaco-editor/{elixir-b9ceca92.js → elixir-e479e18e.js} +2 -2
- package/dist-cms/external/monaco-editor/{flow9-7e9b2e50.js → flow9-42a61225.js} +1 -1
- package/dist-cms/external/monaco-editor/{freemarker2-b9eee947.js → freemarker2-a72b9c0e.js} +2 -2
- package/dist-cms/external/monaco-editor/{fsharp-cdc5b8f1.js → fsharp-8abe6da0.js} +1 -1
- package/dist-cms/external/monaco-editor/{go-4c92fa5c.js → go-8759e9f7.js} +1 -1
- package/dist-cms/external/monaco-editor/{graphql-67842079.js → graphql-387d549c.js} +1 -1
- package/dist-cms/external/monaco-editor/{handlebars-36a3f04f.js → handlebars-8fc61d07.js} +2 -2
- package/dist-cms/external/monaco-editor/{hcl-59febf1c.js → hcl-a88f331a.js} +1 -1
- package/dist-cms/external/monaco-editor/{html-b0d38e59.js → html-4320ed19.js} +2 -2
- package/dist-cms/external/monaco-editor/{htmlMode-b85c3f7d.js → htmlMode-95c2e58e.js} +3 -3
- package/dist-cms/external/monaco-editor/{index-534fb84c.js → index-e4ee5993.js} +422 -408
- package/dist-cms/external/monaco-editor/index.js +1 -1
- package/dist-cms/external/monaco-editor/{ini-1cf2ce67.js → ini-18bf1153.js} +1 -1
- package/dist-cms/external/monaco-editor/{java-e4fb14c6.js → java-000a6283.js} +1 -1
- package/dist-cms/external/monaco-editor/javascript-13505434.js +6 -0
- package/dist-cms/external/monaco-editor/{jsonMode-fa2b41c8.js → jsonMode-1d541b8e.js} +6 -6
- package/dist-cms/external/monaco-editor/{julia-9b6c6458.js → julia-9a5df632.js} +1 -1
- package/dist-cms/external/monaco-editor/{kotlin-b66c14ff.js → kotlin-06ee8898.js} +1 -1
- package/dist-cms/external/monaco-editor/{less-8dc8685d.js → less-dd86a68c.js} +1 -1
- package/dist-cms/external/monaco-editor/{lexon-59c0b911.js → lexon-8d4b0444.js} +1 -1
- package/dist-cms/external/monaco-editor/{liquid-be38812f.js → liquid-7aa20dd8.js} +2 -2
- package/dist-cms/external/monaco-editor/{lua-3f4d9098.js → lua-9adddcd9.js} +1 -1
- package/dist-cms/external/monaco-editor/{m3-82a8c502.js → m3-aa2dcf72.js} +1 -1
- package/dist-cms/external/monaco-editor/{markdown-07c3fa1e.js → markdown-0f073a3a.js} +1 -1
- package/dist-cms/external/monaco-editor/mdx-8a1e4ae9.js +6 -0
- package/dist-cms/external/monaco-editor/{mips-59ddf2f4.js → mips-bdd96c5a.js} +1 -1
- package/dist-cms/external/monaco-editor/{msdax-12ec689c.js → msdax-1ac55115.js} +1 -1
- package/dist-cms/external/monaco-editor/{mysql-2958efa4.js → mysql-b530c105.js} +1 -1
- package/dist-cms/external/monaco-editor/{objective-c-08d94025.js → objective-c-951ded7b.js} +1 -1
- package/dist-cms/external/monaco-editor/{pascal-b686b438.js → pascal-7442fd46.js} +1 -1
- package/dist-cms/external/monaco-editor/{pascaligo-96457e5f.js → pascaligo-385edc0e.js} +1 -1
- package/dist-cms/external/monaco-editor/{perl-b938bdad.js → perl-d5fb326c.js} +1 -1
- package/dist-cms/external/monaco-editor/{pgsql-42970e97.js → pgsql-2d7db25a.js} +1 -1
- package/dist-cms/external/monaco-editor/{php-7476401f.js → php-1daff147.js} +1 -1
- package/dist-cms/external/monaco-editor/{pla-aaf0caa2.js → pla-1b3e1614.js} +1 -1
- package/dist-cms/external/monaco-editor/{postiats-759ff404.js → postiats-9db13649.js} +1 -1
- package/dist-cms/external/monaco-editor/{powerquery-a33a8de4.js → powerquery-4c428232.js} +1 -1
- package/dist-cms/external/monaco-editor/{powershell-ec154f36.js → powershell-d3380668.js} +1 -1
- package/dist-cms/external/monaco-editor/{protobuf-e42d83dc.js → protobuf-941cf3e8.js} +1 -1
- package/dist-cms/external/monaco-editor/{pug-04b2d67c.js → pug-cfe384ef.js} +1 -1
- package/dist-cms/external/monaco-editor/{python-b3b058ea.js → python-b84d078b.js} +2 -2
- package/dist-cms/external/monaco-editor/{qsharp-5376e9d1.js → qsharp-e125d03f.js} +1 -1
- package/dist-cms/external/monaco-editor/{r-d212ba98.js → r-e0a01d4f.js} +1 -1
- package/dist-cms/external/monaco-editor/{razor-911a705a.js → razor-96e08c0a.js} +2 -2
- package/dist-cms/external/monaco-editor/{redis-51e44009.js → redis-d0a12fea.js} +1 -1
- package/dist-cms/external/monaco-editor/{redshift-8de2cfdc.js → redshift-a163b94a.js} +1 -1
- package/dist-cms/external/monaco-editor/{restructuredtext-3f99254a.js → restructuredtext-5a906e1a.js} +1 -1
- package/dist-cms/external/monaco-editor/{ruby-64a73e64.js → ruby-05b021bf.js} +1 -1
- package/dist-cms/external/monaco-editor/{rust-2a0390f1.js → rust-3d80982c.js} +1 -1
- package/dist-cms/external/monaco-editor/{sb-4d8fa557.js → sb-2020a5af.js} +1 -1
- package/dist-cms/external/monaco-editor/{scala-00d62260.js → scala-54469b4b.js} +1 -1
- package/dist-cms/external/monaco-editor/{scheme-a0903f29.js → scheme-ff6e5671.js} +1 -1
- package/dist-cms/external/monaco-editor/{scss-3e25f7ad.js → scss-77902feb.js} +1 -1
- package/dist-cms/external/monaco-editor/{shell-9c442847.js → shell-3c06def6.js} +1 -1
- package/dist-cms/external/monaco-editor/{solidity-6b3049ed.js → solidity-3d59d6a7.js} +1 -1
- package/dist-cms/external/monaco-editor/{sophia-f4a2b303.js → sophia-12eb7ba8.js} +1 -1
- package/dist-cms/external/monaco-editor/{sparql-1d37a384.js → sparql-e42fb28a.js} +1 -1
- package/dist-cms/external/monaco-editor/{sql-946641be.js → sql-d30fd9fd.js} +1 -1
- package/dist-cms/external/monaco-editor/{st-9220dec1.js → st-ba2e774a.js} +2 -2
- package/dist-cms/external/monaco-editor/{swift-06592b81.js → swift-f0a706dd.js} +1 -1
- package/dist-cms/external/monaco-editor/{systemverilog-b5ba493c.js → systemverilog-0cfd4211.js} +1 -1
- package/dist-cms/external/monaco-editor/{tcl-3fe51e69.js → tcl-7df3c0c5.js} +1 -1
- package/dist-cms/external/monaco-editor/tsMode-4e2b13b8.js +16 -0
- package/dist-cms/external/monaco-editor/twig-f894aab2.js +6 -0
- package/dist-cms/external/monaco-editor/{typescript-4d577e09.js → typescript-6571f86d.js} +3 -3
- package/dist-cms/external/monaco-editor/{vb-e7e59935.js → vb-39a025f4.js} +1 -1
- package/dist-cms/external/monaco-editor/wgsl-ea93d538.js +303 -0
- package/dist-cms/external/monaco-editor/{xml-b05159d9.js → xml-265c28d1.js} +2 -2
- package/dist-cms/external/monaco-editor/{yaml-b4ec85f0.js → yaml-cbd1aab5.js} +3 -3
- package/dist-cms/external/rxjs/index.js +2 -2
- package/dist-cms/external/tinymce/index.js +22 -22
- package/dist-cms/external/uui/index.js +470 -292
- package/dist-cms/libs/class-api/class.mixin.js +1 -1
- package/dist-cms/libs/context-api/consume/context-consumer.controller.js +1 -3
- package/dist-cms/libs/context-api/consume/context-consumer.d.ts +0 -1
- package/dist-cms/libs/context-api/consume/context-consumer.js +36 -6
- package/dist-cms/libs/context-api/provide/context-provide.event.d.ts +21 -0
- package/dist-cms/libs/context-api/provide/context-provide.event.js +17 -0
- package/dist-cms/libs/context-api/provide/context-provider.controller.js +1 -1
- package/dist-cms/libs/context-api/provide/context-provider.d.ts +0 -6
- package/dist-cms/libs/context-api/provide/context-provider.js +18 -6
- package/dist-cms/libs/controller-api/controller-host-base.mixin.js +1 -0
- package/dist-cms/libs/controller-api/controller-host-element.mixin.d.ts +9 -3
- package/dist-cms/libs/element-api/element.mixin.d.ts +9 -2
- package/dist-cms/libs/element-api/element.mixin.js +6 -1
- package/dist-cms/libs/extension-api/condition/condition-controller-arguments.type.d.ts +7 -0
- package/dist-cms/libs/extension-api/condition/condition-controller-arguments.type.js +1 -0
- package/dist-cms/libs/extension-api/condition/extension-condition.interface.d.ts +6 -0
- package/dist-cms/libs/extension-api/condition/extension-condition.interface.js +1 -0
- package/dist-cms/libs/extension-api/condition/index.d.ts +2 -0
- package/dist-cms/libs/extension-api/condition/index.js +2 -0
- package/dist-cms/libs/extension-api/controller/base-extension-controller.d.ts +19 -0
- package/dist-cms/libs/extension-api/controller/base-extension-controller.js +178 -0
- package/dist-cms/libs/extension-api/controller/base-extensions-controller.d.ts +19 -0
- package/dist-cms/libs/extension-api/controller/base-extensions-controller.js +112 -0
- package/dist-cms/libs/extension-api/controller/extension-element-controller.d.ts +20 -0
- package/dist-cms/libs/extension-api/controller/extension-element-controller.js +82 -0
- package/dist-cms/libs/extension-api/controller/extension-manifest-controller.d.ts +9 -0
- package/dist-cms/libs/extension-api/controller/extension-manifest-controller.js +13 -0
- package/dist-cms/libs/extension-api/controller/extensions-element-controller.d.ts +13 -0
- package/dist-cms/libs/extension-api/controller/extensions-element-controller.js +29 -0
- package/dist-cms/libs/extension-api/controller/extensions-manifest-controller.d.ts +11 -0
- package/dist-cms/libs/extension-api/controller/extensions-manifest-controller.js +16 -0
- package/dist-cms/libs/extension-api/controller/index.d.ts +6 -0
- package/dist-cms/libs/extension-api/controller/index.js +6 -0
- package/dist-cms/libs/extension-api/index.d.ts +3 -1
- package/dist-cms/libs/extension-api/index.js +3 -1
- package/dist-cms/libs/extension-api/registry/extension.registry.d.ts +3 -0
- package/dist-cms/libs/extension-api/registry/extension.registry.js +82 -14
- package/dist-cms/libs/extension-api/types.d.ts +45 -8
- package/dist-cms/libs/localization-api/index.d.ts +3 -0
- package/dist-cms/libs/localization-api/index.js +3 -0
- package/dist-cms/libs/localization-api/localize.controller.d.ts +47 -0
- package/dist-cms/libs/localization-api/localize.controller.js +123 -0
- package/dist-cms/libs/localization-api/manager.d.ts +18 -0
- package/dist-cms/libs/localization-api/manager.js +40 -0
- package/dist-cms/libs/localization-api/types/translation.d.ts +3 -0
- package/dist-cms/libs/localization-api/types/translation.js +1 -0
- package/dist-cms/libs/observable-api/class-state.d.ts +2 -3
- package/dist-cms/libs/observable-api/observer.controller.d.ts +4 -3
- package/dist-cms/libs/observable-api/observer.controller.js +9 -2
- package/dist-cms/libs/observable-api/observer.d.ts +13 -2
- package/dist-cms/libs/observable-api/observer.js +32 -4
- package/dist-cms/mocks/data/data-type.data.js +1 -28
- package/dist-cms/mocks/data/document-type.data.js +2 -59
- package/dist-cms/mocks/data/log-viewer.data.d.ts +4 -4
- package/dist-cms/mocks/data/log-viewer.data.js +4 -4
- package/dist-cms/mocks/data/partial-views.data.d.ts +19 -3
- package/dist-cms/mocks/data/partial-views.data.js +277 -10
- package/dist-cms/mocks/data/utils.d.ts +2 -1
- package/dist-cms/mocks/data/utils.js +5 -0
- package/dist-cms/mocks/handlers/manifests.handlers.js +1 -1
- package/dist-cms/mocks/handlers/partial-views.handlers.d.ts +2 -1
- package/dist-cms/mocks/handlers/partial-views.handlers.js +37 -5
- package/dist-cms/packages/core/components/entity-actions-bundle/entity-actions-bundle.element.js +1 -1
- package/dist-cms/packages/core/components/extension-slot/extension-slot.element.d.ts +38 -14
- package/dist-cms/packages/core/components/extension-slot/extension-slot.element.js +81 -71
- package/dist-cms/packages/core/components/input-tiny-mce/input-tiny-mce.handlers.js +1 -1
- package/dist-cms/packages/core/components/property-type-based-property/property-type-based-property.element.js +2 -2
- package/dist-cms/packages/core/content-type/content-type-structure-manager.class.js +2 -2
- package/dist-cms/packages/core/entity-action/common/create-folder/create-folder.action.d.ts +8 -0
- package/dist-cms/packages/core/entity-action/common/create-folder/create-folder.action.js +21 -0
- package/dist-cms/packages/core/entity-action/common/index.d.ts +1 -0
- package/dist-cms/packages/core/entity-action/common/index.js +1 -0
- package/dist-cms/packages/core/entity-action/entity-action-list.element.d.ts +5 -5
- package/dist-cms/packages/core/entity-action/entity-action-list.element.js +17 -21
- package/dist-cms/packages/core/extension-registry/conditions/index.d.ts +1 -0
- package/dist-cms/packages/core/extension-registry/conditions/index.js +4 -0
- package/dist-cms/packages/core/extension-registry/conditions/manifests.d.ts +1 -0
- package/dist-cms/packages/core/extension-registry/conditions/manifests.js +3 -0
- package/dist-cms/packages/core/extension-registry/conditions/menu-alias.condition.d.ts +12 -0
- package/dist-cms/packages/core/extension-registry/conditions/menu-alias.condition.js +23 -0
- package/dist-cms/packages/core/extension-registry/conditions/section-alias.condition.d.ts +18 -0
- package/dist-cms/packages/core/extension-registry/conditions/section-alias.condition.js +23 -0
- package/dist-cms/packages/core/extension-registry/conditions/switch.condition.d.ts +19 -0
- package/dist-cms/packages/core/extension-registry/conditions/switch.condition.js +38 -0
- package/dist-cms/packages/core/extension-registry/conditions/types.d.ts +5 -0
- package/dist-cms/packages/core/extension-registry/conditions/types.js +1 -0
- package/dist-cms/packages/core/extension-registry/index.d.ts +3 -2
- package/dist-cms/packages/core/extension-registry/index.js +3 -2
- package/dist-cms/packages/core/extension-registry/models/dashboard.model.d.ts +3 -16
- package/dist-cms/packages/core/extension-registry/models/dashboard.model.js +5 -0
- package/dist-cms/packages/core/extension-registry/models/entity-action.model.d.ts +2 -5
- package/dist-cms/packages/core/extension-registry/models/index.d.ts +4 -2
- package/dist-cms/packages/core/extension-registry/models/index.js +1 -0
- package/dist-cms/packages/core/extension-registry/models/menu-item.model.d.ts +1 -7
- package/dist-cms/packages/core/extension-registry/models/property-action.model.d.ts +5 -3
- package/dist-cms/packages/core/extension-registry/models/property-editor.model.d.ts +21 -2
- package/dist-cms/packages/core/extension-registry/models/section-sidebar-app.model.d.ts +3 -6
- package/dist-cms/packages/core/extension-registry/models/section-view.model.d.ts +3 -5
- package/dist-cms/packages/core/extension-registry/models/section.model.d.ts +2 -2
- package/dist-cms/packages/core/extension-registry/models/translations.model.d.ts +40 -0
- package/dist-cms/packages/core/extension-registry/models/translations.model.js +1 -0
- package/dist-cms/packages/core/extension-registry/models/tree-item.model.d.ts +2 -2
- package/dist-cms/packages/core/extension-registry/models/workspace-action.model.d.ts +4 -7
- package/dist-cms/packages/core/extension-registry/models/workspace-editor-view.model.d.ts +3 -6
- package/dist-cms/packages/core/extension-registry/models/workspace-view-collection.model.d.ts +3 -29
- package/dist-cms/packages/core/extension-registry/{class-extensions-initializer.d.ts → multi-extensions-class-initializer.d.ts} +2 -2
- package/dist-cms/packages/core/extension-registry/{class-extensions-initializer.js → multi-extensions-class-initializer.js} +10 -2
- package/dist-cms/packages/core/index.d.ts +1 -0
- package/dist-cms/packages/core/index.js +7 -2
- package/dist-cms/packages/core/localization/index.d.ts +2 -0
- package/dist-cms/packages/core/localization/index.js +2 -0
- package/dist-cms/packages/core/localization/localize.element.d.ts +34 -0
- package/dist-cms/packages/core/localization/localize.element.js +64 -0
- package/dist-cms/packages/core/localization/manifests.d.ts +2 -0
- package/dist-cms/packages/core/localization/manifests.js +23 -0
- package/dist-cms/packages/core/localization/registry/translation.registry.d.ts +17 -0
- package/dist-cms/packages/core/localization/registry/translation.registry.js +79 -0
- package/dist-cms/packages/core/menu/index.d.ts +1 -0
- package/dist-cms/packages/core/menu/index.js +1 -0
- package/dist-cms/packages/core/menu/menu.context.d.ts +9 -0
- package/dist-cms/packages/core/menu/menu.context.js +14 -0
- package/dist-cms/packages/core/menu/menu.element.d.ts +1 -0
- package/dist-cms/packages/core/menu/menu.element.js +6 -2
- package/dist-cms/packages/core/modal/common/folder/folder-modal.element.d.ts +2 -2
- package/dist-cms/packages/core/modal/common/folder/folder-modal.element.js +4 -1
- package/dist-cms/packages/core/modal/common/property-settings/property-settings-modal.element.js +1 -0
- package/dist-cms/packages/core/modal/token/embedded-media-modal.token.js +0 -1
- package/dist-cms/packages/core/modal/token/folder-modal.token.d.ts +3 -2
- package/dist-cms/packages/core/property-action/manifests.js +2 -2
- package/dist-cms/packages/core/property-action/shared/property-action-menu/property-action-menu.element.js +2 -1
- package/dist-cms/packages/core/property-editor/index.d.ts +1 -1
- package/dist-cms/packages/core/property-editor/index.js +1 -1
- package/dist-cms/packages/core/property-editor/manifests.d.ts +1 -1
- package/dist-cms/packages/core/property-editor/schemas/manifests.js +0 -2
- package/dist-cms/packages/core/property-editor/uis/icon-picker/manifests.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/value-type/manifests.js +0 -1
- package/dist-cms/packages/core/section/index.d.ts +1 -1
- package/dist-cms/packages/core/section/index.js +1 -1
- package/dist-cms/packages/core/section/section-default.element.d.ts +1 -1
- package/dist-cms/packages/core/section/section-default.element.js +13 -21
- package/dist-cms/packages/core/section/section-main-views/index.d.ts +1 -0
- package/dist-cms/packages/core/section/section-main-views/index.js +1 -0
- package/dist-cms/packages/core/section/section-main-views/section-main-views.element.d.ts +19 -0
- package/dist-cms/packages/core/section/{section-views/section-views.element.js → section-main-views/section-main-views.element.js} +20 -48
- package/dist-cms/packages/core/section/section-sidebar-context-menu/section-sidebar-context-menu.element.js +18 -5
- package/dist-cms/packages/core/section/section-sidebar-menu/section-sidebar-menu.element.js +3 -4
- package/dist-cms/packages/core/section/section-sidebar-menu-with-entity-actions/section-sidebar-menu-with-entity-actions.element.js +2 -2
- package/dist-cms/packages/core/sorter/sorter.controller.js +6 -6
- package/dist-cms/packages/core/sorter/stories/test-sorter-controller.element.d.ts +13 -0
- package/dist-cms/packages/core/sorter/stories/test-sorter-controller.element.js +92 -0
- package/dist-cms/packages/{templating/components → core/tree}/file-system-tree-item/file-system-tree-item.context.d.ts +9 -1
- package/dist-cms/packages/core/tree/file-system-tree-item/file-system-tree-item.context.js +28 -0
- package/dist-cms/packages/{templating/components → core/tree}/file-system-tree-item/file-system-tree-item.element.d.ts +10 -2
- package/dist-cms/packages/{templating/components → core/tree}/file-system-tree-item/file-system-tree-item.element.js +10 -1
- package/dist-cms/packages/core/tree/file-system-tree-item/index.d.ts +2 -0
- package/dist-cms/packages/core/tree/file-system-tree-item/index.js +2 -0
- package/dist-cms/packages/core/tree/index.d.ts +1 -0
- package/dist-cms/packages/core/tree/index.js +1 -0
- package/dist-cms/packages/core/tree/tree-item/tree-item.context.interface.d.ts +0 -2
- package/dist-cms/packages/core/tree/tree-item/tree-item.element.js +1 -1
- package/dist-cms/packages/core/tree/tree-item-base/tree-item-base.context.d.ts +3 -4
- package/dist-cms/packages/core/tree/tree-item-base/tree-item-base.context.js +26 -30
- package/dist-cms/packages/core/workspace/index.d.ts +1 -0
- package/dist-cms/packages/core/workspace/index.js +1 -0
- package/dist-cms/packages/core/workspace/manifests.d.ts +1 -1
- package/dist-cms/packages/core/workspace/manifests.js +2 -1
- package/dist-cms/packages/core/workspace/workspace-action/workspace-action-base.js +2 -2
- package/dist-cms/packages/core/workspace/workspace-action/workspace-action.element.js +12 -4
- package/dist-cms/packages/core/workspace/workspace-action-menu/workspace-action-menu.element.js +8 -4
- package/dist-cms/packages/core/workspace/workspace-alias.condition.d.ts +18 -0
- package/dist-cms/packages/core/workspace/workspace-alias.condition.js +21 -0
- package/dist-cms/packages/core/workspace/workspace-content/views/collection/workspace-view-collection.element.js +2 -2
- package/dist-cms/packages/core/workspace/workspace-context/index.d.ts +1 -1
- package/dist-cms/packages/core/workspace/workspace-context/index.js +1 -1
- package/dist-cms/packages/core/workspace/workspace-context/workspace-context.d.ts +2 -1
- package/dist-cms/packages/core/workspace/workspace-context/workspace-context.interface.d.ts +2 -2
- package/dist-cms/packages/core/workspace/workspace-context/workspace-context.js +4 -3
- package/dist-cms/packages/core/workspace/workspace-context/workspace-context.token.d.ts +4 -0
- package/dist-cms/packages/core/workspace/workspace-context/workspace-context.token.js +2 -0
- package/dist-cms/packages/core/workspace/workspace-context/workspace-entity-context.interface.d.ts +0 -1
- package/dist-cms/packages/core/workspace/workspace-editor/workspace-editor.element.d.ts +4 -8
- package/dist-cms/packages/core/workspace/workspace-editor/workspace-editor.element.js +11 -39
- package/dist-cms/packages/core/workspace/workspace-footer/workspace-footer.element.d.ts +0 -10
- package/dist-cms/packages/core/workspace/workspace-footer/workspace-footer.element.js +1 -23
- package/dist-cms/packages/core/workspace/workspace-property/workspace-property.context.js +2 -2
- package/dist-cms/packages/core/workspace/workspace-property/workspace-property.element.js +4 -0
- package/dist-cms/packages/core/workspace/workspace-variant/workspace-variant.context.js +2 -2
- package/dist-cms/packages/{translation → dictionary}/dashboards/dictionary/dashboard-translation-dictionary.element.js +2 -2
- package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/create/create.action.js +1 -1
- package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/export/export.action.d.ts +0 -1
- package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/export/export.action.js +0 -1
- package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/import/import.action.d.ts +0 -1
- package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/import/import.action.js +0 -1
- package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/manifests.d.ts +1 -1
- package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/manifests.js +0 -12
- package/dist-cms/packages/dictionary/dictionary/index.d.ts +1 -0
- package/dist-cms/packages/dictionary/dictionary/index.js +1 -0
- package/dist-cms/packages/dictionary/dictionary/manifests.d.ts +1 -0
- package/dist-cms/packages/{translation → dictionary}/dictionary/menu-item/manifests.js +0 -2
- package/dist-cms/packages/dictionary/dictionary/repository/index.d.ts +3 -0
- package/dist-cms/packages/dictionary/dictionary/repository/index.js +3 -0
- package/dist-cms/packages/{translation → dictionary}/dictionary/repository/manifests.js +1 -1
- package/dist-cms/packages/{translation → dictionary}/dictionary/tree/manifests.js +1 -1
- package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace-editor.element.js +3 -3
- package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace.context.js +1 -1
- package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/manifests.js +13 -8
- package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/views/editor/workspace-view-dictionary-editor.element.js +2 -2
- package/dist-cms/packages/dictionary/manifests.d.ts +1 -0
- package/dist-cms/packages/dictionary/section.manifest.d.ts +2 -0
- package/dist-cms/packages/{translation → dictionary}/section.manifest.js +16 -10
- package/dist-cms/packages/{translation → dictionary}/umbraco-package.d.ts +1 -1
- package/dist-cms/packages/dictionary/umbraco-package.js +9 -0
- package/dist-cms/packages/documents/dashboards/manifests.js +6 -3
- package/dist-cms/packages/documents/document-blueprints/menu-item/manifests.js +0 -2
- package/dist-cms/packages/documents/document-types/entity-actions/create/manifests.js +0 -2
- package/dist-cms/packages/documents/document-types/entity-actions/manifests.js +0 -8
- package/dist-cms/packages/documents/document-types/menu-item/manifests.js +0 -2
- package/dist-cms/packages/documents/document-types/tree/manifests.js +1 -1
- package/dist-cms/packages/documents/document-types/workspace/document-type-workspace-editor.element.js +7 -6
- package/dist-cms/packages/documents/document-types/workspace/document-type-workspace.context.js +1 -1
- package/dist-cms/packages/documents/document-types/workspace/manifests.js +30 -15
- package/dist-cms/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit-properties.element.js +9 -7
- package/dist-cms/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit-property.element.js +10 -5
- package/dist-cms/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit-tab.element.js +12 -6
- package/dist-cms/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit.element.d.ts +3 -0
- package/dist-cms/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit.element.js +143 -45
- package/dist-cms/packages/documents/document-types/workspace/views/settings/document-type-workspace-view-settings.element.js +2 -2
- package/dist-cms/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.js +6 -6
- package/dist-cms/packages/documents/document-types/workspace/views/templates/document-type-workspace-view-templates.element.js +2 -2
- package/dist-cms/packages/documents/documents/entity-actions/manifests.d.ts +1 -1
- package/dist-cms/packages/documents/documents/entity-actions/manifests.js +0 -24
- package/dist-cms/packages/documents/documents/menu-item/manifests.js +0 -2
- package/dist-cms/packages/documents/documents/tree/manifests.js +1 -1
- package/dist-cms/packages/documents/documents/tree/tree-item/document-tree-item.context.d.ts +3 -3
- package/dist-cms/packages/documents/documents/workspace/document-workspace-editor.element.js +2 -2
- package/dist-cms/packages/documents/documents/workspace/document-workspace-split-view.element.js +2 -2
- package/dist-cms/packages/documents/documents/workspace/document-workspace.context.js +1 -1
- package/dist-cms/packages/documents/documents/workspace/manifests.js +36 -21
- package/dist-cms/packages/documents/documents/workspace/views/edit/document-workspace-view-edit-properties.element.js +2 -2
- package/dist-cms/packages/documents/documents/workspace/views/edit/document-workspace-view-edit-tab.element.js +2 -2
- package/dist-cms/packages/documents/documents/workspace/views/edit/document-workspace-view-edit.element.js +3 -3
- package/dist-cms/packages/documents/documents/workspace/views/info/document-info-workspace-view.element.js +2 -2
- package/dist-cms/packages/documents/section.manifests.js +6 -3
- package/dist-cms/packages/media/manifests.d.ts +1 -1
- package/dist-cms/packages/media/media/entity-actions/manifests.js +0 -2
- package/dist-cms/packages/media/media/manifests.d.ts +1 -1
- package/dist-cms/packages/media/media/menu-item/manifests.js +0 -2
- package/dist-cms/packages/media/media/tree/manifests.js +1 -1
- package/dist-cms/packages/media/media/workspace/manifests.js +24 -12
- package/dist-cms/packages/media/media/workspace/media-workspace-editor.element.js +2 -2
- package/dist-cms/packages/media/media/workspace/media-workspace.context.js +1 -1
- package/dist-cms/packages/media/media/workspace/media-workspace.element.d.ts +1 -0
- package/dist-cms/packages/media/media/workspace/media-workspace.element.js +1 -0
- package/dist-cms/packages/media/media-types/entity-actions/manifests.js +0 -10
- package/dist-cms/packages/media/media-types/manifests.d.ts +1 -1
- package/dist-cms/packages/media/media-types/menu-item/manifests.js +0 -2
- package/dist-cms/packages/media/media-types/tree/manifests.js +1 -1
- package/dist-cms/packages/media/media-types/workspace/media-type-workspace-editor.element.js +2 -2
- package/dist-cms/packages/media/media-types/workspace/media-type-workspace.context.js +1 -1
- package/dist-cms/packages/media/section.manifests.d.ts +1 -1
- package/dist-cms/packages/media/section.manifests.js +7 -3
- package/dist-cms/packages/members/manifests.d.ts +1 -1
- package/dist-cms/packages/members/member-groups/entity-actions/manifests.js +0 -2
- package/dist-cms/packages/members/member-groups/manifests.d.ts +1 -1
- package/dist-cms/packages/members/member-groups/menu-item/manifests.js +0 -2
- package/dist-cms/packages/members/member-groups/tree/manifests.js +1 -1
- package/dist-cms/packages/members/member-groups/workspace/manifests.js +12 -6
- package/dist-cms/packages/members/member-groups/workspace/member-group-workspace-editor.element.js +2 -2
- package/dist-cms/packages/members/member-groups/workspace/member-group-workspace.context.js +1 -1
- package/dist-cms/packages/members/member-groups/workspace/views/info/workspace-view-member-group-info.element.js +2 -2
- package/dist-cms/packages/members/member-types/entity-actions/manifests.js +0 -2
- package/dist-cms/packages/members/member-types/manifests.d.ts +1 -1
- package/dist-cms/packages/members/member-types/menu-item/manifests.js +0 -2
- package/dist-cms/packages/members/member-types/tree/manifests.js +1 -1
- package/dist-cms/packages/members/member-types/workspace/member-type-workspace.context.js +1 -1
- package/dist-cms/packages/members/member-types/workspace/member-type-workspace.element.d.ts +1 -0
- package/dist-cms/packages/members/member-types/workspace/member-type-workspace.element.js +1 -0
- package/dist-cms/packages/members/members/entity-actions/manifests.js +0 -2
- package/dist-cms/packages/members/members/manifests.d.ts +1 -1
- package/dist-cms/packages/members/members/menu-item/manifests.js +0 -2
- package/dist-cms/packages/members/members/tree/manifests.js +1 -1
- package/dist-cms/packages/members/members/workspace/member-workspace.context.js +1 -1
- package/dist-cms/packages/members/section.manifests.d.ts +1 -1
- package/dist-cms/packages/members/section.manifests.js +12 -6
- package/dist-cms/packages/packages/package-section/manifests.js +18 -9
- package/dist-cms/packages/packages/package-section/views/created/created-packages-section-view.element.d.ts +0 -1
- package/dist-cms/packages/packages/package-section/views/created/created-packages-section-view.element.js +0 -1
- package/dist-cms/packages/search/examine-management-dashboard/views/section-view-examine-indexers.d.ts +1 -0
- package/dist-cms/packages/search/examine-management-dashboard/views/section-view-examine-indexers.js +3 -0
- package/dist-cms/packages/search/manifests.js +6 -3
- package/dist-cms/packages/settings/dashboards/manifests.js +37 -18
- package/dist-cms/packages/settings/dashboards/published-status/dashboard-published-status.element.js +11 -3
- package/dist-cms/packages/settings/data-types/entity-actions/copy/manifests.js +0 -2
- package/dist-cms/packages/settings/data-types/entity-actions/create/manifests.js +0 -2
- package/dist-cms/packages/settings/data-types/entity-actions/manifests.js +0 -6
- package/dist-cms/packages/settings/data-types/entity-actions/move/manifests.js +0 -2
- package/dist-cms/packages/settings/data-types/menu-item/manifests.js +0 -2
- package/dist-cms/packages/settings/data-types/modals/data-type-picker-flow/data-type-picker-flow-modal.element.js +2 -1
- package/dist-cms/packages/settings/data-types/modals/property-editor-ui-picker/property-editor-ui-picker-modal.element.js +3 -2
- package/dist-cms/packages/settings/data-types/repository/data-type.repository.d.ts +2 -2
- package/dist-cms/packages/settings/data-types/repository/manifests.d.ts +1 -1
- package/dist-cms/packages/settings/data-types/repository/sources/data-type-folder.server.data.d.ts +3 -3
- package/dist-cms/packages/settings/data-types/tree/manifests.js +1 -1
- package/dist-cms/packages/settings/data-types/workspace/data-type-workspace-editor.element.js +2 -2
- package/dist-cms/packages/settings/data-types/workspace/data-type-workspace.context.js +1 -1
- package/dist-cms/packages/settings/data-types/workspace/manifests.js +18 -9
- package/dist-cms/packages/settings/data-types/workspace/views/details/data-type-details-workspace-view.element.js +2 -2
- package/dist-cms/packages/settings/data-types/workspace/views/info/workspace-view-data-type-info.element.js +2 -2
- package/dist-cms/packages/settings/extensions/menu-item/manifests.js +0 -2
- package/dist-cms/packages/settings/languages/app-language-select/app-language-select.element.js +1 -5
- package/dist-cms/packages/settings/languages/app-language-select/manifests.js +6 -3
- package/dist-cms/packages/settings/languages/entity-actions/manifests.js +0 -4
- package/dist-cms/packages/settings/languages/menu-item/manifests.js +0 -2
- package/dist-cms/packages/settings/languages/workspace/language/language-workspace-editor.element.js +2 -2
- package/dist-cms/packages/settings/languages/workspace/language/language-workspace.context.js +1 -1
- package/dist-cms/packages/settings/languages/workspace/language/language-workspace.element.d.ts +0 -1
- package/dist-cms/packages/settings/languages/workspace/language/language-workspace.element.js +0 -1
- package/dist-cms/packages/settings/languages/workspace/language/manifests.js +12 -6
- package/dist-cms/packages/settings/languages/workspace/language/views/details/language-details-workspace-view.element.js +2 -2
- package/dist-cms/packages/settings/logviewer/manifests.d.ts +1 -1
- package/dist-cms/packages/settings/logviewer/menu-item/manifests.js +0 -2
- package/dist-cms/packages/settings/logviewer/workspace/{logviewer-root/logviewer-root-workspace.element.d.ts → logviewer/logviewer-workspace.element.d.ts} +0 -9
- package/dist-cms/packages/settings/logviewer/workspace/logviewer/logviewer-workspace.element.js +65 -0
- package/dist-cms/packages/settings/logviewer/workspace/{logviewer-root → logviewer}/manifests.js +16 -10
- package/dist-cms/packages/settings/logviewer/workspace/logviewer.context.d.ts +28 -15
- package/dist-cms/packages/settings/logviewer/workspace/logviewer.context.js +33 -5
- package/dist-cms/packages/settings/logviewer/workspace/manifests.js +2 -2
- package/dist-cms/packages/settings/relation-types/manifests.d.ts +1 -1
- package/dist-cms/packages/settings/relation-types/menu-item/manifests.js +0 -2
- package/dist-cms/packages/settings/relation-types/tree/manifests.js +1 -1
- package/dist-cms/packages/settings/relation-types/workspace/manifests.js +18 -9
- package/dist-cms/packages/settings/relation-types/workspace/relation-type-workspace-editor.element.js +2 -2
- package/dist-cms/packages/settings/relation-types/workspace/relation-type-workspace.context.js +1 -1
- package/dist-cms/packages/settings/relation-types/workspace/views/relation-type/relation-type-workspace-view-relation-type.element.js +2 -2
- package/dist-cms/packages/settings/section.manifests.d.ts +1 -1
- package/dist-cms/packages/settings/section.manifests.js +6 -3
- package/dist-cms/packages/templating/components/index.d.ts +0 -1
- package/dist-cms/packages/templating/components/index.js +0 -1
- package/dist-cms/packages/templating/components/insert-menu/templating-insert-menu.element.js +1 -1
- package/dist-cms/packages/templating/manifests.d.ts +6 -1
- package/dist-cms/packages/templating/menu.manifests.d.ts +1 -1
- package/dist-cms/packages/templating/menu.manifests.js +7 -3
- package/dist-cms/packages/templating/partial-views/config.d.ts +5 -5
- package/dist-cms/packages/templating/partial-views/config.js +3 -1
- package/dist-cms/packages/templating/partial-views/entity-actions/create/create-empty.action.js +1 -1
- package/dist-cms/packages/templating/partial-views/entity-actions/create/create-from-snippet.action.d.ts +10 -1
- package/dist-cms/packages/templating/partial-views/entity-actions/create/create-from-snippet.action.js +16 -1
- package/dist-cms/packages/templating/partial-views/entity-actions/create/create-from-snippet.modal.d.ts +16 -0
- package/dist-cms/packages/templating/partial-views/entity-actions/create/create-from-snippet.modal.js +73 -0
- package/dist-cms/packages/templating/partial-views/entity-actions/manifests.d.ts +6 -1
- package/dist-cms/packages/templating/partial-views/entity-actions/manifests.js +38 -10
- package/dist-cms/packages/templating/partial-views/manifests.d.ts +6 -1
- package/dist-cms/packages/templating/partial-views/menu-item/manifests.js +0 -2
- package/dist-cms/packages/templating/partial-views/repository/manifests.js +2 -2
- package/dist-cms/packages/templating/partial-views/repository/partial-views.repository.d.ts +47 -26
- package/dist-cms/packages/templating/partial-views/repository/partial-views.repository.js +81 -24
- package/dist-cms/packages/templating/partial-views/repository/sources/partial-views.detail.server.data.d.ts +48 -13
- package/dist-cms/packages/templating/partial-views/repository/sources/partial-views.detail.server.data.js +56 -17
- package/dist-cms/packages/templating/partial-views/repository/sources/partial-views.folder.server.data.d.ts +17 -0
- package/dist-cms/packages/templating/partial-views/repository/sources/partial-views.folder.server.data.js +23 -0
- package/dist-cms/packages/templating/partial-views/tree/manifests.js +4 -3
- package/dist-cms/packages/templating/partial-views/workspace/manifests.js +6 -3
- package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace-edit.element.d.ts +6 -1
- package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace-edit.element.js +124 -27
- package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace.context.d.ts +9 -7
- package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace.context.js +50 -8
- package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace.element.d.ts +1 -0
- package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace.element.js +7 -3
- package/dist-cms/packages/templating/stylesheets/manifests.d.ts +1 -1
- package/dist-cms/packages/templating/stylesheets/menu-item/manifests.js +0 -2
- package/dist-cms/packages/templating/stylesheets/tree/manifests.js +1 -1
- package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace.context.js +1 -1
- package/dist-cms/packages/templating/templates/entity-actions/manifests.js +0 -4
- package/dist-cms/packages/templating/templates/manifests.d.ts +1 -1
- package/dist-cms/packages/templating/templates/menu-item/manifests.js +0 -2
- package/dist-cms/packages/templating/templates/modals/query-builder/query-builder-filter.element.js +2 -2
- package/dist-cms/packages/templating/templates/modals/query-builder/query-builder.element.d.ts +1 -0
- package/dist-cms/packages/templating/templates/modals/query-builder/query-builder.element.js +1 -0
- package/dist-cms/packages/templating/templates/repository/manifests.d.ts +1 -1
- package/dist-cms/packages/templating/templates/tree/manifests.js +1 -1
- package/dist-cms/packages/templating/templates/workspace/manifests.js +6 -3
- package/dist-cms/packages/templating/templates/workspace/template-workspace-editor.element.js +2 -1
- package/dist-cms/packages/templating/templates/workspace/template-workspace.context.js +1 -1
- package/dist-cms/packages/umbraco-news/manifests.js +6 -3
- package/dist-cms/packages/umbraco-news/umbraco-news-dashboard.element.js +1 -1
- package/dist-cms/packages/users/current-user/modals/current-user/current-user-modal.element.js +10 -6
- package/dist-cms/packages/users/current-user/user-profile-apps/user-profile-app-profile.element.js +7 -5
- package/dist-cms/packages/users/user-groups/manifests.d.ts +1 -1
- package/dist-cms/packages/users/user-groups/repository/manifests.d.ts +1 -1
- package/dist-cms/packages/users/user-groups/section-view/manifests.js +6 -3
- package/dist-cms/packages/users/user-groups/workspace/actions/workspace-action-user-group-save.element.js +2 -2
- package/dist-cms/packages/users/user-groups/workspace/manifests.js +6 -3
- package/dist-cms/packages/users/user-groups/workspace/user-group-workspace-editor.element.js +2 -2
- package/dist-cms/packages/users/user-groups/workspace/user-group-workspace.context.js +1 -1
- package/dist-cms/packages/users/users/manifests.d.ts +1 -1
- package/dist-cms/packages/users/users/repository/manifests.d.ts +1 -1
- package/dist-cms/packages/users/users/repository/user.repository.js +5 -1
- package/dist-cms/packages/users/users/section-view/manifests.js +6 -3
- package/dist-cms/packages/users/users/workspace/actions/user-workspace-action-save.element.js +2 -2
- package/dist-cms/packages/users/users/workspace/manifests.js +6 -3
- package/dist-cms/packages/users/users/workspace/user-workspace-editor.element.d.ts +1 -0
- package/dist-cms/packages/users/users/workspace/user-workspace-editor.element.js +53 -8
- package/dist-cms/packages/users/users/workspace/user-workspace.context.d.ts +1 -1
- package/dist-cms/packages/users/users/workspace/user-workspace.context.js +18 -1
- package/dist-cms/shared/auth/auth.context.d.ts +1 -0
- package/dist-cms/shared/auth/auth.context.js +1 -2
- package/dist-cms/shared/auth/auth.interface.d.ts +4 -0
- package/dist-cms/shared/lit-element/lit-element.element.d.ts +25 -0
- package/dist-cms/shared/lit-element/lit-element.element.js +42 -1
- package/dist-cms/shared/repository/data-source/data-source.interface.d.ts +2 -2
- package/dist-cms/shared/repository/data-source/folder-data-source.interface.d.ts +3 -3
- package/dist-cms/shared/repository/detail-repository.interface.d.ts +2 -2
- package/dist-cms/shared/repository/folder-repository.interface.d.ts +3 -3
- package/dist-cms/shared/resources/resource.controller.js +2 -2
- package/dist-cms/shared/utils/component-has-manifest-property.function.d.ts +4 -0
- package/dist-cms/shared/utils/component-has-manifest-property.function.js +3 -0
- package/dist-cms/shared/utils/index.d.ts +1 -0
- package/dist-cms/shared/utils/index.js +1 -0
- package/dist-cms/shared/utils/media-helper.service.d.ts +1 -1
- package/dist-cms/shared/utils/media-helper.service.js +2 -1
- package/dist-cms/tinymce/CHANGELOG.md +45 -0
- package/dist-cms/tinymce/composer.json +1 -1
- package/dist-cms/tinymce/icons/default/icons.js +3 -0
- package/dist-cms/tinymce/icons/default/icons.min.js +1 -1
- package/dist-cms/tinymce/langs/ar.js +1 -1
- package/dist-cms/tinymce/langs/bg_BG.js +56 -56
- package/dist-cms/tinymce/langs/fr_FR.js +1 -1
- package/dist-cms/tinymce/langs/hy.js +2 -2
- package/dist-cms/tinymce/langs/id.js +19 -19
- package/dist-cms/tinymce/langs/it.js +2 -2
- package/dist-cms/tinymce/langs/ka_GE.js +406 -0
- package/dist-cms/tinymce/langs/nb_NO.js +15 -15
- package/dist-cms/tinymce/langs/ru.js +4 -4
- package/dist-cms/tinymce/langs/sk.js +7 -7
- 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 +6 -1
- package/dist-cms/tinymce/plugins/help/plugin.min.js +2 -2
- package/dist-cms/tinymce/plugins/image/plugin.js +2 -2
- package/dist-cms/tinymce/plugins/image/plugin.min.js +2 -2
- 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 +2 -2
- package/dist-cms/tinymce/plugins/lists/plugin.min.js +2 -2
- package/dist-cms/tinymce/plugins/media/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/media/plugin.min.js +1 -1
- 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 +1 -1
- package/dist-cms/tinymce/plugins/quickbars/plugin.min.js +1 -1
- 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 +1 -1
- package/dist-cms/tinymce/plugins/table/plugin.min.js +1 -1
- 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/skin.css +31 -0
- package/dist-cms/tinymce/skins/ui/oxide/skin.min.css +1 -1
- package/dist-cms/tinymce/skins/ui/oxide-dark/skin.css +31 -0
- package/dist-cms/tinymce/skins/ui/oxide-dark/skin.min.css +1 -1
- package/dist-cms/tinymce/skins/ui/tinymce-5/skin.css +31 -0
- package/dist-cms/tinymce/skins/ui/tinymce-5/skin.min.css +1 -1
- package/dist-cms/tinymce/skins/ui/tinymce-5-dark/skin.css +31 -0
- package/dist-cms/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -1
- package/dist-cms/tinymce/themes/silver/theme.js +444 -177
- package/dist-cms/tinymce/themes/silver/theme.min.js +2 -2
- package/dist-cms/tinymce/tinymce.d.ts +10 -2
- package/dist-cms/tinymce/tinymce.js +23 -15
- package/dist-cms/tinymce/tinymce.min.js +2 -2
- package/dist-cms/tsconfig.build.json +15 -0
- package/dist-cms/tsconfig.build.tsbuildinfo +1 -0
- package/dist-cms/umbraco-package-schema.json +585 -365
- package/dist-cms/vscode-html-custom-data.json +103 -103
- package/package.json +33 -31
- package/dist-cms/external/monaco-editor/javascript-53ce59fc.js +0 -6
- package/dist-cms/external/monaco-editor/tsMode-3f4e7f54.js +0 -16
- package/dist-cms/external/monaco-editor/twig-ee0f3b03.js +0 -6
- package/dist-cms/packages/core/property-editor/schemas/Umbraco.JSON.d.ts +0 -2
- package/dist-cms/packages/core/property-editor/schemas/Umbraco.JSON.js +0 -8
- package/dist-cms/packages/core/section/section-views/index.d.ts +0 -1
- package/dist-cms/packages/core/section/section-views/index.js +0 -1
- package/dist-cms/packages/core/section/section-views/section-views.element.d.ts +0 -26
- package/dist-cms/packages/core/workspace/workspace-context/entity-workspace-context.token.d.ts +0 -4
- package/dist-cms/packages/core/workspace/workspace-context/entity-workspace-context.token.js +0 -2
- package/dist-cms/packages/settings/logviewer/workspace/logviewer-root/logviewer-root-workspace.element.js +0 -166
- package/dist-cms/packages/templating/components/file-system-tree-item/file-system-tree-item.context.js +0 -10
- package/dist-cms/packages/translation/dictionary/manifests.d.ts +0 -1
- package/dist-cms/packages/translation/manifests.d.ts +0 -1
- package/dist-cms/packages/translation/section.manifest.d.ts +0 -2
- package/dist-cms/packages/translation/umbraco-package.js +0 -9
- package/dist-cms/tsconfig.tsbuildinfo +0 -1
- /package/dist-cms/apps/backoffice/{extension.controller.d.ts → extension-initializer.controller.d.ts} +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dashboards/dictionary/dashboard-translation-dictionary.element.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/create/create-dictionary-modal.element.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/create/create-dictionary-modal.element.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/create/create.action.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/export/export-dictionary-modal.element.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/export/export-dictionary-modal.element.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/import/import-dictionary-modal.element.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/import/import-dictionary-modal.element.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/reload.action.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/reload.action.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/manifests.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/menu-item/dictionary-menu-item.element.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/menu-item/dictionary-menu-item.element.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/menu-item/manifests.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/menu.manifests.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/menu.manifests.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.repository.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.repository.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.store.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.store.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.tree.store.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.tree.store.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/manifests.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/sources/dictionary.detail.server.data.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/sources/dictionary.detail.server.data.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/sources/dictionary.tree.server.data.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/sources/dictionary.tree.server.data.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/tree/manifests.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace-editor.element.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace.context.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace.element.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace.element.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/manifests.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/views/editor/workspace-view-dictionary-editor.element.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/manifests.js +0 -0
- /package/dist-cms/packages/settings/logviewer/workspace/{logviewer-root → logviewer}/manifests.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 () {
|
|
@@ -10432,12 +10432,12 @@
|
|
|
10432
10432
|
|
|
10433
10433
|
const foregroundId = 'forecolor';
|
|
10434
10434
|
const backgroundId = 'hilitecolor';
|
|
10435
|
-
const
|
|
10436
|
-
const calcCols = colors => Math.max(
|
|
10435
|
+
const DEFAULT_COLS = 5;
|
|
10436
|
+
const calcCols = colors => Math.max(DEFAULT_COLS, Math.ceil(Math.sqrt(colors)));
|
|
10437
10437
|
const calcColsOption = (editor, numColors) => {
|
|
10438
10438
|
const calculatedCols = calcCols(numColors);
|
|
10439
10439
|
const fallbackCols = option$1('color_cols')(editor);
|
|
10440
|
-
return
|
|
10440
|
+
return fallbackCols !== DEFAULT_COLS ? fallbackCols : calculatedCols;
|
|
10441
10441
|
};
|
|
10442
10442
|
const mapColors = colorMap => {
|
|
10443
10443
|
const colors = [];
|
|
@@ -10554,8 +10554,8 @@
|
|
|
10554
10554
|
}
|
|
10555
10555
|
};
|
|
10556
10556
|
const getColorCols$1 = (editor, id) => {
|
|
10557
|
-
const colorCols = colorColsOption(editor, id);
|
|
10558
|
-
return colorCols > 0 ? colorCols :
|
|
10557
|
+
const colorCols = Math.round(colorColsOption(editor, id));
|
|
10558
|
+
return colorCols > 0 ? colorCols : DEFAULT_COLS;
|
|
10559
10559
|
};
|
|
10560
10560
|
const hasCustomColors$1 = option$1('custom_colors');
|
|
10561
10561
|
const getColors$2 = (editor, id) => {
|
|
@@ -14318,7 +14318,6 @@
|
|
|
14318
14318
|
}
|
|
14319
14319
|
});
|
|
14320
14320
|
const withElement = (initialValue, getter, setter) => withComp(initialValue, c => getter(c.element), (c, v) => setter(c.element, v));
|
|
14321
|
-
const domValue = optInitialValue => withElement(optInitialValue, get$6, set$5);
|
|
14322
14321
|
const domHtml = optInitialValue => withElement(optInitialValue, get$9, set$6);
|
|
14323
14322
|
const memory = initialValue => Representing.config({
|
|
14324
14323
|
store: {
|
|
@@ -14326,14 +14325,6 @@
|
|
|
14326
14325
|
initialValue
|
|
14327
14326
|
}
|
|
14328
14327
|
});
|
|
14329
|
-
const RepresentingConfigs = {
|
|
14330
|
-
memento,
|
|
14331
|
-
withElement,
|
|
14332
|
-
withComp,
|
|
14333
|
-
domValue,
|
|
14334
|
-
domHtml,
|
|
14335
|
-
memory
|
|
14336
|
-
};
|
|
14337
14328
|
|
|
14338
14329
|
const english = {
|
|
14339
14330
|
'colorcustom.rgb.red.label': 'R',
|
|
@@ -14379,7 +14370,7 @@
|
|
|
14379
14370
|
dom: { tag: 'div' },
|
|
14380
14371
|
components: [memPicker.asSpec()],
|
|
14381
14372
|
behaviours: derive$1([
|
|
14382
|
-
|
|
14373
|
+
withComp(initialData, comp => {
|
|
14383
14374
|
const picker = memPicker.get(comp);
|
|
14384
14375
|
const optRgbForm = Composing.getCurrent(picker);
|
|
14385
14376
|
const optHex = optRgbForm.bind(rgbForm => {
|
|
@@ -14430,7 +14421,7 @@
|
|
|
14430
14421
|
});
|
|
14431
14422
|
});
|
|
14432
14423
|
})]),
|
|
14433
|
-
|
|
14424
|
+
withComp(Optional.none(), () => editorApi.get().fold(() => initialValue.get().getOr(''), ed => ed.getValue()), (component, value) => {
|
|
14434
14425
|
editorApi.get().fold(() => initialValue.set(value), ed => ed.setValue(value));
|
|
14435
14426
|
}),
|
|
14436
14427
|
ComposingConfigs.self()
|
|
@@ -14493,7 +14484,7 @@
|
|
|
14493
14484
|
classes: ['tox-dropzone-container']
|
|
14494
14485
|
},
|
|
14495
14486
|
behaviours: derive$1([
|
|
14496
|
-
|
|
14487
|
+
memory(initialData.getOr([])),
|
|
14497
14488
|
ComposingConfigs.self(),
|
|
14498
14489
|
Disabling.config({}),
|
|
14499
14490
|
Toggling.config({
|
|
@@ -14570,6 +14561,74 @@
|
|
|
14570
14561
|
components: map$2(spec.items, backstage.interpreter)
|
|
14571
14562
|
});
|
|
14572
14563
|
|
|
14564
|
+
const adaptable = (fn, rate) => {
|
|
14565
|
+
let timer = null;
|
|
14566
|
+
let args = null;
|
|
14567
|
+
const cancel = () => {
|
|
14568
|
+
if (!isNull(timer)) {
|
|
14569
|
+
clearTimeout(timer);
|
|
14570
|
+
timer = null;
|
|
14571
|
+
args = null;
|
|
14572
|
+
}
|
|
14573
|
+
};
|
|
14574
|
+
const throttle = (...newArgs) => {
|
|
14575
|
+
args = newArgs;
|
|
14576
|
+
if (isNull(timer)) {
|
|
14577
|
+
timer = setTimeout(() => {
|
|
14578
|
+
const tempArgs = args;
|
|
14579
|
+
timer = null;
|
|
14580
|
+
args = null;
|
|
14581
|
+
fn.apply(null, tempArgs);
|
|
14582
|
+
}, rate);
|
|
14583
|
+
}
|
|
14584
|
+
};
|
|
14585
|
+
return {
|
|
14586
|
+
cancel,
|
|
14587
|
+
throttle
|
|
14588
|
+
};
|
|
14589
|
+
};
|
|
14590
|
+
const first = (fn, rate) => {
|
|
14591
|
+
let timer = null;
|
|
14592
|
+
const cancel = () => {
|
|
14593
|
+
if (!isNull(timer)) {
|
|
14594
|
+
clearTimeout(timer);
|
|
14595
|
+
timer = null;
|
|
14596
|
+
}
|
|
14597
|
+
};
|
|
14598
|
+
const throttle = (...args) => {
|
|
14599
|
+
if (isNull(timer)) {
|
|
14600
|
+
timer = setTimeout(() => {
|
|
14601
|
+
timer = null;
|
|
14602
|
+
fn.apply(null, args);
|
|
14603
|
+
}, rate);
|
|
14604
|
+
}
|
|
14605
|
+
};
|
|
14606
|
+
return {
|
|
14607
|
+
cancel,
|
|
14608
|
+
throttle
|
|
14609
|
+
};
|
|
14610
|
+
};
|
|
14611
|
+
const last = (fn, rate) => {
|
|
14612
|
+
let timer = null;
|
|
14613
|
+
const cancel = () => {
|
|
14614
|
+
if (!isNull(timer)) {
|
|
14615
|
+
clearTimeout(timer);
|
|
14616
|
+
timer = null;
|
|
14617
|
+
}
|
|
14618
|
+
};
|
|
14619
|
+
const throttle = (...args) => {
|
|
14620
|
+
cancel();
|
|
14621
|
+
timer = setTimeout(() => {
|
|
14622
|
+
timer = null;
|
|
14623
|
+
fn.apply(null, args);
|
|
14624
|
+
}, rate);
|
|
14625
|
+
};
|
|
14626
|
+
return {
|
|
14627
|
+
cancel,
|
|
14628
|
+
throttle
|
|
14629
|
+
};
|
|
14630
|
+
};
|
|
14631
|
+
|
|
14573
14632
|
const beforeObject = generate$6('alloy-fake-before-tabstop');
|
|
14574
14633
|
const afterObject = generate$6('alloy-fake-after-tabstop');
|
|
14575
14634
|
const craftWithClasses = classes => {
|
|
@@ -14590,11 +14649,14 @@
|
|
|
14590
14649
|
])
|
|
14591
14650
|
};
|
|
14592
14651
|
};
|
|
14593
|
-
const craft = spec => {
|
|
14652
|
+
const craft = (containerClasses, spec) => {
|
|
14594
14653
|
return {
|
|
14595
14654
|
dom: {
|
|
14596
14655
|
tag: 'div',
|
|
14597
|
-
classes: [
|
|
14656
|
+
classes: [
|
|
14657
|
+
'tox-navobj',
|
|
14658
|
+
...containerClasses.getOr([])
|
|
14659
|
+
]
|
|
14598
14660
|
},
|
|
14599
14661
|
components: [
|
|
14600
14662
|
craftWithClasses([beforeObject]),
|
|
@@ -14627,43 +14689,112 @@
|
|
|
14627
14689
|
].join(','), never);
|
|
14628
14690
|
};
|
|
14629
14691
|
|
|
14630
|
-
const
|
|
14692
|
+
const dialogChannel = generate$6('update-dialog');
|
|
14693
|
+
const titleChannel = generate$6('update-title');
|
|
14694
|
+
const bodyChannel = generate$6('update-body');
|
|
14695
|
+
const footerChannel = generate$6('update-footer');
|
|
14696
|
+
const bodySendMessageChannel = generate$6('body-send-message');
|
|
14697
|
+
const dialogFocusShiftedChannel = generate$6('dialog-focus-shifted');
|
|
14698
|
+
|
|
14699
|
+
const browser = detect$2().browser;
|
|
14700
|
+
const isSafari = browser.isSafari();
|
|
14701
|
+
const isFirefox = browser.isFirefox();
|
|
14702
|
+
const isSafariOrFirefox = isSafari || isFirefox;
|
|
14703
|
+
const isChromium = browser.isChromium();
|
|
14704
|
+
const isElementScrollAtBottom = ({scrollTop, scrollHeight, clientHeight}) => Math.ceil(scrollTop) + clientHeight >= scrollHeight;
|
|
14705
|
+
const scrollToY = (win, y) => win.scrollTo(0, y === 'bottom' ? win.document.body.scrollHeight : y);
|
|
14706
|
+
const getScrollingElement = (doc, html) => {
|
|
14707
|
+
const body = doc.body;
|
|
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);
|
|
14709
|
+
};
|
|
14710
|
+
const writeValue = (iframeElement, html, fallbackFn) => {
|
|
14711
|
+
const iframe = iframeElement.dom;
|
|
14712
|
+
Optional.from(iframe.contentDocument).fold(fallbackFn, doc => {
|
|
14713
|
+
let lastScrollTop = 0;
|
|
14714
|
+
const isScrollAtBottom = getScrollingElement(doc, html).map(el => {
|
|
14715
|
+
lastScrollTop = el.scrollTop;
|
|
14716
|
+
return el;
|
|
14717
|
+
}).forall(isElementScrollAtBottom);
|
|
14718
|
+
const scrollAfterWrite = () => {
|
|
14719
|
+
const win = iframe.contentWindow;
|
|
14720
|
+
if (isNonNullable(win)) {
|
|
14721
|
+
if (isScrollAtBottom) {
|
|
14722
|
+
scrollToY(win, 'bottom');
|
|
14723
|
+
} else if (!isScrollAtBottom && isSafariOrFirefox && lastScrollTop !== 0) {
|
|
14724
|
+
scrollToY(win, lastScrollTop);
|
|
14725
|
+
}
|
|
14726
|
+
}
|
|
14727
|
+
};
|
|
14728
|
+
if (isSafari) {
|
|
14729
|
+
iframe.addEventListener('load', scrollAfterWrite, { once: true });
|
|
14730
|
+
}
|
|
14731
|
+
doc.open();
|
|
14732
|
+
doc.write(html);
|
|
14733
|
+
doc.close();
|
|
14734
|
+
if (!isSafari) {
|
|
14735
|
+
scrollAfterWrite();
|
|
14736
|
+
}
|
|
14737
|
+
});
|
|
14738
|
+
};
|
|
14739
|
+
const throttleInterval = isSafariOrFirefox ? Optional.some(isSafari ? 500 : 200) : Optional.none();
|
|
14740
|
+
const writeValueThrottler = throttleInterval.map(interval => adaptable(writeValue, interval));
|
|
14741
|
+
const getDynamicSource = (initialData, stream) => {
|
|
14631
14742
|
const cachedValue = Cell(initialData.getOr(''));
|
|
14632
14743
|
return {
|
|
14633
14744
|
getValue: _frameComponent => cachedValue.get(),
|
|
14634
14745
|
setValue: (frameComponent, html) => {
|
|
14635
14746
|
if (cachedValue.get() !== html) {
|
|
14636
|
-
|
|
14747
|
+
const iframeElement = frameComponent.element;
|
|
14748
|
+
const setSrcdocValue = () => set$9(iframeElement, 'srcdoc', html);
|
|
14749
|
+
if (stream) {
|
|
14750
|
+
writeValueThrottler.fold(constant$1(writeValue), throttler => throttler.throttle)(iframeElement, html, setSrcdocValue);
|
|
14751
|
+
} else {
|
|
14752
|
+
setSrcdocValue();
|
|
14753
|
+
}
|
|
14637
14754
|
}
|
|
14638
14755
|
cachedValue.set(html);
|
|
14639
14756
|
}
|
|
14640
14757
|
};
|
|
14641
14758
|
};
|
|
14642
14759
|
const renderIFrame = (spec, providersBackstage, initialData) => {
|
|
14643
|
-
const isSandbox = spec.sandboxed;
|
|
14644
|
-
const isTransparent = spec.transparent;
|
|
14645
14760
|
const baseClass = 'tox-dialog__iframe';
|
|
14761
|
+
const opaqueClass = spec.transparent ? [] : [`${ baseClass }--opaque`];
|
|
14762
|
+
const containerBorderedClass = spec.border ? [`tox-navobj-bordered`] : [];
|
|
14646
14763
|
const attributes = {
|
|
14647
14764
|
...spec.label.map(title => ({ title })).getOr({}),
|
|
14648
14765
|
...initialData.map(html => ({ srcdoc: html })).getOr({}),
|
|
14649
|
-
...
|
|
14766
|
+
...spec.sandboxed ? { sandbox: 'allow-scripts allow-same-origin' } : {}
|
|
14650
14767
|
};
|
|
14651
|
-
const sourcing = getDynamicSource(initialData);
|
|
14768
|
+
const sourcing = getDynamicSource(initialData, spec.streamContent);
|
|
14652
14769
|
const pLabel = spec.label.map(label => renderLabel$3(label, providersBackstage));
|
|
14653
|
-
const factory = newSpec => craft({
|
|
14770
|
+
const factory = newSpec => craft(Optional.from(containerBorderedClass), {
|
|
14654
14771
|
uid: newSpec.uid,
|
|
14655
14772
|
dom: {
|
|
14656
14773
|
tag: 'iframe',
|
|
14657
14774
|
attributes,
|
|
14658
|
-
classes:
|
|
14775
|
+
classes: [
|
|
14659
14776
|
baseClass,
|
|
14660
|
-
|
|
14777
|
+
...opaqueClass
|
|
14661
14778
|
]
|
|
14662
14779
|
},
|
|
14663
14780
|
behaviours: derive$1([
|
|
14664
14781
|
Tabstopping.config({}),
|
|
14665
14782
|
Focusing.config({}),
|
|
14666
|
-
|
|
14783
|
+
withComp(initialData, sourcing.getValue, sourcing.setValue),
|
|
14784
|
+
Receiving.config({
|
|
14785
|
+
channels: {
|
|
14786
|
+
[dialogFocusShiftedChannel]: {
|
|
14787
|
+
onReceive: (comp, message) => {
|
|
14788
|
+
message.newFocus.each(newFocus => {
|
|
14789
|
+
parentElement(comp.element).each(parent => {
|
|
14790
|
+
const f = eq(comp.element, newFocus) ? add$2 : remove$2;
|
|
14791
|
+
f(parent, 'tox-navobj-bordered-focus');
|
|
14792
|
+
});
|
|
14793
|
+
});
|
|
14794
|
+
}
|
|
14795
|
+
}
|
|
14796
|
+
}
|
|
14797
|
+
})
|
|
14667
14798
|
])
|
|
14668
14799
|
});
|
|
14669
14800
|
const pField = FormField.parts.field({ factory: { sketch: factory } });
|
|
@@ -14776,16 +14907,23 @@
|
|
|
14776
14907
|
components: [memContainer.asSpec()],
|
|
14777
14908
|
behaviours: derive$1([
|
|
14778
14909
|
ComposingConfigs.self(),
|
|
14779
|
-
|
|
14910
|
+
withComp(fakeValidatedData, () => cachedData.get(), setValue)
|
|
14780
14911
|
])
|
|
14781
14912
|
};
|
|
14782
14913
|
};
|
|
14783
14914
|
|
|
14784
14915
|
const renderLabel$2 = (spec, backstageShared) => {
|
|
14916
|
+
const baseClass = 'tox-label';
|
|
14917
|
+
const centerClass = spec.align === 'center' ? [`${ baseClass }--center`] : [];
|
|
14918
|
+
const endClass = spec.align === 'end' ? [`${ baseClass }--end`] : [];
|
|
14785
14919
|
const label = {
|
|
14786
14920
|
dom: {
|
|
14787
14921
|
tag: 'label',
|
|
14788
|
-
classes: [
|
|
14922
|
+
classes: [
|
|
14923
|
+
baseClass,
|
|
14924
|
+
...centerClass,
|
|
14925
|
+
...endClass
|
|
14926
|
+
]
|
|
14789
14927
|
},
|
|
14790
14928
|
components: [text$2(backstageShared.providers.translate(spec.label))]
|
|
14791
14929
|
};
|
|
@@ -14802,7 +14940,7 @@
|
|
|
14802
14940
|
behaviours: derive$1([
|
|
14803
14941
|
ComposingConfigs.self(),
|
|
14804
14942
|
Replacing.config({}),
|
|
14805
|
-
|
|
14943
|
+
domHtml(Optional.none()),
|
|
14806
14944
|
Keying.config({ mode: 'acyclic' })
|
|
14807
14945
|
])
|
|
14808
14946
|
};
|
|
@@ -15128,7 +15266,7 @@
|
|
|
15128
15266
|
classes: [],
|
|
15129
15267
|
dropdownBehaviours: [
|
|
15130
15268
|
Tabstopping.config({}),
|
|
15131
|
-
|
|
15269
|
+
withComp(initialItem.map(item => item.value), comp => get$f(comp.element, dataAttribute), (comp, data) => {
|
|
15132
15270
|
findItemByValue(spec.items, data).each(item => {
|
|
15133
15271
|
set$9(comp.element, dataAttribute, item.value);
|
|
15134
15272
|
emitWith(comp, updateMenuText, { text: item.text });
|
|
@@ -16423,48 +16561,6 @@
|
|
|
16423
16561
|
events: events$5
|
|
16424
16562
|
});
|
|
16425
16563
|
|
|
16426
|
-
const first = (fn, rate) => {
|
|
16427
|
-
let timer = null;
|
|
16428
|
-
const cancel = () => {
|
|
16429
|
-
if (!isNull(timer)) {
|
|
16430
|
-
clearTimeout(timer);
|
|
16431
|
-
timer = null;
|
|
16432
|
-
}
|
|
16433
|
-
};
|
|
16434
|
-
const throttle = (...args) => {
|
|
16435
|
-
if (isNull(timer)) {
|
|
16436
|
-
timer = setTimeout(() => {
|
|
16437
|
-
timer = null;
|
|
16438
|
-
fn.apply(null, args);
|
|
16439
|
-
}, rate);
|
|
16440
|
-
}
|
|
16441
|
-
};
|
|
16442
|
-
return {
|
|
16443
|
-
cancel,
|
|
16444
|
-
throttle
|
|
16445
|
-
};
|
|
16446
|
-
};
|
|
16447
|
-
const last = (fn, rate) => {
|
|
16448
|
-
let timer = null;
|
|
16449
|
-
const cancel = () => {
|
|
16450
|
-
if (!isNull(timer)) {
|
|
16451
|
-
clearTimeout(timer);
|
|
16452
|
-
timer = null;
|
|
16453
|
-
}
|
|
16454
|
-
};
|
|
16455
|
-
const throttle = (...args) => {
|
|
16456
|
-
cancel();
|
|
16457
|
-
timer = setTimeout(() => {
|
|
16458
|
-
timer = null;
|
|
16459
|
-
fn.apply(null, args);
|
|
16460
|
-
}, rate);
|
|
16461
|
-
};
|
|
16462
|
-
return {
|
|
16463
|
-
cancel,
|
|
16464
|
-
throttle
|
|
16465
|
-
};
|
|
16466
|
-
};
|
|
16467
|
-
|
|
16468
16564
|
const throttle = _config => {
|
|
16469
16565
|
const state = Cell(null);
|
|
16470
16566
|
const readState = () => ({ timer: state.get() !== null ? 'set' : 'unset' });
|
|
@@ -17101,7 +17197,7 @@
|
|
|
17101
17197
|
return renderFormField(Optional.none(), FormField.parts.field({
|
|
17102
17198
|
factory: Button,
|
|
17103
17199
|
...renderButtonSpec(spec, Optional.some(action), providersBackstage, [
|
|
17104
|
-
|
|
17200
|
+
memory(''),
|
|
17105
17201
|
ComposingConfigs.self()
|
|
17106
17202
|
])
|
|
17107
17203
|
}));
|
|
@@ -17367,51 +17463,53 @@
|
|
|
17367
17463
|
});
|
|
17368
17464
|
};
|
|
17369
17465
|
|
|
17370
|
-
const renderAlertBanner = (spec, providersBackstage) =>
|
|
17371
|
-
|
|
17372
|
-
|
|
17373
|
-
|
|
17374
|
-
|
|
17375
|
-
'
|
|
17376
|
-
|
|
17377
|
-
|
|
17378
|
-
|
|
17379
|
-
|
|
17380
|
-
|
|
17381
|
-
|
|
17382
|
-
|
|
17383
|
-
|
|
17384
|
-
|
|
17385
|
-
|
|
17386
|
-
|
|
17387
|
-
|
|
17388
|
-
|
|
17389
|
-
|
|
17390
|
-
|
|
17391
|
-
'
|
|
17392
|
-
|
|
17393
|
-
|
|
17394
|
-
|
|
17395
|
-
|
|
17396
|
-
|
|
17397
|
-
|
|
17398
|
-
|
|
17466
|
+
const renderAlertBanner = (spec, providersBackstage) => {
|
|
17467
|
+
const icon = get$2(spec.icon, providersBackstage.icons);
|
|
17468
|
+
return Container.sketch({
|
|
17469
|
+
dom: {
|
|
17470
|
+
tag: 'div',
|
|
17471
|
+
attributes: { role: 'alert' },
|
|
17472
|
+
classes: [
|
|
17473
|
+
'tox-notification',
|
|
17474
|
+
'tox-notification--in',
|
|
17475
|
+
`tox-notification--${ spec.level }`
|
|
17476
|
+
]
|
|
17477
|
+
},
|
|
17478
|
+
components: [
|
|
17479
|
+
{
|
|
17480
|
+
dom: {
|
|
17481
|
+
tag: 'div',
|
|
17482
|
+
classes: ['tox-notification__icon'],
|
|
17483
|
+
innerHtml: !spec.url ? icon : undefined
|
|
17484
|
+
},
|
|
17485
|
+
components: spec.url ? [Button.sketch({
|
|
17486
|
+
dom: {
|
|
17487
|
+
tag: 'button',
|
|
17488
|
+
classes: [
|
|
17489
|
+
'tox-button',
|
|
17490
|
+
'tox-button--naked',
|
|
17491
|
+
'tox-button--icon'
|
|
17492
|
+
],
|
|
17493
|
+
innerHtml: icon,
|
|
17494
|
+
attributes: { title: providersBackstage.translate(spec.iconTooltip) }
|
|
17495
|
+
},
|
|
17496
|
+
action: comp => emitWith(comp, formActionEvent, {
|
|
17399
17497
|
name: 'alert-banner',
|
|
17400
17498
|
value: spec.url
|
|
17401
|
-
})
|
|
17402
|
-
|
|
17403
|
-
|
|
17404
|
-
|
|
17405
|
-
|
|
17406
|
-
|
|
17407
|
-
|
|
17408
|
-
|
|
17409
|
-
|
|
17410
|
-
|
|
17499
|
+
}),
|
|
17500
|
+
buttonBehaviours: derive$1([addFocusableBehaviour()])
|
|
17501
|
+
})] : undefined
|
|
17502
|
+
},
|
|
17503
|
+
{
|
|
17504
|
+
dom: {
|
|
17505
|
+
tag: 'div',
|
|
17506
|
+
classes: ['tox-notification__body'],
|
|
17507
|
+
innerHtml: providersBackstage.translate(spec.text)
|
|
17508
|
+
}
|
|
17411
17509
|
}
|
|
17412
|
-
|
|
17413
|
-
|
|
17414
|
-
}
|
|
17510
|
+
]
|
|
17511
|
+
});
|
|
17512
|
+
};
|
|
17415
17513
|
|
|
17416
17514
|
const set$1 = (element, status) => {
|
|
17417
17515
|
element.dom.checked = status;
|
|
@@ -17443,7 +17541,7 @@
|
|
|
17443
17541
|
}),
|
|
17444
17542
|
Tabstopping.config({}),
|
|
17445
17543
|
Focusing.config({}),
|
|
17446
|
-
|
|
17544
|
+
withElement(initialData, get$1, set$1),
|
|
17447
17545
|
Keying.config({
|
|
17448
17546
|
mode: 'special',
|
|
17449
17547
|
onEnter: toggleCheckboxHandler,
|
|
@@ -17692,6 +17790,42 @@
|
|
|
17692
17790
|
});
|
|
17693
17791
|
return () => lazyUseEditableAreaAnchor() ? editableAreaAnchor() : standardAnchor();
|
|
17694
17792
|
};
|
|
17793
|
+
const getInlineBottomDialogAnchor = (inline, contentAreaElement, lazyBottomAnchorBar, lazyUseEditableAreaAnchor) => {
|
|
17794
|
+
const bubbleSize = 12;
|
|
17795
|
+
const overrides = { maxHeightFunction: expandable$1() };
|
|
17796
|
+
const editableAreaAnchor = () => ({
|
|
17797
|
+
type: 'node',
|
|
17798
|
+
root: getContentContainer(getRootNode(contentAreaElement())),
|
|
17799
|
+
node: Optional.from(contentAreaElement()),
|
|
17800
|
+
bubble: nu$5(bubbleSize, bubbleSize, bubbleAlignments$2),
|
|
17801
|
+
layouts: {
|
|
17802
|
+
onRtl: () => [north],
|
|
17803
|
+
onLtr: () => [north]
|
|
17804
|
+
},
|
|
17805
|
+
overrides
|
|
17806
|
+
});
|
|
17807
|
+
const standardAnchor = () => inline ? {
|
|
17808
|
+
type: 'node',
|
|
17809
|
+
root: getContentContainer(getRootNode(contentAreaElement())),
|
|
17810
|
+
node: Optional.from(contentAreaElement()),
|
|
17811
|
+
bubble: nu$5(0, -getOuter$2(contentAreaElement()), bubbleAlignments$2),
|
|
17812
|
+
layouts: {
|
|
17813
|
+
onRtl: () => [north$2],
|
|
17814
|
+
onLtr: () => [north$2]
|
|
17815
|
+
},
|
|
17816
|
+
overrides
|
|
17817
|
+
} : {
|
|
17818
|
+
type: 'hotspot',
|
|
17819
|
+
hotspot: lazyBottomAnchorBar(),
|
|
17820
|
+
bubble: nu$5(0, 0, bubbleAlignments$2),
|
|
17821
|
+
layouts: {
|
|
17822
|
+
onRtl: () => [north$2],
|
|
17823
|
+
onLtr: () => [north$2]
|
|
17824
|
+
},
|
|
17825
|
+
overrides
|
|
17826
|
+
};
|
|
17827
|
+
return () => lazyUseEditableAreaAnchor() ? editableAreaAnchor() : standardAnchor();
|
|
17828
|
+
};
|
|
17695
17829
|
const getBannerAnchor = (contentAreaElement, lazyAnchorbar, lazyUseEditableAreaAnchor) => {
|
|
17696
17830
|
const editableAreaAnchor = () => ({
|
|
17697
17831
|
type: 'node',
|
|
@@ -17735,13 +17869,14 @@
|
|
|
17735
17869
|
root: bodyElement(),
|
|
17736
17870
|
node: element
|
|
17737
17871
|
});
|
|
17738
|
-
const getAnchors = (editor, lazyAnchorbar, isToolbarTop) => {
|
|
17872
|
+
const getAnchors = (editor, lazyAnchorbar, lazyBottomAnchorBar, isToolbarTop) => {
|
|
17739
17873
|
const useFixedToolbarContainer = useFixedContainer(editor);
|
|
17740
17874
|
const bodyElement = () => SugarElement.fromDom(editor.getBody());
|
|
17741
17875
|
const contentAreaElement = () => SugarElement.fromDom(editor.getContentAreaContainer());
|
|
17742
17876
|
const lazyUseEditableAreaAnchor = () => useFixedToolbarContainer || !isToolbarTop();
|
|
17743
17877
|
return {
|
|
17744
17878
|
inlineDialog: getInlineDialogAnchor(contentAreaElement, lazyAnchorbar, lazyUseEditableAreaAnchor),
|
|
17879
|
+
inlineBottomDialog: getInlineBottomDialogAnchor(editor.inline, contentAreaElement, lazyBottomAnchorBar, lazyUseEditableAreaAnchor),
|
|
17745
17880
|
banner: getBannerAnchor(contentAreaElement, lazyAnchorbar, lazyUseEditableAreaAnchor),
|
|
17746
17881
|
cursor: getCursorAnchor(editor, bodyElement),
|
|
17747
17882
|
node: getNodeAnchor$1(bodyElement)
|
|
@@ -18221,7 +18356,7 @@
|
|
|
18221
18356
|
getUrlPicker: filetype => getUrlPicker(editor, filetype)
|
|
18222
18357
|
});
|
|
18223
18358
|
|
|
18224
|
-
const init$6 = (lazySinks, editor, lazyAnchorbar) => {
|
|
18359
|
+
const init$6 = (lazySinks, editor, lazyAnchorbar, lazyBottomAnchorBar) => {
|
|
18225
18360
|
const contextMenuState = Cell(false);
|
|
18226
18361
|
const toolbar = HeaderBackstage(editor);
|
|
18227
18362
|
const providers = {
|
|
@@ -18240,7 +18375,7 @@
|
|
|
18240
18375
|
const commonBackstage = {
|
|
18241
18376
|
shared: {
|
|
18242
18377
|
providers,
|
|
18243
|
-
anchors: getAnchors(editor, lazyAnchorbar, toolbar.isPositionedAtTop),
|
|
18378
|
+
anchors: getAnchors(editor, lazyAnchorbar, lazyBottomAnchorBar, toolbar.isPositionedAtTop),
|
|
18244
18379
|
header: toolbar
|
|
18245
18380
|
},
|
|
18246
18381
|
urlinput,
|
|
@@ -19588,11 +19723,13 @@
|
|
|
19588
19723
|
}
|
|
19589
19724
|
state.clear();
|
|
19590
19725
|
};
|
|
19726
|
+
const isBlocked = (component, blockingConfig, blockingState) => blockingState.isBlocked();
|
|
19591
19727
|
|
|
19592
19728
|
var BlockingApis = /*#__PURE__*/Object.freeze({
|
|
19593
19729
|
__proto__: null,
|
|
19594
19730
|
block: block,
|
|
19595
|
-
unblock: unblock
|
|
19731
|
+
unblock: unblock,
|
|
19732
|
+
isBlocked: isBlocked
|
|
19596
19733
|
});
|
|
19597
19734
|
|
|
19598
19735
|
var BlockingSchema = [
|
|
@@ -21186,7 +21323,7 @@
|
|
|
21186
21323
|
},
|
|
21187
21324
|
tools: {
|
|
21188
21325
|
title: 'Tools',
|
|
21189
|
-
items: 'spellchecker spellcheckerlanguage | autocorrect capitalization | a11ycheck code typography wordcount addtemplate'
|
|
21326
|
+
items: 'aidialog aishortcuts | spellchecker spellcheckerlanguage | autocorrect capitalization | a11ycheck code typography wordcount addtemplate'
|
|
21190
21327
|
},
|
|
21191
21328
|
table: {
|
|
21192
21329
|
title: 'Table',
|
|
@@ -22548,6 +22685,13 @@
|
|
|
22548
22685
|
'redo'
|
|
22549
22686
|
]
|
|
22550
22687
|
},
|
|
22688
|
+
{
|
|
22689
|
+
name: 'ai',
|
|
22690
|
+
items: [
|
|
22691
|
+
'aidialog',
|
|
22692
|
+
'aishortcuts'
|
|
22693
|
+
]
|
|
22694
|
+
},
|
|
22551
22695
|
{
|
|
22552
22696
|
name: 'styles',
|
|
22553
22697
|
items: ['styles']
|
|
@@ -25816,16 +25960,23 @@
|
|
|
25816
25960
|
classes: ['tox-anchorbar']
|
|
25817
25961
|
}
|
|
25818
25962
|
});
|
|
25963
|
+
const memBottomAnchorBar = record({
|
|
25964
|
+
dom: {
|
|
25965
|
+
tag: 'div',
|
|
25966
|
+
classes: ['tox-bottom-anchorbar']
|
|
25967
|
+
}
|
|
25968
|
+
});
|
|
25819
25969
|
const lazyHeader = () => lazyUiRefs.mainUi.get().map(ui => ui.outerContainer).bind(OuterContainer.getHeader);
|
|
25820
25970
|
const lazyDialogSinkResult = () => Result.fromOption(lazyUiRefs.dialogUi.get().map(ui => ui.sink), 'UI has not been rendered');
|
|
25821
25971
|
const lazyPopupSinkResult = () => Result.fromOption(lazyUiRefs.popupUi.get().map(ui => ui.sink), '(popup) UI has not been rendered');
|
|
25822
25972
|
const lazyAnchorBar = lazyUiRefs.lazyGetInOuterOrDie('anchor bar', memAnchorBar.getOpt);
|
|
25973
|
+
const lazyBottomAnchorBar = lazyUiRefs.lazyGetInOuterOrDie('bottom anchor bar', memBottomAnchorBar.getOpt);
|
|
25823
25974
|
const lazyToolbar = lazyUiRefs.lazyGetInOuterOrDie('toolbar', OuterContainer.getToolbar);
|
|
25824
25975
|
const lazyThrobber = lazyUiRefs.lazyGetInOuterOrDie('throbber', OuterContainer.getThrobber);
|
|
25825
25976
|
const backstages = init$6({
|
|
25826
25977
|
popup: lazyPopupSinkResult,
|
|
25827
25978
|
dialog: lazyDialogSinkResult
|
|
25828
|
-
}, editor, lazyAnchorBar);
|
|
25979
|
+
}, editor, lazyAnchorBar, lazyBottomAnchorBar);
|
|
25829
25980
|
const makeHeaderPart = () => {
|
|
25830
25981
|
const verticalDirAttributes = { attributes: { [Attribute]: isToolbarBottom ? AttributeValue.BottomToTop : AttributeValue.TopToBottom } };
|
|
25831
25982
|
const partMenubar = OuterContainer.parts.menubar({
|
|
@@ -26008,7 +26159,10 @@
|
|
|
26008
26159
|
const editorContainer = OuterContainer.parts.editorContainer({
|
|
26009
26160
|
components: flatten([
|
|
26010
26161
|
editorComponents,
|
|
26011
|
-
isInline ? [] :
|
|
26162
|
+
isInline ? [] : [
|
|
26163
|
+
memBottomAnchorBar.asSpec(),
|
|
26164
|
+
...statusbar.toArray()
|
|
26165
|
+
]
|
|
26012
26166
|
])
|
|
26013
26167
|
});
|
|
26014
26168
|
const isHidden = isDistractionFree(editor);
|
|
@@ -26244,7 +26398,7 @@
|
|
|
26244
26398
|
behaviours: derive$1([
|
|
26245
26399
|
Focusing.config({}),
|
|
26246
26400
|
config('dialog-blocker-events', [runOnSource(focusin(), () => {
|
|
26247
|
-
Keying.focusIn(dialog);
|
|
26401
|
+
Blocking.isBlocked(dialog) ? noop() : Keying.focusIn(dialog);
|
|
26248
26402
|
})])
|
|
26249
26403
|
])
|
|
26250
26404
|
});
|
|
@@ -26260,7 +26414,7 @@
|
|
|
26260
26414
|
});
|
|
26261
26415
|
};
|
|
26262
26416
|
const getDialogBody = dialog => getPartOrDie(dialog, detail, 'body');
|
|
26263
|
-
const getDialogFooter = dialog =>
|
|
26417
|
+
const getDialogFooter = dialog => getPart(dialog, detail, 'footer');
|
|
26264
26418
|
const setBusy = (dialog, getBusySpec) => {
|
|
26265
26419
|
Blocking.block(dialog, getBusySpec);
|
|
26266
26420
|
};
|
|
@@ -26484,7 +26638,9 @@
|
|
|
26484
26638
|
const htmlPanelSchema = objOf(htmlPanelFields);
|
|
26485
26639
|
|
|
26486
26640
|
const iframeFields = formComponentWithLabelFields.concat([
|
|
26641
|
+
defaultedBoolean('border', false),
|
|
26487
26642
|
defaultedBoolean('sandboxed', true),
|
|
26643
|
+
defaultedBoolean('streamContent', false),
|
|
26488
26644
|
defaultedBoolean('transparent', true)
|
|
26489
26645
|
]);
|
|
26490
26646
|
const iframeSchema = objOf(iframeFields);
|
|
@@ -26510,7 +26666,12 @@
|
|
|
26510
26666
|
const createLabelFields = itemsField => [
|
|
26511
26667
|
type,
|
|
26512
26668
|
label,
|
|
26513
|
-
itemsField
|
|
26669
|
+
itemsField,
|
|
26670
|
+
defaultedStringEnum('align', 'start', [
|
|
26671
|
+
'start',
|
|
26672
|
+
'center',
|
|
26673
|
+
'end'
|
|
26674
|
+
])
|
|
26514
26675
|
];
|
|
26515
26676
|
|
|
26516
26677
|
const listBoxSingleItemFields = [
|
|
@@ -26676,7 +26837,7 @@
|
|
|
26676
26837
|
tabpanel: tabPanelSchema
|
|
26677
26838
|
})),
|
|
26678
26839
|
defaultedString('size', 'normal'),
|
|
26679
|
-
|
|
26840
|
+
defaultedArrayOf('buttons', [], dialogButtonSchema),
|
|
26680
26841
|
defaulted('initialData', {}),
|
|
26681
26842
|
defaultedFunction('onAction', noop),
|
|
26682
26843
|
defaultedFunction('onChange', noop),
|
|
@@ -26883,12 +27044,15 @@
|
|
|
26883
27044
|
useTabstopAt: not(isPseudoStop)
|
|
26884
27045
|
}),
|
|
26885
27046
|
ComposingConfigs.memento(memForm),
|
|
26886
|
-
|
|
27047
|
+
memento(memForm, {
|
|
26887
27048
|
postprocess: formValue => toValidValues(formValue).fold(err => {
|
|
26888
27049
|
console.error(err);
|
|
26889
27050
|
return {};
|
|
26890
27051
|
}, identity)
|
|
26891
|
-
})
|
|
27052
|
+
}),
|
|
27053
|
+
config('dialog-body-panel', [run$1(focusin(), (comp, se) => {
|
|
27054
|
+
comp.getSystem().broadcastOn([dialogFocusShiftedChannel], { newFocus: Optional.some(se.event.target) });
|
|
27055
|
+
})])
|
|
26892
27056
|
])
|
|
26893
27057
|
};
|
|
26894
27058
|
};
|
|
@@ -27343,7 +27507,7 @@
|
|
|
27343
27507
|
config('tabpanel', tabMode.extraEvents),
|
|
27344
27508
|
Keying.config({ mode: 'acyclic' }),
|
|
27345
27509
|
Composing.config({ find: comp => head(TabSection.getViewItems(comp)) }),
|
|
27346
|
-
|
|
27510
|
+
withComp(Optional.none(), tsection => {
|
|
27347
27511
|
tsection.getSystem().broadcastOn([SendDataToSectionChannel], {});
|
|
27348
27512
|
return storedValue.get();
|
|
27349
27513
|
}, (tsection, value) => {
|
|
@@ -27354,12 +27518,6 @@
|
|
|
27354
27518
|
});
|
|
27355
27519
|
};
|
|
27356
27520
|
|
|
27357
|
-
const dialogChannel = generate$6('update-dialog');
|
|
27358
|
-
const titleChannel = generate$6('update-title');
|
|
27359
|
-
const bodyChannel = generate$6('update-body');
|
|
27360
|
-
const footerChannel = generate$6('update-footer');
|
|
27361
|
-
const bodySendMessageChannel = generate$6('body-send-message');
|
|
27362
|
-
|
|
27363
27521
|
const renderBody = (spec, dialogId, contentId, backstage, ariaAttrs) => {
|
|
27364
27522
|
const renderComponents = incoming => {
|
|
27365
27523
|
const body = incoming.body;
|
|
@@ -27411,7 +27569,7 @@
|
|
|
27411
27569
|
tag: 'div',
|
|
27412
27570
|
classes: ['tox-dialog__body-iframe']
|
|
27413
27571
|
},
|
|
27414
|
-
components: [craft({
|
|
27572
|
+
components: [craft(Optional.none(), {
|
|
27415
27573
|
dom: {
|
|
27416
27574
|
tag: 'iframe',
|
|
27417
27575
|
attributes: { src: spec.url }
|
|
@@ -29110,9 +29268,14 @@
|
|
|
29110
29268
|
dragBlockClass: blockerClass,
|
|
29111
29269
|
modalBehaviours: derive$1([
|
|
29112
29270
|
Focusing.config({}),
|
|
29113
|
-
config('dialog-events', spec.dialogEvents.concat([
|
|
29114
|
-
|
|
29115
|
-
|
|
29271
|
+
config('dialog-events', spec.dialogEvents.concat([
|
|
29272
|
+
runOnSource(focusin(), (comp, _se) => {
|
|
29273
|
+
Blocking.isBlocked(comp) ? noop() : Keying.focusIn(comp);
|
|
29274
|
+
}),
|
|
29275
|
+
run$1(focusShifted(), (comp, se) => {
|
|
29276
|
+
comp.getSystem().broadcastOn([dialogFocusShiftedChannel], { newFocus: se.event.newFocus });
|
|
29277
|
+
})
|
|
29278
|
+
])),
|
|
29116
29279
|
config('scroll-lock', [
|
|
29117
29280
|
runOnAttached(() => {
|
|
29118
29281
|
add$2(body(), scrollLockClass);
|
|
@@ -29215,7 +29378,7 @@
|
|
|
29215
29378
|
title: backstage.shared.providers.translate(title),
|
|
29216
29379
|
draggable: backstage.dialog.isDraggableModal()
|
|
29217
29380
|
}, dialogId, backstage.shared.providers);
|
|
29218
|
-
const getBusySpec = (message, bs, providers) => ({
|
|
29381
|
+
const getBusySpec = (message, bs, providers, headerHeight) => ({
|
|
29219
29382
|
dom: {
|
|
29220
29383
|
tag: 'div',
|
|
29221
29384
|
classes: ['tox-dialog__busy-spinner'],
|
|
@@ -29224,7 +29387,7 @@
|
|
|
29224
29387
|
left: '0px',
|
|
29225
29388
|
right: '0px',
|
|
29226
29389
|
bottom: '0px',
|
|
29227
|
-
top:
|
|
29390
|
+
top: `${ headerHeight.getOr(0) }px`,
|
|
29228
29391
|
position: 'absolute'
|
|
29229
29392
|
}
|
|
29230
29393
|
},
|
|
@@ -29234,7 +29397,8 @@
|
|
|
29234
29397
|
const getEventExtras = (lazyDialog, providers, extra) => ({
|
|
29235
29398
|
onClose: () => extra.closeWindow(),
|
|
29236
29399
|
onBlock: blockEvent => {
|
|
29237
|
-
|
|
29400
|
+
const headerHeight = descendant(lazyDialog().element, '.tox-dialog__header').map(header => get$d(header));
|
|
29401
|
+
ModalDialog.setBusy(lazyDialog(), (_comp, bs) => getBusySpec(blockEvent.message, bs, providers, headerHeight));
|
|
29238
29402
|
},
|
|
29239
29403
|
onUnblock: () => {
|
|
29240
29404
|
ModalDialog.setIdle(lazyDialog());
|
|
@@ -29252,7 +29416,7 @@
|
|
|
29252
29416
|
updateState,
|
|
29253
29417
|
initialData
|
|
29254
29418
|
}),
|
|
29255
|
-
|
|
29419
|
+
memory({}),
|
|
29256
29420
|
...spec.extraBehaviours
|
|
29257
29421
|
],
|
|
29258
29422
|
onEscape: comp => {
|
|
@@ -29360,7 +29524,7 @@
|
|
|
29360
29524
|
spec.onChange(api, { name: event.name });
|
|
29361
29525
|
}),
|
|
29362
29526
|
fireApiEvent(formActionEvent, (api, spec, event, component) => {
|
|
29363
|
-
const focusIn = () => Keying.focusIn(component);
|
|
29527
|
+
const focusIn = () => component.getSystem().isConnected() ? Keying.focusIn(component) : undefined;
|
|
29364
29528
|
const isDisabled = focused => has$1(focused, 'disabled') || getOpt(focused, 'aria-disabled').exists(val => val === 'true');
|
|
29365
29529
|
const rootNode = getRootNode(component.element);
|
|
29366
29530
|
const current = active$1(rootNode);
|
|
@@ -29390,10 +29554,6 @@
|
|
|
29390
29554
|
})
|
|
29391
29555
|
];
|
|
29392
29556
|
};
|
|
29393
|
-
const SilverDialogEvents = {
|
|
29394
|
-
initUrlDialog,
|
|
29395
|
-
initDialog
|
|
29396
|
-
};
|
|
29397
29557
|
|
|
29398
29558
|
const makeButton = (button, backstage) => renderFooterButton(button, button.type, backstage);
|
|
29399
29559
|
const lookup = (compInSystem, footerButtons, buttonName) => find$5(footerButtons, button => button.name === buttonName).bind(memButton => memButton.memento.getOpt(compInSystem));
|
|
@@ -29450,7 +29610,7 @@
|
|
|
29450
29610
|
const form = Composing.getCurrent(access.getFormWrapper()).getOr(access.getFormWrapper());
|
|
29451
29611
|
return Form.getField(form, name).orThunk(() => {
|
|
29452
29612
|
const footer = access.getFooter();
|
|
29453
|
-
const footerState = Reflecting.getState(
|
|
29613
|
+
const footerState = footer.bind(f => Reflecting.getState(f).get());
|
|
29454
29614
|
return footerState.bind(f => f.lookupByName(name));
|
|
29455
29615
|
});
|
|
29456
29616
|
} else {
|
|
@@ -29577,14 +29737,14 @@
|
|
|
29577
29737
|
}, dialogId, backstage);
|
|
29578
29738
|
const storedMenuButtons = mapMenuButtons(internalDialog.buttons);
|
|
29579
29739
|
const objOfCells = extractCellsToObject(storedMenuButtons);
|
|
29580
|
-
const footer = renderModalFooter({ buttons: storedMenuButtons }, dialogId, backstage);
|
|
29581
|
-
const dialogEvents =
|
|
29740
|
+
const footer = someIf(storedMenuButtons.length !== 0, renderModalFooter({ buttons: storedMenuButtons }, dialogId, backstage));
|
|
29741
|
+
const dialogEvents = initDialog(() => instanceApi, getEventExtras(() => dialog, backstage.shared.providers, extra), backstage.shared.getSink);
|
|
29582
29742
|
const dialogSize = getDialogSizeClasses(internalDialog.size);
|
|
29583
29743
|
const spec = {
|
|
29584
29744
|
id: dialogId,
|
|
29585
29745
|
header,
|
|
29586
29746
|
body,
|
|
29587
|
-
footer
|
|
29747
|
+
footer,
|
|
29588
29748
|
extraClasses: dialogSize,
|
|
29589
29749
|
extraBehaviours: [],
|
|
29590
29750
|
extraStyles: {}
|
|
@@ -29622,11 +29782,20 @@
|
|
|
29622
29782
|
};
|
|
29623
29783
|
};
|
|
29624
29784
|
|
|
29625
|
-
const
|
|
29785
|
+
const getInlineDialogSizeClass = size => {
|
|
29786
|
+
switch (size) {
|
|
29787
|
+
case 'medium':
|
|
29788
|
+
return Optional.some('tox-dialog--width-md');
|
|
29789
|
+
default:
|
|
29790
|
+
return Optional.none();
|
|
29791
|
+
}
|
|
29792
|
+
};
|
|
29793
|
+
const renderInlineDialog = (dialogInit, extra, backstage, ariaAttrs = false) => {
|
|
29626
29794
|
const dialogId = generate$6('dialog');
|
|
29627
29795
|
const dialogLabelId = generate$6('dialog-label');
|
|
29628
29796
|
const dialogContentId = generate$6('dialog-content');
|
|
29629
29797
|
const internalDialog = dialogInit.internalDialog;
|
|
29798
|
+
const dialogSize = getInlineDialogSizeClass(internalDialog.size);
|
|
29630
29799
|
const updateState = (_comp, incoming) => Optional.some(incoming);
|
|
29631
29800
|
const memHeader = record(renderInlineHeader({
|
|
29632
29801
|
title: internalDialog.title,
|
|
@@ -29638,10 +29807,13 @@
|
|
|
29638
29807
|
}, dialogId, dialogContentId, backstage, ariaAttrs));
|
|
29639
29808
|
const storagedMenuButtons = mapMenuButtons(internalDialog.buttons);
|
|
29640
29809
|
const objOfCells = extractCellsToObject(storagedMenuButtons);
|
|
29641
|
-
const
|
|
29642
|
-
const dialogEvents =
|
|
29810
|
+
const optMemFooter = someIf(storagedMenuButtons.length !== 0, record(renderInlineFooter({ buttons: storagedMenuButtons }, dialogId, backstage)));
|
|
29811
|
+
const dialogEvents = initDialog(() => instanceApi, {
|
|
29643
29812
|
onBlock: event => {
|
|
29644
|
-
Blocking.block(dialog, (_comp, bs) =>
|
|
29813
|
+
Blocking.block(dialog, (_comp, bs) => {
|
|
29814
|
+
const headerHeight = memHeader.getOpt(dialog).map(dialog => get$d(dialog.element));
|
|
29815
|
+
return getBusySpec(event.message, bs, backstage.shared.providers, headerHeight);
|
|
29816
|
+
});
|
|
29645
29817
|
},
|
|
29646
29818
|
onUnblock: () => {
|
|
29647
29819
|
Blocking.unblock(dialog);
|
|
@@ -29654,7 +29826,8 @@
|
|
|
29654
29826
|
tag: 'div',
|
|
29655
29827
|
classes: [
|
|
29656
29828
|
'tox-dialog',
|
|
29657
|
-
inlineClass
|
|
29829
|
+
inlineClass,
|
|
29830
|
+
...dialogSize.toArray()
|
|
29658
29831
|
],
|
|
29659
29832
|
attributes: {
|
|
29660
29833
|
role: 'dialog',
|
|
@@ -29688,17 +29861,22 @@
|
|
|
29688
29861
|
initialData: dialogInit
|
|
29689
29862
|
}),
|
|
29690
29863
|
Focusing.config({}),
|
|
29691
|
-
config('execute-on-form', dialogEvents.concat([
|
|
29864
|
+
config('execute-on-form', dialogEvents.concat([
|
|
29865
|
+
runOnSource(focusin(), (comp, _se) => {
|
|
29692
29866
|
Keying.focusIn(comp);
|
|
29693
|
-
})
|
|
29867
|
+
}),
|
|
29868
|
+
run$1(focusShifted(), (comp, se) => {
|
|
29869
|
+
comp.getSystem().broadcastOn([dialogFocusShiftedChannel], { newFocus: se.event.newFocus });
|
|
29870
|
+
})
|
|
29871
|
+
])),
|
|
29694
29872
|
Blocking.config({ getRoot: () => Optional.some(dialog) }),
|
|
29695
29873
|
Replacing.config({}),
|
|
29696
|
-
|
|
29874
|
+
memory({})
|
|
29697
29875
|
]),
|
|
29698
29876
|
components: [
|
|
29699
29877
|
memHeader.asSpec(),
|
|
29700
29878
|
memBody.asSpec(),
|
|
29701
|
-
memFooter.asSpec()
|
|
29879
|
+
...optMemFooter.map(memFooter => memFooter.asSpec()).toArray()
|
|
29702
29880
|
]
|
|
29703
29881
|
});
|
|
29704
29882
|
const toggleFullscreen = () => {
|
|
@@ -29715,7 +29893,7 @@
|
|
|
29715
29893
|
const instanceApi = getDialogApi({
|
|
29716
29894
|
getId: constant$1(dialogId),
|
|
29717
29895
|
getRoot: constant$1(dialog),
|
|
29718
|
-
getFooter: () => memFooter.get(dialog),
|
|
29896
|
+
getFooter: () => optMemFooter.map(memFooter => memFooter.get(dialog)),
|
|
29719
29897
|
getBody: () => memBody.get(dialog),
|
|
29720
29898
|
getFormWrapper: () => {
|
|
29721
29899
|
const body = memBody.get(dialog);
|
|
@@ -29812,7 +29990,7 @@
|
|
|
29812
29990
|
return Optional.some(renderModalFooter({ buttons }, dialogId, backstage));
|
|
29813
29991
|
}
|
|
29814
29992
|
});
|
|
29815
|
-
const dialogEvents =
|
|
29993
|
+
const dialogEvents = initUrlDialog(() => instanceApi, getEventExtras(() => dialog, backstage.shared.providers, extra));
|
|
29816
29994
|
const styles = {
|
|
29817
29995
|
...internalDialog.height.fold(() => ({}), height => ({
|
|
29818
29996
|
'height': height + 'px',
|
|
@@ -30004,13 +30182,16 @@
|
|
|
30004
30182
|
const alertDialog = setup$2(extras.backstages.dialog);
|
|
30005
30183
|
const confirmDialog = setup$1(extras.backstages.dialog);
|
|
30006
30184
|
const open = (config, params, closeWindow) => {
|
|
30007
|
-
if (params
|
|
30008
|
-
|
|
30009
|
-
|
|
30010
|
-
|
|
30011
|
-
|
|
30012
|
-
|
|
30185
|
+
if (!isUndefined(params)) {
|
|
30186
|
+
if (params.inline === 'toolbar') {
|
|
30187
|
+
return openInlineDialog(config, extras.backstages.popup.shared.anchors.inlineDialog(), closeWindow, params);
|
|
30188
|
+
} else if (params.inline === 'bottom') {
|
|
30189
|
+
return openBottomInlineDialog(config, extras.backstages.popup.shared.anchors.inlineBottomDialog(), closeWindow, params);
|
|
30190
|
+
} else if (params.inline === 'cursor') {
|
|
30191
|
+
return openInlineDialog(config, extras.backstages.popup.shared.anchors.cursor(), closeWindow, params);
|
|
30192
|
+
}
|
|
30013
30193
|
}
|
|
30194
|
+
return openModalDialog(config, closeWindow);
|
|
30014
30195
|
};
|
|
30015
30196
|
const openUrl = (config, closeWindow) => openModalUrlDialog(config, closeWindow);
|
|
30016
30197
|
const openModalUrlDialog = (config, closeWindow) => {
|
|
@@ -30047,7 +30228,7 @@
|
|
|
30047
30228
|
};
|
|
30048
30229
|
return DialogManager.open(factory, config);
|
|
30049
30230
|
};
|
|
30050
|
-
const openInlineDialog = (config$1, anchor, closeWindow,
|
|
30231
|
+
const openInlineDialog = (config$1, anchor, closeWindow, windowParams) => {
|
|
30051
30232
|
const factory = (contents, internalInitialData, dataValidator) => {
|
|
30052
30233
|
const initialData = validateData(internalInitialData, dataValidator);
|
|
30053
30234
|
const inlineDialog = value$2();
|
|
@@ -30069,14 +30250,14 @@
|
|
|
30069
30250
|
inlineDialog.clear();
|
|
30070
30251
|
closeWindow(dialogUi.instanceApi);
|
|
30071
30252
|
}
|
|
30072
|
-
}, extras.backstages.popup, ariaAttrs);
|
|
30253
|
+
}, extras.backstages.popup, windowParams.ariaAttrs);
|
|
30073
30254
|
const inlineDialogComp = build$1(InlineView.sketch({
|
|
30074
30255
|
lazySink: extras.backstages.popup.shared.getSink,
|
|
30075
30256
|
dom: {
|
|
30076
30257
|
tag: 'div',
|
|
30077
30258
|
classes: []
|
|
30078
30259
|
},
|
|
30079
|
-
fireDismissalEventInstead: {},
|
|
30260
|
+
fireDismissalEventInstead: windowParams.persistent ? { event: 'doNotDismissYet' } : {},
|
|
30080
30261
|
...isToolbarLocationTop ? {} : { fireRepositionEventInstead: {} },
|
|
30081
30262
|
inlineBehaviours: derive$1([
|
|
30082
30263
|
config('window-manager-inline-events', [run$1(dismissRequested(), (_comp, _se) => {
|
|
@@ -30103,6 +30284,92 @@
|
|
|
30103
30284
|
};
|
|
30104
30285
|
return DialogManager.open(factory, config$1);
|
|
30105
30286
|
};
|
|
30287
|
+
const openBottomInlineDialog = (config$1, anchor, closeWindow, windowParams) => {
|
|
30288
|
+
const factory = (contents, internalInitialData, dataValidator) => {
|
|
30289
|
+
const initialData = validateData(internalInitialData, dataValidator);
|
|
30290
|
+
const inlineDialog = value$2();
|
|
30291
|
+
const isToolbarLocationTop = extras.backstages.popup.shared.header.isPositionedAtTop();
|
|
30292
|
+
const dialogInit = {
|
|
30293
|
+
dataValidator,
|
|
30294
|
+
initialData,
|
|
30295
|
+
internalDialog: contents
|
|
30296
|
+
};
|
|
30297
|
+
const refreshDocking = () => inlineDialog.on(dialog => {
|
|
30298
|
+
InlineView.reposition(dialog);
|
|
30299
|
+
Docking.refresh(dialog);
|
|
30300
|
+
});
|
|
30301
|
+
const dialogUi = renderInlineDialog(dialogInit, {
|
|
30302
|
+
redial: DialogManager.redial,
|
|
30303
|
+
closeWindow: () => {
|
|
30304
|
+
inlineDialog.on(InlineView.hide);
|
|
30305
|
+
editor.off('ResizeEditor ScrollWindow ElementScroll', refreshDocking);
|
|
30306
|
+
inlineDialog.clear();
|
|
30307
|
+
closeWindow(dialogUi.instanceApi);
|
|
30308
|
+
}
|
|
30309
|
+
}, extras.backstages.popup, windowParams.ariaAttrs);
|
|
30310
|
+
const inlineDialogComp = build$1(InlineView.sketch({
|
|
30311
|
+
lazySink: extras.backstages.popup.shared.getSink,
|
|
30312
|
+
dom: {
|
|
30313
|
+
tag: 'div',
|
|
30314
|
+
classes: []
|
|
30315
|
+
},
|
|
30316
|
+
fireDismissalEventInstead: windowParams.persistent ? { event: 'doNotDismissYet' } : {},
|
|
30317
|
+
...isToolbarLocationTop ? {} : { fireRepositionEventInstead: {} },
|
|
30318
|
+
inlineBehaviours: derive$1([
|
|
30319
|
+
config('window-manager-inline-events', [run$1(dismissRequested(), (_comp, _se) => {
|
|
30320
|
+
emit(dialogUi.dialog, formCancelEvent);
|
|
30321
|
+
})]),
|
|
30322
|
+
Docking.config({
|
|
30323
|
+
contextual: {
|
|
30324
|
+
lazyContext: () => Optional.some(box$1(SugarElement.fromDom(editor.getContentAreaContainer()))),
|
|
30325
|
+
fadeInClass: 'tox-dialog-dock-fadein',
|
|
30326
|
+
fadeOutClass: 'tox-dialog-dock-fadeout',
|
|
30327
|
+
transitionClass: 'tox-dialog-dock-transition'
|
|
30328
|
+
},
|
|
30329
|
+
modes: [
|
|
30330
|
+
'top',
|
|
30331
|
+
'bottom'
|
|
30332
|
+
],
|
|
30333
|
+
lazyViewport: comp => {
|
|
30334
|
+
const optScrollingContext = detectWhenSplitUiMode(editor, comp.element);
|
|
30335
|
+
return optScrollingContext.map(sc => {
|
|
30336
|
+
const combinedBounds = getBoundsFrom(sc);
|
|
30337
|
+
return {
|
|
30338
|
+
bounds: combinedBounds,
|
|
30339
|
+
optScrollEnv: Optional.some({
|
|
30340
|
+
currentScrollTop: sc.element.dom.scrollTop,
|
|
30341
|
+
scrollElmTop: absolute$3(sc.element).top
|
|
30342
|
+
})
|
|
30343
|
+
};
|
|
30344
|
+
}).getOrThunk(() => ({
|
|
30345
|
+
bounds: win(),
|
|
30346
|
+
optScrollEnv: Optional.none()
|
|
30347
|
+
}));
|
|
30348
|
+
}
|
|
30349
|
+
})
|
|
30350
|
+
]),
|
|
30351
|
+
isExtraPart: (_comp, target) => isAlertOrConfirmDialog(target)
|
|
30352
|
+
}));
|
|
30353
|
+
inlineDialog.set(inlineDialogComp);
|
|
30354
|
+
const getInlineDialogBounds = () => {
|
|
30355
|
+
return extras.backstages.popup.shared.getSink().toOptional().bind(s => {
|
|
30356
|
+
const optScrollingContext = detectWhenSplitUiMode(editor, s.element);
|
|
30357
|
+
const margin = 15;
|
|
30358
|
+
const bounds$1 = optScrollingContext.map(sc => getBoundsFrom(sc)).getOr(win());
|
|
30359
|
+
const contentAreaContainer = box$1(SugarElement.fromDom(editor.getContentAreaContainer()));
|
|
30360
|
+
const constrainedBounds = constrain(contentAreaContainer, bounds$1);
|
|
30361
|
+
return Optional.some(bounds(constrainedBounds.x, constrainedBounds.y, constrainedBounds.width, constrainedBounds.height - margin));
|
|
30362
|
+
});
|
|
30363
|
+
};
|
|
30364
|
+
InlineView.showWithinBounds(inlineDialogComp, premade(dialogUi.dialog), { anchor }, getInlineDialogBounds);
|
|
30365
|
+
Docking.refresh(inlineDialogComp);
|
|
30366
|
+
editor.on('ResizeEditor ScrollWindow ElementScroll', refreshDocking);
|
|
30367
|
+
dialogUi.instanceApi.setData(initialData);
|
|
30368
|
+
Keying.focusIn(dialogUi.dialog);
|
|
30369
|
+
return dialogUi.instanceApi;
|
|
30370
|
+
};
|
|
30371
|
+
return DialogManager.open(factory, config$1);
|
|
30372
|
+
};
|
|
30106
30373
|
const confirm = (message, callback) => {
|
|
30107
30374
|
confirmDialog.open(message, callback);
|
|
30108
30375
|
};
|