@acorex-platform/module-person-core-client 0.0.32 → 0.0.33

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 (61) hide show
  1. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-contact-assignment.mjs +229 -0
  2. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-contact-assignment.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-contact-role.mjs +215 -0
  4. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-contact-role.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-education-level.mjs +197 -0
  6. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-education-level.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-gender.mjs +197 -0
  8. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-gender.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-marital-status.mjs +197 -0
  10. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-marital-status.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-person-identifier-type.mjs +267 -0
  12. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-person-identifier-type.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-person-relationship.mjs +231 -0
  14. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-person-relationship.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-person-title.mjs +197 -0
  16. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-person-title.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-person.mjs +567 -0
  18. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-person.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-religion.mjs +197 -0
  20. package/fesm2022/acorex-platform-module-person-core-client-contracts-entities-religion.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-acorex-platform-module-person-core-client-contracts-entity-catalog-CJmzbjJI.mjs +106 -0
  22. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-acorex-platform-module-person-core-client-contracts-entity-catalog-CJmzbjJI.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-contact-assignment.entity-BtVczZ89.mjs +151 -0
  24. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-contact-assignment.entity-BtVczZ89.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-contact-role.entity-uqPhUsRm.mjs +137 -0
  26. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-contact-role.entity-uqPhUsRm.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-education-level.entity-C1pz4Bh2.mjs +119 -0
  28. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-education-level.entity-C1pz4Bh2.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-gender.entity-BaoSo66c.mjs +119 -0
  30. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-gender.entity-BaoSo66c.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-marital-status.entity-NdZ6U6Ue.mjs +119 -0
  32. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-marital-status.entity-NdZ6U6Ue.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-person-identifier-type.entity-D_XVLaZw.mjs +189 -0
  34. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-person-identifier-type.entity-D_XVLaZw.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-person-relationship.entity-Bt_Y9UTE.mjs +153 -0
  36. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-person-relationship.entity-Bt_Y9UTE.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-person-title.entity-B5jB67Eh.mjs +119 -0
  38. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-person-title.entity-B5jB67Eh.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-person.entity-Bx2b-wa4.mjs +489 -0
  40. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-person.entity-Bx2b-wa4.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-religion.entity-BUHOGYxG.mjs +119 -0
  42. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog-religion.entity-BUHOGYxG.mjs.map +1 -0
  43. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog.mjs +2 -0
  44. package/fesm2022/acorex-platform-module-person-core-client-contracts-entity-catalog.mjs.map +1 -0
  45. package/fesm2022/acorex-platform-module-person-core-client-contracts.mjs.map +1 -1
  46. package/fesm2022/acorex-platform-module-person-core-client-local-entities.mjs +38 -0
  47. package/fesm2022/acorex-platform-module-person-core-client-local-entities.mjs.map +1 -0
  48. package/package.json +50 -1
  49. package/types/acorex-platform-module-person-core-client-contracts-entities-contact-assignment.d.ts +5 -0
  50. package/types/acorex-platform-module-person-core-client-contracts-entities-contact-role.d.ts +5 -0
  51. package/types/acorex-platform-module-person-core-client-contracts-entities-education-level.d.ts +5 -0
  52. package/types/acorex-platform-module-person-core-client-contracts-entities-gender.d.ts +5 -0
  53. package/types/acorex-platform-module-person-core-client-contracts-entities-marital-status.d.ts +5 -0
  54. package/types/acorex-platform-module-person-core-client-contracts-entities-person-identifier-type.d.ts +5 -0
  55. package/types/acorex-platform-module-person-core-client-contracts-entities-person-relationship.d.ts +5 -0
  56. package/types/acorex-platform-module-person-core-client-contracts-entities-person-title.d.ts +5 -0
  57. package/types/acorex-platform-module-person-core-client-contracts-entities-person.d.ts +5 -0
  58. package/types/acorex-platform-module-person-core-client-contracts-entities-religion.d.ts +5 -0
  59. package/types/acorex-platform-module-person-core-client-contracts-entity-catalog.d.ts +10 -0
  60. package/types/acorex-platform-module-person-core-client-contracts.d.ts +3 -3
  61. package/types/acorex-platform-module-person-core-client-local-entities.d.ts +12 -0
