@acorex-platform/module-financial-core-client 0.0.30 → 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 (54) hide show
  1. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-currency.mjs +324 -0
  2. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-currency.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-exchange-rate.mjs +380 -0
  4. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-exchange-rate.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-financial-dimension.mjs +295 -0
  6. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-financial-dimension.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-fiscal-calendar.mjs +343 -0
  8. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-fiscal-calendar.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-payment-method.mjs +351 -0
  10. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-payment-method.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-payment-term.mjs +288 -0
  12. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-payment-term.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-class.mjs +282 -0
  14. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-class.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-region.mjs +272 -0
  16. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-region.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-rule.mjs +364 -0
  18. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-rule.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-acorex-platform-module-financial-core-client-contracts-entity-catalog-DpAVTjcD.mjs +99 -0
  20. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-acorex-platform-module-financial-core-client-contracts-entity-catalog-DpAVTjcD.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-currency.entity-C6VWyRY-.mjs +252 -0
  22. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-currency.entity-C6VWyRY-.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-exchange-rate.entity-D9ZfPYOX.mjs +308 -0
  24. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-exchange-rate.entity-D9ZfPYOX.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-financial-dimension.entity-P6IpxIPP.mjs +223 -0
  26. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-financial-dimension.entity-P6IpxIPP.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-fiscal-calendar.entity-CHFARbBF.mjs +271 -0
  28. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-fiscal-calendar.entity-CHFARbBF.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-method.entity-CWj-4rZX.mjs +279 -0
  30. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-method.entity-CWj-4rZX.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-term.entity-Bpl7usEL.mjs +216 -0
  32. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-term.entity-Bpl7usEL.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-class.entity-l6AYvaaV.mjs +210 -0
  34. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-class.entity-l6AYvaaV.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-region.entity-DVBfpcCF.mjs +200 -0
  36. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-region.entity-DVBfpcCF.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-rule.entity-0_Q8paGB.mjs +292 -0
  38. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-rule.entity-0_Q8paGB.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog.mjs +2 -0
  40. package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-module-financial-core-client-local-entities.mjs +37 -0
  42. package/fesm2022/acorex-platform-module-financial-core-client-local-entities.mjs.map +1 -0
  43. package/package.json +45 -1
  44. package/types/acorex-platform-module-financial-core-client-contracts-entities-currency.d.ts +5 -0
  45. package/types/acorex-platform-module-financial-core-client-contracts-entities-exchange-rate.d.ts +5 -0
  46. package/types/acorex-platform-module-financial-core-client-contracts-entities-financial-dimension.d.ts +5 -0
  47. package/types/acorex-platform-module-financial-core-client-contracts-entities-fiscal-calendar.d.ts +5 -0
  48. package/types/acorex-platform-module-financial-core-client-contracts-entities-payment-method.d.ts +5 -0
  49. package/types/acorex-platform-module-financial-core-client-contracts-entities-payment-term.d.ts +5 -0
  50. package/types/acorex-platform-module-financial-core-client-contracts-entities-tax-class.d.ts +5 -0
  51. package/types/acorex-platform-module-financial-core-client-contracts-entities-tax-region.d.ts +5 -0
  52. package/types/acorex-platform-module-financial-core-client-contracts-entities-tax-rule.d.ts +5 -0
  53. package/types/acorex-platform-module-financial-core-client-contracts-entity-catalog.d.ts +10 -0
  54. package/types/acorex-platform-module-financial-core-client-local-entities.d.ts +12 -0
