@acorex-platform/module-subscription-management-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-subscription-management-client-contracts-entities-subscription-plan-item.mjs +293 -0
- package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entities-subscription-plan-item.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entities-subscription-plan.mjs +279 -0
- package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entities-subscription-plan.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entities-subscription.mjs +462 -0
- package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entities-subscription.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog-acorex-platform-module-subscription-management-client-contracts-entity-catalog-N9RWLoZU.mjs +66 -0
- package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog-acorex-platform-module-subscription-management-client-contracts-entity-catalog-N9RWLoZU.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog-subscription-plan-item.entity-D_NJNqjW.mjs +248 -0
- package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog-subscription-plan-item.entity-D_NJNqjW.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog-subscription-plan.entity-DxT6zC3W.mjs +234 -0
- package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog-subscription-plan.entity-DxT6zC3W.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog-subscription.entity-Crl7HVX2.mjs +417 -0
- package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog-subscription.entity-Crl7HVX2.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog.mjs +2 -0
- package/fesm2022/acorex-platform-module-subscription-management-client-contracts-entity-catalog.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-subscription-management-client-local-entities.mjs +31 -0
- package/fesm2022/acorex-platform-module-subscription-management-client-local-entities.mjs.map +1 -0
- package/package.json +21 -1
- package/types/acorex-platform-module-subscription-management-client-contracts-entities-subscription-plan-item.d.ts +5 -0
- package/types/acorex-platform-module-subscription-management-client-contracts-entities-subscription-plan.d.ts +5 -0
- package/types/acorex-platform-module-subscription-management-client-contracts-entities-subscription.d.ts +5 -0
- package/types/acorex-platform-module-subscription-management-client-contracts-entity-catalog.d.ts +10 -0
- package/types/acorex-platform-module-subscription-management-client-local-entities.d.ts +12 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { entityMasterRecordActions, createAllQueryView, entityMasterCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-subscription-management-client-contracts-entity-catalog-acorex-platform-module-subscription-management-client-contracts-entity-catalog-N9RWLoZU.mjs';
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ---- Subscription Plan Item Entity Factory ----
|
|
7
|
+
async function subscriptionPlanItemEntityFactory() {
|
|
8
|
+
const i18n = RootConfig.config.i18n + ':subscriptions.entities.subscription-plan-item';
|
|
9
|
+
const entityDef = {
|
|
10
|
+
module: RootConfig.module.name,
|
|
11
|
+
name: RootConfig.entities.subscriptionPlanItem.name,
|
|
12
|
+
title: RootConfig.entities.subscriptionPlanItem.title,
|
|
13
|
+
icon: RootConfig.entities.subscriptionPlanItem.icon,
|
|
14
|
+
formats: {
|
|
15
|
+
individual: RootConfig.entities.subscriptionPlanItem.title,
|
|
16
|
+
plural: RootConfig.entities.subscriptionPlanItem.titlePlural,
|
|
17
|
+
searchResult: {
|
|
18
|
+
title: '{{ edition.title }}',
|
|
19
|
+
description: '{{ plan.title }}',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
groups: [
|
|
23
|
+
{
|
|
24
|
+
id: 'basic-info',
|
|
25
|
+
title: `@${i18n}.groups.basic-info`,
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
properties: [
|
|
29
|
+
{
|
|
30
|
+
name: 'id',
|
|
31
|
+
title: 'ID',
|
|
32
|
+
groupId: 'basic-info',
|
|
33
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'subscribableType',
|
|
37
|
+
title: `@${i18n}.fields.subscribable-type.title`,
|
|
38
|
+
groupId: 'basic-info',
|
|
39
|
+
options: {
|
|
40
|
+
sort: { enabled: true },
|
|
41
|
+
filter: {
|
|
42
|
+
advance: { enabled: true },
|
|
43
|
+
inline: { enabled: true },
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
schema: {
|
|
47
|
+
dataType: 'string',
|
|
48
|
+
defaultValue: 'ApplicationEdition',
|
|
49
|
+
interface: {
|
|
50
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
51
|
+
options: {
|
|
52
|
+
valueField: 'value',
|
|
53
|
+
textField: 'text',
|
|
54
|
+
dataSource: [
|
|
55
|
+
{ value: 'ApplicationEdition', text: '@subscription-management:subscriptions.terms.application-edition' },
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
validations: [
|
|
61
|
+
{
|
|
62
|
+
rule: 'required',
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'planId',
|
|
68
|
+
title: `@${i18n}.fields.plan.title`,
|
|
69
|
+
groupId: 'basic-info',
|
|
70
|
+
options: {
|
|
71
|
+
sort: { enabled: true },
|
|
72
|
+
filter: {
|
|
73
|
+
advance: { enabled: true },
|
|
74
|
+
inline: { enabled: true },
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
schema: {
|
|
78
|
+
dataType: 'string',
|
|
79
|
+
interface: {
|
|
80
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
81
|
+
options: {
|
|
82
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.subscriptionPlan.name}`,
|
|
83
|
+
textField: 'title',
|
|
84
|
+
valueField: 'id',
|
|
85
|
+
look: 'select',
|
|
86
|
+
expose: [
|
|
87
|
+
{ source: 'id', target: 'plan.id' },
|
|
88
|
+
{ source: 'title', target: 'plan.title' },
|
|
89
|
+
{ source: 'description', target: 'plan.description' },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
validations: [
|
|
95
|
+
{
|
|
96
|
+
rule: 'required',
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'editionId',
|
|
102
|
+
title: `@${i18n}.fields.edition.title`,
|
|
103
|
+
groupId: 'basic-info',
|
|
104
|
+
options: {
|
|
105
|
+
sort: { enabled: true },
|
|
106
|
+
filter: {
|
|
107
|
+
advance: { enabled: true },
|
|
108
|
+
inline: { enabled: true },
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
schema: {
|
|
112
|
+
dataType: 'string',
|
|
113
|
+
interface: {
|
|
114
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
|
115
|
+
options: {
|
|
116
|
+
entity: `ApplicationManagement.Edition`,
|
|
117
|
+
textField: 'title',
|
|
118
|
+
valueField: 'id',
|
|
119
|
+
look: 'select',
|
|
120
|
+
expose: [
|
|
121
|
+
{ source: 'id', target: 'edition.id' },
|
|
122
|
+
{ source: 'title', target: 'edition.title' },
|
|
123
|
+
{ source: 'description', target: 'edition.description' },
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
validations: [
|
|
129
|
+
{
|
|
130
|
+
rule: 'required',
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
columns: [
|
|
136
|
+
{ name: 'subscribableType' },
|
|
137
|
+
//{ name: 'planId', options: { dataPath: 'plan.title' } },
|
|
138
|
+
{ name: 'editionId', options: { dataPath: 'edition.title' } },
|
|
139
|
+
],
|
|
140
|
+
interfaces: {
|
|
141
|
+
master: {
|
|
142
|
+
create: {
|
|
143
|
+
sections: [
|
|
144
|
+
{
|
|
145
|
+
id: 'basic-info',
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
properties: [
|
|
149
|
+
// {
|
|
150
|
+
// name: 'planId',
|
|
151
|
+
// layout: {
|
|
152
|
+
// positions: {
|
|
153
|
+
// lg: {
|
|
154
|
+
// colSpan: 12,
|
|
155
|
+
// },
|
|
156
|
+
// },
|
|
157
|
+
// },
|
|
158
|
+
// },
|
|
159
|
+
{
|
|
160
|
+
name: 'subscribableType',
|
|
161
|
+
layout: {
|
|
162
|
+
positions: {
|
|
163
|
+
lg: {
|
|
164
|
+
colSpan: 12,
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: 'editionId',
|
|
171
|
+
layout: {
|
|
172
|
+
positions: {
|
|
173
|
+
lg: {
|
|
174
|
+
colSpan: 12,
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
],
|
|
180
|
+
},
|
|
181
|
+
update: {
|
|
182
|
+
sections: [
|
|
183
|
+
{
|
|
184
|
+
id: 'basic-info',
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
properties: [
|
|
188
|
+
// {
|
|
189
|
+
// name: 'planId',
|
|
190
|
+
// layout: {
|
|
191
|
+
// positions: {
|
|
192
|
+
// lg: {
|
|
193
|
+
// colSpan: 12,
|
|
194
|
+
// },
|
|
195
|
+
// },
|
|
196
|
+
// },
|
|
197
|
+
// },
|
|
198
|
+
{
|
|
199
|
+
name: 'subscribableType',
|
|
200
|
+
layout: {
|
|
201
|
+
positions: {
|
|
202
|
+
lg: {
|
|
203
|
+
colSpan: 12,
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: 'editionId',
|
|
210
|
+
layout: {
|
|
211
|
+
positions: {
|
|
212
|
+
lg: {
|
|
213
|
+
colSpan: 12,
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
},
|
|
220
|
+
list: {
|
|
221
|
+
actions: [...entityMasterCrudActions()],
|
|
222
|
+
views: [
|
|
223
|
+
createAllQueryView({
|
|
224
|
+
sorts: [{ name: 'planId', dir: 'asc' }],
|
|
225
|
+
}),
|
|
226
|
+
],
|
|
227
|
+
},
|
|
228
|
+
single: {
|
|
229
|
+
title: '{{ context.eval("edition.title", { pipes: ["translate"] }) + " - " + context.eval("plan.title", { pipes: ["translate"] }) }}',
|
|
230
|
+
sections: [
|
|
231
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
232
|
+
],
|
|
233
|
+
properties: [
|
|
234
|
+
//{ name: 'planId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },
|
|
235
|
+
{ name: 'subscribableType', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },
|
|
236
|
+
{ name: 'editionId', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
237
|
+
],
|
|
238
|
+
actions: [...entityMasterRecordActions()],
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
};
|
|
243
|
+
return entityDef;
|
|
244
|
+
}
|
|
245
|
+
//#endregion
|
|
246
|
+
|
|
247
|
+
export { subscriptionPlanItemEntityFactory };
|
|
248
|
+
//# sourceMappingURL=acorex-platform-module-subscription-management-client-contracts-entity-catalog-subscription-plan-item.entity-D_NJNqjW.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-subscription-management-client-contracts-entity-catalog-subscription-plan-item.entity-D_NJNqjW.mjs","sources":["../../../../libs/modules/subscription-management/contracts/src/entities/subscription-plan-item/subscription-plan-item.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 ---- Subscription Plan Item Entity Factory ----\n\nexport async function subscriptionPlanItemEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n + ':subscriptions.entities.subscription-plan-item';\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.subscriptionPlanItem.name,\n title: RootConfig.entities.subscriptionPlanItem.title,\n icon: RootConfig.entities.subscriptionPlanItem.icon,\n formats: {\n individual: RootConfig.entities.subscriptionPlanItem.title,\n plural: RootConfig.entities.subscriptionPlanItem.titlePlural,\n searchResult: {\n title: '{{ edition.title }}',\n description: '{{ plan.title }}',\n },\n },\n groups: [\n {\n id: 'basic-info',\n title: `@${i18n}.groups.basic-info`,\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'subscribableType',\n title: `@${i18n}.fields.subscribable-type.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 defaultValue: 'ApplicationEdition',\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n { value: 'ApplicationEdition', text: '@subscription-management:subscriptions.terms.application-edition' },\n ],\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'planId',\n title: `@${i18n}.fields.plan.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.LookupBox,\n options: {\n entity: `${RootConfig.module.name}.${RootConfig.entities.subscriptionPlan.name}`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'plan.id' },\n { source: 'title', target: 'plan.title' },\n { source: 'description', target: 'plan.description' },\n ],\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n\n {\n name: 'editionId',\n title: `@${i18n}.fields.edition.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.LookupBox,\n options: {\n entity: `ApplicationManagement.Edition`,\n textField: 'title',\n valueField: 'id',\n look: 'select',\n expose: [\n { source: 'id', target: 'edition.id' },\n { source: 'title', target: 'edition.title' },\n { source: 'description', target: 'edition.description' },\n ],\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n ],\n columns: [\n { name: 'subscribableType' },\n //{ name: 'planId', options: { dataPath: 'plan.title' } },\n { name: 'editionId', options: { dataPath: 'edition.title' } },\n ],\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'basic-info',\n },\n ],\n properties: [\n // {\n // name: 'planId',\n // layout: {\n // positions: {\n // lg: {\n // colSpan: 12,\n // },\n // },\n // },\n // },\n {\n name: 'subscribableType',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n {\n name: 'editionId',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n update: {\n sections: [\n {\n id: 'basic-info',\n },\n ],\n properties: [\n // {\n // name: 'planId',\n // layout: {\n // positions: {\n // lg: {\n // colSpan: 12,\n // },\n // },\n // },\n // },\n {\n name: 'subscribableType',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n {\n name: 'editionId',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'planId', dir: 'asc' }],\n }),\n ],\n },\n single: {\n title:\n '{{ context.eval(\"edition.title\", { pipes: [\"translate\"] }) + \" - \" + context.eval(\"plan.title\", { pipes: [\"translate\"] }) }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n //{ name: 'planId', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'subscribableType', layout: { positions: { lg: { colSpan: 12, order: 2 } } } },\n { name: 'editionId', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,iCAAiC,GAAA;IACrD,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,GAAG,gDAAgD;AAEtF,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,oBAAoB,CAAC,IAAI;AACnD,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,oBAAoB,CAAC,KAAK;AACrD,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,oBAAoB,CAAC,IAAI;AACnD,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,oBAAoB,CAAC,KAAK;AAC1D,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,oBAAoB,CAAC,WAAW;AAC5D,YAAA,YAAY,EAAE;AACZ,gBAA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,qCAAA;AACF,iCAAA;AACF,6BAAA;AACF,yBAAA;AACF,qBAAA;AACF,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,oBAAA,KAAK,EAAE;AACL,wBAAA,kBAAkB,CAAC;4BACjB,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;yBACxC,CAAC;AACH,qBAAA;AACF,iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,KAAK,EACH,8HAA8H;AAChI,oBAAA,QAAQ,EAAE;AACR,wBAAA,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;AACrE,qBAAA;AACD,oBAAA,UAAU,EAAE;;wBAEV,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;wBACtF,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE;AAChF,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;;;"}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { entityMasterRecordActions, createAllQueryView, entityMasterCrudActions, entityDetailsCrudActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-subscription-management-client-contracts-entity-catalog-acorex-platform-module-subscription-management-client-contracts-entity-catalog-N9RWLoZU.mjs';
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ---- Subscription Plan Entity Factory ----
|
|
7
|
+
async function subscriptionPlanEntityFactory() {
|
|
8
|
+
const i18n = RootConfig.config.i18n + ':subscriptions.entities.subscription-plan';
|
|
9
|
+
const entityDef = {
|
|
10
|
+
module: RootConfig.module.name,
|
|
11
|
+
name: RootConfig.entities.subscriptionPlan.name,
|
|
12
|
+
title: RootConfig.entities.subscriptionPlan.title,
|
|
13
|
+
icon: RootConfig.entities.subscriptionPlan.icon,
|
|
14
|
+
formats: {
|
|
15
|
+
individual: RootConfig.entities.subscriptionPlan.title,
|
|
16
|
+
plural: RootConfig.entities.subscriptionPlan.titlePlural,
|
|
17
|
+
searchResult: {
|
|
18
|
+
title: '{{ title }}',
|
|
19
|
+
description: '{{ description }}',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
plugins: [
|
|
23
|
+
{ name: 'history' },
|
|
24
|
+
{ name: 'disable' },
|
|
25
|
+
],
|
|
26
|
+
relatedEntities: [
|
|
27
|
+
{
|
|
28
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.subscriptionPlanItem.name}`,
|
|
29
|
+
title: RootConfig.entities.subscriptionPlanItem.titlePlural,
|
|
30
|
+
icon: RootConfig.entities.subscriptionPlanItem.icon,
|
|
31
|
+
conditions: [
|
|
32
|
+
{
|
|
33
|
+
name: 'planId', operator: { type: 'equal' },
|
|
34
|
+
value: '{{ context.eval("id") }}'
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
actions: [...entityDetailsCrudActions('planId')],
|
|
38
|
+
layout: { type: 'page-list', position: 'after', order: 1 },
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
groups: [
|
|
42
|
+
{
|
|
43
|
+
id: 'basic-info',
|
|
44
|
+
title: `@${i18n}.groups.basic-info`,
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
properties: [
|
|
48
|
+
{
|
|
49
|
+
name: 'id',
|
|
50
|
+
title: 'ID',
|
|
51
|
+
groupId: 'basic-info',
|
|
52
|
+
schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'code',
|
|
56
|
+
title: `@${i18n}.fields.code.title`,
|
|
57
|
+
groupId: 'basic-info',
|
|
58
|
+
options: {
|
|
59
|
+
sort: { enabled: true },
|
|
60
|
+
filter: {
|
|
61
|
+
advance: { enabled: true },
|
|
62
|
+
inline: { enabled: true },
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
schema: {
|
|
66
|
+
dataType: 'string',
|
|
67
|
+
interface: {
|
|
68
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
69
|
+
options: {
|
|
70
|
+
placeholder: `@${i18n}.fields.code.placeholder`,
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'title',
|
|
77
|
+
title: `@${i18n}.fields.title.title`,
|
|
78
|
+
groupId: 'basic-info',
|
|
79
|
+
options: {
|
|
80
|
+
sort: { enabled: true },
|
|
81
|
+
filter: {
|
|
82
|
+
advance: { enabled: true },
|
|
83
|
+
inline: { enabled: true },
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
schema: {
|
|
87
|
+
dataType: 'object',
|
|
88
|
+
interface: {
|
|
89
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
90
|
+
options: {
|
|
91
|
+
placeholder: `@${i18n}.fields.title.placeholder`,
|
|
92
|
+
multiLanguage: true,
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
validations: [
|
|
97
|
+
{
|
|
98
|
+
rule: 'required',
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'description',
|
|
104
|
+
title: `@${i18n}.fields.description.title`,
|
|
105
|
+
groupId: 'basic-info',
|
|
106
|
+
options: {
|
|
107
|
+
sort: { enabled: true },
|
|
108
|
+
filter: {
|
|
109
|
+
advance: { enabled: true },
|
|
110
|
+
inline: { enabled: false },
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
schema: {
|
|
114
|
+
dataType: 'object',
|
|
115
|
+
interface: {
|
|
116
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
117
|
+
options: {
|
|
118
|
+
rows: 3,
|
|
119
|
+
multiLanguage: true,
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
columns: [{ name: 'title' }, { name: 'code' }, { name: 'isDisabled' }],
|
|
126
|
+
interfaces: {
|
|
127
|
+
master: {
|
|
128
|
+
create: {
|
|
129
|
+
sections: [
|
|
130
|
+
{
|
|
131
|
+
id: 'basic-info',
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
properties: [
|
|
135
|
+
{
|
|
136
|
+
name: 'code',
|
|
137
|
+
layout: {
|
|
138
|
+
positions: {
|
|
139
|
+
lg: {
|
|
140
|
+
colSpan: 6,
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: 'title',
|
|
147
|
+
layout: {
|
|
148
|
+
positions: {
|
|
149
|
+
lg: {
|
|
150
|
+
colSpan: 6,
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: 'description',
|
|
157
|
+
layout: {
|
|
158
|
+
positions: {
|
|
159
|
+
lg: {
|
|
160
|
+
colSpan: 12,
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
},
|
|
167
|
+
update: {
|
|
168
|
+
sections: [
|
|
169
|
+
{
|
|
170
|
+
id: 'basic-info',
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
properties: [
|
|
174
|
+
{
|
|
175
|
+
name: 'code',
|
|
176
|
+
layout: {
|
|
177
|
+
positions: {
|
|
178
|
+
lg: {
|
|
179
|
+
colSpan: 6,
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: 'title',
|
|
186
|
+
layout: {
|
|
187
|
+
positions: {
|
|
188
|
+
lg: {
|
|
189
|
+
colSpan: 6,
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: 'description',
|
|
196
|
+
layout: {
|
|
197
|
+
positions: {
|
|
198
|
+
lg: {
|
|
199
|
+
colSpan: 12,
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
},
|
|
206
|
+
list: {
|
|
207
|
+
actions: [...entityMasterCrudActions()],
|
|
208
|
+
views: [
|
|
209
|
+
createAllQueryView({
|
|
210
|
+
sorts: [{ name: 'title', dir: 'asc' }],
|
|
211
|
+
}),
|
|
212
|
+
],
|
|
213
|
+
},
|
|
214
|
+
single: {
|
|
215
|
+
title: '{{ title }}',
|
|
216
|
+
sections: [
|
|
217
|
+
{ id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },
|
|
218
|
+
],
|
|
219
|
+
properties: [
|
|
220
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
221
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
222
|
+
{ name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
223
|
+
],
|
|
224
|
+
actions: [...entityMasterRecordActions()],
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
};
|
|
229
|
+
return entityDef;
|
|
230
|
+
}
|
|
231
|
+
//#endregion
|
|
232
|
+
|
|
233
|
+
export { subscriptionPlanEntityFactory };
|
|
234
|
+
//# sourceMappingURL=acorex-platform-module-subscription-management-client-contracts-entity-catalog-subscription-plan.entity-DxT6zC3W.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-subscription-management-client-contracts-entity-catalog-subscription-plan.entity-DxT6zC3W.mjs","sources":["../../../../libs/modules/subscription-management/contracts/src/entities/subscription-plan/subscription-plan.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView, entityDetailsCrudActions, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';\n//#region ---- Imports ----\nimport { RootConfig } from '../../root-config';\n\n//#endregion\n\n//#region ---- Subscription Plan Entity Factory ----\n\nexport async function subscriptionPlanEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n + ':subscriptions.entities.subscription-plan';\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.subscriptionPlan.name,\n title: RootConfig.entities.subscriptionPlan.title,\n icon: RootConfig.entities.subscriptionPlan.icon,\n formats: {\n individual: RootConfig.entities.subscriptionPlan.title,\n plural: RootConfig.entities.subscriptionPlan.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ description }}',\n },\n },\n plugins: [\n { name: 'history' },\n { name: 'disable' },\n ],\n relatedEntities: [\n {\n entity: `${RootConfig.module.name}.${RootConfig.entities.subscriptionPlanItem.name}`,\n title: RootConfig.entities.subscriptionPlanItem.titlePlural,\n icon: RootConfig.entities.subscriptionPlanItem.icon,\n conditions: [\n {\n name: 'planId', operator: { type: 'equal' },\n value: '{{ context.eval(\"id\") }}'\n },\n ],\n actions: [...entityDetailsCrudActions('planId')],\n layout: { type: 'page-list', position: 'after', order: 1 },\n },\n ],\n groups: [\n {\n id: 'basic-info',\n title: `@${i18n}.groups.basic-info`,\n },\n ],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: { dataType: 'uuid', visible: false, nullable: false, readonly: true, unique: { enabled: true } },\n },\n {\n name: 'code',\n title: `@${i18n}.fields.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 placeholder: `@${i18n}.fields.code.placeholder`,\n },\n },\n },\n },\n {\n name: 'title',\n title: `@${i18n}.fields.title.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: 'object',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n placeholder: `@${i18n}.fields.title.placeholder`,\n multiLanguage: true,\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'description',\n title: `@${i18n}.fields.description.title`,\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: false },\n },\n },\n schema: {\n dataType: 'object',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n multiLanguage: true,\n },\n },\n },\n },\n\n ],\n columns: [{ name: 'title' }, { name: 'code' }, { name: 'isDisabled' }],\n interfaces: {\n master: {\n create: {\n sections: [\n {\n id: 'basic-info',\n },\n ],\n properties: [\n {\n name: 'code',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'description',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n update: {\n sections: [\n {\n id: 'basic-info',\n },\n ],\n properties: [\n {\n name: 'code',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'title',\n layout: {\n positions: {\n lg: {\n colSpan: 6,\n },\n },\n },\n },\n {\n name: 'description',\n layout: {\n positions: {\n lg: {\n colSpan: 12,\n },\n },\n },\n },\n ],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [\n createAllQueryView({\n sorts: [{ name: 'title', dir: 'asc' }],\n }),\n ],\n },\n single: {\n title: '{{ title }}',\n sections: [\n { id: 'basic-info', layout: { positions: { lg: { colSpan: 12 } } } },\n ],\n properties: [\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'code', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n ],\n actions: [...entityMasterRecordActions()],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n\n"],"names":[],"mappings":";;;;AAKA;AAEA;AAEO,eAAe,6BAA6B,GAAA;IACjD,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,GAAG,2CAA2C;AAEjF,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI;AAC/C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,KAAK;AACjD,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI;AAC/C,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,KAAK;AACtD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,WAAW;AACxD,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,aAAa;AACpB,gBAAA,WAAW,E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