@phis/ui 0.8.1 → 0.8.3

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.
Files changed (223) hide show
  1. package/README.md +9 -2
  2. package/components/calendar/gregory-calendar-adapter-client.js +1 -0
  3. package/components/controls/phi-accordion-control.d.ts +6 -0
  4. package/components/controls/phi-accordion-control.js +8 -13
  5. package/components/controls/phi-background-control.js +2 -5
  6. package/components/controls/phi-builder-insert-picker-control-labels.d.ts +2 -0
  7. package/components/controls/phi-builder-insert-picker-control-labels.js +1 -0
  8. package/components/controls/phi-builder-insert-picker-control.js +10 -11
  9. package/components/controls/phi-cascader-control.d.ts +9 -3
  10. package/components/controls/phi-cascader-control.js +38 -10
  11. package/components/controls/phi-checkbox-group-control.d.ts +3 -1
  12. package/components/controls/phi-checkbox-group-control.js +2 -2
  13. package/components/controls/phi-collapse-control.d.ts +9 -2
  14. package/components/controls/phi-collapse-control.js +14 -2
  15. package/components/controls/phi-color-control.d.ts +3 -1
  16. package/components/controls/phi-color-control.js +2 -2
  17. package/components/controls/phi-color-field-control.d.ts +6 -1
  18. package/components/controls/phi-color-field-control.js +2 -2
  19. package/components/controls/phi-confirm-control.d.ts +1 -1
  20. package/components/controls/phi-confirm-control.js +71 -2
  21. package/components/controls/phi-confirm-dialog.js +2 -1
  22. package/components/controls/phi-date-picker-control.js +1 -1
  23. package/components/controls/phi-dimension-control.d.ts +3 -1
  24. package/components/controls/phi-dimension-control.js +2 -2
  25. package/components/controls/phi-geometry-control.js +1 -1
  26. package/components/controls/phi-length-control.d.ts +6 -1
  27. package/components/controls/phi-length-control.js +3 -2
  28. package/components/controls/phi-multi-select-control.d.ts +6 -1
  29. package/components/controls/phi-multi-select-control.js +3 -3
  30. package/components/controls/phi-segmented-control.d.ts +6 -1
  31. package/components/controls/phi-segmented-control.js +3 -3
  32. package/components/controls/phi-switch-control.d.ts +3 -1
  33. package/components/controls/phi-switch-control.js +3 -3
  34. package/components/controls/phi-table-control.d.ts +8 -1
  35. package/components/controls/phi-table-control.js +11 -5
  36. package/components/forms/compound-form-controls.js +16 -1
  37. package/components/layouts/clients/phi-collapsible-layout-client.js +2 -6
  38. package/components/media/media-upload-flow.d.ts +62 -5
  39. package/components/media/media-upload-flow.js +62 -24
  40. package/components/media/media-widget-labels.d.ts +2 -0
  41. package/components/media/media-widget-labels.js +2 -0
  42. package/components/media/phi-area-upload-widget.d.ts +44 -1
  43. package/components/media/phi-area-upload-widget.js +32 -7
  44. package/components/media/phi-asset-inspector-section.js +19 -1
  45. package/components/media/phi-media-upload.d.ts +10 -3
  46. package/components/media/phi-media-upload.js +11 -8
  47. package/components/regions/presets/phi-area-shell-preset-nodes.js +2 -0
  48. package/components/shell/phi-builder-icon.js +9 -1
  49. package/components/shell/phi-widget-icon.js +1 -0
  50. package/components/tables/phi-table-surface.d.ts +25 -0
  51. package/components/tables/phi-table-surface.js +25 -0
  52. package/components/widgets/builder/phi-static-rows-editor.js +4 -1
  53. package/components/widgets/client/html-editor-link-node.d.ts +12 -0
  54. package/components/widgets/client/html-editor-link-node.js +60 -0
  55. package/components/widgets/client/html-editor.js +10 -6
  56. package/components/widgets/client/shared/phi-choice-controller.d.ts +8 -1
  57. package/components/widgets/client/shared/phi-choice-controller.js +16 -1
  58. package/components/widgets/client/shared/phi-collection-view-binding.js +33 -26
  59. package/components/widgets/config/choice-shared.d.ts +2 -0
  60. package/components/widgets/config/choice-shared.js +1 -0
  61. package/components/widgets/config/image-variant-options.d.ts +4 -1
  62. package/components/widgets/config/image-variant-options.js +27 -14
  63. package/components/widgets/inspector-field-row.d.ts +14 -1
  64. package/components/widgets/inspector-field-row.js +21 -1
  65. package/components/widgets/label-sets/builder-chrome.js +2 -0
  66. package/components/widgets/label-sets/inspector.js +10 -0
  67. package/components/widgets/label-sets/security.js +2 -0
  68. package/components/widgets/label-types/inspector.d.ts +5 -0
  69. package/components/widgets/label-types/inspector.js +5 -0
  70. package/components/widgets/label-types/security.d.ts +2 -0
  71. package/components/widgets/signals/signal-endpoint-list.js +4 -1
  72. package/constants/cms-widget-types.d.ts +1 -0
  73. package/constants/cms-widget-types.js +3 -0
  74. package/constants/runtime-module-ownership.js +1 -0
  75. package/gateway/site-proxy.d.ts +12 -0
  76. package/gateway/site-proxy.js +20 -0
  77. package/helpers/cms-inspector-drawer.d.ts +15 -0
  78. package/helpers/cms-inspector-drawer.js +37 -0
  79. package/helpers/cms-layout-defaults.js +1 -1
  80. package/helpers/preset-tree-contract-check.js +56 -0
  81. package/helpers/text-source.js +2 -0
  82. package/net/phi-next-proxy.d.ts +7 -0
  83. package/net/phi-next-proxy.js +1 -1
  84. package/package.json +27 -14
  85. package/plugins/runtime-modules/accounting/definition.d.ts +1 -1
  86. package/plugins/runtime-modules/accounting/definition.js +0 -1
  87. package/plugins/runtime-modules/accounting/ids.d.ts +4 -4
  88. package/plugins/runtime-modules/accounting/ids.js +4 -2
  89. package/plugins/runtime-modules/accounting/module.d.ts +1 -1
  90. package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.js +2 -1
  91. package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.d.ts +5 -4
  92. package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.js +80 -38
  93. package/plugins/runtime-modules/admin/definition.d.ts +1 -1
  94. package/plugins/runtime-modules/admin/definition.js +0 -1
  95. package/plugins/runtime-modules/admin/module.d.ts +1 -1
  96. package/plugins/runtime-modules/app/definition.d.ts +1 -1
  97. package/plugins/runtime-modules/app/definition.js +0 -1
  98. package/plugins/runtime-modules/app/module.d.ts +1 -1
  99. package/plugins/runtime-modules/area-base-definition.d.ts +19 -1
  100. package/plugins/runtime-modules/area-base-definition.js +18 -0
  101. package/plugins/runtime-modules/area-contributions/admin.d.ts +1 -1
  102. package/plugins/runtime-modules/area-contributions/admin.js +2 -0
  103. package/plugins/runtime-modules/area-definitions.d.ts +8 -8
  104. package/plugins/runtime-modules/area-definitions.js +4 -3
  105. package/plugins/runtime-modules/area-root-route.d.ts +8 -0
  106. package/plugins/runtime-modules/area-root-route.js +11 -1
  107. package/plugins/runtime-modules/asset/labels.js +4 -0
  108. package/plugins/runtime-modules/asset/metadata-form.d.ts +0 -28
  109. package/plugins/runtime-modules/asset/metadata-form.js +6 -10
  110. package/plugins/runtime-modules/asset/services/options.d.ts +3 -2
  111. package/plugins/runtime-modules/asset/services/options.js +4 -3
  112. package/plugins/runtime-modules/asset/trees/phi-default-admin-media-settings-page-tree.js +2 -1
  113. package/plugins/runtime-modules/asset/trees/phi-default-builder-media-page-tree.js +3 -3
  114. package/plugins/runtime-modules/auth/widgets/security/client.js +2 -2
  115. package/plugins/runtime-modules/avatar/addresses.d.ts +1 -1
  116. package/plugins/runtime-modules/builder/addresses.d.ts +1 -1
  117. package/plugins/runtime-modules/builder/addresses.js +1 -1
  118. package/plugins/runtime-modules/builder/area-settings-form.js +1 -1
  119. package/plugins/runtime-modules/builder/clients/inspector-condition-group.d.ts +16 -0
  120. package/plugins/runtime-modules/builder/clients/inspector-condition-group.js +9 -0
  121. package/plugins/runtime-modules/builder/clients/inspector-config-field.js +97 -10
  122. package/plugins/runtime-modules/builder/clients/pages-header.js +7 -6
  123. package/plugins/runtime-modules/builder/clients/region-visibility-fields.js +1 -1
  124. package/plugins/runtime-modules/builder/controller/workspace-controller.js +7 -4
  125. package/plugins/runtime-modules/builder/definition.d.ts +1 -1
  126. package/plugins/runtime-modules/builder/definition.js +0 -1
  127. package/plugins/runtime-modules/builder/offered-page-catalog.d.ts +10 -4
  128. package/plugins/runtime-modules/builder/offered-page-catalog.js +35 -8
  129. package/plugins/runtime-modules/builder/page-meta-form.js +5 -2
  130. package/plugins/runtime-modules/builder/plugin-meta-labels.js +8 -0
  131. package/plugins/runtime-modules/builder/trees/phi-builder-inspector-area-overlay-tree.server.js +4 -2
  132. package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.js +20 -13
  133. package/plugins/runtime-modules/builder/workspace-catalog-actions.js +8 -1
  134. package/plugins/runtime-modules/cdn/authoring-widgets.d.ts +3 -0
  135. package/plugins/runtime-modules/cdn/authoring-widgets.js +7 -0
  136. package/plugins/runtime-modules/cdn/authoring.d.ts +1 -0
  137. package/plugins/runtime-modules/cdn/authoring.js +8 -0
  138. package/plugins/runtime-modules/cdn/bytes.d.ts +5 -0
  139. package/plugins/runtime-modules/cdn/bytes.js +17 -0
  140. package/plugins/runtime-modules/cdn/client-data-providers.d.ts +7 -0
  141. package/plugins/runtime-modules/cdn/client-data-providers.js +9 -0
  142. package/plugins/runtime-modules/cdn/data-providers.d.ts +134 -0
  143. package/plugins/runtime-modules/cdn/data-providers.js +117 -0
  144. package/plugins/runtime-modules/cdn/definition.d.ts +140 -0
  145. package/plugins/runtime-modules/cdn/definition.js +23 -0
  146. package/plugins/runtime-modules/cdn/ids.d.ts +18 -0
  147. package/plugins/runtime-modules/cdn/ids.js +20 -0
  148. package/plugins/runtime-modules/cdn/module.d.ts +131 -0
  149. package/plugins/runtime-modules/cdn/module.js +4 -0
  150. package/plugins/runtime-modules/cdn/platform.d.ts +25 -0
  151. package/plugins/runtime-modules/cdn/platform.js +73 -0
  152. package/plugins/runtime-modules/cdn/presets.d.ts +2 -0
  153. package/plugins/runtime-modules/cdn/presets.js +20 -0
  154. package/plugins/runtime-modules/cdn/server.d.ts +1 -0
  155. package/plugins/runtime-modules/cdn/server.js +14 -0
  156. package/plugins/runtime-modules/cdn/services/table.d.ts +11 -0
  157. package/plugins/runtime-modules/cdn/services/table.js +296 -0
  158. package/plugins/runtime-modules/cdn/services/upload.d.ts +20 -0
  159. package/plugins/runtime-modules/cdn/services/upload.js +146 -0
  160. package/plugins/runtime-modules/cdn/table-params.d.ts +10 -0
  161. package/plugins/runtime-modules/cdn/table-params.js +10 -0
  162. package/plugins/runtime-modules/cdn/trees/admin-cdn-label-set.d.ts +95 -0
  163. package/plugins/runtime-modules/cdn/trees/admin-cdn-label-set.js +156 -0
  164. package/plugins/runtime-modules/cdn/trees/phi-default-admin-cdn-page-tree.d.ts +18 -0
  165. package/plugins/runtime-modules/cdn/trees/phi-default-admin-cdn-page-tree.js +491 -0
  166. package/plugins/runtime-modules/cdn/widgets/upload/client.d.ts +12 -0
  167. package/plugins/runtime-modules/cdn/widgets/upload/client.js +138 -0
  168. package/plugins/runtime-modules/cdn/widgets/upload/config.d.ts +29 -0
  169. package/plugins/runtime-modules/cdn/widgets/upload/config.js +43 -0
  170. package/plugins/runtime-modules/cdn/widgets/upload/label-types.d.ts +24 -0
  171. package/plugins/runtime-modules/cdn/widgets/upload/label-types.js +1 -0
  172. package/plugins/runtime-modules/cdn/widgets/upload/labels.d.ts +4 -0
  173. package/plugins/runtime-modules/cdn/widgets/upload/labels.js +72 -0
  174. package/plugins/runtime-modules/cdn/widgets/upload/plugin.d.ts +3 -0
  175. package/plugins/runtime-modules/cdn/widgets/upload/plugin.js +7 -0
  176. package/plugins/runtime-modules/cdn/widgets/upload/server.d.ts +8 -0
  177. package/plugins/runtime-modules/cdn/widgets/upload/server.js +17 -0
  178. package/plugins/runtime-modules/cdn/widgets.d.ts +2 -0
  179. package/plugins/runtime-modules/cdn/widgets.js +13 -0
  180. package/plugins/runtime-modules/client-authoring-providers/admin.d.ts +1 -1
  181. package/plugins/runtime-modules/client-authoring-providers/admin.js +6 -0
  182. package/plugins/runtime-modules/client-manifests/admin.js +11 -1
  183. package/plugins/runtime-modules/core/authoring-widgets.js +2 -1
  184. package/plugins/runtime-modules/core/messaging/label-defaults.d.ts +49 -0
  185. package/plugins/runtime-modules/core/messaging/label-defaults.js +48 -0
  186. package/plugins/runtime-modules/core/messaging/labels.d.ts +2 -28
  187. package/plugins/runtime-modules/core/messaging/labels.js +52 -23
  188. package/plugins/runtime-modules/core/widgets/card/config.d.ts +14 -0
  189. package/plugins/runtime-modules/core/widgets/collection-view/asset-binding.js +1 -1
  190. package/plugins/runtime-modules/core/widgets/collection-view/site-address-binding.js +3 -1
  191. package/plugins/runtime-modules/core/widgets/command-toolbar/config.d.ts +14 -0
  192. package/plugins/runtime-modules/core/widgets/description/config.d.ts +14 -0
  193. package/plugins/runtime-modules/core/widgets/entry-list/config.d.ts +14 -0
  194. package/plugins/runtime-modules/core/widgets/float-button/config.d.ts +14 -0
  195. package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +14 -0
  196. package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +14 -0
  197. package/plugins/runtime-modules/core/widgets/result/config.d.ts +14 -0
  198. package/plugins/runtime-modules/core/widgets/select-box/client.js +13 -4
  199. package/plugins/runtime-modules/core/widgets/select-box/config.js +1 -0
  200. package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +14 -0
  201. package/plugins/runtime-modules/core/widgets/table/client.js +17 -8
  202. package/plugins/runtime-modules/core/widgets/table/config.d.ts +1 -1143
  203. package/plugins/runtime-modules/core/widgets/table/config.js +144 -125
  204. package/plugins/runtime-modules/core/widgets/thread-conversation/authoring.d.ts +2 -0
  205. package/plugins/runtime-modules/core/widgets/thread-conversation/authoring.js +76 -0
  206. package/plugins/runtime-modules/core/widgets/thread-conversation/client.d.ts +44 -1
  207. package/plugins/runtime-modules/core/widgets/thread-conversation/client.js +28 -13
  208. package/plugins/runtime-modules/editor/definition.d.ts +1 -1
  209. package/plugins/runtime-modules/editor/definition.js +0 -1
  210. package/plugins/runtime-modules/editor/module.d.ts +1 -1
  211. package/plugins/runtime-modules/phi-default-site-area-preset-tree.js +16 -8
  212. package/plugins/runtime-modules/public/definition.d.ts +1 -1
  213. package/plugins/runtime-modules/public/definition.js +0 -1
  214. package/plugins/runtime-modules/public/module.d.ts +1 -1
  215. package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +109 -86
  216. package/plugins/runtime-modules/threads/controller/client.js +10 -12
  217. package/plugins/runtime-modules/threads/controller/definition.d.ts +6 -0
  218. package/plugins/runtime-modules/threads/controller/definition.js +17 -6
  219. package/styles/controls.css +49 -1
  220. package/styles/layout.css +3 -2
  221. package/types/calendar.d.ts +5 -0
  222. package/types/cms-plugins.d.ts +30 -10
  223. package/types/table-widget.d.ts +8 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phis/ui",
