@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.
Files changed (462) hide show
  1. package/components/cms/phi-cms-layout-renderer.js +15 -7
  2. package/components/cms/phi-cms-render-diagnostic-client.d.ts +3 -1
  3. package/components/cms/phi-cms-render-diagnostic-client.js +4 -3
  4. package/components/cms/phi-cms-render-diagnostic.d.ts +8 -2
  5. package/components/cms/phi-cms-render-diagnostic.js +12 -2
  6. package/components/cms/phi-cms-render-error-boundary.d.ts +2 -0
  7. package/components/cms/phi-cms-render-error-boundary.js +1 -1
  8. package/components/cms/phi-cms-root-layout.js +3 -1
  9. package/components/controls/phi-address-control.d.ts +23 -0
  10. package/components/controls/phi-address-control.js +43 -0
  11. package/components/controls/phi-color-control.d.ts +3 -1
  12. package/components/controls/phi-color-control.js +2 -2
  13. package/components/controls/phi-country-select-control.d.ts +22 -0
  14. package/components/controls/phi-country-select-control.js +16 -0
  15. package/components/controls/phi-dialog-control.d.ts +1 -1
  16. package/components/controls/phi-drawer-control-adapter.d.ts +1 -1
  17. package/components/controls/phi-drawer-control-adapter.js +5 -3
  18. package/components/controls/phi-drawer-control.d.ts +7 -5
  19. package/components/controls/phi-float-button-control.d.ts +8 -1
  20. package/components/controls/phi-float-button-control.js +19 -3
  21. package/components/controls/phi-form-control.js +52 -8
  22. package/components/controls/phi-media-picker-control.d.ts +9 -0
  23. package/components/controls/phi-media-picker-control.js +1 -1
  24. package/components/controls/phi-modal-control-adapter.d.ts +1 -1
  25. package/components/controls/phi-modal-control-adapter.js +14 -37
  26. package/components/controls/phi-modal-control.d.ts +5 -5
  27. package/components/controls/phi-options-provider.d.ts +1 -0
  28. package/components/controls/phi-options-provider.js +1 -0
  29. package/components/controls/phi-overlay-control-contract.d.ts +52 -17
  30. package/components/controls/phi-overlay-control-contract.js +55 -30
  31. package/components/controls/phi-popover-control.js +4 -1
  32. package/components/controls/phi-reveal-once-dialog-control.d.ts +21 -0
  33. package/components/controls/phi-reveal-once-dialog-control.js +52 -0
  34. package/components/controls/phi-reveal-once-dialog-labels.d.ts +10 -0
  35. package/components/controls/phi-reveal-once-dialog-labels.js +5 -0
  36. package/components/controls/phi-table-control.d.ts +7 -1
  37. package/components/controls/phi-table-control.js +23 -8
  38. package/components/forms/flags-field.d.ts +22 -0
  39. package/components/forms/flags-field.js +58 -0
  40. package/components/forms/form-descriptor-field-check.d.ts +18 -0
  41. package/components/forms/form-descriptor-field-check.js +41 -0
  42. package/components/forms/form-descriptor-runtime-client.js +11 -10
  43. package/components/forms/form-option-flags.d.ts +20 -0
  44. package/components/forms/form-option-flags.js +38 -0
  45. package/components/forms/form-provider-contract.d.ts +23 -0
  46. package/components/forms/form-provider-contract.js +36 -0
  47. package/components/forms/form-provider-registry.d.ts +5 -1
  48. package/components/forms/form-record-source.d.ts +38 -0
  49. package/components/forms/form-record-source.js +48 -0
  50. package/components/forms/shared-form-descriptors.d.ts +0 -34
  51. package/components/forms/shared-form-descriptors.js +0 -6
  52. package/components/forms/shared-form-ids.d.ts +1 -1
  53. package/components/forms/shared-form-ids.js +1 -1
  54. package/components/forms/shared-form-provider-registry.js +13 -0
  55. package/components/forms/structured-field-labels.d.ts +24 -0
  56. package/components/forms/structured-field-labels.js +43 -0
  57. package/components/forms/structured-form-field-controls.d.ts +12 -0
  58. package/components/forms/structured-form-field-controls.js +65 -0
  59. package/components/media/media-settings-labels.d.ts +1 -0
  60. package/components/media/media-settings-labels.js +2 -0
  61. package/components/media/phi-media-picker-binding.d.ts +41 -33
  62. package/components/media/phi-media-picker-binding.js +2 -1
  63. package/components/media/use-media-library-add-picker.d.ts +33 -32
  64. package/components/overlays/phi-overlay-container-client.js +13 -11
  65. package/components/regions/phi-cms-region-shell.js +2 -2
  66. package/components/regions/presets/content-entry-editor-page-tree.js +12 -3
  67. package/components/regions/presets/phi-settings-page-shell-tree.d.ts +13 -2
  68. package/components/regions/presets/phi-settings-page-shell-tree.js +4 -4
  69. package/components/root/phi-root-theme-resolver.js +3 -0
  70. package/components/shell/phi-antd-icon.d.ts +1 -8
  71. package/components/shell/phi-antd-icon.js +1 -227
  72. package/components/shell/phi-icon-names.d.ts +22 -0
  73. package/components/shell/phi-icon-names.js +267 -0
  74. package/components/shell/phi-icon.d.ts +4 -15
  75. package/components/shell/phi-icon.js +9 -50
  76. package/components/tables/client/phi-table-binding-params.d.ts +24 -0
  77. package/components/tables/client/phi-table-binding-params.js +39 -0
  78. package/components/tables/client/phi-table-binding.d.ts +1 -3
  79. package/components/tables/client/phi-table-binding.js +5 -9
  80. package/components/widgets/client/shared/phi-button-icons.d.ts +6 -4
  81. package/components/widgets/client/shared/phi-button-icons.js +8 -12
  82. package/components/widgets/client/shared/phi-collection-binding-params.d.ts +8 -0
  83. package/components/widgets/client/shared/phi-collection-binding-params.js +13 -0
  84. package/components/widgets/client/shared/phi-collection-provider.d.ts +11 -1
  85. package/components/widgets/client/shared/phi-collection-provider.js +5 -0
  86. package/components/widgets/client/shared/phi-collection-view-binding.d.ts +1 -0
  87. package/components/widgets/client/shared/phi-command-buttons.d.ts +29 -2
  88. package/components/widgets/client/shared/phi-command-buttons.js +19 -5
  89. package/components/widgets/client/shared/phi-rendered-value.js +27 -3
  90. package/components/widgets/client/shared/phi-table-provider-refusal.d.ts +13 -0
  91. package/components/widgets/client/shared/phi-table-provider-refusal.js +13 -0
  92. package/components/widgets/config/background.d.ts +3 -2
  93. package/components/widgets/config/choice-shared.d.ts +10 -1
  94. package/components/widgets/config/choice-shared.js +8 -2
  95. package/components/widgets/label-sets/admin-locales.js +1 -1
  96. package/components/widgets/label-sets/admin-users.d.ts +3 -5
  97. package/components/widgets/label-sets/admin-users.js +6 -10
  98. package/components/widgets/label-sets/builder-modules.js +4 -0
  99. package/components/widgets/label-sets/effects.js +2 -4
  100. package/components/widgets/label-sets/profile.d.ts +13 -16
  101. package/components/widgets/label-sets/profile.js +24 -33
  102. package/components/widgets/label-sets/registration.d.ts +0 -1
  103. package/components/widgets/label-sets/registration.js +0 -2
  104. package/components/widgets/label-sets/revisions.js +2 -0
  105. package/components/widgets/label-sets/search-results.js +2 -4
  106. package/components/widgets/label-sets/signals.js +2 -0
  107. package/components/widgets/label-sets/table.js +9 -0
  108. package/components/widgets/label-types/builder-modules.d.ts +4 -0
  109. package/components/widgets/label-types/builder-modules.js +2 -0
  110. package/components/widgets/label-types/effects.d.ts +3 -2
  111. package/components/widgets/label-types/effects.js +1 -2
  112. package/components/widgets/label-types/revisions.d.ts +2 -0
  113. package/components/widgets/label-types/revisions.js +2 -1
  114. package/components/widgets/label-types/search-results.d.ts +2 -2
  115. package/components/widgets/label-types/search-results.js +1 -2
  116. package/components/widgets/label-types/signals.d.ts +2 -0
  117. package/components/widgets/label-types/signals.js +1 -0
  118. package/components/widgets/label-types/table.d.ts +3 -0
  119. package/components/widgets/label-types/table.js +2 -0
  120. package/components/widgets/server/builder-chrome.d.ts +4 -1
  121. package/components/widgets/server/builder-chrome.js +2 -2
  122. package/components/widgets/shared/markdown-body-client.d.ts +26 -0
  123. package/components/widgets/shared/markdown-body-client.js +31 -1
  124. package/components/widgets/shared/markdown-render.d.ts +10 -2
  125. package/components/widgets/shared/markdown-render.js +35 -13
  126. package/components/widgets/shared/widget-failure-audience.d.ts +7 -0
  127. package/components/widgets/shared/widget-failure-audience.js +21 -0
  128. package/components/widgets/shared/widget-failure-client.js +5 -2
  129. package/components/widgets/shared/widget-failure-notice-client.d.ts +6 -0
  130. package/components/widgets/shared/widget-failure-notice-client.js +10 -0
  131. package/components/widgets/shared/widget-failure-notice.d.ts +6 -0
  132. package/components/widgets/shared/widget-failure-notice.js +17 -0
  133. package/components/widgets/shared/widget-failure-staff.d.ts +3 -0
  134. package/components/widgets/shared/widget-failure-staff.js +18 -0
  135. package/components/widgets/shared/widget-failure.d.ts +9 -6
  136. package/components/widgets/shared/widget-failure.js +0 -9
  137. package/components/widgets/shared/widget-failure.server.d.ts +4 -2
  138. package/components/widgets/shared/widget-failure.server.js +8 -3
  139. package/constants/countries.d.ts +9 -0
  140. package/constants/countries.js +28 -0
  141. package/constants/customer-file.d.ts +34 -0
  142. package/constants/customer-file.js +35 -0
  143. package/constants/record-field-kinds.d.ts +15 -0
  144. package/constants/record-field-kinds.js +13 -0
  145. package/constants/runtime-module-ownership.js +15 -2
  146. package/constants/runtime-render-client-types.d.ts +5 -0
  147. package/constants/runtime-render-client-types.js +5 -0
  148. package/constants/site-address.d.ts +9 -0
  149. package/constants/site-address.js +10 -0
  150. package/constants/table-loading.d.ts +14 -0
  151. package/constants/table-loading.js +14 -0
  152. package/{plugins/runtime-modules/threads/controller/address.js → constants/threads-controller-address.js} +1 -1
  153. package/constants.d.ts +2 -0
  154. package/constants.js +4 -0
  155. package/gateway/form-handler-request.d.ts +22 -0
  156. package/gateway/form-handler-request.js +40 -0
  157. package/gateway/label-set.d.ts +15 -2
  158. package/gateway/label-set.js +60 -22
  159. package/gateway/site-cms-write-validation.js +19 -3
  160. package/gateway/site-form-route.js +11 -2
  161. package/helpers/address-field.d.ts +43 -0
  162. package/helpers/address-field.js +68 -0
  163. package/helpers/announced-action.d.ts +17 -0
  164. package/helpers/announced-action.js +29 -0
  165. package/helpers/cms-dialog.d.ts +5 -20
  166. package/helpers/cms-dialog.js +8 -13
  167. package/helpers/cms-page-catalog.d.ts +10 -0
  168. package/helpers/cms-page-catalog.js +19 -0
  169. package/helpers/cms-preset-nodes.d.ts +4 -4
  170. package/helpers/cms-preset-nodes.js +1 -1
  171. package/helpers/cms-region-keys.d.ts +1 -1
  172. package/helpers/country-names.d.ts +12 -0
  173. package/helpers/country-names.js +14 -0
  174. package/helpers/phi-metadata.d.ts +25 -1
  175. package/helpers/phi-metadata.js +53 -1
  176. package/helpers/phi-site-description.d.ts +11 -0
  177. package/helpers/phi-site-description.js +13 -0
  178. package/helpers/preset-form-check.d.ts +14 -0
  179. package/helpers/preset-form-check.js +12 -0
  180. package/helpers/preset-table-check.d.ts +38 -0
  181. package/helpers/preset-table-check.js +118 -0
  182. package/helpers/preset-text-source-check.d.ts +4 -1
  183. package/helpers/preset-text-source-check.js +6 -1
  184. package/helpers/preset-tree-contract-check.d.ts +3 -2
  185. package/helpers/preset-tree-contract-check.js +30 -5
  186. package/helpers/public-route-claims.d.ts +9 -1
  187. package/helpers/public-route-claims.js +23 -3
  188. package/helpers/record-fields.d.ts +1 -5
  189. package/helpers/record-fields.js +15 -6
  190. package/helpers/record-widget-binding.d.ts +10 -0
  191. package/helpers/record-widget-binding.js +35 -0
  192. package/helpers/record-widget.d.ts +1 -10
  193. package/helpers/record-widget.js +4 -33
  194. package/helpers/route-address-check.d.ts +22 -2
  195. package/helpers/route-address-check.js +29 -8
  196. package/helpers/site-address-row.d.ts +23 -0
  197. package/helpers/site-address-row.js +36 -0
  198. package/helpers/surface-style.d.ts +8 -1
  199. package/helpers/surface-style.js +12 -2
  200. package/helpers/table-widget-binding.d.ts +12 -0
  201. package/helpers/table-widget-binding.js +296 -0
  202. package/helpers/thread-inbox-row.d.ts +20 -0
  203. package/helpers/thread-inbox-row.js +26 -0
  204. package/helpers/translation-format.d.ts +26 -0
  205. package/helpers/translation-format.js +31 -0
  206. package/helpers/tree-widget-binding.d.ts +19 -0
  207. package/helpers/tree-widget-binding.js +72 -0
  208. package/helpers/typed-confirmation.d.ts +9 -0
  209. package/helpers/typed-confirmation.js +13 -0
  210. package/helpers/widget-binding-check.d.ts +22 -0
  211. package/helpers/widget-binding-check.js +91 -0
  212. package/module-labels.d.ts +1 -1
  213. package/module-labels.js +1 -1
  214. package/module-page-check.d.ts +3 -0
  215. package/module-page-check.js +3 -0
  216. package/module-records.d.ts +2 -2
  217. package/module-records.js +1 -0
  218. package/next/area-route.js +34 -1
  219. package/next/root-route.js +4 -4
  220. package/package.json +2 -2
  221. package/plugins/runtime-modules/accounting/customer-file-access.d.ts +11 -0
  222. package/plugins/runtime-modules/accounting/customer-file-access.js +12 -0
  223. package/plugins/runtime-modules/accounting/data-providers.js +1 -1
  224. package/plugins/runtime-modules/accounting/ids.d.ts +14 -0
  225. package/plugins/runtime-modules/accounting/ids.js +34 -0
  226. package/plugins/runtime-modules/accounting/presets.js +32 -5
  227. package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.d.ts +78 -0
  228. package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.js +136 -0
  229. package/plugins/runtime-modules/accounting/trees/accounting-products-label-set.js +2 -2
  230. package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.d.ts +29 -0
  231. package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.js +450 -0
  232. package/plugins/runtime-modules/accounting/trees/phi-default-accounting-products-page-tree.js +4 -0
  233. package/plugins/runtime-modules/app/client-data-providers.d.ts +7 -0
  234. package/plugins/runtime-modules/app/client-data-providers.js +9 -0
  235. package/plugins/runtime-modules/app/data-providers.d.ts +43 -0
  236. package/plugins/runtime-modules/app/data-providers.js +45 -0
  237. package/plugins/runtime-modules/app/definition.d.ts +60 -1
  238. package/plugins/runtime-modules/app/definition.js +2 -0
  239. package/plugins/runtime-modules/app/forms.d.ts +33 -3
  240. package/plugins/runtime-modules/app/forms.js +166 -31
  241. package/plugins/runtime-modules/app/ids.d.ts +8 -0
  242. package/plugins/runtime-modules/app/ids.js +9 -0
  243. package/plugins/runtime-modules/app/module.d.ts +60 -1
  244. package/plugins/runtime-modules/app/services/addresses-collection.d.ts +59 -0
  245. package/plugins/runtime-modules/app/services/addresses-collection.js +105 -0
  246. package/plugins/runtime-modules/app/trees/account-addresses-panel.d.ts +21 -0
  247. package/plugins/runtime-modules/app/trees/account-addresses-panel.js +143 -0
  248. package/plugins/runtime-modules/app/trees/addresses-label-set.d.ts +57 -0
  249. package/plugins/runtime-modules/app/trees/addresses-label-set.js +104 -0
  250. package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.d.ts +1 -2
  251. package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.js +28 -19
  252. package/plugins/runtime-modules/app/trees/profile-label-set.d.ts +1 -2
  253. package/plugins/runtime-modules/app/trees/profile-label-set.js +5 -14
  254. package/plugins/runtime-modules/asset/presets.d.ts +4 -0
  255. package/plugins/runtime-modules/asset/trees/phi-default-admin-media-settings-page-tree.js +5 -0
  256. package/plugins/runtime-modules/asset/trees/phi-default-builder-media-page-tree.js +4 -2
  257. package/plugins/runtime-modules/auth/trees/phi-auth-area-overlay-tree.server.js +4 -2
  258. package/plugins/runtime-modules/auth/trees/phi-default-admin-auth-settings-page-tree.js +2 -2
  259. package/plugins/runtime-modules/auth/widgets/logout/client.d.ts +1 -1
  260. package/plugins/runtime-modules/auth/widgets/logout/client.js +2 -2
  261. package/plugins/runtime-modules/auth/widgets/security/client.d.ts +5 -1
  262. package/plugins/runtime-modules/auth/widgets/security/client.js +12 -10
  263. package/plugins/runtime-modules/avatar/overlay-tree.server.js +1 -1
  264. package/plugins/runtime-modules/blog/presets.d.ts +4 -0
  265. package/plugins/runtime-modules/builder/clients/inspector-config-field.js +16 -6
  266. package/plugins/runtime-modules/builder/clients/inspector-image-field.d.ts +2 -1
  267. package/plugins/runtime-modules/builder/clients/inspector-image-field.js +6 -3
  268. package/plugins/runtime-modules/builder/clients/inspector-section-widget.js +3 -1
  269. package/plugins/runtime-modules/builder/clients/metadata-table-provider-stand-ins.d.ts +23 -0
  270. package/plugins/runtime-modules/builder/clients/metadata-table-provider-stand-ins.js +38 -0
  271. package/plugins/runtime-modules/builder/clients/mode-switch.d.ts +4 -1
  272. package/plugins/runtime-modules/builder/clients/mode-switch.js +2 -15
  273. package/plugins/runtime-modules/builder/clients/pages-workspace.js +2 -0
  274. package/plugins/runtime-modules/builder/clients/runtime-module-authoring-boundary.js +2 -1
  275. package/plugins/runtime-modules/builder/controller/draft-status-controller.js +28 -1
  276. package/plugins/runtime-modules/builder/controller/signal-wiring-controller.js +5 -1
  277. package/plugins/runtime-modules/builder/developer-workspace-types.d.ts +5 -0
  278. package/plugins/runtime-modules/builder/page-presets.server.d.ts +7 -0
  279. package/plugins/runtime-modules/builder/page-presets.server.js +10 -1
  280. package/plugins/runtime-modules/builder/persistence.js +4 -0
  281. package/plugins/runtime-modules/builder/public-route-collisions.js +8 -3
  282. package/plugins/runtime-modules/builder/signal-wiring-options.js +9 -2
  283. package/plugins/runtime-modules/builder/trees/phi-builder-inspector-area-overlay-tree.server.js +8 -1
  284. package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.js +47 -7
  285. package/plugins/runtime-modules/builder/widgets/chrome/config.d.ts +6 -4
  286. package/plugins/runtime-modules/builder/widgets/chrome/config.js +11 -1
  287. package/plugins/runtime-modules/builder/widgets/inspector-header/authoring.d.ts +2 -2
  288. package/plugins/runtime-modules/builder/widgets/inspector-header/plugin.d.ts +2 -2
  289. package/plugins/runtime-modules/builder/widgets/mode-switch/plugin.js +1 -1
  290. package/plugins/runtime-modules/builder/widgets/structure-region/built-in.js +2 -2
  291. package/plugins/runtime-modules/client-manifests/app.js +3 -0
  292. package/plugins/runtime-modules/client-manifests/builder.js +10 -0
  293. package/plugins/runtime-modules/client-manifests/common.js +6 -0
  294. package/plugins/runtime-modules/content-entry-routes.d.ts +4 -0
  295. package/plugins/runtime-modules/contracts.js +31 -1
  296. package/plugins/runtime-modules/core/definition.d.ts +23 -0
  297. package/plugins/runtime-modules/core/form-providers.d.ts +23 -0
  298. package/plugins/runtime-modules/core/messaging/thread-inbox-table.d.ts +0 -17
  299. package/plugins/runtime-modules/core/messaging/thread-inbox-table.js +2 -23
  300. package/plugins/runtime-modules/core/widgets/card/config.d.ts +1 -2
  301. package/plugins/runtime-modules/core/widgets/card/config.js +0 -1
  302. package/plugins/runtime-modules/core/widgets/card/editor.js +1 -1
  303. package/plugins/runtime-modules/core/widgets/collection-view/client.js +5 -2
  304. package/plugins/runtime-modules/core/widgets/collection-view/config.js +8 -0
  305. package/plugins/runtime-modules/core/widgets/collection-view/site-address-binding.d.ts +55 -0
  306. package/plugins/runtime-modules/core/widgets/collection-view/site-address-binding.js +173 -0
  307. package/plugins/runtime-modules/core/widgets/collection-view/site-address-tiles.d.ts +48 -0
  308. package/plugins/runtime-modules/core/widgets/collection-view/site-address-tiles.js +67 -0
  309. package/plugins/runtime-modules/core/widgets/command-toolbar/client.js +3 -0
  310. package/plugins/runtime-modules/core/widgets/command-toolbar/config.d.ts +316 -1
  311. package/plugins/runtime-modules/core/widgets/command-toolbar/config.js +4 -4
  312. package/plugins/runtime-modules/core/widgets/description/config.d.ts +1 -1
  313. package/plugins/runtime-modules/core/widgets/dimension/config.d.ts +1 -1
  314. package/plugins/runtime-modules/core/widgets/entry-list/config.d.ts +1 -1
  315. package/plugins/runtime-modules/core/widgets/float-button/client.js +4 -1
  316. package/plugins/runtime-modules/core/widgets/float-button/config.d.ts +326 -3
  317. package/plugins/runtime-modules/core/widgets/float-button/config.js +5 -2
  318. package/plugins/runtime-modules/core/widgets/form/config.d.ts +1 -1
  319. package/plugins/runtime-modules/core/widgets/form/config.js +14 -1
  320. package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +1 -1
  321. package/plugins/runtime-modules/core/widgets/header-navigation/client.js +1 -1
  322. package/plugins/runtime-modules/core/widgets/length/config.d.ts +1 -1
  323. package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +1 -1
  324. package/plugins/runtime-modules/core/widgets/markdown/plugin.js +20 -7
  325. package/plugins/runtime-modules/core/widgets/markdown/server.d.ts +6 -2
  326. package/plugins/runtime-modules/core/widgets/markdown/server.js +2 -2
  327. package/plugins/runtime-modules/core/widgets/markdown/table-embeds.server.d.ts +12 -0
  328. package/plugins/runtime-modules/core/widgets/markdown/table-embeds.server.js +68 -0
  329. package/plugins/runtime-modules/core/widgets/number-input/config.d.ts +1 -1
  330. package/plugins/runtime-modules/core/widgets/record/client.js +2 -6
  331. package/plugins/runtime-modules/core/widgets/result/config.d.ts +1 -1
  332. package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +1 -1
  333. package/plugins/runtime-modules/core/widgets/simple-text/config.js +1 -1
  334. package/plugins/runtime-modules/core/widgets/simple-text/plugin.js +2 -1
  335. package/plugins/runtime-modules/core/widgets/table/client.js +48 -51
  336. package/plugins/runtime-modules/core/widgets/table/config.d.ts +3 -3
  337. package/plugins/runtime-modules/core/widgets/table/config.js +9 -0
  338. package/plugins/runtime-modules/core/widgets/table/reader-query.d.ts +17 -0
  339. package/plugins/runtime-modules/core/widgets/table/reader-query.js +33 -0
  340. package/plugins/runtime-modules/core/widgets/thread-conversation/client.js +2 -2
  341. package/plugins/runtime-modules/core/widgets/thread-conversation/config.d.ts +6 -2
  342. package/plugins/runtime-modules/core/widgets/thread-conversation/config.js +6 -1
  343. package/plugins/runtime-modules/core/widgets/thread-widget-config.d.ts +10 -0
  344. package/plugins/runtime-modules/core/widgets/thread-widget-config.js +6 -0
  345. package/plugins/runtime-modules/core/widgets/tree/client.js +6 -6
  346. package/plugins/runtime-modules/dashboard/trees/dashboard-cards-page-tree.js +3 -1
  347. package/plugins/runtime-modules/descriptor-compiler.d.ts +19 -3
  348. package/plugins/runtime-modules/descriptor-compiler.js +44 -16
  349. package/plugins/runtime-modules/editor/presets.d.ts +4 -0
  350. package/plugins/runtime-modules/editor/trees/phi-default-editor-releases-page-tree.js +3 -1
  351. package/plugins/runtime-modules/groups/trees/phi-default-admin-groups-page-tree.js +5 -1
  352. package/plugins/runtime-modules/groups/trees/phi-default-app-groups-page-tree.js +5 -1
  353. package/plugins/runtime-modules/localization/presets.d.ts +4 -0
  354. package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.d.ts +2 -0
  355. package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.js +2 -0
  356. package/plugins/runtime-modules/localization/trees/phi-default-admin-locales-page-tree.js +3 -1
  357. package/plugins/runtime-modules/localization/trees/phi-default-editor-translations-page-tree.js +9 -2
  358. package/plugins/runtime-modules/news/presets.d.ts +4 -0
  359. package/plugins/runtime-modules/observability/trees/phi-default-admin-logs-page-tree.js +6 -2
  360. package/plugins/runtime-modules/resolver.js +17 -0
  361. package/plugins/runtime-modules/revisions/controller/binding.d.ts +37 -0
  362. package/plugins/runtime-modules/revisions/controller/binding.js +75 -0
  363. package/plugins/runtime-modules/revisions/controller/client.d.ts +5 -0
  364. package/plugins/runtime-modules/revisions/controller/client.js +86 -60
  365. package/plugins/runtime-modules/revisions/controller/definition.d.ts +5 -0
  366. package/plugins/runtime-modules/revisions/controller/definition.js +10 -0
  367. package/plugins/runtime-modules/revisions/controller/draft-context-target.d.ts +25 -0
  368. package/plugins/runtime-modules/revisions/controller/draft-context-target.js +33 -0
  369. package/plugins/runtime-modules/revisions/forms.js +1 -1
  370. package/plugins/runtime-modules/revisions/page-ids.d.ts +1 -1
  371. package/plugins/runtime-modules/revisions/page-ids.js +4 -1
  372. package/plugins/runtime-modules/revisions/presets.d.ts +4 -0
  373. package/plugins/runtime-modules/revisions/services/options.js +14 -4
  374. package/plugins/runtime-modules/revisions/services/table.js +54 -25
  375. package/plugins/runtime-modules/revisions/trees/phi-default-builder-revisions-page-tree.js +79 -4
  376. package/plugins/runtime-modules/search/widgets/search-results/client.js +4 -2
  377. package/plugins/runtime-modules/theme/controller/runtime.js +14 -2
  378. package/plugins/runtime-modules/theme/presets.d.ts +4 -0
  379. package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +105 -7
  380. package/plugins/runtime-modules/theme/widgets/brand-controls/config.d.ts +3 -2
  381. package/plugins/runtime-modules/theme/widgets/brand-controls/config.js +2 -2
  382. package/plugins/runtime-modules/theme/widgets/brand-controls/plugin.js +19 -7
  383. package/plugins/runtime-modules/threads/client-data-providers.js +10 -0
  384. package/plugins/runtime-modules/threads/controller/client.js +62 -2
  385. package/plugins/runtime-modules/threads/controller/definition.js +49 -1
  386. package/plugins/runtime-modules/threads/data-providers.d.ts +100 -2
  387. package/plugins/runtime-modules/threads/data-providers.js +96 -0
  388. package/plugins/runtime-modules/threads/definition.d.ts +100 -2
  389. package/plugins/runtime-modules/threads/definition.js +1 -1
  390. package/plugins/runtime-modules/threads/ids.d.ts +4 -0
  391. package/plugins/runtime-modules/threads/ids.js +5 -0
  392. package/plugins/runtime-modules/threads/services/customer-file-addresses.d.ts +30 -0
  393. package/plugins/runtime-modules/threads/services/customer-file-addresses.js +59 -0
  394. package/plugins/runtime-modules/threads/services/customer-file-read.d.ts +22 -0
  395. package/plugins/runtime-modules/threads/services/customer-file-read.js +101 -0
  396. package/plugins/runtime-modules/threads/services/customer-file-table.d.ts +126 -0
  397. package/plugins/runtime-modules/threads/services/customer-file-table.js +79 -0
  398. package/plugins/runtime-modules/threads/trees/phi-default-threads-page-tree.js +5 -3
  399. package/plugins/runtime-modules/user-management/client-data-providers.js +5 -0
  400. package/plugins/runtime-modules/user-management/data-providers.d.ts +159 -0
  401. package/plugins/runtime-modules/user-management/data-providers.js +101 -3
  402. package/plugins/runtime-modules/user-management/definition.d.ts +159 -0
  403. package/plugins/runtime-modules/user-management/ids.d.ts +9 -0
  404. package/plugins/runtime-modules/user-management/ids.js +9 -0
  405. package/plugins/runtime-modules/user-management/presets.js +17 -1
  406. package/plugins/runtime-modules/user-management/services/users-access-table.d.ts +378 -0
  407. package/plugins/runtime-modules/user-management/services/users-access-table.js +132 -0
  408. package/plugins/runtime-modules/user-management/trees/admin-users-access-label-set.d.ts +90 -0
  409. package/plugins/runtime-modules/user-management/trees/admin-users-access-label-set.js +122 -0
  410. package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-access-page-tree.d.ts +20 -0
  411. package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-access-page-tree.js +181 -0
  412. package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-page-tree.js +24 -18
  413. package/server-helpers/cms-page-record.d.ts +9 -1
  414. package/server-helpers/cms-page-record.js +11 -1
  415. package/server-helpers/cms-request.js +8 -5
  416. package/server-helpers/link-preview-image.d.ts +30 -0
  417. package/server-helpers/link-preview-image.js +57 -0
  418. package/server-helpers/runtime.js +0 -1
  419. package/server-helpers/search-text.js +3 -0
  420. package/server-helpers.d.ts +1 -1
  421. package/server-helpers.js +1 -1
  422. package/styles/controls.css +4 -2
  423. package/styles/layout.css +7 -0
  424. package/styles/shell.css +30 -6
  425. package/theme/phi-antd-token-resolver.d.ts +8 -0
  426. package/theme/phi-antd-token-resolver.js +10 -0
  427. package/theme/phi-theme-color.d.ts +19 -0
  428. package/theme/phi-theme-color.js +42 -0
  429. package/theme/phi-theme-composition.js +9 -0
  430. package/theme/phi-theme-gradients.js +4 -22
  431. package/theme/phi-theme-inverse-ground.d.ts +39 -0
  432. package/theme/phi-theme-inverse-ground.js +103 -0
  433. package/theme/phi-theme-palette-defaults.d.ts +16 -0
  434. package/theme/phi-theme-palette-defaults.js +103 -0
  435. package/theme/phi-theme-tokens.d.ts +2 -1
  436. package/theme/phi-theme-tokens.js +2 -0
  437. package/types/cms-module-descriptors.d.ts +14 -0
  438. package/types/cms-overlay.d.ts +13 -6
  439. package/types/cms-overlay.js +6 -22
  440. package/types/cms-plugins.d.ts +20 -3
  441. package/types/cms.d.ts +10 -0
  442. package/types/collection-provider.d.ts +27 -0
  443. package/types/collection-signal-values.d.ts +2 -0
  444. package/types/collection-signal-values.js +23 -0
  445. package/types/collection-view-widget.d.ts +9 -0
  446. package/types/core-widget-placements.d.ts +9 -3
  447. package/types/link-preview.d.ts +19 -0
  448. package/types/link-preview.js +19 -0
  449. package/types/record-provider.d.ts +22 -1
  450. package/types/signals.d.ts +2 -0
  451. package/types/signals.js +2 -0
  452. package/types/site-theme.d.ts +27 -0
  453. package/types/table-embed.d.ts +48 -0
  454. package/types/table-embed.js +1 -0
  455. package/types/table-widget.d.ts +29 -1
  456. package/types/table-widget.js +0 -282
  457. package/types/tree-widget.d.ts +0 -1
  458. package/types/tree-widget.js +0 -60
  459. package/types/widget-runtime.d.ts +3 -1
  460. package/types.d.ts +2 -1
  461. package/types.js +1 -1
  462. /package/{plugins/runtime-modules/threads/controller/address.d.ts → constants/threads-controller-address.d.ts} +0 -0
