@acorex-platform/module-application-management-client 0.0.18 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/fesm2022/{acorex-platform-module-application-management-client-application-status.provider-DqPlbWuW.mjs → acorex-platform-module-application-management-client-application-status.provider-Bz6cknzi.mjs} +4 -4
  2. package/fesm2022/{acorex-platform-module-application-management-client-application-status.provider-DqPlbWuW.mjs.map → acorex-platform-module-application-management-client-application-status.provider-Bz6cknzi.mjs.map} +1 -1
  3. package/fesm2022/{acorex-platform-module-application-management-client-assign-features.command-R7y4QKhC.mjs → acorex-platform-module-application-management-client-assign-features.command-BG986HtP.mjs} +23 -21
  4. package/fesm2022/acorex-platform-module-application-management-client-assign-features.command-BG986HtP.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-module-application-management-client-contracts.mjs +79 -1930
  6. package/fesm2022/acorex-platform-module-application-management-client-contracts.mjs.map +1 -1
  7. package/fesm2022/{acorex-platform-module-application-management-client-feature-definition.provider-Depetn50.mjs → acorex-platform-module-application-management-client-feature-definition.provider-V-wfUEZf.mjs} +4 -4
  8. package/fesm2022/{acorex-platform-module-application-management-client-feature-definition.provider-Depetn50.mjs.map → acorex-platform-module-application-management-client-feature-definition.provider-V-wfUEZf.mjs.map} +1 -1
  9. package/fesm2022/acorex-platform-module-application-management-client-features-editor.component-B5yrn7eX.mjs +584 -0
  10. package/fesm2022/acorex-platform-module-application-management-client-features-editor.component-B5yrn7eX.mjs.map +1 -0
  11. package/fesm2022/{acorex-platform-module-application-management-client-features-widget-column.component-CiBGmw6I.mjs → acorex-platform-module-application-management-client-features-widget-column.component-C2OEG0LL.mjs} +7 -8
  12. package/fesm2022/acorex-platform-module-application-management-client-features-widget-column.component-C2OEG0LL.mjs.map +1 -0
  13. package/fesm2022/{acorex-platform-module-application-management-client-features-widget-designer.component-nStj9BAw.mjs → acorex-platform-module-application-management-client-features-widget-designer.component-CMJwcY5f.mjs} +4 -4
  14. package/fesm2022/{acorex-platform-module-application-management-client-features-widget-designer.component-nStj9BAw.mjs.map → acorex-platform-module-application-management-client-features-widget-designer.component-CMJwcY5f.mjs.map} +1 -1
  15. package/fesm2022/{acorex-platform-module-application-management-client-features-widget-edit.component-BdHYm0Yr.mjs → acorex-platform-module-application-management-client-features-widget-edit.component-D_IBCjfM.mjs} +5 -5
  16. package/fesm2022/{acorex-platform-module-application-management-client-features-widget-edit.component-BdHYm0Yr.mjs.map → acorex-platform-module-application-management-client-features-widget-edit.component-D_IBCjfM.mjs.map} +1 -1
  17. package/fesm2022/{acorex-platform-module-application-management-client-features-widget-print.component-C6Z9uzRr.mjs → acorex-platform-module-application-management-client-features-widget-print.component-CkTEfzcY.mjs} +4 -4
  18. package/fesm2022/{acorex-platform-module-application-management-client-features-widget-print.component-C6Z9uzRr.mjs.map → acorex-platform-module-application-management-client-features-widget-print.component-CkTEfzcY.mjs.map} +1 -1
  19. package/fesm2022/{acorex-platform-module-application-management-client-features-widget-view.component-ysM1jD08.mjs → acorex-platform-module-application-management-client-features-widget-view.component-yKbBTqym.mjs} +12 -8
  20. package/fesm2022/{acorex-platform-module-application-management-client-features-widget-view.component-ysM1jD08.mjs.map → acorex-platform-module-application-management-client-features-widget-view.component-yKbBTqym.mjs.map} +1 -1
  21. package/fesm2022/acorex-platform-module-application-management-client-permission-definition.provider-MTs9VAE_.mjs +44 -0
  22. package/fesm2022/acorex-platform-module-application-management-client-permission-definition.provider-MTs9VAE_.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-application-management-client.mjs +256 -217
  24. package/fesm2022/acorex-platform-module-application-management-client.mjs.map +1 -1
  25. package/package.json +1 -1
  26. package/types/acorex-platform-module-application-management-client-contracts.d.ts +166 -51
  27. package/types/acorex-platform-module-application-management-client.d.ts +9 -17
  28. package/fesm2022/acorex-platform-module-application-management-client-assign-features.command-R7y4QKhC.mjs.map +0 -1
  29. package/fesm2022/acorex-platform-module-application-management-client-features-editor.component-BiYXAqYJ.mjs +0 -548
  30. package/fesm2022/acorex-platform-module-application-management-client-features-editor.component-BiYXAqYJ.mjs.map +0 -1
  31. package/fesm2022/acorex-platform-module-application-management-client-features-widget-column.component-CiBGmw6I.mjs.map +0 -1
  32. package/fesm2022/acorex-platform-module-application-management-client-permission-definition.provider-Dn5WiubC.mjs +0 -32
  33. package/fesm2022/acorex-platform-module-application-management-client-permission-definition.provider-Dn5WiubC.mjs.map +0 -1
