@phis/ui 0.1.0 → 0.2.1
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 +119 -2009
- package/cms/plugins.d.ts +1 -2
- package/cms/plugins.js +0 -1
- package/cms.d.ts +2 -2
- package/cms.js +2 -2
- package/components/account/avatar-client.js +12 -17
- package/components/calendar/gregory-calendar-adapter-client.js +15 -13
- package/components/cms/clients/phi-cms-node-visibility-gate.d.ts +19 -0
- package/components/cms/clients/phi-cms-node-visibility-gate.js +1 -0
- package/components/cms/phi-cms-area-access-guard.d.ts +21 -0
- package/components/cms/phi-cms-area-access-guard.js +48 -0
- package/components/cms/phi-cms-area-render-scope.d.ts +6 -65
- package/components/cms/phi-cms-area-render-scope.js +8 -7
- package/components/cms/phi-cms-error-page.d.ts +1 -1
- package/components/cms/phi-cms-error-page.js +14 -12
- package/components/cms/phi-cms-layout-renderer.d.ts +54 -2
- package/components/cms/phi-cms-layout-renderer.js +179 -74
- package/components/cms/phi-cms-page-redirect.js +10 -5
- package/components/cms/phi-cms-page-renderer.js +2 -1
- package/components/cms/phi-cms-render-diagnostic-client.js +3 -3
- package/components/cms/phi-cms-root-layout.js +52 -25
- package/components/cms/phi-cms-root-page.js +30 -30
- package/components/cms/phi-cms-root-slot-page.js +16 -19
- package/components/cms/phi-cms-runtime-registry.d.ts +20 -2
- package/components/cms/phi-cms-runtime-registry.js +12 -0
- package/components/cms/phi-hard-forward.d.ts +21 -0
- package/components/cms/phi-hard-forward.js +26 -0
- package/components/controls/phi-accordion-control.d.ts +30 -0
- package/components/controls/phi-accordion-control.js +17 -0
- package/components/controls/phi-alert-control.d.ts +1 -1
- package/components/controls/phi-alert-control.js +12 -2
- package/components/controls/phi-avatar-control.d.ts +31 -0
- package/components/controls/phi-avatar-control.js +26 -0
- package/components/controls/phi-background-control.js +15 -9
- package/components/controls/phi-border-control.js +3 -2
- package/components/controls/phi-brand-control.d.ts +39 -8
- package/components/controls/phi-brand-control.js +71 -15
- package/components/controls/phi-builder-insert-picker-control-labels.d.ts +2 -0
- package/components/controls/phi-builder-insert-picker-control-labels.js +1 -0
- package/components/controls/phi-builder-insert-picker-control.js +97 -35
- package/components/controls/phi-button-control.d.ts +19 -2
- package/components/controls/phi-button-control.js +38 -7
- package/components/controls/phi-card-control.d.ts +61 -0
- package/components/controls/phi-card-control.js +12 -0
- package/components/controls/phi-checkbox-group-control.js +4 -7
- package/components/controls/phi-collection-header-control.js +3 -9
- package/components/controls/phi-collection-view-control.d.ts +1 -0
- package/components/controls/phi-collection-view-control.js +3 -3
- package/components/controls/phi-color-control.js +29 -13
- package/components/controls/phi-color-field-control.d.ts +38 -0
- package/components/controls/phi-color-field-control.js +32 -0
- package/components/controls/phi-compact-group-control.d.ts +38 -0
- package/components/controls/phi-compact-group-control.js +6 -0
- package/components/controls/phi-confirm-control.js +2 -14
- package/components/controls/phi-confirm-dialog.d.ts +32 -0
- package/components/controls/phi-confirm-dialog.js +79 -0
- package/components/controls/phi-control-option-content.d.ts +16 -1
- package/components/controls/phi-control-option-content.js +26 -10
- package/components/controls/phi-control-options.d.ts +1 -69
- package/components/controls/phi-control-options.js +6 -112
- package/components/controls/phi-description-list-control.d.ts +43 -0
- package/components/controls/phi-description-list-control.js +28 -0
- package/components/controls/phi-description-tooltip-icon.d.ts +11 -2
- package/components/controls/phi-description-tooltip-icon.js +15 -2
- package/components/controls/phi-dialog-control.d.ts +76 -0
- package/components/controls/phi-dialog-control.js +15 -0
- package/components/controls/phi-dimension-control.js +7 -1
- package/components/controls/phi-divider-control.d.ts +14 -0
- package/components/controls/phi-divider-control.js +6 -0
- package/components/controls/phi-drawer-control-adapter.d.ts +2 -0
- package/components/controls/phi-drawer-control-adapter.js +75 -0
- package/components/controls/phi-drawer-control.d.ts +9 -2
- package/components/controls/phi-drawer-control.js +18 -54
- package/components/controls/phi-dropdown-control.js +3 -4
- package/components/controls/phi-empty-control.d.ts +28 -0
- package/components/controls/phi-empty-control.js +6 -0
- package/components/controls/phi-entry-list-control.d.ts +46 -0
- package/components/controls/phi-entry-list-control.js +17 -0
- package/components/controls/phi-expand-indicator.js +1 -2
- package/components/controls/phi-file-drop-control.d.ts +41 -0
- package/components/controls/phi-file-drop-control.js +10 -0
- package/components/controls/phi-flex-control.d.ts +20 -0
- package/components/controls/phi-flex-control.js +6 -0
- package/components/controls/phi-form-control.d.ts +5 -0
- package/components/controls/phi-form-control.js +120 -31
- package/components/controls/phi-geometry-control.js +35 -22
- package/components/controls/phi-hover-text.d.ts +12 -0
- package/components/controls/phi-hover-text.js +23 -0
- package/components/controls/phi-icon-picker-control.d.ts +1 -1
- package/components/controls/phi-icon-picker-control.js +17 -5
- package/components/controls/phi-inline-text-editor.d.ts +43 -0
- package/components/controls/phi-inline-text-editor.js +62 -0
- package/components/controls/phi-labeled-control.d.ts +10 -0
- package/components/controls/phi-labeled-control.js +14 -4
- package/components/controls/phi-length-control.js +11 -3
- package/components/controls/phi-mask-picker-control.js +3 -5
- package/components/controls/phi-media-asset-tile-control.d.ts +8 -1
- package/components/controls/phi-media-asset-tile-control.js +16 -17
- package/components/controls/phi-media-picker-control.js +3 -2
- package/components/controls/phi-menu-control.d.ts +15 -1
- package/components/controls/phi-menu-control.js +4 -1
- package/components/controls/phi-modal-control-adapter.d.ts +2 -0
- package/components/controls/phi-modal-control-adapter.js +160 -0
- package/components/controls/phi-modal-control.d.ts +15 -4
- package/components/controls/phi-modal-control.js +22 -128
- package/components/controls/phi-multi-select-control.d.ts +3 -1
- package/components/controls/phi-multi-select-control.js +2 -2
- package/components/controls/phi-name-control.d.ts +33 -0
- package/components/controls/phi-name-control.js +6 -0
- package/components/controls/phi-number-control.d.ts +3 -1
- package/components/controls/phi-number-control.js +8 -2
- package/components/controls/phi-overlay-control-contract.d.ts +36 -1
- package/components/controls/phi-overlay-control-contract.js +50 -0
- package/components/controls/phi-padding-control.js +20 -9
- package/components/controls/phi-pagination-control.d.ts +8 -1
- package/components/controls/phi-pagination-control.js +2 -2
- package/components/controls/phi-picker-control-contract.d.ts +2 -0
- package/components/controls/phi-picker-control-contract.js +3 -2
- package/components/controls/phi-preset-size-control.js +2 -2
- package/components/controls/phi-progress-control.d.ts +15 -0
- package/components/controls/phi-progress-control.js +6 -0
- package/components/controls/phi-qr-code-control.d.ts +13 -0
- package/components/controls/phi-qr-code-control.js +6 -0
- package/components/controls/phi-radio-group-control.js +4 -7
- package/components/controls/phi-select-control.d.ts +3 -1
- package/components/controls/phi-select-control.js +2 -2
- package/components/controls/phi-skeleton-control.d.ts +52 -0
- package/components/controls/phi-skeleton-control.js +44 -0
- package/components/controls/phi-spin-control.d.ts +18 -0
- package/components/controls/phi-spin-control.js +6 -0
- package/components/controls/phi-statistic-control.d.ts +14 -0
- package/components/controls/phi-statistic-control.js +6 -0
- package/components/controls/phi-switch-control.d.ts +7 -3
- package/components/controls/phi-switch-control.js +2 -2
- package/components/controls/phi-table-control.d.ts +7 -1
- package/components/controls/phi-table-control.js +90 -33
- package/components/controls/phi-tag-control.d.ts +19 -1
- package/components/controls/phi-tag-control.js +5 -2
- package/components/controls/phi-text-control.d.ts +5 -1
- package/components/controls/phi-text-control.js +4 -3
- package/components/controls/phi-toolbar-control.js +12 -3
- package/components/controls/phi-tree-control.js +10 -7
- package/components/controls/phi-tree-select-control.d.ts +56 -0
- package/components/controls/phi-tree-select-control.js +69 -0
- package/components/controls/phi-typography-control-adapter.d.ts +2 -0
- package/components/controls/phi-typography-control-adapter.js +40 -0
- package/components/controls/phi-typography-control.d.ts +33 -0
- package/components/controls/phi-typography-control.js +56 -0
- package/components/controls/phi-video-embed-control.d.ts +50 -0
- package/components/controls/phi-video-embed-control.js +87 -0
- package/components/forms/auth-admin-settings-labels.d.ts +8 -3
- package/components/forms/auth-admin-settings-labels.js +16 -4
- package/components/forms/choice-form-field-controls.d.ts +5 -0
- package/components/forms/choice-form-field-controls.js +15 -0
- package/components/forms/compound-form-controls.js +1 -5
- package/components/forms/datetime-form-control.js +2 -1
- package/components/forms/extended-form-field-controls.d.ts +2 -0
- package/components/forms/extended-form-field-controls.js +19 -1
- package/components/forms/form-descriptor-contract.d.ts +65 -320
- package/components/forms/form-descriptor-contract.js +82 -435
- package/components/forms/form-descriptor-runtime-client.d.ts +1 -1
- package/components/forms/form-descriptor-runtime-client.js +175 -90
- package/components/forms/form-guard-client.d.ts +3 -3
- package/components/forms/form-guard-client.js +7 -5
- package/components/forms/form-provider-contract.d.ts +71 -625
- package/components/forms/form-provider-contract.js +105 -70
- package/components/forms/form-provider-registry.d.ts +7 -2
- package/components/forms/form-registry.d.ts +36 -22
- package/components/forms/form-registry.js +39 -1
- package/components/forms/form-relay-area.d.ts +14 -0
- package/components/forms/form-relay-area.js +24 -0
- package/components/forms/form-resolution.js +2 -4
- package/components/forms/form-widget-config.d.ts +57 -0
- package/components/forms/form-widget-config.js +122 -0
- package/components/forms/phi-form-widget-frame.d.ts +51 -13
- package/components/forms/phi-form-widget-frame.js +90 -16
- package/components/forms/phi-form-widget.d.ts +15 -0
- package/components/forms/phi-form-widget.js +95 -0
- package/components/forms/runtime-form-client.js +4 -6
- package/components/forms/runtime-form-controller-definition.d.ts +1 -1
- package/components/forms/runtime-form-controller-mount.js +30 -15
- package/components/forms/runtime-form-controller-plugin.d.ts +1 -1
- package/components/forms/runtime-form-controller-requirement.d.ts +1 -1
- package/components/forms/runtime-form-state.js +5 -7
- package/components/forms/shared-form-descriptors.d.ts +175 -0
- package/components/forms/shared-form-descriptors.js +158 -0
- package/components/forms/shared-form-ids.d.ts +18 -0
- package/components/forms/shared-form-ids.js +18 -0
- package/components/forms/shared-form-loaders.d.ts +20 -0
- package/components/forms/shared-form-loaders.js +31 -0
- package/components/forms/shared-form-provider-registry.js +134 -117
- package/components/forms/site-locales-config.d.ts +18 -0
- package/components/forms/site-locales-config.js +35 -0
- package/components/forms/storage-size.d.ts +36 -0
- package/components/forms/storage-size.js +46 -0
- package/components/forms/upload-form-control.d.ts +24 -0
- package/components/forms/upload-form-control.js +126 -0
- package/components/layouts/clients/phi-base-layout-client.d.ts +3 -12
- package/components/layouts/clients/phi-base-layout-client.js +5 -165
- package/components/layouts/clients/phi-carousel-layout-client.d.ts +1 -2
- package/components/layouts/clients/phi-carousel-layout-client.js +28 -23
- package/components/layouts/clients/phi-collapsible-layout-client.d.ts +0 -3
- package/components/layouts/clients/phi-collapsible-layout-client.js +125 -49
- package/components/layouts/clients/phi-content-layout-client.d.ts +7 -5
- package/components/layouts/clients/phi-content-layout-client.js +3 -4
- package/components/layouts/clients/phi-flex-layout-client.js +21 -7
- package/components/layouts/clients/phi-flex-vertical-layout-client.js +23 -6
- package/components/layouts/clients/phi-grid-layout-client.js +112 -115
- package/components/layouts/clients/phi-layout-anchored-overlay.d.ts +16 -0
- package/components/layouts/clients/phi-layout-anchored-overlay.js +29 -24
- package/components/layouts/clients/phi-sequence-slot-editor.d.ts +15 -3
- package/components/layouts/clients/phi-sequence-slot-editor.js +7 -20
- package/components/layouts/clients/phi-split-card-layout-client.d.ts +1 -1
- package/components/layouts/clients/phi-split-card-layout-client.js +25 -13
- package/components/layouts/clients/phi-stack-layout-client.d.ts +2 -2
- package/components/layouts/clients/phi-stack-layout-client.js +72 -26
- package/components/layouts/clients/phi-three-column-layout-client.d.ts +6 -4
- package/components/layouts/clients/phi-three-column-layout-client.js +40 -26
- package/components/layouts/layout-definitions.d.ts +184 -40
- package/components/layouts/layout-definitions.js +148 -28
- package/components/layouts/phi-base-layout.d.ts +1 -1
- package/components/layouts/phi-base-layout.js +12 -39
- package/components/layouts/phi-carousel-layout.js +1 -1
- package/components/layouts/phi-carousel-pages.d.ts +28 -0
- package/components/layouts/phi-carousel-pages.js +53 -0
- package/components/layouts/phi-collapsible-layout.js +1 -1
- package/components/layouts/phi-grid-contract.d.ts +83 -1
- package/components/layouts/phi-grid-contract.js +138 -10
- package/components/layouts/phi-grid-layout.js +1 -1
- package/components/layouts/phi-layout-contract.d.ts +156 -18
- package/components/layouts/phi-layout-contract.js +305 -51
- package/components/layouts/phi-layout-slot-state.d.ts +0 -1
- package/components/layouts/phi-layout-slot-state.js +0 -8
- package/components/layouts/phi-layout-view-model.d.ts +1 -1
- package/components/layouts/phi-layout-view-model.js +2 -1
- package/components/layouts/phi-masonry-layout.js +44 -9
- package/components/layouts/phi-stack-layout.js +1 -1
- package/components/layouts/phi-structure-region-layout.js +4 -3
- package/components/layouts/plugins/carousel-layout-plugin.d.ts +0 -1
- package/components/layouts/plugins/carousel-layout-plugin.js +3 -4
- package/components/layouts/plugins/collapsible-layout-plugin.d.ts +0 -1
- package/components/layouts/plugins/collapsible-layout-plugin.js +3 -4
- package/components/layouts/plugins/content-layout-plugin.d.ts +0 -1
- package/components/layouts/plugins/content-layout-plugin.js +3 -3
- package/components/layouts/plugins/flex-layout-plugin.d.ts +0 -1
- package/components/layouts/plugins/flex-layout-plugin.js +3 -4
- package/components/layouts/plugins/flex-vertical-layout-plugin.d.ts +0 -1
- package/components/layouts/plugins/flex-vertical-layout-plugin.js +3 -4
- package/components/layouts/plugins/grid-layout-plugin.d.ts +0 -1
- package/components/layouts/plugins/grid-layout-plugin.js +2 -4
- package/components/layouts/plugins/masonry-layout-plugin.d.ts +0 -1
- package/components/layouts/plugins/masonry-layout-plugin.js +1 -3
- package/components/layouts/plugins/page-region-layout-plugin.d.ts +0 -1
- package/components/layouts/plugins/page-region-layout-plugin.js +0 -2
- package/components/layouts/plugins/split-card-layout-plugin.d.ts +0 -1
- package/components/layouts/plugins/split-card-layout-plugin.js +2 -4
- package/components/layouts/plugins/stack-layout-plugin.d.ts +0 -1
- package/components/layouts/plugins/stack-layout-plugin.js +3 -4
- package/components/layouts/plugins/structure-region-layout-plugin.d.ts +0 -1
- package/components/layouts/plugins/structure-region-layout-plugin.js +0 -2
- package/components/layouts/plugins/three-column-layout-plugin.d.ts +0 -1
- package/components/layouts/plugins/three-column-layout-plugin.js +2 -4
- package/components/layouts/stack-signals.d.ts +0 -1
- package/components/layouts/stack-signals.js +0 -1
- package/components/layouts/use-phi-slot-sequence.d.ts +31 -3
- package/components/layouts/use-phi-slot-sequence.js +32 -12
- package/components/media/asset-collection-runtime.d.ts +3 -2
- package/components/media/asset-collection-runtime.js +9 -11
- package/components/media/background-asset-projection.js +3 -5
- package/components/media/label-sets/media.js +2 -0
- package/components/media/media-folder-options.d.ts +18 -0
- package/components/media/media-folder-options.js +76 -0
- package/components/media/media-settings-labels.d.ts +4 -1
- package/components/media/media-settings-labels.js +23 -16
- package/components/media/media-upload-digest.d.ts +38 -0
- package/components/media/media-upload-digest.js +38 -0
- package/components/media/media-upload-flow.d.ts +98 -1
- package/components/media/media-upload-flow.js +301 -8
- package/components/media/media-widget-labels.d.ts +1 -0
- package/components/media/media-widget-labels.js +1 -0
- package/components/media/phi-area-upload-widget.d.ts +1 -1
- package/components/media/phi-area-upload-widget.js +33 -48
- package/components/media/phi-asset-focal-rect-widget.d.ts +2 -2
- package/components/media/phi-asset-focal-rect-widget.js +14 -3
- package/components/media/phi-asset-inspector-section.js +5 -4
- package/components/media/phi-image-inspector-widget.d.ts +1 -1
- package/components/media/phi-image-inspector-widget.js +1 -1
- package/components/media/phi-image-preview-store.d.ts +0 -9
- package/components/media/phi-image-preview-store.js +0 -29
- package/components/media/phi-media-picker-binding.d.ts +1 -1
- package/components/media/phi-media-picker-binding.js +15 -11
- package/components/media/phi-media-picker-server.d.ts +1 -1
- package/components/media/phi-media-picker-widget.d.ts +1 -1
- package/components/media/phi-site-font-assets.js +1 -1
- package/components/media/use-authoring-asset-details.js +5 -8
- package/components/menus/phi-account-menu.d.ts +14 -11
- package/components/menus/phi-account-menu.js +94 -46
- package/components/motion/phi-sequence-viewport.js +11 -0
- package/components/navigation/phi-link.d.ts +11 -1
- package/components/navigation/phi-link.js +2 -2
- package/components/overlays/phi-overlay-container-client.d.ts +10 -7
- package/components/overlays/phi-overlay-container-client.js +113 -38
- package/components/overlays/phi-overlay-zones-loader.d.ts +20 -0
- package/components/overlays/phi-overlay-zones-loader.js +26 -0
- package/components/regions/clients/cms-region-container-client.d.ts +8 -3
- package/components/regions/clients/cms-region-container-client.js +102 -336
- package/components/regions/phi-cms-region-container.js +3 -1
- package/components/regions/phi-cms-region-shell.d.ts +88 -0
- package/components/regions/phi-cms-region-shell.js +300 -0
- package/components/regions/phi-cms-region-static.d.ts +8 -4
- package/components/regions/phi-cms-region-static.js +19 -211
- package/components/regions/presets/navigation-redirect.d.ts +0 -1
- package/components/regions/presets/navigation-redirect.js +5 -22
- package/components/regions/presets/phi-area-root-redirect-tree.d.ts +1 -3
- package/components/regions/presets/phi-area-root-redirect-tree.js +8 -2
- package/components/regions/presets/phi-base-page-layout.js +10 -11
- package/components/regions/presets/phi-header-top-actions-layout.d.ts +17 -0
- package/components/regions/presets/phi-header-top-actions-layout.js +28 -0
- package/components/regions/presets/phi-settings-page-shell-tree.d.ts +97 -15
- package/components/regions/presets/phi-settings-page-shell-tree.js +242 -44
- package/components/root/phi-config-provider.d.ts +9 -2
- package/components/root/phi-config-provider.js +10 -2
- package/components/root/phi-dayjs-locale.d.ts +9 -2
- package/components/root/phi-dayjs-locale.js +20 -4
- package/components/root/phi-intl-locale.d.ts +6 -0
- package/components/root/phi-intl-locale.js +21 -0
- package/components/root/phi-root-background.d.ts +3 -3
- package/components/root/phi-root-background.js +3 -3
- package/components/root/phi-root-layout.d.ts +2 -1
- package/components/root/phi-root-layout.js +12 -3
- package/components/root/phi-root-live-theme-provider.d.ts +8 -3
- package/components/root/phi-root-live-theme-provider.js +75 -9
- package/components/root/phi-root-theme-resolver.d.ts +21 -1
- package/components/root/phi-root-theme-resolver.js +20 -3
- package/components/runtime/application-feedback-host.d.ts +35 -0
- package/components/runtime/application-feedback-host.js +66 -0
- package/components/runtime/core-runtime-application-adapter.d.ts +8 -1
- package/components/runtime/core-runtime-application-adapter.js +97 -26
- package/components/runtime/core-runtime-controller-definition.d.ts +11 -0
- package/components/runtime/core-runtime-controller-definition.js +33 -0
- package/components/runtime/core-runtime-controller-plugin.d.ts +11 -0
- package/components/runtime/phi-password-change-required-modal.d.ts +16 -0
- package/components/runtime/phi-password-change-required-modal.js +34 -0
- package/components/runtime/phi-password-change-required.d.ts +14 -0
- package/components/runtime/phi-password-change-required.js +41 -0
- package/components/runtime/phi-state-machine-binding.d.ts +40 -0
- package/components/runtime/phi-state-machine-binding.js +119 -0
- package/components/runtime/phi-video-consent-store.d.ts +17 -0
- package/components/runtime/phi-video-consent-store.js +54 -0
- package/components/runtime/renderable-block-runtime.d.ts +0 -8
- package/components/runtime/renderable-block-runtime.js +5 -18
- package/components/runtime/renderable-widget-runtime.d.ts +10 -0
- package/components/runtime/renderable-widget-runtime.js +20 -0
- package/components/runtime/runtime-controller-materialization.d.ts +22 -2
- package/components/runtime/runtime-controller-materialization.js +48 -10
- package/components/runtime/runtime-module-authoring-client-manifest.d.ts +5 -5
- package/components/runtime/runtime-module-authoring-client-manifest.js +4 -13
- package/components/runtime/runtime-module-authoring-host.d.ts +1 -6
- package/components/runtime/runtime-module-authoring-host.js +0 -4
- package/components/runtime/runtime-module-calendar-adapter-client-manifest.js +10 -12
- package/components/runtime/runtime-module-client-manifest-context.d.ts +25 -0
- package/components/runtime/runtime-module-client-manifest-context.js +45 -0
- package/components/runtime/runtime-module-context.d.ts +11 -1
- package/components/runtime/runtime-module-context.js +12 -2
- package/components/runtime/runtime-module-controller-client-manifest.d.ts +5 -5
- package/components/runtime/runtime-module-controller-client-manifest.js +4 -13
- package/components/runtime/runtime-module-data-provider-client-manifest.d.ts +2 -2
- package/components/runtime/runtime-module-data-provider-client-manifest.js +7 -22
- package/components/runtime/runtime-module-render-client-manifest.d.ts +11 -2
- package/components/runtime/runtime-module-render-client-manifest.js +17 -20
- package/components/runtime/runtime-module-ui-provider-client-manifest.d.ts +36 -0
- package/components/runtime/runtime-module-ui-provider-client-manifest.js +30 -0
- package/components/runtime/runtime-signal-bus.js +76 -2
- package/components/runtime/runtime-signal-identity.d.ts +11 -1
- package/components/runtime/runtime-signal-identity.js +25 -0
- package/components/runtime/runtime-signal-registry.d.ts +0 -3
- package/components/runtime/runtime-signal-registry.js +1 -15
- package/components/runtime/user-state-client.d.ts +34 -0
- package/components/runtime/user-state-client.js +79 -0
- package/components/shell/phi-antd-icon.d.ts +73 -0
- package/components/shell/phi-antd-icon.js +192 -0
- package/components/shell/phi-asset-icon.d.ts +5 -0
- package/components/shell/phi-asset-icon.js +18 -0
- package/components/shell/phi-avatar.d.ts +1 -15
- package/components/shell/phi-avatar.js +4 -26
- package/components/shell/phi-builder-icon.d.ts +1 -1
- package/components/shell/phi-builder-icon.js +19 -2
- package/components/shell/phi-builder-motif-icon.js +1 -0
- package/components/shell/phi-icon.js +11 -43
- package/components/shell/phi-locale-switch.js +6 -1
- package/components/shell/phi-widget-icon.js +2 -1
- package/components/shell/shell-types.d.ts +25 -15
- package/components/shell/shell-types.js +1 -68
- package/components/state/history-store.d.ts +2 -0
- package/components/state/history-store.js +13 -0
- package/components/state/scoped-state-store.js +12 -5
- package/components/tables/client/phi-table-binding.d.ts +3 -2
- package/components/tables/phi-plain-table.js +1 -2
- package/components/trees/client/phi-tree-binding.js +8 -5
- package/components/widgets/accessible-areas.d.ts +42 -0
- package/components/widgets/accessible-areas.js +49 -0
- package/components/widgets/builder/phi-static-options-picker.js +24 -17
- package/components/widgets/builder/stack-tabs.d.ts +1 -2
- package/components/widgets/builder/stack-tabs.js +1 -2
- package/components/widgets/built-in/widget-preview-client.js +9 -5
- package/components/widgets/client/auth-workflow-body.d.ts +19 -3
- package/components/widgets/client/auth-workflow-body.js +24 -43
- package/components/widgets/client/description-editor-sections.d.ts +28 -0
- package/components/widgets/client/description-editor-sections.js +7 -0
- package/components/widgets/client/external-document-editor.js +3 -2
- package/components/widgets/client/html-editor-image-node.js +51 -17
- package/components/widgets/client/search.js +11 -59
- package/components/widgets/client/shared/core-options-providers.d.ts +3 -0
- package/components/widgets/client/shared/core-options-providers.js +20 -1
- package/components/widgets/client/shared/description-items.d.ts +6 -0
- package/components/widgets/client/shared/description-items.js +12 -0
- package/components/widgets/client/shared/phi-authoring-tools-labels.d.ts +7 -0
- package/components/widgets/client/shared/phi-authoring-tools-labels.js +23 -0
- package/components/widgets/client/shared/phi-button-icons.js +19 -19
- package/components/widgets/client/shared/phi-choice-controller.js +2 -1
- package/components/widgets/client/shared/phi-collection-provider.d.ts +22 -17
- package/components/widgets/client/shared/phi-collection-provider.js +2 -2
- package/components/widgets/client/shared/phi-collection-view-binding.d.ts +5 -19
- package/components/widgets/client/shared/phi-collection-view-binding.js +32 -21
- package/components/widgets/client/shared/phi-control-signal-routing.d.ts +35 -0
- package/components/widgets/client/shared/phi-control-signal-routing.js +35 -0
- package/components/widgets/client/shared/phi-control-signals.d.ts +0 -1
- package/components/widgets/client/shared/phi-control-signals.js +31 -65
- package/components/widgets/client/shared/phi-input-signals.d.ts +0 -3
- package/components/widgets/client/shared/phi-page-reference-picker.d.ts +18 -0
- package/components/widgets/client/shared/phi-page-reference-picker.js +32 -0
- package/components/widgets/client/shared/phi-rendered-value.d.ts +43 -0
- package/components/widgets/client/shared/phi-rendered-value.js +75 -0
- package/components/widgets/client/shared/phi-search-draft.d.ts +33 -0
- package/components/widgets/client/shared/phi-search-draft.js +52 -0
- package/components/widgets/client/shared/phi-static-table-provider.d.ts +12 -1
- package/components/widgets/client/shared/phi-static-table-provider.js +57 -7
- package/components/widgets/client/shared/phi-table-provider-response.d.ts +14 -0
- package/components/widgets/client/shared/phi-table-provider-response.js +16 -0
- package/components/widgets/client/shared/phi-table-provider.d.ts +3 -5
- package/components/widgets/client/shared/phi-table-provider.js +10 -24
- package/components/widgets/client/shared/phi-widget-image-tool-button.d.ts +2 -4
- package/components/widgets/client/shared/phi-widget-image-tool-button.js +6 -8
- package/components/widgets/client/shared/phi-widget-tool-buttons.js +56 -45
- package/components/widgets/config/background.d.ts +23 -0
- package/components/widgets/config/background.js +128 -41
- package/components/widgets/config/button-variant.d.ts +28 -0
- package/components/widgets/config/button-variant.js +32 -0
- package/components/widgets/config/choice-shared.d.ts +2 -2
- package/components/widgets/config/geometry.d.ts +4 -4
- package/components/widgets/config/helpers.d.ts +2 -2
- package/components/widgets/config/image-source-parser.d.ts +1 -1
- package/components/widgets/config/mask.d.ts +4 -2
- package/components/widgets/config/mask.js +13 -28
- package/components/widgets/config/parser-primitives.d.ts +11 -2
- package/components/widgets/config/parser-primitives.js +38 -3
- package/components/widgets/config/search-shared.d.ts +1 -80
- package/components/widgets/config/search-shared.js +4 -6
- package/components/widgets/config/spacing-options.d.ts +0 -1
- package/components/widgets/config/spacing-options.js +0 -1
- package/components/widgets/config/stack-tabs.d.ts +1 -121
- package/components/widgets/config/stack-tabs.js +3 -7
- package/components/widgets/config/text-tone.d.ts +22 -0
- package/components/widgets/config/text-tone.js +18 -0
- package/components/widgets/helpers/font-family.d.ts +13 -2
- package/components/widgets/helpers/font-family.js +22 -0
- package/components/widgets/helpers/font-size.d.ts +6 -2
- package/components/widgets/helpers/font-size.js +14 -0
- package/components/widgets/helpers/internal-reference-resolver.server.d.ts +10 -0
- package/components/widgets/helpers/internal-reference-resolver.server.js +19 -10
- package/components/widgets/inspector-field-row.js +3 -2
- package/components/widgets/label-sets/account.d.ts +7 -5
- package/components/widgets/label-sets/account.js +18 -8
- package/components/widgets/label-sets/auth-workflow.d.ts +4 -0
- package/components/widgets/label-sets/auth-workflow.js +63 -0
- package/components/widgets/label-sets/authoring-tools.d.ts +6 -0
- package/components/widgets/label-sets/authoring-tools.js +122 -0
- package/components/widgets/label-sets/border.js +8 -0
- package/components/widgets/label-sets/builder-chrome.js +2 -16
- package/components/widgets/label-sets/builder-modules.js +2 -0
- package/components/widgets/label-sets/draft-status.d.ts +4 -0
- package/components/widgets/label-sets/draft-status.js +29 -0
- package/components/widgets/label-sets/effects.js +8 -0
- package/components/widgets/label-sets/icon-picker.d.ts +6 -0
- package/components/widgets/label-sets/icon-picker.js +67 -0
- package/components/widgets/label-sets/news.d.ts +9 -0
- package/components/widgets/label-sets/news.js +29 -0
- package/components/widgets/label-sets/padding.d.ts +4 -0
- package/components/widgets/label-sets/padding.js +55 -0
- package/components/widgets/label-sets/profile.d.ts +55 -23
- package/components/widgets/label-sets/profile.js +80 -47
- package/components/widgets/label-sets/record.d.ts +4 -0
- package/components/widgets/label-sets/record.js +23 -0
- package/components/widgets/label-sets/region.js +4 -0
- package/components/widgets/label-sets/revisions.js +16 -0
- package/components/widgets/label-sets/security.d.ts +4 -0
- package/components/widgets/label-sets/security.js +81 -0
- package/components/widgets/label-sets/session.d.ts +6 -0
- package/components/widgets/label-sets/session.js +20 -0
- package/components/widgets/label-sets/threads.d.ts +96 -0
- package/components/widgets/label-sets/threads.js +269 -0
- package/components/widgets/label-sets/unsubscribe.d.ts +17 -0
- package/components/widgets/label-sets/unsubscribe.js +39 -0
- package/components/widgets/label-sets/video.d.ts +11 -0
- package/components/widgets/label-sets/video.js +40 -0
- package/components/widgets/label-types/auth-workflow.d.ts +38 -0
- package/components/widgets/label-types/authoring-tools.d.ts +78 -0
- package/components/widgets/label-types/authoring-tools.js +61 -0
- package/components/widgets/label-types/border.d.ts +8 -10
- package/components/widgets/label-types/border.js +7 -9
- package/components/widgets/label-types/builder-chrome.d.ts +0 -10
- package/components/widgets/label-types/builder-chrome.js +0 -12
- package/components/widgets/label-types/builder-modules.d.ts +2 -0
- package/components/widgets/label-types/builder-modules.js +2 -0
- package/components/widgets/label-types/common-controls.d.ts +2 -1
- package/components/widgets/label-types/common-controls.js +4 -4
- package/components/widgets/label-types/draft-status.d.ts +11 -0
- package/components/widgets/label-types/draft-status.js +12 -0
- package/components/widgets/label-types/effects.d.ts +6 -0
- package/components/widgets/label-types/effects.js +5 -0
- package/components/widgets/label-types/icon-picker.d.ts +30 -0
- package/components/widgets/label-types/icon-picker.js +31 -0
- package/components/widgets/label-types/padding.d.ts +3 -0
- package/components/widgets/label-types/padding.js +2 -0
- package/components/widgets/label-types/record.d.ts +8 -0
- package/components/widgets/label-types/record.js +9 -0
- package/components/widgets/label-types/region.d.ts +4 -0
- package/components/widgets/label-types/region.js +2 -0
- package/components/widgets/label-types/revisions.d.ts +11 -0
- package/components/widgets/label-types/revisions.js +9 -0
- package/components/widgets/label-types/security.d.ts +37 -0
- package/components/widgets/label-types/security.js +3 -0
- package/components/widgets/label-types/spacing-scale.d.ts +13 -0
- package/components/widgets/label-types/spacing-scale.js +11 -0
- package/components/widgets/login-redirect.js +3 -7
- package/components/widgets/navigation-descriptor-resolver.server.js +16 -5
- package/components/widgets/plugins/stack-tabs-widget-plugin.d.ts +1 -2
- package/components/widgets/plugins/stack-tabs-widget-plugin.js +1 -2
- package/components/widgets/server/builder-chrome.d.ts +0 -1
- package/components/widgets/server/builder-chrome.js +0 -4
- package/components/widgets/shared/card-body-client.d.ts +86 -0
- package/components/widgets/shared/card-body-client.js +102 -0
- package/components/widgets/shared/markdown-body-client.d.ts +81 -0
- package/components/widgets/shared/markdown-body-client.js +181 -0
- package/components/widgets/shared/markdown-code-tokens.d.ts +46 -0
- package/components/widgets/shared/markdown-code-tokens.js +330 -0
- package/components/widgets/shared/markdown-render.d.ts +40 -0
- package/components/widgets/shared/markdown-render.js +506 -0
- package/components/widgets/shared/result-body-client.d.ts +5 -2
- package/components/widgets/shared/result-body.d.ts +13 -1
- package/components/widgets/shared/result-body.js +11 -2
- package/components/widgets/signals/control-signal-capabilities.d.ts +0 -72
- package/components/widgets/signals/control-signal-capabilities.js +0 -70
- package/components/widgets/signals/page-title-signals.d.ts +0 -1
- package/components/widgets/signals/page-title-signals.js +2 -5
- package/components/widgets/signals/signal-endpoint-list.js +4 -3
- package/components/widgets/signals/signal-endpoints.js +2 -4
- package/components/workspace/catalog-store.d.ts +0 -1
- package/components/workspace/catalog-store.js +0 -3
- package/constants/authoring-option-provider-keys.d.ts +20 -0
- package/constants/authoring-option-provider-keys.js +21 -0
- package/constants/cms-areas.d.ts +22 -7
- package/constants/cms-areas.js +25 -37
- package/constants/cms-error-pages.d.ts +25 -0
- package/constants/cms-error-pages.js +31 -0
- package/constants/cms-layout-type-keys.d.ts +21 -0
- package/constants/cms-layout-type-keys.js +54 -0
- package/constants/cms-layout-types.d.ts +0 -20
- package/constants/cms-layout-types.js +2 -48
- package/constants/cms-widget-types.d.ts +9 -7
- package/constants/cms-widget-types.js +15 -16
- package/constants/core-data-provider-keys.d.ts +12 -0
- package/constants/core-data-provider-keys.js +13 -0
- package/constants/dashboard-card-provider-keys.d.ts +19 -0
- package/constants/dashboard-card-provider-keys.js +20 -0
- package/constants/http-headers.d.ts +20 -1
- package/constants/http-headers.js +20 -1
- package/constants/media-library-provider-keys.d.ts +9 -0
- package/constants/media-library-provider-keys.js +10 -1
- package/constants/phi-base-role-metadata.d.ts +0 -1
- package/constants/phi-cms.d.ts +1 -1
- package/constants/phi-cms.js +1 -1
- package/constants/runtime-data-provider-key.d.ts +8 -0
- package/constants/runtime-data-provider-key.js +10 -0
- package/constants/runtime-module-ownership.js +41 -0
- package/constants/runtime-render-client-types.d.ts +1 -3
- package/constants/runtime-render-client-types.js +2 -4
- package/constants/support.d.ts +2 -0
- package/constants/support.js +6 -0
- package/constants/thread-library-provider-keys.d.ts +19 -0
- package/constants/thread-library-provider-keys.js +20 -0
- package/constants/threads.d.ts +1 -0
- package/constants/threads.js +6 -0
- package/constants/user-state.d.ts +1 -0
- package/constants/user-state.js +6 -0
- package/constants.d.ts +8 -6
- package/constants.js +8 -6
- package/controls.d.ts +12 -7
- package/controls.js +20 -3
- package/core-widgets.d.ts +3 -0
- package/core-widgets.js +7 -0
- package/forms-client.d.ts +4 -0
- package/forms-client.js +8 -0
- package/forms.d.ts +4 -7
- package/forms.js +10 -6
- package/gateway/area-root-door.d.ts +14 -0
- package/gateway/area-root-door.js +65 -0
- package/gateway/auth-public-manifest.d.ts +23 -1
- package/gateway/auth-public-manifest.js +41 -12
- package/gateway/dashboard-cards-route.d.ts +21 -0
- package/gateway/dashboard-cards-route.js +269 -0
- package/gateway/form-handler-resolution.d.ts +12 -1
- package/gateway/form-handler-resolution.js +45 -53
- package/gateway/form-registry.js +7 -11
- package/gateway/form-submit.js +23 -15
- package/gateway/internal-references.js +6 -3
- package/gateway/label-set.js +4 -4
- package/gateway/module-diagnostics-route.d.ts +36 -0
- package/gateway/module-diagnostics-route.js +61 -0
- package/gateway/navigation-target-route.d.ts +6 -0
- package/gateway/navigation-target-route.js +215 -0
- package/gateway/news.d.ts +22 -0
- package/gateway/news.js +76 -0
- package/gateway/server-capabilities.js +3 -5
- package/gateway/site-area-bridges.d.ts +23 -0
- package/gateway/site-area-bridges.js +12 -0
- package/gateway/site-area.js +6 -11
- package/gateway/site-auth-settings.js +3 -5
- package/gateway/site-config.d.ts +2 -84
- package/gateway/site-config.js +4 -6
- package/gateway/site-form-route.d.ts +4 -12
- package/gateway/site-form-route.js +61 -43
- package/gateway/site-media-settings.js +3 -5
- package/gateway/site-nav.js +6 -15
- package/gateway/site-page.js +6 -15
- package/gateway/site-proxy.d.ts +10 -1
- package/gateway/site-proxy.js +89 -6
- package/gateway/site-read-cache.d.ts +19 -0
- package/gateway/site-read-cache.js +24 -0
- package/gateway/site-settings.js +3 -5
- package/gateway/site-stats.js +3 -5
- package/gateway/site-theme.js +2 -5
- package/gateway/thread-inbox-stats.d.ts +25 -0
- package/gateway/thread-inbox-stats.js +34 -0
- package/gateway/tr.js +48 -85
- package/gateway/user-state.d.ts +27 -0
- package/gateway/user-state.js +48 -0
- package/helpers/access.d.ts +0 -7
- package/helpers/access.js +1 -11
- package/helpers/border-widget-style.d.ts +35 -0
- package/helpers/border-widget-style.js +41 -0
- package/helpers/brand-wordmark.d.ts +10 -0
- package/helpers/brand-wordmark.js +14 -3
- package/helpers/client-json-request.d.ts +48 -0
- package/helpers/client-json-request.js +49 -0
- package/helpers/cms-access-policy.js +1 -5
- package/helpers/cms-area-config.d.ts +22 -2
- package/helpers/cms-area-config.js +32 -11
- package/helpers/cms-area-root-route.d.ts +8 -7
- package/helpers/cms-area-root-route.js +11 -12
- package/helpers/cms-config-field-validation.js +9 -0
- package/helpers/cms-config-serialization.d.ts +0 -69
- package/helpers/cms-config-serialization.js +1 -60
- package/helpers/cms-draft-delete.d.ts +8 -0
- package/helpers/cms-draft-delete.js +23 -0
- package/helpers/cms-layout-defaults.js +16 -25
- package/helpers/cms-layout-depth.d.ts +0 -2
- package/helpers/cms-layout-depth.js +0 -35
- package/helpers/cms-navigation-catalog.d.ts +24 -3
- package/helpers/cms-navigation-catalog.js +52 -17
- package/helpers/cms-node-factories.d.ts +21 -8
- package/helpers/cms-node-factories.js +8 -2
- package/helpers/cms-page-catalog.d.ts +0 -3
- package/helpers/cms-page-catalog.js +0 -10
- package/helpers/cms-paths.d.ts +4 -4
- package/helpers/cms-paths.js +6 -15
- package/helpers/cms-preset-nodes.d.ts +79 -6
- package/helpers/cms-preset-nodes.js +57 -14
- package/helpers/cms-region-keys.d.ts +18 -1
- package/helpers/cms-region-keys.js +23 -0
- package/helpers/cms-routing.d.ts +17 -0
- package/helpers/cms-routing.js +37 -0
- package/helpers/csrf-token.d.ts +33 -0
- package/helpers/csrf-token.js +61 -0
- package/helpers/dot-path.d.ts +7 -0
- package/helpers/dot-path.js +18 -0
- package/helpers/format-date-time.d.ts +2 -2
- package/helpers/format-date-time.js +20 -11
- package/helpers/is-record.d.ts +1 -0
- package/helpers/is-record.js +6 -0
- package/helpers/layout-authoring-markers.d.ts +4 -1
- package/helpers/layout-authoring-markers.js +5 -2
- package/helpers/link-target.d.ts +44 -0
- package/helpers/link-target.js +66 -0
- package/helpers/locale.d.ts +28 -0
- package/helpers/locale.js +82 -27
- package/helpers/logout.d.ts +26 -0
- package/helpers/logout.js +37 -0
- package/helpers/motion.d.ts +8 -0
- package/helpers/motion.js +8 -0
- package/helpers/nav-selection.js +12 -9
- package/helpers/phi-metadata.d.ts +9 -0
- package/helpers/phi-metadata.js +2 -0
- package/helpers/renderable-block-anchor.d.ts +2 -0
- package/helpers/renderable-block-anchor.js +28 -0
- package/helpers/renderable-block-effects.js +3 -1
- package/helpers/renderable-block-serialization.d.ts +1 -2
- package/helpers/renderable-block-serialization.js +13 -35
- package/helpers/runtime-module-route-path.d.ts +14 -1
- package/helpers/runtime-module-route-path.js +18 -0
- package/helpers/shell-region-style.d.ts +5 -3
- package/helpers/shell-region-style.js +27 -4
- package/helpers/site-api.d.ts +11 -10
- package/helpers/site-api.js +13 -18
- package/helpers/site-locale-config.js +6 -6
- package/helpers/site-runtime.d.ts +0 -2
- package/helpers/site-runtime.js +0 -10
- package/helpers/state-machine-binding.d.ts +84 -0
- package/helpers/state-machine-binding.js +101 -0
- package/helpers/state-machine-diagnostics.d.ts +30 -0
- package/helpers/state-machine-diagnostics.js +89 -0
- package/helpers/table-binding.js +4 -5
- package/helpers/text-placeholders.d.ts +50 -0
- package/helpers/text-placeholders.js +83 -0
- package/helpers/visibility.d.ts +0 -1
- package/helpers/visibility.js +0 -5
- package/helpers.d.ts +3 -13
- package/helpers.js +3 -13
- package/media.d.ts +2 -2
- package/media.js +1 -1
- package/module-client.d.ts +6 -1
- package/module-labels.d.ts +18 -0
- package/module-labels.js +16 -0
- package/module-projection-authoring-client.d.ts +5 -3
- package/module-projection-authoring-client.js +8 -5
- package/module-projection-client.d.ts +2 -2
- package/module-projection-client.js +7 -2
- package/module-projection.d.ts +12 -5
- package/module-projection.js +31 -8
- package/module.d.ts +37 -12
- package/module.js +22 -7
- package/net/log.d.ts +0 -1
- package/net/log.js +0 -1
- package/net/phi-next-proxy.d.ts +25 -0
- package/net/phi-next-proxy.js +64 -3
- package/next/area-route.d.ts +24 -13
- package/next/area-route.js +30 -20
- package/next/areas/accounting-client.js +3 -2
- package/next/areas/admin-client.js +3 -2
- package/next/areas/app-client.js +3 -2
- package/next/areas/builder-client.js +3 -2
- package/next/areas/builder.js +1 -1
- package/next/areas/editor-client.js +3 -2
- package/next/areas/public-client.js +3 -2
- package/next/global-error.d.ts +33 -0
- package/next/global-error.js +80 -0
- package/next/overlay-zones.d.ts +15 -0
- package/next/overlay-zones.js +104 -0
- package/next/proxy-runtime.d.ts +16 -0
- package/next/proxy-runtime.js +89 -12
- package/next/root-route.d.ts +24 -5
- package/next/root-route.js +76 -26
- package/next/route-handlers.d.ts +23 -0
- package/next/route-handlers.js +22 -0
- package/next/runtime-module-client-boundary.d.ts +3 -1
- package/next/runtime-module-client-boundary.js +3 -2
- package/next/seo-routes.js +1 -2
- package/next/site-proxy.js +72 -15
- package/next/static-asset-path.d.ts +1 -0
- package/next/static-asset-path.js +23 -0
- package/package.json +50 -62
- package/plugins/registries/runtime-controllers.js +3 -5
- package/plugins/runtime/phi-effects-ready-trigger.d.ts +13 -0
- package/plugins/runtime/phi-effects-ready-trigger.js +48 -0
- package/plugins/runtime/phi-slot-child-frame-client.js +6 -6
- package/plugins/runtime/phi-slot-child-frame-view.js +19 -29
- package/plugins/runtime/slot-size-policy.d.ts +34 -3
- package/plugins/runtime/slot-size-policy.js +152 -17
- package/plugins/runtime-modules/accounting/definition.d.ts +0 -3
- package/plugins/runtime-modules/accounting/definition.js +0 -6
- package/plugins/runtime-modules/accounting/module.d.ts +15 -1
- package/plugins/runtime-modules/accounting/module.js +8 -3
- package/plugins/runtime-modules/accounting/trees/phi-default-accounting-page-tree.d.ts +6 -0
- package/plugins/runtime-modules/accounting/trees/phi-default-accounting-page-tree.js +45 -0
- package/plugins/runtime-modules/admin/controller/address.d.ts +0 -2
- package/plugins/runtime-modules/admin/controller/address.js +1 -5
- package/plugins/runtime-modules/admin/forms.js +1 -6
- package/plugins/runtime-modules/admin/module.d.ts +1 -45
- package/plugins/runtime-modules/admin/module.js +2 -4
- package/plugins/runtime-modules/admin/presets.d.ts +1 -5
- package/plugins/runtime-modules/admin/presets.js +3 -6
- package/plugins/runtime-modules/admin/trees/admin-settings-label-set.d.ts +6 -0
- package/plugins/runtime-modules/admin/trees/admin-settings-label-set.js +18 -0
- package/plugins/runtime-modules/admin/trees/phi-default-admin-area-preset-tree.d.ts +6 -0
- package/plugins/runtime-modules/admin/trees/phi-default-admin-area-preset-tree.js +180 -0
- package/plugins/runtime-modules/admin/trees/phi-default-admin-settings-page-tree.d.ts +6 -0
- package/plugins/runtime-modules/admin/trees/phi-default-admin-settings-page-tree.js +81 -0
- package/plugins/runtime-modules/app/definition.d.ts +59 -3
- package/plugins/runtime-modules/app/definition.js +4 -6
- package/plugins/runtime-modules/app/forms.d.ts +82 -0
- package/plugins/runtime-modules/app/forms.js +341 -0
- package/plugins/runtime-modules/app/module.d.ts +74 -1
- package/plugins/runtime-modules/app/module.js +8 -3
- package/plugins/runtime-modules/app/server.js +2 -0
- package/plugins/runtime-modules/app/trees/phi-default-app-area-preset-tree.d.ts +18 -0
- package/plugins/runtime-modules/app/trees/phi-default-app-area-preset-tree.js +101 -0
- package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.d.ts +22 -0
- package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.js +175 -0
- package/plugins/runtime-modules/app/trees/profile-label-set.d.ts +11 -0
- package/plugins/runtime-modules/app/trees/profile-label-set.js +40 -0
- package/plugins/runtime-modules/area-base-presets.d.ts +31 -4
- package/plugins/runtime-modules/area-base-presets.js +108 -22
- package/plugins/runtime-modules/area-catalogs/accounting.d.ts +1 -6
- package/plugins/runtime-modules/area-catalogs/accounting.js +3 -12
- package/plugins/runtime-modules/area-catalogs/admin.d.ts +1 -6
- package/plugins/runtime-modules/area-catalogs/admin.js +3 -12
- package/plugins/runtime-modules/area-catalogs/app.d.ts +1 -6
- package/plugins/runtime-modules/area-catalogs/app.js +3 -12
- package/plugins/runtime-modules/area-catalogs/area-catalog.d.ts +13 -0
- package/plugins/runtime-modules/area-catalogs/area-catalog.js +13 -0
- package/plugins/runtime-modules/area-catalogs/editor.d.ts +1 -6
- package/plugins/runtime-modules/area-catalogs/editor.js +3 -12
- package/plugins/runtime-modules/area-catalogs/public.d.ts +1 -6
- package/plugins/runtime-modules/area-catalogs/public.js +3 -12
- package/plugins/runtime-modules/area-contributions/app.d.ts +1 -1
- package/plugins/runtime-modules/area-contributions/app.js +4 -0
- package/plugins/runtime-modules/area-contributions/editor.d.ts +1 -1
- package/plugins/runtime-modules/area-contributions/editor.js +2 -0
- package/plugins/runtime-modules/area-contributions/public.d.ts +1 -1
- package/plugins/runtime-modules/area-contributions/public.js +4 -0
- package/plugins/runtime-modules/area-definitions.d.ts +184 -121
- package/plugins/runtime-modules/area-definitions.js +183 -43
- package/plugins/runtime-modules/area-module-defaults.d.ts +3 -0
- package/plugins/runtime-modules/area-module-defaults.js +59 -0
- package/plugins/runtime-modules/area-root-route.d.ts +1 -3
- package/plugins/runtime-modules/area-root-route.js +2 -4
- package/plugins/runtime-modules/asset/client-data-providers.js +2 -2
- package/plugins/runtime-modules/asset/client.js +1 -1
- package/plugins/runtime-modules/asset/controller/client.d.ts +124 -0
- package/plugins/runtime-modules/asset/controller/client.js +10 -0
- package/plugins/runtime-modules/asset/controller/definition.js +128 -0
- package/plugins/runtime-modules/asset/controller/mount.d.ts +4 -0
- package/plugins/runtime-modules/asset/controller/mount.js +6 -0
- package/plugins/runtime-modules/asset/controller/runtime.d.ts +1 -0
- package/plugins/runtime-modules/asset/controller/runtime.js +327 -0
- package/plugins/runtime-modules/asset/data-providers.d.ts +2 -1
- package/plugins/runtime-modules/asset/data-providers.js +4 -2
- package/plugins/runtime-modules/asset/definition.d.ts +8 -1
- package/plugins/runtime-modules/asset/definition.js +13 -5
- package/plugins/runtime-modules/asset/form-providers.js +11 -0
- package/plugins/runtime-modules/asset/form-ui-provider.js +13 -0
- package/plugins/runtime-modules/asset/ids.d.ts +2 -0
- package/plugins/runtime-modules/asset/ids.js +3 -1
- package/plugins/runtime-modules/asset/media-page-ids.d.ts +6 -0
- package/plugins/runtime-modules/asset/media-page-ids.js +36 -0
- package/plugins/runtime-modules/asset/metadata-form.d.ts +243 -0
- package/plugins/runtime-modules/asset/metadata-form.js +197 -0
- package/plugins/runtime-modules/asset/module.d.ts +1 -231
- package/plugins/runtime-modules/asset/module.js +3 -5
- package/plugins/runtime-modules/asset/presets.d.ts +2 -174
- package/plugins/runtime-modules/asset/presets.js +18 -43
- package/plugins/runtime-modules/asset/server.js +3 -4
- package/plugins/runtime-modules/asset/services/collection.js +162 -0
- package/plugins/runtime-modules/asset/services/options.js +69 -0
- package/plugins/runtime-modules/asset/settings-forms.d.ts +22 -0
- package/plugins/runtime-modules/asset/settings-forms.js +177 -0
- package/plugins/runtime-modules/asset/trees/phi-default-admin-media-settings-page-tree.d.ts +6 -0
- package/plugins/runtime-modules/asset/trees/phi-default-admin-media-settings-page-tree.js +93 -0
- package/plugins/runtime-modules/asset/trees/phi-default-builder-media-page-tree.d.ts +15 -0
- package/plugins/runtime-modules/asset/trees/phi-default-builder-media-page-tree.js +735 -0
- package/plugins/runtime-modules/asset/widgets/area-upload/authoring.d.ts +2 -3
- package/plugins/runtime-modules/asset/widgets/area-upload/authoring.js +4 -4
- package/plugins/runtime-modules/asset/widgets/area-upload/config.d.ts +1 -9
- package/plugins/runtime-modules/asset/widgets/area-upload/config.js +0 -2
- package/plugins/runtime-modules/asset/widgets/area-upload/plugin.d.ts +1 -3
- package/plugins/runtime-modules/asset/widgets/area-upload/plugin.js +2 -3
- package/plugins/runtime-modules/asset/widgets/area-upload/server.d.ts +7 -0
- package/plugins/runtime-modules/asset/widgets/area-upload/server.js +13 -0
- package/plugins/runtime-modules/asset/widgets/asset-focal-rect/authoring.d.ts +2 -3
- package/plugins/runtime-modules/asset/widgets/asset-focal-rect/authoring.js +2 -4
- package/plugins/runtime-modules/asset/widgets/asset-focal-rect/config.d.ts +1 -6
- package/plugins/runtime-modules/asset/widgets/asset-focal-rect/config.js +0 -2
- package/plugins/runtime-modules/asset/widgets/asset-focal-rect/plugin.d.ts +1 -3
- package/plugins/runtime-modules/asset/widgets/asset-focal-rect/plugin.js +2 -3
- package/plugins/runtime-modules/asset/widgets/asset-focal-rect/server.d.ts +6 -0
- package/plugins/runtime-modules/asset/widgets/asset-focal-rect/server.js +6 -0
- package/plugins/runtime-modules/asset/widgets/image-inspector/authoring.d.ts +2 -3
- package/plugins/runtime-modules/asset/widgets/image-inspector/authoring.js +4 -4
- package/plugins/runtime-modules/asset/widgets/image-inspector/config.d.ts +1 -7
- package/plugins/runtime-modules/asset/widgets/image-inspector/config.js +0 -2
- package/plugins/runtime-modules/asset/widgets/image-inspector/plugin.d.ts +1 -3
- package/plugins/runtime-modules/asset/widgets/image-inspector/plugin.js +2 -3
- package/plugins/runtime-modules/asset/widgets/image-inspector/server.d.ts +7 -0
- package/plugins/runtime-modules/asset/widgets/image-inspector/server.js +18 -0
- package/plugins/runtime-modules/asset/widgets/media-picker/authoring.d.ts +2 -3
- package/plugins/runtime-modules/asset/widgets/media-picker/authoring.js +2 -4
- package/plugins/runtime-modules/asset/widgets/media-picker/config.d.ts +2 -16
- package/plugins/runtime-modules/asset/widgets/media-picker/config.js +1 -2
- package/plugins/runtime-modules/asset/widgets/media-picker/plugin.d.ts +1 -3
- package/plugins/runtime-modules/asset/widgets/media-picker/plugin.js +1 -2
- package/plugins/runtime-modules/auth/admin-settings-forms.d.ts +15 -0
- package/plugins/runtime-modules/auth/admin-settings-forms.js +394 -0
- package/plugins/runtime-modules/auth/client-data-providers.js +1 -1
- package/plugins/runtime-modules/auth/client.js +1 -1
- package/plugins/runtime-modules/auth/controller/address.d.ts +14 -0
- package/plugins/runtime-modules/auth/controller/address.js +17 -0
- package/plugins/runtime-modules/auth/controller/definition.d.ts +86 -0
- package/plugins/runtime-modules/auth/controller/definition.js +93 -0
- package/plugins/runtime-modules/auth/controller/server-definition.d.ts +83 -0
- package/plugins/runtime-modules/auth/controller/server-definition.js +55 -0
- package/plugins/runtime-modules/auth/controller-plugin.d.ts +1 -0
- package/plugins/runtime-modules/auth/controller-plugin.js +312 -0
- package/plugins/runtime-modules/auth/definition.d.ts +47 -16
- package/plugins/runtime-modules/auth/definition.js +16 -7
- package/plugins/runtime-modules/auth/features.js +2 -2
- package/plugins/runtime-modules/auth/form-provider-registry.d.ts +1 -0
- package/plugins/runtime-modules/auth/form-provider-registry.js +38 -0
- package/plugins/runtime-modules/auth/form-providers.d.ts +232 -0
- package/plugins/runtime-modules/auth/form-providers.js +42 -0
- package/plugins/runtime-modules/auth/form-ui-provider.js +7 -0
- package/plugins/runtime-modules/auth/forms.d.ts +3 -0
- package/plugins/runtime-modules/auth/forms.js +140 -0
- package/plugins/runtime-modules/auth/machine.d.ts +46 -0
- package/plugins/runtime-modules/auth/machine.js +98 -0
- package/plugins/runtime-modules/auth/module.js +1 -1
- package/plugins/runtime-modules/auth/overlay-ids.d.ts +23 -0
- package/plugins/runtime-modules/auth/overlay-ids.js +27 -0
- package/plugins/runtime-modules/auth/presets.d.ts +7 -68
- package/plugins/runtime-modules/auth/presets.js +66 -61
- package/plugins/runtime-modules/auth/server.js +3 -4
- package/plugins/runtime-modules/auth/services/installations-table.js +162 -0
- package/plugins/runtime-modules/auth/trees/phi-auth-area-overlay-tree.server.d.ts +8 -0
- package/plugins/runtime-modules/auth/trees/phi-auth-area-overlay-tree.server.js +105 -0
- package/plugins/runtime-modules/auth/trees/phi-auth-runtime-page-tree.d.ts +7 -0
- package/plugins/runtime-modules/auth/trees/phi-auth-runtime-page-tree.js +53 -0
- package/plugins/runtime-modules/auth/trees/phi-default-admin-auth-settings-page-tree.d.ts +6 -0
- package/plugins/runtime-modules/auth/trees/phi-default-admin-auth-settings-page-tree.js +334 -0
- package/plugins/runtime-modules/auth/trees/phi-default-app-security-page-tree.d.ts +17 -0
- package/plugins/runtime-modules/auth/trees/phi-default-app-security-page-tree.js +90 -0
- package/plugins/runtime-modules/auth/trees/phi-default-pub-confirm-page-tree.d.ts +5 -0
- package/plugins/runtime-modules/auth/trees/phi-default-pub-confirm-page-tree.js +166 -0
- package/plugins/runtime-modules/auth/trees/phi-default-pub-login-page-tree.d.ts +10 -0
- package/plugins/runtime-modules/auth/trees/phi-default-pub-login-page-tree.js +126 -0
- package/plugins/runtime-modules/auth/trees/phi-default-pub-registration-page-tree.d.ts +10 -0
- package/plugins/runtime-modules/auth/trees/phi-default-pub-registration-page-tree.js +118 -0
- package/plugins/runtime-modules/auth/trees/phi-default-pub-reset-password-page-tree.d.ts +5 -0
- package/plugins/runtime-modules/auth/trees/phi-default-pub-reset-password-page-tree.js +151 -0
- package/plugins/runtime-modules/auth/trees/phi-login-form-nodes.d.ts +46 -0
- package/plugins/runtime-modules/auth/trees/phi-login-form-nodes.js +216 -0
- package/plugins/runtime-modules/auth/trees/security-label-set.d.ts +8 -0
- package/plugins/runtime-modules/auth/trees/security-label-set.js +22 -0
- package/plugins/runtime-modules/auth/widgets/auth-methods/client.js +33 -24
- package/plugins/runtime-modules/auth/widgets/auth-workflow/client.d.ts +3 -1
- package/plugins/runtime-modules/auth/widgets/auth-workflow/client.js +48 -22
- package/plugins/runtime-modules/auth/widgets/auth-workflow/config.d.ts +8 -1
- package/plugins/runtime-modules/auth/widgets/auth-workflow/config.js +36 -5
- package/plugins/runtime-modules/auth/widgets/auth-workflow/plugin.js +8 -7
- package/plugins/runtime-modules/auth/widgets/auth-workflow/server.d.ts +15 -0
- package/plugins/runtime-modules/auth/widgets/auth-workflow/server.js +14 -0
- package/plugins/runtime-modules/auth/widgets/logout/client.d.ts +3 -1
- package/plugins/runtime-modules/auth/widgets/logout/client.js +9 -26
- package/plugins/runtime-modules/auth/widgets/logout/config.d.ts +1 -0
- package/plugins/runtime-modules/auth/widgets/logout/config.js +1 -0
- package/plugins/runtime-modules/auth/widgets/security/client.d.ts +6 -1
- package/plugins/runtime-modules/auth/widgets/security/client.js +60 -56
- package/plugins/runtime-modules/auth/widgets/security/config.d.ts +1 -0
- package/plugins/runtime-modules/auth/widgets/security/config.js +1 -0
- package/plugins/runtime-modules/auth/widgets/security/server.js +18 -1
- package/plugins/runtime-modules/avatar/addresses.js +19 -0
- package/plugins/runtime-modules/avatar/definition.d.ts +2 -2
- package/plugins/runtime-modules/avatar/definition.js +5 -2
- package/plugins/runtime-modules/avatar/labels.d.ts +25 -0
- package/plugins/runtime-modules/avatar/media-spaces.d.ts +9 -0
- package/plugins/runtime-modules/avatar/media-spaces.js +9 -0
- package/plugins/runtime-modules/avatar/module.d.ts +2 -2
- package/plugins/runtime-modules/avatar/overlay-tree.js +12 -0
- package/plugins/runtime-modules/avatar/overlay-tree.server.js +95 -0
- package/plugins/runtime-modules/avatar/presets.js +1 -1
- package/plugins/runtime-modules/avatar/server.js +1 -2
- package/plugins/runtime-modules/avatar/widgets/account-avatar/authoring.d.ts +1 -2
- package/plugins/runtime-modules/avatar/widgets/account-avatar/authoring.js +2 -4
- package/plugins/runtime-modules/avatar/widgets/account-avatar/client.js +5 -5
- package/plugins/runtime-modules/avatar/widgets/account-avatar/config.d.ts +1 -1
- package/plugins/runtime-modules/avatar/widgets/account-avatar/config.js +1 -2
- package/plugins/runtime-modules/avatar/widgets/account-avatar/server.js +1 -1
- package/plugins/runtime-modules/avatar/widgets/account-avatar-picker/authoring.d.ts +1 -2
- package/plugins/runtime-modules/avatar/widgets/account-avatar-picker/authoring.js +2 -4
- package/plugins/runtime-modules/avatar/widgets/account-avatar-picker/client.js +9 -8
- package/plugins/runtime-modules/avatar/widgets/account-avatar-picker/config.d.ts +1 -1
- package/plugins/runtime-modules/avatar/widgets/account-avatar-picker/config.js +1 -2
- package/plugins/runtime-modules/avatar/widgets/account-avatar-picker/server.js +1 -1
- package/plugins/runtime-modules/builder/addresses.d.ts +23 -0
- package/plugins/runtime-modules/builder/addresses.js +53 -0
- package/plugins/runtime-modules/builder/area-settings-form.d.ts +2 -0
- package/plugins/runtime-modules/builder/area-settings-form.js +137 -0
- package/plugins/runtime-modules/builder/area-settings-values.d.ts +26 -0
- package/plugins/runtime-modules/builder/area-settings-values.js +26 -0
- package/plugins/runtime-modules/builder/area-shell-presets.server.d.ts +0 -1
- package/plugins/runtime-modules/builder/area-shell-presets.server.js +12 -10
- package/plugins/runtime-modules/builder/authoring-canvas.js +5 -0
- package/plugins/runtime-modules/builder/authoring-widgets.js +2 -3
- package/plugins/runtime-modules/builder/builder-geometry.d.ts +28 -0
- package/plugins/runtime-modules/builder/builder-geometry.js +38 -0
- package/plugins/runtime-modules/builder/client-data-providers.js +8 -0
- package/plugins/runtime-modules/builder/client.d.ts +0 -1
- package/plugins/runtime-modules/builder/client.js +0 -4
- package/plugins/runtime-modules/builder/clients/builder-region-overrides.js +3 -4
- package/plugins/runtime-modules/builder/clients/inspector-config-field.d.ts +7 -1
- package/plugins/runtime-modules/builder/clients/inspector-config-field.js +101 -30
- package/plugins/runtime-modules/builder/clients/inspector-link-target-field.d.ts +30 -0
- package/plugins/runtime-modules/builder/clients/inspector-link-target-field.js +69 -0
- package/plugins/runtime-modules/builder/clients/inspector-section-widget.d.ts +4 -2
- package/plugins/runtime-modules/builder/clients/inspector-section-widget.js +60 -49
- package/plugins/runtime-modules/builder/clients/inspector-signal-section.js +4 -3
- package/plugins/runtime-modules/builder/clients/layout-inspector.d.ts +7 -3
- package/plugins/runtime-modules/builder/clients/layout-inspector.js +34 -6
- package/plugins/runtime-modules/builder/clients/mode-switch.js +2 -2
- package/plugins/runtime-modules/builder/clients/pages-header.d.ts +0 -1
- package/plugins/runtime-modules/builder/clients/pages-header.js +24 -9
- package/plugins/runtime-modules/builder/clients/region-inspector.js +2 -2
- package/plugins/runtime-modules/builder/clients/runtime-module-authoring-boundary.js +14 -2
- package/plugins/runtime-modules/builder/clients/shells-workspace.js +13 -1
- package/plugins/runtime-modules/builder/clients/structure-canvas.js +8 -7
- package/plugins/runtime-modules/builder/clients/widget-effects-editor.d.ts +4 -1
- package/plugins/runtime-modules/builder/clients/widget-effects-editor.js +2 -2
- package/plugins/runtime-modules/builder/clients/widget-inspector.d.ts +7 -1
- package/plugins/runtime-modules/builder/clients/widget-inspector.js +24 -19
- package/plugins/runtime-modules/builder/controller/client.d.ts +6 -0
- package/plugins/runtime-modules/builder/controller/definition.d.ts +6 -0
- package/plugins/runtime-modules/builder/controller/definition.js +7 -0
- package/plugins/runtime-modules/builder/controller/server-definition.d.ts +7 -1
- package/plugins/runtime-modules/builder/data-providers.d.ts +26 -1
- package/plugins/runtime-modules/builder/data-providers.js +23 -0
- package/plugins/runtime-modules/builder/definition.d.ts +26 -1
- package/plugins/runtime-modules/builder/demand-controller-store.d.ts +0 -1
- package/plugins/runtime-modules/builder/demand-controller-store.js +0 -5
- package/plugins/runtime-modules/builder/developer-workspace-store.d.ts +17 -1
- package/plugins/runtime-modules/builder/developer-workspace-store.js +34 -3
- package/plugins/runtime-modules/builder/developer-workspace-types.d.ts +32 -2
- package/plugins/runtime-modules/builder/draft-command-controller.d.ts +6 -4
- package/plugins/runtime-modules/builder/draft-command-controller.js +69 -171
- package/plugins/runtime-modules/builder/draft-status-controller.d.ts +23 -0
- package/plugins/runtime-modules/builder/draft-status-controller.js +173 -0
- package/plugins/runtime-modules/builder/effects-form-values.d.ts +9 -0
- package/plugins/runtime-modules/builder/effects-form-values.js +14 -4
- package/plugins/runtime-modules/builder/history.d.ts +2 -0
- package/plugins/runtime-modules/builder/ids.d.ts +1 -0
- package/plugins/runtime-modules/builder/ids.js +5 -3
- package/plugins/runtime-modules/builder/inspector-actions.d.ts +3 -0
- package/plugins/runtime-modules/builder/inspector-actions.js +6 -5
- package/plugins/runtime-modules/builder/inspector-controller.js +24 -17
- package/plugins/runtime-modules/builder/inspector-overlay-addresses.d.ts +1 -1
- package/plugins/runtime-modules/builder/inspector-section-widget.d.ts +2 -1
- package/plugins/runtime-modules/builder/inspector-section-widget.js +10 -2
- package/plugins/runtime-modules/builder/module-authoring-catalog.d.ts +4 -0
- package/plugins/runtime-modules/builder/module-authoring-catalog.server.js +2 -0
- package/plugins/runtime-modules/builder/module.d.ts +1 -609
- package/plugins/runtime-modules/builder/module.js +2 -4
- package/plugins/runtime-modules/builder/navigation-catalog.server.d.ts +2 -1
- package/plugins/runtime-modules/builder/navigation-folder-address.d.ts +1 -1
- package/plugins/runtime-modules/builder/navigation-folder-address.js +1 -1
- package/plugins/runtime-modules/builder/navigation-path-context.d.ts +1 -1
- package/plugins/runtime-modules/builder/navigation-path-context.js +27 -10
- package/plugins/runtime-modules/builder/navigation-persistence.js +11 -1
- package/plugins/runtime-modules/builder/navigation-store.d.ts +0 -2
- package/plugins/runtime-modules/builder/navigation-store.js +0 -6
- package/plugins/runtime-modules/builder/node-kind-theme.d.ts +0 -4
- package/plugins/runtime-modules/builder/node-kind-theme.js +1 -14
- package/plugins/runtime-modules/builder/offered-page-catalog.d.ts +12 -1
- package/plugins/runtime-modules/builder/offered-page-catalog.js +98 -3
- package/plugins/runtime-modules/builder/options-providers.d.ts +3 -19
- package/plugins/runtime-modules/builder/options-providers.js +116 -50
- package/plugins/runtime-modules/builder/page-controller-helpers.d.ts +0 -1
- package/plugins/runtime-modules/builder/page-controller-helpers.js +0 -8
- package/plugins/runtime-modules/builder/page-controller.d.ts +0 -1
- package/plugins/runtime-modules/builder/page-controller.js +1 -2
- package/plugins/runtime-modules/builder/page-meta-form.js +139 -64
- package/plugins/runtime-modules/builder/page-presets.server.d.ts +0 -1
- package/plugins/runtime-modules/builder/page-presets.server.js +45 -12
- package/plugins/runtime-modules/builder/page-reference-tree.d.ts +18 -0
- package/plugins/runtime-modules/builder/page-reference-tree.js +31 -0
- package/plugins/runtime-modules/builder/page-references-provider.d.ts +5 -0
- package/plugins/runtime-modules/builder/page-references-provider.js +14 -0
- package/plugins/runtime-modules/builder/pages-workspace.d.ts +2 -1
- package/plugins/runtime-modules/builder/pages-workspace.js +5 -4
- package/plugins/runtime-modules/builder/persistence.d.ts +0 -1
- package/plugins/runtime-modules/builder/persistence.js +11 -28
- package/plugins/runtime-modules/builder/plugin-meta-labels.d.ts +16 -0
- package/plugins/runtime-modules/builder/plugin-meta-labels.js +57 -0
- package/plugins/runtime-modules/builder/plugin-meta-labels.server.d.ts +4 -0
- package/plugins/runtime-modules/builder/plugin-meta-labels.server.js +65 -0
- package/plugins/runtime-modules/builder/plugin-meta-store.d.ts +4 -0
- package/plugins/runtime-modules/builder/plugin-meta-store.js +8 -1
- package/plugins/runtime-modules/builder/plugin-metas.d.ts +1 -2
- package/plugins/runtime-modules/builder/plugin-metas.js +3 -14
- package/plugins/runtime-modules/builder/presets.d.ts +4 -2
- package/plugins/runtime-modules/builder/presets.js +3 -4
- package/plugins/runtime-modules/builder/preview-controller.d.ts +1 -2
- package/plugins/runtime-modules/builder/preview-controller.js +2 -70
- package/plugins/runtime-modules/builder/preview-store.d.ts +0 -1
- package/plugins/runtime-modules/builder/preview-store.js +1 -4
- package/plugins/runtime-modules/builder/preview-transport.js +4 -6
- package/plugins/runtime-modules/builder/region-controller.d.ts +0 -1
- package/plugins/runtime-modules/builder/region-controller.js +0 -6
- package/plugins/runtime-modules/builder/region-hydration.d.ts +5 -13
- package/plugins/runtime-modules/builder/region-hydration.js +0 -20
- package/plugins/runtime-modules/builder/render-root-node-preview.server.d.ts +1 -3
- package/plugins/runtime-modules/builder/render-root-node-preview.server.js +8 -56
- package/plugins/runtime-modules/builder/render-root-node-scaffold.d.ts +2 -2
- package/plugins/runtime-modules/builder/render-root-node-scaffold.js +137 -47
- package/plugins/runtime-modules/builder/root-node-normalization.d.ts +6 -1
- package/plugins/runtime-modules/builder/root-node-normalization.js +22 -6
- package/plugins/runtime-modules/builder/runtime-module-sandbox.server.d.ts +1 -1
- package/plugins/runtime-modules/builder/selected-collection-source.d.ts +22 -0
- package/plugins/runtime-modules/builder/selected-collection-source.js +51 -0
- package/plugins/runtime-modules/builder/sequential-slot-helpers.d.ts +7 -0
- package/plugins/runtime-modules/builder/sequential-slot-helpers.js +4 -0
- package/plugins/runtime-modules/builder/server.js +8 -2
- package/plugins/runtime-modules/builder/services/navigation-table.js +11 -3
- package/plugins/runtime-modules/builder/services/page-source-tree.js +8 -2
- package/plugins/runtime-modules/builder/services/runtime-modules-table.d.ts +15 -0
- package/plugins/runtime-modules/builder/services/runtime-modules-table.js +92 -24
- package/plugins/runtime-modules/builder/services/signal-routes-table.js +3 -1
- package/plugins/runtime-modules/builder/shells-workspace.d.ts +2 -1
- package/plugins/runtime-modules/builder/shells-workspace.js +5 -4
- package/plugins/runtime-modules/builder/signal-wiring-controller.js +18 -2
- package/plugins/runtime-modules/builder/signal-wiring-form.js +15 -6
- package/plugins/runtime-modules/builder/signal-wiring-options.js +38 -10
- package/plugins/runtime-modules/builder/structure-region-pick-items.js +14 -2
- package/plugins/runtime-modules/builder/trees/builder-navigation-label-set.d.ts +35 -0
- package/plugins/runtime-modules/builder/trees/builder-navigation-label-set.js +68 -0
- package/plugins/runtime-modules/builder/trees/builder-settings-label-set.d.ts +17 -0
- package/plugins/runtime-modules/builder/trees/builder-settings-label-set.js +34 -0
- package/plugins/runtime-modules/builder/trees/phi-builder-inspector-area-overlay-tree.d.ts +7 -0
- package/plugins/runtime-modules/builder/trees/phi-builder-inspector-area-overlay-tree.js +12 -0
- package/plugins/runtime-modules/builder/trees/phi-builder-inspector-area-overlay-tree.server.d.ts +20 -0
- package/plugins/runtime-modules/builder/trees/phi-builder-inspector-area-overlay-tree.server.js +569 -0
- package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.d.ts +132 -0
- package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.js +2052 -0
- package/plugins/runtime-modules/builder/trees/phi-default-builder-settings-page-tree.d.ts +12 -0
- package/plugins/runtime-modules/builder/trees/phi-default-builder-settings-page-tree.js +55 -0
- package/plugins/runtime-modules/builder/use-offered-page-catalog.d.ts +16 -0
- package/plugins/runtime-modules/builder/use-offered-page-catalog.js +35 -0
- package/plugins/runtime-modules/builder/widgets/chrome/config.d.ts +0 -1
- package/plugins/runtime-modules/builder/widgets/chrome/config.js +2 -5
- package/plugins/runtime-modules/builder/widgets/hello-world/client.js +2 -10
- package/plugins/runtime-modules/builder/widgets/hello-world/config.d.ts +3 -3
- package/plugins/runtime-modules/builder/widgets/hello-world/config.js +1 -2
- package/plugins/runtime-modules/builder/widgets/hello-world/plugin.d.ts +0 -2
- package/plugins/runtime-modules/builder/widgets/hello-world/plugin.js +0 -2
- package/plugins/runtime-modules/builder/widgets/structure-region/built-in.d.ts +3 -1
- package/plugins/runtime-modules/builder/widgets/structure-region/built-in.js +112 -89
- package/plugins/runtime-modules/builder/widgets/structure-region/config.d.ts +3 -0
- package/plugins/runtime-modules/builder/widgets/structure-region/config.js +3 -0
- package/plugins/runtime-modules/builder/widgets/structure-region/internal-builder.d.ts +22 -0
- package/plugins/runtime-modules/builder/widgets/structure-region/internal-builder.js +8 -0
- package/plugins/runtime-modules/builder/widgets/structure-region/plugin.js +12 -8
- package/plugins/runtime-modules/builder/widgets/test-block/config.d.ts +3 -2
- package/plugins/runtime-modules/builder/widgets/test-block/config.js +1 -0
- package/plugins/runtime-modules/builder/widgets/workspace-headers/config.d.ts +1 -0
- package/plugins/runtime-modules/builder/widgets/workspace-headers/config.js +1 -0
- package/plugins/runtime-modules/builder/widgets.js +1 -8
- package/plugins/runtime-modules/builder/workspace-controller.d.ts +1 -1
- package/plugins/runtime-modules/builder/workspace-controller.js +206 -199
- package/plugins/runtime-modules/client-area-contributions/accounting.d.ts +1 -1
- package/plugins/runtime-modules/client-area-contributions/accounting.js +0 -7
- package/plugins/runtime-modules/client-area-contributions/app.js +4 -4
- package/plugins/runtime-modules/client-area-contributions/public.d.ts +1 -1
- package/plugins/runtime-modules/client-area-contributions/public.js +0 -6
- package/plugins/runtime-modules/client-authoring-providers/app.d.ts +1 -1
- package/plugins/runtime-modules/client-authoring-providers/app.js +12 -0
- package/plugins/runtime-modules/client-authoring-providers/editor.d.ts +1 -1
- package/plugins/runtime-modules/client-authoring-providers/editor.js +6 -0
- package/plugins/runtime-modules/client-authoring-providers/public.d.ts +1 -1
- package/plugins/runtime-modules/client-authoring-providers/public.js +12 -0
- package/plugins/runtime-modules/client-calendar-adapters/core.js +1 -1
- package/plugins/runtime-modules/client-manifests/accounting.d.ts +2 -1
- package/plugins/runtime-modules/client-manifests/accounting.js +5 -1
- package/plugins/runtime-modules/client-manifests/admin.d.ts +1 -0
- package/plugins/runtime-modules/client-manifests/admin.js +4 -9
- package/plugins/runtime-modules/client-manifests/app.d.ts +1 -0
- package/plugins/runtime-modules/client-manifests/app.js +12 -3
- package/plugins/runtime-modules/client-manifests/builder.d.ts +1 -0
- package/plugins/runtime-modules/client-manifests/builder.js +3 -4
- package/plugins/runtime-modules/client-manifests/common.d.ts +7 -0
- package/plugins/runtime-modules/client-manifests/common.js +59 -31
- package/plugins/runtime-modules/client-manifests/editor.d.ts +1 -0
- package/plugins/runtime-modules/client-manifests/editor.js +8 -1
- package/plugins/runtime-modules/client-manifests/news-render-clients.d.ts +2 -0
- package/plugins/runtime-modules/client-manifests/news-render-clients.js +10 -0
- package/plugins/runtime-modules/client-manifests/public.d.ts +1 -0
- package/plugins/runtime-modules/client-manifests/public.js +3 -0
- package/plugins/runtime-modules/contracts.js +89 -27
- package/plugins/runtime-modules/core/authoring-widgets.js +6 -14
- package/plugins/runtime-modules/core/cards.d.ts +3 -0
- package/plugins/runtime-modules/core/cards.js +83 -0
- package/plugins/runtime-modules/core/client-data-providers.js +11 -3
- package/plugins/runtime-modules/core/data-providers.js +10 -1
- package/plugins/runtime-modules/core/definition.d.ts +223 -181
- package/plugins/runtime-modules/core/definition.js +1 -1
- package/plugins/runtime-modules/core/form-providers.d.ts +417 -0
- package/plugins/runtime-modules/core/form-providers.js +13 -0
- package/plugins/runtime-modules/core/ids.d.ts +0 -4
- package/plugins/runtime-modules/core/ids.js +0 -5
- package/plugins/runtime-modules/core/module.d.ts +1 -508
- package/plugins/runtime-modules/core/module.js +2 -4
- package/plugins/runtime-modules/core/server.js +3 -0
- package/plugins/runtime-modules/core/services/table.js +13 -0
- package/plugins/runtime-modules/core/widgets/account/client.d.ts +3 -2
- package/plugins/runtime-modules/core/widgets/account/client.js +62 -38
- package/plugins/runtime-modules/core/widgets/account/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/account/config.js +1 -2
- package/plugins/runtime-modules/core/widgets/account/plugin.d.ts +0 -2
- package/plugins/runtime-modules/core/widgets/account/plugin.js +9 -4
- package/plugins/runtime-modules/core/widgets/account/server.d.ts +9 -5
- package/plugins/runtime-modules/core/widgets/account/server.js +89 -49
- package/plugins/runtime-modules/core/widgets/brand/authoring.js +65 -5
- package/plugins/runtime-modules/core/widgets/brand/client.d.ts +8 -4
- package/plugins/runtime-modules/core/widgets/brand/client.js +35 -8
- package/plugins/runtime-modules/core/widgets/brand/config.d.ts +13 -15
- package/plugins/runtime-modules/core/widgets/brand/config.js +24 -9
- package/plugins/runtime-modules/core/widgets/brand/mode.d.ts +23 -0
- package/plugins/runtime-modules/core/widgets/brand/mode.js +7 -0
- package/plugins/runtime-modules/core/widgets/brand/plugin.js +12 -2
- package/plugins/runtime-modules/core/widgets/brand/server.d.ts +3 -6
- package/plugins/runtime-modules/core/widgets/brand/server.js +2 -6
- package/plugins/runtime-modules/core/widgets/breadcrumb/client.js +3 -2
- package/plugins/runtime-modules/core/widgets/breadcrumb/config.d.ts +1 -0
- package/plugins/runtime-modules/core/widgets/breadcrumb/config.js +1 -0
- package/plugins/runtime-modules/core/widgets/button/client.d.ts +14 -1
- package/plugins/runtime-modules/core/widgets/button/client.js +15 -5
- package/plugins/runtime-modules/core/widgets/button/config.d.ts +61 -7
- package/plugins/runtime-modules/core/widgets/button/config.js +29 -20
- package/plugins/runtime-modules/core/widgets/button/plugin.js +34 -4
- package/plugins/runtime-modules/core/widgets/card/authoring.js +1 -1
- package/plugins/runtime-modules/core/widgets/card/collection-view-binding.d.ts +9 -0
- package/plugins/runtime-modules/core/widgets/card/collection-view-binding.js +104 -0
- package/plugins/runtime-modules/core/widgets/card/config.d.ts +16 -1
- package/plugins/runtime-modules/core/widgets/card/config.js +16 -2
- package/plugins/runtime-modules/core/widgets/card/editor.d.ts +11 -0
- package/plugins/runtime-modules/core/widgets/card/editor.js +48 -0
- package/plugins/runtime-modules/core/widgets/card/plugin.js +3 -1
- package/plugins/runtime-modules/core/widgets/card/server.d.ts +4 -5
- package/plugins/runtime-modules/core/widgets/card/server.js +11 -2
- package/plugins/runtime-modules/core/widgets/cascader/authoring.d.ts +9 -9
- package/plugins/runtime-modules/core/widgets/cascader/config.d.ts +2 -1
- package/plugins/runtime-modules/core/widgets/cascader/config.js +1 -0
- package/plugins/runtime-modules/core/widgets/checkbox/authoring.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/checkbox/authoring.js +1 -2
- package/plugins/runtime-modules/core/widgets/checkbox/config.d.ts +0 -1
- package/plugins/runtime-modules/core/widgets/checkbox/config.js +0 -2
- package/plugins/runtime-modules/core/widgets/checkbox/plugin.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/checkbox/plugin.js +1 -2
- package/plugins/runtime-modules/core/widgets/checkbox-group/authoring.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/checkbox-group/authoring.js +1 -2
- package/plugins/runtime-modules/core/widgets/checkbox-group/config.d.ts +2 -2
- package/plugins/runtime-modules/core/widgets/checkbox-group/config.js +1 -2
- package/plugins/runtime-modules/core/widgets/checkbox-group/plugin.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/checkbox-group/plugin.js +1 -2
- package/plugins/runtime-modules/core/widgets/collection-view/asset-binding.d.ts +9 -0
- package/plugins/runtime-modules/core/widgets/collection-view/asset-binding.js +253 -0
- package/plugins/runtime-modules/core/widgets/collection-view/authoring.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/collection-view/authoring.js +1 -1
- package/plugins/runtime-modules/core/widgets/collection-view/client.d.ts +10 -0
- package/plugins/runtime-modules/core/widgets/collection-view/client.js +55 -0
- package/plugins/runtime-modules/core/widgets/collection-view/config.d.ts +94 -88
- package/plugins/runtime-modules/core/widgets/collection-view/config.js +47 -38
- package/plugins/runtime-modules/core/widgets/collection-view/image-preview-grid.d.ts +7 -0
- package/plugins/runtime-modules/core/widgets/collection-view/image-preview-grid.js +16 -0
- package/plugins/runtime-modules/core/widgets/collection-view/plugin.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/collection-view/server.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/color/authoring.js +1 -1
- package/plugins/runtime-modules/core/widgets/color/client.d.ts +8 -0
- package/plugins/runtime-modules/core/widgets/color/client.js +18 -0
- package/plugins/runtime-modules/core/widgets/color/config.d.ts +1 -0
- package/plugins/runtime-modules/core/widgets/color/config.js +1 -0
- package/plugins/runtime-modules/core/widgets/command-toolbar/authoring-tools.d.ts +5 -0
- package/plugins/runtime-modules/core/widgets/command-toolbar/authoring-tools.js +45 -0
- package/plugins/runtime-modules/core/widgets/command-toolbar/authoring.js +1 -1
- package/plugins/runtime-modules/core/widgets/command-toolbar/client.js +2 -1
- package/plugins/runtime-modules/core/widgets/command-toolbar/config.d.ts +14 -22
- package/plugins/runtime-modules/core/widgets/command-toolbar/config.js +11 -7
- package/plugins/runtime-modules/core/widgets/date-picker/authoring.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/date-picker/authoring.js +1 -2
- package/plugins/runtime-modules/core/widgets/date-picker/config.d.ts +0 -1
- package/plugins/runtime-modules/core/widgets/date-picker/config.js +2 -3
- package/plugins/runtime-modules/core/widgets/date-picker/plugin.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/date-picker/plugin.js +1 -2
- package/plugins/runtime-modules/core/widgets/description/authoring.js +1 -1
- package/plugins/runtime-modules/core/widgets/description/client.d.ts +5 -2
- package/plugins/runtime-modules/core/widgets/description/client.js +10 -9
- package/plugins/runtime-modules/core/widgets/description/config.d.ts +25 -0
- package/plugins/runtime-modules/core/widgets/description/config.js +5 -0
- package/plugins/runtime-modules/core/widgets/description/editor.d.ts +6 -0
- package/plugins/runtime-modules/core/widgets/description/editor.js +129 -0
- package/plugins/runtime-modules/core/widgets/description/plugin.js +4 -2
- package/plugins/runtime-modules/core/widgets/description/server.d.ts +3 -1
- package/plugins/runtime-modules/core/widgets/description/server.js +36 -12
- package/plugins/runtime-modules/core/widgets/dimension/config.d.ts +1 -0
- package/plugins/runtime-modules/core/widgets/dimension/config.js +1 -0
- package/plugins/runtime-modules/core/widgets/draft-status/authoring.d.ts +3 -0
- package/plugins/runtime-modules/core/widgets/draft-status/authoring.js +9 -0
- package/plugins/runtime-modules/core/widgets/draft-status/client.d.ts +21 -0
- package/plugins/runtime-modules/core/widgets/draft-status/client.js +118 -0
- package/plugins/runtime-modules/core/widgets/draft-status/config.d.ts +43 -0
- package/plugins/runtime-modules/core/widgets/draft-status/config.js +37 -0
- package/plugins/runtime-modules/core/widgets/draft-status/plugin.d.ts +3 -0
- package/plugins/runtime-modules/core/widgets/draft-status/plugin.js +23 -0
- package/plugins/runtime-modules/core/widgets/form/authoring.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/form/config.d.ts +70 -62
- package/plugins/runtime-modules/core/widgets/form/config.js +65 -67
- package/plugins/runtime-modules/core/widgets/form/plugin.d.ts +2 -1
- package/plugins/runtime-modules/core/widgets/form/plugin.js +2 -2
- package/plugins/runtime-modules/core/widgets/form-preview/built-in.d.ts +2 -1
- package/plugins/runtime-modules/core/widgets/form-preview/built-in.js +1 -0
- package/plugins/runtime-modules/core/widgets/form-preview/client.js +12 -9
- package/plugins/runtime-modules/core/widgets/form-preview/config.d.ts +0 -1
- package/plugins/runtime-modules/core/widgets/form-preview/config.js +3 -4
- package/plugins/runtime-modules/core/widgets/form-preview/plugin.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/form-preview/plugin.js +1 -2
- package/plugins/runtime-modules/core/widgets/gallery/authoring.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/gallery/authoring.js +1 -2
- package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +13 -1
- package/plugins/runtime-modules/core/widgets/gallery/config.js +10 -7
- package/plugins/runtime-modules/core/widgets/gallery/plugin.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/gallery/plugin.js +1 -2
- package/plugins/runtime-modules/core/widgets/header-navigation/authoring.js +4 -3
- package/plugins/runtime-modules/core/widgets/header-navigation/client.d.ts +1 -0
- package/plugins/runtime-modules/core/widgets/header-navigation/client.js +2 -5
- package/plugins/runtime-modules/core/widgets/header-navigation/config.js +2 -2
- package/plugins/runtime-modules/core/widgets/header-navigation/plugin.js +3 -2
- package/plugins/runtime-modules/core/widgets/html/config.d.ts +1 -7
- package/plugins/runtime-modules/core/widgets/html/config.js +12 -35
- package/plugins/runtime-modules/core/widgets/html/server.js +16 -20
- package/plugins/runtime-modules/core/widgets/icon/authoring.js +2 -2
- package/plugins/runtime-modules/core/widgets/icon/client.d.ts +9 -2
- package/plugins/runtime-modules/core/widgets/icon/client.js +5 -3
- package/plugins/runtime-modules/core/widgets/icon/config.d.ts +1 -0
- package/plugins/runtime-modules/core/widgets/icon/config.js +1 -0
- package/plugins/runtime-modules/core/widgets/icon/editor.d.ts +10 -0
- package/plugins/runtime-modules/core/widgets/icon/editor.js +12 -0
- package/plugins/runtime-modules/core/widgets/image/authoring.js +2 -2
- package/plugins/runtime-modules/core/widgets/image/client.js +9 -6
- package/plugins/runtime-modules/core/widgets/image/config.d.ts +10 -24
- package/plugins/runtime-modules/core/widgets/image/config.js +13 -15
- package/plugins/runtime-modules/core/widgets/image/editor.d.ts +10 -0
- package/plugins/runtime-modules/core/widgets/image/editor.js +100 -0
- package/plugins/runtime-modules/core/widgets/input/client.js +1 -1
- package/plugins/runtime-modules/core/widgets/input/config.d.ts +1 -0
- package/plugins/runtime-modules/core/widgets/input/config.js +1 -0
- package/plugins/runtime-modules/core/widgets/length/config.d.ts +1 -0
- package/plugins/runtime-modules/core/widgets/length/config.js +1 -0
- package/plugins/runtime-modules/core/widgets/locale/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/locale/config.js +1 -2
- package/plugins/runtime-modules/core/widgets/locale/plugin.d.ts +0 -2
- package/plugins/runtime-modules/core/widgets/locale/plugin.js +1 -2
- package/plugins/runtime-modules/core/widgets/markdown/authoring.js +1 -1
- package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +6 -9
- package/plugins/runtime-modules/core/widgets/markdown/config.js +29 -5
- package/plugins/runtime-modules/core/widgets/markdown/editor.d.ts +9 -0
- package/plugins/runtime-modules/core/widgets/markdown/editor.js +104 -0
- package/plugins/runtime-modules/core/widgets/markdown/plugin.js +1 -0
- package/plugins/runtime-modules/core/widgets/markdown/server.d.ts +1 -19
- package/plugins/runtime-modules/core/widgets/markdown/server.js +1 -486
- package/plugins/runtime-modules/core/widgets/markdown-toc/authoring.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/markdown-toc/authoring.js +1 -2
- package/plugins/runtime-modules/core/widgets/markdown-toc/client.js +4 -2
- package/plugins/runtime-modules/core/widgets/markdown-toc/config.d.ts +1 -6
- package/plugins/runtime-modules/core/widgets/markdown-toc/config.js +0 -2
- package/plugins/runtime-modules/core/widgets/markdown-toc/plugin.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/markdown-toc/plugin.js +1 -2
- package/plugins/runtime-modules/core/widgets/markdown-toc/server.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/markdown-toc/server.js +4 -2
- package/plugins/runtime-modules/core/widgets/multi-select/config.d.ts +2 -1
- package/plugins/runtime-modules/core/widgets/multi-select/config.js +1 -0
- package/plugins/runtime-modules/core/widgets/number-input/authoring.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/number-input/authoring.js +1 -2
- package/plugins/runtime-modules/core/widgets/number-input/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/number-input/config.js +1 -2
- package/plugins/runtime-modules/core/widgets/number-input/plugin.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/number-input/plugin.js +1 -2
- package/plugins/runtime-modules/core/widgets/otp/authoring.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/otp/authoring.js +1 -2
- package/plugins/runtime-modules/core/widgets/otp/client.js +1 -1
- package/plugins/runtime-modules/core/widgets/otp/config.d.ts +0 -1
- package/plugins/runtime-modules/core/widgets/otp/config.js +0 -2
- package/plugins/runtime-modules/core/widgets/otp/plugin.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/otp/plugin.js +1 -2
- package/plugins/runtime-modules/core/widgets/page-title/authoring.js +2 -2
- package/plugins/runtime-modules/core/widgets/page-title/config.d.ts +1 -0
- package/plugins/runtime-modules/core/widgets/page-title/config.js +1 -0
- package/plugins/runtime-modules/core/widgets/pagination/client.js +3 -2
- package/plugins/runtime-modules/core/widgets/quick-links/authoring.js +3 -3
- package/plugins/runtime-modules/core/widgets/quick-links/client.js +5 -5
- package/plugins/runtime-modules/core/widgets/quick-links/config.js +2 -2
- package/plugins/runtime-modules/core/widgets/quick-links/items.d.ts +5 -0
- package/plugins/runtime-modules/core/widgets/quick-links/items.js +27 -0
- package/plugins/runtime-modules/core/widgets/quick-links/server.js +1 -1
- package/plugins/runtime-modules/core/widgets/rate/authoring.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/rate/authoring.js +1 -2
- package/plugins/runtime-modules/core/widgets/rate/config.d.ts +0 -1
- package/plugins/runtime-modules/core/widgets/rate/config.js +0 -2
- package/plugins/runtime-modules/core/widgets/rate/plugin.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/rate/plugin.js +1 -2
- package/plugins/runtime-modules/core/widgets/record/authoring.d.ts +3 -0
- package/plugins/runtime-modules/core/widgets/record/authoring.js +8 -0
- package/plugins/runtime-modules/core/widgets/record/client.d.ts +7 -0
- package/plugins/runtime-modules/core/widgets/record/client.js +136 -0
- package/plugins/runtime-modules/core/widgets/record/config.d.ts +186 -0
- package/plugins/runtime-modules/core/widgets/record/config.js +214 -0
- package/plugins/runtime-modules/core/widgets/record/plugin.d.ts +3 -0
- package/plugins/runtime-modules/core/widgets/record/plugin.js +19 -0
- package/plugins/runtime-modules/core/widgets/record/server.d.ts +7 -0
- package/plugins/runtime-modules/core/widgets/record/server.js +6 -0
- package/plugins/runtime-modules/core/widgets/result/config.d.ts +36 -7
- package/plugins/runtime-modules/core/widgets/result/config.js +1 -5
- package/plugins/runtime-modules/core/widgets/result/plugin.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/result/plugin.js +5 -4
- package/plugins/runtime-modules/core/widgets/result/server.d.ts +3 -1
- package/plugins/runtime-modules/core/widgets/result/server.js +4 -4
- package/plugins/runtime-modules/core/widgets/segmented/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/select-box/config.d.ts +2 -1
- package/plugins/runtime-modules/core/widgets/select-box/config.js +1 -0
- package/plugins/runtime-modules/core/widgets/sidebar-navigation/authoring.js +2 -2
- package/plugins/runtime-modules/core/widgets/sidebar-navigation/client.d.ts +1 -0
- package/plugins/runtime-modules/core/widgets/sidebar-navigation/client.js +19 -24
- package/plugins/runtime-modules/core/widgets/sidebar-navigation/config.d.ts +1 -0
- package/plugins/runtime-modules/core/widgets/sidebar-navigation/config.js +15 -20
- package/plugins/runtime-modules/core/widgets/simple-text/authoring.js +2 -2
- package/plugins/runtime-modules/core/widgets/simple-text/client.d.ts +4 -6
- package/plugins/runtime-modules/core/widgets/simple-text/client.js +15 -32
- package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +252 -11
- package/plugins/runtime-modules/core/widgets/simple-text/config.js +28 -68
- package/plugins/runtime-modules/core/widgets/simple-text/editor.d.ts +32 -0
- package/plugins/runtime-modules/core/widgets/simple-text/editor.js +143 -0
- package/plugins/runtime-modules/core/widgets/simple-text/marks.d.ts +4 -0
- package/plugins/runtime-modules/core/widgets/simple-text/marks.js +8 -0
- package/plugins/runtime-modules/core/widgets/simple-text/server.js +13 -3
- package/plugins/runtime-modules/core/widgets/slider/authoring.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/slider/authoring.js +1 -2
- package/plugins/runtime-modules/core/widgets/slider/client.js +1 -1
- package/plugins/runtime-modules/core/widgets/slider/config.d.ts +0 -2
- package/plugins/runtime-modules/core/widgets/slider/config.js +1 -5
- package/plugins/runtime-modules/core/widgets/slider/plugin.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/slider/plugin.js +1 -2
- package/plugins/runtime-modules/core/widgets/slider/value.d.ts +1 -0
- package/plugins/runtime-modules/core/widgets/slider/value.js +7 -0
- package/plugins/runtime-modules/core/widgets/slot-upload/client.js +12 -7
- package/plugins/runtime-modules/core/widgets/slot-upload/config.d.ts +1 -0
- package/plugins/runtime-modules/core/widgets/slot-upload/config.js +1 -0
- package/plugins/runtime-modules/core/widgets/spacer/authoring.d.ts +1 -3
- package/plugins/runtime-modules/core/widgets/spacer/authoring.js +1 -2
- package/plugins/runtime-modules/core/widgets/spacer/client.d.ts +2 -2
- package/plugins/runtime-modules/core/widgets/spacer/config.d.ts +4 -3
- package/plugins/runtime-modules/core/widgets/spacer/config.js +2 -4
- package/plugins/runtime-modules/core/widgets/spacer/plugin.d.ts +2 -3
- package/plugins/runtime-modules/core/widgets/spacer/plugin.js +1 -2
- package/plugins/runtime-modules/core/widgets/switch/client.js +1 -1
- package/plugins/runtime-modules/core/widgets/switch/config.d.ts +2 -2
- package/plugins/runtime-modules/core/widgets/switch/config.js +14 -7
- package/plugins/runtime-modules/core/widgets/table/client.js +103 -88
- package/plugins/runtime-modules/core/widgets/table/config.d.ts +120 -12
- package/plugins/runtime-modules/core/widgets/table/config.js +62 -74
- package/plugins/runtime-modules/core/widgets/table/plugin.d.ts +0 -2
- package/plugins/runtime-modules/core/widgets/table/plugin.js +1 -2
- package/plugins/runtime-modules/core/widgets/table/static-resource-editor.d.ts +6 -0
- package/plugins/runtime-modules/core/widgets/table/static-resource-editor.js +10 -0
- package/plugins/runtime-modules/core/widgets/theme-mode-switch/authoring.d.ts +3 -0
- package/plugins/runtime-modules/core/widgets/theme-mode-switch/authoring.js +12 -0
- package/plugins/runtime-modules/core/widgets/theme-mode-switch/client.d.ts +20 -0
- package/plugins/runtime-modules/core/widgets/theme-mode-switch/client.js +37 -0
- package/plugins/runtime-modules/core/widgets/theme-mode-switch/config.d.ts +43 -0
- package/plugins/runtime-modules/core/widgets/theme-mode-switch/config.js +39 -0
- package/plugins/runtime-modules/core/widgets/theme-mode-switch/plugin.d.ts +3 -0
- package/plugins/runtime-modules/core/widgets/theme-mode-switch/plugin.js +18 -0
- package/plugins/runtime-modules/core/widgets/tree/client.js +2 -2
- package/plugins/runtime-modules/core/widgets/tree/config.d.ts +9 -1
- package/plugins/runtime-modules/core/widgets/tree/config.js +24 -28
- package/plugins/runtime-modules/core/widgets/tree/plugin.d.ts +0 -2
- package/plugins/runtime-modules/core/widgets/tree/plugin.js +1 -2
- package/plugins/runtime-modules/core/widgets.js +23 -55
- package/plugins/runtime-modules/dashboard/client-data-providers.d.ts +19 -0
- package/plugins/runtime-modules/dashboard/client-data-providers.js +26 -0
- package/plugins/runtime-modules/dashboard/clients/dashboard-card-view.d.ts +9 -0
- package/plugins/runtime-modules/dashboard/clients/dashboard-card-view.js +128 -0
- package/plugins/runtime-modules/dashboard/controller/address.d.ts +0 -2
- package/plugins/runtime-modules/dashboard/controller/address.js +1 -5
- package/plugins/runtime-modules/dashboard/data-providers.d.ts +30 -0
- package/plugins/runtime-modules/dashboard/data-providers.js +34 -0
- package/plugins/runtime-modules/dashboard/definition.d.ts +24 -0
- package/plugins/runtime-modules/dashboard/definition.js +11 -1
- package/plugins/runtime-modules/dashboard/ids.d.ts +6 -0
- package/plugins/runtime-modules/dashboard/ids.js +6 -0
- package/plugins/runtime-modules/dashboard/module.d.ts +1 -28
- package/plugins/runtime-modules/dashboard/module.js +2 -4
- package/plugins/runtime-modules/dashboard/presets.js +35 -55
- package/plugins/runtime-modules/dashboard/services/collection.d.ts +4 -0
- package/plugins/runtime-modules/dashboard/services/collection.js +76 -0
- package/plugins/runtime-modules/dashboard/trees/admin-dashboard-label-set.d.ts +7 -0
- package/plugins/runtime-modules/dashboard/trees/admin-dashboard-label-set.js +26 -0
- package/plugins/runtime-modules/dashboard/trees/area-dashboard-label-set.d.ts +9 -0
- package/plugins/runtime-modules/dashboard/trees/area-dashboard-label-set.js +38 -0
- package/plugins/runtime-modules/dashboard/trees/phi-default-admin-dashboard-page-tree.d.ts +6 -0
- package/plugins/runtime-modules/dashboard/trees/phi-default-admin-dashboard-page-tree.js +87 -0
- package/plugins/runtime-modules/dashboard/trees/phi-default-area-dashboard-page-tree.d.ts +9 -0
- package/plugins/runtime-modules/dashboard/trees/phi-default-area-dashboard-page-tree.js +87 -0
- package/plugins/runtime-modules/dashboard/trees/phi-default-builder-dashboard-page-tree.d.ts +6 -0
- package/plugins/runtime-modules/dashboard/trees/phi-default-builder-dashboard-page-tree.js +103 -0
- package/plugins/runtime-modules/descriptor-compiler.d.ts +14 -3
- package/plugins/runtime-modules/descriptor-compiler.js +144 -37
- package/plugins/runtime-modules/editor/controller/address.d.ts +0 -2
- package/plugins/runtime-modules/editor/controller/address.js +1 -5
- package/plugins/runtime-modules/editor/module.d.ts +1 -28
- package/plugins/runtime-modules/editor/module.js +2 -4
- package/plugins/runtime-modules/editor/presets.js +2 -12
- package/plugins/runtime-modules/editor/trees/editor-label-set.d.ts +8 -0
- package/plugins/runtime-modules/editor/trees/editor-label-set.js +22 -0
- package/plugins/runtime-modules/editor/trees/phi-default-editor-area-preset-tree.d.ts +6 -0
- package/plugins/runtime-modules/editor/trees/phi-default-editor-area-preset-tree.js +213 -0
- package/plugins/runtime-modules/form-builder/module.d.ts +1 -28
- package/plugins/runtime-modules/form-builder/module.js +2 -4
- package/plugins/runtime-modules/groups/controller/client.d.ts +2 -2
- package/plugins/runtime-modules/groups/controller/client.js +30 -64
- package/plugins/runtime-modules/groups/controller/definition.d.ts +13 -2
- package/plugins/runtime-modules/groups/controller/definition.js +11 -3
- package/plugins/runtime-modules/groups/data-providers.d.ts +2 -0
- package/plugins/runtime-modules/groups/data-providers.js +64 -12
- package/plugins/runtime-modules/groups/definition.d.ts +3 -0
- package/plugins/runtime-modules/groups/definition.js +9 -0
- package/plugins/runtime-modules/groups/forms.d.ts +0 -1
- package/plugins/runtime-modules/groups/forms.js +0 -47
- package/plugins/runtime-modules/groups/labels.d.ts +4 -1
- package/plugins/runtime-modules/groups/labels.js +8 -2
- package/plugins/runtime-modules/groups/module.d.ts +1 -335
- package/plugins/runtime-modules/groups/module.js +2 -4
- package/plugins/runtime-modules/groups/presets.d.ts +2 -56
- package/plugins/runtime-modules/groups/presets.js +17 -35
- package/plugins/runtime-modules/groups/services/options.js +5 -4
- package/plugins/runtime-modules/groups/services/table.js +42 -33
- package/plugins/runtime-modules/groups/trees/phi-default-admin-groups-page-tree.d.ts +13 -0
- package/plugins/runtime-modules/groups/trees/phi-default-admin-groups-page-tree.js +485 -0
- package/plugins/runtime-modules/groups/trees/phi-default-app-groups-page-tree.d.ts +14 -0
- package/plugins/runtime-modules/groups/trees/phi-default-app-groups-page-tree.js +384 -0
- package/plugins/runtime-modules/localization/cards.d.ts +3 -0
- package/plugins/runtime-modules/localization/cards.js +109 -0
- package/plugins/runtime-modules/localization/controller/client.js +4 -3
- package/plugins/runtime-modules/localization/definition.d.ts +0 -5
- package/plugins/runtime-modules/localization/definition.js +0 -2
- package/plugins/runtime-modules/localization/forms.js +2 -15
- package/plugins/runtime-modules/localization/module.d.ts +1 -372
- package/plugins/runtime-modules/localization/module.js +2 -4
- package/plugins/runtime-modules/localization/presets.d.ts +2 -25
- package/plugins/runtime-modules/localization/presets.js +30 -17
- package/plugins/runtime-modules/localization/server.js +4 -0
- package/plugins/runtime-modules/localization/services/table.js +22 -30
- package/plugins/runtime-modules/localization/trees/admin-locales-label-set.d.ts +8 -0
- package/plugins/runtime-modules/localization/trees/admin-locales-label-set.js +22 -0
- package/plugins/runtime-modules/localization/trees/editor-translations-label-set.d.ts +8 -0
- package/plugins/runtime-modules/localization/trees/editor-translations-label-set.js +22 -0
- package/plugins/runtime-modules/localization/trees/editor-translations-shell.js +51 -0
- package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.d.ts +56 -0
- package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.js +100 -0
- package/plugins/runtime-modules/localization/trees/phi-default-admin-locales-page-tree.d.ts +7 -0
- package/plugins/runtime-modules/localization/trees/phi-default-admin-locales-page-tree.js +251 -0
- package/plugins/runtime-modules/localization/trees/phi-default-editor-translations-page-tree.d.ts +6 -0
- package/plugins/runtime-modules/localization/trees/phi-default-editor-translations-page-tree.js +325 -0
- package/plugins/runtime-modules/news/authoring-widgets.d.ts +2 -0
- package/plugins/runtime-modules/news/authoring-widgets.js +7 -0
- package/plugins/runtime-modules/news/authoring.d.ts +1 -0
- package/plugins/runtime-modules/news/authoring.js +8 -0
- package/plugins/runtime-modules/news/client-data-providers.d.ts +11 -0
- package/plugins/runtime-modules/news/client-data-providers.js +14 -0
- package/plugins/runtime-modules/news/data-providers.d.ts +133 -0
- package/plugins/runtime-modules/news/data-providers.js +112 -0
- package/plugins/runtime-modules/news/definition.d.ts +165 -0
- package/plugins/runtime-modules/news/definition.js +32 -0
- package/plugins/runtime-modules/news/forms.d.ts +39 -0
- package/plugins/runtime-modules/news/forms.js +204 -0
- package/plugins/runtime-modules/news/ids.d.ts +42 -0
- package/plugins/runtime-modules/news/ids.js +125 -0
- package/plugins/runtime-modules/news/module.d.ts +157 -0
- package/plugins/runtime-modules/news/module.js +12 -0
- package/plugins/runtime-modules/news/presets.d.ts +17 -0
- package/plugins/runtime-modules/news/presets.js +64 -0
- package/plugins/runtime-modules/news/server.d.ts +1 -0
- package/plugins/runtime-modules/news/server.js +18 -0
- package/plugins/runtime-modules/news/services/options.d.ts +3 -0
- package/plugins/runtime-modules/news/services/options.js +35 -0
- package/plugins/runtime-modules/news/services/table.d.ts +14 -0
- package/plugins/runtime-modules/news/services/table.js +144 -0
- package/plugins/runtime-modules/news/trees/editor-news-label-set.d.ts +8 -0
- package/plugins/runtime-modules/news/trees/editor-news-label-set.js +29 -0
- package/plugins/runtime-modules/news/trees/editor-news-widget-label-set.d.ts +65 -0
- package/plugins/runtime-modules/news/trees/editor-news-widget-label-set.js +106 -0
- package/plugins/runtime-modules/news/trees/phi-default-editor-news-page-tree.d.ts +17 -0
- package/plugins/runtime-modules/news/trees/phi-default-editor-news-page-tree.js +462 -0
- package/plugins/runtime-modules/news/trees/phi-default-pub-news-page-tree.d.ts +11 -0
- package/plugins/runtime-modules/news/trees/phi-default-pub-news-page-tree.js +86 -0
- package/plugins/runtime-modules/news/widgets/news-list/authoring.d.ts +2 -0
- package/plugins/runtime-modules/news/widgets/news-list/authoring.js +21 -0
- package/plugins/runtime-modules/news/widgets/news-list/client.d.ts +34 -0
- package/plugins/runtime-modules/news/widgets/news-list/client.js +26 -0
- package/plugins/runtime-modules/news/widgets/news-list/config.d.ts +43 -0
- package/plugins/runtime-modules/news/widgets/news-list/config.js +52 -0
- package/plugins/runtime-modules/news/widgets/news-list/plugin.d.ts +3 -0
- package/plugins/runtime-modules/news/widgets/news-list/plugin.js +8 -0
- package/plugins/runtime-modules/news/widgets/news-list/server.d.ts +14 -0
- package/plugins/runtime-modules/news/widgets/news-list/server.js +82 -0
- package/plugins/runtime-modules/news/widgets.d.ts +2 -0
- package/plugins/runtime-modules/news/widgets.js +16 -0
- package/plugins/runtime-modules/observability/authoring-widgets.d.ts +9 -0
- package/plugins/runtime-modules/observability/authoring-widgets.js +11 -6
- package/plugins/runtime-modules/observability/definition.d.ts +0 -5
- package/plugins/runtime-modules/observability/definition.js +0 -2
- package/plugins/runtime-modules/observability/module.d.ts +0 -5
- package/plugins/runtime-modules/observability/presets.d.ts +2 -30
- package/plugins/runtime-modules/observability/presets.js +10 -19
- package/plugins/runtime-modules/observability/server.js +1 -2
- package/plugins/runtime-modules/observability/trees/admin-logs-label-set.d.ts +8 -0
- package/plugins/runtime-modules/observability/trees/admin-logs-label-set.js +22 -0
- package/plugins/runtime-modules/observability/trees/phi-default-admin-logs-page-tree.d.ts +6 -0
- package/plugins/runtime-modules/observability/trees/phi-default-admin-logs-page-tree.js +313 -0
- package/plugins/runtime-modules/phi-default-site-area-preset-tree.d.ts +11 -0
- package/plugins/runtime-modules/phi-default-site-area-preset-tree.js +633 -0
- package/plugins/runtime-modules/pub-area-preset.d.ts +2 -0
- package/plugins/runtime-modules/pub-area-preset.js +130 -0
- package/plugins/runtime-modules/public/definition.d.ts +14 -3
- package/plugins/runtime-modules/public/definition.js +1 -7
- package/plugins/runtime-modules/public/form-providers.d.ts +29 -0
- package/plugins/runtime-modules/public/form-providers.js +11 -0
- package/plugins/runtime-modules/public/forms.d.ts +3 -0
- package/plugins/runtime-modules/public/forms.js +38 -0
- package/plugins/runtime-modules/public/module.d.ts +46 -1
- package/plugins/runtime-modules/public/module.js +8 -3
- package/plugins/runtime-modules/public/server.js +1 -1
- package/plugins/runtime-modules/public/trees/phi-default-pub-contact-page-tree.d.ts +4 -0
- package/plugins/runtime-modules/public/trees/phi-default-pub-contact-page-tree.js +103 -0
- package/plugins/runtime-modules/public/trees/phi-default-pub-error-page-tree.d.ts +6 -0
- package/plugins/runtime-modules/public/trees/phi-default-pub-error-page-tree.js +105 -0
- package/plugins/runtime-modules/public/trees/phi-default-pub-home-page-tree.d.ts +10 -0
- package/plugins/runtime-modules/public/trees/phi-default-pub-home-page-tree.js +79 -0
- package/plugins/runtime-modules/public/trees/phi-default-pub-terms-page-tree.d.ts +4 -0
- package/plugins/runtime-modules/public/trees/phi-default-pub-terms-page-tree.js +82 -0
- package/plugins/runtime-modules/public/trees/phi-default-pub-unsubscribe-page-tree.d.ts +16 -0
- package/plugins/runtime-modules/public/trees/phi-default-pub-unsubscribe-page-tree.js +110 -0
- package/plugins/runtime-modules/public/trees/phi-default-pub-welcome-page-tree.d.ts +15 -0
- package/plugins/runtime-modules/public/trees/phi-default-pub-welcome-page-tree.js +194 -0
- package/plugins/runtime-modules/public-base-page-references.d.ts +32 -0
- package/plugins/runtime-modules/public-base-page-references.js +43 -0
- package/plugins/runtime-modules/resolver.js +35 -60
- package/plugins/runtime-modules/revisions/controller/client.d.ts +6 -0
- package/plugins/runtime-modules/revisions/controller/client.js +92 -10
- package/plugins/runtime-modules/revisions/controller/definition.d.ts +6 -0
- package/plugins/runtime-modules/revisions/controller/definition.js +17 -0
- package/plugins/runtime-modules/revisions/forms.d.ts +4 -0
- package/plugins/runtime-modules/revisions/forms.js +70 -0
- package/plugins/runtime-modules/revisions/module.d.ts +1 -149
- package/plugins/runtime-modules/revisions/module.js +2 -4
- package/plugins/runtime-modules/revisions/page-ids.d.ts +9 -0
- package/plugins/runtime-modules/revisions/page-ids.js +28 -0
- package/plugins/runtime-modules/revisions/presets.d.ts +2 -141
- package/plugins/runtime-modules/revisions/presets.js +11 -24
- package/plugins/runtime-modules/revisions/server.js +2 -0
- package/plugins/runtime-modules/revisions/services/table.js +13 -15
- package/plugins/runtime-modules/revisions/trees/phi-default-builder-revisions-page-tree.d.ts +14 -0
- package/plugins/runtime-modules/revisions/trees/phi-default-builder-revisions-page-tree.js +506 -0
- package/plugins/runtime-modules/runtime-calendar-adapters.js +1 -1
- package/plugins/runtime-modules/settings.d.ts +28 -4
- package/plugins/runtime-modules/settings.js +60 -5
- package/plugins/runtime-modules/shell-tree-composition.d.ts +3 -0
- package/plugins/runtime-modules/sidebar-route.d.ts +55 -0
- package/plugins/runtime-modules/sidebar-route.js +56 -0
- package/plugins/runtime-modules/site-module-client-manifests.d.ts +2 -0
- package/plugins/runtime-modules/site-module-client-manifests.js +2 -0
- package/plugins/runtime-modules/site-module-placements.d.ts +26 -0
- package/plugins/runtime-modules/site-module-placements.js +33 -0
- package/plugins/runtime-modules/site-modules-client.d.ts +2 -0
- package/plugins/runtime-modules/theme/block-descriptors.d.ts +12 -23
- package/plugins/runtime-modules/theme/block-descriptors.js +12 -27
- package/plugins/runtime-modules/theme/controller/client.d.ts +7 -1
- package/plugins/runtime-modules/theme/controller/definition.d.ts +6 -0
- package/plugins/runtime-modules/theme/controller/definition.js +7 -0
- package/plugins/runtime-modules/theme/controller/server-definition.d.ts +7 -1
- package/plugins/runtime-modules/theme/materialize-images.d.ts +11 -5
- package/plugins/runtime-modules/theme/materialize-images.js +16 -8
- package/plugins/runtime-modules/theme/module.d.ts +1 -79
- package/plugins/runtime-modules/theme/module.js +2 -4
- package/plugins/runtime-modules/theme/page-ids.d.ts +3 -0
- package/plugins/runtime-modules/theme/page-ids.js +36 -0
- package/plugins/runtime-modules/theme/presets.d.ts +2 -141
- package/plugins/runtime-modules/theme/presets.js +11 -24
- package/plugins/runtime-modules/theme/trees/phi-default-builder-theme-page-tree.d.ts +17 -0
- package/plugins/runtime-modules/theme/trees/phi-default-builder-theme-page-tree.js +614 -0
- package/plugins/runtime-modules/theme/widgets/brand-controls/authoring.d.ts +25 -25
- package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +311 -117
- package/plugins/runtime-modules/theme/widgets/brand-controls/config.js +2 -2
- package/plugins/runtime-modules/theme-descriptors.d.ts +68 -0
- package/plugins/runtime-modules/theme-descriptors.js +34 -0
- package/plugins/runtime-modules/threads/addresses.d.ts +15 -0
- package/plugins/runtime-modules/threads/addresses.js +32 -0
- package/plugins/runtime-modules/threads/authoring-widgets.d.ts +2 -0
- package/plugins/runtime-modules/threads/authoring-widgets.js +6 -0
- package/plugins/runtime-modules/threads/authoring.d.ts +1 -0
- package/plugins/runtime-modules/threads/authoring.js +8 -0
- package/plugins/runtime-modules/threads/cards.d.ts +3 -0
- package/plugins/runtime-modules/threads/cards.js +87 -0
- package/plugins/runtime-modules/threads/client-data-providers.d.ts +7 -0
- package/plugins/runtime-modules/threads/client-data-providers.js +14 -0
- package/plugins/runtime-modules/threads/client.d.ts +1 -0
- package/plugins/runtime-modules/threads/client.js +7 -0
- package/plugins/runtime-modules/threads/controller/address.d.ts +5 -0
- package/plugins/runtime-modules/threads/controller/address.js +8 -0
- package/plugins/runtime-modules/threads/controller/client.d.ts +85 -0
- package/plugins/runtime-modules/threads/controller/client.js +231 -0
- package/plugins/runtime-modules/threads/controller/definition.d.ts +111 -0
- package/plugins/runtime-modules/threads/controller/definition.js +141 -0
- package/plugins/runtime-modules/threads/data-providers.d.ts +105 -0
- package/plugins/runtime-modules/threads/data-providers.js +116 -0
- package/plugins/runtime-modules/threads/definition.d.ts +150 -0
- package/plugins/runtime-modules/threads/definition.js +54 -0
- package/plugins/runtime-modules/threads/forms.d.ts +38 -0
- package/plugins/runtime-modules/threads/forms.js +267 -0
- package/plugins/runtime-modules/threads/ids.d.ts +10 -0
- package/plugins/runtime-modules/threads/ids.js +15 -0
- package/plugins/runtime-modules/threads/media-spaces.d.ts +14 -0
- package/plugins/runtime-modules/threads/media-spaces.js +22 -0
- package/plugins/runtime-modules/threads/module.d.ts +1 -0
- package/plugins/runtime-modules/threads/module.js +4 -0
- package/plugins/runtime-modules/threads/presets.d.ts +2 -0
- package/plugins/runtime-modules/threads/presets.js +18 -0
- package/plugins/runtime-modules/threads/server.d.ts +1 -0
- package/plugins/runtime-modules/threads/server.js +24 -0
- package/plugins/runtime-modules/threads/services/options.d.ts +3 -0
- package/plugins/runtime-modules/threads/services/options.js +48 -0
- package/plugins/runtime-modules/threads/services/table.d.ts +3 -0
- package/plugins/runtime-modules/threads/services/table.js +130 -0
- package/plugins/runtime-modules/threads/trees/phi-default-app-threads-page-tree.d.ts +23 -0
- package/plugins/runtime-modules/threads/trees/phi-default-app-threads-page-tree.js +775 -0
- package/plugins/runtime-modules/threads/widgets/thread-conversation/authoring.d.ts +3 -0
- package/plugins/runtime-modules/threads/widgets/thread-conversation/authoring.js +9 -0
- package/plugins/runtime-modules/threads/widgets/thread-conversation/client.d.ts +7 -0
- package/plugins/runtime-modules/threads/widgets/thread-conversation/client.js +445 -0
- package/plugins/runtime-modules/threads/widgets/thread-conversation/config.d.ts +46 -0
- package/plugins/runtime-modules/threads/widgets/thread-conversation/config.js +59 -0
- package/plugins/runtime-modules/threads/widgets/thread-conversation/plugin.d.ts +3 -0
- package/plugins/runtime-modules/threads/widgets/thread-conversation/plugin.js +9 -0
- package/plugins/runtime-modules/threads/widgets/thread-conversation/server.d.ts +7 -0
- package/plugins/runtime-modules/threads/widgets/thread-conversation/server.js +24 -0
- package/plugins/runtime-modules/threads/widgets/thread-widget-config.d.ts +42 -0
- package/plugins/runtime-modules/threads/widgets/thread-widget-config.js +51 -0
- package/plugins/runtime-modules/threads/widgets.d.ts +2 -0
- package/plugins/runtime-modules/threads/widgets.js +14 -0
- package/plugins/runtime-modules/user-management/cards.d.ts +3 -0
- package/plugins/runtime-modules/user-management/cards.js +73 -0
- package/plugins/runtime-modules/user-management/controller/client.js +1 -1
- package/plugins/runtime-modules/user-management/definition.d.ts +0 -5
- package/plugins/runtime-modules/user-management/definition.js +0 -2
- package/plugins/runtime-modules/user-management/forms.js +0 -12
- package/plugins/runtime-modules/user-management/module.d.ts +1 -257
- package/plugins/runtime-modules/user-management/module.js +2 -4
- package/plugins/runtime-modules/user-management/presets.d.ts +2 -30
- package/plugins/runtime-modules/user-management/presets.js +10 -19
- package/plugins/runtime-modules/user-management/server.js +4 -0
- package/plugins/runtime-modules/user-management/services/table.js +9 -16
- package/plugins/runtime-modules/user-management/trees/admin-users-label-set.d.ts +8 -0
- package/plugins/runtime-modules/user-management/trees/admin-users-label-set.js +22 -0
- package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-page-tree.d.ts +6 -0
- package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-page-tree.js +558 -0
- package/plugins/runtime-modules/video/authoring-widgets.d.ts +2 -0
- package/plugins/runtime-modules/video/authoring-widgets.js +6 -0
- package/plugins/runtime-modules/video/authoring.d.ts +1 -0
- package/plugins/runtime-modules/video/authoring.js +8 -0
- package/plugins/runtime-modules/video/definition.d.ts +25 -0
- package/plugins/runtime-modules/video/definition.js +28 -0
- package/plugins/runtime-modules/video/ids.d.ts +9 -0
- package/plugins/runtime-modules/video/ids.js +11 -0
- package/plugins/runtime-modules/video/module.d.ts +11 -0
- package/plugins/runtime-modules/video/module.js +4 -0
- package/plugins/runtime-modules/video/providers.d.ts +21 -0
- package/plugins/runtime-modules/video/providers.js +62 -0
- package/plugins/runtime-modules/video/server.d.ts +1 -0
- package/plugins/runtime-modules/video/server.js +15 -0
- package/plugins/runtime-modules/video/widgets/embed/aspect-ratio.d.ts +3 -0
- package/plugins/runtime-modules/video/widgets/embed/aspect-ratio.js +15 -0
- package/plugins/runtime-modules/video/widgets/embed/authoring.d.ts +2 -0
- package/plugins/runtime-modules/video/widgets/embed/authoring.js +51 -0
- package/plugins/runtime-modules/video/widgets/embed/client.d.ts +22 -0
- package/plugins/runtime-modules/video/widgets/embed/client.js +28 -0
- package/plugins/runtime-modules/video/widgets/embed/config.d.ts +101 -0
- package/plugins/runtime-modules/video/widgets/embed/config.js +100 -0
- package/plugins/runtime-modules/video/widgets/embed/plugin.d.ts +3 -0
- package/plugins/runtime-modules/video/widgets/embed/plugin.js +9 -0
- package/plugins/runtime-modules/video/widgets/embed/server.d.ts +14 -0
- package/plugins/runtime-modules/video/widgets/embed/server.js +54 -0
- package/plugins/runtime-modules/video/widgets.d.ts +2 -0
- package/plugins/runtime-modules/video/widgets.js +14 -0
- package/references.d.ts +3 -1
- package/references.js +3 -1
- package/runtime-authoring-client.d.ts +1 -1
- package/runtime-authoring-client.js +1 -1
- package/runtime-controller-client.d.ts +3 -0
- package/runtime-controller-client.js +15 -0
- package/runtime-data-provider-client.d.ts +1 -1
- package/runtime-data-provider-client.js +1 -1
- package/runtime-render-client.d.ts +1 -0
- package/runtime-render-client.js +1 -0
- package/runtime-user-state-client.d.ts +2 -0
- package/runtime-user-state-client.js +2 -0
- package/server-helpers/area-root-door-warmup.d.ts +35 -0
- package/server-helpers/area-root-door-warmup.js +71 -0
- package/server-helpers/area-root-route.js +0 -1
- package/server-helpers/auth-ui-provider.d.ts +2 -0
- package/server-helpers/auth-ui-provider.js +28 -0
- package/server-helpers/cms-link-targets.d.ts +16 -0
- package/server-helpers/cms-link-targets.js +48 -0
- package/server-helpers/cms-request.d.ts +11 -5
- package/server-helpers/cms-request.js +31 -17
- package/server-helpers/cms-review.d.ts +1 -1
- package/server-helpers/cms-root.d.ts +11 -4
- package/server-helpers/cms-root.js +39 -7
- package/server-helpers/cms-route.js +2 -4
- package/server-helpers/public-login-route.d.ts +1 -2
- package/server-helpers/public-login-route.js +18 -6
- package/server-helpers/request-runtime.d.ts +32 -0
- package/server-helpers/request-runtime.js +34 -1
- package/server-helpers/runtime.d.ts +1 -165
- package/server-helpers/runtime.js +42 -22
- package/server-helpers/site-locale.d.ts +8 -0
- package/server-helpers/site-locale.js +18 -32
- package/server-helpers/translate.js +13 -33
- package/server-helpers.d.ts +5 -0
- package/server-helpers.js +11 -0
- package/styles/builder-scaffold.css +1 -1
- package/styles/control-shape.css +77 -3
- package/styles/controls.css +535 -0
- package/styles/layout-authoring-scaffold.css +54 -7
- package/styles/layout.css +87 -17
- package/styles/root.css +27 -2
- package/styles/shell.css +10 -0
- package/theme/antd-css-var-contract.d.ts +2 -3
- package/theme/antd-css-var-contract.js +2 -3
- package/theme/phi-container-breakpoints.d.ts +35 -2
- package/theme/phi-container-breakpoints.js +32 -0
- package/theme/phi-control-shape.d.ts +54 -4
- package/theme/phi-control-shape.js +170 -10
- package/theme/phi-published-root-style.d.ts +1 -1
- package/theme/phi-root-background.server.d.ts +1 -1
- package/theme/phi-server-tokens.d.ts +9 -37
- package/theme/phi-server-tokens.js +7 -1
- package/theme/phi-theme-adoption.d.ts +2 -1
- package/theme/phi-theme-adoption.js +4 -1
- package/theme/phi-theme-blocks.d.ts +19 -0
- package/theme/phi-theme-blocks.js +16 -6
- package/theme/phi-theme-composition.d.ts +3 -3
- package/theme/phi-theme-composition.js +2 -2
- package/theme/phi-theme-ground-image.d.ts +12 -12
- package/theme/phi-theme-ground-image.js +34 -12
- package/theme/phi-theme-mode.d.ts +86 -9
- package/theme/phi-theme-mode.js +128 -19
- package/theme/phi-theme-placeholder-logo.d.ts +19 -0
- package/theme/phi-theme-placeholder-logo.js +31 -0
- package/theme/phi-theme-presets.d.ts +6 -0
- package/theme/phi-theme-presets.js +41 -0
- package/theme/phi-theme-runtime.js +1 -1
- package/theme/phi-theme-tokens.d.ts +79 -0
- package/theme/phi-theme-tokens.js +227 -0
- package/theme/phi-tokens.d.ts +5 -4
- package/theme/phi-tokens.js +41 -4
- package/theme.d.ts +2 -8
- package/theme.js +2 -8
- package/types/auth-manifest.d.ts +7 -1
- package/types/builder.d.ts +5 -2
- package/types/calendar-keys.d.ts +7 -0
- package/types/calendar-keys.js +8 -0
- package/types/calendar.d.ts +16 -1
- package/types/calendar.js +64 -2
- package/types/cms-border-config.d.ts +2 -0
- package/types/cms-border-config.js +44 -0
- package/types/cms-border-source.d.ts +19 -0
- package/types/cms-border-source.js +34 -0
- package/types/cms-config.d.ts +35 -9
- package/types/cms-config.js +48 -58
- package/types/cms-instance-id.d.ts +4 -5
- package/types/cms-instance-id.js +16 -9
- package/types/cms-module-descriptors.d.ts +106 -2
- package/types/cms-mount-policy.d.ts +0 -12
- package/types/cms-mount-policy.js +0 -16
- package/types/cms-overlay-zones.d.ts +36 -0
- package/types/cms-overlay-zones.js +1 -0
- package/types/cms-overlay.d.ts +29 -3
- package/types/cms-overlay.js +20 -6
- package/types/cms-plugins.d.ts +219 -15
- package/types/cms-presets.d.ts +4 -4
- package/types/cms.d.ts +22 -4
- package/types/collection-provider.d.ts +32 -5
- package/types/collection-view-widget.d.ts +67 -0
- package/types/collection-view-widget.js +1 -0
- package/types/core-runtime-controller.js +3 -5
- package/types/core-widget-placements.d.ts +365 -0
- package/types/core-widget-placements.js +3 -0
- package/types/dashboard-cards.d.ts +152 -0
- package/types/dashboard-cards.js +15 -0
- package/types/draft-status.d.ts +23 -0
- package/types/draft-status.js +20 -0
- package/types/form-descriptor.d.ts +2 -140
- package/types/form-descriptor.js +6 -3
- package/types/markdown.d.ts +6 -0
- package/types/markdown.js +1 -0
- package/types/media.d.ts +28 -0
- package/types/news.d.ts +33 -0
- package/types/news.js +1 -0
- package/types/record-widget.d.ts +49 -0
- package/types/record-widget.js +1 -0
- package/types/references.d.ts +18 -30
- package/types/references.js +9 -114
- package/types/renderable-block-geometry.d.ts +85 -0
- package/types/renderable-block-geometry.js +96 -0
- package/types/renderable-block.d.ts +31 -4
- package/types/responsive.d.ts +1 -11
- package/types/responsive.js +5 -8
- package/types/result-widget.d.ts +5 -0
- package/types/result-widget.js +1 -0
- package/types/runtime-condition.d.ts +3 -90
- package/types/runtime-condition.js +7 -164
- package/types/runtime-data-provider.d.ts +13 -2
- package/types/runtime-data-provider.js +25 -5
- package/types/seed.d.ts +32 -0
- package/types/seed.js +15 -0
- package/types/signals.d.ts +53 -5
- package/types/signals.js +52 -38
- package/types/site-config.d.ts +83 -0
- package/types/site-config.js +1 -0
- package/types/site-request-context.d.ts +167 -0
- package/types/site-request-context.js +1 -0
- package/types/site-theme.d.ts +17 -0
- package/types/spacing.d.ts +1 -3
- package/types/spacing.js +5 -14
- package/types/state-machine.d.ts +229 -0
- package/types/state-machine.js +161 -0
- package/types/table-signal-values.d.ts +8 -0
- package/types/table-signal-values.js +71 -0
- package/types/table-widget.d.ts +34 -22
- package/types/table-widget.js +13 -78
- package/types/thread-widget.d.ts +27 -0
- package/types/thread-widget.js +9 -0
- package/types/threads.d.ts +13 -0
- package/types/threads.js +13 -0
- package/types/tree-widget.d.ts +10 -6
- package/types/tree-widget.js +14 -7
- package/types/tree.d.ts +8 -0
- package/types/user-state.d.ts +17 -0
- package/types/user-state.js +17 -0
- package/types/video.d.ts +152 -0
- package/types/video.js +278 -0
- package/types/widget-runtime.d.ts +19 -3
- package/types.d.ts +12 -31
- package/types.js +4 -1
- package/widgets.d.ts +6 -8
- package/widgets.js +3 -4
- package/builder.d.ts +0 -2
- package/builder.js +0 -2
- package/components/controls/phi-dropdown-control.module.css +0 -63
- package/components/controls/phi-expand-indicator.module.css +0 -16
- package/components/controls/phi-icon-picker-labels.d.ts +0 -27
- package/components/controls/phi-icon-picker-labels.js +0 -26
- package/components/controls/phi-table-control.module.css +0 -16
- package/components/controls/phi-tree-control.module.css +0 -22
- package/components/forms/auth-admin-settings-forms.d.ts +0 -15
- package/components/forms/auth-admin-settings-forms.js +0 -349
- package/components/forms/auth-form-provider-registry.d.ts +0 -1
- package/components/forms/auth-form-provider-registry.js +0 -38
- package/components/forms/auth-form-ui-provider.js +0 -7
- package/components/forms/auth-installations-table-service.js +0 -144
- package/components/forms/auth-link-confirmation-contract.d.ts +0 -7
- package/components/forms/auth-link-confirmation-contract.js +0 -8
- package/components/forms/shared-form-plugins.d.ts +0 -4
- package/components/forms/shared-form-plugins.js +0 -171
- package/components/media/asset-collection-service.js +0 -160
- package/components/media/asset-controller-definition.js +0 -128
- package/components/media/asset-controller-mount.d.ts +0 -4
- package/components/media/asset-controller-mount.js +0 -6
- package/components/media/asset-controller-plugin.d.ts +0 -124
- package/components/media/asset-controller-plugin.js +0 -10
- package/components/media/asset-form-field-providers.js +0 -11
- package/components/media/asset-form-ui-provider.js +0 -13
- package/components/media/asset-inspector-addresses.d.ts +0 -4
- package/components/media/asset-inspector-addresses.js +0 -30
- package/components/media/asset-metadata-form.d.ts +0 -243
- package/components/media/asset-metadata-form.js +0 -209
- package/components/media/asset-options-providers.js +0 -69
- package/components/media/media-settings-forms.d.ts +0 -22
- package/components/media/media-settings-forms.js +0 -130
- package/components/media/phi-area-upload-server.d.ts +0 -7
- package/components/media/phi-area-upload-server.js +0 -13
- package/components/media/phi-asset-collection-view-binding.d.ts +0 -9
- package/components/media/phi-asset-collection-view-binding.js +0 -245
- package/components/media/phi-asset-focal-rect-server.d.ts +0 -6
- package/components/media/phi-asset-focal-rect-server.js +0 -6
- package/components/media/phi-image-inspector-server.d.ts +0 -7
- package/components/media/phi-image-inspector-server.js +0 -18
- package/components/media/phi-image-preview-grid-widget.d.ts +0 -7
- package/components/media/phi-image-preview-grid-widget.js +0 -16
- package/components/media/phi-media-scope-controller.d.ts +0 -20
- package/components/media/phi-media-scope-controller.js +0 -398
- package/components/regions/presets/admin-dashboard-label-set.d.ts +0 -22
- package/components/regions/presets/admin-dashboard-label-set.js +0 -50
- package/components/regions/presets/admin-locales-label-set.d.ts +0 -8
- package/components/regions/presets/admin-locales-label-set.js +0 -22
- package/components/regions/presets/admin-logs-label-set.d.ts +0 -8
- package/components/regions/presets/admin-logs-label-set.js +0 -22
- package/components/regions/presets/admin-settings-label-set.d.ts +0 -6
- package/components/regions/presets/admin-settings-label-set.js +0 -18
- package/components/regions/presets/admin-users-label-set.d.ts +0 -8
- package/components/regions/presets/admin-users-label-set.js +0 -22
- package/components/regions/presets/builder-navigation-label-set.d.ts +0 -35
- package/components/regions/presets/builder-navigation-label-set.js +0 -68
- package/components/regions/presets/builder-settings-label-set.d.ts +0 -17
- package/components/regions/presets/builder-settings-label-set.js +0 -34
- package/components/regions/presets/editor-label-set.d.ts +0 -8
- package/components/regions/presets/editor-label-set.js +0 -22
- package/components/regions/presets/editor-shell.js +0 -44
- package/components/regions/presets/editor-translations-label-set.d.ts +0 -8
- package/components/regions/presets/editor-translations-label-set.js +0 -22
- package/components/regions/presets/phi-auth-area-overlay-tree.server.d.ts +0 -8
- package/components/regions/presets/phi-auth-area-overlay-tree.server.js +0 -114
- package/components/regions/presets/phi-auth-runtime-page-tree.d.ts +0 -7
- package/components/regions/presets/phi-auth-runtime-page-tree.js +0 -57
- package/components/regions/presets/phi-avatar-area-overlay-tree.js +0 -12
- package/components/regions/presets/phi-avatar-area-overlay-tree.server.js +0 -104
- package/components/regions/presets/phi-builder-inspector-area-overlay-tree.d.ts +0 -7
- package/components/regions/presets/phi-builder-inspector-area-overlay-tree.js +0 -12
- package/components/regions/presets/phi-builder-inspector-area-overlay-tree.server.d.ts +0 -20
- package/components/regions/presets/phi-builder-inspector-area-overlay-tree.server.js +0 -527
- package/components/regions/presets/phi-default-accounting-page-tree.d.ts +0 -6
- package/components/regions/presets/phi-default-accounting-page-tree.js +0 -50
- package/components/regions/presets/phi-default-admin-area-preset-tree.d.ts +0 -6
- package/components/regions/presets/phi-default-admin-area-preset-tree.js +0 -252
- package/components/regions/presets/phi-default-admin-auth-settings-page-tree.d.ts +0 -6
- package/components/regions/presets/phi-default-admin-auth-settings-page-tree.js +0 -290
- package/components/regions/presets/phi-default-admin-dashboard-page-tree.d.ts +0 -6
- package/components/regions/presets/phi-default-admin-dashboard-page-tree.js +0 -181
- package/components/regions/presets/phi-default-admin-groups-page-tree.d.ts +0 -13
- package/components/regions/presets/phi-default-admin-groups-page-tree.js +0 -409
- package/components/regions/presets/phi-default-admin-locales-page-tree.d.ts +0 -7
- package/components/regions/presets/phi-default-admin-locales-page-tree.js +0 -264
- package/components/regions/presets/phi-default-admin-logs-page-tree.d.ts +0 -6
- package/components/regions/presets/phi-default-admin-logs-page-tree.js +0 -287
- package/components/regions/presets/phi-default-admin-media-settings-page-tree.d.ts +0 -6
- package/components/regions/presets/phi-default-admin-media-settings-page-tree.js +0 -94
- package/components/regions/presets/phi-default-admin-settings-page-tree.d.ts +0 -6
- package/components/regions/presets/phi-default-admin-settings-page-tree.js +0 -82
- package/components/regions/presets/phi-default-admin-users-page-tree.d.ts +0 -6
- package/components/regions/presets/phi-default-admin-users-page-tree.js +0 -568
- package/components/regions/presets/phi-default-app-groups-page-tree.d.ts +0 -14
- package/components/regions/presets/phi-default-app-groups-page-tree.js +0 -315
- package/components/regions/presets/phi-default-app-profile-page-tree.d.ts +0 -6
- package/components/regions/presets/phi-default-app-profile-page-tree.js +0 -29
- package/components/regions/presets/phi-default-area-dashboard-page-tree.d.ts +0 -9
- package/components/regions/presets/phi-default-area-dashboard-page-tree.js +0 -67
- package/components/regions/presets/phi-default-builder-area-preset-tree.d.ts +0 -131
- package/components/regions/presets/phi-default-builder-area-preset-tree.js +0 -3580
- package/components/regions/presets/phi-default-builder-dashboard-page-tree.d.ts +0 -6
- package/components/regions/presets/phi-default-builder-dashboard-page-tree.js +0 -112
- package/components/regions/presets/phi-default-builder-settings-page-tree.d.ts +0 -12
- package/components/regions/presets/phi-default-builder-settings-page-tree.js +0 -55
- package/components/regions/presets/phi-default-editor-area-preset-tree.d.ts +0 -6
- package/components/regions/presets/phi-default-editor-area-preset-tree.js +0 -253
- package/components/regions/presets/phi-default-editor-translations-page-tree.d.ts +0 -6
- package/components/regions/presets/phi-default-editor-translations-page-tree.js +0 -323
- package/components/regions/presets/phi-default-pub-confirm-page-tree.d.ts +0 -5
- package/components/regions/presets/phi-default-pub-confirm-page-tree.js +0 -175
- package/components/regions/presets/phi-default-pub-contact-page-tree.d.ts +0 -4
- package/components/regions/presets/phi-default-pub-contact-page-tree.js +0 -112
- package/components/regions/presets/phi-default-pub-error-page-tree.d.ts +0 -8
- package/components/regions/presets/phi-default-pub-error-page-tree.js +0 -128
- package/components/regions/presets/phi-default-pub-home-page-tree.d.ts +0 -10
- package/components/regions/presets/phi-default-pub-home-page-tree.js +0 -90
- package/components/regions/presets/phi-default-pub-login-page-tree.d.ts +0 -10
- package/components/regions/presets/phi-default-pub-login-page-tree.js +0 -111
- package/components/regions/presets/phi-default-pub-registration-page-tree.d.ts +0 -10
- package/components/regions/presets/phi-default-pub-registration-page-tree.js +0 -127
- package/components/regions/presets/phi-default-pub-reset-password-page-tree.d.ts +0 -5
- package/components/regions/presets/phi-default-pub-reset-password-page-tree.js +0 -159
- package/components/regions/presets/phi-default-pub-terms-page-tree.d.ts +0 -4
- package/components/regions/presets/phi-default-pub-terms-page-tree.js +0 -93
- package/components/regions/presets/phi-default-pub-welcome-page-tree.d.ts +0 -17
- package/components/regions/presets/phi-default-pub-welcome-page-tree.js +0 -110
- package/components/regions/presets/phi-default-site-area-preset-tree.d.ts +0 -11
- package/components/regions/presets/phi-default-site-area-preset-tree.js +0 -640
- package/components/regions/presets/phi-login-form-nodes.d.ts +0 -46
- package/components/regions/presets/phi-login-form-nodes.js +0 -210
- package/components/regions/presets/profile-label-set.d.ts +0 -11
- package/components/regions/presets/profile-label-set.js +0 -28
- package/components/regions/presets/pub.d.ts +0 -2
- package/components/regions/presets/pub.js +0 -130
- package/components/runtime/accounting-base-controller-plugin.d.ts +0 -1
- package/components/runtime/accounting-base-controller-plugin.js +0 -4
- package/components/runtime/app-base-controller-plugin.d.ts +0 -1
- package/components/runtime/app-base-controller-plugin.js +0 -4
- package/components/runtime/area-base-controller-addresses.d.ts +0 -23
- package/components/runtime/area-base-controller-addresses.js +0 -26
- package/components/runtime/area-base-controller-client-factory.d.ts +0 -2
- package/components/runtime/area-base-controller-client-factory.js +0 -8
- package/components/runtime/area-base-controller-definitions.d.ts +0 -106
- package/components/runtime/area-base-controller-definitions.js +0 -75
- package/components/runtime/auth-controller-plugin.d.ts +0 -1
- package/components/runtime/auth-controller-plugin.js +0 -172
- package/components/runtime/auth-controller-server-definition.d.ts +0 -62
- package/components/runtime/auth-controller-server-definition.js +0 -3
- package/components/runtime/auth-overlay-ids.d.ts +0 -23
- package/components/runtime/auth-overlay-ids.js +0 -27
- package/components/runtime/avatar-overlay-ids.js +0 -19
- package/components/runtime/public-base-controller-plugin.d.ts +0 -1
- package/components/runtime/public-base-controller-plugin.js +0 -4
- package/components/shell/phi-management-icon.d.ts +0 -4
- package/components/shell/phi-management-icon.js +0 -59
- package/components/tables/client/phi-static-table-resource-editor.d.ts +0 -6
- package/components/tables/client/phi-static-table-resource-editor.js +0 -10
- package/components/tables/phi-plain-table.module.css +0 -34
- package/components/widgets/area-menu-items.d.ts +0 -16
- package/components/widgets/area-menu-items.js +0 -26
- package/components/widgets/builder/command-toolbar-authoring-tools.d.ts +0 -5
- package/components/widgets/builder/command-toolbar-authoring-tools.js +0 -41
- package/components/widgets/builder/icon-editor.d.ts +0 -10
- package/components/widgets/builder/icon-editor.js +0 -10
- package/components/widgets/builder/internal-builder.d.ts +0 -22
- package/components/widgets/builder/internal-builder.js +0 -8
- package/components/widgets/builder/simple-text-editor.d.ts +0 -39
- package/components/widgets/builder/simple-text-editor.js +0 -121
- package/components/widgets/client/area-menu-preview.d.ts +0 -5
- package/components/widgets/client/area-menu-preview.js +0 -18
- package/components/widgets/client/card-editor.d.ts +0 -11
- package/components/widgets/client/card-editor.js +0 -46
- package/components/widgets/client/collection-view-widget.d.ts +0 -10
- package/components/widgets/client/collection-view-widget.js +0 -44
- package/components/widgets/client/description-editor.d.ts +0 -6
- package/components/widgets/client/description-editor.js +0 -130
- package/components/widgets/client/image-editor.d.ts +0 -10
- package/components/widgets/client/image-editor.js +0 -100
- package/components/widgets/client/markdown-editor.d.ts +0 -9
- package/components/widgets/client/markdown-editor.js +0 -80
- package/components/widgets/client/phi-color-widget.d.ts +0 -34
- package/components/widgets/client/phi-color-widget.js +0 -45
- package/components/widgets/client/shared/core-table-providers.js +0 -13
- package/components/widgets/client/shared/phi-card-collection-view-binding.d.ts +0 -9
- package/components/widgets/client/shared/phi-card-collection-view-binding.js +0 -106
- package/components/widgets/client/use-table-provider-mutation.d.ts +0 -1
- package/components/widgets/client/use-table-provider-mutation.js +0 -2
- package/components/widgets/label-sets/avatar.d.ts +0 -26
- package/components/widgets/label-sets/editor-translations.d.ts +0 -4
- package/components/widgets/label-sets/editor-translations.js +0 -100
- package/components/widgets/label-sets/footer.d.ts +0 -8
- package/components/widgets/label-sets/footer.js +0 -22
- package/components/widgets/label-types/editor-translations.d.ts +0 -53
- package/components/widgets/quick-links-items.d.ts +0 -6
- package/components/widgets/quick-links-items.js +0 -32
- package/gateway/data-source-fetch.d.ts +0 -12
- package/gateway/data-source-fetch.js +0 -46
- package/gateway/media-proxy.d.ts +0 -9
- package/gateway/media-proxy.js +0 -12
- package/gateway/mutation-fetch.d.ts +0 -5
- package/gateway/mutation-fetch.js +0 -71
- package/gateway.d.ts +0 -13
- package/gateway.js +0 -13
- package/helpers/cms-page-addresses.d.ts +0 -32
- package/helpers/cms-page-addresses.js +0 -77
- package/helpers/css-length.d.ts +0 -1
- package/helpers/css-length.js +0 -10
- package/helpers/site-structure.d.ts +0 -13
- package/helpers/site-structure.js +0 -82
- package/next/module-diagnostics-route.d.ts +0 -37
- package/next/module-diagnostics-route.js +0 -64
- package/next/navigation-target-route.d.ts +0 -8
- package/next/navigation-target-route.js +0 -216
- package/plugins/runtime-modules/accounting/client.d.ts +0 -1
- package/plugins/runtime-modules/accounting/client.js +0 -7
- package/plugins/runtime-modules/app/client.d.ts +0 -1
- package/plugins/runtime-modules/app/client.js +0 -7
- package/plugins/runtime-modules/auth/ui-provider.d.ts +0 -2
- package/plugins/runtime-modules/auth/ui-provider.js +0 -29
- package/plugins/runtime-modules/builder/clients/inline-text-editor.d.ts +0 -31
- package/plugins/runtime-modules/builder/clients/inline-text-editor.js +0 -44
- package/plugins/runtime-modules/builder/navigation-signals.d.ts +0 -36
- package/plugins/runtime-modules/builder/navigation-signals.js +0 -88
- package/plugins/runtime-modules/builder/page-reference-picker.d.ts +0 -16
- package/plugins/runtime-modules/builder/page-reference-picker.js +0 -43
- package/plugins/runtime-modules/builder/root-node-css-size.d.ts +0 -1
- package/plugins/runtime-modules/builder/root-node-css-size.js +0 -10
- package/plugins/runtime-modules/builder/runtime-module-defaults.d.ts +0 -3
- package/plugins/runtime-modules/builder/runtime-module-defaults.js +0 -41
- package/plugins/runtime-modules/builder/signal-route-config.d.ts +0 -3
- package/plugins/runtime-modules/builder/signal-route-config.js +0 -37
- package/plugins/runtime-modules/builder/widgets/draft-status/authoring-plugin.d.ts +0 -3
- package/plugins/runtime-modules/builder/widgets/draft-status/authoring-plugin.js +0 -8
- package/plugins/runtime-modules/builder/widgets/draft-status/authoring.d.ts +0 -4
- package/plugins/runtime-modules/builder/widgets/draft-status/authoring.js +0 -228
- package/plugins/runtime-modules/builder/widgets/draft-status/plugin.d.ts +0 -3
- package/plugins/runtime-modules/builder/widgets/draft-status/plugin.js +0 -8
- package/plugins/runtime-modules/builder/workspace-view-model.d.ts +0 -4
- package/plugins/runtime-modules/builder/workspace-view-model.js +0 -24
- package/plugins/runtime-modules/client-state.d.ts +0 -5
- package/plugins/runtime-modules/client-state.js +0 -17
- package/plugins/runtime-modules/core/widgets/account/index.d.ts +0 -2
- package/plugins/runtime-modules/core/widgets/account/index.js +0 -2
- package/plugins/runtime-modules/core/widgets/area-menu/authoring.d.ts +0 -2
- package/plugins/runtime-modules/core/widgets/area-menu/authoring.js +0 -8
- package/plugins/runtime-modules/core/widgets/area-menu/client.d.ts +0 -11
- package/plugins/runtime-modules/core/widgets/area-menu/client.js +0 -61
- package/plugins/runtime-modules/core/widgets/area-menu/config.d.ts +0 -12
- package/plugins/runtime-modules/core/widgets/area-menu/config.js +0 -14
- package/plugins/runtime-modules/core/widgets/area-menu/index.d.ts +0 -2
- package/plugins/runtime-modules/core/widgets/area-menu/index.js +0 -2
- package/plugins/runtime-modules/core/widgets/area-menu/plugin.d.ts +0 -4
- package/plugins/runtime-modules/core/widgets/area-menu/plugin.js +0 -11
- package/plugins/runtime-modules/core/widgets/area-menu/server.d.ts +0 -5
- package/plugins/runtime-modules/core/widgets/area-menu/server.js +0 -14
- package/plugins/runtime-modules/core/widgets/card/client.d.ts +0 -37
- package/plugins/runtime-modules/core/widgets/card/client.js +0 -64
- package/plugins/runtime-modules/core/widgets/footer/authoring.d.ts +0 -3
- package/plugins/runtime-modules/core/widgets/footer/authoring.js +0 -22
- package/plugins/runtime-modules/core/widgets/footer/client.d.ts +0 -21
- package/plugins/runtime-modules/core/widgets/footer/client.js +0 -30
- package/plugins/runtime-modules/core/widgets/footer/config.d.ts +0 -31
- package/plugins/runtime-modules/core/widgets/footer/config.js +0 -34
- package/plugins/runtime-modules/core/widgets/footer/index.d.ts +0 -1
- package/plugins/runtime-modules/core/widgets/footer/index.js +0 -1
- package/plugins/runtime-modules/core/widgets/footer/plugin.d.ts +0 -4
- package/plugins/runtime-modules/core/widgets/footer/plugin.js +0 -9
- package/plugins/runtime-modules/core/widgets/footer/server.d.ts +0 -12
- package/plugins/runtime-modules/core/widgets/footer/server.js +0 -46
- package/plugins/runtime-modules/core/widgets/form/built-in.d.ts +0 -15
- package/plugins/runtime-modules/core/widgets/form/built-in.js +0 -74
- package/plugins/runtime-modules/core/widgets/html/index.d.ts +0 -1
- package/plugins/runtime-modules/core/widgets/html/index.js +0 -1
- package/plugins/runtime-modules/core/widgets/icon/index.d.ts +0 -1
- package/plugins/runtime-modules/core/widgets/icon/index.js +0 -1
- package/plugins/runtime-modules/core/widgets/markdown/client.d.ts +0 -72
- package/plugins/runtime-modules/core/widgets/markdown/client.js +0 -141
- package/plugins/runtime-modules/core/widgets/profile-email/authoring.d.ts +0 -3
- package/plugins/runtime-modules/core/widgets/profile-email/authoring.js +0 -8
- package/plugins/runtime-modules/core/widgets/profile-email/client.d.ts +0 -28
- package/plugins/runtime-modules/core/widgets/profile-email/client.js +0 -96
- package/plugins/runtime-modules/core/widgets/profile-email/config.d.ts +0 -12
- package/plugins/runtime-modules/core/widgets/profile-email/config.js +0 -14
- package/plugins/runtime-modules/core/widgets/profile-email/plugin.d.ts +0 -5
- package/plugins/runtime-modules/core/widgets/profile-email/plugin.js +0 -10
- package/plugins/runtime-modules/core/widgets/profile-email/server.d.ts +0 -8
- package/plugins/runtime-modules/core/widgets/profile-email/server.js +0 -16
- package/plugins/runtime-modules/core/widgets/profile-locale/authoring.d.ts +0 -3
- package/plugins/runtime-modules/core/widgets/profile-locale/authoring.js +0 -8
- package/plugins/runtime-modules/core/widgets/profile-locale/client.d.ts +0 -20
- package/plugins/runtime-modules/core/widgets/profile-locale/client.js +0 -107
- package/plugins/runtime-modules/core/widgets/profile-locale/config.d.ts +0 -12
- package/plugins/runtime-modules/core/widgets/profile-locale/config.js +0 -14
- package/plugins/runtime-modules/core/widgets/profile-locale/plugin.d.ts +0 -5
- package/plugins/runtime-modules/core/widgets/profile-locale/plugin.js +0 -10
- package/plugins/runtime-modules/core/widgets/profile-locale/server.d.ts +0 -8
- package/plugins/runtime-modules/core/widgets/profile-locale/server.js +0 -16
- package/plugins/runtime-modules/core/widgets/profile-name/authoring.d.ts +0 -3
- package/plugins/runtime-modules/core/widgets/profile-name/authoring.js +0 -8
- package/plugins/runtime-modules/core/widgets/profile-name/client.d.ts +0 -23
- package/plugins/runtime-modules/core/widgets/profile-name/client.js +0 -96
- package/plugins/runtime-modules/core/widgets/profile-name/config.d.ts +0 -12
- package/plugins/runtime-modules/core/widgets/profile-name/config.js +0 -14
- package/plugins/runtime-modules/core/widgets/profile-name/plugin.d.ts +0 -5
- package/plugins/runtime-modules/core/widgets/profile-name/plugin.js +0 -10
- package/plugins/runtime-modules/core/widgets/profile-name/server.d.ts +0 -8
- package/plugins/runtime-modules/core/widgets/profile-name/server.js +0 -16
- package/plugins/runtime-modules/core/widgets/profile-overview/authoring.d.ts +0 -2
- package/plugins/runtime-modules/core/widgets/profile-overview/authoring.js +0 -8
- package/plugins/runtime-modules/core/widgets/profile-overview/client.d.ts +0 -19
- package/plugins/runtime-modules/core/widgets/profile-overview/client.js +0 -73
- package/plugins/runtime-modules/core/widgets/profile-overview/config.d.ts +0 -12
- package/plugins/runtime-modules/core/widgets/profile-overview/config.js +0 -14
- package/plugins/runtime-modules/core/widgets/profile-overview/plugin.d.ts +0 -4
- package/plugins/runtime-modules/core/widgets/profile-overview/plugin.js +0 -10
- package/plugins/runtime-modules/core/widgets/profile-overview/server.d.ts +0 -5
- package/plugins/runtime-modules/core/widgets/profile-overview/server.js +0 -16
- package/plugins/runtime-modules/core/widgets/profile-password/authoring.d.ts +0 -3
- package/plugins/runtime-modules/core/widgets/profile-password/authoring.js +0 -8
- package/plugins/runtime-modules/core/widgets/profile-password/client.d.ts +0 -27
- package/plugins/runtime-modules/core/widgets/profile-password/client.js +0 -91
- package/plugins/runtime-modules/core/widgets/profile-password/config.d.ts +0 -12
- package/plugins/runtime-modules/core/widgets/profile-password/config.js +0 -14
- package/plugins/runtime-modules/core/widgets/profile-password/plugin.d.ts +0 -5
- package/plugins/runtime-modules/core/widgets/profile-password/plugin.js +0 -10
- package/plugins/runtime-modules/core/widgets/profile-password/server.d.ts +0 -8
- package/plugins/runtime-modules/core/widgets/profile-password/server.js +0 -16
- package/plugins/runtime-modules/core/widgets/quick-links/index.d.ts +0 -1
- package/plugins/runtime-modules/core/widgets/quick-links/index.js +0 -1
- package/plugins/runtime-modules/observability/widgets/log-detail/authoring.d.ts +0 -3
- package/plugins/runtime-modules/observability/widgets/log-detail/authoring.js +0 -8
- package/plugins/runtime-modules/observability/widgets/log-detail/client.d.ts +0 -56
- package/plugins/runtime-modules/observability/widgets/log-detail/client.js +0 -125
- package/plugins/runtime-modules/observability/widgets/log-detail/config.d.ts +0 -58
- package/plugins/runtime-modules/observability/widgets/log-detail/config.js +0 -71
- package/plugins/runtime-modules/observability/widgets/log-detail/plugin.d.ts +0 -3
- package/plugins/runtime-modules/observability/widgets/log-detail/plugin.js +0 -8
- package/plugins/runtime-modules/observability/widgets/log-detail/server.d.ts +0 -7
- package/plugins/runtime-modules/observability/widgets/log-detail/server.js +0 -13
- package/plugins/runtime-modules/observability/widgets.d.ts +0 -2
- package/plugins/runtime-modules/observability/widgets.js +0 -16
- package/plugins/runtime-modules/public/client.d.ts +0 -1
- package/plugins/runtime-modules/public/client.js +0 -7
- package/plugins/runtime-modules/theme/blocks/alpine-ground-image.d.ts +0 -17
- package/plugins/runtime-modules/theme/blocks/alpine-ground-image.js +0 -17
- package/plugins/runtime-modules/theme/blocks/alpine-ground.jpg +0 -0
- package/plugins/runtime-modules/theme/blocks/alpine.d.ts +0 -19
- package/plugins/runtime-modules/theme/blocks/alpine.js +0 -76
- package/plugins/runtime-modules/theme/theme-descriptors.d.ts +0 -80
- package/plugins/runtime-modules/theme/theme-descriptors.js +0 -34
- package/theme/phi-theme-brand-logo.d.ts +0 -12
- package/theme/phi-theme-brand-logo.js +0 -12
- /package/components/widgets/label-types/{editor-translations.js → auth-workflow.js} +0 -0
- /package/{components/media/asset-controller-definition.d.ts → plugins/runtime-modules/asset/controller/definition.d.ts} +0 -0
- /package/{components/media/asset-form-field-providers.d.ts → plugins/runtime-modules/asset/form-providers.d.ts} +0 -0
- /package/{components/media/asset-form-ui-provider.d.ts → plugins/runtime-modules/asset/form-ui-provider.d.ts} +0 -0
- /package/{components/media/asset-collection-service.d.ts → plugins/runtime-modules/asset/services/collection.d.ts} +0 -0
- /package/{components/media/asset-options-providers.d.ts → plugins/runtime-modules/asset/services/options.d.ts} +0 -0
- /package/{components/forms/auth-form-ui-provider.d.ts → plugins/runtime-modules/auth/form-ui-provider.d.ts} +0 -0
- /package/{components/forms/auth-installations-table-service.d.ts → plugins/runtime-modules/auth/services/installations-table.d.ts} +0 -0
- /package/{components/runtime/avatar-overlay-ids.d.ts → plugins/runtime-modules/avatar/addresses.d.ts} +0 -0
- /package/{components/widgets/label-sets/avatar.js → plugins/runtime-modules/avatar/labels.js} +0 -0
- /package/{components/regions/presets/phi-avatar-area-overlay-tree.d.ts → plugins/runtime-modules/avatar/overlay-tree.d.ts} +0 -0
- /package/{components/regions/presets/phi-avatar-area-overlay-tree.server.d.ts → plugins/runtime-modules/avatar/overlay-tree.server.d.ts} +0 -0
- /package/{components/widgets/client/shared/core-table-providers.d.ts → plugins/runtime-modules/core/services/table.d.ts} +0 -0
- /package/{components/regions/presets/editor-shell.d.ts → plugins/runtime-modules/localization/trees/editor-translations-shell.d.ts} +0 -0
|
@@ -1,3580 +0,0 @@
|
|
|
1
|
-
import { createPhiPresetCmsInstanceIdMap, } from "../../../types/cms-instance-id";
|
|
2
|
-
import { PHI_CMS_DEFAULT_SLOT_INDEX, PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS, PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX, } from "../../../constants/cms-layout-types";
|
|
3
|
-
import { PhiCmsFlags, PhiCmsRegionType, PhiCmsStatus } from "../../../constants/phi-cms";
|
|
4
|
-
import { PHI_CMS_AREA_KEYS } from "../../../constants/cms-areas";
|
|
5
|
-
import { PhiMediaKind } from "../../../constants/media";
|
|
6
|
-
import { buildPhiCmsLayoutNode } from "../../../helpers/cms-node-factories";
|
|
7
|
-
import { createPhiCmsPresetNodes } from "../../../helpers/cms-preset-nodes";
|
|
8
|
-
import { PHI_AREA_META_PUBLIC_DEFAULTS } from "../../../helpers/cms-area-config";
|
|
9
|
-
import { remapPhiSignalRoutesInConfig } from "../../../helpers/signal-route-lifecycle";
|
|
10
|
-
import { resolvePhiBrandWordmarkText } from "../../../helpers/brand-wordmark";
|
|
11
|
-
import { resolvePhiShellHeaderHeight, resolvePhiShellMetric } from "../../../helpers/shell-region-style";
|
|
12
|
-
import { PHI_SIGNAL_VALUE_SCHEMAS, createPhiSignalAddress, createPhiSignalSubcontrolAddress, } from "../../../types";
|
|
13
|
-
import { PHI_LAYOUT } from "../../../theme/phi-tokens";
|
|
14
|
-
import { PHI_COLOR, PHI_SPACE } from "../../../theme/antd-css-var-contract";
|
|
15
|
-
import { buildPhiSiteThemeSelectOptions, resolvePhiThemeSelectionValue, } from "../../../theme/phi-theme-selection";
|
|
16
|
-
import { buildPhiThemeSetSelectOptions } from "../../../plugins/runtime-modules/theme/set-options";
|
|
17
|
-
import { createPhiBuilderControllerAddress } from "../../../plugins/runtime-modules/builder/controller/address";
|
|
18
|
-
import { isPhiAreaScopedBuilderPage, isPhiDebugScaffoldBuilderPage, readPhiDeveloperBuilderWorkspaceKey, } from "../../../plugins/runtime-modules/builder/route-scope";
|
|
19
|
-
import { createPhiThemeControllerAddress } from "../../../plugins/runtime-modules/theme/controller/address";
|
|
20
|
-
import { PHI_THEME_SIGNAL_CHANNELS } from "../../../plugins/runtime-modules/theme/controller/signals";
|
|
21
|
-
import { createPhiCoreRuntimeControllerAddress } from "../../runtime/core-runtime-controller-address";
|
|
22
|
-
import { PHI_BUILDER_RUNTIME_MODULE_ID } from "../../../plugins/runtime-modules/builder/ids";
|
|
23
|
-
import { PHI_ASSET_RUNTIME_DATA_PROVIDER_KEYS } from "../../../plugins/runtime-modules/asset/ids";
|
|
24
|
-
import { PHI_BUILDER_RUNTIME_DATA_PROVIDER_KEYS } from "../../../plugins/runtime-modules/builder/ids";
|
|
25
|
-
import { PHI_BUILDER_MODULES_TABLE_ALL_AREAS_VALUE, PHI_BUILDER_MODULES_TABLE_FILTER_KEYS, } from "../../../plugins/runtime-modules/builder/data-providers";
|
|
26
|
-
import { PHI_BUILDER_NAVIGATION_DND_TYPE_PAGE } from "../../../constants/builder-navigation-dnd";
|
|
27
|
-
import { createPhiDefaultAreaRuntimeModuleIds } from "../../../plugins/runtime-modules/builder/runtime-module-defaults";
|
|
28
|
-
import { getPhiBuilderChromeWidgetLabels } from "../../widgets/label-sets/builder-chrome";
|
|
29
|
-
import { PHI_BUILDER_CHROME_WIDGET_DEFAULT_LABELS } from "../../widgets/label-types/builder-chrome";
|
|
30
|
-
import { getPhiBuilderRevisionsWidgetLabels } from "../../widgets/label-sets/revisions";
|
|
31
|
-
import { getPhiBuilderModulesPageLabels } from "../../widgets/label-sets/builder-modules";
|
|
32
|
-
import { PHI_REVISIONS_RUNTIME_DATA_PROVIDER_KEYS } from "../../../plugins/runtime-modules/revisions/ids";
|
|
33
|
-
import { createPhiRevisionsControllerAddress } from "../../../plugins/runtime-modules/revisions/controller/address";
|
|
34
|
-
import { PHI_BUILDER_AREA_SETTINGS_LAYOUT_IDS, PHI_BUILDER_AREA_SETTINGS_OVERLAY_IDS, PHI_BUILDER_AREA_SETTINGS_WIDGET_IDS, PHI_BUILDER_PAGE_META_LAYOUT_IDS, PHI_BUILDER_PAGE_META_OVERLAY_IDS, PHI_BUILDER_PAGE_META_WIDGET_IDS, PHI_BUILDER_REVISIONS_TABLE_WIDGET_ID, PHI_BUILDER_MODULES_TABLE_WIDGET_ID, PHI_BUILDER_MODULE_DETAIL_OVERLAY_IDS, PHI_BUILDER_MODULE_DETAIL_LAYOUT_IDS, PHI_BUILDER_MODULE_DETAIL_WIDGET_IDS, PHI_BUILDER_PUBLIC_ROUTES_OVERLAY_IDS, PHI_BUILDER_PUBLIC_ROUTES_LAYOUT_IDS, PHI_BUILDER_PUBLIC_ROUTES_WIDGET_IDS, PHI_BUILDER_SHELLS_WIDGET_IDS, PHI_BUILDER_MODULE_USAGE_OVERLAY_IDS, PHI_BUILDER_MODULE_USAGE_LAYOUT_IDS, PHI_BUILDER_MODULE_USAGE_WIDGET_IDS, } from "../../../helpers/cms-page-addresses";
|
|
35
|
-
import { PHI_BUILDER_PAGE_META_FORM_ID } from "../../../plugins/runtime-modules/builder/page-meta-form";
|
|
36
|
-
import { getPhiBuilderNavigationPageLabels } from "./builder-navigation-label-set";
|
|
37
|
-
import { getPhiMediaWidgetLabels } from "../../media/label-sets/media";
|
|
38
|
-
import { PHI_ASSET_INSPECTOR_LAYOUT_IDS, PHI_ASSET_INSPECTOR_OVERLAY_IDS, PHI_ASSET_INSPECTOR_WIDGET_IDS, PHI_ASSET_MEDIA_PAGE_WIDGET_IDS, } from "../../media/asset-inspector-addresses";
|
|
39
|
-
import { PHI_ASSET_FOLDER_FORM_ID, PHI_ASSET_METADATA_FORM_ID } from "../../media/asset-metadata-form";
|
|
40
|
-
import { createPhiAssetControllerAddress } from "../../media/asset-controller-address";
|
|
41
|
-
import { createPhiRuntimeFormControllerAddress } from "../../forms/runtime-form-controller-address";
|
|
42
|
-
import { readPhiServerApiCredentials } from "../../../helpers/phis-server-credentials";
|
|
43
|
-
const SYNTHETIC_DEV_REGION_IDS = {
|
|
44
|
-
regionHeaderTop: -509,
|
|
45
|
-
regionHeaderMain: -510,
|
|
46
|
-
regionHeaderBottom: -511,
|
|
47
|
-
regionSiderLeft: -512,
|
|
48
|
-
regionContent: -513,
|
|
49
|
-
regionFooterMain: -514,
|
|
50
|
-
};
|
|
51
|
-
const PHI_BUILDER_LAYOUT_NODE_KEYS = [
|
|
52
|
-
"layoutHeaderTop",
|
|
53
|
-
"layoutHeaderMain",
|
|
54
|
-
"layoutHeaderBottom",
|
|
55
|
-
"layoutHeaderTopActions",
|
|
56
|
-
"layoutHeaderMainRightActions",
|
|
57
|
-
"layoutSiderLeft",
|
|
58
|
-
"layoutContent",
|
|
59
|
-
"layoutFooterMain",
|
|
60
|
-
"layoutBrandControlsHeader",
|
|
61
|
-
"layoutBrandStack",
|
|
62
|
-
"layoutBrandCardsRow",
|
|
63
|
-
"layoutBrandStylePanel",
|
|
64
|
-
"layoutBrandBackgroundPanel",
|
|
65
|
-
"layoutBrandIdentityPanel",
|
|
66
|
-
"layoutWorkspaceHeader",
|
|
67
|
-
];
|
|
68
|
-
const SYNTHETIC_DEV_LAYOUT_IDS = createPhiPresetCmsInstanceIdMap({
|
|
69
|
-
domain: "area",
|
|
70
|
-
ownerModuleId: PHI_BUILDER_RUNTIME_MODULE_ID,
|
|
71
|
-
presetKey: "builder-area-preset",
|
|
72
|
-
}, PHI_BUILDER_LAYOUT_NODE_KEYS);
|
|
73
|
-
const PHI_BUILDER_WIDGET_NODE_KEYS = [
|
|
74
|
-
"widgetToolbar",
|
|
75
|
-
"widgetDraftStatus",
|
|
76
|
-
"widgetStructureSiderFullHeightSwitch",
|
|
77
|
-
"widgetSidebarNav",
|
|
78
|
-
"widgetCanvas",
|
|
79
|
-
"widgetNavigationItems",
|
|
80
|
-
"widgetNavigationSource",
|
|
81
|
-
"widgetFooterMainText",
|
|
82
|
-
"widgetBuilderAreaSelector",
|
|
83
|
-
"widgetAreaRootRoute",
|
|
84
|
-
"widgetBuilderModeSwitch",
|
|
85
|
-
"widgetHeaderMainDebugSwitch",
|
|
86
|
-
"widgetHeaderTopThemeModeSwitch",
|
|
87
|
-
"widgetHeaderTopAreaMenu",
|
|
88
|
-
"widgetHeaderTopAccount",
|
|
89
|
-
"widgetBuilderPageTitle",
|
|
90
|
-
"widgetMediaQuery",
|
|
91
|
-
"widgetMediaRefresh",
|
|
92
|
-
"widgetPagesHeaderTitle",
|
|
93
|
-
"widgetPagesMetaToolbar",
|
|
94
|
-
"widgetPagesHeaderSelector",
|
|
95
|
-
"widgetRevisionsTable",
|
|
96
|
-
"widgetBrandContextSelect",
|
|
97
|
-
"widgetBrandPreviewModeSwitch",
|
|
98
|
-
"widgetBrandThemeControls",
|
|
99
|
-
"widgetBrandThemePreview",
|
|
100
|
-
"widgetThemeStackSegmented",
|
|
101
|
-
"widgetBrandStyleControls",
|
|
102
|
-
"widgetBrandStylePreview",
|
|
103
|
-
"widgetBrandBackgroundControls",
|
|
104
|
-
"widgetBrandBackgroundPreview",
|
|
105
|
-
"widgetBrandIdentityControls",
|
|
106
|
-
"widgetBrandIdentityPreview",
|
|
107
|
-
];
|
|
108
|
-
const SYNTHETIC_DEV_WIDGET_IDS = createPhiPresetCmsInstanceIdMap({
|
|
109
|
-
domain: "area",
|
|
110
|
-
ownerModuleId: PHI_BUILDER_RUNTIME_MODULE_ID,
|
|
111
|
-
presetKey: "builder-area-preset",
|
|
112
|
-
}, PHI_BUILDER_WIDGET_NODE_KEYS);
|
|
113
|
-
const PHI_BUILDER_THEME_STACK_SIGNAL_KEY = "builder-theme-stack";
|
|
114
|
-
function resolveBuilderPageTitle(labels, pageKey, fallbackTitle) {
|
|
115
|
-
if (pageKey in labels.pageTitles) {
|
|
116
|
-
return labels.pageTitles[pageKey];
|
|
117
|
-
}
|
|
118
|
-
return fallbackTitle;
|
|
119
|
-
}
|
|
120
|
-
function resolveBuilderPageTitleSource(pageKey) {
|
|
121
|
-
if (pageKey in PHI_BUILDER_CHROME_WIDGET_DEFAULT_LABELS.pageTitles) {
|
|
122
|
-
return PHI_BUILDER_CHROME_WIDGET_DEFAULT_LABELS.pageTitles[pageKey];
|
|
123
|
-
}
|
|
124
|
-
return pageKey
|
|
125
|
-
.split(/[-_]+/)
|
|
126
|
-
.filter(Boolean)
|
|
127
|
-
.map((part) => `${part.charAt(0).toUpperCase()}${part.slice(1)}`)
|
|
128
|
-
.join(" ") || pageKey;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* The Builder's command toolbar.
|
|
132
|
-
*
|
|
133
|
-
* `restorePreset` is offered only where there is an Area shell to restore, which is the Shells
|
|
134
|
-
* workspace: it deletes the Site's own shell rather than a draft of it, and a command that destructive
|
|
135
|
-
* has no business sitting on a Page or a Theme where it would mean nothing.
|
|
136
|
-
*/
|
|
137
|
-
function buildBuilderCommandToolbarConfig(receiver = createPhiBuilderControllerAddress(), options) {
|
|
138
|
-
return {
|
|
139
|
-
key: "builder-command-toolbar",
|
|
140
|
-
signalRoutes: {
|
|
141
|
-
emits: [
|
|
142
|
-
{
|
|
143
|
-
routeKey: "builder-toolbar-command",
|
|
144
|
-
capabilityId: "command",
|
|
145
|
-
scope: "area",
|
|
146
|
-
channel: "command",
|
|
147
|
-
action: "activate",
|
|
148
|
-
valueType: "string",
|
|
149
|
-
receiver,
|
|
150
|
-
},
|
|
151
|
-
],
|
|
152
|
-
listens: [
|
|
153
|
-
{
|
|
154
|
-
routeKey: "builder-toolbar-undo-enabled",
|
|
155
|
-
capabilityId: "enabled",
|
|
156
|
-
scope: "area",
|
|
157
|
-
channel: "enabled",
|
|
158
|
-
action: "change",
|
|
159
|
-
valueType: "boolean",
|
|
160
|
-
receiver: createPhiSignalSubcontrolAddress("cms", SYNTHETIC_DEV_WIDGET_IDS.widgetToolbar, "undo"),
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
routeKey: "builder-toolbar-redo-enabled",
|
|
164
|
-
capabilityId: "enabled",
|
|
165
|
-
scope: "area",
|
|
166
|
-
channel: "enabled",
|
|
167
|
-
action: "change",
|
|
168
|
-
valueType: "boolean",
|
|
169
|
-
receiver: createPhiSignalSubcontrolAddress("cms", SYNTHETIC_DEV_WIDGET_IDS.widgetToolbar, "redo"),
|
|
170
|
-
},
|
|
171
|
-
],
|
|
172
|
-
},
|
|
173
|
-
compact: true,
|
|
174
|
-
wrap: false,
|
|
175
|
-
showLabels: false,
|
|
176
|
-
buttons: [
|
|
177
|
-
{ key: "save", emits: [{ capabilityId: "command", value: "save" }], actionKey: "save", buttonType: "default" },
|
|
178
|
-
{ key: "preview", emits: [{ capabilityId: "command", value: "preview" }], actionKey: "livePreview" },
|
|
179
|
-
{ key: "publish", emits: [{ capabilityId: "command", value: "publish" }], actionKey: "publish", buttonType: "default" },
|
|
180
|
-
{ key: "undo", emits: [{ capabilityId: "command", value: "undo" }], actionKey: "undo" },
|
|
181
|
-
{ key: "redo", emits: [{ capabilityId: "command", value: "redo" }], actionKey: "redo" },
|
|
182
|
-
{ key: "reset", emits: [{ capabilityId: "command", value: "reset" }], actionKey: "reset" },
|
|
183
|
-
...(options?.restorePresetLabel
|
|
184
|
-
? [{
|
|
185
|
-
key: "restorePreset",
|
|
186
|
-
emits: [{ capabilityId: "command", value: "restorePreset" }],
|
|
187
|
-
actionKey: "restore",
|
|
188
|
-
label: options.restorePresetLabel,
|
|
189
|
-
tooltip: options.restorePresetLabel,
|
|
190
|
-
danger: true,
|
|
191
|
-
}]
|
|
192
|
-
: []),
|
|
193
|
-
],
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
function remapBuilderPresetTreeInstanceIds(tree, ownerModuleId, presetKey) {
|
|
197
|
-
const nextLayoutIds = createPhiPresetCmsInstanceIdMap({
|
|
198
|
-
domain: "area",
|
|
199
|
-
ownerModuleId,
|
|
200
|
-
presetKey,
|
|
201
|
-
}, PHI_BUILDER_LAYOUT_NODE_KEYS);
|
|
202
|
-
const nextWidgetIds = createPhiPresetCmsInstanceIdMap({
|
|
203
|
-
domain: "area",
|
|
204
|
-
ownerModuleId,
|
|
205
|
-
presetKey,
|
|
206
|
-
}, PHI_BUILDER_WIDGET_NODE_KEYS);
|
|
207
|
-
const instanceIdRemaps = new Map();
|
|
208
|
-
for (const key of PHI_BUILDER_LAYOUT_NODE_KEYS) {
|
|
209
|
-
instanceIdRemaps.set(SYNTHETIC_DEV_LAYOUT_IDS[key], nextLayoutIds[key]);
|
|
210
|
-
}
|
|
211
|
-
for (const key of PHI_BUILDER_WIDGET_NODE_KEYS) {
|
|
212
|
-
instanceIdRemaps.set(SYNTHETIC_DEV_WIDGET_IDS[key], nextWidgetIds[key]);
|
|
213
|
-
}
|
|
214
|
-
const signalRemaps = [...instanceIdRemaps].map(([from, to]) => ({
|
|
215
|
-
from: createPhiSignalAddress("cms", from),
|
|
216
|
-
to: createPhiSignalAddress("cms", to),
|
|
217
|
-
}));
|
|
218
|
-
const remapInstanceId = (value) => value == null ? null : (instanceIdRemaps.get(value) ?? value);
|
|
219
|
-
return {
|
|
220
|
-
...tree,
|
|
221
|
-
page: {
|
|
222
|
-
...tree.page,
|
|
223
|
-
heroRootLayoutNodeId: remapInstanceId(tree.page.heroRootLayoutNodeId),
|
|
224
|
-
headerBottomRootLayoutNodeId: remapInstanceId(tree.page.headerBottomRootLayoutNodeId),
|
|
225
|
-
siderRightRootLayoutNodeId: remapInstanceId(tree.page.siderRightRootLayoutNodeId),
|
|
226
|
-
footerTopRootLayoutNodeId: remapInstanceId(tree.page.footerTopRootLayoutNodeId),
|
|
227
|
-
drawerRightRootLayoutNodeId: remapInstanceId(tree.page.drawerRightRootLayoutNodeId),
|
|
228
|
-
contentRootLayoutNodeId: remapInstanceId(tree.page.contentRootLayoutNodeId),
|
|
229
|
-
},
|
|
230
|
-
regions: tree.regions.map((region) => ({
|
|
231
|
-
...region,
|
|
232
|
-
rootLayoutNodeId: remapInstanceId(region.rootLayoutNodeId),
|
|
233
|
-
})),
|
|
234
|
-
overlays: tree.overlays.map((overlay) => ({
|
|
235
|
-
...overlay,
|
|
236
|
-
id: remapInstanceId(overlay.id),
|
|
237
|
-
headerLayoutNodeId: remapInstanceId(overlay.headerLayoutNodeId),
|
|
238
|
-
bodyLayoutNodeId: remapInstanceId(overlay.bodyLayoutNodeId),
|
|
239
|
-
...(overlay.footerPresentation === "none"
|
|
240
|
-
? { footerPresentation: "none", footerLayoutNodeId: null }
|
|
241
|
-
: {
|
|
242
|
-
footerPresentation: overlay.footerPresentation,
|
|
243
|
-
footerLayoutNodeId: remapInstanceId(overlay.footerLayoutNodeId),
|
|
244
|
-
}),
|
|
245
|
-
config: remapPhiSignalRoutesInConfig(overlay.config, signalRemaps),
|
|
246
|
-
})),
|
|
247
|
-
layoutNodes: tree.layoutNodes.map((node) => ({
|
|
248
|
-
...node,
|
|
249
|
-
id: remapInstanceId(node.id),
|
|
250
|
-
parentLayoutNodeId: remapInstanceId(node.parentLayoutNodeId),
|
|
251
|
-
config: remapPhiSignalRoutesInConfig(node.config, signalRemaps),
|
|
252
|
-
})),
|
|
253
|
-
contentWidgets: tree.contentWidgets.map((node) => ({
|
|
254
|
-
...node,
|
|
255
|
-
id: remapInstanceId(node.id),
|
|
256
|
-
parentLayoutNodeId: remapInstanceId(node.parentLayoutNodeId),
|
|
257
|
-
config: remapPhiSignalRoutesInConfig(node.config, signalRemaps),
|
|
258
|
-
})),
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
export async function buildPhiDefaultBuilderAreaPresetTree({ page, runtime, }) {
|
|
262
|
-
const nodes = createPhiCmsPresetNodes(page);
|
|
263
|
-
const labelOptions = {
|
|
264
|
-
apiBaseUrl: readPhiServerApiCredentials().apiBaseUrl,
|
|
265
|
-
internalToken: readPhiServerApiCredentials().internalToken,
|
|
266
|
-
locale: runtime.locale.current,
|
|
267
|
-
};
|
|
268
|
-
const labels = await getPhiBuilderChromeWidgetLabels(labelOptions);
|
|
269
|
-
const builderPageTitleSource = resolveBuilderPageTitleSource("dashboard");
|
|
270
|
-
const builderPageTitle = resolveBuilderPageTitle(labels, "dashboard", builderPageTitleSource);
|
|
271
|
-
const headerTopHeight = resolvePhiShellHeaderHeight(runtime.site.theme?.shell, "top");
|
|
272
|
-
const headerMainHeight = resolvePhiShellHeaderHeight(runtime.site.theme?.shell, "main");
|
|
273
|
-
const shellSiderLeftWidth = resolvePhiShellMetric(runtime.site.theme?.shell, "width", {
|
|
274
|
-
family: "sider",
|
|
275
|
-
region: "left",
|
|
276
|
-
});
|
|
277
|
-
const footerMainText = `© ${new Date().getUTCFullYear()} ${resolvePhiBrandWordmarkText(runtime)}. All rights reserved.`;
|
|
278
|
-
return {
|
|
279
|
-
page: {
|
|
280
|
-
...page,
|
|
281
|
-
status: PhiCmsStatus.Published,
|
|
282
|
-
},
|
|
283
|
-
pageMeta: {
|
|
284
|
-
title: {
|
|
285
|
-
msgId: 0,
|
|
286
|
-
source: builderPageTitleSource,
|
|
287
|
-
value: builderPageTitle,
|
|
288
|
-
},
|
|
289
|
-
description: null,
|
|
290
|
-
},
|
|
291
|
-
runtimeModuleIds: createPhiDefaultAreaRuntimeModuleIds("builder"),
|
|
292
|
-
overlays: [],
|
|
293
|
-
regions: [
|
|
294
|
-
{
|
|
295
|
-
id: SYNTHETIC_DEV_REGION_IDS.regionHeaderTop,
|
|
296
|
-
pageId: page.id,
|
|
297
|
-
areaPresetId: null,
|
|
298
|
-
regionType: PhiCmsRegionType.HeaderTop,
|
|
299
|
-
rootLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderTop,
|
|
300
|
-
status: PhiCmsStatus.Published,
|
|
301
|
-
flags: 0,
|
|
302
|
-
visibilityMask: page.visibilityMask,
|
|
303
|
-
sortOrder: -10,
|
|
304
|
-
config: {
|
|
305
|
-
sticky: false,
|
|
306
|
-
/*
|
|
307
|
-
* No Effect, Shadow, border, or ground of its own (SHELL.md, Shell Chrome Overlay).
|
|
308
|
-
*
|
|
309
|
-
* Any of them is authoring, and authoring is exactly what takes a Region out of the Shell
|
|
310
|
-
* Chrome Overlay. A `glass` in this preset made the Builder's own Headers frost while the
|
|
311
|
-
* Sider and Footer beside them took the Site's overlay, which is how one frame came to show
|
|
312
|
-
* two unrelated colour families. What the frame looks like belongs to the Theme.
|
|
313
|
-
*/
|
|
314
|
-
size: { height: `${headerTopHeight}px` },
|
|
315
|
-
offsetTop: 0,
|
|
316
|
-
},
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
id: SYNTHETIC_DEV_REGION_IDS.regionHeaderMain,
|
|
320
|
-
pageId: page.id,
|
|
321
|
-
areaPresetId: null,
|
|
322
|
-
regionType: PhiCmsRegionType.HeaderMain,
|
|
323
|
-
rootLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderMain,
|
|
324
|
-
status: PhiCmsStatus.Published,
|
|
325
|
-
flags: 0,
|
|
326
|
-
visibilityMask: page.visibilityMask,
|
|
327
|
-
sortOrder: 0,
|
|
328
|
-
config: {
|
|
329
|
-
sticky: true,
|
|
330
|
-
// No chrome of its own, for the reason given on `header_top` above.
|
|
331
|
-
size: { height: `${headerMainHeight}px` },
|
|
332
|
-
offsetTop: 0,
|
|
333
|
-
},
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
id: SYNTHETIC_DEV_REGION_IDS.regionSiderLeft,
|
|
337
|
-
pageId: page.id,
|
|
338
|
-
areaPresetId: null,
|
|
339
|
-
regionType: PhiCmsRegionType.SiderLeft,
|
|
340
|
-
rootLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutSiderLeft,
|
|
341
|
-
status: PhiCmsStatus.Published,
|
|
342
|
-
flags: 0,
|
|
343
|
-
visibilityMask: page.visibilityMask,
|
|
344
|
-
sortOrder: 10,
|
|
345
|
-
config: {
|
|
346
|
-
sticky: true,
|
|
347
|
-
fullHeight: true,
|
|
348
|
-
collapsible: true,
|
|
349
|
-
/*
|
|
350
|
-
* No border either, for the reason the Effect went: it is the preset authoring the frame's
|
|
351
|
-
* appearance. It drew a hard light line down the seam between the Sider and the Header
|
|
352
|
-
* column -- measured at 240,240,240 against glass reading 94,93,96 and 96,95,100 on either
|
|
353
|
-
* side of it -- so the one edge inside a single continuous pane was also the most visible
|
|
354
|
-
* thing about it.
|
|
355
|
-
*/
|
|
356
|
-
/*
|
|
357
|
-
* No ground of its own, like the Headers above it. A Region paints only what somebody
|
|
358
|
-
* authored, and authoring the container token here covered the Theme Root Background on the
|
|
359
|
-
* one edge of the Builder that is tall enough to show it -- so the Sider stood as an opaque
|
|
360
|
-
* column beside Headers the Background ran through, which is not a chrome at all.
|
|
361
|
-
*/
|
|
362
|
-
...(typeof shellSiderLeftWidth === "number"
|
|
363
|
-
? { size: { width: `${shellSiderLeftWidth}px` } }
|
|
364
|
-
: { size: { width: `${PHI_LAYOUT.sidebarWidth}px` } }),
|
|
365
|
-
offsetTop: 0,
|
|
366
|
-
},
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
id: SYNTHETIC_DEV_REGION_IDS.regionFooterMain,
|
|
370
|
-
pageId: page.id,
|
|
371
|
-
areaPresetId: null,
|
|
372
|
-
regionType: PhiCmsRegionType.Footer,
|
|
373
|
-
rootLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutFooterMain,
|
|
374
|
-
status: PhiCmsStatus.Published,
|
|
375
|
-
flags: 0,
|
|
376
|
-
visibilityMask: page.visibilityMask,
|
|
377
|
-
sortOrder: 30,
|
|
378
|
-
// No chrome of its own, for the reason given on `header_top` above.
|
|
379
|
-
config: {},
|
|
380
|
-
},
|
|
381
|
-
],
|
|
382
|
-
layoutNodes: [
|
|
383
|
-
nodes.layout({
|
|
384
|
-
creationPreset: { layoutKind: "threecol", preset: "panel" },
|
|
385
|
-
typeKey: "three-column",
|
|
386
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderTop,
|
|
387
|
-
parentLayoutNodeId: null,
|
|
388
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
389
|
-
sortOrder: 0,
|
|
390
|
-
label: "dev header top three column",
|
|
391
|
-
config: {
|
|
392
|
-
balancedSides: true,
|
|
393
|
-
contentAlign: "center",
|
|
394
|
-
style: { height: "100%" },
|
|
395
|
-
},
|
|
396
|
-
}),
|
|
397
|
-
nodes.layout({
|
|
398
|
-
creationPreset: { layoutKind: "threecol", preset: "panel" },
|
|
399
|
-
typeKey: "three-column",
|
|
400
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderMain,
|
|
401
|
-
parentLayoutNodeId: null,
|
|
402
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
403
|
-
sortOrder: 0,
|
|
404
|
-
label: "dev header main three column",
|
|
405
|
-
config: {
|
|
406
|
-
balancedSides: true,
|
|
407
|
-
contentAlign: "center",
|
|
408
|
-
style: { height: "100%" },
|
|
409
|
-
},
|
|
410
|
-
}),
|
|
411
|
-
nodes.layout({
|
|
412
|
-
typeKey: "flex",
|
|
413
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderTopActions,
|
|
414
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderTop,
|
|
415
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Right,
|
|
416
|
-
sortOrder: 0,
|
|
417
|
-
label: "dev header top actions",
|
|
418
|
-
config: {
|
|
419
|
-
anchor: { horizontal: "right", vertical: "middle" },
|
|
420
|
-
gap: 12,
|
|
421
|
-
verticalSeparators: false,
|
|
422
|
-
separatorBeforeFirst: true,
|
|
423
|
-
separatorSpan: "50%",
|
|
424
|
-
wrap: false,
|
|
425
|
-
height: "100%",
|
|
426
|
-
},
|
|
427
|
-
}),
|
|
428
|
-
nodes.layout({
|
|
429
|
-
creationPreset: { layoutKind: "verticalflex", preset: "panel" },
|
|
430
|
-
typeKey: "flex-vertical",
|
|
431
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutSiderLeft,
|
|
432
|
-
parentLayoutNodeId: null,
|
|
433
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
434
|
-
sortOrder: 0,
|
|
435
|
-
label: "dev sider left flex",
|
|
436
|
-
config: {
|
|
437
|
-
anchor: { horizontal: "center", vertical: "top" },
|
|
438
|
-
gap: 0,
|
|
439
|
-
maxWidth: "100%",
|
|
440
|
-
margin: 0,
|
|
441
|
-
padding: PHI_SPACE.xs,
|
|
442
|
-
paddingTop: 0,
|
|
443
|
-
},
|
|
444
|
-
}),
|
|
445
|
-
nodes.layout({
|
|
446
|
-
typeKey: "content",
|
|
447
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutFooterMain,
|
|
448
|
-
parentLayoutNodeId: null,
|
|
449
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
450
|
-
sortOrder: 0,
|
|
451
|
-
label: "dev footer main",
|
|
452
|
-
config: { maxWidth: "100%", margin: 0, padding: 0 },
|
|
453
|
-
}),
|
|
454
|
-
nodes.layout({
|
|
455
|
-
creationPreset: { layoutKind: "flex", preset: "panel" },
|
|
456
|
-
typeKey: "flex",
|
|
457
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderMainRightActions,
|
|
458
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderMain,
|
|
459
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Right,
|
|
460
|
-
sortOrder: 0,
|
|
461
|
-
label: "dev header main right actions",
|
|
462
|
-
config: {
|
|
463
|
-
gap: PHI_SPACE.sm,
|
|
464
|
-
anchor: { horizontal: "right", vertical: "middle" },
|
|
465
|
-
wrap: false,
|
|
466
|
-
padding: 0,
|
|
467
|
-
paddingLeft: 0,
|
|
468
|
-
paddingRight: 0,
|
|
469
|
-
background: "transparent",
|
|
470
|
-
border: "none",
|
|
471
|
-
borderRadius: 0,
|
|
472
|
-
},
|
|
473
|
-
}),
|
|
474
|
-
],
|
|
475
|
-
contentWidgets: [
|
|
476
|
-
nodes.widget({
|
|
477
|
-
typeKey: "select-box",
|
|
478
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetBuilderAreaSelector,
|
|
479
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderMain,
|
|
480
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Left,
|
|
481
|
-
sortOrder: 0,
|
|
482
|
-
label: "dev builder area selector",
|
|
483
|
-
config: {
|
|
484
|
-
key: "builder-area-selector",
|
|
485
|
-
value: "public",
|
|
486
|
-
/*
|
|
487
|
-
* Disabled is the selector's resting state: only Builder pages that edit one Area at a
|
|
488
|
-
* time arm it, via the workspace controller's "enabled" signal (isPhiAreaScopedBuilderPage
|
|
489
|
-
* holds the opt-in list). The static default also renders on pages nobody armed, and on
|
|
490
|
-
* pages that opted in the SSR baseline matches because the controller enables it on mount.
|
|
491
|
-
*/
|
|
492
|
-
disabled: !isPhiAreaScopedBuilderPage(readPhiDeveloperBuilderWorkspaceKey(page.path) ?? "root"),
|
|
493
|
-
options: [
|
|
494
|
-
{ value: "public", label: "Public" },
|
|
495
|
-
{ value: "app", label: "App" },
|
|
496
|
-
{ value: "admin", label: "Admin" },
|
|
497
|
-
{ value: "builder", label: "Builder" },
|
|
498
|
-
{ value: "editor", label: "Editor" },
|
|
499
|
-
{ value: "accounting", label: "Accounting" },
|
|
500
|
-
],
|
|
501
|
-
signalRoutes: {
|
|
502
|
-
emits: [{ routeKey: "builder-area-change", capabilityId: "change", scope: "area", channel: "area", action: "change", valueType: "string", receiver: createPhiBuilderControllerAddress() }],
|
|
503
|
-
listens: [
|
|
504
|
-
{ routeKey: "builder-area-selection", capabilityId: "change", scope: "area", channel: "areaSelection", action: "change", valueType: "string", receiver: createPhiSignalAddress("cms", SYNTHETIC_DEV_WIDGET_IDS.widgetBuilderAreaSelector) },
|
|
505
|
-
{ routeKey: "builder-area-selector-enabled", capabilityId: "enabled", scope: "area", channel: "enabled", action: "change", valueType: "boolean", receiver: createPhiSignalAddress("cms", SYNTHETIC_DEV_WIDGET_IDS.widgetBuilderAreaSelector) },
|
|
506
|
-
],
|
|
507
|
-
},
|
|
508
|
-
},
|
|
509
|
-
}),
|
|
510
|
-
nodes.widget({
|
|
511
|
-
typeKey: "page-title",
|
|
512
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetBuilderPageTitle,
|
|
513
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderMain,
|
|
514
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Middle,
|
|
515
|
-
sortOrder: 0,
|
|
516
|
-
label: "Page title",
|
|
517
|
-
config: {},
|
|
518
|
-
}),
|
|
519
|
-
nodes.widget({
|
|
520
|
-
typeKey: "account",
|
|
521
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetHeaderTopAccount,
|
|
522
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderTopActions,
|
|
523
|
-
slotIndex: 1,
|
|
524
|
-
sortOrder: 10,
|
|
525
|
-
label: "Account",
|
|
526
|
-
config: {},
|
|
527
|
-
}),
|
|
528
|
-
nodes.widget({
|
|
529
|
-
typeKey: "area-menu",
|
|
530
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetHeaderTopAreaMenu,
|
|
531
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderTopActions,
|
|
532
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
533
|
-
sortOrder: 0,
|
|
534
|
-
label: "Area menu",
|
|
535
|
-
config: {},
|
|
536
|
-
}),
|
|
537
|
-
nodes.widget({
|
|
538
|
-
typeKey: "switch",
|
|
539
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetHeaderMainDebugSwitch,
|
|
540
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderMainRightActions,
|
|
541
|
-
slotIndex: 0,
|
|
542
|
-
label: "Debug switch",
|
|
543
|
-
config: {
|
|
544
|
-
label: labels.themeSwitch.debug,
|
|
545
|
-
defaultChecked: false,
|
|
546
|
-
key: "debugScaffold",
|
|
547
|
-
/*
|
|
548
|
-
* Disabled is the switch's resting state, the same way the Area selector rests: only the
|
|
549
|
-
* pages that draw a canvas arm it, via the workspace controller's "enabled" signal
|
|
550
|
-
* (isPhiDebugScaffoldBuilderPage holds the opt-in list). A page that forgets to opt in
|
|
551
|
-
* shows a switch that cannot promise something nothing renders.
|
|
552
|
-
*/
|
|
553
|
-
disabled: !isPhiDebugScaffoldBuilderPage(readPhiDeveloperBuilderWorkspaceKey(page.path) ?? "root"),
|
|
554
|
-
signalRoutes: {
|
|
555
|
-
emits: [
|
|
556
|
-
{
|
|
557
|
-
routeKey: "header-debug-scaffold-change",
|
|
558
|
-
capabilityId: "change",
|
|
559
|
-
scope: "area",
|
|
560
|
-
channel: "debugScaffold",
|
|
561
|
-
action: "change",
|
|
562
|
-
valueType: "boolean",
|
|
563
|
-
receiver: "broadcast",
|
|
564
|
-
},
|
|
565
|
-
],
|
|
566
|
-
listens: [
|
|
567
|
-
{
|
|
568
|
-
routeKey: "builder-debug-switch-enabled",
|
|
569
|
-
capabilityId: "enabled",
|
|
570
|
-
scope: "area",
|
|
571
|
-
channel: "enabled",
|
|
572
|
-
action: "change",
|
|
573
|
-
valueType: "boolean",
|
|
574
|
-
receiver: createPhiSignalAddress("cms", SYNTHETIC_DEV_WIDGET_IDS.widgetHeaderMainDebugSwitch),
|
|
575
|
-
},
|
|
576
|
-
],
|
|
577
|
-
},
|
|
578
|
-
},
|
|
579
|
-
}),
|
|
580
|
-
nodes.widget({
|
|
581
|
-
typeKey: "switch",
|
|
582
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetHeaderTopThemeModeSwitch,
|
|
583
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderTop,
|
|
584
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Left,
|
|
585
|
-
sortOrder: 1,
|
|
586
|
-
label: "Theme mode switch",
|
|
587
|
-
config: {
|
|
588
|
-
defaultChecked: runtime.viewer.themeMode === "dark",
|
|
589
|
-
checkedChildren: labels.themeSwitch.dark,
|
|
590
|
-
unCheckedChildren: labels.themeSwitch.light,
|
|
591
|
-
key: "themeMode",
|
|
592
|
-
signalRoutes: {
|
|
593
|
-
emits: [
|
|
594
|
-
{
|
|
595
|
-
routeKey: "builder-header-theme-mode-change",
|
|
596
|
-
capabilityId: "change",
|
|
597
|
-
scope: "site",
|
|
598
|
-
channel: "themeMode",
|
|
599
|
-
action: "change",
|
|
600
|
-
valueType: "boolean",
|
|
601
|
-
receiver: createPhiCoreRuntimeControllerAddress(),
|
|
602
|
-
},
|
|
603
|
-
],
|
|
604
|
-
},
|
|
605
|
-
},
|
|
606
|
-
}),
|
|
607
|
-
nodes.widget({
|
|
608
|
-
typeKey: "sidebar-navigation",
|
|
609
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetSidebarNav,
|
|
610
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutSiderLeft,
|
|
611
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
612
|
-
sortOrder: 0,
|
|
613
|
-
label: "Sidebar navigation",
|
|
614
|
-
config: {
|
|
615
|
-
side: "left",
|
|
616
|
-
width: 224,
|
|
617
|
-
navKey: "builder:sidebar",
|
|
618
|
-
},
|
|
619
|
-
}),
|
|
620
|
-
nodes.widget({
|
|
621
|
-
typeKey: "simple-text",
|
|
622
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetFooterMainText,
|
|
623
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutFooterMain,
|
|
624
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
625
|
-
sortOrder: 0,
|
|
626
|
-
label: "dev footer main text",
|
|
627
|
-
config: { text: footerMainText, type: "secondary" },
|
|
628
|
-
}),
|
|
629
|
-
],
|
|
630
|
-
};
|
|
631
|
-
}
|
|
632
|
-
async function buildPhiDefaultBuilderPagePresetTemplateTree({ page, runtime, registry, presetKey, }) {
|
|
633
|
-
const nodes = createPhiCmsPresetNodes(page);
|
|
634
|
-
const labels = await getPhiBuilderChromeWidgetLabels({
|
|
635
|
-
apiBaseUrl: readPhiServerApiCredentials().apiBaseUrl,
|
|
636
|
-
internalToken: readPhiServerApiCredentials().internalToken,
|
|
637
|
-
locale: runtime.locale.current,
|
|
638
|
-
});
|
|
639
|
-
/*
|
|
640
|
-
* Which workspace this is, asked of the preset rather than of the path.
|
|
641
|
-
*
|
|
642
|
-
* The path is not the Module's to know: outside Public every route answers under its package, and a
|
|
643
|
-
* Public path can be reassigned when a Module is enabled. The preset key is the identity that does not
|
|
644
|
-
* move -- the same pair the Page is addressed by.
|
|
645
|
-
*/
|
|
646
|
-
const isStructurePage = presetKey === "builder-shells-page";
|
|
647
|
-
const isPagesPage = presetKey === "builder-pages-page";
|
|
648
|
-
const isNavigationPage = presetKey === "builder-navigation-page";
|
|
649
|
-
const isRevisionsPage = presetKey === "builder-revisions-page";
|
|
650
|
-
const isModulesPage = presetKey === "builder-modules-page";
|
|
651
|
-
const isMediaPage = presetKey === "builder-media-page";
|
|
652
|
-
const isThemePage = presetKey === "builder-theme-page";
|
|
653
|
-
const revisionsLabels = isRevisionsPage ? await getPhiBuilderRevisionsWidgetLabels({
|
|
654
|
-
apiBaseUrl: readPhiServerApiCredentials().apiBaseUrl,
|
|
655
|
-
internalToken: readPhiServerApiCredentials().internalToken,
|
|
656
|
-
locale: runtime.locale.current,
|
|
657
|
-
}) : null;
|
|
658
|
-
const modulesLabels = isModulesPage ? await getPhiBuilderModulesPageLabels({
|
|
659
|
-
apiBaseUrl: readPhiServerApiCredentials().apiBaseUrl,
|
|
660
|
-
internalToken: readPhiServerApiCredentials().internalToken,
|
|
661
|
-
locale: runtime.locale.current,
|
|
662
|
-
}) : null;
|
|
663
|
-
const modulesDetailLabels = modulesLabels ? {
|
|
664
|
-
moduleId: modulesLabels.detail.moduleId,
|
|
665
|
-
title: modulesLabels.columns.title,
|
|
666
|
-
description: modulesLabels.columns.description,
|
|
667
|
-
category: modulesLabels.columns.category,
|
|
668
|
-
eligibleAreas: modulesLabels.columns.eligibleAreas,
|
|
669
|
-
baseModule: modulesLabels.detail.baseModule,
|
|
670
|
-
activeAreas: modulesLabels.detail.activeAreas,
|
|
671
|
-
yes: modulesLabels.detail.yes,
|
|
672
|
-
no: modulesLabels.detail.no,
|
|
673
|
-
} : null;
|
|
674
|
-
const navigationLabels = isNavigationPage ? await getPhiBuilderNavigationPageLabels({
|
|
675
|
-
apiBaseUrl: readPhiServerApiCredentials().apiBaseUrl,
|
|
676
|
-
internalToken: readPhiServerApiCredentials().internalToken,
|
|
677
|
-
locale: runtime.locale.current,
|
|
678
|
-
}) : null;
|
|
679
|
-
const mediaLabels = isMediaPage ? await getPhiMediaWidgetLabels({
|
|
680
|
-
apiBaseUrl: readPhiServerApiCredentials().apiBaseUrl,
|
|
681
|
-
internalToken: readPhiServerApiCredentials().internalToken,
|
|
682
|
-
locale: runtime.locale.current,
|
|
683
|
-
}) : null;
|
|
684
|
-
const builderCommandToolbarConfig = buildBuilderCommandToolbarConfig(isThemePage
|
|
685
|
-
? createPhiThemeControllerAddress()
|
|
686
|
-
: createPhiBuilderControllerAddress(), { restorePresetLabel: isStructurePage ? labels.toolbar.restorePreset : null });
|
|
687
|
-
/*
|
|
688
|
-
* The label key, read off the preset rather than off the path for the same reason. `builder-pages-page`
|
|
689
|
-
* is `pages`; a preset from another package that shipped no label falls through to its own words.
|
|
690
|
-
*/
|
|
691
|
-
const builderPageKey = presetKey.replace(/^builder-/, "").replace(/-page$/, "") || "dashboard";
|
|
692
|
-
const builderPageTitleSource = resolveBuilderPageTitleSource(builderPageKey);
|
|
693
|
-
const builderPageTitle = resolveBuilderPageTitle(labels, builderPageKey, builderPageTitleSource);
|
|
694
|
-
return {
|
|
695
|
-
page: {
|
|
696
|
-
...page,
|
|
697
|
-
status: PhiCmsStatus.Published,
|
|
698
|
-
},
|
|
699
|
-
pageMeta: {
|
|
700
|
-
title: {
|
|
701
|
-
msgId: 0,
|
|
702
|
-
source: builderPageTitleSource,
|
|
703
|
-
value: builderPageTitle,
|
|
704
|
-
},
|
|
705
|
-
description: null,
|
|
706
|
-
},
|
|
707
|
-
overlays: [
|
|
708
|
-
/*
|
|
709
|
-
* Everything the Area says about itself, in one place.
|
|
710
|
-
*
|
|
711
|
-
* A modal rather than a drawer because it is answered and left, and it holds no question of its
|
|
712
|
-
* own: the controller opens and closes it on the two commands, and every control inside writes
|
|
713
|
-
* into the structure draft as it is answered.
|
|
714
|
-
*/
|
|
715
|
-
...(isStructurePage ? [{
|
|
716
|
-
id: PHI_BUILDER_AREA_SETTINGS_OVERLAY_IDS.overlayAreaSettings,
|
|
717
|
-
overlayType: "modal",
|
|
718
|
-
headerLayoutNodeId: null,
|
|
719
|
-
bodyLayoutNodeId: PHI_BUILDER_AREA_SETTINGS_LAYOUT_IDS.areaSettingsBody,
|
|
720
|
-
footerPresentation: "actions",
|
|
721
|
-
footerLayoutNodeId: PHI_BUILDER_AREA_SETTINGS_LAYOUT_IDS.areaSettingsFooter,
|
|
722
|
-
status: PhiCmsStatus.Published,
|
|
723
|
-
flags: 0,
|
|
724
|
-
visibilityMask: page.visibilityMask,
|
|
725
|
-
sortOrder: 0,
|
|
726
|
-
label: "Builder area settings",
|
|
727
|
-
config: {
|
|
728
|
-
title: labels.areaSettings.title,
|
|
729
|
-
width: { compact: "calc(100vw - 32px)", medium: 560, wide: 640 },
|
|
730
|
-
/*
|
|
731
|
-
* Mounted with the Page rather than on first open, because the controls inside show state
|
|
732
|
-
* rather than ask for it.
|
|
733
|
-
*
|
|
734
|
-
* The controller states the Area's four answers when the dialog opens, and a signal is
|
|
735
|
-
* delivered once: whichever mount is standing at that moment gets it, and any later one
|
|
736
|
-
* shows its resting value as though the Area had said so. Under Strict Mode every lazy
|
|
737
|
-
* mount is immediately a remount, which is exactly the case that loses it.
|
|
738
|
-
*/
|
|
739
|
-
mountPolicy: "eager",
|
|
740
|
-
closeMode: "immediate",
|
|
741
|
-
signalRoutes: {
|
|
742
|
-
listens: [
|
|
743
|
-
{ routeKey: "builder-area-settings-open-dialog", capabilityId: "open", scope: "page", channel: "areaSettingsDialog", action: "activate", valueType: "none", receiver: createPhiSignalAddress("cms", PHI_BUILDER_AREA_SETTINGS_OVERLAY_IDS.overlayAreaSettings) },
|
|
744
|
-
{ routeKey: "builder-area-settings-close-dialog", capabilityId: "close", scope: "page", channel: "areaSettingsDialog", action: "close", valueType: "none", receiver: createPhiSignalAddress("cms", PHI_BUILDER_AREA_SETTINGS_OVERLAY_IDS.overlayAreaSettings) },
|
|
745
|
-
],
|
|
746
|
-
},
|
|
747
|
-
},
|
|
748
|
-
}] : []),
|
|
749
|
-
...(isPagesPage ? [{
|
|
750
|
-
id: PHI_BUILDER_PAGE_META_OVERLAY_IDS.editor,
|
|
751
|
-
overlayType: "modal",
|
|
752
|
-
headerLayoutNodeId: null,
|
|
753
|
-
bodyLayoutNodeId: PHI_BUILDER_PAGE_META_LAYOUT_IDS.body,
|
|
754
|
-
footerPresentation: "actions",
|
|
755
|
-
footerLayoutNodeId: PHI_BUILDER_PAGE_META_LAYOUT_IDS.footer,
|
|
756
|
-
status: PhiCmsStatus.Published,
|
|
757
|
-
flags: 0,
|
|
758
|
-
visibilityMask: page.visibilityMask,
|
|
759
|
-
sortOrder: 0,
|
|
760
|
-
label: "Builder page metadata",
|
|
761
|
-
config: {
|
|
762
|
-
title: labels.pages.pageMeta,
|
|
763
|
-
width: { compact: "calc(100vw - 32px)", medium: 560, wide: 640 },
|
|
764
|
-
mountPolicy: "lazy-keep",
|
|
765
|
-
closeMode: "immediate",
|
|
766
|
-
signalRoutes: {
|
|
767
|
-
emits: [{ routeKey: "builder-page-meta-visibility", capabilityId: "openChange", scope: "area", channel: "pageMetaVisibility", action: "change", valueType: "boolean", receiver: createPhiBuilderControllerAddress() }],
|
|
768
|
-
listens: [
|
|
769
|
-
{ routeKey: "builder-page-meta-open", capabilityId: "open", scope: "page", channel: "dialog", action: "activate", valueType: "none", receiver: createPhiSignalAddress("cms", PHI_BUILDER_PAGE_META_OVERLAY_IDS.editor) },
|
|
770
|
-
{ routeKey: "builder-page-meta-close", capabilityId: "close", scope: "page", channel: "dialog", action: "close", valueType: "none", receiver: createPhiSignalAddress("cms", PHI_BUILDER_PAGE_META_OVERLAY_IDS.editor) },
|
|
771
|
-
{ routeKey: "builder-page-meta-title", capabilityId: "title", scope: "page", channel: "title", action: "change", valueType: "string", receiver: createPhiSignalAddress("cms", PHI_BUILDER_PAGE_META_OVERLAY_IDS.editor) },
|
|
772
|
-
],
|
|
773
|
-
},
|
|
774
|
-
},
|
|
775
|
-
}] : []),
|
|
776
|
-
...(isModulesPage ? [{
|
|
777
|
-
id: PHI_BUILDER_MODULE_DETAIL_OVERLAY_IDS.overlayModuleDetail,
|
|
778
|
-
overlayType: "modal",
|
|
779
|
-
headerLayoutNodeId: null,
|
|
780
|
-
bodyLayoutNodeId: PHI_BUILDER_MODULE_DETAIL_LAYOUT_IDS.body,
|
|
781
|
-
footerPresentation: "none",
|
|
782
|
-
footerLayoutNodeId: null,
|
|
783
|
-
status: PhiCmsStatus.Published,
|
|
784
|
-
flags: 0,
|
|
785
|
-
visibilityMask: page.visibilityMask,
|
|
786
|
-
sortOrder: 0,
|
|
787
|
-
label: "Builder module detail",
|
|
788
|
-
config: {
|
|
789
|
-
title: modulesLabels?.detail.title ?? "Module details",
|
|
790
|
-
width: { compact: "calc(100vw - 32px)", medium: 560, wide: 640 },
|
|
791
|
-
mountPolicy: "lazy-keep",
|
|
792
|
-
closeMode: "immediate",
|
|
793
|
-
signalRoutes: {
|
|
794
|
-
listens: [
|
|
795
|
-
{ routeKey: "builder-module-detail-open", capabilityId: "open", scope: "page", channel: "dialog", action: "activate", valueType: "none", receiver: createPhiSignalAddress("cms", PHI_BUILDER_MODULE_DETAIL_OVERLAY_IDS.overlayModuleDetail) },
|
|
796
|
-
{ routeKey: "builder-module-detail-close", capabilityId: "close", scope: "page", channel: "dialog", action: "close", valueType: "none", receiver: createPhiSignalAddress("cms", PHI_BUILDER_MODULE_DETAIL_OVERLAY_IDS.overlayModuleDetail) },
|
|
797
|
-
],
|
|
798
|
-
},
|
|
799
|
-
},
|
|
800
|
-
}] : []),
|
|
801
|
-
...(isModulesPage ? [{
|
|
802
|
-
id: PHI_BUILDER_MODULE_USAGE_OVERLAY_IDS.overlayModuleUsage,
|
|
803
|
-
overlayType: "modal",
|
|
804
|
-
headerLayoutNodeId: null,
|
|
805
|
-
bodyLayoutNodeId: PHI_BUILDER_MODULE_USAGE_LAYOUT_IDS.moduleUsageBody,
|
|
806
|
-
footerPresentation: "actions",
|
|
807
|
-
footerLayoutNodeId: PHI_BUILDER_MODULE_USAGE_LAYOUT_IDS.moduleUsageFooter,
|
|
808
|
-
status: PhiCmsStatus.Published,
|
|
809
|
-
flags: 0,
|
|
810
|
-
visibilityMask: page.visibilityMask,
|
|
811
|
-
sortOrder: 0,
|
|
812
|
-
label: "Builder module usage",
|
|
813
|
-
config: {
|
|
814
|
-
title: modulesLabels?.usage.title ?? "This Module draws on pages",
|
|
815
|
-
width: { compact: "calc(100vw - 32px)", medium: 600, wide: 680 },
|
|
816
|
-
mountPolicy: "lazy-keep",
|
|
817
|
-
closeMode: "immediate",
|
|
818
|
-
signalRoutes: {
|
|
819
|
-
listens: [
|
|
820
|
-
{ routeKey: "builder-module-usage-open", capabilityId: "open", scope: "page", channel: "moduleUsageDialog", action: "activate", valueType: "none", receiver: createPhiSignalAddress("cms", PHI_BUILDER_MODULE_USAGE_OVERLAY_IDS.overlayModuleUsage) },
|
|
821
|
-
{ routeKey: "builder-module-usage-close", capabilityId: "close", scope: "page", channel: "moduleUsageDialog", action: "close", valueType: "none", receiver: createPhiSignalAddress("cms", PHI_BUILDER_MODULE_USAGE_OVERLAY_IDS.overlayModuleUsage) },
|
|
822
|
-
],
|
|
823
|
-
},
|
|
824
|
-
},
|
|
825
|
-
}] : []),
|
|
826
|
-
...(isModulesPage ? [{
|
|
827
|
-
id: PHI_BUILDER_PUBLIC_ROUTES_OVERLAY_IDS.overlayPublicRoutes,
|
|
828
|
-
overlayType: "modal",
|
|
829
|
-
headerLayoutNodeId: null,
|
|
830
|
-
bodyLayoutNodeId: PHI_BUILDER_PUBLIC_ROUTES_LAYOUT_IDS.publicRoutesBody,
|
|
831
|
-
footerPresentation: "actions",
|
|
832
|
-
footerLayoutNodeId: PHI_BUILDER_PUBLIC_ROUTES_LAYOUT_IDS.publicRoutesFooter,
|
|
833
|
-
status: PhiCmsStatus.Published,
|
|
834
|
-
flags: 0,
|
|
835
|
-
visibilityMask: page.visibilityMask,
|
|
836
|
-
sortOrder: 0,
|
|
837
|
-
label: "Builder public route collision",
|
|
838
|
-
config: {
|
|
839
|
-
title: modulesLabels?.publicRoutes.title ?? "Public addresses are taken",
|
|
840
|
-
width: { compact: "calc(100vw - 32px)", medium: 640, wide: 720 },
|
|
841
|
-
mountPolicy: "lazy-keep",
|
|
842
|
-
closeMode: "immediate",
|
|
843
|
-
signalRoutes: {
|
|
844
|
-
emits: [{ routeKey: "builder-public-routes-visibility", capabilityId: "openChange", scope: "area", channel: "publicRoutesVisibility", action: "change", valueType: "boolean", receiver: createPhiBuilderControllerAddress() }],
|
|
845
|
-
listens: [
|
|
846
|
-
{ routeKey: "builder-public-routes-open", capabilityId: "open", scope: "page", channel: "publicRoutesDialog", action: "activate", valueType: "none", receiver: createPhiSignalAddress("cms", PHI_BUILDER_PUBLIC_ROUTES_OVERLAY_IDS.overlayPublicRoutes) },
|
|
847
|
-
{ routeKey: "builder-public-routes-close", capabilityId: "close", scope: "page", channel: "publicRoutesDialog", action: "close", valueType: "none", receiver: createPhiSignalAddress("cms", PHI_BUILDER_PUBLIC_ROUTES_OVERLAY_IDS.overlayPublicRoutes) },
|
|
848
|
-
],
|
|
849
|
-
},
|
|
850
|
-
},
|
|
851
|
-
}] : []),
|
|
852
|
-
...(isMediaPage ? [{
|
|
853
|
-
id: PHI_ASSET_INSPECTOR_OVERLAY_IDS.overlayMediaInspector,
|
|
854
|
-
overlayType: "drawer",
|
|
855
|
-
headerLayoutNodeId: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaInspectorHeader,
|
|
856
|
-
bodyLayoutNodeId: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaInspector,
|
|
857
|
-
footerPresentation: "actions",
|
|
858
|
-
footerLayoutNodeId: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaInspectorFooter,
|
|
859
|
-
status: PhiCmsStatus.Published,
|
|
860
|
-
flags: 0,
|
|
861
|
-
visibilityMask: page.visibilityMask,
|
|
862
|
-
sortOrder: 0,
|
|
863
|
-
label: "Asset inspector",
|
|
864
|
-
config: {
|
|
865
|
-
title: mediaLabels?.inspector.inspectorTitle ?? "Asset inspector",
|
|
866
|
-
placement: "right",
|
|
867
|
-
size: 377,
|
|
868
|
-
mountPolicy: "lazy-keep",
|
|
869
|
-
effect: "glass",
|
|
870
|
-
background: "transparent",
|
|
871
|
-
mask: {
|
|
872
|
-
appearance: "transparent",
|
|
873
|
-
allowOutsideInteraction: false,
|
|
874
|
-
closable: true,
|
|
875
|
-
},
|
|
876
|
-
signalRoutes: {
|
|
877
|
-
listens: [
|
|
878
|
-
{
|
|
879
|
-
routeKey: "builder-media-inspector-open",
|
|
880
|
-
capabilityId: "open",
|
|
881
|
-
scope: "page",
|
|
882
|
-
channel: "dialog",
|
|
883
|
-
action: "open",
|
|
884
|
-
valueType: "none",
|
|
885
|
-
receiver: createPhiSignalAddress("cms", PHI_ASSET_INSPECTOR_OVERLAY_IDS.overlayMediaInspector),
|
|
886
|
-
},
|
|
887
|
-
{
|
|
888
|
-
routeKey: "builder-media-inspector-close",
|
|
889
|
-
capabilityId: "close",
|
|
890
|
-
scope: "page",
|
|
891
|
-
channel: "dialog",
|
|
892
|
-
action: "close",
|
|
893
|
-
valueType: "none",
|
|
894
|
-
receiver: createPhiSignalAddress("cms", PHI_ASSET_INSPECTOR_OVERLAY_IDS.overlayMediaInspector),
|
|
895
|
-
},
|
|
896
|
-
],
|
|
897
|
-
},
|
|
898
|
-
},
|
|
899
|
-
}, {
|
|
900
|
-
id: PHI_ASSET_INSPECTOR_OVERLAY_IDS.overlayMediaFocalRect,
|
|
901
|
-
overlayType: "modal",
|
|
902
|
-
headerLayoutNodeId: null,
|
|
903
|
-
bodyLayoutNodeId: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaFocalRectBody,
|
|
904
|
-
footerPresentation: "actions",
|
|
905
|
-
footerLayoutNodeId: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaFocalRectFooter,
|
|
906
|
-
status: PhiCmsStatus.Published,
|
|
907
|
-
flags: 0,
|
|
908
|
-
visibilityMask: page.visibilityMask,
|
|
909
|
-
sortOrder: 1,
|
|
910
|
-
label: "Asset focal rectangle",
|
|
911
|
-
config: {
|
|
912
|
-
title: mediaLabels?.editor.focalRectLabel ?? "Focal rectangle",
|
|
913
|
-
controlSize: "large",
|
|
914
|
-
centered: true,
|
|
915
|
-
mountPolicy: "remount",
|
|
916
|
-
closeMode: "immediate",
|
|
917
|
-
mask: {
|
|
918
|
-
appearance: "normal",
|
|
919
|
-
allowOutsideInteraction: false,
|
|
920
|
-
closable: true,
|
|
921
|
-
},
|
|
922
|
-
signalRoutes: {
|
|
923
|
-
listens: [
|
|
924
|
-
{
|
|
925
|
-
routeKey: "builder-media-focal-rect-open",
|
|
926
|
-
capabilityId: "open",
|
|
927
|
-
scope: "page",
|
|
928
|
-
channel: "focalRectDialog",
|
|
929
|
-
action: "open",
|
|
930
|
-
valueType: "none",
|
|
931
|
-
receiver: createPhiSignalAddress("cms", PHI_ASSET_INSPECTOR_OVERLAY_IDS.overlayMediaFocalRect),
|
|
932
|
-
},
|
|
933
|
-
{
|
|
934
|
-
routeKey: "builder-media-focal-rect-close",
|
|
935
|
-
capabilityId: "close",
|
|
936
|
-
scope: "page",
|
|
937
|
-
channel: "focalRectDialog",
|
|
938
|
-
action: "close",
|
|
939
|
-
valueType: "none",
|
|
940
|
-
receiver: createPhiSignalAddress("cms", PHI_ASSET_INSPECTOR_OVERLAY_IDS.overlayMediaFocalRect),
|
|
941
|
-
},
|
|
942
|
-
],
|
|
943
|
-
},
|
|
944
|
-
},
|
|
945
|
-
}] : []),
|
|
946
|
-
...(isMediaPage ? [{
|
|
947
|
-
id: PHI_ASSET_INSPECTOR_OVERLAY_IDS.overlayMediaFolderCreate,
|
|
948
|
-
overlayType: "modal",
|
|
949
|
-
headerLayoutNodeId: null,
|
|
950
|
-
bodyLayoutNodeId: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaFolderCreateBody,
|
|
951
|
-
footerPresentation: "actions",
|
|
952
|
-
footerLayoutNodeId: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaFolderCreateFooter,
|
|
953
|
-
status: PhiCmsStatus.Published,
|
|
954
|
-
flags: 0,
|
|
955
|
-
visibilityMask: page.visibilityMask,
|
|
956
|
-
sortOrder: 2,
|
|
957
|
-
label: "Create asset folder",
|
|
958
|
-
config: {
|
|
959
|
-
title: mediaLabels?.editor.createFolderTitle ?? "Create folder",
|
|
960
|
-
controlSize: "medium",
|
|
961
|
-
width: { compact: "calc(100vw - 32px)", medium: 480, wide: 520 },
|
|
962
|
-
centered: true,
|
|
963
|
-
mountPolicy: "remount",
|
|
964
|
-
closeMode: "immediate",
|
|
965
|
-
mask: {
|
|
966
|
-
appearance: "normal",
|
|
967
|
-
allowOutsideInteraction: false,
|
|
968
|
-
closable: true,
|
|
969
|
-
},
|
|
970
|
-
signalRoutes: {
|
|
971
|
-
listens: [
|
|
972
|
-
{
|
|
973
|
-
routeKey: "builder-media-folder-create-open",
|
|
974
|
-
capabilityId: "open",
|
|
975
|
-
scope: "page",
|
|
976
|
-
channel: "dialog",
|
|
977
|
-
action: "open",
|
|
978
|
-
valueType: "none",
|
|
979
|
-
receiver: createPhiSignalAddress("cms", PHI_ASSET_INSPECTOR_OVERLAY_IDS.overlayMediaFolderCreate),
|
|
980
|
-
},
|
|
981
|
-
{
|
|
982
|
-
routeKey: "builder-media-folder-create-close",
|
|
983
|
-
capabilityId: "close",
|
|
984
|
-
scope: "page",
|
|
985
|
-
channel: "dialog",
|
|
986
|
-
action: "close",
|
|
987
|
-
valueType: "none",
|
|
988
|
-
receiver: createPhiSignalAddress("cms", PHI_ASSET_INSPECTOR_OVERLAY_IDS.overlayMediaFolderCreate),
|
|
989
|
-
},
|
|
990
|
-
],
|
|
991
|
-
},
|
|
992
|
-
},
|
|
993
|
-
}] : []),
|
|
994
|
-
],
|
|
995
|
-
regions: [
|
|
996
|
-
...(isStructurePage || isPagesPage || isNavigationPage || isRevisionsPage || isMediaPage || isThemePage || isModulesPage
|
|
997
|
-
? [
|
|
998
|
-
{
|
|
999
|
-
id: SYNTHETIC_DEV_REGION_IDS.regionHeaderBottom,
|
|
1000
|
-
pageId: page.id,
|
|
1001
|
-
areaPresetId: null,
|
|
1002
|
-
regionType: PhiCmsRegionType.HeaderBottom,
|
|
1003
|
-
rootLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderBottom,
|
|
1004
|
-
status: PhiCmsStatus.Published,
|
|
1005
|
-
flags: 0,
|
|
1006
|
-
visibilityMask: page.visibilityMask,
|
|
1007
|
-
sortOrder: 5,
|
|
1008
|
-
config: {
|
|
1009
|
-
sticky: true,
|
|
1010
|
-
// No chrome of its own, for the reason given on `header_top` above.
|
|
1011
|
-
flags: isStructurePage ? PhiCmsFlags.Collapsed : 0,
|
|
1012
|
-
size: { height: `${resolvePhiShellHeaderHeight(runtime.site.theme?.shell, "bottom")}px` },
|
|
1013
|
-
offsetTop: resolvePhiShellHeaderHeight(runtime.site.theme?.shell, "main"),
|
|
1014
|
-
},
|
|
1015
|
-
},
|
|
1016
|
-
]
|
|
1017
|
-
: []),
|
|
1018
|
-
{
|
|
1019
|
-
id: SYNTHETIC_DEV_REGION_IDS.regionContent,
|
|
1020
|
-
pageId: page.id,
|
|
1021
|
-
areaPresetId: null,
|
|
1022
|
-
regionType: PhiCmsRegionType.Content,
|
|
1023
|
-
rootLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutContent,
|
|
1024
|
-
status: PhiCmsStatus.Published,
|
|
1025
|
-
flags: 0,
|
|
1026
|
-
visibilityMask: page.visibilityMask,
|
|
1027
|
-
sortOrder: 20,
|
|
1028
|
-
config: {
|
|
1029
|
-
maxSize: { width: "100%" },
|
|
1030
|
-
size: { width: "100%" },
|
|
1031
|
-
padding: 0,
|
|
1032
|
-
margin: 0,
|
|
1033
|
-
},
|
|
1034
|
-
},
|
|
1035
|
-
],
|
|
1036
|
-
layoutNodes: [
|
|
1037
|
-
...((isStructurePage || isPagesPage || isMediaPage || isNavigationPage || isRevisionsPage || isThemePage || isModulesPage)
|
|
1038
|
-
? [
|
|
1039
|
-
nodes.layout({
|
|
1040
|
-
creationPreset: { layoutKind: "threecol", preset: "panel" },
|
|
1041
|
-
typeKey: "three-column",
|
|
1042
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderBottom,
|
|
1043
|
-
parentLayoutNodeId: null,
|
|
1044
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1045
|
-
sortOrder: 0,
|
|
1046
|
-
label: "dev header bottom three column",
|
|
1047
|
-
config: isMediaPage
|
|
1048
|
-
? {
|
|
1049
|
-
balancedSides: false,
|
|
1050
|
-
gap: PHI_SPACE.base,
|
|
1051
|
-
leftWidth: 130,
|
|
1052
|
-
rightWidth: 130,
|
|
1053
|
-
style: { height: "100%" },
|
|
1054
|
-
}
|
|
1055
|
-
: {
|
|
1056
|
-
balancedSides: true,
|
|
1057
|
-
contentAlign: "center",
|
|
1058
|
-
style: { height: "100%" },
|
|
1059
|
-
},
|
|
1060
|
-
}),
|
|
1061
|
-
]
|
|
1062
|
-
: []),
|
|
1063
|
-
/*
|
|
1064
|
-
* The workspace content root, one shape per Builder page and none of them painting a ground.
|
|
1065
|
-
* The Theme's Root Background is what a workspace shows behind its panels, and a plate here
|
|
1066
|
-
* would cover exactly that. A panel that wants its own ground paints it on its own node.
|
|
1067
|
-
*/
|
|
1068
|
-
buildPhiCmsLayoutNode(isStructurePage || isPagesPage
|
|
1069
|
-
? {
|
|
1070
|
-
creationPreset: { layoutKind: "verticalflex", preset: "panel" },
|
|
1071
|
-
typeKey: "flex-vertical",
|
|
1072
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutContent,
|
|
1073
|
-
siteId: page.siteId,
|
|
1074
|
-
parentLayoutNodeId: null,
|
|
1075
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1076
|
-
sortOrder: 0,
|
|
1077
|
-
status: PhiCmsStatus.Published,
|
|
1078
|
-
flags: 0,
|
|
1079
|
-
visibilityMask: page.visibilityMask,
|
|
1080
|
-
label: "dev builder workspace vertical",
|
|
1081
|
-
config: {
|
|
1082
|
-
anchor: {
|
|
1083
|
-
horizontal: "center",
|
|
1084
|
-
vertical: "top",
|
|
1085
|
-
},
|
|
1086
|
-
gap: PHI_SPACE.base,
|
|
1087
|
-
maxWidth: "100%",
|
|
1088
|
-
width: "100%",
|
|
1089
|
-
margin: 0,
|
|
1090
|
-
padding: PHI_SPACE.base,
|
|
1091
|
-
background: "transparent",
|
|
1092
|
-
border: "none",
|
|
1093
|
-
borderRadius: 0,
|
|
1094
|
-
},
|
|
1095
|
-
}
|
|
1096
|
-
: isNavigationPage
|
|
1097
|
-
? {
|
|
1098
|
-
creationPreset: { layoutKind: "flex", preset: "panel" },
|
|
1099
|
-
typeKey: "flex",
|
|
1100
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutContent,
|
|
1101
|
-
siteId: page.siteId,
|
|
1102
|
-
parentLayoutNodeId: null,
|
|
1103
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1104
|
-
sortOrder: 0,
|
|
1105
|
-
status: PhiCmsStatus.Published,
|
|
1106
|
-
flags: 0,
|
|
1107
|
-
visibilityMask: page.visibilityMask,
|
|
1108
|
-
label: "dev navigation content flex",
|
|
1109
|
-
config: {
|
|
1110
|
-
anchor: {
|
|
1111
|
-
horizontal: "left",
|
|
1112
|
-
vertical: "top",
|
|
1113
|
-
},
|
|
1114
|
-
gap: PHI_SPACE.base,
|
|
1115
|
-
wrap: true,
|
|
1116
|
-
width: "100%",
|
|
1117
|
-
maxWidth: "100%",
|
|
1118
|
-
margin: 0,
|
|
1119
|
-
padding: PHI_SPACE.base,
|
|
1120
|
-
paddingTop: PHI_SPACE.base,
|
|
1121
|
-
paddingBottom: PHI_SPACE.base,
|
|
1122
|
-
background: "transparent",
|
|
1123
|
-
border: "none",
|
|
1124
|
-
borderRadius: 0,
|
|
1125
|
-
},
|
|
1126
|
-
}
|
|
1127
|
-
: isMediaPage
|
|
1128
|
-
? {
|
|
1129
|
-
creationPreset: { layoutKind: "verticalflex", preset: "panel" },
|
|
1130
|
-
typeKey: "flex-vertical",
|
|
1131
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutContent,
|
|
1132
|
-
siteId: page.siteId,
|
|
1133
|
-
parentLayoutNodeId: null,
|
|
1134
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1135
|
-
sortOrder: 0,
|
|
1136
|
-
status: PhiCmsStatus.Published,
|
|
1137
|
-
flags: 0,
|
|
1138
|
-
visibilityMask: page.visibilityMask,
|
|
1139
|
-
label: "dev media content vertical",
|
|
1140
|
-
config: {
|
|
1141
|
-
anchor: {
|
|
1142
|
-
horizontal: "center",
|
|
1143
|
-
vertical: "top",
|
|
1144
|
-
},
|
|
1145
|
-
gap: PHI_SPACE.base,
|
|
1146
|
-
maxWidth: "100%",
|
|
1147
|
-
margin: 0,
|
|
1148
|
-
background: "transparent",
|
|
1149
|
-
border: "none",
|
|
1150
|
-
borderRadius: 0,
|
|
1151
|
-
},
|
|
1152
|
-
}
|
|
1153
|
-
: isThemePage
|
|
1154
|
-
? {
|
|
1155
|
-
creationPreset: { layoutKind: "verticalflex", preset: "panel" },
|
|
1156
|
-
typeKey: "flex-vertical",
|
|
1157
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutContent,
|
|
1158
|
-
siteId: page.siteId,
|
|
1159
|
-
parentLayoutNodeId: null,
|
|
1160
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1161
|
-
sortOrder: 0,
|
|
1162
|
-
status: PhiCmsStatus.Published,
|
|
1163
|
-
flags: 0,
|
|
1164
|
-
visibilityMask: page.visibilityMask,
|
|
1165
|
-
label: "dev brand content vertical",
|
|
1166
|
-
config: {
|
|
1167
|
-
anchor: {
|
|
1168
|
-
horizontal: "left",
|
|
1169
|
-
vertical: "top",
|
|
1170
|
-
},
|
|
1171
|
-
gap: PHI_SPACE.base,
|
|
1172
|
-
width: "100%",
|
|
1173
|
-
maxWidth: "100%",
|
|
1174
|
-
margin: 0,
|
|
1175
|
-
padding: PHI_SPACE.base,
|
|
1176
|
-
background: "transparent",
|
|
1177
|
-
border: "none",
|
|
1178
|
-
borderRadius: 0,
|
|
1179
|
-
},
|
|
1180
|
-
}
|
|
1181
|
-
: isRevisionsPage || isModulesPage
|
|
1182
|
-
? {
|
|
1183
|
-
creationPreset: { layoutKind: "verticalflex", preset: "panel" },
|
|
1184
|
-
typeKey: "flex-vertical",
|
|
1185
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutContent,
|
|
1186
|
-
siteId: page.siteId,
|
|
1187
|
-
parentLayoutNodeId: null,
|
|
1188
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1189
|
-
sortOrder: 0,
|
|
1190
|
-
status: PhiCmsStatus.Published,
|
|
1191
|
-
flags: 0,
|
|
1192
|
-
visibilityMask: page.visibilityMask,
|
|
1193
|
-
label: isModulesPage ? "dev modules content vertical" : "dev revisions content vertical",
|
|
1194
|
-
config: {
|
|
1195
|
-
anchor: {
|
|
1196
|
-
horizontal: "center",
|
|
1197
|
-
vertical: "top",
|
|
1198
|
-
},
|
|
1199
|
-
gap: PHI_SPACE.base,
|
|
1200
|
-
width: "100%",
|
|
1201
|
-
maxWidth: "100%",
|
|
1202
|
-
margin: 0,
|
|
1203
|
-
padding: PHI_SPACE.base,
|
|
1204
|
-
background: "transparent",
|
|
1205
|
-
border: "none",
|
|
1206
|
-
borderRadius: 0,
|
|
1207
|
-
},
|
|
1208
|
-
}
|
|
1209
|
-
: {
|
|
1210
|
-
typeKey: "content",
|
|
1211
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutContent,
|
|
1212
|
-
siteId: page.siteId,
|
|
1213
|
-
parentLayoutNodeId: null,
|
|
1214
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1215
|
-
sortOrder: 0,
|
|
1216
|
-
status: PhiCmsStatus.Published,
|
|
1217
|
-
flags: 0,
|
|
1218
|
-
visibilityMask: page.visibilityMask,
|
|
1219
|
-
label: "dev content",
|
|
1220
|
-
config: {
|
|
1221
|
-
maxWidth: "100%",
|
|
1222
|
-
margin: 0,
|
|
1223
|
-
padding: 0,
|
|
1224
|
-
background: "transparent",
|
|
1225
|
-
},
|
|
1226
|
-
}),
|
|
1227
|
-
...((isStructurePage || isPagesPage)
|
|
1228
|
-
? [
|
|
1229
|
-
nodes.layout({
|
|
1230
|
-
creationPreset: { layoutKind: "threecol", preset: "panel" },
|
|
1231
|
-
typeKey: "three-column",
|
|
1232
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutWorkspaceHeader,
|
|
1233
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutContent,
|
|
1234
|
-
slotIndex: 0,
|
|
1235
|
-
label: isStructurePage ? "dev shells workspace header" : "dev pages workspace header",
|
|
1236
|
-
config: {
|
|
1237
|
-
balancedSides: true,
|
|
1238
|
-
contentAlign: "center",
|
|
1239
|
-
gap: PHI_SPACE.base,
|
|
1240
|
-
padding: PHI_SPACE.xs,
|
|
1241
|
-
paddingLeft: 0,
|
|
1242
|
-
paddingRight: 0,
|
|
1243
|
-
border: "none",
|
|
1244
|
-
borderRadius: 0,
|
|
1245
|
-
height: "auto",
|
|
1246
|
-
minHeight: "auto",
|
|
1247
|
-
},
|
|
1248
|
-
}),
|
|
1249
|
-
]
|
|
1250
|
-
: []),
|
|
1251
|
-
...(isMediaPage
|
|
1252
|
-
? [
|
|
1253
|
-
nodes.layout({
|
|
1254
|
-
creationPreset: { layoutKind: "flex", preset: "panel" },
|
|
1255
|
-
typeKey: "flex",
|
|
1256
|
-
id: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaInspectorHeader,
|
|
1257
|
-
parentLayoutNodeId: null,
|
|
1258
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1259
|
-
sortOrder: 0,
|
|
1260
|
-
label: "Asset inspector header",
|
|
1261
|
-
config: {
|
|
1262
|
-
anchor: { horizontal: "left", vertical: "middle" },
|
|
1263
|
-
gap: 0,
|
|
1264
|
-
padding: 0,
|
|
1265
|
-
paddingLeft: PHI_SPACE.lg,
|
|
1266
|
-
width: "100%",
|
|
1267
|
-
background: "transparent",
|
|
1268
|
-
border: "none",
|
|
1269
|
-
},
|
|
1270
|
-
}),
|
|
1271
|
-
nodes.layout({
|
|
1272
|
-
typeKey: "collapsible",
|
|
1273
|
-
id: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaInspector,
|
|
1274
|
-
parentLayoutNodeId: null,
|
|
1275
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1276
|
-
sortOrder: 0,
|
|
1277
|
-
label: "dev media inspector body",
|
|
1278
|
-
config: {
|
|
1279
|
-
ghost: true,
|
|
1280
|
-
bordered: false,
|
|
1281
|
-
padding: PHI_SPACE.sm,
|
|
1282
|
-
innerPadding: PHI_SPACE.sm,
|
|
1283
|
-
slotTitles: [
|
|
1284
|
-
mediaLabels?.inspector.previewTitle ?? "Preview",
|
|
1285
|
-
mediaLabels?.inspector.metadataTitle ?? "Metadata",
|
|
1286
|
-
],
|
|
1287
|
-
defaultOpenSlotKeys: ["slot_0", "slot_1"],
|
|
1288
|
-
background: "transparent",
|
|
1289
|
-
},
|
|
1290
|
-
}),
|
|
1291
|
-
nodes.layout({
|
|
1292
|
-
creationPreset: { layoutKind: "flex", preset: "overlay-actions" },
|
|
1293
|
-
typeKey: "flex",
|
|
1294
|
-
id: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaInspectorFooter,
|
|
1295
|
-
parentLayoutNodeId: null,
|
|
1296
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1297
|
-
sortOrder: 0,
|
|
1298
|
-
label: "dev media inspector footer",
|
|
1299
|
-
config: {},
|
|
1300
|
-
}),
|
|
1301
|
-
nodes.layout({
|
|
1302
|
-
typeKey: "content",
|
|
1303
|
-
id: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaFocalRectBody,
|
|
1304
|
-
parentLayoutNodeId: null,
|
|
1305
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1306
|
-
sortOrder: 0,
|
|
1307
|
-
label: "Asset focal rectangle body",
|
|
1308
|
-
config: {
|
|
1309
|
-
width: "100%",
|
|
1310
|
-
maxWidth: "100%",
|
|
1311
|
-
margin: 0,
|
|
1312
|
-
padding: 0,
|
|
1313
|
-
background: PHI_COLOR.bgLayout,
|
|
1314
|
-
border: "none",
|
|
1315
|
-
borderRadius: 0,
|
|
1316
|
-
},
|
|
1317
|
-
}),
|
|
1318
|
-
nodes.layout({
|
|
1319
|
-
creationPreset: { layoutKind: "flex", preset: "overlay-actions" },
|
|
1320
|
-
typeKey: "flex",
|
|
1321
|
-
id: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaFocalRectFooter,
|
|
1322
|
-
parentLayoutNodeId: null,
|
|
1323
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1324
|
-
sortOrder: 0,
|
|
1325
|
-
label: "Asset focal rectangle footer",
|
|
1326
|
-
config: {},
|
|
1327
|
-
}),
|
|
1328
|
-
nodes.layout({
|
|
1329
|
-
typeKey: "content",
|
|
1330
|
-
id: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaFolderCreateBody,
|
|
1331
|
-
parentLayoutNodeId: null,
|
|
1332
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1333
|
-
sortOrder: 0,
|
|
1334
|
-
label: "Create asset folder body",
|
|
1335
|
-
config: {
|
|
1336
|
-
width: "100%",
|
|
1337
|
-
maxWidth: "100%",
|
|
1338
|
-
margin: 0,
|
|
1339
|
-
padding: PHI_SPACE.base,
|
|
1340
|
-
background: PHI_COLOR.bgLayout,
|
|
1341
|
-
border: "none",
|
|
1342
|
-
borderRadius: 0,
|
|
1343
|
-
},
|
|
1344
|
-
}),
|
|
1345
|
-
nodes.layout({
|
|
1346
|
-
creationPreset: { layoutKind: "flex", preset: "overlay-actions" },
|
|
1347
|
-
typeKey: "flex",
|
|
1348
|
-
id: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaFolderCreateFooter,
|
|
1349
|
-
parentLayoutNodeId: null,
|
|
1350
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1351
|
-
sortOrder: 0,
|
|
1352
|
-
label: "Create asset folder footer",
|
|
1353
|
-
config: {},
|
|
1354
|
-
}),
|
|
1355
|
-
]
|
|
1356
|
-
: []),
|
|
1357
|
-
...(isModulesPage ? [
|
|
1358
|
-
nodes.layout({
|
|
1359
|
-
creationPreset: { layoutKind: "verticalflex", preset: "panel" },
|
|
1360
|
-
typeKey: "flex-vertical",
|
|
1361
|
-
id: PHI_BUILDER_MODULE_USAGE_LAYOUT_IDS.moduleUsageBody,
|
|
1362
|
-
parentLayoutNodeId: null,
|
|
1363
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1364
|
-
sortOrder: 0,
|
|
1365
|
-
label: "Builder module usage body",
|
|
1366
|
-
config: {
|
|
1367
|
-
gap: PHI_SPACE.base,
|
|
1368
|
-
padding: PHI_SPACE.base,
|
|
1369
|
-
width: "100%",
|
|
1370
|
-
background: PHI_COLOR.bgLayout,
|
|
1371
|
-
border: "none",
|
|
1372
|
-
},
|
|
1373
|
-
}),
|
|
1374
|
-
nodes.layout({
|
|
1375
|
-
creationPreset: { layoutKind: "flex", preset: "overlay-actions" },
|
|
1376
|
-
typeKey: "flex",
|
|
1377
|
-
id: PHI_BUILDER_MODULE_USAGE_LAYOUT_IDS.moduleUsageFooter,
|
|
1378
|
-
parentLayoutNodeId: null,
|
|
1379
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1380
|
-
sortOrder: 0,
|
|
1381
|
-
label: "Builder module usage footer",
|
|
1382
|
-
config: {},
|
|
1383
|
-
}),
|
|
1384
|
-
nodes.layout({
|
|
1385
|
-
creationPreset: { layoutKind: "verticalflex", preset: "panel" },
|
|
1386
|
-
typeKey: "flex-vertical",
|
|
1387
|
-
id: PHI_BUILDER_PUBLIC_ROUTES_LAYOUT_IDS.publicRoutesBody,
|
|
1388
|
-
parentLayoutNodeId: null,
|
|
1389
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1390
|
-
sortOrder: 0,
|
|
1391
|
-
label: "Builder public route collision body",
|
|
1392
|
-
config: {
|
|
1393
|
-
gap: PHI_SPACE.base,
|
|
1394
|
-
padding: PHI_SPACE.base,
|
|
1395
|
-
width: "100%",
|
|
1396
|
-
background: PHI_COLOR.bgLayout,
|
|
1397
|
-
border: "none",
|
|
1398
|
-
},
|
|
1399
|
-
}),
|
|
1400
|
-
nodes.layout({
|
|
1401
|
-
creationPreset: { layoutKind: "flex", preset: "overlay-actions" },
|
|
1402
|
-
typeKey: "flex",
|
|
1403
|
-
id: PHI_BUILDER_PUBLIC_ROUTES_LAYOUT_IDS.publicRoutesFooter,
|
|
1404
|
-
parentLayoutNodeId: null,
|
|
1405
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1406
|
-
sortOrder: 0,
|
|
1407
|
-
label: "Builder public route collision footer",
|
|
1408
|
-
config: {},
|
|
1409
|
-
}),
|
|
1410
|
-
nodes.layout({
|
|
1411
|
-
creationPreset: { layoutKind: "verticalflex", preset: "panel" },
|
|
1412
|
-
typeKey: "flex-vertical",
|
|
1413
|
-
id: PHI_BUILDER_MODULE_DETAIL_LAYOUT_IDS.body,
|
|
1414
|
-
parentLayoutNodeId: null,
|
|
1415
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1416
|
-
sortOrder: 0,
|
|
1417
|
-
label: "Builder module detail body",
|
|
1418
|
-
config: {
|
|
1419
|
-
gap: PHI_SPACE.base,
|
|
1420
|
-
padding: PHI_SPACE.base,
|
|
1421
|
-
width: "100%",
|
|
1422
|
-
background: PHI_COLOR.bgLayout,
|
|
1423
|
-
border: "none",
|
|
1424
|
-
},
|
|
1425
|
-
}),
|
|
1426
|
-
] : []),
|
|
1427
|
-
...(isStructurePage ? [
|
|
1428
|
-
/*
|
|
1429
|
-
* The form is the container, not the decoration.
|
|
1430
|
-
*
|
|
1431
|
-
* It states the label column once and everything inside inherits it, which is what makes four
|
|
1432
|
-
* labelled Controls read as two columns rather than four differently indented rows.
|
|
1433
|
-
*/
|
|
1434
|
-
nodes.layout({
|
|
1435
|
-
creationPreset: { layoutKind: "verticalflex", preset: "panel" },
|
|
1436
|
-
typeKey: "flex-vertical",
|
|
1437
|
-
id: PHI_BUILDER_AREA_SETTINGS_LAYOUT_IDS.areaSettingsBody,
|
|
1438
|
-
parentLayoutNodeId: null,
|
|
1439
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1440
|
-
sortOrder: 0,
|
|
1441
|
-
label: "Builder area settings body",
|
|
1442
|
-
config: {
|
|
1443
|
-
padding: PHI_SPACE.base,
|
|
1444
|
-
background: PHI_COLOR.bgLayout,
|
|
1445
|
-
border: "none",
|
|
1446
|
-
},
|
|
1447
|
-
}),
|
|
1448
|
-
nodes.layout({
|
|
1449
|
-
creationPreset: { layoutKind: "verticalflex", preset: "panel" },
|
|
1450
|
-
typeKey: "flex-vertical",
|
|
1451
|
-
id: PHI_BUILDER_AREA_SETTINGS_LAYOUT_IDS.areaSettingsFields,
|
|
1452
|
-
parentLayoutNodeId: PHI_BUILDER_AREA_SETTINGS_LAYOUT_IDS.areaSettingsBody,
|
|
1453
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1454
|
-
sortOrder: 0,
|
|
1455
|
-
label: "Builder area settings fields",
|
|
1456
|
-
config: {
|
|
1457
|
-
gap: PHI_SPACE.base,
|
|
1458
|
-
width: "100%",
|
|
1459
|
-
background: "transparent",
|
|
1460
|
-
border: "none",
|
|
1461
|
-
},
|
|
1462
|
-
}),
|
|
1463
|
-
nodes.layout({
|
|
1464
|
-
creationPreset: { layoutKind: "flex", preset: "overlay-actions" },
|
|
1465
|
-
typeKey: "flex",
|
|
1466
|
-
id: PHI_BUILDER_AREA_SETTINGS_LAYOUT_IDS.areaSettingsFooter,
|
|
1467
|
-
parentLayoutNodeId: null,
|
|
1468
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1469
|
-
sortOrder: 0,
|
|
1470
|
-
label: "Builder area settings footer",
|
|
1471
|
-
config: {},
|
|
1472
|
-
}),
|
|
1473
|
-
] : []),
|
|
1474
|
-
...(isPagesPage ? [
|
|
1475
|
-
nodes.layout({
|
|
1476
|
-
creationPreset: { layoutKind: "verticalflex", preset: "panel" },
|
|
1477
|
-
typeKey: "flex-vertical",
|
|
1478
|
-
id: PHI_BUILDER_PAGE_META_LAYOUT_IDS.body,
|
|
1479
|
-
parentLayoutNodeId: null,
|
|
1480
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1481
|
-
sortOrder: 0,
|
|
1482
|
-
label: "Builder page metadata body",
|
|
1483
|
-
config: {
|
|
1484
|
-
gap: PHI_SPACE.base,
|
|
1485
|
-
padding: PHI_SPACE.base,
|
|
1486
|
-
width: "100%",
|
|
1487
|
-
background: PHI_COLOR.bgLayout,
|
|
1488
|
-
border: "none",
|
|
1489
|
-
},
|
|
1490
|
-
}),
|
|
1491
|
-
nodes.layout({
|
|
1492
|
-
creationPreset: { layoutKind: "flex", preset: "overlay-actions" },
|
|
1493
|
-
typeKey: "flex",
|
|
1494
|
-
id: PHI_BUILDER_PAGE_META_LAYOUT_IDS.footer,
|
|
1495
|
-
parentLayoutNodeId: null,
|
|
1496
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1497
|
-
sortOrder: 0,
|
|
1498
|
-
label: "Builder page metadata footer",
|
|
1499
|
-
config: {},
|
|
1500
|
-
}),
|
|
1501
|
-
] : []),
|
|
1502
|
-
...(isThemePage
|
|
1503
|
-
? [
|
|
1504
|
-
nodes.layout({
|
|
1505
|
-
creationPreset: { layoutKind: "threecol", preset: "panel" },
|
|
1506
|
-
typeKey: "three-column",
|
|
1507
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandControlsHeader,
|
|
1508
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutContent,
|
|
1509
|
-
slotIndex: 0,
|
|
1510
|
-
label: "dev brand controls header",
|
|
1511
|
-
config: {
|
|
1512
|
-
balancedSides: true,
|
|
1513
|
-
contentAlign: "center",
|
|
1514
|
-
gap: PHI_SPACE.base,
|
|
1515
|
-
padding: 0,
|
|
1516
|
-
paddingLeft: 0,
|
|
1517
|
-
paddingRight: 0,
|
|
1518
|
-
},
|
|
1519
|
-
}),
|
|
1520
|
-
nodes.layout({
|
|
1521
|
-
typeKey: "stack",
|
|
1522
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandStack,
|
|
1523
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutContent,
|
|
1524
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[1].slotIndex,
|
|
1525
|
-
sortOrder: 1,
|
|
1526
|
-
label: "dev brand stack",
|
|
1527
|
-
config: {
|
|
1528
|
-
defaultActiveSlotKey: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[0].key,
|
|
1529
|
-
key: PHI_BUILDER_THEME_STACK_SIGNAL_KEY,
|
|
1530
|
-
anchor: {
|
|
1531
|
-
horizontal: "left",
|
|
1532
|
-
vertical: "top",
|
|
1533
|
-
},
|
|
1534
|
-
padding: 0,
|
|
1535
|
-
},
|
|
1536
|
-
}),
|
|
1537
|
-
nodes.layout({
|
|
1538
|
-
creationPreset: { layoutKind: "flex", preset: "panel" },
|
|
1539
|
-
typeKey: "flex",
|
|
1540
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandCardsRow,
|
|
1541
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandStack,
|
|
1542
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[0].slotIndex,
|
|
1543
|
-
sortOrder: 0,
|
|
1544
|
-
label: "Color",
|
|
1545
|
-
config: {
|
|
1546
|
-
gap: PHI_SPACE.base,
|
|
1547
|
-
anchor: {
|
|
1548
|
-
horizontal: "left",
|
|
1549
|
-
vertical: "top",
|
|
1550
|
-
},
|
|
1551
|
-
wrap: true,
|
|
1552
|
-
padding: 0,
|
|
1553
|
-
paddingLeft: 0,
|
|
1554
|
-
paddingRight: 0,
|
|
1555
|
-
background: "transparent",
|
|
1556
|
-
border: "none",
|
|
1557
|
-
borderRadius: 0,
|
|
1558
|
-
},
|
|
1559
|
-
}),
|
|
1560
|
-
nodes.layout({
|
|
1561
|
-
creationPreset: { layoutKind: "flex", preset: "panel" },
|
|
1562
|
-
typeKey: "flex",
|
|
1563
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandStylePanel,
|
|
1564
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandStack,
|
|
1565
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[1].slotIndex,
|
|
1566
|
-
sortOrder: 1,
|
|
1567
|
-
label: "Style",
|
|
1568
|
-
config: {
|
|
1569
|
-
gap: PHI_SPACE.base,
|
|
1570
|
-
anchor: {
|
|
1571
|
-
horizontal: "left",
|
|
1572
|
-
vertical: "top",
|
|
1573
|
-
},
|
|
1574
|
-
wrap: true,
|
|
1575
|
-
padding: 0,
|
|
1576
|
-
paddingLeft: 0,
|
|
1577
|
-
paddingRight: 0,
|
|
1578
|
-
background: "transparent",
|
|
1579
|
-
border: "none",
|
|
1580
|
-
borderRadius: 0,
|
|
1581
|
-
},
|
|
1582
|
-
}),
|
|
1583
|
-
/*
|
|
1584
|
-
* The label is the Segmented's third entry: it reads the Stack's slots and takes the label
|
|
1585
|
-
* of the first child in each, so naming this one is all the Segmented needs.
|
|
1586
|
-
*/
|
|
1587
|
-
nodes.layout({
|
|
1588
|
-
creationPreset: { layoutKind: "flex", preset: "panel" },
|
|
1589
|
-
typeKey: "flex",
|
|
1590
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandBackgroundPanel,
|
|
1591
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandStack,
|
|
1592
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[2].slotIndex,
|
|
1593
|
-
sortOrder: 2,
|
|
1594
|
-
label: "Background",
|
|
1595
|
-
config: {
|
|
1596
|
-
gap: PHI_SPACE.base,
|
|
1597
|
-
anchor: {
|
|
1598
|
-
horizontal: "left",
|
|
1599
|
-
vertical: "top",
|
|
1600
|
-
},
|
|
1601
|
-
wrap: true,
|
|
1602
|
-
padding: 0,
|
|
1603
|
-
paddingLeft: 0,
|
|
1604
|
-
paddingRight: 0,
|
|
1605
|
-
background: "transparent",
|
|
1606
|
-
border: "none",
|
|
1607
|
-
borderRadius: 0,
|
|
1608
|
-
},
|
|
1609
|
-
}),
|
|
1610
|
-
nodes.layout({
|
|
1611
|
-
creationPreset: { layoutKind: "flex", preset: "panel" },
|
|
1612
|
-
typeKey: "flex",
|
|
1613
|
-
id: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandIdentityPanel,
|
|
1614
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandStack,
|
|
1615
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[3].slotIndex,
|
|
1616
|
-
sortOrder: 3,
|
|
1617
|
-
label: "Brand",
|
|
1618
|
-
config: {
|
|
1619
|
-
gap: PHI_SPACE.base,
|
|
1620
|
-
anchor: {
|
|
1621
|
-
horizontal: "left",
|
|
1622
|
-
vertical: "top",
|
|
1623
|
-
},
|
|
1624
|
-
wrap: true,
|
|
1625
|
-
padding: 0,
|
|
1626
|
-
paddingLeft: 0,
|
|
1627
|
-
paddingRight: 0,
|
|
1628
|
-
background: "transparent",
|
|
1629
|
-
border: "none",
|
|
1630
|
-
borderRadius: 0,
|
|
1631
|
-
},
|
|
1632
|
-
}),
|
|
1633
|
-
]
|
|
1634
|
-
: []),
|
|
1635
|
-
],
|
|
1636
|
-
contentWidgets: [
|
|
1637
|
-
...(isPagesPage ? [
|
|
1638
|
-
nodes.widget({
|
|
1639
|
-
typeKey: "form",
|
|
1640
|
-
id: PHI_BUILDER_PAGE_META_WIDGET_IDS.form,
|
|
1641
|
-
parentLayoutNodeId: PHI_BUILDER_PAGE_META_LAYOUT_IDS.body,
|
|
1642
|
-
slotIndex: 0,
|
|
1643
|
-
label: "Builder page metadata form",
|
|
1644
|
-
config: {
|
|
1645
|
-
formId: PHI_BUILDER_PAGE_META_FORM_ID,
|
|
1646
|
-
formConfig: {},
|
|
1647
|
-
execution: { mode: "signal" },
|
|
1648
|
-
source: null,
|
|
1649
|
-
signalRoutes: {
|
|
1650
|
-
emits: [{ routeKey: "builder-page-meta-values", capabilityId: "submitValues", scope: "area", channel: "pageMetaForm", action: "change", valueType: "json", valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.formValues, receiver: createPhiBuilderControllerAddress() }],
|
|
1651
|
-
listens: [{ routeKey: "builder-page-meta-submit-form", capabilityId: "submit", scope: "page", channel: "submit", action: "activate", valueType: "none", receiver: createPhiSignalAddress("cms", PHI_BUILDER_PAGE_META_WIDGET_IDS.form) }],
|
|
1652
|
-
},
|
|
1653
|
-
},
|
|
1654
|
-
}),
|
|
1655
|
-
nodes.widget({
|
|
1656
|
-
typeKey: "command-toolbar",
|
|
1657
|
-
id: PHI_BUILDER_PAGE_META_WIDGET_IDS.commands,
|
|
1658
|
-
parentLayoutNodeId: PHI_BUILDER_PAGE_META_LAYOUT_IDS.footer,
|
|
1659
|
-
slotIndex: 0,
|
|
1660
|
-
label: "Page metadata commands",
|
|
1661
|
-
config: {
|
|
1662
|
-
key: "page-meta-commands",
|
|
1663
|
-
compact: false,
|
|
1664
|
-
wrap: true,
|
|
1665
|
-
showLabels: true,
|
|
1666
|
-
controlSize: "medium",
|
|
1667
|
-
buttons: [
|
|
1668
|
-
{ key: "cancel", emits: [{ capabilityId: "command", value: "cancel" }], actionKey: "cancel" },
|
|
1669
|
-
{ key: "save", emits: [{ capabilityId: "command", value: "save" }], actionKey: "save", buttonType: "primary" },
|
|
1670
|
-
],
|
|
1671
|
-
signalRoutes: {
|
|
1672
|
-
emits: [{
|
|
1673
|
-
routeKey: "builder-page-meta-command",
|
|
1674
|
-
capabilityId: "command",
|
|
1675
|
-
scope: "area",
|
|
1676
|
-
channel: "pageMeta",
|
|
1677
|
-
action: "activate",
|
|
1678
|
-
valueType: "string",
|
|
1679
|
-
receiver: createPhiBuilderControllerAddress(),
|
|
1680
|
-
}],
|
|
1681
|
-
listens: [{
|
|
1682
|
-
routeKey: "builder-page-meta-save-label",
|
|
1683
|
-
capabilityId: "label",
|
|
1684
|
-
scope: "page",
|
|
1685
|
-
channel: "label",
|
|
1686
|
-
action: "change",
|
|
1687
|
-
valueType: "string",
|
|
1688
|
-
receiver: createPhiSignalSubcontrolAddress("cms", PHI_BUILDER_PAGE_META_WIDGET_IDS.commands, "save"),
|
|
1689
|
-
}, {
|
|
1690
|
-
routeKey: "builder-page-meta-save-loading",
|
|
1691
|
-
capabilityId: "loading",
|
|
1692
|
-
scope: "page",
|
|
1693
|
-
channel: "pageMetaSubmitting",
|
|
1694
|
-
action: "change",
|
|
1695
|
-
valueType: "boolean",
|
|
1696
|
-
receiver: createPhiSignalSubcontrolAddress("cms", PHI_BUILDER_PAGE_META_WIDGET_IDS.commands, "save"),
|
|
1697
|
-
}],
|
|
1698
|
-
},
|
|
1699
|
-
},
|
|
1700
|
-
}),
|
|
1701
|
-
] : []),
|
|
1702
|
-
...(isMediaPage
|
|
1703
|
-
? [
|
|
1704
|
-
nodes.widget({
|
|
1705
|
-
typeKey: "collection-view",
|
|
1706
|
-
id: PHI_ASSET_MEDIA_PAGE_WIDGET_IDS.widgetMediaPreview,
|
|
1707
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutContent,
|
|
1708
|
-
slotIndex: 0,
|
|
1709
|
-
label: "dev media preview",
|
|
1710
|
-
config: {
|
|
1711
|
-
presentation: {
|
|
1712
|
-
mode: "grid",
|
|
1713
|
-
minColumnWidth: 102,
|
|
1714
|
-
gap: PHI_SPACE.sm,
|
|
1715
|
-
emptyDescription: mediaLabels?.grid.emptyDescription ?? "No assets found.",
|
|
1716
|
-
controlSize: "small",
|
|
1717
|
-
labels: mediaLabels ?? undefined,
|
|
1718
|
-
},
|
|
1719
|
-
features: {
|
|
1720
|
-
tools: { mode: "self-contained", reload: true, reset: true },
|
|
1721
|
-
filters: [
|
|
1722
|
-
{ key: "kind", control: "multi-select", placeholder: mediaLabels?.tool.kindLabel ?? "Kind", width: 124 },
|
|
1723
|
-
{ key: "presentationFlags", control: "multi-select", placeholder: mediaLabels?.tool.flagsLabel ?? "Flags", width: 144 },
|
|
1724
|
-
{
|
|
1725
|
-
key: "folderId",
|
|
1726
|
-
control: "cascader",
|
|
1727
|
-
placeholder: mediaLabels?.tool.folderLabel ?? "Folder",
|
|
1728
|
-
width: 168,
|
|
1729
|
-
actions: [{
|
|
1730
|
-
key: "createFolder",
|
|
1731
|
-
label: mediaLabels?.tool.createFolderLabel ?? "Create folder",
|
|
1732
|
-
description: mediaLabels?.tool.createFolderLabel ?? "Create folder",
|
|
1733
|
-
icon: "add",
|
|
1734
|
-
display: "icon",
|
|
1735
|
-
mode: "primary",
|
|
1736
|
-
}],
|
|
1737
|
-
},
|
|
1738
|
-
],
|
|
1739
|
-
search: { enabled: true, placeholder: mediaLabels?.tool.searchPlaceholder ?? "Search assets", minWidth: 180 },
|
|
1740
|
-
actions: {
|
|
1741
|
-
toolbar: [
|
|
1742
|
-
{
|
|
1743
|
-
key: "upload",
|
|
1744
|
-
label: mediaLabels?.tool.uploadToggleLabel ?? "Upload",
|
|
1745
|
-
description: mediaLabels?.tool.uploadToggleLabel ?? "Upload",
|
|
1746
|
-
icon: "upload",
|
|
1747
|
-
display: "icon",
|
|
1748
|
-
mode: "primary",
|
|
1749
|
-
},
|
|
1750
|
-
],
|
|
1751
|
-
},
|
|
1752
|
-
pagination: {
|
|
1753
|
-
enabled: true,
|
|
1754
|
-
pageSize: 20,
|
|
1755
|
-
simple: true,
|
|
1756
|
-
showSizeChanger: false,
|
|
1757
|
-
},
|
|
1758
|
-
},
|
|
1759
|
-
initialQuery: {
|
|
1760
|
-
page: 1,
|
|
1761
|
-
pageSize: 20,
|
|
1762
|
-
sortKey: "created_at",
|
|
1763
|
-
sortOrder: "descend",
|
|
1764
|
-
filters: { kind: [PhiMediaKind.Image] },
|
|
1765
|
-
},
|
|
1766
|
-
source: {
|
|
1767
|
-
providerKey: PHI_ASSET_RUNTIME_DATA_PROVIDER_KEYS.mediaCollection,
|
|
1768
|
-
resourceKey: "assets",
|
|
1769
|
-
},
|
|
1770
|
-
signalRoutes: {
|
|
1771
|
-
emits: [
|
|
1772
|
-
{
|
|
1773
|
-
routeKey: "builder-media-selection-controller",
|
|
1774
|
-
capabilityId: "selection",
|
|
1775
|
-
scope: "area",
|
|
1776
|
-
channel: "assetSelection",
|
|
1777
|
-
action: "change",
|
|
1778
|
-
valueType: "json",
|
|
1779
|
-
valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.mediaAssetSelection,
|
|
1780
|
-
receiver: createPhiAssetControllerAddress(),
|
|
1781
|
-
},
|
|
1782
|
-
{
|
|
1783
|
-
routeKey: "builder-media-collection-action-controller",
|
|
1784
|
-
capabilityId: "actionActivate",
|
|
1785
|
-
scope: "area",
|
|
1786
|
-
channel: "assetCollectionAction",
|
|
1787
|
-
action: "activate",
|
|
1788
|
-
valueType: "json",
|
|
1789
|
-
valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.collectionAction,
|
|
1790
|
-
receiver: createPhiAssetControllerAddress(),
|
|
1791
|
-
},
|
|
1792
|
-
],
|
|
1793
|
-
listens: [{
|
|
1794
|
-
routeKey: "builder-media-collection-reload",
|
|
1795
|
-
capabilityId: "reload",
|
|
1796
|
-
scope: "page",
|
|
1797
|
-
channel: "reload",
|
|
1798
|
-
action: "activate",
|
|
1799
|
-
valueType: "none",
|
|
1800
|
-
receiver: createPhiSignalAddress("cms", PHI_ASSET_MEDIA_PAGE_WIDGET_IDS.widgetMediaPreview),
|
|
1801
|
-
}],
|
|
1802
|
-
},
|
|
1803
|
-
},
|
|
1804
|
-
}),
|
|
1805
|
-
nodes.widget({
|
|
1806
|
-
typeKey: "image-inspector",
|
|
1807
|
-
id: PHI_ASSET_MEDIA_PAGE_WIDGET_IDS.widgetMediaInspector,
|
|
1808
|
-
parentLayoutNodeId: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaInspector,
|
|
1809
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[0].slotIndex,
|
|
1810
|
-
sortOrder: 0,
|
|
1811
|
-
label: "dev media inspector",
|
|
1812
|
-
config: {
|
|
1813
|
-
section: "preview",
|
|
1814
|
-
signalRoutes: {
|
|
1815
|
-
emits: [{
|
|
1816
|
-
routeKey: "builder-media-focal-rect-open-request",
|
|
1817
|
-
capabilityId: "focalRectOpen",
|
|
1818
|
-
scope: "page",
|
|
1819
|
-
channel: "focalRectDialog",
|
|
1820
|
-
action: "open",
|
|
1821
|
-
valueType: "none",
|
|
1822
|
-
receiver: createPhiSignalAddress("cms", PHI_ASSET_INSPECTOR_OVERLAY_IDS.overlayMediaFocalRect),
|
|
1823
|
-
}],
|
|
1824
|
-
},
|
|
1825
|
-
},
|
|
1826
|
-
}),
|
|
1827
|
-
nodes.widget({
|
|
1828
|
-
typeKey: "form",
|
|
1829
|
-
id: PHI_ASSET_INSPECTOR_WIDGET_IDS.widgetMediaMetadataForm,
|
|
1830
|
-
parentLayoutNodeId: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaInspector,
|
|
1831
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[1].slotIndex,
|
|
1832
|
-
sortOrder: 1,
|
|
1833
|
-
label: "dev media metadata form",
|
|
1834
|
-
config: {
|
|
1835
|
-
formId: PHI_ASSET_METADATA_FORM_ID,
|
|
1836
|
-
formConfig: {},
|
|
1837
|
-
execution: { mode: "handler" },
|
|
1838
|
-
source: null,
|
|
1839
|
-
signalRoutes: {
|
|
1840
|
-
emits: [
|
|
1841
|
-
{
|
|
1842
|
-
routeKey: "builder-media-metadata-submit-success",
|
|
1843
|
-
capabilityId: "submitSuccess",
|
|
1844
|
-
scope: "area",
|
|
1845
|
-
channel: "assetInspectorSubmit",
|
|
1846
|
-
action: "activate",
|
|
1847
|
-
valueType: "json",
|
|
1848
|
-
valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.formResult,
|
|
1849
|
-
receiver: createPhiAssetControllerAddress(),
|
|
1850
|
-
},
|
|
1851
|
-
{
|
|
1852
|
-
routeKey: "builder-media-metadata-submitting",
|
|
1853
|
-
capabilityId: "submitting",
|
|
1854
|
-
scope: "area",
|
|
1855
|
-
channel: "assetInspectorSubmitting",
|
|
1856
|
-
action: "change",
|
|
1857
|
-
valueType: "boolean",
|
|
1858
|
-
receiver: createPhiAssetControllerAddress(),
|
|
1859
|
-
},
|
|
1860
|
-
],
|
|
1861
|
-
listens: [
|
|
1862
|
-
{
|
|
1863
|
-
routeKey: "builder-media-metadata-submit",
|
|
1864
|
-
capabilityId: "submit",
|
|
1865
|
-
scope: "page",
|
|
1866
|
-
channel: "submit",
|
|
1867
|
-
action: "activate",
|
|
1868
|
-
valueType: "none",
|
|
1869
|
-
receiver: createPhiSignalAddress("cms", PHI_ASSET_INSPECTOR_WIDGET_IDS.widgetMediaMetadataForm),
|
|
1870
|
-
},
|
|
1871
|
-
{
|
|
1872
|
-
routeKey: "builder-media-metadata-reset",
|
|
1873
|
-
capabilityId: "reset",
|
|
1874
|
-
scope: "page",
|
|
1875
|
-
channel: "reset",
|
|
1876
|
-
action: "activate",
|
|
1877
|
-
valueType: "none",
|
|
1878
|
-
receiver: createPhiSignalAddress("cms", PHI_ASSET_INSPECTOR_WIDGET_IDS.widgetMediaMetadataForm),
|
|
1879
|
-
},
|
|
1880
|
-
],
|
|
1881
|
-
},
|
|
1882
|
-
},
|
|
1883
|
-
}),
|
|
1884
|
-
nodes.widget({
|
|
1885
|
-
typeKey: "command-toolbar",
|
|
1886
|
-
id: PHI_ASSET_INSPECTOR_WIDGET_IDS.widgetMediaInspectorCommands,
|
|
1887
|
-
parentLayoutNodeId: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaInspectorFooter,
|
|
1888
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1889
|
-
sortOrder: 0,
|
|
1890
|
-
label: "dev media inspector commands",
|
|
1891
|
-
config: {
|
|
1892
|
-
key: "media-inspector-commands",
|
|
1893
|
-
compact: false,
|
|
1894
|
-
wrap: true,
|
|
1895
|
-
showLabels: true,
|
|
1896
|
-
controlSize: "medium",
|
|
1897
|
-
buttons: [
|
|
1898
|
-
{ key: "save", emits: [{ capabilityId: "command", value: "save" }], actionKey: "save", buttonType: "primary" },
|
|
1899
|
-
],
|
|
1900
|
-
signalRoutes: {
|
|
1901
|
-
emits: [{
|
|
1902
|
-
routeKey: "builder-media-inspector-command",
|
|
1903
|
-
capabilityId: "command",
|
|
1904
|
-
scope: "area",
|
|
1905
|
-
channel: "assetInspectorCommand",
|
|
1906
|
-
action: "activate",
|
|
1907
|
-
valueType: "string",
|
|
1908
|
-
receiver: createPhiAssetControllerAddress(),
|
|
1909
|
-
}],
|
|
1910
|
-
listens: [{
|
|
1911
|
-
routeKey: "builder-media-inspector-save-loading",
|
|
1912
|
-
capabilityId: "loading",
|
|
1913
|
-
scope: "page",
|
|
1914
|
-
channel: "submitting",
|
|
1915
|
-
action: "change",
|
|
1916
|
-
valueType: "boolean",
|
|
1917
|
-
receiver: createPhiSignalSubcontrolAddress("cms", PHI_ASSET_INSPECTOR_WIDGET_IDS.widgetMediaInspectorCommands, "save"),
|
|
1918
|
-
}],
|
|
1919
|
-
},
|
|
1920
|
-
},
|
|
1921
|
-
}),
|
|
1922
|
-
nodes.widget({
|
|
1923
|
-
typeKey: "asset-focal-rect",
|
|
1924
|
-
id: PHI_ASSET_INSPECTOR_WIDGET_IDS.widgetMediaFocalRect,
|
|
1925
|
-
parentLayoutNodeId: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaFocalRectBody,
|
|
1926
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1927
|
-
sortOrder: 0,
|
|
1928
|
-
label: "Asset focal rectangle editor",
|
|
1929
|
-
config: {
|
|
1930
|
-
signalRoutes: {
|
|
1931
|
-
emits: [
|
|
1932
|
-
{
|
|
1933
|
-
routeKey: "builder-media-focal-rect-field-change",
|
|
1934
|
-
capabilityId: "focalRectChange",
|
|
1935
|
-
scope: "page",
|
|
1936
|
-
channel: "field",
|
|
1937
|
-
action: "change",
|
|
1938
|
-
valueType: "json",
|
|
1939
|
-
valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.formField,
|
|
1940
|
-
receiver: createPhiRuntimeFormControllerAddress(`widget-${PHI_ASSET_INSPECTOR_WIDGET_IDS.widgetMediaMetadataForm}`),
|
|
1941
|
-
},
|
|
1942
|
-
{
|
|
1943
|
-
routeKey: "builder-media-focal-rect-close-request",
|
|
1944
|
-
capabilityId: "close",
|
|
1945
|
-
scope: "page",
|
|
1946
|
-
channel: "focalRectDialog",
|
|
1947
|
-
action: "close",
|
|
1948
|
-
valueType: "none",
|
|
1949
|
-
receiver: createPhiSignalAddress("cms", PHI_ASSET_INSPECTOR_OVERLAY_IDS.overlayMediaFocalRect),
|
|
1950
|
-
},
|
|
1951
|
-
],
|
|
1952
|
-
listens: [{
|
|
1953
|
-
routeKey: "builder-media-focal-rect-command-receive",
|
|
1954
|
-
capabilityId: "command",
|
|
1955
|
-
scope: "page",
|
|
1956
|
-
channel: "focalRectCommand",
|
|
1957
|
-
action: "activate",
|
|
1958
|
-
valueType: "string",
|
|
1959
|
-
receiver: createPhiSignalAddress("cms", PHI_ASSET_INSPECTOR_WIDGET_IDS.widgetMediaFocalRect),
|
|
1960
|
-
}],
|
|
1961
|
-
},
|
|
1962
|
-
},
|
|
1963
|
-
}),
|
|
1964
|
-
nodes.widget({
|
|
1965
|
-
typeKey: "form",
|
|
1966
|
-
id: PHI_ASSET_INSPECTOR_WIDGET_IDS.widgetMediaFolderCreateForm,
|
|
1967
|
-
parentLayoutNodeId: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaFolderCreateBody,
|
|
1968
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
1969
|
-
sortOrder: 0,
|
|
1970
|
-
label: "Create asset folder form",
|
|
1971
|
-
config: {
|
|
1972
|
-
formId: PHI_ASSET_FOLDER_FORM_ID,
|
|
1973
|
-
formConfig: {},
|
|
1974
|
-
execution: { mode: "handler" },
|
|
1975
|
-
source: null,
|
|
1976
|
-
signalRoutes: {
|
|
1977
|
-
emits: [
|
|
1978
|
-
{
|
|
1979
|
-
routeKey: "builder-media-folder-submit-success",
|
|
1980
|
-
capabilityId: "submitSuccess",
|
|
1981
|
-
scope: "area",
|
|
1982
|
-
channel: "assetFolderSubmit",
|
|
1983
|
-
action: "activate",
|
|
1984
|
-
valueType: "json",
|
|
1985
|
-
valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.formResult,
|
|
1986
|
-
receiver: createPhiAssetControllerAddress(),
|
|
1987
|
-
},
|
|
1988
|
-
{
|
|
1989
|
-
routeKey: "builder-media-folder-submitting",
|
|
1990
|
-
capabilityId: "submitting",
|
|
1991
|
-
scope: "area",
|
|
1992
|
-
channel: "assetFolderSubmitting",
|
|
1993
|
-
action: "change",
|
|
1994
|
-
valueType: "boolean",
|
|
1995
|
-
receiver: createPhiAssetControllerAddress(),
|
|
1996
|
-
},
|
|
1997
|
-
],
|
|
1998
|
-
listens: [
|
|
1999
|
-
{
|
|
2000
|
-
routeKey: "builder-media-folder-submit",
|
|
2001
|
-
capabilityId: "submit",
|
|
2002
|
-
scope: "page",
|
|
2003
|
-
channel: "submit",
|
|
2004
|
-
action: "activate",
|
|
2005
|
-
valueType: "none",
|
|
2006
|
-
receiver: createPhiSignalAddress("cms", PHI_ASSET_INSPECTOR_WIDGET_IDS.widgetMediaFolderCreateForm),
|
|
2007
|
-
},
|
|
2008
|
-
{
|
|
2009
|
-
routeKey: "builder-media-folder-reset",
|
|
2010
|
-
capabilityId: "reset",
|
|
2011
|
-
scope: "page",
|
|
2012
|
-
channel: "reset",
|
|
2013
|
-
action: "activate",
|
|
2014
|
-
valueType: "none",
|
|
2015
|
-
receiver: createPhiSignalAddress("cms", PHI_ASSET_INSPECTOR_WIDGET_IDS.widgetMediaFolderCreateForm),
|
|
2016
|
-
},
|
|
2017
|
-
],
|
|
2018
|
-
},
|
|
2019
|
-
},
|
|
2020
|
-
}),
|
|
2021
|
-
nodes.widget({
|
|
2022
|
-
typeKey: "command-toolbar",
|
|
2023
|
-
id: PHI_ASSET_INSPECTOR_WIDGET_IDS.widgetMediaFolderCreateCommands,
|
|
2024
|
-
parentLayoutNodeId: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaFolderCreateFooter,
|
|
2025
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
2026
|
-
sortOrder: 0,
|
|
2027
|
-
label: "Create asset folder commands",
|
|
2028
|
-
config: {
|
|
2029
|
-
key: "media-folder-create-commands",
|
|
2030
|
-
compact: false,
|
|
2031
|
-
wrap: true,
|
|
2032
|
-
showLabels: true,
|
|
2033
|
-
controlSize: "medium",
|
|
2034
|
-
buttons: [
|
|
2035
|
-
{ key: "cancel", emits: [{ capabilityId: "command", value: "cancel" }], actionKey: "cancel" },
|
|
2036
|
-
{ key: "save", emits: [{ capabilityId: "command", value: "save" }], actionKey: "save", buttonType: "primary" },
|
|
2037
|
-
],
|
|
2038
|
-
signalRoutes: {
|
|
2039
|
-
emits: [{
|
|
2040
|
-
routeKey: "builder-media-folder-command",
|
|
2041
|
-
capabilityId: "command",
|
|
2042
|
-
scope: "area",
|
|
2043
|
-
channel: "assetFolderCommand",
|
|
2044
|
-
action: "activate",
|
|
2045
|
-
valueType: "string",
|
|
2046
|
-
receiver: createPhiAssetControllerAddress(),
|
|
2047
|
-
}],
|
|
2048
|
-
listens: [{
|
|
2049
|
-
routeKey: "builder-media-folder-save-loading",
|
|
2050
|
-
capabilityId: "loading",
|
|
2051
|
-
scope: "page",
|
|
2052
|
-
channel: "submitting",
|
|
2053
|
-
action: "change",
|
|
2054
|
-
valueType: "boolean",
|
|
2055
|
-
receiver: createPhiSignalSubcontrolAddress("cms", PHI_ASSET_INSPECTOR_WIDGET_IDS.widgetMediaFolderCreateCommands, "save"),
|
|
2056
|
-
}],
|
|
2057
|
-
},
|
|
2058
|
-
},
|
|
2059
|
-
}),
|
|
2060
|
-
nodes.widget({
|
|
2061
|
-
typeKey: "command-toolbar",
|
|
2062
|
-
id: PHI_ASSET_INSPECTOR_WIDGET_IDS.widgetMediaFocalRectCommands,
|
|
2063
|
-
parentLayoutNodeId: PHI_ASSET_INSPECTOR_LAYOUT_IDS.layoutMediaFocalRectFooter,
|
|
2064
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
2065
|
-
sortOrder: 0,
|
|
2066
|
-
label: "Asset focal rectangle commands",
|
|
2067
|
-
config: {
|
|
2068
|
-
key: "media-focal-rect-commands",
|
|
2069
|
-
compact: false,
|
|
2070
|
-
wrap: true,
|
|
2071
|
-
showLabels: true,
|
|
2072
|
-
controlSize: "medium",
|
|
2073
|
-
buttons: [
|
|
2074
|
-
{ key: "reset", emits: [{ capabilityId: "command", value: "reset" }], actionKey: "reset" },
|
|
2075
|
-
{ key: "clear", emits: [{ capabilityId: "command", value: "clear" }], actionKey: "clear" },
|
|
2076
|
-
{ key: "cancel", emits: [{ capabilityId: "command", value: "cancel" }], actionKey: "cancel" },
|
|
2077
|
-
{ key: "apply", emits: [{ capabilityId: "command", value: "apply" }], actionKey: "apply", buttonType: "primary" },
|
|
2078
|
-
],
|
|
2079
|
-
signalRoutes: {
|
|
2080
|
-
emits: [{
|
|
2081
|
-
routeKey: "builder-media-focal-rect-command",
|
|
2082
|
-
capabilityId: "command",
|
|
2083
|
-
scope: "page",
|
|
2084
|
-
channel: "focalRectCommand",
|
|
2085
|
-
action: "activate",
|
|
2086
|
-
valueType: "string",
|
|
2087
|
-
receiver: createPhiSignalAddress("cms", PHI_ASSET_INSPECTOR_WIDGET_IDS.widgetMediaFocalRect),
|
|
2088
|
-
}],
|
|
2089
|
-
},
|
|
2090
|
-
},
|
|
2091
|
-
}),
|
|
2092
|
-
]
|
|
2093
|
-
: []),
|
|
2094
|
-
...(isStructurePage
|
|
2095
|
-
? [
|
|
2096
|
-
nodes.widget({
|
|
2097
|
-
typeKey: "switch",
|
|
2098
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetStructureSiderFullHeightSwitch,
|
|
2099
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutWorkspaceHeader,
|
|
2100
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Left,
|
|
2101
|
-
sortOrder: 0,
|
|
2102
|
-
label: "Sider full height switch",
|
|
2103
|
-
config: {
|
|
2104
|
-
label: "Sider full height",
|
|
2105
|
-
defaultChecked: true,
|
|
2106
|
-
key: "dev-structure-sider-full-height-switch",
|
|
2107
|
-
signalRoutes: {
|
|
2108
|
-
emits: [
|
|
2109
|
-
{
|
|
2110
|
-
routeKey: "shell-sider-layout-change",
|
|
2111
|
-
capabilityId: "change",
|
|
2112
|
-
scope: "area",
|
|
2113
|
-
channel: "layout",
|
|
2114
|
-
action: "change",
|
|
2115
|
-
valueType: "boolean",
|
|
2116
|
-
receiver: createPhiBuilderControllerAddress(),
|
|
2117
|
-
},
|
|
2118
|
-
],
|
|
2119
|
-
listens: [
|
|
2120
|
-
{
|
|
2121
|
-
routeKey: "shell-sider-layout-feedback",
|
|
2122
|
-
capabilityId: "change",
|
|
2123
|
-
scope: "area",
|
|
2124
|
-
channel: "layout",
|
|
2125
|
-
action: "change",
|
|
2126
|
-
valueType: "boolean",
|
|
2127
|
-
receiver: "broadcast",
|
|
2128
|
-
},
|
|
2129
|
-
],
|
|
2130
|
-
},
|
|
2131
|
-
},
|
|
2132
|
-
}),
|
|
2133
|
-
/*
|
|
2134
|
-
* Where the Area's `/` goes.
|
|
2135
|
-
*
|
|
2136
|
-
* A plain Select, in the Area settings dialog rather than in the header it used to share
|
|
2137
|
-
* with the Sider switch: it is a statement about the Area being edited rather than about
|
|
2138
|
-
* anything on the canvas, and the header is where the canvas is worked on. The choices are
|
|
2139
|
-
* the Area's own registered Pages plus the two answers that are not a Page, and what a
|
|
2140
|
-
* choice stores is a Page reference rather than a path.
|
|
2141
|
-
*/
|
|
2142
|
-
nodes.widget({
|
|
2143
|
-
typeKey: "select-box",
|
|
2144
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetAreaRootRoute,
|
|
2145
|
-
parentLayoutNodeId: PHI_BUILDER_AREA_SETTINGS_LAYOUT_IDS.areaSettingsFields,
|
|
2146
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[0].slotIndex,
|
|
2147
|
-
sortOrder: 0,
|
|
2148
|
-
label: "Area root route select",
|
|
2149
|
-
config: {
|
|
2150
|
-
key: "areaRootRoute",
|
|
2151
|
-
size: { width: "100%" },
|
|
2152
|
-
label: labels.rootRoute.title,
|
|
2153
|
-
placeholder: labels.rootRoute.title,
|
|
2154
|
-
options: [],
|
|
2155
|
-
optionsProvider: {
|
|
2156
|
-
providerKey: PHI_BUILDER_RUNTIME_DATA_PROVIDER_KEYS.areaRootRoute,
|
|
2157
|
-
params: {
|
|
2158
|
-
automaticLabel: labels.rootRoute.automatic,
|
|
2159
|
-
landingLabel: labels.rootRoute.landing,
|
|
2160
|
-
},
|
|
2161
|
-
},
|
|
2162
|
-
signalRoutes: {
|
|
2163
|
-
emits: [
|
|
2164
|
-
{
|
|
2165
|
-
routeKey: "builder-area-root-route-change",
|
|
2166
|
-
capabilityId: "change",
|
|
2167
|
-
scope: "area",
|
|
2168
|
-
channel: "rootRoute",
|
|
2169
|
-
action: "change",
|
|
2170
|
-
valueType: "string",
|
|
2171
|
-
receiver: createPhiBuilderControllerAddress(),
|
|
2172
|
-
},
|
|
2173
|
-
],
|
|
2174
|
-
},
|
|
2175
|
-
},
|
|
2176
|
-
}),
|
|
2177
|
-
/*
|
|
2178
|
-
* Which landing stands at `/`, when a Module offers one.
|
|
2179
|
-
*
|
|
2180
|
-
* The other half of the Select beside it: that one says what the root does, this one says
|
|
2181
|
-
* which of the applications for the slot is answered. It is disabled until the first says
|
|
2182
|
-
* "landing", and it lists offers rather than Pages -- a Module that declares `/` is
|
|
2183
|
-
* applying, and only the ones that say they mean it are candidates. Empty is an answer
|
|
2184
|
-
* too: nobody offers one here, and the root then draws the empty tree /pages authors.
|
|
2185
|
-
*/
|
|
2186
|
-
nodes.widget({
|
|
2187
|
-
typeKey: "select-box",
|
|
2188
|
-
id: PHI_BUILDER_SHELLS_WIDGET_IDS.widgetAreaLandingPage,
|
|
2189
|
-
parentLayoutNodeId: PHI_BUILDER_AREA_SETTINGS_LAYOUT_IDS.areaSettingsFields,
|
|
2190
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[1].slotIndex,
|
|
2191
|
-
sortOrder: 1,
|
|
2192
|
-
label: "Area landing page select",
|
|
2193
|
-
config: {
|
|
2194
|
-
key: "areaLandingPage",
|
|
2195
|
-
size: { width: "100%" },
|
|
2196
|
-
label: labels.rootRoute.landingPage,
|
|
2197
|
-
placeholder: labels.rootRoute.landingPageEmpty,
|
|
2198
|
-
allowClear: true,
|
|
2199
|
-
options: [],
|
|
2200
|
-
optionsProvider: {
|
|
2201
|
-
providerKey: PHI_BUILDER_RUNTIME_DATA_PROVIDER_KEYS.landingPage,
|
|
2202
|
-
params: {
|
|
2203
|
-
adoptedLabel: labels.rootRoute.landingPageAdopted,
|
|
2204
|
-
emptyLabel: labels.rootRoute.landingPageEmpty,
|
|
2205
|
-
},
|
|
2206
|
-
},
|
|
2207
|
-
signalRoutes: {
|
|
2208
|
-
emits: [
|
|
2209
|
-
{
|
|
2210
|
-
routeKey: "builder-area-landing-page-change",
|
|
2211
|
-
capabilityId: "change",
|
|
2212
|
-
scope: "area",
|
|
2213
|
-
channel: "landingPage",
|
|
2214
|
-
action: "change",
|
|
2215
|
-
valueType: "string",
|
|
2216
|
-
receiver: createPhiBuilderControllerAddress(),
|
|
2217
|
-
},
|
|
2218
|
-
],
|
|
2219
|
-
listens: [
|
|
2220
|
-
{
|
|
2221
|
-
routeKey: "builder-area-landing-page-enabled",
|
|
2222
|
-
capabilityId: "enabled",
|
|
2223
|
-
scope: "page",
|
|
2224
|
-
channel: "enabled",
|
|
2225
|
-
action: "change",
|
|
2226
|
-
valueType: "boolean",
|
|
2227
|
-
receiver: createPhiSignalAddress("cms", PHI_BUILDER_SHELLS_WIDGET_IDS.widgetAreaLandingPage),
|
|
2228
|
-
},
|
|
2229
|
-
],
|
|
2230
|
-
},
|
|
2231
|
-
},
|
|
2232
|
-
}),
|
|
2233
|
-
/*
|
|
2234
|
-
* What the Area writes into the title of every Page it draws.
|
|
2235
|
-
*
|
|
2236
|
-
* Two fields under their own heading, above the search-engine switches and separate from
|
|
2237
|
-
* them, because they are a different question answered by different Areas: the switches are
|
|
2238
|
-
* about Public being found, these are about what stands in the browser tab, and the Admin
|
|
2239
|
-
* wants its own answer to that. Both may be left alone -- an Area that says nothing here
|
|
2240
|
-
* still gets titles -- which is why the placeholders state the resting value rather than
|
|
2241
|
-
* repeating the label.
|
|
2242
|
-
*/
|
|
2243
|
-
nodes.widget({
|
|
2244
|
-
typeKey: "simple-text",
|
|
2245
|
-
id: PHI_BUILDER_AREA_SETTINGS_WIDGET_IDS.areaSettingsTitlesTitle,
|
|
2246
|
-
parentLayoutNodeId: PHI_BUILDER_AREA_SETTINGS_LAYOUT_IDS.areaSettingsFields,
|
|
2247
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[2].slotIndex,
|
|
2248
|
-
sortOrder: 2,
|
|
2249
|
-
label: "Area settings titles title",
|
|
2250
|
-
config: {
|
|
2251
|
-
text: labels.areaSettings.titlesTitle,
|
|
2252
|
-
strong: true,
|
|
2253
|
-
},
|
|
2254
|
-
}),
|
|
2255
|
-
...[
|
|
2256
|
-
[
|
|
2257
|
-
PHI_BUILDER_SHELLS_WIDGET_IDS.widgetAreaTitleTemplate,
|
|
2258
|
-
"areaTitleTemplate",
|
|
2259
|
-
"titleTemplate",
|
|
2260
|
-
labels.areaSettings.titleTemplate,
|
|
2261
|
-
labels.areaSettings.titleTemplatePlaceholder,
|
|
2262
|
-
3,
|
|
2263
|
-
],
|
|
2264
|
-
[
|
|
2265
|
-
PHI_BUILDER_SHELLS_WIDGET_IDS.widgetAreaDefaultTitle,
|
|
2266
|
-
"areaDefaultTitle",
|
|
2267
|
-
"defaultTitle",
|
|
2268
|
-
labels.areaSettings.defaultTitle,
|
|
2269
|
-
labels.areaSettings.defaultTitlePlaceholder,
|
|
2270
|
-
4,
|
|
2271
|
-
],
|
|
2272
|
-
].map(([id, key, channel, label, placeholder, sortOrder]) => nodes.widget({
|
|
2273
|
-
typeKey: "input",
|
|
2274
|
-
id,
|
|
2275
|
-
parentLayoutNodeId: PHI_BUILDER_AREA_SETTINGS_LAYOUT_IDS.areaSettingsFields,
|
|
2276
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[sortOrder].slotIndex,
|
|
2277
|
-
sortOrder,
|
|
2278
|
-
label: `Area settings ${key}`,
|
|
2279
|
-
config: {
|
|
2280
|
-
key,
|
|
2281
|
-
label,
|
|
2282
|
-
placeholder,
|
|
2283
|
-
size: { width: "100%" },
|
|
2284
|
-
text: "",
|
|
2285
|
-
inputType: "text",
|
|
2286
|
-
allowClear: true,
|
|
2287
|
-
trimEmittedValue: true,
|
|
2288
|
-
/*
|
|
2289
|
-
* Long enough that a word is one edit rather than five, short enough that the answer
|
|
2290
|
-
* is in the draft before anyone reaches for Save. Without it every keystroke would be
|
|
2291
|
-
* its own entry in the undo stack.
|
|
2292
|
-
*/
|
|
2293
|
-
debounceMs: 400,
|
|
2294
|
-
signalRoutes: {
|
|
2295
|
-
emits: [{
|
|
2296
|
-
routeKey: `builder-${channel}-change`,
|
|
2297
|
-
capabilityId: "change",
|
|
2298
|
-
scope: "area",
|
|
2299
|
-
channel,
|
|
2300
|
-
action: "change",
|
|
2301
|
-
valueType: "string",
|
|
2302
|
-
receiver: createPhiBuilderControllerAddress(),
|
|
2303
|
-
}],
|
|
2304
|
-
listens: [{
|
|
2305
|
-
routeKey: `builder-${channel}-value`,
|
|
2306
|
-
capabilityId: "change",
|
|
2307
|
-
scope: "page",
|
|
2308
|
-
channel: "titleValue",
|
|
2309
|
-
action: "change",
|
|
2310
|
-
valueType: "string",
|
|
2311
|
-
receiver: createPhiSignalAddress("cms", id),
|
|
2312
|
-
}],
|
|
2313
|
-
},
|
|
2314
|
-
},
|
|
2315
|
-
})),
|
|
2316
|
-
/*
|
|
2317
|
-
* What the Area says about being found, and who may say it.
|
|
2318
|
-
*
|
|
2319
|
-
* Two switches under a heading, because they are a different subject from the root route
|
|
2320
|
-
* and a form that runs them together would read as one. Both are shown in every Area and
|
|
2321
|
-
* answerable in none but Public -- the controller says which by signal, as it does for the
|
|
2322
|
-
* landing Select -- and outside Public they stand at what is actually the case.
|
|
2323
|
-
*/
|
|
2324
|
-
nodes.widget({
|
|
2325
|
-
typeKey: "simple-text",
|
|
2326
|
-
id: PHI_BUILDER_AREA_SETTINGS_WIDGET_IDS.areaSettingsSeoTitle,
|
|
2327
|
-
parentLayoutNodeId: PHI_BUILDER_AREA_SETTINGS_LAYOUT_IDS.areaSettingsFields,
|
|
2328
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[5].slotIndex,
|
|
2329
|
-
sortOrder: 5,
|
|
2330
|
-
label: "Area settings SEO title",
|
|
2331
|
-
config: {
|
|
2332
|
-
text: labels.areaSettings.seoTitle,
|
|
2333
|
-
strong: true,
|
|
2334
|
-
},
|
|
2335
|
-
}),
|
|
2336
|
-
...[
|
|
2337
|
-
[
|
|
2338
|
-
PHI_BUILDER_SHELLS_WIDGET_IDS.widgetAreaSeoIndex,
|
|
2339
|
-
"areaMetaIndex",
|
|
2340
|
-
"seoIndex",
|
|
2341
|
-
labels.areaSettings.seoIndex,
|
|
2342
|
-
PHI_AREA_META_PUBLIC_DEFAULTS.index,
|
|
2343
|
-
6,
|
|
2344
|
-
],
|
|
2345
|
-
[
|
|
2346
|
-
PHI_BUILDER_SHELLS_WIDGET_IDS.widgetAreaSeoSitemap,
|
|
2347
|
-
"areaMetaSitemap",
|
|
2348
|
-
"seoSitemap",
|
|
2349
|
-
labels.areaSettings.seoSitemap,
|
|
2350
|
-
PHI_AREA_META_PUBLIC_DEFAULTS.sitemap,
|
|
2351
|
-
7,
|
|
2352
|
-
],
|
|
2353
|
-
].map(([id, key, channel, label, defaultChecked, sortOrder]) => nodes.widget({
|
|
2354
|
-
typeKey: "switch",
|
|
2355
|
-
id,
|
|
2356
|
-
parentLayoutNodeId: PHI_BUILDER_AREA_SETTINGS_LAYOUT_IDS.areaSettingsFields,
|
|
2357
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[sortOrder].slotIndex,
|
|
2358
|
-
sortOrder,
|
|
2359
|
-
label: `Area settings ${key}`,
|
|
2360
|
-
config: {
|
|
2361
|
-
key,
|
|
2362
|
-
label,
|
|
2363
|
-
/*
|
|
2364
|
-
* A switch is intrinsically sized, and in a form that is exactly wrong: the row has
|
|
2365
|
-
* to be as wide as the others or its label column is a third of nothing. Said as
|
|
2366
|
-
* the block size it is, rather than by teaching the Control about forms.
|
|
2367
|
-
*/
|
|
2368
|
-
size: { width: "100%" },
|
|
2369
|
-
/*
|
|
2370
|
-
* The resting state, and only that: what the Area actually says arrives by signal
|
|
2371
|
-
* before anyone sees the dialog. It matches the reader's default so the two never
|
|
2372
|
-
* disagree in the moment between the render and the controller's first word.
|
|
2373
|
-
*/
|
|
2374
|
-
defaultChecked,
|
|
2375
|
-
signalRoutes: {
|
|
2376
|
-
emits: [{
|
|
2377
|
-
routeKey: `builder-${channel}-change`,
|
|
2378
|
-
capabilityId: "change",
|
|
2379
|
-
scope: "area",
|
|
2380
|
-
channel,
|
|
2381
|
-
action: "change",
|
|
2382
|
-
valueType: "boolean",
|
|
2383
|
-
receiver: createPhiBuilderControllerAddress(),
|
|
2384
|
-
}],
|
|
2385
|
-
listens: [{
|
|
2386
|
-
routeKey: `builder-${channel}-value`,
|
|
2387
|
-
capabilityId: "change",
|
|
2388
|
-
scope: "page",
|
|
2389
|
-
channel: "seoValue",
|
|
2390
|
-
action: "change",
|
|
2391
|
-
valueType: "boolean",
|
|
2392
|
-
receiver: createPhiSignalAddress("cms", id),
|
|
2393
|
-
}, {
|
|
2394
|
-
routeKey: `builder-${channel}-enabled`,
|
|
2395
|
-
capabilityId: "enabled",
|
|
2396
|
-
scope: "page",
|
|
2397
|
-
channel: "enabled",
|
|
2398
|
-
action: "change",
|
|
2399
|
-
valueType: "boolean",
|
|
2400
|
-
receiver: createPhiSignalAddress("cms", id),
|
|
2401
|
-
}],
|
|
2402
|
-
},
|
|
2403
|
-
},
|
|
2404
|
-
})),
|
|
2405
|
-
/*
|
|
2406
|
-
* Where the header's third column went.
|
|
2407
|
-
*
|
|
2408
|
-
* One button rather than the two Selects that used to stand here: the header is about the
|
|
2409
|
-
* canvas, and everything the Area says about itself is one click away instead of spread
|
|
2410
|
-
* across a row that grew every time the Area gained a sentence.
|
|
2411
|
-
*/
|
|
2412
|
-
nodes.widget({
|
|
2413
|
-
typeKey: "command-toolbar",
|
|
2414
|
-
id: PHI_BUILDER_AREA_SETTINGS_WIDGET_IDS.areaSettingsAction,
|
|
2415
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutWorkspaceHeader,
|
|
2416
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Right,
|
|
2417
|
-
sortOrder: 0,
|
|
2418
|
-
label: "dev area settings action",
|
|
2419
|
-
config: {
|
|
2420
|
-
key: "areaSettingsAction",
|
|
2421
|
-
compact: true,
|
|
2422
|
-
wrap: false,
|
|
2423
|
-
showLabels: true,
|
|
2424
|
-
buttons: [{
|
|
2425
|
-
key: "areaSettings",
|
|
2426
|
-
emits: [{ capabilityId: "command", value: "open" }],
|
|
2427
|
-
label: labels.areaSettings.action,
|
|
2428
|
-
tooltip: labels.areaSettings.action,
|
|
2429
|
-
icon: "setting",
|
|
2430
|
-
}],
|
|
2431
|
-
signalRoutes: {
|
|
2432
|
-
emits: [{
|
|
2433
|
-
routeKey: "builder-area-settings-open",
|
|
2434
|
-
capabilityId: "command",
|
|
2435
|
-
scope: "area",
|
|
2436
|
-
channel: "areaSettings",
|
|
2437
|
-
action: "activate",
|
|
2438
|
-
valueType: "string",
|
|
2439
|
-
receiver: createPhiBuilderControllerAddress(),
|
|
2440
|
-
}],
|
|
2441
|
-
},
|
|
2442
|
-
},
|
|
2443
|
-
}),
|
|
2444
|
-
nodes.widget({
|
|
2445
|
-
typeKey: "command-toolbar",
|
|
2446
|
-
id: PHI_BUILDER_AREA_SETTINGS_WIDGET_IDS.areaSettingsCommands,
|
|
2447
|
-
parentLayoutNodeId: PHI_BUILDER_AREA_SETTINGS_LAYOUT_IDS.areaSettingsFooter,
|
|
2448
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
2449
|
-
sortOrder: 0,
|
|
2450
|
-
label: "Area settings commands",
|
|
2451
|
-
config: {
|
|
2452
|
-
key: "area-settings-commands",
|
|
2453
|
-
compact: false,
|
|
2454
|
-
wrap: true,
|
|
2455
|
-
showLabels: true,
|
|
2456
|
-
controlSize: "medium",
|
|
2457
|
-
/*
|
|
2458
|
-
* One button, and it says "done" rather than "save".
|
|
2459
|
-
*
|
|
2460
|
-
* Every control in here writes into the draft the moment it is answered, exactly as it
|
|
2461
|
-
* did while it stood in the header, so there is nothing left to confirm -- and a Save
|
|
2462
|
-
* beside controls that already saved would be a second, wrong sentence about when a
|
|
2463
|
-
* change takes effect.
|
|
2464
|
-
*/
|
|
2465
|
-
buttons: [{
|
|
2466
|
-
key: "close",
|
|
2467
|
-
emits: [{ capabilityId: "command", value: "close" }],
|
|
2468
|
-
actionKey: "save",
|
|
2469
|
-
buttonType: "primary",
|
|
2470
|
-
label: labels.areaSettings.close,
|
|
2471
|
-
}],
|
|
2472
|
-
signalRoutes: {
|
|
2473
|
-
emits: [{
|
|
2474
|
-
routeKey: "builder-area-settings-close",
|
|
2475
|
-
capabilityId: "command",
|
|
2476
|
-
scope: "area",
|
|
2477
|
-
channel: "areaSettings",
|
|
2478
|
-
action: "activate",
|
|
2479
|
-
valueType: "string",
|
|
2480
|
-
receiver: createPhiBuilderControllerAddress(),
|
|
2481
|
-
}],
|
|
2482
|
-
},
|
|
2483
|
-
},
|
|
2484
|
-
}),
|
|
2485
|
-
nodes.widget({
|
|
2486
|
-
typeKey: "command-toolbar",
|
|
2487
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetToolbar,
|
|
2488
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderBottom,
|
|
2489
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Middle,
|
|
2490
|
-
sortOrder: 0,
|
|
2491
|
-
label: "dev structure toolbar",
|
|
2492
|
-
config: builderCommandToolbarConfig,
|
|
2493
|
-
}),
|
|
2494
|
-
]
|
|
2495
|
-
: isPagesPage
|
|
2496
|
-
? [
|
|
2497
|
-
nodes.widget({
|
|
2498
|
-
typeKey: "cascader",
|
|
2499
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetPagesHeaderSelector,
|
|
2500
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutWorkspaceHeader,
|
|
2501
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Left,
|
|
2502
|
-
sortOrder: 0,
|
|
2503
|
-
label: "dev pages select",
|
|
2504
|
-
config: {
|
|
2505
|
-
key: "pageSelect",
|
|
2506
|
-
signalRoutes: {
|
|
2507
|
-
emits: [
|
|
2508
|
-
{
|
|
2509
|
-
routeKey: "builder-page-path-change",
|
|
2510
|
-
capabilityId: "change",
|
|
2511
|
-
scope: "page",
|
|
2512
|
-
channel: "path",
|
|
2513
|
-
action: "change",
|
|
2514
|
-
valueType: "path",
|
|
2515
|
-
receiver: "broadcast",
|
|
2516
|
-
},
|
|
2517
|
-
],
|
|
2518
|
-
},
|
|
2519
|
-
placeholder: labels.pages.selectPage,
|
|
2520
|
-
optionsProvider: {
|
|
2521
|
-
providerKey: PHI_BUILDER_RUNTIME_DATA_PROVIDER_KEYS.builderPages,
|
|
2522
|
-
},
|
|
2523
|
-
options: [],
|
|
2524
|
-
},
|
|
2525
|
-
}),
|
|
2526
|
-
nodes.widget({
|
|
2527
|
-
typeKey: "input",
|
|
2528
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetPagesHeaderTitle,
|
|
2529
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutWorkspaceHeader,
|
|
2530
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Middle,
|
|
2531
|
-
sortOrder: 0,
|
|
2532
|
-
label: "Page title input",
|
|
2533
|
-
config: {
|
|
2534
|
-
text: "",
|
|
2535
|
-
placeholder: labels.pages.form.title,
|
|
2536
|
-
key: "pageTitle",
|
|
2537
|
-
signalRoutes: {
|
|
2538
|
-
listens: [
|
|
2539
|
-
{
|
|
2540
|
-
routeKey: "builder-current-page-title",
|
|
2541
|
-
capabilityId: "change",
|
|
2542
|
-
scope: "page",
|
|
2543
|
-
channel: "pageTitle",
|
|
2544
|
-
action: "change",
|
|
2545
|
-
valueType: "string",
|
|
2546
|
-
receiver: "broadcast",
|
|
2547
|
-
},
|
|
2548
|
-
],
|
|
2549
|
-
},
|
|
2550
|
-
inputType: "text",
|
|
2551
|
-
allowClear: false,
|
|
2552
|
-
disabled: true,
|
|
2553
|
-
},
|
|
2554
|
-
}),
|
|
2555
|
-
nodes.widget({
|
|
2556
|
-
typeKey: "command-toolbar",
|
|
2557
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetPagesMetaToolbar,
|
|
2558
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutWorkspaceHeader,
|
|
2559
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Right,
|
|
2560
|
-
sortOrder: 0,
|
|
2561
|
-
label: "dev pages meta toolbar",
|
|
2562
|
-
config: {
|
|
2563
|
-
key: "pageMetaToolbar",
|
|
2564
|
-
signalRoutes: {
|
|
2565
|
-
emits: [
|
|
2566
|
-
{
|
|
2567
|
-
routeKey: "builder-pages-command",
|
|
2568
|
-
capabilityId: "command",
|
|
2569
|
-
scope: "area",
|
|
2570
|
-
channel: "command",
|
|
2571
|
-
action: "activate",
|
|
2572
|
-
valueType: "string",
|
|
2573
|
-
receiver: createPhiBuilderControllerAddress(),
|
|
2574
|
-
},
|
|
2575
|
-
],
|
|
2576
|
-
},
|
|
2577
|
-
compact: true,
|
|
2578
|
-
wrap: false,
|
|
2579
|
-
showLabels: true,
|
|
2580
|
-
buttons: [
|
|
2581
|
-
{
|
|
2582
|
-
key: "createPage",
|
|
2583
|
-
emits: [{ capabilityId: "command", value: "createPage" }],
|
|
2584
|
-
label: labels.pages.newPage,
|
|
2585
|
-
icon: "plus",
|
|
2586
|
-
},
|
|
2587
|
-
{
|
|
2588
|
-
key: "editPageMeta",
|
|
2589
|
-
emits: [{ capabilityId: "command", value: "editPageMeta" }],
|
|
2590
|
-
label: labels.pages.pageMeta,
|
|
2591
|
-
icon: "edit",
|
|
2592
|
-
},
|
|
2593
|
-
{
|
|
2594
|
-
key: "deletePage",
|
|
2595
|
-
emits: [{ capabilityId: "command", value: "deletePage" }],
|
|
2596
|
-
label: labels.pages.deletePage,
|
|
2597
|
-
tooltip: labels.pages.deletePage,
|
|
2598
|
-
icon: "delete",
|
|
2599
|
-
display: "icon",
|
|
2600
|
-
danger: true,
|
|
2601
|
-
},
|
|
2602
|
-
],
|
|
2603
|
-
},
|
|
2604
|
-
}),
|
|
2605
|
-
nodes.widget({
|
|
2606
|
-
typeKey: "command-toolbar",
|
|
2607
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetToolbar,
|
|
2608
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderBottom,
|
|
2609
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Middle,
|
|
2610
|
-
sortOrder: 0,
|
|
2611
|
-
label: "dev pages toolbar",
|
|
2612
|
-
config: builderCommandToolbarConfig,
|
|
2613
|
-
}),
|
|
2614
|
-
]
|
|
2615
|
-
: isThemePage
|
|
2616
|
-
? [
|
|
2617
|
-
nodes.widget({
|
|
2618
|
-
typeKey: "command-toolbar",
|
|
2619
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetToolbar,
|
|
2620
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderBottom,
|
|
2621
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Middle,
|
|
2622
|
-
sortOrder: 0,
|
|
2623
|
-
label: "dev brand toolbar",
|
|
2624
|
-
config: builderCommandToolbarConfig,
|
|
2625
|
-
}),
|
|
2626
|
-
nodes.widget({
|
|
2627
|
-
typeKey: "select-box",
|
|
2628
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetBrandContextSelect,
|
|
2629
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderBottom,
|
|
2630
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Left,
|
|
2631
|
-
sortOrder: 0,
|
|
2632
|
-
label: "Brand set select",
|
|
2633
|
-
config: {
|
|
2634
|
-
value: resolvePhiThemeSelectionValue(runtime.site.key, {
|
|
2635
|
-
published: runtime.site.themeRevision?.publishedRevisionId != null,
|
|
2636
|
-
draft: runtime.site.themeRevision?.workingDraftRevisionId != null,
|
|
2637
|
-
}),
|
|
2638
|
-
key: "brand-theme-preset",
|
|
2639
|
-
signalRoutes: {
|
|
2640
|
-
emits: [
|
|
2641
|
-
{
|
|
2642
|
-
routeKey: "brand-theme-select-change",
|
|
2643
|
-
capabilityId: "change",
|
|
2644
|
-
scope: "area",
|
|
2645
|
-
channel: PHI_THEME_SIGNAL_CHANNELS.presetSelect,
|
|
2646
|
-
action: "change",
|
|
2647
|
-
valueType: "string",
|
|
2648
|
-
receiver: createPhiThemeControllerAddress(),
|
|
2649
|
-
},
|
|
2650
|
-
],
|
|
2651
|
-
listens: [
|
|
2652
|
-
{
|
|
2653
|
-
routeKey: "brand-theme-select-feedback",
|
|
2654
|
-
capabilityId: "selection",
|
|
2655
|
-
scope: "area",
|
|
2656
|
-
channel: PHI_THEME_SIGNAL_CHANNELS.presetSelect,
|
|
2657
|
-
action: "change",
|
|
2658
|
-
valueType: "string",
|
|
2659
|
-
receiver: "broadcast",
|
|
2660
|
-
},
|
|
2661
|
-
/*
|
|
2662
|
-
* The Published and Draft entries name the Set each was derived from and whether
|
|
2663
|
-
* a draft exists at all; the Controller states the list again whenever either
|
|
2664
|
-
* changes. What the tree states is only what the Site record knows before that.
|
|
2665
|
-
*/
|
|
2666
|
-
{
|
|
2667
|
-
routeKey: "brand-theme-select-options",
|
|
2668
|
-
capabilityId: "options",
|
|
2669
|
-
scope: "area",
|
|
2670
|
-
channel: PHI_THEME_SIGNAL_CHANNELS.presetOptions,
|
|
2671
|
-
action: "change",
|
|
2672
|
-
valueType: "json",
|
|
2673
|
-
valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.controlOptions,
|
|
2674
|
-
receiver: "broadcast",
|
|
2675
|
-
},
|
|
2676
|
-
],
|
|
2677
|
-
},
|
|
2678
|
-
options: [
|
|
2679
|
-
...buildPhiSiteThemeSelectOptions({
|
|
2680
|
-
siteKey: runtime.site.key,
|
|
2681
|
-
published: runtime.site.themeRevision?.publishedRevisionId != null
|
|
2682
|
-
? { theme: runtime.site.theme, revisionId: runtime.site.themeRevision.publishedRevisionId }
|
|
2683
|
-
: null,
|
|
2684
|
-
draft: runtime.site.themeRevision?.workingDraftRevisionId != null
|
|
2685
|
-
? { theme: runtime.site.theme, revisionId: runtime.site.themeRevision.workingDraftRevisionId }
|
|
2686
|
-
: null,
|
|
2687
|
-
}),
|
|
2688
|
-
...buildPhiThemeSetSelectOptions(registry),
|
|
2689
|
-
],
|
|
2690
|
-
},
|
|
2691
|
-
}),
|
|
2692
|
-
nodes.widget({
|
|
2693
|
-
typeKey: "switch",
|
|
2694
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetBrandPreviewModeSwitch,
|
|
2695
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandControlsHeader,
|
|
2696
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Left,
|
|
2697
|
-
sortOrder: 0,
|
|
2698
|
-
label: "Brand preview mode switch",
|
|
2699
|
-
config: {
|
|
2700
|
-
defaultChecked: runtime.site.theme?.mode === "dark",
|
|
2701
|
-
checkedChildren: labels.themeSwitch.dark,
|
|
2702
|
-
unCheckedChildren: labels.themeSwitch.light,
|
|
2703
|
-
key: "brandPreviewThemeMode",
|
|
2704
|
-
signalRoutes: {
|
|
2705
|
-
emits: [
|
|
2706
|
-
{
|
|
2707
|
-
routeKey: "brand-preview-mode-change",
|
|
2708
|
-
capabilityId: "change",
|
|
2709
|
-
scope: "page",
|
|
2710
|
-
channel: PHI_THEME_SIGNAL_CHANNELS.previewThemeMode,
|
|
2711
|
-
action: "change",
|
|
2712
|
-
valueType: "boolean",
|
|
2713
|
-
receiver: "broadcast",
|
|
2714
|
-
},
|
|
2715
|
-
],
|
|
2716
|
-
},
|
|
2717
|
-
},
|
|
2718
|
-
}),
|
|
2719
|
-
nodes.widget({
|
|
2720
|
-
typeKey: "segmented",
|
|
2721
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetThemeStackSegmented,
|
|
2722
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandControlsHeader,
|
|
2723
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Middle,
|
|
2724
|
-
sortOrder: 0,
|
|
2725
|
-
label: "Theme stack segmented",
|
|
2726
|
-
config: {
|
|
2727
|
-
value: "0",
|
|
2728
|
-
valueMode: "stack-slot-index",
|
|
2729
|
-
key: PHI_BUILDER_THEME_STACK_SIGNAL_KEY,
|
|
2730
|
-
signalRoutes: {
|
|
2731
|
-
emits: [
|
|
2732
|
-
{
|
|
2733
|
-
routeKey: "brand-stack-meta-request",
|
|
2734
|
-
capabilityId: "stackMeta",
|
|
2735
|
-
scope: "page",
|
|
2736
|
-
channel: "stackMeta",
|
|
2737
|
-
action: "activate",
|
|
2738
|
-
valueType: "none",
|
|
2739
|
-
receiver: createPhiSignalAddress("cms", SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandStack),
|
|
2740
|
-
},
|
|
2741
|
-
{
|
|
2742
|
-
routeKey: "brand-stack-slot-change",
|
|
2743
|
-
capabilityId: "activeSlotIndex",
|
|
2744
|
-
scope: "page",
|
|
2745
|
-
channel: "activeSlotIndex",
|
|
2746
|
-
action: "change",
|
|
2747
|
-
valueType: "number",
|
|
2748
|
-
receiver: createPhiSignalAddress("cms", SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandStack),
|
|
2749
|
-
},
|
|
2750
|
-
],
|
|
2751
|
-
listens: [
|
|
2752
|
-
{
|
|
2753
|
-
routeKey: "brand-stack-meta-response",
|
|
2754
|
-
capabilityId: "stackMeta",
|
|
2755
|
-
scope: "page",
|
|
2756
|
-
channel: "stackMeta",
|
|
2757
|
-
action: "change",
|
|
2758
|
-
valueType: "json",
|
|
2759
|
-
valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.stackMeta,
|
|
2760
|
-
receiver: "broadcast",
|
|
2761
|
-
},
|
|
2762
|
-
],
|
|
2763
|
-
},
|
|
2764
|
-
options: [
|
|
2765
|
-
{ value: "0",
|
|
2766
|
-
label: "Color" },
|
|
2767
|
-
{ value: "1",
|
|
2768
|
-
label: "Style" },
|
|
2769
|
-
],
|
|
2770
|
-
},
|
|
2771
|
-
}),
|
|
2772
|
-
]
|
|
2773
|
-
: isModulesPage
|
|
2774
|
-
? [
|
|
2775
|
-
nodes.widget({
|
|
2776
|
-
typeKey: "command-toolbar",
|
|
2777
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetToolbar,
|
|
2778
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderBottom,
|
|
2779
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Middle,
|
|
2780
|
-
sortOrder: 0,
|
|
2781
|
-
label: "dev modules toolbar",
|
|
2782
|
-
config: builderCommandToolbarConfig,
|
|
2783
|
-
}),
|
|
2784
|
-
nodes.widget({
|
|
2785
|
-
typeKey: "table",
|
|
2786
|
-
id: PHI_BUILDER_MODULES_TABLE_WIDGET_ID,
|
|
2787
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutContent,
|
|
2788
|
-
slotIndex: 0,
|
|
2789
|
-
label: "dev modules table",
|
|
2790
|
-
config: {
|
|
2791
|
-
source: {
|
|
2792
|
-
providerKey: PHI_BUILDER_RUNTIME_DATA_PROVIDER_KEYS.runtimeModulesTable,
|
|
2793
|
-
resourceKey: "modules",
|
|
2794
|
-
params: {
|
|
2795
|
-
categoryLabels: modulesLabels?.categories ?? null,
|
|
2796
|
-
missingLabels: modulesLabels
|
|
2797
|
-
? { missing: modulesLabels.missing.category, missingHint: modulesLabels.missing.hint }
|
|
2798
|
-
: null,
|
|
2799
|
-
areaLabels: modulesLabels?.areas ?? null,
|
|
2800
|
-
usageLabels: modulesLabels ? { shell: modulesLabels.usage.shell } : null,
|
|
2801
|
-
},
|
|
2802
|
-
},
|
|
2803
|
-
presentation: {
|
|
2804
|
-
bordered: true,
|
|
2805
|
-
layout: { mode: "auto", overflowX: "auto" },
|
|
2806
|
-
columns: [
|
|
2807
|
-
{
|
|
2808
|
-
key: "active",
|
|
2809
|
-
fieldKey: "active",
|
|
2810
|
-
title: modulesLabels?.columns.active ?? "Active",
|
|
2811
|
-
renderer: "switch",
|
|
2812
|
-
align: "center",
|
|
2813
|
-
sticky: "left",
|
|
2814
|
-
editor: {
|
|
2815
|
-
control: "switch",
|
|
2816
|
-
disabledWhen: { source: "row", valuePath: "locked", operator: "truthy" },
|
|
2817
|
-
},
|
|
2818
|
-
},
|
|
2819
|
-
{ key: "title", fieldKey: "title", iconFieldKey: "icon", title: modulesLabels?.columns.title ?? "Module", sortable: true },
|
|
2820
|
-
/*
|
|
2821
|
-
* One checkbox column per Area: the switch is the Module everywhere, these are
|
|
2822
|
-
* the per-Area refinement. A Module not eligible for an Area carries null there
|
|
2823
|
-
* and the cell renders empty; the Area whose Base module the row is stays
|
|
2824
|
-
* checked and disabled.
|
|
2825
|
-
*/
|
|
2826
|
-
...PHI_CMS_AREA_KEYS.map((areaKey) => ({
|
|
2827
|
-
key: `area_${areaKey}`,
|
|
2828
|
-
fieldKey: `area_${areaKey}`,
|
|
2829
|
-
title: modulesLabels?.areas[areaKey] ?? areaKey,
|
|
2830
|
-
align: "center",
|
|
2831
|
-
editor: {
|
|
2832
|
-
control: "checkbox",
|
|
2833
|
-
disabledWhen: {
|
|
2834
|
-
source: "row",
|
|
2835
|
-
valuePath: "baseAreaKey",
|
|
2836
|
-
operator: "equals",
|
|
2837
|
-
value: areaKey,
|
|
2838
|
-
},
|
|
2839
|
-
},
|
|
2840
|
-
})),
|
|
2841
|
-
{ key: "category", fieldKey: "category", title: modulesLabels?.columns.category ?? "Category", sortable: true },
|
|
2842
|
-
{ key: "description", fieldKey: "description", title: modulesLabels?.columns.description ?? "Description", sizing: { mode: "fill" } },
|
|
2843
|
-
],
|
|
2844
|
-
controlSize: "small",
|
|
2845
|
-
footer: {
|
|
2846
|
-
template: `%1 ${modulesLabels?.footer.modules ?? "modules"}`,
|
|
2847
|
-
values: [{ key: "modules", value: { source: "core", fieldKey: "totalRows" } }],
|
|
2848
|
-
align: "start",
|
|
2849
|
-
},
|
|
2850
|
-
},
|
|
2851
|
-
features: {
|
|
2852
|
-
/*
|
|
2853
|
-
* Both filters are the table's own view Controls, in front of its search box: they
|
|
2854
|
-
* narrow which Modules are listed and never what a switch or checkbox does. That is
|
|
2855
|
-
* also why neither is the header Area selector, whose meaning is "the Area being
|
|
2856
|
-
* edited". The Area select carries no title of its own -- it reads "All areas" until
|
|
2857
|
-
* it says otherwise -- while the switch takes its label in front of it, since a bare
|
|
2858
|
-
* switch says nothing. Foundation Modules, the ones that carry the Areas themselves,
|
|
2859
|
-
* stay out until asked for: they are scaffolding rather than a choice.
|
|
2860
|
-
*/
|
|
2861
|
-
filters: [
|
|
2862
|
-
{
|
|
2863
|
-
key: PHI_BUILDER_MODULES_TABLE_FILTER_KEYS.area,
|
|
2864
|
-
type: "select",
|
|
2865
|
-
label: modulesLabels?.filter.area ?? "Area",
|
|
2866
|
-
labelPlacement: "none",
|
|
2867
|
-
defaultValue: PHI_BUILDER_MODULES_TABLE_ALL_AREAS_VALUE,
|
|
2868
|
-
options: [
|
|
2869
|
-
{
|
|
2870
|
-
value: PHI_BUILDER_MODULES_TABLE_ALL_AREAS_VALUE,
|
|
2871
|
-
label: modulesLabels?.filter.allAreas ?? "All areas",
|
|
2872
|
-
},
|
|
2873
|
-
...PHI_CMS_AREA_KEYS.map((areaKey) => ({
|
|
2874
|
-
value: areaKey,
|
|
2875
|
-
label: modulesLabels?.areas[areaKey] ?? areaKey,
|
|
2876
|
-
})),
|
|
2877
|
-
],
|
|
2878
|
-
},
|
|
2879
|
-
{
|
|
2880
|
-
key: PHI_BUILDER_MODULES_TABLE_FILTER_KEYS.showFoundation,
|
|
2881
|
-
type: "boolean",
|
|
2882
|
-
control: "switch",
|
|
2883
|
-
label: modulesLabels?.filter.showFoundation ?? "Foundations",
|
|
2884
|
-
labelPlacement: "inline",
|
|
2885
|
-
defaultValue: false,
|
|
2886
|
-
},
|
|
2887
|
-
],
|
|
2888
|
-
search: { enabled: true },
|
|
2889
|
-
pagination: { enabled: false, pageSize: 200, showSizeChanger: false },
|
|
2890
|
-
sorting: { mode: "single" },
|
|
2891
|
-
editing: { mode: "cell" },
|
|
2892
|
-
tools: { mode: "self-contained", reset: false, reload: false },
|
|
2893
|
-
actions: { row: [{
|
|
2894
|
-
key: "details",
|
|
2895
|
-
label: modulesLabels?.actions.details ?? "Details",
|
|
2896
|
-
icon: "antd:info-circle",
|
|
2897
|
-
display: "icon",
|
|
2898
|
-
execution: "signal",
|
|
2899
|
-
}] },
|
|
2900
|
-
},
|
|
2901
|
-
signalRoutes: {
|
|
2902
|
-
emits: [
|
|
2903
|
-
{ routeKey: "builder-modules-table-action", capabilityId: "actionActivate", scope: "area", channel: "action", action: "activate", valueType: "json", valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.tableAction, receiver: createPhiBuilderControllerAddress() },
|
|
2904
|
-
],
|
|
2905
|
-
},
|
|
2906
|
-
},
|
|
2907
|
-
}),
|
|
2908
|
-
nodes.widget({
|
|
2909
|
-
typeKey: "simple-text",
|
|
2910
|
-
id: PHI_BUILDER_MODULE_USAGE_WIDGET_IDS.moduleUsageIntro,
|
|
2911
|
-
parentLayoutNodeId: PHI_BUILDER_MODULE_USAGE_LAYOUT_IDS.moduleUsageBody,
|
|
2912
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
2913
|
-
sortOrder: 0,
|
|
2914
|
-
label: "Builder module usage intro",
|
|
2915
|
-
config: {
|
|
2916
|
-
text: modulesLabels?.usage.intro ?? "",
|
|
2917
|
-
type: "secondary",
|
|
2918
|
-
},
|
|
2919
|
-
}),
|
|
2920
|
-
nodes.widget({
|
|
2921
|
-
typeKey: "table",
|
|
2922
|
-
id: PHI_BUILDER_MODULE_USAGE_WIDGET_IDS.moduleUsageTable,
|
|
2923
|
-
parentLayoutNodeId: PHI_BUILDER_MODULE_USAGE_LAYOUT_IDS.moduleUsageBody,
|
|
2924
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[1].slotIndex,
|
|
2925
|
-
sortOrder: 1,
|
|
2926
|
-
label: "Builder module usage rows",
|
|
2927
|
-
config: {
|
|
2928
|
-
source: {
|
|
2929
|
-
providerKey: PHI_BUILDER_RUNTIME_DATA_PROVIDER_KEYS.runtimeModulesTable,
|
|
2930
|
-
resourceKey: "moduleUsage",
|
|
2931
|
-
params: {},
|
|
2932
|
-
},
|
|
2933
|
-
presentation: {
|
|
2934
|
-
bordered: true,
|
|
2935
|
-
layout: { mode: "auto", overflowX: "auto" },
|
|
2936
|
-
columns: [
|
|
2937
|
-
{ key: "area", fieldKey: "area", title: modulesLabels?.usage.area ?? "Area", sizing: { mode: "content" } },
|
|
2938
|
-
{ key: "where", fieldKey: "where", title: modulesLabels?.usage.where ?? "Page", sizing: { mode: "fill", minWidth: 200 } },
|
|
2939
|
-
{ key: "blocks", fieldKey: "blocks", title: modulesLabels?.usage.blocks ?? "Blocks", align: "right", sizing: { mode: "content" } },
|
|
2940
|
-
],
|
|
2941
|
-
controlSize: "small",
|
|
2942
|
-
},
|
|
2943
|
-
features: {
|
|
2944
|
-
pagination: { enabled: false, pageSize: 50, showSizeChanger: false },
|
|
2945
|
-
sorting: { mode: "none" },
|
|
2946
|
-
tools: { mode: "self-contained", reset: false, reload: false },
|
|
2947
|
-
},
|
|
2948
|
-
signalRoutes: {
|
|
2949
|
-
listens: [
|
|
2950
|
-
{ routeKey: "builder-module-usage-reload", capabilityId: "reload", scope: "page", channel: "reload", action: "activate", valueType: "none", receiver: createPhiSignalAddress("cms", PHI_BUILDER_MODULE_USAGE_WIDGET_IDS.moduleUsageTable) },
|
|
2951
|
-
],
|
|
2952
|
-
},
|
|
2953
|
-
},
|
|
2954
|
-
}),
|
|
2955
|
-
nodes.widget({
|
|
2956
|
-
typeKey: "command-toolbar",
|
|
2957
|
-
id: PHI_BUILDER_MODULE_USAGE_WIDGET_IDS.moduleUsageCommands,
|
|
2958
|
-
parentLayoutNodeId: PHI_BUILDER_MODULE_USAGE_LAYOUT_IDS.moduleUsageFooter,
|
|
2959
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
2960
|
-
sortOrder: 0,
|
|
2961
|
-
label: "Builder module usage commands",
|
|
2962
|
-
config: {
|
|
2963
|
-
key: "module-usage-commands",
|
|
2964
|
-
compact: false,
|
|
2965
|
-
wrap: true,
|
|
2966
|
-
showLabels: true,
|
|
2967
|
-
controlSize: "medium",
|
|
2968
|
-
buttons: [
|
|
2969
|
-
{ key: "cancel", emits: [{ capabilityId: "command", value: "cancel" }], actionKey: "cancel", label: modulesLabels?.usage.cancel ?? "Keep it on" },
|
|
2970
|
-
{ key: "confirm", emits: [{ capabilityId: "command", value: "confirm" }], actionKey: "save", buttonType: "primary", label: modulesLabels?.usage.confirm ?? "Switch off anyway" },
|
|
2971
|
-
],
|
|
2972
|
-
signalRoutes: {
|
|
2973
|
-
emits: [{
|
|
2974
|
-
routeKey: "builder-module-usage-command",
|
|
2975
|
-
capabilityId: "command",
|
|
2976
|
-
scope: "area",
|
|
2977
|
-
channel: "moduleUsage",
|
|
2978
|
-
action: "activate",
|
|
2979
|
-
valueType: "string",
|
|
2980
|
-
receiver: createPhiBuilderControllerAddress(),
|
|
2981
|
-
}],
|
|
2982
|
-
},
|
|
2983
|
-
},
|
|
2984
|
-
}),
|
|
2985
|
-
nodes.widget({
|
|
2986
|
-
typeKey: "simple-text",
|
|
2987
|
-
id: PHI_BUILDER_PUBLIC_ROUTES_WIDGET_IDS.publicRoutesIntro,
|
|
2988
|
-
parentLayoutNodeId: PHI_BUILDER_PUBLIC_ROUTES_LAYOUT_IDS.publicRoutesBody,
|
|
2989
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
2990
|
-
sortOrder: 0,
|
|
2991
|
-
label: "Builder public route collision intro",
|
|
2992
|
-
config: {
|
|
2993
|
-
text: modulesLabels?.publicRoutes.intro ?? "",
|
|
2994
|
-
type: "secondary",
|
|
2995
|
-
},
|
|
2996
|
-
}),
|
|
2997
|
-
nodes.widget({
|
|
2998
|
-
typeKey: "table",
|
|
2999
|
-
id: PHI_BUILDER_PUBLIC_ROUTES_WIDGET_IDS.publicRoutesTable,
|
|
3000
|
-
parentLayoutNodeId: PHI_BUILDER_PUBLIC_ROUTES_LAYOUT_IDS.publicRoutesBody,
|
|
3001
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[1].slotIndex,
|
|
3002
|
-
sortOrder: 1,
|
|
3003
|
-
label: "Builder public route collision rows",
|
|
3004
|
-
config: {
|
|
3005
|
-
source: {
|
|
3006
|
-
providerKey: PHI_BUILDER_RUNTIME_DATA_PROVIDER_KEYS.runtimeModulesTable,
|
|
3007
|
-
resourceKey: "publicRouteCollisions",
|
|
3008
|
-
params: {},
|
|
3009
|
-
},
|
|
3010
|
-
presentation: {
|
|
3011
|
-
bordered: true,
|
|
3012
|
-
layout: { mode: "auto", overflowX: "auto" },
|
|
3013
|
-
columns: [
|
|
3014
|
-
{ key: "title", fieldKey: "title", title: modulesLabels?.publicRoutes.page ?? "Page" },
|
|
3015
|
-
{ key: "declaredPath", fieldKey: "declaredPath", title: modulesLabels?.publicRoutes.wanted ?? "Wanted", renderer: "code", sizing: { mode: "content" } },
|
|
3016
|
-
{ key: "heldBy", fieldKey: "heldBy", title: modulesLabels?.publicRoutes.heldBy ?? "Taken by" },
|
|
3017
|
-
{
|
|
3018
|
-
key: "path",
|
|
3019
|
-
fieldKey: "path",
|
|
3020
|
-
title: modulesLabels?.publicRoutes.address ?? "Address",
|
|
3021
|
-
sizing: { mode: "fill", minWidth: 200 },
|
|
3022
|
-
editor: { mode: "inline", control: "text" },
|
|
3023
|
-
},
|
|
3024
|
-
],
|
|
3025
|
-
controlSize: "small",
|
|
3026
|
-
},
|
|
3027
|
-
features: {
|
|
3028
|
-
pagination: { enabled: false, pageSize: 20, showSizeChanger: false },
|
|
3029
|
-
sorting: { mode: "none" },
|
|
3030
|
-
editing: { mode: "cell" },
|
|
3031
|
-
tools: { mode: "self-contained", reset: false, reload: false },
|
|
3032
|
-
},
|
|
3033
|
-
signalRoutes: {
|
|
3034
|
-
listens: [
|
|
3035
|
-
{ routeKey: "builder-public-routes-reload", capabilityId: "reload", scope: "page", channel: "reload", action: "activate", valueType: "none", receiver: createPhiSignalAddress("cms", PHI_BUILDER_PUBLIC_ROUTES_WIDGET_IDS.publicRoutesTable) },
|
|
3036
|
-
],
|
|
3037
|
-
},
|
|
3038
|
-
},
|
|
3039
|
-
}),
|
|
3040
|
-
nodes.widget({
|
|
3041
|
-
typeKey: "command-toolbar",
|
|
3042
|
-
id: PHI_BUILDER_PUBLIC_ROUTES_WIDGET_IDS.publicRoutesCommands,
|
|
3043
|
-
parentLayoutNodeId: PHI_BUILDER_PUBLIC_ROUTES_LAYOUT_IDS.publicRoutesFooter,
|
|
3044
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
3045
|
-
sortOrder: 0,
|
|
3046
|
-
label: "Builder public route collision commands",
|
|
3047
|
-
config: {
|
|
3048
|
-
key: "public-routes-commands",
|
|
3049
|
-
compact: false,
|
|
3050
|
-
wrap: true,
|
|
3051
|
-
showLabels: true,
|
|
3052
|
-
controlSize: "medium",
|
|
3053
|
-
buttons: [
|
|
3054
|
-
{ key: "cancel", emits: [{ capabilityId: "command", value: "cancel" }], actionKey: "cancel", label: modulesLabels?.publicRoutes.cancel ?? "Cancel" },
|
|
3055
|
-
{ key: "assign", emits: [{ capabilityId: "command", value: "assign" }], actionKey: "save", buttonType: "primary", label: modulesLabels?.publicRoutes.assign ?? "Enable" },
|
|
3056
|
-
],
|
|
3057
|
-
signalRoutes: {
|
|
3058
|
-
emits: [{
|
|
3059
|
-
routeKey: "builder-public-routes-command",
|
|
3060
|
-
capabilityId: "command",
|
|
3061
|
-
scope: "area",
|
|
3062
|
-
channel: "publicRoutes",
|
|
3063
|
-
action: "activate",
|
|
3064
|
-
valueType: "string",
|
|
3065
|
-
receiver: createPhiBuilderControllerAddress(),
|
|
3066
|
-
}],
|
|
3067
|
-
},
|
|
3068
|
-
},
|
|
3069
|
-
}),
|
|
3070
|
-
nodes.widget({
|
|
3071
|
-
typeKey: "table",
|
|
3072
|
-
id: PHI_BUILDER_MODULE_DETAIL_WIDGET_IDS.fields,
|
|
3073
|
-
parentLayoutNodeId: PHI_BUILDER_MODULE_DETAIL_LAYOUT_IDS.body,
|
|
3074
|
-
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
3075
|
-
sortOrder: 0,
|
|
3076
|
-
label: "dev module detail fields",
|
|
3077
|
-
config: {
|
|
3078
|
-
source: {
|
|
3079
|
-
providerKey: PHI_BUILDER_RUNTIME_DATA_PROVIDER_KEYS.runtimeModulesTable,
|
|
3080
|
-
resourceKey: "moduleDetail",
|
|
3081
|
-
params: {
|
|
3082
|
-
moduleId: "",
|
|
3083
|
-
areaLabels: modulesLabels?.areas ?? null,
|
|
3084
|
-
categoryLabels: modulesLabels?.categories ?? null,
|
|
3085
|
-
detailLabels: modulesDetailLabels,
|
|
3086
|
-
},
|
|
3087
|
-
},
|
|
3088
|
-
presentation: {
|
|
3089
|
-
bordered: true,
|
|
3090
|
-
layout: { mode: "auto", overflowX: "auto" },
|
|
3091
|
-
columns: [
|
|
3092
|
-
{ key: "label", fieldKey: "label", title: modulesLabels?.detail.field ?? "Field" },
|
|
3093
|
-
{ key: "value", fieldKey: "value", title: modulesLabels?.detail.value ?? "Value", sizing: { mode: "fill" } },
|
|
3094
|
-
],
|
|
3095
|
-
controlSize: "small",
|
|
3096
|
-
},
|
|
3097
|
-
features: {
|
|
3098
|
-
pagination: { enabled: false, pageSize: 50, showSizeChanger: false },
|
|
3099
|
-
sorting: { mode: "none" },
|
|
3100
|
-
tools: { mode: "self-contained", reset: false, reload: false },
|
|
3101
|
-
},
|
|
3102
|
-
signalRoutes: {
|
|
3103
|
-
listens: [
|
|
3104
|
-
{ routeKey: "builder-module-detail-binding", capabilityId: "bindingParamsChange", scope: "page", channel: "bindingParams", action: "change", valueType: "json", valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.tableBindingParams, receiver: createPhiSignalAddress("cms", PHI_BUILDER_MODULE_DETAIL_WIDGET_IDS.fields) },
|
|
3105
|
-
],
|
|
3106
|
-
},
|
|
3107
|
-
},
|
|
3108
|
-
}),
|
|
3109
|
-
]
|
|
3110
|
-
: isNavigationPage
|
|
3111
|
-
? [
|
|
3112
|
-
nodes.widget({
|
|
3113
|
-
typeKey: "command-toolbar",
|
|
3114
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetToolbar,
|
|
3115
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderBottom,
|
|
3116
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Middle,
|
|
3117
|
-
sortOrder: 0,
|
|
3118
|
-
label: "dev navigation toolbar",
|
|
3119
|
-
config: builderCommandToolbarConfig,
|
|
3120
|
-
}),
|
|
3121
|
-
nodes.widget({
|
|
3122
|
-
typeKey: "tree",
|
|
3123
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetNavigationSource,
|
|
3124
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutContent,
|
|
3125
|
-
slotIndex: 0,
|
|
3126
|
-
label: "dev navigation source",
|
|
3127
|
-
config: {
|
|
3128
|
-
source: {
|
|
3129
|
-
providerKey: PHI_BUILDER_RUNTIME_DATA_PROVIDER_KEYS.pageSourceTree,
|
|
3130
|
-
resourceKey: "pages",
|
|
3131
|
-
},
|
|
3132
|
-
presentation: {
|
|
3133
|
-
width: "20rem",
|
|
3134
|
-
minWidth: "16.25rem",
|
|
3135
|
-
maxWidth: "100%",
|
|
3136
|
-
controlSize: "small",
|
|
3137
|
-
bordered: true,
|
|
3138
|
-
blockNode: true,
|
|
3139
|
-
showIcon: false,
|
|
3140
|
-
virtual: false,
|
|
3141
|
-
node: {
|
|
3142
|
-
titleFieldKey: "title",
|
|
3143
|
-
descriptionFieldKey: "path",
|
|
3144
|
-
},
|
|
3145
|
-
},
|
|
3146
|
-
features: {
|
|
3147
|
-
search: { enabled: true, placeholder: navigationLabels.sourceSearchPlaceholder },
|
|
3148
|
-
selection: { mode: "single" },
|
|
3149
|
-
checking: { enabled: false },
|
|
3150
|
-
expansion: { defaultExpandAll: false },
|
|
3151
|
-
editing: { enabled: false },
|
|
3152
|
-
tools: {
|
|
3153
|
-
mode: "self-contained",
|
|
3154
|
-
bindingFields: [{ key: "area", control: "select", width: "7.5rem" }],
|
|
3155
|
-
reset: false,
|
|
3156
|
-
reload: false,
|
|
3157
|
-
},
|
|
3158
|
-
dnd: { mode: "source", payloadType: PHI_BUILDER_NAVIGATION_DND_TYPE_PAGE },
|
|
3159
|
-
},
|
|
3160
|
-
},
|
|
3161
|
-
}),
|
|
3162
|
-
nodes.widget({
|
|
3163
|
-
typeKey: "table",
|
|
3164
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetNavigationItems,
|
|
3165
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutContent,
|
|
3166
|
-
slotIndex: 1,
|
|
3167
|
-
label: "dev navigation items",
|
|
3168
|
-
config: {
|
|
3169
|
-
source: {
|
|
3170
|
-
providerKey: PHI_BUILDER_RUNTIME_DATA_PROVIDER_KEYS.navigationTable,
|
|
3171
|
-
resourceKey: "navigationItems",
|
|
3172
|
-
},
|
|
3173
|
-
signalRoutes: {
|
|
3174
|
-
emits: [{
|
|
3175
|
-
routeKey: "builder-navigation-binding-params",
|
|
3176
|
-
capabilityId: "bindingParamsChange",
|
|
3177
|
-
scope: "area",
|
|
3178
|
-
channel: "bindingParams",
|
|
3179
|
-
action: "change",
|
|
3180
|
-
valueType: "json",
|
|
3181
|
-
valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.tableBindingParams,
|
|
3182
|
-
receiver: createPhiBuilderControllerAddress(),
|
|
3183
|
-
}],
|
|
3184
|
-
},
|
|
3185
|
-
presentation: {
|
|
3186
|
-
bordered: true,
|
|
3187
|
-
layout: { mode: "fixed", overflowX: "auto" },
|
|
3188
|
-
footer: {
|
|
3189
|
-
template: navigationLabels.footerTemplate,
|
|
3190
|
-
values: [
|
|
3191
|
-
{ key: "entries", value: { source: "provider", fieldKey: "entries" } },
|
|
3192
|
-
{ key: "hidden", value: { source: "provider", fieldKey: "hidden" } },
|
|
3193
|
-
],
|
|
3194
|
-
},
|
|
3195
|
-
row: {
|
|
3196
|
-
mutedWhen: { match: "any", conditions: [
|
|
3197
|
-
{ source: "row", valuePath: "hidden", operator: "truthy" },
|
|
3198
|
-
{ source: "row", valuePath: "hiddenByAncestor", operator: "truthy" },
|
|
3199
|
-
] },
|
|
3200
|
-
},
|
|
3201
|
-
columns: [
|
|
3202
|
-
{ key: "icon", fieldKey: "icon", title: navigationLabels.columns.icon, renderer: "icon", editor: { control: "icon-picker" }, sizing: { mode: "fixed", width: 88 } },
|
|
3203
|
-
{ key: "label", fieldKey: "label", title: navigationLabels.columns.label, editor: {}, sizing: { mode: "fixed", width: 180 }, ellipsis: true },
|
|
3204
|
-
{
|
|
3205
|
-
key: "navigationType",
|
|
3206
|
-
fieldKey: "navigationType",
|
|
3207
|
-
title: navigationLabels.columns.type,
|
|
3208
|
-
renderer: "badge",
|
|
3209
|
-
sizing: { mode: "fixed", width: 112 },
|
|
3210
|
-
valueMap: navigationLabels.types,
|
|
3211
|
-
tagColorMap: { link: "success", external: "warning", container: "processing", separator: "default" },
|
|
3212
|
-
},
|
|
3213
|
-
{ key: "origin", fieldKey: "origin", title: navigationLabels.columns.origin, sizing: { mode: "fixed", width: 140 }, ellipsis: true },
|
|
3214
|
-
{
|
|
3215
|
-
key: "href",
|
|
3216
|
-
fieldKey: "href",
|
|
3217
|
-
title: navigationLabels.columns.path,
|
|
3218
|
-
editor: {},
|
|
3219
|
-
sizing: { mode: "fill", minWidth: 220 },
|
|
3220
|
-
ellipsis: true,
|
|
3221
|
-
},
|
|
3222
|
-
{
|
|
3223
|
-
key: "newTab",
|
|
3224
|
-
fieldKey: "newTab",
|
|
3225
|
-
title: navigationLabels.columns.newTab,
|
|
3226
|
-
renderer: "checkbox",
|
|
3227
|
-
editor: {
|
|
3228
|
-
control: "checkbox",
|
|
3229
|
-
disabledWhen: { source: "row", valuePath: "newTabEditable", operator: "falsy" },
|
|
3230
|
-
},
|
|
3231
|
-
sizing: { mode: "fixed", width: 88 },
|
|
3232
|
-
},
|
|
3233
|
-
],
|
|
3234
|
-
controlSize: "small",
|
|
3235
|
-
emptyState: { title: navigationLabels.emptyTitle },
|
|
3236
|
-
},
|
|
3237
|
-
features: {
|
|
3238
|
-
pagination: { enabled: false },
|
|
3239
|
-
sorting: { mode: "none" },
|
|
3240
|
-
rowReordering: { enabled: true },
|
|
3241
|
-
editing: { mode: "cell" },
|
|
3242
|
-
tools: {
|
|
3243
|
-
mode: "self-contained",
|
|
3244
|
-
bindingFields: [{
|
|
3245
|
-
key: "navKey",
|
|
3246
|
-
placeholder: navigationLabels.navigation.placeholder,
|
|
3247
|
-
control: "select",
|
|
3248
|
-
create: {
|
|
3249
|
-
label: navigationLabels.navigation.create,
|
|
3250
|
-
description: navigationLabels.navigation.create,
|
|
3251
|
-
icon: "antd:plus",
|
|
3252
|
-
display: "icon",
|
|
3253
|
-
placeholder: navigationLabels.navigation.keyPlaceholder,
|
|
3254
|
-
submitLabel: navigationLabels.navigation.createSubmit,
|
|
3255
|
-
},
|
|
3256
|
-
}],
|
|
3257
|
-
reset: false,
|
|
3258
|
-
reload: true,
|
|
3259
|
-
},
|
|
3260
|
-
structure: { mode: "tree", parentRowIdentityPath: "parentId", expandColumnKey: "icon", expandRowByClick: true },
|
|
3261
|
-
actions: {
|
|
3262
|
-
toolbar: [
|
|
3263
|
-
{ key: "add-link", label: navigationLabels.actions.addLink, icon: "antd:plus", display: "icon", execution: "provider" },
|
|
3264
|
-
{ key: "add-container", label: navigationLabels.actions.addContainer, icon: "antd:folder-add", display: "icon", execution: "provider" },
|
|
3265
|
-
{ key: "add-separator", label: navigationLabels.actions.addSeparator, icon: "antd:minus", display: "icon", execution: "provider" },
|
|
3266
|
-
],
|
|
3267
|
-
row: [
|
|
3268
|
-
{ key: "hide", label: navigationLabels.actions.hide, icon: "antd:eye", display: "icon", execution: "provider" },
|
|
3269
|
-
{ key: "show", label: navigationLabels.actions.show, icon: "antd:eye-invisible", display: "icon", execution: "provider" },
|
|
3270
|
-
{
|
|
3271
|
-
key: "delete",
|
|
3272
|
-
label: navigationLabels.actions.delete,
|
|
3273
|
-
icon: "antd:delete",
|
|
3274
|
-
display: "icon",
|
|
3275
|
-
mode: "danger",
|
|
3276
|
-
// No confirmation: the Navigation workspace has Undo, which takes a delete back.
|
|
3277
|
-
execution: "provider",
|
|
3278
|
-
},
|
|
3279
|
-
],
|
|
3280
|
-
},
|
|
3281
|
-
},
|
|
3282
|
-
},
|
|
3283
|
-
}),
|
|
3284
|
-
]
|
|
3285
|
-
: isRevisionsPage
|
|
3286
|
-
? [
|
|
3287
|
-
nodes.widget({
|
|
3288
|
-
typeKey: "table",
|
|
3289
|
-
id: PHI_BUILDER_REVISIONS_TABLE_WIDGET_ID,
|
|
3290
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutContent,
|
|
3291
|
-
slotIndex: 0,
|
|
3292
|
-
label: "dev revisions table",
|
|
3293
|
-
config: {
|
|
3294
|
-
source: {
|
|
3295
|
-
providerKey: PHI_REVISIONS_RUNTIME_DATA_PROVIDER_KEYS.table,
|
|
3296
|
-
resourceKey: "history",
|
|
3297
|
-
params: { labels: revisionsLabels },
|
|
3298
|
-
},
|
|
3299
|
-
presentation: {
|
|
3300
|
-
bordered: true,
|
|
3301
|
-
layout: { mode: "auto", overflowX: "auto" },
|
|
3302
|
-
columns: [
|
|
3303
|
-
{ key: "revisionTags", fieldKey: "revisionTags", title: revisionsLabels?.columns.revision ?? "Revision", renderer: "tags", sticky: "left" },
|
|
3304
|
-
{ key: "createdAt", fieldKey: "createdAt", title: revisionsLabels?.columns.created ?? "Created", renderer: "datetime" },
|
|
3305
|
-
{ key: "createdByDisplay", fieldKey: "createdByDisplay", title: revisionsLabels?.columns.by ?? "By" },
|
|
3306
|
-
{ key: "formattedMessage", fieldKey: "formattedMessage", title: revisionsLabels?.columns.message ?? "Message", sizing: { mode: "fill" } },
|
|
3307
|
-
],
|
|
3308
|
-
controlSize: "small",
|
|
3309
|
-
footer: {
|
|
3310
|
-
template: `%1 ${revisionsLabels?.revisionsLabel ?? "revisions"}`,
|
|
3311
|
-
values: [{ key: "revisions", value: { source: "core", fieldKey: "totalRows" } }],
|
|
3312
|
-
align: "start",
|
|
3313
|
-
},
|
|
3314
|
-
},
|
|
3315
|
-
features: {
|
|
3316
|
-
rowSelection: { mode: "multiple", preserveSelectedRowIdentities: false, disabledWhen: { source: "row", valuePath: "deleteDisabled", operator: "truthy" } },
|
|
3317
|
-
pagination: { enabled: false, pageSize: 100, showSizeChanger: false },
|
|
3318
|
-
sorting: { mode: "none" },
|
|
3319
|
-
tools: {
|
|
3320
|
-
mode: "self-contained",
|
|
3321
|
-
bindingFields: [
|
|
3322
|
-
{
|
|
3323
|
-
key: "kind",
|
|
3324
|
-
label: revisionsLabels?.kindLabel ?? "Type",
|
|
3325
|
-
control: "select",
|
|
3326
|
-
optionLabels: [
|
|
3327
|
-
{ value: "area", label: revisionsLabels?.kindOptions.area ?? "Area" },
|
|
3328
|
-
{ value: "page", label: revisionsLabels?.kindOptions.page ?? "Page" },
|
|
3329
|
-
{ value: "navigation", label: revisionsLabels?.kindOptions.navigation ?? "Navigation" },
|
|
3330
|
-
{ value: "theme", label: revisionsLabels?.kindOptions.theme ?? "Theme" },
|
|
3331
|
-
],
|
|
3332
|
-
},
|
|
3333
|
-
{
|
|
3334
|
-
key: "scopeKey",
|
|
3335
|
-
label: revisionsLabels?.scopeLabel ?? "Scope",
|
|
3336
|
-
control: "cascader",
|
|
3337
|
-
disabledWhen: { fieldKey: "kind", equals: "area" },
|
|
3338
|
-
cascader: {
|
|
3339
|
-
allowRoot: false,
|
|
3340
|
-
separator: "/",
|
|
3341
|
-
rootValue: "/",
|
|
3342
|
-
normalize: "raw",
|
|
3343
|
-
},
|
|
3344
|
-
},
|
|
3345
|
-
],
|
|
3346
|
-
reset: false,
|
|
3347
|
-
reload: true,
|
|
3348
|
-
},
|
|
3349
|
-
actions: { row: [
|
|
3350
|
-
{ key: "review", label: revisionsLabels?.actions.review ?? "Review", icon: "eye", display: "icon", execution: "link", hrefPath: "reviewHref", newTab: true },
|
|
3351
|
-
{
|
|
3352
|
-
key: "restore",
|
|
3353
|
-
label: revisionsLabels?.actions.restore ?? "Restore",
|
|
3354
|
-
icon: "antd:reload",
|
|
3355
|
-
display: "icon",
|
|
3356
|
-
execution: "provider",
|
|
3357
|
-
confirm: {
|
|
3358
|
-
title: revisionsLabels?.confirm.restoreTitle ?? "Restore revision?",
|
|
3359
|
-
description: revisionsLabels?.confirm.restoreDescription,
|
|
3360
|
-
okText: revisionsLabels?.actions.restore ?? "Restore",
|
|
3361
|
-
},
|
|
3362
|
-
},
|
|
3363
|
-
{
|
|
3364
|
-
key: "delete",
|
|
3365
|
-
label: revisionsLabels?.actions.delete ?? "Delete",
|
|
3366
|
-
icon: "antd:delete",
|
|
3367
|
-
display: "icon",
|
|
3368
|
-
mode: "danger",
|
|
3369
|
-
execution: "provider",
|
|
3370
|
-
confirm: {
|
|
3371
|
-
title: revisionsLabels?.confirm.deleteTitle ?? "Delete revision?",
|
|
3372
|
-
description: revisionsLabels?.confirm.deleteDescription,
|
|
3373
|
-
okText: revisionsLabels?.actions.delete ?? "Delete",
|
|
3374
|
-
},
|
|
3375
|
-
},
|
|
3376
|
-
], bulk: [
|
|
3377
|
-
{
|
|
3378
|
-
key: "deleteSelected",
|
|
3379
|
-
label: revisionsLabels?.actions.deleteSelected ?? "Delete selected",
|
|
3380
|
-
icon: "antd:delete",
|
|
3381
|
-
display: "icon-label",
|
|
3382
|
-
mode: "danger",
|
|
3383
|
-
execution: "provider",
|
|
3384
|
-
confirm: {
|
|
3385
|
-
title: revisionsLabels?.confirm.deleteSelectedTitle ?? "Delete selected revisions?",
|
|
3386
|
-
description: revisionsLabels?.confirm.deleteSelectedDescription,
|
|
3387
|
-
okText: revisionsLabels?.actions.deleteSelected ?? "Delete selected",
|
|
3388
|
-
},
|
|
3389
|
-
},
|
|
3390
|
-
] },
|
|
3391
|
-
},
|
|
3392
|
-
signalRoutes: {
|
|
3393
|
-
emits: [
|
|
3394
|
-
{ routeKey: "builder-revisions-table-binding", capabilityId: "bindingParamsChange", scope: "area", channel: "bindingParams", action: "change", valueType: "json", valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.tableBindingParams, receiver: createPhiRevisionsControllerAddress() },
|
|
3395
|
-
{ routeKey: "builder-revisions-table-mutation", capabilityId: "mutationChange", scope: "area", channel: "mutation", action: "change", valueType: "json", valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.tableMutation, receiver: createPhiRevisionsControllerAddress() },
|
|
3396
|
-
],
|
|
3397
|
-
listens: [
|
|
3398
|
-
{ routeKey: "builder-revisions-table-binding-input", capabilityId: "bindingParamsChange", scope: "area", channel: "bindingParams", action: "change", valueType: "json", valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.tableBindingParams, receiver: createPhiSignalAddress("cms", PHI_BUILDER_REVISIONS_TABLE_WIDGET_ID) },
|
|
3399
|
-
],
|
|
3400
|
-
},
|
|
3401
|
-
},
|
|
3402
|
-
}),
|
|
3403
|
-
]
|
|
3404
|
-
: []),
|
|
3405
|
-
...((isStructurePage || isPagesPage)
|
|
3406
|
-
? [
|
|
3407
|
-
nodes.widget({
|
|
3408
|
-
typeKey: "builder-mode-switch",
|
|
3409
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetBuilderModeSwitch,
|
|
3410
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderBottom,
|
|
3411
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Left,
|
|
3412
|
-
sortOrder: 0,
|
|
3413
|
-
label: "dev builder mode switch",
|
|
3414
|
-
config: {},
|
|
3415
|
-
}),
|
|
3416
|
-
]
|
|
3417
|
-
: []),
|
|
3418
|
-
...((isStructurePage || isPagesPage || isNavigationPage || isThemePage || isModulesPage)
|
|
3419
|
-
? [
|
|
3420
|
-
nodes.widget({
|
|
3421
|
-
typeKey: "builder-draft-status",
|
|
3422
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetDraftStatus,
|
|
3423
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutHeaderBottom,
|
|
3424
|
-
slotIndex: PHI_CMS_THREE_COLUMN_LAYOUT_SLOT_INDEX.Right,
|
|
3425
|
-
sortOrder: 0,
|
|
3426
|
-
label: isThemePage ? "builder brand draft status" : "builder draft status",
|
|
3427
|
-
config: {},
|
|
3428
|
-
}),
|
|
3429
|
-
]
|
|
3430
|
-
: []),
|
|
3431
|
-
...(isStructurePage
|
|
3432
|
-
? [
|
|
3433
|
-
nodes.widget({
|
|
3434
|
-
typeKey: "builder-shells-workspace",
|
|
3435
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetCanvas,
|
|
3436
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutContent,
|
|
3437
|
-
slotIndex: 1,
|
|
3438
|
-
sortOrder: 0,
|
|
3439
|
-
label: "dev shells workspace",
|
|
3440
|
-
config: {},
|
|
3441
|
-
}),
|
|
3442
|
-
]
|
|
3443
|
-
: isPagesPage
|
|
3444
|
-
? [
|
|
3445
|
-
nodes.widget({
|
|
3446
|
-
typeKey: "builder-pages-workspace",
|
|
3447
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetCanvas,
|
|
3448
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutContent,
|
|
3449
|
-
slotIndex: 1,
|
|
3450
|
-
sortOrder: 0,
|
|
3451
|
-
label: "dev pages workspace",
|
|
3452
|
-
config: {},
|
|
3453
|
-
}),
|
|
3454
|
-
]
|
|
3455
|
-
: isMediaPage
|
|
3456
|
-
? []
|
|
3457
|
-
: isThemePage
|
|
3458
|
-
? [
|
|
3459
|
-
nodes.widget({
|
|
3460
|
-
typeKey: "builder-brand-theme-controls",
|
|
3461
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetBrandThemeControls,
|
|
3462
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandCardsRow,
|
|
3463
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[0].slotIndex,
|
|
3464
|
-
sortOrder: 0,
|
|
3465
|
-
label: "dev brand theme controls",
|
|
3466
|
-
config: {
|
|
3467
|
-
themeKey: "default",
|
|
3468
|
-
minSize: { width: 300 },
|
|
3469
|
-
maxSize: { width: 400 },
|
|
3470
|
-
},
|
|
3471
|
-
}),
|
|
3472
|
-
nodes.widget({
|
|
3473
|
-
typeKey: "builder-brand-theme-preview",
|
|
3474
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetBrandThemePreview,
|
|
3475
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandCardsRow,
|
|
3476
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[1].slotIndex,
|
|
3477
|
-
sortOrder: 1,
|
|
3478
|
-
label: "dev brand theme preview",
|
|
3479
|
-
config: {
|
|
3480
|
-
themeKey: "default",
|
|
3481
|
-
minSize: { width: 360 },
|
|
3482
|
-
},
|
|
3483
|
-
}),
|
|
3484
|
-
nodes.widget({
|
|
3485
|
-
typeKey: "builder-brand-style-controls",
|
|
3486
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetBrandStyleControls,
|
|
3487
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandStylePanel,
|
|
3488
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[0].slotIndex,
|
|
3489
|
-
sortOrder: 0,
|
|
3490
|
-
label: "dev brand style controls",
|
|
3491
|
-
config: {
|
|
3492
|
-
themeKey: "default",
|
|
3493
|
-
minSize: { width: 300 },
|
|
3494
|
-
maxSize: { width: 400 },
|
|
3495
|
-
},
|
|
3496
|
-
}),
|
|
3497
|
-
nodes.widget({
|
|
3498
|
-
typeKey: "builder-brand-background-controls",
|
|
3499
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetBrandBackgroundControls,
|
|
3500
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandBackgroundPanel,
|
|
3501
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[0].slotIndex,
|
|
3502
|
-
sortOrder: 0,
|
|
3503
|
-
label: "dev brand background controls",
|
|
3504
|
-
config: {
|
|
3505
|
-
themeKey: "default",
|
|
3506
|
-
// The three Theme panels share one slot, so they share one width. A wider Background
|
|
3507
|
-
// panel widened the slot itself and the column jumped whenever it was selected.
|
|
3508
|
-
minSize: { width: 300 },
|
|
3509
|
-
maxSize: { width: 400 },
|
|
3510
|
-
},
|
|
3511
|
-
}),
|
|
3512
|
-
nodes.widget({
|
|
3513
|
-
typeKey: "builder-brand-theme-preview",
|
|
3514
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetBrandBackgroundPreview,
|
|
3515
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandBackgroundPanel,
|
|
3516
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[1].slotIndex,
|
|
3517
|
-
sortOrder: 1,
|
|
3518
|
-
label: "dev brand background preview",
|
|
3519
|
-
config: {
|
|
3520
|
-
themeKey: "default",
|
|
3521
|
-
minSize: { width: 360 },
|
|
3522
|
-
},
|
|
3523
|
-
}),
|
|
3524
|
-
nodes.widget({
|
|
3525
|
-
typeKey: "builder-brand-theme-preview",
|
|
3526
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetBrandStylePreview,
|
|
3527
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandStylePanel,
|
|
3528
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[1].slotIndex,
|
|
3529
|
-
sortOrder: 1,
|
|
3530
|
-
label: "dev brand style preview",
|
|
3531
|
-
config: {
|
|
3532
|
-
themeKey: "default",
|
|
3533
|
-
minSize: { width: 360 },
|
|
3534
|
-
},
|
|
3535
|
-
}),
|
|
3536
|
-
nodes.widget({
|
|
3537
|
-
typeKey: "builder-brand-identity-controls",
|
|
3538
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetBrandIdentityControls,
|
|
3539
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandIdentityPanel,
|
|
3540
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[0].slotIndex,
|
|
3541
|
-
sortOrder: 0,
|
|
3542
|
-
label: "dev brand identity controls",
|
|
3543
|
-
config: {
|
|
3544
|
-
themeKey: "default",
|
|
3545
|
-
minSize: { width: 300 },
|
|
3546
|
-
maxSize: { width: 400 },
|
|
3547
|
-
},
|
|
3548
|
-
}),
|
|
3549
|
-
/*
|
|
3550
|
-
* The fourth instance of the one Preview Widget, not a fourth Preview.
|
|
3551
|
-
*
|
|
3552
|
-
* The Stack mounts only its active slot, so exactly one of them is alive at a time; a
|
|
3553
|
-
* freshly mounted one asks the Controller for the draft rather than waiting for the next
|
|
3554
|
-
* broadcast. Standing beside its own panel is the whole reason there is more than one.
|
|
3555
|
-
*/
|
|
3556
|
-
nodes.widget({
|
|
3557
|
-
typeKey: "builder-brand-theme-preview",
|
|
3558
|
-
id: SYNTHETIC_DEV_WIDGET_IDS.widgetBrandIdentityPreview,
|
|
3559
|
-
parentLayoutNodeId: SYNTHETIC_DEV_LAYOUT_IDS.layoutBrandIdentityPanel,
|
|
3560
|
-
slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[1].slotIndex,
|
|
3561
|
-
sortOrder: 1,
|
|
3562
|
-
label: "dev brand identity preview",
|
|
3563
|
-
config: {
|
|
3564
|
-
themeKey: "default",
|
|
3565
|
-
minSize: { width: 360 },
|
|
3566
|
-
},
|
|
3567
|
-
}),
|
|
3568
|
-
]
|
|
3569
|
-
: []),
|
|
3570
|
-
],
|
|
3571
|
-
};
|
|
3572
|
-
}
|
|
3573
|
-
export async function buildPhiDefaultBuilderPagePresetTree({ page, runtime, registry, ownerModuleId, presetKey, }) {
|
|
3574
|
-
return remapBuilderPresetTreeInstanceIds(await buildPhiDefaultBuilderPagePresetTemplateTree({
|
|
3575
|
-
page,
|
|
3576
|
-
runtime,
|
|
3577
|
-
registry,
|
|
3578
|
-
presetKey,
|
|
3579
|
-
}), ownerModuleId, presetKey);
|
|
3580
|
-
}
|