@phis/ui 0.7.8 → 0.8.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/components/cms/phi-cms-layout-renderer.js +15 -7
- package/components/cms/phi-cms-render-diagnostic-client.d.ts +3 -1
- package/components/cms/phi-cms-render-diagnostic-client.js +4 -3
- package/components/cms/phi-cms-render-diagnostic.d.ts +8 -2
- package/components/cms/phi-cms-render-diagnostic.js +12 -2
- package/components/cms/phi-cms-render-error-boundary.d.ts +2 -0
- package/components/cms/phi-cms-render-error-boundary.js +1 -1
- package/components/cms/phi-cms-root-layout.js +3 -1
- package/components/controls/phi-address-control.d.ts +23 -0
- package/components/controls/phi-address-control.js +43 -0
- package/components/controls/phi-color-control.d.ts +3 -1
- package/components/controls/phi-color-control.js +2 -2
- package/components/controls/phi-country-select-control.d.ts +22 -0
- package/components/controls/phi-country-select-control.js +16 -0
- package/components/controls/phi-dialog-control.d.ts +1 -1
- package/components/controls/phi-drawer-control-adapter.d.ts +1 -1
- package/components/controls/phi-drawer-control-adapter.js +5 -3
- package/components/controls/phi-drawer-control.d.ts +7 -5
- package/components/controls/phi-float-button-control.d.ts +8 -1
- package/components/controls/phi-float-button-control.js +19 -3
- package/components/controls/phi-form-control.js +52 -8
- package/components/controls/phi-media-picker-control.d.ts +9 -0
- package/components/controls/phi-media-picker-control.js +1 -1
- package/components/controls/phi-modal-control-adapter.d.ts +1 -1
- package/components/controls/phi-modal-control-adapter.js +14 -37
- package/components/controls/phi-modal-control.d.ts +5 -5
- package/components/controls/phi-options-provider.d.ts +1 -0
- package/components/controls/phi-options-provider.js +1 -0
- package/components/controls/phi-overlay-control-contract.d.ts +52 -17
- package/components/controls/phi-overlay-control-contract.js +55 -30
- package/components/controls/phi-popover-control.js +4 -1
- package/components/controls/phi-reveal-once-dialog-control.d.ts +21 -0
- package/components/controls/phi-reveal-once-dialog-control.js +52 -0
- package/components/controls/phi-reveal-once-dialog-labels.d.ts +10 -0
- package/components/controls/phi-reveal-once-dialog-labels.js +5 -0
- package/components/controls/phi-table-control.d.ts +7 -1
- package/components/controls/phi-table-control.js +23 -8
- package/components/forms/flags-field.d.ts +22 -0
- package/components/forms/flags-field.js +58 -0
- package/components/forms/form-descriptor-field-check.d.ts +18 -0
- package/components/forms/form-descriptor-field-check.js +41 -0
- package/components/forms/form-descriptor-runtime-client.js +11 -10
- package/components/forms/form-option-flags.d.ts +20 -0
- package/components/forms/form-option-flags.js +38 -0
- package/components/forms/form-provider-contract.d.ts +23 -0
- package/components/forms/form-provider-contract.js +36 -0
- package/components/forms/form-provider-registry.d.ts +5 -1
- package/components/forms/form-record-source.d.ts +38 -0
- package/components/forms/form-record-source.js +48 -0
- package/components/forms/shared-form-descriptors.d.ts +0 -34
- package/components/forms/shared-form-descriptors.js +0 -6
- package/components/forms/shared-form-ids.d.ts +1 -1
- package/components/forms/shared-form-ids.js +1 -1
- package/components/forms/shared-form-provider-registry.js +13 -0
- package/components/forms/structured-field-labels.d.ts +24 -0
- package/components/forms/structured-field-labels.js +43 -0
- package/components/forms/structured-form-field-controls.d.ts +12 -0
- package/components/forms/structured-form-field-controls.js +65 -0
- package/components/media/media-settings-labels.d.ts +1 -0
- package/components/media/media-settings-labels.js +2 -0
- package/components/media/phi-media-picker-binding.d.ts +41 -33
- package/components/media/phi-media-picker-binding.js +2 -1
- package/components/media/use-media-library-add-picker.d.ts +33 -32
- package/components/overlays/phi-overlay-container-client.js +13 -11
- package/components/regions/phi-cms-region-shell.js +2 -2
- package/components/regions/presets/content-entry-editor-page-tree.js +12 -3
- package/components/regions/presets/phi-settings-page-shell-tree.d.ts +13 -2
- package/components/regions/presets/phi-settings-page-shell-tree.js +4 -4
- package/components/root/phi-root-theme-resolver.js +3 -0
- package/components/shell/phi-antd-icon.d.ts +1 -8
- package/components/shell/phi-antd-icon.js +1 -227
- package/components/shell/phi-icon-names.d.ts +22 -0
- package/components/shell/phi-icon-names.js +267 -0
- package/components/shell/phi-icon.d.ts +4 -15
- package/components/shell/phi-icon.js +9 -50
- package/components/tables/client/phi-table-binding-params.d.ts +24 -0
- package/components/tables/client/phi-table-binding-params.js +39 -0
- package/components/tables/client/phi-table-binding.d.ts +1 -3
- package/components/tables/client/phi-table-binding.js +5 -9
- package/components/widgets/client/shared/phi-button-icons.d.ts +6 -4
- package/components/widgets/client/shared/phi-button-icons.js +8 -12
- package/components/widgets/client/shared/phi-collection-binding-params.d.ts +8 -0
- package/components/widgets/client/shared/phi-collection-binding-params.js +13 -0
- package/components/widgets/client/shared/phi-collection-provider.d.ts +11 -1
- package/components/widgets/client/shared/phi-collection-provider.js +5 -0
- package/components/widgets/client/shared/phi-collection-view-binding.d.ts +1 -0
- package/components/widgets/client/shared/phi-command-buttons.d.ts +29 -2
- package/components/widgets/client/shared/phi-command-buttons.js +19 -5
- package/components/widgets/client/shared/phi-rendered-value.js +27 -3
- package/components/widgets/client/shared/phi-table-provider-refusal.d.ts +13 -0
- package/components/widgets/client/shared/phi-table-provider-refusal.js +13 -0
- package/components/widgets/config/background.d.ts +3 -2
- package/components/widgets/config/choice-shared.d.ts +10 -1
- package/components/widgets/config/choice-shared.js +8 -2
- package/components/widgets/label-sets/admin-locales.js +1 -1
- package/components/widgets/label-sets/admin-users.d.ts +3 -5
- package/components/widgets/label-sets/admin-users.js +6 -10
- package/components/widgets/label-sets/builder-modules.js +4 -0
- package/components/widgets/label-sets/effects.js +2 -4
- package/components/widgets/label-sets/profile.d.ts +13 -16
- package/components/widgets/label-sets/profile.js +24 -33
- package/components/widgets/label-sets/registration.d.ts +0 -1
- package/components/widgets/label-sets/registration.js +0 -2
- package/components/widgets/label-sets/revisions.js +2 -0
- package/components/widgets/label-sets/search-results.js +2 -4
- package/components/widgets/label-sets/signals.js +2 -0
- package/components/widgets/label-sets/table.js +9 -0
- package/components/widgets/label-types/builder-modules.d.ts +4 -0
- package/components/widgets/label-types/builder-modules.js +2 -0
- package/components/widgets/label-types/effects.d.ts +3 -2
- package/components/widgets/label-types/effects.js +1 -2
- package/components/widgets/label-types/revisions.d.ts +2 -0
- package/components/widgets/label-types/revisions.js +2 -1
- package/components/widgets/label-types/search-results.d.ts +2 -2
- package/components/widgets/label-types/search-results.js +1 -2
- package/components/widgets/label-types/signals.d.ts +2 -0
- package/components/widgets/label-types/signals.js +1 -0
- package/components/widgets/label-types/table.d.ts +3 -0
- package/components/widgets/label-types/table.js +2 -0
- package/components/widgets/server/builder-chrome.d.ts +4 -1
- package/components/widgets/server/builder-chrome.js +2 -2
- package/components/widgets/shared/markdown-body-client.d.ts +26 -0
- package/components/widgets/shared/markdown-body-client.js +31 -1
- package/components/widgets/shared/markdown-render.d.ts +10 -2
- package/components/widgets/shared/markdown-render.js +35 -13
- package/components/widgets/shared/widget-failure-audience.d.ts +7 -0
- package/components/widgets/shared/widget-failure-audience.js +21 -0
- package/components/widgets/shared/widget-failure-client.js +5 -2
- package/components/widgets/shared/widget-failure-notice-client.d.ts +6 -0
- package/components/widgets/shared/widget-failure-notice-client.js +10 -0
- package/components/widgets/shared/widget-failure-notice.d.ts +6 -0
- package/components/widgets/shared/widget-failure-notice.js +17 -0
- package/components/widgets/shared/widget-failure-staff.d.ts +3 -0
- package/components/widgets/shared/widget-failure-staff.js +18 -0
- package/components/widgets/shared/widget-failure.d.ts +9 -6
- package/components/widgets/shared/widget-failure.js +0 -9
- package/components/widgets/shared/widget-failure.server.d.ts +4 -2
- package/components/widgets/shared/widget-failure.server.js +8 -3
- package/constants/countries.d.ts +9 -0
- package/constants/countries.js +28 -0
- package/constants/customer-file.d.ts +34 -0
- package/constants/customer-file.js +35 -0
- package/constants/record-field-kinds.d.ts +15 -0
- package/constants/record-field-kinds.js +13 -0
- package/constants/runtime-module-ownership.js +15 -2
- package/constants/runtime-render-client-types.d.ts +5 -0
- package/constants/runtime-render-client-types.js +5 -0
- package/constants/site-address.d.ts +9 -0
- package/constants/site-address.js +10 -0
- package/constants/table-loading.d.ts +14 -0
- package/constants/table-loading.js +14 -0
- package/{plugins/runtime-modules/threads/controller/address.js → constants/threads-controller-address.js} +1 -1
- package/constants.d.ts +2 -0
- package/constants.js +4 -0
- package/gateway/form-handler-request.d.ts +22 -0
- package/gateway/form-handler-request.js +40 -0
- package/gateway/label-set.d.ts +15 -2
- package/gateway/label-set.js +60 -22
- package/gateway/site-cms-write-validation.js +19 -3
- package/gateway/site-form-route.js +11 -2
- package/helpers/address-field.d.ts +43 -0
- package/helpers/address-field.js +68 -0
- package/helpers/announced-action.d.ts +17 -0
- package/helpers/announced-action.js +29 -0
- package/helpers/cms-dialog.d.ts +5 -20
- package/helpers/cms-dialog.js +8 -13
- package/helpers/cms-page-catalog.d.ts +10 -0
- package/helpers/cms-page-catalog.js +19 -0
- package/helpers/cms-preset-nodes.d.ts +4 -4
- package/helpers/cms-preset-nodes.js +1 -1
- package/helpers/cms-region-keys.d.ts +1 -1
- package/helpers/country-names.d.ts +12 -0
- package/helpers/country-names.js +14 -0
- package/helpers/phi-metadata.d.ts +25 -1
- package/helpers/phi-metadata.js +53 -1
- package/helpers/phi-site-description.d.ts +11 -0
- package/helpers/phi-site-description.js +13 -0
- package/helpers/preset-form-check.d.ts +14 -0
- package/helpers/preset-form-check.js +12 -0
- package/helpers/preset-table-check.d.ts +38 -0
- package/helpers/preset-table-check.js +118 -0
- package/helpers/preset-text-source-check.d.ts +4 -1
- package/helpers/preset-text-source-check.js +6 -1
- package/helpers/preset-tree-contract-check.d.ts +3 -2
- package/helpers/preset-tree-contract-check.js +30 -5
- package/helpers/public-route-claims.d.ts +9 -1
- package/helpers/public-route-claims.js +23 -3
- package/helpers/record-fields.d.ts +1 -5
- package/helpers/record-fields.js +15 -6
- package/helpers/record-widget-binding.d.ts +10 -0
- package/helpers/record-widget-binding.js +35 -0
- package/helpers/record-widget.d.ts +1 -10
- package/helpers/record-widget.js +4 -33
- package/helpers/route-address-check.d.ts +22 -2
- package/helpers/route-address-check.js +29 -8
- package/helpers/site-address-row.d.ts +23 -0
- package/helpers/site-address-row.js +36 -0
- package/helpers/surface-style.d.ts +8 -1
- package/helpers/surface-style.js +12 -2
- package/helpers/table-widget-binding.d.ts +12 -0
- package/helpers/table-widget-binding.js +296 -0
- package/helpers/thread-inbox-row.d.ts +20 -0
- package/helpers/thread-inbox-row.js +26 -0
- package/helpers/translation-format.d.ts +26 -0
- package/helpers/translation-format.js +31 -0
- package/helpers/tree-widget-binding.d.ts +19 -0
- package/helpers/tree-widget-binding.js +72 -0
- package/helpers/typed-confirmation.d.ts +9 -0
- package/helpers/typed-confirmation.js +13 -0
- package/helpers/widget-binding-check.d.ts +22 -0
- package/helpers/widget-binding-check.js +91 -0
- package/module-labels.d.ts +1 -1
- package/module-labels.js +1 -1
- package/module-page-check.d.ts +3 -0
- package/module-page-check.js +3 -0
- package/module-records.d.ts +2 -2
- package/module-records.js +1 -0
- package/next/area-route.js +34 -1
- package/next/root-route.js +4 -4
- package/package.json +2 -2
- package/plugins/runtime-modules/accounting/customer-file-access.d.ts +11 -0
- package/plugins/runtime-modules/accounting/customer-file-access.js +12 -0
- package/plugins/runtime-modules/accounting/data-providers.js +1 -1
- package/plugins/runtime-modules/accounting/ids.d.ts +14 -0
- package/plugins/runtime-modules/accounting/ids.js +34 -0
- package/plugins/runtime-modules/accounting/presets.js +32 -5
- package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.d.ts +78 -0
- package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.js +136 -0
- package/plugins/runtime-modules/accounting/trees/accounting-products-label-set.js +2 -2
- package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.d.ts +29 -0
- package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.js +450 -0
- package/plugins/runtime-modules/accounting/trees/phi-default-accounting-products-page-tree.js +4 -0
- package/plugins/runtime-modules/app/client-data-providers.d.ts +7 -0
- package/plugins/runtime-modules/app/client-data-providers.js +9 -0
- package/plugins/runtime-modules/app/data-providers.d.ts +43 -0
- package/plugins/runtime-modules/app/data-providers.js +45 -0
- package/plugins/runtime-modules/app/definition.d.ts +60 -1
- package/plugins/runtime-modules/app/definition.js +2 -0
- package/plugins/runtime-modules/app/forms.d.ts +33 -3
- package/plugins/runtime-modules/app/forms.js +166 -31
- package/plugins/runtime-modules/app/ids.d.ts +8 -0
- package/plugins/runtime-modules/app/ids.js +9 -0
- package/plugins/runtime-modules/app/module.d.ts +60 -1
- package/plugins/runtime-modules/app/services/addresses-collection.d.ts +59 -0
- package/plugins/runtime-modules/app/services/addresses-collection.js +105 -0
- package/plugins/runtime-modules/app/trees/account-addresses-panel.d.ts +21 -0
- package/plugins/runtime-modules/app/trees/account-addresses-panel.js +143 -0
- package/plugins/runtime-modules/app/trees/addresses-label-set.d.ts +57 -0
- package/plugins/runtime-modules/app/trees/addresses-label-set.js +104 -0
- package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.d.ts +1 -2
- package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.js +28 -19
- package/plugins/runtime-modules/app/trees/profile-label-set.d.ts +1 -2
- package/plugins/runtime-modules/app/trees/profile-label-set.js +5 -14
- package/plugins/runtime-modules/asset/presets.d.ts +4 -0
- package/plugins/runtime-modules/asset/trees/phi-default-admin-media-settings-page-tree.js +5 -0
- package/plugins/runtime-modules/asset/trees/phi-default-builder-media-page-tree.js +4 -2
- package/plugins/runtime-modules/auth/trees/phi-auth-area-overlay-tree.server.js +4 -2
- package/plugins/runtime-modules/auth/trees/phi-default-admin-auth-settings-page-tree.js +2 -2
- package/plugins/runtime-modules/auth/widgets/logout/client.d.ts +1 -1
- package/plugins/runtime-modules/auth/widgets/logout/client.js +2 -2
- package/plugins/runtime-modules/auth/widgets/security/client.d.ts +5 -1
- package/plugins/runtime-modules/auth/widgets/security/client.js +12 -10
- package/plugins/runtime-modules/avatar/overlay-tree.server.js +1 -1
- package/plugins/runtime-modules/blog/presets.d.ts +4 -0
- package/plugins/runtime-modules/builder/clients/inspector-config-field.js +16 -6
- package/plugins/runtime-modules/builder/clients/inspector-image-field.d.ts +2 -1
- package/plugins/runtime-modules/builder/clients/inspector-image-field.js +6 -3
- package/plugins/runtime-modules/builder/clients/inspector-section-widget.js +3 -1
- package/plugins/runtime-modules/builder/clients/metadata-table-provider-stand-ins.d.ts +23 -0
- package/plugins/runtime-modules/builder/clients/metadata-table-provider-stand-ins.js +38 -0
- package/plugins/runtime-modules/builder/clients/mode-switch.d.ts +4 -1
- package/plugins/runtime-modules/builder/clients/mode-switch.js +2 -15
- package/plugins/runtime-modules/builder/clients/pages-workspace.js +2 -0
- package/plugins/runtime-modules/builder/clients/runtime-module-authoring-boundary.js +2 -1
- package/plugins/runtime-modules/builder/controller/draft-status-controller.js +28 -1
- package/plugins/runtime-modules/builder/controller/signal-wiring-controller.js +5 -1
- package/plugins/runtime-modules/builder/developer-workspace-types.d.ts +5 -0
- package/plugins/runtime-modules/builder/page-presets.server.d.ts +7 -0
- package/plugins/runtime-modules/builder/page-presets.server.js +10 -1
- package/plugins/runtime-modules/builder/persistence.js +4 -0
- package/plugins/runtime-modules/builder/public-route-collisions.js +8 -3
- package/plugins/runtime-modules/builder/signal-wiring-options.js +9 -2
- package/plugins/runtime-modules/builder/trees/phi-builder-inspector-area-overlay-tree.server.js +8 -1
- package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.js +47 -7
- package/plugins/runtime-modules/builder/widgets/chrome/config.d.ts +6 -4
- package/plugins/runtime-modules/builder/widgets/chrome/config.js +11 -1
- package/plugins/runtime-modules/builder/widgets/inspector-header/authoring.d.ts +2 -2
- package/plugins/runtime-modules/builder/widgets/inspector-header/plugin.d.ts +2 -2
- package/plugins/runtime-modules/builder/widgets/mode-switch/plugin.js +1 -1
- package/plugins/runtime-modules/builder/widgets/structure-region/built-in.js +2 -2
- package/plugins/runtime-modules/client-manifests/app.js +3 -0
- package/plugins/runtime-modules/client-manifests/builder.js +10 -0
- package/plugins/runtime-modules/client-manifests/common.js +6 -0
- package/plugins/runtime-modules/content-entry-routes.d.ts +4 -0
- package/plugins/runtime-modules/contracts.js +31 -1
- package/plugins/runtime-modules/core/definition.d.ts +23 -0
- package/plugins/runtime-modules/core/form-providers.d.ts +23 -0
- package/plugins/runtime-modules/core/messaging/thread-inbox-table.d.ts +0 -17
- package/plugins/runtime-modules/core/messaging/thread-inbox-table.js +2 -23
- package/plugins/runtime-modules/core/widgets/card/config.d.ts +1 -2
- package/plugins/runtime-modules/core/widgets/card/config.js +0 -1
- package/plugins/runtime-modules/core/widgets/card/editor.js +1 -1
- package/plugins/runtime-modules/core/widgets/collection-view/client.js +5 -2
- package/plugins/runtime-modules/core/widgets/collection-view/config.js +8 -0
- package/plugins/runtime-modules/core/widgets/collection-view/site-address-binding.d.ts +55 -0
- package/plugins/runtime-modules/core/widgets/collection-view/site-address-binding.js +173 -0
- package/plugins/runtime-modules/core/widgets/collection-view/site-address-tiles.d.ts +48 -0
- package/plugins/runtime-modules/core/widgets/collection-view/site-address-tiles.js +67 -0
- package/plugins/runtime-modules/core/widgets/command-toolbar/client.js +3 -0
- package/plugins/runtime-modules/core/widgets/command-toolbar/config.d.ts +316 -1
- package/plugins/runtime-modules/core/widgets/command-toolbar/config.js +4 -4
- package/plugins/runtime-modules/core/widgets/description/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/dimension/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/entry-list/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/float-button/client.js +4 -1
- package/plugins/runtime-modules/core/widgets/float-button/config.d.ts +326 -3
- package/plugins/runtime-modules/core/widgets/float-button/config.js +5 -2
- package/plugins/runtime-modules/core/widgets/form/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/form/config.js +14 -1
- package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/header-navigation/client.js +1 -1
- package/plugins/runtime-modules/core/widgets/length/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/markdown/plugin.js +20 -7
- package/plugins/runtime-modules/core/widgets/markdown/server.d.ts +6 -2
- package/plugins/runtime-modules/core/widgets/markdown/server.js +2 -2
- package/plugins/runtime-modules/core/widgets/markdown/table-embeds.server.d.ts +12 -0
- package/plugins/runtime-modules/core/widgets/markdown/table-embeds.server.js +68 -0
- package/plugins/runtime-modules/core/widgets/number-input/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/record/client.js +2 -6
- package/plugins/runtime-modules/core/widgets/result/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/simple-text/config.js +1 -1
- package/plugins/runtime-modules/core/widgets/simple-text/plugin.js +2 -1
- package/plugins/runtime-modules/core/widgets/table/client.js +48 -51
- package/plugins/runtime-modules/core/widgets/table/config.d.ts +3 -3
- package/plugins/runtime-modules/core/widgets/table/config.js +9 -0
- package/plugins/runtime-modules/core/widgets/table/reader-query.d.ts +17 -0
- package/plugins/runtime-modules/core/widgets/table/reader-query.js +33 -0
- package/plugins/runtime-modules/core/widgets/thread-conversation/client.js +2 -2
- package/plugins/runtime-modules/core/widgets/thread-conversation/config.d.ts +6 -2
- package/plugins/runtime-modules/core/widgets/thread-conversation/config.js +6 -1
- package/plugins/runtime-modules/core/widgets/thread-widget-config.d.ts +10 -0
- package/plugins/runtime-modules/core/widgets/thread-widget-config.js +6 -0
- package/plugins/runtime-modules/core/widgets/tree/client.js +6 -6
- package/plugins/runtime-modules/dashboard/trees/dashboard-cards-page-tree.js +3 -1
- package/plugins/runtime-modules/descriptor-compiler.d.ts +19 -3
- package/plugins/runtime-modules/descriptor-compiler.js +44 -16
- package/plugins/runtime-modules/editor/presets.d.ts +4 -0
- package/plugins/runtime-modules/editor/trees/phi-default-editor-releases-page-tree.js +3 -1
- package/plugins/runtime-modules/groups/trees/phi-default-admin-groups-page-tree.js +5 -1
- package/plugins/runtime-modules/groups/trees/phi-default-app-groups-page-tree.js +5 -1
- package/plugins/runtime-modules/localization/presets.d.ts +4 -0
- package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.d.ts +2 -0
- package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.js +2 -0
- package/plugins/runtime-modules/localization/trees/phi-default-admin-locales-page-tree.js +3 -1
- package/plugins/runtime-modules/localization/trees/phi-default-editor-translations-page-tree.js +9 -2
- package/plugins/runtime-modules/news/presets.d.ts +4 -0
- package/plugins/runtime-modules/observability/trees/phi-default-admin-logs-page-tree.js +6 -2
- package/plugins/runtime-modules/resolver.js +17 -0
- package/plugins/runtime-modules/revisions/controller/binding.d.ts +37 -0
- package/plugins/runtime-modules/revisions/controller/binding.js +75 -0
- package/plugins/runtime-modules/revisions/controller/client.d.ts +5 -0
- package/plugins/runtime-modules/revisions/controller/client.js +86 -60
- package/plugins/runtime-modules/revisions/controller/definition.d.ts +5 -0
- package/plugins/runtime-modules/revisions/controller/definition.js +10 -0
- package/plugins/runtime-modules/revisions/controller/draft-context-target.d.ts +25 -0
- package/plugins/runtime-modules/revisions/controller/draft-context-target.js +33 -0
- package/plugins/runtime-modules/revisions/forms.js +1 -1
- package/plugins/runtime-modules/revisions/page-ids.d.ts +1 -1
- package/plugins/runtime-modules/revisions/page-ids.js +4 -1
- package/plugins/runtime-modules/revisions/presets.d.ts +4 -0
- package/plugins/runtime-modules/revisions/services/options.js +14 -4
- package/plugins/runtime-modules/revisions/services/table.js +54 -25
- package/plugins/runtime-modules/revisions/trees/phi-default-builder-revisions-page-tree.js +79 -4
- package/plugins/runtime-modules/search/widgets/search-results/client.js +4 -2
- package/plugins/runtime-modules/theme/controller/runtime.js +14 -2
- package/plugins/runtime-modules/theme/presets.d.ts +4 -0
- package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +105 -7
- package/plugins/runtime-modules/theme/widgets/brand-controls/config.d.ts +3 -2
- package/plugins/runtime-modules/theme/widgets/brand-controls/config.js +2 -2
- package/plugins/runtime-modules/theme/widgets/brand-controls/plugin.js +19 -7
- package/plugins/runtime-modules/threads/client-data-providers.js +10 -0
- package/plugins/runtime-modules/threads/controller/client.js +62 -2
- package/plugins/runtime-modules/threads/controller/definition.js +49 -1
- package/plugins/runtime-modules/threads/data-providers.d.ts +100 -2
- package/plugins/runtime-modules/threads/data-providers.js +96 -0
- package/plugins/runtime-modules/threads/definition.d.ts +100 -2
- package/plugins/runtime-modules/threads/definition.js +1 -1
- package/plugins/runtime-modules/threads/ids.d.ts +4 -0
- package/plugins/runtime-modules/threads/ids.js +5 -0
- package/plugins/runtime-modules/threads/services/customer-file-addresses.d.ts +30 -0
- package/plugins/runtime-modules/threads/services/customer-file-addresses.js +59 -0
- package/plugins/runtime-modules/threads/services/customer-file-read.d.ts +22 -0
- package/plugins/runtime-modules/threads/services/customer-file-read.js +101 -0
- package/plugins/runtime-modules/threads/services/customer-file-table.d.ts +126 -0
- package/plugins/runtime-modules/threads/services/customer-file-table.js +79 -0
- package/plugins/runtime-modules/threads/trees/phi-default-threads-page-tree.js +5 -3
- package/plugins/runtime-modules/user-management/client-data-providers.js +5 -0
- package/plugins/runtime-modules/user-management/data-providers.d.ts +159 -0
- package/plugins/runtime-modules/user-management/data-providers.js +101 -3
- package/plugins/runtime-modules/user-management/definition.d.ts +159 -0
- package/plugins/runtime-modules/user-management/ids.d.ts +9 -0
- package/plugins/runtime-modules/user-management/ids.js +9 -0
- package/plugins/runtime-modules/user-management/presets.js +17 -1
- package/plugins/runtime-modules/user-management/services/users-access-table.d.ts +378 -0
- package/plugins/runtime-modules/user-management/services/users-access-table.js +132 -0
- package/plugins/runtime-modules/user-management/trees/admin-users-access-label-set.d.ts +90 -0
- package/plugins/runtime-modules/user-management/trees/admin-users-access-label-set.js +122 -0
- package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-access-page-tree.d.ts +20 -0
- package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-access-page-tree.js +181 -0
- package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-page-tree.js +24 -18
- package/server-helpers/cms-page-record.d.ts +9 -1
- package/server-helpers/cms-page-record.js +11 -1
- package/server-helpers/cms-request.js +8 -5
- package/server-helpers/link-preview-image.d.ts +30 -0
- package/server-helpers/link-preview-image.js +57 -0
- package/server-helpers/runtime.js +0 -1
- package/server-helpers/search-text.js +3 -0
- package/server-helpers.d.ts +1 -1
- package/server-helpers.js +1 -1
- package/styles/controls.css +4 -2
- package/styles/layout.css +7 -0
- package/styles/shell.css +30 -6
- package/theme/phi-antd-token-resolver.d.ts +8 -0
- package/theme/phi-antd-token-resolver.js +10 -0
- package/theme/phi-theme-color.d.ts +19 -0
- package/theme/phi-theme-color.js +42 -0
- package/theme/phi-theme-composition.js +9 -0
- package/theme/phi-theme-gradients.js +4 -22
- package/theme/phi-theme-inverse-ground.d.ts +39 -0
- package/theme/phi-theme-inverse-ground.js +103 -0
- package/theme/phi-theme-palette-defaults.d.ts +16 -0
- package/theme/phi-theme-palette-defaults.js +103 -0
- package/theme/phi-theme-tokens.d.ts +2 -1
- package/theme/phi-theme-tokens.js +2 -0
- package/types/cms-module-descriptors.d.ts +14 -0
- package/types/cms-overlay.d.ts +13 -6
- package/types/cms-overlay.js +6 -22
- package/types/cms-plugins.d.ts +20 -3
- package/types/cms.d.ts +10 -0
- package/types/collection-provider.d.ts +27 -0
- package/types/collection-signal-values.d.ts +2 -0
- package/types/collection-signal-values.js +23 -0
- package/types/collection-view-widget.d.ts +9 -0
- package/types/core-widget-placements.d.ts +9 -3
- package/types/link-preview.d.ts +19 -0
- package/types/link-preview.js +19 -0
- package/types/record-provider.d.ts +22 -1
- package/types/signals.d.ts +2 -0
- package/types/signals.js +2 -0
- package/types/site-theme.d.ts +27 -0
- package/types/table-embed.d.ts +48 -0
- package/types/table-embed.js +1 -0
- package/types/table-widget.d.ts +29 -1
- package/types/table-widget.js +0 -282
- package/types/tree-widget.d.ts +0 -1
- package/types/tree-widget.js +0 -60
- package/types/widget-runtime.d.ts +3 -1
- package/types.d.ts +2 -1
- package/types.js +1 -1
- /package/{plugins/runtime-modules/threads/controller/address.d.ts → constants/threads-controller-address.d.ts} +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useCallback, useLayoutEffect, useRef, useState } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* A Table's binding params: what its source was configured with, and what its reader, its binding tools
|
|
5
|
+
* or a signal set since.
|
|
6
|
+
*
|
|
7
|
+
* What was set is tagged with the configuration it was set against. A Builder edit of the configured
|
|
8
|
+
* params is a new starting point; the reader's earlier choice belonged to the old one and would
|
|
9
|
+
* otherwise outlive it.
|
|
10
|
+
*
|
|
11
|
+
* `changeBindingParams` merges a change into the params as they stand after the last change -- ahead of
|
|
12
|
+
* the render that shows them -- and answers the params it made, or null where nothing changed. Both
|
|
13
|
+
* matter to a Table read by a Controller:
|
|
14
|
+
* - two binding tools that answer in the same commit each wrote their value over the params of that
|
|
15
|
+
* render, so the second put back what the first had changed, and the first answered again on the next
|
|
16
|
+
* render -- each answer a new source, a new read and a `bindingParamsChange` handed on;
|
|
17
|
+
* - the same params again were a new object, so a new source and a new read, and handed on again: a
|
|
18
|
+
* Controller that hands its scope on every change of what it reads from read the same history up to
|
|
19
|
+
* six times on opening the Builder's Revisions. The same params are no change at all now.
|
|
20
|
+
*/
|
|
21
|
+
export function usePhiTableBindingParams(configured) {
|
|
22
|
+
const seed = JSON.stringify(configured);
|
|
23
|
+
const [chosen, setChosen] = useState(null);
|
|
24
|
+
const bindingParams = chosen?.seed === seed ? chosen.params : configured;
|
|
25
|
+
const latest = useRef(bindingParams);
|
|
26
|
+
useLayoutEffect(() => {
|
|
27
|
+
latest.current = bindingParams;
|
|
28
|
+
}, [bindingParams]);
|
|
29
|
+
const changeBindingParams = useCallback((patch) => {
|
|
30
|
+
const current = latest.current;
|
|
31
|
+
const next = { ...current, ...patch };
|
|
32
|
+
if (JSON.stringify(next) === JSON.stringify(current))
|
|
33
|
+
return null;
|
|
34
|
+
latest.current = next;
|
|
35
|
+
setChosen({ seed, params: next });
|
|
36
|
+
return next;
|
|
37
|
+
}, [seed]);
|
|
38
|
+
return { bindingParams, changeBindingParams };
|
|
39
|
+
}
|
|
@@ -17,16 +17,14 @@ export type PhiTableBindingInput = {
|
|
|
17
17
|
initialExpandedRowIdentities?: readonly PhiTableRowIdentity[];
|
|
18
18
|
onData?: (data: PhiTableProviderQueryResult) => void;
|
|
19
19
|
onMutation?: (result: PhiTableProviderMutationResult) => void;
|
|
20
|
-
validateResource?: (resource: PhiTableProviderResourceDescriptor) => string | null;
|
|
21
20
|
};
|
|
22
|
-
export declare function usePhiTableBinding({ source, initialQuery, externalQuery, fixedFilters, externalSearch, defaultPageSize, refreshKey, preserveSelectedRowIdentities, initialExpandedRowIdentities, onData, onMutation,
|
|
21
|
+
export declare function usePhiTableBinding({ source, initialQuery, externalQuery, fixedFilters, externalSearch, defaultPageSize, refreshKey, preserveSelectedRowIdentities, initialExpandedRowIdentities, onData, onMutation, }: PhiTableBindingInput): {
|
|
23
22
|
resource: PhiTableProviderResourceDescriptor | null;
|
|
24
23
|
bindingError: string | null;
|
|
25
24
|
rows: readonly TableRow[];
|
|
26
25
|
total: number | null;
|
|
27
26
|
hasMore: boolean;
|
|
28
27
|
summary: Readonly<Record<string, PhiTableSummaryValue>>;
|
|
29
|
-
contractError: string | null;
|
|
30
28
|
loading: boolean;
|
|
31
29
|
error: PhiTableProviderError | null;
|
|
32
30
|
queryError: PhiTableProviderError | null;
|
|
@@ -94,7 +94,7 @@ function resolvePhiTableQuery(query, externalQuery, externalSearch, expandedRowI
|
|
|
94
94
|
expandedRowIdentities,
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
export function usePhiTableBinding({ source, initialQuery = {}, externalQuery, fixedFilters, externalSearch, defaultPageSize = 20, refreshKey, preserveSelectedRowIdentities = false, initialExpandedRowIdentities = [], onData, onMutation,
|
|
97
|
+
export function usePhiTableBinding({ source, initialQuery = {}, externalQuery, fixedFilters, externalSearch, defaultPageSize = 20, refreshKey, preserveSelectedRowIdentities = false, initialExpandedRowIdentities = [], onData, onMutation, }) {
|
|
98
98
|
const { provider, resource, bindingError } = usePhiTableProvider(source);
|
|
99
99
|
/*
|
|
100
100
|
* The reader's language and the Site's zone go with every query, and into what decides that a query
|
|
@@ -102,7 +102,6 @@ export function usePhiTableBinding({ source, initialQuery = {}, externalQuery, f
|
|
|
102
102
|
*/
|
|
103
103
|
const locale = usePhiIntlLocale();
|
|
104
104
|
const timeZone = usePhiIntlTimeZone();
|
|
105
|
-
const resourceError = resource ? validateResource?.(resource) ?? null : null;
|
|
106
105
|
const [query, setQuery] = useState(() => ({
|
|
107
106
|
page: initialQuery.page ?? 1,
|
|
108
107
|
pageSize: initialQuery.pageSize ?? defaultPageSize,
|
|
@@ -284,7 +283,7 @@ export function usePhiTableBinding({ source, initialQuery = {}, externalQuery, f
|
|
|
284
283
|
onDataRef.current?.(data);
|
|
285
284
|
}, [preserveSelectedRowIdentities, resolvedQuery.pageSize, resource, sourceKey]);
|
|
286
285
|
useEffect(() => {
|
|
287
|
-
if (!source || !provider || !resource
|
|
286
|
+
if (!source || !provider || !resource)
|
|
288
287
|
return;
|
|
289
288
|
if (acceptedResolvedQuery.current?.queryKey === resolvedQueryKey &&
|
|
290
289
|
acceptedResolvedQuery.current.refreshRevision === refreshRequest.revision) {
|
|
@@ -293,7 +292,6 @@ export function usePhiTableBinding({ source, initialQuery = {}, externalQuery, f
|
|
|
293
292
|
provider,
|
|
294
293
|
resource,
|
|
295
294
|
source,
|
|
296
|
-
resourceError,
|
|
297
295
|
resolvedQueryKey,
|
|
298
296
|
refreshKey,
|
|
299
297
|
locale,
|
|
@@ -306,13 +304,12 @@ export function usePhiTableBinding({ source, initialQuery = {}, externalQuery, f
|
|
|
306
304
|
previous.provider === provider &&
|
|
307
305
|
previous.resource === resource &&
|
|
308
306
|
previous.source === source &&
|
|
309
|
-
previous.resourceError === resourceError &&
|
|
310
307
|
previous.resolvedQueryKey === resolvedQueryKey &&
|
|
311
308
|
previous.refreshKey === refreshKey &&
|
|
312
309
|
previous.locale === locale &&
|
|
313
310
|
previous.timeZone === timeZone;
|
|
314
311
|
const background = refreshRequest.background && sameQueryInputs && rowsRef.current.length > 0;
|
|
315
|
-
previousQueryInputs.current = { provider, resource, source,
|
|
312
|
+
previousQueryInputs.current = { provider, resource, source, resolvedQueryKey, refreshKey, locale, timeZone };
|
|
316
313
|
const abortController = new AbortController();
|
|
317
314
|
queueMicrotask(() => {
|
|
318
315
|
if (!abortController.signal.aborted) {
|
|
@@ -368,7 +365,7 @@ export function usePhiTableBinding({ source, initialQuery = {}, externalQuery, f
|
|
|
368
365
|
}
|
|
369
366
|
});
|
|
370
367
|
return () => abortController.abort();
|
|
371
|
-
}, [applyData, expandedRowIdentities, externalQuery, externalSearch, locale, provider, query, refreshKey, refreshRequest, resolvedQuery, resolvedQueryKey, resource,
|
|
368
|
+
}, [applyData, expandedRowIdentities, externalQuery, externalSearch, locale, provider, query, refreshKey, refreshRequest, resolvedQuery, resolvedQueryKey, resource, source, stableFixedFilters, timeZone]);
|
|
372
369
|
const reload = useCallback(() => setRefreshRequest((current) => ({
|
|
373
370
|
revision: current.revision + 1,
|
|
374
371
|
background: false,
|
|
@@ -601,8 +598,7 @@ export function usePhiTableBinding({ source, initialQuery = {}, externalQuery, f
|
|
|
601
598
|
total,
|
|
602
599
|
hasMore,
|
|
603
600
|
summary,
|
|
604
|
-
|
|
605
|
-
loading: queryLoading && !bindingError && !resourceError,
|
|
601
|
+
loading: queryLoading && !bindingError,
|
|
606
602
|
error,
|
|
607
603
|
queryError: queryFailure,
|
|
608
604
|
query,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
/**
|
|
3
|
-
* The icon a Button, a Table action or a Command Toolbar names, or null where
|
|
3
|
+
* The icon a Button, a Table action or a Command Toolbar names, as an element, or null where it names
|
|
4
|
+
* none.
|
|
4
5
|
*
|
|
5
|
-
* The same
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* The same names as `PhiIcon`: a short name is the Ant Design icon of that name, one name per icon. The
|
|
7
|
+
* name is not looked up here: a preset's is checked by its tests and the Builder's by its save
|
|
8
|
+
* (`isPhiIconNameKnown`), so a live page draws what it was handed, and a name that names nothing draws
|
|
9
|
+
* nothing.
|
|
8
10
|
*/
|
|
9
11
|
export declare function resolvePhiButtonIcon(icon: string | null | undefined): ReactNode;
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { PhiIcon } from "../../../shell/phi-icon";
|
|
4
4
|
/**
|
|
5
|
-
* The icon a Button, a Table action or a Command Toolbar names, or null where
|
|
5
|
+
* The icon a Button, a Table action or a Command Toolbar names, as an element, or null where it names
|
|
6
|
+
* none.
|
|
6
7
|
*
|
|
7
|
-
* The same
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* The same names as `PhiIcon`: a short name is the Ant Design icon of that name, one name per icon. The
|
|
9
|
+
* name is not looked up here: a preset's is checked by its tests and the Builder's by its save
|
|
10
|
+
* (`isPhiIconNameKnown`), so a live page draws what it was handed, and a name that names nothing draws
|
|
11
|
+
* nothing.
|
|
10
12
|
*/
|
|
11
13
|
export function resolvePhiButtonIcon(icon) {
|
|
12
14
|
const name = icon?.trim();
|
|
13
|
-
|
|
14
|
-
return null;
|
|
15
|
-
if (!isPhiIconNameKnown(name)) {
|
|
16
|
-
reportPhiUnknownIconName(name);
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
return _jsx(PhiIcon, { name: name, size: "1em" });
|
|
15
|
+
return name ? _jsx(PhiIcon, { name: name, size: "1em" }) : null;
|
|
20
16
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Collection View's binding params after a `bindingParamsChange` (`{ params }`): the received ones laid
|
|
3
|
+
* over the ones it has, or `null` where that changes nothing -- the same set again is no new set, so it
|
|
4
|
+
* neither starts the list over nor asks the Provider again. This is what lets another Widget's choice
|
|
5
|
+
* filter a Collection through a Controller that forwards it on every change of the choice
|
|
6
|
+
* (COLLECTIONS.md, "Filtered by another Widget's choice"). Imports nothing.
|
|
7
|
+
*/
|
|
8
|
+
export declare function layPhiCollectionBindingParams(current: Readonly<Record<string, unknown>>, received: Readonly<Record<string, unknown>>): Record<string, unknown> | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Collection View's binding params after a `bindingParamsChange` (`{ params }`): the received ones laid
|
|
3
|
+
* over the ones it has, or `null` where that changes nothing -- the same set again is no new set, so it
|
|
4
|
+
* neither starts the list over nor asks the Provider again. This is what lets another Widget's choice
|
|
5
|
+
* filter a Collection through a Controller that forwards it on every change of the choice
|
|
6
|
+
* (COLLECTIONS.md, "Filtered by another Widget's choice"). Imports nothing.
|
|
7
|
+
*/
|
|
8
|
+
export function layPhiCollectionBindingParams(current, received) {
|
|
9
|
+
const next = { ...current, ...received };
|
|
10
|
+
const unchanged = Object.keys(next).length === Object.keys(current).length &&
|
|
11
|
+
Object.entries(next).every(([key, value]) => JSON.stringify(value) === JSON.stringify(current[key]));
|
|
12
|
+
return unchanged ? null : next;
|
|
13
|
+
}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { type ComponentType, type ReactNode } from "react";
|
|
2
2
|
import { type PhiRuntimeDataProviderKey } from "../../../../types/runtime-data-provider";
|
|
3
|
-
import type { PhiCollectionProviderActionRequest, PhiCollectionProviderData, PhiCollectionProviderQueryRequest } from "../../../../types/collection-provider";
|
|
3
|
+
import type { PhiCollectionProviderActionRequest, PhiCollectionProviderData, PhiCollectionProviderQueryRequest, PhiCollectionProviderRecordRequest } from "../../../../types/collection-provider";
|
|
4
4
|
import type { PhiProviderResourceSource } from "../../../../types/runtime-data-provider";
|
|
5
5
|
export type PhiCollectionProviderRegistration = {
|
|
6
6
|
key: PhiRuntimeDataProviderKey;
|
|
7
7
|
query: (request: PhiCollectionProviderQueryRequest) => Promise<PhiCollectionProviderData>;
|
|
8
8
|
action?: (request: PhiCollectionProviderActionRequest) => Promise<PhiCollectionProviderData>;
|
|
9
|
+
/**
|
|
10
|
+
* One item by its key, for a record-bound Form opened from one of the View's items (FORMS.md, "A
|
|
11
|
+
* record opened from a Collection View"): the Table Provider's `readRecord`, in its request shape. Only
|
|
12
|
+
* for a resource that declares `recordRead: true`, and required by one.
|
|
13
|
+
*/
|
|
14
|
+
readRecord?: (request: PhiCollectionProviderRecordRequest) => Promise<Record<string, unknown>>;
|
|
9
15
|
resources: readonly {
|
|
10
16
|
resourceKey: string;
|
|
11
17
|
/**
|
|
@@ -17,6 +23,8 @@ export type PhiCollectionProviderRegistration = {
|
|
|
17
23
|
* ships; `PhiCmsCollectionViewWidgetConfig.itemRendererKey` names a different one.
|
|
18
24
|
*/
|
|
19
25
|
itemRendererKey: `${string}/${string}`;
|
|
26
|
+
/** As the resource's declaration says it (`PhiCollectionProviderResourceDescriptor.recordRead`). */
|
|
27
|
+
recordRead?: boolean;
|
|
20
28
|
}[];
|
|
21
29
|
};
|
|
22
30
|
export declare function createPhiCollectionProviderClient(registration: PhiCollectionProviderRegistration): ComponentType<{
|
|
@@ -42,6 +50,8 @@ export declare function usePhiCollectionProvider(source: PhiProviderResourceSour
|
|
|
42
50
|
* ships; `PhiCmsCollectionViewWidgetConfig.itemRendererKey` names a different one.
|
|
43
51
|
*/
|
|
44
52
|
itemRendererKey: `${string}/${string}`;
|
|
53
|
+
/** As the resource's declaration says it (`PhiCollectionProviderResourceDescriptor.recordRead`). */
|
|
54
|
+
recordRead?: boolean;
|
|
45
55
|
} | null;
|
|
46
56
|
bindingError: string | null;
|
|
47
57
|
};
|
|
@@ -14,6 +14,11 @@ export function createPhiCollectionProviderClient(registration) {
|
|
|
14
14
|
registration.resources.some((resource) => !resource.resourceKey.trim() || !isPhiNamespacedRuntimeKey(resource.itemRendererKey))) {
|
|
15
15
|
throw new Error(`Collection provider "${registration.key}" has invalid Client resources.`);
|
|
16
16
|
}
|
|
17
|
+
// As a Table Provider's: a record read declared and not served is worse than one never offered.
|
|
18
|
+
const unserved = registration.resources.find((resource) => resource.recordRead === true);
|
|
19
|
+
if (unserved && !registration.readRecord) {
|
|
20
|
+
throw new Error(`Collection provider "${registration.key}" declares recordRead on resource "${unserved.resourceKey}" but has no readRecord.`);
|
|
21
|
+
}
|
|
17
22
|
return function PhiBoundCollectionProviderClient({ children }) {
|
|
18
23
|
return (_jsx(PhiCollectionProviderClient, { registration: registration, children: children }));
|
|
19
24
|
};
|
|
@@ -4,17 +4,37 @@ import { type PhiSignalRouteSet } from "../../../../types/signals";
|
|
|
4
4
|
import type { PhiToolbarControlItem } from "../../../controls/phi-toolbar-control";
|
|
5
5
|
import { type PhiButtonVariant } from "../../config/button-variant";
|
|
6
6
|
import type { PhiCommonControlLabels } from "../../label-types/common-controls";
|
|
7
|
+
type PhiCommandButtonRuntimeState = {
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
visible?: boolean;
|
|
11
|
+
badge?: string | number | null;
|
|
12
|
+
icon?: string | null;
|
|
13
|
+
label?: string | null;
|
|
14
|
+
tooltip?: string | null;
|
|
15
|
+
};
|
|
7
16
|
export type PhiCommandButtonsOptions = {
|
|
8
17
|
buttons: readonly PhiCommandButtonConfig[];
|
|
18
|
+
/** The Widget's control key, as every Control states one (`parsePhiControlConfig`). */
|
|
19
|
+
key?: string | null;
|
|
9
20
|
signalRoutes?: PhiSignalRouteSet | null;
|
|
10
21
|
blockId?: PhiCmsInstanceId | null;
|
|
11
22
|
labels?: PhiCommonControlLabels | null;
|
|
12
23
|
disabled?: boolean;
|
|
24
|
+
/** The Widget's own Disabled, until `enabled/change` says otherwise -- as on the Button Widget. */
|
|
25
|
+
initialDisabled?: boolean;
|
|
26
|
+
/** The Widget's own Read only: every button shows, inert, and none of them sends. */
|
|
27
|
+
initialReadOnly?: boolean;
|
|
13
28
|
signalsEnabled?: boolean;
|
|
14
29
|
};
|
|
15
30
|
export type PhiCommandButtonsResult = {
|
|
31
|
+
/** The control key, `command` where none is stated -- what the signal controller of a Control answers. */
|
|
32
|
+
key: string;
|
|
16
33
|
items: PhiToolbarControlItem[];
|
|
17
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* The whole Widget's answer: disabled from outside, by its own Disabled or Read only, or switched off
|
|
36
|
+
* by `enabled/change`.
|
|
37
|
+
*/
|
|
18
38
|
disabled: boolean;
|
|
19
39
|
activate: (buttonKey: string) => void;
|
|
20
40
|
};
|
|
@@ -29,4 +49,11 @@ export type PhiCommandButtonsResult = {
|
|
|
29
49
|
export declare function resolvePhiCommandButtonVariant(button: Pick<PhiCommandButtonConfig, "variant">, action: {
|
|
30
50
|
variant?: PhiButtonVariant;
|
|
31
51
|
} | null | undefined): PhiButtonVariant | undefined;
|
|
32
|
-
|
|
52
|
+
/**
|
|
53
|
+
* Whether a button is greyed out: its stated Disabled until `enabled/change` says otherwise, as the
|
|
54
|
+
* toolbar's own Disabled is (`resolvedDisabled`). A confirm button placed greyed out and woken by a
|
|
55
|
+
* Controller stayed grey, since the signal could only ever switch a button off.
|
|
56
|
+
*/
|
|
57
|
+
export declare function resolvePhiCommandButtonDisabled(button: Pick<PhiCommandButtonConfig, "disabled">, state: Pick<PhiCommandButtonRuntimeState, "enabled">): boolean;
|
|
58
|
+
export declare function usePhiCommandButtons({ buttons, key, signalRoutes, blockId, labels, disabled, initialDisabled, initialReadOnly, signalsEnabled, }: PhiCommandButtonsOptions): PhiCommandButtonsResult;
|
|
59
|
+
export {};
|
|
@@ -74,7 +74,16 @@ function colorPhiCommandButtonIcon(icon, color) {
|
|
|
74
74
|
return icon;
|
|
75
75
|
return createElement("span", { style: { display: "inline-flex", color } }, icon);
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
/**
|
|
78
|
+
* Whether a button is greyed out: its stated Disabled until `enabled/change` says otherwise, as the
|
|
79
|
+
* toolbar's own Disabled is (`resolvedDisabled`). A confirm button placed greyed out and woken by a
|
|
80
|
+
* Controller stayed grey, since the signal could only ever switch a button off.
|
|
81
|
+
*/
|
|
82
|
+
export function resolvePhiCommandButtonDisabled(button, state) {
|
|
83
|
+
return state.enabled === undefined ? button.disabled === true : !state.enabled;
|
|
84
|
+
}
|
|
85
|
+
export function usePhiCommandButtons({ buttons, key, signalRoutes, blockId, labels, disabled, initialDisabled = false, initialReadOnly = false, signalsEnabled = true, }) {
|
|
86
|
+
const resolvedKey = key?.trim() || "command";
|
|
78
87
|
const signalIdentity = usePhiSignalIdentity();
|
|
79
88
|
const signalPartition = usePhiSignalRuntimePartition();
|
|
80
89
|
const emitSignal = usePhiSignalEmitter(null);
|
|
@@ -82,7 +91,12 @@ export function usePhiCommandButtons({ buttons, signalRoutes, blockId, labels, d
|
|
|
82
91
|
const listenRoutes = useMemo(() => signalRoutes?.listens ?? [], [signalRoutes?.listens]);
|
|
83
92
|
const [commandDisabled, setCommandDisabled] = useState(null);
|
|
84
93
|
const [buttonStateByKey, setButtonStateByKey] = useState({});
|
|
85
|
-
|
|
94
|
+
/*
|
|
95
|
+
* A signal's `enabled/change` overrides the stated Disabled, as `usePhiControlSignalController` does.
|
|
96
|
+
* Read only is drawn as disabled, as on the Button Widget: a button that shows alive and does nothing
|
|
97
|
+
* when pressed cannot be told from one that has nothing wired.
|
|
98
|
+
*/
|
|
99
|
+
const resolvedDisabled = disabled === true || (commandDisabled ?? initialDisabled) || initialReadOnly;
|
|
86
100
|
const widgetReceiver = signalIdentity.sender;
|
|
87
101
|
const buttonAddresses = useMemo(() => new Map(buttons.map((button) => [button.key, resolveButtonSubcontrolAddress(blockId, button.key)])), [blockId, buttons]);
|
|
88
102
|
useEffect(() => {
|
|
@@ -126,7 +140,7 @@ export function usePhiCommandButtons({ buttons, signalRoutes, blockId, labels, d
|
|
|
126
140
|
return null;
|
|
127
141
|
}, [buttonAddresses]);
|
|
128
142
|
function activate(buttonKey) {
|
|
129
|
-
if (!signalsEnabled) {
|
|
143
|
+
if (!signalsEnabled || initialReadOnly) {
|
|
130
144
|
return;
|
|
131
145
|
}
|
|
132
146
|
const button = buttons.find((candidate) => candidate.key === buttonKey);
|
|
@@ -298,7 +312,7 @@ export function usePhiCommandButtons({ buttons, signalRoutes, blockId, labels, d
|
|
|
298
312
|
*/
|
|
299
313
|
type: resolvePhiButtonVariantPresentation(resolvePhiCommandButtonVariant(button, action)).type ?? "default",
|
|
300
314
|
danger: action ? action.danger === true : button.danger === true,
|
|
301
|
-
disabled: button
|
|
315
|
+
disabled: resolvePhiCommandButtonDisabled(button, buttonState),
|
|
302
316
|
readOnly: button.readOnly === true,
|
|
303
317
|
loading: buttonState.loading,
|
|
304
318
|
icon: button.display === "label" ? null : colorPhiCommandButtonIcon(resolvedIcon, button.iconColor),
|
|
@@ -306,5 +320,5 @@ export function usePhiCommandButtons({ buttons, signalRoutes, blockId, labels, d
|
|
|
306
320
|
badge: resolveButtonBadge(button, buttonState.badge),
|
|
307
321
|
};
|
|
308
322
|
});
|
|
309
|
-
return { items, disabled: resolvedDisabled, activate };
|
|
323
|
+
return { key: resolvedKey, items, disabled: resolvedDisabled, activate };
|
|
310
324
|
}
|
|
@@ -8,6 +8,7 @@ import { formatPhiInterval, readPhiIntervalValue } from "../../label-types/inter
|
|
|
8
8
|
import { usePhiIntlLocale, usePhiIntlTimeZone } from "../../../root/phi-intl-locale";
|
|
9
9
|
import { PhiFlexControl } from "../../../controls/phi-flex-control";
|
|
10
10
|
import { PhiTagControl } from "../../../controls/phi-tag-control";
|
|
11
|
+
import { PhiTruncatedHoverText } from "../../../controls/phi-truncated-hover-text";
|
|
11
12
|
import { PhiTypographyControl } from "../../../controls/phi-typography-control";
|
|
12
13
|
import { PhiLink } from "../../../navigation/phi-link";
|
|
13
14
|
import { PhiIcon } from "../../../shell/phi-icon";
|
|
@@ -38,6 +39,29 @@ function normalizePhiRenderedText(value) {
|
|
|
38
39
|
function resolveTagColor(color) {
|
|
39
40
|
return typeof color === "object" ? color.value : color;
|
|
40
41
|
}
|
|
42
|
+
const PHI_RENDERED_TAG_STYLE = { maxWidth: "100%", minWidth: 0 };
|
|
43
|
+
const PHI_RENDERED_TAG_TEXT_STYLE = {
|
|
44
|
+
display: "inline-block",
|
|
45
|
+
maxWidth: "100%",
|
|
46
|
+
overflow: "hidden",
|
|
47
|
+
textOverflow: "ellipsis",
|
|
48
|
+
whiteSpace: "nowrap",
|
|
49
|
+
// Top, not baseline: a box that hides its overflow sits on its bottom edge and would make the row taller.
|
|
50
|
+
verticalAlign: "top",
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* One Tag of a `badge` or `tags` value, never wider than the place it stands in.
|
|
54
|
+
*
|
|
55
|
+
* A Tag does not wrap: it is one unbreakable box as wide as its word. Where the place is narrower -- a
|
|
56
|
+
* `fixed` column, a `maxWidth`, a cell with `ellipsis`, a narrow record -- the box ran past it: over the
|
|
57
|
+
* next cell, or clipped mid-letter by a cell that hides its overflow. The box now ends at the place's edge
|
|
58
|
+
* and the word ends in an ellipsis, said whole in the house tooltip when pointed at. Where nothing narrows
|
|
59
|
+
* it, as in a `content` column, the Tag is exactly as wide as before: a percentage cap adds nothing to the
|
|
60
|
+
* width a column measures.
|
|
61
|
+
*/
|
|
62
|
+
function PhiRenderedTag({ text, color, variant }) {
|
|
63
|
+
return (_jsx(PhiTagControl, { color: color, variant: variant, style: PHI_RENDERED_TAG_STYLE, children: _jsx(PhiTruncatedHoverText, { title: text, children: _jsx("span", { style: PHI_RENDERED_TAG_TEXT_STYLE, children: text }) }) }));
|
|
64
|
+
}
|
|
41
65
|
/** A component rather than a call, because the page's locale and the Site's zone are read from context. */
|
|
42
66
|
function PhiRenderedDate({ value, withTime }) {
|
|
43
67
|
const locale = usePhiIntlLocale();
|
|
@@ -119,9 +143,9 @@ export function renderPhiValueContent(value, definition, labels, presentation =
|
|
|
119
143
|
}
|
|
120
144
|
if (definition.renderer === "tags") {
|
|
121
145
|
const values = Array.isArray(value) ? value : [value];
|
|
122
|
-
return (_jsx(PhiFlexControl, { align: "center", gap: 4, wrap: true, style: { display: "inline-flex" }, children: values.map((entry, index) => {
|
|
146
|
+
return (_jsx(PhiFlexControl, { align: "center", gap: 4, wrap: true, style: { display: "inline-flex", maxWidth: "100%" }, children: values.map((entry, index) => {
|
|
123
147
|
const normalizedEntry = normalizePhiRenderedText(entry);
|
|
124
|
-
return (_jsx(
|
|
148
|
+
return (_jsx(PhiRenderedTag, { color: resolveTagColor(definition.tagColorMap?.[normalizedEntry]), variant: definition.tagVariant ?? "outlined", text: definition.valueMap?.[normalizedEntry] ?? normalizedEntry }, `${normalizedEntry}:${index}`));
|
|
125
149
|
}) }));
|
|
126
150
|
}
|
|
127
151
|
if (definition.renderer === "date" || definition.renderer === "datetime") {
|
|
@@ -134,7 +158,7 @@ export function renderPhiValueContent(value, definition, labels, presentation =
|
|
|
134
158
|
return _jsx(PhiTypographyControl, { code: true, children: displayValue });
|
|
135
159
|
}
|
|
136
160
|
if (definition.renderer === "badge") {
|
|
137
|
-
return (_jsx(
|
|
161
|
+
return (_jsx(PhiRenderedTag, { color: resolveTagColor(definition.tagColorMap?.[normalizedValue]), variant: definition.tagVariant ?? "outlined", text: displayValue }));
|
|
138
162
|
}
|
|
139
163
|
if (definition.renderer === "switch" || definition.renderer === "checkbox") {
|
|
140
164
|
return _jsx(PhiIcon, { name: value === true ? "check" : "close" });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The code of a read the Provider refuses for this reader, on purpose and for a reason the reader may be
|
|
3
|
+
* told -- their own customer file, which nobody opens. A Provider throws `PhiTableProviderError` with it
|
|
4
|
+
* and the sentence; the Table draws itself with the sentence where its rows would be, live as in the
|
|
5
|
+
* Builder, and keeps its tools, so the reader can ask for something else. Any other failed read is the
|
|
6
|
+
* source's fault and ends the Table (TABLES.md, "A refused read").
|
|
7
|
+
*
|
|
8
|
+
* Nothing is imported here: the Markdown body reads the code in every Area's Public chunk.
|
|
9
|
+
*/
|
|
10
|
+
export declare const PHI_TABLE_PROVIDER_REFUSED_CODE = "refused";
|
|
11
|
+
export declare function isPhiTableProviderRefusal(error: {
|
|
12
|
+
code: string;
|
|
13
|
+
} | null | undefined): boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The code of a read the Provider refuses for this reader, on purpose and for a reason the reader may be
|
|
3
|
+
* told -- their own customer file, which nobody opens. A Provider throws `PhiTableProviderError` with it
|
|
4
|
+
* and the sentence; the Table draws itself with the sentence where its rows would be, live as in the
|
|
5
|
+
* Builder, and keeps its tools, so the reader can ask for something else. Any other failed read is the
|
|
6
|
+
* source's fault and ends the Table (TABLES.md, "A refused read").
|
|
7
|
+
*
|
|
8
|
+
* Nothing is imported here: the Markdown body reads the code in every Area's Public chunk.
|
|
9
|
+
*/
|
|
10
|
+
export const PHI_TABLE_PROVIDER_REFUSED_CODE = "refused";
|
|
11
|
+
export function isPhiTableProviderRefusal(error) {
|
|
12
|
+
return error?.code === PHI_TABLE_PROVIDER_REFUSED_CODE;
|
|
13
|
+
}
|
|
@@ -24,8 +24,9 @@ export type PhiBackgroundBaseNone = {
|
|
|
24
24
|
*
|
|
25
25
|
* The box paints what the Theme workspace calls the Chrome Overlay -- its colour or picture and its glass
|
|
26
26
|
* pane -- instead of a ground of its own. It carries nothing else: the Overlay is the Theme's, per mode
|
|
27
|
-
* (`root.chrome[mode]`), and the box reads the mode it stands in. A Surface `tone` is that mode
|
|
28
|
-
* `inverse` Footer
|
|
27
|
+
* (`root.chrome[mode]`), and the box reads the mode it stands in. A Surface `tone` is that mode; an
|
|
28
|
+
* `inverse` Footer stands on the Theme's opaque Inverse Ground (`root.inverse[mode]`) with the other mode's
|
|
29
|
+
* Chrome picture over it, since that mode's Chrome colour may be glass. It is a stated
|
|
29
30
|
* ground: a tone does not paint its own container ground beneath it.
|
|
30
31
|
*/
|
|
31
32
|
export type PhiBackgroundBaseTheme = {
|
|
@@ -13,7 +13,16 @@ export type PhiChoiceControlConfig = PhiControlConfig & PhiChoiceOptionsConfig &
|
|
|
13
13
|
presentation?: "select" | "autocomplete";
|
|
14
14
|
allowCustom?: boolean;
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* The choice Controls that switch a stack -- Segmented, Steps, Tab Bar: options, a value and the Control's
|
|
18
|
+
* state, and none of the select's text entry. `label`, `description` and `presentation` are prepared for
|
|
19
|
+
* presentation variants of their own and drawn by none of them yet.
|
|
20
|
+
*/
|
|
21
|
+
export type PhiStackChoiceControlConfig = PhiControlConfig & PhiChoiceOptionsConfig & {
|
|
22
|
+
label?: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
value?: string;
|
|
25
|
+
presentation?: "select" | "autocomplete";
|
|
17
26
|
valueMode?: PhiChoiceValueMode;
|
|
18
27
|
};
|
|
19
28
|
export declare function buildPhiChoiceControlOptionFields(editorPlacement?: "inspector" | "toolbar"): ({
|
|
@@ -63,8 +63,14 @@ export function parsePhiChoiceControlConfig(config) {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
export function parsePhiStackChoiceControlConfig(config) {
|
|
66
|
+
const reader = createPhiConfigReader(config);
|
|
66
67
|
return {
|
|
67
|
-
...
|
|
68
|
-
|
|
68
|
+
...parsePhiControlConfig(config, { key: "choice" }),
|
|
69
|
+
label: reader.string("label"),
|
|
70
|
+
description: reader.string("description"),
|
|
71
|
+
value: reader.string("value"),
|
|
72
|
+
presentation: reader.oneOf("presentation", ["select", "autocomplete"]) ?? "select",
|
|
73
|
+
...parsePhiChoiceOptionsConfig(config),
|
|
74
|
+
valueMode: reader.oneOf("valueMode", ["raw", "stack-slot-index"]) ?? "raw",
|
|
69
75
|
};
|
|
70
76
|
}
|
|
@@ -40,7 +40,7 @@ const PHI_ADMIN_LOCALES_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
40
40
|
delete_selected_title: definePhiMessageLabel("Delete %1 selected translations?"),
|
|
41
41
|
delete_selected_description: definePhiMessageLabel("The selected translated variants will be deleted permanently."),
|
|
42
42
|
empty_title: definePhiMessageLabel("No translations found."),
|
|
43
|
-
empty_text: definePhiMessageLabel("No site translations exist for this language yet."),
|
|
43
|
+
empty_text: definePhiMessageLabel("No site translations exist for this language yet. New translations are entered in Editor > Translations."),
|
|
44
44
|
load_error: definePhiMessageLabel("Failed to load locale data."),
|
|
45
45
|
save_error: definePhiMessageLabel("Failed to save locale data."),
|
|
46
46
|
required_available_locales: definePhiMessageLabel("Select at least one language."),
|
|
@@ -9,9 +9,8 @@ export declare function getPhiAdminUsersTableWidgetLabels(options: PhiGlobalTran
|
|
|
9
9
|
footer: string;
|
|
10
10
|
accountTypes: {
|
|
11
11
|
all: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
auth: string;
|
|
12
|
+
staff: string;
|
|
13
|
+
customer: string;
|
|
15
14
|
};
|
|
16
15
|
addonRoles: {
|
|
17
16
|
all: string;
|
|
@@ -97,17 +96,16 @@ export declare function getPhiAdminUsersTableWidgetLabels(options: PhiGlobalTran
|
|
|
97
96
|
loading: string;
|
|
98
97
|
empty: string;
|
|
99
98
|
errorTitle: string;
|
|
99
|
+
footer: string;
|
|
100
100
|
};
|
|
101
101
|
actions: {
|
|
102
102
|
edit: string;
|
|
103
|
-
editDisabled: string;
|
|
104
103
|
history: string;
|
|
105
104
|
delete: string;
|
|
106
105
|
};
|
|
107
106
|
confirm: {
|
|
108
107
|
deleteTitle: string;
|
|
109
108
|
deleteSelf: string;
|
|
110
|
-
deleteMedusa: string;
|
|
111
109
|
deleteShared: string;
|
|
112
110
|
deleteIrreversible: string;
|
|
113
111
|
ok: string;
|
|
@@ -12,9 +12,8 @@ const PHI_ADMIN_USERS_TABLE_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
12
12
|
add_label: "Add user",
|
|
13
13
|
footer_count: "%1 users of %2 total",
|
|
14
14
|
account_type_all: "All",
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
account_type_auth: "Auth",
|
|
15
|
+
account_type_staff: "Staff",
|
|
16
|
+
account_type_customer: "Customer",
|
|
18
17
|
enabled_all: "All",
|
|
19
18
|
enabled_enabled: "Enabled",
|
|
20
19
|
enabled_disabled: "Disabled",
|
|
@@ -81,16 +80,15 @@ const PHI_ADMIN_USERS_TABLE_WIDGET_LABEL_SET = definePhiLabelSet({
|
|
|
81
80
|
history_title_with_name: "Login history for %1",
|
|
82
81
|
history_loading: "Loading login history...",
|
|
83
82
|
history_empty: definePhiMessageLabel("No logins found."),
|
|
83
|
+
history_footer: "%1 logins",
|
|
84
84
|
history_error_title: "Login history failed",
|
|
85
85
|
delete_confirm_title: definePhiMessageLabel("Delete user?"),
|
|
86
86
|
delete_confirm_self: definePhiMessageLabel("You cannot delete your own account here."),
|
|
87
|
-
delete_confirm_medusa: definePhiMessageLabel("Medusa-managed accounts cannot be deleted here."),
|
|
88
87
|
delete_confirm_shared: definePhiMessageLabel("This removes the user from the current site. Other site memberships stay intact."),
|
|
89
88
|
delete_confirm_irreversible: definePhiMessageLabel("Without a backup, this action cannot be undone."),
|
|
90
89
|
delete_ok_label: "Delete",
|
|
91
90
|
delete_cancel_label: "Cancel",
|
|
92
91
|
action_edit_label: "Edit user",
|
|
93
|
-
action_edit_disabled_label: definePhiMessageLabel("Medusa-managed accounts cannot be edited here."),
|
|
94
92
|
action_history_label: "Show login history",
|
|
95
93
|
action_delete_label: "Delete user",
|
|
96
94
|
feedback_load_users: definePhiMessageLabel("Failed to load users."),
|
|
@@ -114,9 +112,8 @@ export async function getPhiAdminUsersTableWidgetLabels(options) {
|
|
|
114
112
|
footer: labels.footer_count,
|
|
115
113
|
accountTypes: {
|
|
116
114
|
all: labels.account_type_all,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
auth: labels.account_type_auth,
|
|
115
|
+
staff: labels.account_type_staff,
|
|
116
|
+
customer: labels.account_type_customer,
|
|
120
117
|
},
|
|
121
118
|
addonRoles: {
|
|
122
119
|
all: labels.addon_roles_all,
|
|
@@ -207,17 +204,16 @@ export async function getPhiAdminUsersTableWidgetLabels(options) {
|
|
|
207
204
|
loading: labels.history_loading,
|
|
208
205
|
empty: labels.history_empty,
|
|
209
206
|
errorTitle: labels.history_error_title,
|
|
207
|
+
footer: labels.history_footer,
|
|
210
208
|
},
|
|
211
209
|
actions: {
|
|
212
210
|
edit: labels.action_edit_label,
|
|
213
|
-
editDisabled: labels.action_edit_disabled_label,
|
|
214
211
|
history: labels.action_history_label,
|
|
215
212
|
delete: labels.action_delete_label,
|
|
216
213
|
},
|
|
217
214
|
confirm: {
|
|
218
215
|
deleteTitle: labels.delete_confirm_title,
|
|
219
216
|
deleteSelf: labels.delete_confirm_self,
|
|
220
|
-
deleteMedusa: labels.delete_confirm_medusa,
|
|
221
217
|
deleteShared: labels.delete_confirm_shared,
|
|
222
218
|
deleteIrreversible: labels.delete_confirm_irreversible,
|
|
223
219
|
ok: labels.delete_ok_label,
|