@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
@@ -2,7 +2,7 @@ import type { PhiCommandButtonConfig } from "../../../../../types/core-widget-pl
2
2
  import { type PhiCssLength } from "../../../../../types/length";
3
3
  import { type PhiCmsWidgetConfigBase } from "../../../../../components/widgets/config/parser-primitives";
4
4
  import { type PhiControlConfig } from "../../../../../components/widgets/config/control-signal-config";
5
- import type { PhiFloatButtonControlGroup, PhiFloatButtonControlPlacement } from "../../../../../components/controls/phi-float-button-control";
5
+ import type { PhiFloatButtonControlGroup, PhiFloatButtonControlPlacement, PhiFloatButtonControlSize } from "../../../../../components/controls/phi-float-button-control";
6
6
  /**
7
7
  * Buttons that stay in a corner of the viewport while the Page scrolls: one, or a group of them.
8
8
  *
@@ -10,7 +10,7 @@ import type { PhiFloatButtonControlGroup, PhiFloatButtonControlPlacement } from
10
10
  * runtime -- and only how they stand is this Widget's. It sits in a slot of the Page it belongs to and
11
11
  * takes no room there; a Float Button for every Page of an Area is the Area's Pages each placing one.
12
12
  */
13
- export type PhiFloatButtonWidgetConfig = PhiCmsWidgetConfigBase & PhiControlConfig & {
13
+ export type PhiFloatButtonWidgetConfig = PhiCmsWidgetConfigBase & PhiControlConfig<PhiFloatButtonControlSize> & {
14
14
  buttons: PhiCommandButtonConfig[];
15
15
  placement?: PhiFloatButtonControlPlacement;
16
16
  offsetBlock?: PhiCssLength;
@@ -85,7 +85,330 @@ export declare const PHI_FLOAT_BUTTON_WIDGET_DEFINITION: {
85
85
  };
86
86
  };
87
87
  }[];