@@ -0,0 +1,65 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { useCallback, useEffect, useMemo, useState } from "react";
4
+ import { PhiAddressControl } from "../controls/phi-address-control";
5
+ import { PhiCheckboxGroupControl } from "../controls/phi-checkbox-group-control";
6
+ import { PhiCountrySelectControl } from "../controls/phi-country-select-control";
7
+ import { PHI_ADDRESS_PARTS, findPhiAddressProblems, readPhiAddressFieldValue, } from "../../helpers/address-field";
8
+ import { readPhiFlagsFieldConfig, readPhiFlagsFieldValue, writePhiFlagsFieldValue } from "./flags-field";
9
+ import { readPhiFormAddressLabels } from "./structured-field-labels";
10
+ /*
11
+ * The fields whose value has a shape of its own -- a country code, an address, a bit-flag number --
12
+ * loaded only where one is rendered.
13
+ */
14
+ export const PhiCountryFormControl = ({ id, field, value, onChange, placeholder, disabled, readOnly, }) => (_jsx(PhiCountrySelectControl, { id: id, value: typeof value === "string" ? value : null, placeholder: placeholder, allowClear: field.config?.allowClear === true, disabled: disabled, readOnly: readOnly, onChange: (code) => onChange?.(code ?? undefined) }));
15
+ function describeProblem(problem, labels) {
16
+ if (problem.kind === "tooLong") {
17
+ return labels.tooLong.replace("%1", labels[problem.part]).replace("%2", String(problem.max));
18
+ }
19
+ switch (problem.part) {
20
+ case "name": return labels.nameRequired;
21
+ case "line1": return labels.line1Required;
22
+ case "city": return labels.cityRequired;
23
+ default: return labels.countryRequired;
24
+ }
25
+ }
26
+ /**
27
+ * One address, `PhisSiteAddressInput`, as one value. Each part is held to what Core takes -- the four
28
+ * required parts, the column widths, a country of the list -- and while one is not, the field holds the
29
+ * Form's submit with the first sentence (`formContext.holdSubmit`); a part says what is wrong with it once
30
+ * it has been left.
31
+ */
32
+ export const PhiAddressFormControl = ({ id, field, value, onChange, labels, disabled, readOnly, formContext, }) => {
33
+ const address = readPhiAddressFieldValue(value);
34
+ const words = useMemo(() => readPhiFormAddressLabels(labels), [labels]);
35
+ const problems = findPhiAddressProblems(address);
36
+ const [left, setLeft] = useState(() => new Set());
37
+ const hold = problems[0] ? describeProblem(problems[0], words) : null;
38
+ const holdSubmit = formContext?.holdSubmit;
39
+ /*
40
+ * A refused submit leaves every part, so each wrong part says its own sentence under itself. Written
41
+ * under the whole field as well, the first sentence stood a second time below the country.
42
+ */
43
+ const showEveryPart = useCallback(() => setLeft(new Set(PHI_ADDRESS_PARTS)), [setLeft]);
44
+ useEffect(() => {
45
+ holdSubmit?.(field.key, hold, showEveryPart);
46
+ }, [field.key, hold, holdSubmit, showEveryPart]);
47
+ useEffect(() => () => holdSubmit?.(field.key, null), [field.key, holdSubmit]);
48
+ const errors = {};
49
+ for (const problem of problems) {
50
+ if (left.has(problem.part) && !errors[problem.part])
51
+ errors[problem.part] = describeProblem(problem, words);
52
+ }
53
+ return (_jsx(PhiAddressControl, { id: id, value: address, labels: Object.fromEntries(PHI_ADDRESS_PARTS.map((part) => [part, words[part]])), errors: errors, disabled: disabled, readOnly: readOnly, onChange: (next) => onChange?.(next), onPartBlur: (part) => setLeft((current) => (current.has(part) ? current : new Set([...current, part]))) }));
54
+ };
55
+ /** Several yes-or-no answers as one bit-flag number (`flags-field.ts`). */
56
+ export const PhiFlagsFormControl = ({ field, value, onChange, options, disabled, readOnly, }) => {
57
+ const offered = useMemo(() => options ?? [], [options]);
58
+ const config = useMemo(() => readPhiFlagsFieldConfig(field.config, offered), [field.config, offered]);
59
+ const mask = readPhiFlagsFieldValue(value);
60
+ const checked = offered.filter((option) => (mask & (config.bits.get(option.value) ?? 0)) !== 0).map((option) => option.value);
61
+ return (_jsx(PhiCheckboxGroupControl, { vertical: true, value: checked, disabled: disabled, readOnly: readOnly, options: offered.map((option) => {
62
+ const needed = config.requires.get(config.bits.get(option.value) ?? 0);
63
+ return needed !== undefined && (mask & needed) === 0 ? { ...option, disabled: true } : option;
64
+ }), onChange: (next) => onChange?.(writePhiFlagsFieldValue(config, mask, next)) }));
65
+ };
@@ -71,6 +71,7 @@ export declare function getPhiMediaSettingsPageLabels(options: PhiGlobalTranslat
71
71
  used: string;
72
72
  search: string;
73
73
  empty: string;
74
+ footer: string;
74
75
  };
