@acorex-platform/framework-client 0.0.53 → 0.0.56

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 (87) hide show
  1. package/fesm2022/acorex-platform-framework-client-common.mjs +39 -20
  2. package/fesm2022/acorex-platform-framework-client-common.mjs.map +1 -1
  3. package/fesm2022/acorex-platform-framework-client-layout-components.mjs +129 -52
  4. package/fesm2022/acorex-platform-framework-client-layout-components.mjs.map +1 -1
  5. package/fesm2022/acorex-platform-framework-client-layout-designer.mjs +48 -34
  6. package/fesm2022/acorex-platform-framework-client-layout-designer.mjs.map +1 -1
  7. package/fesm2022/{acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-DS3F1_EN.mjs → acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-DLW9GiJh.mjs} +647 -333
  8. package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-DLW9GiJh.mjs.map +1 -0
  9. package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-CWeKcj8t.mjs → acorex-platform-framework-client-layout-entity-attachments-page.component-BY_hDj8A.mjs} +2 -2
  10. package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-CWeKcj8t.mjs.map → acorex-platform-framework-client-layout-entity-attachments-page.component-BY_hDj8A.mjs.map} +1 -1
  11. package/fesm2022/{acorex-platform-framework-client-layout-entity-bulk-entity.command-CgsgFxT8.mjs → acorex-platform-framework-client-layout-entity-bulk-entity.command-DccwhqkT.mjs} +2 -2
  12. package/fesm2022/{acorex-platform-framework-client-layout-entity-bulk-entity.command-CgsgFxT8.mjs.map → acorex-platform-framework-client-layout-entity-bulk-entity.command-DccwhqkT.mjs.map} +1 -1
  13. package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-Pfp7Lw_A.mjs → acorex-platform-framework-client-layout-entity-gallery-page.component-D7xxrauC.mjs} +2 -2
  14. package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-Pfp7Lw_A.mjs.map → acorex-platform-framework-client-layout-entity-gallery-page.component-D7xxrauC.mjs.map} +1 -1
  15. package/fesm2022/acorex-platform-framework-client-layout-entity.mjs +1 -1
  16. package/fesm2022/acorex-platform-framework-client-layout-views.mjs +21 -10
  17. package/fesm2022/acorex-platform-framework-client-layout-views.mjs.map +1 -1
  18. package/fesm2022/{acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-CWvC9Eh2.mjs → acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-DuFZf8eb.mjs} +509 -380
  19. package/fesm2022/acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-DuFZf8eb.mjs.map +1 -0
  20. package/fesm2022/{acorex-platform-framework-client-layout-widgets-button-widget-designer.component-BkrPu1wO.mjs → acorex-platform-framework-client-layout-widgets-button-widget-designer.component-Cw2yZfaz.mjs} +3 -3
  21. package/fesm2022/{acorex-platform-framework-client-layout-widgets-button-widget-designer.component-BkrPu1wO.mjs.map → acorex-platform-framework-client-layout-widgets-button-widget-designer.component-Cw2yZfaz.mjs.map} +1 -1
  22. package/fesm2022/{acorex-platform-framework-client-layout-widgets-condition-builder-edit-popup.component-WpiEHusZ.mjs → acorex-platform-framework-client-layout-widgets-condition-builder-edit-popup.component-Cbd5Va40.mjs} +3 -3
  23. package/fesm2022/{acorex-platform-framework-client-layout-widgets-condition-builder-edit-popup.component-WpiEHusZ.mjs.map → acorex-platform-framework-client-layout-widgets-condition-builder-edit-popup.component-Cbd5Va40.mjs.map} +1 -1
  24. package/fesm2022/{acorex-platform-framework-client-layout-widgets-page-widget-designer.component-Cadl6guA.mjs → acorex-platform-framework-client-layout-widgets-page-widget-designer.component-CcBk1zN_.mjs} +3 -3
  25. package/fesm2022/{acorex-platform-framework-client-layout-widgets-page-widget-designer.component-Cadl6guA.mjs.map → acorex-platform-framework-client-layout-widgets-page-widget-designer.component-CcBk1zN_.mjs.map} +1 -1
  26. package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-MHOUqz2l.mjs → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-BiGUrkFi.mjs} +2 -2
  27. package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-MHOUqz2l.mjs.map → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-BiGUrkFi.mjs.map} +1 -1
  28. package/fesm2022/{acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-BCLxS3rS.mjs → acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-TWxthl21.mjs} +3 -3
  29. package/fesm2022/{acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-BCLxS3rS.mjs.map → acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-TWxthl21.mjs.map} +1 -1
  30. package/fesm2022/{acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-D7P08nHH.mjs → acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-DP9mP1CR.mjs} +8 -5
  31. package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-DP9mP1CR.mjs.map +1 -0
  32. package/fesm2022/{acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-oLFeaHdz.mjs → acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-BYg6-PoM.mjs} +4 -4
  33. package/fesm2022/{acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-oLFeaHdz.mjs.map → acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-BYg6-PoM.mjs.map} +1 -1
  34. package/fesm2022/{acorex-platform-framework-client-layout-widgets-trigger-expression-editor-popup.component-C2PGoC7r.mjs → acorex-platform-framework-client-layout-widgets-trigger-expression-editor-popup.component-ZvUXJs3G.mjs} +3 -3
  35. package/fesm2022/{acorex-platform-framework-client-layout-widgets-trigger-expression-editor-popup.component-C2PGoC7r.mjs.map → acorex-platform-framework-client-layout-widgets-trigger-expression-editor-popup.component-ZvUXJs3G.mjs.map} +1 -1
  36. package/fesm2022/{acorex-platform-framework-client-layout-widgets-triggers-widget-editor.component-DDDoPoQa.mjs → acorex-platform-framework-client-layout-widgets-triggers-widget-editor.component-B_OM0T7i.mjs} +5 -5
  37. package/fesm2022/{acorex-platform-framework-client-layout-widgets-triggers-widget-editor.component-DDDoPoQa.mjs.map → acorex-platform-framework-client-layout-widgets-triggers-widget-editor.component-B_OM0T7i.mjs.map} +1 -1
  38. package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs +1 -1
  39. package/fesm2022/{acorex-platform-framework-client-themes-default-entity-master-create-view.component-Dh_hRxZX.mjs → acorex-platform-framework-client-themes-default-entity-master-create-view.component-DwCoz2Du.mjs} +4 -4
  40. package/fesm2022/{acorex-platform-framework-client-themes-default-entity-master-create-view.component-Dh_hRxZX.mjs.map → acorex-platform-framework-client-themes-default-entity-master-create-view.component-DwCoz2Du.mjs.map} +1 -1
  41. package/fesm2022/{acorex-platform-framework-client-themes-default-entity-master-modify-view.component-bC_uPN9l.mjs → acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BCyFK60f.mjs} +4 -4
  42. package/fesm2022/{acorex-platform-framework-client-themes-default-entity-master-modify-view.component-bC_uPN9l.mjs.map → acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BCyFK60f.mjs.map} +1 -1
  43. package/fesm2022/{acorex-platform-framework-client-themes-default-entity-master-single-view.component-CDzBgDt7.mjs → acorex-platform-framework-client-themes-default-entity-master-single-view.component-2Re1-MvA.mjs} +4 -4
  44. package/fesm2022/{acorex-platform-framework-client-themes-default-entity-master-single-view.component-CDzBgDt7.mjs.map → acorex-platform-framework-client-themes-default-entity-master-single-view.component-2Re1-MvA.mjs.map} +1 -1
  45. package/fesm2022/{acorex-platform-framework-client-themes-default-error-401.component-CaV3MdRr.mjs → acorex-platform-framework-client-themes-default-error-401.component-1lfBpY_d.mjs} +3 -3
  46. package/fesm2022/{acorex-platform-framework-client-themes-default-error-401.component-CaV3MdRr.mjs.map → acorex-platform-framework-client-themes-default-error-401.component-1lfBpY_d.mjs.map} +1 -1
  47. package/fesm2022/{acorex-platform-framework-client-themes-default-error-404.component-CTA-lxYp.mjs → acorex-platform-framework-client-themes-default-error-404.component-BeWyRCJr.mjs} +3 -3
  48. package/fesm2022/{acorex-platform-framework-client-themes-default-error-404.component-CTA-lxYp.mjs.map → acorex-platform-framework-client-themes-default-error-404.component-BeWyRCJr.mjs.map} +1 -1
  49. package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-PvveUj5c.mjs +22 -0
  50. package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-PvveUj5c.mjs.map +1 -0
  51. package/fesm2022/acorex-platform-framework-client-themes-default.mjs +77 -51
  52. package/fesm2022/acorex-platform-framework-client-themes-default.mjs.map +1 -1
  53. package/fesm2022/acorex-platform-framework-client-themes-shared.mjs +4 -4
  54. package/fesm2022/acorex-platform-framework-client-themes-shared.mjs.map +1 -1
  55. package/i18n/en-AU/activity-log.json +71 -0
  56. package/i18n/en-AU/common-plugins.json +96 -0
  57. package/i18n/en-AU/dynamic-form-designer.json +126 -0
  58. package/i18n/en-AU/general.json +2294 -0
  59. package/i18n/en-AU/layout-designer.json +173 -0
  60. package/i18n/en-AU/layout.json +258 -0
  61. package/i18n/en-AU/platform-layout-widgets.json +332 -0
  62. package/i18n/en-US/activity-log.json +71 -0
  63. package/i18n/en-US/common-plugins.json +96 -0
  64. package/i18n/en-US/dynamic-form-designer.json +126 -0
  65. package/i18n/en-US/general.json +2294 -0
  66. package/i18n/en-US/layout-designer.json +173 -0
  67. package/i18n/en-US/layout.json +258 -0
  68. package/i18n/en-US/platform-layout-widgets.json +336 -0
  69. package/i18n/fa-IR/activity-log.json +71 -0
  70. package/i18n/fa-IR/common-plugins.json +126 -0
  71. package/i18n/fa-IR/dynamic-form-designer.json +126 -0
  72. package/i18n/fa-IR/general.json +2295 -0
  73. package/i18n/fa-IR/layout-designer.json +173 -0
  74. package/i18n/fa-IR/layout.json +258 -0
  75. package/i18n/fa-IR/platform-layout-widgets.json +336 -0
  76. package/package.json +2 -2
  77. package/types/acorex-platform-framework-client-common.d.ts +3 -1
  78. package/types/acorex-platform-framework-client-layout-components.d.ts +3 -1
  79. package/types/acorex-platform-framework-client-layout-designer.d.ts +1 -0
  80. package/types/acorex-platform-framework-client-layout-entity.d.ts +30 -4
  81. package/types/acorex-platform-framework-client-layout-widgets.d.ts +36 -2
  82. package/types/acorex-platform-framework-client-themes-default.d.ts +5 -1
  83. package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-DS3F1_EN.mjs.map +0 -1
  84. package/fesm2022/acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-CWvC9Eh2.mjs.map +0 -1
  85. package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-D7P08nHH.mjs.map +0 -1
  86. package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-B85b0lsa.mjs +0 -19
  87. package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-B85b0lsa.mjs.map +0 -1
@@ -6,6 +6,9 @@ import { AXDataTableModule } from '@acorex/components/data-table';
6
6
  import * as i2 from '@acorex/components/decorators';
7
7
  import { AXDecoratorModule } from '@acorex/components/decorators';
8
8
  import { AXBasePageComponent } from '@acorex/components/page';
9
+ import * as i1$2 from '@acorex/core/translation';
10
+ import { AXTranslationModule } from '@acorex/core/translation';
11
+ import { AsyncPipe } from '@angular/common';
9
12
  import * as i0 from '@angular/core';
10
13
  import { ChangeDetectionStrategy, Component } from '@angular/core';
11
14
 
@@ -36,9 +39,9 @@ class AXPTabularDataPopupComponent extends AXBasePageComponent {
36
39
  </ax-data-table>
37
40
  <ax-footer
38
41
  ><div class="flex w-full justify-end">
39
- <ax-button color="primary" [text]="'Okay'" (onClick)="onClose()"></ax-button></div
42
+ <ax-button color="primary" [text]="('@general:actions.ok.title' | translate | async) ?? ''" (onClick)="onClose()"></ax-button></div
40
43
  ></ax-footer>
41
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.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", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDataTableModule }, { kind: "component", type: i1$1.AXDataTableComponent, selector: "ax-data-table", inputs: ["dataSource", "selectedRows", "parentField", "hasChildrenField", "rowDetailsTemplate", "rowCssClass", "cellCssClass", "highlightText", "look", "rowTemplate", "emptyTemplate", "noDataTemplate", "alternative", "showHeader", "fixedHeader", "showFooter", "fixedFooter", "itemHeight", "allowReordering", "paging", "fetchDataMode", "loading", "focusedRow"], outputs: ["selectedRowsChange", "focusedRowChange", "onRowClick", "onRowDbClick", "onColumnsOrderChanged", "onColumnSizeChanged", "onPageChanged"] }, { kind: "component", type: i1$1.AXDataTableTextColumnComponent, selector: "ax-text-column", inputs: ["width", "caption", "allowSorting", "allowResizing", "fixed", "hasTitle", "customExpandIcon", "customCollapseIcon", "dataField", "expandHandler", "wrapText", "translate", "cellTemplate", "footerTemplate", "headerTemplate", "format", "formatOptions"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
44
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.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", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDataTableModule }, { kind: "component", type: i1$1.AXDataTableComponent, selector: "ax-data-table", inputs: ["dataSource", "selectedRows", "parentField", "hasChildrenField", "rowDetailsTemplate", "rowCssClass", "cellCssClass", "highlightText", "look", "rowTemplate", "emptyTemplate", "noDataTemplate", "alternative", "showHeader", "fixedHeader", "showFooter", "fixedFooter", "itemHeight", "allowReordering", "paging", "fetchDataMode", "loading", "focusedRow"], outputs: ["selectedRowsChange", "focusedRowChange", "onRowClick", "onRowDbClick", "onColumnsOrderChanged", "onColumnSizeChanged", "onPageChanged"] }, { kind: "component", type: i1$1.AXDataTableTextColumnComponent, selector: "ax-text-column", inputs: ["width", "caption", "allowSorting", "allowResizing", "fixed", "hasTitle", "customExpandIcon", "customCollapseIcon", "dataField", "expandHandler", "wrapText", "translate", "cellTemplate", "footerTemplate", "headerTemplate", "format", "formatOptions"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1$2.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
42
45
  }
