@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
package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.js
ADDED
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
import { PHI_CMS_DEFAULT_SLOT_INDEX } from "../../../../constants/cms-layout-types";
|
|
2
|
+
import { PhiCmsFlags, PhiCmsPageType } from "../../../../constants/phi-cms";
|
|
3
|
+
import { createPhiCmsPresetNodes } from "../../../../helpers/cms-preset-nodes";
|
|
4
|
+
import { canPhiViewerAccess } from "../../../../types/access";
|
|
5
|
+
import { createPhiSignalAddress, PHI_SIGNAL_VALUE_SCHEMAS } from "../../../../types/signals";
|
|
6
|
+
import { PHI_THREAD_LIBRARY_DATA_PROVIDER_KEYS } from "../../../../constants/thread-library-provider-keys";
|
|
7
|
+
import { PHI_CORE_RUNTIME_DATA_PROVIDER_KEYS } from "../../../../constants/core-data-provider-keys";
|
|
8
|
+
import { PhisThreadKind } from "../../../../constants/threads";
|
|
9
|
+
import { PHI_SHARED_FORM_IDS } from "../../../../components/forms/shared-form-ids";
|
|
10
|
+
import { buildPhiBasePageContentScaffold, PHI_BASE_PAGE_LAYOUT_NODE_ID } from "../../../../components/regions/presets/phi-base-page-layout";
|
|
11
|
+
import { readPhiServerApiCredentials } from "../../../../helpers/phis-server-credentials";
|
|
12
|
+
import { PHI_DIALOG_WIDTH_SINGLE_COLUMN } from "../../../../helpers/cms-dialog";
|
|
13
|
+
import { createPhiThreadsControllerAddress, PHI_THREADS_CONTROLLER_INSTANCE_KEY, PHI_THREADS_CONTROLLER_TYPE, } from "../../../../constants/threads-controller-address";
|
|
14
|
+
import { PHI_CUSTOMER_FILE_DATA_PROVIDER_KEYS, PHI_CUSTOMER_FILE_RESOURCE_KEYS as RESOURCES, PHI_CUSTOMER_FILE_OWN_FILE_PARAM, } from "../../../../constants/customer-file";
|
|
15
|
+
import { PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_IDS } from "../ids";
|
|
16
|
+
import { PHI_ACCOUNTING_CUSTOMER_FILE_ACCESS } from "../customer-file-access";
|
|
17
|
+
import { getPhiAccountingCustomerFilePageLabels } from "./accounting-customer-file-label-set";
|
|
18
|
+
/** The content region of the customer file Page. */
|
|
19
|
+
const SYNTHETIC_CUSTOMER_FILE_REGION_ID = -459;
|
|
20
|
+
/**
|
|
21
|
+
* Staff's customer file on one member (phis-server `GET /api/site/members/{userId}/file`): who they are and
|
|
22
|
+
* how to reach them, where they live, their file and the conversations they are in.
|
|
23
|
+
*
|
|
24
|
+
* A Page of the Accounting Module, beside the product directory, built from what the conversations Page
|
|
25
|
+
* already is and bound by Foundation names only (`constants/customer-file.ts`,
|
|
26
|
+
* `constants/threads-controller-address.ts`): the Table and Collection Providers and the Conversations
|
|
27
|
+
* Controller are the conversations Module's, which is active in the Accounting Area by default and has to
|
|
28
|
+
* be for this Page to read anything. The person Table's filter is Core's member picker
|
|
29
|
+
* (the `site-members` options with Core's search, which matches names, e-mail addresses and telephone
|
|
30
|
+
* numbers); its query goes to the conversations Table and to the Conversations Controller, so one choice
|
|
31
|
+
* fills the Page with one request: the Controller hands the member to the addresses tiles as binding params
|
|
32
|
+
* (Core's address renderer, read-only), joins the Tables' read for the file's id and hands it to the file
|
|
33
|
+
* panel, a conversation reader whose "Add note" opens Core's Reply Form
|
|
34
|
+
* in a dialog of its own (every message of a file is internal). The conversations Table lists the person's
|
|
35
|
+
* conversations, the file not among them, and choosing a row is the conversations Page's choreography
|
|
36
|
+
* unchanged: the Controller makes the selection a thread, the conversation reader below reads it, and its
|
|
37
|
+
* Reply opens the Reply dialog with the internal note offered.
|
|
38
|
+
*
|
|
39
|
+
* The Page is for the holders of `accounting` (`PHI_ACCOUNTING_CUSTOMER_FILE_ACCESS`), who read every
|
|
40
|
+
* field, the addresses included. A viewer the Area admits without it is told so in the Page and nothing is
|
|
41
|
+
* read for them; a Supporter's file is the Support Module's Page over the same route.
|
|
42
|
+
*/
|
|
43
|
+
export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runtime, }) {
|
|
44
|
+
const { widgets: widgetIds, overlays: overlayIds, layouts: layoutIds } = PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_IDS;
|
|
45
|
+
const credentials = readPhiServerApiCredentials();
|
|
46
|
+
const labelOptions = {
|
|
47
|
+
apiBaseUrl: credentials.apiBaseUrl,
|
|
48
|
+
internalToken: credentials.internalToken,
|
|
49
|
+
locale: runtime.locale.current,
|
|
50
|
+
};
|
|
51
|
+
const labels = await getPhiAccountingCustomerFilePageLabels(labelOptions);
|
|
52
|
+
const nodes = createPhiCmsPresetNodes(page);
|
|
53
|
+
const scaffold = buildPhiBasePageContentScaffold({ page, regionId: SYNTHETIC_CUSTOMER_FILE_REGION_ID });
|
|
54
|
+
const pageMeta = {
|
|
55
|
+
title: { msgId: 0, source: "Customer file", value: labels.title },
|
|
56
|
+
description: {
|
|
57
|
+
msgId: 0,
|
|
58
|
+
source: "One member of the site: how to reach them, where they are, their file and their conversations.",
|
|
59
|
+
value: labels.description,
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
if (!canPhiViewerAccess(runtime.viewer, PHI_ACCOUNTING_CUSTOMER_FILE_ACCESS)) {
|
|
63
|
+
return {
|
|
64
|
+
page: nodes.page({ pageType: PhiCmsPageType.Standard }),
|
|
65
|
+
pageMeta,
|
|
66
|
+
regions: [scaffold.region],
|
|
67
|
+
layoutNodes: [scaffold.layoutNode],
|
|
68
|
+
overlays: [],
|
|
69
|
+
contentWidgets: [nodes.widget({
|
|
70
|
+
id: widgetIds.widgetPerson,
|
|
71
|
+
parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
|
|
72
|
+
typeKey: "simple-text",
|
|
73
|
+
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
74
|
+
sortOrder: 0,
|
|
75
|
+
label: labels.title,
|
|
76
|
+
flags: PhiCmsFlags.NoTranslate,
|
|
77
|
+
config: { text: labels.notStaff, tone: "secondary" },
|
|
78
|
+
})],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
const controllerAddress = createPhiThreadsControllerAddress();
|
|
82
|
+
const addressesAddress = createPhiSignalAddress("cms", widgetIds.widgetAddresses);
|
|
83
|
+
const fileAddress = createPhiSignalAddress("cms", widgetIds.widgetFile);
|
|
84
|
+
const threadsAddress = createPhiSignalAddress("cms", widgetIds.widgetThreads);
|
|
85
|
+
const conversationAddress = createPhiSignalAddress("cms", widgetIds.widgetConversation);
|
|
86
|
+
const noteOverlayAddress = createPhiSignalAddress("cms", overlayIds.overlayNote);
|
|
87
|
+
const noteFormAddress = createPhiSignalAddress("cms", widgetIds.widgetNoteForm);
|
|
88
|
+
const replyOverlayAddress = createPhiSignalAddress("cms", overlayIds.overlayReply);
|
|
89
|
+
const replyFormAddress = createPhiSignalAddress("cms", widgetIds.widgetReplyForm);
|
|
90
|
+
const route = (routeKey, capabilityId, channel, action, receiver, valueType = "none", valueSchema) => ({
|
|
91
|
+
routeKey,
|
|
92
|
+
capabilityId,
|
|
93
|
+
scope: "page",
|
|
94
|
+
channel,
|
|
95
|
+
action,
|
|
96
|
+
valueType,
|
|
97
|
+
...(valueSchema ? { valueSchema } : {}),
|
|
98
|
+
receiver,
|
|
99
|
+
});
|
|
100
|
+
const queryInput = (routeKey, receiver) => route(routeKey, "queryChange", "query", "change", receiver, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableQuery);
|
|
101
|
+
const tableAction = (routeKey, capabilityId, receiver) => route(routeKey, capabilityId, "action", "activate", receiver, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableAction);
|
|
102
|
+
const threadRoute = (routeKey, capabilityId, action, receiver) => route(routeKey, capabilityId, "thread", action, receiver, "json", PHI_SIGNAL_VALUE_SCHEMAS.threadSelection);
|
|
103
|
+
const prefix = "accounting-customer-file";
|
|
104
|
+
// What each Table says where its rows would be when the reader chooses themselves (Core refuses that file).
|
|
105
|
+
const ownFile = { [PHI_CUSTOMER_FILE_OWN_FILE_PARAM]: labels.ownFile };
|
|
106
|
+
/*
|
|
107
|
+
* Core's Reply Form in a dialog, once for a note in the file and once for a reply in the conversation:
|
|
108
|
+
* each opens on its own reader's Reply and reads its thread from the row that Reply named. Every message
|
|
109
|
+
* of a file is internal (Core), so the note offers no audience; the reply offers the internal note.
|
|
110
|
+
*/
|
|
111
|
+
const writeDialog = (kind) => {
|
|
112
|
+
const note = kind === "note";
|
|
113
|
+
const overlayAddress = note ? noteOverlayAddress : replyOverlayAddress;
|
|
114
|
+
const formAddress = note ? noteFormAddress : replyFormAddress;
|
|
115
|
+
const title = note ? labels.note.title : labels.reply.title;
|
|
116
|
+
const dialog = nodes.dialog({
|
|
117
|
+
id: note ? overlayIds.overlayNote : overlayIds.overlayReply,
|
|
118
|
+
bodyLayoutNodeId: note ? layoutIds.layoutNote : layoutIds.layoutReply,
|
|
119
|
+
sortOrder: note ? 0 : 1,
|
|
120
|
+
label: `${prefix}-${kind}-modal`,
|
|
121
|
+
config: {
|
|
122
|
+
title,
|
|
123
|
+
size: { width: PHI_DIALOG_WIDTH_SINGLE_COLUMN },
|
|
124
|
+
mountPolicy: "remount",
|
|
125
|
+
closeMode: "immediate",
|
|
126
|
+
openActionKey: "reply",
|
|
127
|
+
signalRoutes: {
|
|
128
|
+
listens: [
|
|
129
|
+
tableAction(`${prefix}-${kind}-open`, "open", overlayAddress),
|
|
130
|
+
route(`${prefix}-${kind}-close`, "close", "dialog", "close", overlayAddress),
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
commands: {
|
|
135
|
+
footerLayoutNodeId: note ? layoutIds.layoutNoteFooter : layoutIds.layoutReplyFooter,
|
|
136
|
+
widgetId: note ? widgetIds.widgetNoteCommands : widgetIds.widgetReplyCommands,
|
|
137
|
+
label: title,
|
|
138
|
+
flags: PhiCmsFlags.NoTranslate,
|
|
139
|
+
config: {
|
|
140
|
+
key: `${prefix}-${kind}-commands`,
|
|
141
|
+
buttons: [
|
|
142
|
+
{ key: "cancel", emits: [{ capabilityId: "close", value: null }], action: "cancel", icon: "close" },
|
|
143
|
+
{
|
|
144
|
+
key: "submit",
|
|
145
|
+
emits: [{ capabilityId: "submit", value: null }],
|
|
146
|
+
label: note ? labels.note.save : labels.reply.send,
|
|
147
|
+
variant: "primary",
|
|
148
|
+
icon: note ? "save" : "antd:send-outlined",
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
signalRoutes: {
|
|
152
|
+
emits: [
|
|
153
|
+
route(`${prefix}-${kind}-cancel`, "close", "dialog", "close", overlayAddress),
|
|
154
|
+
route(`${prefix}-${kind}-commands-submit`, "submit", "submit", "activate", formAddress),
|
|
155
|
+
],
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
});
|
|
160
|
+
const form = nodes.widget({
|
|
161
|
+
id: formAddress === noteFormAddress ? widgetIds.widgetNoteForm : widgetIds.widgetReplyForm,
|
|
162
|
+
parentLayoutNodeId: note ? layoutIds.layoutNote : layoutIds.layoutReply,
|
|
163
|
+
typeKey: "form",
|
|
164
|
+
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
165
|
+
label: title,
|
|
166
|
+
flags: PhiCmsFlags.NoTranslate,
|
|
167
|
+
config: {
|
|
168
|
+
formId: PHI_SHARED_FORM_IDS.threadReply,
|
|
169
|
+
// A reply may be an internal note; in the file every message is one (Core), so there is nothing to choose.
|
|
170
|
+
...(note ? {} : { formConfig: { initialValues: { internalAllowed: true } } }),
|
|
171
|
+
execution: { mode: "handler" },
|
|
172
|
+
source: { providerKey: PHI_THREAD_LIBRARY_DATA_PROVIDER_KEYS.table, resourceKey: "inbox" },
|
|
173
|
+
openActionKey: "reply",
|
|
174
|
+
feedback: { mode: "message" },
|
|
175
|
+
signalRoutes: {
|
|
176
|
+
emits: [
|
|
177
|
+
route(`${prefix}-${kind}-success`, "submitSuccess", "submit", "activate", controllerAddress, "json", PHI_SIGNAL_VALUE_SCHEMAS.formResult),
|
|
178
|
+
route(`${prefix}-${kind}-success-close`, "submitSuccess", "dialog", "close", overlayAddress),
|
|
179
|
+
],
|
|
180
|
+
listens: [
|
|
181
|
+
route(`${prefix}-${kind}-submit`, "submit", "submit", "activate", formAddress),
|
|
182
|
+
tableAction(`${prefix}-${kind}-record-open`, "recordOpen", formAddress),
|
|
183
|
+
],
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
});
|
|
187
|
+
return { dialog, form };
|
|
188
|
+
};
|
|
189
|
+
const noteDialog = writeDialog("note");
|
|
190
|
+
const replyDialog = writeDialog("reply");
|
|
191
|
+
/*
|
|
192
|
+
* A conversation reader: the file's, which the Controller hands the member's file, and the listing's,
|
|
193
|
+
* which it hands the chosen conversation. Each Reply opens its own dialog and reads its own Form, and
|
|
194
|
+
* reaches the Controller too, which then knows where the message landed.
|
|
195
|
+
*/
|
|
196
|
+
const reader = (kind) => {
|
|
197
|
+
const file = kind === "file";
|
|
198
|
+
const address = file ? fileAddress : conversationAddress;
|
|
199
|
+
const overlayAddress = file ? noteOverlayAddress : replyOverlayAddress;
|
|
200
|
+
const formAddress = file ? noteFormAddress : replyFormAddress;
|
|
201
|
+
return {
|
|
202
|
+
reply: true,
|
|
203
|
+
...(file ? { title: labels.file.title, replyLabel: labels.file.add, emptyDescription: labels.file.empty } : { emptyDescription: labels.conversation.empty }),
|
|
204
|
+
signalRoutes: {
|
|
205
|
+
emits: [
|
|
206
|
+
...(file ? [] : [
|
|
207
|
+
// A conversation opened from `?thread=` reaches the Controller, which knows it is open.
|
|
208
|
+
route(`${prefix}-conversation-opened`, "opened", "opened", "change", controllerAddress, "json", PHI_SIGNAL_VALUE_SCHEMAS.threadSelection),
|
|
209
|
+
]),
|
|
210
|
+
tableAction(`${prefix}-${kind}-reply`, "reply", overlayAddress),
|
|
211
|
+
tableAction(`${prefix}-${kind}-reply-record`, "reply", formAddress),
|
|
212
|
+
tableAction(`${prefix}-${kind}-reply-controller`, "reply", controllerAddress),
|
|
213
|
+
],
|
|
214
|
+
listens: [
|
|
215
|
+
threadRoute(`${prefix}-${kind}-select`, "select", "change", address),
|
|
216
|
+
threadRoute(`${prefix}-${kind}-reload`, "reload", "reload", address),
|
|
217
|
+
],
|
|
218
|
+
},
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
return {
|
|
222
|
+
page: nodes.page({ pageType: PhiCmsPageType.Standard }),
|
|
223
|
+
pageMeta,
|
|
224
|
+
/*
|
|
225
|
+
* The Conversations Controller, configured as on the conversations Page -- the chosen conversation to
|
|
226
|
+
* its reader, the listing read again after a reply -- and with this Page's part: the member's file to
|
|
227
|
+
* the file panel when the person Table chooses one, read again after a note.
|
|
228
|
+
*/
|
|
229
|
+
controllerSettings: [{
|
|
230
|
+
type: PHI_THREADS_CONTROLLER_TYPE,
|
|
231
|
+
instanceKey: PHI_THREADS_CONTROLLER_INSTANCE_KEY,
|
|
232
|
+
mountScope: "page",
|
|
233
|
+
config: {
|
|
234
|
+
signalRoutes: {
|
|
235
|
+
emits: [
|
|
236
|
+
threadRoute(`${prefix}-controller-thread`, "threadChange", "change", conversationAddress),
|
|
237
|
+
threadRoute(`${prefix}-controller-thread-reload`, "threadReload", "reload", conversationAddress),
|
|
238
|
+
threadRoute(`${prefix}-controller-file`, "fileThreadChange", "change", fileAddress),
|
|
239
|
+
threadRoute(`${prefix}-controller-file-reload`, "fileThreadReload", "reload", fileAddress),
|
|
240
|
+
route(`${prefix}-controller-reload-threads`, "reload", "reload", "activate", threadsAddress),
|
|
241
|
+
// The member chosen, as the addresses tiles' binding params.
|
|
242
|
+
route(`${prefix}-controller-addresses`, "memberParamsChange", "bindingParams", "change", addressesAddress, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableBindingParams),
|
|
243
|
+
],
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
}],
|
|
247
|
+
overlays: [noteDialog.dialog.overlay, replyDialog.dialog.overlay],
|
|
248
|
+
regions: [scaffold.region],
|
|
249
|
+
layoutNodes: [scaffold.layoutNode, ...noteDialog.dialog.layouts, ...replyDialog.dialog.layouts],
|
|
250
|
+
contentWidgets: [
|
|
251
|
+
nodes.widget({
|
|
252
|
+
id: widgetIds.widgetPerson,
|
|
253
|
+
parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
|
|
254
|
+
typeKey: "table",
|
|
255
|
+
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
256
|
+
sortOrder: 0,
|
|
257
|
+
// The Module's Label Set, translated already.
|
|
258
|
+
flags: PhiCmsFlags.NoTranslate,
|
|
259
|
+
label: labels.person.label,
|
|
260
|
+
config: {
|
|
261
|
+
source: { providerKey: PHI_CUSTOMER_FILE_DATA_PROVIDER_KEYS.table, resourceKey: RESOURCES.person, params: ownFile },
|
|
262
|
+
presentation: {
|
|
263
|
+
title: labels.person.title,
|
|
264
|
+
controlSize: "small",
|
|
265
|
+
layout: { mode: "auto", overflowX: "auto" },
|
|
266
|
+
columns: [
|
|
267
|
+
{ key: "displayName", fieldKey: "displayName", title: labels.person.columns.displayName, sizing: { mode: "content", minWidth: 120 } },
|
|
268
|
+
{ key: "fullName", fieldKey: "fullName", title: labels.person.columns.name, sizing: { mode: "content", minWidth: 120 } },
|
|
269
|
+
{ key: "companyName", fieldKey: "companyName", title: labels.person.columns.company, sizing: { mode: "content", minWidth: 120 } },
|
|
270
|
+
{ key: "email", fieldKey: "email", title: labels.person.columns.email, renderer: "email", sizing: { mode: "fill", minWidth: 200 } },
|
|
271
|
+
{ key: "phone", fieldKey: "phone", title: labels.person.columns.phone, sizing: { mode: "content", minWidth: 120 } },
|
|
272
|
+
{ key: "mobile", fieldKey: "mobile", title: labels.person.columns.mobile, sizing: { mode: "content", minWidth: 120 } },
|
|
273
|
+
],
|
|
274
|
+
emptyState: { title: labels.person.empty },
|
|
275
|
+
footer: {
|
|
276
|
+
template: labels.person.footer,
|
|
277
|
+
values: [{ key: "member", value: { source: "provider", fieldKey: "userId" } }],
|
|
278
|
+
// Nobody chosen: nothing to say under the picker.
|
|
279
|
+
variants: [{ when: { value: { source: "provider", fieldKey: "userId" }, operator: "falsy" }, template: "" }],
|
|
280
|
+
align: "start",
|
|
281
|
+
},
|
|
282
|
+
// One row, the member chosen.
|
|
283
|
+
loadingRows: 1,
|
|
284
|
+
},
|
|
285
|
+
features: {
|
|
286
|
+
// The other readers take this query, so it pages as they do.
|
|
287
|
+
pagination: { enabled: false, pageSize: 25 },
|
|
288
|
+
sorting: { mode: "none" },
|
|
289
|
+
search: { enabled: false },
|
|
290
|
+
tools: { mode: "self-contained", reset: false, reload: true },
|
|
291
|
+
filters: [{
|
|
292
|
+
key: "userId",
|
|
293
|
+
type: "select",
|
|
294
|
+
label: labels.person.picker,
|
|
295
|
+
description: labels.person.pickerHint,
|
|
296
|
+
optionsProvider: {
|
|
297
|
+
providerKey: PHI_CORE_RUNTIME_DATA_PROVIDER_KEYS.siteMembers,
|
|
298
|
+
loadMode: "server",
|
|
299
|
+
search: { enabled: true, minChars: 2 },
|
|
300
|
+
},
|
|
301
|
+
}],
|
|
302
|
+
},
|
|
303
|
+
signalRoutes: {
|
|
304
|
+
// The member chosen, handed on as the query the conversations read it from, and to the
|
|
305
|
+
// Controller, which opens their file and hands the member to the addresses.
|
|
306
|
+
emits: [
|
|
307
|
+
route(`${prefix}-person-to-threads`, "queryChange", "query", "change", threadsAddress, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableQuery),
|
|
308
|
+
route(`${prefix}-person-to-file`, "queryChange", "member", "change", controllerAddress, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableQuery),
|
|
309
|
+
],
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
}),
|
|
313
|
+
/*
|
|
314
|
+
* The member's addresses as Core's address tiles, read-only: the resource declares no action. The
|
|
315
|
+
* member arrives from the Controller as the binding param `userId`, and the read is the one the
|
|
316
|
+
* Tables and the Controller make for the choice, joined.
|
|
317
|
+
*/
|
|
318
|
+
nodes.widget({
|
|
319
|
+
id: widgetIds.widgetAddresses,
|
|
320
|
+
parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
|
|
321
|
+
typeKey: "collection-view",
|
|
322
|
+
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 1,
|
|
323
|
+
sortOrder: 1,
|
|
324
|
+
// The Module's Label Set, translated already.
|
|
325
|
+
flags: PhiCmsFlags.NoTranslate,
|
|
326
|
+
label: labels.addresses.label,
|
|
327
|
+
config: {
|
|
328
|
+
source: { providerKey: PHI_CUSTOMER_FILE_DATA_PROVIDER_KEYS.addresses, resourceKey: RESOURCES.addresses, params: ownFile },
|
|
329
|
+
presentation: {
|
|
330
|
+
title: labels.addresses.title,
|
|
331
|
+
mode: "grid",
|
|
332
|
+
controlSize: "small",
|
|
333
|
+
emptyDescription: labels.addresses.empty,
|
|
334
|
+
labels: { purposes: labels.addresses.purposes },
|
|
335
|
+
},
|
|
336
|
+
features: {
|
|
337
|
+
tools: { mode: "self-contained", reset: false, reload: false },
|
|
338
|
+
pagination: { enabled: false },
|
|
339
|
+
},
|
|
340
|
+
signalRoutes: {
|
|
341
|
+
listens: [
|
|
342
|
+
route(`${prefix}-addresses-member`, "bindingParamsChange", "bindingParams", "change", addressesAddress, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableBindingParams),
|
|
343
|
+
],
|
|
344
|
+
},
|
|
345
|
+
},
|
|
346
|
+
}),
|
|
347
|
+
// The member's file: its entries, internal notes and what Add-ons wrote with their links, and "Add note".
|
|
348
|
+
nodes.widget({
|
|
349
|
+
id: widgetIds.widgetFile,
|
|
350
|
+
parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
|
|
351
|
+
typeKey: "thread-conversation",
|
|
352
|
+
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 2,
|
|
353
|
+
sortOrder: 2,
|
|
354
|
+
// The Module's Label Set, translated already.
|
|
355
|
+
flags: PhiCmsFlags.NoTranslate,
|
|
356
|
+
label: labels.file.label,
|
|
357
|
+
config: reader("file"),
|
|
358
|
+
}),
|
|
359
|
+
nodes.widget({
|
|
360
|
+
id: widgetIds.widgetThreads,
|
|
361
|
+
parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
|
|
362
|
+
typeKey: "table",
|
|
363
|
+
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 3,
|
|
364
|
+
sortOrder: 3,
|
|
365
|
+
// The Module's Label Set, translated already.
|
|
366
|
+
flags: PhiCmsFlags.NoTranslate,
|
|
367
|
+
label: labels.threads.label,
|
|
368
|
+
config: {
|
|
369
|
+
source: { providerKey: PHI_CUSTOMER_FILE_DATA_PROVIDER_KEYS.table, resourceKey: RESOURCES.threads, params: ownFile },
|
|
370
|
+
presentation: {
|
|
371
|
+
title: labels.threads.title,
|
|
372
|
+
controlSize: "small",
|
|
373
|
+
// Fixed, as on the conversations Page: the subject is the one column worth cutting short.
|
|
374
|
+
layout: { mode: "fixed", overflowX: "auto" },
|
|
375
|
+
columns: [
|
|
376
|
+
{ key: "subject", fieldKey: "subject", title: labels.threads.columns.subject, ellipsis: true, sizing: { mode: "fill", minWidth: 200 } },
|
|
377
|
+
{
|
|
378
|
+
key: "kind",
|
|
379
|
+
fieldKey: "kind",
|
|
380
|
+
title: labels.threads.columns.kind,
|
|
381
|
+
sizing: { mode: "fixed", width: 140 },
|
|
382
|
+
valueMap: {
|
|
383
|
+
[String(PhisThreadKind.Direct)]: labels.threads.kinds.direct,
|
|
384
|
+
[String(PhisThreadKind.Group)]: labels.threads.kinds.group,
|
|
385
|
+
[String(PhisThreadKind.CrossGroup)]: labels.threads.kinds.crossGroup,
|
|
386
|
+
[String(PhisThreadKind.Support)]: labels.threads.kinds.support,
|
|
387
|
+
},
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
key: "state",
|
|
391
|
+
fieldKey: "state",
|
|
392
|
+
title: labels.threads.columns.state,
|
|
393
|
+
renderer: "badge",
|
|
394
|
+
sizing: { mode: "fixed", width: 120 },
|
|
395
|
+
valueMap: labels.threads.states,
|
|
396
|
+
tagColorMap: { unread: "processing", open: "default", archived: "default", locked: "warning" },
|
|
397
|
+
},
|
|
398
|
+
{ key: "latestMessageAt", fieldKey: "latestMessageAt", title: labels.threads.columns.activity, renderer: "datetime", sizing: { mode: "fixed", width: 180 } },
|
|
399
|
+
],
|
|
400
|
+
emptyState: { title: labels.threads.empty, description: labels.threads.emptyHint },
|
|
401
|
+
footer: {
|
|
402
|
+
template: labels.threads.footer,
|
|
403
|
+
values: [
|
|
404
|
+
{ key: "threads", value: { source: "core", fieldKey: "pageRows" } },
|
|
405
|
+
{ key: "page", value: { source: "core", fieldKey: "page" } },
|
|
406
|
+
],
|
|
407
|
+
// Nothing on the page: the empty state says it.
|
|
408
|
+
variants: [{ when: { value: { source: "core", fieldKey: "pageRows" }, operator: "falsy" }, template: "" }],
|
|
409
|
+
align: "start",
|
|
410
|
+
},
|
|
411
|
+
},
|
|
412
|
+
features: {
|
|
413
|
+
// Choosing one opens it below, as on the conversations Page.
|
|
414
|
+
rowSelection: { mode: "single", preserveSelectedRowIdentities: true },
|
|
415
|
+
pagination: { enabled: true, pageSize: 25 },
|
|
416
|
+
sorting: { mode: "none" },
|
|
417
|
+
search: { enabled: false },
|
|
418
|
+
tools: { mode: "self-contained", reset: false, reload: true },
|
|
419
|
+
},
|
|
420
|
+
signalRoutes: {
|
|
421
|
+
emits: [
|
|
422
|
+
route(`${prefix}-threads-selection`, "selectionChange", "selection", "change", controllerAddress, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableSelection),
|
|
423
|
+
// Asking for the condition state is what mounts the Controller, which is kept on demand.
|
|
424
|
+
route(`${prefix}-threads-condition`, "conditionStateRequest", "condition", "reload", controllerAddress),
|
|
425
|
+
],
|
|
426
|
+
listens: [
|
|
427
|
+
queryInput(`${prefix}-threads-query`, threadsAddress),
|
|
428
|
+
route(`${prefix}-threads-reload`, "reload", "reload", "activate", threadsAddress),
|
|
429
|
+
],
|
|
430
|
+
},
|
|
431
|
+
},
|
|
432
|
+
}),
|
|
433
|
+
nodes.widget({
|
|
434
|
+
id: widgetIds.widgetConversation,
|
|
435
|
+
parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
|
|
436
|
+
typeKey: "thread-conversation",
|
|
437
|
+
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 4,
|
|
438
|
+
sortOrder: 4,
|
|
439
|
+
// The Module's Label Set, translated already.
|
|
440
|
+
flags: PhiCmsFlags.NoTranslate,
|
|
441
|
+
label: labels.conversation.label,
|
|
442
|
+
config: reader("conversation"),
|
|
443
|
+
}),
|
|
444
|
+
noteDialog.form,
|
|
445
|
+
replyDialog.form,
|
|
446
|
+
...noteDialog.dialog.widgets,
|
|
447
|
+
...replyDialog.dialog.widgets,
|
|
448
|
+
],
|
|
449
|
+
};
|
|
450
|
+
}
|
package/plugins/runtime-modules/accounting/trees/phi-default-accounting-products-page-tree.js
CHANGED
|
@@ -212,6 +212,8 @@ export async function buildPhiDefaultAccountingProductsPageTree({ page, runtime,
|
|
|
212
212
|
typeKey: "table",
|
|
213
213
|
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
214
214
|
sortOrder: 0,
|
|
215
|
+
// The Module's Label Set, translated already.
|
|
216
|
+
flags: PhiCmsFlags.NoTranslate,
|
|
215
217
|
label: labels.widgetLabel,
|
|
216
218
|
config: {
|
|
217
219
|
source: {
|
|
@@ -351,6 +353,8 @@ export async function buildPhiDefaultAccountingProductsPageTree({ page, runtime,
|
|
|
351
353
|
parentLayoutNodeId: PHI_ACCOUNTING_PRODUCTS_PAGE_LAYOUT_IDS.layoutTerms,
|
|
352
354
|
typeKey: "record",
|
|
353
355
|
slotIndex: 1,
|
|
356
|
+
// The Module's Label Set, translated already.
|
|
357
|
+
flags: PhiCmsFlags.NoTranslate,
|
|
354
358
|
label: "accounting product terms record",
|
|
355
359
|
config: {
|
|
356
360
|
source: {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const PHI_APP_RUNTIME_DATA_PROVIDER_CLIENT_DEFINITIONS: readonly [{
|
|
2
|
+
readonly key: `${string}/${string}`;
|
|
3
|
+
readonly ownerModuleId: "@phis/ui/modules/app";
|
|
4
|
+
readonly loadLive: () => Promise<import("react").ComponentType<{
|
|
5
|
+
children: import("react").ReactNode;
|
|
6
|
+
}>>;
|
|
7
|
+
}];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { PHI_APP_ADDRESSES_DATA_PROVIDER_KEY, PHI_APP_RUNTIME_MODULE_ID } from "./ids";
|
|
3
|
+
export const PHI_APP_RUNTIME_DATA_PROVIDER_CLIENT_DEFINITIONS = [
|
|
4
|
+
{
|
|
5
|
+
key: PHI_APP_ADDRESSES_DATA_PROVIDER_KEY,
|
|
6
|
+
ownerModuleId: PHI_APP_RUNTIME_MODULE_ID,
|
|
7
|
+
loadLive: async () => (await import("./services/addresses-collection")).PhiAppAddressesCollectionProviderClient,
|
|
8
|
+
},
|
|
9
|
+
];
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The account's own address book on this Site (`users:v1`, phis-server SERVER_ADDONS.md): the current
|
|
3
|
+
* addresses only, never a `Superseded` or `Removed` one, as Core's address tiles draw them
|
|
4
|
+
* (`PHI_SITE_ADDRESS_ITEM_RENDERER_KEY`, COLLECTIONS.md "The address renderer").
|
|
5
|
+
*
|
|
6
|
+
* `live` and `authoringMode: "none"`: they are the signed-in person's, and nobody composing a Page has any
|
|
7
|
+
* business reading them. An address never changes in Core -- a change is a new version that replaces it --
|
|
8
|
+
* so the item's id moves with every edit, which is why every write answers the list read again. Adding and
|
|
9
|
+
* changing are the Module's two Forms, opened by the toolbar's `create` and a tile's `edit` (the change
|
|
10
|
+
* Form reads the address through `readRecord`); removing and the two defaults are the Provider's actions.
|
|
11
|
+
* A chosen address is `{ addressId }` (`selectionValueSchema`), prepared for the Shop's checkout.
|
|
12
|
+
*/
|
|
13
|
+
export declare const PHI_APP_RUNTIME_DATA_PROVIDER_DESCRIPTORS: {
|
|
14
|
+
key: `${string}/${string}`;
|
|
15
|
+
ownerModuleId: "@phis/ui/modules/app";
|
|
16
|
+
kind: "collection";
|
|
17
|
+
executionMode: "live";
|
|
18
|
+
authoringMode: "none";
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
resources: {
|
|
22
|
+
resourceKey: string;
|
|
23
|
+
title: string;
|
|
24
|
+
itemIdentityPath: string;
|
|
25
|
+
itemRendererKey: `${string}/${string}`;
|
|
26
|
+
selectionValueSchema: `${string}/signals/${string}`;
|
|
27
|
+
recordRead: true;
|
|
28
|
+
defaultForWidget: true;
|
|
29
|
+
query: {
|
|
30
|
+
search: false;
|
|
31
|
+
pagination: false;
|
|
32
|
+
};
|
|
33
|
+
actions: ({
|
|
34
|
+
key: string;
|
|
35
|
+
title: string;
|
|
36
|
+
scope: "resource";
|
|
37
|
+
} | {
|
|
38
|
+
key: string;
|
|
39
|
+
title: string;
|
|
40
|
+
scope: "item";
|
|
41
|
+
})[];
|
|
42
|
+
}[];
|
|
43
|
+
}[];
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { PHI_SITE_ADDRESS_ITEM_RENDERER_KEY } from "../../../constants/site-address";
|
|
2
|
+
import { PHI_SIGNAL_VALUE_SCHEMAS } from "../../../types/signals";
|
|
3
|
+
import { PHI_APP_ADDRESSES_DATA_PROVIDER_KEY, PHI_APP_ADDRESSES_RESOURCE_KEY, PHI_APP_RUNTIME_MODULE_ID, } from "./ids";
|
|
4
|
+
/**
|
|
5
|
+
* The account's own address book on this Site (`users:v1`, phis-server SERVER_ADDONS.md): the current
|
|
6
|
+
* addresses only, never a `Superseded` or `Removed` one, as Core's address tiles draw them
|
|
7
|
+
* (`PHI_SITE_ADDRESS_ITEM_RENDERER_KEY`, COLLECTIONS.md "The address renderer").
|
|
8
|
+
*
|
|
9
|
+
* `live` and `authoringMode: "none"`: they are the signed-in person's, and nobody composing a Page has any
|
|
10
|
+
* business reading them. An address never changes in Core -- a change is a new version that replaces it --
|
|
11
|
+
* so the item's id moves with every edit, which is why every write answers the list read again. Adding and
|
|
12
|
+
* changing are the Module's two Forms, opened by the toolbar's `create` and a tile's `edit` (the change
|
|
13
|
+
* Form reads the address through `readRecord`); removing and the two defaults are the Provider's actions.
|
|
14
|
+
* A chosen address is `{ addressId }` (`selectionValueSchema`), prepared for the Shop's checkout.
|
|
15
|
+
*/
|
|
16
|
+
export const PHI_APP_RUNTIME_DATA_PROVIDER_DESCRIPTORS = [
|
|
17
|
+
{
|
|
18
|
+
key: PHI_APP_ADDRESSES_DATA_PROVIDER_KEY,
|
|
19
|
+
ownerModuleId: PHI_APP_RUNTIME_MODULE_ID,
|
|
20
|
+
kind: "collection",
|
|
21
|
+
executionMode: "live",
|
|
22
|
+
authoringMode: "none",
|
|
23
|
+
title: "My addresses",
|
|
24
|
+
description: "The signed-in person's current billing and shipping addresses on this Site.",
|
|
25
|
+
resources: [
|
|
26
|
+
{
|
|
27
|
+
resourceKey: PHI_APP_ADDRESSES_RESOURCE_KEY,
|
|
28
|
+
title: "Addresses",
|
|
29
|
+
itemIdentityPath: "id",
|
|
30
|
+
itemRendererKey: PHI_SITE_ADDRESS_ITEM_RENDERER_KEY,
|
|
31
|
+
selectionValueSchema: PHI_SIGNAL_VALUE_SCHEMAS.siteAddressSelection,
|
|
32
|
+
recordRead: true,
|
|
33
|
+
defaultForWidget: true,
|
|
34
|
+
query: { search: false, pagination: false },
|
|
35
|
+
actions: [
|
|
36
|
+
{ key: "create", title: "Add address", scope: "resource" },
|
|
37
|
+
{ key: "edit", title: "Change", scope: "item" },
|
|
38
|
+
{ key: "makeDefaultBilling", title: "Use for billing by default", scope: "item" },
|
|
39
|
+
{ key: "makeDefaultShipping", title: "Use for shipping by default", scope: "item" },
|
|
40
|
+
{ key: "delete", title: "Remove", scope: "item" },
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
];
|
|
@@ -23,7 +23,7 @@ export declare const PHI_APP_RUNTIME_MODULE_DEFINITION: Omit<{
|
|
|
23
23
|
ownerModuleId: "@phis/ui/modules/app";
|
|
24
24
|
title: string;
|
|
25
25
|
phase: "submit";
|
|
26
|
-
handlerKey: "site.app.profile-
|
|
26
|
+
handlerKey: "site.app.profile-phone";
|
|
27
27
|
category: "site";
|
|
28
28
|
transport: "relay";
|
|
29
29
|
method: "PATCH";
|
|
@@ -32,6 +32,34 @@ export declare const PHI_APP_RUNTIME_MODULE_DEFINITION: Omit<{
|
|
|
32
32
|
csrfPath: string;
|
|
33
33
|
requiresCsrf: true;
|
|
34
34
|
credentialPolicy: "site-session";
|
|
35
|
+
} | {
|
|
36
|
+
key: `${string}/${string}`;
|
|
37
|
+
ownerModuleId: "@phis/ui/modules/app";
|
|
38
|
+
title: string;
|
|
39
|
+
phase: "submit";
|
|
40
|
+
handlerKey: "site.app.address-create";
|
|
41
|
+
category: "site";
|
|
42
|
+
transport: "relay";
|
|
43
|
+
method: "POST";
|
|
44
|
+
endpointKey: null;
|
|
45
|
+
upstreamPath: string;
|
|
46
|
+
csrfPath: null;
|
|
47
|
+
requiresCsrf: false;
|
|
48
|
+
credentialPolicy: "site-session";
|
|
49
|
+
} | {
|
|
50
|
+
key: `${string}/${string}`;
|
|
51
|
+
ownerModuleId: "@phis/ui/modules/app";
|
|
52
|
+
title: string;
|
|
53
|
+
phase: "submit";
|
|
54
|
+
handlerKey: "site.app.address-edit";
|
|
55
|
+
category: "site";
|
|
56
|
+
transport: "relay";
|
|
57
|
+
method: "PUT";
|
|
58
|
+
endpointKey: null;
|
|
59
|
+
upstreamPath: string;
|
|
60
|
+
csrfPath: null;
|
|
61
|
+
requiresCsrf: false;
|
|
62
|
+
credentialPolicy: "site-session";
|
|
35
63
|
} | {
|
|
36
64
|
key: `${string}/${string}`;
|
|
37
65
|
ownerModuleId: "@phis/ui/modules/app";
|
|
@@ -62,6 +90,37 @@ export declare const PHI_APP_RUNTIME_MODULE_DEFINITION: Omit<{
|
|
|
62
90
|
credentialPolicy: "site-session";
|
|
63
91
|
})[];
|
|
64
92
|
};
|
|
93
|
+
dataProviders: {
|
|
94
|
+
key: `${string}/${string}`;
|
|
95
|
+
ownerModuleId: "@phis/ui/modules/app";
|
|
96
|
+
kind: "collection";
|
|
97
|
+
executionMode: "live";
|
|
98
|
+
authoringMode: "none";
|
|
99
|
+
title: string;
|
|
100
|
+
description: string;
|
|
101
|
+
resources: {
|
|
102
|
+
resourceKey: string;
|
|
103
|
+
title: string;
|
|
104
|
+
itemIdentityPath: string;
|
|
105
|
+
itemRendererKey: `${string}/${string}`;
|
|
106
|
+
selectionValueSchema: `${string}/signals/${string}`;
|
|
107
|
+
recordRead: true;
|
|
108
|
+
defaultForWidget: true;
|
|
109
|
+
query: {
|
|
110
|
+
search: false;
|
|
111
|
+
pagination: false;
|
|
112
|
+
};
|
|
113
|
+
actions: ({
|
|
114
|
+
key: string;
|
|
115
|
+
title: string;
|
|
116
|
+
scope: "resource";
|
|
117
|
+
} | {
|
|
118
|
+
key: string;
|
|
119
|
+
title: string;
|
|
120
|
+
scope: "item";
|
|
121
|
+
})[];
|
|
122
|
+
}[];
|
|
123
|
+
}[];
|
|
65
124
|
moduleId: "@phis/ui/modules/app";
|
|
66
125
|
area: "app";
|
|
67
126
|
}, "area"> & {
|