@phis/ui 0.8.0 → 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 (233) 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-media-picker-control.d.ts +9 -0
  10. package/components/controls/phi-media-picker-control.js +1 -1
  11. package/components/controls/phi-popover-control.js +4 -1
  12. package/components/controls/phi-table-control.d.ts +7 -1
  13. package/components/controls/phi-table-control.js +23 -8
  14. package/components/forms/form-descriptor-field-check.d.ts +18 -0
  15. package/components/forms/form-descriptor-field-check.js +41 -0
  16. package/components/forms/form-descriptor-runtime-client.js +11 -10
  17. package/components/forms/form-record-source.d.ts +38 -0
  18. package/components/forms/form-record-source.js +48 -0
  19. package/components/forms/shared-form-descriptors.d.ts +0 -34
  20. package/components/forms/shared-form-descriptors.js +0 -6
  21. package/components/forms/shared-form-ids.d.ts +1 -1
  22. package/components/forms/shared-form-ids.js +1 -1
  23. package/components/media/media-settings-labels.d.ts +1 -0
  24. package/components/media/media-settings-labels.js +2 -0
  25. package/components/media/phi-media-picker-binding.d.ts +41 -33
  26. package/components/media/phi-media-picker-binding.js +2 -1
  27. package/components/media/use-media-library-add-picker.d.ts +33 -32
  28. package/components/overlays/phi-overlay-container-client.js +11 -9
  29. package/components/regions/presets/phi-settings-page-shell-tree.d.ts +7 -0
  30. package/components/regions/presets/phi-settings-page-shell-tree.js +3 -3
  31. package/components/shell/phi-icon-names.d.ts +3 -0
  32. package/components/shell/phi-icon-names.js +3 -0
  33. package/components/shell/phi-icon.d.ts +5 -7
  34. package/components/shell/phi-icon.js +8 -21
  35. package/components/tables/client/phi-table-binding-params.d.ts +24 -0
  36. package/components/tables/client/phi-table-binding-params.js +39 -0
  37. package/components/tables/client/phi-table-binding.d.ts +1 -3
  38. package/components/tables/client/phi-table-binding.js +5 -9
  39. package/components/widgets/client/shared/phi-button-icons.d.ts +6 -4
  40. package/components/widgets/client/shared/phi-button-icons.js +8 -12
  41. package/components/widgets/client/shared/phi-collection-binding-params.d.ts +8 -0
  42. package/components/widgets/client/shared/phi-collection-binding-params.js +13 -0
  43. package/components/widgets/client/shared/phi-collection-provider.d.ts +11 -1
  44. package/components/widgets/client/shared/phi-collection-provider.js +5 -0
  45. package/components/widgets/client/shared/phi-collection-view-binding.d.ts +1 -0
  46. package/components/widgets/client/shared/phi-command-buttons.d.ts +16 -0
  47. package/components/widgets/client/shared/phi-command-buttons.js +9 -1
  48. package/components/widgets/label-sets/admin-users.d.ts +1 -0
  49. package/components/widgets/label-sets/admin-users.js +2 -0
  50. package/components/widgets/label-sets/builder-modules.js +4 -0
  51. package/components/widgets/label-sets/profile.d.ts +0 -16
  52. package/components/widgets/label-sets/profile.js +0 -37
  53. package/components/widgets/label-sets/registration.d.ts +0 -1
  54. package/components/widgets/label-sets/registration.js +0 -2
  55. package/components/widgets/label-sets/revisions.js +2 -0
  56. package/components/widgets/label-sets/signals.js +2 -0
  57. package/components/widgets/label-types/builder-modules.d.ts +4 -0
  58. package/components/widgets/label-types/builder-modules.js +2 -0
  59. package/components/widgets/label-types/revisions.d.ts +2 -0
  60. package/components/widgets/label-types/revisions.js +2 -1
  61. package/components/widgets/label-types/signals.d.ts +2 -0
  62. package/components/widgets/label-types/signals.js +1 -0
  63. package/components/widgets/shared/widget-failure-audience.d.ts +7 -0
  64. package/components/widgets/shared/widget-failure-audience.js +21 -0
  65. package/components/widgets/shared/widget-failure-client.js +5 -2
  66. package/components/widgets/shared/widget-failure-notice-client.d.ts +6 -0
  67. package/components/widgets/shared/widget-failure-notice-client.js +10 -0
  68. package/components/widgets/shared/widget-failure-notice.d.ts +6 -0
  69. package/components/widgets/shared/widget-failure-notice.js +17 -0
  70. package/components/widgets/shared/widget-failure-staff.d.ts +3 -0
  71. package/components/widgets/shared/widget-failure-staff.js +18 -0
  72. package/components/widgets/shared/widget-failure.d.ts +9 -6
  73. package/components/widgets/shared/widget-failure.js +0 -9
  74. package/components/widgets/shared/widget-failure.server.d.ts +4 -2
  75. package/components/widgets/shared/widget-failure.server.js +8 -3
  76. package/constants/customer-file.d.ts +12 -3
  77. package/constants/customer-file.js +12 -3
  78. package/constants/runtime-module-ownership.js +4 -3
  79. package/constants/site-address.d.ts +9 -0
  80. package/constants/site-address.js +10 -0
  81. package/constants/table-loading.d.ts +14 -0
  82. package/constants/table-loading.js +14 -0
  83. package/constants.d.ts +2 -1
  84. package/constants.js +3 -1
  85. package/gateway/site-cms-write-validation.js +19 -3
  86. package/helpers/announced-action.d.ts +17 -0
  87. package/helpers/announced-action.js +29 -0
  88. package/helpers/phi-metadata.d.ts +0 -8
  89. package/helpers/phi-metadata.js +1 -10
  90. package/helpers/phi-site-description.d.ts +11 -0
  91. package/helpers/phi-site-description.js +13 -0
  92. package/helpers/preset-form-check.d.ts +14 -0
  93. package/helpers/preset-form-check.js +12 -0
  94. package/helpers/preset-table-check.d.ts +19 -15
  95. package/helpers/preset-table-check.js +33 -39
  96. package/helpers/record-widget-binding.d.ts +10 -0
  97. package/helpers/record-widget-binding.js +35 -0
  98. package/helpers/record-widget.d.ts +1 -10
  99. package/helpers/record-widget.js +4 -33
  100. package/helpers/table-widget-binding.d.ts +12 -0
  101. package/helpers/table-widget-binding.js +296 -0
  102. package/helpers/tree-widget-binding.d.ts +19 -0
  103. package/helpers/tree-widget-binding.js +72 -0
  104. package/helpers/typed-confirmation.d.ts +9 -0
  105. package/helpers/typed-confirmation.js +13 -0
  106. package/helpers/widget-binding-check.d.ts +22 -0
  107. package/helpers/widget-binding-check.js +91 -0
  108. package/module-page-check.d.ts +2 -0
  109. package/module-page-check.js +2 -0
  110. package/next/root-route.js +2 -1
  111. package/package.json +1 -1
  112. package/plugins/runtime-modules/accounting/ids.d.ts +7 -4
  113. package/plugins/runtime-modules/accounting/ids.js +14 -3
  114. package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.d.ts +21 -9
  115. package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.js +29 -15
  116. package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.d.ts +11 -8
  117. package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.js +206 -137
  118. package/plugins/runtime-modules/app/client-data-providers.js +1 -1
  119. package/plugins/runtime-modules/app/data-providers.d.ts +14 -69
  120. package/plugins/runtime-modules/app/data-providers.js +19 -54
  121. package/plugins/runtime-modules/app/definition.d.ts +8 -80
  122. package/plugins/runtime-modules/app/forms.d.ts +1 -16
  123. package/plugins/runtime-modules/app/forms.js +0 -59
  124. package/plugins/runtime-modules/app/ids.d.ts +2 -1
  125. package/plugins/runtime-modules/app/ids.js +3 -2
  126. package/plugins/runtime-modules/app/module.d.ts +8 -80
  127. package/plugins/runtime-modules/app/services/addresses-collection.d.ts +59 -0
  128. package/plugins/runtime-modules/app/services/{addresses-table.js → addresses-collection.js} +23 -19
  129. package/plugins/runtime-modules/app/trees/account-addresses-panel.d.ts +10 -6
  130. package/plugins/runtime-modules/app/trees/account-addresses-panel.js +37 -73
  131. package/plugins/runtime-modules/app/trees/addresses-label-set.d.ts +0 -5
  132. package/plugins/runtime-modules/app/trees/addresses-label-set.js +2 -6
  133. package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.d.ts +1 -2
  134. package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.js +1 -17
  135. package/plugins/runtime-modules/app/trees/profile-label-set.d.ts +0 -2
  136. package/plugins/runtime-modules/app/trees/profile-label-set.js +2 -14
  137. package/plugins/runtime-modules/asset/trees/phi-default-admin-media-settings-page-tree.js +5 -0
  138. package/plugins/runtime-modules/builder/clients/inspector-config-field.js +16 -6
  139. package/plugins/runtime-modules/builder/clients/inspector-image-field.js +3 -1
  140. package/plugins/runtime-modules/builder/clients/inspector-section-widget.js +3 -1
  141. package/plugins/runtime-modules/builder/controller/signal-wiring-controller.js +5 -1
  142. package/plugins/runtime-modules/builder/signal-wiring-options.js +9 -2
  143. package/plugins/runtime-modules/builder/trees/phi-builder-inspector-area-overlay-tree.server.js +5 -0
  144. package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.js +14 -1
  145. package/plugins/runtime-modules/client-manifests/common.js +6 -0
  146. package/plugins/runtime-modules/core/widgets/card/config.d.ts +1 -1
  147. package/plugins/runtime-modules/core/widgets/collection-view/client.js +5 -2
  148. package/plugins/runtime-modules/core/widgets/collection-view/config.js +8 -0
  149. package/plugins/runtime-modules/core/widgets/collection-view/site-address-binding.d.ts +55 -0
  150. package/plugins/runtime-modules/core/widgets/collection-view/site-address-binding.js +173 -0
  151. package/plugins/runtime-modules/core/widgets/collection-view/site-address-tiles.d.ts +48 -0
  152. package/plugins/runtime-modules/core/widgets/collection-view/site-address-tiles.js +67 -0
  153. package/plugins/runtime-modules/core/widgets/command-toolbar/config.d.ts +1 -1
  154. package/plugins/runtime-modules/core/widgets/description/config.d.ts +1 -1
  155. package/plugins/runtime-modules/core/widgets/entry-list/config.d.ts +1 -1
  156. package/plugins/runtime-modules/core/widgets/float-button/config.d.ts +1 -1
  157. package/plugins/runtime-modules/core/widgets/form/config.d.ts +1 -1
  158. package/plugins/runtime-modules/core/widgets/form/config.js +14 -1
  159. package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +1 -1
  160. package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +1 -1
  161. package/plugins/runtime-modules/core/widgets/record/client.js +2 -6
  162. package/plugins/runtime-modules/core/widgets/result/config.d.ts +1 -1
  163. package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +1 -1
  164. package/plugins/runtime-modules/core/widgets/table/client.js +30 -48
  165. package/plugins/runtime-modules/core/widgets/table/config.d.ts +3 -3
  166. package/plugins/runtime-modules/core/widgets/table/config.js +3 -0
  167. package/plugins/runtime-modules/core/widgets/thread-conversation/client.js +2 -2
  168. package/plugins/runtime-modules/core/widgets/thread-conversation/config.d.ts +6 -2
  169. package/plugins/runtime-modules/core/widgets/thread-conversation/config.js +6 -1
  170. package/plugins/runtime-modules/core/widgets/thread-widget-config.d.ts +10 -0
  171. package/plugins/runtime-modules/core/widgets/thread-widget-config.js +6 -0
  172. package/plugins/runtime-modules/core/widgets/tree/client.js +6 -6
  173. package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.d.ts +2 -0
  174. package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.js +2 -0
  175. package/plugins/runtime-modules/localization/trees/phi-default-editor-translations-page-tree.js +5 -0
  176. package/plugins/runtime-modules/revisions/controller/binding.d.ts +37 -0
  177. package/plugins/runtime-modules/revisions/controller/binding.js +75 -0
  178. package/plugins/runtime-modules/revisions/controller/client.d.ts +5 -0
  179. package/plugins/runtime-modules/revisions/controller/client.js +74 -50
  180. package/plugins/runtime-modules/revisions/controller/definition.d.ts +5 -0
  181. package/plugins/runtime-modules/revisions/controller/definition.js +10 -0
  182. package/plugins/runtime-modules/revisions/forms.js +1 -1
  183. package/plugins/runtime-modules/revisions/page-ids.d.ts +1 -1
  184. package/plugins/runtime-modules/revisions/page-ids.js +4 -1
  185. package/plugins/runtime-modules/revisions/services/options.js +14 -4
  186. package/plugins/runtime-modules/revisions/services/table.js +41 -21
  187. package/plugins/runtime-modules/revisions/trees/phi-default-builder-revisions-page-tree.js +76 -3
  188. package/plugins/runtime-modules/theme/controller/runtime.js +14 -2
  189. package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +39 -13
  190. package/plugins/runtime-modules/threads/client-data-providers.js +5 -0
  191. package/plugins/runtime-modules/threads/controller/client.js +62 -2
  192. package/plugins/runtime-modules/threads/controller/definition.js +48 -0
  193. package/plugins/runtime-modules/threads/data-providers.d.ts +22 -37
  194. package/plugins/runtime-modules/threads/data-providers.js +35 -24
  195. package/plugins/runtime-modules/threads/definition.d.ts +22 -37
  196. package/plugins/runtime-modules/threads/ids.d.ts +2 -0
  197. package/plugins/runtime-modules/threads/ids.js +2 -0
  198. package/plugins/runtime-modules/threads/services/customer-file-addresses.d.ts +30 -0
  199. package/plugins/runtime-modules/threads/services/customer-file-addresses.js +59 -0
  200. package/plugins/runtime-modules/threads/services/customer-file-read.d.ts +22 -0
  201. package/plugins/runtime-modules/threads/services/customer-file-read.js +101 -0
  202. package/plugins/runtime-modules/threads/services/customer-file-table.d.ts +14 -80
  203. package/plugins/runtime-modules/threads/services/customer-file-table.js +27 -112
  204. package/plugins/runtime-modules/user-management/trees/admin-users-access-label-set.d.ts +4 -0
  205. package/plugins/runtime-modules/user-management/trees/admin-users-access-label-set.js +4 -0
  206. package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-access-page-tree.js +15 -0
  207. package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-page-tree.js +5 -0
  208. package/server-helpers/runtime.js +0 -1
  209. package/styles/controls.css +4 -2
  210. package/styles/layout.css +7 -0
  211. package/theme/phi-antd-token-resolver.d.ts +8 -0
  212. package/theme/phi-antd-token-resolver.js +10 -0
  213. package/theme/phi-theme-color.d.ts +19 -0
  214. package/theme/phi-theme-color.js +42 -0
  215. package/theme/phi-theme-gradients.js +4 -22
  216. package/theme/phi-theme-palette-defaults.d.ts +16 -0
  217. package/theme/phi-theme-palette-defaults.js +103 -0
  218. package/types/cms-plugins.d.ts +6 -1
  219. package/types/collection-provider.d.ts +27 -0
  220. package/types/collection-signal-values.d.ts +2 -0
  221. package/types/collection-signal-values.js +23 -0
  222. package/types/collection-view-widget.d.ts +9 -0
  223. package/types/core-widget-placements.d.ts +6 -0
  224. package/types/signals.d.ts +2 -0
  225. package/types/signals.js +2 -0
  226. package/types/table-widget.d.ts +15 -1
  227. package/types/table-widget.js +0 -282
  228. package/types/tree-widget.d.ts +0 -1
  229. package/types/tree-widget.js +0 -60
  230. package/types/widget-runtime.d.ts +0 -1
  231. package/types.d.ts +1 -1
  232. package/types.js +1 -1
  233. package/plugins/runtime-modules/app/services/addresses-table.d.ts +0 -135
