@acorex-platform/framework-client 0.0.15 → 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 (108) hide show
  1. package/fesm2022/acorex-platform-framework-client-auth.mjs +872 -314
  2. package/fesm2022/acorex-platform-framework-client-auth.mjs.map +1 -1
  3. package/fesm2022/{acorex-platform-framework-client-common-common-settings.provider-Euotv9l0.mjs → acorex-platform-framework-client-common-common-settings.provider-CLm2BVk-.mjs} +88 -5
  4. package/fesm2022/acorex-platform-framework-client-common-common-settings.provider-CLm2BVk-.mjs.map +1 -0
  5. package/fesm2022/acorex-platform-framework-client-common.mjs +2685 -898
  6. package/fesm2022/acorex-platform-framework-client-common.mjs.map +1 -1
  7. package/fesm2022/acorex-platform-framework-client-core.mjs +691 -823
  8. package/fesm2022/acorex-platform-framework-client-core.mjs.map +1 -1
  9. package/fesm2022/acorex-platform-framework-client-domain.mjs +16 -16
  10. package/fesm2022/acorex-platform-framework-client-layout-builder.mjs +181 -84
  11. package/fesm2022/acorex-platform-framework-client-layout-builder.mjs.map +1 -1
  12. package/fesm2022/{acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CjnQ9hAJ.mjs → acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-oE8CeLE8.mjs} +8 -6
  13. package/fesm2022/{acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CjnQ9hAJ.mjs.map → acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-oE8CeLE8.mjs.map} +1 -1
  14. package/fesm2022/{acorex-platform-framework-client-layout-components-file-provider-picker.popup.component-fFen8w8M.mjs → acorex-platform-framework-client-layout-components-file-provider-picker.popup.component-BtLEUWAA.mjs} +4 -4
  15. package/fesm2022/{acorex-platform-framework-client-layout-components-file-provider-picker.popup.component-fFen8w8M.mjs.map → acorex-platform-framework-client-layout-components-file-provider-picker.popup.component-BtLEUWAA.mjs.map} +1 -1
  16. package/fesm2022/acorex-platform-framework-client-layout-components.mjs +3300 -1236
  17. package/fesm2022/acorex-platform-framework-client-layout-components.mjs.map +1 -1
  18. package/fesm2022/acorex-platform-framework-client-layout-designer.mjs +277 -185
  19. package/fesm2022/acorex-platform-framework-client-layout-designer.mjs.map +1 -1
  20. package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-BXOMs6oD.mjs +29184 -0
  21. package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-BXOMs6oD.mjs.map +1 -0
  22. package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-BzUM-JMC.mjs → acorex-platform-framework-client-layout-entity-attachments-page.component-DCK-qb-F.mjs} +34 -20
  23. package/fesm2022/acorex-platform-framework-client-layout-entity-attachments-page.component-DCK-qb-F.mjs.map +1 -0
  24. package/fesm2022/acorex-platform-framework-client-layout-entity-bulk-entity.command-Cs3agnpF.mjs +162 -0
  25. package/fesm2022/acorex-platform-framework-client-layout-entity-bulk-entity.command-Cs3agnpF.mjs.map +1 -0
  26. package/fesm2022/{acorex-platform-framework-client-layout-entity-file-list-popup.component-Ci_CTFtq.mjs → acorex-platform-framework-client-layout-entity-file-list-popup.component-p0hxDb0W.mjs} +31 -19
  27. package/fesm2022/acorex-platform-framework-client-layout-entity-file-list-popup.component-p0hxDb0W.mjs.map +1 -0
  28. package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-DmiB__JR.mjs → acorex-platform-framework-client-layout-entity-gallery-page.component-DYV9YPyw.mjs} +30 -18
  29. package/fesm2022/acorex-platform-framework-client-layout-entity-gallery-page.component-DYV9YPyw.mjs.map +1 -0
  30. package/fesm2022/acorex-platform-framework-client-layout-entity.mjs +2 -26780
  31. package/fesm2022/acorex-platform-framework-client-layout-entity.mjs.map +1 -1
  32. package/fesm2022/acorex-platform-framework-client-layout-views.mjs +421 -151
  33. package/fesm2022/acorex-platform-framework-client-layout-views.mjs.map +1 -1
  34. package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs +673 -287
  35. package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs.map +1 -1
  36. package/fesm2022/{acorex-platform-framework-client-layout-widgets-button-widget-designer.component-CIwpAXbL.mjs → acorex-platform-framework-client-layout-widgets-button-widget-designer.component-BiWerYcu.mjs} +16 -10
  37. package/fesm2022/{acorex-platform-framework-client-layout-widgets-button-widget-designer.component-CIwpAXbL.mjs.map → acorex-platform-framework-client-layout-widgets-button-widget-designer.component-BiWerYcu.mjs.map} +1 -1
  38. package/fesm2022/{acorex-platform-framework-client-layout-widgets-image-preview.popup-CazpERbX.mjs → acorex-platform-framework-client-layout-widgets-image-preview.popup-BOrrMm3U.mjs} +9 -8
  39. package/fesm2022/acorex-platform-framework-client-layout-widgets-image-preview.popup-BOrrMm3U.mjs.map +1 -0
  40. package/fesm2022/{acorex-platform-framework-client-layout-widgets-page-widget-designer.component-DKkJi40s.mjs → acorex-platform-framework-client-layout-widgets-page-widget-designer.component-WzIiwnGC.mjs} +20 -12
  41. package/fesm2022/{acorex-platform-framework-client-layout-widgets-page-widget-designer.component-DKkJi40s.mjs.map → acorex-platform-framework-client-layout-widgets-page-widget-designer.component-WzIiwnGC.mjs.map} +1 -1
  42. package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-DtYZfA79.mjs → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-3CO4xJB3.mjs} +32 -18
  43. package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-DtYZfA79.mjs.map → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-3CO4xJB3.mjs.map} +1 -1
  44. package/fesm2022/{acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-nMUtxAyy.mjs → acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-CRST84ou.mjs} +8 -7
  45. package/fesm2022/{acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-nMUtxAyy.mjs.map → acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-CRST84ou.mjs.map} +1 -1
  46. package/fesm2022/{acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-DvUSZ4hJ.mjs → acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-FjtSRxIX.mjs} +4 -4
  47. package/fesm2022/{acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-DvUSZ4hJ.mjs.map → acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-FjtSRxIX.mjs.map} +1 -1
  48. package/fesm2022/{acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-BihIfkZW.mjs → acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-D6HFPmGC.mjs} +10 -8
  49. package/fesm2022/{acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-BihIfkZW.mjs.map → acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-D6HFPmGC.mjs.map} +1 -1
  50. package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs +4907 -2554
  51. package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs.map +1 -1
  52. package/fesm2022/acorex-platform-framework-client-native.mjs +7 -7
  53. package/fesm2022/acorex-platform-framework-client-realtime-set-presence-availability.command-CetlUjnM.mjs +29 -0
  54. package/fesm2022/acorex-platform-framework-client-realtime-set-presence-availability.command-CetlUjnM.mjs.map +1 -0
  55. package/fesm2022/acorex-platform-framework-client-realtime.mjs +463 -26
  56. package/fesm2022/acorex-platform-framework-client-realtime.mjs.map +1 -1
  57. package/fesm2022/acorex-platform-framework-client-runtime.mjs +300 -137
  58. package/fesm2022/acorex-platform-framework-client-runtime.mjs.map +1 -1
  59. package/fesm2022/{acorex-platform-framework-client-themes-default-entity-master-create-view.component-QIFX11dh.mjs → acorex-platform-framework-client-themes-default-entity-master-create-view.component-yeftgJ_K.mjs} +10 -7
  60. package/fesm2022/{acorex-platform-framework-client-themes-default-entity-master-create-view.component-QIFX11dh.mjs.map → acorex-platform-framework-client-themes-default-entity-master-create-view.component-yeftgJ_K.mjs.map} +1 -1
  61. package/fesm2022/{acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BBdellyL.mjs → acorex-platform-framework-client-themes-default-entity-master-modify-view.component-DWE3OWGm.mjs} +10 -7
  62. package/fesm2022/{acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BBdellyL.mjs.map → acorex-platform-framework-client-themes-default-entity-master-modify-view.component-DWE3OWGm.mjs.map} +1 -1
  63. package/fesm2022/{acorex-platform-framework-client-themes-default-entity-master-single-view.component-CIf1VWNW.mjs → acorex-platform-framework-client-themes-default-entity-master-single-view.component-C2Abf7Lb.mjs} +21 -19
  64. package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-single-view.component-C2Abf7Lb.mjs.map +1 -0
  65. package/fesm2022/{acorex-platform-framework-client-themes-default-error-401.component-C_czT_JC.mjs → acorex-platform-framework-client-themes-default-error-401.component-BrTotLx1.mjs} +5 -5
  66. package/fesm2022/{acorex-platform-framework-client-themes-default-error-401.component-C_czT_JC.mjs.map → acorex-platform-framework-client-themes-default-error-401.component-BrTotLx1.mjs.map} +1 -1
  67. package/fesm2022/{acorex-platform-framework-client-themes-default-error-404.component-C2Wu0YtF.mjs → acorex-platform-framework-client-themes-default-error-404.component-DsC7_s59.mjs} +5 -5
  68. package/fesm2022/{acorex-platform-framework-client-themes-default-error-404.component-C2Wu0YtF.mjs.map → acorex-platform-framework-client-themes-default-error-404.component-DsC7_s59.mjs.map} +1 -1
  69. package/fesm2022/{acorex-platform-framework-client-themes-default-error-offline.component-DRz-kVsT.mjs → acorex-platform-framework-client-themes-default-error-offline.component-CngiQycG.mjs} +6 -6
  70. package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-CngiQycG.mjs.map +1 -0
  71. package/fesm2022/acorex-platform-framework-client-themes-default.mjs +448 -277
  72. package/fesm2022/acorex-platform-framework-client-themes-default.mjs.map +1 -1
  73. package/fesm2022/{acorex-platform-framework-client-themes-shared-icon-chooser-column.component-Ci_oH7NE.mjs → acorex-platform-framework-client-themes-shared-icon-chooser-column.component-CbZALjB5.mjs} +8 -6
  74. package/fesm2022/{acorex-platform-framework-client-themes-shared-icon-chooser-column.component-Ci_oH7NE.mjs.map → acorex-platform-framework-client-themes-shared-icon-chooser-column.component-CbZALjB5.mjs.map} +1 -1
  75. package/fesm2022/{acorex-platform-framework-client-themes-shared-icon-chooser-view.component-Lb1G2Xz7.mjs → acorex-platform-framework-client-themes-shared-icon-chooser-view.component-BRrNT6x2.mjs} +8 -6
  76. package/fesm2022/{acorex-platform-framework-client-themes-shared-icon-chooser-view.component-Lb1G2Xz7.mjs.map → acorex-platform-framework-client-themes-shared-icon-chooser-view.component-BRrNT6x2.mjs.map} +1 -1
  77. package/fesm2022/{acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-D4ubvFYf.mjs → acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-BIsQTr6B.mjs} +4 -4
  78. package/fesm2022/{acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-D4ubvFYf.mjs.map → acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-BIsQTr6B.mjs.map} +1 -1
  79. package/fesm2022/{acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-Br8j_BF_.mjs → acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-ZclmSbt9.mjs} +16 -10
  80. package/fesm2022/{acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-Br8j_BF_.mjs.map → acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-ZclmSbt9.mjs.map} +1 -1
  81. package/fesm2022/acorex-platform-framework-client-themes-shared.mjs +538 -133
  82. package/fesm2022/acorex-platform-framework-client-themes-shared.mjs.map +1 -1
  83. package/fesm2022/acorex-platform-framework-client-workflow.mjs +26 -66
  84. package/fesm2022/acorex-platform-framework-client-workflow.mjs.map +1 -1
  85. package/package.json +10 -10
  86. package/realtime/README.md +16 -0
  87. package/runtime/README.md +14 -0
  88. package/types/acorex-platform-framework-client-auth.d.ts +291 -52
  89. package/types/acorex-platform-framework-client-common.d.ts +615 -202
  90. package/types/acorex-platform-framework-client-core.d.ts +215 -225
  91. package/types/acorex-platform-framework-client-layout-builder.d.ts +24 -8
  92. package/types/acorex-platform-framework-client-layout-components.d.ts +407 -94
  93. package/types/acorex-platform-framework-client-layout-entity.d.ts +734 -411
  94. package/types/acorex-platform-framework-client-layout-views.d.ts +40 -15
  95. package/types/acorex-platform-framework-client-layout-widget-core.d.ts +66 -17
  96. package/types/acorex-platform-framework-client-layout-widgets.d.ts +295 -68
  97. package/types/acorex-platform-framework-client-realtime.d.ts +183 -6
  98. package/types/acorex-platform-framework-client-runtime.d.ts +134 -28
  99. package/types/acorex-platform-framework-client-themes-default.d.ts +9 -1
  100. package/types/acorex-platform-framework-client-themes-shared.d.ts +8 -2
  101. package/types/acorex-platform-framework-client-workflow.d.ts +12 -37
  102. package/fesm2022/acorex-platform-framework-client-common-common-settings.provider-Euotv9l0.mjs.map +0 -1
  103. package/fesm2022/acorex-platform-framework-client-layout-entity-attachments-page.component-BzUM-JMC.mjs.map +0 -1
  104. package/fesm2022/acorex-platform-framework-client-layout-entity-file-list-popup.component-Ci_CTFtq.mjs.map +0 -1
  105. package/fesm2022/acorex-platform-framework-client-layout-entity-gallery-page.component-DmiB__JR.mjs.map +0 -1
  106. package/fesm2022/acorex-platform-framework-client-layout-widgets-image-preview.popup-CazpERbX.mjs.map +0 -1
  107. package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-single-view.component-CIf1VWNW.mjs.map +0 -1
  108. package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-DRz-kVsT.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { AXPPageLayoutBaseComponent, AXPPageLayoutBase } from '@acorex-platform/framework-client/layout/views';