43
46
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPTabularDataPopupComponent, decorators: [{
44
47
  type: Component,
@@ -53,12 +56,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
53
56
  </ax-data-table>
54
57
  <ax-footer
55
58
  ><div class="flex w-full justify-end">
56
- <ax-button color="primary" [text]="'Okay'" (onClick)="onClose()"></ax-button></div
59
+ <ax-button color="primary" [text]="('@general:actions.ok.title' | translate | async) ?? ''" (onClick)="onClose()"></ax-button></div
57
60
  ></ax-footer>
58
61
  `,
59
- imports: [AXDecoratorModule, AXButtonModule, AXDataTableModule],
62
+ imports: [AXDecoratorModule, AXButtonModule, AXDataTableModule, AXTranslationModule, AsyncPipe],
60
63
  }]
61
64
  }] });
62
65
 
63
66
  export { AXPTabularDataPopupComponent };
64
- //# sourceMappingURL=acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-D7P08nHH.mjs.map
67
+ //# sourceMappingURL=acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-DP9mP1CR.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-DP9mP1CR.mjs","sources":["../../../../../libs/framework/client/layout/widgets/src/lib/widgets/editors/tabular-data/tabular-data-view-popup.component.ts"],"sourcesContent":["import { AXDataSource } from '@acorex/cdk/common';\nimport { AXButtonModule } from '@acorex/components/button';\nimport { AXDataTableModule } from '@acorex/components/data-table';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AsyncPipe } from '@angular/common';\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { AXPTabularDataColumn } from './tabular-widget.types';\n\n@Component({\n selector: 'axp-tabular-data-view-popup',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <ax-data-table class=\"m-4\" #grid [paging]=\"false\" [dataSource]=\"dataSource\">\n @for (column of columns; track $index) {\n <ax-text-column [dataField]=\"column.name\" [caption]=\"column.title\"></ax-text-column>\n }\n </ax-data-table>\n <ax-footer\n ><div class=\"flex w-full justify-end\">\n <ax-button color=\"primary\" [text]=\"('@general:actions.ok.title' | translate | async) ?? ''\" (onClick)=\"onClose()\"></ax-button></div\n ></ax-footer>\n `,\n imports: [AXDecoratorModule, AXButtonModule, AXDataTableModule, AXTranslationModule, AsyncPipe],\n})\nexport class AXPTabularDataPopupComponent extends AXBasePageComponent {\n items: [];\n columns: AXPTabularDataColumn[];\n\n protected dataSource = new AXDataSource({\n load: async () => {\n const items = this.items;\n return {\n items: items,\n total: items.length,\n };\n },\n pageSize: 1,\n key: 'gridItem',\n });\n\n onClose() {\n this.close();\n }\n}\n"],"names":["i2","i3"],"mappings":";;;;;;;;;;;;;;AA0BM,MAAO,4BAA6B,SAAQ,mBAAmB,CAAA;AAhBrE,IAAA,WAAA,GAAA;;QAoBY,IAAA,CAAA,UAAU,GAAG,IAAI,YAAY,CAAC;YACtC,IAAI,EAAE,YAAW;AACf,gBAAA,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK;gBACxB,OAAO;AACL,oBAAA,KAAK,EAAE,KAAK;oBACZ,KAAK,EAAE,KAAK,CAAC,MAAM;iBACpB;YACH,CAAC;AACD,YAAA,QAAQ,EAAE,CAAC;AACX,YAAA,GAAG,EAAE,UAAU;AAChB,SAAA,CAAC;AAKH,IAAA;IAHC,OAAO,GAAA;QACL,IAAI,CAAC,KAAK,EAAE;IACd;8GAlBW,4BAA4B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA5B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,6BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAb7B;;;;;;;;;;GAUT,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EACS,iBAAiB,qPAAE,cAAc,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA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AS,EAAA,IAAA,EAAA,OAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAEnF,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAhBxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,6BAA6B;oBACvC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,QAAQ,EAAE;;;;;;;;;;AAUT,EAAA,CAAA;oBACD,OAAO,EAAE,CAAC,iBAAiB,EAAE,cAAc,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,SAAS,CAAC;AAChG,iBAAA;;;"}
@@ -1,11 +1,11 @@
1
1
  import { AXSafePipe } from '@acorex/core/pipes';
2
- import * as i3 from '@acorex/core/translation';
2
+ import * as i1 from '@acorex/core/translation';
3
3
  import { AXTranslationModule } from '@acorex/core/translation';
4
4
  import { AXPLayoutBaseWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';
5
5
  import { AsyncPipe } from '@angular/common';
6
6
  import * as i0 from '@angular/core';
7
7
  import { computed, HostBinding, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
8
- import { t as textBlockStyleAttribute, a as textBlockContentClass } from './acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-CWvC9Eh2.mjs';
8
+ import { t as textBlockStyleAttribute, a as textBlockContentClass } from './acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-DuFZf8eb.mjs';
9
9
 
10
10
  class AXPTextBlockWidgetDesignerComponent extends AXPLayoutBaseWidgetComponent {
11
11
  constructor() {
@@ -44,7 +44,7 @@ class AXPTextBlockWidgetDesignerComponent extends AXPLayoutBaseWidgetComponent {
44
44
  {{ content() | translate | async }}
45
45
  </div>
46
46
  }
47
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AXSafePipe, name: "safe" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
47
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i1.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AXSafePipe, name: "safe" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
48
48
  }
49
49
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPTextBlockWidgetDesignerComponent, decorators: [{
50
50
  type: Component,
@@ -73,4 +73,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
73
73
  }] } });
74
74
 
75
75
  export { AXPTextBlockWidgetDesignerComponent };
76
- //# sourceMappingURL=acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-oLFeaHdz.mjs.map
76
+ //# sourceMappingURL=acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-BYg6-PoM.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-oLFeaHdz.mjs","sources":["../../../../../libs/framework/client/layout/widgets/src/lib/widgets/layout/text-block/text-block-widget-designer.component.ts"],"sourcesContent":["import { AXSafePipe } from '@acorex/core/pipes';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPLayoutBaseWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\n\nimport { AsyncPipe } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, HostBinding, ViewEncapsulation } from '@angular/core';\nimport { textBlockContentClass, textBlockStyleAttribute } from './text-block-style';\n\n@Component({\n selector: 'axp-text-block-widget-designer',\n template: `\n @if (isRichText()) {\n <div\n [class]=\"contentClass()\"\n [attr.style]=\"customStyle()\"\n [innerHTML]=\"content() | translate | async | safe: 'html'\"\n ></div>\n } @else {\n <div [class]=\"contentClass()\" [attr.style]=\"customStyle()\">\n {{ content() | translate | async }}\n </div>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [AXTranslationModule, AXSafePipe, AsyncPipe],\n})\nexport class AXPTextBlockWidgetDesignerComponent extends AXPLayoutBaseWidgetComponent {\n protected content = computed<string>(() => (this.options()['content'] as string) ?? '');\n protected customStyle = computed(() => textBlockStyleAttribute(this.options()['style']));\n protected contentClass = computed(() => textBlockContentClass(this.customStyle()));\n\n protected isRichText = computed(() => {\n const format = this.options()['format'];\n const id =\n typeof format === 'object' && format != null && 'id' in format\n ? String((format as { id: unknown }).id)\n : format;\n return id !== 'plain';\n });\n\n @HostBinding('class')\n private get __class(): Record<string, boolean> {\n return {\n block: true,\n 'axp-text-block-widget-view': true,\n };\n }\n}\n"],"names":["i1"],"mappings":";;;;;;;;;AA2BM,MAAO,mCAAoC,SAAQ,4BAA4B,CAAA;AAnBrF,IAAA,WAAA,GAAA;;AAoBY,QAAA,IAAA,CAAA,OAAO,GAAG,QAAQ,CAAS,MAAO,IAAI,CAAC,OAAO,EAAE,CAAC,SAAS,CAAY,IAAI,EAAE;oFAAC;AAC7E,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAM,uBAAuB,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC;wFAAC;AAC9E,QAAA,IAAA,CAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,qBAAqB,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;yFAAC;AAExE,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAC,MAAK;YACnC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;AACvC,YAAA,MAAM,EAAE,GACN,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,IA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mCAAmC,EAAA,UAAA,EAAA,CAAA;kBAnB/C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gCAAgC;AAC1C,oBAAA,QAAQ,EAAE;;;;;;;;;;;;AAYT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;AACrC,oBAAA,OAAO,EAAE,CAAC,mBAAmB,EAAE,UAAU,EAAE,SAAS,CAAC;AACtD,iBAAA;;sBAeE,WAAW;uBAAC,OAAO;;;"}
1
+ {"version":3,"file":"acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-BYg6-PoM.mjs","sources":["../../../../../libs/framework/client/layout/widgets/src/lib/widgets/layout/text-block/text-block-widget-designer.component.ts"],"sourcesContent":["import { AXSafePipe } from '@acorex/core/pipes';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPLayoutBaseWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\n\nimport { AsyncPipe } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, HostBinding, ViewEncapsulation } from '@angular/core';\nimport { textBlockContentClass, textBlockStyleAttribute } from './text-block-style';\n\n@Component({\n selector: 'axp-text-block-widget-designer',\n template: `\n @if (isRichText()) {\n <div\n [class]=\"contentClass()\"\n [attr.style]=\"customStyle()\"\n [innerHTML]=\"content() | translate | async | safe: 'html'\"\n ></div>\n } @else {\n <div [class]=\"contentClass()\" [attr.style]=\"customStyle()\">\n {{ content() | translate | async }}\n </div>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [AXTranslationModule, AXSafePipe, AsyncPipe],\n})\nexport class AXPTextBlockWidgetDesignerComponent extends AXPLayoutBaseWidgetComponent {\n protected content = computed<string>(() => (this.options()['content'] as string) ?? '');\n protected customStyle = computed(() => textBlockStyleAttribute(this.options()['style']));\n protected contentClass = computed(() => textBlockContentClass(this.customStyle()));\n\n protected isRichText = computed(() => {\n const format = this.options()['format'];\n const id =\n typeof format === 'object' && format != null && 'id' in format\n ? String((format as { id: unknown }).id)\n : format;\n return id !== 'plain';\n });\n\n @HostBinding('class')\n private get __class(): Record<string, boolean> {\n return {\n block: true,\n 'axp-text-block-widget-view': true,\n };\n }\n}\n"],"names":[],"mappings":";;;;;;;;;AA2BM,MAAO,mCAAoC,SAAQ,4BAA4B,CAAA;AAnBrF,IAAA,WAAA,GAAA;;AAoBY,QAAA,IAAA,CAAA,OAAO,GAAG,QAAQ,CAAS,MAAO,IAAI,CAAC,OAAO,EAAE,CAAC,SAAS,CAAY,IAAI,EAAE;oFAAC;AAC7E,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAC,MAAM,uBAAuB,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC;wFAAC;AAC9E,QAAA,IAAA,CAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,qBAAqB,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;yFAAC;AAExE,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAC,MAAK;YACnC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC;AACvC,YAAA,MAAM,EAAE,GACN,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,IAAI,IAAI,IAAI,IAAI,IAAI;AACtD,kBAAE,MAAM,CAAE,MAA0B,CAAC,EAAE;kBACrC,MAAM;YACZ,OAAO,EAAE,KAAK,OAAO;QACvB,CAAC;uFAAC;AASH,IAAA;AAPC,IAAA,IACY,OAAO,GAAA;QACjB,OAAO;AACL,YAAA,KAAK,EAAE,IAAI;AACX,YAAA,4BAA4B,EAAE,IAAI;SACnC;IACH;8GApBW,mCAAmC,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnC,IAAA,SAAA,IAAA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AXCodeEditorModule } from '@acorex/components/code-editor';
5
5
  import * as i2 from '@acorex/components/decorators';
6
6
  import { AXDecoratorModule } from '@acorex/components/decorators';
7
7
  import { AXBasePageComponent } from '@acorex/components/page';
8
- import * as i3 from '@acorex/core/translation';
8
+ import * as i1$4 from '@acorex/core/translation';
9
9
  import { AXTranslationModule } from '@acorex/core/translation';
10
10
  import { setupPopupFooterKeyboardShortcuts } from '@acorex-platform/framework-client/core';
11
11
  import * as i1$3 from '@angular/common';
@@ -80,7 +80,7 @@ class AXPTriggerExpressionEditorPopupComponent extends AXBasePageComponent {
80
80
  ></ax-button>
81
81
  </ax-suffix>
82
82
  </ax-footer>
83
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXCodeEditorModule }, { kind: "component", type: i1$2.AXCodeEditorComponent, selector: "ax-code-editor", inputs: ["disabled", "value", "state", "name", "id", "language", "readonly", "placeholder", "lineNumbers", "lineWrapping", "tabSize", "indentWithTab", "theme", "extensions", "ariaLabel", "focusOnReady", "formatOnSave", "minRow", "customCompletions"], outputs: ["onValueChanged", "valueChange", "stateChange", "readonlyChange", "disabledChange", "ready", "save"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.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: AXTranslationModule }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
83
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXCodeEditorModule }, { kind: "component", type: i1$2.AXCodeEditorComponent, selector: "ax-code-editor", inputs: ["disabled", "value", "state", "name", "id", "language", "readonly", "placeholder", "lineNumbers", "lineWrapping", "tabSize", "indentWithTab", "theme", "extensions", "ariaLabel", "focusOnReady", "formatOnSave", "minRow", "customCompletions"], outputs: ["onValueChanged", "valueChange", "stateChange", "readonlyChange", "disabledChange", "ready", "save"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.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: AXTranslationModule }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$4.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
84
84
  }
85
85
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPTriggerExpressionEditorPopupComponent, decorators: [{
86
86
  type: Component,
@@ -121,4 +121,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
121
121
  }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }] } });
122
122
 
123
123
  export { AXPTriggerExpressionEditorPopupComponent };
