@phis/ui 0.7.7 → 0.8.0
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/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 +64 -9
- 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-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/forms/extended-form-field-controls.d.ts +1 -1
- package/components/forms/extended-form-field-controls.js +23 -7
- package/components/forms/flags-field.d.ts +22 -0
- package/components/forms/flags-field.js +58 -0
- 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 +28 -0
- package/components/forms/form-provider-contract.js +45 -2
- package/components/forms/form-provider-registry.d.ts +11 -1
- package/components/forms/money-field-currency-key.d.ts +6 -0
- package/components/forms/money-field-currency-key.js +14 -0
- package/components/forms/money-field.d.ts +26 -3
- package/components/forms/money-field.js +54 -4
- 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/overlays/phi-overlay-container-client.js +2 -2
- 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/navigation-redirect.d.ts +4 -1
- package/components/regions/presets/navigation-redirect.js +6 -3
- package/components/regions/presets/phi-settings-page-shell-tree.d.ts +6 -2
- package/components/regions/presets/phi-settings-page-shell-tree.js +1 -1
- 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 +19 -0
- package/components/shell/phi-icon-names.js +264 -0
- package/components/shell/phi-icon.d.ts +2 -11
- package/components/shell/phi-icon.js +4 -32
- package/components/widgets/client/shared/phi-command-buttons.d.ts +13 -2
- package/components/widgets/client/shared/phi-command-buttons.js +10 -4
- package/components/widgets/client/shared/phi-rendered-value.js +32 -6
- 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 +2 -5
- package/components/widgets/label-sets/admin-users.js +4 -10
- package/components/widgets/label-sets/effects.js +2 -4
- package/components/widgets/label-sets/profile.d.ts +13 -0
- package/components/widgets/label-sets/profile.js +28 -0
- package/components/widgets/label-sets/search-results.js +2 -4
- package/components/widgets/label-sets/table.js +9 -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/search-results.d.ts +2 -2
- package/components/widgets/label-types/search-results.js +1 -2
- 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/constants/countries.d.ts +9 -0
- package/constants/countries.js +28 -0
- package/constants/customer-file.d.ts +25 -0
- package/constants/customer-file.js +26 -0
- package/constants/record-field-kinds.d.ts +15 -0
- package/constants/record-field-kinds.js +13 -0
- package/constants/runtime-module-ownership.js +12 -0
- package/constants/runtime-render-client-types.d.ts +5 -0
- package/constants/runtime-render-client-types.js +5 -0
- package/{plugins/runtime-modules/threads/controller/address.js → constants/threads-controller-address.js} +1 -1
- package/constants.d.ts +1 -0
- package/constants.js +2 -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-form-route.js +11 -2
- package/helpers/address-field.d.ts +43 -0
- package/helpers/address-field.js +68 -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/money-amount.d.ts +7 -0
- package/helpers/money-amount.js +15 -0
- package/helpers/phi-metadata.d.ts +33 -1
- package/helpers/phi-metadata.js +62 -1
- package/helpers/preset-table-check.d.ts +34 -0
- package/helpers/preset-table-check.js +124 -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/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/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/module-labels.d.ts +1 -1
- package/module-labels.js +1 -1
- package/module-page-check.d.ts +1 -0
- package/module-page-check.js +1 -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 -5
- 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 +11 -0
- package/plugins/runtime-modules/accounting/ids.js +23 -0
- package/plugins/runtime-modules/accounting/presets.js +32 -5
- package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.d.ts +66 -0
- package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.js +122 -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 +26 -0
- package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.js +381 -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 +98 -0
- package/plugins/runtime-modules/app/data-providers.js +80 -0
- package/plugins/runtime-modules/app/definition.d.ts +131 -0
- package/plugins/runtime-modules/app/definition.js +2 -0
- package/plugins/runtime-modules/app/forms.d.ts +46 -1
- package/plugins/runtime-modules/app/forms.js +195 -1
- package/plugins/runtime-modules/app/ids.d.ts +7 -0
- package/plugins/runtime-modules/app/ids.js +8 -0
- package/plugins/runtime-modules/app/module.d.ts +131 -0
- package/plugins/runtime-modules/app/presets.js +3 -6
- package/plugins/runtime-modules/app/services/addresses-table.d.ts +135 -0
- package/plugins/runtime-modules/app/services/addresses-table.js +101 -0
- package/plugins/runtime-modules/app/trees/account-addresses-panel.d.ts +17 -0
- package/plugins/runtime-modules/app/trees/account-addresses-panel.js +179 -0
- package/plugins/runtime-modules/app/trees/addresses-label-set.d.ts +62 -0
- package/plugins/runtime-modules/app/trees/addresses-label-set.js +108 -0
- package/plugins/runtime-modules/app/trees/phi-default-app-area-preset-tree.d.ts +3 -6
- package/plugins/runtime-modules/app/trees/phi-default-app-area-preset-tree.js +4 -7
- package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.js +27 -2
- package/plugins/runtime-modules/app/trees/profile-label-set.d.ts +1 -0
- package/plugins/runtime-modules/app/trees/profile-label-set.js +3 -0
- package/plugins/runtime-modules/asset/presets.d.ts +4 -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-image-field.d.ts +2 -1
- package/plugins/runtime-modules/builder/clients/inspector-image-field.js +3 -2
- 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/client.d.ts +5 -5
- package/plugins/runtime-modules/builder/controller/client.js +2 -1
- package/plugins/runtime-modules/builder/controller/definition.d.ts +4 -4
- package/plugins/runtime-modules/builder/controller/definition.js +7 -0
- package/plugins/runtime-modules/builder/controller/draft-command-controller.d.ts +3 -1
- package/plugins/runtime-modules/builder/controller/draft-command-controller.js +2 -1
- package/plugins/runtime-modules/builder/controller/draft-status-controller.js +72 -18
- package/plugins/runtime-modules/builder/controller/server-definition.d.ts +4 -4
- package/plugins/runtime-modules/builder/controller/workspace-controller.d.ts +3 -1
- package/plugins/runtime-modules/builder/controller/workspace-controller.js +8 -10
- package/plugins/runtime-modules/builder/developer-workspace-store.d.ts +10 -0
- package/plugins/runtime-modules/builder/developer-workspace-store.js +35 -1
- package/plugins/runtime-modules/builder/developer-workspace-types.d.ts +5 -0
- package/plugins/runtime-modules/builder/offered-page-catalog.d.ts +6 -0
- package/plugins/runtime-modules/builder/offered-page-catalog.js +35 -6
- 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.d.ts +4 -1
- package/plugins/runtime-modules/builder/persistence.js +14 -3
- package/plugins/runtime-modules/builder/public-route-collisions.js +8 -3
- package/plugins/runtime-modules/builder/trees/phi-builder-inspector-area-overlay-tree.server.js +3 -1
- package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.js +33 -6
- 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/content-entry-routes.d.ts +4 -0
- package/plugins/runtime-modules/contracts.js +31 -1
- package/plugins/runtime-modules/core/definition.d.ts +28 -0
- package/plugins/runtime-modules/core/form-providers.d.ts +28 -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 +0 -1
- 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/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/dimension/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/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/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/simple-text/config.js +1 -1
- package/plugins/runtime-modules/core/widgets/simple-text/plugin.js +2 -1
- package/plugins/runtime-modules/core/widgets/spacer/client.js +3 -3
- package/plugins/runtime-modules/core/widgets/table/client.js +20 -5
- package/plugins/runtime-modules/core/widgets/table/config.js +6 -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/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/phi-default-admin-locales-page-tree.js +3 -1
- package/plugins/runtime-modules/localization/trees/phi-default-editor-translations-page-tree.js +4 -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/phi-default-site-area-preset-tree.js +46 -39
- package/plugins/runtime-modules/preset-contracts/pub-area.d.ts +1 -1
- package/plugins/runtime-modules/preset-contracts/pub-area.js +1 -0
- package/plugins/runtime-modules/resolver.js +17 -0
- package/plugins/runtime-modules/revisions/controller/client.js +50 -46
- 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/presets.d.ts +4 -0
- package/plugins/runtime-modules/revisions/services/table.js +16 -5
- package/plugins/runtime-modules/revisions/trees/phi-default-builder-revisions-page-tree.js +3 -1
- package/plugins/runtime-modules/search/widgets/search-results/client.js +4 -2
- package/plugins/runtime-modules/theme/presets.d.ts +4 -0
- package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +76 -4
- 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 +5 -0
- package/plugins/runtime-modules/threads/controller/definition.js +1 -1
- package/plugins/runtime-modules/threads/data-providers.d.ts +115 -2
- package/plugins/runtime-modules/threads/data-providers.js +85 -0
- package/plugins/runtime-modules/threads/definition.d.ts +115 -2
- package/plugins/runtime-modules/threads/definition.js +1 -1
- package/plugins/runtime-modules/threads/ids.d.ts +2 -0
- package/plugins/runtime-modules/threads/ids.js +3 -0
- package/plugins/runtime-modules/threads/services/customer-file-table.d.ts +192 -0
- package/plugins/runtime-modules/threads/services/customer-file-table.js +164 -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 +86 -0
- package/plugins/runtime-modules/user-management/trees/admin-users-access-label-set.js +118 -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 +166 -0
- package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-page-tree.js +19 -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/search-text.js +3 -0
- package/server-helpers.d.ts +1 -1
- package/server-helpers.js +1 -1
- package/styles/builder-scaffold.css +7 -1
- package/styles/layout-authoring-scaffold.css +27 -0
- package/styles/shell.css +30 -6
- package/theme/phi-theme-composition.js +9 -0
- package/theme/phi-theme-inverse-ground.d.ts +39 -0
- package/theme/phi-theme-inverse-ground.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 +14 -2
- package/types/cms.d.ts +10 -0
- package/types/core-widget-placements.d.ts +3 -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/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 +14 -0
- package/types/widget-runtime.d.ts +3 -0
- package/types.d.ts +1 -0
- /package/{plugins/runtime-modules/threads/controller/address.d.ts → constants/threads-controller-address.d.ts} +0 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { type PhiTableProviderQueryRequest } from "../../../../types/table-widget";
|
|
2
|
+
/** The member's file, a page of the threads they take part in included. */
|
|
3
|
+
export declare function buildPhiCustomerFilePath(userId: number, page: URLSearchParams | null): string;
|
|
4
|
+
/** The person as Core answered them, one row; a field the actor may not read stays empty. */
|
|
5
|
+
export declare function toPhiCustomerFilePersonRow(person: Record<string, unknown>): {
|
|
6
|
+
userId: unknown;
|
|
7
|
+
displayName: string;
|
|
8
|
+
fullName: string;
|
|
9
|
+
companyName: string;
|
|
10
|
+
email: string;
|
|
11
|
+
phone: string;
|
|
12
|
+
mobile: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The threads as the listing shows them: the person's file first, on the first page only -- Core answers
|
|
16
|
+
* its id beside the list, not in it -- then the conversations the actor sees that the person is in, as the
|
|
17
|
+
* inbox reads its rows.
|
|
18
|
+
*/
|
|
19
|
+
export declare function toPhiCustomerFileThreadRows(result: Record<string, unknown>, page: number, fileSubject: string): ({
|
|
20
|
+
kind: string;
|
|
21
|
+
status: string;
|
|
22
|
+
archived: boolean;
|
|
23
|
+
locked: boolean;
|
|
24
|
+
state: string;
|
|
25
|
+
} | {
|
|
26
|
+
id: number;
|
|
27
|
+
subject: string;
|
|
28
|
+
kind: string;
|
|
29
|
+
status: string;
|
|
30
|
+
archived: boolean;
|
|
31
|
+
locked: boolean;
|
|
32
|
+
state: string;
|
|
33
|
+
latestMessageAt: null;
|
|
34
|
+
})[];
|
|
35
|
+
declare function queryCustomerFile({ resourceKey, query, params, signal }: PhiTableProviderQueryRequest): Promise<{
|
|
36
|
+
rows: {
|
|
37
|
+
userId: unknown;
|
|
38
|
+
displayName: string;
|
|
39
|
+
fullName: string;
|
|
40
|
+
companyName: string;
|
|
41
|
+
email: string;
|
|
42
|
+
phone: string;
|
|
43
|
+
mobile: string;
|
|
44
|
+
}[];
|
|
45
|
+
total: number;
|
|
46
|
+
} | {
|
|
47
|
+
rows: {
|
|
48
|
+
createdAt: {} | null;
|
|
49
|
+
flags: number;
|
|
50
|
+
billing: boolean;
|
|
51
|
+
shipping: boolean;
|
|
52
|
+
defaultBilling: boolean;
|
|
53
|
+
defaultShipping: boolean;
|
|
54
|
+
address: {
|
|
55
|
+
[k: string]: string | null;
|
|
56
|
+
};
|
|
57
|
+
lines: string;
|
|
58
|
+
purposes: ("billing" | "shipping" | "defaultBilling" | "defaultShipping")[];
|
|
59
|
+
id: unknown;
|
|
60
|
+
}[];
|
|
61
|
+
total: number;
|
|
62
|
+
} | {
|
|
63
|
+
rows: ({
|
|
64
|
+
kind: string;
|
|
65
|
+
status: string;
|
|
66
|
+
archived: boolean;
|
|
67
|
+
locked: boolean;
|
|
68
|
+
state: string;
|
|
69
|
+
} | {
|
|
70
|
+
id: number;
|
|
71
|
+
subject: string;
|
|
72
|
+
kind: string;
|
|
73
|
+
status: string;
|
|
74
|
+
archived: boolean;
|
|
75
|
+
locked: boolean;
|
|
76
|
+
state: string;
|
|
77
|
+
latestMessageAt: null;
|
|
78
|
+
})[];
|
|
79
|
+
total?: undefined;
|
|
80
|
+
}>;
|
|
81
|
+
export declare const PHI_THREADS_CUSTOMER_FILE_TABLE_PROVIDER_REGISTRATION: {
|
|
82
|
+
key: `${string}/${string}`;
|
|
83
|
+
resources: ({
|
|
84
|
+
resourceKey: "person";
|
|
85
|
+
title: string;
|
|
86
|
+
rowIdentityPath: string;
|
|
87
|
+
fields: ({
|
|
88
|
+
key: string;
|
|
89
|
+
title: string;
|
|
90
|
+
type: "number";
|
|
91
|
+
required: true;
|
|
92
|
+
} | {
|
|
93
|
+
key: string;
|
|
94
|
+
title: string;
|
|
95
|
+
type: "string";
|
|
96
|
+
required?: undefined;
|
|
97
|
+
})[];
|
|
98
|
+
query: {
|
|
99
|
+
search: false;
|
|
100
|
+
filterFields: string[];
|
|
101
|
+
sorting: "none";
|
|
102
|
+
pagination: "none";
|
|
103
|
+
total?: undefined;
|
|
104
|
+
};
|
|
105
|
+
rowActivation?: undefined;
|
|
106
|
+
} | {
|
|
107
|
+
resourceKey: "addresses";
|
|
108
|
+
title: string;
|
|
109
|
+
rowIdentityPath: string;
|
|
110
|
+
fields: ({
|
|
111
|
+
key: string;
|
|
112
|
+
title: string;
|
|
113
|
+
type: "number";
|
|
114
|
+
required: true;
|
|
115
|
+
options?: undefined;
|
|
116
|
+
} | {
|
|
117
|
+
key: string;
|
|
118
|
+
title: string;
|
|
119
|
+
type: "string";
|
|
120
|
+
required?: undefined;
|
|
121
|
+
options?: undefined;
|
|
122
|
+
} | {
|
|
123
|
+
key: string;
|
|
124
|
+
title: string;
|
|
125
|
+
type: "enum[]";
|
|
126
|
+
options: {
|
|
127
|
+
value: string;
|
|
128
|
+
label: string;
|
|
129
|
+
}[];
|
|
130
|
+
required?: undefined;
|
|
131
|
+
} | {
|
|
132
|
+
key: string;
|
|
133
|
+
title: string;
|
|
134
|
+
type: "datetime";
|
|
135
|
+
required?: undefined;
|
|
136
|
+
options?: undefined;
|
|
137
|
+
})[];
|
|
138
|
+
query: {
|
|
139
|
+
search: false;
|
|
140
|
+
filterFields: string[];
|
|
141
|
+
sorting: "none";
|
|
142
|
+
pagination: "none";
|
|
143
|
+
total?: undefined;
|
|
144
|
+
};
|
|
145
|
+
rowActivation?: undefined;
|
|
146
|
+
} | {
|
|
147
|
+
resourceKey: "threads";
|
|
148
|
+
title: string;
|
|
149
|
+
rowIdentityPath: string;
|
|
150
|
+
rowActivation: true;
|
|
151
|
+
fields: ({
|
|
152
|
+
key: string;
|
|
153
|
+
title: string;
|
|
154
|
+
type: "number";
|
|
155
|
+
required: true;
|
|
156
|
+
options?: undefined;
|
|
157
|
+
} | {
|
|
158
|
+
key: string;
|
|
159
|
+
title: string;
|
|
160
|
+
type: "string";
|
|
161
|
+
required?: undefined;
|
|
162
|
+
options?: undefined;
|
|
163
|
+
} | {
|
|
164
|
+
key: string;
|
|
165
|
+
title: string;
|
|
166
|
+
type: "enum";
|
|
167
|
+
options: {
|
|
168
|
+
value: string;
|
|
169
|
+
label: string;
|
|
170
|
+
}[];
|
|
171
|
+
required?: undefined;
|
|
172
|
+
} | {
|
|
173
|
+
key: string;
|
|
174
|
+
title: string;
|
|
175
|
+
type: "datetime";
|
|
176
|
+
required?: undefined;
|
|
177
|
+
options?: undefined;
|
|
178
|
+
})[];
|
|
179
|
+
query: {
|
|
180
|
+
search: false;
|
|
181
|
+
filterFields: string[];
|
|
182
|
+
sorting: "none";
|
|
183
|
+
pagination: "offset";
|
|
184
|
+
total: false;
|
|
185
|
+
};
|
|
186
|
+
})[];
|
|
187
|
+
query: typeof queryCustomerFile;
|
|
188
|
+
};
|
|
189
|
+
export declare const PhiThreadsCustomerFileTableProviderClient: import("react").ComponentType<{
|
|
190
|
+
children: import("react").ReactNode;
|
|
191
|
+
}>;
|
|
192
|
+
export {};
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { isPhiRecord } from "../../../../helpers/is-record";
|
|
3
|
+
import { readPhiJsonError, readPhiJsonPayload } from "../../../../helpers/client-json-request";
|
|
4
|
+
import { buildPhiTablePageParams, createPhiTableProviderRequestInit, readPhiPositiveInteger, readPhiTableRows, } from "../../../../components/widgets/client/shared/phi-table-provider-request";
|
|
5
|
+
import { readPhiTableProviderResponse, } from "../../../../components/widgets/client/shared/phi-table-provider-response";
|
|
6
|
+
import { createPhiTableProviderClient, } from "../../../../components/widgets/client/shared/phi-table-provider";
|
|
7
|
+
import { PhiTableProviderError } from "../../../../types/table-widget";
|
|
8
|
+
import { PhisThreadKind, PhisThreadStatus } from "../../../../constants/threads";
|
|
9
|
+
import { toPhiSiteAddressRow } from "../../../../helpers/site-address-row";
|
|
10
|
+
import { readPhiThreadInboxRow } from "../../../../helpers/thread-inbox-row";
|
|
11
|
+
import { PHI_THREADS_RUNTIME_DATA_PROVIDER_DESCRIPTORS } from "../data-providers";
|
|
12
|
+
import { PHI_CUSTOMER_FILE_OWN_FILE_PARAM, PHI_CUSTOMER_FILE_RESOURCE_KEYS as RESOURCES, PHI_CUSTOMER_FILE_SUBJECT_PARAM, } from "../../../../constants/customer-file";
|
|
13
|
+
import { PHI_TABLE_PROVIDER_REFUSED_CODE } from "../../../../components/widgets/client/shared/phi-table-provider-refusal";
|
|
14
|
+
import { PHI_THREADS_RUNTIME_DATA_PROVIDER_KEYS } from "../ids";
|
|
15
|
+
const RESPONSE_OPTIONS = { subject: "Customer file" };
|
|
16
|
+
// The Page names the same size; Core takes up to 100.
|
|
17
|
+
const THREADS_PAGE_SIZE = 25;
|
|
18
|
+
/** The member's file, a page of the threads they take part in included. */
|
|
19
|
+
export function buildPhiCustomerFilePath(userId, page) {
|
|
20
|
+
const path = `/api/site/members/${userId}/file`;
|
|
21
|
+
return page ? `${path}?${page}` : path;
|
|
22
|
+
}
|
|
23
|
+
function text(value) {
|
|
24
|
+
return typeof value === "string" ? value.trim() : "";
|
|
25
|
+
}
|
|
26
|
+
/** The person as Core answered them, one row; a field the actor may not read stays empty. */
|
|
27
|
+
export function toPhiCustomerFilePersonRow(person) {
|
|
28
|
+
const name = isPhiRecord(person.name) ? person.name : null;
|
|
29
|
+
const phone = isPhiRecord(person.phone) ? person.phone : null;
|
|
30
|
+
return {
|
|
31
|
+
userId: person.userId,
|
|
32
|
+
displayName: text(person.displayName),
|
|
33
|
+
fullName: name ? [text(name.firstName), text(name.lastName)].filter(Boolean).join(" ") : "",
|
|
34
|
+
companyName: name ? text(name.companyName) : "",
|
|
35
|
+
email: text(person.email),
|
|
36
|
+
phone: phone ? text(phone.phone) : "",
|
|
37
|
+
mobile: phone ? text(phone.mobile) : "",
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The threads as the listing shows them: the person's file first, on the first page only -- Core answers
|
|
42
|
+
* its id beside the list, not in it -- then the conversations the actor sees that the person is in, as the
|
|
43
|
+
* inbox reads its rows.
|
|
44
|
+
*/
|
|
45
|
+
export function toPhiCustomerFileThreadRows(result, page, fileSubject) {
|
|
46
|
+
const fileThreadId = readPhiPositiveInteger(result.fileThreadId);
|
|
47
|
+
const threads = readPhiTableRows(result.threads).map(readPhiThreadInboxRow);
|
|
48
|
+
if (page !== 1 || !fileThreadId)
|
|
49
|
+
return threads;
|
|
50
|
+
return [{
|
|
51
|
+
id: fileThreadId,
|
|
52
|
+
subject: fileSubject,
|
|
53
|
+
kind: String(PhisThreadKind.File),
|
|
54
|
+
status: String(PhisThreadStatus.Open),
|
|
55
|
+
archived: false,
|
|
56
|
+
locked: false,
|
|
57
|
+
state: "open",
|
|
58
|
+
latestMessageAt: null,
|
|
59
|
+
}, ...threads.filter((row) => row.id !== fileThreadId)];
|
|
60
|
+
}
|
|
61
|
+
/*
|
|
62
|
+
* Core's refusal of the reader's own file (`403`): the route answers that and nothing else to someone who
|
|
63
|
+
* may open files at all, and nobody else reaches this Page or its member picker.
|
|
64
|
+
*/
|
|
65
|
+
class PhiCustomerFileOwnFileRefusal extends Error {
|
|
66
|
+
}
|
|
67
|
+
/*
|
|
68
|
+
* The reads of one route in flight, by its path. The Page's three Tables ask for the same member at the
|
|
69
|
+
* same time -- the person Table's choice reaches the other two as their query -- and one request answers
|
|
70
|
+
* them all, so one choice is one entry in the access log. Nothing outlives the request: once it settles
|
|
71
|
+
* its entry is gone, and the next read, a reload or another member asks again.
|
|
72
|
+
*/
|
|
73
|
+
const customerFileReads = new Map();
|
|
74
|
+
function abortReason(signal) {
|
|
75
|
+
return signal.reason ?? new DOMException("The read was aborted.", "AbortError");
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The route's answer for this caller. A caller that aborts leaves the request to the others; the request
|
|
79
|
+
* itself is aborted only when the last of them has gone, and is then no longer joined.
|
|
80
|
+
*/
|
|
81
|
+
function readCustomerFile(path, signal) {
|
|
82
|
+
if (signal?.aborted)
|
|
83
|
+
return Promise.reject(abortReason(signal));
|
|
84
|
+
let read = customerFileReads.get(path);
|
|
85
|
+
if (!read) {
|
|
86
|
+
const controller = new AbortController();
|
|
87
|
+
const entry = {
|
|
88
|
+
controller,
|
|
89
|
+
waiters: 0,
|
|
90
|
+
promise: (async () => {
|
|
91
|
+
const response = await fetch(path, createPhiTableProviderRequestInit(controller.signal));
|
|
92
|
+
if (response.status === 403) {
|
|
93
|
+
const refused = await readPhiJsonPayload(response);
|
|
94
|
+
throw new PhiCustomerFileOwnFileRefusal(readPhiJsonError(refused, "Nobody reaches their own file."));
|
|
95
|
+
}
|
|
96
|
+
return readPhiTableProviderResponse(response, RESPONSE_OPTIONS);
|
|
97
|
+
})().finally(() => {
|
|
98
|
+
if (customerFileReads.get(path) === entry)
|
|
99
|
+
customerFileReads.delete(path);
|
|
100
|
+
}),
|
|
101
|
+
};
|
|
102
|
+
// A request every caller left rejects with nobody listening.
|
|
103
|
+
entry.promise.catch(() => undefined);
|
|
104
|
+
customerFileReads.set(path, entry);
|
|
105
|
+
read = entry;
|
|
106
|
+
}
|
|
107
|
+
const shared = read;
|
|
108
|
+
shared.waiters += 1;
|
|
109
|
+
if (!signal)
|
|
110
|
+
return shared.promise;
|
|
111
|
+
return new Promise((resolve, reject) => {
|
|
112
|
+
const leave = () => {
|
|
113
|
+
shared.waiters -= 1;
|
|
114
|
+
reject(abortReason(signal));
|
|
115
|
+
if (shared.waiters > 0)
|
|
116
|
+
return;
|
|
117
|
+
if (customerFileReads.get(path) === shared)
|
|
118
|
+
customerFileReads.delete(path);
|
|
119
|
+
shared.controller.abort(abortReason(signal));
|
|
120
|
+
};
|
|
121
|
+
signal.addEventListener("abort", leave, { once: true });
|
|
122
|
+
shared.promise.then(resolve, reject).finally(() => signal.removeEventListener("abort", leave));
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
async function queryCustomerFile({ resourceKey, query, params, signal }) {
|
|
126
|
+
if (!Object.values(RESOURCES).includes(resourceKey)) {
|
|
127
|
+
throw new PhiTableProviderError("resource-not-found", `Unknown customer file resource "${resourceKey}".`);
|
|
128
|
+
}
|
|
129
|
+
// Nobody chosen yet: nothing is asked for, so nothing is written to the access log.
|
|
130
|
+
const userId = readPhiPositiveInteger(query.filters?.userId);
|
|
131
|
+
if (!userId)
|
|
132
|
+
return resourceKey === RESOURCES.threads ? { rows: [] } : { rows: [], total: 0 };
|
|
133
|
+
// The person and their addresses are the same on every page; they ask for the first, as the threads
|
|
134
|
+
// Table does on a choice, so the three reads are one route.
|
|
135
|
+
const paged = buildPhiTablePageParams(resourceKey === RESOURCES.threads ? query : {}, THREADS_PAGE_SIZE);
|
|
136
|
+
const result = await readCustomerFile(buildPhiCustomerFilePath(userId, paged), signal).catch((error) => {
|
|
137
|
+
if (!(error instanceof PhiCustomerFileOwnFileRefusal))
|
|
138
|
+
throw error;
|
|
139
|
+
// Said where the rows would be, in the Page's words where it gave them, and the picker stays.
|
|
140
|
+
const notice = params?.[PHI_CUSTOMER_FILE_OWN_FILE_PARAM];
|
|
141
|
+
throw new PhiTableProviderError(PHI_TABLE_PROVIDER_REFUSED_CODE, typeof notice === "string" && notice.trim() ? notice : error.message);
|
|
142
|
+
});
|
|
143
|
+
if (!isPhiRecord(result) || !isPhiRecord(result.person)) {
|
|
144
|
+
throw new PhiTableProviderError("invalid-response", "The customer file answer is invalid.");
|
|
145
|
+
}
|
|
146
|
+
if (resourceKey === RESOURCES.person) {
|
|
147
|
+
return { rows: [toPhiCustomerFilePersonRow(result.person)], total: 1 };
|
|
148
|
+
}
|
|
149
|
+
if (resourceKey === RESOURCES.addresses) {
|
|
150
|
+
const rows = readPhiTableRows(result.person.addresses).map(toPhiSiteAddressRow);
|
|
151
|
+
return { rows, total: rows.length };
|
|
152
|
+
}
|
|
153
|
+
const page = Number(paged.get("page")) || 1;
|
|
154
|
+
const subject = typeof params?.[PHI_CUSTOMER_FILE_SUBJECT_PARAM] === "string" ? params[PHI_CUSTOMER_FILE_SUBJECT_PARAM] : "";
|
|
155
|
+
return { rows: toPhiCustomerFileThreadRows(result, page, subject) };
|
|
156
|
+
}
|
|
157
|
+
const resources = PHI_THREADS_RUNTIME_DATA_PROVIDER_DESCRIPTORS
|
|
158
|
+
.find((descriptor) => descriptor.key === PHI_THREADS_RUNTIME_DATA_PROVIDER_KEYS.customerFile)?.resources ?? [];
|
|
159
|
+
export const PHI_THREADS_CUSTOMER_FILE_TABLE_PROVIDER_REGISTRATION = {
|
|
160
|
+
key: PHI_THREADS_RUNTIME_DATA_PROVIDER_KEYS.customerFile,
|
|
161
|
+
resources,
|
|
162
|
+
query: queryCustomerFile,
|
|
163
|
+
};
|
|
164
|
+
export const PhiThreadsCustomerFileTableProviderClient = createPhiTableProviderClient(PHI_THREADS_CUSTOMER_FILE_TABLE_PROVIDER_REGISTRATION);
|
|
@@ -5,7 +5,7 @@ import { createPhiCmsPresetNodes } from "../../../../helpers/cms-preset-nodes";
|
|
|
5
5
|
import { createPhiSignalAddress, createPhiSignalSubcontrolAddress, PHI_SIGNAL_VALUE_SCHEMAS, } from "../../../../types/signals";
|
|
6
6
|
import { PHI_THREAD_LIBRARY_DATA_PROVIDER_KEYS } from "../../../../constants/thread-library-provider-keys";
|
|
7
7
|
import { PhisThreadKind, PhisThreadStatus } from "../../../../constants/threads";
|
|
8
|
-
import { createPhiThreadsControllerAddress, PHI_THREADS_CONTROLLER_INSTANCE_KEY, PHI_THREADS_CONTROLLER_TYPE, } from "
|
|
8
|
+
import { createPhiThreadsControllerAddress, PHI_THREADS_CONTROLLER_INSTANCE_KEY, PHI_THREADS_CONTROLLER_TYPE, } from "../../../../constants/threads-controller-address";
|
|
9
9
|
import { createPhiThreadsPageIds } from "../addresses";
|
|
10
10
|
import { PHI_THREADS_FORM_IDS } from "../forms";
|
|
11
11
|
import { PHI_SHARED_FORM_IDS } from "../../../../components/forms/shared-form-ids";
|
|
@@ -74,7 +74,7 @@ export async function buildPhiDefaultThreadsPageTree({ page, runtime, area, }) {
|
|
|
74
74
|
config: {
|
|
75
75
|
title: labels.composerLabel,
|
|
76
76
|
// Core's Reply Form is one column, and not this Module's to hand to `dialog` (`body.form`).
|
|
77
|
-
width: PHI_DIALOG_WIDTH_SINGLE_COLUMN,
|
|
77
|
+
size: { width: PHI_DIALOG_WIDTH_SINGLE_COLUMN },
|
|
78
78
|
mountPolicy: "remount",
|
|
79
79
|
closeMode: "immediate",
|
|
80
80
|
openActionKey: "reply",
|
|
@@ -266,7 +266,7 @@ export async function buildPhiDefaultThreadsPageTree({ page, runtime, area, }) {
|
|
|
266
266
|
label: "app-threads-new-modal",
|
|
267
267
|
config: {
|
|
268
268
|
title: labels.newConversationLabel,
|
|
269
|
-
width: PHI_DIALOG_WIDTH_SINGLE_COLUMN,
|
|
269
|
+
size: { width: PHI_DIALOG_WIDTH_SINGLE_COLUMN },
|
|
270
270
|
mountPolicy: "remount",
|
|
271
271
|
closeMode: "request",
|
|
272
272
|
signalRoutes: {
|
|
@@ -351,6 +351,8 @@ export async function buildPhiDefaultThreadsPageTree({ page, runtime, area, }) {
|
|
|
351
351
|
*/
|
|
352
352
|
slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
|
|
353
353
|
sortOrder: 0,
|
|
354
|
+
// The Module's Label Set, translated already.
|
|
355
|
+
flags: PhiCmsFlags.NoTranslate,
|
|
354
356
|
label: labels.inboxTitle,
|
|
355
357
|
config: {
|
|
356
358
|
source: {
|
|
@@ -20,4 +20,9 @@ export const PHI_USER_MANAGEMENT_RUNTIME_DATA_PROVIDER_CLIENT_DEFINITIONS = [
|
|
|
20
20
|
loadLive: async () => (await import("../../../plugins/runtime-modules/user-management/services/table"))
|
|
21
21
|
.PhiUserManagementTableProviderClient,
|
|
22
22
|
},
|
|
23
|
+
{
|
|
24
|
+
key: PHI_USER_MANAGEMENT_RUNTIME_DATA_PROVIDER_KEYS.usersAccess,
|
|
25
|
+
ownerModuleId: PHI_USER_MANAGEMENT_RUNTIME_MODULE_ID,
|
|
26
|
+
loadLive: async () => (await import("./services/users-access-table")).PhiUserManagementUsersAccessTableProviderClient,
|
|
27
|
+
},
|
|
23
28
|
];
|
|
@@ -165,4 +165,163 @@ export declare const PHI_USER_MANAGEMENT_RUNTIME_DATA_PROVIDER_DESCRIPTORS: ({
|
|
|
165
165
|
summaryFields?: undefined;
|
|
166
166
|
actions?: undefined;
|
|
167
167
|
})[];
|
|
168
|
+
} | {
|
|
169
|
+
key: `${string}/${string}`;
|
|
170
|
+
ownerModuleId: "@phis/ui/modules/user-management";
|
|
171
|
+
kind: "table";
|
|
172
|
+
executionMode: "live";
|
|
173
|
+
authoringMode: "none";
|
|
174
|
+
title: string;
|
|
175
|
+
description: string;
|
|
176
|
+
resources: ({
|
|
177
|
+
resourceKey: "addons";
|
|
178
|
+
title: string;
|
|
179
|
+
rowIdentityPath: string;
|
|
180
|
+
fields: ({
|
|
181
|
+
key: "fields" | "background" | "granted" | "effective" | "awaiting";
|
|
182
|
+
title: "fields" | "background" | "granted" | "effective" | "awaiting";
|
|
183
|
+
type: "enum[]";
|
|
184
|
+
options: {
|
|
185
|
+
value: "name" | "email" | "address" | "phone";
|
|
186
|
+
label: "name" | "email" | "address" | "phone";
|
|
187
|
+
}[];
|
|
188
|
+
} | {
|
|
189
|
+
key: string;
|
|
190
|
+
title: string;
|
|
191
|
+
type: "string";
|
|
192
|
+
required: true;
|
|
193
|
+
} | {
|
|
194
|
+
key: string;
|
|
195
|
+
title: string;
|
|
196
|
+
type: "datetime";
|
|
197
|
+
required?: undefined;
|
|
198
|
+
} | {
|
|
199
|
+
key: string;
|
|
200
|
+
title: string;
|
|
201
|
+
type: "number";
|
|
202
|
+
required?: undefined;
|
|
203
|
+
} | {
|
|
204
|
+
key: string;
|
|
205
|
+
title: string;
|
|
206
|
+
type: "boolean";
|
|
207
|
+
required?: undefined;
|
|
208
|
+
})[];
|
|
209
|
+
query: {
|
|
210
|
+
search: false;
|
|
211
|
+
filterFields: never[];
|
|
212
|
+
sorting: "none";
|
|
213
|
+
pagination: "none";
|
|
214
|
+
total?: undefined;
|
|
215
|
+
};
|
|
216
|
+
actions: ({
|
|
217
|
+
key: string;
|
|
218
|
+
title: string;
|
|
219
|
+
scope: "row";
|
|
220
|
+
intent: "write";
|
|
221
|
+
confirmation: "required";
|
|
222
|
+
disabledWhen: {
|
|
223
|
+
source: "row";
|
|
224
|
+
valuePath: string;
|
|
225
|
+
operator: "falsy";
|
|
226
|
+
};
|
|
227
|
+
} | {
|
|
228
|
+
key: string;
|
|
229
|
+
title: string;
|
|
230
|
+
scope: "row";
|
|
231
|
+
intent: "destructive";
|
|
232
|
+
confirmation: "required";
|
|
233
|
+
disabledWhen: {
|
|
234
|
+
source: "row";
|
|
235
|
+
valuePath: string;
|
|
236
|
+
operator: "falsy";
|
|
237
|
+
};
|
|
238
|
+
})[];
|
|
239
|
+
} | {
|
|
240
|
+
resourceKey: "retention";
|
|
241
|
+
title: string;
|
|
242
|
+
rowIdentityPath: string;
|
|
243
|
+
fields: ({
|
|
244
|
+
key: string;
|
|
245
|
+
title: string;
|
|
246
|
+
type: "string";
|
|
247
|
+
required: true;
|
|
248
|
+
mutable?: undefined;
|
|
249
|
+
constraints?: undefined;
|
|
250
|
+
} | {
|
|
251
|
+
key: string;
|
|
252
|
+
title: string;
|
|
253
|
+
type: "number";
|
|
254
|
+
mutable: true;
|
|
255
|
+
constraints: {
|
|
256
|
+
min: number;
|
|
257
|
+
max: number;
|
|
258
|
+
step: number;
|
|
259
|
+
precision: number;
|
|
260
|
+
};
|
|
261
|
+
required?: undefined;
|
|
262
|
+
})[];
|
|
263
|
+
query: {
|
|
264
|
+
search: false;
|
|
265
|
+
filterFields: never[];
|
|
266
|
+
sorting: "none";
|
|
267
|
+
pagination: "none";
|
|
268
|
+
total?: undefined;
|
|
269
|
+
};
|
|
270
|
+
actions?: undefined;
|
|
271
|
+
} | {
|
|
272
|
+
resourceKey: "log";
|
|
273
|
+
title: string;
|
|
274
|
+
rowIdentityPath: string;
|
|
275
|
+
fields: ({
|
|
276
|
+
key: string;
|
|
277
|
+
title: string;
|
|
278
|
+
type: "string";
|
|
279
|
+
required: true;
|
|
280
|
+
options?: undefined;
|
|
281
|
+
} | {
|
|
282
|
+
key: string;
|
|
283
|
+
title: string;
|
|
284
|
+
type: "datetime";
|
|
285
|
+
required?: undefined;
|
|
286
|
+
options?: undefined;
|
|
287
|
+
} | {
|
|
288
|
+
key: string;
|
|
289
|
+
title: string;
|
|
290
|
+
type: "string";
|
|
291
|
+
required?: undefined;
|
|
292
|
+
options?: undefined;
|
|
293
|
+
} | {
|
|
294
|
+
key: string;
|
|
295
|
+
title: string;
|
|
296
|
+
type: "enum";
|
|
297
|
+
options: {
|
|
298
|
+
value: string;
|
|
299
|
+
label: string;
|
|
300
|
+
}[];
|
|
301
|
+
required?: undefined;
|
|
302
|
+
} | {
|
|
303
|
+
key: string;
|
|
304
|
+
title: string;
|
|
305
|
+
type: "json";
|
|
306
|
+
required?: undefined;
|
|
307
|
+
options?: undefined;
|
|
308
|
+
} | {
|
|
309
|
+
key: string;
|
|
310
|
+
title: string;
|
|
311
|
+
type: "enum[]";
|
|
312
|
+
options: {
|
|
313
|
+
value: "name" | "email" | "address" | "phone";
|
|
314
|
+
label: "name" | "email" | "address" | "phone";
|
|
315
|
+
}[];
|
|
316
|
+
required?: undefined;
|
|
317
|
+
})[];
|
|
318
|
+
query: {
|
|
319
|
+
search: false;
|
|
320
|
+
filterFields: string[];
|
|
321
|
+
sorting: "none";
|
|
322
|
+
pagination: "offset";
|
|
323
|
+
total: false;
|
|
324
|
+
};
|
|
325
|
+
actions?: undefined;
|
|
326
|
+
})[];
|
|
168
327
|
})[];
|