75
76
  submitLabel: string;
76
77
  }>;
@@ -64,6 +64,7 @@ const PHI_MEDIA_SETTINGS_PAGE_LABEL_SET = definePhiLabelSet({
64
64
  spaces_used: "Used",
65
65
  spaces_search: "Search",
66
66
  spaces_empty: definePhiMessageLabel("No Space of this kind exists yet."),
67
+ spaces_footer: "%1 Spaces",
67
68
  },
68
69
  });
69
70
  export async function getPhiMediaSettingsPageLabels(options) {
@@ -139,6 +140,7 @@ export async function getPhiMediaSettingsPageLabels(options) {
139
140
  used: labels.spaces_used,
140
141
  search: labels.spaces_search,
141
142
  empty: labels.spaces_empty,
143
+ footer: labels.spaces_footer,
142
144
  },
143
145
  submitLabel: labels.submit_label,
144
146
  };
@@ -3,6 +3,7 @@ import { type PhisMediaSourceItem } from "@phis/contracts/media-source";
3
3
  import type { PhiMediaAssetTile } from "../../types/media";
4
4
  import type { PhiCmsMediaPickerWidgetConfig } from "../../types/media";
5
5
  import type { PhiSearchWidgetLabels } from "../widgets/label-types/search";
6
+ import type { PhiPickerPlacement } from "../controls/phi-picker-control-contract";
6
7
  import type { PhiAssetWidgetLabels } from "./media-widget-labels";
