@acorex-platform/module-rule-engine-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.
Files changed (36) hide show
  1. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-decision-table.mjs +162 -0
  2. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-decision-table.mjs.map +1 -0
  3. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-definition.mjs +167 -0
  4. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-definition.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-evaluation-run.mjs +166 -0
  6. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-evaluation-run.mjs.map +1 -0
  7. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set-version.mjs +164 -0
  8. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set-version.mjs.map +1 -0
  9. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set.mjs +179 -0
  10. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set.mjs.map +1 -0
  11. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-DTAe_E9Y.mjs +77 -0
  12. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-DTAe_E9Y.mjs.map +1 -0
  13. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-decision-table.entity-CEUy_Ynp.mjs +23 -0
  14. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-decision-table.entity-CEUy_Ynp.mjs.map +1 -0
  15. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-F9RWQOLM.mjs +89 -0
  16. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-F9RWQOLM.mjs.map +1 -0
  17. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-definition.entity-mOluqI_4.mjs +28 -0
  18. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-definition.entity-mOluqI_4.mjs.map +1 -0
  19. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-evaluation-run.entity-lnOwB2B5.mjs +27 -0
  20. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-evaluation-run.entity-lnOwB2B5.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set-version.entity-BIJ9oUhD.mjs +25 -0
  22. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set-version.entity-BIJ9oUhD.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set.entity-BSBDdK0J.mjs +40 -0
  24. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set.entity-BSBDdK0J.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog.mjs +2 -0
  26. package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-rule-engine-management-client-local-entities.mjs +33 -0
  28. package/fesm2022/acorex-platform-module-rule-engine-management-client-local-entities.mjs.map +1 -0
  29. package/package.json +29 -1
  30. package/types/acorex-platform-module-rule-engine-management-client-contracts-entities-decision-table.d.ts +5 -0
  31. package/types/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-definition.d.ts +5 -0
  32. package/types/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-evaluation-run.d.ts +5 -0
  33. package/types/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set-version.d.ts +5 -0
  34. package/types/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set.d.ts +5 -0
  35. package/types/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog.d.ts +10 -0
  36. package/types/acorex-platform-module-rule-engine-management-client-local-entities.d.ts +12 -0