@@ -24,9 +24,12 @@ export declare const PHI_ACCOUNTING_PRODUCTS_PAGE_WIDGET_IDS: Readonly<Record<"w
24
24
  * Accounting Area beside the product directory.
25
25
  */
26
26
  export declare const PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_PRESET_KEY = "accounting-customer-file-page";
27
- /** The three Tables, the conversation, and the Reply dialog with its Form -- every one named in a route by another. */
27
+ /**
28
+ * The person and their addresses, the file and its note dialog, the conversations with the one chosen and
29
+ * its Reply dialog -- every one named in a route by another.
30
+ */
28
31
  export declare const PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_IDS: {
29
- widgets: Readonly<Record<"widgetConversation" | "widgetReplyForm" | "widgetReplyCommands" | "widgetPerson" | "widgetAddresses" | "widgetThreads", import("@phis/contracts/cms").PhiCmsInstanceId>>;
30
- overlays: Readonly<Record<"overlayReply", import("@phis/contracts/cms").PhiCmsInstanceId>>;
31
- layouts: Readonly<Record<"layoutReply" | "layoutReplyFooter", import("@phis/contracts/cms").PhiCmsInstanceId>>;
32
+ widgets: Readonly<Record<"widgetConversation" | "widgetReplyForm" | "widgetReplyCommands" | "widgetPerson" | "widgetAddresses" | "widgetFile" | "widgetThreads" | "widgetNoteForm" | "widgetNoteCommands", import("@phis/contracts/cms").PhiCmsInstanceId>>;
33
+ overlays: Readonly<Record<"overlayReply" | "overlayNote", import("@phis/contracts/cms").PhiCmsInstanceId>>;
34
+ layouts: Readonly<Record<"layoutReply" | "layoutReplyFooter" | "layoutNote" | "layoutNoteFooter", import("@phis/contracts/cms").PhiCmsInstanceId>>;
32
35
  };