3
- "version": "0.8.1",
3
+ "version": "0.8.3",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -501,7 +501,7 @@
501
501
  "peerDependencies": {
502
502
  "@ant-design/icons": "^6.3.2",
503
503
  "antd": "^6.7.1",
504
- "next": "^16.2.11",
504
+ "next": "^16.4.6",
505
505
  "react": "^19.2.8",
506
506
  "react-dom": "^19.2.8"
507
507
  },
@@ -512,24 +512,37 @@
512
512
  "@dnd-kit/core": "^6.3.1",
513
513
  "@dnd-kit/sortable": "^10.0.0",
514
514
  "@dnd-kit/utilities": "^3.2.2",
515
- "@iconify/react": "^6.0.2",
516
- "@lexical/history": "0.50.0",
517
- "@lexical/html": "0.50.0",
518
- "@lexical/link": "0.50.0",
519
- "@lexical/list": "0.50.0",
520
- "@lexical/react": "0.50.0",
521
- "@lexical/rich-text": "0.50.0",
522
- "@lexical/selection": "0.50.0",
523
- "@lexical/utils": "0.50.0",
524
- "@phis/contracts": "^0.8.11",
515
+ "@iconify/react": "^6.0.4",
516
+ "@lexical/history": "0.53.0",
517
+ "@lexical/html": "0.53.0",
518
+ "@lexical/link": "0.53.0",
519
+ "@lexical/list": "0.53.0",
520
+ "@lexical/react": "0.53.0",
521
+ "@lexical/rich-text": "0.53.0",
522
+ "@lexical/selection": "0.53.0",
523
+ "@lexical/utils": "0.53.0",
524
+ "@phis/contracts": "^0.8.13",
525
525
  "dayjs": "^1.11.23",