2
2
  import * as i1 from '@acorex-platform/framework-client/layout/widget-core';
3
3
  import { AXPWidgetCoreModule } from '@acorex-platform/framework-client/layout/widget-core';
4
- import { AXPEntityDefinitionRegistryService, persistedAttachments } from './acorex-platform-framework-client-layout-entity.mjs';
4
+ import { A as AXPEntityDefinitionRegistryService, p as persistedAttachments } from './acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-BXOMs6oD.mjs';
5
5
  import * as i0 from '@angular/core';
6
6
  import { input, inject, DestroyRef, viewChild, signal, computed, effect, ChangeDetectionStrategy, Component } from '@angular/core';
7
7
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
@@ -22,20 +22,29 @@ class AXMAttachmentsPageComponent extends AXPPageLayoutBaseComponent {
22
22
  constructor() {
23
23
  super();
24
24
  /** Default `{}`: avoid NG0950 before page-component-renderer calls setInput. */
25
- this.rootContext = input({}, ...(ngDevMode ? [{ debugName: "rootContext" }] : /* istanbul ignore next */ []));
26
- this.pageConfig = input(...(ngDevMode ? [undefined, { debugName: "pageConfig" }] : /* istanbul ignore next */ []));
25
+ this.rootContext = input({}, /* @ts-ignore */
26
+ ...(ngDevMode ? [{ debugName: "rootContext" }] : /* istanbul ignore next */ []));
27
+ this.pageConfig = input(/* @ts-ignore */
28
+ ...(ngDevMode ? [undefined, { debugName: "pageConfig" }] : /* istanbul ignore next */ []));
27
29
  this.route = inject(ActivatedRoute);
28
30
  this.entityRegistry = inject(AXPEntityDefinitionRegistryService);
29
31
  this.hostPageLayout = inject(AXPPageLayoutBase, { optional: true, skipSelf: true });
30
32
  this.destroyRef = inject(DestroyRef);
31
- this.containerRef = viewChild('containerRef', ...(ngDevMode ? [{ debugName: "containerRef" }] : /* istanbul ignore next */ []));
32
- this.entityDef = signal(null, ...(ngDevMode ? [{ debugName: "entityDef" }] : /* istanbul ignore next */ []));
33
- this.localContext = signal(null, ...(ngDevMode ? [{ debugName: "localContext" }] : /* istanbul ignore next */ []));
34
- this.isDirty = signal(false, ...(ngDevMode ? [{ debugName: "isDirty" }] : /* istanbul ignore next */ []));
35
- this.isSaving = signal(false, ...(ngDevMode ? [{ debugName: "isSaving" }] : /* istanbul ignore next */ []));
36
- this.previousRecordId = signal(undefined, ...(ngDevMode ? [{ debugName: "previousRecordId" }] : /* istanbul ignore next */ []));
33
+ this.containerRef = viewChild('containerRef', /* @ts-ignore */
34
+ ...(ngDevMode ? [{ debugName: "containerRef" }] : /* istanbul ignore next */ []));
35
+ this.entityDef = signal(null, /* @ts-ignore */
36
+ ...(ngDevMode ? [{ debugName: "entityDef" }] : /* istanbul ignore next */ []));
37
+ this.localContext = signal(null, /* @ts-ignore */
38
+ ...(ngDevMode ? [{ debugName: "localContext" }] : /* istanbul ignore next */ []));
39
+ this.isDirty = signal(false, /* @ts-ignore */
40
+ ...(ngDevMode ? [{ debugName: "isDirty" }] : /* istanbul ignore next */ []));
41
+ this.isSaving = signal(false, /* @ts-ignore */
42
+ ...(ngDevMode ? [{ debugName: "isSaving" }] : /* istanbul ignore next */ []));
43
+ this.previousRecordId = signal(undefined, /* @ts-ignore */
44
+ ...(ngDevMode ? [{ debugName: "previousRecordId" }] : /* istanbul ignore next */ []));
37
45
  /** Recreates the inner widget container on discard so the file list resets. */
38
- this.widgetRenderKey = signal(0, ...(ngDevMode ? [{ debugName: "widgetRenderKey" }] : /* istanbul ignore next */ []));
46
+ this.widgetRenderKey = signal(0, /* @ts-ignore */
47
+ ...(ngDevMode ? [{ debugName: "widgetRenderKey" }] : /* istanbul ignore next */ []));
39
48
  this.widgetWireGeneration = 0;
40
49
  this.context = computed(() => {
41
50
  const local = this.localContext();
@@ -43,17 +52,20 @@ class AXMAttachmentsPageComponent extends AXPPageLayoutBaseComponent {
43
52
  return local;
44
53
  }
45
54
  return this.rootContext() ?? {};
46
- }, ...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
55
+ }, /* @ts-ignore */
56
+ ...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
47
57
  this.fieldName = computed(() => {
48
58
  const config = this.pageConfig();
49
59
  return config && typeof config.field === 'string'
50
60
  ? config.field
51
61
  : 'attachments';
52
- }, ...(ngDevMode ? [{ debugName: "fieldName" }] : /* istanbul ignore next */ []));
62
+ }, /* @ts-ignore */
63
+ ...(ngDevMode ? [{ debugName: "fieldName" }] : /* istanbul ignore next */ []));
53
64
  this.recordId = computed(() => {
54
65
  const id = this.rootContext()?.['id'];
55
66
  return typeof id === 'string' && id.length > 0 ? id : undefined;
56
- }, ...(ngDevMode ? [{ debugName: "recordId" }] : /* istanbul ignore next */ []));
67
+ }, /* @ts-ignore */
68
+ ...(ngDevMode ? [{ debugName: "recordId" }] : /* istanbul ignore next */ []));
57
69
  this.node = computed(() => {
58
70
  const field = this.fieldName();
59
71
  const entity = this.entityDef();
@@ -73,11 +85,13 @@ class AXMAttachmentsPageComponent extends AXPPageLayoutBaseComponent {
73
85
  valueTransforms: widget.valueTransforms,
74
86
  options: merge({}, widget.options),
75
87
  };
76
- }, ...(ngDevMode ? [{ debugName: "node" }] : /* istanbul ignore next */ []));
88
+ }, /* @ts-ignore */
89
+ ...(ngDevMode ? [{ debugName: "node" }] : /* istanbul ignore next */ []));
77
90
  this.showAddItemButton = computed(() => {
78
91
  const options = this.node()?.options;
79
92
  return options?.['showAddItemButton'] !== false;
80
- }, ...(ngDevMode ? [{ debugName: "showAddItemButton" }] : /* istanbul ignore next */ []));
93
+ }, /* @ts-ignore */
94
+ ...(ngDevMode ? [{ debugName: "showAddItemButton" }] : /* istanbul ignore next */ []));
81
95
  effect((onCleanup) => {
82
96
  const moduleName = this.route.snapshot.parent?.paramMap.get('module');
83
97
  const entityName = this.route.snapshot.paramMap.get('entity');
@@ -216,7 +230,7 @@ class AXMAttachmentsPageComponent extends AXPPageLayoutBaseComponent {
216
230
  timeOut: 3000,
217
231
  timeOutProgress: true,
218
232
  });
219
- return { success: true };
233
+ return { success: true, kind: 'object', data: undefined };
220
234
  }
