@acorex/platform 18.1.0 → 18.1.1

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 (50) hide show
  1. package/esm2022/layout/builder/lib/builder/builder.module.mjs +4 -3
  2. package/esm2022/layout/builder/lib/builder/index.mjs +2 -1
  3. package/esm2022/layout/builder/lib/builder/widget-renderer.component.directive.mjs +280 -0
  4. package/esm2022/layout/designer/lib/designer/components/board/board.component.mjs +3 -3
  5. package/esm2022/layout/designer/lib/designer/components/header-menu/header-menu.component.mjs +3 -3
  6. package/esm2022/layout/designer/lib/designer/designer.component.mjs +9 -5
  7. package/esm2022/layout/designer/lib/designer/shared/designer.service.mjs +21 -21
  8. package/esm2022/layout/designer/lib/designer/shared/designer.typs.mjs +6 -2
  9. package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/overview/entity-single-overview.component.mjs +3 -3
  10. package/esm2022/widgets/lib/widgets/actions/button/button-widget-designer.component.mjs +3 -3
  11. package/esm2022/widgets/lib/widgets/actions/button/button-widget-view.component.mjs +3 -3
  12. package/esm2022/widgets/lib/widgets/advance/map/map-box-widget-view.component.mjs +3 -3
  13. package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-edit.component.mjs +9 -9
  14. package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-view.component.mjs +6 -6
  15. package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget-view.component.mjs +5 -3
  16. package/esm2022/widgets/lib/widgets/editors/select/select-box-widget-column.component.mjs +36 -6
  17. package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-column.component.mjs +2 -1
  18. package/esm2022/widgets/lib/widgets/layout/block/block-widget-view.component.mjs +4 -4
  19. package/esm2022/widgets/lib/widgets/layout/form-field/form-field-widget-view.component.mjs +28 -16
  20. package/esm2022/widgets/lib/widgets/layout/grid/grid-widget-designer.component.mjs +37 -31
  21. package/esm2022/widgets/lib/widgets/layout/grid/grid-widget-view.component.mjs +27 -6
  22. package/esm2022/widgets/lib/widgets/layout/grid-item/grid-item-widget-designer.component.mjs +32 -26
  23. package/esm2022/widgets/lib/widgets/layout/grid-item/grid-item-widget-view.component.mjs +82 -8
  24. package/esm2022/widgets/lib/widgets/layout/grid-row/grid-row-widget-view.component.mjs +27 -6
  25. package/esm2022/widgets/lib/widgets/layout/page/page-widget-view.component.mjs +6 -4
  26. package/fesm2022/acorex-platform-layout-builder.mjs +276 -4
  27. package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
  28. package/fesm2022/acorex-platform-layout-designer.mjs +36 -28
  29. package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
  30. package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-CGhOE3jO.mjs → acorex-platform-themes-default-entity-master-single-view.component-B9lGgO_u.mjs} +3 -3
  31. package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-CGhOE3jO.mjs.map → acorex-platform-themes-default-entity-master-single-view.component-B9lGgO_u.mjs.map} +1 -1
  32. package/fesm2022/acorex-platform-themes-default.mjs +2 -2
  33. package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-COvuxaTt.mjs → acorex-platform-widgets-button-widget-designer.component-Oxpdaz9P.mjs} +3 -3
  34. package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-COvuxaTt.mjs.map → acorex-platform-widgets-button-widget-designer.component-Oxpdaz9P.mjs.map} +1 -1
  35. package/fesm2022/acorex-platform-widgets.mjs +277 -107
  36. package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
  37. package/layout/builder/lib/builder/builder.module.d.ts +5 -4
  38. package/layout/builder/lib/builder/index.d.ts +1 -0
  39. package/layout/builder/lib/builder/widget-renderer.component.directive.d.ts +42 -0
  40. package/layout/designer/lib/designer/designer.component.d.ts +1 -0
  41. package/layout/designer/lib/designer/shared/designer.service.d.ts +2 -1
  42. package/layout/designer/lib/designer/shared/designer.typs.d.ts +15 -0
  43. package/package.json +7 -7
  44. package/widgets/lib/widgets/actions/button/button-widget-designer.component.d.ts +1 -1
  45. package/widgets/lib/widgets/actions/button/button-widget-view.component.d.ts +1 -1
  46. package/widgets/lib/widgets/editors/select/select-box-widget-column.component.d.ts +5 -0
  47. package/widgets/lib/widgets/layout/form-field/form-field-widget-view.component.d.ts +2 -1
  48. package/widgets/lib/widgets/layout/grid/grid-widget-view.component.d.ts +3 -0
  49. package/widgets/lib/widgets/layout/grid-item/grid-item-widget-view.component.d.ts +11 -2
  50. package/widgets/lib/widgets/layout/grid-row/grid-row-widget-view.component.d.ts +3 -0
@@ -86,7 +86,7 @@ class AXPButtonWidgetViewComponent extends AXPWidgetComponent {
86
86
  };
87
87
  }
88
88
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPButtonWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
89
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPButtonWidgetViewComponent, isStandalone: true, selector: "axp_button_widget", usesInheritance: true, ngImport: i0, template: `
89
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPButtonWidgetViewComponent, isStandalone: true, selector: "axp-button-widget", usesInheritance: true, ngImport: i0, template: `
90
90
  <ax-button [disabled]="disabled()" [color]="color()" [look]="look()" [text]="text()">