7
8
  /**
8
9
  * Where a file uploaded in the picker goes, as the binding hands it to the host's upload surface
@@ -48,6 +49,12 @@ export type PhiMediaPickerBindingProps = {
48
49
  onDiscard?: (originalAssetId: number | null) => void;
49
50
  onPopupOpenChange?: (open: boolean) => void;
50
51
  trigger?: ReactNode;
52
+ /**
53
+ * Where the picker opens beside its trigger, which only the host can know: the Builder Inspector, a
54
+ * panel at the window's right, opens it to the left over the canvas; absent, the Control's default,
55
+ * centred below (`PhiMediaPickerControlProps.placement`).
56
+ */
57
+ placement?: PhiPickerPlacement;
51
58
  getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
52
59
  popupRootClassName?: string;
53
60
  /**
@@ -80,7 +87,40 @@ export type PhiMediaPickerBindingProps = {
80
87
  complete: boolean;
81
88
  }>) | null;
82
89
  };
83
- export declare function usePhiMediaPickerBinding({ config, labels, searchLabels, value: controlledValue, onAssetSelect, onAssetClear, open: controlledOpen, onOpenChange, onCommit, onDiscard, onPopupOpenChange, trigger, getPopupContainer, popupRootClassName, siteSpaceOnly, isAssetSelectable, upload, openOnFolder, }: PhiMediaPickerBindingProps): {
90
+ export declare function usePhiMediaPickerBinding({ config, labels, searchLabels, value: controlledValue, onAssetSelect, onAssetClear, open: controlledOpen, onOpenChange, onCommit, onDiscard, onPopupOpenChange, trigger, placement, getPopupContainer, popupRootClassName, siteSpaceOnly, isAssetSelectable, upload, openOnFolder, }: PhiMediaPickerBindingProps): {
91
+ labels: {
92
+ trigger: string;
93
+ title: string;
94
+ search: string;
95
+ folder: string;
96
+ space: string;
97
+ empty: string;
98
+ sourceEmpty: string;
99
+ clear: string;
100
+ reload: string;
101
+ tileSize: string;
102
+ source: string;
103
+ importing: string;
104
+ loadMore: string;
105
+ upload: string;
106
+ };
107
+ getPopupContainer: ((triggerNode: HTMLElement) => HTMLElement) | undefined;
108
+ popupRootClassName: string | undefined;
109
+ isAssetSelectable: ((asset: PhiMediaAssetTile) => boolean) | undefined;
110
+ onOpenChange: (next: boolean) => void;
111
+ onCommit: ((assetId: number | null, originalAssetId: number | null) => void) | undefined;
112
+ onDiscard: ((originalAssetId: number | null) => void) | undefined;
113
+ onQueryChange: (nextQuery: string) => void;
114
+ onSpaceChange: (nextSpace: string) => void;
115
+ onSourceChange: (nextSource: string) => void;
116
+ onSourceItemSelect: (item: PhisMediaSourceItem) => Promise<PhiMediaAssetTile | null>;
117
+ onSourceLoadMore: () => void;
118
+ onFolderChange: (nextFolder: string) => void;
119
+ onPageChange: (nextPage: number, nextPageSize: number) => void;
120
+ onMinColumnWidthChange: import("react").Dispatch<import("react").SetStateAction<number>>;
121
+ onReload: () => void;
122
+ onChange: (assetId: number | null) => void;
123
+ placement?: "top" | "right" | "bottom" | "left" | "topLeft" | "topRight" | "bottomRight" | "bottomLeft" | "auto" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | undefined;
84
124
  open: boolean;
85
125
  value: number | null;
86
126
  assets: PhiMediaAssetTile[];
@@ -120,37 +160,5 @@ export declare function usePhiMediaPickerBinding({ config, labels, searchLabels,
120
160
  showFolderFilter: boolean;
121
161
  showPagination: boolean;
122
162
  trigger: ReactNode;
123
- labels: {
124
- trigger: string;
125
- title: string;
126
- search: string;
127
- folder: string;
128
- space: string;
129
- empty: string;
130
- sourceEmpty: string;
131
- clear: string;
132
- reload: string;
133
- tileSize: string;
134
- source: string;
135
- importing: string;
136
- loadMore: string;
137
- upload: string;
138
- };
139
- getPopupContainer: ((triggerNode: HTMLElement) => HTMLElement) | undefined;
140
- popupRootClassName: string | undefined;
141
- isAssetSelectable: ((asset: PhiMediaAssetTile) => boolean) | undefined;
142
- onOpenChange: (next: boolean) => void;
143
- onCommit: ((assetId: number | null, originalAssetId: number | null) => void) | undefined;
144
- onDiscard: ((originalAssetId: number | null) => void) | undefined;
145
- onQueryChange: (nextQuery: string) => void;
146
- onSpaceChange: (nextSpace: string) => void;
147
- onSourceChange: (nextSource: string) => void;
148
- onSourceItemSelect: (item: PhisMediaSourceItem) => Promise<PhiMediaAssetTile | null>;
149
- onSourceLoadMore: () => void;
150
- onFolderChange: (nextFolder: string) => void;
151
- onPageChange: (nextPage: number, nextPageSize: number) => void;
152
- onMinColumnWidthChange: import("react").Dispatch<import("react").SetStateAction<number>>;
153
- onReload: () => void;
154
- onChange: (assetId: number | null) => void;
155
163
  };
156
164
  export declare function PhiMediaPickerBinding(props: PhiMediaPickerBindingProps): import("react").JSX.Element;
@@ -17,7 +17,7 @@ import { buildPhiMediaSpaceOptions, usePhiMediaSpaceSelectionAllowed, } from "./
17
17
  import { isPhiRecord } from "../../helpers/is-record";
18
18
  import { readPhiMediaSourceImportErrorMessage, usePhiMediaSources, } from "./phi-media-sources";
19
19
  import { usePhiCollectionProviderAction } from "../widgets/client/shared/phi-collection-provider";
20
- export function usePhiMediaPickerBinding({ config, labels, searchLabels, value: controlledValue, onAssetSelect, onAssetClear, open: controlledOpen, onOpenChange, onCommit, onDiscard, onPopupOpenChange, trigger, getPopupContainer, popupRootClassName, siteSpaceOnly = false, isAssetSelectable, upload, openOnFolder, }) {
20
+ export function usePhiMediaPickerBinding({ config, labels, searchLabels, value: controlledValue, onAssetSelect, onAssetClear, open: controlledOpen, onOpenChange, onCommit, onDiscard, onPopupOpenChange, trigger, placement, getPopupContainer, popupRootClassName, siteSpaceOnly = false, isAssetSelectable, upload, openOnFolder, }) {
21
21
  const [localOpen, setLocalOpen] = useState(false);
22
22
  const [localValue, setLocalValue] = useState(controlledValue ?? null);
23
23
  const [searchQuery, setSearchQuery] = useState("");
@@ -445,6 +445,7 @@ export function usePhiMediaPickerBinding({ config, labels, searchLabels, value:
445
445
  showFolderFilter: config?.showFolderFilter ?? true,
446
446
  showPagination: config?.showPagination ?? true,
447
447
  trigger,
448
+ ...(placement ? { placement } : {}),
448
449
  labels: { trigger: labels.picker.triggerLabel, title: labels.picker.popoverTitle, search: labels.tool.searchPlaceholder ?? searchLabels.placeholder, folder: labels.tool.folderLabel, space: labels.space.label, empty: bindingError ?? (loadFailed ? labels.picker.loadFailedDescription : labels.picker.emptyDescription), sourceEmpty: sourceFailed ? labels.picker.sourceFailedText : labels.picker.emptyDescription, clear: labels.picker.clearLabel, reload: labels.tool.reloadLabel, tileSize: labels.picker.tileSizeLabel, source: labels.picker.sourceLabel, importing: labels.picker.importingLabel, loadMore: labels.picker.loadMoreLabel, upload: labels.upload.uploadToggleLabel },
449
450
  getPopupContainer,
450
451
  popupRootClassName,
@@ -20,6 +20,39 @@ export declare function usePhiMediaLibraryAddPicker({ mediaType, labels, folderP
20
20
  isAssetSelectable?: (asset: PhiMediaAssetTile) => boolean;
21
21
  onAssetSelect: (asset: PhiMediaAssetTile) => void;
22
22
  }): {
23
+ labels: {
24
+ trigger: string;
25
+ title: string;
26
+ search: string;
27
+ folder: string;
28
+ space: string;
29
+ empty: string;
30
+ sourceEmpty: string;
31
+ clear: string;
32
+ reload: string;
33
+ tileSize: string;
34
+ source: string;
35
+ importing: string;
36
+ loadMore: string;
37
+ upload: string;
38
+ };
39
+ getPopupContainer: ((triggerNode: HTMLElement) => HTMLElement) | undefined;
40
+ popupRootClassName: string | undefined;
41
+ isAssetSelectable: ((asset: PhiMediaAssetTile) => boolean) | undefined;
42
+ onOpenChange: (next: boolean) => void;
43
+ onCommit: ((assetId: number | null, originalAssetId: number | null) => void) | undefined;
44
+ onDiscard: ((originalAssetId: number | null) => void) | undefined;
45
+ onQueryChange: (nextQuery: string) => void;
46
+ onSpaceChange: (nextSpace: string) => void;
47
+ onSourceChange: (nextSource: string) => void;
48
+ onSourceItemSelect: (item: import("@phis/contracts/media-source").PhisMediaSourceItem) => Promise<PhiMediaAssetTile | null>;
49
+ onSourceLoadMore: () => void;
50
+ onFolderChange: (nextFolder: string) => void;
51
+ onPageChange: (nextPage: number, nextPageSize: number) => void;
52
+ onMinColumnWidthChange: import("react").Dispatch<import("react").SetStateAction<number>>;
53
+ onReload: () => void;
54
+ onChange: (assetId: number | null) => void;
55
+ placement?: "top" | "right" | "bottom" | "left" | "topLeft" | "topRight" | "bottomRight" | "bottomLeft" | "auto" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | undefined;
23
56
  open: boolean;
24
57
  value: number | null;
25
58
  assets: PhiMediaAssetTile[];
@@ -59,36 +92,4 @@ export declare function usePhiMediaLibraryAddPicker({ mediaType, labels, folderP
59
92
  showFolderFilter: boolean;
60
93
  showPagination: boolean;
61
94
  trigger: import("react").ReactNode;
62
- labels: {
63
- trigger: string;
64
- title: string;
65
- search: string;
66
- folder: string;
67
- space: string;
68
- empty: string;
69
- sourceEmpty: string;
70
- clear: string;
71
- reload: string;
72
- tileSize: string;
73
- source: string;
74
- importing: string;
75
- loadMore: string;
76
- upload: string;
77
- };
78
- getPopupContainer: ((triggerNode: HTMLElement) => HTMLElement) | undefined;
79
- popupRootClassName: string | undefined;
80
- isAssetSelectable: ((asset: PhiMediaAssetTile) => boolean) | undefined;
81
- onOpenChange: (next: boolean) => void;
82
- onCommit: ((assetId: number | null, originalAssetId: number | null) => void) | undefined;
83
- onDiscard: ((originalAssetId: number | null) => void) | undefined;
84
- onQueryChange: (nextQuery: string) => void;
85
- onSpaceChange: (nextSpace: string) => void;
86
- onSourceChange: (nextSource: string) => void;
87
- onSourceItemSelect: (item: import("@phis/contracts/media-source").PhisMediaSourceItem) => Promise<PhiMediaAssetTile | null>;
88
- onSourceLoadMore: () => void;
89
- onFolderChange: (nextFolder: string) => void;
90
- onPageChange: (nextPage: number, nextPageSize: number) => void;
91
- onMinColumnWidthChange: import("react").Dispatch<import("react").SetStateAction<number>>;
92
- onReload: () => void;
93
- onChange: (assetId: number | null) => void;
94
95
  };
@@ -6,8 +6,8 @@ import { parsePhiCmsOverlayConfig, resolvePhiCmsOverlayBehaviour, } from "../../
6
6
  import { readPhiControlSize } from "../../types/control";
7
7
  import { readPhiDimensionValue } from "../../types/dimension";
8
8
  import { resolvePhiCmsContainerSurface } from "../../helpers/cms-container-chrome";
9
- import { PHI_SIGNAL_VALUE_SCHEMAS, createPhiSignalAddress, findPhiSignalRoutesByCapabilityId, } from "../../types/signals";
10
- import { readPhiTableActionSignalValue } from "../../types/table-signal-values";
9
+ import { createPhiSignalAddress, findPhiSignalRoutesByCapabilityId, } from "../../types/signals";
10
+ import { readPhiAnnouncedAction } from "../../helpers/announced-action";
11
11
  import { emitPhiSignalCapability, usePhiSignalEmitter, PhiSignalIdentityProvider, } from "../runtime/runtime-signal-identity";
12
12
  import { usePhiSignalListener } from "../runtime/runtime-signal-bus";
13
13
  import { registerPhiSignalInstance } from "../runtime/runtime-signal-registry";
@@ -26,22 +26,24 @@ function renderOverlayZonesFailure(failure) {
26
26
  /** Stands where the body will be while the zones are on their way, so the shell opens at once. */