@@ -60,12 +60,12 @@ class AXMApplicationStatusProvider extends AXPStatusProvider {
60
60
  },
61
61
  ];
62
62
  }
63
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMApplicationStatusProvider, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
64
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMApplicationStatusProvider }); }
63
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMApplicationStatusProvider, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
64
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMApplicationStatusProvider }); }
65
65
  }
66
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMApplicationStatusProvider, decorators: [{
66
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMApplicationStatusProvider, decorators: [{
67
67
  type: Injectable
68
68
  }] });
69
69
 
70
70
  export { AXMApplicationStatusProvider };
71
- //# sourceMappingURL=acorex-platform-module-application-management-client-application-status.provider-DqPlbWuW.mjs.map
71
+ //# sourceMappingURL=acorex-platform-module-application-management-client-application-status.provider-Bz6cknzi.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-module-application-management-client-application-status.provider-DqPlbWuW.mjs","sources":["../../../../libs/modules/application-management/client/src/lib/features/application-status.provider.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPStatusProvider, AXPStatusTransition, AXPSystemStatusType, systemStatusToDefinition } from '@acorex-platform/framework-shared/core';\nimport { Injectable } from '@angular/core';\n\n//#endregion\n\n//#region ---- Application Status Provider ----\n\n/**\n * Application status provider defining lifecycle states for applications.\n * Used by the status plugin to manage application status transitions and metadata.\n */\n@Injectable()\nexport class AXMApplicationStatusProvider extends AXPStatusProvider {\n readonly key = 'application-management.status.application';\n\n readonly defaultStatus = AXPSystemStatusType.Active;\n\n readonly statuses = [\n systemStatusToDefinition(AXPSystemStatusType.Active, {\n title: '@application-management:applications.states.active',\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.Inactive, {\n title: '@application-management:applications.states.inactive',\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.Suspended, {\n title: '@application-management:applications.states.suspended',\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.Pending, {\n title: '@application-management:applications.states.pending',\n generateView: true,\n }),\n ];\n\n readonly transitions: AXPStatusTransition[] = [\n {\n from: AXPSystemStatusType.Pending,\n to: AXPSystemStatusType.Active,\n title: '@application-management:applications.transitions.activate',\n },\n {\n from: AXPSystemStatusType.Active,\n to: AXPSystemStatusType.Inactive,\n title: '@application-management:applications.transitions.deactivate',\n },\n {\n from: AXPSystemStatusType.Active,\n to: AXPSystemStatusType.Suspended,\n title: '@application-management:applications.transitions.suspend',\n },\n {\n from: AXPSystemStatusType.Suspended,\n to: AXPSystemStatusType.Active,\n title: '@application-management:applications.transitions.resume',\n },\n {\n from: AXPSystemStatusType.Inactive,\n to: AXPSystemStatusType.Active,\n title: '@application-management:applications.transitions.activate',\n },\n ];\n}\n\n//#endregion\n\n"],"names":[],"mappings":";;;;AAAA;AAKA;AAEA;AAEA;;;AAGG;AAEG,MAAO,4BAA6B,SAAQ,iBAAiB,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C9B,gBAAA,KAAK,EAAE,yDAAyD;AACnE,aAAA;AACD,YAAA;gBACI,IAAI,EAAE,mBAAmB,CAAC,QAAQ;gBAClC,EAAE,EAAE,mBAAmB,CAAC,MAAM;AAC9B,gBAAA,KAAK,EAAE,2DAA2D;AACrE,aAAA;SACJ;AACJ,IAAA;8GAnDY,4BAA4B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAA5B,4BAA4B,EAAA,CAAA,CAAA;;2FAA5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBADxC;;;;;"}
1
+ {"version":3,"file":"acorex-platform-module-application-management-client-application-status.provider-Bz6cknzi.mjs","sources":["../../../../libs/modules/application-management/client/src/lib/features/application-status.provider.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXPStatusProvider, AXPStatusTransition, AXPSystemStatusType, systemStatusToDefinition } from '@acorex-platform/framework-shared/core';\nimport { Injectable } from '@angular/core';\n\n//#endregion\n\n//#region ---- Application Status Provider ----\n\n/**\n * Application status provider defining lifecycle states for applications.\n * Used by the status plugin to manage application status transitions and metadata.\n */\n@Injectable()\nexport class AXMApplicationStatusProvider extends AXPStatusProvider {\n readonly key = 'application-management.status.application';\n\n readonly defaultStatus = AXPSystemStatusType.Active;\n\n readonly statuses = [\n systemStatusToDefinition(AXPSystemStatusType.Active, {\n title: '@application-management:applications.states.active',\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.Inactive, {\n title: '@application-management:applications.states.inactive',\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.Suspended, {\n title: '@application-management:applications.states.suspended',\n generateView: true,\n }),\n systemStatusToDefinition(AXPSystemStatusType.Pending, {\n title: '@application-management:applications.states.pending',\n generateView: true,\n }),\n ];\n\n readonly transitions: AXPStatusTransition[] = [\n {\n from: AXPSystemStatusType.Pending,\n to: AXPSystemStatusType.Active,\n title: '@application-management:applications.transitions.activate',\n },\n {\n from: AXPSystemStatusType.Active,\n to: AXPSystemStatusType.Inactive,\n title: '@application-management:applications.transitions.deactivate',\n },\n {\n from: AXPSystemStatusType.Active,\n to: AXPSystemStatusType.Suspended,\n title: '@application-management:applications.transitions.suspend',\n },\n {\n from: AXPSystemStatusType.Suspended,\n to: AXPSystemStatusType.Active,\n title: '@application-management:applications.transitions.resume',\n },\n {\n from: AXPSystemStatusType.Inactive,\n to: AXPSystemStatusType.Active,\n title: '@application-management:applications.transitions.activate',\n },\n ];\n}\n\n//#endregion\n\n"],"names":[],"mappings":";;;;AAAA;AAKA;AAEA;AAEA;;;AAGG;AAEG,MAAO,4BAA6B,SAAQ,iBAAiB,CAAA;AADnE,IAAA,WAAA,GAAA;;QAEa,IAAA,CAAA,GAAG,GAAG,2CAA2C;AAEjD,QAAA,IAAA,CAAA,aAAa,GAAG,mBAAmB,CAAC,MAAM;AAE1C,QAAA,IAAA,CAAA,QAAQ,GAAG;AAChB,YAAA,wBAAwB,CAAC,mBAAmB,CAAC,MAAM,EAAE;AACjD,gBAAA,KAAK,EAAE,oDAAoD;AAC3D,gBAAA,YAAY,EAAE,IAAI;aACrB,CAAC;AACF,YAAA,wBAAwB,CAAC,mBAAmB,CAAC,QAAQ,EAAE;AACnD,gBAAA,KAAK,EAAE,sDAAsD;AAC7D,gBAAA,YAAY,EAAE,IAAI;aACrB,CAAC;AACF,YAAA,wBAAwB,CAAC,mBAAmB,CAAC,SAAS,EAAE;AACpD,gBAAA,KAAK,EAAE,uDAAuD;AAC9D,gBAAA,YAAY,EAAE,IAAI;aACrB,CAAC;AACF,YAAA,wBAAwB,CAAC,mBAAmB,CAAC,OAAO,EAAE;AAClD,gBAAA,KAAK,EAAE,qDAAqD;AAC5D,gBAAA,YAAY,EAAE,IAAI;aACrB,CAAC;SACL;AAEQ,QAAA,IAAA,CAAA,WAAW,GAA0B;AAC1C,YAAA;gBACI,IAAI,EAAE,mBAAmB,CAAC,OAAO;gBACjC,EAAE,EAAE,mBAAmB,CAAC,MAAM;AAC9B,gBAAA,KAAK,EAAE,2DAA2D;AACrE,aAAA;AACD,YAAA;gBACI,IAAI,EAAE,mBAAmB,CAAC,MAAM;gBAChC,EAAE,EAAE,mBAAmB,CAAC,QAAQ;AAChC,gBAAA,KAAK,EAAE,6DAA6D;AACvE,aAAA;AACD,YAAA;gBACI,IAAI,EAAE,mBAAmB,CAAC,MAAM;gBAChC,EAAE,EAAE,mBAAmB,CAAC,SAAS;AACjC,gBAAA,KAAK,EAAE,0DAA0D;AACpE,aAAA;AACD,YAAA;gBACI,IAAI,EAAE,mBAAmB,CAAC,SAAS;gBACnC,EAAE,EAAE,mBAAmB,CAAC,MAAM;AAC9B,gBAAA,KAAK,EAAE,yDAAyD;AACnE,aAAA;AACD,YAAA;gBACI,IAAI,EAAE,mBAAmB,CAAC,QAAQ;gBAClC,EAAE,EAAE,mBAAmB,CAAC,MAAM;AAC9B,gBAAA,KAAK,EAAE,2DAA2D;AACrE,aAAA;SACJ;AACJ,IAAA;8GAnDY,4BAA4B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAA5B,4BAA4B,EAAA,CAAA,CAAA;;2FAA5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBADxC;;;;;"}
@@ -1,27 +1,29 @@
1
1
  import { AXPopupService } from '@acorex/components/popup';