91
91
  @if(icon() && text()){
92
92
  <ax-prefix
@@ -103,7 +103,7 @@ class AXPButtonWidgetViewComponent extends AXPWidgetComponent {
103
103
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPButtonWidgetViewComponent, decorators: [{
104
104
  type: Component,
105
105
  args: [{
106
- selector: 'axp_button_widget',
106
+ selector: 'axp-button-widget',
107
107
  template: `
108
108
  <ax-button [disabled]="disabled()" [color]="color()" [look]="look()" [text]="text()">
109
109
  @if(icon() && text()){
@@ -1061,7 +1061,7 @@ const AXPButtonWidget = {
1061
1061
  ],
1062
1062
  components: {
1063
1063
  designer: {
1064
- component: () => import('./acorex-platform-widgets-button-widget-designer.component-COvuxaTt.mjs').then((c) => c.AXPButtonWidgetDesignerComponent),
1064
+ component: () => import('./acorex-platform-widgets-button-widget-designer.component-Oxpdaz9P.mjs').then((c) => c.AXPButtonWidgetDesignerComponent),
1065
1065
  },
1066
1066
  view: {
1067
1067
  component: () => Promise.resolve().then(function () { return buttonWidgetView_component; }).then((c) => c.AXPButtonWidgetViewComponent),
@@ -1334,12 +1334,12 @@ class AXPContactWidgetEditComponent extends AXPWidgetComponent {
1334
1334
  this.dataSource.refresh();
1335
1335
  }
1336
1336
  }
1337
+ const newValues = this.internalValue().map((item, index) => selectedIndex === index ? { ...item, [name]: value } : item);
1338
+ if (this.multiple())
1339
+ this.setValue(newValues);
1340
+ else
1341
+ this.setValue(newValues[0]);
1337
1342
  }
1338
- const newValues = this.internalValue().map((item, index) => selectedIndex === index ? { ...item, [name]: value } : item);
1339
- if (this.multiple())
1340
- this.setValue(newValues);
1341
- else
1342
- this.setValue(newValues[0]);
1343
1343
  }
1344
1344
  generateClasses(element) {
1345
1345
  if (this.multiple()) {
@@ -1353,7 +1353,7 @@ class AXPContactWidgetEditComponent extends AXPWidgetComponent {
1353
1353
  }
1354
1354
  else {
1355
1355
  if (element === 'value') {
1356
- return 'ax-col-start-1 ax-col-end-11';
1356
+ return 'ax-col-start-1 ax-col-end-12';
1357
1357
  }
1358
1358
  }
1359
1359
  }
@@ -1451,7 +1451,7 @@ class AXPContactWidgetEditComponent extends AXPWidgetComponent {
1451
1451
  [disabled]="disabled()"
1452
1452
  look="twotone"
1453
1453
  (onClick)="addItem()"
1454
- class="ax-col-start-7 ax-col-end-13 lg:ax-col-start-10 xl:ax-col-start-11 "
1454
+ class="ax-col-start-6 ax-col-end-13 lg:ax-col-start-8 xl:ax-col-start-10 "
1455
1455
  >
1456
1456
  <ax-prefix>
1457
1457
  <ax-icon class="fa-solid fa-add"></ax-icon>
@@ -1514,7 +1514,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
1514
1514
  [disabled]="disabled()"
1515
1515
  look="twotone"
1516
1516
  (onClick)="addItem()"
1517
- class="ax-col-start-7 ax-col-end-13 lg:ax-col-start-10 xl:ax-col-start-11 "
1517
+ class="ax-col-start-6 ax-col-end-13 lg:ax-col-start-8 xl:ax-col-start-10 "
1518
1518
  >
1519
1519
  <ax-prefix>
1520
1520
  <ax-icon class="fa-solid fa-add"></ax-icon>
@@ -1571,11 +1571,11 @@ var contactWidgetPrint_component = /*#__PURE__*/Object.freeze({
1571
1571
  class AXPContactWidgetViewComponent extends AXPWidgetComponent {
1572
1572
  constructor() {
1573
1573
  super(...arguments);
1574
- this.type = computed(() => this.options()['type']);
1575
- this.labelList = computed(() => this.options()['labelList'] || ['primary', 'secondary', 'Add New']);
1576
- this.hasLabel = computed(() => this.options()['hasLabel']);
1577
- this.multiple = computed(() => this.options()['multiple']);
1578
- this.hasIcon = computed(() => this.options()['hasIcon']);
1574
+ this.type = computed(() => this.options()['type'] ?? 'link');
1575
+ this.labelList = computed(() => this.options()['labelList'] ?? ['primary', 'secondary']);
1576
+ this.hasLabel = computed(() => this.options()['hasLabel'] ?? false);
1577
+ this.multiple = computed(() => this.options()['multiple'] ?? false);
1578
+ this.hasIcon = computed(() => this.options()['hasIcon'] ?? false);
1579
1579
  this.internalValue = computed(() => this.itemToArray());
1580
1580
  this.clipboard = inject(AXPClipBoardService);
1581
1581
  this.chooseIcon = () => {
@@ -4448,13 +4448,15 @@ class AXPRichTextWidgetViewComponent extends AXPWidgetComponent {
4448
4448
  });
4449
4449
  }
4450
4450
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPRichTextWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
4451
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPRichTextWidgetViewComponent, isStandalone: true, selector: "axp-rich-text-widget", usesInheritance: true, ngImport: i0, template: `<span class="ax-truncate ax-underline ax-block ax-w-full ax-cursor-pointer" (click)="openPopup()" [innerHTML]="text()"> </span>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
4451
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPRichTextWidgetViewComponent, isStandalone: true, selector: "axp-rich-text-widget", usesInheritance: true, ngImport: i0, template: ` <span class="ax-truncate ax-underline ax-cursor-pointer" (click)="openPopup()" [innerHTML]="text()">
4452
+ </span>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
4452
4453
  }
4453
4454
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPRichTextWidgetViewComponent, decorators: [{
4454
4455
  type: Component,
4455
4456
  args: [{
4456
4457
  selector: 'axp-rich-text-widget',
4457
- template: `<span class="ax-truncate ax-underline ax-block ax-w-full ax-cursor-pointer" (click)="openPopup()" [innerHTML]="text()"> </span>`,
4458
+ template: ` <span class="ax-truncate ax-underline ax-cursor-pointer" (click)="openPopup()" [innerHTML]="text()">
4459
+ </span>`,
4458
4460
  standalone: true,
4459
4461
  changeDetection: ChangeDetectionStrategy.OnPush,
4460
4462
  imports: [CommonModule],
@@ -4866,17 +4868,45 @@ var selectBoxWidgetFilter_component = /*#__PURE__*/Object.freeze({
4866
4868
  });
4867
4869
 
4868
4870
  class AXPSelectBoxWidgetColumnComponent extends AXPColumnWidgetComponent {
4871
+ constructor() {
4872
+ super(...arguments);
4873
+ this.multiple = this.options['multiple'];
4874
+ this.valueField = this.options['valueField'] ?? 'id';
4875
+ this.textField = this.options['textField'] ?? 'title';
4876
+ this.internalValue = computed(() => Array.isArray(this.rawValue)
4877
+ ? this.rawValue.map((item) => this.extractItem(item))
4878
+ : [this.extractItem(this.rawValue)]);
4879
+ }
4880
+ extractItem(item) {
4881
+ return typeof item == 'object'
4882
+ ? {
4883
+ [this.valueField]: item[this.valueField],
4884
+ [this.textField]: item[this.textField],
4885
+ }
4886
+ : {
4887
+ [this.valueField]: item,
4888
+ [this.textField]: item,
4889
+ };
4890
+ }
4869
4891
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPSelectBoxWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
4870
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPSelectBoxWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
4892
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPSelectBoxWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: ` <div class="ax-flex ax-gap-2">
4893
+ @for (item of internalValue(); track $index) {
4894
+ <ax-badge [look]="'twotone'" [text]="item[this.textField]" color="primary"></ax-badge>
4895
+ }
4896
+ </div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i2$1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
4871
4897
  }
4872
4898
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPSelectBoxWidgetColumnComponent, decorators: [{
4873
4899
  type: Component,
4874
4900
  args: [{
4875
- template: ``,
4901
+ template: ` <div class="ax-flex ax-gap-2">
4902
+ @for (item of internalValue(); track $index) {
4903
+ <ax-badge [look]="'twotone'" [text]="item[this.textField]" color="primary"></ax-badge>
4904
+ }
4905
+ </div>`,
4876
4906
  standalone: true,
4877
4907
  changeDetection: ChangeDetectionStrategy.OnPush,
4878
- imports: [CommonModule],
4879
- inputs: ['rawValue']
4908
+ imports: [CommonModule, AXBadgeModule],
4909
+ inputs: ['rawValue'],
4880
4910
  }]
4881
4911
  }] });
4882
4912
 
@@ -5161,6 +5191,7 @@ class AXPSelectionListWidgetColumnComponent extends AXPColumnWidgetComponent {
5161
5191
  this.valueField = this.options['valueField'];
5162
5192
  this.textField = this.options['textField'];
5163
5193
  this.items = this.options['items'];
5194
+ this.multiple = this.options['multiple'];
5164
5195
  this.selectedItemIds = computed(() => {
5165
5196
  return this.rawValue || [];
5166
5197
  });
@@ -6633,7 +6664,7 @@ class AXPMapBoxWidgetViewComponent extends AXPWidgetComponent {
6633
6664
  });
6634
6665
  }
6635
6666
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPMapBoxWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
6636
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPMapBoxWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `<div [class.height.px]="height()" class="ax-w-full">
6667
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPMapBoxWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `<div [style.height.px]="height()" class="ax-w-full">
6637
6668
  <ax-map
6638
6669
  [hasMarker]="false"
6639
6670
  [markers]="markers()"
@@ -6646,7 +6677,7 @@ class AXPMapBoxWidgetViewComponent extends AXPWidgetComponent {
6646
6677
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPMapBoxWidgetViewComponent, decorators: [{
6647
6678
  type: Component,
6648
6679
  args: [{
6649
- template: `<div [class.height.px]="height()" class="ax-w-full">
6680
+ template: `<div [style.height.px]="height()" class="ax-w-full">
6650
6681
  <ax-map
6651
6682
  [hasMarker]="false"
6652
6683
  [markers]="markers()"
@@ -7246,9 +7277,9 @@ class AXPBlockWidgetViewComponent extends AXPWidgetComponent {
7246
7277
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPBlockWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
7247
7278
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPBlockWidgetViewComponent, isStandalone: true, selector: "axp-block-widget", host: { properties: { "class": "this.__class", "style": "this.__style" } }, usesInheritance: true, ngImport: i0, template: `
7248
7279
  @for (node of children(); track $index) {
7249
- <axp-widget-renderer [node]="node" [parentNode]="this" [mode]="this.mode"> </axp-widget-renderer>
7280
+ <ng-container axp-widget-renderer [node]="node" [parentNode]="this" [mode]="this.mode"></ng-container>
7250
7281
  }
7251
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "component", type: i1$7.AXPWidgetRendererComponent, selector: "axp-widget-renderer", inputs: ["node", "mode", "parentNode", "index"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7282
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "directive", type: i1$7.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7252
7283
  }
7253
7284
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPBlockWidgetViewComponent, decorators: [{
7254
7285
  type: Component,
@@ -7256,7 +7287,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
7256
7287
  selector: 'axp-block-widget',
7257
7288
  template: `
7258
7289
  @for (node of children(); track $index) {
7259
- <axp-widget-renderer [node]="node" [parentNode]="this" [mode]="this.mode"> </axp-widget-renderer>
7290
+ <ng-container axp-widget-renderer [node]="node" [parentNode]="this" [mode]="this.mode"></ng-container>
7260
7291
  }
7261
7292
  `,
7262
7293
  standalone: true,
@@ -7317,9 +7348,10 @@ class AXPPageWidgetViewComponent extends AXPWidgetComponent {
7317
7348
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPPageWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
7318
7349
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPPageWidgetViewComponent, isStandalone: true, selector: "axp-page-widget", host: { properties: { "style": "this.__style" } }, usesInheritance: true, ngImport: i0, template: `
7319
7350
  @for (node of children(); track $index) {
7320
- <axp-widget-renderer [node]="node" [parentNode]="this" [mode]="mode" > </axp-widget-renderer>
7351
+ <!-- <axp-widget-renderer [node]="node" [parentNode]="this" [mode]="mode" > </axp-widget-renderer> -->
7352
+ <ng-container axp-widget-renderer [node]="node" [parentNode]="this" [mode]="this.mode"></ng-container>
7321
7353
  }
7322
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "component", type: i1$7.AXPWidgetRendererComponent, selector: "axp-widget-renderer", inputs: ["node", "mode", "parentNode", "index"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
7354
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "directive", type: i1$7.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
7323
7355
  }
7324
7356
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPPageWidgetViewComponent, decorators: [{
7325
7357
  type: Component,
@@ -7327,7 +7359,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
7327
7359
  selector: 'axp-page-widget',
7328
7360
  template: `
7329
7361
  @for (node of children(); track $index) {
7330
- <axp-widget-renderer [node]="node" [parentNode]="this" [mode]="mode" > </axp-widget-renderer>
7362
+ <!-- <axp-widget-renderer [node]="node" [parentNode]="this" [mode]="mode" > </axp-widget-renderer> -->
7363
+ <ng-container axp-widget-renderer [node]="node" [parentNode]="this" [mode]="this.mode"></ng-container>
7331
7364
  }
7332
7365
  `,
7333
7366
  standalone: true,
@@ -7837,34 +7870,46 @@ const AXPDocumentWidget = {
7837
7870
  class AXPFormFieldWidgetViewComponent extends AXPWidgetComponent {
7838
7871
  constructor() {
7839
7872
  super(...arguments);
7840
- this.label = computed(() => this.options()["label"]);
7873
+ this.label = computed(() => this.options()['label']);
7874
+ }
7875
+ get __class() {
7876
+ const cls = {};
7877
+ cls[`ax-block`] = true;
7878
+ cls[`ax-w-full`] = true;
7879
+ return cls;
7841
7880
  }
7842
7881
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPFormFieldWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
7843
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPFormFieldWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
7844
- <ax-form-field>
7845
- <ax-label>{{label()}}</ax-label>
7846
- @for (node of children(); track $index) {
7847
- <axp-widget-renderer [node]="node" [parentNode]="this" [mode]="this.mode"> </axp-widget-renderer>
7848
- }
7882
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPFormFieldWidgetViewComponent, isStandalone: true, selector: "axp-form-field-widget", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
7883
+ <ax-form-field>
7884
+ <ax-label>{{ label() }}</ax-label>
7885
+ @for (node of children(); track $index) {
7886
+ <ng-container axp-widget-renderer [node]="node" [parentNode]="this" [mode]="this.mode"> </ng-container>
7887
+ <!-- <axp-widget-renderer [node]="node" [parentNode]="this" [mode]="this.mode"> </axp-widget-renderer> -->
7888
+ }
7849
7889
  </ax-form-field>
7850
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i4$1.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i2.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "component", type: i1$7.AXPWidgetRendererComponent, selector: "axp-widget-renderer", inputs: ["node", "mode", "parentNode", "index"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7890
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i4$1.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i2.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "directive", type: i1$7.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7851
7891
  }
7852
7892
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPFormFieldWidgetViewComponent, decorators: [{
7853
7893
  type: Component,
7854
7894
  args: [{
7895
+ selector: 'axp-form-field-widget',
7855
7896
  template: `
7856
- <ax-form-field>
7857
- <ax-label>{{label()}}</ax-label>
7858
- @for (node of children(); track $index) {
7859
- <axp-widget-renderer [node]="node" [parentNode]="this" [mode]="this.mode"> </axp-widget-renderer>
7860
- }
7897
+ <ax-form-field>
7898
+ <ax-label>{{ label() }}</ax-label>
7899
+ @for (node of children(); track $index) {
7900
+ <ng-container axp-widget-renderer [node]="node" [parentNode]="this" [mode]="this.mode"> </ng-container>
7901
+ <!-- <axp-widget-renderer [node]="node" [parentNode]="this" [mode]="this.mode"> </axp-widget-renderer> -->
7902
+ }
7861
7903
  </ax-form-field>
7862
7904
  `,
7863
7905
  standalone: true,
7864
7906
  changeDetection: ChangeDetectionStrategy.OnPush,
7865
7907
  imports: [CommonModule, AXFormModule, AXLabelModule, AXPLayoutBuilderModule],
7866
7908
  }]
7867
- }] });
7909
+ }], propDecorators: { __class: [{
7910
+ type: HostBinding,
7911
+ args: ['class']
7912
+ }] } });
7868
7913
 
7869
7914
  var formFieldWidgetView_component = /*#__PURE__*/Object.freeze({
7870
7915
  __proto__: null,
@@ -7957,16 +8002,36 @@ const AXPFormFieldWidget = {
7957
8002
  };
7958
8003
 
7959
8004
  class AXPGridWidgetViewComponent extends AXPWidgetComponent {
8005
+ constructor() {
8006
+ super(...arguments);
8007
+ this.cols = computed(() => this.options()['cols'] ?? 1);
8008
+ this.rows = computed(() => this.options()['rows'] ?? 1);
8009
+ this.gap = computed(() => this.options()['gap'] ?? 0);
8010
+ }
7960
8011
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGridWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
7961
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPGridWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
8012
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPGridWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
8013
+ <div class="ax-grid ax-grid-cols-{{ cols() }} ax-grid-rows-{{ rows() }} ax-gap-{{ gap() }}">
8014
+ @for (child of children(); track $index) {
8015
+ <ng-container axp-widget-renderer [node]="child" [parentNode]="this" [mode]="this.mode"> </ng-container>
8016
+ <!-- <axp-widget-renderer [node]="child" [parentNode]="this" [mode]="this.mode"> </axp-widget-renderer> -->
8017
+ }
8018
+ </div>
8019
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "directive", type: i1$7.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
7962
8020
  }
7963
8021
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGridWidgetViewComponent, decorators: [{
7964
8022
  type: Component,
7965
8023
  args: [{
7966
- template: ``,
8024
+ template: `
8025
+ <div class="ax-grid ax-grid-cols-{{ cols() }} ax-grid-rows-{{ rows() }} ax-gap-{{ gap() }}">
8026
+ @for (child of children(); track $index) {
8027
+ <ng-container axp-widget-renderer [node]="child" [parentNode]="this" [mode]="this.mode"> </ng-container>
8028
+ <!-- <axp-widget-renderer [node]="child" [parentNode]="this" [mode]="this.mode"> </axp-widget-renderer> -->
8029
+ }
8030
+ </div>
8031
+ `,
7967
8032
  standalone: true,
7968
8033
  changeDetection: ChangeDetectionStrategy.OnPush,
7969
- imports: [CommonModule]
8034
+ imports: [CommonModule, AXPLayoutBuilderModule],
7970
8035
  }]
7971
8036
  }] });
7972
8037
 
@@ -7994,11 +8059,11 @@ class AXPGridWidgetDesignerComponent extends AXPContainerWidgetComponent {
7994
8059
  constructor() {
7995
8060
  super(...arguments);
7996
8061
  this.designerService = inject(AXPDesignerService);
7997
- this.cols = computed(() => this.options()["cols"] ?? 1);
7998
- this.rows = computed(() => this.options()["rows"] ?? 1);
7999
- this.gap = computed(() => this.options()["gap"] ?? 0);
8062
+ this.cols = computed(() => this.options()['cols'] ?? 1);
8063
+ this.rows = computed(() => this.options()['rows'] ?? 1);
8064
+ this.gap = computed(() => this.options()['gap'] ?? 0);
8000
8065
  this.cells = computed(() => Array.from({ length: this.cols() * this.rows() }).map((c, index) => index));
8001
- this.settled = computed(() => (this.cols() * this.rows() > 1) && this.children().length);
8066
+ this.settled = computed(() => this.cols() * this.rows() > 1 && this.children().length);
8002
8067
  }
8003
8068
  // private e = effect(async () => {
8004
8069
  // if (this.settled()) {
@@ -8024,10 +8089,10 @@ class AXPGridWidgetDesignerComponent extends AXPContainerWidgetComponent {
8024
8089
  handleDrawerSelect(e) {
8025
8090
  this.designerService.update({
8026
8091
  values: {
8027
- options: e
8092
+ options: e,
8028
8093
  },
8029
8094
  mode: 'update',
8030
- widget: this.node
8095
+ widget: this.node,
8031
8096
  });
8032
8097
  const list = Array.from({ length: this.cells().length }).map(() => ({
8033
8098
  type: AXPWidgetsCatalog.gridItem,
@@ -8046,18 +8111,18 @@ class AXPGridWidgetDesignerComponent extends AXPContainerWidgetComponent {
8046
8111
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGridWidgetDesignerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
8047
8112
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPGridWidgetDesignerComponent, isStandalone: true, selector: "axp-grid-layout-widget", host: { properties: { "class": "this.__class" } }, providers: [
8048
8113
  {
8049
- provide: AXPContainerWidgetComponent, useExisting: AXPGridWidgetDesignerComponent
8050
- }
8114
+ provide: AXPContainerWidgetComponent,
8115
+ useExisting: AXPGridWidgetDesignerComponent,
8116
+ },
8051
8117
  ], usesInheritance: true, ngImport: i0, template: `
8052
- @if(settled())
8053
- {
8054
- <div class="ax-grid ax-grid-cols-{{cols()}} ax-grid-rows-{{rows()}} ax-gap-{{gap()}}">
8055
- @for (node of children(); track $index) {
8056
- <ng-container axp-widget-designer-renderer [node]="node" [parentNode]="this" [mode]="this.mode"> </ng-container>
8057
- }
8058
- </div>
8118
+ @if(settled()) {
8119
+ <div class="ax-grid ax-grid-cols-{{ cols() }} ax-grid-rows-{{ rows() }} ax-gap-{{ gap() }}">
8120
+ @for (child of children(); track $index) {
8121
+ <ng-container axp-widget-designer-renderer [node]="child" [parentNode]="this" [mode]="this.mode"> </ng-container>
8122
+ }
8123
+ </div>
8059
8124
  }@else {
8060
- <axp-designer-grid-drawer (onSelect)="handleDrawerSelect($event)"></axp-designer-grid-drawer>
8125
+ <axp-designer-grid-drawer (onSelect)="handleDrawerSelect($event)"></axp-designer-grid-drawer>
8061
8126
  }
8062
8127
  `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "directive", type: AXPWidgetDesignerRendererDirective, selector: "[axp-widget-designer-renderer]", inputs: ["parentNode", "index", "mode", "node"] }, { kind: "component", type: AXPDesignerGridDrawerComponent, selector: "axp-designer-grid-drawer", inputs: ["rows", "columns"], outputs: ["rowsChange", "columnsChange", "onSelect"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
8063
8128
  }
@@ -8066,25 +8131,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
8066
8131
  args: [{
8067
8132
  selector: 'axp-grid-layout-widget',
8068
8133
  template: `
8069
- @if(settled())
8070
- {
8071
- <div class="ax-grid ax-grid-cols-{{cols()}} ax-grid-rows-{{rows()}} ax-gap-{{gap()}}">
8072
- @for (node of children(); track $index) {
8073
- <ng-container axp-widget-designer-renderer [node]="node" [parentNode]="this" [mode]="this.mode"> </ng-container>
8074
- }
8075
- </div>
8134
+ @if(settled()) {
8135
+ <div class="ax-grid ax-grid-cols-{{ cols() }} ax-grid-rows-{{ rows() }} ax-gap-{{ gap() }}">
8136
+ @for (child of children(); track $index) {
8137
+ <ng-container axp-widget-designer-renderer [node]="child" [parentNode]="this" [mode]="this.mode"> </ng-container>
8138
+ }
8139
+ </div>
8076
8140
  }@else {
8077
- <axp-designer-grid-drawer (onSelect)="handleDrawerSelect($event)"></axp-designer-grid-drawer>
8141
+ <axp-designer-grid-drawer (onSelect)="handleDrawerSelect($event)"></axp-designer-grid-drawer>
8078
8142
  }
8079
8143
  `,
8080
8144
  standalone: true,
8081
8145
  changeDetection: ChangeDetectionStrategy.OnPush,
8082
- imports: [CommonModule, AXPLayoutBuilderModule, AXPWidgetDesignerRendererDirective, AXPDesignerAddWidgetButtonComponent, AXPDesignerGridDrawerComponent],
8146
+ imports: [
8147
+ CommonModule,
8148
+ AXPLayoutBuilderModule,
8149
+ AXPWidgetDesignerRendererDirective,
8150
+ AXPDesignerAddWidgetButtonComponent,
8151
+ AXPDesignerGridDrawerComponent,
8152
+ ],
8083
8153
  providers: [
8084
8154
  {
8085
- provide: AXPContainerWidgetComponent, useExisting: AXPGridWidgetDesignerComponent
8086
- }
8087
- ]
8155
+ provide: AXPContainerWidgetComponent,
8156
+ useExisting: AXPGridWidgetDesignerComponent,
8157
+ },
8158
+ ],
8088
8159
  }]
8089
8160
  }], propDecorators: { __class: [{
8090
8161
  type: HostBinding,
@@ -8122,19 +8193,92 @@ const AXPGridWidget = {
8122
8193
  },
8123
8194
  };
8124
8195
 
8125
- class AXPGridItemWidgetViewComponent extends AXPWidgetComponent {
8196
+ class AXPGridItemWidgetViewComponent extends AXPContainerWidgetComponent {
8197
+ constructor() {
8198
+ super(...arguments);
8199
+ this.colSpan = computed(() => this.options()['colSpan']);
8200
+ this.colStart = computed(() => this.options()['colStart']);
8201
+ this.colEnd = computed(() => this.options()['colEnd']);
8202
+ this.flexAlignItems = computed(() => this.options()['flexAlignItems']?.id);
8203
+ this.flexJustifyContent = computed(() => this.options()['flexJustifyContent']?.id);
8204
+ this.flexWrap = computed(() => this.options()['flexWrap']?.id);
8205
+ this.flexDirection = computed(() => this.options()['flexDirection']?.id);
8206
+ this.gap = computed(() => this.options()['gap'] ?? 0);
8207
+ }
8208
+ get __class() {
8209
+ const cls = {};
8210
+ //
8211
+ cls[`ax-flex`] = true;
8212
+ cls[`ax-gap-${this.gap()}`] = true;
8213
+ //
8214
+ if (this.flexAlignItems()) {
8215
+ cls[this.flexAlignItems()] = true;
8216
+ }
8217
+ if (this.flexJustifyContent()) {
8218
+ cls[this.flexJustifyContent()] = true;
8219
+ }
8220
+ if (this.flexWrap()) {
8221
+ cls[this.flexWrap()] = true;
8222
+ }
8223
+ if (this.flexDirection()) {
8224
+ cls[this.flexDirection()] = true;
8225
+ }
8226
+ //
8227
+ cls[`ax-col-span-12`] = true;
8228
+ if (this.colSpan() != null) {
8229
+ cls[`lg:ax-col-span-${this.colSpan()}`] = true;
8230
+ }
8231
+ else {
8232
+ cls[`lg:ax-col-span-1`] = true;
8233
+ }
8234
+ //
8235
+ if (this.colStart() != null) {
8236
+ cls[`lg:ax-col-start-${this.colStart()}`] = true;
8237
+ }
8238
+ //
8239
+ if (this.colEnd() != null) {
8240
+ cls[`lg:ax-col-end-${this.colEnd()}`] = true;
8241
+ }
8242
+ return cls;
8243
+ }
8126
8244
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGridItemWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
8127
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPGridItemWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
8245
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPGridItemWidgetViewComponent, isStandalone: true, selector: "ng-component", host: { properties: { "class": "this.__class" } }, providers: [
8246
+ {
8247
+ provide: AXPContainerWidgetComponent,
8248
+ useExisting: AXPGridItemWidgetViewComponent,
8249
+ },
8250
+ ], usesInheritance: true, ngImport: i0, template: `
8251
+ @for (child of children(); track $index) {
8252
+ <!-- <axp-widget-renderer [node]="child" [parentNode]="this" [mode]="this.mode"></axp-widget-renderer> -->
8253
+ <ng-container axp-widget-renderer [node]="child" [parentNode]="this" [mode]="this.mode"> </ng-container>
8254
+
8255
+ }
8256
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "directive", type: i1$7.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
8128
8257
  }
8129
8258
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGridItemWidgetViewComponent, decorators: [{
8130
8259
  type: Component,
8131
8260
  args: [{
8132
- template: ``,
8261
+ template: `
8262
+ @for (child of children(); track $index) {
8263
+ <!-- <axp-widget-renderer [node]="child" [parentNode]="this" [mode]="this.mode"></axp-widget-renderer> -->
8264
+ <ng-container axp-widget-renderer [node]="child" [parentNode]="this" [mode]="this.mode"> </ng-container>
8265
+
8266
+ }
8267
+ `,
8133
8268
  standalone: true,
8134
8269
  changeDetection: ChangeDetectionStrategy.OnPush,
8135
- imports: [CommonModule]
8270
+ imports: [CommonModule, AXPLayoutBuilderModule],
8271
+ providers: [
8272
+ {
8273
+ provide: AXPContainerWidgetComponent,
8274
+ useExisting: AXPGridItemWidgetViewComponent,
8275
+ },
8276
+ ],
8136
8277
  }]
8137
- }] });
8278
+ }], propDecorators: { __class: [{
8279
+ type: HostBinding,
8280
+ args: ['class']
8281
+ }] } });
8138
8282
 
8139
8283
  var gridItemWidgetView_component = /*#__PURE__*/Object.freeze({
8140
8284
  __proto__: null,
@@ -8160,14 +8304,14 @@ class AXPGridItemWidgetDesignerComponent extends AXPContainerWidgetComponent {
8160
8304
  constructor() {
8161
8305
  super(...arguments);
8162
8306
  this.designerService = inject(AXPDesignerService);
8163
- this.colSpan = computed(() => this.options()["colSpan"]);
8164
- this.colStart = computed(() => this.options()["colStart"]);
8165
- this.colEnd = computed(() => this.options()["colEnd"]);
8166
- this.flexAlignItems = computed(() => this.options()["flexAlignItems"]?.id);
8167
- this.flexJustifyContent = computed(() => this.options()["flexJustifyContent"]?.id);
8168
- this.flexWrap = computed(() => this.options()["flexWrap"]?.id);
8169
- this.flexDirection = computed(() => this.options()["flexDirection"]?.id);
8170
- this.gap = computed(() => this.options()["gap"] ?? 0);
8307
+ this.colSpan = computed(() => this.options()['colSpan']);
8308
+ this.colStart = computed(() => this.options()['colStart']);
8309
+ this.colEnd = computed(() => this.options()['colEnd']);
8310
+ this.flexAlignItems = computed(() => this.options()['flexAlignItems']?.id);
8311
+ this.flexJustifyContent = computed(() => this.options()['flexJustifyContent']?.id);
8312
+ this.flexWrap = computed(() => this.options()['flexWrap']?.id);
8313
+ this.flexDirection = computed(() => this.options()['flexDirection']?.id);
8314
+ this.gap = computed(() => this.options()['gap'] ?? 0);
8171
8315
  }
8172
8316
  async handleSlotClick() {
8173
8317
  await this.designerService.showPicker(this.node);
@@ -8211,14 +8355,14 @@ class AXPGridItemWidgetDesignerComponent extends AXPContainerWidgetComponent {
8211
8355
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGridItemWidgetDesignerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
8212
8356
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPGridItemWidgetDesignerComponent, isStandalone: true, selector: "axp-grid-layout-item-widget", host: { properties: { "class": "this.__class" } }, providers: [
8213
8357
  {
8214
- provide: AXPContainerWidgetComponent, useExisting: AXPGridItemWidgetDesignerComponent
8215
- }
8358
+ provide: AXPContainerWidgetComponent,
8359
+ useExisting: AXPGridItemWidgetDesignerComponent,
8360
+ },
8216
8361
  ], usesInheritance: true, ngImport: i0, template: `
8217
- @for (node of children(); track $index) {
8218
- <ng-container axp-widget-designer-renderer [node]="node" [parentNode]="this" [mode]="this.mode"> </ng-container>
8219
- }
8220
- @empty {
8221
- <div class="axp-empty-space ax-flex-1 ax-flex ax-justify-center ax-items-center" >
8362
+ @for (child of children(); track $index) {
8363
+ <ng-container axp-widget-designer-renderer [node]="child" [parentNode]="this" [mode]="this.mode"> </ng-container>
8364
+ } @empty {
8365
+ <div class="axp-empty-space ax-flex-1 ax-flex ax-justify-center ax-items-center">
8222
8366
  <div class="ax-m-auto ax-p-4 ax-text-primary-500 hover:ax-text-primary-800" (click)="handleSlotClick()">
8223
8367
  <i class="fa-solid fa-plus "></i>
8224
8368
  </div>
@@ -8231,11 +8375,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
8231
8375
  args: [{
8232
8376
  selector: 'axp-grid-layout-item-widget',
8233
8377
  template: `
8234
- @for (node of children(); track $index) {
8235
- <ng-container axp-widget-designer-renderer [node]="node" [parentNode]="this" [mode]="this.mode"> </ng-container>
8236
- }
8237
- @empty {
8238
- <div class="axp-empty-space ax-flex-1 ax-flex ax-justify-center ax-items-center" >
8378
+ @for (child of children(); track $index) {
8379
+ <ng-container axp-widget-designer-renderer [node]="child" [parentNode]="this" [mode]="this.mode"> </ng-container>
8380
+ } @empty {
8381
+ <div class="axp-empty-space ax-flex-1 ax-flex ax-justify-center ax-items-center">
8239
8382
  <div class="ax-m-auto ax-p-4 ax-text-primary-500 hover:ax-text-primary-800" (click)="handleSlotClick()">
8240
8383
  <i class="fa-solid fa-plus "></i>
8241
8384
  </div>
@@ -8244,12 +8387,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
8244
8387
  `,
8245
8388
  standalone: true,
8246
8389
  changeDetection: ChangeDetectionStrategy.OnPush,
8247
- imports: [CommonModule, AXPLayoutBuilderModule, AXPWidgetDesignerRendererDirective, AXPDesignerAddWidgetButtonComponent, AXPDesignerGridDrawerComponent],
8390
+ imports: [
8391
+ CommonModule,
8392
+ AXPLayoutBuilderModule,
8393
+ AXPWidgetDesignerRendererDirective,
8394
+ AXPDesignerAddWidgetButtonComponent,
8395
+ AXPDesignerGridDrawerComponent,
8396
+ ],
8248
8397
  providers: [
8249
8398
  {
8250
- provide: AXPContainerWidgetComponent, useExisting: AXPGridItemWidgetDesignerComponent
8251
- }
8252
- ]
8399
+ provide: AXPContainerWidgetComponent,
8400
+ useExisting: AXPGridItemWidgetDesignerComponent,
8401
+ },
8402
+ ],
8253
8403
  }]
8254
8404
  }], propDecorators: { __class: [{
8255
8405
  type: HostBinding,
@@ -8290,16 +8440,36 @@ const AXPGridItemWidget = {
8290
8440
  };
8291
8441
 
8292
8442
  class AXPGridRowWidgetViewComponent extends AXPWidgetComponent {
8443
+ constructor() {
8444
+ super(...arguments);
8445
+ this.cols = computed(() => this.options()['cols'] ?? 1);
8446
+ this.rows = computed(() => this.options()['rows'] ?? 1);
8447
+ this.gap = computed(() => this.options()['gap'] ?? 0);
8448
+ }
8293
8449
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGridRowWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
8294
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPGridRowWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
8450
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPGridRowWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
8451
+ <div class="ax-grid ax-grid-cols-{{ cols() }} ax-grid-rows-{{ rows() }} ax-gap-{{ gap() }}">
8452
+ @for (child of children(); track $index) {
8453
+ <ng-container axp-widget-renderer [node]="child" [parentNode]="this" [mode]="this.mode"> </ng-container>
8454
+ <!-- <axp-widget-renderer [node]="child" [parentNode]="this" [mode]="this.mode"> </axp-widget-renderer> -->
8455
+ }
8456
+ </div>
8457
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "directive", type: i1$7.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
8295
8458
  }
8296
8459
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPGridRowWidgetViewComponent, decorators: [{
8297
8460
  type: Component,
8298
8461
  args: [{
8299
- template: ``,
8462
+ template: `
8463
+ <div class="ax-grid ax-grid-cols-{{ cols() }} ax-grid-rows-{{ rows() }} ax-gap-{{ gap() }}">
8464
+ @for (child of children(); track $index) {
8465
+ <ng-container axp-widget-renderer [node]="child" [parentNode]="this" [mode]="this.mode"> </ng-container>
8466
+ <!-- <axp-widget-renderer [node]="child" [parentNode]="this" [mode]="this.mode"> </axp-widget-renderer> -->
8467
+ }
8468
+ </div>
8469
+ `,
8300
8470
  standalone: true,
8301
8471
  changeDetection: ChangeDetectionStrategy.OnPush,
8302
- imports: [CommonModule]
8472
+ imports: [CommonModule, AXPLayoutBuilderModule],
8303
8473
  }]
8304
8474
  }] });
8305
8475