@acorex-platform/module-locale-management-client 0.0.32 → 0.0.37

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 (33) hide show
  1. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entities-languages.mjs +253 -0
  2. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entities-languages.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entities-locales.mjs +251 -0
  4. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entities-locales.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entities-timezones.mjs +291 -0
  6. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entities-timezones.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-acorex-platform-module-locale-management-client-contracts-entity-catalog-B_BhbZxS.mjs +56 -0
  8. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-acorex-platform-module-locale-management-client-contracts-entity-catalog-B_BhbZxS.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-languages.entity-DRZszos9.mjs +218 -0
  10. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-languages.entity-DRZszos9.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-locales.entity-DZFu6qeI.mjs +216 -0
  12. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-locales.entity-DZFu6qeI.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-timezones.entity-CpQC5lS7.mjs +256 -0
  14. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog-timezones.entity-CpQC5lS7.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog.mjs +2 -0
  16. package/fesm2022/acorex-platform-module-locale-management-client-contracts-entity-catalog.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-locale-management-client-contracts.mjs +2 -2
  18. package/fesm2022/acorex-platform-module-locale-management-client-contracts.mjs.map +1 -1
  19. package/fesm2022/acorex-platform-module-locale-management-client-list-available-locale-profiles.query-30KT5v3V.mjs.map +1 -1
  20. package/fesm2022/acorex-platform-module-locale-management-client-list-locale-profiles.query-D_PLL72r.mjs.map +1 -1
  21. package/fesm2022/acorex-platform-module-locale-management-client-local-entities.mjs +31 -0
  22. package/fesm2022/acorex-platform-module-locale-management-client-local-entities.mjs.map +1 -0
  23. package/fesm2022/{acorex-platform-module-locale-management-client-profiles-l46U-cgo.mjs → acorex-platform-module-locale-management-client-profiles-C3oWqD10.mjs} +2 -1
  24. package/fesm2022/acorex-platform-module-locale-management-client-profiles-C3oWqD10.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-locale-management-client.mjs +2 -2
  26. package/fesm2022/acorex-platform-module-locale-management-client.mjs.map +1 -1
  27. package/package.json +21 -1
  28. package/types/acorex-platform-module-locale-management-client-contracts-entities-languages.d.ts +5 -0
  29. package/types/acorex-platform-module-locale-management-client-contracts-entities-locales.d.ts +5 -0
  30. package/types/acorex-platform-module-locale-management-client-contracts-entities-timezones.d.ts +5 -0
  31. package/types/acorex-platform-module-locale-management-client-contracts-entity-catalog.d.ts +10 -0
  32. package/types/acorex-platform-module-locale-management-client-local-entities.d.ts +12 -0
  33. package/fesm2022/acorex-platform-module-locale-management-client-profiles-l46U-cgo.mjs.map +0 -1