2
2
  import { AXToastService } from '@acorex/components/toast';
3
3
  import { AXTranslationService } from '@acorex/core/translation';
4
- import { AXPSettingsService, AXPRefreshEvent, AXPCommonSettings } from '@acorex-platform/framework-client/common';
5
- import { AXPEntityDefinitionRegistryService, AXPEntityModifyEvent } from '@acorex-platform/framework-client/layout/entity';
6
- import { AXPWorkflowEventService } from '@acorex-platform/framework-client/workflow';
4
+ import { AXPSettingsService, AXPCommonSettings } from '@acorex-platform/framework-client/common';
5
+ import { AXPEntityDefinitionRegistryService, dispatchEntityModifiedSideEffects } from '@acorex-platform/framework-client/layout/entity';
6
+ import { AXPEntityBroadcastService } from '@acorex-platform/framework-client/core';
7
7
  import { RootConfig } from '@acorex-platform/module-application-management-client/contracts';
8
8
  import * as i0 from '@angular/core';
9
- import { input, signal, Component, inject, Injectable } from '@angular/core';
9
+ import { input, signal, ChangeDetectionStrategy, Component, inject, Injectable } from '@angular/core';
10
10
  import * as i4 from '@acorex/components/button';
11
11
  import { AXButtonModule } from '@acorex/components/button';