@@ -0,0 +1,189 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-person-core-client-contracts-entity-catalog-acorex-platform-module-person-core-client-contracts-entity-catalog-CJmzbjJI.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity Factory ----
7
+ async function personIdentifierTypeFactory() {
8
+ const entityDef = {
9
+ module: RootConfig.module.name,
10
+ name: RootConfig.entities.personIdentifierType.name,
11
+ title: RootConfig.entities.personIdentifierType.title,
12
+ icon: RootConfig.entities.personIdentifierType.icon,
13
+ plugins: [{ name: 'archive' }],
14
+ formats: {
15
+ individual: RootConfig.entities.personIdentifierType.title,
16
+ plural: RootConfig.entities.personIdentifierType.titlePlural,
17
+ searchResult: {
18
+ title: RootConfig.entities.personIdentifierType.title,
19
+ description: '@person-core:person-identifier-types.entities.person-identifier-type.search-result-description',
20
+ },
21
+ },
22
+ groups: [
23
+ { id: 'basic-info', title: '@general:terms.interface.basic-info' },
24
+ { id: 'validation', title: '@general:terms.validation.validation' },
25
+ ],
26
+ properties: [
27
+ {
28
+ name: 'id',
29
+ title: '@general:terms.common.id',
30
+ groupId: 'basic-info',
31
+ schema: {
32
+ dataType: 'uuid',
33
+ visible: false,
34
+ readonly: true,
35
+ unique: { enabled: true },
36
+ },
37
+ },
38
+ {
39
+ name: 'title',
40
+ title: '@general:terms.common.title',
41
+ groupId: 'basic-info',
42
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
43
+ schema: {
44
+ dataType: 'string',
45
+ interface: { type: AXPWidgetsList.Editors.TextBox },
46
+ },
47
+ validations: [{ rule: 'required' }],
48
+ },
49
+ {
50
+ name: 'description',
51
+ title: '@general:terms.common.description',
52
+ groupId: 'basic-info',
53
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
54
+ schema: {
55
+ dataType: 'string',
56
+ interface: {
57
+ type: AXPWidgetsList.Editors.LargeTextBox,
58
+ options: { rows: 3 },
59
+ },
60
+ },
61
+ },
62
+ {
63
+ name: 'scope',
64
+ title: '@person-core:person-identifier-types.entities.person-identifier-type.fields.scope',
65
+ groupId: 'basic-info',
66
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
67
+ schema: {
68
+ dataType: 'string',
69
+ interface: {
70
+ type: AXPWidgetsList.Editors.SelectBox,
71
+ options: {
72
+ valueField: 'value',
73
+ textField: 'text',
74
+ //TODO better implementation of this
75
+ dataSource: [
76
+ { value: 'global', text: '@person-core:person-identifier-types.entities.person-identifier-type.fields.scope.options.global' },
77
+ { value: 'national', text: '@person-core:person-identifier-types.entities.person-identifier-type.fields.scope.options.national' },
78
+ { value: 'regional', text: '@person-core:person-identifier-types.entities.person-identifier-type.fields.scope.options.regional' },
79
+ ],
80
+ },
81
+ },
82
+ },
83
+ validations: [{ rule: 'required' }],
84
+ },
85
+ {
86
+ name: 'formatRegex',
87
+ title: '@general:terms.validation.regex',
88
+ groupId: 'validation',
89
+ options: { sort: { enabled: false }, filter: { advance: { enabled: true }, inline: { enabled: false } } },
90
+ schema: {
91
+ dataType: 'string',
92
+ interface: { type: AXPWidgetsList.Editors.TextBox },
93
+ },
94
+ },
95
+ {
96
+ name: 'minLength',
97
+ title: '@general:terms.validation.min-length',
98
+ groupId: 'validation',
99
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: false } } },
100
+ schema: {
101
+ dataType: 'number',
102
+ interface: {
103
+ type: AXPWidgetsList.Editors.NumberBox,
104
+ options: { minValue: 1, maxValue: 100 },
105
+ },
106
+ },
107
+ },
108
+ {
109
+ name: 'maxLength',
110
+ title: '@general:terms.validation.max-length',
111
+ groupId: 'validation',
112
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: false } } },
113
+ schema: {
114
+ dataType: 'number',
115
+ interface: {
116
+ type: AXPWidgetsList.Editors.NumberBox,
117
+ options: { minValue: 1, maxValue: 1000 },
118
+ },
119
+ },
120
+ },
121
+ {
122
+ name: 'isUnique',
123
+ title: '@general:terms.status.states.is-unique',
124
+ groupId: 'validation',
125
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
126
+ schema: {
127
+ dataType: 'boolean',
128
+ interface: { type: AXPWidgetsList.Editors.ToggleSwitch },
129
+ },
130
+ },
131
+ ],
132
+ columns: [
133
+ { name: 'title', options: { width: '200px', order: 1 } },
134
+ { name: 'scope', options: { width: '120px', order: 2 } },
135
+ { name: 'description', options: { width: '280px', order: 3 } },
136
+ ],
137
+ interfaces: {
138
+ master: {
139
+ create: {
140
+ sections: [{ id: 'basic-info' }, { id: 'validation' }],
141
+ properties: [
142
+ { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
143
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
144
+ { name: 'scope', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
145
+ { name: 'formatRegex', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
146
+ { name: 'minLength', layout: { positions: { lg: { colSpan: 3, order: 5 } } } },
147
+ { name: 'maxLength', layout: { positions: { lg: { colSpan: 3, order: 6 } } } },
148
+ { name: 'isUnique', layout: { positions: { lg: { colSpan: 3, order: 7 } } } },
149
+ ],
150
+ },
151
+ update: {
152
+ sections: [{ id: 'basic-info' }, { id: 'validation' }],
153
+ properties: [
154
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
155
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
156
+ { name: 'scope', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
157
+ { name: 'formatRegex', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
158
+ { name: 'minLength', layout: { positions: { lg: { colSpan: 3, order: 6 } } } },
159
+ { name: 'maxLength', layout: { positions: { lg: { colSpan: 3, order: 7 } } } },
160
+ { name: 'isUnique', layout: { positions: { lg: { colSpan: 3, order: 8 } } } },
161
+ ],
162
+ },
163
+ single: {
164
+ title: '{{title}}',
165
+ sections: [{ id: 'basic-info' }, { id: 'validation' }],
166
+ properties: [
167
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
168
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
169
+ { name: 'scope', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
170
+ { name: 'formatRegex', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
171
+ { name: 'minLength', layout: { positions: { lg: { colSpan: 3, order: 6 } } } },
172
+ { name: 'maxLength', layout: { positions: { lg: { colSpan: 3, order: 7 } } } },
173
+ { name: 'isUnique', layout: { positions: { lg: { colSpan: 3, order: 8 } } } },
174
+ ],
175
+ actions: [...entityMasterRecordActions()],
176
+ },
177
+ list: {
178
+ actions: [...entityMasterCrudActions()],
179
+ views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
180
+ },
181
+ },
182
+ },
183
+ };
184
+ return entityDef;
185
+ }
186
+ //#endregion
187
+
188
+ export { personIdentifierTypeFactory };
189
+ //# sourceMappingURL=acorex-platform-module-person-core-client-contracts-entity-catalog-person-identifier-type.entity-D_XVLaZw.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-person-core-client-contracts-entity-catalog-person-identifier-type.entity-D_XVLaZw.mjs","sources":["../../../../libs/modules/person-core/contracts/src/entities/person-identifier-type/person-identifier-type.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function personIdentifierTypeFactory(): Promise<AXPEntity> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.personIdentifierType.name,\n title: RootConfig.entities.personIdentifierType.title,\n icon: RootConfig.entities.personIdentifierType.icon,\n plugins: [{ name: 'archive' }],\n formats: {\n individual: RootConfig.entities.personIdentifierType.title,\n plural: RootConfig.entities.personIdentifierType.titlePlural,\n searchResult: {\n title: RootConfig.entities.personIdentifierType.title,\n description: '@person-core:person-identifier-types.entities.person-identifier-type.search-result-description',\n },\n },\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n { id: 'validation', title: '@general:terms.validation.validation' },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: { rows: 3 },\n },\n },\n },\n {\n name: 'scope',\n title: '@person-core:person-identifier-types.entities.person-identifier-type.fields.scope',\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n //TODO better implementation of this\n dataSource: [\n { value: 'global', text: '@person-core:person-identifier-types.entities.person-identifier-type.fields.scope.options.global' },\n { value: 'national', text: '@person-core:person-identifier-types.entities.person-identifier-type.fields.scope.options.national' },\n { value: 'regional', text: '@person-core:person-identifier-types.entities.person-identifier-type.fields.scope.options.regional' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'formatRegex',\n title: '@general:terms.validation.regex',\n groupId: 'validation',\n options: { sort: { enabled: false }, filter: { advance: { enabled: true }, inline: { enabled: false } } },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'minLength',\n title: '@general:terms.validation.min-length',\n groupId: 'validation',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: false } } },\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: { minValue: 1, maxValue: 100 },\n },\n },\n },\n {\n name: 'maxLength',\n title: '@general:terms.validation.max-length',\n groupId: 'validation',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: false } } },\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: { minValue: 1, maxValue: 1000 },\n },\n },\n },\n {\n name: 'isUnique',\n title: '@general:terms.status.states.is-unique',\n groupId: 'validation',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'boolean',\n interface: { type: AXPWidgetsList.Editors.ToggleSwitch },\n },\n },\n ],\n columns: [\n { name: 'title', options: { width: '200px', order: 1 } },\n { name: 'scope', options: { width: '120px', order: 2 } },\n { name: 'description', options: { width: '280px', order: 3 } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'validation' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'scope', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'formatRegex', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'minLength', layout: { positions: { lg: { colSpan: 3, order: 5 } } } },\n { name: 'maxLength', layout: { positions: { lg: { colSpan: 3, order: 6 } } } },\n { name: 'isUnique', layout: { positions: { lg: { colSpan: 3, order: 7 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'validation' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'scope', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'formatRegex', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'minLength', layout: { positions: { lg: { colSpan: 3, order: 6 } } } },\n { name: 'maxLength', layout: { positions: { lg: { colSpan: 3, order: 7 } } } },\n { name: 'isUnique', layout: { positions: { lg: { colSpan: 3, order: 8 } } } },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [{ id: 'basic-info' }, { id: 'validation' }],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'scope', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'formatRegex', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },\n { name: 'minLength', layout: { positions: { lg: { colSpan: 3, order: 6 } } } },\n { name: 'maxLength', layout: { positions: { lg: { colSpan: 3, order: 7 } } } },\n { name: 'isUnique', layout: { positions: { lg: { colSpan: 3, order: 8 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],\n },\n },\n },\n };\n\n return entity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ACxE,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
@@ -0,0 +1,153 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-person-core-client-contracts-entity-catalog-acorex-platform-module-person-core-client-contracts-entity-catalog-CJmzbjJI.mjs';
4
+
5
+ //#endregion
6
+ async function personRelationshipFactory() {
7
+ const entityDef = {
8
+ module: RootConfig.module.name,
9
+ name: RootConfig.entities.personRelationship.name,
10
+ title: RootConfig.entities.personRelationship.title,
11
+ icon: RootConfig.entities.personRelationship.icon,
12
+ plugins: [{ name: 'notes' }],
13
+ formats: {
14
+ individual: RootConfig.entities.personRelationship.title,
15
+ plural: RootConfig.entities.personRelationship.titlePlural,
16
+ searchResult: {
17
+ title: RootConfig.entities.personRelationship.title,
18
+ description: '@person-core:person-relationships.entities.person-relationship.search-result-description',
19
+ },
20
+ },
21
+ groups: [
22
+ { id: 'basic-info', title: '@general:terms.interface.basic-info' },
23
+ ],
24
+ properties: [
25
+ {
26
+ name: 'fromPersonId',
27
+ title: '@person-core:person-relationships.entities.person-relationship.properties.from-person.title',
28
+ groupId: 'basic-info',
29
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
30
+ schema: {
31
+ dataType: 'string',
32
+ interface: {
33
+ type: AXPWidgetsCatalog.lookup,
34
+ options: {
35
+ entity: `${RootConfig.module.name}.${RootConfig.entities.person.name}`,
36
+ multiple: false,
37
+ textField: 'fullName',
38
+ look: 'select',
39
+ columns: ['fullName'],
40
+ expose: [
41
+ { source: 'id', target: 'fromPerson.id' },
42
+ { source: 'fullName', target: 'fromPerson.fullName' },
43
+ { source: 'phones', target: 'fromPerson.phones' },
44
+ { source: 'emails', target: 'fromPerson.emails' },
45
+ ],
46
+ },
47
+ },
48
+ },
49
+ validations: [{ rule: 'required' }],
50
+ },
51
+ {
52
+ name: 'toPersonId',
53
+ title: '@person-core:person-relationships.entities.person-relationship.properties.to-person.title',
54
+ groupId: 'basic-info',
55
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
56
+ schema: {
57
+ dataType: 'string',
58
+ interface: {
59
+ type: AXPWidgetsCatalog.lookup,
60
+ options: {
61
+ entity: `${RootConfig.module.name}.${RootConfig.entities.person.name}`,
62
+ multiple: false,
63
+ look: 'select',
64
+ textField: 'fullName',
65
+ columns: ['fullName'],
66
+ allowCreate: 'quick',
67
+ expose: [
68
+ { source: 'id', target: 'toPerson.id' },
69
+ { source: 'fullName', target: 'toPerson.fullName' },
70
+ { source: 'phones', target: 'toPerson.phones' },
71
+ { source: 'emails', target: 'toPerson.emails' },
72
+ ],
73
+ },
74
+ },
75
+ },
76
+ validations: [{ rule: 'required' }],
77
+ },
78
+ {
79
+ name: 'typeId',
80
+ title: '@person-core:person-relationships.entities.person-relationship.properties.type.title',
81
+ groupId: 'basic-info',
82
+ options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },
83
+ schema: {
84
+ dataType: 'string',
85
+ interface: {
86
+ type: AXPWidgetsCatalog.lookup,
87
+ options: {
88
+ look: 'select',
89
+ entity: `${RootConfig.module.name}.${RootConfig.entities.contactRole.name}`,
90
+ multiple: false,
91
+ allowCreate: 'quick',
92
+ expose: [
93
+ { source: 'id', target: 'type.id' },
94
+ { source: 'title', target: 'type.title' },
95
+ ],
96
+ },
97
+ },
98
+ },
99
+ validations: [{ rule: 'required' }],
100
+ },
101
+ ],
102
+ columns: [
103
+ { name: 'fromPersonId' },
104
+ { name: 'toPersonId' },
105
+ { name: 'typeId' },
106
+ { name: 'toPerson.phones', options: { width: '450px' } },
107
+ { name: 'toPerson.emails', options: { width: '450px' } },
108
+ { name: 'notes' },
109
+ ],
110
+ interfaces: {
111
+ master: {
112
+ create: {
113
+ sections: [{ id: 'basic-info' }],
114
+ properties: [
115
+ { name: 'toPersonId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
116
+ { name: 'typeId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
117
+ { name: 'notes', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
118
+ ],
119
+ },
120
+ update: {
121
+ sections: [{ id: 'basic-info' }],
122
+ properties: [
123
+ { name: 'toPersonId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
124
+ { name: 'typeId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
125
+ { name: 'notes', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
126
+ ],
127
+ },
128
+ single: {
129
+ title: '{{ context.eval("type.title", { pipes: ["translate"] }) + " - " + context.eval("fromPerson.fullName") + " → " + context.eval("toPerson.fullName") }}',
130
+ sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],
131
+ properties: [
132
+ { name: 'toPersonId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
133
+ { name: 'typeId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
134
+ { name: 'notes', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },
135
+ ],
136
+ actions: [...entityMasterRecordActions()],
137
+ },
138
+ list: {
139
+ actions: [...entityMasterCrudActions()],
140
+ views: [
141
+ createAllQueryView({
142
+ sorts: [{ name: 'typeId', dir: 'asc' }],
143
+ }),
144
+ ],
145
+ },
146
+ },
147
+ },
148
+ };
149
+ return entityDef;
150
+ }
151
+
152
+ export { personRelationshipFactory };
153
+ //# sourceMappingURL=acorex-platform-module-person-core-client-contracts-entity-catalog-person-relationship.entity-Bt_Y9UTE.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-person-core-client-contracts-entity-catalog-person-relationship.entity-Bt_Y9UTE.mjs","sources":["../../../../libs/modules/person-core/contracts/src/entities/person-relationship/person-relationship.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\nexport async function personRelationshipFactory(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.personRelationship.name,\n title: RootConfig.entities.personRelationship.title,\n icon: RootConfig.entities.personRelationship.icon,\n plugins: [{ name: 'notes' }],\n formats: {\n individual: RootConfig.entities.personRelationship.title,\n plural: RootConfig.entities.personRelationship.titlePlural,\n searchResult: {\n title: RootConfig.entities.personRelationship.title,\n description: '@person-core:person-relationships.entities.person-relationship.search-result-description',\n },\n },\n groups: [\n { id: 'basic-info', title: '@general:terms.interface.basic-info' },\n ],\n properties: [\n {\n name: 'fromPersonId',\n title: '@person-core:person-relationships.entities.person-relationship.properties.from-person.title',\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.person.name}`,\n multiple: false,\n textField: 'fullName',\n look: 'select',\n columns: ['fullName'],\n expose: [\n { source: 'id', target: 'fromPerson.id' },\n { source: 'fullName', target: 'fromPerson.fullName' },\n { source: 'phones', target: 'fromPerson.phones' },\n { source: 'emails', target: 'fromPerson.emails' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'toPersonId',\n title: '@person-core:person-relationships.entities.person-relationship.properties.to-person.title',\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.person.name}`,\n multiple: false,\n look: 'select',\n textField: 'fullName',\n columns: ['fullName'],\n allowCreate: 'quick',\n expose: [\n { source: 'id', target: 'toPerson.id' },\n { source: 'fullName', target: 'toPerson.fullName' },\n { source: 'phones', target: 'toPerson.phones' },\n { source: 'emails', target: 'toPerson.emails' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'typeId',\n title: '@person-core:person-relationships.entities.person-relationship.properties.type.title',\n groupId: 'basic-info',\n options: { sort: { enabled: true }, filter: { advance: { enabled: true }, inline: { enabled: true } } },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n look: 'select',\n entity: `${RootConfig.module.name}.${RootConfig.entities.contactRole.name}`,\n multiple: false,\n allowCreate: 'quick',\n expose: [\n { source: 'id', target: 'type.id' },\n { source: 'title', target: 'type.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n ],\n columns: [\n { name: 'fromPersonId' },\n { name: 'toPersonId' },\n { name: 'typeId' },\n { name: 'toPerson.phones', options: { width: '450px' } },\n { name: 'toPerson.emails', options: { width: '450px' } },\n { name: 'notes' },\n ],\n\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'toPersonId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'typeId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n { name: 'toPersonId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'typeId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n ],\n },\n single: {\n title:\n '{{ context.eval(\"type.title\", { pipes: [\"translate\"] }) + \" - \" + context.eval(\"fromPerson.fullName\") + \" → \" + context.eval(\"toPerson.fullName\") }}',\n sections: [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }],\n properties: [\n { name: 'toPersonId', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'typeId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'notes', layout: { positions: { lg: { colSpan: 12, order: 4 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'typeId', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAKA;AAEO,eAAe,yBAAyB,GAAA;AAC7C,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI;AACjD,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK;AACnD,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI;AACjD,QAAA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AAC5B,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK;AACxD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,WAAW;AAC1D,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,kBAAkB,CAAC,KAAK;AACnD,gBAAA,WAAW,EAAE,0FAA0F;AACxG,aAAA;AACF,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,qCAAqC,EAAE;AACnE,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA;AACE,gBAAA,IAAI,EAAE,cAAc;AACpB,gBAAA,KAAK,EAAE,6FAA6F;AACpG,gBA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sJAAsJ;oBACxJ,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAChF,oBAAA,UAAU,EAAE;wBACV,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBAC/E,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBAC3E,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAC5E,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,oBAAA,KAAK,EAAE;AACL,wBAAA,kBAAkB,CAAC;4BACjB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBACxC,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;;;"}
@@ -0,0 +1,119 @@
1
+ import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-person-core-client-contracts-entity-catalog-acorex-platform-module-person-core-client-contracts-entity-catalog-CJmzbjJI.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity Factory ----
7
+ async function personTitleFactory() {
8
+ const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];
9
+ const propertyLayouts = [
10
+ { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
11
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
12
+ ];
13
+ const entityDef = {
14
+ module: RootConfig.module.name,
15
+ name: RootConfig.entities.personTitle.name,
16
+ title: RootConfig.entities.personTitle.title,
17
+ icon: RootConfig.entities.personTitle.icon,
18
+ formats: {
19
+ individual: RootConfig.entities.personTitle.title,
20
+ plural: RootConfig.entities.personTitle.titlePlural,
21
+ searchResult: {
22
+ title: '{{ title }}',
23
+ description: RootConfig.module.title,
24
+ },
25
+ },
26
+ plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }],
27
+ groups: [
28
+ {
29
+ id: 'basic-info',
30
+ title: '@person-core:person-titles.entities.person-title.groups.basic-info',
31
+ },
32
+ ],
33
+ properties: [
34
+ {
35
+ name: 'id',
36
+ title: '@general:terms.common.id',
37
+ groupId: 'basic-info',
38
+ schema: {
39
+ dataType: 'uuid',
40
+ visible: false,
41
+ readonly: true,
42
+ unique: { enabled: true },
43
+ },
44
+ },
45
+ {
46
+ name: 'title',
47
+ title: '@general:terms.common.title',
48
+ groupId: 'basic-info',
49
+ options: {
50
+ sort: { enabled: true },
51
+ filter: {
52
+ advance: { enabled: true },
53
+ inline: { enabled: true },
54
+ },
55
+ },
56
+ schema: {
57
+ dataType: 'string',
58
+ interface: {
59
+ type: AXPWidgetsList.Editors.TextBox,
60
+ options: {
61
+ placeholder: '@person-core:person-titles.entities.person-title.fields.title.placeholder',
62
+ },
63
+ },
64
+ },
65
+ validations: [{ rule: 'required' }],
66
+ },
67
+ {
68
+ name: 'description',
69
+ title: '@general:terms.common.description',
70
+ groupId: 'basic-info',
71
+ schema: {
72
+ dataType: 'string',
73
+ interface: {
74
+ type: AXPWidgetsList.Editors.LargeTextBox,
75
+ options: {
76
+ rows: 3,
77
+ placeholder: '@person-core:person-titles.entities.person-title.fields.description.placeholder',
78
+ },
79
+ },
80
+ },
81
+ },
82
+ ],
83
+ columns: [
84
+ { name: 'title', options: { width: '220px', order: 1 } },
85
+ { name: 'description', options: { width: '280px', order: 2 } },
86
+ ],
87
+ interfaces: {
88
+ master: {
89
+ create: {
90
+ sections,
91
+ properties: propertyLayouts,
92
+ },
93
+ update: {
94
+ sections,
95
+ properties: propertyLayouts,
96
+ },
97
+ single: {
98
+ title: '{{ title }}',
99
+ sections,
100
+ properties: propertyLayouts,
101
+ actions: [...entityMasterRecordActions()],
102
+ },
103
+ list: {
104
+ actions: [...entityMasterCrudActions()],
105
+ views: [
106
+ createAllQueryView({
107
+ sorts: [{ name: 'title', dir: 'asc' }],
108
+ }),
109
+ ],
110
+ },
111
+ },
112
+ },
113
+ };
114
+ return entityDef;
115
+ }
116
+ //#endregion
117
+
118
+ export { personTitleFactory };
119
+ //# sourceMappingURL=acorex-platform-module-person-core-client-contracts-entity-catalog-person-title.entity-B5jB67Eh.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-person-core-client-contracts-entity-catalog-person-title.entity-B5jB67Eh.mjs","sources":["../../../../libs/modules/person-core/contracts/src/entities/person-title/person-title.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Entity Factory ----\n\nexport async function personTitleFactory(): Promise<AXPEntity> {\n const sections = [{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } }];\n\n const propertyLayouts = [\n { name: 'title', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.personTitle.name,\n title: RootConfig.entities.personTitle.title,\n icon: RootConfig.entities.personTitle.icon,\n formats: {\n individual: RootConfig.entities.personTitle.title,\n plural: RootConfig.entities.personTitle.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }],\n groups: [\n {\n id: 'basic-info',\n title: '@person-core:person-titles.entities.person-title.groups.basic-info',\n },\n ],\n properties: [\n {\n name: 'id',\n title: '@general:terms.common.id',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder:\n '@person-core:person-titles.entities.person-title.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n placeholder:\n '@person-core:person-titles.entities.person-title.fields.description.placeholder',\n },\n },\n },\n },\n ],\n columns: [\n { name: 'title', options: { width: '220px', order: 1 } },\n { name: 'description', options: { width: '280px', order: 2 } },\n ],\n interfaces: {\n master: {\n create: {\n sections,\n properties: propertyLayouts,\n },\n update: {\n sections,\n properties: propertyLayouts,\n },\n single: {\n title: '{{ title }}',\n sections,\n properties: propertyLayouts,\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: '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