88
- fields: import("../../../../../types").PhiCmsConfigField[];
88
+ fields: (({
89
+ key: string;
90
+ label: string;
91
+ description?: string;
92
+ required?: boolean;
93
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
94
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
95
+ heading?: string;
96
+ } & {
97
+ type: "string" | "url" | "icon";
98
+ emptyValue?: "";
99
+ placeholder?: string;
100
+ text?: false | "label" | "message";
101
+ }) | ({
102
+ key: string;
103
+ label: string;
104
+ description?: string;
105
+ required?: boolean;
106
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
107
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
108
+ heading?: string;
109
+ } & {
110
+ type: "link-target";
111
+ clearsWhenEmpty?: readonly string[];
112
+ }) | ({
113
+ key: string;
114
+ label: string;
115
+ description?: string;
116
+ required?: boolean;
117
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
118
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
119
+ heading?: string;
120
+ } & {
121
+ type: "readonly";
122
+ }) | ({
123
+ key: string;
124
+ label: string;
125
+ description?: string;
126
+ required?: boolean;
127
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
128
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
129
+ heading?: string;
130
+ } & {
131
+ type: "data-provider";
132
+ providerKind?: import("../../../../../types").PhiRuntimeDataProviderKind | readonly import("../../../../../types").PhiRuntimeDataProviderKind[];
133
+ providerKey?: import("@phis/contracts/controls").PhiRuntimeDataProviderKey;
134
+ }) | ({
135
+ key: string;
136
+ label: string;
137
+ description?: string;
138
+ required?: boolean;
139
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
140
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
141
+ heading?: string;
142
+ } & {
143
+ type: "calendar-adapter";
144
+ }) | ({
145
+ key: string;
146
+ label: string;
147
+ description?: string;
148
+ required?: boolean;
149
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
150
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
151
+ heading?: string;
152
+ } & {
153
+ type: "video-provider";
154
+ }) | ({
155
+ key: string;
156
+ label: string;
157
+ description?: string;
158
+ required?: boolean;
159
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
160
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
161
+ heading?: string;
162
+ } & {
163
+ type: "record-field";
164
+ kinds: readonly import("../../../../../module-records").PhiRecordFieldKind[];
165
+ }) | ({
166
+ key: string;
167
+ label: string;
168
+ description?: string;
169
+ required?: boolean;
170
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
171
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
172
+ heading?: string;
173
+ } & {
174
+ type: "dimension";
175
+ widthKey?: string;
176
+ heightKey?: string;
177
+ widthPlaceholder?: string;
178
+ heightPlaceholder?: string;
179
+ patchOnChange?: Record<string, unknown>;
180
+ }) | ({
181
+ key: string;
182
+ label: string;
183
+ description?: string;
184
+ required?: boolean;
185
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
186
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
187
+ heading?: string;
188
+ } & {
189
+ type: "length";
190
+ min?: number;
191
+ max?: number;
192
+ step?: number;
193
+ precision?: number;
194
+ }) | ({
195
+ key: string;
196
+ label: string;
197
+ description?: string;
198
+ required?: boolean;
199
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
200
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
201
+ heading?: string;
202
+ } & {
203
+ type: "radius";
204
+ topLeftKey: string;
205
+ topRightKey: string;
206
+ bottomLeftKey: string;
207
+ bottomRightKey: string;
208
+ }) | ({
209
+ key: string;
210
+ label: string;
211
+ description?: string;
212
+ required?: boolean;
213
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
214
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
215
+ heading?: string;
216
+ } & {
217
+ type: "padding";
218
+ paddingKey?: string;
219
+ gapKey?: string;
220
+ paddingTopKey?: string;
221
+ paddingRightKey?: string;
222
+ paddingBottomKey?: string;
223
+ paddingLeftKey?: string;
224
+ section?: string;
225
+ }) | ({
226
+ key: string;
227
+ label: string;
228
+ description?: string;
229
+ required?: boolean;
230
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
231
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
232
+ heading?: string;
233
+ } & {
234
+ type: "color";
235
+ mode?: import("../../../../../types").PhiCmsConfigFieldColorMode;
236
+ defaultToken?: import("../../../../../theme/phi-theme-tokens").PhiThemeTokenKey;
237
+ section?: string;
238
+ }) | ({
239
+ key: string;
240
+ label: string;
241
+ description?: string;
242
+ required?: boolean;
243
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
244
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
245
+ heading?: string;
246
+ } & {
247
+ type: "image";
248
+ }) | ({
249
+ key: string;
250
+ label: string;
251
+ description?: string;
252
+ required?: boolean;
253
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
254
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
255
+ heading?: string;
256
+ } & {
257
+ type: "slot-texts";
258
+ }) | ({
259
+ key: string;
260
+ label: string;
261
+ description?: string;
262
+ required?: boolean;
263
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
264
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
265
+ heading?: string;
266
+ } & {
267
+ type: "number-list";
268
+ min?: number;
269
+ }) | ({
270
+ key: string;
271
+ label: string;
272
+ description?: string;
273
+ required?: boolean;
274
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
275
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
276
+ heading?: string;
277
+ } & {
278
+ type: "flags";
279
+ options: readonly {
280
+ value: number;
281
+ label: string;
282
+ }[];
283
+ }) | ({
284
+ key: string;
285
+ label: string;
286
+ description?: string;
287
+ required?: boolean;
288
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
289
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
290
+ heading?: string;
291
+ } & {
292
+ type: "number";
293
+ min?: number;
294
+ max?: number;
295
+ step?: number;
296
+ precision?: number;
297
+ prefix?: string;
298
+ presentation?: "slider";
299
+ suffix?: string;
300
+ }) | ({
301
+ key: string;
302
+ label: string;
303
+ description?: string;
304
+ required?: boolean;
305
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
306
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
307
+ heading?: string;
308
+ } & {
309
+ type: "choice";
310
+ valueType: "number";
311
+ options: import("@phis/contracts/controls").PhiControlOption<number>[];
312
+ emptyOption?: import("@phis/contracts/controls").PhiControlOption;
313
+ emptyValue?: null | undefined;
314
+ placeholder?: string;
315
+ mode?: never;
316
+ presentation?: never;
317
+ optionsProvider?: never;
318
+ allowCustom?: never;
319
+ createBehavior?: never;
320
+ filter?: never;
321
+ patchOnChange?: never;
322
+ optionPresets?: never;
323
+ }) | ({
324
+ key: string;
325
+ label: string;
326
+ description?: string;
327
+ required?: boolean;
328
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
329
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
330
+ heading?: string;
331
+ } & {
332
+ type: "choice";
333
+ mode?: import("../../../../../types").PhiCmsConfigFieldChoiceMode;
334
+ valueType?: Exclude<import("../../../../../types").PhiCmsConfigFieldChoiceValueType, "number">;
335
+ presentation?: import("../../../../../types").PhiCmsConfigFieldChoicePresentation;
336
+ options?: import("@phis/contracts/controls").PhiControlOption[];
337
+ optionsProvider?: import("@phis/contracts/controls").PhiControlOptionsProviderConfig;
338
+ allowCustom?: boolean;
339
+ createBehavior?: import("../../../../../types").PhiCmsConfigFieldChoiceCreateBehavior;
340
+ placeholder?: string;
341
+ filter?: import("../../../../../types").PhiCmsConfigFieldChoiceFilter;
342
+ emptyOption?: import("@phis/contracts/controls").PhiControlOption;
343
+ emptyValue?: null | undefined;
344
+ patchOnChange?: Record<string, unknown>;
345
+ optionPresets?: import("../../../../../types/cms-plugins").PhiCmsConfigFieldOptionPresets;
346
+ }) | ({
347
+ key: string;
348
+ label: string;
349
+ description?: string;
350
+ required?: boolean;
351
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
352
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
353
+ heading?: string;
354
+ } & {
355
+ type: "collection";
356
+ itemKeyField: string;
357
+ itemLabelField?: string;
358
+ itemFields: import("../../../../../types").PhiCmsConfigField[];
359
+ defaultItem?: Record<string, unknown>;
360
+ addLabel?: string;
361
+ emptyLabel?: string;
362
+ minItems?: number;
363
+ maxItems?: number;
364
+ reorderable?: boolean;
365
+ presentation?: import("../../../../../types").PhiCmsConfigFieldCollectionPresentation;
366
+ editLabel?: string;
367
+ }) | ({
368
+ key: string;
369
+ label: string;
370
+ description?: string;
371
+ required?: boolean;
372
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
373
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
374
+ heading?: string;
375
+ } & {
376
+ type: "surface";
377
+ tone?: false;
378
+ }) | ({
379
+ key: string;
380
+ label: string;
381
+ description?: string;
382
+ required?: boolean;
383
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
384
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
385
+ heading?: string;
386
+ } & {
387
+ type: "background-overlay";
388
+ }) | ({
389
+ key: string;
390
+ label: string;
391
+ description?: string;
392
+ required?: boolean;
393
+ editorPlacement?: "inspector" | "geometry" | "toolbar";
394
+ visibleWhen?: import("../../../../../types").PhiCmsConfigFieldVisibilityRule | readonly import("../../../../../types").PhiCmsConfigFieldVisibilityRule[];
395
+ heading?: string;
396
+ } & {
397
+ type: "grid-placement" | "column-count";
398
+ section?: string;
399
+ }) | {
400
+ key: string;
401
+ type: "boolean";
402
+ label: string;
403
+ } | {
404
+ options: {
405
+ value: string;
406
+ label: string;
407
+ }[];
408
+ key: string;
409
+ type: "choice";
410
+ label: string;
411
+ })[];
89
412
  defaultConfig: {
90
413
  key: string;
91
414
  placement: "bottom-end";
@@ -2,8 +2,9 @@ import { resolvePhiCmsWidgetPluginKey } from "../../../../../constants/cms-widge
2
2
  import { readPhiLengthValue } from "../../../../../types/length";
3
3
  import { PHI_COMMAND_CONTROL_SIGNALS } from "../../../../../components/widgets/signals/control-signal-capabilities";
4
4
  import { readRenderableBlockConfig, readString, } from "../../../../../components/widgets/config/parser-primitives";
5
- import { parsePhiControlConfig, } from "../../../../../components/widgets/config/control-signal-config";
5
+ import { PHI_COMPACT_CONTROL_PRESENTATION_FIELDS, PHI_CONTROL_STATE_FIELDS, parsePhiControlConfig, } from "../../../../../components/widgets/config/control-signal-config";
6
6
  import { PHI_COMMAND_BUTTONS_SIGNAL_SUBCONTROLS, buildPhiCommandButtonsField, createPhiCommandButton, readPhiCommandButtons, } from "../../../../../components/widgets/config/command-buttons";
7
+ const PHI_FLOAT_BUTTON_SIZES = ["small", "medium"];
7
8
  const PHI_FLOAT_BUTTON_PLACEMENTS = ["bottom-end", "bottom-start", "top-end", "top-start"];
8
9
  const PHI_FLOAT_BUTTON_GROUP_DIRECTIONS = ["top", "bottom", "left", "right"];
9
10
  function readOneOf(value, allowed) {
@@ -13,7 +14,7 @@ function readOneOf(value, allowed) {
13
14
  function parsePhiFloatButtonWidgetConfig(config) {
14
15
  return {
15
16
  ...readRenderableBlockConfig(config),
16
- ...parsePhiControlConfig(config, { key: "float" }),
17
+ ...parsePhiControlConfig(config, { key: "float" }, PHI_FLOAT_BUTTON_SIZES),
17
18
  buttons: readPhiCommandButtons(config.buttons),
18
19
  placement: readOneOf(config.placement, PHI_FLOAT_BUTTON_PLACEMENTS) ?? "bottom-end",
19
20
  offsetBlock: readPhiLengthValue(config.offsetBlock) ?? undefined,
@@ -117,6 +118,8 @@ export const PHI_FLOAT_BUTTON_WIDGET_DEFINITION = {
117
118
  { value: "right", label: "Right" },
118
119
  ],
119
120
  },
121
+ ...PHI_COMPACT_CONTROL_PRESENTATION_FIELDS,
122
+ ...PHI_CONTROL_STATE_FIELDS,
120
123
  ],
121
124
  defaultConfig: {
122
125
  key: "float",
@@ -170,7 +170,7 @@ export declare const PHI_FORM_WIDGET_DEFINITION: {
170
170
  } | {
171
171
  key: string;
172
172
  type: "data-provider";
173
- providerKind: "table";
173
+ providerKind: ("table" | "collection")[];
174
174
  label: string;
175
175
  required?: undefined;
176
176
  optionsProvider?: undefined;
@@ -97,6 +97,18 @@ export const PHI_FORM_WIDGET_DEFINITION = {
97
97
  valueType: "json",
98
98
  valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.tableAction,
99
99
  },
100
+ /*
101
+ * The same open from a Collection View's item action (`{ actionKey, itemKey }`), the item's key the
102
+ * record's: one capability, two announcers, told apart by the schema the route carries (SIGNALS.md,
103
+ * inputs are unique by channel, action, value type and schema).
104
+ */
105
+ {
106
+ id: "recordOpen",
107
+ channel: "action",
108
+ action: "activate",
109
+ valueType: "json",
110
+ valueSchema: PHI_SIGNAL_VALUE_SCHEMAS.collectionAction,
111
+ },
100
112
  { id: "close", channel: "dialog", action: "close", valueType: "none" },
101
113
  { id: "reload", channel: "reload", action: "activate", valueType: "none" },
102
114
  /*
@@ -164,7 +176,8 @@ export const PHI_FORM_WIDGET_DEFINITION = {
164
176
  {
165
177
  key: "source",
166
178
  type: "data-provider",
167
- providerKind: "table",
179
+ // A Table's rows or a Collection's items, whichever resource declares `recordRead`.
180
+ providerKind: ["table", "collection"],
168
181
  label: "Record source",
169
182
  },
170
183
  { key: "openActionKey", type: "string", label: "Open action key" },
@@ -86,7 +86,7 @@ export declare const PHI_GALLERY_WIDGET_DEFINITION: {
86
86
  heading?: string;
87
87
  } & {
88
88
  type: "data-provider";
89
- providerKind?: import("../../../../../types").PhiRuntimeDataProviderKind;
89
+ providerKind?: import("../../../../../types").PhiRuntimeDataProviderKind | readonly import("../../../../../types").PhiRuntimeDataProviderKind[];
90
90
  providerKey?: import("@phis/contracts/controls").PhiRuntimeDataProviderKey;
91
91
  }) | ({
92
92
  key: string;
@@ -66,7 +66,7 @@ export function PhiHeaderNavigationWidgetClient({ runtime, items, menuTheme, ali
66
66
  minHeight: 0,
67
67
  flex: 1,
68
68
  justifyContent: align === "center" ? "center" : "flex-start",
69
- }, children: [phoneMenu === "button" ? (_jsxs("span", { className: "phi-header-nav__button", children: [_jsx(PhiButtonControl, { type: "text", ariaLabel: "Open navigation", ariaExpanded: drawerOpen, icon: _jsx(PhiIcon, { name: "menu", size: "inherit" }), onClick: () => setOpenedOn(pathname) }), _jsx(PhiDialogControl, { open: drawerOpen, presentation: "drawer", placement: "right", size: "min(20rem, 85vw)", onDismiss: closeDrawer, children: _jsx("nav", { "aria-label": "Navigation", onClickCapture: closeOnLink, children: _jsx(PhiMenuControl, { mode: "inline", menuTheme: menuTheme, selectionStyle: selectionStyle, selectedKeys: selectedKeys, items: menuItems, fontSize: token.fontSize, style: { borderInlineEnd: "none" } }) }) })] })) : null, _jsx("div", { className: "phi-header-nav__row", style: {
69
+ }, children: [phoneMenu === "button" ? (_jsxs("span", { className: "phi-header-nav__button", children: [_jsx(PhiButtonControl, { type: "text", ariaLabel: "Open navigation", ariaExpanded: drawerOpen, icon: _jsx(PhiIcon, { name: "menu", size: "inherit" }), onClick: () => setOpenedOn(pathname) }), _jsx(PhiDialogControl, { open: drawerOpen, presentation: "drawer", placement: "right", size: { width: "min(20rem, 85vw)" }, onDismiss: closeDrawer, children: _jsx("nav", { "aria-label": "Navigation", onClickCapture: closeOnLink, children: _jsx(PhiMenuControl, { mode: "inline", menuTheme: menuTheme, selectionStyle: selectionStyle, selectedKeys: selectedKeys, items: menuItems, fontSize: token.fontSize, style: { borderInlineEnd: "none" } }) }) })] })) : null, _jsx("div", { className: "phi-header-nav__row", style: {
70
70
  display: "flex",
71
71
  alignItems: "stretch",
72
72
  flex: "1 1 auto",
@@ -9,7 +9,7 @@ export declare function parsePhiLengthWidgetConfig(config: Record<string, unknow
9
9
  precision: number | undefined;
10
10
  key: string;
11
11
  disabled?: boolean | undefined;
12
- controlSize?: "small" | "medium" | "large" | undefined;
12
+ controlSize?: "medium" | "small" | "large" | undefined;
13
13
  signalRoutes?: (import("../../../../../types").PhiSignalRouteSet | null) | undefined;
14
14
  readOnly?: boolean | undefined;
15
15
  };
@@ -137,7 +137,7 @@ export declare const PHI_MARKDOWN_WIDGET_DEFINITION: {
137
137
  heading?: string;
138
138
  } & {
139
139
  type: "data-provider";
140
- providerKind?: import("../../../../../types").PhiRuntimeDataProviderKind;
140
+ providerKind?: import("../../../../../types").PhiRuntimeDataProviderKind | readonly import("../../../../../types").PhiRuntimeDataProviderKind[];
141
141
  providerKey?: import("@phis/contracts/controls").PhiRuntimeDataProviderKey;
142
142
  }) | ({
143
143
  key: string;
@@ -2,10 +2,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { PhiWidgetInertPreview } from "../../../../../components/widgets/built-in/widget-preview";
3
3
  import { resolveMarkdownRenderData } from "../../../../../components/widgets/shared/markdown-render";
4
4
  import { PhiCmsFlags } from "../../../../../constants/phi-cms";
5
+ import { PhiRecordMarkdownFlag } from "../../../../../constants/record-field-kinds";
5
6
  import { hasPhiFlag } from "../../../../../helpers/flags";
6
7
  import { readPhiMarkdownSearchText, translatePhiSearchWidgetTexts } from "../../../../../server-helpers/search-text";
7
8
  import { resolvePhiWidgetRecordField } from "../../../../../server-helpers/record-fields";
8
9
  import { PhiMarkdownWidget } from "./server";
10
+ import { createPhiMarkdownTableEmbedResolver } from "./table-embeds.server";
11
+ import { readPhiRuntimeTreeRenderMode } from "../../../render-mode";
9
12
  import { PHI_MARKDOWN_WIDGET_DEFINITION, PHI_MARKDOWN_WIDGET_PLUGIN_TYPE, } from "./config";
10
13
  export const PHI_MARKDOWN_WIDGET_PLUGIN = {
11
14
  ...PHI_MARKDOWN_WIDGET_DEFINITION,
@@ -30,13 +33,23 @@ export const PHI_MARKDOWN_WIDGET_PLUGIN = {
30
33
  },
31
34
  render: async ({ widget, config, runtime, registry }) => {
32
35
  /*
33
- * A field of the page record takes the text's place: inline, in the page's language already, and
34
- * nothing where the record does not have it.
36
+ * A field of the page record takes the text's place, inline, and nothing where the record does not have
37
+ * it. A `text` is in the page's language already. A `markdown` says its language: source text is
38
+ * translated from it paragraph by paragraph, as any Markdown is, and a person's translation
39
+ * (`Translated`) is drawn as written -- so is any text where the node says `NoTranslate`.
35
40
  */
36
41
  const recordField = await resolvePhiWidgetRecordField({ registry, runtime, key: config.recordField, kinds: ["markdown", "text"] });
37
42
  if (recordField.bound) {
38
- return recordField.field?.value.trim()
39
- ? (_jsx(PhiMarkdownWidget, { config: { ...config, widgetId: widget.id, sourceMode: "inline", markdown: recordField.field.value, resolvedContent: null, translate: false }, runtime: runtime }, `widget-${widget.id}`))
43
+ const field = recordField.field;
44
+ const source = field?.kind === "markdown"
45
+ ? {
46
+ markdown: field.value.text,
47
+ sourceLocale: field.value.sourceLocale,
48
+ translate: !hasPhiFlag(field.value.flags, PhiRecordMarkdownFlag.Translated) && !hasPhiFlag(widget.flags, PhiCmsFlags.NoTranslate),
49
+ }
50
+ : { markdown: field?.value ?? "", translate: false };
51
+ return source.markdown.trim()
52
+ ? (_jsx(PhiMarkdownWidget, { config: { ...config, widgetId: widget.id, sourceMode: "inline", resolvedContent: null, ...source }, runtime: runtime }, `widget-${widget.id}`))
40
53
  : null;
41
54
  }
42
55
  return (_jsx(PhiMarkdownWidget, { config: {
@@ -44,13 +57,13 @@ export const PHI_MARKDOWN_WIDGET_PLUGIN = {
44
57
  widgetId: widget.id,
45
58
  resolvedContent: widget.resolvedContent ?? null,
46
59
  translate: !hasPhiFlag(widget.flags, PhiCmsFlags.NoTranslate),
47
- }, runtime: runtime }, `widget-${widget.id}`));
60
+ }, runtime: runtime, tableEmbeds: registry && createPhiMarkdownTableEmbedResolver({ registry, runtime, renderMode: readPhiRuntimeTreeRenderMode(widget.config) }) }, `widget-${widget.id}`));
48
61
  },
49
- renderPreview: ({ widget, config, runtime }) => (_jsx(PhiWidgetInertPreview, { children: _jsx(PhiMarkdownWidget, { config: {
62
+ renderPreview: ({ widget, config, runtime, registry }) => (_jsx(PhiWidgetInertPreview, { children: _jsx(PhiMarkdownWidget, { config: {
50
63
  ...config,
51
64
  widgetId: widget.id,
52
65
  resolvedContent: widget.resolvedContent ?? null,
53
66
  renderMode: "preview",
54
- }, runtime: runtime }, `widget-preview-${widget.id}`) })),
67
+ }, runtime: runtime, tableEmbeds: registry && createPhiMarkdownTableEmbedResolver({ registry, runtime, renderMode: "preview" }) }, `widget-preview-${widget.id}`) })),
55
68
  };
