@acorex/platform 20.3.0-next.17 → 20.3.0-next.19
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/fesm2022/acorex-platform-layout-entity.mjs +11 -1
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +11 -14
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-DjNvH3OA.mjs → acorex-platform-themes-default-entity-master-list-view.component-nDHfQQ3O.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-DjNvH3OA.mjs.map → acorex-platform-themes-default-entity-master-list-view.component-nDHfQQ3O.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +2 -2
- package/layout/entity/index.d.ts +1 -0
- package/package.json +5 -5
|
@@ -20,7 +20,7 @@ import { AXDataSource } from '@acorex/cdk/common';
|
|
|
20
20
|
import { AXFormatService } from '@acorex/core/format';
|
|
21
21
|
import { AXPFilterOperatorMiddlewareService, AXPEntityCommandScope, getEntityInfo, AXPSettingService, AXPRefreshEvent, AXPReloadEvent, AXPCleanNestedFilters, AXPWorkflowNavigateAction, AXPToastAction, AXP_SEARCH_DEFINITION_PROVIDER } from '@acorex/platform/common';
|
|
22
22
|
import * as i1$2 from '@acorex/platform/core';
|
|
23
|
-
import { resolveActionLook, AXPExpressionEvaluatorService, AXPDistributedEventListenerService, AXPPlatformScope, getChangedPaths, extractValue, setSmart, AXPSystemActionType } from '@acorex/platform/core';
|
|
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';
|
|
25
25
|
import { AXPWorkflowService, ofType, createWorkFlowEvent, AXPWorkflowAction, AXPWorkflowModule } from '@acorex/platform/workflow';
|
|
26
26
|
import { AXPLayoutThemeService } from '@acorex/platform/themes/shared';
|
|
@@ -1544,6 +1544,7 @@ class AXPEntityMasterListViewModel {
|
|
|
1544
1544
|
this.widgetResolver = this.injector.get(AXPWidgetRegistryService);
|
|
1545
1545
|
this.expressionEvaluator = this.injector.get(AXPExpressionEvaluatorService);
|
|
1546
1546
|
this.commandService = this.injector.get(AXPCommandService);
|
|
1547
|
+
this.eventService = this.injector.get(AXPBroadcastEventService);
|
|
1547
1548
|
this.filterOperatorMiddleware = this.injector.get(AXPFilterOperatorMiddlewareService);
|
|
1548
1549
|
this.settingEntityKey = `${this.config.module}:${this.config.name}`;
|
|
1549
1550
|
this.destroyed = new Subject();
|
|
@@ -1688,6 +1689,15 @@ class AXPEntityMasterListViewModel {
|
|
|
1688
1689
|
this.events$.next({ action: 'refresh', meta: event.payload.meta });
|
|
1689
1690
|
}
|
|
1690
1691
|
});
|
|
1692
|
+
this.eventService
|
|
1693
|
+
.listen('REFRESH_LAYOUT')
|
|
1694
|
+
.pipe(takeUntil(this.destroyed))
|
|
1695
|
+
.subscribe((e) => {
|
|
1696
|
+
if (e.data.name == getEntityInfo(this.entityDef).source) {
|
|
1697
|
+
this.selectedItems.set([]);
|
|
1698
|
+
this.events$.next({ action: 'refresh' });
|
|
1699
|
+
}
|
|
1700
|
+
});
|
|
1691
1701
|
this.sortedFields.set(this.sortableFields());
|
|
1692
1702
|
}
|
|
1693
1703
|
async applySettings() {
|