@@ -37,16 +37,27 @@ const PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_PRESET = {
37
37
  ownerModuleId: PHI_ACCOUNTING_RUNTIME_MODULE_ID,
38
38
  presetKey: PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_PRESET_KEY,
39
39
  };
40
- /** The three Tables, the conversation, and the Reply dialog with its Form -- every one named in a route by another. */
40
+ /**
41
+ * The person and their addresses, the file and its note dialog, the conversations with the one chosen and
42
+ * its Reply dialog -- every one named in a route by another.
43
+ */
41
44
  export const PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_IDS = {
42
45
  widgets: createPhiPresetCmsInstanceIdMap(PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_PRESET, [
43
46
  "widgetPerson",
44
47
  "widgetAddresses",
48
+ "widgetFile",
45
49
  "widgetThreads",
46
50
  "widgetConversation",
51
+ "widgetNoteForm",
52
+ "widgetNoteCommands",
47
53
  "widgetReplyForm",
48
54
  "widgetReplyCommands",
49
55
  ]),
50
- overlays: createPhiPresetCmsInstanceIdMap(PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_PRESET, ["overlayReply"]),
51
- layouts: createPhiPresetCmsInstanceIdMap(PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_PRESET, ["layoutReply", "layoutReplyFooter"]),
56
+ overlays: createPhiPresetCmsInstanceIdMap(PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_PRESET, ["overlayNote", "overlayReply"]),
57
+ layouts: createPhiPresetCmsInstanceIdMap(PHI_ACCOUNTING_CUSTOMER_FILE_PAGE_PRESET, [
58
+ "layoutNote",
59
+ "layoutNoteFooter",
60
+ "layoutReply",
61
+ "layoutReplyFooter",
62
+ ]),
52
63
  };