@@ -0,0 +1,164 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'rule-engine-management',
6
+ module: 'RuleEngineManagement',
7
+ };
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ route: 'rule-engine-management',
12
+ name: config.module,
13
+ title: '@rule-engine-management:module.title',
14
+ icon: 'fa-light fa-scale-balanced',
15
+ },
16
+ entities: {
17
+ ruleSet: {
18
+ name: 'RuleSet',
19
+ fullName: `${config.module}.RuleSet`,
20
+ title: '@rule-engine-management:rule-sets.entities.rule-set.title',
21
+ titlePlural: '@rule-engine-management:rule-sets.entities.rule-set.plural',
22
+ icon: 'fa-light fa-layer-group',
23
+ },
24
+ ruleDefinition: {
25
+ name: 'RuleDefinition',
26
+ fullName: `${config.module}.RuleDefinition`,
27
+ title: '@rule-engine-management:rules.entities.rule-definition.title',
28
+ titlePlural: '@rule-engine-management:rules.entities.rule-definition.plural',
29
+ icon: 'fa-light fa-list-check',
30
+ },
31
+ decisionTable: {
32
+ name: 'DecisionTable',
33
+ fullName: `${config.module}.DecisionTable`,
34
+ title: '@rule-engine-management:tables.entities.decision-table.title',
35
+ titlePlural: '@rule-engine-management:tables.entities.decision-table.plural',
36
+ icon: 'fa-light fa-table',
37
+ },
38
+ ruleSetVersion: {
39
+ name: 'RuleSetVersion',
40
+ fullName: `${config.module}.RuleSetVersion`,
41
+ title: '@rule-engine-management:versions.entities.rule-set-version.title',
42
+ titlePlural: '@rule-engine-management:versions.entities.rule-set-version.plural',
43
+ icon: 'fa-light fa-code-branch',
44
+ },
45
+ ruleEvaluationRun: {
46
+ name: 'RuleEvaluationRun',
47
+ fullName: `${config.module}.RuleEvaluationRun`,
48
+ title: '@rule-engine-management:runs.entities.rule-evaluation-run.title',
49
+ titlePlural: '@rule-engine-management:runs.entities.rule-evaluation-run.plural',
50
+ icon: 'fa-light fa-play',
51
+ },
52
+ },
53
+ };
54
+
55
+ function createSimpleCrudEntity(options) {
56
+ const i18n = options.i18nPrefix;
57
+ return {
58
+ module: options.module,
59
+ name: options.name,
60
+ title: options.title,
61
+ icon: options.icon,
62
+ plugins: [{ name: 'history' }],
63
+ ...(options.pages?.length ? { pages: options.pages } : {}),
64
+ formats: {
65
+ individual: options.title,
66
+ plural: options.titlePlural,
67
+ searchResult: {
68
+ title: '{{ name || title || id }}',
69
+ description: '{{ domain || ruleSetId || status }}',
70
+ },
71
+ },
72
+ groups: [{ id: 'basic-info', title: `${i18n}.groups.basic-info` }],
73
+ properties: [
74
+ {
75
+ name: 'id',
76
+ title: 'ID',
77
+ groupId: 'basic-info',
78
+ schema: {
79
+ dataType: 'uuid',
80
+ visible: false,
81
+ nullable: false,
82
+ readonly: true,
83
+ unique: { enabled: true },
84
+ },
85
+ },
86
+ ...options.fields.map((field) => ({
87
+ name: field.name,
88
+ title: `${i18n}.fields.${field.titleKey}.title`,
89
+ groupId: 'basic-info',
90
+ schema: {
91
+ dataType: field.dataType ?? 'string',
92
+ visible: field.visible !== false,
93
+ readonly: field.readonly === true,
94
+ interface: {
95
+ type: field.largeText
96
+ ? AXPWidgetsCatalog.largeText
97
+ : field.widget ?? AXPWidgetsCatalog.text,
98
+ options: field.largeText ? { rows: 8 } : undefined,
99
+ },
100
+ },
101
+ options: {
102
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
103
+ sort: { enabled: true },
104
+ },
105
+ validations: field.required ? [{ rule: 'required' }] : [],
106
+ })),
107
+ ],
108
+ columns: (options.columns ?? options.fields.filter((f) => f.visible !== false).map((f) => f.name)).map((name) => ({ name })),
109
+ interfaces: {
110
+ master: {
111
+ create: {
112
+ sections: [{ id: 'basic-info' }],
113
+ properties: options.fields
114
+ .filter((f) => !f.readonly && f.visible !== false)
115
+ .map((f) => ({ name: f.name })),
116
+ },
117
+ update: {
118
+ sections: [{ id: 'basic-info' }],
119
+ properties: options.fields
120
+ .filter((f) => !f.readonly && f.visible !== false)
121
+ .map((f) => ({ name: f.name })),
122
+ },
123
+ single: {
124
+ title: '{{ name || title || id }}',
125
+ sections: [{ id: 'basic-info' }],
126
+ properties: options.fields.map((f) => ({ name: f.name })),
127
+ actions: [...entityMasterRecordActions()],
128
+ },
129
+ list: {
130
+ actions: [...entityMasterCrudActions()],
131
+ views: [createAllQueryView({ sorts: [{ name: options.fields[0]?.name ?? 'id', dir: 'asc' }] })],
132
+ },
133
+ },
134
+ },
135
+ };
136
+ }
137
+ //#endregion
138
+
139
+ async function factoryRuleSetVersion() {
140
+ return createSimpleCrudEntity({
141
+ module: RootConfig.module.name,
142
+ name: RootConfig.entities.ruleSetVersion.name,
143
+ title: RootConfig.entities.ruleSetVersion.title,
144
+ titlePlural: RootConfig.entities.ruleSetVersion.titlePlural,
145
+ icon: RootConfig.entities.ruleSetVersion.icon,
146
+ i18nPrefix: '@rule-engine-management:versions.entities.rule-set-version',
147
+ fields: [
148
+ { name: 'ruleSetId', titleKey: 'rule-set-id', required: true },
149
+ { name: 'version', titleKey: 'version', required: true },
150
+ { name: 'status', titleKey: 'status', required: true },
151
+ { name: 'snapshotJson', titleKey: 'snapshot-json', largeText: true, required: true },
152
+ { name: 'publishedAt', titleKey: 'published-at' },
153
+ { name: 'publishedBy', titleKey: 'published-by' },
154
+ ],
155
+ columns: ['ruleSetId', 'version', 'status', 'publishedAt'],
156
+ });
157
+ }
158
+
159
+ /**
160
+ * Generated bundle index. Do not edit.
161
+ */
162
+
163
+ export { factoryRuleSetVersion };
164
+ //# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set-version.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set-version.mjs","sources":["../../../../libs/modules/rule-engine-management/contracts/src/root-config.ts","../../../../libs/modules/rule-engine-management/contracts/src/entities/entity-factory.util.ts","../../../../libs/modules/rule-engine-management/contracts/src/entities/rule-set-version/rule-set-version.entity.ts","../../../../libs/modules/rule-engine-management/contracts/src/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set-version.ts"],"sourcesContent":["const config = {\n i18n: 'rule-engine-management',\n module: 'RuleEngineManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'rule-engine-management',\n name: config.module,\n title: '@rule-engine-management:module.title',\n icon: 'fa-light fa-scale-balanced',\n },\n entities: {\n ruleSet: {\n name: 'RuleSet',\n fullName: `${config.module}.RuleSet`,\n title: '@rule-engine-management:rule-sets.entities.rule-set.title',\n titlePlural: '@rule-engine-management:rule-sets.entities.rule-set.plural',\n icon: 'fa-light fa-layer-group',\n },\n ruleDefinition: {\n name: 'RuleDefinition',\n fullName: `${config.module}.RuleDefinition`,\n title: '@rule-engine-management:rules.entities.rule-definition.title',\n titlePlural: '@rule-engine-management:rules.entities.rule-definition.plural',\n icon: 'fa-light fa-list-check',\n },\n decisionTable: {\n name: 'DecisionTable',\n fullName: `${config.module}.DecisionTable`,\n title: '@rule-engine-management:tables.entities.decision-table.title',\n titlePlural: '@rule-engine-management:tables.entities.decision-table.plural',\n icon: 'fa-light fa-table',\n },\n ruleSetVersion: {\n name: 'RuleSetVersion',\n fullName: `${config.module}.RuleSetVersion`,\n title: '@rule-engine-management:versions.entities.rule-set-version.title',\n titlePlural: '@rule-engine-management:versions.entities.rule-set-version.plural',\n icon: 'fa-light fa-code-branch',\n },\n ruleEvaluationRun: {\n name: 'RuleEvaluationRun',\n fullName: `${config.module}.RuleEvaluationRun`,\n title: '@rule-engine-management:runs.entities.rule-evaluation-run.title',\n titlePlural: '@rule-engine-management:runs.entities.rule-evaluation-run.plural',\n icon: 'fa-light fa-play',\n },\n },\n} as const;\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityPage,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\n\n//#region ---- Shared entity factory helper ----\n\nexport interface SimpleEntityFactoryOptions {\n module: string;\n name: string;\n title: string;\n titlePlural: string;\n icon: string;\n i18nPrefix: string;\n fields: Array<{\n name: string;\n titleKey: string;\n dataType?: 'string' | 'number' | 'boolean' | 'object' | 'uuid';\n required?: boolean;\n widget?: string;\n visible?: boolean;\n readonly?: boolean;\n largeText?: boolean;\n }>;\n columns?: string[];\n /** Optional custom entity detail tabs (workflow Activities pattern). */\n pages?: AXPEntityPage[];\n}\n\nexport function createSimpleCrudEntity(options: SimpleEntityFactoryOptions): AXPEntity {\n const i18n = options.i18nPrefix;\n return {\n module: options.module,\n name: options.name,\n title: options.title,\n icon: options.icon,\n plugins: [{ name: 'history' }],\n ...(options.pages?.length ? { pages: options.pages } : {}),\n formats: {\n individual: options.title,\n plural: options.titlePlural,\n searchResult: {\n title: '{{ name || title || id }}',\n description: '{{ domain || ruleSetId || status }}',\n },\n },\n groups: [{ id: 'basic-info', title: `${i18n}.groups.basic-info` }],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n ...options.fields.map((field) => ({\n name: field.name,\n title: `${i18n}.fields.${field.titleKey}.title`,\n groupId: 'basic-info',\n schema: {\n dataType: field.dataType ?? 'string',\n visible: field.visible !== false,\n readonly: field.readonly === true,\n interface: {\n type: field.largeText\n ? AXPWidgetsCatalog.largeText\n : field.widget ?? AXPWidgetsCatalog.text,\n options: field.largeText ? { rows: 8 } : undefined,\n },\n },\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n sort: { enabled: true },\n },\n validations: field.required ? [{ rule: 'required' as const }] : [],\n })),\n ],\n columns: (options.columns ?? options.fields.filter((f) => f.visible !== false).map((f) => f.name)).map(\n (name) => ({ name }),\n ),\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: options.fields\n .filter((f) => !f.readonly && f.visible !== false)\n .map((f) => ({ name: f.name })),\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: options.fields\n .filter((f) => !f.readonly && f.visible !== false)\n .map((f) => ({ name: f.name })),\n },\n single: {\n title: '{{ name || title || id }}',\n sections: [{ id: 'basic-info' }],\n properties: options.fields.map((f) => ({ name: f.name })),\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: options.fields[0]?.name ?? 'id', dir: 'asc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n","import { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\nimport { createSimpleCrudEntity } from '../entity-factory.util';\n\nexport async function factoryRuleSetVersion(): Promise<AXPEntity | null> {\n return createSimpleCrudEntity({\n module: RootConfig.module.name,\n name: RootConfig.entities.ruleSetVersion.name,\n title: RootConfig.entities.ruleSetVersion.title,\n titlePlural: RootConfig.entities.ruleSetVersion.titlePlural,\n icon: RootConfig.entities.ruleSetVersion.icon,\n i18nPrefix: '@rule-engine-management:versions.entities.rule-set-version',\n fields: [\n { name: 'ruleSetId', titleKey: 'rule-set-id', required: true },\n { name: 'version', titleKey: 'version', required: true },\n { name: 'status', titleKey: 'status', required: true },\n { name: 'snapshotJson', titleKey: 'snapshot-json', largeText: true, required: true },\n { name: 'publishedAt', titleKey: 'published-at' },\n { name: 'publishedBy', titleKey: 'published-by' },\n ],\n columns: ['ruleSetId', 'version', 'status', 'publishedAt'],\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.rule-set-version';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI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Q,EAAE,cAAc,EAAE;AACjD,YAAA,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE;AAClD,SAAA;QACD,OAAO,EAAE,CAAC,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,CAAC;AAC3D,KAAA,CAAC;AACJ;;ACtBA;;AAEG;;;;"}
@@ -0,0 +1,179 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ const config = {
5
+ i18n: 'rule-engine-management',
6
+ module: 'RuleEngineManagement',
7
+ };
8
+ const RootConfig = {
9
+ config,
10
+ module: {
11
+ route: 'rule-engine-management',
12
+ name: config.module,
13
+ title: '@rule-engine-management:module.title',
14
+ icon: 'fa-light fa-scale-balanced',
15
+ },
16
+ entities: {
17
+ ruleSet: {
18
+ name: 'RuleSet',
19
+ fullName: `${config.module}.RuleSet`,
20
+ title: '@rule-engine-management:rule-sets.entities.rule-set.title',
21
+ titlePlural: '@rule-engine-management:rule-sets.entities.rule-set.plural',
22
+ icon: 'fa-light fa-layer-group',
23
+ },
24
+ ruleDefinition: {
25
+ name: 'RuleDefinition',
26
+ fullName: `${config.module}.RuleDefinition`,
27
+ title: '@rule-engine-management:rules.entities.rule-definition.title',
28
+ titlePlural: '@rule-engine-management:rules.entities.rule-definition.plural',
29
+ icon: 'fa-light fa-list-check',
30
+ },
31
+ decisionTable: {
32
+ name: 'DecisionTable',
33
+ fullName: `${config.module}.DecisionTable`,
34
+ title: '@rule-engine-management:tables.entities.decision-table.title',
35
+ titlePlural: '@rule-engine-management:tables.entities.decision-table.plural',
36
+ icon: 'fa-light fa-table',
37
+ },
38
+ ruleSetVersion: {
39
+ name: 'RuleSetVersion',
40
+ fullName: `${config.module}.RuleSetVersion`,
41
+ title: '@rule-engine-management:versions.entities.rule-set-version.title',
42
+ titlePlural: '@rule-engine-management:versions.entities.rule-set-version.plural',
43
+ icon: 'fa-light fa-code-branch',
44
+ },
45
+ ruleEvaluationRun: {
46
+ name: 'RuleEvaluationRun',
47
+ fullName: `${config.module}.RuleEvaluationRun`,
48
+ title: '@rule-engine-management:runs.entities.rule-evaluation-run.title',
49
+ titlePlural: '@rule-engine-management:runs.entities.rule-evaluation-run.plural',
50
+ icon: 'fa-light fa-play',
51
+ },
52
+ },
53
+ };
54
+
55
+ /** Registry key for RuleSet Simulate custom entity page (tab). */
56
+ const RULE_SET_SIMULATE_PAGE_COMPONENT_KEY = 'rule-set-simulate-page';
57
+
58
+ function createSimpleCrudEntity(options) {
59
+ const i18n = options.i18nPrefix;
60
+ return {
61
+ module: options.module,
62
+ name: options.name,
63
+ title: options.title,
64
+ icon: options.icon,
65
+ plugins: [{ name: 'history' }],
66
+ ...(options.pages?.length ? { pages: options.pages } : {}),
67
+ formats: {
68
+ individual: options.title,
69
+ plural: options.titlePlural,
70
+ searchResult: {
71
+ title: '{{ name || title || id }}',
72
+ description: '{{ domain || ruleSetId || status }}',
73
+ },
74
+ },
75
+ groups: [{ id: 'basic-info', title: `${i18n}.groups.basic-info` }],
76
+ properties: [
77
+ {
78
+ name: 'id',
79
+ title: 'ID',
80
+ groupId: 'basic-info',
81
+ schema: {
82
+ dataType: 'uuid',
83
+ visible: false,
84
+ nullable: false,
85
+ readonly: true,
86
+ unique: { enabled: true },
87
+ },
88
+ },
89
+ ...options.fields.map((field) => ({
90
+ name: field.name,
91
+ title: `${i18n}.fields.${field.titleKey}.title`,
92
+ groupId: 'basic-info',
93
+ schema: {
94
+ dataType: field.dataType ?? 'string',
95
+ visible: field.visible !== false,
96
+ readonly: field.readonly === true,
97
+ interface: {
98
+ type: field.largeText
99
+ ? AXPWidgetsCatalog.largeText
100
+ : field.widget ?? AXPWidgetsCatalog.text,
101
+ options: field.largeText ? { rows: 8 } : undefined,
102
+ },
103
+ },
104
+ options: {
105
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
106
+ sort: { enabled: true },
107
+ },
108
+ validations: field.required ? [{ rule: 'required' }] : [],
109
+ })),
110
+ ],
111
+ columns: (options.columns ?? options.fields.filter((f) => f.visible !== false).map((f) => f.name)).map((name) => ({ name })),
112
+ interfaces: {
113
+ master: {
114
+ create: {
115
+ sections: [{ id: 'basic-info' }],
116
+ properties: options.fields
117
+ .filter((f) => !f.readonly && f.visible !== false)
118
+ .map((f) => ({ name: f.name })),
119
+ },
120
+ update: {
121
+ sections: [{ id: 'basic-info' }],
122
+ properties: options.fields
123
+ .filter((f) => !f.readonly && f.visible !== false)
124
+ .map((f) => ({ name: f.name })),
125
+ },
126
+ single: {
127
+ title: '{{ name || title || id }}',
128
+ sections: [{ id: 'basic-info' }],
129
+ properties: options.fields.map((f) => ({ name: f.name })),
130
+ actions: [...entityMasterRecordActions()],
131
+ },
132
+ list: {
133
+ actions: [...entityMasterCrudActions()],
134
+ views: [createAllQueryView({ sorts: [{ name: options.fields[0]?.name ?? 'id', dir: 'asc' }] })],
135
+ },
136
+ },
137
+ },
138
+ };
139
+ }
140
+ //#endregion
141
+
142
+ async function factoryRuleSet() {
143
+ return createSimpleCrudEntity({
144
+ module: RootConfig.module.name,
145
+ name: RootConfig.entities.ruleSet.name,
146
+ title: RootConfig.entities.ruleSet.title,
147
+ titlePlural: RootConfig.entities.ruleSet.titlePlural,
148
+ icon: RootConfig.entities.ruleSet.icon,
149
+ i18nPrefix: '@rule-engine-management:rule-sets.entities.rule-set',
150
+ fields: [
151
+ { name: 'name', titleKey: 'name', required: true },
152
+ { name: 'domain', titleKey: 'domain', required: true },
153
+ { name: 'version', titleKey: 'version', required: true },
154
+ { name: 'status', titleKey: 'status', required: true },
155
+ { name: 'title', titleKey: 'title' },
156
+ { name: 'description', titleKey: 'description', largeText: true },
157
+ { name: 'hitPolicyDefault', titleKey: 'hit-policy-default' },
158
+ { name: 'featureFlag', titleKey: 'feature-flag' },
159
+ { name: 'enabled', titleKey: 'enabled', dataType: 'boolean' },
160
+ ],
161
+ columns: ['name', 'domain', 'version', 'status', 'enabled'],
162
+ pages: [
163
+ {
164
+ componentKey: RULE_SET_SIMULATE_PAGE_COMPONENT_KEY,
165
+ title: '@rule-engine-management:rule-sets.entities.rule-set.pages.simulate.title',
166
+ icon: 'fa-light fa-flask',
167
+ layout: { order: 1, position: 'after' },
168
+ appearOn: { create: false, update: true },
169
+ },
170
+ ],
171
+ });
172
+ }
173
+
174
+ /**
175
+ * Generated bundle index. Do not edit.
176
+ */
177
+
178
+ export { factoryRuleSet };
179
+ //# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set.mjs","sources":["../../../../libs/modules/rule-engine-management/contracts/src/root-config.ts","../../../../libs/modules/rule-engine-management/contracts/src/rule-set-simulate-page.component-key.ts","../../../../libs/modules/rule-engine-management/contracts/src/entities/entity-factory.util.ts","../../../../libs/modules/rule-engine-management/contracts/src/entities/rule-set/rule-set.entity.ts","../../../../libs/modules/rule-engine-management/contracts/src/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set.ts"],"sourcesContent":["const config = {\n i18n: 'rule-engine-management',\n module: 'RuleEngineManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'rule-engine-management',\n name: config.module,\n title: '@rule-engine-management:module.title',\n icon: 'fa-light fa-scale-balanced',\n },\n entities: {\n ruleSet: {\n name: 'RuleSet',\n fullName: `${config.module}.RuleSet`,\n title: '@rule-engine-management:rule-sets.entities.rule-set.title',\n titlePlural: '@rule-engine-management:rule-sets.entities.rule-set.plural',\n icon: 'fa-light fa-layer-group',\n },\n ruleDefinition: {\n name: 'RuleDefinition',\n fullName: `${config.module}.RuleDefinition`,\n title: '@rule-engine-management:rules.entities.rule-definition.title',\n titlePlural: '@rule-engine-management:rules.entities.rule-definition.plural',\n icon: 'fa-light fa-list-check',\n },\n decisionTable: {\n name: 'DecisionTable',\n fullName: `${config.module}.DecisionTable`,\n title: '@rule-engine-management:tables.entities.decision-table.title',\n titlePlural: '@rule-engine-management:tables.entities.decision-table.plural',\n icon: 'fa-light fa-table',\n },\n ruleSetVersion: {\n name: 'RuleSetVersion',\n fullName: `${config.module}.RuleSetVersion`,\n title: '@rule-engine-management:versions.entities.rule-set-version.title',\n titlePlural: '@rule-engine-management:versions.entities.rule-set-version.plural',\n icon: 'fa-light fa-code-branch',\n },\n ruleEvaluationRun: {\n name: 'RuleEvaluationRun',\n fullName: `${config.module}.RuleEvaluationRun`,\n title: '@rule-engine-management:runs.entities.rule-evaluation-run.title',\n titlePlural: '@rule-engine-management:runs.entities.rule-evaluation-run.plural',\n icon: 'fa-light fa-play',\n },\n },\n} as const;\n","/** Registry key for RuleSet Simulate custom entity page (tab). */\nexport const RULE_SET_SIMULATE_PAGE_COMPONENT_KEY = 'rule-set-simulate-page';\n","import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityPage,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\n\n//#region ---- Shared entity factory helper ----\n\nexport interface SimpleEntityFactoryOptions {\n module: string;\n name: string;\n title: string;\n titlePlural: string;\n icon: string;\n i18nPrefix: string;\n fields: Array<{\n name: string;\n titleKey: string;\n dataType?: 'string' | 'number' | 'boolean' | 'object' | 'uuid';\n required?: boolean;\n widget?: string;\n visible?: boolean;\n readonly?: boolean;\n largeText?: boolean;\n }>;\n columns?: string[];\n /** Optional custom entity detail tabs (workflow Activities pattern). */\n pages?: AXPEntityPage[];\n}\n\nexport function createSimpleCrudEntity(options: SimpleEntityFactoryOptions): AXPEntity {\n const i18n = options.i18nPrefix;\n return {\n module: options.module,\n name: options.name,\n title: options.title,\n icon: options.icon,\n plugins: [{ name: 'history' }],\n ...(options.pages?.length ? { pages: options.pages } : {}),\n formats: {\n individual: options.title,\n plural: options.titlePlural,\n searchResult: {\n title: '{{ name || title || id }}',\n description: '{{ domain || ruleSetId || status }}',\n },\n },\n groups: [{ id: 'basic-info', title: `${i18n}.groups.basic-info` }],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n ...options.fields.map((field) => ({\n name: field.name,\n title: `${i18n}.fields.${field.titleKey}.title`,\n groupId: 'basic-info',\n schema: {\n dataType: field.dataType ?? 'string',\n visible: field.visible !== false,\n readonly: field.readonly === true,\n interface: {\n type: field.largeText\n ? AXPWidgetsCatalog.largeText\n : field.widget ?? AXPWidgetsCatalog.text,\n options: field.largeText ? { rows: 8 } : undefined,\n },\n },\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n sort: { enabled: true },\n },\n validations: field.required ? [{ rule: 'required' as const }] : [],\n })),\n ],\n columns: (options.columns ?? options.fields.filter((f) => f.visible !== false).map((f) => f.name)).map(\n (name) => ({ name }),\n ),\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: options.fields\n .filter((f) => !f.readonly && f.visible !== false)\n .map((f) => ({ name: f.name })),\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: options.fields\n .filter((f) => !f.readonly && f.visible !== false)\n .map((f) => ({ name: f.name })),\n },\n single: {\n title: '{{ name || title || id }}',\n sections: [{ id: 'basic-info' }],\n properties: options.fields.map((f) => ({ name: f.name })),\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: options.fields[0]?.name ?? 'id', dir: 'asc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n","import { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\nimport { RULE_SET_SIMULATE_PAGE_COMPONENT_KEY } from '../../rule-set-simulate-page.component-key';\nimport { createSimpleCrudEntity } from '../entity-factory.util';\n\nexport async function factoryRuleSet(): Promise<AXPEntity | null> {\n return createSimpleCrudEntity({\n module: RootConfig.module.name,\n name: RootConfig.entities.ruleSet.name,\n title: RootConfig.entities.ruleSet.title,\n titlePlural: RootConfig.entities.ruleSet.titlePlural,\n icon: RootConfig.entities.ruleSet.icon,\n i18nPrefix: '@rule-engine-management:rule-sets.entities.rule-set',\n fields: [\n { name: 'name', titleKey: 'name', required: true },\n { name: 'domain', titleKey: 'domain', required: true },\n { name: 'version', titleKey: 'version', required: true },\n { name: 'status', titleKey: 'status', required: true },\n { name: 'title', titleKey: 'title' },\n { name: 'description', titleKey: 'description', largeText: true },\n { name: 'hitPolicyDefault', titleKey: 'hit-policy-default' },\n { name: 'featureFlag', titleKey: 'feature-flag' },\n { name: 'enabled', titleKey: 'enabled', dataType: 'boolean' },\n ],\n columns: ['name', 'domain', 'version', 'status', 'enabled'],\n pages: [\n {\n componentKey: RULE_SET_SIMULATE_PAGE_COMPONENT_KEY,\n title: '@rule-engine-management:rule-sets.entities.rule-set.pages.simulate.title',\n icon: 'fa-light fa-flask',\n layout: { order: 1, position: 'after' },\n appearOn: { create: false, update: true },\n },\n ],\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-entry.rule-set';\n"],"names":[],"mappings":";;;AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,wBAAwB;AAC9B,IAAA,MAAM,EAAE,sBAAsB;CAC/B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,wBAAwB;QAC/B,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,sCAAsC;AAC7C,QAAA,IAAI,EAAE,4BAA4B;AACnC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,QAAQ,EAAE,CAAA,EAAG,MAAM,CAAC,MAAM,CAAA,QAAA,CAAU;AACpC,YA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,EAAE,SAAS,CAAC;AAC3D,QAAA,KAAK,EAAE;AACL,YAAA;AACE,gBAAA,YAAY,EAAE,oCAAoC;AAClD,gBAAA,KAAK,EAAE,0EAA0E;AACjF,gBAAA,IAAI,EAAE,mBAAmB;gBACzB,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE;gBACvC,QAAQ,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE;AAC1C,aAAA;AACF,SAAA;AACF,KAAA,CAAC;AACJ;;ACnCA;;AAEG;;;;"}
@@ -0,0 +1,77 @@
1
+ const config = {
2
+ i18n: 'rule-engine-management',
3
+ module: 'RuleEngineManagement',
4
+ };
5
+ const RootConfig = {
6
+ config,
7
+ module: {
8
+ route: 'rule-engine-management',
9
+ name: config.module,
10
+ title: '@rule-engine-management:module.title',
11
+ icon: 'fa-light fa-scale-balanced',
12
+ },
13
+ entities: {
14
+ ruleSet: {
15
+ name: 'RuleSet',
16
+ fullName: `${config.module}.RuleSet`,
17
+ title: '@rule-engine-management:rule-sets.entities.rule-set.title',
18
+ titlePlural: '@rule-engine-management:rule-sets.entities.rule-set.plural',
19
+ icon: 'fa-light fa-layer-group',
20
+ },
21
+ ruleDefinition: {
22
+ name: 'RuleDefinition',
23
+ fullName: `${config.module}.RuleDefinition`,
24
+ title: '@rule-engine-management:rules.entities.rule-definition.title',
25
+ titlePlural: '@rule-engine-management:rules.entities.rule-definition.plural',
26
+ icon: 'fa-light fa-list-check',
27
+ },
28
+ decisionTable: {
29
+ name: 'DecisionTable',
30
+ fullName: `${config.module}.DecisionTable`,
31
+ title: '@rule-engine-management:tables.entities.decision-table.title',
32
+ titlePlural: '@rule-engine-management:tables.entities.decision-table.plural',
33
+ icon: 'fa-light fa-table',
34
+ },
35
+ ruleSetVersion: {
36
+ name: 'RuleSetVersion',
37
+ fullName: `${config.module}.RuleSetVersion`,
38
+ title: '@rule-engine-management:versions.entities.rule-set-version.title',
39
+ titlePlural: '@rule-engine-management:versions.entities.rule-set-version.plural',
40
+ icon: 'fa-light fa-code-branch',
41
+ },
42
+ ruleEvaluationRun: {
43
+ name: 'RuleEvaluationRun',
44
+ fullName: `${config.module}.RuleEvaluationRun`,
45
+ title: '@rule-engine-management:runs.entities.rule-evaluation-run.title',
46
+ titlePlural: '@rule-engine-management:runs.entities.rule-evaluation-run.plural',
47
+ icon: 'fa-light fa-play',
48
+ },
49
+ },
50
+ };
51
+
52
+ //#region ----- Imports -----
53
+ //#endregion
54
+ //#region ----- Local entity catalog -----
55
+ /**
56
+ * Lazy per-entity layout factories. Do not re-export from the contracts barrel
57
+ * so RootConfig imports stay light. Server seed and client `local-entities`
58
+ * consume this catalog explicitly.
59
+ */
60
+ const ruleEngineManagementLocalEntityCatalog = {
61
+ moduleName: RootConfig.module.name,
62
+ loaders: {
63
+ [RootConfig.entities.decisionTable.name]: () => import('./acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-decision-table.entity-CEUy_Ynp.mjs').then((m) => m.factoryDecisionTable()),
64
+ [RootConfig.entities.ruleDefinition.name]: () => import('./acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-definition.entity-mOluqI_4.mjs').then((m) => m.factoryRuleDefinition()),
65
+ [RootConfig.entities.ruleEvaluationRun.name]: () => import('./acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-evaluation-run.entity-lnOwB2B5.mjs').then((m) => m.factoryRuleEvaluationRun()),
66
+ [RootConfig.entities.ruleSet.name]: () => import('./acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set.entity-BSBDdK0J.mjs').then((m) => m.factoryRuleSet()),
67
+ [RootConfig.entities.ruleSetVersion.name]: () => import('./acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set-version.entity-BIJ9oUhD.mjs').then((m) => m.factoryRuleSetVersion()),
68
+ },
69
+ };
70
+ //#endregion
71
+
72
+ /**
73
+ * Generated bundle index. Do not edit.
74
+ */
75
+
76
+ export { RootConfig as R, ruleEngineManagementLocalEntityCatalog as r };
77
+ //# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-DTAe_E9Y.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-DTAe_E9Y.mjs","sources":["../../../../libs/modules/rule-engine-management/contracts/src/root-config.ts","../../../../libs/modules/rule-engine-management/contracts/src/entity-catalog.ts","../../../../libs/modules/rule-engine-management/contracts/src/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog.ts"],"sourcesContent":["const config = {\n i18n: 'rule-engine-management',\n module: 'RuleEngineManagement',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'rule-engine-management',\n name: config.module,\n title: '@rule-engine-management:module.title',\n icon: 'fa-light fa-scale-balanced',\n },\n entities: {\n ruleSet: {\n name: 'RuleSet',\n fullName: `${config.module}.RuleSet`,\n title: '@rule-engine-management:rule-sets.entities.rule-set.title',\n titlePlural: '@rule-engine-management:rule-sets.entities.rule-set.plural',\n icon: 'fa-light fa-layer-group',\n },\n ruleDefinition: {\n name: 'RuleDefinition',\n fullName: `${config.module}.RuleDefinition`,\n title: '@rule-engine-management:rules.entities.rule-definition.title',\n titlePlural: '@rule-engine-management:rules.entities.rule-definition.plural',\n icon: 'fa-light fa-list-check',\n },\n decisionTable: {\n name: 'DecisionTable',\n fullName: `${config.module}.DecisionTable`,\n title: '@rule-engine-management:tables.entities.decision-table.title',\n titlePlural: '@rule-engine-management:tables.entities.decision-table.plural',\n icon: 'fa-light fa-table',\n },\n ruleSetVersion: {\n name: 'RuleSetVersion',\n fullName: `${config.module}.RuleSetVersion`,\n title: '@rule-engine-management:versions.entities.rule-set-version.title',\n titlePlural: '@rule-engine-management:versions.entities.rule-set-version.plural',\n icon: 'fa-light fa-code-branch',\n },\n ruleEvaluationRun: {\n name: 'RuleEvaluationRun',\n fullName: `${config.module}.RuleEvaluationRun`,\n title: '@rule-engine-management:runs.entities.rule-evaluation-run.title',\n titlePlural: '@rule-engine-management:runs.entities.rule-evaluation-run.plural',\n icon: 'fa-light fa-play',\n },\n },\n} as const;\n","//#region ----- Imports -----\n\nimport type { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ----- Local entity catalog -----\n\n/**\n * Lazy per-entity layout factories. Do not re-export from the contracts barrel\n * so RootConfig imports stay light. Server seed and client `local-entities`\n * consume this catalog explicitly.\n */\nexport const ruleEngineManagementLocalEntityCatalog: AXPLocalEntityCatalog = {\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.decisionTable.name]: () =>\n import('./entities/decision-table/decision-table.entity.js').then((m) => m.factoryDecisionTable()),\n [RootConfig.entities.ruleDefinition.name]: () =>\n import('./entities/rule-definition/rule-definition.entity.js').then((m) => m.factoryRuleDefinition()),\n [RootConfig.entities.ruleEvaluationRun.name]: () =>\n import('./entities/rule-evaluation-run/rule-evaluation-run.entity.js').then((m) => m.factoryRuleEvaluationRun()),\n [RootConfig.entities.ruleSet.name]: () =>\n import('./entities/rule-set/rule-set.entity.js').then((m) => m.factoryRuleSet()),\n [RootConfig.entities.ruleSetVersion.name]: () =>\n import('./entities/rule-set-version/rule-set-version.entity.js').then((m) => m.factoryRuleSetVersion()),\n },\n};\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-catalog';\n"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,wBAAwB;AAC9B,IAAA,MAAM,EAAE,sBAAsB;CAC/B;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,wBAAwB;QAC/B,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,sCA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/E,YAAA,IAAI,EAAE,kBAAkB;AACzB,SAAA;AACF,KAAA;;;ACjDH;AAMA;AAEA;AAEA;;;;AAIG;AACI,MAAM,sCAAsC,GAA0B;AAC3E,IAAA,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAClC,IAAA,OAAO,EAAE;AACP,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,GAAG,MACxC,OAAO,oHAAoD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,oBAAoB,EAAE,CAAC;AACpG,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,GAAG,MACzC,OAAO,qHAAsD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,qBAAqB,EAAE,CAAC;AACvG,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,GAAG,MAC5C,OAAO,yHAA8D,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,wBAAwB,EAAE,CAAC;AAClH,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,GAAG,MAClC,OAAO,8GAAwC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,cAAc,EAAE,CAAC;AAClF,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,GAAG,MACzC,OAAO,sHAAwD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,qBAAqB,EAAE,CAAC;AAC1G,KAAA;;AAGH;;AC/BA;;AAEG;;;;"}
@@ -0,0 +1,23 @@
1
+ import { R as RootConfig } from './acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-DTAe_E9Y.mjs';
2
+ import { c as createSimpleCrudEntity } from './acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-F9RWQOLM.mjs';
3
+
4
+ async function factoryDecisionTable() {
5
+ return createSimpleCrudEntity({
6
+ module: RootConfig.module.name,
7
+ name: RootConfig.entities.decisionTable.name,
8
+ title: RootConfig.entities.decisionTable.title,
9
+ titlePlural: RootConfig.entities.decisionTable.titlePlural,
10
+ icon: RootConfig.entities.decisionTable.icon,
11
+ i18nPrefix: '@rule-engine-management:tables.entities.decision-table',
12
+ fields: [
13
+ { name: 'ruleSetId', titleKey: 'rule-set-id', required: true },
14
+ { name: 'name', titleKey: 'name', required: true },
15
+ { name: 'hitPolicy', titleKey: 'hit-policy', required: true },
16
+ { name: 'tableJson', titleKey: 'table-json', largeText: true, required: true },
17
+ ],
18
+ columns: ['name', 'ruleSetId', 'hitPolicy'],
19
+ });
20
+ }
21
+
22
+ export { factoryDecisionTable };
23
+ //# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-decision-table.entity-CEUy_Ynp.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-decision-table.entity-CEUy_Ynp.mjs","sources":["../../../../libs/modules/rule-engine-management/contracts/src/entities/decision-table/decision-table.entity.ts"],"sourcesContent":["import { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\nimport { createSimpleCrudEntity } from '../entity-factory.util';\n\nexport async function factoryDecisionTable(): Promise<AXPEntity | null> {\n return createSimpleCrudEntity({\n module: RootConfig.module.name,\n name: RootConfig.entities.decisionTable.name,\n title: RootConfig.entities.decisionTable.title,\n titlePlural: RootConfig.entities.decisionTable.titlePlural,\n icon: RootConfig.entities.decisionTable.icon,\n i18nPrefix: '@rule-engine-management:tables.entities.decision-table',\n fields: [\n { name: 'ruleSetId', titleKey: 'rule-set-id', required: true },\n { name: 'name', titleKey: 'name', required: true },\n { name: 'hitPolicy', titleKey: 'hit-policy', required: true },\n { name: 'tableJson', titleKey: 'table-json', largeText: true, required: true },\n ],\n columns: ['name', 'ruleSetId', 'hitPolicy'],\n });\n}\n"],"names":[],"mappings":";;;AAIO,eAAe,oBAAoB,GAAA;AACxC,IAAA,OAAO,sBAAsB,CAAC;AAC5B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI;AAC5C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK;AAC9C,QAAA,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,WAAW;AAC1D,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI;AAC5C,QAAA,UAAU,EAAE,wDAAwD;AACpE,QAAA,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC9D,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;YAClD,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE;AAC7D,YAAA,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;AAC/E,SAAA;AACD,QAAA,OAAO,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,WAAW,CAAC;AAC5C,KAAA,CAAC;AACJ;;;;"}
@@ -0,0 +1,89 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
3
+
4
+ function createSimpleCrudEntity(options) {
5
+ const i18n = options.i18nPrefix;
6
+ return {
7
+ module: options.module,
8
+ name: options.name,
9
+ title: options.title,
10
+ icon: options.icon,
11
+ plugins: [{ name: 'history' }],
12
+ ...(options.pages?.length ? { pages: options.pages } : {}),
13
+ formats: {
14
+ individual: options.title,
15
+ plural: options.titlePlural,
16
+ searchResult: {
17
+ title: '{{ name || title || id }}',
18
+ description: '{{ domain || ruleSetId || status }}',
19
+ },
20
+ },
21
+ groups: [{ id: 'basic-info', title: `${i18n}.groups.basic-info` }],
22
+ properties: [
23
+ {
24
+ name: 'id',
25
+ title: 'ID',
26
+ groupId: 'basic-info',
27
+ schema: {
28
+ dataType: 'uuid',
29
+ visible: false,
30
+ nullable: false,
31
+ readonly: true,
32
+ unique: { enabled: true },
33
+ },
34
+ },
35
+ ...options.fields.map((field) => ({
36
+ name: field.name,
37
+ title: `${i18n}.fields.${field.titleKey}.title`,
38
+ groupId: 'basic-info',
39
+ schema: {
40
+ dataType: field.dataType ?? 'string',
41
+ visible: field.visible !== false,
42
+ readonly: field.readonly === true,
43
+ interface: {
44
+ type: field.largeText
45
+ ? AXPWidgetsCatalog.largeText
46
+ : field.widget ?? AXPWidgetsCatalog.text,
47
+ options: field.largeText ? { rows: 8 } : undefined,
48
+ },
49
+ },
50
+ options: {
51
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
52
+ sort: { enabled: true },
53
+ },
54
+ validations: field.required ? [{ rule: 'required' }] : [],
55
+ })),
56
+ ],
57
+ columns: (options.columns ?? options.fields.filter((f) => f.visible !== false).map((f) => f.name)).map((name) => ({ name })),
58
+ interfaces: {
59
+ master: {
60
+ create: {
61
+ sections: [{ id: 'basic-info' }],
62
+ properties: options.fields
63
+ .filter((f) => !f.readonly && f.visible !== false)
64
+ .map((f) => ({ name: f.name })),
65
+ },
66
+ update: {
67
+ sections: [{ id: 'basic-info' }],
68
+ properties: options.fields
69
+ .filter((f) => !f.readonly && f.visible !== false)
70
+ .map((f) => ({ name: f.name })),
71
+ },
72
+ single: {
73
+ title: '{{ name || title || id }}',
74
+ sections: [{ id: 'basic-info' }],
75
+ properties: options.fields.map((f) => ({ name: f.name })),
76
+ actions: [...entityMasterRecordActions()],
77
+ },
78
+ list: {
79
+ actions: [...entityMasterCrudActions()],
80
+ views: [createAllQueryView({ sorts: [{ name: options.fields[0]?.name ?? 'id', dir: 'asc' }] })],
81
+ },
82
+ },
83
+ },
84
+ };
85
+ }
86
+ //#endregion
87
+
88
+ export { createSimpleCrudEntity as c };
89
+ //# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-F9RWQOLM.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-F9RWQOLM.mjs","sources":["../../../../libs/modules/rule-engine-management/contracts/src/entities/entity-factory.util.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityPage,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\n\n//#region ---- Shared entity factory helper ----\n\nexport interface SimpleEntityFactoryOptions {\n module: string;\n name: string;\n title: string;\n titlePlural: string;\n icon: string;\n i18nPrefix: string;\n fields: Array<{\n name: string;\n titleKey: string;\n dataType?: 'string' | 'number' | 'boolean' | 'object' | 'uuid';\n required?: boolean;\n widget?: string;\n visible?: boolean;\n readonly?: boolean;\n largeText?: boolean;\n }>;\n columns?: string[];\n /** Optional custom entity detail tabs (workflow Activities pattern). */\n pages?: AXPEntityPage[];\n}\n\nexport function createSimpleCrudEntity(options: SimpleEntityFactoryOptions): AXPEntity {\n const i18n = options.i18nPrefix;\n return {\n module: options.module,\n name: options.name,\n title: options.title,\n icon: options.icon,\n plugins: [{ name: 'history' }],\n ...(options.pages?.length ? { pages: options.pages } : {}),\n formats: {\n individual: options.title,\n plural: options.titlePlural,\n searchResult: {\n title: '{{ name || title || id }}',\n description: '{{ domain || ruleSetId || status }}',\n },\n },\n groups: [{ id: 'basic-info', title: `${i18n}.groups.basic-info` }],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'basic-info',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n ...options.fields.map((field) => ({\n name: field.name,\n title: `${i18n}.fields.${field.titleKey}.title`,\n groupId: 'basic-info',\n schema: {\n dataType: field.dataType ?? 'string',\n visible: field.visible !== false,\n readonly: field.readonly === true,\n interface: {\n type: field.largeText\n ? AXPWidgetsCatalog.largeText\n : field.widget ?? AXPWidgetsCatalog.text,\n options: field.largeText ? { rows: 8 } : undefined,\n },\n },\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: false } },\n sort: { enabled: true },\n },\n validations: field.required ? [{ rule: 'required' as const }] : [],\n })),\n ],\n columns: (options.columns ?? options.fields.filter((f) => f.visible !== false).map((f) => f.name)).map(\n (name) => ({ name }),\n ),\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }],\n properties: options.fields\n .filter((f) => !f.readonly && f.visible !== false)\n .map((f) => ({ name: f.name })),\n },\n update: {\n sections: [{ id: 'basic-info' }],\n properties: options.fields\n .filter((f) => !f.readonly && f.visible !== false)\n .map((f) => ({ name: f.name })),\n },\n single: {\n title: '{{ name || title || id }}',\n sections: [{ id: 'basic-info' }],\n properties: options.fields.map((f) => ({ name: f.name })),\n actions: [...entityMasterRecordActions()],\n },\n list: {\n actions: [...entityMasterCrudActions()],\n views: [createAllQueryView({ sorts: [{ name: options.fields[0]?.name ?? 'id', dir: 'asc' }] })],\n },\n },\n },\n };\n}\n\n//#endregion\n"],"names":[],"mappings":";;;AAiCM,SAAU,sBAAsB,CAAC,OAAmC,EAAA;AACxE,IAAA,MAAM,IAAI,GAAG,OAAO,CAAC,UAAU;IAC/B,OAAO;QACL,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,IAAI,EAAE,OAAO,CA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