526
526
  "dom-serializer": "^2.0.0",
527
527
  "htmlparser2": "^10.1.0",
528
- "lexical": "0.50.0",
528
+ "lexical": "0.53.0",
529
529
  "remark-gfm": "^4.0.1",
530
530
  "remark-parse": "^11.0.0",
531
- "sanitize-html": "2.17.7",
531
+ "sanitize-html": "2.18.2",
532
532
  "server-only": "^0.0.1",
533
533
  "unified": "^11.0.5"
534
+ },
535
+ "phis": {
536
+ "testedWith": {
537
+ "@ant-design/icons": "6.3.4",
538
+ "@types/node": "26.6.10",
539
+ "@types/react": "19.3.2",
540
+ "@types/react-dom": "19.3.0",
541
+ "antd": "6.7.2",
542
+ "next": "16.4.6",
543
+ "react": "19.3.1",
544
+ "react-dom": "19.3.1",
545
+ "typescript": "6.0.3"
546
+ }
534
547
  }
535
548
  }
@@ -2,7 +2,6 @@ export declare const PHI_ACCOUNTING_RUNTIME_MODULE_DEFINITION: Omit<{
2
2
  serverBinding: import("../../../types").PhiRuntimeModuleServerBinding;
3
3
  description: string;
4
4
  category: "foundation";
5
- icon: string;
6
5
  dataProviders: {
7
6
  key: `${string}/${string}`;
8
7
  ownerModuleId: "@phis/ui/modules/accounting";
@@ -61,4 +60,5 @@ export declare const PHI_ACCOUNTING_RUNTIME_MODULE_DEFINITION: Omit<{
61
60
  kind: "module";
62
61
  eligibleAreas: readonly ["public" | "app" | "admin" | "builder" | "editor" | "accounting"];
63
62
  title: "Public Base" | "App Base" | "Accounting Base" | "Admin Base" | "Builder Base" | "Editor Base";
63
+ icon: string;
64
64
  };
@@ -8,6 +8,5 @@ export const PHI_ACCOUNTING_RUNTIME_MODULE_DEFINITION = definePhiAreaBaseRuntime
8
8
  serverBinding: PHI_CORE_SERVER_BINDING,
9
9
  description: "Locked Accounting Area shell, navigation surface, root route, and the Site's product directory.",
10
10
  category: "foundation",
11
- icon: "antd:profile",
12
11
  dataProviders: PHI_ACCOUNTING_RUNTIME_DATA_PROVIDER_DESCRIPTORS,
13
12
  });