12
12
  import * as i3 from '@acorex/components/decorators';
13
13
  import { AXDecoratorModule } from '@acorex/components/decorators';
14
14
  import { AXBasePageComponent } from '@acorex/components/page';
15
- import { A as AXPFeaturesEditorComponent } from './acorex-platform-module-application-management-client-features-editor.component-BiYXAqYJ.mjs';
15
+ import { A as AXPFeaturesEditorComponent } from './acorex-platform-module-application-management-client-features-editor.component-B5yrn7eX.mjs';
16
16
 
17
17
  class AXPFeaturesEditorPopupComponent extends AXBasePageComponent {
18
18
  constructor() {
19
19
  super(...arguments);
20
- this.initialValue = input({}, ...(ngDevMode ? [{ debugName: "initialValue" }] : /* istanbul ignore next */ []));
20
+ this.initialValue = input({}, /* @ts-ignore */
21
+ ...(ngDevMode ? [{ debugName: "initialValue" }] : /* istanbul ignore next */ []));
21
22
  this.latestValue = signal({
22
23
  modules: [],
23
24
  features: {},
24
- }, ...(ngDevMode ? [{ debugName: "latestValue" }] : /* istanbul ignore next */ []));
25
+ }, /* @ts-ignore */
26
+ ...(ngDevMode ? [{ debugName: "latestValue" }] : /* istanbul ignore next */ []));
25
27
  }
