@acorex/platform 20.3.0-next.22 → 20.3.0-next.24

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.
@@ -16936,9 +16936,15 @@ class AXPBooleanFilterWidgetEditComponent extends AXPValueWidgetComponent {
16936
16936
  });
16937
16937
  this.#effect = effect(async () => {
16938
16938
  this.items = [
16939
- { text: await this.translateService.translateAsync('unknown'), value: 'unknown' },
16940
- { text: this.trulyText() || (await this.translateService.translateAsync('yes')), value: true },
16941
- { text: this.falsyText() || (await this.translateService.translateAsync('no')), value: false },
16939
+ { text: await this.translateService.translateAsync('@general:widgets.toggle.unknown'), value: 'unknown' },
16940
+ {
16941
+ text: this.trulyText() || (await this.translateService.translateAsync('@general:widgets.toggle.yes')),
16942
+ value: true,
16943
+ },
16944
+ {
16945
+ text: this.falsyText() || (await this.translateService.translateAsync('@general:widgets.toggle.no')),
16946
+ value: false,
16947
+ },
16942
16948
  ];
16943
16949
  }, ...(ngDevMode ? [{ debugName: "#effect" }] : []));
16944
16950
  }
@@ -18704,6 +18710,54 @@ const AXPGridItemWidget = {
18704
18710
  },
18705
18711
  };
18706
18712
 
18713
+ class AXPIconWidgetViewComponent extends AXPColumnWidgetComponent {
18714
+ //#region ---- Methods ----
18715
+ /**
18716
+ * Returns the icon name based on rowData.
18717
+ * If getIcon function is provided in options, it will be called with rowData.
18718
+ * Otherwise, returns the static icon name from options.
18719
+ */
18720
+ getIcon() {
18721
+ const iconFn = this.options['getIcon'];
18722
+ if (iconFn && typeof iconFn === 'function') {
18723
+ return iconFn(this.rowData);
18724
+ }
18725
+ return this.options['icon'] || '';
18726
+ }
18727
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPIconWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
18728
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.4", type: AXPIconWidgetViewComponent, isStandalone: true, selector: "axp-icon-widget-view", inputs: { rawValue: "rawValue", rowData: "rowData" }, usesInheritance: true, ngImport: i0, template: `<ax-icon [icon]="getIcon()"></ax-icon>`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXPWidgetCoreModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2$1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
18729
+ }
18730
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPIconWidgetViewComponent, decorators: [{
18731
+ type: Component,
18732
+ args: [{
18733
+ selector: 'axp-icon-widget-view',
18734
+ template: `<ax-icon [icon]="getIcon()"></ax-icon>`,
18735
+ changeDetection: ChangeDetectionStrategy.OnPush,
18736
+ imports: [AXPWidgetCoreModule, AXDecoratorModule],
18737
+ inputs: ['rawValue', 'rowData'],
18738
+ }]
18739
+ }] });
18740
+
18741
+ var iconWidgetColumn_component = /*#__PURE__*/Object.freeze({
18742
+ __proto__: null,
18743
+ AXPIconWidgetViewComponent: AXPIconWidgetViewComponent
18744
+ });
18745
+
18746
+ const AXPIconWidget = {
18747
+ name: 'icon',
18748
+ title: 'Icon',
18749
+ type: 'view',
18750
+ categories: AXP_WIDGETS_LAYOUT_CATEGORY,
18751
+ // groups: [AXPWidgetGroupEnum.FormElement],
18752
+ icon: 'fa-light fa-icons',
18753
+ properties: [AXP_NAME_PROPERTY],
18754
+ components: {
18755
+ column: {
18756
+ component: () => Promise.resolve().then(function () { return iconWidgetColumn_component; }).then((c) => c.AXPIconWidgetViewComponent),
18757
+ },
18758
+ },
18759
+ };
18760
+
18707
18761
  class AXPPanelWidgetDesignerComponent extends AXPLayoutBaseWidgetComponent {
18708
18762
  constructor() {
18709
18763
  super(...arguments);
@@ -19390,6 +19444,8 @@ class AXPWidgetsModule {
19390
19444
  AXPBorderWidget,
19391
19445
  AXPDirectionWidget,
19392
19446
  //
19447
+ AXPIconWidget,
19448
+ //
19393
19449
  AXPStringFilterWidget,
19394
19450
  AXPBooleanFilterWidget,
19395
19451
  AXPNumberFilterWidget,
@@ -19479,6 +19535,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
19479
19535
  AXPBorderWidget,
19480
19536
  AXPDirectionWidget,
19481
19537
  //
19538
+ AXPIconWidget,
19539
+ //
19482
19540
  AXPStringFilterWidget,
19483
19541
  AXPBooleanFilterWidget,
19484
19542
  AXPNumberFilterWidget,