@@ -0,0 +1,308 @@
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-financial-core-client-contracts-entity-catalog-acorex-platform-module-financial-core-client-contracts-entity-catalog-DpAVTjcD.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity Factory ----
7
+ async function exchangeRateFactory() {
8
+ const sections = [
9
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
10
+ { id: 'valuation', layout: { positions: { lg: { colSpan: 12 } } } },
11
+ ];
12
+ const propertyLayouts = [
13
+ { name: 'pairCode', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
14
+ { name: 'title', layout: { positions: { lg: { colSpan: 5, order: 2 } } } },
15
+ { name: 'method', layout: { positions: { lg: { colSpan: 3, order: 3 } } } },
16
+ { name: 'baseCurrencyId', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
17
+ { name: 'quoteCurrencyId', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },
18
+ { name: 'source', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
19
+ { name: 'status', layout: { positions: { lg: { colSpan: 4, order: 7 } } } },
20
+ { name: 'rate', layout: { positions: { lg: { colSpan: 4, order: 8 } } } },
21
+ { name: 'inverseRate', layout: { positions: { lg: { colSpan: 4, order: 9 } } } },
22
+ { name: 'effectiveFrom', layout: { positions: { lg: { colSpan: 4, order: 10 } } } },
23
+ { name: 'effectiveTo', layout: { positions: { lg: { colSpan: 4, order: 11 } } } },
24
+ ];
25
+ const entityDef = {
26
+ module: RootConfig.module.name,
27
+ name: RootConfig.entities.exchangeRate.name,
28
+ title: RootConfig.entities.exchangeRate.title,
29
+ icon: RootConfig.entities.exchangeRate.icon,
30
+ formats: {
31
+ individual: RootConfig.entities.exchangeRate.title,
32
+ plural: RootConfig.entities.exchangeRate.titlePlural,
33
+ searchResult: {
34
+ title: '{{ pairCode }}',
35
+ description: '{{ context.eval("baseCurrency.title", { pipes: ["translate"] }) + " → " + context.eval("quoteCurrency.title", { pipes: ["translate"] }) }}',
36
+ },
37
+ },
38
+ plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }, { name: 'clone' }],
39
+ groups: [
40
+ { id: 'basic-info', title: '@financial-core:exchange-rates.entities.exchange-rate.groups.basic-info' },
41
+ { id: 'valuation', title: '@financial-core:exchange-rates.entities.exchange-rate.groups.valuation' },
42
+ ],
43
+ properties: [
44
+ {
45
+ name: 'id',
46
+ title: '@general:terms.common.id',
47
+ groupId: 'basic-info',
48
+ schema: {
49
+ dataType: 'uuid',
50
+ visible: false,
51
+ readonly: true,
52
+ unique: { enabled: true },
53
+ },
54
+ },
55
+ {
56
+ name: 'pairCode',
57
+ title: '@financial-core:exchange-rates.entities.exchange-rate.fields.pair-code.title',
58
+ groupId: 'basic-info',
59
+ options: {
60
+ sort: { enabled: true },
61
+ filter: {
62
+ advance: { enabled: true },
63
+ inline: { enabled: true },
64
+ },
65
+ },
66
+ schema: {
67
+ dataType: 'string',
68
+ interface: {
69
+ type: AXPWidgetsList.Editors.TextBox,
70
+ options: {
71
+ mask: 'AAA/AAA',
72
+ placeholder: '@financial-core:exchange-rates.entities.exchange-rate.fields.pair-code.placeholder',
73
+ },
74
+ },
75
+ },
76
+ validations: [{ rule: 'required' }],
77
+ },
78
+ {
79
+ name: 'title',
80
+ title: '@general:terms.common.title',
81
+ groupId: 'basic-info',
82
+ schema: {
83
+ dataType: 'string',
84
+ interface: {
85
+ type: AXPWidgetsList.Editors.TextBox,
86
+ options: {
87
+ placeholder: '@financial-core:exchange-rates.entities.exchange-rate.fields.title.placeholder',
88
+ },
89
+ },
90
+ },
91
+ validations: [{ rule: 'required' }],
92
+ },
93
+ {
94
+ name: 'method',
95
+ title: '@financial-core:exchange-rates.entities.exchange-rate.fields.method.title',
96
+ groupId: 'basic-info',
97
+ schema: {
98
+ dataType: 'string',
99
+ interface: {
100
+ type: AXPWidgetsList.Editors.SelectBox,
101
+ options: {
102
+ valueField: 'value',
103
+ textField: 'text',
104
+ dataSource: [
105
+ {
106
+ value: 'manual',
107
+ text: '@financial-core:exchange-rates.entities.exchange-rate.fields.method.options.manual',
108
+ },
109
+ {
110
+ value: 'market',
111
+ text: '@financial-core:exchange-rates.entities.exchange-rate.fields.method.options.market',
112
+ },
113
+ {
114
+ value: 'central-bank',
115
+ text: '@financial-core:exchange-rates.entities.exchange-rate.fields.method.options.central-bank',
116
+ },
117
+ ],
118
+ },
119
+ },
120
+ },
121
+ validations: [{ rule: 'required' }],
122
+ },
123
+ {
124
+ name: 'baseCurrencyId',
125
+ title: '@financial-core:exchange-rates.entities.exchange-rate.fields.base-currency.title',
126
+ groupId: 'basic-info',
127
+ schema: {
128
+ dataType: 'string',
129
+ interface: {
130
+ type: AXPWidgetsList.Editors.LookupBox,
131
+ options: {
132
+ entity: `${RootConfig.module.name}.${RootConfig.entities.currency.name}`,
133
+ look: 'select',
134
+ expose: [
135
+ { source: 'id', target: 'baseCurrency.id' },
136
+ { source: 'title', target: 'baseCurrency.title' },
137
+ { source: 'symbol', target: 'baseCurrency.symbol' },
138
+ ],
139
+ },
140
+ },
141
+ },
142
+ validations: [{ rule: 'required' }],
143
+ },
144
+ {
145
+ name: 'quoteCurrencyId',
146
+ title: '@financial-core:exchange-rates.entities.exchange-rate.fields.quote-currency.title',
147
+ groupId: 'basic-info',
148
+ schema: {
149
+ dataType: 'string',
150
+ interface: {
151
+ type: AXPWidgetsList.Editors.LookupBox,
152
+ options: {
153
+ entity: `${RootConfig.module.name}.${RootConfig.entities.currency.name}`,
154
+ look: 'select',
155
+ expose: [
156
+ { source: 'id', target: 'quoteCurrency.id' },
157
+ { source: 'title', target: 'quoteCurrency.title' },
158
+ { source: 'symbol', target: 'quoteCurrency.symbol' },
159
+ ],
160
+ },
161
+ },
162
+ },
163
+ validations: [{ rule: 'required' }],
164
+ },
165
+ {
166
+ name: 'source',
167
+ title: '@financial-core:exchange-rates.entities.exchange-rate.fields.source.title',
168
+ groupId: 'basic-info',
169
+ schema: {
170
+ dataType: 'string',
171
+ interface: {
172
+ type: AXPWidgetsList.Editors.TextBox,
173
+ options: {
174
+ placeholder: '@financial-core:exchange-rates.entities.exchange-rate.fields.source.placeholder',
175
+ },
176
+ },
177
+ },
178
+ },
179
+ {
180
+ name: 'status',
181
+ title: '@financial-core:exchange-rates.entities.exchange-rate.fields.status.title',
182
+ groupId: 'basic-info',
183
+ schema: {
184
+ dataType: 'string',
185
+ interface: {
186
+ type: AXPWidgetsList.Editors.SelectBox,
187
+ options: {
188
+ valueField: 'value',
189
+ textField: 'text',
190
+ dataSource: [
191
+ {
192
+ value: 'draft',
193
+ text: '@financial-core:exchange-rates.entities.exchange-rate.fields.status.options.draft',
194
+ },
195
+ {
196
+ value: 'published',
197
+ text: '@financial-core:exchange-rates.entities.exchange-rate.fields.status.options.published',
198
+ },
199
+ {
200
+ value: 'expired',
201
+ text: '@financial-core:exchange-rates.entities.exchange-rate.fields.status.options.expired',
202
+ },
203
+ ],
204
+ },
205
+ },
206
+ },
207
+ },
208
+ {
209
+ name: 'rate',
210
+ title: '@financial-core:exchange-rates.entities.exchange-rate.fields.rate.title',
211
+ groupId: 'valuation',
212
+ schema: {
213
+ dataType: 'number',
214
+ interface: {
215
+ type: AXPWidgetsList.Editors.NumberBox,
216
+ options: {
217
+ minValue: 0,
218
+ step: 0.0001,
219
+ },
220
+ },
221
+ },
222
+ validations: [{ rule: 'required' }],
223
+ },
224
+ {
225
+ name: 'inverseRate',
226
+ title: '@financial-core:exchange-rates.entities.exchange-rate.fields.inverse-rate.title',
227
+ groupId: 'valuation',
228
+ schema: {
229
+ dataType: 'number',
230
+ interface: {
231
+ type: AXPWidgetsList.Editors.NumberBox,
232
+ options: {
233
+ minValue: 0,
234
+ step: 0.0001,
235
+ },
236
+ },
237
+ },
238
+ },
239
+ {
240
+ name: 'effectiveFrom',
241
+ title: '@financial-core:exchange-rates.entities.exchange-rate.fields.effective-from.title',
242
+ groupId: 'valuation',
243
+ schema: {
244
+ dataType: 'date',
245
+ interface: {
246
+ type: AXPWidgetsList.Editors.DateTimeBox,
247
+ options: {
248
+ showTime: true,
249
+ },
250
+ },
251
+ },
252
+ validations: [{ rule: 'required' }],
253
+ },
254
+ {
255
+ name: 'effectiveTo',
256
+ title: '@financial-core:exchange-rates.entities.exchange-rate.fields.effective-to.title',
257
+ groupId: 'valuation',
258
+ schema: {
259
+ dataType: 'date',
260
+ interface: {
261
+ type: AXPWidgetsList.Editors.DateTimeBox,
262
+ options: {
263
+ showTime: true,
264
+ },
265
+ },
266
+ },
267
+ },
268
+ ],
269
+ columns: [
270
+ { name: 'pairCode', options: { width: '140px', order: 1 } },
271
+ { name: 'baseCurrencyId', options: { dataPath: 'baseCurrency.title', width: '200px', order: 2 } },
272
+ { name: 'quoteCurrencyId', options: { dataPath: 'quoteCurrency.title', width: '200px', order: 3 } },
273
+ { name: 'rate', options: { width: '140px', order: 4 } },
274
+ { name: 'effectiveFrom', options: { width: '180px', order: 5 } },
275
+ ],
276
+ interfaces: {
277
+ master: {
278
+ create: {
279
+ sections,
280
+ properties: propertyLayouts,
281
+ },
282
+ update: {
283
+ sections,
284
+ properties: propertyLayouts,
285
+ },
286
+ single: {
287
+ title: '{{ pairCode }}',
288
+ sections,
289
+ properties: propertyLayouts,
290
+ actions: [...entityMasterRecordActions()],
291
+ },
292
+ list: {
293
+ actions: [...entityMasterCrudActions()],
294
+ views: [
295
+ createAllQueryView({
296
+ sorts: [{ name: 'pairCode', dir: 'asc' }],
297
+ }),
298
+ ],
299
+ },
300
+ },
301
+ },
302
+ };
303
+ return entityDef;
304
+ }
305
+ //#endregion
306
+
307
+ export { exchangeRateFactory };
308
+ //# sourceMappingURL=acorex-platform-module-financial-core-client-contracts-entity-catalog-exchange-rate.entity-D9ZfPYOX.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-financial-core-client-contracts-entity-catalog-exchange-rate.entity-D9ZfPYOX.mjs","sources":["../../../../libs/modules/financial-core/contracts/src/entities/exchange-rate/exchange-rate.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 exchangeRateFactory(): Promise<AXPEntity> {\n\n const sections = [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'valuation', layout: { positions: { lg: { colSpan: 12 } } } },\n ];\n\n const propertyLayouts = [\n { name: 'pairCode', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 5, order: 2 } } } },\n { name: 'method', layout: { positions: { lg: { colSpan: 3, order: 3 } } } },\n { name: 'baseCurrencyId', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },\n { name: 'quoteCurrencyId', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },\n { name: 'source', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },\n { name: 'status', layout: { positions: { lg: { colSpan: 4, order: 7 } } } },\n { name: 'rate', layout: { positions: { lg: { colSpan: 4, order: 8 } } } },\n { name: 'inverseRate', layout: { positions: { lg: { colSpan: 4, order: 9 } } } },\n { name: 'effectiveFrom', layout: { positions: { lg: { colSpan: 4, order: 10 } } } },\n { name: 'effectiveTo', layout: { positions: { lg: { colSpan: 4, order: 11 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.exchangeRate.name,\n title: RootConfig.entities.exchangeRate.title,\n icon: RootConfig.entities.exchangeRate.icon,\n formats: {\n individual: RootConfig.entities.exchangeRate.title,\n plural: RootConfig.entities.exchangeRate.titlePlural,\n searchResult: {\n title: '{{ pairCode }}',\n description:\n '{{ context.eval(\"baseCurrency.title\", { pipes: [\"translate\"] }) + \" → \" + context.eval(\"quoteCurrency.title\", { pipes: [\"translate\"] }) }}',\n },\n },\n plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }, { name: 'clone' }],\n groups: [\n { id: 'basic-info', title: '@financial-core:exchange-rates.entities.exchange-rate.groups.basic-info' },\n { id: 'valuation', title: '@financial-core:exchange-rates.entities.exchange-rate.groups.valuation' },\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: 'pairCode',\n title: '@financial-core:exchange-rates.entities.exchange-rate.fields.pair-code.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 mask: 'AAA/AAA',\n placeholder: '@financial-core:exchange-rates.entities.exchange-rate.fields.pair-code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@financial-core:exchange-rates.entities.exchange-rate.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'method',\n title: '@financial-core:exchange-rates.entities.exchange-rate.fields.method.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n {\n value: 'manual',\n text: '@financial-core:exchange-rates.entities.exchange-rate.fields.method.options.manual',\n },\n {\n value: 'market',\n text: '@financial-core:exchange-rates.entities.exchange-rate.fields.method.options.market',\n },\n {\n value: 'central-bank',\n text: '@financial-core:exchange-rates.entities.exchange-rate.fields.method.options.central-bank',\n },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'baseCurrencyId',\n title: '@financial-core:exchange-rates.entities.exchange-rate.fields.base-currency.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.currency.name}`,\n look: 'select',\n expose: [\n { source: 'id', target: 'baseCurrency.id' },\n { source: 'title', target: 'baseCurrency.title' },\n { source: 'symbol', target: 'baseCurrency.symbol' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'quoteCurrencyId',\n title: '@financial-core:exchange-rates.entities.exchange-rate.fields.quote-currency.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.currency.name}`,\n look: 'select',\n expose: [\n { source: 'id', target: 'quoteCurrency.id' },\n { source: 'title', target: 'quoteCurrency.title' },\n { source: 'symbol', target: 'quoteCurrency.symbol' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'source',\n title: '@financial-core:exchange-rates.entities.exchange-rate.fields.source.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@financial-core:exchange-rates.entities.exchange-rate.fields.source.placeholder',\n },\n },\n },\n },\n {\n name: 'status',\n title: '@financial-core:exchange-rates.entities.exchange-rate.fields.status.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n {\n value: 'draft',\n text: '@financial-core:exchange-rates.entities.exchange-rate.fields.status.options.draft',\n },\n {\n value: 'published',\n text: '@financial-core:exchange-rates.entities.exchange-rate.fields.status.options.published',\n },\n {\n value: 'expired',\n text: '@financial-core:exchange-rates.entities.exchange-rate.fields.status.options.expired',\n },\n ],\n },\n },\n },\n },\n {\n name: 'rate',\n title: '@financial-core:exchange-rates.entities.exchange-rate.fields.rate.title',\n groupId: 'valuation',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 0,\n step: 0.0001,\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'inverseRate',\n title: '@financial-core:exchange-rates.entities.exchange-rate.fields.inverse-rate.title',\n groupId: 'valuation',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 0,\n step: 0.0001,\n },\n },\n },\n },\n {\n name: 'effectiveFrom',\n title: '@financial-core:exchange-rates.entities.exchange-rate.fields.effective-from.title',\n groupId: 'valuation',\n schema: {\n dataType: 'date',\n interface: {\n type: AXPWidgetsList.Editors.DateTimeBox,\n options: {\n showTime: true,\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'effectiveTo',\n title: '@financial-core:exchange-rates.entities.exchange-rate.fields.effective-to.title',\n groupId: 'valuation',\n schema: {\n dataType: 'date',\n interface: {\n type: AXPWidgetsList.Editors.DateTimeBox,\n options: {\n showTime: true,\n },\n },\n },\n },\n ],\n columns: [\n { name: 'pairCode', options: { width: '140px', order: 1 } },\n { name: 'baseCurrencyId', options: { dataPath: 'baseCurrency.title', width: '200px', order: 2 } },\n { name: 'quoteCurrencyId', options: { dataPath: 'quoteCurrency.title', width: '200px', order: 3 } },\n { name: 'rate', options: { width: '140px', order: 4 } },\n { name: 'effectiveFrom', options: { width: '180px', order: 5 } },\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: '{{ pairCode }}',\n sections,\n properties: propertyLayouts,\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'pairCode', dir: 'asc' }],\n }),\n ],\n },\n },\n },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qB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;AACnG,YAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;AACvD,YAAA,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;AACjE,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,MAAM,EAAE;oBACN,QAAQ;AACR,oBAAA,UAAU,EAAE,eAAe;AAC5B,iBAAA;AACD,gBAAA,MAAM,EAAE;oBACN,QAAQ;AACR,oBAAA,UAAU,EAAE,eAAe;AAC5B,iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,KAAK,EAAE,gBAAgB;oBACvB,QAAQ;AACR,oBAAA,UAAU,EAAE,eAAe;AAC3B,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,UAAU,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBAC1C,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
@@ -0,0 +1,223 @@
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-financial-core-client-contracts-entity-catalog-acorex-platform-module-financial-core-client-contracts-entity-catalog-DpAVTjcD.mjs';
4
+
5
+ //#endregion
6
+ //#region ---- Entity Factory ----
7
+ async function financialDimensionFactory() {
8
+ const sections = [
9
+ { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
10
+ { id: 'hierarchy', layout: { positions: { lg: { colSpan: 12 } } } },
11
+ ];
12
+ const propertyLayouts = [
13
+ { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
14
+ { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },
15
+ { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
16
+ { name: 'dimensionType', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
17
+ { name: 'parentId', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },
18
+ { name: 'displayOrder', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
19
+ { name: 'isLeaf', layout: { positions: { lg: { colSpan: 4, order: 7 } } } },
20
+ ];
21
+ const entityDef = {
22
+ module: RootConfig.module.name,
23
+ name: RootConfig.entities.financialDimension.name,
24
+ title: RootConfig.entities.financialDimension.title,
25
+ icon: RootConfig.entities.financialDimension.icon,
26
+ formats: {
27
+ individual: RootConfig.entities.financialDimension.title,
28
+ plural: RootConfig.entities.financialDimension.titlePlural,
29
+ searchResult: {
30
+ title: '{{ title }}',
31
+ description: '{{ dimensionType }}',
32
+ },
33
+ },
34
+ plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }, { name: 'archive' }, { name: 'tags' }],
35
+ groups: [
36
+ { id: 'basic-info', title: '@financial-core:dimensions.entities.financial-dimension.groups.basic-info' },
37
+ { id: 'hierarchy', title: '@financial-core:dimensions.entities.financial-dimension.groups.hierarchy' },
38
+ ],
39
+ properties: [
40
+ {
41
+ name: 'id',
42
+ title: '@general:terms.common.id',
43
+ groupId: 'basic-info',
44
+ schema: {
45
+ dataType: 'uuid',
46
+ visible: false,
47
+ readonly: true,
48
+ unique: { enabled: true },
49
+ },
50
+ },
51
+ {
52
+ name: 'code',
53
+ title: '@general:terms.common.code',
54
+ groupId: 'basic-info',
55
+ options: {
56
+ sort: { enabled: true },
57
+ filter: { advance: { enabled: true }, inline: { enabled: true } },
58
+ },
59
+ schema: {
60
+ dataType: 'string',
61
+ interface: {
62
+ type: AXPWidgetsList.Editors.TextBox,
63
+ options: {
64
+ placeholder: '@financial-core:dimensions.entities.financial-dimension.fields.code.placeholder',
65
+ },
66
+ },
67
+ },
68
+ validations: [{ rule: 'required' }],
69
+ },
70
+ {
71
+ name: 'title',
72
+ title: '@general:terms.common.title',
73
+ groupId: 'basic-info',
74
+ schema: {
75
+ dataType: 'string',
76
+ interface: {
77
+ type: AXPWidgetsList.Editors.TextBox,
78
+ options: {
79
+ placeholder: '@financial-core:dimensions.entities.financial-dimension.fields.title.placeholder',
80
+ },
81
+ },
82
+ },
83
+ validations: [{ rule: 'required' }],
84
+ },
85
+ {
86
+ name: 'description',
87
+ title: '@general:terms.common.description',
88
+ groupId: 'basic-info',
89
+ schema: {
90
+ dataType: 'string',
91
+ interface: {
92
+ type: AXPWidgetsList.Editors.LargeTextBox,
93
+ options: {
94
+ rows: 4,
95
+ placeholder: '@financial-core:dimensions.entities.financial-dimension.fields.description.placeholder',
96
+ },
97
+ },
98
+ },
99
+ },
100
+ {
101
+ name: 'dimensionType',
102
+ title: '@financial-core:dimensions.entities.financial-dimension.fields.dimension-type.title',
103
+ groupId: 'basic-info',
104
+ schema: {
105
+ dataType: 'string',
106
+ interface: {
107
+ type: AXPWidgetsList.Editors.SelectBox,
108
+ options: {
109
+ valueField: 'value',
110
+ textField: 'text',
111
+ dataSource: [
112
+ {
113
+ value: 'cost-center',
114
+ text: '@financial-core:dimensions.entities.financial-dimension.fields.dimension-type.options.cost-center',
115
+ },
116
+ {
117
+ value: 'profit-center',
118
+ text: '@financial-core:dimensions.entities.financial-dimension.fields.dimension-type.options.profit-center',
119
+ },
120
+ {
121
+ value: 'project',
122
+ text: '@financial-core:dimensions.entities.financial-dimension.fields.dimension-type.options.project',
123
+ },
124
+ {
125
+ value: 'product',
126
+ text: '@financial-core:dimensions.entities.financial-dimension.fields.dimension-type.options.product',
127
+ },
128
+ {
129
+ value: 'region',
130
+ text: '@financial-core:dimensions.entities.financial-dimension.fields.dimension-type.options.region',
131
+ },
132
+ ],
133
+ },
134
+ },
135
+ },
136
+ validations: [{ rule: 'required' }],
137
+ },
138
+ {
139
+ name: 'parentId',
140
+ title: '@financial-core:dimensions.entities.financial-dimension.fields.parent.title',
141
+ groupId: 'hierarchy',
142
+ schema: {
143
+ dataType: 'string',
144
+ interface: {
145
+ type: AXPWidgetsList.Editors.LookupBox,
146
+ options: {
147
+ entity: `${RootConfig.module.name}.${RootConfig.entities.financialDimension.name}`,
148
+ look: 'tree',
149
+ multiple: false,
150
+ expose: [
151
+ { source: 'id', target: 'parent.id' },
152
+ { source: 'title', target: 'parent.title' },
153
+ ],
154
+ },
155
+ },
156
+ },
157
+ },
158
+ {
159
+ name: 'displayOrder',
160
+ title: '@financial-core:dimensions.entities.financial-dimension.fields.display-order.title',
161
+ groupId: 'hierarchy',
162
+ schema: {
163
+ dataType: 'number',
164
+ interface: {
165
+ type: AXPWidgetsList.Editors.NumberBox,
166
+ options: {
167
+ minValue: 0,
168
+ step: 1,
169
+ },
170
+ },
171
+ },
172
+ },
173
+ {
174
+ name: 'isLeaf',
175
+ title: '@financial-core:dimensions.entities.financial-dimension.fields.is-leaf.title',
176
+ groupId: 'hierarchy',
177
+ schema: {
178
+ dataType: 'boolean',
179
+ interface: {
180
+ type: AXPWidgetsList.Editors.ToggleSwitch,
181
+ },
182
+ },
183
+ },
184
+ ],
185
+ columns: [
186
+ { name: 'code', options: { width: '140px', order: 1 } },
187
+ { name: 'title', options: { width: '220px', order: 2 } },
188
+ { name: 'dimensionType', options: { width: '180px', order: 3 } },
189
+ { name: 'parentId', options: { dataPath: 'parent.title', width: '220px', order: 4 } },
190
+ ],
191
+ interfaces: {
192
+ master: {
193
+ create: {
194
+ sections,
195
+ properties: propertyLayouts,
196
+ },
197
+ update: {
198
+ sections,
199
+ properties: propertyLayouts,
200
+ },
201
+ single: {
202
+ title: '{{ title }}',
203
+ sections,
204
+ properties: propertyLayouts,
205
+ actions: [...entityMasterRecordActions()],
206
+ },
207
+ list: {
208
+ actions: [...entityMasterCrudActions()],
209
+ views: [
210
+ createAllQueryView({
211
+ sorts: [{ name: 'code', dir: 'asc' }],
212
+ }),
213
+ ],
214
+ },
215
+ },
216
+ },
217
+ };
218
+ return entityDef;
219
+ }
220
+ //#endregion
221
+
222
+ export { financialDimensionFactory };
223
+ //# sourceMappingURL=acorex-platform-module-financial-core-client-contracts-entity-catalog-financial-dimension.entity-P6IpxIPP.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-financial-core-client-contracts-entity-catalog-financial-dimension.entity-P6IpxIPP.mjs","sources":["../../../../libs/modules/financial-core/contracts/src/entities/financial-dimension/financial-dimension.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 financialDimensionFactory(): Promise<AXPEntity> {\n\n const sections = [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'hierarchy', layout: { positions: { lg: { colSpan: 12 } } } },\n ];\n\n const propertyLayouts = [\n { name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'dimensionType', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },\n { name: 'parentId', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },\n { name: 'displayOrder', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },\n { name: 'isLeaf', layout: { positions: { lg: { colSpan: 4, order: 7 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.financialDimension.name,\n title: RootConfig.entities.financialDimension.title,\n icon: RootConfig.entities.financialDimension.icon,\n formats: {\n individual: RootConfig.entities.financialDimension.title,\n plural: RootConfig.entities.financialDimension.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ dimensionType }}',\n },\n },\n plugins: [{ name: 'history' }, { name: 'lock' }, { name: 'compare' }, { name: 'archive' }, { name: 'tags' }],\n groups: [\n { id: 'basic-info', title: '@financial-core:dimensions.entities.financial-dimension.groups.basic-info' },\n { id: 'hierarchy', title: '@financial-core:dimensions.entities.financial-dimension.groups.hierarchy' },\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: 'code',\n title: '@general:terms.common.code',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@financial-core:dimensions.entities.financial-dimension.fields.code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@financial-core:dimensions.entities.financial-dimension.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: 4,\n placeholder: '@financial-core:dimensions.entities.financial-dimension.fields.description.placeholder',\n },\n },\n },\n },\n {\n name: 'dimensionType',\n title: '@financial-core:dimensions.entities.financial-dimension.fields.dimension-type.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n {\n value: 'cost-center',\n text: '@financial-core:dimensions.entities.financial-dimension.fields.dimension-type.options.cost-center',\n },\n {\n value: 'profit-center',\n text: '@financial-core:dimensions.entities.financial-dimension.fields.dimension-type.options.profit-center',\n },\n {\n value: 'project',\n text: '@financial-core:dimensions.entities.financial-dimension.fields.dimension-type.options.project',\n },\n {\n value: 'product',\n text: '@financial-core:dimensions.entities.financial-dimension.fields.dimension-type.options.product',\n },\n {\n value: 'region',\n text: '@financial-core:dimensions.entities.financial-dimension.fields.dimension-type.options.region',\n },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'parentId',\n title: '@financial-core:dimensions.entities.financial-dimension.fields.parent.title',\n groupId: 'hierarchy',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.financialDimension.name}`,\n look: 'tree',\n multiple: false,\n expose: [\n { source: 'id', target: 'parent.id' },\n { source: 'title', target: 'parent.title' },\n ],\n },\n },\n },\n },\n {\n name: 'displayOrder',\n title: '@financial-core:dimensions.entities.financial-dimension.fields.display-order.title',\n groupId: 'hierarchy',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 0,\n step: 1,\n },\n },\n },\n },\n {\n name: 'isLeaf',\n title: '@financial-core:dimensions.entities.financial-dimension.fields.is-leaf.title',\n groupId: 'hierarchy',\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '140px', order: 1 } },\n { name: 'title', options: { width: '220px', order: 2 } },\n { name: 'dimensionType', options: { width: '180px', order: 3 } },\n { name: 'parentId', options: { dataPath: 'parent.title', width: '220px', order: 4 } },\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: 'code', dir: 'asc' }],\n }),\n ],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,yBAAyB,GAAA;AAE7C,IAAA,MAAM,QAAQ,GAAG;AACf,QAAA,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACpE,QAAA,EAAE,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;KACpE;AAED,IAAA,MAAM,eAAe,GAAG;QACtB,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QACzE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QAC1E,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;QACjF,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,EAAE,S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