@acorex/platform 20.3.0-next.21 → 20.3.0-next.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/index.d.ts +313 -66
- package/fesm2022/acorex-platform-common-common-settings.provider-9OHien_H.mjs +47 -0
- package/fesm2022/acorex-platform-common-common-settings.provider-9OHien_H.mjs.map +1 -0
- package/fesm2022/acorex-platform-common.mjs +542 -85
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +2 -2
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +8 -6
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +38 -31
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +2 -0
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +168 -5
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/layout/components/index.d.ts +1 -0
- package/layout/entity/index.d.ts +2 -0
- package/layout/views/index.d.ts +0 -1
- package/layout/widget-core/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ import { CommonModule } from '@angular/common';
|
|
|
18
18
|
import { castArray, get, cloneDeep, set, merge, isEqual, isNil, isEmpty, sortBy } from 'lodash-es';
|
|
19
19
|
import { AXDataSource } from '@acorex/cdk/common';
|
|
20
20
|
import { AXFormatService } from '@acorex/core/format';
|
|
21
|
-
import { AXPFilterOperatorMiddlewareService, AXPEntityCommandScope, getEntityInfo, AXPSettingService, AXPRefreshEvent, AXPReloadEvent, AXPCleanNestedFilters, AXPWorkflowNavigateAction, AXPToastAction, AXP_SEARCH_DEFINITION_PROVIDER } from '@acorex/platform/common';
|
|
21
|
+
import { AXPFilterOperatorMiddlewareService, AXPEntityCommandScope, getEntityInfo, AXPSettingService, AXPRefreshEvent, AXPReloadEvent, AXPCommonSettings, AXPCleanNestedFilters, AXPWorkflowNavigateAction, AXPToastAction, AXP_SEARCH_DEFINITION_PROVIDER } from '@acorex/platform/common';
|
|
22
22
|
import * as i1$2 from '@acorex/platform/core';
|
|
23
23
|
import { resolveActionLook, AXPExpressionEvaluatorService, AXPDistributedEventListenerService, AXPBroadcastEventService, AXPPlatformScope, getChangedPaths, extractValue, setSmart, AXPSystemActionType } from '@acorex/platform/core';
|
|
24
24
|
import * as i2$2 from '@acorex/platform/workflow';
|
|
@@ -2103,14 +2103,13 @@ class AXPEntityPerformDeleteAction extends AXPWorkflowAction {
|
|
|
2103
2103
|
this.dialogService = inject(AXDialogService);
|
|
2104
2104
|
this.loadingDialog = inject(AXLoadingDialogService);
|
|
2105
2105
|
this.translationService = inject(AXTranslationService);
|
|
2106
|
+
this.settingService = inject(AXPSettingService);
|
|
2106
2107
|
}
|
|
2107
2108
|
async execute(context) {
|
|
2108
2109
|
const moduleEntity = context.getVariable('entity');
|
|
2109
2110
|
const data = context.getVariable('data');
|
|
2110
2111
|
const meta = context.getVariable('meta');
|
|
2111
|
-
const
|
|
2112
|
-
const process = options?.['process'];
|
|
2113
|
-
const showResult = process?.showResult ?? true;
|
|
2112
|
+
const showResult = await this.settingService.get(AXPCommonSettings.EnableOperationToasts);
|
|
2114
2113
|
const entities = [];
|
|
2115
2114
|
if (moduleEntity != null) {
|
|
2116
2115
|
const ids = Array.isArray(data) ? data.map((c) => c.id) : [data.id];
|
|
@@ -3509,6 +3508,7 @@ class AXPTabListConverter extends AXPBaseRelatedEntityConverter {
|
|
|
3509
3508
|
showEntityActions: true,
|
|
3510
3509
|
showToolbar: false,
|
|
3511
3510
|
actions: actions,
|
|
3511
|
+
maxHeight: '300px',
|
|
3512
3512
|
},
|
|
3513
3513
|
},
|
|
3514
3514
|
],
|
|
@@ -4783,6 +4783,7 @@ class AXPEntityListWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
4783
4783
|
this.excludeColumns = computed(() => this.options()['excludeColumns'], ...(ngDevMode ? [{ debugName: "excludeColumns" }] : []));
|
|
4784
4784
|
this.includeColumns = computed(() => this.options()['includeColumns'], ...(ngDevMode ? [{ debugName: "includeColumns" }] : []));
|
|
4785
4785
|
this.externalActions = computed(() => this.options()['actions'], ...(ngDevMode ? [{ debugName: "externalActions" }] : []));
|
|
4786
|
+
this.maxHeight = computed(() => this.options()['maxHeight'], ...(ngDevMode ? [{ debugName: "maxHeight" }] : []));
|
|
4786
4787
|
this.showEntityActions = computed(() => this.options()['showEntityActions'] ?? true, ...(ngDevMode ? [{ debugName: "showEntityActions" }] : []));
|
|
4787
4788
|
this.showToolbar = computed(() => this.options()['showToolbar'] ?? true, ...(ngDevMode ? [{ debugName: "showToolbar" }] : []));
|
|
4788
4789
|
//actions
|
|
@@ -5133,7 +5134,7 @@ class AXPEntityListWidgetViewComponent extends AXPValueWidgetComponent {
|
|
|
5133
5134
|
}
|
|
5134
5135
|
</div>
|
|
5135
5136
|
}
|
|
5136
|
-
<div class="ax-flex ax-flex-col ax-gap-2 ax-h-full">
|
|
5137
|
+
<div class="ax-flex ax-flex-col ax-gap-2 ax-h-full" [style.max-height]="maxHeight()">
|
|
5137
5138
|
@if (toolbarNode() != null && showToolbar()) {
|
|
5138
5139
|
<ng-container
|
|
5139
5140
|
#toolbar
|
|
@@ -5239,7 +5240,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImpor
|
|
|
5239
5240
|
}
|
|
5240
5241
|
</div>
|
|
5241
5242
|
}
|
|
5242
|
-
<div class="ax-flex ax-flex-col ax-gap-2 ax-h-full">
|
|
5243
|
+
<div class="ax-flex ax-flex-col ax-gap-2 ax-h-full" [style.max-height]="maxHeight()">
|
|
5243
5244
|
@if (toolbarNode() != null && showToolbar()) {
|
|
5244
5245
|
<ng-container
|
|
5245
5246
|
#toolbar
|
|
@@ -5798,6 +5799,7 @@ class AXPEntityDataSelectorService {
|
|
|
5798
5799
|
name: column.name,
|
|
5799
5800
|
title: property.title || column.title || column.name,
|
|
5800
5801
|
visible: true,
|
|
5802
|
+
dataPath: column.options?.dataPath,
|
|
5801
5803
|
widget: {
|
|
5802
5804
|
type: widgetType,
|
|
5803
5805
|
options: widgetOptions
|