26
28
  ngOnInit() {
27
29
  super.ngOnInit();
@@ -37,8 +39,8 @@ class AXPFeaturesEditorPopupComponent extends AXBasePageComponent {
37
39
  save() {
38
40
  this.close(this.latestValue());
39
41
  }
40
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPFeaturesEditorPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
41
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.9", type: AXPFeaturesEditorPopupComponent, isStandalone: true, selector: "ng-component", inputs: { initialValue: { classPropertyName: "initialValue", publicName: "initialValue", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
42
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPFeaturesEditorPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
43
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: AXPFeaturesEditorPopupComponent, isStandalone: true, selector: "ng-component", inputs: { initialValue: { classPropertyName: "initialValue", publicName: "initialValue", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
42
44
  <div class="flex flex-col h-full">
43
45
  <ax-content class="flex-1 overflow-auto p-4">
44
46
  <axm-features-editor
@@ -54,9 +56,9 @@ class AXPFeaturesEditorPopupComponent extends AXBasePageComponent {
54
56
  </ax-suffix>
55
57
  </ax-footer>
56
58
  </div>
57
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: AXPFeaturesEditorComponent, selector: "axm-features-editor", inputs: ["initialValue", "readOnly"], outputs: ["valueChanged"] }] }); }
59
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: AXPFeaturesEditorComponent, selector: "axm-features-editor", inputs: ["initialValue", "readOnly"], outputs: ["valueChanged"] }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
58
60
  }
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPFeaturesEditorPopupComponent, decorators: [{
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPFeaturesEditorPopupComponent, decorators: [{
60
62
  type: Component,
61
63
  args: [{
62
64
  template: `
@@ -76,6 +78,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
76
78
  </ax-footer>
77
79
  </div>
78
80
  `,
81
+ changeDetection: ChangeDetectionStrategy.Eager,
79
82
  imports: [AXDecoratorModule, AXButtonModule, AXPFeaturesEditorComponent],
80
83
  }]
81
84
  }], propDecorators: { initialValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialValue", required: false }] }] } });
@@ -90,10 +93,10 @@ class AXMAssignFeaturesCommand {
90
93
  this.entityRegistry = inject(AXPEntityDefinitionRegistryService);
91
94
  this.toastService = inject(AXToastService);
92
95
  this.settingsService = inject(AXPSettingsService);
93
- this.workflowEventService = inject(AXPWorkflowEventService);
96
+ this.entityEvents = inject(AXPEntityBroadcastService);
94
97
  }
95
98
  async execute(input = {}) {
96
- const row = input.__context__?.data;
99
+ const row = input.data;
97
100
  const id = row?.['id'];
98
101
  if (!id) {
99
102
  return { success: false, message: { text: 'Edition data with id is required.' } };
@@ -110,7 +113,7 @@ class AXMAssignFeaturesCommand {
110
113
  });
111
114
  const nextValue = popupResult?.data;
112
115
  if (!nextValue) {
113
- return { success: true, data: null };
116
+ return { success: true, kind: 'object', data: null };
114
117
  }
115
118
  const entityKey = `${RootConfig.module.name}.${RootConfig.entities.edition.name}`;
116
119
  const [moduleName, entityName] = entityKey.split('.');
@@ -121,9 +124,8 @@ class AXMAssignFeaturesCommand {
121
124
  };
122
125
  const updated = await (entityRef.commands?.update?.execute)(updatePayload);
123
126
  await this.showSuccessToast();
124
- this.workflowEventService.dispatch(AXPEntityModifyEvent({ entity: entityKey, values: updated }));
125
- this.workflowEventService.dispatch(AXPRefreshEvent({ entity: entityKey }));
126
- return { success: true, data: nextValue };
127
+ dispatchEntityModifiedSideEffects(this.entityEvents, entityKey, updated);
128
+ return { success: true, kind: 'object', data: nextValue };
127
129
  }
128
130
  async showSuccessToast() {
129
131
  const enableOperationToasts = await this.settingsService.get(AXPCommonSettings.EnableOperationToasts);
@@ -139,13 +141,13 @@ class AXMAssignFeaturesCommand {
139
141
  timeOutProgress: true,
140
142
  });
141
143
  }
142
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMAssignFeaturesCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
143
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMAssignFeaturesCommand, providedIn: 'root' }); }
144
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMAssignFeaturesCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
145
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMAssignFeaturesCommand, providedIn: 'root' }); }
144
146
  }