@@ -0,0 +1,216 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, AXPEntityCommandScope, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-locale-management-client-contracts-entity-catalog-acorex-platform-module-locale-management-client-contracts-entity-catalog-B_BhbZxS.mjs';
4
+
5
+ async function localesFactory() {
6
+ const entityDef = {
7
+ module: RootConfig.module.name,
8
+ name: RootConfig.entities.locales.name,
9
+ title: RootConfig.entities.locales.title,
10
+ formats: {
11
+ individual: RootConfig.entities.locales.title,
12
+ plural: RootConfig.entities.locales.titlePlural,
13
+ searchResult: {
14
+ title: '{{ title }}',
15
+ description: '{{ code }}',
16
+ },
17
+ },
18
+ plugins: [
19
+ { name: 'archive' },
20
+ { name: 'default' },
21
+ ],
22
+ groups: [
23
+ {
24
+ id: 'basic-info',
25
+ title: '@general:terms.interface.basic-info',
26
+ },
27
+ ],
28
+ properties: [
29
+ {
30
+ name: 'languageId',
31
+ title: '@locale-management:locales.entities.locale.fields.language',
32
+ groupId: 'basic-info',
33
+ options: {
34
+ filter: {
35
+ advance: {
36
+ enabled: true,
37
+ },
38
+ },
39
+ },
40
+ schema: {
41
+ dataType: 'object',
42
+ interface: {
43
+ type: AXPWidgetsCatalog.lookup,
44
+ options: {
45
+ entity: `${RootConfig.module.name}.${RootConfig.entities.languages.name}`,
46
+ expose: [
47
+ { source: 'id', target: 'language.id' },
48
+ { source: 'title', target: 'language.title' }
49
+ ]
50
+ }
51
+ }
52
+ },
53
+ validations: [
54
+ {
55
+ rule: 'required',
56
+ },
57
+ ],
58
+ },
59
+ {
60
+ name: 'code',
61
+ title: '@general:terms.common.code',
62
+ groupId: 'basic-info',
63
+ options: {
64
+ sort: {
65
+ enabled: true,
66
+ },
67
+ filter: {
68
+ advance: {
69
+ enabled: true,
70
+ },
71
+ inline: {
72
+ enabled: true,
73
+ },
74
+ },
75
+ },
76
+ schema: {
77
+ dataType: 'string',
78
+ interface: {
79
+ type: AXPWidgetsCatalog.text,
80
+ options: {
81
+ placeholder: 'e.g., en-US, es-MX',
82
+ },
83
+ },
84
+ },
85
+ validations: [
86
+ {
87
+ rule: 'required',
88
+ },
89
+ ],
90
+ },
91
+ {
92
+ name: 'title',
93
+ title: '@general:terms.common.title',
94
+ groupId: 'basic-info',
95
+ options: {
96
+ sort: {
97
+ enabled: true,
98
+ },
99
+ filter: {
100
+ advance: {
101
+ enabled: true,
102
+ },
103
+ inline: {
104
+ enabled: true,
105
+ },
106
+ },
107
+ },
108
+ schema: {
109
+ dataType: 'string',
110
+ interface: {
111
+ type: AXPWidgetsCatalog.text,
112
+ options: {
113
+ placeholder: 'e.g., English (United States)',
114
+ },
115
+ },
116
+ },
117
+ validations: [
118
+ {
119
+ rule: 'required',
120
+ },
121
+ ],
122
+ },
123
+ {
124
+ name: 'countryCode',
125
+ title: '@locale-management:locales.entities.locale.fields.country-code',
126
+ groupId: 'basic-info',
127
+ options: {
128
+ sort: {
129
+ enabled: true,
130
+ },
131
+ filter: {
132
+ advance: {
133
+ enabled: true,
134
+ },
135
+ },
136
+ },
137
+ schema: {
138
+ dataType: 'string',
139
+ interface: {
140
+ type: AXPWidgetsCatalog.text,
141
+ options: {
142
+ placeholder: 'e.g., US, MX',
143
+ },
144
+ },
145
+ },
146
+ validations: [
147
+ {
148
+ rule: 'required',
149
+ },
150
+ ],
151
+ },
152
+ ],
153
+ columns: [
154
+ { name: 'code', options: { width: '120px', order: 1 } },
155
+ { name: 'title', options: { width: '250px', order: 2 } },
156
+ { name: 'countryCode', options: { width: '100px', order: 3 } },
157
+ ],
158
+ interfaces: {
159
+ master: {
160
+ create: {
161
+ sections: [{ id: 'basic-info' }],
162
+ properties: [
163
+ // NOTE: languageId is NOT included here - it's passed via context
164
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
165
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
166
+ { name: 'countryCode', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
167
+ ],
168
+ },
169
+ update: {
170
+ sections: [{ id: 'basic-info' }],
171
+ properties: [
172
+ // NOTE: languageId is NOT included here - it's immutable in update
173
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
174
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
175
+ { name: 'countryCode', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
176
+ ],
177
+ },
178
+ single: {
179
+ title: RootConfig.entities.locales.title,
180
+ sections: [{ id: 'basic-info' }],
181
+ actions: [
182
+ ...entityMasterRecordActions(),
183
+ {
184
+ title: '@general:actions.edit.title',
185
+ command: 'Entity:Edit',
186
+ priority: 'primary',
187
+ type: 'update',
188
+ scope: AXPEntityCommandScope.Individual,
189
+ },
190
+ ],
191
+ },
192
+ list: {
193
+ actions: [
194
+ ...entityMasterCrudActions(),
195
+ {
196
+ title: '@general:actions.edit.title',
197
+ command: 'Entity:Edit',
198
+ priority: 'secondary',
199
+ type: 'update',
200
+ scope: AXPEntityCommandScope.Individual,
201
+ },
202
+ ],
203
+ views: [
204
+ createAllQueryView({
205
+ sorts: [{ name: 'title', dir: 'asc' }],
206
+ }),
207
+ ],
208
+ },
209
+ },
210
+ },
211
+ };
212
+ return entityDef;
213
+ }
214
+
215
+ export { localesFactory };
216
+ //# sourceMappingURL=acorex-platform-module-locale-management-client-contracts-entity-catalog-locales.entity-DZFu6qeI.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-locale-management-client-contracts-entity-catalog-locales.entity-DZFu6qeI.mjs","sources":["../../../../libs/modules/locale-management/contracts/src/entities/locales/locales.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, AXPEntityCommandScope, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function localesFactory(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.locales.name,\n title: RootConfig.entities.locales.title,\n formats: {\n individual: RootConfig.entities.locales.title,\n plural: RootConfig.entities.locales.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'archive' },\n { name: 'default' },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@general:terms.interface.basic-info',\n },\n ],\n properties: [\n {\n name: 'languageId',\n title: '@locale-management:locales.entities.locale.fields.language',\n groupId: 'basic-info',\n options: {\n filter: {\n advance: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsCatalog.lookup,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.languages.name}`,\n expose: [\n { source: 'id', target: 'language.id' },\n { source: 'title', target: 'language.title' }\n ]\n }\n }\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'code',\n title: '@general:terms.common.code',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: 'e.g., en-US, es-MX',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: 'e.g., English (United States)',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'countryCode',\n title: '@locale-management:locales.entities.locale.fields.country-code',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: 'e.g., US, MX',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n ],\n columns: [\n { name: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { width: '250px', order: 2 } },\n { name: 'countryCode', options: { width: '100px', order: 3 } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: [\n // NOTE: languageId is NOT included here - it's passed via context\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'countryCode', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: [\n // NOTE: languageId is NOT included here - it's immutable in update\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'countryCode', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n ],\n },\n single: {\n title: RootConfig.entities.locales.title,\n sections: [{ id: 'basic-info' }],\n actions: [\n ...entityMasterRecordActions(),\n {\n title: '@general:actions.edit.title',\n command: 'Entity:Edit',\n priority: 'primary',\n type: 'update',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n },\n list: {\n actions: [\n ...entityMasterCrudActions(),\n {\n title: '@general:actions.edit.title',\n command: 'Entity:Edit',\n priority: 'secondary',\n type: 'update',\n scope: AXPEntityCommandScope.Individual,\n },\n ],\n views: [\n createAllQueryView({\n sorts: [{ name: 'title', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}"],"names":[],"mappings":";;;;AAIO,eAAe,cAAc,GAAA;AAEhC,IAAA,MAAM,SAAS,GAAc;AACzB,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI;AACtC,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK;AACxC,QAAA,OAAO,EAAE;AACL,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK;AAC7C,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW;AAC/C,YAAA,YAA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AAM,EAAE;AACJ,oBAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK;AACxC,oBAAA,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC;AAChC,oBAAA,OAAO,EAAE;AACL,wBAAA,GAAG,yBAAyB,EAAE;AAC9B,wBAAA;AACI,4BAAA,KAAK,EAAE,6BAA6B;AACpC,4BAAA,OAAO,EAAE,aAAa;AACtB,4BAAA,QAAQ,EAAE,SAAS;AACnB,4BAAA,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,qBAAqB,CAAC,UAAU;AAC1C,yBAAA;AACJ,qBAAA;AACJ,iBAAA;AACD,gBAAA,IAAI,EAAE;AACF,oBAAA,OAAO,EAAE;AACL,wBAAA,GAAG,uBAAuB,EAAE;AAC5B,wBAAA;AACI,4BAAA,KAAK,EAAE,6BAA6B;AACpC,4BAAA,OAAO,EAAE,aAAa;AACtB,4BAAA,QAAQ,EAAE,WAAW;AACrB,4BAAA,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,qBAAqB,CAAC,UAAU;AAC1C,yBAAA;AACJ,qBAAA;AACD,oBAAA,KAAK,EAAE;AACH,wBAAA,kBAAkB,CAAC;4BACf,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBACzC,CAAC;AACL,qBAAA;AACJ,iBAAA;AACJ,aAAA;AACJ,SAAA;KACJ;AAED,IAAA,OAAO,SAAS;AACpB;;"}
@@ -0,0 +1,256 @@
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-locale-management-client-contracts-entity-catalog-acorex-platform-module-locale-management-client-contracts-entity-catalog-B_BhbZxS.mjs';
4
+
5
+ async function timezonesFactory() {
6
+ const entityDef = {
7
+ module: RootConfig.module.name,
8
+ name: RootConfig.entities.timezones.name,
9
+ title: RootConfig.entities.timezones.title,
10
+ icon: RootConfig.entities.timezones.icon,
11
+ formats: {
12
+ individual: RootConfig.entities.timezones.title,
13
+ plural: RootConfig.entities.timezones.titlePlural,
14
+ searchResult: {
15
+ title: '{{ title }}',
16
+ description: '{{ code }}',
17
+ },
18
+ },
19
+ plugins: [
20
+ { name: 'archive' },
21
+ ],
22
+ groups: [
23
+ {
24
+ id: 'basic-info',
25
+ title: '@general:terms.interface.basic-info',
26
+ },
27
+ {
28
+ id: 'settings',
29
+ title: '@general:terms.interface.settings',
30
+ },
31
+ ],
32
+ properties: [
33
+ {
34
+ name: 'code',
35
+ title: '@general:terms.common.code',
36
+ groupId: 'basic-info',
37
+ options: {
38
+ sort: {
39
+ enabled: true,
40
+ },
41
+ filter: {
42
+ advance: {
43
+ enabled: true,
44
+ },
45
+ inline: {
46
+ enabled: true,
47
+ },
48
+ },
49
+ },
50
+ schema: {
51
+ dataType: 'string',
52
+ interface: {
53
+ type: AXPWidgetsCatalog.text,
54
+ options: {
55
+ placeholder: 'e.g., America/New_York',
56
+ },
57
+ },
58
+ },
59
+ validations: [
60
+ {
61
+ rule: 'required',
62
+ },
63
+ ],
64
+ },
65
+ {
66
+ name: 'title',
67
+ title: '@general:terms.common.title',
68
+ groupId: 'basic-info',
69
+ options: {
70
+ sort: {
71
+ enabled: true,
72
+ },
73
+ filter: {
74
+ advance: {
75
+ enabled: true,
76
+ },
77
+ inline: {
78
+ enabled: true,
79
+ },
80
+ },
81
+ },
82
+ schema: {
83
+ dataType: 'string',
84
+ interface: {
85
+ type: AXPWidgetsCatalog.text,
86
+ options: {
87
+ placeholder: 'e.g., Eastern Standard Time',
88
+ },
89
+ },
90
+ },
91
+ validations: [
92
+ {
93
+ rule: 'required',
94
+ },
95
+ ],
96
+ },
97
+ {
98
+ name: 'abbreviation',
99
+ title: '@locale-management:timezones.entities.timezone.fields.abbreviation',
100
+ groupId: 'basic-info',
101
+ options: {
102
+ sort: {
103
+ enabled: true,
104
+ },
105
+ filter: {
106
+ advance: {
107
+ enabled: true,
108
+ },
109
+ },
110
+ },
111
+ schema: {
112
+ dataType: 'string',
113
+ interface: {
114
+ type: AXPWidgetsCatalog.text,
115
+ options: {
116
+ placeholder: 'e.g., EST, PST',
117
+ },
118
+ },
119
+ },
120
+ },
121
+ {
122
+ name: 'standardOffset',
123
+ title: '@locale-management:timezones.entities.timezone.fields.standard-offset',
124
+ groupId: 'basic-info',
125
+ options: {
126
+ sort: {
127
+ enabled: true,
128
+ },
129
+ filter: {
130
+ advance: {
131
+ enabled: true,
132
+ },
133
+ },
134
+ },
135
+ schema: {
136
+ dataType: 'number',
137
+ interface: {
138
+ type: AXPWidgetsCatalog.number,
139
+ options: {
140
+ placeholder: 'Offset in minutes from UTC',
141
+ },
142
+ },
143
+ },
144
+ validations: [
145
+ {
146
+ rule: 'required',
147
+ },
148
+ ],
149
+ },
150
+ {
151
+ name: 'region',
152
+ title: '@locale-management:timezones.entities.timezone.fields.region',
153
+ groupId: 'basic-info',
154
+ options: {
155
+ sort: {
156
+ enabled: true,
157
+ },
158
+ filter: {
159
+ advance: {
160
+ enabled: true,
161
+ },
162
+ },
163
+ },
164
+ schema: {
165
+ dataType: 'string',
166
+ interface: {
167
+ type: AXPWidgetsCatalog.text,
168
+ options: {
169
+ placeholder: 'e.g., Americas, Europe',
170
+ },
171
+ },
172
+ },
173
+ },
174
+ {
175
+ name: 'supportsDST',
176
+ title: '@locale-management:timezones.entities.timezone.fields.supports-dst',
177
+ groupId: 'settings',
178
+ options: {
179
+ filter: {
180
+ advance: {
181
+ enabled: true,
182
+ },
183
+ },
184
+ },
185
+ schema: {
186
+ dataType: 'boolean',
187
+ interface: {
188
+ type: AXPWidgetsCatalog.toggle,
189
+ },
190
+ },
191
+ },
192
+ ],
193
+ columns: [
194
+ { name: 'code', options: { width: '200px', order: 1 } },
195
+ { name: 'title', options: { width: '250px', order: 2 } },
196
+ { name: 'abbreviation', options: { width: '100px', order: 3 } },
197
+ { name: 'standardOffset', options: { width: '120px', order: 4 } },
198
+ { name: 'supportsDST', options: { width: '80px', order: 5 } },
199
+ ],
200
+ interfaces: {
201
+ master: {
202
+ create: {
203
+ sections: [{ id: 'basic-info' }, { id: 'settings' }],
204
+ properties: [
205
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
206
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
207
+ { name: 'abbreviation', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
208
+ { name: 'standardOffset', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
209
+ { name: 'region', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },
210
+ { name: 'supportsDST', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
211
+ ],
212
+ },
213
+ update: {
214
+ sections: [{ id: 'basic-info' }, { id: 'settings' }],
215
+ properties: [
216
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
217
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
218
+ { name: 'abbreviation', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
219
+ { name: 'standardOffset', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
220
+ { name: 'region', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },
221
+ { name: 'supportsDST', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
222
+ ],
223
+ },
224
+ single: {
225
+ title: RootConfig.entities.timezones.title,
226
+ sections: [{ id: 'basic-info' }, { id: 'settings' }],
227
+ properties: [
228
+ { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
229
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
230
+ { name: 'abbreviation', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
231
+ { name: 'standardOffset', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
232
+ { name: 'region', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },
233
+ { name: 'supportsDST', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
234
+ ],
235
+ actions: [
236
+ ...entityMasterRecordActions(),
237
+ ],
238
+ },
239
+ list: {
240
+ actions: [
241
+ ...entityMasterCrudActions(),
242
+ ],
243
+ views: [
244
+ createAllQueryView({
245
+ sorts: [{ name: 'region', dir: 'asc' }, { name: 'title', dir: 'asc' }],
246
+ }),
247
+ ],
248
+ },
249
+ },
250
+ },
251
+ };
252
+ return entityDef;
253
+ }
254
+
255
+ export { timezonesFactory };
256
+ //# sourceMappingURL=acorex-platform-module-locale-management-client-contracts-entity-catalog-timezones.entity-CpQC5lS7.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-locale-management-client-contracts-entity-catalog-timezones.entity-CpQC5lS7.mjs","sources":["../../../../libs/modules/locale-management/contracts/src/entities/timezones/timezones.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\nexport async function timezonesFactory(): Promise<AXPEntity | null> {\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.timezones.name,\n title: RootConfig.entities.timezones.title,\n icon: RootConfig.entities.timezones.icon,\n formats: {\n individual: RootConfig.entities.timezones.title,\n plural: RootConfig.entities.timezones.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ code }}',\n },\n },\n plugins: [\n { name: 'archive' },\n ],\n groups: [\n {\n id: 'basic-info',\n title: '@general:terms.interface.basic-info',\n },\n {\n id: 'settings',\n title: '@general:terms.interface.settings',\n },\n ],\n properties: [\n {\n name: 'code',\n title: '@general:terms.common.code',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: 'e.g., America/New_York',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n inline: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: 'e.g., Eastern Standard Time',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'abbreviation',\n title: '@locale-management:timezones.entities.timezone.fields.abbreviation',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: 'e.g., EST, PST',\n },\n },\n },\n },\n {\n name: 'standardOffset',\n title: '@locale-management:timezones.entities.timezone.fields.standard-offset',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsCatalog.number,\n options: {\n placeholder: 'Offset in minutes from UTC',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'region',\n title: '@locale-management:timezones.entities.timezone.fields.region',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.text,\n options: {\n placeholder: 'e.g., Americas, Europe',\n },\n },\n },\n },\n {\n name: 'supportsDST',\n title: '@locale-management:timezones.entities.timezone.fields.supports-dst',\n groupId: 'settings',\n options: {\n filter: {\n advance: {\n enabled: true,\n },\n },\n },\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsCatalog.toggle,\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '200px', order: 1 } },\n { name: 'title', options: { width: '250px', order: 2 } },\n { name: 'abbreviation', options: { width: '100px', order: 3 } },\n { name: 'standardOffset', options: { width: '120px', order: 4 } },\n { name: 'supportsDST', options: { width: '80px', order: 5 } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'settings' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'abbreviation', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'standardOffset', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'region', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },\n { name: 'supportsDST', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'settings' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'abbreviation', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'standardOffset', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'region', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },\n { name: 'supportsDST', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n ],\n },\n single: {\n title: RootConfig.entities.timezones.title,\n sections: [{ id: 'basic-info' }, { id: 'settings' }],\n properties: [\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'abbreviation', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'standardOffset', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'region', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },\n { name: 'supportsDST', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n ],\n actions: [\n ...entityMasterRecordActions(),\n ],\n },\n list: {\n actions: [\n ...entityMasterCrudActions(),\n ],\n views: [\n createAllQueryView({\n sorts: [{ name: 'region', dir: 'asc' }, { name: 'title', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}"],"names":[],"mappings":";;;;AAIO,eAAe,gBAAgB,GAAA;AAElC,IAAA,MAAM,SAAS,GAAc;AACzB,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI;AACxC,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK;AAC1C,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI;AACxC,QAAA,OAAO,EAAE;AACL,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,KAAK;AAC/C,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,WAAW;AACjD,YAAA,YAAY,EAAE;AACV,gBAAA,KAAK,EAAE,aAAa;AACpB,gBAAA,WAAW,EAAE,YAAY;AAC5B,aAAA;AACJ,SAAA;AACD,QAAA,OAAO,EAAE;YACL,EAAE,IAAI,EAAE,SAAS,EAAE;AACtB,SAAA;AACD,QAAA,MAAM,EAAE;AACJ,YAAA;AACI,gBAAA,EAAE,EAAE,YAAY;AAChB,gBAAA,KAAK,EAAE,qCAAqC;AAC/C,aAAA;AACD,YAAA;AACI,gBAAA,EAAE,EAAE,UAAU;AACd,gBAAA,KAAK,EAAE,mCAAmC;AAC7C,aAAA;AACJ,SAAA;AACD,QAAA,UAAU,EAAE;AACR,YAAA;AACI,gBAAA,IAAI,EAAE,MAAM;AACZ,gBAAA,KAAK,EAAE,4BAA4B;AACnC,gBAAA,OAAO,EAAE,YAAY;AACrB,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AE,EAAE,EAAE,EAAE;wBAC5E,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AACnF,qBAAA;AACD,oBAAA,OAAO,EAAE;AACL,wBAAA,GAAG,yBAAyB,EAAE;AACjC,qBAAA;AACJ,iBAAA;AACD,gBAAA,IAAI,EAAE;AACF,oBAAA,OAAO,EAAE;AACL,wBAAA,GAAG,uBAAuB,EAAE;AAC/B,qBAAA;AACD,oBAAA,KAAK,EAAE;AACH,wBAAA,kBAAkB,CAAC;4BACf,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBACzE,CAAC;AACL,qBAAA;AACJ,iBAAA;AACJ,aAAA;AACJ,SAAA;KACJ;AAED,IAAA,OAAO,SAAS;AACpB;;"}
@@ -0,0 +1,2 @@
1
+ export { l as localeManagementLocalEntityCatalog } from './acorex-platform-module-locale-management-client-contracts-entity-catalog-acorex-platform-module-locale-management-client-contracts-entity-catalog-B_BhbZxS.mjs';
2
+ //# sourceMappingURL=acorex-platform-module-locale-management-client-contracts-entity-catalog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-locale-management-client-contracts-entity-catalog.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -83,8 +83,8 @@ const AXMPermissionsKeys = {
83
83
  * Optional allow-list of built-in locale profile codes for the Available Languages
84
84
  * picker (`getLocaleProfiles`). Empty default (`null`) = all built-in profiles.
85
85
  *
86
- * Product/deploy apps call {@link configureLocaleProfileCatalogCodes} at boot
87
- * (e.g. AU nest environment omits `fa-IR`).
86
+ * Product/deploy apps may call {@link configureLocaleProfileCatalogCodes} at boot.
87
+ * Prefer tenant `AvailableLanguages` when only some tenants should hide a locale.
88
88
  */
89
89
  let localeProfileCatalogCodes = null;
90
90
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-locale-management-client-contracts.mjs","sources":["../../../../libs/modules/locale-management/contracts/src/lib/context.definitions.ts","../../../../libs/modules/locale-management/contracts/src/menu.keys.ts","../../../../libs/modules/locale-management/contracts/src/permission.keys.ts","../../../../libs/modules/locale-management/contracts/src/locale-profile-catalog.configure.ts","../../../../libs/modules/locale-management/contracts/src/root-config.ts","../../../../libs/modules/locale-management/contracts/src/index.ts","../../../../libs/modules/locale-management/contracts/src/acorex-platform-module-locale-management-client-contracts.ts"],"sourcesContent":["import type { AXPContextDefinition } from '@acorex-platform/framework-shared/core';\n\n//#region ---- Locale & regional context definitions ----\n\nexport const AXM_LOCALE_CONTEXT_DEFINITIONS: AXPContextDefinition[] = [\n {\n name: 'locale',\n title: 'UI locale',\n description:\n 'Active UI language code from the translation service (e.g. en-US, fa-IR). Controls labels and locale-aware explanations.',\n order: 40,\n capabilities: ['ai'],\n },\n {\n name: 'calendarSystem',\n title: 'Calendar system',\n description:\n 'User regional setting for calendar system (e.g. Gregorian, Jalali). Used for date interpretation and scheduling answers.',\n order: 50,\n capabilities: ['ai'],\n },\n {\n name: 'timeZone',\n title: 'Time zone',\n description: 'IANA time zone from user regional settings. Used with current local date/time for scheduling context.',\n order: 60,\n capabilities: ['ai'],\n },\n {\n name: 'country',\n title: 'Country',\n description: 'User regional country setting. Informs locale-specific conventions and regional defaults.',\n order: 70,\n capabilities: ['ai'],\n },\n];\n\n//#endregion\n","export const AXPLocaleManagementMenuKeys = {\n Root: 'locale-management:menu',\n Languages: 'locale-management:menu:languages',\n Divider1: 'locale-management:menu:divider-1',\n Timezones: 'locale-management:menu:timezones',\n} as const;\n\n","/**\n * Applications & Platform capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPApplicationsPlatformPermissionKeys = {\n Access: 'ApplicationsPlatform:Permission:Access',\n MaintainApplications: 'ApplicationsPlatform:Permission:MaintainApplications',\n MaintainTenants: 'ApplicationsPlatform:Permission:MaintainTenants',\n MaintainPlatformShell: 'ApplicationsPlatform:Permission:MaintainPlatformShell',\n MaintainLandingPages: 'ApplicationsPlatform:Permission:MaintainLandingPages',\n MaintainIdentifiers: 'ApplicationsPlatform:Permission:MaintainIdentifiers',\n MaintainTenantSettings: 'ApplicationsPlatform:Permission:MaintainTenantSettings',\n MaintainPlatformSettings: 'ApplicationsPlatform:Permission:MaintainPlatformSettings',\n MaintainLocales: 'ApplicationsPlatform:Permission:MaintainLocales',\n UseDevTools: 'ApplicationsPlatform:Permission:UseDevTools',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPApplicationsPlatformPermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXMPermissionsKeys = {\n LocaleManagement: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Language: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n View: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Edit: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Delete: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Create: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n },\n Timezone: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n View: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Edit: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Delete: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Create: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n },\n },\n} as const;\n","//#region ----- Locale profile catalog (Available Languages picker) -----\n\n/**\n * Optional allow-list of built-in locale profile codes for the Available Languages\n * picker (`getLocaleProfiles`). Empty default (`null`) = all built-in profiles.\n *\n * Product/deploy apps call {@link configureLocaleProfileCatalogCodes} at boot\n * (e.g. AU nest environment omits `fa-IR`).\n */\nlet localeProfileCatalogCodes: readonly string[] | null = null;\n\n/**\n * Restrict which built-in locale profiles appear in the Available Languages picker.\n * Pass `null` or an empty list to restore the full built-in catalog.\n */\nexport function configureLocaleProfileCatalogCodes(codes: readonly string[] | null): void {\n if (!Array.isArray(codes) || codes.length === 0) {\n localeProfileCatalogCodes = null;\n return;\n }\n localeProfileCatalogCodes = codes.map((code) => String(code).trim()).filter(Boolean);\n if (localeProfileCatalogCodes.length === 0) {\n localeProfileCatalogCodes = null;\n }\n}\n\n/** Configured catalog allow-list, or `null` when the full built-in catalog is used. */\nexport function getLocaleProfileCatalogCodes(): readonly string[] | null {\n return localeProfileCatalogCodes;\n}\n\n//#endregion\n","const config = {\n i18n: 'locale-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: 'LocaleManagement',\n title: '@locale-management:module.title',\n icon: 'fa-light fa-globe',\n },\n entities: {\n languages: {\n name: 'Languages',\n title: '@locale-management:languages.entities.language.title',\n titlePlural: '@locale-management:languages.entities.language.plural',\n icon: 'fa-light fa-language',\n },\n locales: {\n name: 'Locales',\n title: '@locale-management:locales.entities.locale.title',\n titlePlural: '@locale-management:locales.entities.locale.plural',\n icon: 'fa-light fa-globe',\n },\n timezones: {\n name: 'Timezones',\n title: '@locale-management:timezones.entities.timezone.title',\n titlePlural: '@locale-management:timezones.entities.timezone.plural',\n icon: 'fa-light fa-clock',\n },\n },\n} as const;\n","//#region ---- Contracts barrel ----\n\nexport * from './lib/context.definitions';\nexport * from './menu.keys';\nexport * from './permission.keys';\nexport * from './locale-profile-catalog.configure';\n\nexport * from './root-config';\n\n//#endregion\n\nexport * from './entities';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAEA;AAEO,MAAM,8BAA8B,GAA2B;AACpE,IAAA;AACE,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,KAAK,EAAE,WAAW;AAClB,QAAA,WAAW,EACT,0HAA0H;AAC5H,QAAA,KAAK,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,KAAK,EAAE,iCAAiC;AACxC,QAAA,IAAI,EAAE,mBAAmB;AAC1B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,WAAW;AACjB,YAAA,KAAK,EAAE,sDAAsD;AAC7D,YAAA,WAAW,EAAE,uDAAuD;AACpE,YAAA,IAAI,EAAE,sBAAsB;AAC7B,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,kDAAkD;AACzD,YAAA,WAAW,EAAE,mDAAmD;AAChE,YAAA,IAAI,EAAE,mBAAmB;AAC1B,SAAA;AACD,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,WAAW;AACjB,YAAA,KAAK,EAAE,sDAAsD;AAC7D,YAAA,WAAW,EAAE,uDAAuD;AACpE,YAAA,IAAI,EAAE,mBAAmB;AAC1B,SAAA;AACF,KAAA;;;AC9BH;;ACAA;;AAEG;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-locale-management-client-contracts.mjs","sources":["../../../../libs/modules/locale-management/contracts/src/lib/context.definitions.ts","../../../../libs/modules/locale-management/contracts/src/menu.keys.ts","../../../../libs/modules/locale-management/contracts/src/permission.keys.ts","../../../../libs/modules/locale-management/contracts/src/locale-profile-catalog.configure.ts","../../../../libs/modules/locale-management/contracts/src/root-config.ts","../../../../libs/modules/locale-management/contracts/src/index.ts","../../../../libs/modules/locale-management/contracts/src/acorex-platform-module-locale-management-client-contracts.ts"],"sourcesContent":["import type { AXPContextDefinition } from '@acorex-platform/framework-shared/core';\n\n//#region ---- Locale & regional context definitions ----\n\nexport const AXM_LOCALE_CONTEXT_DEFINITIONS: AXPContextDefinition[] = [\n {\n name: 'locale',\n title: 'UI locale',\n description:\n 'Active UI language code from the translation service (e.g. en-US, fa-IR). Controls labels and locale-aware explanations.',\n order: 40,\n capabilities: ['ai'],\n },\n {\n name: 'calendarSystem',\n title: 'Calendar system',\n description:\n 'User regional setting for calendar system (e.g. Gregorian, Jalali). Used for date interpretation and scheduling answers.',\n order: 50,\n capabilities: ['ai'],\n },\n {\n name: 'timeZone',\n title: 'Time zone',\n description: 'IANA time zone from user regional settings. Used with current local date/time for scheduling context.',\n order: 60,\n capabilities: ['ai'],\n },\n {\n name: 'country',\n title: 'Country',\n description: 'User regional country setting. Informs locale-specific conventions and regional defaults.',\n order: 70,\n capabilities: ['ai'],\n },\n];\n\n//#endregion\n","export const AXPLocaleManagementMenuKeys = {\n Root: 'locale-management:menu',\n Languages: 'locale-management:menu:languages',\n Divider1: 'locale-management:menu:divider-1',\n Timezones: 'locale-management:menu:timezones',\n} as const;\n\n","/**\n * Applications & Platform capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPApplicationsPlatformPermissionKeys = {\n Access: 'ApplicationsPlatform:Permission:Access',\n MaintainApplications: 'ApplicationsPlatform:Permission:MaintainApplications',\n MaintainTenants: 'ApplicationsPlatform:Permission:MaintainTenants',\n MaintainPlatformShell: 'ApplicationsPlatform:Permission:MaintainPlatformShell',\n MaintainLandingPages: 'ApplicationsPlatform:Permission:MaintainLandingPages',\n MaintainIdentifiers: 'ApplicationsPlatform:Permission:MaintainIdentifiers',\n MaintainTenantSettings: 'ApplicationsPlatform:Permission:MaintainTenantSettings',\n MaintainPlatformSettings: 'ApplicationsPlatform:Permission:MaintainPlatformSettings',\n MaintainLocales: 'ApplicationsPlatform:Permission:MaintainLocales',\n UseDevTools: 'ApplicationsPlatform:Permission:UseDevTools',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPApplicationsPlatformPermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXMPermissionsKeys = {\n LocaleManagement: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Language: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n View: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Edit: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Delete: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Create: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n },\n Timezone: {\n Management: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n View: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Edit: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Delete: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n Create: AXPApplicationsPlatformPermissionKeys.MaintainLocales,\n },\n },\n} as const;\n","//#region ----- Locale profile catalog (Available Languages picker) -----\n\n/**\n * Optional allow-list of built-in locale profile codes for the Available Languages\n * picker (`getLocaleProfiles`). Empty default (`null`) = all built-in profiles.\n *\n * Product/deploy apps may call {@link configureLocaleProfileCatalogCodes} at boot.\n * Prefer tenant `AvailableLanguages` when only some tenants should hide a locale.\n */\nlet localeProfileCatalogCodes: readonly string[] | null = null;\n\n/**\n * Restrict which built-in locale profiles appear in the Available Languages picker.\n * Pass `null` or an empty list to restore the full built-in catalog.\n */\nexport function configureLocaleProfileCatalogCodes(codes: readonly string[] | null): void {\n if (!Array.isArray(codes) || codes.length === 0) {\n localeProfileCatalogCodes = null;\n return;\n }\n localeProfileCatalogCodes = codes.map((code) => String(code).trim()).filter(Boolean);\n if (localeProfileCatalogCodes.length === 0) {\n localeProfileCatalogCodes = null;\n }\n}\n\n/** Configured catalog allow-list, or `null` when the full built-in catalog is used. */\nexport function getLocaleProfileCatalogCodes(): readonly string[] | null {\n return localeProfileCatalogCodes;\n}\n\n//#endregion\n","const config = {\n i18n: 'locale-management',\n};\n\nexport const RootConfig = {\n config,\n module: {\n name: 'LocaleManagement',\n title: '@locale-management:module.title',\n icon: 'fa-light fa-globe',\n },\n entities: {\n languages: {\n name: 'Languages',\n title: '@locale-management:languages.entities.language.title',\n titlePlural: '@locale-management:languages.entities.language.plural',\n icon: 'fa-light fa-language',\n },\n locales: {\n name: 'Locales',\n title: '@locale-management:locales.entities.locale.title',\n titlePlural: '@locale-management:locales.entities.locale.plural',\n icon: 'fa-light fa-globe',\n },\n timezones: {\n name: 'Timezones',\n title: '@locale-management:timezones.entities.timezone.title',\n titlePlural: '@locale-management:timezones.entities.timezone.plural',\n icon: 'fa-light fa-clock',\n },\n },\n} as const;\n","//#region ---- Contracts barrel ----\n\nexport * from './lib/context.definitions';\nexport * from './menu.keys';\nexport * from './permission.keys';\nexport * from './locale-profile-catalog.configure';\n\nexport * from './root-config';\n\n//#endregion\n\nexport * from './entities';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAEA;AAEO,MAAM,8BAA8B,GAA2B;AACpE,IAAA;AACE,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,KAAK,EAAE,WAAW;AAClB,QAAA,WAAW,EACT,0HAA0H;AAC5H,QAAA,KAAK,EAAE,EAAE;QACT,YAAY,EAAE,CAAC,IAAI,CAAC;AACrB,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,gBAAgB;AACtB,QAAA,KAAK,EAAE,iBAAiB;AACxB,QAAA,WAAW,EACT,0HAA0H;AAC5H,QAAA,KAAK,EAAE,EAAE;QACT,YAAY,EAAE,CAAC,IAAI,CAAC;AACrB,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,UAAU;AAChB,QAAA,KAAK,EAAE,WAAW;AAClB,QAAA,WAAW,EAAE,uGAAuG;AACpH,QAAA,KAAK,EAAE,EAAE;QACT,YAAY,EAAE,CAAC,IAAI,CAAC;AACrB,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,SAAS;AACf,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,WAAW,EAAE,2FAA2F;AACxG,QAAA,KAAK,EAAE,EAAE;QACT,YAAY,EAAE,CAAC,IAAI,CAAC;AACrB,KAAA;;AAGH;;ACrCO,MAAM,2BAA2B,GAAG;AACvC,IAAA,IAAI,EAAE,wBAAwB;AAC9B,IAAA,SAA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KT5v3V.mjs","sources":["../../../../libs/modules/locale-management/client/src/lib/features/queries/list-available-locale-profiles.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\nimport { AXPLocaleProfile } from '@acorex-platform/framework-client/common';\n\nimport { Injectable, inject } from '@angular/core';\n\nimport { AXMLocaleManagementService } from '../shared/locale-management.service';\n\n//#region ---- Types ----\n\nexport type AXMListAvailableLocaleProfilesQueryInput = AXPCollectionQueryInput;\n\nexport type AXMListAvailableLocaleProfilesQueryItem = AXPLocaleProfile;\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Tenant-allowed locale profile catalog — replaces the `available-locale-profiles` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListAvailableLocaleProfilesQuery\n implements\n AXPCollectionQuery<\n AXMListAvailableLocaleProfilesQueryInput,\n AXMListAvailableLocaleProfilesQueryItem\n >\n{\n //#region ---- Services & Dependencies ----\n\n private readonly localeManagement = inject(AXMLocaleManagementService);\n\n //#endregion\n\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListAvailableLocaleProfilesQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListAvailableLocaleProfilesQueryItem> {\n try {\n let items = [...(await this.localeManagement.getAvailableLocaleProfiles())];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'code' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;AAwBA;AAEA;AAEA;;AAEG;MAEU,mCAAmC,CAAA;AADhD,IAAA,WAAA,GAAA;;AAUmB,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,0BAA0B,CAAC;AAkCvE,IAAA;;;IA5BC,MAAM,KAAK,CACT,KAAuD,EAAA;AAEvD,QAAA,IAAI;AACF,YAAA,IAAI,KAAK,GAAG,CAAC,IAAI,MAAM,IAAI,CAAC,gBAAgB,CAAC,0BAA0B,EAAE,CAAC,CAAC;AAE3E,YAAA,IAAI,KAAK,EAAE,MAAM,EAAE;gBACjB,KAAK,GAAG,gBAAgB,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YACjD;AAEA,YAAA,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,GAAG,KAAK,EAAE,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE;YACzF,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,GAAG,OAAO,GAAG,CAAC,EAAE,KAAK,EAAE,MAAe,EAAE,GAAG,EAAE,KAAc,EAAE,CAAC;AAChG,YAAA,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC;YAEtC,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;YAC/C,MAAM,IAAI,GAAG,qBAAqB,CAAC,KAAK,EAAE,IAAI,CAAC;AAC/C,YAAA,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM;AAC1B,YAAA,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;YAE3C,OAAO,6BAA6B,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC9D;QAAE,OAAO,KAAK,EAAE;AACd,YAAA,OAAO,mBAAmB,CACxB,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAClE;QACH;IACF;8GAxCW,mCAAmC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAnC,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mCAAmC,cADtB,MAAM,EAAA,CAAA,CAAA;;2FACnB,mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAD/C,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-locale-management-client-list-available-locale-profiles.query-30KT5v3V.mjs","sources":["../../../../libs/modules/locale-management/client/src/lib/features/queries/list-available-locale-profiles.query.ts"],"sourcesContent":["import {\n resolveCollectionSkip,\n resolveCollectionTake,\n type AXPCollectionQuery,\n type AXPCollectionQueryInput,\n type AXPQueryCollectionFetchResultPromise,\n} from '@acorex-platform/framework-shared/runtime';\nimport {\n runtimeQueryFailure,\n runtimeQuerySuccessCollection,\n} from '@acorex-platform/framework-shared/core';\nimport { applyFilterArray, applySortArray } from '@acorex-platform/framework-client/core';\nimport { AXPLocaleProfile } from '@acorex-platform/framework-client/common';\n\nimport { Injectable, inject } from '@angular/core';\n\nimport { AXMLocaleManagementService } from '../shared/locale-management.service';\n\n//#region ---- Types ----\n\nexport type AXMListAvailableLocaleProfilesQueryInput = AXPCollectionQueryInput;\n\nexport type AXMListAvailableLocaleProfilesQueryItem = AXPLocaleProfile;\n\n//#endregion\n\n//#region ---- Query ----\n\n/**\n * Tenant-allowed locale profile catalog — replaces the `available-locale-profiles` DI data source.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXMListAvailableLocaleProfilesQuery\n implements\n AXPCollectionQuery<\n AXMListAvailableLocaleProfilesQueryInput,\n AXMListAvailableLocaleProfilesQueryItem\n >\n{\n //#region ---- Services & Dependencies ----\n\n private readonly localeManagement = inject(AXMLocaleManagementService);\n\n //#endregion\n\n //#region ---- Query Execution ----\n\n async fetch(\n input?: AXMListAvailableLocaleProfilesQueryInput | null,\n ): AXPQueryCollectionFetchResultPromise<AXMListAvailableLocaleProfilesQueryItem> {\n try {\n let items = [...(await this.localeManagement.getAvailableLocaleProfiles())];\n\n if (input?.filter) {\n items = applyFilterArray(items, [input.filter]);\n }\n\n const rawSort = Array.isArray(input?.sort) ? input.sort : input?.sort ? [input.sort] : [];\n const sortOpt = rawSort.length > 0 ? rawSort : [{ field: 'code' as const, dir: 'asc' as const }];\n items = applySortArray(items, sortOpt);\n\n const skip = resolveCollectionSkip(input?.skip);\n const take = resolveCollectionTake(input?.take);\n const total = items.length;\n const page = items.slice(skip, skip + take);\n\n return runtimeQuerySuccessCollection({ items: page, total });\n } catch (error) {\n return runtimeQueryFailure(\n error instanceof Error ? error.message : 'Unknown error occurred',\n );\n }\n }\n\n //#endregion\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;AAwBA;AAEA;AAEA;;AAEG;MAEU,mCAAmC,CAAA;AADhD,IAAA,WAAA,GAAA;;AAUmB,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,0BAA0B,CAAC;AAkCvE,IAAA;;;IA5BC,MAAM,KAAK,CACT,KAAuD,EAAA;AAEvD,QAAA,IAAI;AACF,YAAA,IAAI,KAAK,GAAG,CAAC,IAAI,MAAM,IAAI,CAAC,gBAAgB,CAAC,0BAA0B,EAAE,CAAC,CAAC;AAE3E,YAAA,IAAI,KAAK,EAAE,MAAM,EAAE;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