@@ -10,6 +10,7 @@ export declare function getPhiAccountingCustomerFilePageLabels(options: PhiGloba
10
10
  picker: string;
11
11
  pickerHint: string;
12
12
  empty: string;
13
+ footer: string;
13
14
  columns: {
14
15
  displayName: string;
15
16
  name: string;
@@ -23,11 +24,6 @@ export declare function getPhiAccountingCustomerFilePageLabels(options: PhiGloba
23
24
  title: string;
24
25
  label: string;
25
26
  empty: string;
26
- columns: {
27
- name: string;
28
- address: string;
29
- purposes: string;
30
- };
31
27
  purposes: {
32
28
  billing: string;
33
29
  shipping: string;
@@ -39,6 +35,8 @@ export declare function getPhiAccountingCustomerFilePageLabels(options: PhiGloba
39
35
  title: string;
40
36
  label: string;
41
37
  empty: string;
38
+ emptyHint: string;
39
+ footer: string;
42
40
  columns: {
43
41
  subject: string;
44
42
  kind: string;
@@ -46,7 +44,6 @@ export declare function getPhiAccountingCustomerFilePageLabels(options: PhiGloba
46
44
  activity: string;
47
45
  };
48
46
  kinds: {
49
- file: string;
50
47
  direct: string;
51
48
  group: string;
52
49
  crossGroup: string;
@@ -59,8 +56,23 @@ export declare function getPhiAccountingCustomerFilePageLabels(options: PhiGloba
59
56
  locked: string;
60
57
  };
61
58
  };
62
- fileSubject: string;
59
+ file: {
60
+ title: string;
61
+ label: string;
62
+ empty: string;
63
+ add: string;
64
+ };
65
+ note: {
66
+ title: string;
67
+ save: string;
68
+ };
69
+ conversation: {
70
+ label: string;
71
+ empty: string;
72
+ };
63
73
  ownFile: string;
64
- noteLabel: string;
65
- replySendLabel: string;
74
+ reply: {
75
+ title: string;
76
+ send: string;
77
+ };
66
78
  }>;
@@ -4,7 +4,7 @@ import { definePhiRuntimeModuleLabelSet, definePhiMessageLabel, getPhiLabelSet }
4
4
  import { PHI_ACCOUNTING_RUNTIME_MODULE_IDENTITY } from "../ids";
5
5
  /**
6
6
  * What the customer file in the Accounting Area says: the member picker, the person's details, their
7
- * addresses, the file and the conversations they are in, and the Reply dialog. The conversation words
7
+ * addresses, their file with its note dialog, the conversations they are in with the Reply dialog. The conversation words
8
8
  * are its own rather than the conversations Page's, since a Module does not read another's Label Set.
9
9
  */
10
10
  const PHI_CUSTOMER_FILE_PAGE_LABEL_SET = definePhiRuntimeModuleLabelSet(PHI_ACCOUNTING_RUNTIME_MODULE_IDENTITY, {
@@ -20,6 +20,9 @@ const PHI_CUSTOMER_FILE_PAGE_LABEL_SET = definePhiRuntimeModuleLabelSet(PHI_ACCO
20
20
  person_picker_hint: definePhiMessageLabel("Search by name, e-mail address or telephone number."),
21
21
  person_empty: definePhiMessageLabel("Choose a member to open their file."),
22
22
  own_file: definePhiMessageLabel("This is your own record; it is not shown here."),
23
+ person_footer: definePhiMessageLabel("Member no. %1. Opening a file is written to the access log."),
24
+ // Core pages the conversations without a count: what this page holds, and which page it is.
25
+ threads_footer: "%1 on page %2",
23
26
  column_display_name: "Shown as",
24
27
  column_name: "Name",
25
28
  column_company: "Company",
@@ -29,18 +32,22 @@ const PHI_CUSTOMER_FILE_PAGE_LABEL_SET = definePhiRuntimeModuleLabelSet(PHI_ACCO
29
32
  addresses_title: "Addresses",
30
33
  addresses_label: "customer addresses",
31
34
  addresses_empty: definePhiMessageLabel("No address on file."),
32
- column_address_name: "Name",
33
- column_address: "Address",
34
- column_purposes: "Used for",
35
35
  purpose_billing: "Billing",
36
36
  purpose_shipping: "Shipping",
37
37
  purpose_default_billing: "Default billing",
38
38
  purpose_default_shipping: "Default shipping",
39
- threads_title: "File and conversations",
40
- threads_label: "customer threads",
41
- threads_empty: definePhiMessageLabel("Choose a member to see their file and the conversations they are in."),
42
- file_subject: "Customer file",
43
- kind_file: "File",
39
+ file_title: "File",
40
+ file_label: "customer file entries",
41
+ file_empty: definePhiMessageLabel("Choose a member to read their file."),
42
+ note_add: "Add note",
43
+ note_title: "Internal note",
44
+ note_save: "Add to file",
45
+ threads_title: "Conversations",
46
+ threads_label: "customer conversations",
47
+ threads_empty: definePhiMessageLabel("No conversations to show."),
48
+ threads_empty_hint: definePhiMessageLabel("Choose a member above: the conversations they are in that you may see are listed here."),
49
+ conversation_empty: definePhiMessageLabel("Choose a conversation to read."),
50
+ conversation_label: "customer conversation",
44
51
  kind_direct: "Direct",
45
52
  kind_group: "Group",
46
53
  kind_cross_group: "Between groups",
@@ -53,7 +60,7 @@ const PHI_CUSTOMER_FILE_PAGE_LABEL_SET = definePhiRuntimeModuleLabelSet(PHI_ACCO
53
60
  state_open: { text: "Open", ctx: "Web UI label, state" },
54
61
  state_archived: "Archived",
55
62
  state_locked: "Locked",
56
- note_label: "Internal note",
63
+ reply_title: "Reply",
57
64
  reply_send_label: "Send",
58
65
  },
59
66
  });
@@ -69,6 +76,7 @@ export async function getPhiAccountingCustomerFilePageLabels(options) {
69
76
  picker: labels.person_picker,
70
77
  pickerHint: labels.person_picker_hint,
71
78
  empty: labels.person_empty,
79
+ footer: labels.person_footer,
72
80
  columns: {
73
81
  displayName: labels.column_display_name,
74
82
  name: labels.column_name,
@@ -82,7 +90,6 @@ export async function getPhiAccountingCustomerFilePageLabels(options) {
82
90
  title: labels.addresses_title,
83
91
  label: labels.addresses_label,
84
92
  empty: labels.addresses_empty,
85
- columns: { name: labels.column_address_name, address: labels.column_address, purposes: labels.column_purposes },
86
93
  purposes: {
87
94
  billing: labels.purpose_billing,
88
95
  shipping: labels.purpose_shipping,
@@ -94,6 +101,8 @@ export async function getPhiAccountingCustomerFilePageLabels(options) {
94
101
  title: labels.threads_title,
95
102
  label: labels.threads_label,
96
103
  empty: labels.threads_empty,
104
+ emptyHint: labels.threads_empty_hint,
105
+ footer: labels.threads_footer,
97
106
  columns: {
98
107
  subject: labels.column_subject,
99
108
  kind: labels.column_kind,
@@ -101,7 +110,6 @@ export async function getPhiAccountingCustomerFilePageLabels(options) {
101
110
  activity: labels.column_activity,
102
111
  },
103
112
  kinds: {
104
- file: labels.kind_file,
105
113
  direct: labels.kind_direct,
106
114
  group: labels.kind_group,
107
115
  crossGroup: labels.kind_cross_group,
@@ -114,9 +122,15 @@ export async function getPhiAccountingCustomerFilePageLabels(options) {
114
122
  locked: labels.state_locked,
115
123
  },
116
124
  },
117
- fileSubject: labels.file_subject,
125
+ file: {
126
+ title: labels.file_title,
127
+ label: labels.file_label,
128
+ empty: labels.file_empty,
129
+ add: labels.note_add,
130
+ },
131
+ note: { title: labels.note_title, save: labels.note_save },
132
+ conversation: { label: labels.conversation_label, empty: labels.conversation_empty },
118
133
  ownFile: labels.own_file,
119
- noteLabel: labels.note_label,
120
- replySendLabel: labels.reply_send_label,
134
+ reply: { title: labels.reply_title, send: labels.reply_send_label },
121
135
  };
122
136
  }
@@ -6,15 +6,18 @@ import type { PhiBlockRuntime } from "../../../../types";
6
6
  *
7
7
  * A Page of the Accounting Module, beside the product directory, built from what the conversations Page
8
8
  * already is and bound by Foundation names only (`constants/customer-file.ts`,
9
- * `constants/threads-controller-address.ts`): the Table Provider and the Conversations Controller are the
10
- * conversations Module's, which is active in the Accounting Area by default and has to be for this Page
11
- * to read anything. The person Table's filter is Core's member picker
9
+ * `constants/threads-controller-address.ts`): the Table and Collection Providers and the Conversations
10
+ * Controller are the conversations Module's, which is active in the Accounting Area by default and has to
11
+ * be for this Page to read anything. The person Table's filter is Core's member picker
12
12
  * (the `site-members` options with Core's search, which matches names, e-mail addresses and telephone
13
- * numbers); its query goes to the addresses and the threads Tables, so one choice fills all three. The
14
- * threads Table lists the person's file first, and choosing a row is the conversations Page's choreography
15
- * unchanged: the Conversations Controller makes the selection a thread, the conversation reads it, and its
16
- * Reply opens Core's Reply Form in a dialog -- with the internal note offered, which is every message of a
17
- * file anyway.
13
+ * numbers); its query goes to the conversations Table and to the Conversations Controller, so one choice
14
+ * fills the Page with one request: the Controller hands the member to the addresses tiles as binding params
15
+ * (Core's address renderer, read-only), joins the Tables' read for the file's id and hands it to the file
16
+ * panel, a conversation reader whose "Add note" opens Core's Reply Form
17
+ * in a dialog of its own (every message of a file is internal). The conversations Table lists the person's
18
+ * conversations, the file not among them, and choosing a row is the conversations Page's choreography
19
+ * unchanged: the Controller makes the selection a thread, the conversation reader below reads it, and its
20
+ * Reply opens the Reply dialog with the internal note offered.
18
21
  *
19
22
  * The Page is for the holders of `accounting` (`PHI_ACCOUNTING_CUSTOMER_FILE_ACCESS`), who read every
20
23
  * field, the addresses included. A viewer the Area admits without it is told so in the Page and nothing is