@@ -25,11 +25,11 @@ export declare const PHI_ACCOUNTING_PRODUCTS_PAGE_WIDGET_IDS: Readonly<Record<"w
25
25
  */
26
26
  export declare const PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_PRESET_KEY = "accounting-customer-file-page";
27
27
  /**
28
- * The person and their addresses, the file and its note dialog, the conversations with the one chosen and
29
- * its Reply dialog -- every one named in a route by another.
28
+ * The member select and its row, the person and their addresses, the file and its note dialog, the
29
+ * conversations with the one chosen and its Reply dialog -- every one named in a route by another.
30
30
  */
31
31
  export declare const PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_IDS: {
32
- widgets: Readonly<Record<"widgetConversation" | "widgetReplyForm" | "widgetReplyCommands" | "widgetPerson" | "widgetAddresses" | "widgetFile" | "widgetThreads" | "widgetNoteForm" | "widgetNoteCommands", import("@phis/contracts/cms").PhiCmsInstanceId>>;
32
+ widgets: Readonly<Record<"widgetConversation" | "widgetReplyForm" | "widgetReplyCommands" | "widgetMember" | "widgetPerson" | "widgetAddresses" | "widgetFile" | "widgetThreads" | "widgetNoteForm" | "widgetNoteCommands", import("@phis/contracts/cms").PhiCmsInstanceId>>;
33
33
  overlays: Readonly<Record<"overlayReply" | "overlayNote", import("@phis/contracts/cms").PhiCmsInstanceId>>;
34
- layouts: Readonly<Record<"layoutReply" | "layoutReplyFooter" | "layoutNote" | "layoutNoteFooter", import("@phis/contracts/cms").PhiCmsInstanceId>>;
34
+ layouts: Readonly<Record<"layoutReply" | "layoutReplyFooter" | "layoutMember" | "layoutNote" | "layoutNoteFooter", import("@phis/contracts/cms").PhiCmsInstanceId>>;
35
35
  };
@@ -38,11 +38,12 @@ const PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_PRESET = {
38
38
  presetKey: PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_PRESET_KEY,
39
39
  };
40
40
  /**
41
- * The person and their addresses, the file and its note dialog, the conversations with the one chosen and
42
- * its Reply dialog -- every one named in a route by another.
41
+ * The member select and its row, the person and their addresses, the file and its note dialog, the
42
+ * conversations with the one chosen and its Reply dialog -- every one named in a route by another.
43
43
  */