221
235
  catch {
222
236
  this.toastService.show({
@@ -328,8 +342,8 @@ class AXMAttachmentsPageComponent extends AXPPageLayoutBaseComponent {
328
342
  const maybeLayout = this.hostPageLayout;
329
343
  maybeLayout?.recompute?.();
330
344
  }
331
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMAttachmentsPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
332
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXMAttachmentsPageComponent, isStandalone: true, selector: "axm-attachments-page", inputs: { rootContext: { classPropertyName: "rootContext", publicName: "rootContext", isSignal: true, isRequired: false, transformFunction: null }, pageConfig: { classPropertyName: "pageConfig", publicName: "pageConfig", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.axp-page-layout-base": "true" } }, providers: [
345
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMAttachmentsPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
346
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXMAttachmentsPageComponent, isStandalone: true, selector: "axm-attachments-page", inputs: { rootContext: { classPropertyName: "rootContext", publicName: "rootContext", isSignal: true, isRequired: false, transformFunction: null }, pageConfig: { classPropertyName: "pageConfig", publicName: "pageConfig", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.axp-page-layout-base": "true" } }, providers: [
333
347
  {
334
348
  provide: AXPPageLayoutBase,
335
349
  useExisting: AXMAttachmentsPageComponent,
@@ -344,7 +358,7 @@ class AXMAttachmentsPageComponent extends AXPPageLayoutBaseComponent {
344
358
  }
345
359
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: AXPWidgetCoreModule }, { kind: "component", type: i1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged", "onLoad"], exportAs: ["widgetRenderer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
346
360
  }
347
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMAttachmentsPageComponent, decorators: [{
361
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXMAttachmentsPageComponent, decorators: [{
348
362
  type: Component,
349
363
  args: [{
350
364
  selector: 'axm-attachments-page',
@@ -373,4 +387,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
373
387
  }], ctorParameters: () => [], propDecorators: { rootContext: [{ type: i0.Input, args: [{ isSignal: true, alias: "rootContext", required: false }] }], pageConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageConfig", required: false }] }], containerRef: [{ type: i0.ViewChild, args: ['containerRef', { isSignal: true }] }] } });
374
388
 
375
389
  export { AXMAttachmentsPageComponent };
376
- //# sourceMappingURL=acorex-platform-framework-client-layout-entity-attachments-page.component-BzUM-JMC.mjs.map
390
+ //# sourceMappingURL=acorex-platform-framework-client-layout-entity-attachments-page.component-DCK-qb-F.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-framework-client-layout-entity-attachments-page.component-DCK-qb-F.mjs","sources":["../../../../../libs/framework/client/layout/entity/src/lib/features/attachments-plugin/attachments-page/attachments-page.component.ts"],"sourcesContent":["\n\nimport { type AXPActionMenuItem, AXPContextChangeEvent, AXPExecuteCommand, AXPRuntimeCommandResult, type AXPWidgetNode } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity } from '@acorex-platform/framework-shared/entity';\n\nimport {\n AXPPageLayoutBase,\n AXPPageLayoutBaseComponent,\n type AXPLayoutDetailsViewAction,\n} from '@acorex-platform/framework-client/layout/views';\nimport { AXPWidgetContainerComponent, AXPWidgetCoreModule, type AXPWidgetCoreElement, type AXPWidgetCoreElementAPI } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXPEntityDefinitionRegistryService } from '../../../entity-registery.service';\n\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n inject,\n input,\n signal,\n Signal,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ActivatedRoute } from '@angular/router';\nimport { get, merge } from 'lodash-es';\nimport { Subject, Subscription } from 'rxjs';\nimport type { AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport {\n persistedAttachments,\n type AXPFileUploaderUploadActionDescriptor,\n} from '../../../widgets/file-uploader-widget';\n\nconst ATTACHMENTS_PAGE_SAVE_COMMAND = 'EntityAttachmentsPage:Save';\nconst ATTACHMENTS_PAGE_DISCARD_COMMAND = 'EntityAttachmentsPage:Discard';\nconst ATTACHMENTS_PAGE_UPLOAD_COMMAND = 'EntityAttachmentsPage:Upload';\n\ntype AttachmentsUploaderApi = AXPWidgetCoreElementAPI & {\n onDirtyChange?: Subject<boolean>;\n onUploadActionsChanged?: Subject<void>;\n getUploadActions?: () => AXPFileUploaderUploadActionDescriptor[];\n runUploadAction?: (plugin: string) => void | Promise<void>;\n markSaved?: () => void;\n syncBaseline?: (saved: unknown) => void;\n discardToBaseline?: () => void;\n isDirty?: () => boolean;\n};\n\n//#region ---- Attachments Page Component ----\n\n/**\n * Page component that renders the attachments property using the file-uploader widget.\n * Used when attachments plugin has display: 'page'.\n * Exposes Save/Discard footer actions (same pattern as questionnaire-questions-page).\n */\n@Component({\n selector: 'axm-attachments-page',\n standalone: true,\n imports: [AXPWidgetCoreModule],\n providers: [\n {\n provide: AXPPageLayoutBase,\n useExisting: AXMAttachmentsPageComponent,\n },\n ],\n template: `\n @for (renderKey of [widgetRenderKey()]; track renderKey) {\n <axp-widgets-container #containerRef [context]=\"context()\" (onContextChanged)=\"onContextChanged($event)\">\n @if (node(); as n) {\n <ng-container axp-widget-renderer [node]=\"n\" [mode]=\"'edit'\"></ng-container>\n }\n </axp-widgets-container>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.axp-page-layout-base]': 'true',\n },\n})\nexport class AXMAttachmentsPageComponent extends AXPPageLayoutBaseComponent {\n /** Default `{}`: avoid NG0950 before page-component-renderer calls setInput. */\n rootContext = input<Record<string, unknown>>({});\n pageConfig = input<Record<string, unknown>>();\n\n private route = inject(ActivatedRoute);\n private entityRegistry = inject(AXPEntityDefinitionRegistryService);\n private hostPageLayout = inject(AXPPageLayoutBase, { optional: true, skipSelf: true });\n private destroyRef = inject(DestroyRef);\n\n private containerRef = viewChild<AXPWidgetContainerComponent>('containerRef');\n\n private entityDef = signal<AXPEntity | null>(null);\n private localContext = signal<Record<string, unknown> | null>(null);\n protected isDirty = signal(false);\n private isSaving = signal(false);\n private previousRecordId = signal<string | undefined>(undefined);\n /** Recreates the inner widget container on discard so the file list resets. */\n protected widgetRenderKey = signal(0);\n private widgetWireGeneration = 0;\n private dirtySubscription?: Subscription;\n private uploadActionsSubscription?: Subscription;\n\n constructor() {\n super();\n\n effect((onCleanup) => {\n const moduleName = this.route.snapshot.parent?.paramMap.get('module');\n const entityName = this.route.snapshot.paramMap.get('entity');\n if (!moduleName || !entityName) {\n this.entityDef.set(null);\n return;\n }\n let cancelled = false;\n this.entityRegistry.resolve(moduleName, entityName).then((entity) => {\n if (!cancelled) {\n this.entityDef.set(entity);\n }\n });\n onCleanup(() => {\n cancelled = true;\n });\n });\n\n effect(() => {\n const ctx = this.rootContext();\n const recordId = typeof ctx?.['id'] === 'string' && ctx['id'].length > 0 ? ctx['id'] : undefined;\n if (!recordId || recordId === this.previousRecordId()) {\n return;\n }\n this.previousRecordId.set(recordId);\n this.localContext.set(null);\n this.isDirty.set(false);\n this.widgetRenderKey.update((key) => key + 1);\n });\n\n effect(() => {\n const field = this.fieldName();\n const node = this.node();\n const renderKey = this.widgetRenderKey();\n if (!node || !field) {\n return;\n }\n void this.wireUploaderWidget(field, renderKey);\n });\n }\n\n context: Signal<Record<string, unknown>> = computed(() => {\n const local = this.localContext();\n if (local != null) {\n return local;\n }\n return this.rootContext() ?? {};\n });\n\n protected fieldName = computed(() => {\n const config = this.pageConfig();\n return config && typeof (config as { field?: string }).field === 'string'\n ? (config as { field: string }).field\n : 'attachments';\n });\n\n protected recordId = computed((): string | undefined => {\n const id = this.rootContext()?.['id'];\n return typeof id === 'string' && id.length > 0 ? id : undefined;\n });\n\n node = computed<AXPWidgetNode | null>(() => {\n const field = this.fieldName();\n const entity = this.entityDef();\n if (!entity?.properties) {\n return null;\n }\n const prop = entity.properties.find((p: { name: string }) => p.name === field);\n if (!prop?.schema?.interface) {\n return null;\n }\n const widget = prop.schema.interface;\n return {\n type: widget.type,\n path: field,\n name: field,\n children: widget.children,\n valueTransforms: widget.valueTransforms,\n options: merge({}, widget.options),\n } as AXPWidgetNode;\n });\n\n protected showAddItemButton = computed(() => {\n const options = this.node()?.options;\n return options?.['showAddItemButton'] !== false;\n });\n\n //#region ---- Unsaved Changes ----\n\n override hasUnsavedChanges(): boolean {\n return this.isDirty();\n }\n\n //#endregion\n\n override async getPrimaryMenuItems(): Promise<AXPLayoutDetailsViewAction[]> {\n const dirty = this.isDirty();\n const saving = this.isSaving();\n\n const uploadActions = this.showAddItemButton() ? [] : await this.buildUploadPrimaryActions();\n\n const saveTitle = (await this.translateService.translateAsync('@general:actions.save.title')) || 'Save';\n const discardTitle = (await this.translateService.translateAsync('@general:actions.discard.title')) || 'Discard';\n\n return [\n ...uploadActions,\n {\n title: discardTitle,\n icon: 'fa-light fa-rotate-left',\n zone: 'footer',\n priority: 'secondary',\n color: 'default',\n visible: dirty,\n disabled: saving,\n command: { name: ATTACHMENTS_PAGE_DISCARD_COMMAND, options: {} },\n },\n {\n title: saveTitle,\n icon: 'fa-light fa-floppy-disk',\n zone: 'footer',\n priority: 'primary',\n color: 'primary',\n visible: dirty,\n disabled: saving,\n command: { name: ATTACHMENTS_PAGE_SAVE_COMMAND, options: {} },\n },\n ];\n }\n\n onContextChanged(event: AXPContextChangeEvent): void {\n if (event.state !== 'changed' || this.isSaving()) {\n return;\n }\n\n const field = this.fieldName();\n const attachments = get(event.data, field);\n const base = this.localContext() ?? this.rootContext() ?? {};\n this.localContext.set({ ...base, [field]: attachments });\n }\n\n override execute(command: AXPExecuteCommand): void | Promise<void> {\n if (command.name === ATTACHMENTS_PAGE_DISCARD_COMMAND) {\n this.handleDiscard();\n return;\n }\n if (command.name === ATTACHMENTS_PAGE_UPLOAD_COMMAND) {\n void this.handleUploadAction(command);\n return;\n }\n if (command.name !== ATTACHMENTS_PAGE_SAVE_COMMAND) {\n return;\n }\n return this.handleSave() as unknown as Promise<void>;\n }\n\n private handleDiscard(): void {\n const field = this.fieldName();\n this.localContext.set(null);\n this.isDirty.set(false);\n this.widgetRenderKey.update((key) => key + 1);\n this.recompute();\n }\n\n private async handleSave(): AXPCommandExecuteResultPromise {\n const field = this.fieldName();\n const id = this.recordId();\n const entity = this.entityDef();\n const updateExec = entity?.commands?.update?.execute as\n | ((payload: Record<string, unknown>) => Promise<unknown>)\n | undefined;\n const ctx = this.localContext() ?? this.rootContext() ?? {};\n const attachments = get(ctx, field);\n\n if (!field || !id || !updateExec) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync('@general:messages.entity.invalid-data'),\n },\n };\n }\n\n this.isSaving.set(true);\n this.recompute();\n try {\n await updateExec({ id, [field]: attachments });\n\n const persisted = persistedAttachments(attachments);\n\n // Keep displaying saved attachments; drop soft-deleted rows (onContextChanged is skipped while isSaving).\n this.localContext.set({ ...(this.rootContext() ?? {}), [field]: persisted });\n\n const uploader = await this.getUploaderWidget();\n uploader?.markSaved?.();\n this.isDirty.set(false);\n this.recompute();\n\n this.toastService.show({\n color: 'success',\n title: await this.translateService.translateAsync('@general:messages.generic.success.title'),\n content: await this.translateService.translateAsync('@general:messages.generic.success.description'),\n location: 'bottom-center',\n closeButton: true,\n timeOut: 3000,\n timeOutProgress: true,\n });\n return { success: true, kind: 'object', data: undefined };\n } catch {\n this.toastService.show({\n color: 'danger',\n title: await this.translateService.translateAsync('@general:messages.error.title'),\n content: await this.translateService.translateAsync('@general:messages.entity.update-failed'),\n });\n return { success: false };\n } finally {\n this.isSaving.set(false);\n this.recompute();\n }\n }\n\n private async wireUploaderWidget(field: string, renderKey: number): Promise<void> {\n const generation = ++this.widgetWireGeneration;\n const container = this.containerRef();\n if (!container) {\n return;\n }\n\n const widget = await container.find(field);\n if (!widget || generation !== this.widgetWireGeneration) {\n return;\n }\n\n this.dirtySubscription?.unsubscribe();\n const api = (widget as AXPWidgetCoreElement).api() as AttachmentsUploaderApi;\n const savedAttachments = get(this.rootContext(), field);\n api.syncBaseline?.(savedAttachments);\n\n if (api.onDirtyChange instanceof Subject) {\n this.dirtySubscription = api.onDirtyChange.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((dirty) => {\n if (generation !== this.widgetWireGeneration) {\n return;\n }\n this.isDirty.set(dirty);\n this.recompute();\n });\n this.isDirty.set(api.isDirty?.() ?? false);\n this.recompute();\n }\n\n if (api.onUploadActionsChanged instanceof Subject) {\n this.uploadActionsSubscription?.unsubscribe();\n this.uploadActionsSubscription = api.onUploadActionsChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n if (generation !== this.widgetWireGeneration) {\n return;\n }\n this.recompute();\n });\n }\n }\n\n private async buildUploadPrimaryActions(): Promise<AXPLayoutDetailsViewAction[]> {\n const uploader = await this.getUploaderWidget();\n const actions = uploader?.getUploadActions?.() ?? [];\n const readonly = Boolean(this.node()?.options?.['readonly']);\n\n if (readonly || actions.length === 0) {\n return [];\n }\n\n const items: AXPActionMenuItem[] = [];\n for (const action of actions) {\n items.push({\n title: action.textKey ?? action.text ?? action.plugin,\n icon: this.normalizePageDropdownIcon(action.icon),\n command: {\n name: ATTACHMENTS_PAGE_UPLOAD_COMMAND,\n options: { plugin: action.plugin },\n },\n });\n }\n\n return [\n {\n title: '@general:actions.add-item.title',\n icon: 'fa-light fa-plus',\n zone: 'header',\n priority: 'primary',\n color: 'primary',\n items,\n },\n ];\n }\n\n /** Page layout dropdown renders `fa-light {{ icon }}`; strip existing style prefix from widget actions. */\n private normalizePageDropdownIcon(icon?: string): string {\n if (!icon) {\n return 'fa-file-arrow-up';\n }\n return icon.replace(/^(fa-light|fa-solid|fa-regular)\\s+/, '');\n }\n\n private async handleUploadAction(command: AXPExecuteCommand): Promise<void> {\n const plugin = command.options?.['plugin'];\n if (typeof plugin !== 'string' || plugin.length === 0) {\n return;\n }\n const uploader = await this.getUploaderWidget();\n await uploader?.runUploadAction?.(plugin);\n }\n\n private async getUploaderWidget(): Promise<AttachmentsUploaderApi | undefined> {\n const container = this.containerRef();\n if (!container) {\n return undefined;\n }\n const widget = await container.find(this.fieldName());\n if (!widget) {\n return undefined;\n }\n return (widget as AXPWidgetCoreElement).api() as AttachmentsUploaderApi;\n }\n\n protected override recompute(): void {\n super.recompute();\n const maybeLayout = this.hostPageLayout as unknown as { recompute?: () => void };\n maybeLayout?.recompute?.();\n }\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;;;;AAmCA,MAAM,6BAA6B,GAAG,4BAA4B;AAClE,MAAM,gCAAgC,GAAG,+BAA+B;AACxE,MAAM,+BAA+B,GAAG,8BAA8B;AAatE;AAEA;;;;AAIG;AAyBG,MAAO,2BAA4B,SAAQ,0BAA0B,CAAA;AAuBzE,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;QAtBT,IAAA,CAAA,WAAW,GAAG,KAAK,CAA0B,EAAE;wFAAC;AAChD,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK;kGAA2B;AAErC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;AAC9B,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,kCAAkC,CAAC;AAC3D,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,iBAAiB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC9E,QAA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,EAAA,QAAA,CAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAqBlB,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAxBvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,mBAAmB,CAAC;AAC9B,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAA,2BAA6B;AACzC,yBAAA;AACF,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;;;AAQT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,8BAA8B,EAAE,MAAM;AACvC,qBAAA;AACF,iBAAA;8SAW+D,cAAc,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
@@ -0,0 +1,162 @@
1
+ import { AXDialogService } from '@acorex/components/dialog';
2
+ import { AXLoadingDialogService } from '@acorex/components/loading-dialog';
3
+ import { AXTranslationService } from '@acorex/core/translation';
4
+ import { AXPSettingsService, extractRequestErrorInfo, platformErrorI18nKey, AXPCommonSettings } from '@acorex-platform/framework-client/common';
5
+ import { runtimeCommandPayloadData } from '@acorex-platform/framework-shared/core';
6
+ import { resolveEntityActionCommandInput } from '@acorex-platform/framework-shared/runtime';
7
+ import { AXPBulkCommandService } from '@acorex-platform/framework-client/runtime';
8
+ import * as i0 from '@angular/core';
9
+ import { inject, Injectable } from '@angular/core';
10
+ import { b as buildSelectedIdsFilter, r as resolveBulkFailureBody } from './acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-BXOMs6oD.mjs';
11
+
12
+ //#region ---- Imports ----
13
+ //#endregion
14
+ //#region ---- Helpers ----
15
+ function resolveInput(input = {}) {
16
+ const context = resolveEntityActionCommandInput(input);
17
+ const options = {
18
+ ...(context.options ?? {}),
19
+ };
20
+ return {
21
+ entity: options.entity ?? context.entity,
22
+ data: context.data,
23
+ options,
24
+ };
25
+ }
26
+ //#endregion
27
+ //#region ---- Bulk entity command ----
28
+ /**
29
+ * Frontend orchestrator for filter-only server bulk commands.
30
+ * Builds a filter from selected rows (or uses options.filter) and calls `POST /runtime/commands/bulk`.
31
+ */
32
+ class AXPBulkEntityCommand {
33
+ constructor() {
34
+ this.dialogService = inject(AXDialogService);
35
+ this.loadingDialog = inject(AXLoadingDialogService);
36
+ this.translationService = inject(AXTranslationService);
37
+ this.settingsService = inject(AXPSettingsService);
38
+ this.bulkCommands = inject(AXPBulkCommandService);
39
+ }
40
+ async execute(input = {}) {
41
+ const resolved = resolveInput(input);
42
+ const commandName = resolved.options.command?.trim();
43
+ const entity = resolved.entity?.trim();
44
+ if (!commandName) {
45
+ return {
46
+ success: false,
47
+ message: {
48
+ text: await this.translationService.translateAsync('@general:messages.entity.invalid-data'),
49
+ },
50
+ };
51
+ }
52
+ if (!entity) {
53
+ return {
54
+ success: false,
55
+ message: {
56
+ text: await this.translationService.translateAsync('@general:messages.entity.invalid-data'),
57
+ },
58
+ };
59
+ }
60
+ const filter = resolved.options.filter ?? buildSelectedIdsFilter(resolved.data);
61
+ if (!filter) {
62
+ return {
63
+ success: false,
64
+ message: {
65
+ text: await this.translationService.translateAsync('@general:workflow.no-item'),
66
+ },
67
+ };
68
+ }
69
+ if (!resolved.options.skipConfirm) {
70
+ const confirmed = await this.dialogService.confirm(await this.translationService.translateAsync(resolved.options.confirm?.title ?? '@general:workflow.bulk.confirm-title'), await this.translationService.translateAsync(resolved.options.confirm?.message ?? '@general:workflow.bulk.confirm-message'), 'primary', 'horizontal', false, 'cancel');
71
+ if (!confirmed.result) {
72
+ return { success: false };
73
+ }
74
+ }
75
+ const loading = this.loadingDialog.show({
76
+ title: await this.translationService.translateAsync('@general:workflow.bulk.processing-title'),
77
+ mode: 'indeterminate',
78
+ status: await this.translationService.translateAsync('@general:workflow.bulk.processing-status'),
79
+ text: '',
80
+ });
81
+ let result;
82
+ try {
83
+ const request = {
84
+ name: commandName,
85
+ entity,
86
+ filter,
87
+ input: resolved.options.input,
88
+ idField: resolved.options.idField,
89
+ maxItems: resolved.options.maxItems,
90
+ concurrency: resolved.options.concurrency,
91
+ };
92
+ result = await this.bulkCommands.execute(request);
93
+ }
94
+ catch (error) {
95
+ const info = extractRequestErrorInfo(error);
96
+ return {
97
+ success: false,
98
+ message: {
99
+ type: 'error',
100
+ code: info?.code,
101
+ text: platformErrorI18nKey(info?.code) ??
102
+ info?.message ??
103
+ '@general:workflow.bulk.fail-body',
104
+ details: info?.details,
105
+ },
106
+ };
107
+ }
108
+ finally {
109
+ // Close before result alerts — otherwise the loading overlay blocks the success dialog.
110
+ loading.close();
111
+ }
112
+ const data = runtimeCommandPayloadData(result) ??
113
+ result.message?.details ?? {
114
+ total: 0,
115
+ succeeded: 0,
116
+ failed: 0,
117
+ results: [],
118
+ };
119
+ await this.presentResult(data);
120
+ return result.success
121
+ ? { success: true, kind: 'object', data, message: result.message, metadata: result.metadata }
122
+ : { success: false, message: result.message ?? { details: data }, metadata: result.metadata };
123
+ }
124
+ async presentResult(data) {
125
+ const showResult = await this.settingsService.get(AXPCommonSettings.EnableOperationToasts);
126
+ if (!showResult) {
127
+ return;
128
+ }
129
+ if (data.succeeded > 0 && data.failed === 0) {
130
+ await this.dialogService.alert(await this.translationService.translateAsync('@general:workflow.bulk.success-title'), await this.translationService.translateAsync('@general:workflow.bulk.success-body', {
131
+ params: { item: data.succeeded },
132
+ }), 'success');
133
+ return;
134
+ }
135
+ if (data.succeeded > 0 && data.failed > 0) {
136
+ const body = await resolveBulkFailureBody(this.translationService, data.results, {
137
+ summaryKey: '@general:workflow.bulk.partial-body',
138
+ summaryWithReasonKey: '@general:workflow.bulk.partial-body-with-reason',
139
+ summaryParams: { success: data.succeeded, fail: data.failed },
140
+ singleShowsReasonOnly: false,
141
+ });
142
+ await this.dialogService.alert(await this.translationService.translateAsync('@general:workflow.bulk.partial-title'), body, 'warning');
143
+ return;
144
+ }
145
+ const body = await resolveBulkFailureBody(this.translationService, data.results, {
146
+ summaryKey: '@general:workflow.bulk.fail-body',
147
+ summaryWithReasonKey: '@general:workflow.bulk.fail-body-with-reason',
148
+ summaryParams: { item: data.failed || data.total },
149
+ singleShowsReasonOnly: true,
150
+ });
151
+ await this.dialogService.alert(await this.translationService.translateAsync('@general:workflow.bulk.fail-title'), body, 'danger');
152
+ }
153
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPBulkEntityCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
154
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPBulkEntityCommand, providedIn: 'root' }); }
155
+ }
156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPBulkEntityCommand, decorators: [{
157
+ type: Injectable,
158
+ args: [{ providedIn: 'root' }]
159
+ }] });
160
+
161
+ export { AXPBulkEntityCommand };
162
+ //# sourceMappingURL=acorex-platform-framework-client-layout-entity-bulk-entity.command-Cs3agnpF.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-framework-client-layout-entity-bulk-entity.command-Cs3agnpF.mjs","sources":["../../../../../libs/framework/client/layout/entity/src/lib/commands/bulk-entity.command.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXDialogService } from '@acorex/components/dialog';\nimport { AXLoadingDialogService } from '@acorex/components/loading-dialog';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPCommonSettings,\n AXPSettingsService,\n extractRequestErrorInfo,\n platformErrorI18nKey,\n} from '@acorex-platform/framework-client/common';\nimport type { AXDataSourceFilterOption, AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\nimport { runtimeCommandPayloadData } from '@acorex-platform/framework-shared/core';\nimport type {\n AXPBulkCommandRequest,\n AXPBulkCommandResultData,\n AXPCommandExecuteResultPromise,\n AXPEntityActionCommandInput,\n} from '@acorex-platform/framework-shared/runtime';\nimport { resolveEntityActionCommandInput } from '@acorex-platform/framework-shared/runtime';\nimport { AXPBulkCommandService } from '@acorex-platform/framework-client/runtime';\nimport { AXPCommand } from '@acorex-platform/framework-shared/runtime';\nimport { Injectable, inject } from '@angular/core';\n\nimport { resolveBulkFailureBody } from '../utils/bulk-failure-message.util';\nimport { buildSelectedIdsFilter } from '../utils/bulk-filter.util';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport interface AXPBulkEntityCommandOptions {\n /** Server command key to fan out (required). */\n command?: string;\n /** Entity used to resolve the filter. Defaults to root `entity`. */\n entity?: string;\n /** Override filter. When omitted, builds `id in [...]` from selected rows. */\n filter?: AXDataSourceFilterOption;\n /** Field name for each item id in the inner command input. Default: `id`. */\n idField?: string;\n /** Shared input merged into each inner command call. */\n input?: Record<string, unknown>;\n maxItems?: number;\n concurrency?: number;\n confirm?: {\n title?: string;\n message?: string;\n };\n skipConfirm?: boolean;\n}\n\nexport type AXPBulkEntityCommandInput = AXPEntityActionCommandInput & {\n options?: AXPBulkEntityCommandOptions;\n};\n\n//#endregion\n\n//#region ---- Helpers ----\n\nfunction resolveInput(input: AXPBulkEntityCommandInput = {}): {\n entity?: string;\n data?: unknown;\n options: AXPBulkEntityCommandOptions;\n} {\n const context = resolveEntityActionCommandInput(input);\n const options = {\n ...((context.options as AXPBulkEntityCommandOptions | undefined) ?? {}),\n };\n return {\n entity: options.entity ?? context.entity,\n data: context.data,\n options,\n };\n}\n\n//#endregion\n\n//#region ---- Bulk entity command ----\n\n/**\n * Frontend orchestrator for filter-only server bulk commands.\n * Builds a filter from selected rows (or uses options.filter) and calls `POST /runtime/commands/bulk`.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXPBulkEntityCommand\n implements AXPCommand<AXPBulkEntityCommandInput, AXPBulkCommandResultData>\n{\n private readonly dialogService = inject(AXDialogService);\n private readonly loadingDialog = inject(AXLoadingDialogService);\n private readonly translationService = inject(AXTranslationService);\n private readonly settingsService = inject(AXPSettingsService);\n private readonly bulkCommands = inject(AXPBulkCommandService);\n\n async execute(\n input: AXPBulkEntityCommandInput = {},\n ): AXPCommandExecuteResultPromise<AXPBulkCommandResultData> {\n const resolved = resolveInput(input);\n const commandName = resolved.options.command?.trim();\n const entity = resolved.entity?.trim();\n\n if (!commandName) {\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync('@general:messages.entity.invalid-data'),\n },\n };\n }\n if (!entity) {\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync('@general:messages.entity.invalid-data'),\n },\n };\n }\n\n const filter = resolved.options.filter ?? buildSelectedIdsFilter(resolved.data);\n if (!filter) {\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync('@general:workflow.no-item'),\n },\n };\n }\n\n if (!resolved.options.skipConfirm) {\n const confirmed = await this.dialogService.confirm(\n await this.translationService.translateAsync(\n resolved.options.confirm?.title ?? '@general:workflow.bulk.confirm-title',\n ),\n await this.translationService.translateAsync(\n resolved.options.confirm?.message ?? '@general:workflow.bulk.confirm-message',\n ),\n 'primary',\n 'horizontal',\n false,\n 'cancel',\n );\n if (!confirmed.result) {\n return { success: false };\n }\n }\n\n const loading = this.loadingDialog.show({\n title: await this.translationService.translateAsync('@general:workflow.bulk.processing-title'),\n mode: 'indeterminate',\n status: await this.translationService.translateAsync('@general:workflow.bulk.processing-status'),\n text: '',\n });\n\n let result: AXPRuntimeCommandResult<AXPBulkCommandResultData>;\n try {\n const request: AXPBulkCommandRequest = {\n name: commandName,\n entity,\n filter,\n input: resolved.options.input,\n idField: resolved.options.idField,\n maxItems: resolved.options.maxItems,\n concurrency: resolved.options.concurrency,\n };\n\n result = await this.bulkCommands.execute(request);\n } catch (error: unknown) {\n const info = extractRequestErrorInfo(error);\n return {\n success: false,\n message: {\n type: 'error',\n code: info?.code,\n text:\n platformErrorI18nKey(info?.code) ??\n info?.message ??\n '@general:workflow.bulk.fail-body',\n details: info?.details,\n },\n };\n } finally {\n // Close before result alerts — otherwise the loading overlay blocks the success dialog.\n loading.close();\n }\n\n const data =\n runtimeCommandPayloadData(result) ??\n (result.message?.details as AXPBulkCommandResultData | undefined) ?? {\n total: 0,\n succeeded: 0,\n failed: 0,\n results: [],\n };\n await this.presentResult(data);\n return result.success\n ? { success: true, kind: 'object', data, message: result.message, metadata: result.metadata }\n : { success: false, message: result.message ?? { details: data }, metadata: result.metadata };\n }\n\n private async presentResult(data: AXPBulkCommandResultData): Promise<void> {\n const showResult = await this.settingsService.get(AXPCommonSettings.EnableOperationToasts);\n if (!showResult) {\n return;\n }\n\n if (data.succeeded > 0 && data.failed === 0) {\n await this.dialogService.alert(\n await this.translationService.translateAsync('@general:workflow.bulk.success-title'),\n await this.translationService.translateAsync('@general:workflow.bulk.success-body', {\n params: { item: data.succeeded },\n }),\n 'success',\n );\n return;\n }\n\n if (data.succeeded > 0 && data.failed > 0) {\n const body = await resolveBulkFailureBody(this.translationService, data.results, {\n summaryKey: '@general:workflow.bulk.partial-body',\n summaryWithReasonKey: '@general:workflow.bulk.partial-body-with-reason',\n summaryParams: { success: data.succeeded, fail: data.failed },\n singleShowsReasonOnly: false,\n });\n await this.dialogService.alert(\n await this.translationService.translateAsync('@general:workflow.bulk.partial-title'),\n body,\n 'warning',\n );\n return;\n }\n\n const body = await resolveBulkFailureBody(this.translationService, data.results, {\n summaryKey: '@general:workflow.bulk.fail-body',\n summaryWithReasonKey: '@general:workflow.bulk.fail-body-with-reason',\n summaryParams: { item: data.failed || data.total },\n singleShowsReasonOnly: true,\n });\n await this.dialogService.alert(\n await this.translationService.translateAsync('@general:workflow.bulk.fail-title'),\n body,\n 'danger',\n );\n }\n}\n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AAC7D,gBAAA,qBAAqB,EAAE,KAAK;AAC7B,aAAA,CAAC;YACF,MAAM,IAAI,CAAC,aAAa,CAAC,KAAK,CAC5B,MAAM,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC,sCAAsC,CAAC,EACpF,IAAI,EACJ,SAAS,CACV;YACD;QACF;AAEA,QAAA,MAAM,IAAI,GAAG,MAAM,sBAAsB,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,OAAO,EAAE;AAC/E,YAAA,UAAU,EAAE,kCAAkC;AAC9C,YAAA,oBAAoB,EAAE,8CAA8C;YACpE,aAAa,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,EAAE;AAClD,YAAA,qBAAqB,EAAE,IAAI;AAC5B,SAAA,CAAC;QACF,MAAM,IAAI,CAAC,aAAa,CAAC,KAAK,CAC5B,MAAM,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC,mCAAmC,CAAC,EACjF,IAAI,EACJ,QAAQ,CACT;IACH;8GA7JW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAApB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,cADP,MAAM,EAAA,CAAA,CAAA;;2FACnB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
@@ -10,7 +10,7 @@ import { AXTranslationModule } from '@acorex/core/translation';
10
10
  import * as i4 from '@angular/common';
11
11
  import { CommonModule } from '@angular/common';
12
12
  import * as i0 from '@angular/core';
13
- import { input, computed, linkedSignal, Component } from '@angular/core';
13
+ import { input, computed, linkedSignal, ChangeDetectionStrategy, Component } from '@angular/core';
14
14
  import * as i1$1 from '@acorex-platform/framework-client/layout/widget-core';
15
15
  import { AXPWidgetCoreModule } from '@acorex-platform/framework-client/layout/widget-core';
16
16
 
@@ -19,31 +19,42 @@ class AXPFileListPopupComponent extends AXBasePageComponent {
19
19
  super(...arguments);
20
20
  //#region ---- Component Properties ----
21
21
  /** Hydrated file rows only; storage prefixes are resolved in entity/mock middleware before UI. */
22
- this.files = input([], ...(ngDevMode ? [{ debugName: "files" }] : /* istanbul ignore next */ []));
22
+ this.files = input([], /* @ts-ignore */
23
+ ...(ngDevMode ? [{ debugName: "files" }] : /* istanbul ignore next */ []));
23
24
  /**
24
25
  * When true, same as file-uploader `options.readonly` (no add/upload, list actions download-only).
25
26
  * Use property name `isReadonly` in popup `data` so host/popup binding resolves the input.
26
27
  */
27
- this.isReadonly = input(false, ...(ngDevMode ? [{ debugName: "isReadonly" }] : /* istanbul ignore next */ []));
28
- this.multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
29
- this.fileEditable = input(true, ...(ngDevMode ? [{ debugName: "fileEditable" }] : /* istanbul ignore next */ []));
30
- this.accept = input('*', ...(ngDevMode ? [{ debugName: "accept" }] : /* istanbul ignore next */ []));
31
- this.maxFileSize = input(1024 * 1024 * 100, ...(ngDevMode ? [{ debugName: "maxFileSize" }] : /* istanbul ignore next */ []));
28
+ this.isReadonly = input(false, /* @ts-ignore */
29
+ ...(ngDevMode ? [{ debugName: "isReadonly" }] : /* istanbul ignore next */ []));
30
+ this.multiple = input(false, /* @ts-ignore */
31
+ ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
32
+ this.fileEditable = input(true, /* @ts-ignore */
33
+ ...(ngDevMode ? [{ debugName: "fileEditable" }] : /* istanbul ignore next */ []));
34
+ this.accept = input('*', /* @ts-ignore */
35
+ ...(ngDevMode ? [{ debugName: "accept" }] : /* istanbul ignore next */ []));
36
+ this.maxFileSize = input(1024 * 1024 * 100, /* @ts-ignore */
37
+ ...(ngDevMode ? [{ debugName: "maxFileSize" }] : /* istanbul ignore next */ []));
32
38
  /** Same as widget plugins (e.g. document) so hooks/actions run in popup too. */
33
- this.plugins = input([], ...(ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []));
34
- this.showAddItemButton = input(true, ...(ngDevMode ? [{ debugName: "showAddItemButton" }] : /* istanbul ignore next */ []));
39
+ this.plugins = input([], /* @ts-ignore */
40
+ ...(ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []));
41
+ this.showAddItemButton = input(true, /* @ts-ignore */
42
+ ...(ngDevMode ? [{ debugName: "showAddItemButton" }] : /* istanbul ignore next */ []));
35
43
  /** File edit dialog options (mode + visible fields). */
36
- this.editDialog = input(undefined, ...(ngDevMode ? [{ debugName: "editDialog" }] : /* istanbul ignore next */ []));
44
+ this.editDialog = input(undefined, /* @ts-ignore */
45
+ ...(ngDevMode ? [{ debugName: "editDialog" }] : /* istanbul ignore next */ []));
37
46
  //#endregion
38
47
  //#region ---- Computed Properties ----
39
48
  /**
40
49
  * Always render the edit widget so `options` (readonly, plugins, editDialog, …) match the entity form.
41
50
  * Readonly behavior comes from `node.options.readonly`, not from view mode.
42
51
  */
43
- this.mode = computed(() => 'edit', ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
52
+ this.mode = computed(() => 'edit', /* @ts-ignore */
53
+ ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
44
54
  //#endregion
45
55
  //#region ---- Context & Node Management ----
46
- this.context = linkedSignal(() => ({}), ...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
56
+ this.context = linkedSignal(() => ({}), /* @ts-ignore */
57
+ ...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
47
58
  this.node = computed(() => ({
48
59
  type: 'attachments',
49
60
  path: 'files',
@@ -58,7 +69,8 @@ class AXPFileListPopupComponent extends AXBasePageComponent {
58
69
  plugins: this.resolveInput(this.plugins, []),
59
70
  editDialog: this.editDialog(),
60
71
  },
61
- }), ...(ngDevMode ? [{ debugName: "node" }] : /* istanbul ignore next */ []));
72
+ }), /* @ts-ignore */
73
+ ...(ngDevMode ? [{ debugName: "node" }] : /* istanbul ignore next */ []));
62
74
  }
63
75
  onContextChanged(event) {
64
76
  this.context.set(event.data);
@@ -74,14 +86,14 @@ class AXPFileListPopupComponent extends AXBasePageComponent {
74
86
  data: this.context(),
75
87
  });
76
88
  }
77
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPFileListPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
78
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXPFileListPopupComponent, isStandalone: true, selector: "ng-component", inputs: { files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null }, isReadonly: { classPropertyName: "isReadonly", publicName: "isReadonly", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, fileEditable: { classPropertyName: "fileEditable", publicName: "fileEditable", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, maxFileSize: { classPropertyName: "maxFileSize", publicName: "maxFileSize", isSignal: true, isRequired: false, transformFunction: null }, plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null }, showAddItemButton: { classPropertyName: "showAddItemButton", publicName: "showAddItemButton", isSignal: true, isRequired: false, transformFunction: null }, editDialog: { classPropertyName: "editDialog", publicName: "editDialog", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: "<div class=\"p-2\">\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"onContextChanged($event)\">\n <ng-container axp-widget-renderer [node]=\"node()\" [mode]=\"mode()\"></ng-container>\n </axp-widgets-container>\n</div>\n<ax-footer>\n <ax-suffix>\n @if (isReadonly()) {\n <ax-button [text]=\"'@general:actions.close.title' | translate | async\" (click)=\"close()\"></ax-button>\n } @else {\n <ax-button [text]=\"'@general:actions.discard.title' | translate | async\" (click)=\"close()\"></ax-button>\n <ax-button\n [text]=\"'@general:actions.apply.title' | translate | async\"\n (click)=\"apply()\"\n [color]=\"'primary'\"\n ></ax-button>\n }\n </ax-suffix>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type:
89
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPFileListPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
90
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPFileListPopupComponent, isStandalone: true, selector: "ng-component", inputs: { files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null }, isReadonly: { classPropertyName: "isReadonly", publicName: "isReadonly", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, fileEditable: { classPropertyName: "fileEditable", publicName: "fileEditable", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, maxFileSize: { classPropertyName: "maxFileSize", publicName: "maxFileSize", isSignal: true, isRequired: false, transformFunction: null }, plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null }, showAddItemButton: { classPropertyName: "showAddItemButton", publicName: "showAddItemButton", isSignal: true, isRequired: false, transformFunction: null }, editDialog: { classPropertyName: "editDialog", publicName: "editDialog", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: "<div class=\"p-2\">\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"onContextChanged($event)\">\n <ng-container axp-widget-renderer [node]=\"node()\" [mode]=\"mode()\"></ng-container>\n </axp-widgets-container>\n</div>\n<ax-footer>\n <ax-suffix>\n @if (isReadonly()) {\n <ax-button [text]=\"'@general:actions.close.title' | translate | async\" (click)=\"close()\"></ax-button>\n } @else {\n <ax-button [text]=\"'@general:actions.discard.title' | translate | async\" (click)=\"close()\"></ax-button>\n <ax-button\n [text]=\"'@general:actions.apply.title' | translate | async\"\n (click)=\"apply()\"\n [color]=\"'primary'\"\n ></ax-button>\n }\n </ax-suffix>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type:
79
91
  //
80
92
  AXLabelModule }, { kind: "ngmodule", type: AXCheckBoxModule }, { 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: i1.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: "ngmodule", type: AXTranslationModule }, { kind: "ngmodule", type:
81
93
  //
82
- AXPWidgetCoreModule }, { kind: "component", type: i1$1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i1$1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged", "onLoad"], exportAs: ["widgetRenderer"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3$1.AXTranslatorPipe, name: "translate" }] }); }
94
+ AXPWidgetCoreModule }, { kind: "component", type: i1$1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i1$1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged", "onLoad"], exportAs: ["widgetRenderer"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
83
95
  }
84
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPFileListPopupComponent, decorators: [{
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPFileListPopupComponent, decorators: [{
85
97
  type: Component,
86
98
  args: [{ imports: [
87
99
  CommonModule,
@@ -93,8 +105,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
93
105
  AXTranslationModule,
94
106
  //
95
107
  AXPWidgetCoreModule,
96
- ], template: "<div class=\"p-2\">\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"onContextChanged($event)\">\n <ng-container axp-widget-renderer [node]=\"node()\" [mode]=\"mode()\"></ng-container>\n </axp-widgets-container>\n</div>\n<ax-footer>\n <ax-suffix>\n @if (isReadonly()) {\n <ax-button [text]=\"'@general:actions.close.title' | translate | async\" (click)=\"close()\"></ax-button>\n } @else {\n <ax-button [text]=\"'@general:actions.discard.title' | translate | async\" (click)=\"close()\"></ax-button>\n <ax-button\n [text]=\"'@general:actions.apply.title' | translate | async\"\n (click)=\"apply()\"\n [color]=\"'primary'\"\n ></ax-button>\n }\n </ax-suffix>\n</ax-footer>\n" }]
108
+ ], changeDetection: ChangeDetectionStrategy.Eager, template: "<div class=\"p-2\">\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"onContextChanged($event)\">\n <ng-container axp-widget-renderer [node]=\"node()\" [mode]=\"mode()\"></ng-container>\n </axp-widgets-container>\n</div>\n<ax-footer>\n <ax-suffix>\n @if (isReadonly()) {\n <ax-button [text]=\"'@general:actions.close.title' | translate | async\" (click)=\"close()\"></ax-button>\n } @else {\n <ax-button [text]=\"'@general:actions.discard.title' | translate | async\" (click)=\"close()\"></ax-button>\n <ax-button\n [text]=\"'@general:actions.apply.title' | translate | async\"\n (click)=\"apply()\"\n [color]=\"'primary'\"\n ></ax-button>\n }\n </ax-suffix>\n</ax-footer>\n" }]
97
109
  }], propDecorators: { files: [{ type: i0.Input, args: [{ isSignal: true, alias: "files", required: false }] }], isReadonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "isReadonly", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], fileEditable: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileEditable", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], maxFileSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxFileSize", required: false }] }], plugins: [{ type: i0.Input, args: [{ isSignal: true, alias: "plugins", required: false }] }], showAddItemButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAddItemButton", required: false }] }], editDialog: [{ type: i0.Input, args: [{ isSignal: true, alias: "editDialog", required: false }] }] } });
98
110
 
99
111
  export { AXPFileListPopupComponent };
100
- //# sourceMappingURL=acorex-platform-framework-client-layout-entity-file-list-popup.component-Ci_CTFtq.mjs.map
112
+ //# sourceMappingURL=acorex-platform-framework-client-layout-entity-file-list-popup.component-p0hxDb0W.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-framework-client-layout-entity-file-list-popup.component-p0hxDb0W.mjs","sources":["../../../../../libs/framework/client/layout/entity/src/lib/widgets/file-uploader-widget/file-list-popup/file-list-popup.component.ts","../../../../../libs/framework/client/layout/entity/src/lib/widgets/file-uploader-widget/file-list-popup/file-list-popup.component.html"],"sourcesContent":["import { AXPContextChangeEvent, AXPFileListItem, type AXPWidgetNode } from '@acorex-platform/framework-shared/core';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTranslationModule } from '@acorex/core/translation';\n\nimport { CommonModule } from '@angular/common';\nimport { Component, computed, input, linkedSignal, ChangeDetectionStrategy } from '@angular/core';\nimport { AXPWidgetCoreModule } from '@acorex-platform/framework-client/layout/widget-core';\nimport type { AXPFileUploaderEditDialogOptions } from '../file-uploader-widget.types';\n\n@Component({\n imports: [\n CommonModule,\n //\n AXLabelModule,\n AXCheckBoxModule,\n AXDecoratorModule,\n AXButtonModule,\n AXTranslationModule,\n //\n AXPWidgetCoreModule,\n ],\n changeDetection: ChangeDetectionStrategy.Eager,\n templateUrl: './file-list-popup.component.html',\n})\nexport class AXPFileListPopupComponent extends AXBasePageComponent {\n //#region ---- Component Properties ----\n\n /** Hydrated file rows only; storage prefixes are resolved in entity/mock middleware before UI. */\n files = input<AXPFileListItem[]>([]);\n /**\n * When true, same as file-uploader `options.readonly` (no add/upload, list actions download-only).\n * Use property name `isReadonly` in popup `data` so host/popup binding resolves the input.\n */\n isReadonly = input<boolean>(false);\n multiple = input<boolean>(false);\n fileEditable = input<boolean>(true);\n accept = input<string>('*');\n maxFileSize = input<number>(1024 * 1024 * 100);\n /** Same as widget plugins (e.g. document) so hooks/actions run in popup too. */\n plugins = input<{ name: string; options?: unknown }[]>([]);\n showAddItemButton = input<boolean>(true);\n /** File edit dialog options (mode + visible fields). */\n editDialog = input<AXPFileUploaderEditDialogOptions | undefined>(undefined);\n\n //#endregion\n\n //#region ---- Computed Properties ----\n\n /**\n * Always render the edit widget so `options` (readonly, plugins, editDialog, …) match the entity form.\n * Readonly behavior comes from `node.options.readonly`, not from view mode.\n */\n protected mode = computed(() => 'edit' as const);\n\n //#endregion\n\n //#region ---- Context & Node Management ----\n\n protected context = linkedSignal<{}>(() => ({}));\n\n protected onContextChanged(event: AXPContextChangeEvent) {\n this.context.set(event.data);\n }\n\n /** Resolves input that may be a signal (input()) or a raw value when popup injects data. */\n private resolveInput<T>(value: (() => T) | T, fallback: T): T {\n return typeof value === 'function' ? (value as () => T)() : (value ?? fallback);\n }\n\n protected node = computed<AXPWidgetNode>(() => ({\n type: 'attachments',\n path: 'files',\n defaultValue: Array.isArray(this.files()) ? this.files() : [],\n options: {\n readonly: this.isReadonly(),\n multiple: this.multiple(),\n accept: this.accept(),\n maxFileSize: this.maxFileSize(),\n fileEditable: this.fileEditable(),\n showAddItemButton: this.showAddItemButton(),\n plugins: this.resolveInput(this.plugins, []),\n editDialog: this.editDialog(),\n },\n }));\n\n //#endregion\n\n //#region ---- UI Handlers ----\n\n apply() {\n this.close({\n data: this.context(),\n });\n }\n\n //#endregion\n}\n","<div class=\"p-2\">\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"onContextChanged($event)\">\n <ng-container axp-widget-renderer [node]=\"node()\" [mode]=\"mode()\"></ng-container>\n </axp-widgets-container>\n</div>\n<ax-footer>\n <ax-suffix>\n @if (isReadonly()) {\n <ax-button [text]=\"'@general:actions.close.title' | translate | async\" (click)=\"close()\"></ax-button>\n } @else {\n <ax-button [text]=\"'@general:actions.discard.title' | translate | async\" (click)=\"close()\"></ax-button>\n <ax-button\n [text]=\"'@general:actions.apply.title' | translate | async\"\n (click)=\"apply()\"\n [color]=\"'primary'\"\n ></ax-button>\n }\n </ax-suffix>\n</ax-footer>\n"],"names":["i1","i3","i5"],"mappings":";;;;;;;;;;;;;;;;AA4BM,MAAO,yBAA0B,SAAQ,mBAAmB,CAAA;AAflE,IAAA,WAAA,GAAA;;;;QAmBE,IAAA,CAAA,KAAK,GAAG,KAAK,CAAoB,EAAE;kFAAC;AACpC;;;AAGG;QACH,IAAA,CAA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