@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.
- package/components/cms/phi-cms-layout-renderer.js +15 -7
- package/components/cms/phi-cms-render-diagnostic-client.d.ts +3 -1
- package/components/cms/phi-cms-render-diagnostic-client.js +4 -3
- package/components/cms/phi-cms-render-diagnostic.d.ts +8 -2
- package/components/cms/phi-cms-render-diagnostic.js +12 -2
- package/components/cms/phi-cms-render-error-boundary.d.ts +2 -0
- package/components/cms/phi-cms-render-error-boundary.js +1 -1
- package/components/cms/phi-cms-root-layout.js +3 -1
- package/components/controls/phi-media-picker-control.d.ts +9 -0
- package/components/controls/phi-media-picker-control.js +1 -1
- package/components/controls/phi-popover-control.js +4 -1
- package/components/controls/phi-table-control.d.ts +7 -1
- package/components/controls/phi-table-control.js +23 -8
- package/components/forms/form-descriptor-field-check.d.ts +18 -0
- package/components/forms/form-descriptor-field-check.js +41 -0
- package/components/forms/form-descriptor-runtime-client.js +11 -10
- package/components/forms/form-record-source.d.ts +38 -0
- package/components/forms/form-record-source.js +48 -0
- package/components/forms/shared-form-descriptors.d.ts +0 -34
- package/components/forms/shared-form-descriptors.js +0 -6
- package/components/forms/shared-form-ids.d.ts +1 -1
- package/components/forms/shared-form-ids.js +1 -1
- package/components/media/media-settings-labels.d.ts +1 -0
- package/components/media/media-settings-labels.js +2 -0
- package/components/media/phi-media-picker-binding.d.ts +41 -33
- package/components/media/phi-media-picker-binding.js +2 -1
- package/components/media/use-media-library-add-picker.d.ts +33 -32
- package/components/overlays/phi-overlay-container-client.js +11 -9
- package/components/regions/presets/phi-settings-page-shell-tree.d.ts +7 -0
- package/components/regions/presets/phi-settings-page-shell-tree.js +3 -3
- package/components/shell/phi-icon-names.d.ts +3 -0
- package/components/shell/phi-icon-names.js +3 -0
- package/components/shell/phi-icon.d.ts +5 -7
- package/components/shell/phi-icon.js +8 -21
- package/components/tables/client/phi-table-binding-params.d.ts +24 -0
- package/components/tables/client/phi-table-binding-params.js +39 -0
- package/components/tables/client/phi-table-binding.d.ts +1 -3
- package/components/tables/client/phi-table-binding.js +5 -9
- package/components/widgets/client/shared/phi-button-icons.d.ts +6 -4
- package/components/widgets/client/shared/phi-button-icons.js +8 -12
- package/components/widgets/client/shared/phi-collection-binding-params.d.ts +8 -0
- package/components/widgets/client/shared/phi-collection-binding-params.js +13 -0
- package/components/widgets/client/shared/phi-collection-provider.d.ts +11 -1
- package/components/widgets/client/shared/phi-collection-provider.js +5 -0
- package/components/widgets/client/shared/phi-collection-view-binding.d.ts +1 -0
- package/components/widgets/client/shared/phi-command-buttons.d.ts +16 -0
- package/components/widgets/client/shared/phi-command-buttons.js +9 -1
- package/components/widgets/label-sets/admin-users.d.ts +1 -0
- package/components/widgets/label-sets/admin-users.js +2 -0
- package/components/widgets/label-sets/builder-modules.js +4 -0
- package/components/widgets/label-sets/profile.d.ts +0 -16
- package/components/widgets/label-sets/profile.js +0 -37
- package/components/widgets/label-sets/registration.d.ts +0 -1
- package/components/widgets/label-sets/registration.js +0 -2
- package/components/widgets/label-sets/revisions.js +2 -0
- package/components/widgets/label-sets/signals.js +2 -0
- package/components/widgets/label-types/builder-modules.d.ts +4 -0
- package/components/widgets/label-types/builder-modules.js +2 -0
- package/components/widgets/label-types/revisions.d.ts +2 -0
- package/components/widgets/label-types/revisions.js +2 -1
- package/components/widgets/label-types/signals.d.ts +2 -0
- package/components/widgets/label-types/signals.js +1 -0
- package/components/widgets/shared/widget-failure-audience.d.ts +7 -0
- package/components/widgets/shared/widget-failure-audience.js +21 -0
- package/components/widgets/shared/widget-failure-client.js +5 -2
- package/components/widgets/shared/widget-failure-notice-client.d.ts +6 -0
- package/components/widgets/shared/widget-failure-notice-client.js +10 -0
- package/components/widgets/shared/widget-failure-notice.d.ts +6 -0
- package/components/widgets/shared/widget-failure-notice.js +17 -0
- package/components/widgets/shared/widget-failure-staff.d.ts +3 -0
- package/components/widgets/shared/widget-failure-staff.js +18 -0
- package/components/widgets/shared/widget-failure.d.ts +9 -6
- package/components/widgets/shared/widget-failure.js +0 -9
- package/components/widgets/shared/widget-failure.server.d.ts +4 -2
- package/components/widgets/shared/widget-failure.server.js +8 -3
- package/constants/customer-file.d.ts +12 -3
- package/constants/customer-file.js +12 -3
- package/constants/runtime-module-ownership.js +4 -3
- package/constants/site-address.d.ts +9 -0
- package/constants/site-address.js +10 -0
- package/constants/table-loading.d.ts +14 -0
- package/constants/table-loading.js +14 -0
- package/constants.d.ts +2 -1
- package/constants.js +3 -1
- package/gateway/site-cms-write-validation.js +19 -3
- package/helpers/announced-action.d.ts +17 -0
- package/helpers/announced-action.js +29 -0
- package/helpers/phi-metadata.d.ts +0 -8
- package/helpers/phi-metadata.js +1 -10
- package/helpers/phi-site-description.d.ts +11 -0
- package/helpers/phi-site-description.js +13 -0
- package/helpers/preset-form-check.d.ts +14 -0
- package/helpers/preset-form-check.js +12 -0
- package/helpers/preset-table-check.d.ts +19 -15
- package/helpers/preset-table-check.js +33 -39
- package/helpers/record-widget-binding.d.ts +10 -0
- package/helpers/record-widget-binding.js +35 -0
- package/helpers/record-widget.d.ts +1 -10
- package/helpers/record-widget.js +4 -33
- package/helpers/table-widget-binding.d.ts +12 -0
- package/helpers/table-widget-binding.js +296 -0
- package/helpers/tree-widget-binding.d.ts +19 -0
- package/helpers/tree-widget-binding.js +72 -0
- package/helpers/typed-confirmation.d.ts +9 -0
- package/helpers/typed-confirmation.js +13 -0
- package/helpers/widget-binding-check.d.ts +22 -0
- package/helpers/widget-binding-check.js +91 -0
- package/module-page-check.d.ts +2 -0
- package/module-page-check.js +2 -0
- package/next/root-route.js +2 -1
- package/package.json +1 -1
- package/plugins/runtime-modules/accounting/ids.d.ts +7 -4
- package/plugins/runtime-modules/accounting/ids.js +14 -3
- package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.d.ts +21 -9
- package/plugins/runtime-modules/accounting/trees/accounting-customer-file-label-set.js +29 -15
- package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.d.ts +11 -8
- package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.js +206 -137
- package/plugins/runtime-modules/app/client-data-providers.js +1 -1
- package/plugins/runtime-modules/app/data-providers.d.ts +14 -69
- package/plugins/runtime-modules/app/data-providers.js +19 -54
- package/plugins/runtime-modules/app/definition.d.ts +8 -80
- package/plugins/runtime-modules/app/forms.d.ts +1 -16
- package/plugins/runtime-modules/app/forms.js +0 -59
- package/plugins/runtime-modules/app/ids.d.ts +2 -1
- package/plugins/runtime-modules/app/ids.js +3 -2
- package/plugins/runtime-modules/app/module.d.ts +8 -80
- package/plugins/runtime-modules/app/services/addresses-collection.d.ts +59 -0
- package/plugins/runtime-modules/app/services/{addresses-table.js → addresses-collection.js} +23 -19
- package/plugins/runtime-modules/app/trees/account-addresses-panel.d.ts +10 -6
- package/plugins/runtime-modules/app/trees/account-addresses-panel.js +37 -73
- package/plugins/runtime-modules/app/trees/addresses-label-set.d.ts +0 -5
- package/plugins/runtime-modules/app/trees/addresses-label-set.js +2 -6
- package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.d.ts +1 -2
- package/plugins/runtime-modules/app/trees/phi-default-app-profile-page-tree.js +1 -17
- package/plugins/runtime-modules/app/trees/profile-label-set.d.ts +0 -2
- package/plugins/runtime-modules/app/trees/profile-label-set.js +2 -14
- package/plugins/runtime-modules/asset/trees/phi-default-admin-media-settings-page-tree.js +5 -0
- package/plugins/runtime-modules/builder/clients/inspector-config-field.js +16 -6
- package/plugins/runtime-modules/builder/clients/inspector-image-field.js +3 -1
- package/plugins/runtime-modules/builder/clients/inspector-section-widget.js +3 -1
- package/plugins/runtime-modules/builder/controller/signal-wiring-controller.js +5 -1
- package/plugins/runtime-modules/builder/signal-wiring-options.js +9 -2
- package/plugins/runtime-modules/builder/trees/phi-builder-inspector-area-overlay-tree.server.js +5 -0
- package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.js +14 -1
- package/plugins/runtime-modules/client-manifests/common.js +6 -0
- package/plugins/runtime-modules/core/widgets/card/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/collection-view/client.js +5 -2
- package/plugins/runtime-modules/core/widgets/collection-view/config.js +8 -0
- package/plugins/runtime-modules/core/widgets/collection-view/site-address-binding.d.ts +55 -0
- package/plugins/runtime-modules/core/widgets/collection-view/site-address-binding.js +173 -0
- package/plugins/runtime-modules/core/widgets/collection-view/site-address-tiles.d.ts +48 -0
- package/plugins/runtime-modules/core/widgets/collection-view/site-address-tiles.js +67 -0
- package/plugins/runtime-modules/core/widgets/command-toolbar/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/description/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/entry-list/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/float-button/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/form/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/form/config.js +14 -1
- package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/record/client.js +2 -6
- package/plugins/runtime-modules/core/widgets/result/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +1 -1
- package/plugins/runtime-modules/core/widgets/table/client.js +30 -48
- package/plugins/runtime-modules/core/widgets/table/config.d.ts +3 -3
- package/plugins/runtime-modules/core/widgets/table/config.js +3 -0
- package/plugins/runtime-modules/core/widgets/thread-conversation/client.js +2 -2
- package/plugins/runtime-modules/core/widgets/thread-conversation/config.d.ts +6 -2
- package/plugins/runtime-modules/core/widgets/thread-conversation/config.js +6 -1
- package/plugins/runtime-modules/core/widgets/thread-widget-config.d.ts +10 -0
- package/plugins/runtime-modules/core/widgets/thread-widget-config.js +6 -0
- package/plugins/runtime-modules/core/widgets/tree/client.js +6 -6
- package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.d.ts +2 -0
- package/plugins/runtime-modules/localization/trees/editor-translations-widget-label-set.js +2 -0
- package/plugins/runtime-modules/localization/trees/phi-default-editor-translations-page-tree.js +5 -0
- package/plugins/runtime-modules/revisions/controller/binding.d.ts +37 -0
- package/plugins/runtime-modules/revisions/controller/binding.js +75 -0
- package/plugins/runtime-modules/revisions/controller/client.d.ts +5 -0
- package/plugins/runtime-modules/revisions/controller/client.js +74 -50
- package/plugins/runtime-modules/revisions/controller/definition.d.ts +5 -0
- package/plugins/runtime-modules/revisions/controller/definition.js +10 -0
- package/plugins/runtime-modules/revisions/forms.js +1 -1
- package/plugins/runtime-modules/revisions/page-ids.d.ts +1 -1
- package/plugins/runtime-modules/revisions/page-ids.js +4 -1
- package/plugins/runtime-modules/revisions/services/options.js +14 -4
- package/plugins/runtime-modules/revisions/services/table.js +41 -21
- package/plugins/runtime-modules/revisions/trees/phi-default-builder-revisions-page-tree.js +76 -3
- package/plugins/runtime-modules/theme/controller/runtime.js +14 -2
- package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +39 -13
- package/plugins/runtime-modules/threads/client-data-providers.js +5 -0
- package/plugins/runtime-modules/threads/controller/client.js +62 -2
- package/plugins/runtime-modules/threads/controller/definition.js +48 -0
- package/plugins/runtime-modules/threads/data-providers.d.ts +22 -37
- package/plugins/runtime-modules/threads/data-providers.js +35 -24
- package/plugins/runtime-modules/threads/definition.d.ts +22 -37
- package/plugins/runtime-modules/threads/ids.d.ts +2 -0
- package/plugins/runtime-modules/threads/ids.js +2 -0
- package/plugins/runtime-modules/threads/services/customer-file-addresses.d.ts +30 -0
- package/plugins/runtime-modules/threads/services/customer-file-addresses.js +59 -0
- package/plugins/runtime-modules/threads/services/customer-file-read.d.ts +22 -0
- package/plugins/runtime-modules/threads/services/customer-file-read.js +101 -0
- package/plugins/runtime-modules/threads/services/customer-file-table.d.ts +14 -80
- package/plugins/runtime-modules/threads/services/customer-file-table.js +27 -112
- package/plugins/runtime-modules/user-management/trees/admin-users-access-label-set.d.ts +4 -0
- package/plugins/runtime-modules/user-management/trees/admin-users-access-label-set.js +4 -0
- package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-access-page-tree.js +15 -0
- package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-page-tree.js +5 -0
- package/server-helpers/runtime.js +0 -1
- package/styles/controls.css +4 -2
- package/styles/layout.css +7 -0
- package/theme/phi-antd-token-resolver.d.ts +8 -0
- package/theme/phi-antd-token-resolver.js +10 -0
- package/theme/phi-theme-color.d.ts +19 -0
- package/theme/phi-theme-color.js +42 -0
- package/theme/phi-theme-gradients.js +4 -22
- package/theme/phi-theme-palette-defaults.d.ts +16 -0
- package/theme/phi-theme-palette-defaults.js +103 -0
- package/types/cms-plugins.d.ts +6 -1
- package/types/collection-provider.d.ts +27 -0
- package/types/collection-signal-values.d.ts +2 -0
- package/types/collection-signal-values.js +23 -0
- package/types/collection-view-widget.d.ts +9 -0
- package/types/core-widget-placements.d.ts +6 -0
- package/types/signals.d.ts +2 -0
- package/types/signals.js +2 -0
- package/types/table-widget.d.ts +15 -1
- package/types/table-widget.js +0 -282
- package/types/tree-widget.d.ts +0 -1
- package/types/tree-widget.js +0 -60
- package/types/widget-runtime.d.ts +0 -1
- package/types.d.ts +1 -1
- package/types.js +1 -1
- 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
|
-
/**
|
|
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
|
-
/**
|
|
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, [
|
|
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
|
-
|
|
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
|
-
|
|
65
|
-
|
|
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,
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
120
|
-
replySendLabel: labels.reply_send_label,
|
|
134
|
+
reply: { title: labels.reply_title, send: labels.reply_send_label },
|
|
121
135
|
};
|
|
122
136
|
}
|
package/plugins/runtime-modules/accounting/trees/phi-default-accounting-customer-file-page-tree.d.ts
CHANGED
|
@@ -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
|
|
10
|
-
* conversations Module's, which is active in the Accounting Area by default and has to
|
|
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
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* file
|
|
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
|