44
44
  export const PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_IDS = {
45
45
  widgets: createPhiPresetCmsInstanceIdMap(PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_PRESET, [
46
+ "widgetMember",
46
47
  "widgetPerson",
47
48
  "widgetAddresses",
48
49
  "widgetFile",
@@ -55,6 +56,7 @@ export const PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_IDS = {
55
56
  ]),
56
57
  overlays: createPhiPresetCmsInstanceIdMap(PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_PRESET, ["overlayNote", "overlayReply"]),
57
58
  layouts: createPhiPresetCmsInstanceIdMap(PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_PRESET, [
59
+ "layoutMember",
58
60
  "layoutNote",
59
61
  "layoutNoteFooter",
60
62
  "layoutReply",
@@ -7,7 +7,6 @@ export declare const PHI_ACCOUNTING_RUNTIME_MODULE: {
7
7
  moduleId: "@phis/ui/modules/accounting";
8
8
  category: "foundation";
9
9
  description: string;
10
- icon: string;
11
10
  serverBinding: import("../../../types").PhiRuntimeModuleServerBinding;
12
11
  dataProviders: {
13
12
  key: `${string}/${string}`;
@@ -64,4 +63,5 @@ export declare const PHI_ACCOUNTING_RUNTIME_MODULE: {
64
63
  kind: "module";
65
64
  eligibleAreas: readonly ["public" | "app" | "admin" | "builder" | "editor" | "accounting"];
66
65
  title: "Public Base" | "App Base" | "Accounting Base" | "Admin Base" | "Builder Base" | "Editor Base";
66
+ icon: string;
67
67
  };
@@ -20,7 +20,8 @@ const PHI_CUSTOMER_FILE_PAGE_LABEL_SET = definePhiRuntimeModuleLabelSet(PHI_ACCO
20
20
  person_picker_hint: definePhiMessageLabel("Search by name, e-mail address or telephone number."),
21
21
  person_empty: definePhiMessageLabel("Choose a member to open their file."),
22
22
  own_file: definePhiMessageLabel("This is your own record; it is not shown here."),
23
- person_footer: definePhiMessageLabel("Member no. %1. Opening a file is written to the access log."),
23
+ // "Member ID", not "Member no.": the abbreviation read as the word "no" once translated.
24
+ person_footer: definePhiMessageLabel("Member ID %1. Opening a file is written to the access log."),
24
25
  // Core pages the conversations without a count: what this page holds, and which page it is.
25
26
  threads_footer: "%1 on page %2",
26
27
  column_display_name: "Shown as",
@@ -8,11 +8,12 @@ import type { PhiBlockRuntime } from "../../../../types";
8
8
  * already is and bound by Foundation names only (`constants/customer-file.ts`,
9
9
  * `constants/threads-controller-address.ts`): the Table and Collection Providers and the Conversations
10
10
  * Controller are the conversations Module's, which is active in the Accounting Area by default and has to
11
- * be for this Page to read anything. The person Table's filter is Core's member picker
11
+ * be for this Page to read anything. Above everything stands the member select, Core's member picker
12
12
  * (the `site-members` options with Core's search, which matches names, e-mail addresses and telephone
13
- * numbers); its query goes to the conversations Table and to the Conversations Controller, so one choice
14
- * fills the Page with one request: the Controller hands the member to the addresses tiles as binding params
15
- * (Core's address renderer, read-only), joins the Tables' read for the file's id and hands it to the file
13
+ * numbers), because it is the input of everything below it; its value goes to the Conversations
14
+ * Controller, so one choice fills the Page with one request: the Controller hands the member to the person
15
+ * and the conversations Tables as filters and to the addresses tiles as binding params (Core's address
16
+ * renderer, read-only), joins the Tables' read for the file's id and hands it to the file
16
17
  * panel, a conversation reader whose "Add note" opens Core's Reply Form
17
18
  * in a dialog of its own (every message of a file is internal). The conversations Table lists the person's
18
19
  * conversations, the file not among them, and choosing a row is the conversations Page's choreography
@@ -25,11 +25,12 @@ const SYNTHETIC_CUSTOMER_FILE_REGION_ID = -459;
25
25
  * already is and bound by Foundation names only (`constants/customer-file.ts`,
26
26
  * `constants/threads-controller-address.ts`): the Table and Collection Providers and the Conversations
27
27
  * Controller are the conversations Module's, which is active in the Accounting Area by default and has to
28
- * be for this Page to read anything. The person Table's filter is Core's member picker
28
+ * be for this Page to read anything. Above everything stands the member select, Core's member picker
29
29
  * (the `site-members` options with Core's search, which matches names, e-mail addresses and telephone
30
- * numbers); its query goes to the conversations Table and to the Conversations Controller, so one choice
31
- * fills the Page with one request: the Controller hands the member to the addresses tiles as binding params
32
- * (Core's address renderer, read-only), joins the Tables' read for the file's id and hands it to the file
30
+ * numbers), because it is the input of everything below it; its value goes to the Conversations
31
+ * Controller, so one choice fills the Page with one request: the Controller hands the member to the person
32
+ * and the conversations Tables as filters and to the addresses tiles as binding params (Core's address
33
+ * renderer, read-only), joins the Tables' read for the file's id and hands it to the file
33
34
  * panel, a conversation reader whose "Add note" opens Core's Reply Form
34
35
  * in a dialog of its own (every message of a file is internal). The conversations Table lists the person's
35
36
  * conversations, the file not among them, and choosing a row is the conversations Page's choreography
@@ -81,6 +82,7 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
81
82
  const controllerAddress = createPhiThreadsControllerAddress();
82
83
  const addressesAddress = createPhiSignalAddress("cms", widgetIds.widgetAddresses);
83
84
  const fileAddress = createPhiSignalAddress("cms", widgetIds.widgetFile);
85
+ const personAddress = createPhiSignalAddress("cms", widgetIds.widgetPerson);
84
86
  const threadsAddress = createPhiSignalAddress("cms", widgetIds.widgetThreads);
85
87
  const conversationAddress = createPhiSignalAddress("cms", widgetIds.widgetConversation);
86
88
  const noteOverlayAddress = createPhiSignalAddress("cms", overlayIds.overlayNote);
@@ -97,7 +99,7 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
97
99
  ...(valueSchema ? { valueSchema } : {}),
98
100
  receiver,
99
101
  });
100
- const queryInput = (routeKey, receiver) => route(routeKey, "queryChange", "query", "change", receiver, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableQuery);
102
+ const memberFilters = (routeKey, receiver) => route(routeKey, "filtersChange", "filters", "change", receiver, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableFilters);
101
103
  const tableAction = (routeKey, capabilityId, receiver) => route(routeKey, capabilityId, "action", "activate", receiver, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableAction);
102
104
  const threadRoute = (routeKey, capabilityId, action, receiver) => route(routeKey, capabilityId, "thread", action, receiver, "json", PHI_SIGNAL_VALUE_SCHEMAS.threadSelection);
103
105
  const prefix = "accounting-customer-file";
@@ -224,7 +226,8 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
224
226
  /*
225
227
  * The Conversations Controller, configured as on the conversations Page -- the chosen conversation to
226
228
  * its reader, the listing read again after a reply -- and with this Page's part: the member's file to
227
- * the file panel when the person Table chooses one, read again after a note.
229
+ * the file panel when the member select chooses one, read again after a note, and the member to
230
+ * the Tables and the addresses.
228
231
  */
229
232
  controllerSettings: [{
230
233
  type: PHI_THREADS_CONTROLLER_TYPE,
@@ -238,7 +241,9 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
238
241
  threadRoute(`${prefix}-controller-file`, "fileThreadChange", "change", fileAddress),
239
242
  threadRoute(`${prefix}-controller-file-reload`, "fileThreadReload", "reload", fileAddress),
240
243
  route(`${prefix}-controller-reload-threads`, "reload", "reload", "activate", threadsAddress),
241
- // The member chosen, as the addresses tiles' binding params.
244
+ // The member chosen, as the Tables' filters and as the addresses tiles' binding params.
245
+ route(`${prefix}-controller-person`, "memberFiltersChange", "filters", "change", personAddress, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableFilters),
246
+ route(`${prefix}-controller-threads`, "memberFiltersChange", "filters", "change", threadsAddress, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableFilters),
242
247
  route(`${prefix}-controller-addresses`, "memberParamsChange", "bindingParams", "change", addressesAddress, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableBindingParams),
243
248
  ],
244
249
  },
@@ -246,14 +251,66 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
246
251
  }],
247
252
  overlays: [noteDialog.dialog.overlay, replyDialog.dialog.overlay],
248
253
  regions: [scaffold.region],
249
- layoutNodes: [scaffold.layoutNode, ...noteDialog.dialog.layouts, ...replyDialog.dialog.layouts],
254
+ layoutNodes: [
255
+ scaffold.layoutNode,
256
+ // The member select's row, first on the Page: it is the input of everything below it.
257
+ nodes.layout({
258
+ id: layoutIds.layoutMember,
259
+ parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
260
+ creationPreset: { layoutKind: "flex", preset: "panel" },
261
+ typeKey: "flex",
262
+ slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
263
+ sortOrder: 0,
264
+ label: `${prefix} member row`,
265
+ // Flush with the Tables below: the Region holds the Page's inset.
266
+ config: { padding: 0, paddingLeft: 0, paddingRight: 0 },
267
+ }),
268
+ ...noteDialog.dialog.layouts,
269
+ ...replyDialog.dialog.layouts,
270
+ ],
250
271
  contentWidgets: [
272
+ /*
273
+ * Core's member picker as a select of its own, labelled in front, searched on the server. It may be
274
+ * cleared, so it starts with nobody chosen; its value, the user id as text (`""` once cleared), goes
275
+ * to the Controller, which hands it to everything below.
276
+ */
277
+ nodes.widget({
278
+ id: widgetIds.widgetMember,
279
+ parentLayoutNodeId: layoutIds.layoutMember,
280
+ typeKey: "select-box",
281
+ slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
282
+ sortOrder: 0,
283
+ // The Module's Label Set, translated already.
284
+ flags: PhiCmsFlags.NoTranslate,
285
+ label: labels.person.picker,
286
+ config: {
287
+ key: `${prefix}-member`,
288
+ label: labels.person.picker,
289
+ description: labels.person.pickerHint,
290
+ allowClear: true,
291
+ /*
292
+ * A search wants room to type in, about half the row, label included. In pixels: the Flex slot
293
+ * is as wide as what it holds, so a share of it would be a share of the select itself.
294
+ */
295
+ size: { width: { compact: 300, medium: 377, wide: 466 } },
296
+ optionsProvider: {
297
+ providerKey: PHI_CORE_RUNTIME_DATA_PROVIDER_KEYS.siteMembers,
298
+ loadMode: "server",
299
+ search: { enabled: true, minChars: 2 },
300
+ },
301
+ signalRoutes: {
302
+ emits: [
303
+ route(`${prefix}-member-to-controller`, "change", "member", "change", controllerAddress, "string"),
304
+ ],
305
+ },
306
+ },
307
+ }),
251
308
  nodes.widget({
252
309
  id: widgetIds.widgetPerson,
253
310
  parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
254
311
  typeKey: "table",
255
- slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
256
- sortOrder: 0,
312
+ slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 1,
313
+ sortOrder: 1,
257
314
  // The Module's Label Set, translated already.
258
315
  flags: PhiCmsFlags.NoTranslate,
259
316
  label: labels.person.label,
@@ -275,7 +332,7 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
275
332
  footer: {
276
333
  template: labels.person.footer,
277
334
  values: [{ key: "member", value: { source: "provider", fieldKey: "userId" } }],
278
- // Nobody chosen: nothing to say under the picker.
335
+ // Nobody chosen: nothing to say under the Table.
279
336
  variants: [{ when: { value: { source: "provider", fieldKey: "userId" }, operator: "falsy" }, template: "" }],
280
337
  align: "start",
281
338
  },
@@ -283,30 +340,15 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
283
340
  loadingRows: 1,
284
341
  },
285
342
  features: {
286
- // The other readers take this query, so it pages as they do.
343
+ // The first page at the conversations Table's size, so the two read the member with one request.
287
344
  pagination: { enabled: false, pageSize: 25 },
288
345
  sorting: { mode: "none" },
289
346
  search: { enabled: false },
290
347
  tools: { mode: "self-contained", reset: false, reload: true },
291
- filters: [{
292
- key: "userId",
293
- type: "select",
294
- label: labels.person.picker,
295
- description: labels.person.pickerHint,
296
- optionsProvider: {
297
- providerKey: PHI_CORE_RUNTIME_DATA_PROVIDER_KEYS.siteMembers,
298
- loadMode: "server",
299
- search: { enabled: true, minChars: 2 },
300
- },
301
- }],
302
348
  },
303
349
  signalRoutes: {
304
- // The member chosen, handed on as the query the conversations read it from, and to the
305
- // Controller, which opens their file and hands the member to the addresses.
306
- emits: [
307
- route(`${prefix}-person-to-threads`, "queryChange", "query", "change", threadsAddress, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableQuery),
308
- route(`${prefix}-person-to-file`, "queryChange", "member", "change", controllerAddress, "json", PHI_SIGNAL_VALUE_SCHEMAS.tableQuery),
309
- ],
350
+ // The member chosen, from the Controller, as the `userId` filter the Provider reads.
351
+ listens: [memberFilters(`${prefix}-person-member`, personAddress)],
310
352
  },
311
353
  },
312
354
  }),
@@ -319,8 +361,8 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
319
361
  id: widgetIds.widgetAddresses,
320
362
  parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
321
363
  typeKey: "collection-view",
322
- slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 1,
323
- sortOrder: 1,
364
+ slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 2,
365
+ sortOrder: 2,
324
366
  // The Module's Label Set, translated already.
325
367
  flags: PhiCmsFlags.NoTranslate,
326
368
  label: labels.addresses.label,
@@ -349,8 +391,8 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
349
391
  id: widgetIds.widgetFile,
350
392
  parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
351
393
  typeKey: "thread-conversation",
352
- slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 2,
353
- sortOrder: 2,
394
+ slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 3,
395
+ sortOrder: 3,
354
396
  // The Module's Label Set, translated already.
355
397
  flags: PhiCmsFlags.NoTranslate,
356
398
  label: labels.file.label,
@@ -360,8 +402,8 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
360
402
  id: widgetIds.widgetThreads,
361
403
  parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
362
404
  typeKey: "table",
363
- slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 3,
364
- sortOrder: 3,
405
+ slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 4,
406
+ sortOrder: 4,
365
407
  // The Module's Label Set, translated already.
366
408
  flags: PhiCmsFlags.NoTranslate,
367
409
  label: labels.threads.label,
@@ -424,7 +466,7 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
424
466
  route(`${prefix}-threads-condition`, "conditionStateRequest", "condition", "reload", controllerAddress),
425
467
  ],
426
468
  listens: [
427
- queryInput(`${prefix}-threads-query`, threadsAddress),
469
+ memberFilters(`${prefix}-threads-member`, threadsAddress),
428
470
  route(`${prefix}-threads-reload`, "reload", "reload", "activate", threadsAddress),
429
471
  ],
430
472
  },
