@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.
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-currency.mjs +324 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-currency.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-exchange-rate.mjs +380 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-exchange-rate.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-financial-dimension.mjs +295 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-financial-dimension.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-fiscal-calendar.mjs +343 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-fiscal-calendar.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-payment-method.mjs +351 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-payment-method.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-payment-term.mjs +288 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-payment-term.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-class.mjs +282 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-class.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-region.mjs +272 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-region.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-rule.mjs +364 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entities-tax-rule.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-acorex-platform-module-financial-core-client-contracts-entity-catalog-DpAVTjcD.mjs +99 -0
- 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
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-currency.entity-C6VWyRY-.mjs +252 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-currency.entity-C6VWyRY-.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-exchange-rate.entity-D9ZfPYOX.mjs +308 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-exchange-rate.entity-D9ZfPYOX.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-financial-dimension.entity-P6IpxIPP.mjs +223 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-financial-dimension.entity-P6IpxIPP.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-fiscal-calendar.entity-CHFARbBF.mjs +271 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-fiscal-calendar.entity-CHFARbBF.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-method.entity-CWj-4rZX.mjs +279 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-method.entity-CWj-4rZX.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-term.entity-Bpl7usEL.mjs +216 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-payment-term.entity-Bpl7usEL.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-class.entity-l6AYvaaV.mjs +210 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-class.entity-l6AYvaaV.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-region.entity-DVBfpcCF.mjs +200 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-region.entity-DVBfpcCF.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-rule.entity-0_Q8paGB.mjs +292 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-rule.entity-0_Q8paGB.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-financial-core-client-local-entities.mjs +37 -0
- package/fesm2022/acorex-platform-module-financial-core-client-local-entities.mjs.map +1 -0
- package/package.json +45 -1
- package/types/acorex-platform-module-financial-core-client-contracts-entities-currency.d.ts +5 -0
- package/types/acorex-platform-module-financial-core-client-contracts-entities-exchange-rate.d.ts +5 -0
- package/types/acorex-platform-module-financial-core-client-contracts-entities-financial-dimension.d.ts +5 -0
- package/types/acorex-platform-module-financial-core-client-contracts-entities-fiscal-calendar.d.ts +5 -0
- package/types/acorex-platform-module-financial-core-client-contracts-entities-payment-method.d.ts +5 -0
- package/types/acorex-platform-module-financial-core-client-contracts-entities-payment-term.d.ts +5 -0
- package/types/acorex-platform-module-financial-core-client-contracts-entities-tax-class.d.ts +5 -0
- package/types/acorex-platform-module-financial-core-client-contracts-entities-tax-region.d.ts +5 -0
- package/types/acorex-platform-module-financial-core-client-contracts-entities-tax-rule.d.ts +5 -0
- package/types/acorex-platform-module-financial-core-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-financial-core-client-local-entities.d.ts +12 -0
|
@@ -0,0 +1,200 @@
|
|
|
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 taxRegionFactory() {
|
|
8
|
+
const sections = [
|
|
9
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
10
|
+
{ id: 'jurisdiction', 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: 'countryCode', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
|
|
16
|
+
{ name: 'regionCode', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
|
|
17
|
+
{ name: 'taxAuthorityName', layout: { positions: { lg: { colSpan: 8, order: 5 } } } },
|
|
18
|
+
{ name: 'defaultCurrencyId', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
|
|
19
|
+
];
|
|
20
|
+
const entityDef = {
|
|
21
|
+
module: RootConfig.module.name,
|
|
22
|
+
name: RootConfig.entities.taxRegion.name,
|
|
23
|
+
title: RootConfig.entities.taxRegion.title,
|
|
24
|
+
icon: RootConfig.entities.taxRegion.icon,
|
|
25
|
+
formats: {
|
|
26
|
+
individual: RootConfig.entities.taxRegion.title,
|
|
27
|
+
plural: RootConfig.entities.taxRegion.titlePlural,
|
|
28
|
+
searchResult: {
|
|
29
|
+
title: '{{ title }}',
|
|
30
|
+
description: '{{ context.eval("countryCode") + " - " + context.eval("regionCode") }}',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
plugins: [
|
|
34
|
+
{ name: 'history' },
|
|
35
|
+
{ name: 'lock' },
|
|
36
|
+
{ name: 'compare' },
|
|
37
|
+
{ name: 'disable' },
|
|
38
|
+
{
|
|
39
|
+
name: 'default',
|
|
40
|
+
options: {
|
|
41
|
+
title: '@financial-core:taxation.entities.tax-region.fields.is-default.title',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
groups: [
|
|
46
|
+
{ id: 'basic-info', title: '@financial-core:taxation.entities.tax-region.groups.basic-info' },
|
|
47
|
+
{ id: 'jurisdiction', title: '@financial-core:taxation.entities.tax-region.groups.jurisdiction' },
|
|
48
|
+
],
|
|
49
|
+
properties: [
|
|
50
|
+
{
|
|
51
|
+
name: 'id',
|
|
52
|
+
title: '@general:terms.common.id',
|
|
53
|
+
groupId: 'basic-info',
|
|
54
|
+
schema: {
|
|
55
|
+
dataType: 'uuid',
|
|
56
|
+
visible: false,
|
|
57
|
+
readonly: true,
|
|
58
|
+
unique: { enabled: true },
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'code',
|
|
63
|
+
title: '@general:terms.common.code',
|
|
64
|
+
groupId: 'basic-info',
|
|
65
|
+
options: {
|
|
66
|
+
sort: { enabled: true },
|
|
67
|
+
filter: {
|
|
68
|
+
advance: { enabled: true },
|
|
69
|
+
inline: { enabled: true },
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
schema: {
|
|
73
|
+
dataType: 'string',
|
|
74
|
+
interface: {
|
|
75
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
76
|
+
options: {
|
|
77
|
+
placeholder: '@financial-core:taxation.entities.tax-region.fields.code.placeholder',
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
validations: [{ rule: 'required' }],
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'title',
|
|
85
|
+
title: '@general:terms.common.title',
|
|
86
|
+
groupId: 'basic-info',
|
|
87
|
+
schema: {
|
|
88
|
+
dataType: 'string',
|
|
89
|
+
interface: {
|
|
90
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
91
|
+
options: {
|
|
92
|
+
placeholder: '@financial-core:taxation.entities.tax-region.fields.title.placeholder',
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
validations: [{ rule: 'required' }],
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'countryCode',
|
|
100
|
+
title: '@financial-core:taxation.entities.tax-region.fields.country-code.title',
|
|
101
|
+
groupId: 'jurisdiction',
|
|
102
|
+
schema: {
|
|
103
|
+
dataType: 'string',
|
|
104
|
+
interface: {
|
|
105
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
106
|
+
options: {
|
|
107
|
+
mask: 'AA',
|
|
108
|
+
placeholder: '@financial-core:taxation.entities.tax-region.fields.country-code.placeholder',
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
validations: [{ rule: 'required' }],
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'regionCode',
|
|
116
|
+
title: '@financial-core:taxation.entities.tax-region.fields.region-code.title',
|
|
117
|
+
groupId: 'jurisdiction',
|
|
118
|
+
schema: {
|
|
119
|
+
dataType: 'string',
|
|
120
|
+
interface: {
|
|
121
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
122
|
+
options: {
|
|
123
|
+
placeholder: '@financial-core:taxation.entities.tax-region.fields.region-code.placeholder',
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'taxAuthorityName',
|
|
130
|
+
title: '@financial-core:taxation.entities.tax-region.fields.tax-authority.title',
|
|
131
|
+
groupId: 'jurisdiction',
|
|
132
|
+
schema: {
|
|
133
|
+
dataType: 'string',
|
|
134
|
+
interface: {
|
|
135
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
136
|
+
options: {
|
|
137
|
+
placeholder: '@financial-core:taxation.entities.tax-region.fields.tax-authority.placeholder',
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: 'defaultCurrencyId',
|
|
144
|
+
title: '@financial-core:taxation.entities.tax-region.fields.default-currency.title',
|
|
145
|
+
groupId: 'jurisdiction',
|
|
146
|
+
schema: {
|
|
147
|
+
dataType: 'string',
|
|
148
|
+
interface: {
|
|
149
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
150
|
+
options: {
|
|
151
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.currency.name}`,
|
|
152
|
+
look: 'select',
|
|
153
|
+
expose: [
|
|
154
|
+
{ source: 'id', target: 'currency.id' },
|
|
155
|
+
{ source: 'title', target: 'currency.title' },
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
columns: [
|
|
163
|
+
{ name: 'code', options: { width: '140px', order: 1 } },
|
|
164
|
+
{ name: 'title', options: { width: '220px', order: 2 } },
|
|
165
|
+
{ name: 'countryCode', options: { width: '140px', order: 3 } },
|
|
166
|
+
{ name: 'regionCode', options: { width: '160px', order: 4 } },
|
|
167
|
+
],
|
|
168
|
+
interfaces: {
|
|
169
|
+
master: {
|
|
170
|
+
create: {
|
|
171
|
+
sections,
|
|
172
|
+
properties: propertyLayouts,
|
|
173
|
+
},
|
|
174
|
+
update: {
|
|
175
|
+
sections,
|
|
176
|
+
properties: propertyLayouts,
|
|
177
|
+
},
|
|
178
|
+
single: {
|
|
179
|
+
title: '{{ title }}',
|
|
180
|
+
sections,
|
|
181
|
+
properties: propertyLayouts,
|
|
182
|
+
actions: [...entityMasterRecordActions()],
|
|
183
|
+
},
|
|
184
|
+
list: {
|
|
185
|
+
actions: [...entityMasterCrudActions()],
|
|
186
|
+
views: [
|
|
187
|
+
createAllQueryView({
|
|
188
|
+
sorts: [{ name: 'code', dir: 'asc' }],
|
|
189
|
+
}),
|
|
190
|
+
],
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
};
|
|
195
|
+
return entityDef;
|
|
196
|
+
}
|
|
197
|
+
//#endregion
|
|
198
|
+
|
|
199
|
+
export { taxRegionFactory };
|
|
200
|
+
//# sourceMappingURL=acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-region.entity-DVBfpcCF.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-region.entity-DVBfpcCF.mjs","sources":["../../../../libs/modules/financial-core/contracts/src/entities/tax-region/tax-region.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 taxRegionFactory(): Promise<AXPEntity> {\n\n const sections = [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'jurisdiction', 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: 'countryCode', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },\n { name: 'regionCode', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },\n { name: 'taxAuthorityName', layout: { positions: { lg: { colSpan: 8, order: 5 } } } },\n { name: 'defaultCurrencyId', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.taxRegion.name,\n title: RootConfig.entities.taxRegion.title,\n icon: RootConfig.entities.taxRegion.icon,\n formats: {\n individual: RootConfig.entities.taxRegion.title,\n plural: RootConfig.entities.taxRegion.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ context.eval(\"countryCode\") + \" - \" + context.eval(\"regionCode\") }}',\n },\n },\n plugins: [\n { name: 'history' },\n { name: 'lock' },\n { name: 'compare' },\n { name: 'disable' },\n {\n name: 'default',\n options: {\n title: '@financial-core:taxation.entities.tax-region.fields.is-default.title',\n },\n },\n ],\n groups: [\n { id: 'basic-info', title: '@financial-core:taxation.entities.tax-region.groups.basic-info' },\n { id: 'jurisdiction', title: '@financial-core:taxation.entities.tax-region.groups.jurisdiction' },\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: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@financial-core:taxation.entities.tax-region.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:taxation.entities.tax-region.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'countryCode',\n title: '@financial-core:taxation.entities.tax-region.fields.country-code.title',\n groupId: 'jurisdiction',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n mask: 'AA',\n placeholder: '@financial-core:taxation.entities.tax-region.fields.country-code.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'regionCode',\n title: '@financial-core:taxation.entities.tax-region.fields.region-code.title',\n groupId: 'jurisdiction',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@financial-core:taxation.entities.tax-region.fields.region-code.placeholder',\n },\n },\n },\n },\n {\n name: 'taxAuthorityName',\n title: '@financial-core:taxation.entities.tax-region.fields.tax-authority.title',\n groupId: 'jurisdiction',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: '@financial-core:taxation.entities.tax-region.fields.tax-authority.placeholder',\n },\n },\n },\n },\n {\n name: 'defaultCurrencyId',\n title: '@financial-core:taxation.entities.tax-region.fields.default-currency.title',\n groupId: 'jurisdiction',\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: 'currency.id' },\n { source: 'title', target: 'currency.title' },\n ],\n },\n },\n },\n },\n ],\n columns: [\n { name: 'code', options: { width: '140px', order: 1 } },\n { name: 'title', options: { width: '220px', order: 2 } },\n { name: 'countryCode', options: { width: '140px', order: 3 } },\n { name: 'regionCode', options: { width: '160px', 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,gBAAgB,GAAA;AAEpC,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,cAAc,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EA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AE,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,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBACtC,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
|
|
@@ -0,0 +1,292 @@
|
|
|
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 taxRuleFactory() {
|
|
8
|
+
const sections = [
|
|
9
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
10
|
+
{ id: 'calculation', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
11
|
+
{ id: 'effectivity', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
12
|
+
];
|
|
13
|
+
const propertyLayouts = [
|
|
14
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 4, order: 1 } } } },
|
|
15
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 8, order: 2 } } } },
|
|
16
|
+
{ name: 'taxRegionId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
17
|
+
{ name: 'taxClassId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
18
|
+
{ name: 'priority', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },
|
|
19
|
+
{ name: 'calculationMethod', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },
|
|
20
|
+
{ name: 'rate', layout: { positions: { lg: { colSpan: 4, order: 7 } } } },
|
|
21
|
+
{ name: 'thresholdAmount', layout: { positions: { lg: { colSpan: 4, order: 8 } } } },
|
|
22
|
+
{ name: 'conditionSummary', layout: { positions: { lg: { colSpan: 12, order: 9 } } } },
|
|
23
|
+
{ name: 'effectiveFrom', layout: { positions: { lg: { colSpan: 6, order: 10 } } } },
|
|
24
|
+
{ name: 'effectiveTo', layout: { positions: { lg: { colSpan: 6, order: 11 } } } },
|
|
25
|
+
];
|
|
26
|
+
const entityDef = {
|
|
27
|
+
module: RootConfig.module.name,
|
|
28
|
+
name: RootConfig.entities.taxRule.name,
|
|
29
|
+
title: RootConfig.entities.taxRule.title,
|
|
30
|
+
icon: RootConfig.entities.taxRule.icon,
|
|
31
|
+
formats: {
|
|
32
|
+
individual: RootConfig.entities.taxRule.title,
|
|
33
|
+
plural: RootConfig.entities.taxRule.titlePlural,
|
|
34
|
+
searchResult: {
|
|
35
|
+
title: '{{ title }}',
|
|
36
|
+
description: '{{ context.eval("taxRegion.title", { pipes: ["translate"] }) + " · " + context.eval("taxClass.title", { pipes: ["translate"] }) }}',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],
|
|
40
|
+
groups: [
|
|
41
|
+
{ id: 'basic-info', title: '@financial-core:taxation.entities.tax-rule.groups.basic-info' },
|
|
42
|
+
{ id: 'calculation', title: '@financial-core:taxation.entities.tax-rule.groups.calculation' },
|
|
43
|
+
{ id: 'effectivity', title: '@financial-core:taxation.entities.tax-rule.groups.effectivity' },
|
|
44
|
+
],
|
|
45
|
+
properties: [
|
|
46
|
+
{
|
|
47
|
+
name: 'id',
|
|
48
|
+
title: '@general:terms.common.id',
|
|
49
|
+
groupId: 'basic-info',
|
|
50
|
+
schema: {
|
|
51
|
+
dataType: 'uuid',
|
|
52
|
+
visible: false,
|
|
53
|
+
readonly: true,
|
|
54
|
+
unique: { enabled: true },
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'code',
|
|
59
|
+
title: '@general:terms.common.code',
|
|
60
|
+
groupId: 'basic-info',
|
|
61
|
+
options: {
|
|
62
|
+
sort: { enabled: true },
|
|
63
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
64
|
+
},
|
|
65
|
+
schema: {
|
|
66
|
+
dataType: 'string',
|
|
67
|
+
interface: {
|
|
68
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
69
|
+
options: {
|
|
70
|
+
placeholder: '@financial-core:taxation.entities.tax-rule.fields.code.placeholder',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
validations: [{ rule: 'required' }],
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'title',
|
|
78
|
+
title: '@general:terms.common.title',
|
|
79
|
+
groupId: 'basic-info',
|
|
80
|
+
schema: {
|
|
81
|
+
dataType: 'string',
|
|
82
|
+
interface: {
|
|
83
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
84
|
+
options: {
|
|
85
|
+
placeholder: '@financial-core:taxation.entities.tax-rule.fields.title.placeholder',
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
validations: [{ rule: 'required' }],
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'taxRegionId',
|
|
93
|
+
title: '@financial-core:taxation.entities.tax-rule.fields.tax-region.title',
|
|
94
|
+
groupId: 'basic-info',
|
|
95
|
+
schema: {
|
|
96
|
+
dataType: 'string',
|
|
97
|
+
interface: {
|
|
98
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
99
|
+
options: {
|
|
100
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.taxRegion.name}`,
|
|
101
|
+
look: 'select',
|
|
102
|
+
expose: [
|
|
103
|
+
{ source: 'id', target: 'taxRegion.id' },
|
|
104
|
+
{ source: 'title', target: 'taxRegion.title' },
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
validations: [{ rule: 'required' }],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'taxClassId',
|
|
113
|
+
title: '@financial-core:taxation.entities.tax-rule.fields.tax-class.title',
|
|
114
|
+
groupId: 'basic-info',
|
|
115
|
+
schema: {
|
|
116
|
+
dataType: 'string',
|
|
117
|
+
interface: {
|
|
118
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
119
|
+
options: {
|
|
120
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.taxClass.name}`,
|
|
121
|
+
look: 'select',
|
|
122
|
+
expose: [
|
|
123
|
+
{ source: 'id', target: 'taxClass.id' },
|
|
124
|
+
{ source: 'title', target: 'taxClass.title' },
|
|
125
|
+
],
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
validations: [{ rule: 'required' }],
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: 'priority',
|
|
133
|
+
title: '@financial-core:taxation.entities.tax-rule.fields.priority.title',
|
|
134
|
+
groupId: 'calculation',
|
|
135
|
+
schema: {
|
|
136
|
+
dataType: 'number',
|
|
137
|
+
interface: {
|
|
138
|
+
type: AXPWidgetsList.Editors.NumberBox,
|
|
139
|
+
options: {
|
|
140
|
+
minValue: 1,
|
|
141
|
+
step: 1,
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: 'calculationMethod',
|
|
148
|
+
title: '@financial-core:taxation.entities.tax-rule.fields.calculation-method.title',
|
|
149
|
+
groupId: 'calculation',
|
|
150
|
+
schema: {
|
|
151
|
+
dataType: 'string',
|
|
152
|
+
interface: {
|
|
153
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
154
|
+
options: {
|
|
155
|
+
valueField: 'value',
|
|
156
|
+
textField: 'text',
|
|
157
|
+
dataSource: [
|
|
158
|
+
{
|
|
159
|
+
value: 'percentage',
|
|
160
|
+
text: '@financial-core:taxation.entities.tax-rule.fields.calculation-method.options.percentage',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
value: 'fixed',
|
|
164
|
+
text: '@financial-core:taxation.entities.tax-rule.fields.calculation-method.options.fixed',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
value: 'tiered',
|
|
168
|
+
text: '@financial-core:taxation.entities.tax-rule.fields.calculation-method.options.tiered',
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
validations: [{ rule: 'required' }],
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
name: 'rate',
|
|
178
|
+
title: '@financial-core:taxation.entities.tax-rule.fields.rate.title',
|
|
179
|
+
groupId: 'calculation',
|
|
180
|
+
schema: {
|
|
181
|
+
dataType: 'number',
|
|
182
|
+
interface: {
|
|
183
|
+
type: AXPWidgetsList.Editors.NumberBox,
|
|
184
|
+
options: {
|
|
185
|
+
minValue: 0,
|
|
186
|
+
maxValue: 100,
|
|
187
|
+
step: 0.1,
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
validations: [{ rule: 'required' }],
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'thresholdAmount',
|
|
195
|
+
title: '@financial-core:taxation.entities.tax-rule.fields.threshold-amount.title',
|
|
196
|
+
groupId: 'calculation',
|
|
197
|
+
schema: {
|
|
198
|
+
dataType: 'number',
|
|
199
|
+
interface: {
|
|
200
|
+
type: AXPWidgetsList.Editors.NumberBox,
|
|
201
|
+
options: {
|
|
202
|
+
minValue: 0,
|
|
203
|
+
step: 1,
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: 'conditionSummary',
|
|
210
|
+
title: '@financial-core:taxation.entities.tax-rule.fields.condition-summary.title',
|
|
211
|
+
groupId: 'calculation',
|
|
212
|
+
schema: {
|
|
213
|
+
dataType: 'string',
|
|
214
|
+
interface: {
|
|
215
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
216
|
+
options: {
|
|
217
|
+
rows: 4,
|
|
218
|
+
placeholder: '@financial-core:taxation.entities.tax-rule.fields.condition-summary.placeholder',
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: 'effectiveFrom',
|
|
225
|
+
title: '@financial-core:taxation.entities.tax-rule.fields.effective-from.title',
|
|
226
|
+
groupId: 'effectivity',
|
|
227
|
+
schema: {
|
|
228
|
+
dataType: 'date',
|
|
229
|
+
interface: {
|
|
230
|
+
type: AXPWidgetsList.Editors.DateTimeBox,
|
|
231
|
+
options: {
|
|
232
|
+
showTime: true,
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
validations: [{ rule: 'required' }],
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: 'effectiveTo',
|
|
240
|
+
title: '@financial-core:taxation.entities.tax-rule.fields.effective-to.title',
|
|
241
|
+
groupId: 'effectivity',
|
|
242
|
+
schema: {
|
|
243
|
+
dataType: 'date',
|
|
244
|
+
interface: {
|
|
245
|
+
type: AXPWidgetsList.Editors.DateTimeBox,
|
|
246
|
+
options: {
|
|
247
|
+
showTime: true,
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
columns: [
|
|
254
|
+
{ name: 'code', options: { width: '120px', order: 1 } },
|
|
255
|
+
{ name: 'title', options: { width: '220px', order: 2 } },
|
|
256
|
+
{ name: 'taxRegionId', options: { dataPath: 'taxRegion.title', width: '220px', order: 3 } },
|
|
257
|
+
{ name: 'taxClassId', options: { dataPath: 'taxClass.title', width: '220px', order: 4 } },
|
|
258
|
+
{ name: 'rate', options: { width: '120px', order: 5 } },
|
|
259
|
+
],
|
|
260
|
+
interfaces: {
|
|
261
|
+
master: {
|
|
262
|
+
create: {
|
|
263
|
+
sections,
|
|
264
|
+
properties: propertyLayouts,
|
|
265
|
+
},
|
|
266
|
+
update: {
|
|
267
|
+
sections,
|
|
268
|
+
properties: propertyLayouts,
|
|
269
|
+
},
|
|
270
|
+
single: {
|
|
271
|
+
title: '{{ title }}',
|
|
272
|
+
sections,
|
|
273
|
+
properties: propertyLayouts,
|
|
274
|
+
actions: [...entityMasterRecordActions()],
|
|
275
|
+
},
|
|
276
|
+
list: {
|
|
277
|
+
actions: [...entityMasterCrudActions()],
|
|
278
|
+
views: [
|
|
279
|
+
createAllQueryView({
|
|
280
|
+
sorts: [{ name: 'code', dir: 'asc' }],
|
|
281
|
+
}),
|
|
282
|
+
],
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
};
|
|
287
|
+
return entityDef;
|
|
288
|
+
}
|
|
289
|
+
//#endregion
|
|
290
|
+
|
|
291
|
+
export { taxRuleFactory };
|
|
292
|
+
//# sourceMappingURL=acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-rule.entity-0_Q8paGB.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-financial-core-client-contracts-entity-catalog-tax-rule.entity-0_Q8paGB.mjs","sources":["../../../../libs/modules/financial-core/contracts/src/entities/tax-rule/tax-rule.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 taxRuleFactory(): Promise<AXPEntity> {\n\n const sections = [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'calculation', layout: { positions: { lg: { colSpan: 12 } } } },\n { id: 'effectivity', 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: 'taxRegionId', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },\n { name: 'taxClassId', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },\n { name: 'priority', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },\n { name: 'calculationMethod', layout: { positions: { lg: { colSpan: 4, order: 6 } } } },\n { name: 'rate', layout: { positions: { lg: { colSpan: 4, order: 7 } } } },\n { name: 'thresholdAmount', layout: { positions: { lg: { colSpan: 4, order: 8 } } } },\n { name: 'conditionSummary', layout: { positions: { lg: { colSpan: 12, order: 9 } } } },\n { name: 'effectiveFrom', layout: { positions: { lg: { colSpan: 6, order: 10 } } } },\n { name: 'effectiveTo', layout: { positions: { lg: { colSpan: 6, order: 11 } } } },\n ];\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.taxRule.name,\n title: RootConfig.entities.taxRule.title,\n icon: RootConfig.entities.taxRule.icon,\n formats: {\n individual: RootConfig.entities.taxRule.title,\n plural: RootConfig.entities.taxRule.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description:\n '{{ context.eval(\"taxRegion.title\", { pipes: [\"translate\"] }) + \" · \" + context.eval(\"taxClass.title\", { pipes: [\"translate\"] }) }}',\n },\n },\n plugins: [{ name: 'history' }, { name: 'compare' }, { name: 'clone' }, { name: 'disable' }],\n groups: [\n { id: 'basic-info', title: '@financial-core:taxation.entities.tax-rule.groups.basic-info' },\n { id: 'calculation', title: '@financial-core:taxation.entities.tax-rule.groups.calculation' },\n { id: 'effectivity', title: '@financial-core:taxation.entities.tax-rule.groups.effectivity' },\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:taxation.entities.tax-rule.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:taxation.entities.tax-rule.fields.title.placeholder',\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'taxRegionId',\n title: '@financial-core:taxation.entities.tax-rule.fields.tax-region.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.taxRegion.name}`,\n look: 'select',\n expose: [\n { source: 'id', target: 'taxRegion.id' },\n { source: 'title', target: 'taxRegion.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'taxClassId',\n title: '@financial-core:taxation.entities.tax-rule.fields.tax-class.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.taxClass.name}`,\n look: 'select',\n expose: [\n { source: 'id', target: 'taxClass.id' },\n { source: 'title', target: 'taxClass.title' },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'priority',\n title: '@financial-core:taxation.entities.tax-rule.fields.priority.title',\n groupId: 'calculation',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 1,\n step: 1,\n },\n },\n },\n },\n {\n name: 'calculationMethod',\n title: '@financial-core:taxation.entities.tax-rule.fields.calculation-method.title',\n groupId: 'calculation',\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: 'percentage',\n text: '@financial-core:taxation.entities.tax-rule.fields.calculation-method.options.percentage',\n },\n {\n value: 'fixed',\n text: '@financial-core:taxation.entities.tax-rule.fields.calculation-method.options.fixed',\n },\n {\n value: 'tiered',\n text: '@financial-core:taxation.entities.tax-rule.fields.calculation-method.options.tiered',\n },\n ],\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'rate',\n title: '@financial-core:taxation.entities.tax-rule.fields.rate.title',\n groupId: 'calculation',\n schema: {\n dataType: 'number',\n interface: {\n type: AXPWidgetsList.Editors.NumberBox,\n options: {\n minValue: 0,\n maxValue: 100,\n step: 0.1,\n },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'thresholdAmount',\n title: '@financial-core:taxation.entities.tax-rule.fields.threshold-amount.title',\n groupId: 'calculation',\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: 'conditionSummary',\n title: '@financial-core:taxation.entities.tax-rule.fields.condition-summary.title',\n groupId: 'calculation',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 4,\n placeholder: '@financial-core:taxation.entities.tax-rule.fields.condition-summary.placeholder',\n },\n },\n },\n },\n {\n name: 'effectiveFrom',\n title: '@financial-core:taxation.entities.tax-rule.fields.effective-from.title',\n groupId: 'effectivity',\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:taxation.entities.tax-rule.fields.effective-to.title',\n groupId: 'effectivity',\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: 'code', options: { width: '120px', order: 1 } },\n { name: 'title', options: { width: '220px', order: 2 } },\n { name: 'taxRegionId', options: { dataPath: 'taxRegion.title', width: '220px', order: 3 } },\n { name: 'taxClassId', options: { dataPath: 'taxClass.title', width: '220px', order: 4 } },\n { name: 'rate', options: { width: '120px', 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: '{{ 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,cAAc,GAAA;AAElC,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,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACrE,QAAA,EAAE,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;KACtE;AAED,IAAA,MAAM,eAAe,GAAG;QACtB,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,E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AM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBACtC,CAAC;AACH,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { f as financialCoreLocalEntityCatalog } from './acorex-platform-module-financial-core-client-contracts-entity-catalog-acorex-platform-module-financial-core-client-contracts-entity-catalog-DpAVTjcD.mjs';
|
|
2
|
+
//# sourceMappingURL=acorex-platform-module-financial-core-client-contracts-entity-catalog.mjs.map
|
package/fesm2022/acorex-platform-module-financial-core-client-contracts-entity-catalog.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-financial-core-client-contracts-entity-catalog.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';
|
|
2
|
+
import { RootConfig } from '@acorex-platform/module-financial-core-client/contracts';
|
|
3
|
+
export { financialCoreLocalEntityCatalog } from '@acorex-platform/module-financial-core-client/contracts/entity-catalog';
|
|
4
|
+
|
|
5
|
+
//#region ----- Imports -----
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ----- Provide local entities -----
|
|
8
|
+
/**
|
|
9
|
+
* Registers financial-core layouts on the client from packaged factories.
|
|
10
|
+
* Each `import()` targets a secondary entry so unused entities stay out of the
|
|
11
|
+
* bundle. Do not add this to the demo app; demo continues to load layouts via
|
|
12
|
+
* `Domain:GetEntityLayout`.
|
|
13
|
+
*/
|
|
14
|
+
function provideFinancialCoreLocalEntities() {
|
|
15
|
+
return provideLocalEntityCatalog({
|
|
16
|
+
moduleName: RootConfig.module.name,
|
|
17
|
+
loaders: {
|
|
18
|
+
[RootConfig.entities.currency.name]: () => import('@acorex-platform/module-financial-core-client/contracts/entities/currency').then((m) => m.currencyFactory()),
|
|
19
|
+
[RootConfig.entities.exchangeRate.name]: () => import('@acorex-platform/module-financial-core-client/contracts/entities/exchange-rate').then((m) => m.exchangeRateFactory()),
|
|
20
|
+
[RootConfig.entities.financialDimension.name]: () => import('@acorex-platform/module-financial-core-client/contracts/entities/financial-dimension').then((m) => m.financialDimensionFactory()),
|
|
21
|
+
[RootConfig.entities.fiscalCalendar.name]: () => import('@acorex-platform/module-financial-core-client/contracts/entities/fiscal-calendar').then((m) => m.fiscalCalendarFactory()),
|
|
22
|
+
[RootConfig.entities.paymentMethod.name]: () => import('@acorex-platform/module-financial-core-client/contracts/entities/payment-method').then((m) => m.paymentMethodFactory()),
|
|
23
|
+
[RootConfig.entities.paymentTerm.name]: () => import('@acorex-platform/module-financial-core-client/contracts/entities/payment-term').then((m) => m.paymentTermFactory()),
|
|
24
|
+
[RootConfig.entities.taxClass.name]: () => import('@acorex-platform/module-financial-core-client/contracts/entities/tax-class').then((m) => m.taxClassFactory()),
|
|
25
|
+
[RootConfig.entities.taxRegion.name]: () => import('@acorex-platform/module-financial-core-client/contracts/entities/tax-region').then((m) => m.taxRegionFactory()),
|
|
26
|
+
[RootConfig.entities.taxRule.name]: () => import('@acorex-platform/module-financial-core-client/contracts/entities/tax-rule').then((m) => m.taxRuleFactory()),
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Generated bundle index. Do not edit.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
export { provideFinancialCoreLocalEntities };
|
|
37
|
+
//# sourceMappingURL=acorex-platform-module-financial-core-client-local-entities.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-financial-core-client-local-entities.mjs","sources":["../../../../libs/modules/financial-core/client/src/lib/provide-local-entities.ts","../../../../libs/modules/financial-core/client/src/lib/acorex-platform-module-financial-core-client-local-entities.ts"],"sourcesContent":["//#region ----- Imports -----\n\nimport { provideLocalEntityCatalog } from '@acorex-platform/framework-client/layout/entity';\nimport { RootConfig } from '@acorex-platform/module-financial-core-client/contracts';\n\n//#endregion\n\n//#region ----- Provide local entities -----\n\n/**\n * Registers financial-core layouts on the client from packaged factories.\n * Each `import()` targets a secondary entry so unused entities stay out of the\n * bundle. Do not add this to the demo app; demo continues to load layouts via\n * `Domain:GetEntityLayout`.\n */\nexport function provideFinancialCoreLocalEntities() {\n return provideLocalEntityCatalog({\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.currency.name]: () =>\n import('@acorex-platform/module-financial-core-client/contracts/entities/currency').then((m) => m.currencyFactory()),\n [RootConfig.entities.exchangeRate.name]: () =>\n import('@acorex-platform/module-financial-core-client/contracts/entities/exchange-rate').then((m) => m.exchangeRateFactory()),\n [RootConfig.entities.financialDimension.name]: () =>\n import('@acorex-platform/module-financial-core-client/contracts/entities/financial-dimension').then((m) => m.financialDimensionFactory()),\n [RootConfig.entities.fiscalCalendar.name]: () =>\n import('@acorex-platform/module-financial-core-client/contracts/entities/fiscal-calendar').then((m) => m.fiscalCalendarFactory()),\n [RootConfig.entities.paymentMethod.name]: () =>\n import('@acorex-platform/module-financial-core-client/contracts/entities/payment-method').then((m) => m.paymentMethodFactory()),\n [RootConfig.entities.paymentTerm.name]: () =>\n import('@acorex-platform/module-financial-core-client/contracts/entities/payment-term').then((m) => m.paymentTermFactory()),\n [RootConfig.entities.taxClass.name]: () =>\n import('@acorex-platform/module-financial-core-client/contracts/entities/tax-class').then((m) => m.taxClassFactory()),\n [RootConfig.entities.taxRegion.name]: () =>\n import('@acorex-platform/module-financial-core-client/contracts/entities/tax-region').then((m) => m.taxRegionFactory()),\n [RootConfig.entities.taxRule.name]: () =>\n import('@acorex-platform/module-financial-core-client/contracts/entities/tax-rule').then((m) => m.taxRuleFactory()),\n },\n });\n}\n\nexport { financialCoreLocalEntityCatalog } from '@acorex-platform/module-financial-core-client/contracts/entity-catalog';\n\n//#endregion\n","/**\n * Generated bundle index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