@acorex/platform 20.3.0-next.11 → 20.3.0-next.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/index.d.ts +399 -368
- package/core/index.d.ts +3 -2
- package/fesm2022/acorex-platform-auth.mjs +19 -19
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-common.mjs +114 -162
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +45 -44
- 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 +1231 -2418
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +1317 -254
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +81 -81
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-entity-create-entity.command-764ie8R8.mjs → acorex-platform-layout-entity-create-entity.command-CuueLekJ.mjs} +4 -4
- package/fesm2022/{acorex-platform-layout-entity-create-entity.command-764ie8R8.mjs.map → acorex-platform-layout-entity-create-entity.command-CuueLekJ.mjs.map} +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +471 -182
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +21 -21
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +2667 -0
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-DSaD9Fwc.mjs → acorex-platform-layout-widgets-button-widget-designer.component-C82aG5Rf.mjs} +5 -5
- package/fesm2022/acorex-platform-layout-widgets-button-widget-designer.component-C82aG5Rf.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-extra-properties-schema-widget-edit.component-D9mf08rU.mjs → acorex-platform-layout-widgets-extra-properties-schema-widget-edit.component-CMmz70I8.mjs} +5 -5
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-edit.component-CMmz70I8.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-extra-properties-schema-widget-view.component-D6GQ-eyr.mjs → acorex-platform-layout-widgets-extra-properties-schema-widget-view.component-DDOyf7NG.mjs} +5 -5
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-view.component-DDOyf7NG.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-extra-properties-values-widget-edit.component-DVbIdVZ6.mjs → acorex-platform-layout-widgets-extra-properties-values-widget-edit.component-flsveRJc.mjs} +5 -5
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-edit.component-flsveRJc.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-extra-properties-values-widget-view.component-D-aM64Hu.mjs → acorex-platform-layout-widgets-extra-properties-values-widget-view.component-CFXLM9Ls.mjs} +5 -5
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-view.component-CFXLM9Ls.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-extra-properties-widget-edit.component-em2-aU8E.mjs → acorex-platform-layout-widgets-extra-properties-widget-edit.component-1Wd5IUpo.mjs} +5 -5
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-edit.component-1Wd5IUpo.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-extra-properties-widget-view.component-BeuIofdr.mjs → acorex-platform-layout-widgets-extra-properties-widget-view.component-WLyXXg19.mjs} +5 -5
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-view.component-WLyXXg19.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-file-list-popup.component-Cmtq2bBV.mjs → acorex-platform-layout-widgets-file-list-popup.component-DxTXIO_k.mjs} +8 -8
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-DxTXIO_k.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-page-widget-designer.component-B-ZEi2yd.mjs → acorex-platform-layout-widgets-page-widget-designer.component-44YSAqDc.mjs} +7 -7
- package/fesm2022/acorex-platform-layout-widgets-page-widget-designer.component-44YSAqDc.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-tabular-data-edit-popup.component-CMqq_iOj.mjs → acorex-platform-layout-widgets-tabular-data-edit-popup.component-Dat0cqWe.mjs} +8 -8
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-Dat0cqWe.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-tabular-data-view-popup.component-CRpjdiNz.mjs → acorex-platform-layout-widgets-tabular-data-view-popup.component-CtJBzqq_.mjs} +4 -4
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-view-popup.component-CtJBzqq_.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-text-block-widget-designer.component-DeSmBqMa.mjs → acorex-platform-layout-widgets-text-block-widget-designer.component-Djpj1fNO.mjs} +5 -5
- package/fesm2022/acorex-platform-layout-widgets-text-block-widget-designer.component-Djpj1fNO.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets.mjs → acorex-platform-layout-widgets.mjs} +1006 -635
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -0
- package/fesm2022/acorex-platform-native.mjs +7 -7
- package/fesm2022/acorex-platform-native.mjs.map +1 -1
- package/fesm2022/acorex-platform-runtime.mjs +40 -40
- package/fesm2022/acorex-platform-runtime.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-oOA674Jd.mjs +115 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-oOA674Jd.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-7BB4LdjK.mjs → acorex-platform-themes-default-entity-master-list-view.component-Bk4p9oHD.mjs} +15 -15
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-7BB4LdjK.mjs.map → acorex-platform-themes-default-entity-master-list-view.component-Bk4p9oHD.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-CrDQOCpB.mjs +101 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-CrDQOCpB.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-BExtm1JE.mjs → acorex-platform-themes-default-entity-master-single-view.component-CT-1gX4H.mjs} +17 -17
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-CT-1gX4H.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-error-401.component-DrO1PEOH.mjs → acorex-platform-themes-default-error-401.component-CHJFmJ2W.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-error-401.component-DrO1PEOH.mjs.map → acorex-platform-themes-default-error-401.component-CHJFmJ2W.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-error-404.component-DqVq0oHX.mjs → acorex-platform-themes-default-error-404.component-Db8KkVIF.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-error-404.component-DqVq0oHX.mjs.map → acorex-platform-themes-default-error-404.component-Db8KkVIF.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-error-offline.component-Bt2PTL7_.mjs → acorex-platform-themes-default-error-offline.component-DH39Viy-.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-error-offline.component-Bt2PTL7_.mjs.map → acorex-platform-themes-default-error-offline.component-DH39Viy-.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +44 -44
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-view.component-BgEh06Tn.mjs → acorex-platform-themes-shared-icon-chooser-view.component-mFBYGE0_.mjs} +5 -5
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-mFBYGE0_.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-settings.provider-CLUKU4y0.mjs → acorex-platform-themes-shared-settings.provider-DY2xFnrv.mjs} +8 -8
- package/fesm2022/acorex-platform-themes-shared-settings.provider-DY2xFnrv.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-column.component-AeOQxjbS.mjs → acorex-platform-themes-shared-theme-color-chooser-column.component-viyyova6.mjs} +5 -5
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-viyyova6.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-view.component-DEVzRd6-.mjs → acorex-platform-themes-shared-theme-color-chooser-view.component-BrUtKTXd.mjs} +5 -5
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-BrUtKTXd.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +65 -54
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +27 -39
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/builder/README.md +2 -3
- package/layout/builder/index.d.ts +456 -879
- package/layout/components/index.d.ts +261 -81
- package/layout/designer/index.d.ts +4 -4
- package/layout/entity/index.d.ts +551 -13
- package/layout/views/index.d.ts +13 -13
- package/layout/widget-core/README.md +4 -0
- package/layout/widget-core/index.d.ts +950 -0
- package/layout/widgets/README.md +4 -0
- package/{widgets → layout/widgets}/index.d.ts +95 -61
- package/package.json +9 -5
- package/themes/shared/index.d.ts +2 -2
- package/workflow/index.d.ts +3 -173
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Ct-ri59W.mjs +0 -115
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Ct-ri59W.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BDJR088o.mjs +0 -101
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BDJR088o.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-BExtm1JE.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-BgEh06Tn.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-settings.provider-CLUKU4y0.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-AeOQxjbS.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-DEVzRd6-.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-DSaD9Fwc.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-extra-properties-schema-widget-edit.component-D9mf08rU.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-extra-properties-schema-widget-view.component-D6GQ-eyr.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-extra-properties-values-widget-edit.component-DVbIdVZ6.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-extra-properties-values-widget-view.component-D-aM64Hu.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-extra-properties-widget-edit.component-em2-aU8E.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-extra-properties-widget-view.component-BeuIofdr.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-file-list-popup.component-Cmtq2bBV.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-page-widget-designer.component-B-ZEi2yd.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-tabular-data-edit-popup.component-CMqq_iOj.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-tabular-data-view-popup.component-CRpjdiNz.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-text-block-widget-designer.component-DeSmBqMa.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets.mjs.map +0 -1
- package/widgets/README.md +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AXPSessionService, AXPAuthGuard } from '@acorex/platform/auth';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, Injectable, input, viewChild, signal, ElementRef, ChangeDetectionStrategy, Component, ApplicationRef, EnvironmentInjector, createComponent, InjectionToken, computed, Injector, runInInjectionContext, viewChildren, linkedSignal, effect, untracked, HostBinding, ViewChild, NgModule } from '@angular/core';
|
|
3
|
+
import { inject, Injectable, input, viewChild, signal, ElementRef, ChangeDetectionStrategy, Component, ApplicationRef, EnvironmentInjector, createComponent, InjectionToken, computed, Injector, runInInjectionContext, viewChildren, linkedSignal, effect, untracked, HostBinding, ViewChild, NgModule, DestroyRef } from '@angular/core';
|
|
4
4
|
import { Router, RouterModule, ROUTES } from '@angular/router';
|
|
5
5
|
import * as i3 from '@acorex/components/button';
|
|
6
6
|
import { AXButtonModule } from '@acorex/components/button';
|
|
@@ -10,8 +10,8 @@ import * as i2 from '@acorex/components/popover';
|
|
|
10
10
|
import { AXPopoverModule } from '@acorex/components/popover';
|
|
11
11
|
import * as i6 from '@acorex/core/translation';
|
|
12
12
|
import { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';
|
|
13
|
-
import * as i3$1 from '@acorex/platform/layout/
|
|
14
|
-
import { AXPWidgetsCatalog,
|
|
13
|
+
import * as i3$1 from '@acorex/platform/layout/widget-core';
|
|
14
|
+
import { AXPWidgetsCatalog, AXPWidgetCoreModule, AXPPageStatus, AXPWidgetRegistryService, AXPValueWidgetComponent, AXPWidgetRendererDirective, AXPWidgetGroupEnum, AXPLayoutBaseWidgetComponent, AXPColumnWidgetComponent, AXP_WIDGETS_EDITOR_CATEGORY } from '@acorex/platform/layout/widget-core';
|
|
15
15
|
import { AXPCommandService, AXPQueryService, provideCommandSetups, provideQuerySetups } from '@acorex/platform/runtime';
|
|
16
16
|
import * as i5 from '@angular/common';
|
|
17
17
|
import { CommonModule } from '@angular/common';
|
|
@@ -34,7 +34,7 @@ import * as i3$2 from '@acorex/components/decorators';
|
|
|
34
34
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
35
35
|
import * as i4$1 from '@acorex/components/dropdown';
|
|
36
36
|
import { AXDropdownModule } from '@acorex/components/dropdown';
|
|
37
|
-
import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY, AXP_ALLOW_CLEAR_PROPERTY, AXP_DATA_PROPERTY_GROUP, AXP_ALLOW_MULTIPLE_PROPERTY, AXPFileUploaderWidgetService } from '@acorex/platform/widgets';
|
|
37
|
+
import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY, AXP_ALLOW_CLEAR_PROPERTY, AXP_DATA_PROPERTY_GROUP, AXP_ALLOW_MULTIPLE_PROPERTY, AXPFileUploaderWidgetService } from '@acorex/platform/layout/widgets';
|
|
38
38
|
import * as i1$1 from '@angular/forms';
|
|
39
39
|
import { FormsModule } from '@angular/forms';
|
|
40
40
|
import * as i1 from '@acorex/components/badge';
|
|
@@ -89,10 +89,10 @@ class AXPOpenEntityDetailsCommand {
|
|
|
89
89
|
this.router.navigate([url]);
|
|
90
90
|
return { success: true };
|
|
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.2.4", ngImport: i0, type: AXPOpenEntityDetailsCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
93
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPOpenEntityDetailsCommand, providedIn: 'root' }); }
|
|
94
94
|
}
|
|
95
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPOpenEntityDetailsCommand, decorators: [{
|
|
96
96
|
type: Injectable,
|
|
97
97
|
args: [{ providedIn: 'root' }]
|
|
98
98
|
}] });
|
|
@@ -367,16 +367,16 @@ class AXPEntityDetailPopoverComponent {
|
|
|
367
367
|
.slice(0, 7); // Limit to 7 most important fields
|
|
368
368
|
return importantProperties;
|
|
369
369
|
}
|
|
370
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
371
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
370
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityDetailPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
371
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: AXPEntityDetailPopoverComponent, isStandalone: true, selector: "axp-entity-detail-popover", inputs: { entity: { classPropertyName: "entity", publicName: "entity", isSignal: true, isRequired: true, transformFunction: null }, entityId: { classPropertyName: "entityId", publicName: "entityId", isSignal: true, isRequired: true, transformFunction: null }, textField: { classPropertyName: "textField", publicName: "textField", isSignal: true, isRequired: false, transformFunction: null }, valueField: { classPropertyName: "valueField", publicName: "valueField", isSignal: true, isRequired: false, transformFunction: null }, item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "detailPopover", first: true, predicate: ["detailPopover"], descendants: true, isSignal: true }], ngImport: i0, template: "<ax-popover [openOn]=\"'manual'\" #detailPopover (openChange)=\"onDetailPopoverOpenChange($event)\">\n <div class=\"ax-lightest-surface ax-border ax-rounded-lg ax-shadow-lg ax-p-4 ax-min-w-[400px]\">\n <div class=\"ax-mb-4 ax-border-b ax-pb-2\">\n <h3 class=\"ax-text-base ax-font-semibold ax-text-on-lightest-surface\">\n @if (entityDetails()?.entityData?.[textField()]) {\n {{ entityDetails()?.entityData[textField()] }}\n } @else {\n {{ item()?.[textField()] }}\n }\n </h3>\n </div>\n @if (isLoadingDetails()) {\n <div class=\"ax-flex ax-items-center ax-justify-center ax-py-8\">\n <ax-loading>Loading details...</ax-loading>\n </div>\n } @else if (entityDetails()) {\n <div class=\"ax-space-y-3 ax-mb-4\">\n <!-- Important Entity Data -->\n @if (entityDetails()?.entityData) {\n <axp-widgets-container [context]=\"entityDetails()?.entityData\">\n <div class=\"ax-space-y-2\">\n @for (item of getEntityPropertiesWithWidgets(); track item.name) {\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <span class=\"ax-text-sm ax-font-medium\">{{ item.title | translate | async }}:</span>\n <div class=\"ax-flex-1 ax-ml-2 ax-max-w-48\">\n <ng-container axp-widget-renderer [node]=\"item.node\" [mode]=\"'view'\"></ng-container>\n </div>\n </div>\n }\n </div>\n </axp-widgets-container>\n }\n </div>\n <div class=\"ax-flex ax-gap-2 ax-justify-end ax-sm\">\n <ax-button [color]=\"'primary'\" [look]=\"'solid'\" text=\"Open Details\" (click)=\"navigateToDetails()\"> </ax-button>\n </div>\n }\n </div>\n</ax-popover>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.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: AXPopoverModule }, { kind: "component", type: i2.AXPopoverComponent, selector: "ax-popover", inputs: ["width", "disabled", "offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "backdropClass", "panelClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXPWidgetCoreModule }, { kind: "component", type: i3$1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i3$1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged"], exportAs: ["widgetRenderer"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
372
372
|
}
|
|
373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityDetailPopoverComponent, decorators: [{
|
|
374
374
|
type: Component,
|
|
375
375
|
args: [{ selector: 'axp-entity-detail-popover', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
376
376
|
CommonModule,
|
|
377
377
|
AXButtonModule,
|
|
378
378
|
AXPopoverModule,
|
|
379
|
-
|
|
379
|
+
AXPWidgetCoreModule,
|
|
380
380
|
AXTranslationModule,
|
|
381
381
|
AXLoadingModule,
|
|
382
382
|
], template: "<ax-popover [openOn]=\"'manual'\" #detailPopover (openChange)=\"onDetailPopoverOpenChange($event)\">\n <div class=\"ax-lightest-surface ax-border ax-rounded-lg ax-shadow-lg ax-p-4 ax-min-w-[400px]\">\n <div class=\"ax-mb-4 ax-border-b ax-pb-2\">\n <h3 class=\"ax-text-base ax-font-semibold ax-text-on-lightest-surface\">\n @if (entityDetails()?.entityData?.[textField()]) {\n {{ entityDetails()?.entityData[textField()] }}\n } @else {\n {{ item()?.[textField()] }}\n }\n </h3>\n </div>\n @if (isLoadingDetails()) {\n <div class=\"ax-flex ax-items-center ax-justify-center ax-py-8\">\n <ax-loading>Loading details...</ax-loading>\n </div>\n } @else if (entityDetails()) {\n <div class=\"ax-space-y-3 ax-mb-4\">\n <!-- Important Entity Data -->\n @if (entityDetails()?.entityData) {\n <axp-widgets-container [context]=\"entityDetails()?.entityData\">\n <div class=\"ax-space-y-2\">\n @for (item of getEntityPropertiesWithWidgets(); track item.name) {\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <span class=\"ax-text-sm ax-font-medium\">{{ item.title | translate | async }}:</span>\n <div class=\"ax-flex-1 ax-ml-2 ax-max-w-48\">\n <ng-container axp-widget-renderer [node]=\"item.node\" [mode]=\"'view'\"></ng-container>\n </div>\n </div>\n }\n </div>\n </axp-widgets-container>\n }\n </div>\n <div class=\"ax-flex ax-gap-2 ax-justify-end ax-sm\">\n <ax-button [color]=\"'primary'\" [look]=\"'solid'\" text=\"Open Details\" (click)=\"navigateToDetails()\"> </ax-button>\n </div>\n }\n </div>\n</ax-popover>\n" }]
|
|
@@ -435,10 +435,10 @@ class AXPEntityDetailPopoverService {
|
|
|
435
435
|
get isActive() {
|
|
436
436
|
return this.activePopoverRef !== null;
|
|
437
437
|
}
|
|
438
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
439
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
438
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityDetailPopoverService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
439
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityDetailPopoverService, providedIn: 'root' }); }
|
|
440
440
|
}
|
|
441
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityDetailPopoverService, decorators: [{
|
|
442
442
|
type: Injectable,
|
|
443
443
|
args: [{
|
|
444
444
|
providedIn: 'root'
|
|
@@ -455,10 +455,10 @@ class AXPDataSeederService {
|
|
|
455
455
|
await loader?.seed();
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
459
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
458
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPDataSeederService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
459
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPDataSeederService, providedIn: 'root' }); }
|
|
460
460
|
}
|
|
461
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPDataSeederService, decorators: [{
|
|
462
462
|
type: Injectable,
|
|
463
463
|
args: [{ providedIn: 'root' }]
|
|
464
464
|
}] });
|
|
@@ -483,10 +483,10 @@ class AXPEntityResolver {
|
|
|
483
483
|
}
|
|
484
484
|
return null;
|
|
485
485
|
}
|
|
486
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
487
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
486
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityResolver, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
487
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityResolver, providedIn: 'root' }); }
|
|
488
488
|
}
|
|
489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityResolver, decorators: [{
|
|
490
490
|
type: Injectable,
|
|
491
491
|
args: [{ providedIn: 'root' }]
|
|
492
492
|
}] });
|
|
@@ -867,10 +867,10 @@ class AXPEntityEventDispatcherService {
|
|
|
867
867
|
async dispatchDeleted(entityName, data) {
|
|
868
868
|
await this.dispatchEntityEvent('deleted', entityName, data);
|
|
869
869
|
}
|
|
870
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
871
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
870
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityEventDispatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
871
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityEventDispatcherService, providedIn: 'root' }); }
|
|
872
872
|
}
|
|
873
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
873
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityEventDispatcherService, decorators: [{
|
|
874
874
|
type: Injectable,
|
|
875
875
|
args: [{
|
|
876
876
|
providedIn: 'root',
|
|
@@ -1178,10 +1178,10 @@ class AXPEntityMiddleware {
|
|
|
1178
1178
|
const flags = rx.flags.replace('g', '');
|
|
1179
1179
|
return new RegExp(rx.source, flags);
|
|
1180
1180
|
}
|
|
1181
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1182
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
1181
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityMiddleware, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1182
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityMiddleware, providedIn: 'root' }); }
|
|
1183
1183
|
}
|
|
1184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityMiddleware, decorators: [{
|
|
1185
1185
|
type: Injectable,
|
|
1186
1186
|
args: [{ providedIn: 'root' }]
|
|
1187
1187
|
}], ctorParameters: () => [] });
|
|
@@ -1333,10 +1333,10 @@ class AXPEntityDefinitionRegistryService {
|
|
|
1333
1333
|
createEntityKey(moduleName, entityName) {
|
|
1334
1334
|
return `${moduleName}.${entityName}`;
|
|
1335
1335
|
}
|
|
1336
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1337
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
1336
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityDefinitionRegistryService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1337
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityDefinitionRegistryService, providedIn: 'root' }); }
|
|
1338
1338
|
}
|
|
1339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1339
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityDefinitionRegistryService, decorators: [{
|
|
1340
1340
|
type: Injectable,
|
|
1341
1341
|
args: [{
|
|
1342
1342
|
providedIn: 'root',
|
|
@@ -1497,10 +1497,10 @@ class AXPEntityCreateViewModelFactory {
|
|
|
1497
1497
|
this.layout.setNavigationLoading(false);
|
|
1498
1498
|
return new AXPEntityMasterCreateViewModel(this.injector, config, initialData, options);
|
|
1499
1499
|
}
|
|
1500
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
1501
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
1500
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityCreateViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1501
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityCreateViewModelFactory, providedIn: 'root' }); }
|
|
1502
1502
|
}
|
|
1503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
1503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityCreateViewModelFactory, decorators: [{
|
|
1504
1504
|
type: Injectable,
|
|
1505
1505
|
args: [{ providedIn: 'root' }]
|
|
1506
1506
|
}] });
|
|
@@ -2055,10 +2055,10 @@ class AXPEntityListViewModelFactory {
|
|
|
2055
2055
|
this.layout.setNavigationLoading(false);
|
|
2056
2056
|
return new AXPEntityMasterListViewModel(this.injector, config);
|
|
2057
2057
|
}
|
|
2058
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2059
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
2058
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityListViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2059
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityListViewModelFactory, providedIn: 'root' }); }
|
|
2060
2060
|
}
|
|
2061
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2061
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityListViewModelFactory, decorators: [{
|
|
2062
2062
|
type: Injectable,
|
|
2063
2063
|
args: [{ providedIn: 'root' }]
|
|
2064
2064
|
}] });
|
|
@@ -2076,10 +2076,10 @@ class AXPEntityService {
|
|
|
2076
2076
|
createPath(module, entity, path = 'list') {
|
|
2077
2077
|
return `/${this.sessionService.application?.name}/m/${module}/e/${entity}/${path}`;
|
|
2078
2078
|
}
|
|
2079
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2080
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
2079
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2080
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityService, providedIn: 'root' }); }
|
|
2081
2081
|
}
|
|
2082
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityService, decorators: [{
|
|
2083
2083
|
type: Injectable,
|
|
2084
2084
|
args: [{ providedIn: 'root' }]
|
|
2085
2085
|
}] });
|
|
@@ -2233,10 +2233,10 @@ class AXPEntityPerformDeleteAction extends AXPWorkflowAction {
|
|
|
2233
2233
|
}
|
|
2234
2234
|
}
|
|
2235
2235
|
}
|
|
2236
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2237
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
2236
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityPerformDeleteAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2237
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityPerformDeleteAction }); }
|
|
2238
2238
|
}
|
|
2239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityPerformDeleteAction, decorators: [{
|
|
2240
2240
|
type: Injectable
|
|
2241
2241
|
}] });
|
|
2242
2242
|
const AXPDeleteEntityWorkflow = {
|
|
@@ -2415,10 +2415,10 @@ class AXPEntityMasterUpdateViewModelFactory {
|
|
|
2415
2415
|
this.layout.setNavigationLoading(false);
|
|
2416
2416
|
return Promise.reject('cannot fetch ');
|
|
2417
2417
|
}
|
|
2418
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2419
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
2418
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityMasterUpdateViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2419
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityMasterUpdateViewModelFactory, providedIn: 'root' }); }
|
|
2420
2420
|
}
|
|
2421
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityMasterUpdateViewModelFactory, decorators: [{
|
|
2422
2422
|
type: Injectable,
|
|
2423
2423
|
args: [{ providedIn: 'root' }]
|
|
2424
2424
|
}] });
|
|
@@ -2461,10 +2461,10 @@ class AXPEntityModifySectionPopupAction extends AXPWorkflowAction {
|
|
|
2461
2461
|
context.setVariable('data', cloneDeep(popup.data.context));
|
|
2462
2462
|
}
|
|
2463
2463
|
}
|
|
2464
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2465
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
2464
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityModifySectionPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2465
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityModifySectionPopupAction }); }
|
|
2466
2466
|
}
|
|
2467
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2467
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityModifySectionPopupAction, decorators: [{
|
|
2468
2468
|
type: Injectable
|
|
2469
2469
|
}] });
|
|
2470
2470
|
class AXPEntityModifyConfirmedAction extends AXPWorkflowAction {
|
|
@@ -2479,10 +2479,10 @@ class AXPEntityModifyConfirmedAction extends AXPWorkflowAction {
|
|
|
2479
2479
|
},
|
|
2480
2480
|
}));
|
|
2481
2481
|
}
|
|
2482
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2483
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
2482
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityModifyConfirmedAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2483
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityModifyConfirmedAction }); }
|
|
2484
2484
|
}
|
|
2485
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityModifyConfirmedAction, decorators: [{
|
|
2486
2486
|
type: Injectable
|
|
2487
2487
|
}] });
|
|
2488
2488
|
const AXPModifyEntitySectionWorkflow = {
|
|
@@ -2535,7 +2535,7 @@ class AXPEntityMasterSingleViewGroupViewModel {
|
|
|
2535
2535
|
}, ...(ngDevMode ? [{ debugName: "description" }] : []));
|
|
2536
2536
|
this.layout = computed(() => {
|
|
2537
2537
|
const source = cloneDeep(this.section.layout ?? {});
|
|
2538
|
-
set(source, 'positions.
|
|
2538
|
+
set(source, 'positions.sm.colSpan', 12);
|
|
2539
2539
|
return source;
|
|
2540
2540
|
}, ...(ngDevMode ? [{ debugName: "layout" }] : []));
|
|
2541
2541
|
this.props = computed(() => {
|
|
@@ -2775,10 +2775,10 @@ class AXPEntityDetailViewModelFactory {
|
|
|
2775
2775
|
this.layout.setNavigationLoading(false);
|
|
2776
2776
|
return Promise.reject('cannot fetch ');
|
|
2777
2777
|
}
|
|
2778
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
2779
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
2778
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityDetailViewModelFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2779
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityDetailViewModelFactory, providedIn: 'root' }); }
|
|
2780
2780
|
}
|
|
2781
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
2781
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityDetailViewModelFactory, decorators: [{
|
|
2782
2782
|
type: Injectable,
|
|
2783
2783
|
args: [{ providedIn: 'root' }]
|
|
2784
2784
|
}] });
|
|
@@ -2845,18 +2845,23 @@ class AXMEntityCrudServiceImpl {
|
|
|
2845
2845
|
}
|
|
2846
2846
|
async query(request = { skip: 0, take: 100 }) {
|
|
2847
2847
|
const [moduleName, entityName] = this._entityDataProvider.entityName.split('.');
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
if (
|
|
2851
|
-
request.filter
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2848
|
+
try {
|
|
2849
|
+
const entityRef = await this.entityRegistery.resolve(moduleName, entityName);
|
|
2850
|
+
if (entityRef.parentKey) {
|
|
2851
|
+
if (!request.filter?.filters?.length && request.filter?.field !== entityRef.parentKey) {
|
|
2852
|
+
request.filter = {
|
|
2853
|
+
value: true,
|
|
2854
|
+
field: entityRef.parentKey,
|
|
2855
|
+
operator: {
|
|
2856
|
+
type: 'isEmpty',
|
|
2857
|
+
},
|
|
2858
|
+
};
|
|
2859
|
+
}
|
|
2858
2860
|
}
|
|
2859
2861
|
}
|
|
2862
|
+
catch (error) {
|
|
2863
|
+
console.error(error);
|
|
2864
|
+
}
|
|
2860
2865
|
return this._entityDataProvider.query(request);
|
|
2861
2866
|
}
|
|
2862
2867
|
async findOne(filter) {
|
|
@@ -2873,7 +2878,7 @@ class AXMEntityCrudServiceImpl {
|
|
|
2873
2878
|
operator: {
|
|
2874
2879
|
type: 'isEmpty',
|
|
2875
2880
|
},
|
|
2876
|
-
}
|
|
2881
|
+
},
|
|
2877
2882
|
};
|
|
2878
2883
|
const result = await this._entityDataProvider.query(queryRequest);
|
|
2879
2884
|
return result;
|
|
@@ -2889,7 +2894,7 @@ class AXMEntityCrudServiceImpl {
|
|
|
2889
2894
|
operator: {
|
|
2890
2895
|
type: 'equal',
|
|
2891
2896
|
},
|
|
2892
|
-
}
|
|
2897
|
+
},
|
|
2893
2898
|
};
|
|
2894
2899
|
const result = await this._entityDataProvider.query(queryRequest);
|
|
2895
2900
|
return result;
|
|
@@ -2904,7 +2909,7 @@ class AXMEntityCrudServiceImpl {
|
|
|
2904
2909
|
operator: {
|
|
2905
2910
|
type: 'contains',
|
|
2906
2911
|
},
|
|
2907
|
-
}
|
|
2912
|
+
},
|
|
2908
2913
|
};
|
|
2909
2914
|
const result = await this._entityDataProvider.query(queryRequest);
|
|
2910
2915
|
return result;
|
|
@@ -2998,10 +3003,10 @@ class AXPLayoutAdapterBuilder {
|
|
|
2998
3003
|
};
|
|
2999
3004
|
};
|
|
3000
3005
|
}
|
|
3001
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3002
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
3006
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPLayoutAdapterBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3007
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPLayoutAdapterBuilder, providedIn: 'root' }); }
|
|
3003
3008
|
}
|
|
3004
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3009
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPLayoutAdapterBuilder, decorators: [{
|
|
3005
3010
|
type: Injectable,
|
|
3006
3011
|
args: [{
|
|
3007
3012
|
providedIn: 'root',
|
|
@@ -3454,7 +3459,6 @@ class AXPTabDetailsConverter extends AXPBaseRelatedEntityConverter {
|
|
|
3454
3459
|
class AXPTabListConverter extends AXPBaseRelatedEntityConverter {
|
|
3455
3460
|
async convert(relatedEntity, context) {
|
|
3456
3461
|
const { entityDef } = await this.getEntityDefinition(relatedEntity, context.entityResolver);
|
|
3457
|
-
debugger;
|
|
3458
3462
|
const evaluateExpressions = async (actionData) => {
|
|
3459
3463
|
const scope = {
|
|
3460
3464
|
context: {
|
|
@@ -3528,10 +3532,10 @@ class AXPRelatedEntityConverterFactory {
|
|
|
3528
3532
|
createTabListConverter() {
|
|
3529
3533
|
return this.createConverter('tab-list');
|
|
3530
3534
|
}
|
|
3531
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
3532
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
3535
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPRelatedEntityConverterFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3536
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPRelatedEntityConverterFactory, providedIn: 'root' }); }
|
|
3533
3537
|
}
|
|
3534
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
3538
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPRelatedEntityConverterFactory, decorators: [{
|
|
3535
3539
|
type: Injectable,
|
|
3536
3540
|
args: [{
|
|
3537
3541
|
providedIn: 'root',
|
|
@@ -4118,10 +4122,10 @@ class AXPMainEntityContentBuilder {
|
|
|
4118
4122
|
}
|
|
4119
4123
|
return tabs;
|
|
4120
4124
|
}
|
|
4121
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4122
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
4125
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPMainEntityContentBuilder, deps: [{ token: AXPRelatedEntityConverterFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4126
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPMainEntityContentBuilder, providedIn: 'root' }); }
|
|
4123
4127
|
}
|
|
4124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPMainEntityContentBuilder, decorators: [{
|
|
4125
4129
|
type: Injectable,
|
|
4126
4130
|
args: [{
|
|
4127
4131
|
providedIn: 'root',
|
|
@@ -4260,10 +4264,10 @@ class AXPLayoutAdapterFactory {
|
|
|
4260
4264
|
const title = await dependencies.expressionEvaluator.evaluate(entity.interfaces?.master?.single?.title, rootContext);
|
|
4261
4265
|
return title;
|
|
4262
4266
|
}
|
|
4263
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4264
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
4267
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPLayoutAdapterFactory, deps: [{ token: AXPRelatedEntityConverterFactory }, { token: AXPMainEntityContentBuilder }, { token: AXPLayoutAdapterBuilder }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4268
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPLayoutAdapterFactory, providedIn: 'root' }); }
|
|
4265
4269
|
}
|
|
4266
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPLayoutAdapterFactory, decorators: [{
|
|
4267
4271
|
type: Injectable,
|
|
4268
4272
|
args: [{
|
|
4269
4273
|
providedIn: 'root',
|
|
@@ -4628,10 +4632,10 @@ class AXPEntityListTableService {
|
|
|
4628
4632
|
},
|
|
4629
4633
|
};
|
|
4630
4634
|
}
|
|
4631
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4632
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
4635
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityListTableService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4636
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityListTableService }); }
|
|
4633
4637
|
}
|
|
4634
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityListTableService, decorators: [{
|
|
4635
4639
|
type: Injectable
|
|
4636
4640
|
}] });
|
|
4637
4641
|
|
|
@@ -4722,10 +4726,10 @@ class AXPEntityListToolbarService {
|
|
|
4722
4726
|
};
|
|
4723
4727
|
});
|
|
4724
4728
|
}
|
|
4725
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
4726
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
4729
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityListToolbarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4730
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityListToolbarService }); }
|
|
4727
4731
|
}
|
|
4728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
4732
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityListToolbarService, decorators: [{
|
|
4729
4733
|
type: Injectable
|
|
4730
4734
|
}] });
|
|
4731
4735
|
|
|
@@ -5022,8 +5026,8 @@ class AXPEntityListWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
5022
5026
|
this.destroyed.next();
|
|
5023
5027
|
this.destroyed.complete();
|
|
5024
5028
|
}
|
|
5025
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5026
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
5029
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityListWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5030
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: AXPEntityListWidgetViewComponent, isStandalone: true, selector: "ng-component", host: { properties: { "class": "\"ax-h-full\"" } }, providers: [AXPEntityListTableService, AXPEntityListToolbarService], viewQueries: [{ propertyName: "list", first: true, predicate: ["list"], descendants: true, isSignal: true }, { propertyName: "allWidgets", predicate: AXPWidgetRendererDirective, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
5027
5031
|
@if (showEntityActions()) {
|
|
5028
5032
|
<div class="ax-flex ax-gap-2 ax-justify-end ax-mb-4">
|
|
5029
5033
|
@for (action of primaryActions(); track $index) {
|
|
@@ -5124,9 +5128,9 @@ class AXPEntityListWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
5124
5128
|
></ng-container>
|
|
5125
5129
|
}
|
|
5126
5130
|
</div>
|
|
5127
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3$2.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:
|
|
5131
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3$2.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: AXPWidgetCoreModule }, { kind: "directive", type: i3$1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged"], exportAs: ["widgetRenderer"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.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: "component", type: i3.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i3.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i4$1.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "placement", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5128
5132
|
}
|
|
5129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
5133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityListWidgetViewComponent, decorators: [{
|
|
5130
5134
|
type: Component,
|
|
5131
5135
|
args: [{
|
|
5132
5136
|
template: `
|
|
@@ -5240,7 +5244,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
|
|
|
5240
5244
|
imports: [
|
|
5241
5245
|
CommonModule,
|
|
5242
5246
|
AXDecoratorModule,
|
|
5243
|
-
|
|
5247
|
+
AXPWidgetCoreModule,
|
|
5244
5248
|
AXButtonModule,
|
|
5245
5249
|
AXDropdownModule,
|
|
5246
5250
|
AXTranslationModule,
|
|
@@ -5279,10 +5283,10 @@ const AXPEntityListWidget = {
|
|
|
5279
5283
|
};
|
|
5280
5284
|
|
|
5281
5285
|
class AXPEntityReferenceWidgetViewComponent extends AXPLayoutBaseWidgetComponent {
|
|
5282
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5283
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
5286
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityReferenceWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5287
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: AXPEntityReferenceWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5284
5288
|
}
|
|
5285
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
5289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityReferenceWidgetViewComponent, decorators: [{
|
|
5286
5290
|
type: Component,
|
|
5287
5291
|
args: [{
|
|
5288
5292
|
template: ``,
|
|
@@ -5311,10 +5315,10 @@ class AXPEntityReferenceWidgetEditComponent extends AXPLayoutBaseWidgetComponent
|
|
|
5311
5315
|
}, ...(ngDevMode ? [{ debugName: "#efEntity" }] : []));
|
|
5312
5316
|
}
|
|
5313
5317
|
#efEntity;
|
|
5314
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5315
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
5318
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityReferenceWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5319
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: AXPEntityReferenceWidgetEditComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5316
5320
|
}
|
|
5317
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
5321
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityReferenceWidgetEditComponent, decorators: [{
|
|
5318
5322
|
type: Component,
|
|
5319
5323
|
args: [{
|
|
5320
5324
|
template: ``,
|
|
@@ -5330,10 +5334,10 @@ var entityReferenceWidgetEdit_component = /*#__PURE__*/Object.freeze({
|
|
|
5330
5334
|
});
|
|
5331
5335
|
|
|
5332
5336
|
class AXPEntityReferenceWidgetColumnComponent extends AXPColumnWidgetComponent {
|
|
5333
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5334
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
5337
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityReferenceWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5338
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: AXPEntityReferenceWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue" }, usesInheritance: true, ngImport: i0, template: `{{rawValue}}`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5335
5339
|
}
|
|
5336
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
5340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityReferenceWidgetColumnComponent, decorators: [{
|
|
5337
5341
|
type: Component,
|
|
5338
5342
|
args: [{
|
|
5339
5343
|
template: `{{rawValue}}`,
|
|
@@ -5350,10 +5354,10 @@ var entityReferenceWidgetColumn_component = /*#__PURE__*/Object.freeze({
|
|
|
5350
5354
|
});
|
|
5351
5355
|
|
|
5352
5356
|
class AXPEntityReferenceWidgetPrintComponent extends AXPLayoutBaseWidgetComponent {
|
|
5353
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5354
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
5357
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityReferenceWidgetPrintComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5358
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: AXPEntityReferenceWidgetPrintComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5355
5359
|
}
|
|
5356
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
5360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityReferenceWidgetPrintComponent, decorators: [{
|
|
5357
5361
|
type: Component,
|
|
5358
5362
|
args: [{
|
|
5359
5363
|
template: ``,
|
|
@@ -5370,10 +5374,10 @@ var entityReferenceWidgetPrint_component = /*#__PURE__*/Object.freeze({
|
|
|
5370
5374
|
});
|
|
5371
5375
|
|
|
5372
5376
|
class AXPEntityReferenceWidgetDesignerComponent extends AXPLayoutBaseWidgetComponent {
|
|
5373
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5374
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
5377
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityReferenceWidgetDesignerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5378
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: AXPEntityReferenceWidgetDesignerComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5375
5379
|
}
|
|
5376
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
5380
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityReferenceWidgetDesignerComponent, decorators: [{
|
|
5377
5381
|
type: Component,
|
|
5378
5382
|
args: [{
|
|
5379
5383
|
template: ``,
|
|
@@ -5478,8 +5482,8 @@ class AXPLookupWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
5478
5482
|
cls[`ax-gap-1`] = true;
|
|
5479
5483
|
return cls;
|
|
5480
5484
|
}
|
|
5481
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5482
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
5485
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPLookupWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5486
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: AXPLookupWidgetViewComponent, isStandalone: true, selector: "axp-lookup-widget-view", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
|
|
5483
5487
|
@if(loading())
|
|
5484
5488
|
{
|
|
5485
5489
|
<ax-loading></ax-loading>
|
|
@@ -5499,7 +5503,7 @@ class AXPLookupWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
5499
5503
|
}
|
|
5500
5504
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i4.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5501
5505
|
}
|
|
5502
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
5506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPLookupWidgetViewComponent, decorators: [{
|
|
5503
5507
|
type: Component,
|
|
5504
5508
|
args: [{
|
|
5505
5509
|
selector: 'axp-lookup-widget-view',
|
|
@@ -5585,6 +5589,7 @@ class AXPEntityDataSelectorService {
|
|
|
5585
5589
|
selectionMode: options.allowMultiple ? 'multiple' : 'single',
|
|
5586
5590
|
searchFields,
|
|
5587
5591
|
parentField: options.entity.parentKey,
|
|
5592
|
+
filters: options.filters || undefined,
|
|
5588
5593
|
allowCreate: options.allowCreate ?? this.canCreate(options.entity),
|
|
5589
5594
|
// Note: Custom filters will be applied to the dataSource in createDataSource
|
|
5590
5595
|
};
|
|
@@ -5593,7 +5598,7 @@ class AXPEntityDataSelectorService {
|
|
|
5593
5598
|
* Create data source from entity definition
|
|
5594
5599
|
*/
|
|
5595
5600
|
createDataSource(options) {
|
|
5596
|
-
const { entity,
|
|
5601
|
+
const { entity, filters, parentFilters } = options;
|
|
5597
5602
|
return new AXDataSource({
|
|
5598
5603
|
byKey: (key) => {
|
|
5599
5604
|
const func = entity.queries.byKey.execute;
|
|
@@ -5601,7 +5606,7 @@ class AXPEntityDataSelectorService {
|
|
|
5601
5606
|
},
|
|
5602
5607
|
load: (e) => {
|
|
5603
5608
|
const func = entity.queries.list?.execute;
|
|
5604
|
-
this.mergeFilters(e,
|
|
5609
|
+
this.mergeFilters(e, filters, parentFilters);
|
|
5605
5610
|
return func(e);
|
|
5606
5611
|
},
|
|
5607
5612
|
pageSize: 10,
|
|
@@ -5713,10 +5718,10 @@ class AXPEntityDataSelectorService {
|
|
|
5713
5718
|
}
|
|
5714
5719
|
return request;
|
|
5715
5720
|
}
|
|
5716
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5717
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
5721
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityDataSelectorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5722
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityDataSelectorService, providedIn: 'root' }); }
|
|
5718
5723
|
}
|
|
5719
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
5724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityDataSelectorService, decorators: [{
|
|
5720
5725
|
type: Injectable,
|
|
5721
5726
|
args: [{
|
|
5722
5727
|
providedIn: 'root'
|
|
@@ -5830,7 +5835,7 @@ class AXPLookupWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
5830
5835
|
entity: this.entityDef(),
|
|
5831
5836
|
title: `${this.translateService.translateSync('@general:widgets.lookup.search')} ${this.translateService.translateSync(this.entityDef()?.formats.plural ?? '')}`,
|
|
5832
5837
|
allowMultiple: this.multiple(),
|
|
5833
|
-
|
|
5838
|
+
filters: this.customFilter(),
|
|
5834
5839
|
parentFilters: this.filter,
|
|
5835
5840
|
columns: this.columns(),
|
|
5836
5841
|
allowCreate: true
|
|
@@ -5983,8 +5988,8 @@ class AXPLookupWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
5983
5988
|
singleOrMultiple(values) {
|
|
5984
5989
|
return this.multiple() ? values : values[0];
|
|
5985
5990
|
}
|
|
5986
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
5987
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
5991
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPLookupWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
5992
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", 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: `
|
|
5988
5993
|
@if(dataSource()) {
|
|
5989
5994
|
@if (look() == 'select') {
|
|
5990
5995
|
<ax-select-box
|
|
@@ -6055,7 +6060,7 @@ class AXPLookupWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
6055
6060
|
//
|
|
6056
6061
|
AXButtonModule }, { kind: "component", type: i3.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$2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3$2.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i3$2.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: i4.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.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "isItemTruncated", "showItemTooltip", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed", "onItemSelected", "onItemClick"] }, { 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: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6057
6062
|
}
|
|
6058
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6063
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPLookupWidgetEditComponent, decorators: [{
|
|
6059
6064
|
type: Component,
|
|
6060
6065
|
args: [{
|
|
6061
6066
|
selector: 'axp-lookup-widget-edit',
|
|
@@ -6247,10 +6252,10 @@ class AXPLookupWidgetColumnComponent extends AXPColumnWidgetComponent {
|
|
|
6247
6252
|
[this.textField]: item,
|
|
6248
6253
|
};
|
|
6249
6254
|
}
|
|
6250
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6251
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
6255
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPLookupWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6256
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: AXPLookupWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue", rowData: "rowData" }, viewQueries: [{ propertyName: "moreButton", first: true, predicate: ["moreButton"], descendants: true, isSignal: true }, { propertyName: "morePopover", first: true, predicate: ["morePopover"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-flex ax-gap-1 ax-items-center\">\n @if (visibleItems().length > 0) {\n @for (item of visibleItems(); track $index) {\n <span class=\"ax-cursor-pointer hover:ax-text-primary hover:ax-underline\" (click)=\"handleItemClick($index)\">\n {{ item[this.textField] }}\n </span>\n @if ($index < visibleItems().length - 1) {\n <span class=\"ax-text-muted\">\u2022</span>\n }\n }\n } @else {\n <span class=\"ax-text-muted\">---</span>\n }\n\n @if (hasMoreItems()) {\n <span\n class=\"ax-absolute ax-flex ax-items-center ax-end-0 ax-px-1 ax-cursor-pointer ax-h-full hover:ax-primary-lighter\"\n (click)=\"showMoreItems()\"\n #moreButton\n >\n <i class=\"fa-light fa-ellipsis-vertical\"></i>\n </span>\n }\n</div>\n\n<!-- More Items Popover -->\n<ax-popover [openOn]=\"'manual'\" #morePopover (openChange)=\"onMorePopoverOpenChange($event)\">\n <div class=\"ax-lightest-surface ax-border ax-rounded-lg ax-shadow-lg ax-p-4 ax-min-w-[280px]\">\n <div class=\"ax-mb-4 ax-border-b ax-pb-2\">\n <h3 class=\"ax-text-base ax-font-semibold\">All {{ allItems().length }} Items</h3>\n </div>\n <div class=\"ax-max-h-64 ax-flex ax-flex-col ax-gap-3\">\n @for (item of allItems(); track $index) {\n <span class=\"ax-cursor-pointer hover:ax-text-primary hover:ax-underline\" (click)=\"showItemDetail(item, $index)\">\n {{ item[this.textField] }}\n </span>\n }\n </div>\n </div>\n</ax-popover>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "component", type: i2.AXPopoverComponent, selector: "ax-popover", inputs: ["width", "disabled", "offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "backdropClass", "panelClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6252
6257
|
}
|
|
6253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6258
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPLookupWidgetColumnComponent, decorators: [{
|
|
6254
6259
|
type: Component,
|
|
6255
6260
|
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, AXBadgeModule, AXButtonModule, AXPopoverModule], inputs: ['rawValue', 'rowData'], template: "<div class=\"ax-flex ax-gap-1 ax-items-center\">\n @if (visibleItems().length > 0) {\n @for (item of visibleItems(); track $index) {\n <span class=\"ax-cursor-pointer hover:ax-text-primary hover:ax-underline\" (click)=\"handleItemClick($index)\">\n {{ item[this.textField] }}\n </span>\n @if ($index < visibleItems().length - 1) {\n <span class=\"ax-text-muted\">\u2022</span>\n }\n }\n } @else {\n <span class=\"ax-text-muted\">---</span>\n }\n\n @if (hasMoreItems()) {\n <span\n class=\"ax-absolute ax-flex ax-items-center ax-end-0 ax-px-1 ax-cursor-pointer ax-h-full hover:ax-primary-lighter\"\n (click)=\"showMoreItems()\"\n #moreButton\n >\n <i class=\"fa-light fa-ellipsis-vertical\"></i>\n </span>\n }\n</div>\n\n<!-- More Items Popover -->\n<ax-popover [openOn]=\"'manual'\" #morePopover (openChange)=\"onMorePopoverOpenChange($event)\">\n <div class=\"ax-lightest-surface ax-border ax-rounded-lg ax-shadow-lg ax-p-4 ax-min-w-[280px]\">\n <div class=\"ax-mb-4 ax-border-b ax-pb-2\">\n <h3 class=\"ax-text-base ax-font-semibold\">All {{ allItems().length }} Items</h3>\n </div>\n <div class=\"ax-max-h-64 ax-flex ax-flex-col ax-gap-3\">\n @for (item of allItems(); track $index) {\n <span class=\"ax-cursor-pointer hover:ax-text-primary hover:ax-underline\" (click)=\"showItemDetail(item, $index)\">\n {{ item[this.textField] }}\n </span>\n }\n </div>\n </div>\n</ax-popover>\n" }]
|
|
6256
6261
|
}] });
|
|
@@ -6337,8 +6342,8 @@ class AXPTagableBoxWidgetColumnComponent extends AXPValueWidgetComponent {
|
|
|
6337
6342
|
return Array.isArray(value) ? value : [value];
|
|
6338
6343
|
}, ...(ngDevMode ? [{ debugName: "getData" }] : []));
|
|
6339
6344
|
}
|
|
6340
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6341
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
6345
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPTagableBoxWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6346
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: AXPTagableBoxWidgetColumnComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
6342
6347
|
<div class="ax-flex ax-gap-1 ax-flex-wrap">
|
|
6343
6348
|
@if (useSelectBox() && getData().length > 0) { @for (item of getData(); track $index) {
|
|
6344
6349
|
<ax-badge [look]="'twotone'" [text]="item[textField()]" color="primary"></ax-badge>
|
|
@@ -6350,7 +6355,7 @@ class AXPTagableBoxWidgetColumnComponent extends AXPValueWidgetComponent {
|
|
|
6350
6355
|
</div>
|
|
6351
6356
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6352
6357
|
}
|
|
6353
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPTagableBoxWidgetColumnComponent, decorators: [{
|
|
6354
6359
|
type: Component,
|
|
6355
6360
|
args: [{
|
|
6356
6361
|
template: `
|
|
@@ -6413,8 +6418,8 @@ class AXPTagableBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
6413
6418
|
cls[`ax-flex-1`] = true;
|
|
6414
6419
|
return cls;
|
|
6415
6420
|
}
|
|
6416
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6417
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
6421
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPTagableBoxWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6422
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: AXPTagableBoxWidgetEditComponent, isStandalone: true, selector: "axp-tagable-box-widget", host: { properties: { "class": "this.__class" } }, usesInheritance: true, ngImport: i0, template: `
|
|
6418
6423
|
<div class="ax-grid ax-grid-cols-12 ax-gap-4">
|
|
6419
6424
|
<!-- نمایش Select Box با دکمه اضافه کردن آیتم -->
|
|
6420
6425
|
<ax-select-box
|
|
@@ -6455,7 +6460,7 @@ class AXPTagableBoxWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
6455
6460
|
</div>
|
|
6456
6461
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.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$2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3$2.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i3$2.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: i3.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.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "isItemTruncated", "showItemTooltip", "dataSource", "minRecordsForSearch", "caption", "itemTemplate", "selectedTemplate", "emptyTemplate", "loadingTemplate", "dropdownWidth", "searchBoxAutoFocus"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onOpened", "onClosed", "onItemSelected", "onItemClick"] }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i6$2.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 }); }
|
|
6457
6462
|
}
|
|
6458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6463
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPTagableBoxWidgetEditComponent, decorators: [{
|
|
6459
6464
|
type: Component,
|
|
6460
6465
|
args: [{
|
|
6461
6466
|
selector: 'axp-tagable-box-widget',
|
|
@@ -6523,10 +6528,10 @@ var tagableBoxWidgetEdit_component = /*#__PURE__*/Object.freeze({
|
|
|
6523
6528
|
});
|
|
6524
6529
|
|
|
6525
6530
|
class AXPTagableBoxWidgetFilterComponent extends AXPValueWidgetComponent {
|
|
6526
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6527
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
6531
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPTagableBoxWidgetFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6532
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: AXPTagableBoxWidgetFilterComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ``, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6528
6533
|
}
|
|
6529
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPTagableBoxWidgetFilterComponent, decorators: [{
|
|
6530
6535
|
type: Component,
|
|
6531
6536
|
args: [{
|
|
6532
6537
|
template: ``,
|
|
@@ -6561,8 +6566,8 @@ class AXPTagableBoxWidgetPrintComponent extends AXPValueWidgetComponent {
|
|
|
6561
6566
|
return Array.isArray(value) ? value : [value];
|
|
6562
6567
|
}, ...(ngDevMode ? [{ debugName: "getData" }] : []));
|
|
6563
6568
|
}
|
|
6564
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6565
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
6569
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPTagableBoxWidgetPrintComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6570
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: AXPTagableBoxWidgetPrintComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
6566
6571
|
<div>
|
|
6567
6572
|
@if (useSelectBox() && getData().length > 0) { @for (item of getData(); track $index) {
|
|
6568
6573
|
<span class="ax-bg-slate-100 ax-px-2 ax-py-1 ax-rounded ax-mr-2 ax-mb-2 ax-inline-block">{{
|
|
@@ -6578,7 +6583,7 @@ class AXPTagableBoxWidgetPrintComponent extends AXPValueWidgetComponent {
|
|
|
6578
6583
|
</div>
|
|
6579
6584
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6580
6585
|
}
|
|
6581
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPTagableBoxWidgetPrintComponent, decorators: [{
|
|
6582
6587
|
type: Component,
|
|
6583
6588
|
args: [{
|
|
6584
6589
|
template: `
|
|
@@ -6627,14 +6632,14 @@ class AXPTagableBoxWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
6627
6632
|
return Array.isArray(value) ? value : [value];
|
|
6628
6633
|
}, ...(ngDevMode ? [{ debugName: "getData" }] : []));
|
|
6629
6634
|
}
|
|
6630
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6631
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
6635
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPTagableBoxWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6636
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: AXPTagableBoxWidgetViewComponent, isStandalone: true, selector: "axp-tagable-box-widget", usesInheritance: true, ngImport: i0, template: `
|
|
6632
6637
|
@for (item of internalValue(); track $index) {
|
|
6633
6638
|
<ax-badge [look]="'twotone'" [text]="item" color="primary"></ax-badge>
|
|
6634
6639
|
}
|
|
6635
6640
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6636
6641
|
}
|
|
6637
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6642
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPTagableBoxWidgetViewComponent, decorators: [{
|
|
6638
6643
|
type: Component,
|
|
6639
6644
|
args: [{
|
|
6640
6645
|
selector: 'axp-tagable-box-widget',
|
|
@@ -6730,8 +6735,8 @@ class AXPWidgetSelectorWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
6730
6735
|
const widget = this.widgetRegisteryService.resolve(e.values.type);
|
|
6731
6736
|
this.setValue({ title: widget?.title, ...e.values });
|
|
6732
6737
|
}
|
|
6733
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6734
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.
|
|
6738
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPWidgetSelectorWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6739
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: AXPWidgetSelectorWidgetEditComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "textbox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
6735
6740
|
<ax-text-box [ngModel]="displayText()" [placeholder]="placeholder()" [readonly]="true">
|
|
6736
6741
|
@for (validation of validationRules(); track $index) {
|
|
6737
6742
|
<ax-validation-rule
|
|
@@ -6752,7 +6757,7 @@ class AXPWidgetSelectorWidgetEditComponent extends AXPValueWidgetComponent {
|
|
|
6752
6757
|
}
|
|
6753
6758
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.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: i3.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$2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3$2.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 }); }
|
|
6754
6759
|
}
|
|
6755
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6760
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPWidgetSelectorWidgetEditComponent, decorators: [{
|
|
6756
6761
|
type: Component,
|
|
6757
6762
|
args: [{
|
|
6758
6763
|
template: `
|
|
@@ -6799,10 +6804,10 @@ var widgetSelectorWidgetEdit_component = /*#__PURE__*/Object.freeze({
|
|
|
6799
6804
|
});
|
|
6800
6805
|
|
|
6801
6806
|
class AXPWidgetSelectorWidgetViewComponent extends AXPValueWidgetComponent {
|
|
6802
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6803
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.
|
|
6807
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPWidgetSelectorWidgetViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
6808
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.4", type: AXPWidgetSelectorWidgetViewComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `{{ getValue()?.title }}`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
6804
6809
|
}
|
|
6805
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPWidgetSelectorWidgetViewComponent, decorators: [{
|
|
6806
6811
|
type: Component,
|
|
6807
6812
|
args: [{
|
|
6808
6813
|
template: `{{ getValue()?.title }}`,
|
|
@@ -6879,10 +6884,10 @@ class AXPEntityCreatePopupAction extends AXPWorkflowAction {
|
|
|
6879
6884
|
}
|
|
6880
6885
|
}
|
|
6881
6886
|
}
|
|
6882
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6883
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
6887
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityCreatePopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6888
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityCreatePopupAction }); }
|
|
6884
6889
|
}
|
|
6885
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityCreatePopupAction, decorators: [{
|
|
6886
6891
|
type: Injectable
|
|
6887
6892
|
}] });
|
|
6888
6893
|
class AXPEntityCreateSubmittedAction extends AXPWorkflowAction {
|
|
@@ -6890,10 +6895,10 @@ class AXPEntityCreateSubmittedAction extends AXPWorkflowAction {
|
|
|
6890
6895
|
this.dispatch(AXPEntityCreateEvent({ entity: context.getVariable('entity'), meta: context.getVariable('meta') }));
|
|
6891
6896
|
this.dispatch(AXPRefreshEvent({ entity: context.getVariable('entity'), meta: context.getVariable('meta') }));
|
|
6892
6897
|
}
|
|
6893
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6894
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
6898
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityCreateSubmittedAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6899
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityCreateSubmittedAction }); }
|
|
6895
6900
|
}
|
|
6896
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6901
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityCreateSubmittedAction, decorators: [{
|
|
6897
6902
|
type: Injectable
|
|
6898
6903
|
}] });
|
|
6899
6904
|
const AXPCreateEntityWorkflow = {
|
|
@@ -6984,10 +6989,10 @@ class AXPQuickEntityModifyPopupAction extends AXPWorkflowAction {
|
|
|
6984
6989
|
context.setVariable('data', cloneDeep(popup.data.context));
|
|
6985
6990
|
}
|
|
6986
6991
|
}
|
|
6987
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
6988
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
6992
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPQuickEntityModifyPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6993
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPQuickEntityModifyPopupAction }); }
|
|
6989
6994
|
}
|
|
6990
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
6995
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPQuickEntityModifyPopupAction, decorators: [{
|
|
6991
6996
|
type: Injectable
|
|
6992
6997
|
}] });
|
|
6993
6998
|
const AXPQuickModifyEntityWorkflow = {
|
|
@@ -7044,10 +7049,10 @@ class AXPEntityApplyUpdatesAction extends AXPWorkflowAction {
|
|
|
7044
7049
|
context.setOutput('error', error);
|
|
7045
7050
|
}
|
|
7046
7051
|
}
|
|
7047
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
7048
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
7052
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityApplyUpdatesAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7053
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityApplyUpdatesAction }); }
|
|
7049
7054
|
}
|
|
7050
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7055
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityApplyUpdatesAction, decorators: [{
|
|
7051
7056
|
type: Injectable
|
|
7052
7057
|
}] });
|
|
7053
7058
|
|
|
@@ -7066,10 +7071,10 @@ class AXPShowDetailViewAction extends AXPWorkflowAction {
|
|
|
7066
7071
|
context.setVariable('payload', newPayload);
|
|
7067
7072
|
this.navigation.execute(context);
|
|
7068
7073
|
}
|
|
7069
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
7070
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
7074
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPShowDetailViewAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7075
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPShowDetailViewAction }); }
|
|
7071
7076
|
}
|
|
7072
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7077
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPShowDetailViewAction, decorators: [{
|
|
7073
7078
|
type: Injectable
|
|
7074
7079
|
}] });
|
|
7075
7080
|
const AXPShowDetailsViewWorkflow = {
|
|
@@ -7123,10 +7128,10 @@ class AXPShowFileUploaderPopupAction extends AXPWorkflowAction {
|
|
|
7123
7128
|
context.setVariable('data', cloneDeep(entityData));
|
|
7124
7129
|
}
|
|
7125
7130
|
}
|
|
7126
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
7127
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
7131
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPShowFileUploaderPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7132
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPShowFileUploaderPopupAction }); }
|
|
7128
7133
|
}
|
|
7129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPShowFileUploaderPopupAction, decorators: [{
|
|
7130
7135
|
type: Injectable
|
|
7131
7136
|
}] });
|
|
7132
7137
|
const AXPShowFileUploaderPopupWorkflow = {
|
|
@@ -7177,10 +7182,10 @@ class AXPShowListViewAction extends AXPWorkflowAction {
|
|
|
7177
7182
|
context.setVariable('payload', newPayload);
|
|
7178
7183
|
this.navigation.execute(context);
|
|
7179
7184
|
}
|
|
7180
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
7181
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
7185
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPShowListViewAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7186
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPShowListViewAction }); }
|
|
7182
7187
|
}
|
|
7183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPShowListViewAction, decorators: [{
|
|
7184
7189
|
type: Injectable
|
|
7185
7190
|
}] });
|
|
7186
7191
|
const AXPShowListViewWorkflow = {
|
|
@@ -7269,9 +7274,9 @@ class AXPEntityModule {
|
|
|
7269
7274
|
},
|
|
7270
7275
|
});
|
|
7271
7276
|
}
|
|
7272
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
7273
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.
|
|
7274
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.
|
|
7277
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityModule, deps: [{ token: i1$2.AXPAppStartUpService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7278
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityModule, imports: [RouterModule, i2$2.AXPWorkflowModule, i3$1.AXPWidgetCoreModule] }); }
|
|
7279
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityModule, providers: [
|
|
7275
7280
|
{
|
|
7276
7281
|
provide: ROUTES,
|
|
7277
7282
|
multi: true,
|
|
@@ -7299,7 +7304,7 @@ class AXPEntityModule {
|
|
|
7299
7304
|
},
|
|
7300
7305
|
{
|
|
7301
7306
|
key: 'Entity:Create',
|
|
7302
|
-
command: () => import('./acorex-platform-layout-entity-create-entity.command-
|
|
7307
|
+
command: () => import('./acorex-platform-layout-entity-create-entity.command-CuueLekJ.mjs').then((c) => c.AXPCreateEntityCommand),
|
|
7303
7308
|
},
|
|
7304
7309
|
]),
|
|
7305
7310
|
provideQuerySetups([
|
|
@@ -7336,7 +7341,7 @@ class AXPEntityModule {
|
|
|
7336
7341
|
},
|
|
7337
7342
|
functions: {},
|
|
7338
7343
|
}),
|
|
7339
|
-
|
|
7344
|
+
AXPWidgetCoreModule.forChild({
|
|
7340
7345
|
widgets: [
|
|
7341
7346
|
AXPLookupWidget,
|
|
7342
7347
|
AXPWidgetSelectorWidget,
|
|
@@ -7346,7 +7351,7 @@ class AXPEntityModule {
|
|
|
7346
7351
|
],
|
|
7347
7352
|
})] }); }
|
|
7348
7353
|
}
|
|
7349
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityModule, decorators: [{
|
|
7350
7355
|
type: NgModule,
|
|
7351
7356
|
args: [{
|
|
7352
7357
|
imports: [
|
|
@@ -7378,7 +7383,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
|
|
|
7378
7383
|
},
|
|
7379
7384
|
functions: {},
|
|
7380
7385
|
}),
|
|
7381
|
-
|
|
7386
|
+
AXPWidgetCoreModule.forChild({
|
|
7382
7387
|
widgets: [
|
|
7383
7388
|
AXPLookupWidget,
|
|
7384
7389
|
AXPWidgetSelectorWidget,
|
|
@@ -7418,7 +7423,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.8", ngImpor
|
|
|
7418
7423
|
},
|
|
7419
7424
|
{
|
|
7420
7425
|
key: 'Entity:Create',
|
|
7421
|
-
command: () => import('./acorex-platform-layout-entity-create-entity.command-
|
|
7426
|
+
command: () => import('./acorex-platform-layout-entity-create-entity.command-CuueLekJ.mjs').then((c) => c.AXPCreateEntityCommand),
|
|
7422
7427
|
},
|
|
7423
7428
|
]),
|
|
7424
7429
|
provideQuerySetups([
|
|
@@ -7519,10 +7524,10 @@ class AXPGetEntityDetailsQuery {
|
|
|
7519
7524
|
throw new Error(`Failed to fetch entity data: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
7520
7525
|
}
|
|
7521
7526
|
}
|
|
7522
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
7523
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
7527
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPGetEntityDetailsQuery, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7528
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPGetEntityDetailsQuery, providedIn: 'root' }); }
|
|
7524
7529
|
}
|
|
7525
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPGetEntityDetailsQuery, decorators: [{
|
|
7526
7531
|
type: Injectable,
|
|
7527
7532
|
args: [{ providedIn: 'root' }]
|
|
7528
7533
|
}] });
|
|
@@ -7545,10 +7550,10 @@ class AXPEntityDynamicFormDialogService {
|
|
|
7545
7550
|
entity(fullName) {
|
|
7546
7551
|
return new InterfaceSelector(this.entityRegistry, this.formBuilder, this.layoutTheme, fullName);
|
|
7547
7552
|
}
|
|
7548
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
7549
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
7553
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityDynamicFormDialogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7554
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityDynamicFormDialogService, providedIn: 'root' }); }
|
|
7550
7555
|
}
|
|
7551
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7556
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPEntityDynamicFormDialogService, decorators: [{
|
|
7552
7557
|
type: Injectable,
|
|
7553
7558
|
args: [{ providedIn: 'root' }]
|
|
7554
7559
|
}] });
|
|
@@ -7758,7 +7763,7 @@ function toFieldLayout(layout) {
|
|
|
7758
7763
|
return undefined;
|
|
7759
7764
|
// Map AXPGridLayoutOptions -> AXPDynamicFormFieldDefinition['layout']
|
|
7760
7765
|
const getSpan = (key) => positions?.[key]?.colSpan;
|
|
7761
|
-
const d = getSpan('
|
|
7766
|
+
const d = getSpan('sm');
|
|
7762
7767
|
const md = getSpan('md');
|
|
7763
7768
|
const lg = getSpan('lg');
|
|
7764
7769
|
const xl = getSpan('xl');
|
|
@@ -7908,10 +7913,10 @@ class AXPMiddlewareEntityStorageService extends AXPEntityStorageService {
|
|
|
7908
7913
|
const ctx = this.createCtx('query', entityName, { request });
|
|
7909
7914
|
return this.run(ctx, () => this.backend.query(entityName, request));
|
|
7910
7915
|
}
|
|
7911
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.
|
|
7912
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.
|
|
7916
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPMiddlewareEntityStorageService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7917
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPMiddlewareEntityStorageService }); }
|
|
7913
7918
|
}
|
|
7914
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.
|
|
7919
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPMiddlewareEntityStorageService, decorators: [{
|
|
7915
7920
|
type: Injectable
|
|
7916
7921
|
}] });
|
|
7917
7922
|
|
|
@@ -8105,9 +8110,293 @@ function detectEntityChanges(oldObj, newObj) {
|
|
|
8105
8110
|
}
|
|
8106
8111
|
//#endregion
|
|
8107
8112
|
|
|
8113
|
+
class AXPLookupFilterWidgetEditComponent extends AXPValueWidgetComponent {
|
|
8114
|
+
constructor() {
|
|
8115
|
+
super(...arguments);
|
|
8116
|
+
this.injector = inject(Injector);
|
|
8117
|
+
this.entityResolver = inject(AXPEntityResolver);
|
|
8118
|
+
this.formatService = inject(AXFormatService);
|
|
8119
|
+
this.popupService = inject(AXPopupService);
|
|
8120
|
+
this.entityDataSelectorService = inject(AXPEntityDataSelectorService);
|
|
8121
|
+
this.destroyRef = inject(DestroyRef);
|
|
8122
|
+
this.translateService = inject(AXTranslationService);
|
|
8123
|
+
this.expose = computed(() => this.options()['expose'], ...(ngDevMode ? [{ debugName: "expose" }] : []));
|
|
8124
|
+
this.entity = computed(() => this.options()['entity'], ...(ngDevMode ? [{ debugName: "entity" }] : []));
|
|
8125
|
+
this.textField = computed(() => {
|
|
8126
|
+
return (this.entityDef()?.formats.lookup ?? this.entityDef()?.properties.find((c) => c.name != 'id')?.name ?? 'title');
|
|
8127
|
+
}, ...(ngDevMode ? [{ debugName: "textField" }] : []));
|
|
8128
|
+
this.entityDef = signal(null, ...(ngDevMode ? [{ debugName: "entityDef" }] : []));
|
|
8129
|
+
this.searchTerm = signal(null, ...(ngDevMode ? [{ debugName: "searchTerm" }] : []));
|
|
8130
|
+
this.displayText = signal('', ...(ngDevMode ? [{ debugName: "displayText" }] : []));
|
|
8131
|
+
this.selectedItem = signal(null, ...(ngDevMode ? [{ debugName: "selectedItem" }] : []));
|
|
8132
|
+
this.isLoading = signal(false, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
|
|
8133
|
+
this.isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
8134
|
+
this.placeholder = computed(() => {
|
|
8135
|
+
return this.translateService.translateSync('widget.lookup.search');
|
|
8136
|
+
}, ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
|
|
8137
|
+
this.efDisplay = effect(async () => {
|
|
8138
|
+
const value = this.getValue();
|
|
8139
|
+
if (isNil(value)) {
|
|
8140
|
+
this.displayText.set('');
|
|
8141
|
+
}
|
|
8142
|
+
else if (typeof value == 'object' && !Array.isArray(value)) {
|
|
8143
|
+
this.displayText.set(this.formatService.format(this.textField(), 'string', value));
|
|
8144
|
+
}
|
|
8145
|
+
else if (value != null) {
|
|
8146
|
+
await this.findByValue();
|
|
8147
|
+
}
|
|
8148
|
+
}, ...(ngDevMode ? [{ debugName: "efDisplay" }] : []));
|
|
8149
|
+
this.efEntity = effect(async () => {
|
|
8150
|
+
const [module, entity] = this.entity().split('.');
|
|
8151
|
+
this.entityDef.set(await this.entityResolver.get(module, entity));
|
|
8152
|
+
}, ...(ngDevMode ? [{ debugName: "efEntity" }] : []));
|
|
8153
|
+
}
|
|
8154
|
+
ngOnInit() {
|
|
8155
|
+
super.ngOnInit();
|
|
8156
|
+
//
|
|
8157
|
+
// this.builderService.onContextChanged.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(async (c) => {
|
|
8158
|
+
// if (c.path == this.path) {
|
|
8159
|
+
// if (this.getValue()) {
|
|
8160
|
+
// await this.findByValue();
|
|
8161
|
+
// }
|
|
8162
|
+
// }
|
|
8163
|
+
// });
|
|
8164
|
+
}
|
|
8165
|
+
async findByValue() {
|
|
8166
|
+
this.isLoading.set(true);
|
|
8167
|
+
const byKey = this.entityDef()?.queries.byKey?.execute;
|
|
8168
|
+
if (byKey) {
|
|
8169
|
+
const item = await byKey(this.getValue());
|
|
8170
|
+
this.setItems(item);
|
|
8171
|
+
}
|
|
8172
|
+
this.isLoading.set(false);
|
|
8173
|
+
}
|
|
8174
|
+
handleOnClick(e) {
|
|
8175
|
+
this.showSelector();
|
|
8176
|
+
}
|
|
8177
|
+
async showSelector() {
|
|
8178
|
+
this.isOpen.set(true);
|
|
8179
|
+
try {
|
|
8180
|
+
const result = await this.entityDataSelectorService.open({
|
|
8181
|
+
entity: this.entityDef(),
|
|
8182
|
+
title: `${this.translateService.translateSync('@general:widgets.lookup.search')} ${this.translateService.translateSync(this.entityDef()?.formats.plural)}`,
|
|
8183
|
+
allowMultiple: false,
|
|
8184
|
+
filters: this.filter,
|
|
8185
|
+
parentFilters: null,
|
|
8186
|
+
columns: [],
|
|
8187
|
+
allowCreate: false
|
|
8188
|
+
});
|
|
8189
|
+
if (result && 'items' in result && result.items.length > 0) {
|
|
8190
|
+
this.setItems(result.items[0]);
|
|
8191
|
+
}
|
|
8192
|
+
}
|
|
8193
|
+
catch (error) {
|
|
8194
|
+
console.error('Error opening entity data selector:', error);
|
|
8195
|
+
}
|
|
8196
|
+
finally {
|
|
8197
|
+
this.isOpen.set(false);
|
|
8198
|
+
this.textbox.focus();
|
|
8199
|
+
}
|
|
8200
|
+
}
|
|
8201
|
+
handleValueChange(e) {
|
|
8202
|
+
this.searchTerm.set(e.value);
|
|
8203
|
+
}
|
|
8204
|
+
handleOnBlur(e) {
|
|
8205
|
+
const com = e.component;
|
|
8206
|
+
const input = com['input'].nativeElement;
|
|
8207
|
+
setTimeout(() => {
|
|
8208
|
+
if (this.selectedItem()) {
|
|
8209
|
+
input.value = this.displayText();
|
|
8210
|
+
}
|
|
8211
|
+
else {
|
|
8212
|
+
if (!this.isOpen()) {
|
|
8213
|
+
input.value = '';
|
|
8214
|
+
this.searchTerm.set(null);
|
|
8215
|
+
}
|
|
8216
|
+
}
|
|
8217
|
+
}, 100);
|
|
8218
|
+
}
|
|
8219
|
+
async handleKeyDown(e) {
|
|
8220
|
+
const keyEvent = e.nativeEvent;
|
|
8221
|
+
const value = this.searchTerm()?.trim();
|
|
8222
|
+
if ((keyEvent.code == 'Enter' || keyEvent.code == 'NumpadEnter') && value) {
|
|
8223
|
+
this.isLoading.set(true);
|
|
8224
|
+
const result = await this.searchByValue(value);
|
|
8225
|
+
if (result?.total == 1) {
|
|
8226
|
+
this.setItems(result.items[0]);
|
|
8227
|
+
}
|
|
8228
|
+
else {
|
|
8229
|
+
this.showSelector();
|
|
8230
|
+
}
|
|
8231
|
+
this.isLoading.set(false);
|
|
8232
|
+
}
|
|
8233
|
+
}
|
|
8234
|
+
setItems(item) {
|
|
8235
|
+
this.searchTerm.set(null);
|
|
8236
|
+
this.displayText.set('');
|
|
8237
|
+
this.selectedItem.set(item);
|
|
8238
|
+
const text = this.formatService.format(this.textField(), 'string', item);
|
|
8239
|
+
this.displayText.set(text);
|
|
8240
|
+
this.setValue(item.id);
|
|
8241
|
+
// extract data from valueField and set context by expose path
|
|
8242
|
+
if (this.expose()) {
|
|
8243
|
+
if (typeof this.expose() == 'string') {
|
|
8244
|
+
this.contextService.update(this.expose(), item);
|
|
8245
|
+
}
|
|
8246
|
+
// support multiple expose items
|
|
8247
|
+
else if (Array.isArray(this.expose())) {
|
|
8248
|
+
this.expose().forEach((i) => {
|
|
8249
|
+
if (typeof i == 'string') {
|
|
8250
|
+
this.contextService.update(i, item);
|
|
8251
|
+
}
|
|
8252
|
+
else {
|
|
8253
|
+
// extract data from item by source path and set context by target path
|
|
8254
|
+
const key = get(item, i.source);
|
|
8255
|
+
this.contextService.update(i.target, key);
|
|
8256
|
+
}
|
|
8257
|
+
});
|
|
8258
|
+
}
|
|
8259
|
+
// extract data from item by source path and set context by target path
|
|
8260
|
+
else if (typeof this.expose() == 'object') {
|
|
8261
|
+
const i = this.expose();
|
|
8262
|
+
const key = get(item, i.source);
|
|
8263
|
+
this.contextService.update(i.target, key);
|
|
8264
|
+
}
|
|
8265
|
+
}
|
|
8266
|
+
}
|
|
8267
|
+
handleClearClick() {
|
|
8268
|
+
this.clear();
|
|
8269
|
+
}
|
|
8270
|
+
async searchByValue(value) {
|
|
8271
|
+
if (!this.entityDef())
|
|
8272
|
+
return null;
|
|
8273
|
+
const entity = this.entityDef();
|
|
8274
|
+
const searchFields = entity.properties.filter(p => p.options?.filter?.inline?.enabled);
|
|
8275
|
+
const inlineFilters = {
|
|
8276
|
+
field: null,
|
|
8277
|
+
logic: 'or',
|
|
8278
|
+
operator: null,
|
|
8279
|
+
filters: [],
|
|
8280
|
+
};
|
|
8281
|
+
if (value && searchFields.length > 0) {
|
|
8282
|
+
searchFields.forEach((p) => {
|
|
8283
|
+
inlineFilters.filters?.push({
|
|
8284
|
+
field: p.name,
|
|
8285
|
+
operator: { type: 'contains' },
|
|
8286
|
+
value,
|
|
8287
|
+
});
|
|
8288
|
+
});
|
|
8289
|
+
}
|
|
8290
|
+
const func = entity.queries.list?.execute;
|
|
8291
|
+
return await func({ filter: inlineFilters, take: 10 });
|
|
8292
|
+
}
|
|
8293
|
+
clear() {
|
|
8294
|
+
this.setValue(null);
|
|
8295
|
+
this.searchTerm.set('');
|
|
8296
|
+
this.selectedItem.set(null);
|
|
8297
|
+
}
|
|
8298
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPLookupFilterWidgetEditComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
8299
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.4", type: AXPLookupFilterWidgetEditComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "textbox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
8300
|
+
<ax-text-box
|
|
8301
|
+
[ngModel]="displayText()"
|
|
8302
|
+
(onValueChanged)="handleValueChange($event)"
|
|
8303
|
+
[placeholder]="placeholder()"
|
|
8304
|
+
(onKeyUp)="handleKeyDown($event)"
|
|
8305
|
+
(onBlur)="handleOnBlur($event)"
|
|
8306
|
+
>
|
|
8307
|
+
@for (validation of validationRules(); track $index) {
|
|
8308
|
+
<ax-validation-rule
|
|
8309
|
+
[rule]="validation.rule"
|
|
8310
|
+
[message]="validation.options?.message"
|
|
8311
|
+
[options]="validation.options"
|
|
8312
|
+
></ax-validation-rule>
|
|
8313
|
+
}
|
|
8314
|
+
<ax-clear-button (click)="handleClearClick()"></ax-clear-button>
|
|
8315
|
+
|
|
8316
|
+
<ax-suffix>
|
|
8317
|
+
<ax-button color="ghost" look="twotone" [disabled]="isLoading()" (onClick)="handleOnClick($event)">
|
|
8318
|
+
@if (isLoading()) {
|
|
8319
|
+
<ax-loading></ax-loading>
|
|
8320
|
+
} @else {
|
|
8321
|
+
<ax-icon icon="far fa-search"> </ax-icon>
|
|
8322
|
+
}
|
|
8323
|
+
</ax-button>
|
|
8324
|
+
</ax-suffix>
|
|
8325
|
+
</ax-text-box>
|
|
8326
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.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: i3.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$2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3$2.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i3$2.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: i4.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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8327
|
+
}
|
|
8328
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.4", ngImport: i0, type: AXPLookupFilterWidgetEditComponent, decorators: [{
|
|
8329
|
+
type: Component,
|
|
8330
|
+
args: [{
|
|
8331
|
+
template: `
|
|
8332
|
+
<ax-text-box
|
|
8333
|
+
[ngModel]="displayText()"
|
|
8334
|
+
(onValueChanged)="handleValueChange($event)"
|
|
8335
|
+
[placeholder]="placeholder()"
|
|
8336
|
+
(onKeyUp)="handleKeyDown($event)"
|
|
8337
|
+
(onBlur)="handleOnBlur($event)"
|
|
8338
|
+
>
|
|
8339
|
+
@for (validation of validationRules(); track $index) {
|
|
8340
|
+
<ax-validation-rule
|
|
8341
|
+
[rule]="validation.rule"
|
|
8342
|
+
[message]="validation.options?.message"
|
|
8343
|
+
[options]="validation.options"
|
|
8344
|
+
></ax-validation-rule>
|
|
8345
|
+
}
|
|
8346
|
+
<ax-clear-button (click)="handleClearClick()"></ax-clear-button>
|
|
8347
|
+
|
|
8348
|
+
<ax-suffix>
|
|
8349
|
+
<ax-button color="ghost" look="twotone" [disabled]="isLoading()" (onClick)="handleOnClick($event)">
|
|
8350
|
+
@if (isLoading()) {
|
|
8351
|
+
<ax-loading></ax-loading>
|
|
8352
|
+
} @else {
|
|
8353
|
+
<ax-icon icon="far fa-search"> </ax-icon>
|
|
8354
|
+
}
|
|
8355
|
+
</ax-button>
|
|
8356
|
+
</ax-suffix>
|
|
8357
|
+
</ax-text-box>
|
|
8358
|
+
`,
|
|
8359
|
+
standalone: true,
|
|
8360
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8361
|
+
imports: [
|
|
8362
|
+
FormsModule,
|
|
8363
|
+
AXSelectBoxModule,
|
|
8364
|
+
AXTextBoxModule,
|
|
8365
|
+
AXButtonModule,
|
|
8366
|
+
AXDecoratorModule,
|
|
8367
|
+
AXLoadingModule,
|
|
8368
|
+
AXValidationModule,
|
|
8369
|
+
AXFormModule,
|
|
8370
|
+
],
|
|
8371
|
+
}]
|
|
8372
|
+
}], propDecorators: { textbox: [{
|
|
8373
|
+
type: ViewChild,
|
|
8374
|
+
args: [AXTextBoxComponent]
|
|
8375
|
+
}] } });
|
|
8376
|
+
|
|
8377
|
+
var lookupFilterWidgetEdit_component = /*#__PURE__*/Object.freeze({
|
|
8378
|
+
__proto__: null,
|
|
8379
|
+
AXPLookupFilterWidgetEditComponent: AXPLookupFilterWidgetEditComponent
|
|
8380
|
+
});
|
|
8381
|
+
|
|
8382
|
+
const AXPLookupFilterWidget = {
|
|
8383
|
+
name: 'lookup-filter',
|
|
8384
|
+
title: 'Lookup Filter',
|
|
8385
|
+
// categories: AXP_WIDGETS_FILTER_CATEGORY,
|
|
8386
|
+
type: 'filter',
|
|
8387
|
+
groups: [AXPWidgetGroupEnum.EntityWidget],
|
|
8388
|
+
icon: 'fa-light fa-square',
|
|
8389
|
+
properties: [AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY, AXP_DISABLED_PROPERTY],
|
|
8390
|
+
components: {
|
|
8391
|
+
edit: {
|
|
8392
|
+
component: () => Promise.resolve().then(function () { return lookupFilterWidgetEdit_component; }).then((c) => c.AXPLookupFilterWidgetEditComponent),
|
|
8393
|
+
},
|
|
8394
|
+
},
|
|
8395
|
+
};
|
|
8396
|
+
|
|
8108
8397
|
/**
|
|
8109
8398
|
* Generated bundle index. Do not edit.
|
|
8110
8399
|
*/
|
|
8111
8400
|
|
|
8112
|
-
export { AXMEntityCrudService, AXMEntityCrudServiceImpl, AXPCreateEntityWorkflow, AXPDataSeederService, AXPDeleteEntityWorkflow, AXPEntityApplyUpdatesAction, AXPEntityCommandTriggerViewModel, AXPEntityCreateEvent, AXPEntityCreatePopupAction, AXPEntityCreateSubmittedAction, AXPEntityCreateViewElementViewModel, AXPEntityCreateViewModelFactory, AXPEntityCreateViewSectionViewModel, AXPEntityDataProvider, AXPEntityDataProviderImpl, AXPEntityDefinitionRegistryService, AXPEntityDeletedEvent, AXPEntityDetailListViewModel, AXPEntityDetailPopoverComponent, AXPEntityDetailPopoverService, AXPEntityDetailViewModelFactory, AXPEntityDetailViewModelResolver, AXPEntityDynamicFormDialogService, AXPEntityEventDispatcherService, AXPEntityListViewColumnViewModel, AXPEntityListViewModelFactory, AXPEntityListViewModelResolver, AXPEntityMasterCreateViewModel, AXPEntityMasterListViewModel, AXPEntityMasterListViewQueryViewModel, AXPEntityMasterSingleElementViewModel, AXPEntityMasterSingleViewGroupViewModel, AXPEntityMasterSingleViewModel, AXPEntityMasterUpdateElementViewModel, AXPEntityMasterUpdateViewModel, AXPEntityMasterUpdateViewModelFactory, AXPEntityMiddleware, AXPEntityModifyConfirmedAction, AXPEntityModifyEvent, AXPEntityModifySectionPopupAction, AXPEntityModule, AXPEntityPerformDeleteAction, AXPEntityResolver, AXPEntityService, AXPEntityStorageService, AXPEntityUpdateViewSectionViewModel, AXPGetEntityDetailsQuery, AXPMiddlewareAbortError, AXPMiddlewareEntityStorageService, AXPModifyEntitySectionWorkflow, AXPOpenEntityDetailsCommand, AXPQuickEntityModifyPopupAction, AXPQuickModifyEntityWorkflow, AXPShowDetailViewAction, AXPShowDetailsViewWorkflow, AXPShowListViewAction, AXPShowListViewWorkflow, AXP_DATA_SEEDER_TOKEN, AXP_ENTITY_ACTION_PLUGIN, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER, AXP_ENTITY_MODIFIER, AXP_ENTITY_STORAGE_BACKEND, AXP_ENTITY_STORAGE_MIDDLEWARE, DEFAULT_COLUMN_WIDTHS, actionExists, columnWidthMiddlewareFactory, columnWidthMiddlewareProvider, createColumnWidthMiddlewareProvider, createModifierContext, detectEntityChanges, ensureListActions, entityDetailsCreateActions, entityDetailsCrudActions, entityDetailsEditAction, entityDetailsReferenceCondition, entityDetailsReferenceCreateActions, entityDetailsSimpleCondition, entityMasterBulkDeleteAction, entityMasterCreateAction, entityMasterCrudActions, entityMasterDeleteAction, entityMasterRecordActions, entityMasterViewAction, entityOverrideDetailsViewAction, eventDispatchMiddleware, isAXPMiddlewareAbortError };
|
|
8401
|
+
export { AXMEntityCrudService, AXMEntityCrudServiceImpl, AXPCreateEntityWorkflow, AXPDataSeederService, AXPDeleteEntityWorkflow, AXPEntityApplyUpdatesAction, AXPEntityCommandTriggerViewModel, AXPEntityCreateEvent, AXPEntityCreatePopupAction, AXPEntityCreateSubmittedAction, AXPEntityCreateViewElementViewModel, AXPEntityCreateViewModelFactory, AXPEntityCreateViewSectionViewModel, AXPEntityDataProvider, AXPEntityDataProviderImpl, AXPEntityDataSelectorService, AXPEntityDefinitionRegistryService, AXPEntityDeletedEvent, AXPEntityDetailListViewModel, AXPEntityDetailPopoverComponent, AXPEntityDetailPopoverService, AXPEntityDetailViewModelFactory, AXPEntityDetailViewModelResolver, AXPEntityDynamicFormDialogService, AXPEntityEventDispatcherService, AXPEntityListTableService, AXPEntityListViewColumnViewModel, AXPEntityListViewModelFactory, AXPEntityListViewModelResolver, AXPEntityListWidget, AXPEntityListWidgetViewComponent, AXPEntityMasterCreateViewModel, AXPEntityMasterListViewModel, AXPEntityMasterListViewQueryViewModel, AXPEntityMasterSingleElementViewModel, AXPEntityMasterSingleViewGroupViewModel, AXPEntityMasterSingleViewModel, AXPEntityMasterUpdateElementViewModel, AXPEntityMasterUpdateViewModel, AXPEntityMasterUpdateViewModelFactory, AXPEntityMiddleware, AXPEntityModifyConfirmedAction, AXPEntityModifyEvent, AXPEntityModifySectionPopupAction, AXPEntityModule, AXPEntityPerformDeleteAction, AXPEntityReferenceWidget, AXPEntityReferenceWidgetColumnComponent, AXPEntityReferenceWidgetDesignerComponent, AXPEntityReferenceWidgetEditComponent, AXPEntityReferenceWidgetPrintComponent, AXPEntityReferenceWidgetViewComponent, AXPEntityResolver, AXPEntityService, AXPEntityStorageService, AXPEntityUpdateViewSectionViewModel, AXPGetEntityDetailsQuery, AXPLookupFilterWidget, AXPLookupFilterWidgetEditComponent, AXPLookupWidget, AXPLookupWidgetColumnComponent, AXPLookupWidgetEditComponent, AXPLookupWidgetViewComponent, AXPMiddlewareAbortError, AXPMiddlewareEntityStorageService, AXPModifyEntitySectionWorkflow, AXPOpenEntityDetailsCommand, AXPQuickEntityModifyPopupAction, AXPQuickModifyEntityWorkflow, AXPShowDetailViewAction, AXPShowDetailsViewWorkflow, AXPShowListViewAction, AXPShowListViewWorkflow, AXPTagableBoxWidget, AXPTagableBoxWidgetColumnComponent, AXPTagableBoxWidgetEditComponent, AXPTagableBoxWidgetFilterComponent, AXPTagableBoxWidgetPrintComponent, AXPTagableBoxWidgetViewComponent, AXPWidgetSelectorWidget, AXPWidgetSelectorWidgetEditComponent, AXPWidgetSelectorWidgetViewComponent, AXP_DATA_SEEDER_TOKEN, AXP_ENTITY_ACTION_PLUGIN, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER, AXP_ENTITY_MODIFIER, AXP_ENTITY_STORAGE_BACKEND, AXP_ENTITY_STORAGE_MIDDLEWARE, DEFAULT_COLUMN_WIDTHS, actionExists, columnWidthMiddlewareFactory, columnWidthMiddlewareProvider, createColumnWidthMiddlewareProvider, createModifierContext, detectEntityChanges, ensureListActions, entityDetailsCreateActions, entityDetailsCrudActions, entityDetailsEditAction, entityDetailsReferenceCondition, entityDetailsReferenceCreateActions, entityDetailsSimpleCondition, entityMasterBulkDeleteAction, entityMasterCreateAction, entityMasterCrudActions, entityMasterDeleteAction, entityMasterRecordActions, entityMasterViewAction, entityOverrideDetailsViewAction, eventDispatchMiddleware, isAXPMiddlewareAbortError };
|
|
8113
8402
|
//# sourceMappingURL=acorex-platform-layout-entity.mjs.map
|