56
69
  export { PHI_MARKDOWN_WIDGET_PLUGIN_TYPE };
@@ -1,4 +1,8 @@
1
1
  import type { PhiNoLabels, PhiServerBlockBaseProps } from "../../../../../types";
2
+ import { type PhiMarkdownTableEmbedResolver } from "../../../../../components/widgets/shared/markdown-render";
2
3
  import type { PhiCmsMarkdownWidgetConfig } from "./config";
3
- export type PhiMarkdownWidgetProps = PhiServerBlockBaseProps<PhiNoLabels, PhiCmsMarkdownWidgetConfig>;
4
- export declare function PhiMarkdownWidget({ config, runtime, }: PhiMarkdownWidgetProps): Promise<import("react").JSX.Element | null>;
4
+ export type PhiMarkdownWidgetProps = PhiServerBlockBaseProps<PhiNoLabels, PhiCmsMarkdownWidgetConfig> & {
5
+ /** Who draws the Tables the text embeds (TABLES.md); absent, each is its caption. */
6
+ tableEmbeds?: PhiMarkdownTableEmbedResolver;
7
+ };
8
+ export declare function PhiMarkdownWidget({ config, runtime, tableEmbeds, }: PhiMarkdownWidgetProps): Promise<import("react").JSX.Element | null>;
@@ -4,8 +4,8 @@ import { trBulk, trBulkForLocale } from "../../../../../server-helpers/translate
4
4
  import { PhiRuntimeModuleRenderClientHost } from "../../../../../components/runtime/runtime-module-render-client-manifest";
