@acorex/platform 21.0.0-next.0 → 21.0.0-next.10
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/auth/index.d.ts +235 -5
- package/common/index.d.ts +220 -218
- package/core/index.d.ts +261 -431
- package/fesm2022/acorex-platform-auth.mjs +200 -37
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/{acorex-platform-common-common-settings.provider-zhqNP3xb.mjs → acorex-platform-common-common-settings.provider-O8usQ0VC.mjs} +4 -4
- package/fesm2022/{acorex-platform-common-common-settings.provider-zhqNP3xb.mjs.map → acorex-platform-common-common-settings.provider-O8usQ0VC.mjs.map} +1 -1
- package/fesm2022/acorex-platform-common.mjs +215 -198
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +545 -585
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-domain.mjs +16 -16
- package/fesm2022/acorex-platform-domain.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +84 -35
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +298 -190
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +72 -72
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +2955 -1278
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +25 -17
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +189 -108
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-button-widget-designer.component-C3VoBb_b.mjs → acorex-platform-layout-widgets-button-widget-designer.component-D-NsRvRl.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-button-widget-designer.component-C3VoBb_b.mjs.map → acorex-platform-layout-widgets-button-widget-designer.component-D-NsRvRl.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-CxrsI6Hn.mjs → acorex-platform-layout-widgets-file-list-popup.component-CCcKHSHj.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-CxrsI6Hn.mjs.map → acorex-platform-layout-widgets-file-list-popup.component-CCcKHSHj.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-image-preview.popup-V31OpYah.mjs → acorex-platform-layout-widgets-image-preview.popup-IrT52Nh1.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-image-preview.popup-V31OpYah.mjs.map → acorex-platform-layout-widgets-image-preview.popup-IrT52Nh1.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-page-widget-designer.component-BtZMBxYp.mjs → acorex-platform-layout-widgets-page-widget-designer.component-DFbfh-OX.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-page-widget-designer.component-BtZMBxYp.mjs.map → acorex-platform-layout-widgets-page-widget-designer.component-DFbfh-OX.mjs.map} +1 -1
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-Dw6naXvq.mjs +111 -0
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-Dw6naXvq.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-edit-popup.component-Ck7-wpT2.mjs → acorex-platform-layout-widgets-tabular-data-edit-popup.component--4R3TUdJ.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-edit-popup.component-Ck7-wpT2.mjs.map → acorex-platform-layout-widgets-tabular-data-edit-popup.component--4R3TUdJ.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-view-popup.component-y8vjUiVs.mjs → acorex-platform-layout-widgets-tabular-data-view-popup.component-BeVQuHFj.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-view-popup.component-y8vjUiVs.mjs.map → acorex-platform-layout-widgets-tabular-data-view-popup.component-BeVQuHFj.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-text-block-widget-designer.component-Df1BFkSa.mjs → acorex-platform-layout-widgets-text-block-widget-designer.component-CdQxqi0D.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-widgets-text-block-widget-designer.component-Df1BFkSa.mjs.map → acorex-platform-layout-widgets-text-block-widget-designer.component-CdQxqi0D.mjs.map} +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +2247 -1221
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-native.mjs +7 -7
- package/fesm2022/acorex-platform-native.mjs.map +1 -1
- package/fesm2022/acorex-platform-runtime.mjs +43 -43
- package/fesm2022/acorex-platform-runtime.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-VIGuU5M4.mjs → acorex-platform-themes-default-entity-master-create-view.component-D2ucwC3F.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-VIGuU5M4.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-D2ucwC3F.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs → acorex-platform-themes-default-entity-master-list-view.component-CIV6YDDZ.mjs} +12 -12
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CIV6YDDZ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-Ua3ZA5hk.mjs → acorex-platform-themes-default-entity-master-modify-view.component-D5BYbUGK.mjs} +7 -8
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-D5BYbUGK.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-eMBby9k4.mjs → acorex-platform-themes-default-entity-master-single-view.component-Cf4ei46_.mjs} +7 -7
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-eMBby9k4.mjs.map → acorex-platform-themes-default-entity-master-single-view.component-Cf4ei46_.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-error-401.component-cfREo88K.mjs → acorex-platform-themes-default-error-401.component-DdMToZ9q.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-error-401.component-cfREo88K.mjs.map → acorex-platform-themes-default-error-401.component-DdMToZ9q.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-error-404.component-CdCV5ZoA.mjs → acorex-platform-themes-default-error-404.component-CKsa5aPE.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-error-404.component-CdCV5ZoA.mjs.map → acorex-platform-themes-default-error-404.component-CKsa5aPE.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-error-offline.component-E7SzBcAt.mjs → acorex-platform-themes-default-error-offline.component-1gxFTAuX.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-error-offline.component-E7SzBcAt.mjs.map → acorex-platform-themes-default-error-offline.component-1gxFTAuX.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +39 -42
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-column.component-C0EpfU2k.mjs → acorex-platform-themes-shared-icon-chooser-column.component-Ds8eRMuV.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-column.component-C0EpfU2k.mjs.map → acorex-platform-themes-shared-icon-chooser-column.component-Ds8eRMuV.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-view.component-9W52W6Nu.mjs → acorex-platform-themes-shared-icon-chooser-view.component-Dv38sOzr.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-view.component-9W52W6Nu.mjs.map → acorex-platform-themes-shared-icon-chooser-view.component-Dv38sOzr.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-column.component-DTnfRy5f.mjs → acorex-platform-themes-shared-theme-color-chooser-column.component-DcO6P6OG.mjs} +11 -11
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-DcO6P6OG.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-view.component-DY0JtT1v.mjs → acorex-platform-themes-shared-theme-color-chooser-view.component-B7T2qtaI.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-view.component-DY0JtT1v.mjs.map → acorex-platform-themes-shared-theme-color-chooser-view.component-B7T2qtaI.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +41 -41
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +1529 -1758
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/builder/index.d.ts +15 -3
- package/layout/components/index.d.ts +23 -6
- package/layout/entity/index.d.ts +392 -144
- package/layout/views/index.d.ts +16 -11
- package/layout/widget-core/index.d.ts +47 -10
- package/layout/widgets/index.d.ts +212 -39
- package/package.json +5 -5
- package/themes/default/index.d.ts +0 -1
- package/workflow/index.d.ts +1050 -1759
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Ua3ZA5hk.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-DTnfRy5f.mjs.map +0 -1
|
@@ -67,7 +67,7 @@ withMethods((store) => ({
|
|
|
67
67
|
lastChange: changeEvent,
|
|
68
68
|
});
|
|
69
69
|
},
|
|
70
|
-
patch(context) {
|
|
70
|
+
patch(context, skipDirtyTracking = false) {
|
|
71
71
|
const currentData = cloneDeep(store.data());
|
|
72
72
|
// Update the value and prepare the change event
|
|
73
73
|
const updatedData = { ...currentData, ...context };
|
|
@@ -77,7 +77,7 @@ withMethods((store) => ({
|
|
|
77
77
|
};
|
|
78
78
|
// Patch the state
|
|
79
79
|
patchState(store, {
|
|
80
|
-
previousSnapshot: store.snapshot(), //
|
|
80
|
+
...(skipDirtyTracking ? {} : { previousSnapshot: store.snapshot() }), // Only update previousSnapshot if not skipping dirty tracking
|
|
81
81
|
data: updatedData,
|
|
82
82
|
state: 'changed',
|
|
83
83
|
lastChange: changeEvent,
|
|
@@ -285,13 +285,16 @@ class AXPWidgetCoreService {
|
|
|
285
285
|
return Array.from(this.widgets.keys());
|
|
286
286
|
}
|
|
287
287
|
ngOnDestroy() { }
|
|
288
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
289
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
288
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetCoreService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
289
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetCoreService }); }
|
|
290
290
|
}
|
|
291
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetCoreService, decorators: [{
|
|
292
292
|
type: Injectable
|
|
293
293
|
}] });
|
|
294
294
|
|
|
295
|
+
//
|
|
296
|
+
// @deprecated
|
|
297
|
+
// use AXPWidgetsList instead
|
|
295
298
|
const AXPWidgetsCatalog = {
|
|
296
299
|
timeDuration: 'time-duration',
|
|
297
300
|
timeDurationFilter: 'time-duration-filter',
|
|
@@ -392,7 +395,6 @@ const AXPWidgetsCatalog = {
|
|
|
392
395
|
entityList: 'entity-list',
|
|
393
396
|
editorJs: 'editor-js-editor',
|
|
394
397
|
documentUploader: 'document-uploader',
|
|
395
|
-
signatureList: 'signature-list',
|
|
396
398
|
stepWizard: 'step-wizard',
|
|
397
399
|
progressBar: 'progress-bar-editor',
|
|
398
400
|
rate: 'rate-picker-editor'
|
|
@@ -548,10 +550,10 @@ class AXPBaseWidgetComponent extends AXPWidgetCoreElement {
|
|
|
548
550
|
this._children.set([...children]);
|
|
549
551
|
}
|
|
550
552
|
onAdded() { }
|
|
551
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
552
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
553
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPBaseWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
554
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPBaseWidgetComponent }); }
|
|
553
555
|
}
|
|
554
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
556
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPBaseWidgetComponent, decorators: [{
|
|
555
557
|
type: Injectable
|
|
556
558
|
}] });
|
|
557
559
|
class AXPLayoutBaseWidgetComponent extends AXPBaseWidgetComponent {
|
|
@@ -562,10 +564,10 @@ class AXPLayoutBaseWidgetComponent extends AXPBaseWidgetComponent {
|
|
|
562
564
|
}
|
|
563
565
|
super.ngOnInit();
|
|
564
566
|
}
|
|
565
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
566
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
567
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPLayoutBaseWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
568
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPLayoutBaseWidgetComponent }); }
|
|
567
569
|
}
|
|
568
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPLayoutBaseWidgetComponent, decorators: [{
|
|
569
571
|
type: Injectable
|
|
570
572
|
}] });
|
|
571
573
|
class AXPValueWidgetComponent extends AXPLayoutBaseWidgetComponent {
|
|
@@ -670,10 +672,10 @@ class AXPValueWidgetComponent extends AXPLayoutBaseWidgetComponent {
|
|
|
670
672
|
this.setValue(e.value);
|
|
671
673
|
}
|
|
672
674
|
}
|
|
673
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
674
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
675
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPValueWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
676
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPValueWidgetComponent }); }
|
|
675
677
|
}
|
|
676
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
678
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPValueWidgetComponent, decorators: [{
|
|
677
679
|
type: Injectable
|
|
678
680
|
}] });
|
|
679
681
|
class AXPDataListWidgetComponent extends AXPValueWidgetComponent {
|
|
@@ -802,10 +804,10 @@ class AXPDataListWidgetComponent extends AXPValueWidgetComponent {
|
|
|
802
804
|
[this.textField()]: item,
|
|
803
805
|
};
|
|
804
806
|
}
|
|
805
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
806
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
807
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPDataListWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
808
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPDataListWidgetComponent }); }
|
|
807
809
|
}
|
|
808
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPDataListWidgetComponent, decorators: [{
|
|
809
811
|
type: Injectable
|
|
810
812
|
}] });
|
|
811
813
|
class AXPColumnWidgetComponent {
|
|
@@ -816,17 +818,17 @@ class AXPColumnWidgetComponent {
|
|
|
816
818
|
this.rawValue = null;
|
|
817
819
|
this.nullText = this.options['nullText'];
|
|
818
820
|
this.nullValue = this.options['nullValue'];
|
|
819
|
-
this.value =
|
|
821
|
+
this.value = (() => {
|
|
820
822
|
if (isNil(this.rawValue) && !isNil(this.nullValue)) {
|
|
821
823
|
return this.nullValue;
|
|
822
824
|
}
|
|
823
825
|
return this.rawValue;
|
|
824
|
-
}
|
|
826
|
+
});
|
|
825
827
|
}
|
|
826
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
827
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
828
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPColumnWidgetComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
829
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPColumnWidgetComponent }); }
|
|
828
830
|
}
|
|
829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
831
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPColumnWidgetComponent, decorators: [{
|
|
830
832
|
type: Injectable
|
|
831
833
|
}] });
|
|
832
834
|
|
|
@@ -889,10 +891,10 @@ class AXPBoxModelLayoutWidgetComponent extends AXPLayoutBaseWidgetComponent {
|
|
|
889
891
|
};
|
|
890
892
|
}, ...(ngDevMode ? [{ debugName: "inlineClass" }] : []));
|
|
891
893
|
}
|
|
892
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
893
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
894
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPBoxModelLayoutWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
895
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPBoxModelLayoutWidgetComponent }); }
|
|
894
896
|
}
|
|
895
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
897
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPBoxModelLayoutWidgetComponent, decorators: [{
|
|
896
898
|
type: Injectable
|
|
897
899
|
}] });
|
|
898
900
|
|
|
@@ -902,10 +904,10 @@ class AXPBlockBaseLayoutWidgetComponent extends AXPBoxModelLayoutWidgetComponent
|
|
|
902
904
|
this.hostClass = computed(() => this.blockClass(), ...(ngDevMode ? [{ debugName: "hostClass" }] : []));
|
|
903
905
|
this.hostStyle = computed(() => this.blockStyle(), ...(ngDevMode ? [{ debugName: "hostStyle" }] : []));
|
|
904
906
|
}
|
|
905
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
906
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
907
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPBlockBaseLayoutWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
908
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPBlockBaseLayoutWidgetComponent }); }
|
|
907
909
|
}
|
|
908
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
910
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPBlockBaseLayoutWidgetComponent, decorators: [{
|
|
909
911
|
type: Injectable
|
|
910
912
|
}] });
|
|
911
913
|
|
|
@@ -966,10 +968,10 @@ class AXPFlexBaseLayoutWidgetComponent extends AXPBlockBaseLayoutWidgetComponent
|
|
|
966
968
|
return this.hostFlexStyle();
|
|
967
969
|
}, ...(ngDevMode ? [{ debugName: "hostStyle" }] : []));
|
|
968
970
|
}
|
|
969
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
970
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
971
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPFlexBaseLayoutWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
972
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPFlexBaseLayoutWidgetComponent }); }
|
|
971
973
|
}
|
|
972
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
974
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPFlexBaseLayoutWidgetComponent, decorators: [{
|
|
973
975
|
type: Injectable
|
|
974
976
|
}] });
|
|
975
977
|
|
|
@@ -979,10 +981,10 @@ class AXPInlineBaseLayoutWidgetComponent extends AXPBoxModelLayoutWidgetComponen
|
|
|
979
981
|
this.hostClass = computed(() => this.inlineClass(), ...(ngDevMode ? [{ debugName: "hostClass" }] : []));
|
|
980
982
|
this.hostStyle = computed(() => this.inlineStyle(), ...(ngDevMode ? [{ debugName: "hostStyle" }] : []));
|
|
981
983
|
}
|
|
982
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
983
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
984
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPInlineBaseLayoutWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
985
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPInlineBaseLayoutWidgetComponent }); }
|
|
984
986
|
}
|
|
985
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
987
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPInlineBaseLayoutWidgetComponent, decorators: [{
|
|
986
988
|
type: Injectable
|
|
987
989
|
}] });
|
|
988
990
|
|
|
@@ -1038,10 +1040,10 @@ class AXPFlexItemBaseLayoutWidgetComponent extends AXPInlineBaseLayoutWidgetComp
|
|
|
1038
1040
|
return this.hostFlexItemStyle();
|
|
1039
1041
|
}, ...(ngDevMode ? [{ debugName: "hostStyle" }] : []));
|
|
1040
1042
|
}
|
|
1041
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1042
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1043
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPFlexItemBaseLayoutWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1044
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPFlexItemBaseLayoutWidgetComponent }); }
|
|
1043
1045
|
}
|
|
1044
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1046
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPFlexItemBaseLayoutWidgetComponent, decorators: [{
|
|
1045
1047
|
type: Injectable
|
|
1046
1048
|
}] });
|
|
1047
1049
|
|
|
@@ -1077,10 +1079,10 @@ class AXPGridBaseLayoutWidgetComponent extends AXPBlockBaseLayoutWidgetComponent
|
|
|
1077
1079
|
this.hostClass = computed(() => this.hostGridClass(), ...(ngDevMode ? [{ debugName: "hostClass" }] : []));
|
|
1078
1080
|
this.hostStyle = computed(() => this.hostGridStyle(), ...(ngDevMode ? [{ debugName: "hostStyle" }] : []));
|
|
1079
1081
|
}
|
|
1080
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1081
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1082
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPGridBaseLayoutWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1083
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPGridBaseLayoutWidgetComponent }); }
|
|
1082
1084
|
}
|
|
1083
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1085
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPGridBaseLayoutWidgetComponent, decorators: [{
|
|
1084
1086
|
type: Injectable
|
|
1085
1087
|
}] });
|
|
1086
1088
|
|
|
@@ -1117,10 +1119,10 @@ class AXPGridItemBaseLayoutWidgetComponent extends AXPFlexBaseLayoutWidgetCompon
|
|
|
1117
1119
|
this.hostClass = computed(() => this.hostGridItemClass(), ...(ngDevMode ? [{ debugName: "hostClass" }] : []));
|
|
1118
1120
|
this.hostStyle = computed(() => this.hostGridItemStyle(), ...(ngDevMode ? [{ debugName: "hostStyle" }] : []));
|
|
1119
1121
|
}
|
|
1120
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1121
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1122
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPGridItemBaseLayoutWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1123
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPGridItemBaseLayoutWidgetComponent }); }
|
|
1122
1124
|
}
|
|
1123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPGridItemBaseLayoutWidgetComponent, decorators: [{
|
|
1124
1126
|
type: Injectable
|
|
1125
1127
|
}] });
|
|
1126
1128
|
|
|
@@ -1138,18 +1140,18 @@ class AXPTableBaseLayoutWidgetComponent extends AXPBlockBaseLayoutWidgetComponen
|
|
|
1138
1140
|
this.hostClass = computed(() => this.hostTableClass(), ...(ngDevMode ? [{ debugName: "hostClass" }] : []));
|
|
1139
1141
|
this.hostStyle = computed(() => this.hostTableStyle(), ...(ngDevMode ? [{ debugName: "hostStyle" }] : []));
|
|
1140
1142
|
}
|
|
1141
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1142
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1143
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPTableBaseLayoutWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1144
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPTableBaseLayoutWidgetComponent }); }
|
|
1143
1145
|
}
|
|
1144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1146
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPTableBaseLayoutWidgetComponent, decorators: [{
|
|
1145
1147
|
type: Injectable
|
|
1146
1148
|
}] });
|
|
1147
1149
|
|
|
1148
1150
|
class AXPTableItemOpsBaseLayoutWidgetComponent extends AXPBlockBaseLayoutWidgetComponent {
|
|
1149
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1150
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1151
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPTableItemOpsBaseLayoutWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1152
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPTableItemOpsBaseLayoutWidgetComponent }); }
|
|
1151
1153
|
}
|
|
1152
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPTableItemOpsBaseLayoutWidgetComponent, decorators: [{
|
|
1153
1155
|
type: Injectable
|
|
1154
1156
|
}] });
|
|
1155
1157
|
|
|
@@ -1167,10 +1169,10 @@ class AXPTableItemBaseLayoutWidgetComponent extends AXPTableItemOpsBaseLayoutWid
|
|
|
1167
1169
|
this.hostClass = computed(() => this.blockClass(), ...(ngDevMode ? [{ debugName: "hostClass" }] : []));
|
|
1168
1170
|
this.hostStyle = computed(() => this.blockStyle(), ...(ngDevMode ? [{ debugName: "hostStyle" }] : []));
|
|
1169
1171
|
}
|
|
1170
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1171
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1172
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPTableItemBaseLayoutWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1173
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPTableItemBaseLayoutWidgetComponent }); }
|
|
1172
1174
|
}
|
|
1173
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPTableItemBaseLayoutWidgetComponent, decorators: [{
|
|
1174
1176
|
type: Injectable
|
|
1175
1177
|
}] });
|
|
1176
1178
|
|
|
@@ -1201,10 +1203,10 @@ class AXPWidgetRegistryService {
|
|
|
1201
1203
|
all() {
|
|
1202
1204
|
return Array.from(this.types.values());
|
|
1203
1205
|
}
|
|
1204
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1205
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
1206
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1207
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetRegistryService, providedIn: 'root' }); }
|
|
1206
1208
|
}
|
|
1207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetRegistryService, decorators: [{
|
|
1208
1210
|
type: Injectable,
|
|
1209
1211
|
args: [{
|
|
1210
1212
|
providedIn: 'root',
|
|
@@ -1446,8 +1448,8 @@ class AXPWidgetColumnRendererComponent extends AXDataTableColumnComponent {
|
|
|
1446
1448
|
}
|
|
1447
1449
|
return rowInjector;
|
|
1448
1450
|
}
|
|
1449
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1450
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
1451
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetColumnRendererComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1452
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: AXPWidgetColumnRendererComponent, isStandalone: false, selector: "axp-widget-column-renderer", inputs: { caption: "caption", customExpandIcon: "customExpandIcon", customCollapseIcon: "customCollapseIcon", customWidth: "customWidth", node: "node", footerTemplate: "footerTemplate", expandHandler: "expandHandler", cellTemplate: "cellTemplate", headerTemplate: "headerTemplate" }, providers: [
|
|
1451
1453
|
AXPWidgetCoreService,
|
|
1452
1454
|
{ provide: AXDataTableColumnComponent, useExisting: AXPWidgetColumnRendererComponent },
|
|
1453
1455
|
], viewQueries: [{ propertyName: "_contentFooterTemplate", first: true, predicate: ["footer"], descendants: true }, { propertyName: "_contentCellTemplate", first: true, predicate: ["cell"], descendants: true }, { propertyName: "_contentHeaderTemplate", first: true, predicate: ["header"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
@@ -1483,7 +1485,7 @@ class AXPWidgetColumnRendererComponent extends AXDataTableColumnComponent {
|
|
|
1483
1485
|
<ng-template #footer></ng-template>
|
|
1484
1486
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1485
1487
|
}
|
|
1486
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1488
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetColumnRendererComponent, decorators: [{
|
|
1487
1489
|
type: Component,
|
|
1488
1490
|
args: [{
|
|
1489
1491
|
selector: 'axp-widget-column-renderer',
|
|
@@ -1584,10 +1586,10 @@ class AXPWidgetContainerComponent {
|
|
|
1584
1586
|
find(name) {
|
|
1585
1587
|
return this.builderService.waitForWidget(name);
|
|
1586
1588
|
}
|
|
1587
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1588
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1589
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1590
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: AXPWidgetContainerComponent, isStandalone: false, selector: "axp-widgets-container", inputs: { context: "context", functions: "functions" }, outputs: { onContextChanged: "onContextChanged" }, host: { styleAttribute: "display: contents;" }, providers: [AXPWidgetCoreService, AXPWidgetCoreContextStore], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1589
1591
|
}
|
|
1590
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1592
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetContainerComponent, decorators: [{
|
|
1591
1593
|
type: Component,
|
|
1592
1594
|
args: [{
|
|
1593
1595
|
selector: 'axp-widgets-container',
|
|
@@ -1606,12 +1608,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
1606
1608
|
}] } });
|
|
1607
1609
|
|
|
1608
1610
|
class AXPWidgetPlaceholderComponent {
|
|
1609
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1610
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1611
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetPlaceholderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1612
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: AXPWidgetPlaceholderComponent, isStandalone: true, selector: "axp-widget-placeholder", ngImport: i0, template: `<div>
|
|
1611
1613
|
<ax-skeleton class="ax-w-full ax-h-10 ax-rounded-md"></ax-skeleton>
|
|
1612
1614
|
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXSkeletonModule }, { kind: "component", type: i1$1.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1613
1615
|
}
|
|
1614
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1616
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetPlaceholderComponent, decorators: [{
|
|
1615
1617
|
type: Component,
|
|
1616
1618
|
args: [{
|
|
1617
1619
|
selector: 'axp-widget-placeholder',
|
|
@@ -1703,13 +1705,12 @@ class AXPWidgetRendererDirective {
|
|
|
1703
1705
|
await this.updateOptionsBasedOnContext();
|
|
1704
1706
|
this.applyOptions();
|
|
1705
1707
|
}
|
|
1706
|
-
await this.updateVisibility();
|
|
1707
|
-
await this.updateValueBasedOnFormula();
|
|
1708
1708
|
}
|
|
1709
1709
|
else if (changed.path && this.isRelevantContextChange(changed.path)) {
|
|
1710
1710
|
// console.log(`🎯 [${this.node().type}] Context change detected: ${changed.path}`);
|
|
1711
1711
|
this.queueContextUpdate(changed.path);
|
|
1712
1712
|
}
|
|
1713
|
+
await this.updateVisibility();
|
|
1713
1714
|
});
|
|
1714
1715
|
this.builderService.onRefresh.pipe(this.unsubscriber.takeUntilDestroy).subscribe(async () => {
|
|
1715
1716
|
await this.processBatchedUpdates();
|
|
@@ -1788,14 +1789,6 @@ class AXPWidgetRendererDirective {
|
|
|
1788
1789
|
// console.log(`🔧 [${this.node().type}] Options updated (${optionsTime.toFixed(2)}ms)`);
|
|
1789
1790
|
this.applyOptions();
|
|
1790
1791
|
}
|
|
1791
|
-
// Check formulas for any of the changed paths
|
|
1792
|
-
const formulaStartTime = performance.now();
|
|
1793
|
-
const formulaNeedsUpdate = paths.some((path) => this.checkFormulaForUpdate(this.node().formula, path));
|
|
1794
|
-
if (formulaNeedsUpdate) {
|
|
1795
|
-
// console.log(`🧮 [${this.node().type}] Formula needs update`);
|
|
1796
|
-
await this.updateValueBasedOnFormula();
|
|
1797
|
-
}
|
|
1798
|
-
const formulaTime = performance.now() - formulaStartTime;
|
|
1799
1792
|
// Check visibility for any of the changed paths
|
|
1800
1793
|
const visibilityStartTime = performance.now();
|
|
1801
1794
|
const visibilityNeedsUpdate = paths.some((path) => this.hasVisibilityDependency(path));
|
|
@@ -1810,7 +1803,7 @@ class AXPWidgetRendererDirective {
|
|
|
1810
1803
|
});
|
|
1811
1804
|
const totalTime = performance.now() - startTime;
|
|
1812
1805
|
// console.log(
|
|
1813
|
-
// `✅ [${this.node().type}] Batch processing completed in ${totalTime.toFixed(2)}ms (options: ${optionsTime.toFixed(2)}ms,
|
|
1806
|
+
// `✅ [${this.node().type}] Batch processing completed in ${totalTime.toFixed(2)}ms (options: ${optionsTime.toFixed(2)}ms, visibility: ${visibilityTime.toFixed(2)}ms)`,
|
|
1814
1807
|
// );
|
|
1815
1808
|
}
|
|
1816
1809
|
//#endregion
|
|
@@ -1833,11 +1826,7 @@ class AXPWidgetRendererDirective {
|
|
|
1833
1826
|
if (this.hasExpressionDependency(changedPath)) {
|
|
1834
1827
|
return true;
|
|
1835
1828
|
}
|
|
1836
|
-
// 5.
|
|
1837
|
-
if (node.formula && this.checkFormulaForUpdate(node.formula, changedPath)) {
|
|
1838
|
-
return true;
|
|
1839
|
-
}
|
|
1840
|
-
// 6. Trigger dependency check - if widget has triggers that depend on this path
|
|
1829
|
+
// 5. Trigger dependency check - if widget has triggers that depend on this path
|
|
1841
1830
|
if (this.hasTriggerDependency(changedPath)) {
|
|
1842
1831
|
return true;
|
|
1843
1832
|
}
|
|
@@ -2159,7 +2148,6 @@ class AXPWidgetRendererDirective {
|
|
|
2159
2148
|
this.instance?.onValueChanged?.pipe(this.unsubscriber.takeUntilDestroy).subscribe((c) => {
|
|
2160
2149
|
this.onValueChanged.emit({ sender: this, widget: c.sender });
|
|
2161
2150
|
});
|
|
2162
|
-
await this.updateValueBasedOnFormula();
|
|
2163
2151
|
await this.updateVisibility();
|
|
2164
2152
|
await this.assignTriggers();
|
|
2165
2153
|
//
|
|
@@ -2234,16 +2222,6 @@ class AXPWidgetRendererDirective {
|
|
|
2234
2222
|
return !isEqual(newOptions, this.lastAppliedOptions);
|
|
2235
2223
|
}
|
|
2236
2224
|
// Removed deepCloneValue method - now using Lodash cloneDeep
|
|
2237
|
-
checkFormulaForUpdate(formula, path) {
|
|
2238
|
-
if (formula) {
|
|
2239
|
-
const regex = /context\.eval\('([^']+)'\)/g;
|
|
2240
|
-
const matches = formula.match(regex);
|
|
2241
|
-
const nodes = matches ? matches.map((match) => match.match(/'([^']+)'/)[1]) : [];
|
|
2242
|
-
return nodes.includes(path);
|
|
2243
|
-
}
|
|
2244
|
-
else
|
|
2245
|
-
return false;
|
|
2246
|
-
}
|
|
2247
2225
|
preprocessAndInitialOptions(obj, pathPrefix = '') {
|
|
2248
2226
|
if (!obj) {
|
|
2249
2227
|
return;
|
|
@@ -2351,12 +2329,6 @@ class AXPWidgetRendererDirective {
|
|
|
2351
2329
|
// );
|
|
2352
2330
|
return changedUpdates.length;
|
|
2353
2331
|
}
|
|
2354
|
-
async updateValueBasedOnFormula() {
|
|
2355
|
-
if (this.node().formula) {
|
|
2356
|
-
const value = await this.evaluateExpression(this.node().formula);
|
|
2357
|
-
this.instance.setValue(value);
|
|
2358
|
-
}
|
|
2359
|
-
}
|
|
2360
2332
|
async updateVisibility() {
|
|
2361
2333
|
const node = this.node();
|
|
2362
2334
|
const visibility = node.options?.['visible'] || this.mergedOptions()?.visible;
|
|
@@ -2395,7 +2367,8 @@ class AXPWidgetRendererDirective {
|
|
|
2395
2367
|
if (!this.isVisible()) {
|
|
2396
2368
|
this.isVisible.set(true);
|
|
2397
2369
|
if (this.componentRef && this.componentRef.location) {
|
|
2398
|
-
this.
|
|
2370
|
+
this.loadComponent();
|
|
2371
|
+
// this.componentRef.location.nativeElement.style.display = '';
|
|
2399
2372
|
}
|
|
2400
2373
|
}
|
|
2401
2374
|
}
|
|
@@ -2403,7 +2376,8 @@ class AXPWidgetRendererDirective {
|
|
|
2403
2376
|
if (this.isVisible()) {
|
|
2404
2377
|
this.isVisible.set(false);
|
|
2405
2378
|
if (this.componentRef && this.componentRef.location) {
|
|
2406
|
-
this.componentRef.
|
|
2379
|
+
this.componentRef.destroy();
|
|
2380
|
+
// this.componentRef.location.nativeElement.style.display = 'none';
|
|
2407
2381
|
}
|
|
2408
2382
|
}
|
|
2409
2383
|
}
|
|
@@ -2586,14 +2560,14 @@ class AXPWidgetRendererDirective {
|
|
|
2586
2560
|
// console.error('Error evaluating action expression:', templateExpression, error);
|
|
2587
2561
|
}
|
|
2588
2562
|
}
|
|
2589
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2590
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.
|
|
2563
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetRendererDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2564
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.15", type: AXPWidgetRendererDirective, isStandalone: false, selector: "[axp-widget-renderer]", inputs: { parentNode: { classPropertyName: "parentNode", publicName: "parentNode", isSignal: true, isRequired: false, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: true, transformFunction: null }, node: { classPropertyName: "node", publicName: "node", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onOptionsChanged: "onOptionsChanged", onValueChanged: "onValueChanged", onLoad: "onLoad" }, providers: [
|
|
2591
2565
|
{
|
|
2592
2566
|
provide: AXUnsubscriber,
|
|
2593
2567
|
},
|
|
2594
2568
|
], exportAs: ["widgetRenderer"], usesOnChanges: true, ngImport: i0 }); }
|
|
2595
2569
|
}
|
|
2596
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetRendererDirective, decorators: [{
|
|
2597
2571
|
type: Directive,
|
|
2598
2572
|
args: [{
|
|
2599
2573
|
selector: '[axp-widget-renderer]',
|
|
@@ -2649,11 +2623,11 @@ class AXPWidgetCoreModule {
|
|
|
2649
2623
|
f();
|
|
2650
2624
|
});
|
|
2651
2625
|
}
|
|
2652
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2653
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
2654
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
2626
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetCoreModule, deps: [{ token: 'AXPWidgetCoreModuleFactory', optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2627
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetCoreModule, declarations: [AXPWidgetContainerComponent, AXPWidgetColumnRendererComponent, AXPWidgetRendererDirective], imports: [CommonModule, PortalModule, AXSkeletonModule, CommonModule, AXTranslationModule], exports: [AXPWidgetContainerComponent, AXPWidgetColumnRendererComponent, AXPWidgetRendererDirective] }); }
|
|
2628
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetCoreModule, imports: [CommonModule, PortalModule, AXSkeletonModule, CommonModule, AXTranslationModule] }); }
|
|
2655
2629
|
}
|
|
2656
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2630
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AXPWidgetCoreModule, decorators: [{
|
|
2657
2631
|
type: NgModule,
|
|
2658
2632
|
args: [{
|
|
2659
2633
|
imports: [CommonModule, PortalModule, AXSkeletonModule, CommonModule, AXTranslationModule],
|
|
@@ -2842,6 +2816,113 @@ function findNonEmptyBreakpoints(values) {
|
|
|
2842
2816
|
return nonEmptyBreakpoints;
|
|
2843
2817
|
}
|
|
2844
2818
|
|
|
2819
|
+
//#region ---- Imports ----
|
|
2820
|
+
//#endregion
|
|
2821
|
+
//#region ---- Helper Class ----
|
|
2822
|
+
/**
|
|
2823
|
+
* Helper class for serializing and deserializing AXPWidgetNode to/from JSON
|
|
2824
|
+
*/
|
|
2825
|
+
class AXPWidgetSerializationHelper {
|
|
2826
|
+
/**
|
|
2827
|
+
* Removes non-serializable properties from widget node
|
|
2828
|
+
* @param node - The widget node to clean
|
|
2829
|
+
* @param options - Serialization options
|
|
2830
|
+
* @returns Cleaned widget node ready for JSON serialization
|
|
2831
|
+
*/
|
|
2832
|
+
static cleanNode(node, options = {}) {
|
|
2833
|
+
const { removeMeta = true, removeFunctions = true } = options;
|
|
2834
|
+
// Deep clone to avoid mutating original
|
|
2835
|
+
const cleaned = cloneDeep(node);
|
|
2836
|
+
// Remove meta property if requested
|
|
2837
|
+
if (removeMeta && 'meta' in cleaned) {
|
|
2838
|
+
delete cleaned.meta;
|
|
2839
|
+
}
|
|
2840
|
+
// Remove functions from options, triggers, and valueTransforms
|
|
2841
|
+
if (removeFunctions) {
|
|
2842
|
+
this.removeFunctions(cleaned);
|
|
2843
|
+
}
|
|
2844
|
+
// Recursively clean children
|
|
2845
|
+
if (cleaned.children && Array.isArray(cleaned.children)) {
|
|
2846
|
+
cleaned.children = cleaned.children.map((child) => this.cleanNode(child, options));
|
|
2847
|
+
}
|
|
2848
|
+
return cleaned;
|
|
2849
|
+
}
|
|
2850
|
+
/**
|
|
2851
|
+
* Recursively removes functions from object properties
|
|
2852
|
+
*/
|
|
2853
|
+
static removeFunctions(obj) {
|
|
2854
|
+
if (obj === null || obj === undefined) {
|
|
2855
|
+
return;
|
|
2856
|
+
}
|
|
2857
|
+
if (Array.isArray(obj)) {
|
|
2858
|
+
obj.forEach((item) => this.removeFunctions(item));
|
|
2859
|
+
return;
|
|
2860
|
+
}
|
|
2861
|
+
if (typeof obj === 'object') {
|
|
2862
|
+
for (const key in obj) {
|
|
2863
|
+
if (typeof obj[key] === 'function') {
|
|
2864
|
+
delete obj[key];
|
|
2865
|
+
}
|
|
2866
|
+
else if (typeof obj[key] === 'object') {
|
|
2867
|
+
this.removeFunctions(obj[key]);
|
|
2868
|
+
}
|
|
2869
|
+
}
|
|
2870
|
+
}
|
|
2871
|
+
}
|
|
2872
|
+
/**
|
|
2873
|
+
* Converts AXPWidgetNode to JSON string
|
|
2874
|
+
* @param node - The widget node to serialize
|
|
2875
|
+
* @param options - Serialization options
|
|
2876
|
+
* @returns JSON string representation of the widget node
|
|
2877
|
+
*/
|
|
2878
|
+
static toJson(node, options = {}) {
|
|
2879
|
+
const { pretty = false, ...cleanOptions } = options;
|
|
2880
|
+
const cleaned = this.cleanNode(node, cleanOptions);
|
|
2881
|
+
if (pretty) {
|
|
2882
|
+
return JSON.stringify(cleaned, null, 2);
|
|
2883
|
+
}
|
|
2884
|
+
return JSON.stringify(cleaned);
|
|
2885
|
+
}
|
|
2886
|
+
/**
|
|
2887
|
+
* Converts JSON string to AXPWidgetNode
|
|
2888
|
+
* @param json - JSON string to deserialize
|
|
2889
|
+
* @returns Parsed AXPWidgetNode object
|
|
2890
|
+
* @throws Error if JSON is invalid or doesn't match AXPWidgetNode structure
|
|
2891
|
+
*/
|
|
2892
|
+
static fromJson(json) {
|
|
2893
|
+
try {
|
|
2894
|
+
const parsed = JSON.parse(json);
|
|
2895
|
+
// Basic validation - ensure it has at least a type property
|
|
2896
|
+
if (!parsed || typeof parsed !== 'object') {
|
|
2897
|
+
throw new Error('Invalid JSON: Expected an object');
|
|
2898
|
+
}
|
|
2899
|
+
if (!parsed.type) {
|
|
2900
|
+
throw new Error('Invalid AXPWidgetNode: Missing required property "type"');
|
|
2901
|
+
}
|
|
2902
|
+
// Recursively validate and parse children if they exist
|
|
2903
|
+
if (parsed.children && Array.isArray(parsed.children)) {
|
|
2904
|
+
parsed.children = parsed.children.map((child) => this.fromJson(JSON.stringify(child)));
|
|
2905
|
+
}
|
|
2906
|
+
return parsed;
|
|
2907
|
+
}
|
|
2908
|
+
catch (error) {
|
|
2909
|
+
if (error instanceof SyntaxError) {
|
|
2910
|
+
throw new Error(`Invalid JSON string: ${error.message}`);
|
|
2911
|
+
}
|
|
2912
|
+
throw error;
|
|
2913
|
+
}
|
|
2914
|
+
}
|
|
2915
|
+
/**
|
|
2916
|
+
* Removes meta property from widget node (similar to designer service)
|
|
2917
|
+
* @param node - The widget node to process
|
|
2918
|
+
* @returns Widget node without meta property
|
|
2919
|
+
*/
|
|
2920
|
+
static removeMeta(node) {
|
|
2921
|
+
return this.cleanNode(node, { removeMeta: true, removeFunctions: false });
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
//#endregion
|
|
2925
|
+
|
|
2845
2926
|
const AXP_WIDGETS_LAYOUT_CATEGORY = {
|
|
2846
2927
|
name: 'layout',
|
|
2847
2928
|
order: 1,
|
|
@@ -2885,5 +2966,5 @@ var AXPWidgetGroupEnum;
|
|
|
2885
2966
|
* Generated bundle index. Do not edit.
|
|
2886
2967
|
*/
|
|
2887
2968
|
|
|
2888
|
-
export { AXPBaseWidgetComponent, AXPBlockBaseLayoutWidgetComponent, AXPBoxModelLayoutWidgetComponent, AXPColumnWidgetComponent, AXPDataListWidgetComponent, AXPFlexBaseLayoutWidgetComponent, AXPFlexItemBaseLayoutWidgetComponent, AXPGridBaseLayoutWidgetComponent, AXPGridItemBaseLayoutWidgetComponent, AXPInlineBaseLayoutWidgetComponent, AXPLayoutBaseWidgetComponent, AXPPageStatus, AXPPropertyEditorHelper, AXPTableBaseLayoutWidgetComponent, AXPTableItemBaseLayoutWidgetComponent, AXPTableItemOpsBaseLayoutWidgetComponent, AXPValueWidgetComponent, AXPWidgetColumnRendererComponent, AXPWidgetContainerComponent, AXPWidgetCoreContextChangeEvent, AXPWidgetCoreContextStore, AXPWidgetCoreElement, AXPWidgetCoreModule, AXPWidgetCoreService, AXPWidgetGroupEnum, AXPWidgetRegistryService, AXPWidgetRendererDirective, AXPWidgetStatus, AXPWidgetsCatalog, AXP_WIDGETS_ACTION_CATEGORY, AXP_WIDGETS_ADVANCE_CATEGORY, AXP_WIDGETS_CATEGORIES, AXP_WIDGETS_EDITOR_CATEGORY, AXP_WIDGETS_LAYOUT_CATEGORY, AXP_WIDGET_COLUMN_TOKEN, AXP_WIDGET_TOKEN, cloneProperty, createBooleanProperty, createNumberProperty, createSelectProperty, createStringProperty, findNonEmptyBreakpoints };
|
|
2969
|
+
export { AXPBaseWidgetComponent, AXPBlockBaseLayoutWidgetComponent, AXPBoxModelLayoutWidgetComponent, AXPColumnWidgetComponent, AXPDataListWidgetComponent, AXPFlexBaseLayoutWidgetComponent, AXPFlexItemBaseLayoutWidgetComponent, AXPGridBaseLayoutWidgetComponent, AXPGridItemBaseLayoutWidgetComponent, AXPInlineBaseLayoutWidgetComponent, AXPLayoutBaseWidgetComponent, AXPPageStatus, AXPPropertyEditorHelper, AXPTableBaseLayoutWidgetComponent, AXPTableItemBaseLayoutWidgetComponent, AXPTableItemOpsBaseLayoutWidgetComponent, AXPValueWidgetComponent, AXPWidgetColumnRendererComponent, AXPWidgetContainerComponent, AXPWidgetCoreContextChangeEvent, AXPWidgetCoreContextStore, AXPWidgetCoreElement, AXPWidgetCoreModule, AXPWidgetCoreService, AXPWidgetGroupEnum, AXPWidgetRegistryService, AXPWidgetRendererDirective, AXPWidgetSerializationHelper, AXPWidgetStatus, AXPWidgetsCatalog, AXP_WIDGETS_ACTION_CATEGORY, AXP_WIDGETS_ADVANCE_CATEGORY, AXP_WIDGETS_CATEGORIES, AXP_WIDGETS_EDITOR_CATEGORY, AXP_WIDGETS_LAYOUT_CATEGORY, AXP_WIDGET_COLUMN_TOKEN, AXP_WIDGET_TOKEN, cloneProperty, createBooleanProperty, createNumberProperty, createSelectProperty, createStringProperty, findNonEmptyBreakpoints };
|
|
2889
2970
|
//# sourceMappingURL=acorex-platform-layout-widget-core.mjs.map
|