145
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMAssignFeaturesCommand, decorators: [{
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMAssignFeaturesCommand, decorators: [{
146
148
  type: Injectable,
147
149
  args: [{ providedIn: 'root' }]
148
150
  }] });
149
151
 
150
152
  export { AXMAssignFeaturesCommand };
151
- //# sourceMappingURL=acorex-platform-module-application-management-client-assign-features.command-R7y4QKhC.mjs.map
153
+ //# sourceMappingURL=acorex-platform-module-application-management-client-assign-features.command-BG986HtP.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-application-management-client-assign-features.command-BG986HtP.mjs","sources":["../../../../libs/modules/application-management/client/src/lib/features/features-widget/features-editor-popup.component.ts","../../../../libs/modules/application-management/client/src/lib/features/features-widget/commands/assign-features.command.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { Component, input, signal, ChangeDetectionStrategy } from '@angular/core';\n\nimport { AXPFeaturesEditorComponent } from './features-editor.component';\n\n@Component({\n template: `\n <div class=\"flex flex-col h-full\">\n <ax-content class=\"flex-1 overflow-auto p-4\">\n <axm-features-editor\n [initialValue]=\"initialValue()\"\n [readOnly]=\"false\"\n (valueChanged)=\"onValueChanged($event)\"\n />\n </ax-content>\n <ax-footer>\n <ax-suffix>\n <ax-button text=\"Cancel\" (onClick)=\"close()\"></ax-button>\n <ax-button color=\"primary\" text=\"Save\" (onClick)=\"save()\"></ax-button>\n </ax-suffix>\n </ax-footer>\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [AXDecoratorModule, AXButtonModule, AXPFeaturesEditorComponent],\n})\nexport class AXPFeaturesEditorPopupComponent extends AXBasePageComponent {\n initialValue = input<{ modules?: string[]; features?: Record<string, unknown> }>({});\n\n private latestValue = signal<{ modules: string[]; features: Record<string, unknown> }>({\n modules: [],\n features: {},\n });\n\n override ngOnInit(): void {\n super.ngOnInit();\n const initial = this.initialValue();\n this.latestValue.set({\n modules: initial.modules ?? [],\n features: initial.features ?? {},\n });\n }\n\n protected onValueChanged(value: { modules: string[]; features: Record<string, unknown> }): void {\n this.latestValue.set(value);\n }\n\n protected save(): void {\n this.close(this.latestValue());\n }\n}\n","//#region ---- Imports ----\n\nimport { AXPopupService } from '@acorex/components/popup';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPCommonSettings,\n AXPSettingsService,\n} from '@acorex-platform/framework-client/common';\nimport { AXPEntityDefinitionRegistryService, dispatchEntityModifiedSideEffects } from '@acorex-platform/framework-client/layout/entity';\nimport { AXPEntityBroadcastService } from '@acorex-platform/framework-client/core';\nimport { AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\nimport { AXPCommand, type AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport { RootConfig } from '@acorex-platform/module-application-management-client/contracts';\nimport { inject, Injectable } from '@angular/core';\n\nimport { AXPFeaturesEditorPopupComponent } from '../features-editor-popup.component';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport interface AXMAssignFeaturesCommandInput {\n data?: Record<string, unknown>;\n}\n\n//#endregion\n\n//#region ---- Assign features command ----\n\n@Injectable({ providedIn: 'root' })\nexport class AXMAssignFeaturesCommand implements AXPCommand<AXMAssignFeaturesCommandInput> {\n private readonly popupService = inject(AXPopupService);\n private readonly translationService = inject(AXTranslationService);\n private readonly entityRegistry = inject(AXPEntityDefinitionRegistryService);\n private readonly toastService = inject(AXToastService);\n private readonly settingsService = inject(AXPSettingsService);\n private readonly entityEvents = inject(AXPEntityBroadcastService);\n\n async execute(input: AXMAssignFeaturesCommandInput = {}): AXPCommandExecuteResultPromise {\n const row = input.data;\n const id = row?.['id'];\n if (!id) {\n return { success: false, message: { text: 'Edition data with id is required.' } };\n }\n\n const title = await this.translationService.translateAsync(\n '@application-management:features-widget.terms.features',\n );\n const entityTitle = row['title'] ?? row['name'] ?? id;\n\n const modulesAndFeatures = (row['modulesAndFeatures'] as {\n modules?: string[];\n features?: Record<string, unknown>;\n }) ?? { modules: [], features: {} };\n\n const popupResult = await this.popupService.open(AXPFeaturesEditorPopupComponent, {\n title: `${title} - ${entityTitle}`,\n size: 'lg',\n data: {\n initialValue: modulesAndFeatures,\n },\n });\n\n const nextValue = popupResult?.data as { modules?: string[]; features?: Record<string, unknown> } | undefined;\n if (!nextValue) {\n return { success: true, kind: 'object', data: null };\n }\n\n const entityKey = `${RootConfig.module.name}.${RootConfig.entities.edition.name}`;\n const [moduleName, entityName] = entityKey.split('.');\n const entityRef = await this.entityRegistry.resolve(moduleName, entityName);\n const updatePayload = {\n ...row,\n modulesAndFeatures: nextValue,\n };\n\n const updated = await (entityRef.commands?.update?.execute as (\n data: Record<string, unknown>,\n ) => Promise<Record<string, unknown>>)(updatePayload);\n\n await this.showSuccessToast();\n dispatchEntityModifiedSideEffects(this.entityEvents, entityKey, updated);\n\n return { success: true, kind: 'object', data: nextValue };\n }\n\n private async showSuccessToast(): Promise<void> {\n const enableOperationToasts = await this.settingsService.get<boolean>(AXPCommonSettings.EnableOperationToasts);\n if (!enableOperationToasts) {\n return;\n }\n\n this.toastService.show({\n color: 'success',\n title: await this.translationService.translateAsync('@general:workflow.entity-modified-title'),\n content: await this.translationService.translateAsync('@general:workflow.entity-modified-body'),\n closeButton: true,\n timeOut: 3000,\n timeOutProgress: true,\n });\n }\n}\n\n//#endregion\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;;;;AA4BM,MAAO,+BAAgC,SAAQ,mBAAmB,CAAA;AArBxE,IAAA,WAAA,GAAA;;QAsBE,IAAA,CAAA,YAAY,GAAG,KAAK,CAA6D,EAAE;yFAAC;QAE5E,IAAA,CAAA,WAAW,GAAG,MAAM,CAA2D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