5
5
  import { resolveMarkdownRenderData } from "../../../../../components/widgets/shared/markdown-render";
6
6
  import { buildPhiMarkdownFaqStructuredData, resolvePhiMarkdownFoldLevel } from "../../../../../components/widgets/shared/markdown-sections";
7
- export async function PhiMarkdownWidget({ config, runtime, }) {
8
- const renderData = await resolveMarkdownRenderData(config, runtime);
7
+ export async function PhiMarkdownWidget({ config, runtime, tableEmbeds, }) {
8
+ const renderData = await resolveMarkdownRenderData(config, runtime, { tableEmbeds });
9
9
  if ("error" in renderData) {
10
10
  return (_jsx(PhiRuntimeModuleRenderClientHost, { type: PhiCmsWidgetType.Markdown, componentProps: { config: { blocks: [], error: renderData.error } } }));
11
11
  }
@@ -0,0 +1,12 @@
1
+ import "server-only";
2
+ import type { PhiMarkdownTableEmbedResolver } from "../../../../../components/widgets/shared/markdown-render";
3
+ import type { PhiBlockRuntime, PhiRenderableBlockRenderMode } from "../../../../../types";
4
+ import type { PhiCmsRuntimeRenderRegistry } from "../../../../../types/cms-plugins";
5
+ type Registry = Pick<PhiCmsRuntimeRenderRegistry, "runtimeModuleCatalog" | "activeModuleIds" | "widgetAccessPoliciesByType" | "roleProviderIdByWidgetType">;
6
+ /** The Tables a Markdown text embeds (TABLES.md, "Tables in Markdown"). */
7
+ export declare function createPhiMarkdownTableEmbedResolver({ registry, runtime, renderMode }: {
8
+ registry: Registry;
9
+ runtime: PhiBlockRuntime;
10
+ renderMode: PhiRenderableBlockRenderMode;
11
+ }): PhiMarkdownTableEmbedResolver;
12
+ export {};
@@ -0,0 +1,68 @@
1
+ import "server-only";
2
+ import { PhiCmsWidgetType } from "../../../../../constants/cms-widget-types";
3
+ import { getPhiTableWidgetLabels } from "../../../../../components/widgets/label-sets/table";
4
+ import { PHI_TR_CTX_WEB_UI_LABEL } from "../../../../../gateway/tr";
5
+ import { phiRuntime } from "../../../../../server-helpers/phi-runtime";
6
+ import { trGlobalBulkForLocale } from "../../../../../server-helpers/translate";
7
+ import { canPhiViewerAccessOwnedPolicy as canSee } from "../../../../../types/access";
8
+ /** The Tables a Markdown text embeds (TABLES.md, "Tables in Markdown"). */
9
+ export function createPhiMarkdownTableEmbedResolver({ registry, runtime, renderMode }) {
10
+ return async (embeds) => {
11
+ const resolved = embeds.map(({ reference }) => resolveEmbed(reference, registry, runtime));
12
+ const configs = resolved.filter((entry) => typeof entry !== "string");
13
+ const words = configs.flatMap(({ presentation }) => [presentation.title, ...presentation.columns.map((column) => column.title)]);
14
+ const [translated, labels] = !configs.length ? [[], null] : await Promise.all([
15
+ trGlobalBulkForLocale(runtime.locale.current, words.filter((text) => text), PHI_TR_CTX_WEB_UI_LABEL),
16
+ getPhiTableWidgetLabels({ ...phiRuntime(runtime), locale: runtime.locale.current }),
17
+ ]);
18
+ let at = 0;
19
+ const word = (text = "") => text && (translated[at++]?.trim() || text);
20
+ return resolved.map((entry, index) => {
21
+ const { caption } = embeds[index];
22
+ if (typeof entry === "string")
23
+ return { caption, table: null, notice: renderMode === "live" ? null : entry };
24
+ const title = word(entry.presentation.title);
25
+ const columns = entry.presentation.columns.map((column) => ({ ...column, title: word(column.title) }));
26
+ const presentation = { ...entry.presentation, columns, title: caption || title };
27
+ return { caption, table: { config: { ...entry, presentation }, labels: labels, renderMode }, notice: null };
28
+ });
29
+ };
30
+ }
31
+ function resolveEmbed({ embedKey, params }, registry, runtime) {
32
+ const owner = [...registry.runtimeModuleCatalog.values()]
33
+ .find((entry) => entry.definition.embeddableTables?.some((embed) => embed.key === embedKey))?.definition;
34
+ const embed = owner?.embeddableTables.find((candidate) => candidate.key === embedKey);
35
+ if (!owner || !embed)
36
+ return `No Module offers the Table "${embedKey}".`;
37
+ if (!registry.activeModuleIds.has(owner.moduleId))
38
+ return `"${owner.title}" is not active in this Area.`;
39
+ const table = PhiCmsWidgetType.Table;
40
+ if (!canSee(runtime.viewer, registry.widgetAccessPoliciesByType.get(table), registry.roleProviderIdByWidgetType.get(table)) ||
41
+ !canSee(runtime.viewer, embed.accessPolicy, owner.serverBinding.providerId))
42
+ return `This viewer may not see "${embedKey}".`;
43
+ const provider = owner.dataProviders.find((candidate) => candidate.key === embed.source.providerKey);
44
+ const resource = provider.kind === "table" ? provider.resources.find((candidate) => candidate.resourceKey === embed.source.resourceKey) : null;
45
+ const binding = {};
46
+ const filters = {};
47
+ for (const [name, raw] of params) {
48
+ const param = Object.hasOwn(embed.params ?? {}, name) ? embed.params[name] : null;
49
+ const bound = param && "binding" in param ? resource.bindingFields?.find((field) => field.key === param.binding) : undefined;
50
+ const field = bound ?? (param && "filter" in param ? resource.fields.find((candidate) => candidate.key === param.filter) : undefined);
51
+ const into = bound ? binding : filters;
52
+ const value = !field || Object.hasOwn(into, field.key) ? undefined
53
+ : field.type === "enum" ? field.options?.find((option) => String(option.value) === raw)?.value
54
+ : field.type === "string" ? (raw.trim().length <= 200 && raw.trim()) || undefined
55
+ : field.type === "number" ? /^-?\d+(\.\d+)?$/u.test(raw) ? Number(raw) : undefined
56
+ : field.type === "boolean" ? raw === "true" || (raw === "false" ? false : undefined) : undefined;
57
+ if (value === undefined)
58
+ return field ? `"${name}" does not take "${raw}" here.` : `"${embedKey}" has no parameter "${name}".`;
59
+ into[field.key] = value;
60
+ }
61
+ const source = { ...embed.source, params: { ...embed.source.params, ...binding } };
62
+ const open = resource.bindingFields?.find((field) => field.required && field.defaultValue === undefined && !Object.hasOwn(source.params, field.key));
63
+ if (open)
64
+ return `"${embedKey}" needs a parameter for "${open.key}".`;
65
+ // `maxRows` is one page, no pager; as is a resource that does not page.
66
+ const pagination = (embed.maxRows || resource.query.pagination === "none") && { pagination: { enabled: false, pageSize: embed.maxRows } };
67
+ return { presentation: embed.presentation, features: { sorting: embed.sorting, ...pagination }, fixedFilters: { ...embed.fixedFilters, ...filters }, source, signalRoutes: null };
68
+ }
@@ -9,7 +9,7 @@ export declare function parsePhiNumberInputWidgetConfig(config: Record<string, u
9
9
  precision: number | undefined;
10
10
  key: string;
11
11
  disabled?: boolean | undefined;
12
- controlSize?: "small" | "medium" | "large" | undefined;
12
+ controlSize?: "medium" | "small" | "large" | undefined;
13
13
  signalRoutes?: (import("../../../../../types").PhiSignalRouteSet | null) | undefined;
14
14
  readOnly?: boolean | undefined;
15
15
  };