@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
|
@@ -154,233 +154,7 @@ function readLazyIcon(icon) {
|
|
|
154
154
|
}
|
|
155
155
|
return Icon;
|
|
156
156
|
}
|
|
157
|
-
|
|
158
|
-
* The names `PhiIcon` resolves to an Ant Design icon, bare or after `antd:`.
|
|
159
|
-
*
|
|
160
|
-
* The navigation and management names (`dashboard`, `team`, `translation`, ...) used to sit in a second,
|
|
161
|
-
* separately loaded registry; with every icon its own chunk there is nothing left to keep apart.
|
|
162
|
-
*/
|
|
163
|
-
export const PHI_ANTD_ICON_NAMES = {
|
|
164
|
-
block: "BlockOutlined",
|
|
165
|
-
"block-outlined": "BlockOutlined",
|
|
166
|
-
cluster: "ClusterOutlined",
|
|
167
|
-
"cluster-outlined": "ClusterOutlined",
|
|
168
|
-
send: "SendOutlined",
|
|
169
|
-
"send-outlined": "SendOutlined",
|
|
170
|
-
home: "HomeOutlined",
|
|
171
|
-
"home-outlined": "HomeOutlined",
|
|
172
|
-
mail: "MailOutlined",
|
|
173
|
-
"mail-outlined": "MailOutlined",
|
|
174
|
-
location: "EnvironmentOutlined",
|
|
175
|
-
environment: "EnvironmentOutlined",
|
|
176
|
-
"environment-outlined": "EnvironmentOutlined",
|
|
177
|
-
global: "GlobalOutlined",
|
|
178
|
-
"global-outlined": "GlobalOutlined",
|
|
179
|
-
shopping: "ShoppingOutlined",
|
|
180
|
-
"shopping-outlined": "ShoppingOutlined",
|
|
181
|
-
"shopping-cart": "ShoppingCartOutlined",
|
|
182
|
-
"shopping-cart-outlined": "ShoppingCartOutlined",
|
|
183
|
-
star: "StarOutlined",
|
|
184
|
-
"star-outlined": "StarOutlined",
|
|
185
|
-
question: "QuestionCircleOutlined",
|
|
186
|
-
"question-circle": "QuestionCircleOutlined",
|
|
187
|
-
"question-circle-outlined": "QuestionCircleOutlined",
|
|
188
|
-
info: "InfoCircleOutlined",
|
|
189
|
-
"info-circle": "InfoCircleOutlined",
|
|
190
|
-
"info-circle-outlined": "InfoCircleOutlined",
|
|
191
|
-
logout: "LogoutOutlined",
|
|
192
|
-
"logout-outlined": "LogoutOutlined",
|
|
193
|
-
user: "UserOutlined",
|
|
194
|
-
"user-outlined": "UserOutlined",
|
|
195
|
-
google: "GoogleOutlined",
|
|
196
|
-
"google-outlined": "GoogleOutlined",
|
|
197
|
-
apple: "AppleOutlined",
|
|
198
|
-
"apple-outlined": "AppleOutlined",
|
|
199
|
-
github: "GithubOutlined",
|
|
200
|
-
"github-outlined": "GithubOutlined",
|
|
201
|
-
windows: "WindowsOutlined",
|
|
202
|
-
"windows-outlined": "WindowsOutlined",
|
|
203
|
-
apartment: "ApartmentOutlined",
|
|
204
|
-
"apartment-outlined": "ApartmentOutlined",
|
|
205
|
-
api: "ApiOutlined",
|
|
206
|
-
"api-outlined": "ApiOutlined",
|
|
207
|
-
appstore: "AppstoreOutlined",
|
|
208
|
-
"appstore-outlined": "AppstoreOutlined",
|
|
209
|
-
branches: "BranchesOutlined",
|
|
210
|
-
"branches-outlined": "BranchesOutlined",
|
|
211
|
-
check: "CheckOutlined",
|
|
212
|
-
"check-outlined": "CheckOutlined",
|
|
213
|
-
// Only the long name: a bare `clear` already means the close mark on a Button (phi-button-icons.tsx).
|
|
214
|
-
"clear-outlined": "ClearOutlined",
|
|
215
|
-
close: "CloseOutlined",
|
|
216
|
-
"close-outlined": "CloseOutlined",
|
|
217
|
-
code: "CodeOutlined",
|
|
218
|
-
"code-outlined": "CodeOutlined",
|
|
219
|
-
"column-width": "ColumnWidthOutlined",
|
|
220
|
-
"column-width-outlined": "ColumnWidthOutlined",
|
|
221
|
-
"customer-service": "CustomerServiceOutlined",
|
|
222
|
-
"customer-service-outlined": "CustomerServiceOutlined",
|
|
223
|
-
dash: "DashOutlined",
|
|
224
|
-
"dash-outlined": "DashOutlined",
|
|
225
|
-
dashboard: "DashboardOutlined",
|
|
226
|
-
"dashboard-outlined": "DashboardOutlined",
|
|
227
|
-
delete: "DeleteOutlined",
|
|
228
|
-
"delete-outlined": "DeleteOutlined",
|
|
229
|
-
edit: "EditOutlined",
|
|
230
|
-
"edit-outlined": "EditOutlined",
|
|
231
|
-
download: "DownloadOutlined",
|
|
232
|
-
"download-outlined": "DownloadOutlined",
|
|
233
|
-
experiment: "ExperimentOutlined",
|
|
234
|
-
"experiment-outlined": "ExperimentOutlined",
|
|
235
|
-
file: "FileTextOutlined",
|
|
236
|
-
"file-text": "FileTextOutlined",
|
|
237
|
-
"file-search": "FileTextOutlined",
|
|
238
|
-
"file-text-outlined": "FileTextOutlined",
|
|
239
|
-
history: "HistoryOutlined",
|
|
240
|
-
"history-outlined": "HistoryOutlined",
|
|
241
|
-
menu: "MenuOutlined",
|
|
242
|
-
"menu-outlined": "MenuOutlined",
|
|
243
|
-
message: "MessageOutlined",
|
|
244
|
-
"message-outlined": "MessageOutlined",
|
|
245
|
-
notification: "NotificationOutlined",
|
|
246
|
-
"notification-outlined": "NotificationOutlined",
|
|
247
|
-
picture: "PictureOutlined",
|
|
248
|
-
"picture-outlined": "PictureOutlined",
|
|
249
|
-
plus: "PlusOutlined",
|
|
250
|
-
"plus-outlined": "PlusOutlined",
|
|
251
|
-
profile: "ProfileOutlined",
|
|
252
|
-
"profile-outlined": "ProfileOutlined",
|
|
253
|
-
calendar: "CalendarOutlined",
|
|
254
|
-
"calendar-outlined": "CalendarOutlined",
|
|
255
|
-
form: "FormOutlined",
|
|
256
|
-
"form-outlined": "FormOutlined",
|
|
257
|
-
read: "ReadOutlined",
|
|
258
|
-
"read-outlined": "ReadOutlined",
|
|
259
|
-
"safety-certificate": "SafetyCertificateOutlined",
|
|
260
|
-
"safety-certificate-outlined": "SafetyCertificateOutlined",
|
|
261
|
-
setting: "SettingOutlined",
|
|
262
|
-
"setting-outlined": "SettingOutlined",
|
|
263
|
-
skin: "SkinOutlined",
|
|
264
|
-
"skin-outlined": "SkinOutlined",
|
|
265
|
-
table: "TableOutlined",
|
|
266
|
-
"table-outlined": "TableOutlined",
|
|
267
|
-
team: "TeamOutlined",
|
|
268
|
-
"team-outlined": "TeamOutlined",
|
|
269
|
-
translation: "TranslationOutlined",
|
|
270
|
-
"translation-outlined": "TranslationOutlined",
|
|
271
|
-
"user-add": "UserAddOutlined",
|
|
272
|
-
"user-add-outlined": "UserAddOutlined",
|
|
273
|
-
"align-center": "AlignCenterOutlined",
|
|
274
|
-
"align-center-outlined": "AlignCenterOutlined",
|
|
275
|
-
"align-left": "AlignLeftOutlined",
|
|
276
|
-
"align-left-outlined": "AlignLeftOutlined",
|
|
277
|
-
"align-right": "AlignRightOutlined",
|
|
278
|
-
"align-right-outlined": "AlignRightOutlined",
|
|
279
|
-
"arrow-down": "ArrowDownOutlined",
|
|
280
|
-
"arrow-down-outlined": "ArrowDownOutlined",
|
|
281
|
-
"arrow-up": "ArrowUpOutlined",
|
|
282
|
-
"arrow-up-outlined": "ArrowUpOutlined",
|
|
283
|
-
"audit": "AuditOutlined",
|
|
284
|
-
"audio-two-tone": "AudioTwoTone",
|
|
285
|
-
"bg-colors": "BgColorsOutlined",
|
|
286
|
-
"bg-colors-outlined": "BgColorsOutlined",
|
|
287
|
-
build: "BuildOutlined",
|
|
288
|
-
"build-outlined": "BuildOutlined",
|
|
289
|
-
idcard: "IdcardOutlined",
|
|
290
|
-
"idcard-outlined": "IdcardOutlined",
|
|
291
|
-
"font-colors": "FontColorsOutlined",
|
|
292
|
-
"font-colors-outlined": "FontColorsOutlined",
|
|
293
|
-
copy: "CopyOutlined",
|
|
294
|
-
"copy-outlined": "CopyOutlined",
|
|
295
|
-
down: "DownOutlined",
|
|
296
|
-
"down-outlined": "DownOutlined",
|
|
297
|
-
"file-image-two-tone": "FileImageTwoTone",
|
|
298
|
-
"file-pdf-two-tone": "FilePdfTwoTone",
|
|
299
|
-
"file-text-two-tone": "FileTextTwoTone",
|
|
300
|
-
"file-unknown-two-tone": "FileUnknownTwoTone",
|
|
301
|
-
"file-zip-two-tone": "FileZipTwoTone",
|
|
302
|
-
"font-size": "FontSizeOutlined",
|
|
303
|
-
"font-size-outlined": "FontSizeOutlined",
|
|
304
|
-
"format-painter": "FormatPainterOutlined",
|
|
305
|
-
"format-painter-outlined": "FormatPainterOutlined",
|
|
306
|
-
"hdd-two-tone": "HddTwoTone",
|
|
307
|
-
"highlight-two-tone": "HighlightTwoTone",
|
|
308
|
-
holder: "HolderOutlined",
|
|
309
|
-
"holder-outlined": "HolderOutlined",
|
|
310
|
-
layout: "LayoutOutlined",
|
|
311
|
-
"layout-outlined": "LayoutOutlined",
|
|
312
|
-
left: "LeftOutlined",
|
|
313
|
-
"left-outlined": "LeftOutlined",
|
|
314
|
-
"menu-fold": "MenuFoldOutlined",
|
|
315
|
-
"menu-fold-outlined": "MenuFoldOutlined",
|
|
316
|
-
"menu-unfold": "MenuUnfoldOutlined",
|
|
317
|
-
"menu-unfold-outlined": "MenuUnfoldOutlined",
|
|
318
|
-
monitor: "MonitorOutlined",
|
|
319
|
-
"monitor-outlined": "MonitorOutlined",
|
|
320
|
-
moon: "MoonOutlined",
|
|
321
|
-
"moon-outlined": "MoonOutlined",
|
|
322
|
-
"node-index": "NodeIndexOutlined",
|
|
323
|
-
"node-index-outlined": "NodeIndexOutlined",
|
|
324
|
-
"pause-circle": "PauseCircleOutlined",
|
|
325
|
-
"pause-circle-outlined": "PauseCircleOutlined",
|
|
326
|
-
"play-circle": "PlayCircleOutlined",
|
|
327
|
-
"play-circle-filled": "PlayCircleFilled",
|
|
328
|
-
"play-circle-outlined": "PlayCircleOutlined",
|
|
329
|
-
right: "RightOutlined",
|
|
330
|
-
"right-outlined": "RightOutlined",
|
|
331
|
-
"share-alt": "ShareAltOutlined",
|
|
332
|
-
"share-alt-outlined": "ShareAltOutlined",
|
|
333
|
-
sun: "SunOutlined",
|
|
334
|
-
"sun-outlined": "SunOutlined",
|
|
335
|
-
"ordered-list-outlined": "OrderedListOutlined",
|
|
336
|
-
"login": "LoginOutlined",
|
|
337
|
-
"plus-circle-outlined": "PlusCircleOutlined",
|
|
338
|
-
"unordered-list": "UnorderedListOutlined",
|
|
339
|
-
"unordered-list-outlined": "UnorderedListOutlined",
|
|
340
|
-
up: "UpOutlined",
|
|
341
|
-
"up-outlined": "UpOutlined",
|
|
342
|
-
upload: "UploadOutlined",
|
|
343
|
-
"upload-outlined": "UploadOutlined",
|
|
344
|
-
"video-camera-two-tone": "VideoCameraTwoTone",
|
|
345
|
-
warning: "WarningOutlined",
|
|
346
|
-
"warning-outlined": "WarningOutlined",
|
|
347
|
-
"cloud-download": "CloudDownloadOutlined",
|
|
348
|
-
"cloud-download-outlined": "CloudDownloadOutlined",
|
|
349
|
-
"cloud-upload": "CloudUploadOutlined",
|
|
350
|
-
"cloud-upload-outlined": "CloudUploadOutlined",
|
|
351
|
-
"eye-invisible": "EyeInvisibleOutlined",
|
|
352
|
-
"eye-invisible-outlined": "EyeInvisibleOutlined",
|
|
353
|
-
eye: "EyeOutlined",
|
|
354
|
-
"eye-outlined": "EyeOutlined",
|
|
355
|
-
"folder-add": "FolderAddOutlined",
|
|
356
|
-
"folder-add-outlined": "FolderAddOutlined",
|
|
357
|
-
folder: "FolderOutlined",
|
|
358
|
-
"folder-outlined": "FolderOutlined",
|
|
359
|
-
link: "LinkOutlined",
|
|
360
|
-
"link-outlined": "LinkOutlined",
|
|
361
|
-
lock: "LockOutlined",
|
|
362
|
-
"lock-outlined": "LockOutlined",
|
|
363
|
-
minus: "MinusOutlined",
|
|
364
|
-
"minus-outlined": "MinusOutlined",
|
|
365
|
-
inbox: "InboxOutlined",
|
|
366
|
-
"inbox-outlined": "InboxOutlined",
|
|
367
|
-
redo: "RedoOutlined",
|
|
368
|
-
"redo-outlined": "RedoOutlined",
|
|
369
|
-
reload: "ReloadOutlined",
|
|
370
|
-
"reload-outlined": "ReloadOutlined",
|
|
371
|
-
rollback: "RollbackOutlined",
|
|
372
|
-
"rollback-outlined": "RollbackOutlined",
|
|
373
|
-
save: "SaveOutlined",
|
|
374
|
-
"save-outlined": "SaveOutlined",
|
|
375
|
-
search: "SearchOutlined",
|
|
376
|
-
"search-outlined": "SearchOutlined",
|
|
377
|
-
stop: "StopOutlined",
|
|
378
|
-
"stop-outlined": "StopOutlined",
|
|
379
|
-
undo: "UndoOutlined",
|
|
380
|
-
"undo-outlined": "UndoOutlined",
|
|
381
|
-
unlock: "UnlockOutlined",
|
|
382
|
-
"unlock-outlined": "UnlockOutlined",
|
|
383
|
-
};
|
|
157
|
+
export { PHI_ANTD_ICON_NAMES } from "./phi-icon-names";
|
|
384
158
|
export function PhiAntdIcon({ icon, size = "1em", style, className, title, ariaLabel, twoToneColor, }) {
|
|
385
159
|
const sizeStyle = size === "1em" ? undefined : { fontSize: size };
|
|
386
160
|
const resolvedStyle = sizeStyle || style ? { ...sizeStyle, ...style } : undefined;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { PhiAntdIconKey } from "./phi-antd-icon";
|
|
2
|
+
/**
|
|
3
|
+
* The names `PhiIcon` resolves to an Ant Design icon, bare or after `antd:`.
|
|
4
|
+
*
|
|
5
|
+
* The navigation and management names (`dashboard`, `team`, `translation`, ...) used to sit in a second,
|
|
6
|
+
* separately loaded registry; with every icon its own chunk there is nothing left to keep apart.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PHI_ANTD_ICON_NAMES: Readonly<Record<string, PhiAntdIconKey>>;
|
|
9
|
+
export declare function isPhiBuilderIconNamespace(namespace: string): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether `PhiIcon` draws something for `name`: the one rule every icon name in this house follows.
|
|
12
|
+
*
|
|
13
|
+
* A name without a prefix is an Ant Design icon from `PHI_ANTD_ICON_NAMES` and means the same as
|
|
14
|
+
* `antd:<name>`. One name per icon, and the same name in a Button, a Table action, a Command Toolbar and a
|
|
15
|
+
* preset: there are no aliases (`add`, `cancel`, `trash`) beside it, and case counts. `module:`,
|
|
16
|
+
* `iconify:`, `asset:` and the Builder's motif namespaces are drawn by their own owners, which say for
|
|
17
|
+
* themselves whether the name exists, so here they count as known.
|
|
18
|
+
*
|
|
19
|
+
* Asked where a name is chosen -- a preset's checks, the Builder's save (`helpers/widget-binding-check.ts`)
|
|
20
|
+
* -- and not by `PhiIcon` on a live page, which draws what it was handed (owner, 2026-11-24).
|
|
21
|
+
*/
|
|
22
|
+
export declare function isPhiIconNameKnown(name: string): boolean;
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The house's icon names, apart from the components that draw them: no React, no Ant Design, nothing a
|
|
3
|
+
* Server Component or a package's verify step cannot load. `phi-antd-icon.tsx` draws them and
|
|
4
|
+
* `phi-icon.tsx` decides with the rule below; `checkPhiPresetTreeContract` asks the same rule of every
|
|
5
|
+
* icon a preset's Tables name (`@phis/ui/module/page-check`).
|
|
6
|
+
*/
|
|
7
|
+
import { PHI_MODULE_ICON_NAMESPACE } from "../../constants/module-identity";
|
|
8
|
+
/**
|
|
9
|
+
* The names `PhiIcon` resolves to an Ant Design icon, bare or after `antd:`.
|
|
10
|
+
*
|
|
11
|
+
* The navigation and management names (`dashboard`, `team`, `translation`, ...) used to sit in a second,
|
|
12
|
+
* separately loaded registry; with every icon its own chunk there is nothing left to keep apart.
|
|
13
|
+
*/
|
|
14
|
+
export const PHI_ANTD_ICON_NAMES = {
|
|
15
|
+
block: "BlockOutlined",
|
|
16
|
+
"block-outlined": "BlockOutlined",
|
|
17
|
+
cluster: "ClusterOutlined",
|
|
18
|
+
"cluster-outlined": "ClusterOutlined",
|
|
19
|
+
send: "SendOutlined",
|
|
20
|
+
"send-outlined": "SendOutlined",
|
|
21
|
+
home: "HomeOutlined",
|
|
22
|
+
"home-outlined": "HomeOutlined",
|
|
23
|
+
mail: "MailOutlined",
|
|
24
|
+
"mail-outlined": "MailOutlined",
|
|
25
|
+
location: "EnvironmentOutlined",
|
|
26
|
+
environment: "EnvironmentOutlined",
|
|
27
|
+
"environment-outlined": "EnvironmentOutlined",
|
|
28
|
+
global: "GlobalOutlined",
|
|
29
|
+
"global-outlined": "GlobalOutlined",
|
|
30
|
+
shopping: "ShoppingOutlined",
|
|
31
|
+
"shopping-outlined": "ShoppingOutlined",
|
|
32
|
+
"shopping-cart": "ShoppingCartOutlined",
|
|
33
|
+
"shopping-cart-outlined": "ShoppingCartOutlined",
|
|
34
|
+
star: "StarOutlined",
|
|
35
|
+
"star-outlined": "StarOutlined",
|
|
36
|
+
question: "QuestionCircleOutlined",
|
|
37
|
+
"question-circle": "QuestionCircleOutlined",
|
|
38
|
+
"question-circle-outlined": "QuestionCircleOutlined",
|
|
39
|
+
info: "InfoCircleOutlined",
|
|
40
|
+
"info-circle": "InfoCircleOutlined",
|
|
41
|
+
"info-circle-outlined": "InfoCircleOutlined",
|
|
42
|
+
logout: "LogoutOutlined",
|
|
43
|
+
"logout-outlined": "LogoutOutlined",
|
|
44
|
+
user: "UserOutlined",
|
|
45
|
+
"user-outlined": "UserOutlined",
|
|
46
|
+
google: "GoogleOutlined",
|
|
47
|
+
"google-outlined": "GoogleOutlined",
|
|
48
|
+
apple: "AppleOutlined",
|
|
49
|
+
"apple-outlined": "AppleOutlined",
|
|
50
|
+
github: "GithubOutlined",
|
|
51
|
+
"github-outlined": "GithubOutlined",
|
|
52
|
+
windows: "WindowsOutlined",
|
|
53
|
+
"windows-outlined": "WindowsOutlined",
|
|
54
|
+
apartment: "ApartmentOutlined",
|
|
55
|
+
"apartment-outlined": "ApartmentOutlined",
|
|
56
|
+
api: "ApiOutlined",
|
|
57
|
+
"api-outlined": "ApiOutlined",
|
|
58
|
+
appstore: "AppstoreOutlined",
|
|
59
|
+
"appstore-outlined": "AppstoreOutlined",
|
|
60
|
+
branches: "BranchesOutlined",
|
|
61
|
+
"branches-outlined": "BranchesOutlined",
|
|
62
|
+
check: "CheckOutlined",
|
|
63
|
+
"check-outlined": "CheckOutlined",
|
|
64
|
+
// Only the long name: a bare `clear` already means the close mark on a Button (phi-button-icons.tsx).
|
|
65
|
+
"clear-outlined": "ClearOutlined",
|
|
66
|
+
close: "CloseOutlined",
|
|
67
|
+
"close-outlined": "CloseOutlined",
|
|
68
|
+
code: "CodeOutlined",
|
|
69
|
+
"code-outlined": "CodeOutlined",
|
|
70
|
+
"column-width": "ColumnWidthOutlined",
|
|
71
|
+
"column-width-outlined": "ColumnWidthOutlined",
|
|
72
|
+
"customer-service": "CustomerServiceOutlined",
|
|
73
|
+
"customer-service-outlined": "CustomerServiceOutlined",
|
|
74
|
+
dash: "DashOutlined",
|
|
75
|
+
"dash-outlined": "DashOutlined",
|
|
76
|
+
dashboard: "DashboardOutlined",
|
|
77
|
+
"dashboard-outlined": "DashboardOutlined",
|
|
78
|
+
delete: "DeleteOutlined",
|
|
79
|
+
"delete-outlined": "DeleteOutlined",
|
|
80
|
+
edit: "EditOutlined",
|
|
81
|
+
"edit-outlined": "EditOutlined",
|
|
82
|
+
download: "DownloadOutlined",
|
|
83
|
+
"download-outlined": "DownloadOutlined",
|
|
84
|
+
experiment: "ExperimentOutlined",
|
|
85
|
+
"experiment-outlined": "ExperimentOutlined",
|
|
86
|
+
file: "FileTextOutlined",
|
|
87
|
+
"file-text": "FileTextOutlined",
|
|
88
|
+
"file-search": "FileTextOutlined",
|
|
89
|
+
"file-text-outlined": "FileTextOutlined",
|
|
90
|
+
history: "HistoryOutlined",
|
|
91
|
+
"history-outlined": "HistoryOutlined",
|
|
92
|
+
menu: "MenuOutlined",
|
|
93
|
+
"menu-outlined": "MenuOutlined",
|
|
94
|
+
message: "MessageOutlined",
|
|
95
|
+
"message-outlined": "MessageOutlined",
|
|
96
|
+
notification: "NotificationOutlined",
|
|
97
|
+
"notification-outlined": "NotificationOutlined",
|
|
98
|
+
picture: "PictureOutlined",
|
|
99
|
+
"picture-outlined": "PictureOutlined",
|
|
100
|
+
plus: "PlusOutlined",
|
|
101
|
+
"plus-outlined": "PlusOutlined",
|
|
102
|
+
profile: "ProfileOutlined",
|
|
103
|
+
"profile-outlined": "ProfileOutlined",
|
|
104
|
+
calendar: "CalendarOutlined",
|
|
105
|
+
"calendar-outlined": "CalendarOutlined",
|
|
106
|
+
form: "FormOutlined",
|
|
107
|
+
"form-outlined": "FormOutlined",
|
|
108
|
+
read: "ReadOutlined",
|
|
109
|
+
"read-outlined": "ReadOutlined",
|
|
110
|
+
"safety-certificate": "SafetyCertificateOutlined",
|
|
111
|
+
"safety-certificate-outlined": "SafetyCertificateOutlined",
|
|
112
|
+
setting: "SettingOutlined",
|
|
113
|
+
"setting-outlined": "SettingOutlined",
|
|
114
|
+
skin: "SkinOutlined",
|
|
115
|
+
"skin-outlined": "SkinOutlined",
|
|
116
|
+
table: "TableOutlined",
|
|
117
|
+
"table-outlined": "TableOutlined",
|
|
118
|
+
team: "TeamOutlined",
|
|
119
|
+
"team-outlined": "TeamOutlined",
|
|
120
|
+
translation: "TranslationOutlined",
|
|
121
|
+
"translation-outlined": "TranslationOutlined",
|
|
122
|
+
"user-add": "UserAddOutlined",
|
|
123
|
+
"user-add-outlined": "UserAddOutlined",
|
|
124
|
+
"align-center": "AlignCenterOutlined",
|
|
125
|
+
"align-center-outlined": "AlignCenterOutlined",
|
|
126
|
+
"align-left": "AlignLeftOutlined",
|
|
127
|
+
"align-left-outlined": "AlignLeftOutlined",
|
|
128
|
+
"align-right": "AlignRightOutlined",
|
|
129
|
+
"align-right-outlined": "AlignRightOutlined",
|
|
130
|
+
"arrow-down": "ArrowDownOutlined",
|
|
131
|
+
"arrow-down-outlined": "ArrowDownOutlined",
|
|
132
|
+
"arrow-up": "ArrowUpOutlined",
|
|
133
|
+
"arrow-up-outlined": "ArrowUpOutlined",
|
|
134
|
+
"audit": "AuditOutlined",
|
|
135
|
+
"audio-two-tone": "AudioTwoTone",
|
|
136
|
+
"bg-colors": "BgColorsOutlined",
|
|
137
|
+
"bg-colors-outlined": "BgColorsOutlined",
|
|
138
|
+
build: "BuildOutlined",
|
|
139
|
+
"build-outlined": "BuildOutlined",
|
|
140
|
+
idcard: "IdcardOutlined",
|
|
141
|
+
"idcard-outlined": "IdcardOutlined",
|
|
142
|
+
"font-colors": "FontColorsOutlined",
|
|
143
|
+
"font-colors-outlined": "FontColorsOutlined",
|
|
144
|
+
copy: "CopyOutlined",
|
|
145
|
+
"copy-outlined": "CopyOutlined",
|
|
146
|
+
down: "DownOutlined",
|
|
147
|
+
"down-outlined": "DownOutlined",
|
|
148
|
+
"file-image-two-tone": "FileImageTwoTone",
|
|
149
|
+
"file-pdf-two-tone": "FilePdfTwoTone",
|
|
150
|
+
"file-text-two-tone": "FileTextTwoTone",
|
|
151
|
+
"file-unknown-two-tone": "FileUnknownTwoTone",
|
|
152
|
+
"file-zip-two-tone": "FileZipTwoTone",
|
|
153
|
+
"font-size": "FontSizeOutlined",
|
|
154
|
+
"font-size-outlined": "FontSizeOutlined",
|
|
155
|
+
"format-painter": "FormatPainterOutlined",
|
|
156
|
+
"format-painter-outlined": "FormatPainterOutlined",
|
|
157
|
+
"hdd-two-tone": "HddTwoTone",
|
|
158
|
+
"highlight-two-tone": "HighlightTwoTone",
|
|
159
|
+
holder: "HolderOutlined",
|
|
160
|
+
"holder-outlined": "HolderOutlined",
|
|
161
|
+
layout: "LayoutOutlined",
|
|
162
|
+
"layout-outlined": "LayoutOutlined",
|
|
163
|
+
left: "LeftOutlined",
|
|
164
|
+
"left-outlined": "LeftOutlined",
|
|
165
|
+
"menu-fold": "MenuFoldOutlined",
|
|
166
|
+
"menu-fold-outlined": "MenuFoldOutlined",
|
|
167
|
+
"menu-unfold": "MenuUnfoldOutlined",
|
|
168
|
+
"menu-unfold-outlined": "MenuUnfoldOutlined",
|
|
169
|
+
monitor: "MonitorOutlined",
|
|
170
|
+
"monitor-outlined": "MonitorOutlined",
|
|
171
|
+
moon: "MoonOutlined",
|
|
172
|
+
"moon-outlined": "MoonOutlined",
|
|
173
|
+
"node-index": "NodeIndexOutlined",
|
|
174
|
+
"node-index-outlined": "NodeIndexOutlined",
|
|
175
|
+
"pause-circle": "PauseCircleOutlined",
|
|
176
|
+
"pause-circle-outlined": "PauseCircleOutlined",
|
|
177
|
+
"play-circle": "PlayCircleOutlined",
|
|
178
|
+
"play-circle-filled": "PlayCircleFilled",
|
|
179
|
+
"play-circle-outlined": "PlayCircleOutlined",
|
|
180
|
+
right: "RightOutlined",
|
|
181
|
+
"right-outlined": "RightOutlined",
|
|
182
|
+
"share-alt": "ShareAltOutlined",
|
|
183
|
+
"share-alt-outlined": "ShareAltOutlined",
|
|
184
|
+
sun: "SunOutlined",
|
|
185
|
+
"sun-outlined": "SunOutlined",
|
|
186
|
+
"ordered-list-outlined": "OrderedListOutlined",
|
|
187
|
+
"login": "LoginOutlined",
|
|
188
|
+
"plus-circle-outlined": "PlusCircleOutlined",
|
|
189
|
+
"unordered-list": "UnorderedListOutlined",
|
|
190
|
+
"unordered-list-outlined": "UnorderedListOutlined",
|
|
191
|
+
up: "UpOutlined",
|
|
192
|
+
"up-outlined": "UpOutlined",
|
|
193
|
+
upload: "UploadOutlined",
|
|
194
|
+
"upload-outlined": "UploadOutlined",
|
|
195
|
+
"video-camera-two-tone": "VideoCameraTwoTone",
|
|
196
|
+
warning: "WarningOutlined",
|
|
197
|
+
"warning-outlined": "WarningOutlined",
|
|
198
|
+
"cloud-download": "CloudDownloadOutlined",
|
|
199
|
+
"cloud-download-outlined": "CloudDownloadOutlined",
|
|
200
|
+
"cloud-upload": "CloudUploadOutlined",
|
|
201
|
+
"cloud-upload-outlined": "CloudUploadOutlined",
|
|
202
|
+
"eye-invisible": "EyeInvisibleOutlined",
|
|
203
|
+
"eye-invisible-outlined": "EyeInvisibleOutlined",
|
|
204
|
+
eye: "EyeOutlined",
|
|
205
|
+
"eye-outlined": "EyeOutlined",
|
|
206
|
+
"folder-add": "FolderAddOutlined",
|
|
207
|
+
"folder-add-outlined": "FolderAddOutlined",
|
|
208
|
+
folder: "FolderOutlined",
|
|
209
|
+
"folder-outlined": "FolderOutlined",
|
|
210
|
+
link: "LinkOutlined",
|
|
211
|
+
"link-outlined": "LinkOutlined",
|
|
212
|
+
lock: "LockOutlined",
|
|
213
|
+
"lock-outlined": "LockOutlined",
|
|
214
|
+
minus: "MinusOutlined",
|
|
215
|
+
"minus-outlined": "MinusOutlined",
|
|
216
|
+
inbox: "InboxOutlined",
|
|
217
|
+
"inbox-outlined": "InboxOutlined",
|
|
218
|
+
redo: "RedoOutlined",
|
|
219
|
+
"redo-outlined": "RedoOutlined",
|
|
220
|
+
reload: "ReloadOutlined",
|
|
221
|
+
"reload-outlined": "ReloadOutlined",
|
|
222
|
+
rollback: "RollbackOutlined",
|
|
223
|
+
"rollback-outlined": "RollbackOutlined",
|
|
224
|
+
save: "SaveOutlined",
|
|
225
|
+
"save-outlined": "SaveOutlined",
|
|
226
|
+
search: "SearchOutlined",
|
|
227
|
+
"search-outlined": "SearchOutlined",
|
|
228
|
+
stop: "StopOutlined",
|
|
229
|
+
"stop-outlined": "StopOutlined",
|
|
230
|
+
undo: "UndoOutlined",
|
|
231
|
+
"undo-outlined": "UndoOutlined",
|
|
232
|
+
unlock: "UnlockOutlined",
|
|
233
|
+
"unlock-outlined": "UnlockOutlined",
|
|
234
|
+
};
|
|
235
|
+
export function isPhiBuilderIconNamespace(namespace) {
|
|
236
|
+
return namespace.endsWith("/layouts") || namespace.endsWith("/widgets");
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Whether `PhiIcon` draws something for `name`: the one rule every icon name in this house follows.
|
|
240
|
+
*
|
|
241
|
+
* A name without a prefix is an Ant Design icon from `PHI_ANTD_ICON_NAMES` and means the same as
|
|
242
|
+
* `antd:<name>`. One name per icon, and the same name in a Button, a Table action, a Command Toolbar and a
|
|
243
|
+
* preset: there are no aliases (`add`, `cancel`, `trash`) beside it, and case counts. `module:`,
|
|
244
|
+
* `iconify:`, `asset:` and the Builder's motif namespaces are drawn by their own owners, which say for
|
|
245
|
+
* themselves whether the name exists, so here they count as known.
|
|
246
|
+
*
|
|
247
|
+
* Asked where a name is chosen -- a preset's checks, the Builder's save (`helpers/widget-binding-check.ts`)
|
|
248
|
+
* -- and not by `PhiIcon` on a live page, which draws what it was handed (owner, 2026-11-24).
|
|
249
|
+
*/
|
|
250
|
+
export function isPhiIconNameKnown(name) {
|
|
251
|
+
const [namespace, ...rest] = name.split(":");
|
|
252
|
+
const value = rest.join(":");
|
|
253
|
+
if (!value)
|
|
254
|
+
return Object.hasOwn(PHI_ANTD_ICON_NAMES, name);
|
|
255
|
+
if (isPhiBuilderIconNamespace(namespace))
|
|
256
|
+
return true;
|
|
257
|
+
switch (namespace) {
|
|
258
|
+
case PHI_MODULE_ICON_NAMESPACE:
|
|
259
|
+
case "iconify":
|
|
260
|
+
case "asset":
|
|
261
|
+
return true;
|
|
262
|
+
case "antd":
|
|
263
|
+
return Object.hasOwn(PHI_ANTD_ICON_NAMES, value);
|
|
264
|
+
default:
|
|
265
|
+
return false;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
@@ -9,22 +9,11 @@ type PhiIconProps = {
|
|
|
9
9
|
size?: number | string;
|
|
10
10
|
} & PhiAntdIconPresentation;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* The icon a name names, or nothing.
|
|
13
13
|
*
|
|
14
|
-
* A name
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* `iconify:`, `asset:` and the Builder's motif namespaces are drawn by their own owners, which say for
|
|
18
|
-
* themselves whether the name exists, so here they count as known.
|
|
14
|
+
* A name is not looked up against the vocabulary first: where it is chosen -- a preset, a Builder save
|
|
15
|
+
* -- it is checked (`isPhiIconNameKnown`, owner 2026-11-24), and a live page trusts it. A name that names
|
|
16
|
+
* nothing still draws nothing, because each namespace below answers only what it has.
|
|
19
17
|
*/
|
|
20
|
-
export declare function isPhiIconNameKnown(name: string): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Says once per name that it names no icon, where somebody reads it.
|
|
23
|
-
*
|
|
24
|
-
* An unknown name draws nothing -- no word, no placeholder -- so without this a typo is a blank nobody
|
|
25
|
-
* notices. Rendered on the server the warning lands in the Site service's journal, in the browser in its
|
|
26
|
-
* console. `validate-preset-icon-vocabulary` catches the same mistake in a preset before it ships.
|
|
27
|
-
*/
|
|
28
|
-
export declare function reportPhiUnknownIconName(name: string): void;
|
|
29
18
|
export declare function PhiIcon({ name, size, ...presentation }: PhiIconProps): import("react").JSX.Element | null;
|
|
30
19
|
export {};
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { lazy, Suspense, useEffect, useState, } from "react";
|
|
4
4
|
import { PHI_MODULE_ICON_NAMESPACE } from "../../constants/module-identity";
|
|
5
|
-
import {
|
|
5
|
+
import { PhiAntdIcon } from "./phi-antd-icon";
|
|
6
|
+
import { isPhiBuilderIconNamespace, PHI_ANTD_ICON_NAMES } from "./phi-icon-names";
|
|
6
7
|
import { PhiModuleIcon } from "./phi-module-icons";
|
|
7
8
|
let iconifyComponentLoader = null;
|
|
8
9
|
function loadIconifyComponent() {
|
|
@@ -28,51 +29,6 @@ function renderIconFallback(size) {
|
|
|
28
29
|
height: size,
|
|
29
30
|
} }));
|
|
30
31
|
}
|
|
31
|
-
function isPhiBuilderIconNamespace(namespace) {
|
|
32
|
-
return namespace.endsWith("/layouts") || namespace.endsWith("/widgets");
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Whether `PhiIcon` draws something for `name`: the one rule every icon name in this house follows.
|
|
36
|
-
*
|
|
37
|
-
* A name without a prefix is an Ant Design icon from `PHI_ANTD_ICON_NAMES` and means the same as
|
|
38
|
-
* `antd:<name>`. One name per icon, and the same name in a Button, a Table action, a Command Toolbar and a
|
|
39
|
-
* preset: there are no aliases (`add`, `cancel`, `trash`) beside it, and case counts. `module:`,
|
|
40
|
-
* `iconify:`, `asset:` and the Builder's motif namespaces are drawn by their own owners, which say for
|
|
41
|
-
* themselves whether the name exists, so here they count as known.
|
|
42
|
-
*/
|
|
43
|
-
export function isPhiIconNameKnown(name) {
|
|
44
|
-
const [namespace, ...rest] = name.split(":");
|
|
45
|
-
const value = rest.join(":");
|
|
46
|
-
if (!value)
|
|
47
|
-
return Object.hasOwn(PHI_ANTD_ICON_NAMES, name);
|
|
48
|
-
if (isPhiBuilderIconNamespace(namespace))
|
|
49
|
-
return true;
|
|
50
|
-
switch (namespace) {
|
|
51
|
-
case PHI_MODULE_ICON_NAMESPACE:
|
|
52
|
-
case "iconify":
|
|
53
|
-
case "asset":
|
|
54
|
-
return true;
|
|
55
|
-
case "antd":
|
|
56
|
-
return Object.hasOwn(PHI_ANTD_ICON_NAMES, value);
|
|
57
|
-
default:
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
const reportedUnknownIconNames = new Set();
|
|
62
|
-
/**
|
|
63
|
-
* Says once per name that it names no icon, where somebody reads it.
|
|
64
|
-
*
|
|
65
|
-
* An unknown name draws nothing -- no word, no placeholder -- so without this a typo is a blank nobody
|
|
66
|
-
* notices. Rendered on the server the warning lands in the Site service's journal, in the browser in its
|
|
67
|
-
* console. `validate-preset-icon-vocabulary` catches the same mistake in a preset before it ships.
|
|
68
|
-
*/
|
|
69
|
-
export function reportPhiUnknownIconName(name) {
|
|
70
|
-
if (reportedUnknownIconNames.has(name))
|
|
71
|
-
return;
|
|
72
|
-
reportedUnknownIconNames.add(name);
|
|
73
|
-
console.warn(`[phi-icon] "${name}" names no icon and draws nothing. Use a name from PHI_ANTD_ICON_NAMES `
|
|
74
|
-
+ "(components/shell/phi-antd-icon.tsx), with or without `antd:`, or a `module:`, `iconify:` or `asset:` name.");
|
|
75
|
-
}
|
|
76
32
|
function renderAntdIcon(key, size, presentation) {
|
|
77
33
|
const icon = PHI_ANTD_ICON_NAMES[key];
|
|
78
34
|
return icon ? _jsx(PhiAntdIcon, { icon: icon, size: size, ...presentation }) : null;
|
|
@@ -113,14 +69,17 @@ function PhiIconifyIcon({ icon, size }) {
|
|
|
113
69
|
}
|
|
114
70
|
return _jsx(IconifyIcon, { icon: icon, width: size, height: size, inline: true });
|
|
115
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* The icon a name names, or nothing.
|
|
74
|
+
*
|
|
75
|
+
* A name is not looked up against the vocabulary first: where it is chosen -- a preset, a Builder save
|
|
76
|
+
* -- it is checked (`isPhiIconNameKnown`, owner 2026-11-24), and a live page trusts it. A name that names
|
|
77
|
+
* nothing still draws nothing, because each namespace below answers only what it has.
|
|
78
|
+
*/
|
|
116
79
|
export function PhiIcon({ name, size = 16, ...presentation }) {
|
|
117
80
|
if (!name) {
|
|
118
81
|
return null;
|
|
119
82
|
}
|
|
120
|
-
if (!isPhiIconNameKnown(name)) {
|
|
121
|
-
reportPhiUnknownIconName(name);
|
|
122
|
-
return null;
|
|
123
|
-
}
|
|
124
83
|
const resolvedSize = size === "inherit" ? "1em" : size;
|
|
125
84
|
const [namespace, ...rest] = name.split(":");
|
|
126
85
|
const value = rest.join(":");
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Table's binding params: what its source was configured with, and what its reader, its binding tools
|
|
3
|
+
* or a signal set since.
|
|
4
|
+
*
|
|
5
|
+
* What was set is tagged with the configuration it was set against. A Builder edit of the configured
|
|
6
|
+
* params is a new starting point; the reader's earlier choice belonged to the old one and would
|
|
7
|
+
* otherwise outlive it.
|
|
8
|
+
*
|
|
9
|
+
* `changeBindingParams` merges a change into the params as they stand after the last change -- ahead of
|
|
10
|
+
* the render that shows them -- and answers the params it made, or null where nothing changed. Both
|
|
11
|
+
* matter to a Table read by a Controller:
|
|
12
|
+
* - two binding tools that answer in the same commit each wrote their value over the params of that
|
|
13
|
+
* render, so the second put back what the first had changed, and the first answered again on the next
|
|
14
|
+
* render -- each answer a new source, a new read and a `bindingParamsChange` handed on;
|
|
15
|
+
* - the same params again were a new object, so a new source and a new read, and handed on again: a
|
|
16
|
+
* Controller that hands its scope on every change of what it reads from read the same history up to
|
|
17
|
+
* six times on opening the Builder's Revisions. The same params are no change at all now.
|
|
18
|
+
*/
|
|
19
|
+
export declare function usePhiTableBindingParams(configured: Record<string, unknown>): {
|
|
20
|
+
bindingParams: Record<string, unknown>;
|
|
21
|
+
changeBindingParams: (patch: Record<string, unknown>) => {
|
|
22
|
+
[x: string]: unknown;
|
|
23
|
+
} | null;
|
|
24
|
+
};
|