124
- //# sourceMappingURL=acorex-platform-framework-client-layout-widgets-trigger-expression-editor-popup.component-C2PGoC7r.mjs.map
124
+ //# sourceMappingURL=acorex-platform-framework-client-layout-widgets-trigger-expression-editor-popup.component-ZvUXJs3G.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-framework-client-layout-widgets-trigger-expression-editor-popup.component-C2PGoC7r.mjs","sources":["../../../../../libs/framework/client/layout/widgets/src/lib/widgets/property-editors/triggers/trigger-expression-editor-popup.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXCodeEditorModule } from '@acorex/components/code-editor';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { setupPopupFooterKeyboardShortcuts } from '@acorex-platform/framework-client/core';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input, linkedSignal, WritableSignal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'axp-trigger-expression-editor-popup',\n template: `\n <div class=\"flex flex-col h-full overflow-hidden\">\n <div class=\"flex-1 p-4 overflow-hidden\" style=\"direction: ltr;\">\n <ax-code-editor\n [ngModel]=\"currentValue()\"\n (ngModelChange)=\"handleValueChange($event)\"\n language=\"javascript\"\n [lineNumbers]=\"true\"\n class=\"w-full h-full min-h-96\"\n ></ax-code-editor>\n </div>\n </div>\n\n <ax-footer>\n <ax-suffix>\n <ax-button\n look=\"solid\"\n [text]=\"'@general:actions.cancel.title' | translate | async\"\n (onClick)=\"handleCancelClick()\"\n ></ax-button>\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@general:actions.save.title' | translate | async\"\n (onClick)=\"handleSaveClick()\"\n ></ax-button>\n </ax-suffix>\n </ax-footer>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, FormsModule, AXButtonModule, AXCodeEditorModule, AXDecoratorModule, AXTranslationModule],\n})\nexport class AXPTriggerExpressionEditorPopupComponent extends AXBasePageComponent {\n //#region ---- Inputs ----\n\n value = input.required<string | null>();\n\n //#endregion\n\n //#region ---- Properties ----\n\n protected readonly currentValue = linkedSignal(() => this.value());\n\n constructor() {\n super();\n setupPopupFooterKeyboardShortcuts(\n () => [\n {\n title: '@general:actions.cancel.title',\n command: 'cancel',\n handler: () => this.handleCancelClick(),\n },\n {\n title: '@general:actions.save.title',\n command: 'submit',\n handler: () => this.handleSaveClick(),\n },\n ],\n { id: 'trigger-expression-editor-popup' },\n );\n }\n\n //#endregion\n\n //#region ---- Event Handlers ----\n\n protected handleValueChange(newValue: string): void {\n this.currentValue.set(newValue);\n }\n\n protected handleCancelClick(): void {\n this.close();\n }\n\n protected handleSaveClick(): void {\n this.close({\n value: this.currentValue(),\n });\n }\n\n //#endregion\n}\n\n"],"names":["i3","i4","i5","i6"],"mappings":";;;;;;;;;;;;;;;;;AA4CM,MAAO,wCAAyC,SAAQ,mBAAmB,CAAA;AAW/E,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;QATT,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ;kFAAiB;;;QAMpB,IAAA,CAAA,YAAY,GAAG,YAAY,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE;yFAAC;QAIhE,iCAAiC,CAC/B,MAAM;AACJ,YAAA;AACE,gBAAA,KAAK,EAAE,+BAA+B;AACtC,gBAAA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AAA,EAAAC,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAEpG,wCAAwC,EAAA,UAAA,EAAA,CAAA;kBAlCpD,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qCAAqC;AAC/C,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,mBAAmB,CAAC;AACjH,iBAAA;;;"}
1
+ {"version":3,"file":"acorex-platform-framework-client-layout-widgets-trigger-expression-editor-popup.component-ZvUXJs3G.mjs","sources":["../../../../../libs/framework/client/layout/widgets/src/lib/widgets/property-editors/triggers/trigger-expression-editor-popup.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXCodeEditorModule } from '@acorex/components/code-editor';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { setupPopupFooterKeyboardShortcuts } from '@acorex-platform/framework-client/core';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, input, linkedSignal, WritableSignal } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'axp-trigger-expression-editor-popup',\n template: `\n <div class=\"flex flex-col h-full overflow-hidden\">\n <div class=\"flex-1 p-4 overflow-hidden\" style=\"direction: ltr;\">\n <ax-code-editor\n [ngModel]=\"currentValue()\"\n (ngModelChange)=\"handleValueChange($event)\"\n language=\"javascript\"\n [lineNumbers]=\"true\"\n class=\"w-full h-full min-h-96\"\n ></ax-code-editor>\n </div>\n </div>\n\n <ax-footer>\n <ax-suffix>\n <ax-button\n look=\"solid\"\n [text]=\"'@general:actions.cancel.title' | translate | async\"\n (onClick)=\"handleCancelClick()\"\n ></ax-button>\n <ax-button\n look=\"solid\"\n color=\"primary\"\n [text]=\"'@general:actions.save.title' | translate | async\"\n (onClick)=\"handleSaveClick()\"\n ></ax-button>\n </ax-suffix>\n </ax-footer>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, FormsModule, AXButtonModule, AXCodeEditorModule, AXDecoratorModule, AXTranslationModule],\n})\nexport class AXPTriggerExpressionEditorPopupComponent extends AXBasePageComponent {\n //#region ---- Inputs ----\n\n value = input.required<string | null>();\n\n //#endregion\n\n //#region ---- Properties ----\n\n protected readonly currentValue = linkedSignal(() => this.value());\n\n constructor() {\n super();\n setupPopupFooterKeyboardShortcuts(\n () => [\n {\n title: '@general:actions.cancel.title',\n command: 'cancel',\n handler: () => this.handleCancelClick(),\n },\n {\n title: '@general:actions.save.title',\n command: 'submit',\n handler: () => this.handleSaveClick(),\n },\n ],\n { id: 'trigger-expression-editor-popup' },\n );\n }\n\n //#endregion\n\n //#region ---- Event Handlers ----\n\n protected handleValueChange(newValue: string): void {\n this.currentValue.set(newValue);\n }\n\n protected handleCancelClick(): void {\n this.close();\n }\n\n protected handleSaveClick(): void {\n this.close({\n value: this.currentValue(),\n });\n }\n\n //#endregion\n}\n\n"],"names":["i3","i4","i5","i6"],"mappings":";;;;;;;;;;;;;;;;;AA4CM,MAAO,wCAAyC,SAAQ,mBAAmB,CAAA;AAW/E,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;QATT,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,QAAQ;kFAAiB;;;QAMpB,IAAA,CAAA,YAAY,GAAG,YAAY,CAAC,MAAM,IAAI,CAAC,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AAA,EAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAE,mBAAmB,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAEpG,wCAAwC,EAAA,UAAA,EAAA,CAAA;kBAlCpD,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qCAAqC;AAC/C,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,mBAAmB,CAAC;AACjH,iBAAA;;;"}
@@ -3,7 +3,7 @@ import { AXButtonModule } from '@acorex/components/button';
3
3
  import * as i2 from '@acorex/components/decorators';
4
4
  import { AXDecoratorModule } from '@acorex/components/decorators';
5
5
  import { AXPopupService } from '@acorex/components/popup';
6
- import * as i3 from '@acorex/core/translation';
6
+ import * as i1$2 from '@acorex/core/translation';
7
7
  import { AXTranslationModule } from '@acorex/core/translation';
8
8
  import { AXPStateMessageComponent } from '@acorex-platform/framework-client/layout/components';
