@acorex/platform 20.3.0-next.21 → 20.3.0-next.22

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.
@@ -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 options = context.getVariable('options');
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