@acorex-platform/module-rule-engine-management-client 0.0.38 → 0.0.48
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-rule-engine-management-client-contracts-entities-decision-table.mjs +15 -0
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-decision-table.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-definition.mjs +15 -0
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-definition.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-evaluation-run.mjs +15 -0
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-evaluation-run.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set-version.mjs +16 -0
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set-version.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set.mjs +16 -0
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entities-rule-set.mjs.map +1 -1
- 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 → acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-B7JP329o.mjs} +6 -6
- 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 → acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-B7JP329o.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-decision-table.entity-CEUy_Ynp.mjs → acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-decision-table.entity-5w0Bp87o.mjs} +17 -3
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-decision-table.entity-5w0Bp87o.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-F9RWQOLM.mjs → acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-DSa7FHZ7.mjs} +2 -1
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-DSa7FHZ7.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-definition.entity-mOluqI_4.mjs → acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-definition.entity-CM0rjSK7.mjs} +17 -3
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-definition.entity-CM0rjSK7.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-evaluation-run.entity-lnOwB2B5.mjs → acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-evaluation-run.entity-D8ubGOt6.mjs} +17 -3
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-evaluation-run.entity-D8ubGOt6.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set-version.entity-BIJ9oUhD.mjs → acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set-version.entity-BppelLMG.mjs} +18 -3
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set-version.entity-BppelLMG.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set.entity-BSBDdK0J.mjs → acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set.entity-D-7p65_D.mjs} +18 -3
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set.entity-D-7p65_D.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts.mjs +11 -1
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-rule-engine-management-client.mjs +4 -23
- package/fesm2022/acorex-platform-module-rule-engine-management-client.mjs.map +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-module-rule-engine-management-client-contracts.d.ts +5 -1
- package/types/acorex-platform-module-rule-engine-management-client.d.ts +2 -4
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-decision-table.entity-CEUy_Ynp.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-F9RWQOLM.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-definition.entity-mOluqI_4.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-evaluation-run.entity-lnOwB2B5.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set-version.entity-BIJ9oUhD.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set.entity-BSBDdK0J.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-decision-table.entity-5w0Bp87o.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 searchTags: [\n 'decision-table',\n 'decision-tables',\n 'lookup-table',\n 'dmnn',\n 'hit-policy',\n 'rule-set',\n 'business-logic',\n 'rules',\n 'جدول تصمیم',\n 'جداول تصمیم',\n 'موتور قوانین',\n 'سیاست برخورد',\n ],\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,UAAU,EAAE;YACV,gBAAgB;YAChB,iBAAiB;YACjB,cAAc;YACd,MAAM;YACN,YAAY;YACZ,UAAU;YACV,gBAAgB;YAChB,OAAO;YACP,YAAY;YACZ,aAAa;YACb,cAAc;YACd,cAAc;AACf,SAAA;AACD,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;;"}
|
|
@@ -8,6 +8,7 @@ function createSimpleCrudEntity(options) {
|
|
|
8
8
|
name: options.name,
|
|
9
9
|
title: options.title,
|
|
10
10
|
icon: options.icon,
|
|
11
|
+
...(options.searchTags?.length ? { searchTags: options.searchTags } : {}),
|
|
11
12
|
plugins: [{ name: 'history' }],
|
|
12
13
|
...(options.pages?.length ? { pages: options.pages } : {}),
|
|
13
14
|
formats: {
|
|
@@ -86,4 +87,4 @@ function createSimpleCrudEntity(options) {
|
|
|
86
87
|
//#endregion
|
|
87
88
|
|
|
88
89
|
export { createSimpleCrudEntity as c };
|
|
89
|
-
//# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-
|
|
90
|
+
//# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-DSa7FHZ7.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-DSa7FHZ7.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 searchTags?: 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 ...(options.searchTags?.length ? { searchTags: options.searchTags } : {}),\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":";;;AAkCM,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,CAAC,IAAI;QAClB,IAAI,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC;AACzE,QAAA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC9B,IAAI,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC;AAC1D,QAAA,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,KAAK;YACzB,MAAM,EAAE,OAAO,CAAC,WAAW;AAC3B,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,2BAA2B;AAClC,gBAAA,WAAW,EAAE,qCAAqC;AACnD,aAAA;AACF,SAAA;AACD,QAAA,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,KAA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,KAAK,EAAE,2BAA2B;AAClC,oBAAA,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,CAAC;oBAChC,UAAU,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AACzD,oBAAA,OAAO,EAAE,CAAC,GAAG,yBAAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,oBAAA,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AAChG,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { c as createSimpleCrudEntity } from './acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-
|
|
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-B7JP329o.mjs';
|
|
2
|
+
import { c as createSimpleCrudEntity } from './acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-DSa7FHZ7.mjs';
|
|
3
3
|
|
|
4
4
|
async function factoryRuleDefinition() {
|
|
5
5
|
return createSimpleCrudEntity({
|
|
@@ -9,6 +9,20 @@ async function factoryRuleDefinition() {
|
|
|
9
9
|
titlePlural: RootConfig.entities.ruleDefinition.titlePlural,
|
|
10
10
|
icon: RootConfig.entities.ruleDefinition.icon,
|
|
11
11
|
i18nPrefix: '@rule-engine-management:rules.entities.rule-definition',
|
|
12
|
+
searchTags: [
|
|
13
|
+
'rule-definition',
|
|
14
|
+
'business-rule',
|
|
15
|
+
'condition-action',
|
|
16
|
+
'when-then',
|
|
17
|
+
'salience',
|
|
18
|
+
'priority',
|
|
19
|
+
'activation-group',
|
|
20
|
+
'rule-set',
|
|
21
|
+
'تعریف قانون',
|
|
22
|
+
'تعاریف قوانین',
|
|
23
|
+
'موتور قوانین',
|
|
24
|
+
'قانون',
|
|
25
|
+
],
|
|
12
26
|
fields: [
|
|
13
27
|
{ name: 'ruleSetId', titleKey: 'rule-set-id', required: true },
|
|
14
28
|
{ name: 'name', titleKey: 'name', required: true },
|
|
@@ -25,4 +39,4 @@ async function factoryRuleDefinition() {
|
|
|
25
39
|
}
|
|
26
40
|
|
|
27
41
|
export { factoryRuleDefinition };
|
|
28
|
-
//# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-definition.entity-
|
|
42
|
+
//# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-definition.entity-CM0rjSK7.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-definition.entity-CM0rjSK7.mjs","sources":["../../../../libs/modules/rule-engine-management/contracts/src/entities/rule-definition/rule-definition.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 factoryRuleDefinition(): Promise<AXPEntity | null> {\n return createSimpleCrudEntity({\n module: RootConfig.module.name,\n name: RootConfig.entities.ruleDefinition.name,\n title: RootConfig.entities.ruleDefinition.title,\n titlePlural: RootConfig.entities.ruleDefinition.titlePlural,\n icon: RootConfig.entities.ruleDefinition.icon,\n i18nPrefix: '@rule-engine-management:rules.entities.rule-definition',\n searchTags: [\n 'rule-definition',\n 'business-rule',\n 'condition-action',\n 'when-then',\n 'salience',\n 'priority',\n 'activation-group',\n 'rule-set',\n 'تعریف قانون',\n 'تعاریف قوانین',\n 'موتور قوانین',\n 'قانون',\n ],\n fields: [\n { name: 'ruleSetId', titleKey: 'rule-set-id', required: true },\n { name: 'name', titleKey: 'name', required: true },\n { name: 'enabled', titleKey: 'enabled', dataType: 'boolean' },\n { name: 'priority', titleKey: 'priority', dataType: 'number' },\n { name: 'salience', titleKey: 'salience', dataType: 'number' },\n { name: 'activationGroup', titleKey: 'activation-group' },\n { name: 'severity', titleKey: 'severity' },\n { name: 'whenJson', titleKey: 'when-json', largeText: true, required: true },\n { name: 'thenJson', titleKey: 'then-json', largeText: true, required: true },\n ],\n columns: ['name', 'ruleSetId', 'severity', 'priority', 'enabled'],\n });\n}\n"],"names":[],"mappings":";;;AAIO,eAAe,qBAAqB,GAAA;AACzC,IAAA,OAAO,sBAAsB,CAAC;AAC5B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAC7C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK;AAC/C,QAAA,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,WAAW;AAC3D,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAC7C,QAAA,UAAU,EAAE,wDAAwD;AACpE,QAAA,UAAU,EAAE;YACV,iBAAiB;YACjB,eAAe;YACf,kBAAkB;YAClB,WAAW;YACX,UAAU;YACV,UAAU;YACV,kBAAkB;YAClB,UAAU;YACV,aAAa;YACb,eAAe;YACf,cAAc;YACd,OAAO;AACR,SAAA;AACD,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,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE;YAC7D,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE;YAC9D,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE;AAC9D,YAAA,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,kBAAkB,EAAE;AACzD,YAAA,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE;AAC1C,YAAA,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;AAC5E,YAAA,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;AAC7E,SAAA;QACD,OAAO,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC;AAClE,KAAA,CAAC;AACJ;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { c as createSimpleCrudEntity } from './acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-
|
|
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-B7JP329o.mjs';
|
|
2
|
+
import { c as createSimpleCrudEntity } from './acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-DSa7FHZ7.mjs';
|
|
3
3
|
|
|
4
4
|
async function factoryRuleEvaluationRun() {
|
|
5
5
|
return createSimpleCrudEntity({
|
|
@@ -9,6 +9,20 @@ async function factoryRuleEvaluationRun() {
|
|
|
9
9
|
titlePlural: RootConfig.entities.ruleEvaluationRun.titlePlural,
|
|
10
10
|
icon: RootConfig.entities.ruleEvaluationRun.icon,
|
|
11
11
|
i18nPrefix: '@rule-engine-management:runs.entities.rule-evaluation-run',
|
|
12
|
+
searchTags: [
|
|
13
|
+
'rule-evaluation-run',
|
|
14
|
+
'evaluation-run',
|
|
15
|
+
'rule-execution',
|
|
16
|
+
'simulate',
|
|
17
|
+
'facts',
|
|
18
|
+
'result',
|
|
19
|
+
'correlation-id',
|
|
20
|
+
'duration',
|
|
21
|
+
'اجرای ارزیابی',
|
|
22
|
+
'اجراهای ارزیابی',
|
|
23
|
+
'شبیهسازی',
|
|
24
|
+
'موتور قوانین',
|
|
25
|
+
],
|
|
12
26
|
fields: [
|
|
13
27
|
{ name: 'ruleSetId', titleKey: 'rule-set-id', required: true },
|
|
14
28
|
{ name: 'ruleSetVersion', titleKey: 'rule-set-version' },
|
|
@@ -24,4 +38,4 @@ async function factoryRuleEvaluationRun() {
|
|
|
24
38
|
}
|
|
25
39
|
|
|
26
40
|
export { factoryRuleEvaluationRun };
|
|
27
|
-
//# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-evaluation-run.entity-
|
|
41
|
+
//# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-evaluation-run.entity-D8ubGOt6.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-evaluation-run.entity-D8ubGOt6.mjs","sources":["../../../../libs/modules/rule-engine-management/contracts/src/entities/rule-evaluation-run/rule-evaluation-run.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 factoryRuleEvaluationRun(): Promise<AXPEntity | null> {\n return createSimpleCrudEntity({\n module: RootConfig.module.name,\n name: RootConfig.entities.ruleEvaluationRun.name,\n title: RootConfig.entities.ruleEvaluationRun.title,\n titlePlural: RootConfig.entities.ruleEvaluationRun.titlePlural,\n icon: RootConfig.entities.ruleEvaluationRun.icon,\n i18nPrefix: '@rule-engine-management:runs.entities.rule-evaluation-run',\n searchTags: [\n 'rule-evaluation-run',\n 'evaluation-run',\n 'rule-execution',\n 'simulate',\n 'facts',\n 'result',\n 'correlation-id',\n 'duration',\n 'اجرای ارزیابی',\n 'اجراهای ارزیابی',\n 'شبیهسازی',\n 'موتور قوانین',\n ],\n fields: [\n { name: 'ruleSetId', titleKey: 'rule-set-id', required: true },\n { name: 'ruleSetVersion', titleKey: 'rule-set-version' },\n { name: 'mode', titleKey: 'mode' },\n { name: 'passed', titleKey: 'passed', dataType: 'boolean' },\n { name: 'durationMs', titleKey: 'duration-ms', dataType: 'number' },\n { name: 'factsJson', titleKey: 'facts-json', largeText: true },\n { name: 'resultJson', titleKey: 'result-json', largeText: true },\n { name: 'correlationId', titleKey: 'correlation-id' },\n ],\n columns: ['ruleSetId', 'ruleSetVersion', 'mode', 'passed', 'durationMs'],\n });\n}\n"],"names":[],"mappings":";;;AAIO,eAAe,wBAAwB,GAAA;AAC5C,IAAA,OAAO,sBAAsB,CAAC;AAC5B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI;AAChD,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,KAAK;AAClD,QAAA,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,WAAW;AAC9D,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI;AAChD,QAAA,UAAU,EAAE,2DAA2D;AACvE,QAAA,UAAU,EAAE;YACV,qBAAqB;YACrB,gBAAgB;YAChB,gBAAgB;YAChB,UAAU;YACV,OAAO;YACP,QAAQ;YACR,gBAAgB;YAChB,UAAU;YACV,eAAe;YACf,iBAAiB;YACjB,WAAW;YACX,cAAc;AACf,SAAA;AACD,QAAA,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE;AAC9D,YAAA,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,kBAAkB,EAAE;AACxD,YAAA,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE;YAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE;YAC3D,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE;YACnE,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE;YAC9D,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,IAAI,EAAE;AAChE,YAAA,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,gBAAgB,EAAE;AACtD,SAAA;QACD,OAAO,EAAE,CAAC,WAAW,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,CAAC;AACzE,KAAA,CAAC;AACJ;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { c as createSimpleCrudEntity } from './acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-
|
|
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-B7JP329o.mjs';
|
|
2
|
+
import { c as createSimpleCrudEntity } from './acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-DSa7FHZ7.mjs';
|
|
3
3
|
|
|
4
4
|
async function factoryRuleSetVersion() {
|
|
5
5
|
return createSimpleCrudEntity({
|
|
@@ -9,6 +9,21 @@ async function factoryRuleSetVersion() {
|
|
|
9
9
|
titlePlural: RootConfig.entities.ruleSetVersion.titlePlural,
|
|
10
10
|
icon: RootConfig.entities.ruleSetVersion.icon,
|
|
11
11
|
i18nPrefix: '@rule-engine-management:versions.entities.rule-set-version',
|
|
12
|
+
searchTags: [
|
|
13
|
+
'rule-set-version',
|
|
14
|
+
'version',
|
|
15
|
+
'snapshot',
|
|
16
|
+
'publish',
|
|
17
|
+
'draft',
|
|
18
|
+
'release',
|
|
19
|
+
'rule-set',
|
|
20
|
+
'published-at',
|
|
21
|
+
'published-by',
|
|
22
|
+
'نسخه مجموعه قوانین',
|
|
23
|
+
'نسخههای مجموعه قوانین',
|
|
24
|
+
'انتشار',
|
|
25
|
+
'موتور قوانین',
|
|
26
|
+
],
|
|
12
27
|
fields: [
|
|
13
28
|
{ name: 'ruleSetId', titleKey: 'rule-set-id', required: true },
|
|
14
29
|
{ name: 'version', titleKey: 'version', required: true },
|
|
@@ -22,4 +37,4 @@ async function factoryRuleSetVersion() {
|
|
|
22
37
|
}
|
|
23
38
|
|
|
24
39
|
export { factoryRuleSetVersion };
|
|
25
|
-
//# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set-version.entity-
|
|
40
|
+
//# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set-version.entity-BppelLMG.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set-version.entity-BppelLMG.mjs","sources":["../../../../libs/modules/rule-engine-management/contracts/src/entities/rule-set-version/rule-set-version.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 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 searchTags: [\n 'rule-set-version',\n 'version',\n 'snapshot',\n 'publish',\n 'draft',\n 'release',\n 'rule-set',\n 'published-at',\n 'published-by',\n 'نسخه مجموعه قوانین',\n 'نسخههای مجموعه قوانین',\n 'انتشار',\n 'موتور قوانین',\n ],\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"],"names":[],"mappings":";;;AAIO,eAAe,qBAAqB,GAAA;AACzC,IAAA,OAAO,sBAAsB,CAAC;AAC5B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAC7C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,KAAK;AAC/C,QAAA,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,WAAW;AAC3D,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI;AAC7C,QAAA,UAAU,EAAE,4DAA4D;AACxE,QAAA,UAAU,EAAE;YACV,kBAAkB;YAClB,SAAS;YACT,UAAU;YACV,SAAS;YACT,OAAO;YACP,SAAS;YACT,UAAU;YACV,cAAc;YACd,cAAc;YACd,oBAAoB;YACpB,wBAAwB;YACxB,QAAQ;YACR,cAAc;AACf,SAAA;AACD,QAAA,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC9D,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE;YACxD,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;AACtD,YAAA,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;AACpF,YAAA,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,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;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
-
import { c as createSimpleCrudEntity } from './acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-
|
|
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-B7JP329o.mjs';
|
|
2
|
+
import { c as createSimpleCrudEntity } from './acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-entity-factory.util-DSa7FHZ7.mjs';
|
|
3
3
|
|
|
4
4
|
/** Registry key for RuleSet Simulate custom entity page (tab). */
|
|
5
5
|
const RULE_SET_SIMULATE_PAGE_COMPONENT_KEY = 'rule-set-simulate-page';
|
|
@@ -12,6 +12,21 @@ async function factoryRuleSet() {
|
|
|
12
12
|
titlePlural: RootConfig.entities.ruleSet.titlePlural,
|
|
13
13
|
icon: RootConfig.entities.ruleSet.icon,
|
|
14
14
|
i18nPrefix: '@rule-engine-management:rule-sets.entities.rule-set',
|
|
15
|
+
searchTags: [
|
|
16
|
+
'rule-set',
|
|
17
|
+
'rule-sets',
|
|
18
|
+
'business-rules',
|
|
19
|
+
'rules-pack',
|
|
20
|
+
'rule-engine',
|
|
21
|
+
'domain',
|
|
22
|
+
'version',
|
|
23
|
+
'hit-policy',
|
|
24
|
+
'publish',
|
|
25
|
+
'مجموعه قوانین',
|
|
26
|
+
'مجموعههای قوانین',
|
|
27
|
+
'موتور قوانین',
|
|
28
|
+
'شبیهسازی',
|
|
29
|
+
],
|
|
15
30
|
fields: [
|
|
16
31
|
{ name: 'name', titleKey: 'name', required: true },
|
|
17
32
|
{ name: 'domain', titleKey: 'domain', required: true },
|
|
@@ -37,4 +52,4 @@ async function factoryRuleSet() {
|
|
|
37
52
|
}
|
|
38
53
|
|
|
39
54
|
export { factoryRuleSet };
|
|
40
|
-
//# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set.entity-
|
|
55
|
+
//# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set.entity-D-7p65_D.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-set.entity-D-7p65_D.mjs","sources":["../../../../libs/modules/rule-engine-management/contracts/src/rule-set-simulate-page.component-key.ts","../../../../libs/modules/rule-engine-management/contracts/src/entities/rule-set/rule-set.entity.ts"],"sourcesContent":["/** Registry key for RuleSet Simulate custom entity page (tab). */\nexport const RULE_SET_SIMULATE_PAGE_COMPONENT_KEY = 'rule-set-simulate-page';\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 searchTags: [\n 'rule-set',\n 'rule-sets',\n 'business-rules',\n 'rules-pack',\n 'rule-engine',\n 'domain',\n 'version',\n 'hit-policy',\n 'publish',\n 'مجموعه قوانین',\n 'مجموعههای قوانین',\n 'موتور قوانین',\n 'شبیهسازی',\n ],\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: {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E,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,oBAAoB,EAAE;AAC5D,YAAA,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE;YACjD,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE;AAC9D,SAAA;QACD,OAAO,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,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;;"}
|
package/fesm2022/acorex-platform-module-rule-engine-management-client-contracts-entity-catalog.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { r as ruleEngineManagementLocalEntityCatalog } from './acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-
|
|
1
|
+
export { r as ruleEngineManagementLocalEntityCatalog } from './acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-B7JP329o.mjs';
|
|
2
2
|
//# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts-entity-catalog.mjs.map
|
|
@@ -98,6 +98,16 @@ const RootConfig = {
|
|
|
98
98
|
},
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
+
const RuleEngineManagementManifest = {
|
|
102
|
+
name: RootConfig.module.name,
|
|
103
|
+
version: '1.0.0',
|
|
104
|
+
title: RootConfig.module.title,
|
|
105
|
+
icon: RootConfig.module.icon,
|
|
106
|
+
i18n: RootConfig.config.i18n,
|
|
107
|
+
type: 'platform',
|
|
108
|
+
domain: 'platform',
|
|
109
|
+
};
|
|
110
|
+
|
|
101
111
|
/** Registry key for RuleSet Simulate custom entity page (tab). */
|
|
102
112
|
const RULE_SET_SIMULATE_PAGE_COMPONENT_KEY = 'rule-set-simulate-page';
|
|
103
113
|
|
|
@@ -105,5 +115,5 @@ const RULE_SET_SIMULATE_PAGE_COMPONENT_KEY = 'rule-set-simulate-page';
|
|
|
105
115
|
* Generated bundle index. Do not edit.
|
|
106
116
|
*/
|
|
107
117
|
|
|
108
|
-
export { AXMRuleEnginePermissionKeys, AXPAdministrationPermissionKeys, AXPRuleEngineManagementMenuKeys, RULE_SET_SIMULATE_PAGE_COMPONENT_KEY, RootConfig };
|
|
118
|
+
export { AXMRuleEnginePermissionKeys, AXPAdministrationPermissionKeys, AXPRuleEngineManagementMenuKeys, RULE_SET_SIMULATE_PAGE_COMPONENT_KEY, RootConfig, RuleEngineManagementManifest };
|
|
109
119
|
//# sourceMappingURL=acorex-platform-module-rule-engine-management-client-contracts.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-rule-engine-management-client-contracts.mjs","sources":["../../../../libs/modules/rule-engine-management/contracts/src/menu.keys.ts","../../../../libs/modules/rule-engine-management/contracts/src/permission.keys.ts","../../../../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/acorex-platform-module-rule-engine-management-client-contracts.ts"],"sourcesContent":["export const AXPRuleEngineManagementMenuKeys = {\n Root: 'rule-engine-management:menu',\n RuleSets: 'rule-engine-management:rule-sets',\n Rules: 'rule-engine-management:rules',\n Tables: 'rule-engine-management:tables',\n Versions: 'rule-engine-management:versions',\n Runs: 'rule-engine-management:runs',\n} as const;\n","/**\n * Administration capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPAdministrationPermissionKeys = {\n Access: 'Administration:Permission:Access',\n MaintainUsersAndRoles: 'Administration:Permission:MaintainUsersAndRoles',\n ManageSessions: 'Administration:Permission:ManageSessions',\n MaintainPolicies: 'Administration:Permission:MaintainPolicies',\n ViewIntegrations: 'Administration:Permission:ViewIntegrations',\n MaintainConnections: 'Administration:Permission:MaintainConnections',\n MaintainWorkflows: 'Administration:Permission:MaintainWorkflows',\n ManageWorkflowActions: 'Administration:Permission:ManageWorkflowActions',\n ViewRules: 'Administration:Permission:ViewRules',\n MaintainRules: 'Administration:Permission:MaintainRules',\n ManageRuleActions: 'Administration:Permission:ManageRuleActions',\n MaintainAi: 'Administration:Permission:MaintainAi',\n UseAiAssist: 'Administration:Permission:UseAiAssist',\n MaintainDashboards: 'Administration:Permission:MaintainDashboards',\n ViewJobs: 'Administration:Permission:ViewJobs',\n ManageJobActions: 'Administration:Permission:ManageJobActions',\n ViewObservability: 'Administration:Permission:ViewObservability',\n MaintainObservability: 'Administration:Permission:MaintainObservability',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPAdministrationPermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXMRuleEnginePermissionKeys = {\n RuleSet: {\n View: AXPAdministrationPermissionKeys.ViewRules,\n Manage: AXPAdministrationPermissionKeys.MaintainRules,\n Publish: AXPAdministrationPermissionKeys.ManageRuleActions,\n },\n Evaluate: {\n Run: AXPAdministrationPermissionKeys.ManageRuleActions,\n Simulate: AXPAdministrationPermissionKeys.ManageRuleActions,\n },\n} as const;\n","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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAO,MAAM,+BAA+B,GAAG;AAC7C,IAAA,IAAI,EAAE,6BAA6B;AACnC,IAAA,QAAQ,EAAE,kCAAkC;AAC5C,IAAA,KAAK,EAAE,8BAA8B;AACrC,IAAA,MAAM,EAAE,+BAA+B;AACvC,IAAA,QAAQ,EAAE,iCAAiC;AAC3C,IAAA,IAAI,EAAE,6BAA6B;;;ACNrC;;;AAGG;AACI,MAAM,+BAA+B,GAAG;AAC7C,IAAA,MAAM,EAAE,kCAAkC;AAC1C,IAAA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platform-module-rule-engine-management-client-contracts.mjs","sources":["../../../../libs/modules/rule-engine-management/contracts/src/menu.keys.ts","../../../../libs/modules/rule-engine-management/contracts/src/permission.keys.ts","../../../../libs/modules/rule-engine-management/contracts/src/root-config.ts","../../../../libs/modules/rule-engine-management/contracts/src/manifest.ts","../../../../libs/modules/rule-engine-management/contracts/src/rule-set-simulate-page.component-key.ts","../../../../libs/modules/rule-engine-management/contracts/src/acorex-platform-module-rule-engine-management-client-contracts.ts"],"sourcesContent":["export const AXPRuleEngineManagementMenuKeys = {\n Root: 'rule-engine-management:menu',\n RuleSets: 'rule-engine-management:rule-sets',\n Rules: 'rule-engine-management:rules',\n Tables: 'rule-engine-management:tables',\n Versions: 'rule-engine-management:versions',\n Runs: 'rule-engine-management:runs',\n} as const;\n","/**\n * Administration capabilities used by this module.\n * Domain capability keys for this module. Root groups live in `AXPCommonPermissionGroupKeys` (common contracts).\n */\nexport const AXPAdministrationPermissionKeys = {\n Access: 'Administration:Permission:Access',\n MaintainUsersAndRoles: 'Administration:Permission:MaintainUsersAndRoles',\n ManageSessions: 'Administration:Permission:ManageSessions',\n MaintainPolicies: 'Administration:Permission:MaintainPolicies',\n ViewIntegrations: 'Administration:Permission:ViewIntegrations',\n MaintainConnections: 'Administration:Permission:MaintainConnections',\n MaintainWorkflows: 'Administration:Permission:MaintainWorkflows',\n ManageWorkflowActions: 'Administration:Permission:ManageWorkflowActions',\n ViewRules: 'Administration:Permission:ViewRules',\n MaintainRules: 'Administration:Permission:MaintainRules',\n ManageRuleActions: 'Administration:Permission:ManageRuleActions',\n MaintainAi: 'Administration:Permission:MaintainAi',\n UseAiAssist: 'Administration:Permission:UseAiAssist',\n MaintainDashboards: 'Administration:Permission:MaintainDashboards',\n ViewJobs: 'Administration:Permission:ViewJobs',\n ManageJobActions: 'Administration:Permission:ManageJobActions',\n ViewObservability: 'Administration:Permission:ViewObservability',\n MaintainObservability: 'Administration:Permission:MaintainObservability',\n} as const;\n\n/**\n * @deprecated Prefer {@link AXPAdministrationPermissionKeys}.\n * Legacy nested shape kept so existing imports compile during migration.\n */\nexport const AXMRuleEnginePermissionKeys = {\n RuleSet: {\n View: AXPAdministrationPermissionKeys.ViewRules,\n Manage: AXPAdministrationPermissionKeys.MaintainRules,\n Publish: AXPAdministrationPermissionKeys.ManageRuleActions,\n },\n Evaluate: {\n Run: AXPAdministrationPermissionKeys.ManageRuleActions,\n Simulate: AXPAdministrationPermissionKeys.ManageRuleActions,\n },\n} as const;\n","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","\nimport { AXPModuleManifest } from '@acorex-platform/framework-shared/core';\nimport { RootConfig } from './root-config';\n\nexport const RuleEngineManagementManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'platform',\n domain: 'platform',\n};\n","/** Registry key for RuleSet Simulate custom entity page (tab). */\nexport const RULE_SET_SIMULATE_PAGE_COMPONENT_KEY = 'rule-set-simulate-page';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAO,MAAM,+BAA+B,GAAG;AAC7C,IAAA,IAAI,EAAE,6BAA6B;AACnC,IAAA,QAAQ,EAAE,kCAAkC;AAC5C,IAAA,KAAK,EAAE,8BAA8B;AACrC,IAAA,MAAM,EAAE,+BAA+B;AACvC,IAAA,QAAQ,EAAE,iCAAiC;AAC3C,IAAA,IAAI,EAAE,6BAA6B;;;ACNrC;;;AAGG;AACI,MAAM,+BAA+B,GAAG;AAC7C,IAAA,MAAM,EAAE,kCAAkC;AAC1C,IAAA,qBAAqB,EAAE,iDAAiD;AACxE,IAAA,cAAc,EAAE,0CAA0C;AAC1D,IAAA,gBAAgB,EAAE,4CAA4C;AAC9D,IAAA,gBAAgB,EAAE,4CAA4C;AAC9D,IAAA,mBAAmB,EAAE,+CAA+C;AACpE,IAAA,iBAAiB,EAAE,6CAA6C;AAChE,IAAA,qBAAqB,EAAE,iDAAiD;AACxE,IAAA,SAAS,EAAE,qCAAqC;AAChD,IAAA,aAAa,EAAE,yCAAyC;AACxD,IAAA,iBAAiB,EAAE,6CAA6C;AAChE,IAAA,UAAU,EAAE,sCAAsC;AAClD,IAAA,WAAW,EAAE,uCAAuC;AACpD,IAAA,kBAAkB,EAAE,8CAA8C;AAClE,IAAA,QAAQ,EAAE,oCAAoC;AAC9C,IAAA,gBAAgB,EAAE,4CAA4C;AAC9D,IAAA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ework-client/common';
|
|
3
|
-
import {
|
|
3
|
+
import { provideLazyProvider } from '@acorex-platform/framework-client/core';
|
|
4
4
|
import { AXP_PAGE_COMPONENT_PROVIDER } from '@acorex-platform/framework-client/layout/components';
|
|
5
5
|
import { AXCRuleEngineManagementApiModule, AXCRuleEngineManagementApiService } from '@acorex-platform/module-gateway/rule-engine-management';
|
|
6
6
|
import * as i0 from '@angular/core';
|
|
7
7
|
import { inject, Injectable, NgModule, input, signal, computed, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
8
|
-
import { RootConfig, AXPAdministrationPermissionKeys, AXPRuleEngineManagementMenuKeys, RULE_SET_SIMULATE_PAGE_COMPONENT_KEY } from '@acorex-platform/module-rule-engine-management-client/contracts';
|
|
9
8
|
import { AXPCommonMenuKeys, AXPCommonPermissionGroupKeys } from '@acorex-platform/module-common-client/contracts';
|
|
10
9
|
import { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';
|
|
11
10
|
import { firstValueFrom } from 'rxjs';
|
|
11
|
+
import { RootConfig, AXPAdministrationPermissionKeys, AXPRuleEngineManagementMenuKeys, RULE_SET_SIMULATE_PAGE_COMPONENT_KEY } from '@acorex-platform/module-rule-engine-management-client/contracts';
|
|
12
|
+
export { RuleEngineManagementManifest } from '@acorex-platform/module-rule-engine-management-client/contracts';
|
|
12
13
|
import { AXPPageLayoutBaseComponent, AXPPageLayoutBase } from '@acorex-platform/framework-client/layout/views';
|
|
13
14
|
import * as i2 from '@acorex/components/button';
|
|
14
15
|
import { AXButtonModule } from '@acorex/components/button';
|
|
@@ -27,16 +28,6 @@ import { CommonModule, AsyncPipe } from '@angular/common';
|
|
|
27
28
|
import * as i1 from '@angular/forms';
|
|
28
29
|
import { FormsModule } from '@angular/forms';
|
|
29
30
|
|
|
30
|
-
const RuleEngineManagementManifest = {
|
|
31
|
-
name: RootConfig.module.name,
|
|
32
|
-
version: '1.0.0',
|
|
33
|
-
title: RootConfig.module.title,
|
|
34
|
-
icon: RootConfig.module.icon,
|
|
35
|
-
i18n: RootConfig.config.i18n,
|
|
36
|
-
type: 'platform',
|
|
37
|
-
domain: 'platform',
|
|
38
|
-
};
|
|
39
|
-
|
|
40
31
|
class AXMRuleEngineManagementMenuProvider {
|
|
41
32
|
constructor() {
|
|
42
33
|
this.entityService = inject(AXPEntityService);
|
|
@@ -151,11 +142,6 @@ class AXMRuleEngineManagementModule {
|
|
|
151
142
|
useClass: AXMRuleEngineManagementPermissionProvider,
|
|
152
143
|
multi: true,
|
|
153
144
|
},
|
|
154
|
-
{
|
|
155
|
-
provide: AXP_MODULE_MANIFEST_PROVIDER,
|
|
156
|
-
useValue: RuleEngineManagementManifest,
|
|
157
|
-
multi: true,
|
|
158
|
-
},
|
|
159
145
|
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => Promise.resolve().then(function () { return index; }).then((m) => m.AXMRuleSetSimulatePageComponentProvider)),
|
|
160
146
|
], imports: [AXCRuleEngineManagementApiModule] }); }
|
|
161
147
|
}
|
|
@@ -174,11 +160,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
174
160
|
useClass: AXMRuleEngineManagementPermissionProvider,
|
|
175
161
|
multi: true,
|
|
176
162
|
},
|
|
177
|
-
{
|
|
178
|
-
provide: AXP_MODULE_MANIFEST_PROVIDER,
|
|
179
|
-
useValue: RuleEngineManagementManifest,
|
|
180
|
-
multi: true,
|
|
181
|
-
},
|
|
182
163
|
provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => Promise.resolve().then(function () { return index; }).then((m) => m.AXMRuleSetSimulatePageComponentProvider)),
|
|
183
164
|
],
|
|
184
165
|
}]
|
|
@@ -324,5 +305,5 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
324
305
|
* Generated bundle index. Do not edit.
|
|
325
306
|
*/
|
|
326
307
|
|
|
327
|
-
export { AXMRuleEngineManagementMenuProvider, AXMRuleEngineManagementModule, AXMRuleEngineManagementPermissionProvider, AXMRuleSetSimulatePageComponent, AXMRuleSetSimulatePageComponentProvider
|
|
308
|
+
export { AXMRuleEngineManagementMenuProvider, AXMRuleEngineManagementModule, AXMRuleEngineManagementPermissionProvider, AXMRuleSetSimulatePageComponent, AXMRuleSetSimulatePageComponentProvider };
|
|
328
309
|
//# sourceMappingURL=acorex-platform-module-rule-engine-management-client.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-rule-engine-management-client.mjs","sources":["../../../../libs/modules/rule-engine-management/client/src/lib/manifest.ts","../../../../libs/modules/rule-engine-management/client/src/lib/menu.provider.ts","../../../../libs/modules/rule-engine-management/client/src/lib/permission-definition.provider.ts","../../../../libs/modules/rule-engine-management/client/src/lib/rule-engine-management.module.ts","../../../../libs/modules/rule-engine-management/client/src/lib/features/simulate/rule-set-simulate-page-component.provider.ts","../../../../libs/modules/rule-engine-management/client/src/lib/features/simulate/rule-set-simulate-page.component.ts","../../../../libs/modules/rule-engine-management/client/src/lib/features/simulate/rule-set-simulate-page.component.html","../../../../libs/modules/rule-engine-management/client/src/acorex-platform-module-rule-engine-management-client.ts"],"sourcesContent":["import { AXPModuleManifest } from '@acorex-platform/framework-client/core';\nimport { RootConfig } from '@acorex-platform/module-rule-engine-management-client/contracts';\n\nexport const RuleEngineManagementManifest: AXPModuleManifest = {\n name: RootConfig.module.name,\n version: '1.0.0',\n title: RootConfig.module.title,\n icon: RootConfig.module.icon,\n i18n: RootConfig.config.i18n,\n type: 'platform',\n domain: 'platform',\n};\n","import { AXPCommonMenuKeys } from '@acorex-platform/module-common-client/contracts';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { inject } from '@angular/core';\nimport { firstValueFrom } from 'rxjs';\nimport {\n AXPAdministrationPermissionKeys,\n AXPRuleEngineManagementMenuKeys,\n RootConfig,\n} from '@acorex-platform/module-rule-engine-management-client/contracts';\n\nexport class AXMRuleEngineManagementMenuProvider implements AXPMenuProvider {\n private entityService = inject(AXPEntityService);\n private sessionService = inject(AXPSessionService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const isAuthorized = await firstValueFrom(this.sessionService.isAuthorized$);\n if (!isAuthorized) {\n return;\n }\n\n const module = RootConfig.module;\n const viewRulesPolicy = {\n features: [module.name],\n permissions: [AXPAdministrationPermissionKeys.ViewRules],\n };\n\n context.find(AXPCommonMenuKeys.Administration).addItems([\n {\n name: AXPRuleEngineManagementMenuKeys.Root,\n priority: 15,\n text: '@rule-engine-management:module.menus.root.title',\n icon: module.icon,\n type: 'menu',\n policy: viewRulesPolicy,\n children: [],\n },\n ]);\n\n context.find(AXPRuleEngineManagementMenuKeys.Root).addItems([\n {\n name: AXPRuleEngineManagementMenuKeys.RuleSets,\n text: '@rule-engine-management:rule-sets.menus.rule-sets.title',\n path: this.entityService.createPath(module.name, RootConfig.entities.ruleSet.name),\n priority: 1,\n icon: RootConfig.entities.ruleSet.icon,\n policy: viewRulesPolicy,\n },\n {\n name: AXPRuleEngineManagementMenuKeys.Rules,\n text: '@rule-engine-management:rules.menus.rules.title',\n path: this.entityService.createPath(module.name, RootConfig.entities.ruleDefinition.name),\n priority: 2,\n icon: RootConfig.entities.ruleDefinition.icon,\n policy: viewRulesPolicy,\n },\n {\n name: AXPRuleEngineManagementMenuKeys.Tables,\n text: '@rule-engine-management:tables.menus.tables.title',\n path: this.entityService.createPath(module.name, RootConfig.entities.decisionTable.name),\n priority: 3,\n icon: RootConfig.entities.decisionTable.icon,\n policy: viewRulesPolicy,\n },\n {\n name: AXPRuleEngineManagementMenuKeys.Versions,\n text: '@rule-engine-management:versions.menus.versions.title',\n path: this.entityService.createPath(module.name, RootConfig.entities.ruleSetVersion.name),\n priority: 4,\n icon: RootConfig.entities.ruleSetVersion.icon,\n policy: viewRulesPolicy,\n },\n {\n name: AXPRuleEngineManagementMenuKeys.Runs,\n text: '@rule-engine-management:runs.menus.runs.title',\n path: this.entityService.createPath(module.name, RootConfig.entities.ruleEvaluationRun.name),\n priority: 5,\n icon: RootConfig.entities.ruleEvaluationRun.icon,\n policy: viewRulesPolicy,\n },\n ]);\n }\n}\n","//#region ---- Imports ----\n\nimport {\n AXPPermissionDefinitionProvider,\n AXPPermissionDefinitionProviderContext,\n} from '@acorex-platform/framework-client/auth';\nimport { AXPCommonPermissionGroupKeys } from '@acorex-platform/module-common-client/contracts';\nimport { AXPAdministrationPermissionKeys } from '@acorex-platform/module-rule-engine-management-client/contracts';\nimport { Injectable } from '@angular/core';\n\n//#endregion\n\n//#region ---- Permission Definition Provider ----\n\n/**\n * Registers Rules section capabilities under Administration.\n */\n@Injectable()\nexport class AXMRuleEngineManagementPermissionProvider implements AXPPermissionDefinitionProvider {\n async define(context: AXPPermissionDefinitionProviderContext): Promise<void> {\n const keys = AXPAdministrationPermissionKeys;\n const groups = AXPCommonPermissionGroupKeys;\n const P = '@common:administration.permissions';\n const G = '@common:permission-groups';\n\n context.addGroup(groups.Administration.Root, `${G}.administration.title`, `${G}.administration.description`, { order: 120 });\n\n context\n .addGroup(\n groups.Administration.Rules,\n `${G}.administration-rules.title`,\n `${G}.administration-rules.description`,\n { parent: groups.Administration.Root, order: 40 },\n )\n .addPermission(keys.ViewRules, `${P}.view-rules.title`, `${P}.view-rules.description`)\n .endPermission()\n .addPermission(keys.MaintainRules, `${P}.maintain-rules.title`, `${P}.maintain-rules.description`)\n .endPermission()\n .addPermission(keys.ManageRuleActions, `${P}.manage-rule-actions.title`, `${P}.manage-rule-actions.description`)\n .endPermission()\n .endGroup();\n }\n}\n\n//#endregion\n","import { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport { AXP_MENU_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { AXP_MODULE_MANIFEST_PROVIDER, provideLazyProvider } from '@acorex-platform/framework-client/core';\nimport { AXP_PAGE_COMPONENT_PROVIDER } from '@acorex-platform/framework-client/layout/components';\nimport { AXCRuleEngineManagementApiModule } from '@acorex-platform/module-gateway/rule-engine-management';\nimport { NgModule } from '@angular/core';\n\nimport { RuleEngineManagementManifest } from './manifest';\nimport { AXMRuleEngineManagementMenuProvider } from './menu.provider';\nimport { AXMRuleEngineManagementPermissionProvider } from './permission-definition.provider';\n\n@NgModule({\n imports: [AXCRuleEngineManagementApiModule],\n providers: [\n \n {\n provide: AXP_MENU_PROVIDER,\n useClass: AXMRuleEngineManagementMenuProvider,\n multi: true,\n },\n {\n provide: AXP_PERMISSION_DEFINITION_PROVIDER,\n useClass: AXMRuleEngineManagementPermissionProvider,\n multi: true,\n },\n {\n provide: AXP_MODULE_MANIFEST_PROVIDER,\n useValue: RuleEngineManagementManifest,\n multi: true,\n },\n provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () =>\n import('./features/simulate').then((m) => m.AXMRuleSetSimulatePageComponentProvider),\n ),\n ],\n})\nexport class AXMRuleEngineManagementModule {}\n","import { AXPPageComponentDefinition, AXPPageComponentProvider } from '@acorex-platform/framework-client/layout/components';\nimport { RULE_SET_SIMULATE_PAGE_COMPONENT_KEY } from '@acorex-platform/module-rule-engine-management-client/contracts';\nimport { Injectable } from '@angular/core';\n\n//#region ---- RuleSet Simulate page provider ----\n\n@Injectable()\nexport class AXMRuleSetSimulatePageComponentProvider implements AXPPageComponentProvider {\n async components(): Promise<AXPPageComponentDefinition[]> {\n return [\n {\n key: RULE_SET_SIMULATE_PAGE_COMPONENT_KEY,\n loader: () =>\n import('./rule-set-simulate-page.component').then(\n (m) => m.AXMRuleSetSimulatePageComponent,\n ),\n },\n ];\n }\n}\n\n//#endregion\n","import { AXCRuleEngineManagementApiService } from '@acorex-platform/module-gateway/rule-engine-management';\nimport {\n AXPPageLayoutBase,\n AXPPageLayoutBaseComponent,\n} from '@acorex-platform/framework-client/layout/views';\nimport type { AXPRuleDecisionResult } from '@acorex-platform/framework-shared/rule-engine';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXTextAreaModule } from '@acorex/components/text-area';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AsyncPipe, CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n//#region ---- RuleSet Simulate entity page (tab) ----\n\n/**\n * Custom RuleSet detail tab — same hosting pattern as workflow Activities.\n * Shell/chrome comes from entity detail; content uses Acorex controls only.\n */\n@Component({\n selector: 'axm-rule-set-simulate-page',\n standalone: true,\n imports: [\n CommonModule,\n AsyncPipe,\n FormsModule,\n AXButtonModule,\n AXDecoratorModule,\n AXFormModule,\n AXLabelModule,\n AXTextAreaModule,\n AXTranslationModule,\n ],\n templateUrl: './rule-set-simulate-page.component.html',\n styleUrl: './rule-set-simulate-page.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: AXPPageLayoutBase,\n useExisting: AXMRuleSetSimulatePageComponent,\n },\n ],\n})\nexport class AXMRuleSetSimulatePageComponent extends AXPPageLayoutBaseComponent {\n private readonly api = inject(AXCRuleEngineManagementApiService);\n\n /** Entity record from detail host. */\n rootContext = input<Record<string, unknown>>();\n pageConfig = input<Record<string, unknown>>();\n\n protected readonly factsJson = signal(\n JSON.stringify({ estimateHours: 10, spentHours: 13.1 }, null, 2),\n );\n protected readonly resultJson = signal('');\n protected readonly busy = signal(false);\n protected readonly error = signal('');\n\n protected readonly ruleSetKey = computed(() => {\n const ctx = this.rootContext() ?? {};\n const name = typeof ctx['name'] === 'string' ? ctx['name'].trim() : '';\n if (name) {\n return name;\n }\n const id = typeof ctx['id'] === 'string' ? ctx['id'].trim() : '';\n return id;\n });\n\n protected readonly ruleSetMeta = computed(() => {\n const ctx = this.rootContext() ?? {};\n const version = typeof ctx['version'] === 'string' ? ctx['version'] : '';\n const domain = typeof ctx['domain'] === 'string' ? ctx['domain'] : '';\n return { version, domain };\n });\n\n #lastSeededKey: string | null = null;\n #seedFactsByDomain = effect(() => {\n const key = this.ruleSetKey();\n const domain = this.ruleSetMeta().domain;\n if (!key || key === this.#lastSeededKey || domain !== 'code') {\n return;\n }\n this.#lastSeededKey = key;\n this.factsJson.set(\n JSON.stringify(\n {\n filePath: 'libs/modules/app/contracts/src/entities/sample/sample.entity.ts',\n sourceText: 'export async function sampleEntityFactory() { return {}; }',\n },\n null,\n 2,\n ),\n );\n });\n\n protected onFactsChange(value: string | null | undefined): void {\n this.factsJson.set(value ?? '');\n }\n\n protected async runSimulate(): Promise<void> {\n const ruleSetId = this.ruleSetKey();\n if (!ruleSetId) {\n this.error.set('Rule set name is required');\n return;\n }\n\n this.busy.set(true);\n this.error.set('');\n try {\n const facts = JSON.parse(this.factsJson()) as Record<string, unknown>;\n const result: AXPRuleDecisionResult = await this.api.simulate(ruleSetId, facts);\n this.resultJson.set(JSON.stringify(result, null, 2));\n } catch (e) {\n this.error.set(e instanceof Error ? e.message : String(e));\n this.resultJson.set('');\n } finally {\n this.busy.set(false);\n }\n }\n}\n\n//#endregion\n","<div class=\"axm-rule-set-simulate flex flex-col gap-4 p-4\">\n <div class=\"flex flex-col gap-1\">\n <ax-label>\n {{ '@rule-engine-management:simulate.fields.rule-set' | translate | async }}\n </ax-label>\n <div class=\"axm-rule-set-simulate__meta text-sm\">\n <span class=\"font-medium\">{{ ruleSetKey() || '—' }}</span>\n @if (ruleSetMeta().version) {\n <span class=\"text-muted\">@{{ ruleSetMeta().version }}</span>\n }\n @if (ruleSetMeta().domain) {\n <span class=\"text-muted\">({{ ruleSetMeta().domain }})</span>\n }\n </div>\n </div>\n\n <ax-form-field>\n <ax-label>\n {{ '@rule-engine-management:simulate.fields.facts-json' | translate | async }}\n </ax-label>\n <ax-text-area\n class=\"axm-rule-set-simulate__facts\"\n [ngModel]=\"factsJson()\"\n (ngModelChange)=\"onFactsChange($event)\"\n [rows]=\"12\"\n [look]=\"'outline'\"\n ></ax-text-area>\n </ax-form-field>\n\n <div class=\"flex items-center gap-2\">\n <ax-button\n [color]=\"'primary'\"\n [disabled]=\"busy() || !ruleSetKey()\"\n [text]=\"('@rule-engine-management:simulate.actions.run' | translate | async) || 'Run Simulate'\"\n (onClick)=\"runSimulate()\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-play\"></ax-icon>\n </ax-prefix>\n </ax-button>\n </div>\n\n @if (error()) {\n <div class=\"axm-rule-set-simulate__error p-3 rounded\">\n <ax-label class=\"text-danger\">{{ error() }}</ax-label>\n </div>\n }\n\n @if (resultJson()) {\n <div class=\"flex flex-col gap-1\">\n <ax-label>\n {{ '@rule-engine-management:simulate.fields.result' | translate | async }}\n </ax-label>\n <pre class=\"axm-rule-set-simulate__result p-3 rounded\">{{ resultJson() }}</pre>\n </div>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGO,MAAM,4BAA4B,GAAsB;AAC7D,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AAC9B,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC5B,IAAA,IAAI,EAAE,UAAU;AAChB,IAAA,MAAM,EAAE,UAAU;;;MCEP,mCAAmC,CAAA;AAAhD,IAAA,WAAA,GAAA;AACU,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC;IAqEpD;IAnEE,MAAM,OAAO,CAAC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,EAAA,UAAA,EAAA,IAAA,EACZ,aAAa,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,KAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACb,gBAAgB,kaAChB,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAYV,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAxB3C,SAAS;+BACE,4BAA4B,EAAA,UAAA,EAC1B,IAAI,EAAA,OAAA,EACP;wBACP,YAAY;wBACZ,SAAS;wBACT,WAAW;wBACX,cAAc;wBACd,iBAAiB;wBACjB,YAAY;wBACZ,aAAa;wBACb,gBAAgB;wBAChB,mBAAmB;qBACpB,EAAA,eAAA,EAGgB,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAA,+BAAiC;AAC7C,yBAAA;AACF,qBAAA,EAAA,QAAA,EAAA,i0DAAA,EAAA,MAAA,EAAA,CAAA,ijBAAA,CAAA,EAAA;;;;;;;;;;;;;;AEpDH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-rule-engine-management-client.mjs","sources":["../../../../libs/modules/rule-engine-management/client/src/lib/menu.provider.ts","../../../../libs/modules/rule-engine-management/client/src/lib/permission-definition.provider.ts","../../../../libs/modules/rule-engine-management/client/src/lib/rule-engine-management.module.ts","../../../../libs/modules/rule-engine-management/client/src/lib/features/simulate/rule-set-simulate-page-component.provider.ts","../../../../libs/modules/rule-engine-management/client/src/lib/features/simulate/rule-set-simulate-page.component.ts","../../../../libs/modules/rule-engine-management/client/src/lib/features/simulate/rule-set-simulate-page.component.html","../../../../libs/modules/rule-engine-management/client/src/acorex-platform-module-rule-engine-management-client.ts"],"sourcesContent":["import { AXPCommonMenuKeys } from '@acorex-platform/module-common-client/contracts';\nimport { AXPSessionService } from '@acorex-platform/framework-client/auth';\nimport { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';\nimport { AXPEntityService } from '@acorex-platform/framework-client/layout/entity';\nimport { inject } from '@angular/core';\nimport { firstValueFrom } from 'rxjs';\nimport {\n AXPAdministrationPermissionKeys,\n AXPRuleEngineManagementMenuKeys,\n RootConfig,\n} from '@acorex-platform/module-rule-engine-management-client/contracts';\n\nexport class AXMRuleEngineManagementMenuProvider implements AXPMenuProvider {\n private entityService = inject(AXPEntityService);\n private sessionService = inject(AXPSessionService);\n\n async provide(context: AXPMenuProviderContext): Promise<void> {\n const isAuthorized = await firstValueFrom(this.sessionService.isAuthorized$);\n if (!isAuthorized) {\n return;\n }\n\n const module = RootConfig.module;\n const viewRulesPolicy = {\n features: [module.name],\n permissions: [AXPAdministrationPermissionKeys.ViewRules],\n };\n\n context.find(AXPCommonMenuKeys.Administration).addItems([\n {\n name: AXPRuleEngineManagementMenuKeys.Root,\n priority: 15,\n text: '@rule-engine-management:module.menus.root.title',\n icon: module.icon,\n type: 'menu',\n policy: viewRulesPolicy,\n children: [],\n },\n ]);\n\n context.find(AXPRuleEngineManagementMenuKeys.Root).addItems([\n {\n name: AXPRuleEngineManagementMenuKeys.RuleSets,\n text: '@rule-engine-management:rule-sets.menus.rule-sets.title',\n path: this.entityService.createPath(module.name, RootConfig.entities.ruleSet.name),\n priority: 1,\n icon: RootConfig.entities.ruleSet.icon,\n policy: viewRulesPolicy,\n },\n {\n name: AXPRuleEngineManagementMenuKeys.Rules,\n text: '@rule-engine-management:rules.menus.rules.title',\n path: this.entityService.createPath(module.name, RootConfig.entities.ruleDefinition.name),\n priority: 2,\n icon: RootConfig.entities.ruleDefinition.icon,\n policy: viewRulesPolicy,\n },\n {\n name: AXPRuleEngineManagementMenuKeys.Tables,\n text: '@rule-engine-management:tables.menus.tables.title',\n path: this.entityService.createPath(module.name, RootConfig.entities.decisionTable.name),\n priority: 3,\n icon: RootConfig.entities.decisionTable.icon,\n policy: viewRulesPolicy,\n },\n {\n name: AXPRuleEngineManagementMenuKeys.Versions,\n text: '@rule-engine-management:versions.menus.versions.title',\n path: this.entityService.createPath(module.name, RootConfig.entities.ruleSetVersion.name),\n priority: 4,\n icon: RootConfig.entities.ruleSetVersion.icon,\n policy: viewRulesPolicy,\n },\n {\n name: AXPRuleEngineManagementMenuKeys.Runs,\n text: '@rule-engine-management:runs.menus.runs.title',\n path: this.entityService.createPath(module.name, RootConfig.entities.ruleEvaluationRun.name),\n priority: 5,\n icon: RootConfig.entities.ruleEvaluationRun.icon,\n policy: viewRulesPolicy,\n },\n ]);\n }\n}\n","//#region ---- Imports ----\n\nimport {\n AXPPermissionDefinitionProvider,\n AXPPermissionDefinitionProviderContext,\n} from '@acorex-platform/framework-client/auth';\nimport { AXPCommonPermissionGroupKeys } from '@acorex-platform/module-common-client/contracts';\nimport { AXPAdministrationPermissionKeys } from '@acorex-platform/module-rule-engine-management-client/contracts';\nimport { Injectable } from '@angular/core';\n\n//#endregion\n\n//#region ---- Permission Definition Provider ----\n\n/**\n * Registers Rules section capabilities under Administration.\n */\n@Injectable()\nexport class AXMRuleEngineManagementPermissionProvider implements AXPPermissionDefinitionProvider {\n async define(context: AXPPermissionDefinitionProviderContext): Promise<void> {\n const keys = AXPAdministrationPermissionKeys;\n const groups = AXPCommonPermissionGroupKeys;\n const P = '@common:administration.permissions';\n const G = '@common:permission-groups';\n\n context.addGroup(groups.Administration.Root, `${G}.administration.title`, `${G}.administration.description`, { order: 120 });\n\n context\n .addGroup(\n groups.Administration.Rules,\n `${G}.administration-rules.title`,\n `${G}.administration-rules.description`,\n { parent: groups.Administration.Root, order: 40 },\n )\n .addPermission(keys.ViewRules, `${P}.view-rules.title`, `${P}.view-rules.description`)\n .endPermission()\n .addPermission(keys.MaintainRules, `${P}.maintain-rules.title`, `${P}.maintain-rules.description`)\n .endPermission()\n .addPermission(keys.ManageRuleActions, `${P}.manage-rule-actions.title`, `${P}.manage-rule-actions.description`)\n .endPermission()\n .endGroup();\n }\n}\n\n//#endregion\n","import { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';\nimport { AXP_MENU_PROVIDER } from '@acorex-platform/framework-client/common';\nimport { provideLazyProvider } from '@acorex-platform/framework-client/core';\nimport { AXP_PAGE_COMPONENT_PROVIDER } from '@acorex-platform/framework-client/layout/components';\nimport { AXCRuleEngineManagementApiModule } from '@acorex-platform/module-gateway/rule-engine-management';\nimport { NgModule } from '@angular/core';\n\nimport { AXMRuleEngineManagementMenuProvider } from './menu.provider';\nimport { AXMRuleEngineManagementPermissionProvider } from './permission-definition.provider';\n\n@NgModule({\n imports: [AXCRuleEngineManagementApiModule],\n providers: [\n \n {\n provide: AXP_MENU_PROVIDER,\n useClass: AXMRuleEngineManagementMenuProvider,\n multi: true,\n },\n {\n provide: AXP_PERMISSION_DEFINITION_PROVIDER,\n useClass: AXMRuleEngineManagementPermissionProvider,\n multi: true,\n },\n provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () =>\n import('./features/simulate').then((m) => m.AXMRuleSetSimulatePageComponentProvider),\n ),\n ],\n})\nexport class AXMRuleEngineManagementModule {}\n","import { AXPPageComponentDefinition, AXPPageComponentProvider } from '@acorex-platform/framework-client/layout/components';\nimport { RULE_SET_SIMULATE_PAGE_COMPONENT_KEY } from '@acorex-platform/module-rule-engine-management-client/contracts';\nimport { Injectable } from '@angular/core';\n\n//#region ---- RuleSet Simulate page provider ----\n\n@Injectable()\nexport class AXMRuleSetSimulatePageComponentProvider implements AXPPageComponentProvider {\n async components(): Promise<AXPPageComponentDefinition[]> {\n return [\n {\n key: RULE_SET_SIMULATE_PAGE_COMPONENT_KEY,\n loader: () =>\n import('./rule-set-simulate-page.component').then(\n (m) => m.AXMRuleSetSimulatePageComponent,\n ),\n },\n ];\n }\n}\n\n//#endregion\n","import { AXCRuleEngineManagementApiService } from '@acorex-platform/module-gateway/rule-engine-management';\nimport {\n AXPPageLayoutBase,\n AXPPageLayoutBaseComponent,\n} from '@acorex-platform/framework-client/layout/views';\nimport type { AXPRuleDecisionResult } from '@acorex-platform/framework-shared/rule-engine';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXTextAreaModule } from '@acorex/components/text-area';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AsyncPipe, CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n//#region ---- RuleSet Simulate entity page (tab) ----\n\n/**\n * Custom RuleSet detail tab — same hosting pattern as workflow Activities.\n * Shell/chrome comes from entity detail; content uses Acorex controls only.\n */\n@Component({\n selector: 'axm-rule-set-simulate-page',\n standalone: true,\n imports: [\n CommonModule,\n AsyncPipe,\n FormsModule,\n AXButtonModule,\n AXDecoratorModule,\n AXFormModule,\n AXLabelModule,\n AXTextAreaModule,\n AXTranslationModule,\n ],\n templateUrl: './rule-set-simulate-page.component.html',\n styleUrl: './rule-set-simulate-page.component.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: AXPPageLayoutBase,\n useExisting: AXMRuleSetSimulatePageComponent,\n },\n ],\n})\nexport class AXMRuleSetSimulatePageComponent extends AXPPageLayoutBaseComponent {\n private readonly api = inject(AXCRuleEngineManagementApiService);\n\n /** Entity record from detail host. */\n rootContext = input<Record<string, unknown>>();\n pageConfig = input<Record<string, unknown>>();\n\n protected readonly factsJson = signal(\n JSON.stringify({ estimateHours: 10, spentHours: 13.1 }, null, 2),\n );\n protected readonly resultJson = signal('');\n protected readonly busy = signal(false);\n protected readonly error = signal('');\n\n protected readonly ruleSetKey = computed(() => {\n const ctx = this.rootContext() ?? {};\n const name = typeof ctx['name'] === 'string' ? ctx['name'].trim() : '';\n if (name) {\n return name;\n }\n const id = typeof ctx['id'] === 'string' ? ctx['id'].trim() : '';\n return id;\n });\n\n protected readonly ruleSetMeta = computed(() => {\n const ctx = this.rootContext() ?? {};\n const version = typeof ctx['version'] === 'string' ? ctx['version'] : '';\n const domain = typeof ctx['domain'] === 'string' ? ctx['domain'] : '';\n return { version, domain };\n });\n\n #lastSeededKey: string | null = null;\n #seedFactsByDomain = effect(() => {\n const key = this.ruleSetKey();\n const domain = this.ruleSetMeta().domain;\n if (!key || key === this.#lastSeededKey || domain !== 'code') {\n return;\n }\n this.#lastSeededKey = key;\n this.factsJson.set(\n JSON.stringify(\n {\n filePath: 'libs/modules/app/contracts/src/entities/sample/sample.entity.ts',\n sourceText: 'export async function sampleEntityFactory() { return {}; }',\n },\n null,\n 2,\n ),\n );\n });\n\n protected onFactsChange(value: string | null | undefined): void {\n this.factsJson.set(value ?? '');\n }\n\n protected async runSimulate(): Promise<void> {\n const ruleSetId = this.ruleSetKey();\n if (!ruleSetId) {\n this.error.set('Rule set name is required');\n return;\n }\n\n this.busy.set(true);\n this.error.set('');\n try {\n const facts = JSON.parse(this.factsJson()) as Record<string, unknown>;\n const result: AXPRuleDecisionResult = await this.api.simulate(ruleSetId, facts);\n this.resultJson.set(JSON.stringify(result, null, 2));\n } catch (e) {\n this.error.set(e instanceof Error ? e.message : String(e));\n this.resultJson.set('');\n } finally {\n this.busy.set(false);\n }\n }\n}\n\n//#endregion\n","<div class=\"axm-rule-set-simulate flex flex-col gap-4 p-4\">\n <div class=\"flex flex-col gap-1\">\n <ax-label>\n {{ '@rule-engine-management:simulate.fields.rule-set' | translate | async }}\n </ax-label>\n <div class=\"axm-rule-set-simulate__meta text-sm\">\n <span class=\"font-medium\">{{ ruleSetKey() || '—' }}</span>\n @if (ruleSetMeta().version) {\n <span class=\"text-muted\">@{{ ruleSetMeta().version }}</span>\n }\n @if (ruleSetMeta().domain) {\n <span class=\"text-muted\">({{ ruleSetMeta().domain }})</span>\n }\n </div>\n </div>\n\n <ax-form-field>\n <ax-label>\n {{ '@rule-engine-management:simulate.fields.facts-json' | translate | async }}\n </ax-label>\n <ax-text-area\n class=\"axm-rule-set-simulate__facts\"\n [ngModel]=\"factsJson()\"\n (ngModelChange)=\"onFactsChange($event)\"\n [rows]=\"12\"\n [look]=\"'outline'\"\n ></ax-text-area>\n </ax-form-field>\n\n <div class=\"flex items-center gap-2\">\n <ax-button\n [color]=\"'primary'\"\n [disabled]=\"busy() || !ruleSetKey()\"\n [text]=\"('@rule-engine-management:simulate.actions.run' | translate | async) || 'Run Simulate'\"\n (onClick)=\"runSimulate()\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-light fa-play\"></ax-icon>\n </ax-prefix>\n </ax-button>\n </div>\n\n @if (error()) {\n <div class=\"axm-rule-set-simulate__error p-3 rounded\">\n <ax-label class=\"text-danger\">{{ error() }}</ax-label>\n </div>\n }\n\n @if (resultJson()) {\n <div class=\"flex flex-col gap-1\">\n <ax-label>\n {{ '@rule-engine-management:simulate.fields.result' | translate | async }}\n </ax-label>\n <pre class=\"axm-rule-set-simulate__result p-3 rounded\">{{ resultJson() }}</pre>\n </div>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYa,mCAAmC,CAAA;AAAhD,IAAA,WAAA,GAAA;AACU,QAAA,IAAA,CAAA,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACxC,QA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UAAA,EAAA,KAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACb,gBAAgB,kaAChB,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAYV,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAxB3C,SAAS;+BACE,4BAA4B,EAAA,UAAA,EAC1B,IAAI,EAAA,OAAA,EACP;wBACP,YAAY;wBACZ,SAAS;wBACT,WAAW;wBACX,cAAc;wBACd,iBAAiB;wBACjB,YAAY;wBACZ,aAAa;wBACb,gBAAgB;wBAChB,mBAAmB;qBACpB,EAAA,eAAA,EAGgB,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAA,+BAAiC;AAC7C,yBAAA;AACF,qBAAA,EAAA,QAAA,EAAA,i0DAAA,EAAA,MAAA,EAAA,CAAA,ijBAAA,CAAA,EAAA;;;;;;;;;;;;;;AEpDH;;AAEG;;"}
|
package/package.json
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { AXPModuleManifest } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
|
|
1
3
|
declare const AXPRuleEngineManagementMenuKeys: {
|
|
2
4
|
readonly Root: "rule-engine-management:menu";
|
|
3
5
|
readonly RuleSets: "rule-engine-management:rule-sets";
|
|
@@ -97,7 +99,9 @@ declare const RootConfig: {
|
|
|
97
99
|
};
|
|
98
100
|
};
|
|
99
101
|
|
|
102
|
+
declare const RuleEngineManagementManifest: AXPModuleManifest;
|
|
103
|
+
|
|
100
104
|
/** Registry key for RuleSet Simulate custom entity page (tab). */
|
|
101
105
|
declare const RULE_SET_SIMULATE_PAGE_COMPONENT_KEY = "rule-set-simulate-page";
|
|
102
106
|
|
|
103
|
-
export { AXMRuleEnginePermissionKeys, AXPAdministrationPermissionKeys, AXPRuleEngineManagementMenuKeys, RULE_SET_SIMULATE_PAGE_COMPONENT_KEY, RootConfig };
|
|
107
|
+
export { AXMRuleEnginePermissionKeys, AXPAdministrationPermissionKeys, AXPRuleEngineManagementMenuKeys, RULE_SET_SIMULATE_PAGE_COMPONENT_KEY, RootConfig, RuleEngineManagementManifest };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import * as i1 from '@acorex-platform/module-gateway/rule-engine-management';
|
|
3
|
-
|
|
3
|
+
export { RuleEngineManagementManifest } from '@acorex-platform/module-rule-engine-management-client/contracts';
|
|
4
4
|
import { AXPMenuProvider, AXPMenuProviderContext } from '@acorex-platform/framework-client/common';
|
|
5
5
|
import { AXPPermissionDefinitionProvider, AXPPermissionDefinitionProviderContext } from '@acorex-platform/framework-client/auth';
|
|
6
6
|
import { AXPPageComponentProvider, AXPPageComponentDefinition } from '@acorex-platform/framework-client/layout/components';
|
|
@@ -12,8 +12,6 @@ declare class AXMRuleEngineManagementModule {
|
|
|
12
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXMRuleEngineManagementModule>;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
declare const RuleEngineManagementManifest: AXPModuleManifest;
|
|
16
|
-
|
|
17
15
|
declare class AXMRuleEngineManagementMenuProvider implements AXPMenuProvider {
|
|
18
16
|
private entityService;
|
|
19
17
|
private sessionService;
|
|
@@ -60,4 +58,4 @@ declare class AXMRuleSetSimulatePageComponent extends AXPPageLayoutBaseComponent
|
|
|
60
58
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXMRuleSetSimulatePageComponent, "axm-rule-set-simulate-page", never, { "rootContext": { "alias": "rootContext"; "required": false; "isSignal": true; }; "pageConfig": { "alias": "pageConfig"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
61
59
|
}
|
|
62
60
|
|
|
63
|
-
export { AXMRuleEngineManagementMenuProvider, AXMRuleEngineManagementModule, AXMRuleEngineManagementPermissionProvider, AXMRuleSetSimulatePageComponent, AXMRuleSetSimulatePageComponentProvider
|
|
61
|
+
export { AXMRuleEngineManagementMenuProvider, AXMRuleEngineManagementModule, AXMRuleEngineManagementPermissionProvider, AXMRuleSetSimulatePageComponent, AXMRuleSetSimulatePageComponentProvider };
|
|
@@ -1 +0,0 @@
|
|
|
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;;"}
|
|
@@ -1 +0,0 @@
|
|
|
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,CAAC,IAAI;AAClB,QAAA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;QAC9B,IAAI,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC;AAC1D,QAAA,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,KAAK;YACzB,MAAM,EAAE,OAAO,CAAC,WAAW;AAC3B,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,2BAA2B;AAClC,gBAAA,WAAW,EAAE,qCAAqC;AACnD,aAAA;AACF,SAAA;AACD,QAAA,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,CAAA,EAAG,IAAI,CAAA,kBAAA,CAAoB,EAAE,CAAC;AAClE,QAAA,UAAU,EAAE;AACV,YAAA;AACE,gBAAA,IAAI,EAAE,IAAI;AACV,gBAAA,KAAK,EAAE,IAAI;AACX,gBAAA,OAAO,EAAE,YAAY;AACrB,gBAAA,MAAM,EAAE;AACN,oBAAA,QAAQ,EAAE,MAAM;AAChB,oBAAA,OAA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AAyB,EAAE,CAAC;AAC1C,iBAAA;AACD,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,CAAC,GAAG,uBAAuB,EAAE,CAAC;AACvC,oBAAA,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;AAChG,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AACH;AAEA;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-module-rule-engine-management-client-contracts-entity-catalog-rule-definition.entity-mOluqI_4.mjs","sources":["../../../../libs/modules/rule-engine-management/contracts/src/entities/rule-definition/rule-definition.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 factoryRuleDefinition(): Promise<AXPEntity | null> {\n return createSimpleCrudEntity({\n module: RootConfig.module.name,\n name: RootConfig.entities.ruleDefinition.name,\n title: RootConfig.entities.ruleDefinition.title,\n titlePlural: RootConfig.entities.ruleDefinition.titlePlural,\n icon: RootConfig.entities.ruleDefinition.icon,\n i18nPrefix: '@rule-engine-management:rules.entities.rule-definition',\n fields: [\n { name: 'ruleSetId', titleKey: 'rule-set-id', required: true },\n { name: 'name', titleKey: 'name', required: true },\n { name: 'enabled', titleKey: 'enabled', dataType: 'boolean' },\n { name: 'priority', titleKey: 'priority', dataType: 'number' },\n { name: 'salience', titleKey: 'salience', dataType: 'number' },\n { name: 'activationGroup', titleKey: 'activation-group' },\n { name: 'severity', titleKey: 'severity' },\n { name: 'whenJson', titleKey: 'when-json', largeText: true, required: true },\n { name: 'thenJson', titleKey: 'then-json', largeText: true, required: true },\n ],\n columns: ['name', 'ruleSetId', 'severity', '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