@@ -434,8 +476,8 @@ export async function buildPhiDefaultAccountingCustomerFilePageTree({ page, runt
434
476
  id: widgetIds.widgetConversation,
435
477
  parentLayoutNodeId: PHI_BASE_PAGE_LAYOUT_NODE_ID,
436
478
  typeKey: "thread-conversation",
437
- slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 4,
438
- sortOrder: 4,
479
+ slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX + 5,
480
+ sortOrder: 5,
439
481
  // The Module's Label Set, translated already.
440
482
  flags: PhiCmsFlags.NoTranslate,
441
483
  label: labels.conversation.label,
@@ -2,7 +2,6 @@ export declare const PHI_ADMIN_RUNTIME_MODULE_DEFINITION: Omit<{
2
2
  serverBinding: import("../../../types").PhiRuntimeModuleServerBinding;
3
3
  description: string;
4
4
  category: "foundation";
5
- iconFamily: string;
6
5
  formProviders: {
7
6
  handlers: {
8
7
  key: `${string}/${string}`;
@@ -26,4 +25,5 @@ export declare const PHI_ADMIN_RUNTIME_MODULE_DEFINITION: Omit<{
26
25
  kind: "module";
27
26
  eligibleAreas: readonly ["public" | "app" | "admin" | "builder" | "editor" | "accounting"];
28
27
  title: "Public Base" | "App Base" | "Accounting Base" | "Admin Base" | "Builder Base" | "Editor Base";
28
+ icon: string;
29
29
  };
@@ -8,6 +8,5 @@ export const PHI_ADMIN_RUNTIME_MODULE_DEFINITION = definePhiAreaBaseRuntimeModul
8
8
  serverBinding: PHI_CORE_SERVER_BINDING,
9
9
  description: "Locked Admin Area shell, navigation surface, root route, and Admin settings.",
10
10
  category: "foundation",
11
- iconFamily: "admin",
12
11
  formProviders: { handlers: PHI_ADMIN_SETTINGS_FORM_HANDLER_PROVIDER_DESCRIPTORS },
13
12
  });
@@ -25,8 +25,8 @@ export declare const PHI_ADMIN_RUNTIME_MODULE: {
25
25
  credentialPolicy: "site-session";
26
26
  }[];
27
27
  };
28
- iconFamily: string;
29
28
  kind: "module";
30
29
  eligibleAreas: readonly ["public" | "app" | "admin" | "builder" | "editor" | "accounting"];
31
30
  title: "Public Base" | "App Base" | "Accounting Base" | "Admin Base" | "Builder Base" | "Editor Base";
31
+ icon: string;
32
32
  };
@@ -2,7 +2,6 @@ export declare const PHI_APP_RUNTIME_MODULE_DEFINITION: Omit<{
2
2
  serverBinding: import("../../../types").PhiRuntimeModuleServerBinding;
3
3
  description: string;
4
4
  category: "foundation";
5
- icon: string;
6
5
  formProviders: {
7
6
  handlers: ({
8
7
  key: `${string}/${string}`;
@@ -127,4 +126,5 @@ export declare const PHI_APP_RUNTIME_MODULE_DEFINITION: Omit<{
127
126
  kind: "module";
128
127
  eligibleAreas: readonly ["public" | "app" | "admin" | "builder" | "editor" | "accounting"];
129
128
  title: "Public Base" | "App Base" | "Accounting Base" | "Admin Base" | "Builder Base" | "Editor Base";
129
+ icon: string;
130
130
  };
@@ -9,7 +9,6 @@ export const PHI_APP_RUNTIME_MODULE_DEFINITION = definePhiAreaBaseRuntimeModuleD
9
9
  serverBinding: PHI_CORE_SERVER_BINDING,
10
10
  description: "Locked App Area shell, navigation surfaces, and authenticated application routes.",
11
11
  category: "foundation",
12
- icon: "antd:appstore",
13
12
  formProviders: {
14
13
  handlers: PHI_APP_FORM_HANDLER_PROVIDER_DESCRIPTORS,
15
14
  },
@@ -7,7 +7,6 @@ export declare const PHI_APP_RUNTIME_MODULE: {
7
7
  moduleId: "@phis/ui/modules/app";
8
8
  category: "foundation";
9
9
  description: string;
10
- icon: string;
11
10
  serverBinding: import("../../../types").PhiRuntimeModuleServerBinding;
12
11
  dataProviders: {
13
12
  key: `${string}/${string}`;
@@ -130,4 +129,5 @@ export declare const PHI_APP_RUNTIME_MODULE: {
130
129
  kind: "module";
131
130
  eligibleAreas: readonly ["public" | "app" | "admin" | "builder" | "editor" | "accounting"];
132
131
  title: "Public Base" | "App Base" | "Accounting Base" | "Admin Base" | "Builder Base" | "Editor Base";
132
+ icon: string;
133
133
  };
@@ -8,13 +8,31 @@ declare const PHI_AREA_BASE_MODULE_TITLES: {
8
8
  readonly builder: "Builder Base";
9
9
  readonly editor: "Editor Base";
10
10
  };
11
+ /**
12
+ * The icon an Area is shown by, which is its base Module's.
13
+ *
14
+ * One answer for every place that draws it: the base Module's own row in the Builder's Modules table and
15
+ * that Area's checkbox column heading beside it, where the icon stands alone and the Area's name is its
16
+ * tooltip. The base Module takes it from here rather than stating its own, so the two cannot drift
17
+ * apart, and the sidebar entries that lead into another Area (`target: { kind: "area" }`) wear it too.
18
+ * Names from the shared icon vocabulary (`@phis/ui/widgets:<family>` is a Widget family's icon).
19
+ */
20
+ export declare const PHI_AREA_ICONS: {
21
+ readonly public: "antd:global";
22
+ readonly app: "antd:appstore";
23
+ readonly accounting: "antd:profile";
24
+ readonly admin: "antd:cluster";
25
+ readonly builder: "antd:build";
26
+ readonly editor: "@phis/ui/widgets:editor";
27
+ };
11
28
  type PhiAreaBaseModuleTitle<TArea extends PhiCmsAreaKey> = (typeof PHI_AREA_BASE_MODULE_TITLES)[TArea];
12
- type PhiAreaBaseRuntimeModuleDefinitionInput<TArea extends PhiCmsAreaKey> = Omit<PhiRuntimeModuleDefinition, "kind" | "eligibleAreas" | "title"> & {
29
+ type PhiAreaBaseRuntimeModuleDefinitionInput<TArea extends PhiCmsAreaKey> = Omit<PhiRuntimeModuleDefinition, "kind" | "eligibleAreas" | "title" | "icon" | "iconFamily"> & {
13
30
  area: TArea;
14
31
  };
15
32
  export declare function definePhiAreaBaseRuntimeModuleDefinition<TArea extends PhiCmsAreaKey, TDefinition extends PhiAreaBaseRuntimeModuleDefinitionInput<TArea>>(definition: TDefinition): Omit<TDefinition, "area"> & {
16
33
  kind: "module";
17
34
  eligibleAreas: readonly [TArea];
18
35
  title: PhiAreaBaseModuleTitle<TArea>;
36
+ icon: string;
19
37
  };
20
38
  export {};
@@ -6,6 +6,23 @@ const PHI_AREA_BASE_MODULE_TITLES = {
6
6
  builder: "Builder Base",
7
7
  editor: "Editor Base",
8
8
  };
9
+ /**
10
+ * The icon an Area is shown by, which is its base Module's.
11
+ *
12
+ * One answer for every place that draws it: the base Module's own row in the Builder's Modules table and
13
+ * that Area's checkbox column heading beside it, where the icon stands alone and the Area's name is its
14
+ * tooltip. The base Module takes it from here rather than stating its own, so the two cannot drift
15
+ * apart, and the sidebar entries that lead into another Area (`target: { kind: "area" }`) wear it too.
16
+ * Names from the shared icon vocabulary (`@phis/ui/widgets:<family>` is a Widget family's icon).
17
+ */
18
+ export const PHI_AREA_ICONS = {
19
+ public: "antd:global",
20
+ app: "antd:appstore",
21
+ accounting: "antd:profile",
22
+ admin: "antd:cluster",
23
+ builder: "antd:build",
24
+ editor: "@phis/ui/widgets:editor",
25
+ };
9
26
  export function definePhiAreaBaseRuntimeModuleDefinition(definition) {
10
27
  const { area, ...metadata } = definition;
11
28
  return {
@@ -13,5 +30,6 @@ export function definePhiAreaBaseRuntimeModuleDefinition(definition) {
13
30
  kind: "module",
14
31
  eligibleAreas: [area],
15
32
  title: PHI_AREA_BASE_MODULE_TITLES[area],
33
+ icon: PHI_AREA_ICONS[area],
16
34
  };
17
35
  }
@@ -1 +1 @@
1
- export declare const PHI_ADMIN_RUNTIME_MODULE_AREA_CONTRIBUTIONS: readonly [import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution];
1
+ export declare const PHI_ADMIN_RUNTIME_MODULE_AREA_CONTRIBUTIONS: readonly [import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution, import("../area-contributions").PhiRuntimeModuleServerAreaContribution];
@@ -4,6 +4,7 @@ import { createPhiLocalizationRuntimeModuleServerAreaContribution } from "../loc
4
4
  import { createPhiGroupsRuntimeModuleServerAreaContribution } from "../groups/server";
5
5
  import { PHI_USER_MANAGEMENT_RUNTIME_MODULE_SERVER_AREA_CONTRIBUTION } from "../user-management/server";
6
6
  import { PHI_OBSERVABILITY_RUNTIME_MODULE_SERVER_AREA_CONTRIBUTION } from "../observability/server";
7
+ import { PHI_CDN_RUNTIME_MODULE_SERVER_AREA_CONTRIBUTION } from "../cdn/server";
7
8
  import { createPhiAuthRuntimeModuleServerAreaContribution } from "../auth/server";
8
9
  import { PHI_ADMIN_RUNTIME_MODULE_SERVER_AREA_CONTRIBUTION } from "../admin/server";
9
10
  export const PHI_ADMIN_RUNTIME_MODULE_AREA_CONTRIBUTIONS = [
@@ -13,6 +14,7 @@ export const PHI_ADMIN_RUNTIME_MODULE_AREA_CONTRIBUTIONS = [
13
14
  createPhiGroupsRuntimeModuleServerAreaContribution(),
14
15
  createPhiLocalizationRuntimeModuleServerAreaContribution(),
15
16
  PHI_OBSERVABILITY_RUNTIME_MODULE_SERVER_AREA_CONTRIBUTION,
17
+ PHI_CDN_RUNTIME_MODULE_SERVER_AREA_CONTRIBUTION,
16
18
  PHI_USER_MANAGEMENT_RUNTIME_MODULE_SERVER_AREA_CONTRIBUTION,
17
19
  PHI_ADMIN_RUNTIME_MODULE_SERVER_AREA_CONTRIBUTION,
18
20
  ];
@@ -122,7 +122,7 @@ export declare const PHI_ACCOUNTING_RUNTIME_AREA_DEFINITIONS: {
122
122
  label: {
123
123
  defaultMessage: string;
124
124
  };
125
- icon: string;
125
+ icon: "antd:cluster";
126
126
  standing: "last";
127
127
  target: {
128
128
  kind: "area";
@@ -174,7 +174,7 @@ export declare const PHI_ADMIN_RUNTIME_AREA_DEFINITIONS: {
174
174
  label: {
175
175
  defaultMessage: string;
176
176
  };
177
- icon: string;
177
+ icon: "antd:build";
178
178
  standing: "last";
179
179
  target: {
180
180
  kind: "area";
@@ -326,7 +326,7 @@ export declare const PHI_ALL_RUNTIME_AREA_DEFINITIONS: ({
326
326
  label: {
327
327
  defaultMessage: string;
328
328
  };
329
- icon: string;
329
+ icon: "antd:cluster";
330
330
  standing: "last";
331
331
  target: {
332
332
  kind: "area";
@@ -377,7 +377,7 @@ export declare const PHI_ALL_RUNTIME_AREA_DEFINITIONS: ({
377
377
  label: {
378
378
  defaultMessage: string;
379
379
  };
380
- icon: string;
380
+ icon: "antd:build";
381
381
  standing: "last";
382
382
  target: {
383
383
  kind: "area";
@@ -454,7 +454,7 @@ export declare const PHI_ALL_RUNTIME_AREA_DEFINITIONS: ({
454
454
  label: {
455
455
  defaultMessage: string;
456
456
  };
457
- icon: string;
457
+ icon: "antd:cluster";
458
458
  standing: "last";
459
459
  target: {
460
460
  kind: "area";
@@ -588,7 +588,7 @@ export declare function resolvePhiRuntimeAreaDefinition(area: PhiCmsAreaDefiniti
588
588
  label: {
589
589
  defaultMessage: string;
590
590
  };
591
- icon: string;
591
+ icon: "antd:cluster";
592
592
  standing: "last";
593
593
  target: {
594
594
  kind: "area";
@@ -639,7 +639,7 @@ export declare function resolvePhiRuntimeAreaDefinition(area: PhiCmsAreaDefiniti
639
639
  label: {
640
640
  defaultMessage: string;
641
641
  };
642
- icon: string;
642
+ icon: "antd:build";
643
643
  standing: "last";
644
644
  target: {
645
645
  kind: "area";
@@ -716,7 +716,7 @@ export declare function resolvePhiRuntimeAreaDefinition(area: PhiCmsAreaDefiniti
716
716
  label: {
717
717
  defaultMessage: string;
718
718
  };
719
- icon: string;
719
+ icon: "antd:cluster";
720
720
  standing: "last";
721
721
  target: {
722
722
  kind: "area";