27
27
  const PHI_OVERLAY_ZONES_PENDING = (_jsx("div", { "aria-busy": "true", style: { minBlockSize: "calc(var(--phi-control-height) * 3)" } }));
28
28
  /**
29
- * Whether an `open` carried on a Table's action channel is meant for this Overlay.
29
+ * Whether an `open` carried on an action channel is meant for this Overlay.
30
30
  *
31
- * A Table announces every action on one channel and names the action in the message, so an Overlay
32
- * subscribed to it hears `test` and `delete` as loudly as the one it is for. `openActionKey` is the
33
- * filter, and it is the same field the Form and Record Widgets read for the same reason.
31
+ * A Table announces every action on one channel and names the action in the message, and so does a
32
+ * Collection View (`collection-action`), so an Overlay subscribed to either hears `test` and `delete` as
33
+ * loudly as the one it is for. `openActionKey` is the filter, and it is the same field the Form and
34
+ * Record Widgets read for the same reason.
34
35
  *
35
36
  * Every other `open` passes untouched: a `dialog` route carries no value and has nothing to match on.
36
- * A Table-shaped `open` without a key opens for nothing rather than for everything -- the quiet failure
37
+ * An action-shaped `open` without a key opens for nothing rather than for everything -- the quiet failure
37
38
  * is a dialog that will not come up, not one that comes up whenever a row is deleted.
38
39
  */
