@acorex/platform 20.3.0-next.22 → 20.3.0-next.23
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.
- package/common/index.d.ts +245 -3
- package/fesm2022/acorex-platform-common.mjs +444 -9
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +2 -2
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +1 -0
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +1 -0
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +52 -0
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/layout/components/index.d.ts +1 -0
- package/layout/widget-core/index.d.ts +1 -0
- package/package.json +9 -9
|
@@ -18704,6 +18704,54 @@ const AXPGridItemWidget = {
|
|
|
18704
18704
|
},
|
|
18705
18705
|
};
|
|
18706
18706
|
|
|
18707
|
+
class AXPIconWidgetViewComponent extends AXPColumnWidgetComponent {
|
|
18708
|
+
//#region ---- Methods ----
|
|
18709
|
+
/**
|
|
18710
|
+
* Returns the icon name based on rowData.
|
|
18711
|
+
* If getIcon function is provided in options, it will be called with rowData.
|
|
18712
|
+
* Otherwise, returns the static icon name from options.
|
|
18713
|
+
*/
|
|
18714
|
+
getIcon() {
|
|
18715
|
+
const iconFn = this.options['getIcon'];
|
|
18716
|
+
if (iconFn && typeof iconFn === 'function') {
|
|
18717
|
+
return iconFn(this.rowData);
|
|
18718
|
+
}
|
|
18719
|
+
return this.options['icon'] || '';
|
|
18720
|
+
}
|
|
18721
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPIconWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
18722
|
+
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 }); }
|
|
18723
|
+
}
|
|
18724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXPIconWidgetViewComponent, decorators: [{
|
|
18725
|
+
type: Component,
|
|
18726
|
+
args: [{
|
|
18727
|
+
selector: 'axp-icon-widget-view',
|
|
18728
|
+
template: `<ax-icon [icon]="getIcon()"></ax-icon>`,
|
|
18729
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18730
|
+
imports: [AXPWidgetCoreModule, AXDecoratorModule],
|
|
18731
|
+
inputs: ['rawValue', 'rowData'],
|
|
18732
|
+
}]
|
|
18733
|
+
}] });
|
|
18734
|
+
|
|
18735
|
+
var iconWidgetColumn_component = /*#__PURE__*/Object.freeze({
|
|
18736
|
+
__proto__: null,
|
|
18737
|
+
AXPIconWidgetViewComponent: AXPIconWidgetViewComponent
|
|
18738
|
+
});
|
|
18739
|
+
|
|
18740
|
+
const AXPIconWidget = {
|
|
18741
|
+
name: 'icon',
|
|
18742
|
+
title: 'Icon',
|
|
18743
|
+
type: 'view',
|
|
18744
|
+
categories: AXP_WIDGETS_LAYOUT_CATEGORY,
|
|
18745
|
+
// groups: [AXPWidgetGroupEnum.FormElement],
|
|
18746
|
+
icon: 'fa-light fa-icons',
|
|
18747
|
+
properties: [AXP_NAME_PROPERTY],
|
|
18748
|
+
components: {
|
|
18749
|
+
column: {
|
|
18750
|
+
component: () => Promise.resolve().then(function () { return iconWidgetColumn_component; }).then((c) => c.AXPIconWidgetViewComponent),
|
|
18751
|
+
},
|
|
18752
|
+
},
|
|
18753
|
+
};
|
|
18754
|
+
|
|
18707
18755
|
class AXPPanelWidgetDesignerComponent extends AXPLayoutBaseWidgetComponent {
|
|
18708
18756
|
constructor() {
|
|
18709
18757
|
super(...arguments);
|
|
@@ -19390,6 +19438,8 @@ class AXPWidgetsModule {
|
|
|
19390
19438
|
AXPBorderWidget,
|
|
19391
19439
|
AXPDirectionWidget,
|
|
19392
19440
|
//
|
|
19441
|
+
AXPIconWidget,
|
|
19442
|
+
//
|
|
19393
19443
|
AXPStringFilterWidget,
|
|
19394
19444
|
AXPBooleanFilterWidget,
|
|
19395
19445
|
AXPNumberFilterWidget,
|
|
@@ -19479,6 +19529,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
19479
19529
|
AXPBorderWidget,
|
|
19480
19530
|
AXPDirectionWidget,
|
|
19481
19531
|
//
|
|
19532
|
+
AXPIconWidget,
|
|
19533
|
+
//
|
|
19482
19534
|
AXPStringFilterWidget,
|
|
19483
19535
|
AXPBooleanFilterWidget,
|
|
19484
19536
|
AXPNumberFilterWidget,
|