@acorex/platform 20.0.23 → 20.1.0
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 +29 -12
- package/common/index.d.ts +266 -41
- package/core/index.d.ts +3 -302
- package/fesm2022/acorex-platform-auth.mjs +202 -124
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-common.mjs +121 -104
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +53 -43
- 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 +103 -79
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +171 -171
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +156 -156
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +261 -261
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +74 -74
- package/fesm2022/acorex-platform-layout-views.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 +42 -42
- package/fesm2022/acorex-platform-runtime.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-create-entity-view.component-B1cyUyXJ.mjs → acorex-platform-themes-default-create-entity-view.component-CzHp6G3a.mjs} +6 -6
- package/fesm2022/{acorex-platform-themes-default-create-entity-view.component-B1cyUyXJ.mjs.map → acorex-platform-themes-default-create-entity-view.component-CzHp6G3a.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-BNdAQn4R.mjs → acorex-platform-themes-default-entity-master-create-view.component-nzWNHDO7.mjs} +15 -15
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-nzWNHDO7.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-CElBGzRM.mjs → acorex-platform-themes-default-entity-master-list-view.component-DJdedfa_.mjs} +54 -54
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DJdedfa_.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-QQ4bFuiN.mjs → acorex-platform-themes-default-entity-master-modify-view.component-Cn-0fTWn.mjs} +15 -15
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Cn-0fTWn.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-CEfSqV8l.mjs → acorex-platform-themes-default-entity-master-single-view.component-B8XrO58H.mjs} +22 -22
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-B8XrO58H.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-error-401.component-CA41DcvL.mjs → acorex-platform-themes-default-error-401.component-Ycd9latx.mjs} +5 -5
- package/fesm2022/{acorex-platform-themes-default-error-401.component-CA41DcvL.mjs.map → acorex-platform-themes-default-error-401.component-Ycd9latx.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-error-404.component-DHMnI_Ew.mjs → acorex-platform-themes-default-error-404.component-DHbzH27Q.mjs} +5 -5
- package/fesm2022/{acorex-platform-themes-default-error-404.component-DHMnI_Ew.mjs.map → acorex-platform-themes-default-error-404.component-DHbzH27Q.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-error-offline.component-BmPuSWfS.mjs → acorex-platform-themes-default-error-offline.component-BSdZOCbW.mjs} +5 -5
- package/fesm2022/{acorex-platform-themes-default-error-offline.component-BmPuSWfS.mjs.map → acorex-platform-themes-default-error-offline.component-BSdZOCbW.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +68 -61
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-shared-color-chooser-view.component-CUtKW-cD.mjs → acorex-platform-themes-shared-color-chooser-view.component-ChOhTEqX.mjs} +8 -8
- package/fesm2022/acorex-platform-themes-shared-color-chooser-view.component-ChOhTEqX.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-view.component-Dc3LQQOa.mjs → acorex-platform-themes-shared-icon-chooser-view.component-SXfawqIa.mjs} +6 -6
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-SXfawqIa.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared-settings.provider-CXiRmniv.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +61 -61
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-dBuOCox2.mjs → acorex-platform-widgets-button-widget-designer.component-BfWr5Wz8.mjs} +10 -10
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-BfWr5Wz8.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-column.component-DAGnRXR6.mjs → acorex-platform-widgets-checkbox-widget-column.component-C7mpTEda.mjs} +4 -4
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-column.component-DAGnRXR6.mjs.map → acorex-platform-widgets-checkbox-widget-column.component-C7mpTEda.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-BSGnyPBn.mjs → acorex-platform-widgets-checkbox-widget-designer.component-Dj3Go0tj.mjs} +10 -10
- package/fesm2022/acorex-platform-widgets-checkbox-widget-designer.component-Dj3Go0tj.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-view.component-C5V7UVN5.mjs → acorex-platform-widgets-checkbox-widget-view.component-Y12esByc.mjs} +10 -10
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-Y12esByc.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-color-box-widget-designer.component-BB3ylFBu.mjs → acorex-platform-widgets-color-box-widget-designer.component-CihtTd0F.mjs} +12 -12
- package/fesm2022/acorex-platform-widgets-color-box-widget-designer.component-CihtTd0F.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-file-list-popup.component-B58wkY7i.mjs → acorex-platform-widgets-file-list-popup.component-CEPrED5e.mjs} +15 -15
- package/fesm2022/acorex-platform-widgets-file-list-popup.component-CEPrED5e.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-file-rename-popup.component-BKkGU_y0.mjs → acorex-platform-widgets-file-rename-popup.component-DCVTwkGL.mjs} +15 -15
- package/fesm2022/acorex-platform-widgets-file-rename-popup.component-DCVTwkGL.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-page-widget-designer.component-DFyDAEzN.mjs → acorex-platform-widgets-page-widget-designer.component-D_970YBz.mjs} +11 -11
- package/fesm2022/acorex-platform-widgets-page-widget-designer.component-D_970YBz.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-rich-text-popup.component-C1QnFtzt.mjs → acorex-platform-widgets-rich-text-popup.component-ti6XgNeD.mjs} +4 -4
- package/fesm2022/{acorex-platform-widgets-rich-text-popup.component-C1QnFtzt.mjs.map → acorex-platform-widgets-rich-text-popup.component-ti6XgNeD.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-widgets-tabular-data-edit-popup.component--QOiFzPo.mjs → acorex-platform-widgets-tabular-data-edit-popup.component-C-OZ-B7h.mjs} +11 -11
- package/fesm2022/acorex-platform-widgets-tabular-data-edit-popup.component-C-OZ-B7h.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-tabular-data-view-popup.component-D-uJJ-tH.mjs → acorex-platform-widgets-tabular-data-view-popup.component-CvPn4SJx.mjs} +6 -6
- package/fesm2022/acorex-platform-widgets-tabular-data-view-popup.component-CvPn4SJx.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-text-block-widget-designer.component-7C66MAeP.mjs → acorex-platform-widgets-text-block-widget-designer.component-C_iu3jCG.mjs} +6 -6
- package/fesm2022/acorex-platform-widgets-text-block-widget-designer.component-C_iu3jCG.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +1194 -1194
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +25 -25
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/builder/index.d.ts +1 -0
- package/package.json +5 -5
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-BNdAQn4R.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CElBGzRM.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-QQ4bFuiN.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-CEfSqV8l.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-color-chooser-view.component-CUtKW-cD.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-Dc3LQQOa.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-dBuOCox2.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-designer.component-BSGnyPBn.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-C5V7UVN5.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-color-box-widget-designer.component-BB3ylFBu.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-file-list-popup.component-B58wkY7i.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-file-rename-popup.component-BKkGU_y0.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-page-widget-designer.component-DFyDAEzN.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-tabular-data-edit-popup.component--QOiFzPo.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-tabular-data-view-popup.component-D-uJJ-tH.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-text-block-widget-designer.component-7C66MAeP.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, inject, Injectable, computed, signal, Injector, effect, HostBinding, ChangeDetectionStrategy, Component, viewChild, ViewChild, NgModule } from '@angular/core';
|
|
3
3
|
import { castArray, get, cloneDeep, set, merge, isNil, isEmpty, sortBy } from 'lodash-es';
|
|
4
|
-
import * as
|
|
4
|
+
import * as i1$2 from '@acorex/cdk/common';
|
|
5
5
|
import { AXDataSource, AXCommonModule } from '@acorex/cdk/common';
|
|
6
6
|
import { AXFormatService } from '@acorex/core/format';
|
|
7
7
|
import { resolveActionLook, AXPFilterOperatorMiddlewareService, AXPEntityCommandScope, getEntityInfo, AXPSettingService, AXPRefreshEvent, AXPLockService, AXPCleanNestedFilters, AXPWorkflowNavigateAction, AXPToastAction, AXP_SEARCH_DEFINITION_PROVIDER } from '@acorex/platform/common';
|
|
@@ -9,7 +9,7 @@ import * as i1$4 from '@acorex/platform/core';
|
|
|
9
9
|
import { AXPExpressionEvaluatorService, AXPPlatformScope, extractValue, setSmart } from '@acorex/platform/core';
|
|
10
10
|
import * as i2$2 from '@acorex/platform/workflow';
|
|
11
11
|
import { AXPWorkflowService, ofType, createWorkFlowEvent, AXPWorkflowAction, AXPWorkflowModule } from '@acorex/platform/workflow';
|
|
12
|
-
import * as
|
|
12
|
+
import * as i6 from '@acorex/platform/layout/builder';
|
|
13
13
|
import { AXPPageStatus, AXPWidgetRegistryService, AXPValueWidgetComponent, AXPLayoutBuilderModule, AXPColumnWidgetComponent, AXPWidgetsCatalog, AXPWidgetGroupEnum, AXP_WIDGETS_EDITOR_CATEGORY } from '@acorex/platform/layout/builder';
|
|
14
14
|
import { AXPLayoutThemeService } from '@acorex/platform/themes/shared';
|
|
15
15
|
import { AXPSessionService, AXPAuthGuard } from '@acorex/platform/auth';
|
|
@@ -25,26 +25,26 @@ import * as i1 from '@acorex/components/loading';
|
|
|
25
25
|
import { AXLoadingModule } from '@acorex/components/loading';
|
|
26
26
|
import * as i1$1 from '@acorex/components/badge';
|
|
27
27
|
import { AXBadgeModule } from '@acorex/components/badge';
|
|
28
|
-
import * as
|
|
28
|
+
import * as i2 from '@acorex/components/button';
|
|
29
29
|
import { AXButtonModule } from '@acorex/components/button';
|
|
30
|
-
import * as
|
|
30
|
+
import * as i3 from '@acorex/components/decorators';
|
|
31
31
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
32
|
-
import * as
|
|
32
|
+
import * as i5$1 from '@acorex/components/form';
|
|
33
33
|
import { AXFormModule } from '@acorex/components/form';
|
|
34
|
-
import * as
|
|
34
|
+
import * as i6$1 from '@acorex/components/tag-box';
|
|
35
35
|
import { AXTagBoxComponent, AXTagBoxModule } from '@acorex/components/tag-box';
|
|
36
36
|
import { AXValidationModule } from '@acorex/core/validation';
|
|
37
|
-
import * as
|
|
37
|
+
import * as i7 from '@angular/common';
|
|
38
38
|
import { CommonModule } from '@angular/common';
|
|
39
39
|
import * as i1$3 from '@angular/forms';
|
|
40
40
|
import { FormsModule } from '@angular/forms';
|
|
41
|
-
import * as
|
|
41
|
+
import * as i4 from '@acorex/components/data-table';
|
|
42
42
|
import { AXDataTableModule } from '@acorex/components/data-table';
|
|
43
43
|
import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
|
|
44
44
|
import { AXBasePageComponent } from '@acorex/components/page';
|
|
45
|
-
import * as
|
|
45
|
+
import * as i5 from '@acorex/components/search-box';
|
|
46
46
|
import { AXSearchBoxModule, AXSearchBoxComponent } from '@acorex/components/search-box';
|
|
47
|
-
import * as
|
|
47
|
+
import * as i7$1 from '@acorex/components/select-box';
|
|
48
48
|
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
49
49
|
import { AXP_DISABLED_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DATA_PROPERTY_GROUP, AXP_ALLOW_MULTIPLE_PROPERTY, AXP_NAME_PROPERTY, AXPFileUploaderWidgetService } from '@acorex/platform/widgets';
|
|
50
50
|
import * as i2$1 from '@acorex/components/text-box';
|
|
@@ -61,10 +61,10 @@ class AXPDataSeederService {
|
|
|
61
61
|
await loader?.seed();
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
65
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
64
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPDataSeederService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
65
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPDataSeederService, providedIn: 'root' }); }
|
|
66
66
|
}
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPDataSeederService, decorators: [{
|
|
68
68
|
type: Injectable,
|
|
69
69
|
args: [{ providedIn: 'root' }]
|
|
70
70
|
}] });
|
|
@@ -89,10 +89,10 @@ class AXPEntityResolver {
|
|
|
89
89
|
}
|
|
90
90
|
return null;
|
|
91
91
|
}
|
|
92
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
93
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
92
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityResolver, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
93
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityResolver, providedIn: 'root' }); }
|
|
94
94
|
}
|
|
95
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityResolver, decorators: [{
|
|
96
96
|
type: Injectable,
|
|
97
97
|
args: [{ providedIn: 'root' }]
|
|
98
98
|
}] });
|
|
@@ -130,7 +130,7 @@ class AXPEntityListViewColumnViewModel {
|
|
|
130
130
|
type: widget.type,
|
|
131
131
|
options: { ...widget?.options, ...this.column?.options },
|
|
132
132
|
};
|
|
133
|
-
});
|
|
133
|
+
}, ...(ngDevMode ? [{ debugName: "node" }] : []));
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
|
|
@@ -139,7 +139,7 @@ class AXPEntityDetailListViewModel {
|
|
|
139
139
|
this.injector = injector;
|
|
140
140
|
this.detailEntityConfig = detailEntityConfig;
|
|
141
141
|
this.parent = parent;
|
|
142
|
-
this.detailEntity = signal(null);
|
|
142
|
+
this.detailEntity = signal(null, ...(ngDevMode ? [{ debugName: "detailEntity" }] : []));
|
|
143
143
|
this.formatService = this.injector.get(AXFormatService);
|
|
144
144
|
this.workflow = this.injector.get(AXPWorkflowService);
|
|
145
145
|
this.filterOperatorMiddleware = this.injector.get(AXPFilterOperatorMiddlewareService);
|
|
@@ -158,17 +158,17 @@ class AXPEntityDetailListViewModel {
|
|
|
158
158
|
});
|
|
159
159
|
this.parentKey = computed(() => {
|
|
160
160
|
return this.detailEntity()?.parentKey;
|
|
161
|
-
});
|
|
162
|
-
this.selectedItems = signal([]);
|
|
161
|
+
}, ...(ngDevMode ? [{ debugName: "parentKey" }] : []));
|
|
162
|
+
this.selectedItems = signal([], ...(ngDevMode ? [{ debugName: "selectedItems" }] : []));
|
|
163
163
|
this.hasSelectedItems = computed(() => {
|
|
164
164
|
return this.selectedItems().length > 0;
|
|
165
|
-
});
|
|
165
|
+
}, ...(ngDevMode ? [{ debugName: "hasSelectedItems" }] : []));
|
|
166
166
|
//****************** Title ******************//
|
|
167
167
|
this.title = computed(() => {
|
|
168
168
|
return (this.detailEntityConfig.title ??
|
|
169
169
|
this.detailEntity()?.interfaces?.detail?.list?.title ??
|
|
170
170
|
this.detailEntity()?.formats.plural);
|
|
171
|
-
});
|
|
171
|
+
}, ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
172
172
|
//****************** Visibility ******************//
|
|
173
173
|
this.hidden = computed(async () => {
|
|
174
174
|
if (typeof this.detailEntityConfig.hidden == 'string') {
|
|
@@ -184,15 +184,15 @@ class AXPEntityDetailListViewModel {
|
|
|
184
184
|
else {
|
|
185
185
|
return this.detailEntityConfig.hidden ?? false;
|
|
186
186
|
}
|
|
187
|
-
});
|
|
187
|
+
}, ...(ngDevMode ? [{ debugName: "hidden" }] : []));
|
|
188
188
|
//****************** Inline filter ******************//
|
|
189
189
|
this.inlineFiltersPlaceholders = computed(() => {
|
|
190
190
|
//return this.entityDef.properties.filter(p => p.options?.filter?.inline?.enabled).map(c => c.title);
|
|
191
191
|
return [];
|
|
192
|
-
});
|
|
192
|
+
}, ...(ngDevMode ? [{ debugName: "inlineFiltersPlaceholders" }] : []));
|
|
193
193
|
this.hasInlineFilters = computed(() => {
|
|
194
194
|
return this.inlineFiltersPlaceholders().length > 0;
|
|
195
|
-
});
|
|
195
|
+
}, ...(ngDevMode ? [{ debugName: "hasInlineFilters" }] : []));
|
|
196
196
|
//****************** Actions ******************//
|
|
197
197
|
this.allActions = computed(() => {
|
|
198
198
|
const list = this.detailEntity()?.interfaces?.master?.list?.actions ?? [];
|
|
@@ -206,22 +206,22 @@ class AXPEntityDetailListViewModel {
|
|
|
206
206
|
return new AXPEntityCommandTriggerViewModel(this.detailEntity(), overrideAction ?? tr);
|
|
207
207
|
});
|
|
208
208
|
return mergedActions;
|
|
209
|
-
});
|
|
209
|
+
}, ...(ngDevMode ? [{ debugName: "allActions" }] : []));
|
|
210
210
|
this.selectedScopeActionsCount = computed(() => {
|
|
211
211
|
return this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Selected).length;
|
|
212
|
-
});
|
|
212
|
+
}, ...(ngDevMode ? [{ debugName: "selectedScopeActionsCount" }] : []));
|
|
213
213
|
this.primaryActions = computed(() => {
|
|
214
214
|
return this.allActions().filter((a) => a.priority == 'primary' &&
|
|
215
215
|
((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
216
216
|
(a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
217
|
-
});
|
|
217
|
+
}, ...(ngDevMode ? [{ debugName: "primaryActions" }] : []));
|
|
218
218
|
this.secondaryActions = computed(() => {
|
|
219
219
|
return this.allActions().filter((a) => a.priority == 'secondary' &&
|
|
220
220
|
((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
221
221
|
(a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
222
|
-
});
|
|
223
|
-
this.primaryRowActions = computed(() => this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Individual && a.priority === 'primary'));
|
|
224
|
-
this.secondaryRowActions = computed(() => this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Individual && a.priority === 'secondary'));
|
|
222
|
+
}, ...(ngDevMode ? [{ debugName: "secondaryActions" }] : []));
|
|
223
|
+
this.primaryRowActions = computed(() => this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Individual && a.priority === 'primary'), ...(ngDevMode ? [{ debugName: "primaryRowActions" }] : []));
|
|
224
|
+
this.secondaryRowActions = computed(() => this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Individual && a.priority === 'secondary'), ...(ngDevMode ? [{ debugName: "secondaryRowActions" }] : []));
|
|
225
225
|
//****************** Filter ******************//
|
|
226
226
|
this.inlineFilters = {
|
|
227
227
|
field: null,
|
|
@@ -241,7 +241,7 @@ class AXPEntityDetailListViewModel {
|
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
return [];
|
|
244
|
-
});
|
|
244
|
+
}, ...(ngDevMode ? [{ debugName: "columns" }] : []));
|
|
245
245
|
this.evaluateExpressions = async (actionData) => {
|
|
246
246
|
const parentData = this.parent.data;
|
|
247
247
|
console.log({ actionData, parentData });
|
|
@@ -578,10 +578,10 @@ class AXPEntityMiddleware {
|
|
|
578
578
|
modifier(context);
|
|
579
579
|
return context.toEntity();
|
|
580
580
|
}
|
|
581
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
582
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
581
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityMiddleware, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
582
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityMiddleware, providedIn: 'root' }); }
|
|
583
583
|
}
|
|
584
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityMiddleware, decorators: [{
|
|
585
585
|
type: Injectable,
|
|
586
586
|
args: [{ providedIn: 'root' }]
|
|
587
587
|
}], ctorParameters: () => [] });
|
|
@@ -691,10 +691,10 @@ class AXPEntityDefinitionRegistryService {
|
|
|
691
691
|
createEntityKey(moduleName, entityName) {
|
|
692
692
|
return `${moduleName}.${entityName}`;
|
|
693
693
|
}
|
|
694
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
695
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
694
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityDefinitionRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
695
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityDefinitionRegistryService, providedIn: 'root' }); }
|
|
696
696
|
}
|
|
697
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
697
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityDefinitionRegistryService, decorators: [{
|
|
698
698
|
type: Injectable,
|
|
699
699
|
args: [{
|
|
700
700
|
providedIn: 'root',
|
|
@@ -706,18 +706,18 @@ class AXPEntityCreateViewSectionViewModel {
|
|
|
706
706
|
this.entity = entity;
|
|
707
707
|
this.section = section;
|
|
708
708
|
this.group = this.entity.groups?.find((c) => c.id == this.section.id);
|
|
709
|
-
this.name = signal(this.group.id);
|
|
709
|
+
this.name = signal(this.group.id, ...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
710
710
|
this.title = computed(() => {
|
|
711
711
|
return this.group.title ?? this.group.id;
|
|
712
|
-
});
|
|
712
|
+
}, ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
713
713
|
this.description = computed(() => {
|
|
714
714
|
return this.group.description;
|
|
715
|
-
});
|
|
715
|
+
}, ...(ngDevMode ? [{ debugName: "description" }] : []));
|
|
716
716
|
this.layout = computed(() => {
|
|
717
717
|
const source = cloneDeep(this.section.layout ?? {});
|
|
718
718
|
set(source, 'positions.default.colSpan', 12);
|
|
719
719
|
return source;
|
|
720
|
-
});
|
|
720
|
+
}, ...(ngDevMode ? [{ debugName: "layout" }] : []));
|
|
721
721
|
this.elements = computed(() => {
|
|
722
722
|
const { interfaces, properties } = this.entity;
|
|
723
723
|
const createProps = interfaces?.master?.create?.properties ?? [];
|
|
@@ -727,7 +727,7 @@ class AXPEntityCreateViewSectionViewModel {
|
|
|
727
727
|
const createProp = createProps.find(({ name }) => name === property.name);
|
|
728
728
|
return new AXPEntityCreateViewElementViewModel(this.entity, this, property, createProp);
|
|
729
729
|
});
|
|
730
|
-
});
|
|
730
|
+
}, ...(ngDevMode ? [{ debugName: "elements" }] : []));
|
|
731
731
|
}
|
|
732
732
|
}
|
|
733
733
|
class AXPEntityCreateViewElementViewModel {
|
|
@@ -736,20 +736,20 @@ class AXPEntityCreateViewElementViewModel {
|
|
|
736
736
|
this.section = section;
|
|
737
737
|
this.property = property;
|
|
738
738
|
this.createProp = createProp;
|
|
739
|
-
this.name = signal(this.property.name);
|
|
740
|
-
this.title = signal(this.property.title);
|
|
741
|
-
this.description = signal(this.property.description);
|
|
739
|
+
this.name = signal(this.property.name, ...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
740
|
+
this.title = signal(this.property.title, ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
741
|
+
this.description = signal(this.property.description, ...(ngDevMode ? [{ debugName: "description" }] : []));
|
|
742
742
|
this.editable = computed(() => {
|
|
743
743
|
return !(this.property.schema.readonly ?? false);
|
|
744
|
-
});
|
|
744
|
+
}, ...(ngDevMode ? [{ debugName: "editable" }] : []));
|
|
745
745
|
this.isRequired = computed(() => {
|
|
746
746
|
return this.property.validations?.some((c) => c.rule == 'required') || false;
|
|
747
|
-
});
|
|
747
|
+
}, ...(ngDevMode ? [{ debugName: "isRequired" }] : []));
|
|
748
748
|
this.layout = computed(() => {
|
|
749
749
|
const source = cloneDeep(this.createProp.layout ?? {});
|
|
750
750
|
set(source, 'positions.default.colSpan', 12);
|
|
751
751
|
return source;
|
|
752
|
-
});
|
|
752
|
+
}, ...(ngDevMode ? [{ debugName: "layout" }] : []));
|
|
753
753
|
this.node = computed(() => {
|
|
754
754
|
const schema = this.property.schema;
|
|
755
755
|
const widget = schema.interface;
|
|
@@ -766,7 +766,7 @@ class AXPEntityCreateViewElementViewModel {
|
|
|
766
766
|
validations: this.property.validations?.map((c) => ({ rule: c.rule, message: c.message, options: c.options })),
|
|
767
767
|
}),
|
|
768
768
|
};
|
|
769
|
-
});
|
|
769
|
+
}, ...(ngDevMode ? [{ debugName: "node" }] : []));
|
|
770
770
|
}
|
|
771
771
|
}
|
|
772
772
|
class AXPEntityMasterCreateViewModel {
|
|
@@ -778,18 +778,18 @@ class AXPEntityMasterCreateViewModel {
|
|
|
778
778
|
this.entityDef = cloneDeep(this.config);
|
|
779
779
|
this.workflow = this.injector.get(AXPWorkflowService);
|
|
780
780
|
this.expressionEvaluator = this.injector.get(AXPExpressionEvaluatorService);
|
|
781
|
-
this.context = signal(this.initialData ?? {});
|
|
782
|
-
this.options = signal(this.commandOptions ?? {});
|
|
783
|
-
this.isInProgress = signal(false);
|
|
784
|
-
this.canCreateNewOne = signal(true);
|
|
785
|
-
this.redirect = signal(true);
|
|
781
|
+
this.context = signal(this.initialData ?? {}, ...(ngDevMode ? [{ debugName: "context" }] : []));
|
|
782
|
+
this.options = signal(this.commandOptions ?? {}, ...(ngDevMode ? [{ debugName: "options" }] : []));
|
|
783
|
+
this.isInProgress = signal(false, ...(ngDevMode ? [{ debugName: "isInProgress" }] : []));
|
|
784
|
+
this.canCreateNewOne = signal(true, ...(ngDevMode ? [{ debugName: "canCreateNewOne" }] : []));
|
|
785
|
+
this.redirect = signal(true, ...(ngDevMode ? [{ debugName: "redirect" }] : []));
|
|
786
786
|
this.sections = computed(() => {
|
|
787
787
|
const { interfaces, properties } = this.entityDef;
|
|
788
788
|
const createProps = interfaces?.master?.create?.properties?.map(({ name }) => name) ?? [];
|
|
789
789
|
const visibleProperties = properties.filter(({ groupId, schema, name }) => groupId && !schema.hidden && createProps.includes(name));
|
|
790
790
|
const sections = interfaces?.master?.create?.sections?.filter(({ id }) => visibleProperties.some(({ groupId }) => groupId === id)) ?? [];
|
|
791
791
|
return sections.map((section) => new AXPEntityCreateViewSectionViewModel(this.entityDef, section));
|
|
792
|
-
});
|
|
792
|
+
}, ...(ngDevMode ? [{ debugName: "sections" }] : []));
|
|
793
793
|
if (!initialData)
|
|
794
794
|
initialData = {};
|
|
795
795
|
const scope = {
|
|
@@ -869,10 +869,10 @@ class AXPEntityCreateViewModelFactory {
|
|
|
869
869
|
this.layout.setNavigationLoading(false);
|
|
870
870
|
return new AXPEntityMasterCreateViewModel(this.injector, config, initialData, options);
|
|
871
871
|
}
|
|
872
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
873
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
872
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityCreateViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
873
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityCreateViewModelFactory, providedIn: 'root' }); }
|
|
874
874
|
}
|
|
875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityCreateViewModelFactory, decorators: [{
|
|
876
876
|
type: Injectable,
|
|
877
877
|
args: [{ providedIn: 'root' }]
|
|
878
878
|
}] });
|
|
@@ -925,8 +925,8 @@ class AXPEntityMasterListViewModel {
|
|
|
925
925
|
return views.map((v) => {
|
|
926
926
|
return new AXPEntityMasterListViewQueryViewModel(this.entityDef, this, v);
|
|
927
927
|
});
|
|
928
|
-
});
|
|
929
|
-
this.view = signal(this.views()[0]);
|
|
928
|
+
}, ...(ngDevMode ? [{ debugName: "views" }] : []));
|
|
929
|
+
this.view = signal(this.views()[0], ...(ngDevMode ? [{ debugName: "view" }] : []));
|
|
930
930
|
this.dataSource = new AXDataSource({
|
|
931
931
|
byKey: (key) => {
|
|
932
932
|
const func = this.entityDef.queries.byKey.execute;
|
|
@@ -939,28 +939,28 @@ class AXPEntityMasterListViewModel {
|
|
|
939
939
|
pageSize: this.view().pageSize || 10,
|
|
940
940
|
key: 'id',
|
|
941
941
|
});
|
|
942
|
-
this.selectedItems = signal([]);
|
|
942
|
+
this.selectedItems = signal([], ...(ngDevMode ? [{ debugName: "selectedItems" }] : []));
|
|
943
943
|
this.parentKey = computed(() => {
|
|
944
944
|
return this.entityDef.parentKey;
|
|
945
|
-
});
|
|
945
|
+
}, ...(ngDevMode ? [{ debugName: "parentKey" }] : []));
|
|
946
946
|
this.hasSelectedItems = computed(() => {
|
|
947
947
|
return this.selectedItems().length > 0;
|
|
948
|
-
});
|
|
948
|
+
}, ...(ngDevMode ? [{ debugName: "hasSelectedItems" }] : []));
|
|
949
949
|
//****************** Title ******************//
|
|
950
950
|
this.title = computed(() => {
|
|
951
951
|
return this._viewDef.title ?? this.entityDef.formats.plural;
|
|
952
|
-
});
|
|
952
|
+
}, ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
953
953
|
//****************** Description ******************//
|
|
954
954
|
this.description = computed(() => {
|
|
955
955
|
return this._viewDef.description ?? null;
|
|
956
|
-
});
|
|
956
|
+
}, ...(ngDevMode ? [{ debugName: "description" }] : []));
|
|
957
957
|
//****************** Inline filter ******************//
|
|
958
958
|
this.inlineFiltersPlaceholders = computed(() => {
|
|
959
959
|
return this.entityDef.properties.filter((p) => p.options?.filter?.inline?.enabled).map((c) => c.title ?? c.name);
|
|
960
|
-
});
|
|
960
|
+
}, ...(ngDevMode ? [{ debugName: "inlineFiltersPlaceholders" }] : []));
|
|
961
961
|
this.hasInlineFilters = computed(() => {
|
|
962
962
|
return this.inlineFiltersPlaceholders().length > 0;
|
|
963
|
-
});
|
|
963
|
+
}, ...(ngDevMode ? [{ debugName: "hasInlineFilters" }] : []));
|
|
964
964
|
//****************** Beardcrumbs ******************//
|
|
965
965
|
this.beardcrumbs = computed(() => {
|
|
966
966
|
return [
|
|
@@ -968,18 +968,18 @@ class AXPEntityMasterListViewModel {
|
|
|
968
968
|
title: this.title(),
|
|
969
969
|
},
|
|
970
970
|
];
|
|
971
|
-
});
|
|
971
|
+
}, ...(ngDevMode ? [{ debugName: "beardcrumbs" }] : []));
|
|
972
972
|
//****************** Actions ******************//
|
|
973
973
|
this.allActions = computed(() => {
|
|
974
974
|
const list = this.entityDef.interfaces?.master?.list?.actions ?? [];
|
|
975
975
|
return list.map((tr) => new AXPEntityCommandTriggerViewModel(this.entityDef, tr)) ?? [];
|
|
976
|
-
});
|
|
976
|
+
}, ...(ngDevMode ? [{ debugName: "allActions" }] : []));
|
|
977
977
|
this.selectedScopeActionsCount = computed(() => {
|
|
978
978
|
return this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Selected).length;
|
|
979
|
-
});
|
|
980
|
-
this.primaryRowActions = computed(() => this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Individual && a.priority === 'primary'));
|
|
979
|
+
}, ...(ngDevMode ? [{ debugName: "selectedScopeActionsCount" }] : []));
|
|
980
|
+
this.primaryRowActions = computed(() => this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Individual && a.priority === 'primary'), ...(ngDevMode ? [{ debugName: "primaryRowActions" }] : []));
|
|
981
981
|
//****************** Filter ******************//
|
|
982
|
-
this.filterQueries = signal([]);
|
|
982
|
+
this.filterQueries = signal([], ...(ngDevMode ? [{ debugName: "filterQueries" }] : []));
|
|
983
983
|
//****************** Columns ******************//
|
|
984
984
|
this.allAvailableColumns = () => {
|
|
985
985
|
const { columns = [], properties } = this.entityDef;
|
|
@@ -995,7 +995,7 @@ class AXPEntityMasterListViewModel {
|
|
|
995
995
|
this.visibleColumnCount = () => {
|
|
996
996
|
return this.columns().filter((c) => c.visible == true).length;
|
|
997
997
|
};
|
|
998
|
-
this.columns = signal([]);
|
|
998
|
+
this.columns = signal([], ...(ngDevMode ? [{ debugName: "columns" }] : []));
|
|
999
999
|
//****************** Sort ******************//
|
|
1000
1000
|
this.sortableFields = () => {
|
|
1001
1001
|
const props = this.entityDef.properties.filter((c) => c.options?.sort?.enabled);
|
|
@@ -1019,7 +1019,7 @@ class AXPEntityMasterListViewModel {
|
|
|
1019
1019
|
this.sortedCount = () => {
|
|
1020
1020
|
return this.sortedFields().filter((i) => i.dir).length;
|
|
1021
1021
|
};
|
|
1022
|
-
this.sortedFields = signal([]);
|
|
1022
|
+
this.sortedFields = signal([], ...(ngDevMode ? [{ debugName: "sortedFields" }] : []));
|
|
1023
1023
|
this.evaluateExpressions = async (options, data) => {
|
|
1024
1024
|
const scope = {
|
|
1025
1025
|
context: {
|
|
@@ -1311,10 +1311,10 @@ class AXPEntityListViewModelFactory {
|
|
|
1311
1311
|
this.layout.setNavigationLoading(false);
|
|
1312
1312
|
return new AXPEntityMasterListViewModel(this.injector, config);
|
|
1313
1313
|
}
|
|
1314
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1315
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
1314
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityListViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1315
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityListViewModelFactory, providedIn: 'root' }); }
|
|
1316
1316
|
}
|
|
1317
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityListViewModelFactory, decorators: [{
|
|
1318
1318
|
type: Injectable,
|
|
1319
1319
|
args: [{ providedIn: 'root' }]
|
|
1320
1320
|
}] });
|
|
@@ -1332,10 +1332,10 @@ class AXPEntityService {
|
|
|
1332
1332
|
createPath(module, entity, path = 'list') {
|
|
1333
1333
|
return `/${this.sessionService.application?.name}/m/${module}/e/${entity}/${path}`;
|
|
1334
1334
|
}
|
|
1335
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1336
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
1335
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1336
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityService, providedIn: 'root' }); }
|
|
1337
1337
|
}
|
|
1338
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1338
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityService, decorators: [{
|
|
1339
1339
|
type: Injectable,
|
|
1340
1340
|
args: [{ providedIn: 'root' }]
|
|
1341
1341
|
}] });
|
|
@@ -1489,10 +1489,10 @@ class AXPEntityPerformDeleteAction extends AXPWorkflowAction {
|
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1493
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
1492
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityPerformDeleteAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1493
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityPerformDeleteAction }); }
|
|
1494
1494
|
}
|
|
1495
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityPerformDeleteAction, decorators: [{
|
|
1496
1496
|
type: Injectable
|
|
1497
1497
|
}] });
|
|
1498
1498
|
const AXPDeleteEntityWorkflow = {
|
|
@@ -1527,21 +1527,21 @@ class AXPEntityMasterUpdateElementViewModel {
|
|
|
1527
1527
|
constructor(entity, property) {
|
|
1528
1528
|
this.entity = entity;
|
|
1529
1529
|
this.property = property;
|
|
1530
|
-
this.name = signal(this.property.name);
|
|
1531
|
-
this.title = signal(this.property.title);
|
|
1532
|
-
this.description = signal(this.property.description);
|
|
1530
|
+
this.name = signal(this.property.name, ...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
1531
|
+
this.title = signal(this.property.title, ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
1532
|
+
this.description = signal(this.property.description, ...(ngDevMode ? [{ debugName: "description" }] : []));
|
|
1533
1533
|
this.editable = computed(() => {
|
|
1534
1534
|
return !(this.property.schema.readonly ?? false);
|
|
1535
|
-
});
|
|
1535
|
+
}, ...(ngDevMode ? [{ debugName: "editable" }] : []));
|
|
1536
1536
|
this.isRequired = computed(() => {
|
|
1537
1537
|
return this.property.validations?.some((c) => c.rule == 'required') || false;
|
|
1538
|
-
});
|
|
1538
|
+
}, ...(ngDevMode ? [{ debugName: "isRequired" }] : []));
|
|
1539
1539
|
this.layout = computed(() => {
|
|
1540
1540
|
const updateProp = this.entity.interfaces?.master?.update?.properties?.find((c) => c.name == this.property.name);
|
|
1541
1541
|
const source = cloneDeep(updateProp?.layout ?? {});
|
|
1542
1542
|
set(source, 'positions.default.colSpan', 12);
|
|
1543
1543
|
return source;
|
|
1544
|
-
});
|
|
1544
|
+
}, ...(ngDevMode ? [{ debugName: "layout" }] : []));
|
|
1545
1545
|
this.node = computed(() => {
|
|
1546
1546
|
const schema = this.property.schema;
|
|
1547
1547
|
const widget = schema.interface;
|
|
@@ -1558,7 +1558,7 @@ class AXPEntityMasterUpdateElementViewModel {
|
|
|
1558
1558
|
validations: this.property.validations?.map((c) => ({ rule: c.rule, message: c.message, options: c.options })),
|
|
1559
1559
|
}),
|
|
1560
1560
|
};
|
|
1561
|
-
});
|
|
1561
|
+
}, ...(ngDevMode ? [{ debugName: "node" }] : []));
|
|
1562
1562
|
}
|
|
1563
1563
|
}
|
|
1564
1564
|
class AXPEntityMasterUpdateViewModel {
|
|
@@ -1581,14 +1581,14 @@ class AXPEntityMasterUpdateViewModel {
|
|
|
1581
1581
|
this.workflow = this.injector.get(AXPWorkflowService);
|
|
1582
1582
|
this.lockService = this.injector.get(AXPLockService);
|
|
1583
1583
|
this.sessionService = this.injector.get(AXPSessionService);
|
|
1584
|
-
this.isInProgress = signal(false);
|
|
1585
|
-
this.context = signal(cloneDeep(this.entityData));
|
|
1584
|
+
this.isInProgress = signal(false, ...(ngDevMode ? [{ debugName: "isInProgress" }] : []));
|
|
1585
|
+
this.context = signal(cloneDeep(this.entityData), ...(ngDevMode ? [{ debugName: "context" }] : []));
|
|
1586
1586
|
this.elements = computed(() => {
|
|
1587
1587
|
const props = this.entityDef.properties.filter((c) => this.props.includes(c.name) && c.schema.hidden != true);
|
|
1588
1588
|
return props.map((e) => {
|
|
1589
1589
|
return new AXPEntityMasterUpdateElementViewModel(this.entityDef, e);
|
|
1590
1590
|
});
|
|
1591
|
-
});
|
|
1591
|
+
}, ...(ngDevMode ? [{ debugName: "elements" }] : []));
|
|
1592
1592
|
// Lock the record on creation
|
|
1593
1593
|
if (this.entityId) {
|
|
1594
1594
|
this.lockService.lock({
|
|
@@ -1654,10 +1654,10 @@ class AXPEntityMasterUpdateViewModelFactory {
|
|
|
1654
1654
|
this.layout.setNavigationLoading(false);
|
|
1655
1655
|
return Promise.reject('cannot fetch ');
|
|
1656
1656
|
}
|
|
1657
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1658
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
1657
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityMasterUpdateViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1658
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityMasterUpdateViewModelFactory, providedIn: 'root' }); }
|
|
1659
1659
|
}
|
|
1660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1660
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityMasterUpdateViewModelFactory, decorators: [{
|
|
1661
1661
|
type: Injectable,
|
|
1662
1662
|
args: [{ providedIn: 'root' }]
|
|
1663
1663
|
}] });
|
|
@@ -1700,10 +1700,10 @@ class AXPEntityModifySectionPopupAction extends AXPWorkflowAction {
|
|
|
1700
1700
|
context.setVariable('data', cloneDeep(popup.data.context));
|
|
1701
1701
|
}
|
|
1702
1702
|
}
|
|
1703
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1704
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
1703
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityModifySectionPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1704
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityModifySectionPopupAction }); }
|
|
1705
1705
|
}
|
|
1706
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1706
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityModifySectionPopupAction, decorators: [{
|
|
1707
1707
|
type: Injectable
|
|
1708
1708
|
}] });
|
|
1709
1709
|
class AXPEntityModifyConfirmedAction extends AXPWorkflowAction {
|
|
@@ -1718,10 +1718,10 @@ class AXPEntityModifyConfirmedAction extends AXPWorkflowAction {
|
|
|
1718
1718
|
},
|
|
1719
1719
|
}));
|
|
1720
1720
|
}
|
|
1721
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1722
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
1721
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityModifyConfirmedAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1722
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityModifyConfirmedAction }); }
|
|
1723
1723
|
}
|
|
1724
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityModifyConfirmedAction, decorators: [{
|
|
1725
1725
|
type: Injectable
|
|
1726
1726
|
}] });
|
|
1727
1727
|
const AXPModifyEntitySectionWorkflow = {
|
|
@@ -1764,19 +1764,19 @@ class AXPEntityMasterSingleViewGroupViewModel {
|
|
|
1764
1764
|
this.entity = entity;
|
|
1765
1765
|
this.section = section;
|
|
1766
1766
|
this.group = this.entity.groups?.find((c) => c.id == this.section.id);
|
|
1767
|
-
this.name = signal(this.group.id);
|
|
1768
|
-
this.isLoading = signal(false);
|
|
1767
|
+
this.name = signal(this.group.id, ...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
1768
|
+
this.isLoading = signal(false, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
|
|
1769
1769
|
this.title = computed(() => {
|
|
1770
1770
|
return this.group.title ?? this.group.id;
|
|
1771
|
-
});
|
|
1771
|
+
}, ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
1772
1772
|
this.description = computed(() => {
|
|
1773
1773
|
return this.group.description;
|
|
1774
|
-
});
|
|
1774
|
+
}, ...(ngDevMode ? [{ debugName: "description" }] : []));
|
|
1775
1775
|
this.layout = computed(() => {
|
|
1776
1776
|
const source = cloneDeep(this.section.layout ?? {});
|
|
1777
1777
|
set(source, 'positions.default.colSpan', 12);
|
|
1778
1778
|
return source;
|
|
1779
|
-
});
|
|
1779
|
+
}, ...(ngDevMode ? [{ debugName: "layout" }] : []));
|
|
1780
1780
|
this.props = computed(() => {
|
|
1781
1781
|
const { properties, interfaces } = this.entity;
|
|
1782
1782
|
const groupProperties = properties
|
|
@@ -1784,16 +1784,16 @@ class AXPEntityMasterSingleViewGroupViewModel {
|
|
|
1784
1784
|
.map(({ name }) => name);
|
|
1785
1785
|
const viewProperties = interfaces?.master?.single?.properties?.filter(({ name }) => groupProperties.includes(name)) ?? [];
|
|
1786
1786
|
return viewProperties.map((prop) => new AXPEntityMasterSingleElementViewModel(this.entity, this, prop));
|
|
1787
|
-
});
|
|
1787
|
+
}, ...(ngDevMode ? [{ debugName: "props" }] : []));
|
|
1788
1788
|
this.editableProps = computed(() => {
|
|
1789
1789
|
const { properties, interfaces } = this.entity;
|
|
1790
1790
|
const editablePropertyNames = interfaces?.master?.update?.properties?.map(({ name }) => name) ?? [];
|
|
1791
1791
|
const filteredProperties = properties.filter(({ groupId, schema, name }) => groupId === this.group.id && !schema.hidden && editablePropertyNames.includes(name));
|
|
1792
1792
|
return filteredProperties.map((prop) => new AXPEntityMasterSingleElementViewModel(this.entity, this, prop));
|
|
1793
|
-
});
|
|
1793
|
+
}, ...(ngDevMode ? [{ debugName: "editableProps" }] : []));
|
|
1794
1794
|
this.editable = computed(() => {
|
|
1795
1795
|
return this.editableProps().length > 0;
|
|
1796
|
-
});
|
|
1796
|
+
}, ...(ngDevMode ? [{ debugName: "editable" }] : []));
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
1799
|
class AXPEntityMasterSingleElementViewModel {
|
|
@@ -1802,17 +1802,17 @@ class AXPEntityMasterSingleElementViewModel {
|
|
|
1802
1802
|
this.section = section;
|
|
1803
1803
|
this.propertyView = propertyView;
|
|
1804
1804
|
this.property = this.entity.properties.find((c) => c.name == this.propertyView.name);
|
|
1805
|
-
this.name = signal(this.property.name);
|
|
1806
|
-
this.path = signal(this.propertyView.dataPath ?? this.property.name);
|
|
1807
|
-
this.title = signal(this.property.title);
|
|
1808
|
-
this.showLabel = signal(this.propertyView.layout?.label?.visible != false);
|
|
1809
|
-
this.description = signal(this.property.description);
|
|
1805
|
+
this.name = signal(this.property.name, ...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
1806
|
+
this.path = signal(this.propertyView.dataPath ?? this.property.name, ...(ngDevMode ? [{ debugName: "path" }] : []));
|
|
1807
|
+
this.title = signal(this.property.title, ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
1808
|
+
this.showLabel = signal(this.propertyView.layout?.label?.visible != false, ...(ngDevMode ? [{ debugName: "showLabel" }] : []));
|
|
1809
|
+
this.description = signal(this.property.description, ...(ngDevMode ? [{ debugName: "description" }] : []));
|
|
1810
1810
|
this.layout = computed(() => {
|
|
1811
1811
|
const viewProp = this.entity.interfaces?.master?.single?.properties?.find((c) => c.name == this.property.name);
|
|
1812
1812
|
const source = cloneDeep(viewProp?.layout ?? {});
|
|
1813
1813
|
set(source, 'positions.default.colSpan', 12);
|
|
1814
1814
|
return source;
|
|
1815
|
-
});
|
|
1815
|
+
}, ...(ngDevMode ? [{ debugName: "layout" }] : []));
|
|
1816
1816
|
this.node = computed(() => {
|
|
1817
1817
|
const schema = this.property.schema;
|
|
1818
1818
|
const widget = schema.interface;
|
|
@@ -1825,7 +1825,7 @@ class AXPEntityMasterSingleElementViewModel {
|
|
|
1825
1825
|
valueTransforms: widget.valueTransforms,
|
|
1826
1826
|
options: merge(schema.interface?.options),
|
|
1827
1827
|
};
|
|
1828
|
-
});
|
|
1828
|
+
}, ...(ngDevMode ? [{ debugName: "node" }] : []));
|
|
1829
1829
|
}
|
|
1830
1830
|
}
|
|
1831
1831
|
class AXPEntityMasterSingleViewModel {
|
|
@@ -1841,23 +1841,23 @@ class AXPEntityMasterSingleViewModel {
|
|
|
1841
1841
|
this.destroyed = new Subject();
|
|
1842
1842
|
this.translateService = this.injector.get(AXTranslationService);
|
|
1843
1843
|
this.entityService = this.injector.get(AXPEntityService);
|
|
1844
|
-
this.context = signal(cloneDeep(this.entityData));
|
|
1844
|
+
this.context = signal(cloneDeep(this.entityData), ...(ngDevMode ? [{ debugName: "context" }] : []));
|
|
1845
1845
|
this.actions = computed(() => {
|
|
1846
1846
|
return (this.entityDef.interfaces?.master?.single?.actions?.map((tr) => new AXPEntityCommandTriggerViewModel(this.entityDef, tr)) ?? []);
|
|
1847
|
-
});
|
|
1847
|
+
}, ...(ngDevMode ? [{ debugName: "actions" }] : []));
|
|
1848
1848
|
this.primaryActions = computed(() => {
|
|
1849
1849
|
return this.actions().filter((c) => c.priority == 'primary');
|
|
1850
|
-
});
|
|
1850
|
+
}, ...(ngDevMode ? [{ debugName: "primaryActions" }] : []));
|
|
1851
1851
|
this.secondaryActions = computed(() => {
|
|
1852
1852
|
return this.actions().filter((c) => c.priority == 'secondary');
|
|
1853
|
-
});
|
|
1853
|
+
}, ...(ngDevMode ? [{ debugName: "secondaryActions" }] : []));
|
|
1854
1854
|
this.sections = computed(() => {
|
|
1855
1855
|
const { interfaces, properties } = this.entityDef;
|
|
1856
1856
|
const viewProps = interfaces?.master?.single?.properties?.map(({ name }) => name) ?? [];
|
|
1857
1857
|
const filteredProperties = properties.filter(({ groupId, schema, name }) => groupId && !schema.hidden && viewProps.includes(name));
|
|
1858
1858
|
const groups = interfaces?.master?.single?.sections?.filter(({ id }) => filteredProperties.some(({ groupId }) => groupId === id)) ?? [];
|
|
1859
1859
|
return groups.map((section) => new AXPEntityMasterSingleViewGroupViewModel(this.entityDef, section));
|
|
1860
|
-
});
|
|
1860
|
+
}, ...(ngDevMode ? [{ debugName: "sections" }] : []));
|
|
1861
1861
|
//****************** Title ******************//
|
|
1862
1862
|
this.title = computed(() => {
|
|
1863
1863
|
const suggestedProps = this.entityDef.properties.find((c) => ['title', 'name', 'code'].includes(c.name));
|
|
@@ -1865,13 +1865,13 @@ class AXPEntityMasterSingleViewModel {
|
|
|
1865
1865
|
if (suggestedProps)
|
|
1866
1866
|
suggestedFormat = `{{${suggestedProps.name}}}`;
|
|
1867
1867
|
return this.formatService.format(this._viewDef.title ?? suggestedFormat, 'string', this.context());
|
|
1868
|
-
});
|
|
1868
|
+
}, ...(ngDevMode ? [{ debugName: "title" }] : []));
|
|
1869
1869
|
//****************** Description ******************//
|
|
1870
1870
|
this.description = computed(() => {
|
|
1871
1871
|
return this._viewDef.description
|
|
1872
1872
|
? this.formatService.format(this._viewDef.description, 'string', this.context())
|
|
1873
1873
|
: null;
|
|
1874
|
-
});
|
|
1874
|
+
}, ...(ngDevMode ? [{ debugName: "description" }] : []));
|
|
1875
1875
|
//****************** Beardcrumbs ******************//
|
|
1876
1876
|
this.beardcrumbs = computed(() => {
|
|
1877
1877
|
return [
|
|
@@ -1888,12 +1888,12 @@ class AXPEntityMasterSingleViewModel {
|
|
|
1888
1888
|
title: this.title(),
|
|
1889
1889
|
},
|
|
1890
1890
|
];
|
|
1891
|
-
});
|
|
1891
|
+
}, ...(ngDevMode ? [{ debugName: "beardcrumbs" }] : []));
|
|
1892
1892
|
this.relatedEntities = computed(async () => {
|
|
1893
1893
|
const relatedEntities = this.entityDef.relatedEntities?.map((re) => new AXPEntityDetailListViewModel(this.injector, re, { entity: this.entityDef, data: this.entityData })) ?? [];
|
|
1894
1894
|
const filteredEntities = await Promise.all(relatedEntities.map(async (re) => ((await re.hidden()) ? null : re)));
|
|
1895
1895
|
return filteredEntities.filter((re) => re !== null);
|
|
1896
|
-
});
|
|
1896
|
+
}, ...(ngDevMode ? [{ debugName: "relatedEntities" }] : []));
|
|
1897
1897
|
this.workflow.events$
|
|
1898
1898
|
.pipe(ofType(AXPEntityDeletedEvent))
|
|
1899
1899
|
.pipe(takeUntil(this.destroyed))
|
|
@@ -1984,10 +1984,10 @@ class AXPEntityDetailViewModelFactory {
|
|
|
1984
1984
|
this.layout.setNavigationLoading(false);
|
|
1985
1985
|
return Promise.reject('cannot fetch ');
|
|
1986
1986
|
}
|
|
1987
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1988
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
1987
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityDetailViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1988
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityDetailViewModelFactory, providedIn: 'root' }); }
|
|
1989
1989
|
}
|
|
1990
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1990
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityDetailViewModelFactory, decorators: [{
|
|
1991
1991
|
type: Injectable,
|
|
1992
1992
|
args: [{ providedIn: 'root' }]
|
|
1993
1993
|
}] });
|
|
@@ -2165,21 +2165,21 @@ class AXPLookupWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
2165
2165
|
super(...arguments);
|
|
2166
2166
|
this.formatService = inject(AXFormatService);
|
|
2167
2167
|
this.entityResolver = inject(AXPEntityResolver);
|
|
2168
|
-
this.entity = computed(() => this.options()['entity']);
|
|
2169
|
-
this.multiple = computed(() => this.options()['multiple']);
|
|
2170
|
-
this.valueField = computed(() => this.options()['valueField'] ?? 'id');
|
|
2171
|
-
this.textField = computed(() => this.options()['textField'] ?? 'title');
|
|
2172
|
-
this.badgeClass = computed(() => this.options()['badgeClass'] ?? 'ax-accent1');
|
|
2168
|
+
this.entity = computed(() => this.options()['entity'], ...(ngDevMode ? [{ debugName: "entity" }] : []));
|
|
2169
|
+
this.multiple = computed(() => this.options()['multiple'], ...(ngDevMode ? [{ debugName: "multiple" }] : []));
|
|
2170
|
+
this.valueField = computed(() => this.options()['valueField'] ?? 'id', ...(ngDevMode ? [{ debugName: "valueField" }] : []));
|
|
2171
|
+
this.textField = computed(() => this.options()['textField'] ?? 'title', ...(ngDevMode ? [{ debugName: "textField" }] : []));
|
|
2172
|
+
this.badgeClass = computed(() => this.options()['badgeClass'] ?? 'ax-accent1', ...(ngDevMode ? [{ debugName: "badgeClass" }] : []));
|
|
2173
2173
|
this.displayField = computed(() => {
|
|
2174
2174
|
return this.textField() ?? this.entityDef()?.formats.lookup ?? this.entityDef()?.properties.find((c) => c.name != 'id')?.name ?? 'title';
|
|
2175
|
-
});
|
|
2176
|
-
this.loading = signal(false);
|
|
2177
|
-
this.entityDef = signal(null);
|
|
2178
|
-
this.displayItems = signal([]);
|
|
2175
|
+
}, ...(ngDevMode ? [{ debugName: "displayField" }] : []));
|
|
2176
|
+
this.loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
2177
|
+
this.entityDef = signal(null, ...(ngDevMode ? [{ debugName: "entityDef" }] : []));
|
|
2178
|
+
this.displayItems = signal([], ...(ngDevMode ? [{ debugName: "displayItems" }] : []));
|
|
2179
2179
|
this.efEntity = effect(async () => {
|
|
2180
2180
|
const [module, entity] = this.entity().split('.');
|
|
2181
2181
|
this.entityDef.set(await this.entityResolver.get(module, entity));
|
|
2182
|
-
});
|
|
2182
|
+
}, ...(ngDevMode ? [{ debugName: "efEntity" }] : []));
|
|
2183
2183
|
this.efDisplay = effect(async () => {
|
|
2184
2184
|
const value = this.getValue();
|
|
2185
2185
|
if (isNil(value)) {
|
|
@@ -2189,7 +2189,7 @@ class AXPLookupWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
2189
2189
|
const items = castArray(value).map(async (item) => await this.extractItem(item));
|
|
2190
2190
|
this.displayItems.set(await Promise.all(items));
|
|
2191
2191
|
}
|
|
2192
|
-
});
|
|
2192
|
+
}, ...(ngDevMode ? [{ debugName: "efDisplay" }] : []));
|
|
2193
2193
|
}
|
|
2194
2194
|
async extractItem(item) {
|
|
2195
2195
|
if (typeof item == 'object') {
|
|
@@ -2222,8 +2222,8 @@ class AXPLookupWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
2222
2222
|
cls[`ax-gap-1`] = true;
|
|
2223
2223
|
return cls;
|
|
2224
2224
|
}
|
|
2225
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2226
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
2225
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPLookupWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2226
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: AXPLookupWidgetViewComponent, isStandalone: true, selector: "axp-lookup-widget-view", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
|
|
2227
2227
|
@if(loading())
|
|
2228
2228
|
{
|
|
2229
2229
|
<ax-loading></ax-loading>
|
|
@@ -2243,7 +2243,7 @@ class AXPLookupWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
2243
2243
|
}
|
|
2244
2244
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i1$1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2245
2245
|
}
|
|
2246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPLookupWidgetViewComponent, decorators: [{
|
|
2247
2247
|
type: Component,
|
|
2248
2248
|
args: [{
|
|
2249
2249
|
selector: 'axp-lookup-widget-view',
|
|
@@ -2282,10 +2282,10 @@ var lookupWidgetView_component = /*#__PURE__*/Object.freeze({
|
|
|
2282
2282
|
class AXPLookupWidgetSelectorComponent extends AXBasePageComponent {
|
|
2283
2283
|
constructor() {
|
|
2284
2284
|
super(...arguments);
|
|
2285
|
-
this.grid = viewChild('grid');
|
|
2285
|
+
this.grid = viewChild('grid', ...(ngDevMode ? [{ debugName: "grid" }] : []));
|
|
2286
2286
|
this.initialSelectedItems = [];
|
|
2287
|
-
this.selectedItems = signal([]);
|
|
2288
|
-
this.allowSelect = computed(() => this.selectedItems().length > 0);
|
|
2287
|
+
this.selectedItems = signal([], ...(ngDevMode ? [{ debugName: "selectedItems" }] : []));
|
|
2288
|
+
this.allowSelect = computed(() => this.selectedItems().length > 0, ...(ngDevMode ? [{ debugName: "allowSelect" }] : []));
|
|
2289
2289
|
}
|
|
2290
2290
|
ngAfterViewInit() {
|
|
2291
2291
|
if (this.initialSelectedItems.length > 0 && this.grid()) {
|
|
@@ -2339,8 +2339,8 @@ class AXPLookupWidgetSelectorComponent extends AXBasePageComponent {
|
|
|
2339
2339
|
handleSelectClick() {
|
|
2340
2340
|
this.close({ items: this.selectedItems() });
|
|
2341
2341
|
}
|
|
2342
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2343
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
2342
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPLookupWidgetSelectorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2343
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: AXPLookupWidgetSelectorComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "grid", first: true, predicate: ["grid"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
2344
2344
|
<div class="ax-p-4 ax-flex ax-flex-col ax-gap-4 ax-overflow-hidden">
|
|
2345
2345
|
@if (vm.hasInlineFilters()) {
|
|
2346
2346
|
<div class="ax-w-full">
|
|
@@ -2405,9 +2405,9 @@ class AXPLookupWidgetSelectorComponent extends AXBasePageComponent {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
</ax-suffix>
|
|
2407
2407
|
</ax-footer>
|
|
2408
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "
|
|
2408
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXCommonModule }, { kind: "directive", type: i1$2.AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: ["axAutoFocus", "axAutoFocusTime"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "ngmodule", type: AXDataTableModule }, { kind: "component", type: i4.AXDataTableComponent, selector: "ax-data-table", inputs: ["dataSource", "selectedRows", "parentField", "rowTemplate", "emptyTemplate", "noDataTemplate", "alternative", "showHeader", "fixedHeader", "showFooter", "fixedFooter", "itemHeight", "allowReordering", "paging", "fetchDataMode", "loading", "focusedRow"], outputs: ["selectedRowsChange", "focusedRowChange", "onRowClick", "onRowDbClick", "onColumnsOrderChanged", "onColumnSizeChanged", "onPageChanged"] }, { kind: "component", type: i4.AXRowSelectColumnComponent, selector: "ax-select-column", inputs: ["width", "caption", "fixed"] }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i5.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "component", type: i6.AXPWidgetColumnRendererComponent, selector: "axp-widget-column-renderer", inputs: ["caption", "customExpandIcon", "customCollapseIcon", "customWidth", "node", "footerTemplate", "expandHandler", "cellTemplate", "headerTemplate"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i7.AsyncPipe, name: "async" }, { kind: "pipe", type: i8.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2409
2409
|
}
|
|
2410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2410
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPLookupWidgetSelectorComponent, decorators: [{
|
|
2411
2411
|
type: Component,
|
|
2412
2412
|
args: [{
|
|
2413
2413
|
template: `
|
|
@@ -2519,19 +2519,19 @@ class AXPLookupWidgetSelectorViewModel {
|
|
|
2519
2519
|
});
|
|
2520
2520
|
this.canCreate = computed(() => {
|
|
2521
2521
|
return this.entityDef.commands?.create?.execute != null;
|
|
2522
|
-
});
|
|
2522
|
+
}, ...(ngDevMode ? [{ debugName: "canCreate" }] : []));
|
|
2523
2523
|
this.parentKey = computed(() => {
|
|
2524
2524
|
return this.entityDef.parentKey;
|
|
2525
|
-
});
|
|
2525
|
+
}, ...(ngDevMode ? [{ debugName: "parentKey" }] : []));
|
|
2526
2526
|
this.allowMultiple = computed(() => {
|
|
2527
2527
|
return this.options.allowMultiple ?? false;
|
|
2528
|
-
});
|
|
2528
|
+
}, ...(ngDevMode ? [{ debugName: "allowMultiple" }] : []));
|
|
2529
2529
|
this.inlineFiltersPlaceholders = computed(() => {
|
|
2530
2530
|
return (this.entityDef?.properties.filter((p) => p.options?.filter?.inline?.enabled).map((c) => c.title ?? c.name) ?? []);
|
|
2531
|
-
});
|
|
2531
|
+
}, ...(ngDevMode ? [{ debugName: "inlineFiltersPlaceholders" }] : []));
|
|
2532
2532
|
this.hasInlineFilters = computed(() => {
|
|
2533
2533
|
return this.inlineFiltersPlaceholders().length > 0;
|
|
2534
|
-
});
|
|
2534
|
+
}, ...(ngDevMode ? [{ debugName: "hasInlineFilters" }] : []));
|
|
2535
2535
|
this.columns = () => {
|
|
2536
2536
|
const listColumns = this.entityDef.columns ?? [];
|
|
2537
2537
|
const columns = listColumns?.map((c) => c.name) ?? [];
|
|
@@ -2627,29 +2627,29 @@ class AXPLookupWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2627
2627
|
this.formatService = inject(AXFormatService);
|
|
2628
2628
|
this.popupService = inject(AXPopupService);
|
|
2629
2629
|
this.translateService = inject(AXTranslationService);
|
|
2630
|
-
this.expose = computed(() => this.options()['expose']);
|
|
2631
|
-
this.entity = computed(() => this.options()['entity']);
|
|
2632
|
-
this.disabled = computed(() => this.options()['disabled']);
|
|
2633
|
-
this.columns = computed(() => this.options()['columns'] ?? []);
|
|
2634
|
-
this.customFilter = computed(() => this.options()['filter']);
|
|
2635
|
-
this.multiple = computed(() => (this.options()['multiple'] ?? false));
|
|
2636
|
-
this.look = computed(() => this.options()['look'] ?? 'lookup');
|
|
2630
|
+
this.expose = computed(() => this.options()['expose'], ...(ngDevMode ? [{ debugName: "expose" }] : []));
|
|
2631
|
+
this.entity = computed(() => this.options()['entity'], ...(ngDevMode ? [{ debugName: "entity" }] : []));
|
|
2632
|
+
this.disabled = computed(() => this.options()['disabled'], ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
2633
|
+
this.columns = computed(() => this.options()['columns'] ?? [], ...(ngDevMode ? [{ debugName: "columns" }] : []));
|
|
2634
|
+
this.customFilter = computed(() => this.options()['filter'], ...(ngDevMode ? [{ debugName: "customFilter" }] : []));
|
|
2635
|
+
this.multiple = computed(() => (this.options()['multiple'] ?? false), ...(ngDevMode ? [{ debugName: "multiple" }] : []));
|
|
2636
|
+
this.look = computed(() => this.options()['look'] ?? 'lookup', ...(ngDevMode ? [{ debugName: "look" }] : []));
|
|
2637
2637
|
this.textField = computed(() => {
|
|
2638
2638
|
return (this.entityDef()?.formats.lookup ?? this.entityDef()?.properties.find((c) => c.name != 'id')?.name ?? 'title');
|
|
2639
|
-
});
|
|
2640
|
-
this.valueField = computed(() => this.entityDef()?.properties.find((c) => c.name == 'id')?.name ?? 'id');
|
|
2641
|
-
this.entityDef = signal(null);
|
|
2642
|
-
this.searchTerm = signal(null);
|
|
2643
|
-
this.selectedItems = signal([]);
|
|
2644
|
-
this.textbox = viewChild(AXTagBoxComponent);
|
|
2645
|
-
this.isLoading = signal(false);
|
|
2646
|
-
this.isOpen = signal(false);
|
|
2647
|
-
this.vm = signal(null);
|
|
2639
|
+
}, ...(ngDevMode ? [{ debugName: "textField" }] : []));
|
|
2640
|
+
this.valueField = computed(() => this.entityDef()?.properties.find((c) => c.name == 'id')?.name ?? 'id', ...(ngDevMode ? [{ debugName: "valueField" }] : []));
|
|
2641
|
+
this.entityDef = signal(null, ...(ngDevMode ? [{ debugName: "entityDef" }] : []));
|
|
2642
|
+
this.searchTerm = signal(null, ...(ngDevMode ? [{ debugName: "searchTerm" }] : []));
|
|
2643
|
+
this.selectedItems = signal([], ...(ngDevMode ? [{ debugName: "selectedItems" }] : []));
|
|
2644
|
+
this.textbox = viewChild(AXTagBoxComponent, ...(ngDevMode ? [{ debugName: "textbox" }] : []));
|
|
2645
|
+
this.isLoading = signal(false, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
|
|
2646
|
+
this.isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
2647
|
+
this.vm = signal(null, ...(ngDevMode ? [{ debugName: "vm" }] : []));
|
|
2648
2648
|
this.placeholder = computed(() => {
|
|
2649
2649
|
return this.selectedItems().length
|
|
2650
2650
|
? ''
|
|
2651
2651
|
: this.translateService.translateSync('widget.lookup.search') + this.vm()?.inlineFiltersPlaceholders().join(', ');
|
|
2652
|
-
});
|
|
2652
|
+
}, ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
2653
2653
|
this.#efEntity = effect(async () => {
|
|
2654
2654
|
const [module, entity] = this.entity().split('.');
|
|
2655
2655
|
this.entityDef.set(await this.entityResolver.get(module, entity));
|
|
@@ -2657,12 +2657,12 @@ class AXPLookupWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2657
2657
|
parentFilters: this.filter,
|
|
2658
2658
|
allowMultiple: this.multiple(),
|
|
2659
2659
|
}));
|
|
2660
|
-
});
|
|
2660
|
+
}, ...(ngDevMode ? [{ debugName: "#efEntity" }] : []));
|
|
2661
2661
|
this.#efValue = effect(() => {
|
|
2662
2662
|
if (this.getValue()) {
|
|
2663
2663
|
this.findByValue();
|
|
2664
2664
|
}
|
|
2665
|
-
});
|
|
2665
|
+
}, ...(ngDevMode ? [{ debugName: "#efValue" }] : []));
|
|
2666
2666
|
}
|
|
2667
2667
|
#efEntity;
|
|
2668
2668
|
#efValue;
|
|
@@ -2809,8 +2809,8 @@ class AXPLookupWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2809
2809
|
singleOrMultiple(values) {
|
|
2810
2810
|
return this.multiple() ? values : values[0];
|
|
2811
2811
|
}
|
|
2812
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2813
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
2812
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPLookupWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2813
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: AXPLookupWidgetEditComponent, isStandalone: true, selector: "axp-lookup-widget-edit", viewQueries: [{ propertyName: "textbox", first: true, predicate: AXTagBoxComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
2814
2814
|
@if (look() == 'select') {
|
|
2815
2815
|
<ax-select-box
|
|
2816
2816
|
[dataSource]="vm()?.dataSource!"
|
|
@@ -2859,11 +2859,11 @@ class AXPLookupWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
2859
2859
|
</ax-suffix>
|
|
2860
2860
|
</ax-tag-box>
|
|
2861
2861
|
}
|
|
2862
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "
|
|
2862
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type:
|
|
2863
2863
|
//
|
|
2864
|
-
AXButtonModule }, { kind: "component", type:
|
|
2864
|
+
AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i1.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i5$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXTagBoxModule }, { kind: "component", type: i6$1.AXTagBoxComponent, selector: "ax-tag-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "allowNull", "type", "look", "addOnComma", "addOnEnter", "valueField", "textField", "readonlyField", "allowDuplicateValues"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i7$1.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "component", type: AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "pipe", type: i7.AsyncPipe, name: "async" }, { kind: "pipe", type: i8.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2865
2865
|
}
|
|
2866
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2866
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPLookupWidgetEditComponent, decorators: [{
|
|
2867
2867
|
type: Component,
|
|
2868
2868
|
args: [{
|
|
2869
2869
|
selector: 'axp-lookup-widget-edit',
|
|
@@ -2948,7 +2948,7 @@ class AXPLookupWidgetColumnComponent extends AXPColumnWidgetComponent {
|
|
|
2948
2948
|
this.badgeClass = this.options['badgeClass'] ?? 'ax-accent1';
|
|
2949
2949
|
this.displayItems = computed(() => isNil(this.rawValue)
|
|
2950
2950
|
? []
|
|
2951
|
-
: castArray(this.rawValue).map((item) => this.extractItem(item)));
|
|
2951
|
+
: castArray(this.rawValue).map((item) => this.extractItem(item)), ...(ngDevMode ? [{ debugName: "displayItems" }] : []));
|
|
2952
2952
|
}
|
|
2953
2953
|
extractItem(item) {
|
|
2954
2954
|
return typeof item == 'object'
|
|
@@ -2961,8 +2961,8 @@ class AXPLookupWidgetColumnComponent extends AXPColumnWidgetComponent {
|
|
|
2961
2961
|
[this.textField]: item,
|
|
2962
2962
|
};
|
|
2963
2963
|
}
|
|
2964
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2965
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
2964
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPLookupWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2965
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: AXPLookupWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue", rowData: "rowData" }, usesInheritance: true, ngImport: i0, template: `
|
|
2966
2966
|
<div class="ax-flex ax-gap-1">
|
|
2967
2967
|
@for (item of displayItems(); track $index) {
|
|
2968
2968
|
<ax-badge [text]="item[this.textField]" [class]="badgeClass"></ax-badge>
|
|
@@ -2973,7 +2973,7 @@ class AXPLookupWidgetColumnComponent extends AXPColumnWidgetComponent {
|
|
|
2973
2973
|
</div>
|
|
2974
2974
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i1$1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2975
2975
|
}
|
|
2976
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2976
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPLookupWidgetColumnComponent, decorators: [{
|
|
2977
2977
|
type: Component,
|
|
2978
2978
|
args: [{
|
|
2979
2979
|
template: `
|
|
@@ -3056,11 +3056,11 @@ const AXPLookupWidget = {
|
|
|
3056
3056
|
class AXPTagableBoxWidgetColumnComponent extends AXPValueWidgetComponent {
|
|
3057
3057
|
constructor() {
|
|
3058
3058
|
super(...arguments);
|
|
3059
|
-
this.internalValue = computed(() => (Array.isArray(this.getValue()) ? this.getValue() : [this.getValue()]));
|
|
3060
|
-
this.multiple = computed(() => this.options()['multiple']);
|
|
3059
|
+
this.internalValue = computed(() => (Array.isArray(this.getValue()) ? this.getValue() : [this.getValue()]), ...(ngDevMode ? [{ debugName: "internalValue" }] : []));
|
|
3060
|
+
this.multiple = computed(() => this.options()['multiple'], ...(ngDevMode ? [{ debugName: "multiple" }] : []));
|
|
3061
3061
|
// ویژگیهای مرتبط با SelectBox
|
|
3062
|
-
this.useSelectBox = computed(() => this.options()['useSelectBox']);
|
|
3063
|
-
this.textField = computed(() => this.options()['textField'] ?? 'title');
|
|
3062
|
+
this.useSelectBox = computed(() => this.options()['useSelectBox'], ...(ngDevMode ? [{ debugName: "useSelectBox" }] : []));
|
|
3063
|
+
this.textField = computed(() => this.options()['textField'] ?? 'title', ...(ngDevMode ? [{ debugName: "textField" }] : []));
|
|
3064
3064
|
// استخراج دادهها برای نمایش
|
|
3065
3065
|
this.getData = computed(() => {
|
|
3066
3066
|
if (!this.useSelectBox()) {
|
|
@@ -3071,10 +3071,10 @@ class AXPTagableBoxWidgetColumnComponent extends AXPValueWidgetComponent {
|
|
|
3071
3071
|
return [];
|
|
3072
3072
|
}
|
|
3073
3073
|
return Array.isArray(value) ? value : [value];
|
|
3074
|
-
});
|
|
3074
|
+
}, ...(ngDevMode ? [{ debugName: "getData" }] : []));
|
|
3075
3075
|
}
|
|
3076
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3077
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
3076
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPTagableBoxWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3077
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: AXPTagableBoxWidgetColumnComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
3078
3078
|
<div class="ax-flex ax-gap-1 ax-flex-wrap">
|
|
3079
3079
|
@if (useSelectBox() && getData().length > 0) { @for (item of getData(); track $index) {
|
|
3080
3080
|
<ax-badge [look]="'twotone'" [text]="item[textField()]" color="primary"></ax-badge>
|
|
@@ -3086,7 +3086,7 @@ class AXPTagableBoxWidgetColumnComponent extends AXPValueWidgetComponent {
|
|
|
3086
3086
|
</div>
|
|
3087
3087
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i1$1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3088
3088
|
}
|
|
3089
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3089
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPTagableBoxWidgetColumnComponent, decorators: [{
|
|
3090
3090
|
type: Component,
|
|
3091
3091
|
args: [{
|
|
3092
3092
|
template: `
|
|
@@ -3115,13 +3115,13 @@ class AXPTagableBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
3115
3115
|
constructor() {
|
|
3116
3116
|
super(...arguments);
|
|
3117
3117
|
this.entityResolver = inject(AXPEntityResolver);
|
|
3118
|
-
this.hasClearButton = computed(() => this.options()['hasClearButton']);
|
|
3119
|
-
this.disabled = computed(() => this.options()['disabled']);
|
|
3120
|
-
this.placeholder = computed(() => this.options()['placeholder']);
|
|
3118
|
+
this.hasClearButton = computed(() => this.options()['hasClearButton'], ...(ngDevMode ? [{ debugName: "hasClearButton" }] : []));
|
|
3119
|
+
this.disabled = computed(() => this.options()['disabled'], ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
3120
|
+
this.placeholder = computed(() => this.options()['placeholder'], ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
3121
3121
|
// پارامترهای SelectBox
|
|
3122
|
-
this.moduleName = computed(() => this.options()['module']);
|
|
3123
|
-
this.entityName = computed(() => this.options()['entity']);
|
|
3124
|
-
this.allowSearch = computed(() => this.options()['allowSearch']);
|
|
3122
|
+
this.moduleName = computed(() => this.options()['module'], ...(ngDevMode ? [{ debugName: "moduleName" }] : []));
|
|
3123
|
+
this.entityName = computed(() => this.options()['entity'], ...(ngDevMode ? [{ debugName: "entityName" }] : []));
|
|
3124
|
+
this.allowSearch = computed(() => this.options()['allowSearch'], ...(ngDevMode ? [{ debugName: "allowSearch" }] : []));
|
|
3125
3125
|
// منبع داده برای SelectBox
|
|
3126
3126
|
this._dataSource = new AXDataSource({
|
|
3127
3127
|
load: async (e) => {
|
|
@@ -3149,8 +3149,8 @@ class AXPTagableBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
3149
3149
|
cls[`ax-flex-1`] = true;
|
|
3150
3150
|
return cls;
|
|
3151
3151
|
}
|
|
3152
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3153
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
3152
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPTagableBoxWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3153
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: AXPTagableBoxWidgetEditComponent, isStandalone: true, selector: "axp-tagable-box-widget", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
|
|
3154
3154
|
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
3155
3155
|
<!-- نمایش Select Box با دکمه اضافه کردن آیتم -->
|
|
3156
3156
|
<ax-select-box
|
|
@@ -3189,9 +3189,9 @@ class AXPTagableBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
3189
3189
|
</ax-prefix>
|
|
3190
3190
|
</ax-button>
|
|
3191
3191
|
</div>
|
|
3192
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type:
|
|
3192
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i5$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i7$1.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed"] }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i5.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3193
3193
|
}
|
|
3194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPTagableBoxWidgetEditComponent, decorators: [{
|
|
3195
3195
|
type: Component,
|
|
3196
3196
|
args: [{
|
|
3197
3197
|
selector: 'axp-tagable-box-widget',
|
|
@@ -3259,10 +3259,10 @@ var tagableBoxWidgetEdit_component = /*#__PURE__*/Object.freeze({
|
|
|
3259
3259
|
});
|
|
3260
3260
|
|
|
3261
3261
|
class AXPTagableBoxWidgetFilterComponent extends AXPValueWidgetComponent {
|
|
3262
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3263
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
3262
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPTagableBoxWidgetFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3263
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: AXPTagableBoxWidgetFilterComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3264
3264
|
}
|
|
3265
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPTagableBoxWidgetFilterComponent, decorators: [{
|
|
3266
3266
|
type: Component,
|
|
3267
3267
|
args: [{
|
|
3268
3268
|
template: ``,
|
|
@@ -3280,11 +3280,11 @@ var tagableBoxWidgetFilter_component = /*#__PURE__*/Object.freeze({
|
|
|
3280
3280
|
class AXPTagableBoxWidgetPrintComponent extends AXPValueWidgetComponent {
|
|
3281
3281
|
constructor() {
|
|
3282
3282
|
super(...arguments);
|
|
3283
|
-
this.internalValue = computed(() => (Array.isArray(this.getValue()) ? this.getValue() : [this.getValue()]));
|
|
3284
|
-
this.multiple = computed(() => this.options()['multiple']);
|
|
3283
|
+
this.internalValue = computed(() => (Array.isArray(this.getValue()) ? this.getValue() : [this.getValue()]), ...(ngDevMode ? [{ debugName: "internalValue" }] : []));
|
|
3284
|
+
this.multiple = computed(() => this.options()['multiple'], ...(ngDevMode ? [{ debugName: "multiple" }] : []));
|
|
3285
3285
|
// ویژگیهای مرتبط با SelectBox
|
|
3286
|
-
this.useSelectBox = computed(() => this.options()['useSelectBox']);
|
|
3287
|
-
this.textField = computed(() => this.options()['textField'] ?? 'title');
|
|
3286
|
+
this.useSelectBox = computed(() => this.options()['useSelectBox'], ...(ngDevMode ? [{ debugName: "useSelectBox" }] : []));
|
|
3287
|
+
this.textField = computed(() => this.options()['textField'] ?? 'title', ...(ngDevMode ? [{ debugName: "textField" }] : []));
|
|
3288
3288
|
// استخراج دادهها برای نمایش
|
|
3289
3289
|
this.getData = computed(() => {
|
|
3290
3290
|
if (!this.useSelectBox()) {
|
|
@@ -3295,10 +3295,10 @@ class AXPTagableBoxWidgetPrintComponent extends AXPValueWidgetComponent {
|
|
|
3295
3295
|
return [];
|
|
3296
3296
|
}
|
|
3297
3297
|
return Array.isArray(value) ? value : [value];
|
|
3298
|
-
});
|
|
3298
|
+
}, ...(ngDevMode ? [{ debugName: "getData" }] : []));
|
|
3299
3299
|
}
|
|
3300
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3301
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
3300
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPTagableBoxWidgetPrintComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3301
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: AXPTagableBoxWidgetPrintComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
3302
3302
|
<div>
|
|
3303
3303
|
@if (useSelectBox() && getData().length > 0) { @for (item of getData(); track $index) {
|
|
3304
3304
|
<span class="ax-bg-slate-100 ax-px-2 ax-py-1 ax-rounded ax-mr-2 ax-mb-2 ax-inline-block">{{
|
|
@@ -3314,7 +3314,7 @@ class AXPTagableBoxWidgetPrintComponent extends AXPValueWidgetComponent {
|
|
|
3314
3314
|
</div>
|
|
3315
3315
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3316
3316
|
}
|
|
3317
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPTagableBoxWidgetPrintComponent, decorators: [{
|
|
3318
3318
|
type: Component,
|
|
3319
3319
|
args: [{
|
|
3320
3320
|
template: `
|
|
@@ -3346,11 +3346,11 @@ var tagableBoxWidgetPrint_component = /*#__PURE__*/Object.freeze({
|
|
|
3346
3346
|
class AXPTagableBoxWidgetViewComponent extends AXPValueWidgetComponent {
|
|
3347
3347
|
constructor() {
|
|
3348
3348
|
super(...arguments);
|
|
3349
|
-
this.internalValue = computed(() => (Array.isArray(this.getValue()) ? this.getValue() : [this.getValue()]));
|
|
3350
|
-
this.multiple = computed(() => this.options()['multiple']);
|
|
3349
|
+
this.internalValue = computed(() => (Array.isArray(this.getValue()) ? this.getValue() : [this.getValue()]), ...(ngDevMode ? [{ debugName: "internalValue" }] : []));
|
|
3350
|
+
this.multiple = computed(() => this.options()['multiple'], ...(ngDevMode ? [{ debugName: "multiple" }] : []));
|
|
3351
3351
|
// ویژگیهای مرتبط با SelectBox
|
|
3352
|
-
this.useSelectBox = computed(() => this.options()['useSelectBox']);
|
|
3353
|
-
this.textField = computed(() => this.options()['textField'] ?? 'title');
|
|
3352
|
+
this.useSelectBox = computed(() => this.options()['useSelectBox'], ...(ngDevMode ? [{ debugName: "useSelectBox" }] : []));
|
|
3353
|
+
this.textField = computed(() => this.options()['textField'] ?? 'title', ...(ngDevMode ? [{ debugName: "textField" }] : []));
|
|
3354
3354
|
// استخراج دادهها برای نمایش
|
|
3355
3355
|
this.getData = computed(() => {
|
|
3356
3356
|
if (!this.useSelectBox()) {
|
|
@@ -3361,16 +3361,16 @@ class AXPTagableBoxWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
3361
3361
|
return [];
|
|
3362
3362
|
}
|
|
3363
3363
|
return Array.isArray(value) ? value : [value];
|
|
3364
|
-
});
|
|
3364
|
+
}, ...(ngDevMode ? [{ debugName: "getData" }] : []));
|
|
3365
3365
|
}
|
|
3366
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3367
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
3366
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPTagableBoxWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3367
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: AXPTagableBoxWidgetViewComponent, isStandalone: true, selector: "axp-tagable-box-widget", usesInheritance: true, ngImport: i0, template: `
|
|
3368
3368
|
@for (item of internalValue(); track $index) {
|
|
3369
3369
|
<ax-badge [look]="'twotone'" [text]="item" color="primary"></ax-badge>
|
|
3370
3370
|
}
|
|
3371
3371
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i1$1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3372
3372
|
}
|
|
3373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPTagableBoxWidgetViewComponent, decorators: [{
|
|
3374
3374
|
type: Component,
|
|
3375
3375
|
args: [{
|
|
3376
3376
|
selector: 'axp-tagable-box-widget',
|
|
@@ -3426,14 +3426,14 @@ class AXPWidgetSelectorWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
3426
3426
|
super(...arguments);
|
|
3427
3427
|
this.popupService = inject(AXPopupService);
|
|
3428
3428
|
this.widgetRegisteryService = inject(AXPWidgetRegistryService);
|
|
3429
|
-
this.searchTerm = signal(null);
|
|
3430
|
-
this.isOpen = signal(false);
|
|
3431
|
-
this.textField = signal('');
|
|
3432
|
-
this.displayText = computed(() => this.getValue()?.title || '');
|
|
3433
|
-
this.selectedWidgetNode = signal(null);
|
|
3434
|
-
this.selectedItem = signal(null);
|
|
3435
|
-
this.placeholder = computed(() => this.options()['placeholder'] ?? '');
|
|
3436
|
-
this.loading = computed(() => this.options()['loading'] ?? false);
|
|
3429
|
+
this.searchTerm = signal(null, ...(ngDevMode ? [{ debugName: "searchTerm" }] : []));
|
|
3430
|
+
this.isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
3431
|
+
this.textField = signal('', ...(ngDevMode ? [{ debugName: "textField" }] : []));
|
|
3432
|
+
this.displayText = computed(() => this.getValue()?.title || '', ...(ngDevMode ? [{ debugName: "displayText" }] : []));
|
|
3433
|
+
this.selectedWidgetNode = signal(null, ...(ngDevMode ? [{ debugName: "selectedWidgetNode" }] : []));
|
|
3434
|
+
this.selectedItem = signal(null, ...(ngDevMode ? [{ debugName: "selectedItem" }] : []));
|
|
3435
|
+
this.placeholder = computed(() => this.options()['placeholder'] ?? '', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
3436
|
+
this.loading = computed(() => this.options()['loading'] ?? false, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
3437
3437
|
}
|
|
3438
3438
|
ngAfterViewInit() {
|
|
3439
3439
|
if (this.getValue()) {
|
|
@@ -3465,8 +3465,8 @@ class AXPWidgetSelectorWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
3465
3465
|
const widget = this.widgetRegisteryService.resolve(e.values.type);
|
|
3466
3466
|
this.setValue({ title: widget?.title, ...e.values });
|
|
3467
3467
|
}
|
|
3468
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3469
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
3468
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPWidgetSelectorWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3469
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: AXPWidgetSelectorWidgetEditComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "textbox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
3470
3470
|
<ax-text-box [ngModel]="displayText()" [placeholder]="placeholder()" [readonly]="true">
|
|
3471
3471
|
@for (validation of validationRules(); track $index) {
|
|
3472
3472
|
<ax-validation-rule
|
|
@@ -3485,9 +3485,9 @@ class AXPWidgetSelectorWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
3485
3485
|
<axp-widget-property-viewer [widget]="selectedWidgetNode()!" (onChanged)="handleChangeWidget($event)">
|
|
3486
3486
|
</axp-widget-property-viewer>
|
|
3487
3487
|
}
|
|
3488
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i2$1.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type:
|
|
3488
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "component", type: i2$1.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXValidationModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "directive", type: i5$1.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message", "disabled"] }, { kind: "component", type: AXPWidgetPropertyViewerComponent, selector: "axp-widget-property-viewer", inputs: ["widget", "mode"], outputs: ["onChanged"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3489
3489
|
}
|
|
3490
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPWidgetSelectorWidgetEditComponent, decorators: [{
|
|
3491
3491
|
type: Component,
|
|
3492
3492
|
args: [{
|
|
3493
3493
|
template: `
|
|
@@ -3534,10 +3534,10 @@ var widgetSelectorWidgetEdit_component = /*#__PURE__*/Object.freeze({
|
|
|
3534
3534
|
});
|
|
3535
3535
|
|
|
3536
3536
|
class AXPWidgetSelectorWidgetViewComponent extends AXPValueWidgetComponent {
|
|
3537
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3538
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
3537
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPWidgetSelectorWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3538
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: AXPWidgetSelectorWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `{{ getValue()?.title }}`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3539
3539
|
}
|
|
3540
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPWidgetSelectorWidgetViewComponent, decorators: [{
|
|
3541
3541
|
type: Component,
|
|
3542
3542
|
args: [{
|
|
3543
3543
|
template: `{{ getValue()?.title }}`,
|
|
@@ -3614,10 +3614,10 @@ class AXPEntityCreatePopupAction extends AXPWorkflowAction {
|
|
|
3614
3614
|
}
|
|
3615
3615
|
}
|
|
3616
3616
|
}
|
|
3617
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3618
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
3617
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityCreatePopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3618
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityCreatePopupAction }); }
|
|
3619
3619
|
}
|
|
3620
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityCreatePopupAction, decorators: [{
|
|
3621
3621
|
type: Injectable
|
|
3622
3622
|
}] });
|
|
3623
3623
|
class AXPEntityCreateSubmittedAction extends AXPWorkflowAction {
|
|
@@ -3625,10 +3625,10 @@ class AXPEntityCreateSubmittedAction extends AXPWorkflowAction {
|
|
|
3625
3625
|
this.dispatch(AXPEntityCreateEvent({ entity: context.getVariable('entity'), meta: context.getVariable('meta') }));
|
|
3626
3626
|
this.dispatch(AXPRefreshEvent({ entity: context.getVariable('entity'), meta: context.getVariable('meta') }));
|
|
3627
3627
|
}
|
|
3628
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3629
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
3628
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityCreateSubmittedAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3629
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityCreateSubmittedAction }); }
|
|
3630
3630
|
}
|
|
3631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3631
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityCreateSubmittedAction, decorators: [{
|
|
3632
3632
|
type: Injectable
|
|
3633
3633
|
}] });
|
|
3634
3634
|
const AXPCreateEntityWorkflow = {
|
|
@@ -3718,10 +3718,10 @@ class AXPQuickEntityModifyPopupAction extends AXPWorkflowAction {
|
|
|
3718
3718
|
context.setVariable('data', cloneDeep(popup.data.context));
|
|
3719
3719
|
}
|
|
3720
3720
|
}
|
|
3721
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3722
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
3721
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPQuickEntityModifyPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3722
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPQuickEntityModifyPopupAction }); }
|
|
3723
3723
|
}
|
|
3724
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPQuickEntityModifyPopupAction, decorators: [{
|
|
3725
3725
|
type: Injectable
|
|
3726
3726
|
}] });
|
|
3727
3727
|
const AXPQuickModifyEntityWorkflow = {
|
|
@@ -3778,10 +3778,10 @@ class AXPEntityApplyUpdatesAction extends AXPWorkflowAction {
|
|
|
3778
3778
|
context.setOutput('error', error);
|
|
3779
3779
|
}
|
|
3780
3780
|
}
|
|
3781
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3782
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
3781
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityApplyUpdatesAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3782
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityApplyUpdatesAction }); }
|
|
3783
3783
|
}
|
|
3784
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3784
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityApplyUpdatesAction, decorators: [{
|
|
3785
3785
|
type: Injectable
|
|
3786
3786
|
}] });
|
|
3787
3787
|
|
|
@@ -3800,10 +3800,10 @@ class AXPShowDetailViewAction extends AXPWorkflowAction {
|
|
|
3800
3800
|
context.setVariable('payload', newPayload);
|
|
3801
3801
|
this.navigation.execute(context);
|
|
3802
3802
|
}
|
|
3803
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3804
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
3803
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPShowDetailViewAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3804
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPShowDetailViewAction }); }
|
|
3805
3805
|
}
|
|
3806
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPShowDetailViewAction, decorators: [{
|
|
3807
3807
|
type: Injectable
|
|
3808
3808
|
}] });
|
|
3809
3809
|
const AXPShowDetailsViewWorkflow = {
|
|
@@ -3854,10 +3854,10 @@ class AXPShowFileUploaderPopupAction extends AXPWorkflowAction {
|
|
|
3854
3854
|
context.setVariable('data', cloneDeep(entityData));
|
|
3855
3855
|
}
|
|
3856
3856
|
}
|
|
3857
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3858
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
3857
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPShowFileUploaderPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3858
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPShowFileUploaderPopupAction }); }
|
|
3859
3859
|
}
|
|
3860
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPShowFileUploaderPopupAction, decorators: [{
|
|
3861
3861
|
type: Injectable
|
|
3862
3862
|
}] });
|
|
3863
3863
|
const AXPShowFileUploaderPopupWorkflow = {
|
|
@@ -3908,10 +3908,10 @@ class AXPShowListViewAction extends AXPWorkflowAction {
|
|
|
3908
3908
|
context.setVariable('payload', newPayload);
|
|
3909
3909
|
this.navigation.execute(context);
|
|
3910
3910
|
}
|
|
3911
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3912
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
3911
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPShowListViewAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3912
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPShowListViewAction }); }
|
|
3913
3913
|
}
|
|
3914
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3914
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPShowListViewAction, decorators: [{
|
|
3915
3915
|
type: Injectable
|
|
3916
3916
|
}] });
|
|
3917
3917
|
const AXPShowListViewWorkflow = {
|
|
@@ -3986,9 +3986,9 @@ class AXPEntityModule {
|
|
|
3986
3986
|
},
|
|
3987
3987
|
});
|
|
3988
3988
|
}
|
|
3989
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3990
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
3991
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
3989
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityModule, deps: [{ token: i1$4.AXPAppStartUpService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3990
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityModule, imports: [RouterModule, i2$2.AXPWorkflowModule, i6.AXPLayoutBuilderModule] }); }
|
|
3991
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityModule, providers: [
|
|
3992
3992
|
{
|
|
3993
3993
|
provide: ROUTES,
|
|
3994
3994
|
multi: true,
|
|
@@ -4036,7 +4036,7 @@ class AXPEntityModule {
|
|
|
4036
4036
|
widgets: [AXPLookupWidget, AXPWidgetSelectorWidget, AXPTagableBoxWidget],
|
|
4037
4037
|
})] }); }
|
|
4038
4038
|
}
|
|
4039
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4039
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPEntityModule, decorators: [{
|
|
4040
4040
|
type: NgModule,
|
|
4041
4041
|
args: [{
|
|
4042
4042
|
imports: [
|