39
40
  function matchesOpenAction(signal, route, openActionKey) {
40
- if (route.valueSchema !== PHI_SIGNAL_VALUE_SCHEMAS.tableAction)
41
+ const announced = readPhiAnnouncedAction(route.valueSchema, signal.value);
42
+ if (announced === undefined)
41
43
  return true;
42
44
  if (!openActionKey)
43
45
  return false;
44
- return readPhiTableActionSignalValue(signal.value)?.actionKey === openActionKey;
46
+ return announced?.actionKey === openActionKey;
45
47
  }
46
48
  function matchesRoute(signal, route) {
47
49
  return route.receiver === signal.receiver &&
@@ -279,7 +281,7 @@ export function PhiOverlayContainerClient({ overlayId, overlayType, config: rawC
279
281
  */
280
282
  const surfaceStyle = { ...resolvePhiCmsContainerSurface(config).style, padding: 0 };
281
283
  if (overlayType === "drawer") {
282
- return (_jsxs(_Fragment, { children: [zoneControllers, _jsx(PhiDrawerControl, { open: open, title: runtimeTitle, header: renderZone(zones?.header), body: renderZone(zones?.body), footer: renderZone(zones?.footer), closable: behaviour.closable, keyboard: behaviour.keyboard, mask: behaviour.mask, mountPolicy: config.mountPolicy, placement: config.placement, size: config.size, maxSize: config.maxSize, resizable: behaviour.resizable, push: behaviour.push, containerStyle: surfaceStyle, onDismiss: requestClose, panelRef: panelRef })] }));
284
+ return (_jsxs(_Fragment, { children: [zoneControllers, _jsx(PhiDrawerControl, { open: open, title: runtimeTitle, header: renderZone(zones?.header), body: renderZone(zones?.body), footer: renderZone(zones?.footer), closable: behaviour.closable, keyboard: behaviour.keyboard, mask: behaviour.mask, mountPolicy: config.mountPolicy, placement: config.placement, size: config.size, minSize: config.minSize, maxSize: config.maxSize, resizable: behaviour.resizable, push: behaviour.push, containerStyle: surfaceStyle, onDismiss: requestClose, panelRef: panelRef })] }));
283
285
  }
284
- return (_jsxs(_Fragment, { children: [zoneControllers, _jsx(PhiModalControl, { open: open, title: runtimeTitle, header: renderZone(zones?.header), body: renderZone(zones?.body == null ? null : _jsx(PhiDialogBodyProvider, { children: zones.body })), footer: renderZone(zones?.footer), closable: behaviour.closable, keyboard: behaviour.keyboard, mask: behaviour.mask, mountPolicy: config.mountPolicy, centered: behaviour.centered, controlSize: runtimeControlSize ?? config.controlSize, size: runtimeSize, width: config.width, containerStyle: surfaceStyle, onDismiss: requestClose, panelRef: panelRef })] }));
286
+ return (_jsxs(_Fragment, { children: [zoneControllers, _jsx(PhiModalControl, { open: open, title: runtimeTitle, header: renderZone(zones?.header), body: renderZone(zones?.body == null ? null : _jsx(PhiDialogBodyProvider, { children: zones.body })), footer: renderZone(zones?.footer), closable: behaviour.closable, keyboard: behaviour.keyboard, mask: behaviour.mask, mountPolicy: config.mountPolicy, centered: behaviour.centered, controlSize: runtimeControlSize ?? config.controlSize, size: config.size, minSize: config.minSize, maxSize: config.maxSize, toldSize: runtimeSize, containerStyle: surfaceStyle, onDismiss: requestClose, panelRef: panelRef })] }));
285
287
  }
@@ -7,7 +7,7 @@ import { resolveRenderableBlockEffectsAttributes, resolveRenderableBlockEffectsS
7
7
  import { resolvePhiShellRegionChrome, resolvePhiShellRegionGroundStyle, resolvePhiShellRegionTypography, resolvePhiShellRegionZIndex, resolvePhiShellSiderCollapsedWidth, resolvePhiShellSiderWidth, } from "../../helpers/shell-region-style";
8
8
  import { PhiCmsFlags } from "../../constants/phi-cms";
9
9
  import { resolvePhiCmsBorderSource } from "../../types/cms-border-source";
10
- import { PHI_SURFACE_TONE_GROUND, phiSurfaceTakesToneGround, } from "../../helpers/surface-style";
10
+ import { resolvePhiSurfaceToneGround, phiSurfaceTakesToneGround, } from "../../helpers/surface-style";
11
11
  import { resolvePhiRenderableBlockGeometry } from "../../types/renderable-block-geometry";
12
12
  import { createPhiSignalAddress } from "../../types/signals";
13
13
  import { readPhiCmsRegionReveal } from "../../helpers/region-page-scope";
@@ -280,7 +280,7 @@ export function resolvePhiCmsRegionShell({ regionKey, config, shellTheme, paint,
280
280
  : toneGround
281
281
  ? {
282
282
  ...(surfaceBackground ? resolvePhiBackgroundWidgetStyle(surfaceBackground) : {}),
283
- backgroundColor: PHI_SURFACE_TONE_GROUND,
283
+ backgroundColor: resolvePhiSurfaceToneGround(surface?.tone),
284
284
  }
285
285
  : backgroundConfig == null || ground != null
286
286
  ? null
@@ -1,8 +1,8 @@
1
- import { PHI_TEXT_SOURCE_PRESET } from "../../../helpers/text-source";
1
+ import { PHI_TEXT_SOURCE_PRESET, PHI_TEXT_SOURCE_SITE } from "../../../helpers/text-source";
2
2
  import { PHI_CMS_DEFAULT_SLOT_INDEX, PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS, } from "../../../constants/cms-layout-types";
3
3
  import { PHI_CORE_RUNTIME_DATA_PROVIDER_KEYS } from "../../../constants/core-data-provider-keys";
4
4
  import { canPhiViewerAccess, PHI_VIEWER_ACCESS_PUBLISHING } from "../../../types/access";
5
- import { PhiCmsPageType } from "../../../constants/phi-cms";
5
+ import { PhiCmsFlags, PhiCmsPageType } from "../../../constants/phi-cms";
6
6
  import { createPhiCmsPresetNodes } from "../../../helpers/cms-preset-nodes";
7
7
  import { readPhiServerApiCredentials } from "../../../helpers/phis-server-credentials";
8
8
  import { createPhiPresetCmsInstanceIdMap } from "../../../types/cms-instance-id";
@@ -90,7 +90,7 @@ function buildEntryDialogNodes(nodes, input) {
90
90
  config: {
91
91
  title: input.title,
92
92
  // Every Form of an entry is one column (helpers/cms-dialog.ts).
93
- width: PHI_DIALOG_WIDTH_SINGLE_COLUMN,
93
+ size: { width: PHI_DIALOG_WIDTH_SINGLE_COLUMN },
94
94
  mountPolicy: "remount",
95
95
  /*
96
96
  * `immediate`: there is nobody to ask. `request` exists so a Controller can refuse while a save
@@ -141,9 +141,11 @@ function buildEntryDialogNodes(nodes, input) {
141
141
  typeKey: "form",
142
142
  slotIndex: PHI_CMS_DEFAULT_SLOT_INDEX,
143
143
  sortOrder: 10,
144
+ ...(input.formConfigWords === "label-set" ? { flags: PhiCmsFlags.NoTranslate } : {}),
144
145
  label: `${input.routePrefix} ${input.key} form`,
145
146
  config: {
146
147
  formId: input.formId,
148
+ ...(input.formConfigWords === "site" ? { textSource: PHI_TEXT_SOURCE_SITE } : {}),
147
149
  /*
148
150
  * The Table's own resource, so the Form reads the row that was pressed rather than asking Core a
149
151
  * second time, and `openActionKey` decides which action it reads for. A Form with no source has
@@ -315,6 +317,7 @@ export async function buildPhiContentEntryEditorPageTree({ page, runtime, kind,
315
317
  openActionKey: "new",
316
318
  bindsRecord: false,
317
319
  formConfig: entryFormConfig,
320
+ formConfigWords: "site",
318
321
  saveLabel: widgetLabels.form.save,
319
322
  cancelLabel: widgetLabels.form.cancel,
320
323
  ids: {
@@ -333,6 +336,7 @@ export async function buildPhiContentEntryEditorPageTree({ page, runtime, kind,
333
336
  openActionKey: "edit",
334
337
  bindsRecord: true,
335
338
  formConfig: entryFormConfig,
339
+ formConfigWords: "site",
336
340
  saveLabel: widgetLabels.form.save,
337
341
  cancelLabel: widgetLabels.form.cancel,
338
342
  ids: {
@@ -386,6 +390,8 @@ export async function buildPhiContentEntryEditorPageTree({ page, runtime, kind,
386
390
  typeKey: "table",
387
391
  slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[1].slotIndex,
388
392
  sortOrder: 10,
393
+ // The kind's Label Set, translated already.
394
+ flags: PhiCmsFlags.NoTranslate,
389
395
  label: kindLabels.widgetLabel,
390
396
  config: {
391
397
  source,
@@ -620,6 +626,7 @@ function buildPublisherParts({ nodes, ids, kind, routePrefix, entryShared, widge
620
626
  [PHI_CONTENT_ENTRY_CURATION_NONE_CONFIG_KEYS.author]: widgetLabels.curation.authorNone,
621
627
  [PHI_CONTENT_ENTRY_CURATION_NONE_CONFIG_KEYS.category]: widgetLabels.curation.categoryNone,
622
628
  },
629
+ formConfigWords: "label-set",
623
630
  saveLabel: widgetLabels.form.save,
624
631
  cancelLabel: widgetLabels.form.cancel,
625
632
  ids: {
@@ -670,6 +677,8 @@ function buildPublisherParts({ nodes, ids, kind, routePrefix, entryShared, widge
670
677
  typeKey: "table",
671
678
  slotIndex: PHI_CMS_SEQUENTIAL_LAYOUT_SLOTS[2].slotIndex,
672
679
  sortOrder: 20,
680
+ // The kind's Label Set, translated already.
681
+ flags: PhiCmsFlags.NoTranslate,
673
682
  label: labels.widgetLabel,
674
683
  config: {
675
684
  source: categoriesSource,
@@ -1,7 +1,9 @@
1
1
  import type { PhiCmsPageNode, PhiResolvedCmsPageTree } from "../../../types/cms";
2
2
  import type { PhiRuntimeModuleId } from "../../../types/cms-module-descriptors";
3
+ import type { PhiRenderableBlockSize } from "../../../types/renderable-block";
3
4
  import type { PhiFormWidgetPlacement, PhiWidgetPlacementSignalRoutes } from "../../../types/core-widget-placements";
4
5
  import type { PhiFormId } from "../../../types/form-id";
6
+ import { PHI_SIGNAL_VALUE_SCHEMAS } from "../../../types/signals";
5
7
  export type PhiSettingsPageShellWidgetSection = {
6
8
  kind?: "widget";
7
9
  /** Preset-locally unique node key for the section's Widget instance id. */
@@ -103,6 +105,12 @@ export type PhiSettingsPageShellOverlay = {
103
105
  * derives from `nodeKey`, which the caller derives the same way -- the preset identity is shared.
104
106
  */
105
107
  openActionKey: string;
108
+ /**
109
+ * Who announces that action: a Table (`tableAction`, the default) or a Collection View
110
+ * (`collectionAction`, an item's or the toolbar's action). The Overlay listens under that schema and
111
+ * filters by `openActionKey` either way.
112
+ */
113
+ openValueSchema?: typeof PHI_SIGNAL_VALUE_SCHEMAS.tableAction | typeof PHI_SIGNAL_VALUE_SCHEMAS.collectionAction;
106
114
  formId: PhiFormId;
107
115
  label: string;
108
116
  formConfig?: Record<string, unknown>;
@@ -117,8 +125,11 @@ export type PhiSettingsPageShellOverlay = {
117
125
  */
118
126
  submitLabel?: string;
119
127
  cancelLabel?: string;
120
- /** Responsive Modal width, for a Form that needs more or less than the Modal's own default. */
121
- width?: Record<string, unknown> | number | string;
128
+ /**
129
+ * The Modal's `size`, for a Form that needs more or less than the Modal's own default: a block's pair,
130
+ * a dialog's width as `{ width: PHI_DIALOG_WIDTH_SINGLE_COLUMN }` (OVERLAYS.md, "Presentation config").
131
+ */
132
+ size?: PhiRenderableBlockSize;
122
133
  };
123
134
  /**
124
135
  * One Collapsible panel of a Settings page: the panel title becomes the Collapsible slot title, the
@@ -369,7 +369,7 @@ export function buildPhiSettingsPageShellTree({ page, ownerModuleId, presetKey,
369
369
  label: overlay.title,
370
370
  config: {
371
371
  title: overlay.title,
372
- ...(overlay.width === undefined ? {} : { width: overlay.width }),
372
+ ...(overlay.size === undefined ? {} : { size: overlay.size }),
373
373
  /*
374
374
  * `remount` rather than `lazy-keep`: a dialog that creates a record and one that edits a row
375
375
  * both start from what they were given, and a body kept from the last time would open showing
@@ -385,8 +385,8 @@ export function buildPhiSettingsPageShellTree({ page, ownerModuleId, presetKey,
385
385
  signalRoutes: {
386
386
  listens: [
387
387
  /*
388
- * The Table's own action channel, filtered by `openActionKey`. Without the filter this
389
- * Overlay would open for every action the Table announces, delete included.
388
+ * The Table's own action channel, or the Collection View's, filtered by `openActionKey`.
389
+ * Without the filter this Overlay would open for every action announced, delete included.
390
390
  */
391
391
  {
392
392
  routeKey: `${overlay.nodeKey}-open`,
@@ -395,7 +395,7 @@ export function buildPhiSettingsPageShellTree({ page, ownerModuleId, presetKey,
395
395
  channel: "action",
396
396
  action: "activate",
397
397
  valueType: "json",
398
- valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.tableAction,
398
+ valueSchema: overlay.openValueSchema ?? PHI_SIGNAL_VALUE_SCHEMAS.tableAction,
399
399
  receiver: createPhiSignalAddress("cms", overlayIds[overlay.nodeKey]),
400
400
  },
401
401
  {
@@ -8,6 +8,7 @@ import { applyPhiButtonShadowComponentTokens } from "../../theme/phi-button-shad
8
8
  import { buildPhiThemeGradientTokens, readPhiThemeGradientKey } from "../../theme/phi-theme-gradients";
9
9
  import { buildPhiThemeLinkTokens } from "../../theme/phi-link-mark";
10
10
  import { buildPhiSurfaceShadowTokens } from "../../theme/phi-surface-shadow";
11
+ import { buildPhiThemeInverseGroundTokens } from "../../theme/phi-theme-inverse-ground";
11
12
  import { buildPhiThemeCustomColorTokens } from "../../theme/phi-theme-palette";
12
13
  import { applyPhiControlShapeComponentTokens, applyPhiSurfaceShapeComponentTokens, resolvePhiControlShape, } from "../../theme/phi-control-shape";
13
14
  const PHI_DEFAULT_DARK_NAV_BACKGROUND = "#001529";
@@ -100,6 +101,8 @@ export function resolvePhiRootTheme({ siteTheme, mode, fonts, presets, }) {
100
101
  }),
101
102
  ...buildPhiThemeLinkTokens(siteTheme?.links),
102
103
  ...buildPhiSurfaceShadowTokens(siteTheme?.shadows, mode),
104
+ // What an inverse box stands on in this mode: the Theme's stated colour, else this mode's container ground.
105
+ ...buildPhiThemeInverseGroundTokens(siteTheme?.root?.inverse, mode, effectiveThemeTokens),
103
106
  };
104
107
  return {
105
108
  mode,
@@ -127,15 +127,8 @@ export type PhiAntdIconPresentation = {
127
127
  ariaLabel?: string;
128
128
  twoToneColor?: string;
129
129
  };
130
- /**
131
- * The names `PhiIcon` resolves to an Ant Design icon, bare or after `antd:`.
132
- *
133
- * The navigation and management names (`dashboard`, `team`, `translation`, ...) used to sit in a second,
134
- * separately loaded registry; with every icon its own chunk there is nothing left to keep apart.
135
- */
136
- export declare const PHI_ANTD_ICON_NAMES: Readonly<Record<string, PhiAntdIconKey>>;
130
+ export { PHI_ANTD_ICON_NAMES } from "./phi-icon-names";
137
131
  export declare function PhiAntdIcon({ icon, size, style, className, title, ariaLabel, twoToneColor, }: {
138
132
  icon: PhiAntdIconKey;
139
133
  size?: number | string;
140
134
  } & PhiAntdIconPresentation): import("react").JSX.Element;
141
- export {};