9
9
  import { AXPValueWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';
@@ -65,7 +65,7 @@ class AXPTriggersWidgetEditComponent extends AXPValueWidgetComponent {
65
65
  const trigger = this.triggers()[index];
66
66
  if (!trigger)
67
67
  return;
68
- const { AXPTriggerExpressionEditorPopupComponent } = await import('./acorex-platform-framework-client-layout-widgets-trigger-expression-editor-popup.component-C2PGoC7r.mjs');
68
+ const { AXPTriggerExpressionEditorPopupComponent } = await import('./acorex-platform-framework-client-layout-widgets-trigger-expression-editor-popup.component-ZvUXJs3G.mjs');
69
69
  const result = await this.popupService.open(AXPTriggerExpressionEditorPopupComponent, {
70
70
  title: '@general:widgets.triggers.edit-event-expression',
71
71
  size: 'lg',
@@ -90,7 +90,7 @@ class AXPTriggersWidgetEditComponent extends AXPValueWidgetComponent {
90
90
  const actionValue = Array.isArray(trigger.action)
91
91
  ? trigger.action.join('\n')
92
92
  : trigger.action || '';
93
- const { AXPTriggerExpressionEditorPopupComponent } = await import('./acorex-platform-framework-client-layout-widgets-trigger-expression-editor-popup.component-C2PGoC7r.mjs');
93
+ const { AXPTriggerExpressionEditorPopupComponent } = await import('./acorex-platform-framework-client-layout-widgets-trigger-expression-editor-popup.component-ZvUXJs3G.mjs');
94
94
  const result = await this.popupService.open(AXPTriggerExpressionEditorPopupComponent, {
95
95
  title: '@general:widgets.triggers.edit-action-expression',
96
96
  size: 'lg',
@@ -221,7 +221,7 @@ class AXPTriggersWidgetEditComponent extends AXPValueWidgetComponent {
221
221
  </div>
222
222
  }
223
223
  </div>
224
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i2.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: AXTranslationModule }, { kind: "component", type: AXPStateMessageComponent, selector: "axp-state-message", inputs: ["mode", "icon", "title", "description", "titleParams", "descriptionParams", "look"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
224
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i2.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: AXTranslationModule }, { kind: "component", type: AXPStateMessageComponent, selector: "axp-state-message", inputs: ["mode", "icon", "title", "description", "titleParams", "descriptionParams", "look"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$2.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
225
225
  }
226
226
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPTriggersWidgetEditComponent, decorators: [{
227
227
  type: Component,
@@ -342,4 +342,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
342
342
  }] });
343
343
 
344
344
  export { AXPTriggersWidgetEditComponent };
345
- //# sourceMappingURL=acorex-platform-framework-client-layout-widgets-triggers-widget-editor.component-DDDoPoQa.mjs.map
345
+ //# sourceMappingURL=acorex-platform-framework-client-layout-widgets-triggers-widget-editor.component-B_OM0T7i.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-framework-client-layout-widgets-triggers-widget-editor.component-DDDoPoQa.mjs","sources":["../../../../../libs/framework/client/layout/widgets/src/lib/widgets/property-editors/triggers/triggers-widget-editor.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPopupService } from '@acorex/components/popup';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPStateMessageComponent } from '@acorex-platform/framework-client/layout/components';\nimport { AXPValueWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXPWidgetTrigger, AXPWidgetTriggers } from '@acorex-platform/framework-shared/core';\n\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, signal } from '@angular/core';\n\n@Component({\n selector: 'axp-triggers-widget-editor',\n template: `\n <div class=\"flex flex-col gap-2\">\n @if (hasTriggers()) {\n @for (trigger of triggers(); let i = $index; track i) {\n <div\n class=\"flex items-center gap-2 px-2 py-1 rounded-lg border shadow-sm lightest-surface hover:shadow-md transition-shadow\"\n >\n <!-- Trigger Icon -->\n <div\n class=\"flex items-center justify-center w-8 h-8 rounded-md bg-pink-100 text-pink-600 font-semibold shrink-0\"\n >\n <ax-icon icon=\"fa-light fa-bolt\" ></ax-icon>\n </div>\n\n <!-- Trigger Details -->\n <div class=\"flex-1 flex flex-col min-w-0\">\n <!-- Event -->\n <div class=\"flex items-center gap-2\">\n <span class=\"text-xs font-semibold text-gray-500 uppercase tracking-wide w-16\">\n {{ '@general:widgets.triggers.event.label' | translate | async }}\n </span>\n <span\n class=\"text-sm font-mono text-primary cursor-pointer underline truncate\"\n (click)=\"openEventEditor(i)\"\n [title]=\"trigger.event || ''\"\n >\n @if (trigger.event) {\n {{ getEventPreview(trigger.event) }}\n } @else {\n <span class=\"not-italic\">\n {{ '@general:widgets.triggers.event.placeholder' | translate | async }}\n </span>\n }\n </span>\n </div>\n\n <!-- Action -->\n <div class=\"flex items-center gap-2\">\n <span class=\"text-xs font-semibold text-gray-500 uppercase tracking-wide w-16\">\n {{ '@general:widgets.triggers.action.label' | translate | async }}\n </span>\n <span\n class=\"text-sm font-mono text-success cursor-pointer underline truncate\"\n (click)=\"openActionEditor(i)\"\n [title]=\"getActionFullText(trigger.action)\"\n >\n @if (trigger.action) {\n {{ getActionPreview(trigger.action) }}\n } @else {\n <span class=\"not-italic\">\n {{ '@general:widgets.triggers.action.placeholder' | translate | async }}\n </span>\n }\n </span>\n </div>\n </div>\n\n <!-- Action Buttons -->\n <div class=\"flex items-center gap-2 shrink-0 ax-sm\">\n <ax-button\n look=\"blank\"\n color=\"danger\"\n [disabled]=\"disabled()\"\n (onClick)=\"handleRemoveTrigger(i)\"\n class=\"px-3\"\n >\n <ax-icon icon=\"fa-light fa-trash-can\"></ax-icon>\n </ax-button>\n </div>\n </div>\n }\n } @else {\n <axp-state-message\n icon=\"fa-light fa-bolt\"\n [description]=\"'@general:widgets.triggers.empty-state.title'\"\n >\n <ax-button\n slot=\"actions\"\n [text]=\"'@general:widgets.triggers.add-first-trigger' | translate | async\"\n look=\"twotone\"\n [disabled]=\"disabled()\"\n (onClick)=\"handleAddTrigger()\"\n >\n <ax-prefix>\n <ax-icon class=\"fa-solid fa-add\"></ax-icon>\n </ax-prefix>\n </ax-button>\n </axp-state-message>\n }\n\n @if (hasTriggers()) {\n <!-- Add Trigger Button -->\n <div class=\"flex items-center justify-end\">\n <ax-button\n [text]=\"'@general:widgets.triggers.add-trigger' | translate | async\"\n look=\"twotone\"\n color=\"primary\"\n [disabled]=\"disabled()\"\n (onClick)=\"handleAddTrigger()\"\n class=\"px-3\"\n >\n <ax-prefix>\n <ax-icon class=\"fa-solid fa-add\"></ax-icon>\n </ax-prefix>\n </ax-button>\n </div>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXTranslationModule, AXPStateMessageComponent],\n})\nexport class AXPTriggersWidgetEditComponent extends AXPValueWidgetComponent<AXPWidgetTriggers> {\n //#region ---- Services & Dependencies ----\n\n private readonly popupService = inject(AXPopupService);\n\n //#endregion\n\n //#region ---- Computed Properties ----\n\n protected disabled = computed<boolean>(() => this.options()['disabled'] as boolean);\n\n protected triggers = computed<AXPWidgetTriggers>(() => {\n const value = this.getValue();\n return Array.isArray(value) ? value : [];\n });\n\n protected hasTriggers = computed<boolean>(() => {\n return this.triggers().length > 0;\n });\n\n //#endregion\n\n //#region ---- Public Methods ----\n\n protected getEventPreview(event: string): string {\n const preview = event.length > 50 ? event.substring(0, 50) + '...' : event;\n return preview;\n }\n\n protected getActionPreview(action: string | string[]): string {\n const actionStr = Array.isArray(action) ? action.join(', ') : action;\n const preview = actionStr.length > 50 ? actionStr.substring(0, 50) + '...' : actionStr;\n return preview;\n }\n\n protected getActionFullText(action: string | string[]): string {\n return Array.isArray(action) ? action.join('\\n') : action;\n }\n\n //#endregion\n\n //#region ---- Event Handlers ----\n\n protected handleAddTrigger(): void {\n const newTrigger: AXPWidgetTrigger = {\n event: '',\n action: '',\n };\n const currentTriggers = [...this.triggers()];\n currentTriggers.push(newTrigger);\n this.setValue(currentTriggers);\n }\n\n protected handleRemoveTrigger(index: number): void {\n const currentTriggers = [...this.triggers()];\n currentTriggers.splice(index, 1);\n this.setValue(currentTriggers);\n }\n\n protected async openEventEditor(index: number): Promise<void> {\n const trigger = this.triggers()[index];\n if (!trigger) return;\n\n const { AXPTriggerExpressionEditorPopupComponent } = await import(\n './trigger-expression-editor-popup.component'\n );\n\n const result = await this.popupService.open(AXPTriggerExpressionEditorPopupComponent, {\n title: '@general:widgets.triggers.edit-event-expression',\n size: 'lg',\n data: {\n value: signal(trigger.event),\n },\n });\n\n if (result?.data?.value) {\n const updatedTriggers = [...this.triggers()];\n updatedTriggers[index] = {\n ...updatedTriggers[index],\n event: result.data.value,\n };\n this.setValue(updatedTriggers);\n }\n }\n\n protected async openActionEditor(index: number): Promise<void> {\n const trigger = this.triggers()[index];\n if (!trigger) return;\n\n // Convert action to string for editing (if array, join with newlines)\n const actionValue = Array.isArray(trigger.action)\n ? trigger.action.join('\\n')\n : trigger.action || '';\n\n const { AXPTriggerExpressionEditorPopupComponent } = await import(\n './trigger-expression-editor-popup.component'\n );\n\n const result = await this.popupService.open(AXPTriggerExpressionEditorPopupComponent, {\n title: '@general:widgets.triggers.edit-action-expression',\n size: 'lg',\n data: {\n value: signal(actionValue),\n },\n });\n\n if (result?.data?.value !== undefined) {\n const updatedTriggers = [...this.triggers()];\n // Convert back to array if multiple lines, otherwise keep as string\n const actionResult = result.data.value;\n const action = actionResult.includes('\\n')\n ? actionResult.split('\\n').filter((l: string) => l.trim())\n : actionResult;\n\n updatedTriggers[index] = {\n ...updatedTriggers[index],\n action: action,\n };\n this.setValue(updatedTriggers);\n }\n }\n\n //#endregion\n}\n\n"],"names":["i3","i4"],"mappings":";;;;;;;;;;;;;;AA6HM,MAAO,8BAA+B,SAAQ,uBAA0C,CAAA;AAlH9F,IAAA,WAAA,GAAA;;;AAqHmB,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;;;AAM5C,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAU,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC,UAAU,CAAY;qFAAC;AAEzE,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAoB,MAAK;AACpD,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE;AAC7B,YAAA,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,EAAE;QAC1C,CAAC;qFAAC;AAEQ,QAAA,IAAA,CAAA,WAAW,GAAG,QAAQ,CAAU,MAAK;YAC7C,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC,MAAM,GAAG,CAAC;QACnC,CAAC;wFAAC;AAyGH,IAAA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,EAAA,CAAA;kBAlH1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4GT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,wBAAwB,CAAC;AAC1G,iBAAA;;;"}
1
+ {"version":3,"file":"acorex-platform-framework-client-layout-widgets-triggers-widget-editor.component-B_OM0T7i.mjs","sources":["../../../../../libs/framework/client/layout/widgets/src/lib/widgets/property-editors/triggers/triggers-widget-editor.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXPopupService } from '@acorex/components/popup';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPStateMessageComponent } from '@acorex-platform/framework-client/layout/components';\nimport { AXPValueWidgetComponent } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXPWidgetTrigger, AXPWidgetTriggers } from '@acorex-platform/framework-shared/core';\n\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, inject, signal } from '@angular/core';\n\n@Component({\n selector: 'axp-triggers-widget-editor',\n template: `\n <div class=\"flex flex-col gap-2\">\n @if (hasTriggers()) {\n @for (trigger of triggers(); let i = $index; track i) {\n <div\n class=\"flex items-center gap-2 px-2 py-1 rounded-lg border shadow-sm lightest-surface hover:shadow-md transition-shadow\"\n >\n <!-- Trigger Icon -->\n <div\n class=\"flex items-center justify-center w-8 h-8 rounded-md bg-pink-100 text-pink-600 font-semibold shrink-0\"\n >\n <ax-icon icon=\"fa-light fa-bolt\" ></ax-icon>\n </div>\n\n <!-- Trigger Details -->\n <div class=\"flex-1 flex flex-col min-w-0\">\n <!-- Event -->\n <div class=\"flex items-center gap-2\">\n <span class=\"text-xs font-semibold text-gray-500 uppercase tracking-wide w-16\">\n {{ '@general:widgets.triggers.event.label' | translate | async }}\n </span>\n <span\n class=\"text-sm font-mono text-primary cursor-pointer underline truncate\"\n (click)=\"openEventEditor(i)\"\n [title]=\"trigger.event || ''\"\n >\n @if (trigger.event) {\n {{ getEventPreview(trigger.event) }}\n } @else {\n <span class=\"not-italic\">\n {{ '@general:widgets.triggers.event.placeholder' | translate | async }}\n </span>\n }\n </span>\n </div>\n\n <!-- Action -->\n <div class=\"flex items-center gap-2\">\n <span class=\"text-xs font-semibold text-gray-500 uppercase tracking-wide w-16\">\n {{ '@general:widgets.triggers.action.label' | translate | async }}\n </span>\n <span\n class=\"text-sm font-mono text-success cursor-pointer underline truncate\"\n (click)=\"openActionEditor(i)\"\n [title]=\"getActionFullText(trigger.action)\"\n >\n @if (trigger.action) {\n {{ getActionPreview(trigger.action) }}\n } @else {\n <span class=\"not-italic\">\n {{ '@general:widgets.triggers.action.placeholder' | translate | async }}\n </span>\n }\n </span>\n </div>\n </div>\n\n <!-- Action Buttons -->\n <div class=\"flex items-center gap-2 shrink-0 ax-sm\">\n <ax-button\n look=\"blank\"\n color=\"danger\"\n [disabled]=\"disabled()\"\n (onClick)=\"handleRemoveTrigger(i)\"\n class=\"px-3\"\n >\n <ax-icon icon=\"fa-light fa-trash-can\"></ax-icon>\n </ax-button>\n </div>\n </div>\n }\n } @else {\n <axp-state-message\n icon=\"fa-light fa-bolt\"\n [description]=\"'@general:widgets.triggers.empty-state.title'\"\n >\n <ax-button\n slot=\"actions\"\n [text]=\"'@general:widgets.triggers.add-first-trigger' | translate | async\"\n look=\"twotone\"\n [disabled]=\"disabled()\"\n (onClick)=\"handleAddTrigger()\"\n >\n <ax-prefix>\n <ax-icon class=\"fa-solid fa-add\"></ax-icon>\n </ax-prefix>\n </ax-button>\n </axp-state-message>\n }\n\n @if (hasTriggers()) {\n <!-- Add Trigger Button -->\n <div class=\"flex items-center justify-end\">\n <ax-button\n [text]=\"'@general:widgets.triggers.add-trigger' | translate | async\"\n look=\"twotone\"\n color=\"primary\"\n [disabled]=\"disabled()\"\n (onClick)=\"handleAddTrigger()\"\n class=\"px-3\"\n >\n <ax-prefix>\n <ax-icon class=\"fa-solid fa-add\"></ax-icon>\n </ax-prefix>\n </ax-button>\n </div>\n }\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXTranslationModule, AXPStateMessageComponent],\n})\nexport class AXPTriggersWidgetEditComponent extends AXPValueWidgetComponent<AXPWidgetTriggers> {\n //#region ---- Services & Dependencies ----\n\n private readonly popupService = inject(AXPopupService);\n\n //#endregion\n\n //#region ---- Computed Properties ----\n\n protected disabled = computed<boolean>(() => this.options()['disabled'] as boolean);\n\n protected triggers = computed<AXPWidgetTriggers>(() => {\n const value = this.getValue();\n return Array.isArray(value) ? value : [];\n });\n\n protected hasTriggers = computed<boolean>(() => {\n return this.triggers().length > 0;\n });\n\n //#endregion\n\n //#region ---- Public Methods ----\n\n protected getEventPreview(event: string): string {\n const preview = event.length > 50 ? event.substring(0, 50) + '...' : event;\n return preview;\n }\n\n protected getActionPreview(action: string | string[]): string {\n const actionStr = Array.isArray(action) ? action.join(', ') : action;\n const preview = actionStr.length > 50 ? actionStr.substring(0, 50) + '...' : actionStr;\n return preview;\n }\n\n protected getActionFullText(action: string | string[]): string {\n return Array.isArray(action) ? action.join('\\n') : action;\n }\n\n //#endregion\n\n //#region ---- Event Handlers ----\n\n protected handleAddTrigger(): void {\n const newTrigger: AXPWidgetTrigger = {\n event: '',\n action: '',\n };\n const currentTriggers = [...this.triggers()];\n currentTriggers.push(newTrigger);\n this.setValue(currentTriggers);\n }\n\n protected handleRemoveTrigger(index: number): void {\n const currentTriggers = [...this.triggers()];\n currentTriggers.splice(index, 1);\n this.setValue(currentTriggers);\n }\n\n protected async openEventEditor(index: number): Promise<void> {\n const trigger = this.triggers()[index];\n if (!trigger) return;\n\n const { AXPTriggerExpressionEditorPopupComponent } = await import(\n './trigger-expression-editor-popup.component'\n );\n\n const result = await this.popupService.open(AXPTriggerExpressionEditorPopupComponent, {\n title: '@general:widgets.triggers.edit-event-expression',\n size: 'lg',\n data: {\n value: signal(trigger.event),\n },\n });\n\n if (result?.data?.value) {\n const updatedTriggers = [...this.triggers()];\n updatedTriggers[index] = {\n ...updatedTriggers[index],\n event: result.data.value,\n };\n this.setValue(updatedTriggers);\n }\n }\n\n protected async openActionEditor(index: number): Promise<void> {\n const trigger = this.triggers()[index];\n if (!trigger) return;\n\n // Convert action to string for editing (if array, join with newlines)\n const actionValue = Array.isArray(trigger.action)\n ? trigger.action.join('\\n')\n : trigger.action || '';\n\n const { AXPTriggerExpressionEditorPopupComponent } = await import(\n './trigger-expression-editor-popup.component'\n );\n\n const result = await this.popupService.open(AXPTriggerExpressionEditorPopupComponent, {\n title: '@general:widgets.triggers.edit-action-expression',\n size: 'lg',\n data: {\n value: signal(actionValue),\n },\n });\n\n if (result?.data?.value !== undefined) {\n const updatedTriggers = [...this.triggers()];\n // Convert back to array if multiple lines, otherwise keep as string\n const actionResult = result.data.value;\n const action = actionResult.includes('\\n')\n ? actionResult.split('\\n').filter((l: string) => l.trim())\n : actionResult;\n\n updatedTriggers[index] = {\n ...updatedTriggers[index],\n action: action,\n };\n this.setValue(updatedTriggers);\n }\n }\n\n //#endregion\n}\n\n"],"names":["i3","i4"],"mappings":";;;;;;;;;;;;;;AA6HM,MAAO,8BAA+B,SAAQ,uBAA0C,CAAA;AAlH9F,IAAA,WAAA,GAAA;;;AAqHmB,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;;;AAM5C,QAAA,IAAA,CAAA,QAAQ,GAAG,QAAQ,CAAU,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC,UAAU,CAAY;qFAAC;A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AA,EAAA,aAAA,EAAA,aAAA,EAAA,mBAAA,EAAA,MAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAA,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAE7F,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAlH1C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4GT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,wBAAwB,CAAC;AAC1G,iBAAA;;;"}
@@ -1,4 +1,4 @@
1
- export { b as AXPAdvancedGridItemWidget, c as AXPAdvancedGridItemWidgetDesignerComponent, d as AXPAdvancedGridItemWidgetViewComponent, e as AXPAdvancedGridOptionsWidget, f as AXPAdvancedGridOptionsWidgetEditComponent, g as AXPAdvancedGridWidget, h as AXPAdvancedGridWidgetDesignerComponent, i as AXPAdvancedGridWidgetViewComponent, j as AXPAvatarWidget, k as AXPAvatarWidgetColumnComponent, l as AXPAvatarWidgetDesignerComponent, m as AXPAvatarWidgetEditComponent, n as AXPAvatarWidgetViewComponent, o as AXPBetweenExpressionValidationWidget, p as AXPBetweenValidationWidgetEditComponent, q as AXPBlockWidget, r as AXPBlockWidgetDesignerComponent, s as AXPBlockWidgetViewComponent, u as AXPBorderWidget, v as AXPBorderWidgetEditComponent, w as AXPButtonWidget, x as AXPButtonWidgetColumnComponent, y as AXPButtonWidgetViewComponent, z as AXPCallbackValidationWidget, B as AXPCallbackValidationWidgetEditComponent, C as AXPCheckBoxWidget, D as AXPCheckBoxWidgetColumnComponent, E as AXPCheckBoxWidgetDesignerComponent, F as AXPCheckBoxWidgetEditComponent, G as AXPCheckBoxWidgetPrintComponent, H as AXPCheckBoxWidgetViewComponent, I as AXPCodeEditorWidget, J as AXPColorBoxWidget, K as AXPColorBoxWidgetColumnComponent, L as AXPColorBoxWidgetDesignerComponent, M as AXPColorBoxWidgetEditComponent, N as AXPColorBoxWidgetViewComponent, O as AXPColorChooserWidget, P as AXPColorChooserWidgetColumnComponent, Q as AXPColorChooserWidgetDesignerComponent, R as AXPColorChooserWidgetEditComponent, S as AXPColorChooserWidgetViewComponent, T as AXPColorPaletteWidget, U as AXPColorPaletteWidgetColumnComponent, V as AXPColorPaletteWidgetDesignerComponent, W as AXPColorPaletteWidgetEditComponent, X as AXPColorPaletteWidgetViewComponent, Y as AXPConditionBuilderWidget, Z as AXPConditionBuilderWidgetEditComponent, _ as AXPConditionBuilderWidgetViewComponent, $ as AXPConditionClauseWidget, a0 as AXPConditionClauseWidgetEditComponent, a1 as AXPConnectedDragDropListsWidget, a2 as AXPConnectedListsWidgetColumnComponent, a3 as AXPConnectedListsWidgetEditComponent, a4 as AXPConnectedListsWidgetViewComponent, a5 as AXPContactWidget, a6 as AXPContactWidgetColumnComponent, a7 as AXPContactWidgetEditComponent, a8 as AXPContactWidgetViewComponent, a9 as AXPDataListWidget, aa as AXPDataListWidgetViewComponent, ab as AXPDataSourceOptionsWidget, ac as AXPDataSourceOptionsWidgetEditComponent, ad as AXPDateTimeBoxWidget, ae as AXPDateTimeBoxWidgetColumnComponent, af as AXPDateTimeBoxWidgetEditComponent, ag as AXPDateTimeBoxWidgetViewComponent, ah as AXPDirectionWidget, ai as AXPDirectionWidgetEditComponent, aj as AXPDragDropListWidget, ak as AXPEditorJsWidget, al as AXPEditorJsWidgetColumnComponent, am as AXPEditorJsWidgetEditComponent, an as AXPEditorJsWidgetViewComponent, ao as AXPEqualValidationWidget, ap as AXPEqualValidationWidgetEditComponent, aq as AXPFieldsetWidget, ar as AXPFieldsetWidgetDesignerComponent, as as AXPFieldsetWidgetViewComponent, at as AXPFileViewerWidget, au as AXPFileViewerWidgetEditComponent, av as AXPFileViewerWidgetViewComponent, aw as AXPFlexItemOptionsWidget, ax as AXPFlexItemOptionsWidgetEditComponent, ay as AXPFlexItemWidget, az as AXPFlexItemWidgetDesignerComponent, aA as AXPFlexItemWidgetViewComponent, aB as AXPFlexOptionsWidget, aC as AXPFlexOptionsWidgetEditComponent, aD as AXPFlexWidget, aE as AXPFlexWidgetDesignerComponent, aF as AXPFlexWidgetViewComponent, aG as AXPGetWidgetsForAIQuery, aH as AXPGreaterThanExpressionValidationWidget, aI as AXPGreaterThanValidationWidgetEditComponent, aJ as AXPGridItemOptionsWidget, aK as AXPGridItemOptionsWidgetEditComponent, aL as AXPGridOptionsWidget, aM as AXPGridOptionsWidgetEditComponent, aN as AXPImageMarkerPopupComponent, aO as AXPImageMarkerWidget, aP as AXPImageMarkerWidgetColumnComponent, aQ as AXPImageMarkerWidgetEditComponent, aR as AXPImageMarkerWidgetViewComponent, aS as AXPIntegrationConnectionActionsService, aT as AXPIntegrationConnectionsPanelWidget, aU as AXPIntegrationConnectionsPanelWidgetEditComponent, aV as AXPItemConfiguratorWidget, aW as AXPItemConfiguratorWidgetColumnComponent, aX as AXPItemConfiguratorWidgetEditComponent, aY as AXPJsonViewerWidget, aZ as AXPJsonViewerWidgetEditComponent, a_ as AXPJsonViewerWidgetViewComponent, a$ as AXPLargeTextWidget, b0 as AXPLargeTextWidgetColumnComponent, b1 as AXPLargeTextWidgetEditComponent, b2 as AXPLargeTextWidgetPrintComponent, b3 as AXPLargeTextWidgetViewComponent, b4 as AXPLessThanExpressionValidationWidget, b5 as AXPLessThanValidationWidgetEditComponent, b6 as AXPListStylingRulesExtendedWidget, b7 as AXPListWidgetColumnComponent, b8 as AXPListWidgetEditComponent, b9 as AXPListWidgetViewComponent, ba as AXPLocalDataSourceSheetWidget, bb as AXPLocalDataSourceSheetWidgetEditComponent, bc as AXPMapWidgetEditComponent, bd as AXPMapWidgetViewComponent, be as AXPMaxLengthExpressionValidationWidget, bf as AXPMaxLengthValidationWidgetEditComponent, bg as AXPMinLengthExpressionValidationWidget, bh as AXPMinLengthValidationWidgetEditComponent, bi as AXPNodeRendererWidget, bj as AXPNodeRendererWidgetDesignerComponent, bk as AXPNodeRendererWidgetEditComponent, bl as AXPNodeRendererWidgetViewComponent, bm as AXPNumberBoxWidget, bn as AXPNumberBoxWidgetColumnComponent, bo as AXPNumberBoxWidgetEditComponent, bp as AXPNumberBoxWidgetPrintComponent, bq as AXPNumberBoxWidgetViewComponent, br as AXPOutcomeResultsViewerWidget, bs as AXPOutcomeResultsViewerWidgetViewComponent, bt as AXPPageWidget, bu as AXPPageWidgetViewComponent, bv as AXPPasswordBoxWidget, bw as AXPPasswordBoxWidgetColumnComponent, bx as AXPPasswordBoxWidgetEditComponent, by as AXPPasswordBoxWidgetViewComponent, bz as AXPProgressBarWidget, bA as AXPProgressBarWidgetColumnComponent, bB as AXPProgressBarWidgetEditComponent, bC as AXPProgressBarWidgetViewComponent, bD as AXPProviderSelectWidgetColumnComponent, bE as AXPProviderSelectWidgetEditBase, bF as AXPProviderSelectWidgetViewComponent, bG as AXPQrcodeViewerService, bH as AXPQrcodeWidget, bI as AXPQrcodeWidgetColumnComponent, bJ as AXPQrcodeWidgetEditComponent, bK as AXPQrcodeWidgetViewComponent, bL as AXPRatePickerWidget, bM as AXPRatePickerWidgetColumnComponent, bN as AXPRatePickerWidgetEditComponent, bO as AXPRatePickerWidgetViewComponent, bP as AXPRegularExpressionValidationWidget, bQ as AXPRegularExpressionValidationWidgetEditComponent, bR as AXPRepeaterWidget, bS as AXPRepeaterWidgetDesignerComponent, bT as AXPRepeaterWidgetEditComponent, bU as AXPRepeaterWidgetViewComponent, bV as AXPRequiredValidationWidget, bW as AXPRequiredValidationWidgetEditComponent, bX as AXPRichTextWidget, bY as AXPRichTextWidgetColumnComponent, bZ as AXPRichTextWidgetEditComponent, b_ as AXPRichTextWidgetPrintComponent, b$ as AXPRichTextWidgetViewComponent, c0 as AXPSchedulerPickerWidget, c1 as AXPSelectBoxWidget, c2 as AXPSelectBoxWidgetColumnComponent, c3 as AXPSelectBoxWidgetEditComponent, c4 as AXPSelectBoxWidgetViewComponent, c5 as AXPSelectLanguagePopup, c6 as AXPSelectionListWidget, c7 as AXPSelectionListWidgetColumnComponent, c8 as AXPSelectionListWidgetDesignerComponent, c9 as AXPSelectionListWidgetEditComponent, ca as AXPSelectionListWidgetViewComponent, cb as AXPSignatureWidget, cc as AXPSignatureWidgetColumnComponent, cd as AXPSignatureWidgetEditComponent, ce as AXPSignatureWidgetViewComponent, cf as AXPSpacingWidget, cg as AXPSpacingWidgetEditComponent, ch as AXPStatusChipComponent, ci as AXPStatusWidget, cj as AXPStatusWidgetColumnComponent, ck as AXPStatusWidgetEditComponent, cl as AXPStatusWidgetViewComponent, cm as AXPStepWizardWidget, cn as AXPStepWizardWidgetDesignerComponent, co as AXPStepWizardWidgetViewComponent, cp as AXPStopwatchWidget, cq as AXPStopwatchWidgetViewComponent, cr as AXPTableItemWidget, cs as AXPTableItemWidgetDesignerComponent, ct as AXPTableItemWidgetViewComponent, cu as AXPTableWidget, cv as AXPTableWidgetDesignerComponent, cw as AXPTableWidgetViewComponent, cx as AXPTagEditorWidget, cy as AXPTagEditorWidgetColumnComponent, cz as AXPTagEditorWidgetEditComponent, cA as AXPTagEditorWidgetViewComponent, cB as AXPTemplateBoxWidget, cC as AXPTemplateBoxWidgetColumnComponent, cD as AXPTemplateBoxWidgetEditComponent, cE as AXPTemplateBoxWidgetPrintComponent, cF as AXPTemplateBoxWidgetViewComponent, cG as AXPTextBoxWidget, cH as AXPTextBoxWidgetColumnComponent, cI as AXPTextBoxWidgetEditComponent, cJ as AXPTextBoxWidgetPrintComponent, cK as AXPTextBoxWidgetViewComponent, cL as AXPToggleWidget, cM as AXPToggleWidgetColumnComponent, cN as AXPToggleWidgetEditComponent, cO as AXPToggleWidgetPrintComponent, cP as AXPToggleWidgetViewComponent, cQ as AXPWidgetFieldConfiguratorWidget, cR as AXPWidgetFieldConfiguratorWidgetColumnComponent, cS as AXPWidgetFieldConfiguratorWidgetEditComponent, cT as AXPWidgetsModule, cU as AXP_ABSOLUTE_UNITS, cV as AXP_BORDER_RADIUS_UNITS, cW as AXP_BORDER_WIDTH_UNITS, cX as AXP_CONDITION_CLAUSE_WIDGET_NAME, cY as AXP_DATA_LIST_CMD_DELETE, cZ as AXP_DATA_LIST_CMD_EDIT, c_ as AXP_DATA_LIST_PENDING_DELETE_KEY, c$ as AXP_Flex_Box_Align_Options, d0 as AXP_Flex_Box_Alignments, d1 as AXP_Flex_Box_Justify_Options, d2 as AXP_Grid_Box_Align_Items_Options, d3 as AXP_Grid_Box_Alignments, d4 as AXP_Grid_Box_Justify_Items_Options, d5 as AXP_LIST_STYLING_RULES_WIDGET_NAME, d6 as AXP_LOCAL_DATA_SOURCE_SHEET_WIDGET_NAME, d7 as AXP_RELATIVE_UNITS, d8 as AXP_RELATIVE_UNITS_NO_PERCENT, A as AXP_REPEATER_ENTITY_BY_KEY_LOOKUP, d9 as AXP_ROW_EXPR_PREFIX, da as AXP_SPACING_UNITS, db as AXP_default_Border_Box_Units, dc as AXP_default_Border_Box_Value, dd as AXP_default_Spacing_Box_Units, de as AXP_default_Spacing_Box_Value, df as DEFAULT_QRCODE_SIZE, dg as DEFAULT_STRATEGY_CONFIG, dh as STRATEGY_CONFIG_TOKEN, di as applyLeafVisibilityToDataListColumnTree, dj as flattenDataListWidgetColumns, dk as formatConditionBuilderChip, dl as formatConditionBuilderSentence, dm as isDataListColumnBand, dn as prepareNodeRendererChild, dp as resolveColorChooserGroups, dq as resolveDataListColumnWidth, dr as tokensToPlainText } from './acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-CWvC9Eh2.mjs';
1
+ export { b as AXPAdvancedGridItemWidget, c as AXPAdvancedGridItemWidgetDesignerComponent, d as AXPAdvancedGridItemWidgetViewComponent, e as AXPAdvancedGridOptionsWidget, f as AXPAdvancedGridOptionsWidgetEditComponent, g as AXPAdvancedGridWidget, h as AXPAdvancedGridWidgetDesignerComponent, i as AXPAdvancedGridWidgetViewComponent, j as AXPAvatarWidget, k as AXPAvatarWidgetColumnComponent, l as AXPAvatarWidgetDesignerComponent, m as AXPAvatarWidgetEditComponent, n as AXPAvatarWidgetViewComponent, o as AXPBetweenExpressionValidationWidget, p as AXPBetweenValidationWidgetEditComponent, q as AXPBlockWidget, r as AXPBlockWidgetDesignerComponent, s as AXPBlockWidgetViewComponent, u as AXPBorderWidget, v as AXPBorderWidgetEditComponent, w as AXPButtonWidget, x as AXPButtonWidgetColumnComponent, y as AXPButtonWidgetViewComponent, z as AXPCallbackValidationWidget, B as AXPCallbackValidationWidgetEditComponent, C as AXPCheckBoxWidget, D as AXPCheckBoxWidgetColumnComponent, E as AXPCheckBoxWidgetDesignerComponent, F as AXPCheckBoxWidgetEditComponent, G as AXPCheckBoxWidgetPrintComponent, H as AXPCheckBoxWidgetViewComponent, I as AXPCodeEditorWidget, J as AXPColorBoxWidget, K as AXPColorBoxWidgetColumnComponent, L as AXPColorBoxWidgetDesignerComponent, M as AXPColorBoxWidgetEditComponent, N as AXPColorBoxWidgetViewComponent, O as AXPColorChooserWidget, P as AXPColorChooserWidgetColumnComponent, Q as AXPColorChooserWidgetDesignerComponent, R as AXPColorChooserWidgetEditComponent, S as AXPColorChooserWidgetViewComponent, T as AXPColorPaletteWidget, U as AXPColorPaletteWidgetColumnComponent, V as AXPColorPaletteWidgetDesignerComponent, W as AXPColorPaletteWidgetEditComponent, X as AXPColorPaletteWidgetViewComponent, Y as AXPConditionBuilderWidget, Z as AXPConditionBuilderWidgetEditComponent, _ as AXPConditionBuilderWidgetViewComponent, $ as AXPConditionClauseWidget, a0 as AXPConditionClauseWidgetEditComponent, a1 as AXPConnectedDragDropListsWidget, a2 as AXPConnectedListsWidgetColumnComponent, a3 as AXPConnectedListsWidgetEditComponent, a4 as AXPConnectedListsWidgetViewComponent, a5 as AXPContactWidget, a6 as AXPContactWidgetColumnComponent, a7 as AXPContactWidgetEditComponent, a8 as AXPContactWidgetViewComponent, a9 as AXPDataListColumnFooterComponent, aa as AXPDataListWidget, ab as AXPDataListWidgetViewComponent, ac as AXPDataSourceOptionsWidget, ad as AXPDataSourceOptionsWidgetEditComponent, ae as AXPDateTimeBoxWidget, af as AXPDateTimeBoxWidgetColumnComponent, ag as AXPDateTimeBoxWidgetEditComponent, ah as AXPDateTimeBoxWidgetViewComponent, ai as AXPDirectionWidget, aj as AXPDirectionWidgetEditComponent, ak as AXPDragDropListWidget, al as AXPEditorJsWidget, am as AXPEditorJsWidgetColumnComponent, an as AXPEditorJsWidgetEditComponent, ao as AXPEditorJsWidgetViewComponent, ap as AXPEqualValidationWidget, aq as AXPEqualValidationWidgetEditComponent, ar as AXPFieldsetWidget, as as AXPFieldsetWidgetDesignerComponent, at as AXPFieldsetWidgetViewComponent, au as AXPFileViewerWidget, av as AXPFileViewerWidgetEditComponent, aw as AXPFileViewerWidgetViewComponent, ax as AXPFlexItemOptionsWidget, ay as AXPFlexItemOptionsWidgetEditComponent, az as AXPFlexItemWidget, aA as AXPFlexItemWidgetDesignerComponent, aB as AXPFlexItemWidgetViewComponent, aC as AXPFlexOptionsWidget, aD as AXPFlexOptionsWidgetEditComponent, aE as AXPFlexWidget, aF as AXPFlexWidgetDesignerComponent, aG as AXPFlexWidgetViewComponent, aH as AXPGetWidgetsForAIQuery, aI as AXPGreaterThanExpressionValidationWidget, aJ as AXPGreaterThanValidationWidgetEditComponent, aK as AXPGridItemOptionsWidget, aL as AXPGridItemOptionsWidgetEditComponent, aM as AXPGridOptionsWidget, aN as AXPGridOptionsWidgetEditComponent, aO as AXPImageMarkerPopupComponent, aP as AXPImageMarkerWidget, aQ as AXPImageMarkerWidgetColumnComponent, aR as AXPImageMarkerWidgetEditComponent, aS as AXPImageMarkerWidgetViewComponent, aT as AXPIntegrationConnectionActionsService, aU as AXPIntegrationConnectionsPanelWidget, aV as AXPIntegrationConnectionsPanelWidgetEditComponent, aW as AXPItemConfiguratorWidget, aX as AXPItemConfiguratorWidgetColumnComponent, aY as AXPItemConfiguratorWidgetEditComponent, aZ as AXPJsonViewerWidget, a_ as AXPJsonViewerWidgetEditComponent, a$ as AXPJsonViewerWidgetViewComponent, b0 as AXPLargeTextWidget, b1 as AXPLargeTextWidgetColumnComponent, b2 as AXPLargeTextWidgetEditComponent, b3 as AXPLargeTextWidgetPrintComponent, b4 as AXPLargeTextWidgetViewComponent, b5 as AXPLessThanExpressionValidationWidget, b6 as AXPLessThanValidationWidgetEditComponent, b7 as AXPListStylingRulesExtendedWidget, b8 as AXPListWidgetColumnComponent, b9 as AXPListWidgetEditComponent, ba as AXPListWidgetViewComponent, bb as AXPLocalDataSourceSheetWidget, bc as AXPLocalDataSourceSheetWidgetEditComponent, bd as AXPMapWidgetEditComponent, be as AXPMapWidgetViewComponent, bf as AXPMaxLengthExpressionValidationWidget, bg as AXPMaxLengthValidationWidgetEditComponent, bh as AXPMinLengthExpressionValidationWidget, bi as AXPMinLengthValidationWidgetEditComponent, bj as AXPNodeRendererWidget, bk as AXPNodeRendererWidgetDesignerComponent, bl as AXPNodeRendererWidgetEditComponent, bm as AXPNodeRendererWidgetViewComponent, bn as AXPNumberBoxWidget, bo as AXPNumberBoxWidgetColumnComponent, bp as AXPNumberBoxWidgetEditComponent, bq as AXPNumberBoxWidgetPrintComponent, br as AXPNumberBoxWidgetViewComponent, bs as AXPOutcomeResultsViewerWidget, bt as AXPOutcomeResultsViewerWidgetViewComponent, bu as AXPPageWidget, bv as AXPPageWidgetViewComponent, bw as AXPPasswordBoxWidget, bx as AXPPasswordBoxWidgetColumnComponent, by as AXPPasswordBoxWidgetEditComponent, bz as AXPPasswordBoxWidgetViewComponent, bA as AXPProgressBarWidget, bB as AXPProgressBarWidgetColumnComponent, bC as AXPProgressBarWidgetEditComponent, bD as AXPProgressBarWidgetViewComponent, bE as AXPProviderSelectWidgetColumnComponent, bF as AXPProviderSelectWidgetEditBase, bG as AXPProviderSelectWidgetViewComponent, bH as AXPQrcodeViewerService, bI as AXPQrcodeWidget, bJ as AXPQrcodeWidgetColumnComponent, bK as AXPQrcodeWidgetEditComponent, bL as AXPQrcodeWidgetViewComponent, bM as AXPRatePickerWidget, bN as AXPRatePickerWidgetColumnComponent, bO as AXPRatePickerWidgetEditComponent, bP as AXPRatePickerWidgetViewComponent, bQ as AXPRegularExpressionValidationWidget, bR as AXPRegularExpressionValidationWidgetEditComponent, bS as AXPRepeaterWidget, bT as AXPRepeaterWidgetDesignerComponent, bU as AXPRepeaterWidgetEditComponent, bV as AXPRepeaterWidgetViewComponent, bW as AXPRequiredValidationWidget, bX as AXPRequiredValidationWidgetEditComponent, bY as AXPRichTextWidget, bZ as AXPRichTextWidgetColumnComponent, b_ as AXPRichTextWidgetEditComponent, b$ as AXPRichTextWidgetPrintComponent, c0 as AXPRichTextWidgetViewComponent, c1 as AXPSchedulerPickerWidget, c2 as AXPSelectBoxWidget, c3 as AXPSelectBoxWidgetColumnComponent, c4 as AXPSelectBoxWidgetEditComponent, c5 as AXPSelectBoxWidgetViewComponent, c6 as AXPSelectLanguagePopup, c7 as AXPSelectionListWidget, c8 as AXPSelectionListWidgetColumnComponent, c9 as AXPSelectionListWidgetDesignerComponent, ca as AXPSelectionListWidgetEditComponent, cb as AXPSelectionListWidgetViewComponent, cc as AXPSignatureWidget, cd as AXPSignatureWidgetColumnComponent, ce as AXPSignatureWidgetEditComponent, cf as AXPSignatureWidgetViewComponent, cg as AXPSpacingWidget, ch as AXPSpacingWidgetEditComponent, ci as AXPStatusChipComponent, cj as AXPStatusWidget, ck as AXPStatusWidgetColumnComponent, cl as AXPStatusWidgetEditComponent, cm as AXPStatusWidgetViewComponent, cn as AXPStepWizardWidget, co as AXPStepWizardWidgetDesignerComponent, cp as AXPStepWizardWidgetViewComponent, cq as AXPStopwatchWidget, cr as AXPStopwatchWidgetViewComponent, cs as AXPTableItemWidget, ct as AXPTableItemWidgetDesignerComponent, cu as AXPTableItemWidgetViewComponent, cv as AXPTableWidget, cw as AXPTableWidgetDesignerComponent, cx as AXPTableWidgetViewComponent, cy as AXPTagEditorWidget, cz as AXPTagEditorWidgetColumnComponent, cA as AXPTagEditorWidgetEditComponent, cB as AXPTagEditorWidgetViewComponent, cC as AXPTemplateBoxWidget, cD as AXPTemplateBoxWidgetColumnComponent, cE as AXPTemplateBoxWidgetEditComponent, cF as AXPTemplateBoxWidgetPrintComponent, cG as AXPTemplateBoxWidgetViewComponent, cH as AXPTextBoxWidget, cI as AXPTextBoxWidgetColumnComponent, cJ as AXPTextBoxWidgetEditComponent, cK as AXPTextBoxWidgetPrintComponent, cL as AXPTextBoxWidgetViewComponent, cM as AXPToggleWidget, cN as AXPToggleWidgetColumnComponent, cO as AXPToggleWidgetEditComponent, cP as AXPToggleWidgetPrintComponent, cQ as AXPToggleWidgetViewComponent, cR as AXPWidgetFieldConfiguratorWidget, cS as AXPWidgetFieldConfiguratorWidgetColumnComponent, cT as AXPWidgetFieldConfiguratorWidgetEditComponent, cU as AXPWidgetsModule, cV as AXP_ABSOLUTE_UNITS, cW as AXP_BORDER_RADIUS_UNITS, cX as AXP_BORDER_WIDTH_UNITS, cY as AXP_CONDITION_CLAUSE_WIDGET_NAME, cZ as AXP_DATA_LIST_CMD_DELETE, c_ as AXP_DATA_LIST_CMD_EDIT, c$ as AXP_DATA_LIST_PENDING_DELETE_KEY, d0 as AXP_DATETIME_FILTER_DEFAULT_OPERATOR, d1 as AXP_Flex_Box_Align_Options, d2 as AXP_Flex_Box_Alignments, d3 as AXP_Flex_Box_Justify_Options, d4 as AXP_Grid_Box_Align_Items_Options, d5 as AXP_Grid_Box_Alignments, d6 as AXP_Grid_Box_Justify_Items_Options, d7 as AXP_LIST_STYLING_RULES_WIDGET_NAME, d8 as AXP_LOCAL_DATA_SOURCE_SHEET_WIDGET_NAME, d9 as AXP_RELATIVE_UNITS, da as AXP_RELATIVE_UNITS_NO_PERCENT, A as AXP_REPEATER_ENTITY_BY_KEY_LOOKUP, db as AXP_ROW_EXPR_PREFIX, dc as AXP_SELECT_FILTER_DEFAULT_OPERATOR, dd as AXP_SPACING_UNITS, de as AXP_default_Border_Box_Units, df as AXP_default_Border_Box_Value, dg as AXP_default_Spacing_Box_Units, dh as AXP_default_Spacing_Box_Value, di as DEFAULT_QRCODE_SIZE, dj as DEFAULT_STRATEGY_CONFIG, dk as STRATEGY_CONFIG_TOKEN, dl as applyLeafVisibilityToDataListColumnTree, dm as flattenDataListWidgetColumns, dn as formatConditionBuilderChip, dp as formatConditionBuilderSentence, dq as isDataListColumnBand, dr as prepareNodeRendererChild, ds as resolveColorChooserGroups, dt as resolveDataListColumnWidth, du as tokensToPlainText } from './acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-DuFZf8eb.mjs';
2
2
  export * from '@acorex-platform/framework-client/layout/widget-core';
3
3
  export { AXP_WIDGET_AI_AGENT_ASSIST_FOLLOW_UP_CHIPS_LAYOUT, AXP_WIDGET_AI_AGENT_CHART_LAYOUT, AXP_WIDGET_AI_AGENT_FORM_LAYOUT, AXP_WIDGET_AI_AGENT_NAMES, matchesWidgetAiAgent } from '@acorex-platform/framework-shared/runtime';
4
4
  //# sourceMappingURL=acorex-platform-framework-client-layout-widgets.mjs.map
@@ -22,7 +22,7 @@ import { FormsModule } from '@angular/forms';
22
22
  import { AXValidationModule } from '@acorex/core/validation';
23
23
  import { AXDropdownModule } from '@acorex/components/dropdown';
24
24
  import { AXToastService } from '@acorex/components/toast';
25
- import * as i3$1 from '@acorex/core/translation';
25
+ import * as i2$1 from '@acorex/core/translation';
26
26
  import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
27
27
  import * as i1$1 from '@acorex-platform/framework-client/core';
28
28
  import { AXPExpressionEvaluatorService, AXPComponentSlotModule, AXPGridLayoutDirective, AXPContextStore } from '@acorex-platform/framework-client/core';
@@ -127,9 +127,9 @@ class AXPEntityMasterCreateViewComponent extends AXBasePageComponent {
127
127
  this.vm.context.set(e.data);
128
128
  }
129
129
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPEntityMasterCreateViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
130
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPEntityMasterCreateViewComponent, isStandalone: true, selector: "ng-component", providers: [AXPContextStore], viewQueries: [{ propertyName: "container", first: true, predicate: AXPWidgetContainerComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<axp-component-slot name=\"entity-create-header\" [context]=\"vm.context()\"></axp-component-slot>\n<axp-widgets-container [context]=\"vm.context()\" (onContextChanged)=\"handleContextChange($event)\">\n <ax-form id=\"axp-entity-form-create\" class=\"flex flex-col gap-6 p-4 pb-8\" #form [messageStyle]=\"'bottom'\"\n [updateOn]=\"'blur'\">\n <!-- Begin Sections -->\n <div class=\"@container grid grid-cols-12 gap-4\">\n @for (section of vm.sections(); track section.name()) {\n <div [axp-grid-layout]=\"section.layout()\">\n <ax-form #form>\n @if (vm.sections().length > 1 && !section.description()) {\n <div class=\"pb-4\">\n <span class=\"font-bold text-xl\">{{ section.title() | translate | async }}</span>\n @if (section.description()) {\n <p class=\"text-sm text-gray-500\">{{ section.description() }}</p>\n }\n </div>\n }\n <div class=\"card-body @container grid! grid-cols-12! gap-4!\">\n @for (attr of section.elements(); track $index) {\n <ax-form-field [attr.id]=\"'axp-field-' + attr.name()\" class=\"flex flex-col gap-1\"\n [axp-grid-layout]=\"attr.layout()\" [class.hidden]=\"hiddenProperties().includes(attr.name())\">\n @if (attr.layout().label?.visible != false) {\n <ax-label class=\"font-semibold text-sm\" [required]=\"attr.isRequired()\">\n @if (attr.title()) {\n {{ attr.title() | translate | async }}\n } @else {\n &nbsp;\n }\n </ax-label>\n }\n <ng-container axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'edit'\"\n #widget=\"widgetRenderer\"></ng-container>\n @if (attr.description()) {\n <p class=\"text-sm mt-1 font-normal opacity-75\">\n {{ attr.description() | translate | async }}\n </p>\n }\n </ax-form-field>\n }\n </div>\n </ax-form>\n </div>\n }\n </div>\n <!-- Finish Sections -->\n <ax-validation-summary [displayMode]=\"'toast'\" [autoHide]=\"true\"></ax-validation-summary>\n </ax-form>\n</axp-widgets-container>\n@if (slot.isEmpty()) {\n<ax-footer id=\"axp-entity-footer-create\">\n <ax-prefix>\n <axp-component-slot name=\"entity-create-footer-prefix\" [context]=\"vm.context()\"></axp-component-slot>\n </ax-prefix>\n <ax-suffix>\n <ax-button id=\"axp-btn-cancel\" look=\"solid\" [color]=\"'default'\"\n [text]=\"'@general:actions.cancel.title' | translate | async\" (onClick)=\"handleCloseClick()\">\n </ax-button>\n @if (vm.canCreateNewOne()) {\n <ax-dropdown-button id=\"axp-btn-save\" [disabled]=\"vm.isInProgress()\" color=\"primary\"\n [text]=\"'@general:actions.save.title' | translate | async\" look=\"solid\" (onClick)=\"handleSaveClick(form)\">\n @if (vm.isInProgress()) {\n <ax-loading></ax-loading>\n }\n <ax-button-item-list>\n <ax-button-item id=\"axp-btn-save-and-new\"\n [text]=\"('@general:actions.save-and-new.title' | translate | async) ?? ''\"\n (onClick)=\"handleSaveAndNewClick(form)\">\n </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-button>\n } @else {\n <ax-button id=\"axp-btn-save\" look=\"solid\" color=\"primary\" [text]=\"'@general:actions.save.title' | translate | async\"\n (onClick)=\"handleSaveClick(form)\">\n @if (vm.isInProgress()) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n <axp-component-slot name=\"entity-create-footer-suffix\" [context]=\"vm.context()\"></axp-component-slot>\n </ax-suffix>\n</ax-footer>\n}\n\n<axp-component-slot name=\"entity-create-footer\" #slot=\"slot\" [context]=\"vm.context()\"></axp-component-slot>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i1.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i1.AXFormComponent, selector: "ax-form", inputs: ["disabled", "readonly", "labelMode", "look", "messageStyle", "updateOn", "inUserInteractionActive"], outputs: ["onValidate", "updateOnChange"] }, { kind: "component", type: i1.AXValidationSummaryComponent, selector: "ax-validation-summary", inputs: ["title", "displayMode", "timeOut", "autoHide"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.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: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i3.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i3.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items", "closeParentOnClick", "lockOnLoading"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXDialogModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTabsModule }, { kind: "ngmodule", type: AXTooltipModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i5.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "component", type: i6.AXDropdownButtonComponent, selector: "ax-dropdown-button", inputs: ["disabled", "size", "text", "color", "look", "type", "mode"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "ngmodule", type:
130
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPEntityMasterCreateViewComponent, isStandalone: true, selector: "ng-component", providers: [AXPContextStore], viewQueries: [{ propertyName: "container", first: true, predicate: AXPWidgetContainerComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<axp-component-slot name=\"entity-create-header\" [context]=\"vm.context()\"></axp-component-slot>\n<axp-widgets-container [context]=\"vm.context()\" (onContextChanged)=\"handleContextChange($event)\">\n <ax-form id=\"axp-entity-form-create\" class=\"flex flex-col gap-6 p-4 pb-8\" #form [messageStyle]=\"'bottom'\"\n [updateOn]=\"'blur'\">\n <!-- Begin Sections -->\n <div class=\"@container grid grid-cols-12 gap-4\">\n @for (section of vm.sections(); track section.name()) {\n <div [axp-grid-layout]=\"section.layout()\">\n <ax-form #form>\n @if (vm.sections().length > 1 && !section.description()) {\n <div class=\"pb-4\">\n <span class=\"font-bold text-xl\">{{ section.title() | translate | async }}</span>\n @if (section.description()) {\n <p class=\"text-sm text-gray-500\">{{ section.description() }}</p>\n }\n </div>\n }\n <div class=\"card-body @container grid! grid-cols-12! gap-4!\">\n @for (attr of section.elements(); track $index) {\n <ax-form-field [attr.id]=\"'axp-field-' + attr.name()\" class=\"flex flex-col gap-1\"\n [axp-grid-layout]=\"attr.layout()\" [class.hidden]=\"hiddenProperties().includes(attr.name())\">\n @if (attr.layout().label?.visible != false) {\n <ax-label class=\"font-semibold text-sm\" [required]=\"attr.isRequired()\">\n @if (attr.title()) {\n {{ attr.title() | translate | async }}\n } @else {\n &nbsp;\n }\n </ax-label>\n }\n <ng-container axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'edit'\"\n #widget=\"widgetRenderer\"></ng-container>\n @if (attr.description()) {\n <p class=\"text-sm mt-1 font-normal opacity-75\">\n {{ attr.description() | translate | async }}\n </p>\n }\n </ax-form-field>\n }\n </div>\n </ax-form>\n </div>\n }\n </div>\n <!-- Finish Sections -->\n <ax-validation-summary [displayMode]=\"'toast'\" [autoHide]=\"true\"></ax-validation-summary>\n </ax-form>\n</axp-widgets-container>\n@if (slot.isEmpty()) {\n<ax-footer id=\"axp-entity-footer-create\">\n <ax-prefix>\n <axp-component-slot name=\"entity-create-footer-prefix\" [context]=\"vm.context()\"></axp-component-slot>\n </ax-prefix>\n <ax-suffix>\n <ax-button id=\"axp-btn-cancel\" look=\"solid\" [color]=\"'default'\"\n [text]=\"'@general:actions.cancel.title' | translate | async\" (onClick)=\"handleCloseClick()\">\n </ax-button>\n @if (vm.canCreateNewOne()) {\n <ax-dropdown-button id=\"axp-btn-save\" [disabled]=\"vm.isInProgress()\" color=\"primary\"\n [text]=\"'@general:actions.save.title' | translate | async\" look=\"solid\" (onClick)=\"handleSaveClick(form)\">\n @if (vm.isInProgress()) {\n <ax-loading></ax-loading>\n }\n <ax-button-item-list>\n <ax-button-item id=\"axp-btn-save-and-new\"\n [text]=\"('@general:actions.save-and-new.title' | translate | async) ?? ''\"\n (onClick)=\"handleSaveAndNewClick(form)\">\n </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-button>\n } @else {\n <ax-button id=\"axp-btn-save\" look=\"solid\" color=\"primary\" [text]=\"'@general:actions.save.title' | translate | async\"\n (onClick)=\"handleSaveClick(form)\">\n @if (vm.isInProgress()) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n <axp-component-slot name=\"entity-create-footer-suffix\" [context]=\"vm.context()\"></axp-component-slot>\n </ax-suffix>\n</ax-footer>\n}\n\n<axp-component-slot name=\"entity-create-footer\" #slot=\"slot\" [context]=\"vm.context()\"></axp-component-slot>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i1.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i1.AXFormComponent, selector: "ax-form", inputs: ["disabled", "readonly", "labelMode", "look", "messageStyle", "updateOn", "inUserInteractionActive"], outputs: ["onValidate", "updateOnChange"] }, { kind: "component", type: i1.AXValidationSummaryComponent, selector: "ax-validation-summary", inputs: ["title", "displayMode", "timeOut", "autoHide"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.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: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i3.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i3.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items", "closeParentOnClick", "lockOnLoading"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXDialogModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXTabsModule }, { kind: "ngmodule", type: AXTooltipModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i5.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "component", type: i6.AXDropdownButtonComponent, selector: "ax-dropdown-button", inputs: ["disabled", "size", "text", "selected", "color", "look", "type", "mode", "iconOnly"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "ngmodule", type:
131
131
  //
132
- AXPWidgetCoreModule }, { kind: "component", type: i7.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i7.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged", "onLoad"], exportAs: ["widgetRenderer"] }, { kind: "ngmodule", type: AXPComponentSlotModule }, { kind: "directive", type: i1$1.AXPComponentSlotDirective, selector: "axp-component-slot", inputs: ["name", "host", "context"], exportAs: ["slot"] }, { kind: "ngmodule", type: AXPWidgetsModule }, { kind: "directive", type: AXPGridLayoutDirective, selector: "[axp-grid-layout]", inputs: ["axp-grid-layout"] }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "pipe", type: i3$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
132
+ AXPWidgetCoreModule }, { kind: "component", type: i7.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i7.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged", "onLoad"], exportAs: ["widgetRenderer"] }, { kind: "ngmodule", type: AXPComponentSlotModule }, { kind: "directive", type: i1$1.AXPComponentSlotDirective, selector: "axp-component-slot", inputs: ["name", "host", "context"], exportAs: ["slot"] }, { kind: "ngmodule", type: AXPWidgetsModule }, { kind: "directive", type: AXPGridLayoutDirective, selector: "[axp-grid-layout]", inputs: ["axp-grid-layout"] }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "pipe", type: i2$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
133
133
  }
134
134
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPEntityMasterCreateViewComponent, decorators: [{
135
135
  type: Component,
@@ -158,4 +158,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
158
158
  }], propDecorators: { container: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXPWidgetContainerComponent), { isSignal: true }] }] } });
159
159
 
160
160
  export { AXPEntityMasterCreateViewComponent };
161
- //# sourceMappingURL=acorex-platform-framework-client-themes-default-entity-master-create-view.component-Dh_hRxZX.mjs.map
161
+ //# sourceMappingURL=acorex-platform-framework-client-themes-default-entity-master-create-view.component-DwCoz2Du.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-platform-framework-client-themes-default-entity-master-create-view.component-Dh_hRxZX.mjs","sources":["../../../../../libs/framework/client/themes/default/src/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.ts","../../../../../libs/framework/client/themes/default/src/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDialogModule } from '@acorex/components/dialog';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTabsModule } from '@acorex/components/tabs';\nimport { AXTooltipModule } from '@acorex/components/tooltip';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, effect, inject, signal, viewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\nimport { AXValidationModule } from '@acorex/core/validation';\n\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport { AXPContextChangeEvent } from '@acorex-platform/framework-shared/core';\nimport { AXPComponentSlotModule, AXPContextStore, AXPExpressionEvaluatorService, AXPGridLayoutDirective } from '@acorex-platform/framework-client/core';\nimport { AXPEntityMasterCreateViewModel } from '@acorex-platform/framework-client/layout/entity';\nimport {\n AXPWidgetContainerComponent,\n AXPWidgetCoreModule,\n} from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXPWidgetsModule } from '@acorex-platform/framework-client/layout/widgets';\nimport { get } from 'lodash-es';\n\n@Component({\n templateUrl: './entity-master-create-view.component.html',\n imports: [\n CommonModule,\n FormsModule,\n AXFormModule,\n AXDecoratorModule,\n CommonModule,\n AXButtonModule,\n AXDialogModule,\n AXLoadingModule,\n AXTabsModule,\n AXTooltipModule,\n AXValidationModule,\n AXLabelModule,\n AXDropdownModule,\n AXDropdownButtonModule,\n AXTranslationModule,\n //\n AXPWidgetCoreModule,\n AXPComponentSlotModule,\n AXPWidgetsModule,\n AXPGridLayoutDirective,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [AXPContextStore],\n})\nexport class AXPEntityMasterCreateViewComponent extends AXBasePageComponent {\n protected vm!: AXPEntityMasterCreateViewModel;\n\n private container = viewChild(AXPWidgetContainerComponent);\n private evaluator = inject(AXPExpressionEvaluatorService);\n private toastService = inject(AXToastService);\n private translationService = inject(AXTranslationService);\n\n ngAfterViewInit() {\n this.vm.builder = this.container()!.builderService;\n }\n protected hiddenProperties = signal<string[]>([]);\n\n #visibilityEffect = effect(async () => {\n const formContext = this.vm.context();\n const allElements = this.vm.sections().flatMap((section) => section.elements());\n const visibilityConfig = allElements.map((element) => ({\n name: element.name(),\n visible: element.isVisible(),\n }));\n\n const evaluatedElements = await this.evaluator.evaluate(visibilityConfig, {\n context: {\n eval: (path: string) => get(formContext, path),\n },\n });\n\n const hiddenElementNames = evaluatedElements\n .filter((element: { name: string; visible: boolean }) => element.visible == false)\n .map((element: { name: string; visible: boolean }) => element.name);\n this.hiddenProperties.set(hiddenElementNames);\n });\n\n protected handleCloseClick() {\n this.close();\n }\n\n protected async handleBackClick() {\n //await this.vm.executeCommand('back');\n }\n\n protected async handleNextClick(form: AXFormComponent) {\n // const formResult = await form.validate();\n // if (formResult.result) {\n // await this.vm.executeCommand('next');\n // }\n }\n\n protected async handleSaveClick(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n try {\n const record = await this.vm.save();\n\n this.close({ save: true, recordId: record?.id, item: record, redirect: this.vm.redirect() });\n } catch (error: any) {\n const errorMessage =\n error?.message ||\n error?.toString() ||\n (await this.translationService.translateAsync('@general:messages.generic.error.description'));\n // this.toastService.show({\n // color: 'danger',\n // title: await this.translationService.translateAsync('@general:messages.generic.error.title'),\n // content: errorMessage,\n // location: 'bottom-center',\n // closeButton: true,\n // timeOut: 5000,\n // timeOutProgress: true,\n // });\n }\n }\n }\n\n protected async handleSaveAndNewClick(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n try {\n const record = await this.vm.save();\n this.close({ save: true, recordId: record?.id, item: record, redirect: false });\n await this.vm.createNewOne();\n } catch (error: any) {\n const errorMessage =\n error?.message ||\n error?.toString() ||\n (await this.translationService.translateAsync('@general:messages.generic.error.description'));\n // this.toastService.show({\n // color: 'danger',\n // title: await this.translationService.translateAsync('@general:messages.generic.error.title'),\n // content: errorMessage,\n // location: 'bottom-center',\n // closeButton: true,\n // timeOut: 5000,\n // timeOutProgress: true,\n // });\n }\n }\n }\n\n protected async handleContextChange(e: AXPContextChangeEvent) {\n this.vm.context.set(e.data);\n }\n}\n","<axp-component-slot name=\"entity-create-header\" [context]=\"vm.context()\"></axp-component-slot>\n<axp-widgets-container [context]=\"vm.context()\" (onContextChanged)=\"handleContextChange($event)\">\n <ax-form id=\"axp-entity-form-create\" class=\"flex flex-col gap-6 p-4 pb-8\" #form [messageStyle]=\"'bottom'\"\n [updateOn]=\"'blur'\">\n <!-- Begin Sections -->\n <div class=\"@container grid grid-cols-12 gap-4\">\n @for (section of vm.sections(); track section.name()) {\n <div [axp-grid-layout]=\"section.layout()\">\n <ax-form #form>\n @if (vm.sections().length > 1 && !section.description()) {\n <div class=\"pb-4\">\n <span class=\"font-bold text-xl\">{{ section.title() | translate | async }}</span>\n @if (section.description()) {\n <p class=\"text-sm text-gray-500\">{{ section.description() }}</p>\n }\n </div>\n }\n <div class=\"card-body @container grid! grid-cols-12! gap-4!\">\n @for (attr of section.elements(); track $index) {\n <ax-form-field [attr.id]=\"'axp-field-' + attr.name()\" class=\"flex flex-col gap-1\"\n [axp-grid-layout]=\"attr.layout()\" [class.hidden]=\"hiddenProperties().includes(attr.name())\">\n @if (attr.layout().label?.visible != false) {\n <ax-label class=\"font-semibold text-sm\" [required]=\"attr.isRequired()\">\n @if (attr.title()) {\n {{ attr.title() | translate | async }}\n } @else {\n &nbsp;\n }\n </ax-label>\n }\n <ng-container axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'edit'\"\n #widget=\"widgetRenderer\"></ng-container>\n @if (attr.description()) {\n <p class=\"text-sm mt-1 font-normal opacity-75\">\n {{ attr.description() | translate | async }}\n </p>\n }\n </ax-form-field>\n }\n </div>\n </ax-form>\n </div>\n }\n </div>\n <!-- Finish Sections -->\n <ax-validation-summary [displayMode]=\"'toast'\" [autoHide]=\"true\"></ax-validation-summary>\n </ax-form>\n</axp-widgets-container>\n@if (slot.isEmpty()) {\n<ax-footer id=\"axp-entity-footer-create\">\n <ax-prefix>\n <axp-component-slot name=\"entity-create-footer-prefix\" [context]=\"vm.context()\"></axp-component-slot>\n </ax-prefix>\n <ax-suffix>\n <ax-button id=\"axp-btn-cancel\" look=\"solid\" [color]=\"'default'\"\n [text]=\"'@general:actions.cancel.title' | translate | async\" (onClick)=\"handleCloseClick()\">\n </ax-button>\n @if (vm.canCreateNewOne()) {\n <ax-dropdown-button id=\"axp-btn-save\" [disabled]=\"vm.isInProgress()\" color=\"primary\"\n [text]=\"'@general:actions.save.title' | translate | async\" look=\"solid\" (onClick)=\"handleSaveClick(form)\">\n @if (vm.isInProgress()) {\n <ax-loading></ax-loading>\n }\n <ax-button-item-list>\n <ax-button-item id=\"axp-btn-save-and-new\"\n [text]=\"('@general:actions.save-and-new.title' | translate | async) ?? ''\"\n (onClick)=\"handleSaveAndNewClick(form)\">\n </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-button>\n } @else {\n <ax-button id=\"axp-btn-save\" look=\"solid\" color=\"primary\" [text]=\"'@general:actions.save.title' | translate | async\"\n (onClick)=\"handleSaveClick(form)\">\n @if (vm.isInProgress()) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n <axp-component-slot name=\"entity-create-footer-suffix\" [context]=\"vm.context()\"></axp-component-slot>\n </ax-suffix>\n</ax-footer>\n}\n\n<axp-component-slot name=\"entity-create-footer\" #slot=\"slot\" [context]=\"vm.context()\"></axp-component-slot>"],"names":["i8","i9","i10"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDM,MAAO,kCAAmC,SAAQ,mBAAmB,CAAA;AA3B3E,IAAA,WAAA,GAAA;;QA8BU,IAAA,CAAA,SAAS,GAAG,SAAS,CAAC,2BAA2B;sFAAC;AAClD,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,6BAA6B,CAAC;AACjD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,oBA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A,IAAA,EAAAC,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAKb,kCAAkC,EAAA,UAAA,EAAA,CAAA;kBA3B9C,SAAS;AAEC,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA;wBACP,YAAY;wBACZ,WAAW;wBACX,YAAY;wBACZ,iBAAiB;wBACjB,YAAY;wBACZ,cAAc;wBACd,cAAc;wBACd,eAAe;wBACf,YAAY;wBACZ,eAAe;wBACf,kBAAkB;wBAClB,aAAa;wBACb,gBAAgB;wBAChB,sBAAsB;wBACtB,mBAAmB;;wBAEnB,mBAAmB;wBACnB,sBAAsB;wBACtB,gBAAgB;wBAChB,sBAAsB;AACvB,qBAAA,EAAA,eAAA,EACgB,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC,CAAC,eAAe,CAAC,EAAA,QAAA,EAAA,yzHAAA,EAAA;2FAKE,2BAA2B,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;"}
1
+ {"version":3,"file":"acorex-platform-framework-client-themes-default-entity-master-create-view.component-DwCoz2Du.mjs","sources":["../../../../../libs/framework/client/themes/default/src/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.ts","../../../../../libs/framework/client/themes/default/src/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXDialogModule } from '@acorex/components/dialog';\nimport { AXDropdownButtonModule } from '@acorex/components/dropdown-button';\nimport { AXFormComponent, AXFormModule } from '@acorex/components/form';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXLoadingModule } from '@acorex/components/loading';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTabsModule } from '@acorex/components/tabs';\nimport { AXTooltipModule } from '@acorex/components/tooltip';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, effect, inject, signal, viewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\nimport { AXValidationModule } from '@acorex/core/validation';\n\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';\nimport { AXPContextChangeEvent } from '@acorex-platform/framework-shared/core';\nimport { AXPComponentSlotModule, AXPContextStore, AXPExpressionEvaluatorService, AXPGridLayoutDirective } from '@acorex-platform/framework-client/core';\nimport { AXPEntityMasterCreateViewModel } from '@acorex-platform/framework-client/layout/entity';\nimport {\n AXPWidgetContainerComponent,\n AXPWidgetCoreModule,\n} from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXPWidgetsModule } from '@acorex-platform/framework-client/layout/widgets';\nimport { get } from 'lodash-es';\n\n@Component({\n templateUrl: './entity-master-create-view.component.html',\n imports: [\n CommonModule,\n FormsModule,\n AXFormModule,\n AXDecoratorModule,\n CommonModule,\n AXButtonModule,\n AXDialogModule,\n AXLoadingModule,\n AXTabsModule,\n AXTooltipModule,\n AXValidationModule,\n AXLabelModule,\n AXDropdownModule,\n AXDropdownButtonModule,\n AXTranslationModule,\n //\n AXPWidgetCoreModule,\n AXPComponentSlotModule,\n AXPWidgetsModule,\n AXPGridLayoutDirective,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [AXPContextStore],\n})\nexport class AXPEntityMasterCreateViewComponent extends AXBasePageComponent {\n protected vm!: AXPEntityMasterCreateViewModel;\n\n private container = viewChild(AXPWidgetContainerComponent);\n private evaluator = inject(AXPExpressionEvaluatorService);\n private toastService = inject(AXToastService);\n private translationService = inject(AXTranslationService);\n\n ngAfterViewInit() {\n this.vm.builder = this.container()!.builderService;\n }\n protected hiddenProperties = signal<string[]>([]);\n\n #visibilityEffect = effect(async () => {\n const formContext = this.vm.context();\n const allElements = this.vm.sections().flatMap((section) => section.elements());\n const visibilityConfig = allElements.map((element) => ({\n name: element.name(),\n visible: element.isVisible(),\n }));\n\n const evaluatedElements = await this.evaluator.evaluate(visibilityConfig, {\n context: {\n eval: (path: string) => get(formContext, path),\n },\n });\n\n const hiddenElementNames = evaluatedElements\n .filter((element: { name: string; visible: boolean }) => element.visible == false)\n .map((element: { name: string; visible: boolean }) => element.name);\n this.hiddenProperties.set(hiddenElementNames);\n });\n\n protected handleCloseClick() {\n this.close();\n }\n\n protected async handleBackClick() {\n //await this.vm.executeCommand('back');\n }\n\n protected async handleNextClick(form: AXFormComponent) {\n // const formResult = await form.validate();\n // if (formResult.result) {\n // await this.vm.executeCommand('next');\n // }\n }\n\n protected async handleSaveClick(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n try {\n const record = await this.vm.save();\n\n this.close({ save: true, recordId: record?.id, item: record, redirect: this.vm.redirect() });\n } catch (error: any) {\n const errorMessage =\n error?.message ||\n error?.toString() ||\n (await this.translationService.translateAsync('@general:messages.generic.error.description'));\n // this.toastService.show({\n // color: 'danger',\n // title: await this.translationService.translateAsync('@general:messages.generic.error.title'),\n // content: errorMessage,\n // location: 'bottom-center',\n // closeButton: true,\n // timeOut: 5000,\n // timeOutProgress: true,\n // });\n }\n }\n }\n\n protected async handleSaveAndNewClick(form: AXFormComponent) {\n const formResult = await form.validate();\n if (formResult.result) {\n try {\n const record = await this.vm.save();\n this.close({ save: true, recordId: record?.id, item: record, redirect: false });\n await this.vm.createNewOne();\n } catch (error: any) {\n const errorMessage =\n error?.message ||\n error?.toString() ||\n (await this.translationService.translateAsync('@general:messages.generic.error.description'));\n // this.toastService.show({\n // color: 'danger',\n // title: await this.translationService.translateAsync('@general:messages.generic.error.title'),\n // content: errorMessage,\n // location: 'bottom-center',\n // closeButton: true,\n // timeOut: 5000,\n // timeOutProgress: true,\n // });\n }\n }\n }\n\n protected async handleContextChange(e: AXPContextChangeEvent) {\n this.vm.context.set(e.data);\n }\n}\n","<axp-component-slot name=\"entity-create-header\" [context]=\"vm.context()\"></axp-component-slot>\n<axp-widgets-container [context]=\"vm.context()\" (onContextChanged)=\"handleContextChange($event)\">\n <ax-form id=\"axp-entity-form-create\" class=\"flex flex-col gap-6 p-4 pb-8\" #form [messageStyle]=\"'bottom'\"\n [updateOn]=\"'blur'\">\n <!-- Begin Sections -->\n <div class=\"@container grid grid-cols-12 gap-4\">\n @for (section of vm.sections(); track section.name()) {\n <div [axp-grid-layout]=\"section.layout()\">\n <ax-form #form>\n @if (vm.sections().length > 1 && !section.description()) {\n <div class=\"pb-4\">\n <span class=\"font-bold text-xl\">{{ section.title() | translate | async }}</span>\n @if (section.description()) {\n <p class=\"text-sm text-gray-500\">{{ section.description() }}</p>\n }\n </div>\n }\n <div class=\"card-body @container grid! grid-cols-12! gap-4!\">\n @for (attr of section.elements(); track $index) {\n <ax-form-field [attr.id]=\"'axp-field-' + attr.name()\" class=\"flex flex-col gap-1\"\n [axp-grid-layout]=\"attr.layout()\" [class.hidden]=\"hiddenProperties().includes(attr.name())\">\n @if (attr.layout().label?.visible != false) {\n <ax-label class=\"font-semibold text-sm\" [required]=\"attr.isRequired()\">\n @if (attr.title()) {\n {{ attr.title() | translate | async }}\n } @else {\n &nbsp;\n }\n </ax-label>\n }\n <ng-container axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'edit'\"\n #widget=\"widgetRenderer\"></ng-container>\n @if (attr.description()) {\n <p class=\"text-sm mt-1 font-normal opacity-75\">\n {{ attr.description() | translate | async }}\n </p>\n }\n </ax-form-field>\n }\n </div>\n </ax-form>\n </div>\n }\n </div>\n <!-- Finish Sections -->\n <ax-validation-summary [displayMode]=\"'toast'\" [autoHide]=\"true\"></ax-validation-summary>\n </ax-form>\n</axp-widgets-container>\n@if (slot.isEmpty()) {\n<ax-footer id=\"axp-entity-footer-create\">\n <ax-prefix>\n <axp-component-slot name=\"entity-create-footer-prefix\" [context]=\"vm.context()\"></axp-component-slot>\n </ax-prefix>\n <ax-suffix>\n <ax-button id=\"axp-btn-cancel\" look=\"solid\" [color]=\"'default'\"\n [text]=\"'@general:actions.cancel.title' | translate | async\" (onClick)=\"handleCloseClick()\">\n </ax-button>\n @if (vm.canCreateNewOne()) {\n <ax-dropdown-button id=\"axp-btn-save\" [disabled]=\"vm.isInProgress()\" color=\"primary\"\n [text]=\"'@general:actions.save.title' | translate | async\" look=\"solid\" (onClick)=\"handleSaveClick(form)\">\n @if (vm.isInProgress()) {\n <ax-loading></ax-loading>\n }\n <ax-button-item-list>\n <ax-button-item id=\"axp-btn-save-and-new\"\n [text]=\"('@general:actions.save-and-new.title' | translate | async) ?? ''\"\n (onClick)=\"handleSaveAndNewClick(form)\">\n </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-button>\n } @else {\n <ax-button id=\"axp-btn-save\" look=\"solid\" color=\"primary\" [text]=\"'@general:actions.save.title' | translate | async\"\n (onClick)=\"handleSaveClick(form)\">\n @if (vm.isInProgress()) {\n <ax-loading></ax-loading>\n }\n </ax-button>\n }\n <axp-component-slot name=\"entity-create-footer-suffix\" [context]=\"vm.context()\"></axp-component-slot>\n </ax-suffix>\n</ax-footer>\n}\n\n<axp-component-slot name=\"entity-create-footer\" #slot=\"slot\" [context]=\"vm.context()\"></axp-component-slot>"],"names":["i8","i9","i10"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDM,MAAO,kCAAmC,SAAQ,mBAAmB,CAAA;AA3B3E,IAAA,WAAA,GAAA;;QA8BU,IAAA,CAAA,SAAS,GAAG,SAAS,CAAC,2BAA2B;sFAAC;AAClD,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,6BAA6B,CAAC;AACjD,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC;AACrC,QAA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