@acorex/platform 19.1.16 → 19.2.1
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-designer.mjs +12 -12
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +38 -22
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-search.mjs +14 -12
- package/fesm2022/acorex-platform-layout-search.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-Cpzt0cCT.mjs → acorex-platform-themes-default-entity-master-list-view.component-DarhCaO1.mjs} +5 -5
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DarhCaO1.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-Cpdymm-f.mjs → acorex-platform-themes-default-entity-master-single-view.component-Bwgawuvl.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-Cpdymm-f.mjs.map → acorex-platform-themes-default-entity-master-single-view.component-Bwgawuvl.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-Cet1sYXJ.mjs +118 -0
- package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-Cet1sYXJ.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +29 -17
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-column.component-jeZBOEhl.mjs → acorex-platform-widgets-checkbox-widget-column.component-C8NRF4BO.mjs} +9 -9
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-C8NRF4BO.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-view.component-DU1niJES.mjs → acorex-platform-widgets-checkbox-widget-view.component-bf272Wuo.mjs} +9 -9
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-bf272Wuo.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +14 -22
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/entity/lib/entity-detail-list.viewmodel.d.ts +1 -0
- package/layout/entity/lib/entity-middleware.d.ts +10 -0
- package/layout/entity/lib/entity-registery.service.d.ts +1 -0
- package/layout/entity/lib/index.d.ts +1 -0
- package/package.json +5 -5
- package/themes/default/lib/layouts/root-layout/root-layout.component.d.ts +6 -0
- package/themes/default/lib/pages/theme-palette-preview/theme-palette-preview.page.d.ts +77 -0
- package/themes/shared/index.d.ts +1 -0
- package/widgets/lib/widgets/filters/select-filter/select-filter-widget-edit.component.d.ts +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-Cpzt0cCT.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-jeZBOEhl.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-DU1niJES.mjs.map +0 -1
|
@@ -138,9 +138,7 @@ class AXPEntityDetailListViewModel {
|
|
|
138
138
|
});
|
|
139
139
|
//****************** Title ******************//
|
|
140
140
|
this.title = computed(() => {
|
|
141
|
-
return
|
|
142
|
-
this.detailEntity()?.interfaces?.detail?.list?.title ??
|
|
143
|
-
this.detailEntity()?.formats.plural);
|
|
141
|
+
return this.detailEntityConfig.title ?? this.detailEntity()?.interfaces?.detail?.list?.title ?? this.detailEntity()?.formats.plural;
|
|
144
142
|
});
|
|
145
143
|
//****************** Inline filter ******************//
|
|
146
144
|
this.inlineFiltersPlaceholders = computed(() => {
|
|
@@ -155,15 +153,14 @@ class AXPEntityDetailListViewModel {
|
|
|
155
153
|
const list = this.detailEntity()?.interfaces?.master?.list?.actions ?? [];
|
|
156
154
|
return list.map((tr) => new AXPEntityCommandTriggerViewModel(this.detailEntity(), tr)) ?? [];
|
|
157
155
|
});
|
|
156
|
+
this.selectedScopeActionsCount = computed(() => {
|
|
157
|
+
return this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Selected).length;
|
|
158
|
+
});
|
|
158
159
|
this.primaryActions = computed(() => {
|
|
159
|
-
return this.allActions().filter((a) => a.priority == 'primary' &&
|
|
160
|
-
((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
161
|
-
(a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
160
|
+
return this.allActions().filter((a) => a.priority == 'primary' && ((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) || (a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
162
161
|
});
|
|
163
162
|
this.secondaryActions = computed(() => {
|
|
164
|
-
return this.allActions().filter((a) => a.priority == 'secondary' &&
|
|
165
|
-
((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) ||
|
|
166
|
-
(a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
163
|
+
return this.allActions().filter((a) => a.priority == 'secondary' && ((a.scope == AXPEntityCommandScope.Selected && this.hasSelectedItems()) || (a.scope == AXPEntityCommandScope.TypeLevel && !this.hasSelectedItems())));
|
|
167
164
|
});
|
|
168
165
|
this.primaryRowActions = computed(() => this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Individual && a.priority === 'primary'));
|
|
169
166
|
this.secondaryRowActions = computed(() => this.allActions().filter((a) => a.scope == AXPEntityCommandScope.Individual && a.priority === 'secondary'));
|
|
@@ -259,11 +256,7 @@ class AXPEntityDetailListViewModel {
|
|
|
259
256
|
}
|
|
260
257
|
//****************** Commands ******************//
|
|
261
258
|
async executeCommand(commandName, data = null) {
|
|
262
|
-
const action = this.allActions().find((c) => c.name == commandName &&
|
|
263
|
-
((this.selectedItems().length
|
|
264
|
-
? c.scope == AXPEntityCommandScope.Selected
|
|
265
|
-
: c.scope == AXPEntityCommandScope.Individual) ||
|
|
266
|
-
c.scope == AXPEntityCommandScope.TypeLevel));
|
|
259
|
+
const action = this.allActions().find((c) => c.name == commandName && ((this.selectedItems().length ? c.scope == AXPEntityCommandScope.Selected : c.scope == AXPEntityCommandScope.Individual) || c.scope == AXPEntityCommandScope.TypeLevel));
|
|
267
260
|
if (action?.scope == AXPEntityCommandScope.TypeLevel) {
|
|
268
261
|
if (data == null) {
|
|
269
262
|
data = {};
|
|
@@ -294,19 +287,32 @@ class AXPEntityDetailListViewModel {
|
|
|
294
287
|
}
|
|
295
288
|
}
|
|
296
289
|
|
|
290
|
+
class AXPEntityMiddleware {
|
|
291
|
+
}
|
|
292
|
+
class AXPEntityMiddlewareDefault extends AXPEntityMiddleware {
|
|
293
|
+
process(entity) {
|
|
294
|
+
return entity;
|
|
295
|
+
}
|
|
296
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityMiddlewareDefault, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
297
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityMiddlewareDefault, providedIn: 'root' }); }
|
|
298
|
+
}
|
|
299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXPEntityMiddlewareDefault, decorators: [{
|
|
300
|
+
type: Injectable,
|
|
301
|
+
args: [{ providedIn: 'root' }]
|
|
302
|
+
}] });
|
|
303
|
+
|
|
297
304
|
class AXPEntityDefinitionRegistryService {
|
|
298
305
|
constructor() {
|
|
299
306
|
this.providers = inject(AXP_ENTITY_DEFINITION_LOADER);
|
|
300
307
|
this.resolver = inject(AXPEntityResolver);
|
|
308
|
+
this.middleware = inject(AXPEntityMiddleware);
|
|
301
309
|
// Stores AXPEntityConfig objects, keyed by a combination of module and entity name.
|
|
302
310
|
this.entities = new Map();
|
|
303
311
|
// Entity resolver service for dynamically loading entity configurations.
|
|
304
312
|
this.entityResolver = inject(AXPEntityResolver); // Assuming AXPEntityLoader is the correct type
|
|
305
313
|
}
|
|
306
314
|
async preload() {
|
|
307
|
-
const providers = Array.isArray(this.providers)
|
|
308
|
-
? this.providers
|
|
309
|
-
: [this.providers];
|
|
315
|
+
const providers = Array.isArray(this.providers) ? this.providers : [this.providers];
|
|
310
316
|
const promises = [];
|
|
311
317
|
providers.forEach((provider) => {
|
|
312
318
|
const items = typeof provider.preload == 'function' ? provider.preload() : [];
|
|
@@ -362,7 +368,7 @@ class AXPEntityDefinitionRegistryService {
|
|
|
362
368
|
throw new Error(`Invalid entity name: ${key}`);
|
|
363
369
|
}
|
|
364
370
|
}
|
|
365
|
-
return config;
|
|
371
|
+
return this.middleware.process(config);
|
|
366
372
|
}
|
|
367
373
|
/**
|
|
368
374
|
* Creates a unique key for an entity based on its module and name.
|
|
@@ -500,8 +506,10 @@ class AXPEntityMasterCreateViewModel {
|
|
|
500
506
|
await this.workflow.execute('create-entity', {
|
|
501
507
|
entity: getEntityInfo(this.entityDef).source,
|
|
502
508
|
options: {
|
|
503
|
-
|
|
504
|
-
|
|
509
|
+
process: {
|
|
510
|
+
redirect: this.redirect(),
|
|
511
|
+
canCreateNewOne: this.canCreateNewOne(),
|
|
512
|
+
},
|
|
505
513
|
},
|
|
506
514
|
});
|
|
507
515
|
}
|
|
@@ -618,7 +626,7 @@ class AXPEntityMasterListViewModel {
|
|
|
618
626
|
return [
|
|
619
627
|
{
|
|
620
628
|
title: 'entity.home',
|
|
621
|
-
icon: 'fa-solid
|
|
629
|
+
icon: 'fa-solid ax-text-xs ax-me-2',
|
|
622
630
|
url: [`/${this.session.application?.name}`],
|
|
623
631
|
},
|
|
624
632
|
{
|
|
@@ -2784,6 +2792,10 @@ class AXPEntityModule {
|
|
|
2784
2792
|
useClass: AXPEntityCommandSearchDefinitionProvider,
|
|
2785
2793
|
multi: true,
|
|
2786
2794
|
},
|
|
2795
|
+
{
|
|
2796
|
+
provide: AXPEntityMiddleware,
|
|
2797
|
+
useClass: AXPEntityMiddlewareDefault,
|
|
2798
|
+
},
|
|
2787
2799
|
], imports: [RouterModule,
|
|
2788
2800
|
AXPWorkflowModule.forChild({
|
|
2789
2801
|
actions: {
|
|
@@ -2864,6 +2876,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
2864
2876
|
useClass: AXPEntityCommandSearchDefinitionProvider,
|
|
2865
2877
|
multi: true,
|
|
2866
2878
|
},
|
|
2879
|
+
{
|
|
2880
|
+
provide: AXPEntityMiddleware,
|
|
2881
|
+
useClass: AXPEntityMiddlewareDefault,
|
|
2882
|
+
},
|
|
2867
2883
|
],
|
|
2868
2884
|
}]
|
|
2869
2885
|
}], ctorParameters: () => [{ type: i1$3.AXPAppStartUpService }, { type: i0.Injector }] });
|
|
@@ -2887,5 +2903,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
2887
2903
|
* Generated bundle index. Do not edit.
|
|
2888
2904
|
*/
|
|
2889
2905
|
|
|
2890
|
-
export { AXPCreateEntityWorkflow, AXPDeleteEntityWorkflow, AXPEntityCommandTriggerViewModel, AXPEntityCreateEvent, AXPEntityCreatePopupAction, AXPEntityCreateSubmittedAction, AXPEntityCreateViewElementViewModel, AXPEntityCreateViewModelFactory, AXPEntityCreateViewSectionViewModel, AXPEntityDefinitionRegistryService, AXPEntityDeletedEvent, AXPEntityDetailListViewModel, AXPEntityDetailViewModelFactory, AXPEntityDetailViewModelResolver, AXPEntityListViewColumnViewModel, AXPEntityListViewModelFactory, AXPEntityListViewModelResolver, AXPEntityMasterCreateViewModel, AXPEntityMasterListViewModel, AXPEntityMasterListViewQueryViewModel, AXPEntityMasterSingleElementViewModel, AXPEntityMasterSingleViewGroupViewModel, AXPEntityMasterSingleViewModel, AXPEntityMasterUpdateElementViewModel, AXPEntityMasterUpdateViewModel, AXPEntityMasterUpdateViewModelFactory, AXPEntityModifyConfirmedAction, AXPEntityModifyEvent, AXPEntityModifySectionPopupAction, AXPEntityModule, AXPEntityPerformDeleteAction, AXPEntityResolver, AXPEntityService, AXPModifyEntitySectionWorkflow, AXPQuickEntityModifyPopupAction, AXPQuickModifyEntityWorkflow, AXPShowDetailViewAction, AXPShowDetailsViewWorkflow, AXPShowListViewAction, AXPShowListViewWorkflow, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER };
|
|
2906
|
+
export { AXPCreateEntityWorkflow, AXPDeleteEntityWorkflow, AXPEntityCommandTriggerViewModel, AXPEntityCreateEvent, AXPEntityCreatePopupAction, AXPEntityCreateSubmittedAction, AXPEntityCreateViewElementViewModel, AXPEntityCreateViewModelFactory, AXPEntityCreateViewSectionViewModel, AXPEntityDefinitionRegistryService, AXPEntityDeletedEvent, AXPEntityDetailListViewModel, AXPEntityDetailViewModelFactory, AXPEntityDetailViewModelResolver, AXPEntityListViewColumnViewModel, AXPEntityListViewModelFactory, AXPEntityListViewModelResolver, AXPEntityMasterCreateViewModel, AXPEntityMasterListViewModel, AXPEntityMasterListViewQueryViewModel, AXPEntityMasterSingleElementViewModel, AXPEntityMasterSingleViewGroupViewModel, AXPEntityMasterSingleViewModel, AXPEntityMasterUpdateElementViewModel, AXPEntityMasterUpdateViewModel, AXPEntityMasterUpdateViewModelFactory, AXPEntityMiddleware, AXPEntityMiddlewareDefault, AXPEntityModifyConfirmedAction, AXPEntityModifyEvent, AXPEntityModifySectionPopupAction, AXPEntityModule, AXPEntityPerformDeleteAction, AXPEntityResolver, AXPEntityService, AXPModifyEntitySectionWorkflow, AXPQuickEntityModifyPopupAction, AXPQuickModifyEntityWorkflow, AXPShowDetailViewAction, AXPShowDetailsViewWorkflow, AXPShowListViewAction, AXPShowListViewWorkflow, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER };
|
|
2891
2907
|
//# sourceMappingURL=acorex-platform-layout-entity.mjs.map
|