@acorex/platform 20.3.0-next.4 → 20.3.0-next.6
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 +6 -6
- package/core/index.d.ts +187 -11
- package/fesm2022/acorex-platform-common.mjs +4 -52
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +243 -10
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +344 -212
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +3 -3
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-X0hLRZhX.mjs → acorex-platform-themes-default-entity-master-list-view.component-gQIK6PIx.mjs} +13 -15
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-gQIK6PIx.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +2 -2
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-JC_nYunG.mjs → acorex-platform-widgets-checkbox-widget-designer.component-BXPrXy-h.mjs} +4 -4
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-JC_nYunG.mjs.map → acorex-platform-widgets-checkbox-widget-designer.component-BXPrXy-h.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-widgets-color-box-widget-designer.component-CxgKO2VI.mjs → acorex-platform-widgets-color-box-widget-designer.component-BVZ7lWm9.mjs} +5 -5
- package/fesm2022/{acorex-platform-widgets-color-box-widget-designer.component-CxgKO2VI.mjs.map → acorex-platform-widgets-color-box-widget-designer.component-BVZ7lWm9.mjs.map} +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +282 -210
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/entity/index.d.ts +80 -3
- package/package.json +1 -1
- package/widgets/index.d.ts +9 -5
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-X0hLRZhX.mjs.map +0 -1
package/layout/entity/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injector, Type } from '@angular/core';
|
|
2
|
+
import { InjectionToken, Injector, Type, ElementRef } from '@angular/core';
|
|
3
3
|
import { AXStyleColorType, AXDataSource, AXDataSourceFilterOption } from '@acorex/cdk/common';
|
|
4
4
|
import * as _acorex_platform_common from '@acorex/platform/common';
|
|
5
5
|
import { AXPEntityCommandScope, AXPEntity, AXPEntityAction, AXPEntityProperty, AXPEntityTableColumn, AXPRelatedEntity, AXPEntitySectionView, AXPGridLayoutOptions, AXPEntityPropertyCreateView, AXPEntityPropertyLayoutConfig, AXPQueryView, AXPEntityPropertyView, AXPCategoryEntity, AXPEntityPropertyGroup, AXPEntityMasterCreateLayoutView, AXPEntityMasterUpdateLayoutView, AXPEntityMasterSingleLayoutView, AXPEntityMasterListView, AXPEntityDetailListView, AXPQueryFilter } from '@acorex/platform/common';
|
|
@@ -13,6 +13,7 @@ import { Subject } from 'rxjs';
|
|
|
13
13
|
import * as i2 from '@acorex/platform/workflow';
|
|
14
14
|
import { AXPWorkflowAction, AXPWorkflowContext, AXPWorkflow } from '@acorex/platform/workflow';
|
|
15
15
|
import { AXPCommand, AXPQuery } from '@acorex/platform/runtime';
|
|
16
|
+
import { AXPopoverComponent } from '@acorex/components/popover';
|
|
16
17
|
|
|
17
18
|
interface AXPDataSeeder {
|
|
18
19
|
seed(): Promise<void>;
|
|
@@ -230,6 +231,7 @@ declare class AXPEntityMasterListViewModel {
|
|
|
230
231
|
resetColumns(): void;
|
|
231
232
|
onColumnsChanged(columns: AXPEntityListViewColumnViewModel[]): Promise<void>;
|
|
232
233
|
applyViewColumns(): void;
|
|
234
|
+
onColumnsOrderChanged(event: any): void;
|
|
233
235
|
sortableFields: () => {
|
|
234
236
|
name: string;
|
|
235
237
|
title: string;
|
|
@@ -1015,5 +1017,80 @@ declare const createColumnWidthMiddlewareProvider: (widths: ColumnWidthConfig, e
|
|
|
1015
1017
|
*/
|
|
1016
1018
|
declare const columnWidthMiddlewareProvider: AXPEntityModifierProvider;
|
|
1017
1019
|
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
+
declare class AXPEntityDetailPopoverComponent {
|
|
1021
|
+
private readonly commandService;
|
|
1022
|
+
private readonly queryService;
|
|
1023
|
+
entity: _angular_core.InputSignal<string>;
|
|
1024
|
+
entityId: _angular_core.InputSignal<string | number>;
|
|
1025
|
+
textField: _angular_core.InputSignal<string>;
|
|
1026
|
+
valueField: _angular_core.InputSignal<string>;
|
|
1027
|
+
item: _angular_core.InputSignal<AXPMetaData | undefined>;
|
|
1028
|
+
protected detailPopover: _angular_core.Signal<AXPopoverComponent | undefined>;
|
|
1029
|
+
protected entityDetails: _angular_core.WritableSignal<any>;
|
|
1030
|
+
protected isLoadingDetails: _angular_core.WritableSignal<boolean>;
|
|
1031
|
+
protected isDetailPopoverOpen: _angular_core.WritableSignal<boolean>;
|
|
1032
|
+
/**
|
|
1033
|
+
* Show the entity detail popover
|
|
1034
|
+
*/
|
|
1035
|
+
show(target: ElementRef | HTMLElement): Promise<void>;
|
|
1036
|
+
/**
|
|
1037
|
+
* Hide the entity detail popover
|
|
1038
|
+
*/
|
|
1039
|
+
hide(): void;
|
|
1040
|
+
protected onDetailPopoverOpenChange(event: any): void;
|
|
1041
|
+
protected navigateToDetails(): Promise<void>;
|
|
1042
|
+
/**
|
|
1043
|
+
* Returns true if a value is meaningful for display (non-empty/non-null).
|
|
1044
|
+
*/
|
|
1045
|
+
private hasMeaningfulValue;
|
|
1046
|
+
/**
|
|
1047
|
+
* Calculates an importance score for a property based on its widget type,
|
|
1048
|
+
* whether it currently has a meaningful value, and metadata like title.
|
|
1049
|
+
*/
|
|
1050
|
+
private getPropertyImportanceScore;
|
|
1051
|
+
/**
|
|
1052
|
+
* Calculates a name-based importance score to prioritize common key fields
|
|
1053
|
+
* like title, description, status, and important dates.
|
|
1054
|
+
* Name priority MUST come before widget-type priority.
|
|
1055
|
+
*/
|
|
1056
|
+
private getNameImportanceScore;
|
|
1057
|
+
protected getEntityPropertiesWithWidgets(): Array<{
|
|
1058
|
+
name: string;
|
|
1059
|
+
title: string;
|
|
1060
|
+
node: AXPWidgetNode;
|
|
1061
|
+
}>;
|
|
1062
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityDetailPopoverComponent, never>;
|
|
1063
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPEntityDetailPopoverComponent, "axp-entity-detail-popover", never, { "entity": { "alias": "entity"; "required": true; "isSignal": true; }; "entityId": { "alias": "entityId"; "required": true; "isSignal": true; }; "textField": { "alias": "textField"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "item": { "alias": "item"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
interface AXPEntityDetailPopoverOptions {
|
|
1067
|
+
entity: string;
|
|
1068
|
+
id: string | number;
|
|
1069
|
+
item: AXPMetaData;
|
|
1070
|
+
textField?: string;
|
|
1071
|
+
valueField?: string;
|
|
1072
|
+
}
|
|
1073
|
+
declare class AXPEntityDetailPopoverService {
|
|
1074
|
+
private readonly applicationRef;
|
|
1075
|
+
private readonly environmentInjector;
|
|
1076
|
+
private activePopoverRef;
|
|
1077
|
+
/**
|
|
1078
|
+
* Show entity detail popover
|
|
1079
|
+
* @param target - The target element to position the popover
|
|
1080
|
+
* @param options - Configuration options for the popover
|
|
1081
|
+
*/
|
|
1082
|
+
show(target: ElementRef | HTMLElement, options: AXPEntityDetailPopoverOptions): Promise<void>;
|
|
1083
|
+
/**
|
|
1084
|
+
* Hide the active popover
|
|
1085
|
+
*/
|
|
1086
|
+
hide(): void;
|
|
1087
|
+
/**
|
|
1088
|
+
* Check if a popover is currently active
|
|
1089
|
+
*/
|
|
1090
|
+
get isActive(): boolean;
|
|
1091
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityDetailPopoverService, never>;
|
|
1092
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPEntityDetailPopoverService>;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
export { AXMEntityCrudService, AXMEntityCrudServiceImpl, AXPCreateEntityWorkflow, AXPDataSeederService, AXPDeleteEntityWorkflow, AXPEntityApplyUpdatesAction, AXPEntityCommandTriggerViewModel, AXPEntityCreateEvent, AXPEntityCreatePopupAction, AXPEntityCreateSubmittedAction, AXPEntityCreateViewElementViewModel, AXPEntityCreateViewModelFactory, AXPEntityCreateViewSectionViewModel, AXPEntityDataProvider, AXPEntityDataProviderImpl, AXPEntityDefinitionRegistryService, AXPEntityDeletedEvent, AXPEntityDetailListViewModel, AXPEntityDetailPopoverComponent, AXPEntityDetailPopoverService, AXPEntityDetailViewModelFactory, AXPEntityDetailViewModelResolver, AXPEntityEventDispatcherService, AXPEntityListViewColumnViewModel, AXPEntityListViewModelFactory, AXPEntityListViewModelResolver, AXPEntityMasterCreateViewModel, AXPEntityMasterListViewModel, AXPEntityMasterListViewQueryViewModel, AXPEntityMasterSingleElementViewModel, AXPEntityMasterSingleViewGroupViewModel, AXPEntityMasterSingleViewModel, AXPEntityMasterUpdateElementViewModel, AXPEntityMasterUpdateViewModel, AXPEntityMasterUpdateViewModelFactory, AXPEntityMiddleware, AXPEntityModifyConfirmedAction, AXPEntityModifyEvent, AXPEntityModifySectionPopupAction, AXPEntityModule, AXPEntityPerformDeleteAction, AXPEntityResolver, AXPEntityService, AXPEntityStorageService, AXPGetEntityDetailsQuery, 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 };
|
|
1096
|
+
export type { AXPAuditable, AXPDataSeeder, AXPEntityActionPlugin, AXPEntityChangeSet, AXPEntityConfigs, AXPEntityCreateDto, AXPEntityDefinitionLoader, AXPEntityDefinitionPreloader, AXPEntityDeleteOptions, AXPEntityDetailDto, AXPEntityDetailPopoverOptions, AXPEntityListItemDto, AXPEntityMasterListViewSortPropViewModel, AXPEntityModel, AXPEntityModifier, AXPEntityModifierContext, AXPEntityModifierProvider, AXPEntityOp, AXPEntityOutputDto, AXPEntityPreloadEntity, AXPEntityStorageContext, AXPEntityStorageMiddleware, AXPEntityUpdateDto, AXPGetEntityDetailsQueryInput, AXPGetEntityDetailsQueryResult, AXPOpenEntityDetailsCommandInput, AXPOpenEntityDetailsCommandResult, ColumnWidthConfig };
|
package/package.json
CHANGED
package/widgets/index.d.ts
CHANGED
|
@@ -1254,6 +1254,7 @@ declare class AXPFileListComponent implements OnInit, OnDestroy {
|
|
|
1254
1254
|
private fileStorageService;
|
|
1255
1255
|
private popupService;
|
|
1256
1256
|
private commandExecutor;
|
|
1257
|
+
private hooks;
|
|
1257
1258
|
isLoading: _angular_core.WritableSignal<boolean>;
|
|
1258
1259
|
private fileTypes;
|
|
1259
1260
|
onRemove: _angular_core.OutputEmitterRef<AXPFileListItem>;
|
|
@@ -1267,11 +1268,15 @@ declare class AXPFileListComponent implements OnInit, OnDestroy {
|
|
|
1267
1268
|
options?: unknown;
|
|
1268
1269
|
}[] | undefined>;
|
|
1269
1270
|
excludePlugins: _angular_core.InputSignal<string[] | undefined>;
|
|
1271
|
+
host: _angular_core.InputSignal<any>;
|
|
1270
1272
|
/**
|
|
1271
1273
|
* All files should be displayed, even those with `deleted` status.
|
|
1272
1274
|
* The template will handle the visual differences based on the status.
|
|
1273
1275
|
*/
|
|
1274
1276
|
displayFiles: _angular_core.Signal<AXPFileListItem[]>;
|
|
1277
|
+
private fileIdToActions;
|
|
1278
|
+
actionsFor(file: AXPFileListItem, index: number): any[];
|
|
1279
|
+
private loadActionsFor;
|
|
1275
1280
|
ngOnInit(): Promise<void>;
|
|
1276
1281
|
protected getFileInfo(fileName: string): {
|
|
1277
1282
|
icon: string;
|
|
@@ -1288,8 +1293,9 @@ declare class AXPFileListComponent implements OnInit, OnDestroy {
|
|
|
1288
1293
|
*/
|
|
1289
1294
|
handleFileEdit(file: AXPFileListItem): Promise<void>;
|
|
1290
1295
|
ngOnDestroy(): void;
|
|
1296
|
+
runAction(action: any): Promise<void>;
|
|
1291
1297
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPFileListComponent, never>;
|
|
1292
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPFileListComponent, "axp-file-list", never, { "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "fileEditable": { "alias": "fileEditable"; "required": false; "isSignal": true; }; "files": { "alias": "files"; "required": false; "isSignal": true; }; "plugins": { "alias": "plugins"; "required": false; "isSignal": true; }; "excludePlugins": { "alias": "excludePlugins"; "required": false; "isSignal": true; }; }, { "onRemove": "onRemove"; "onRevert": "onRevert"; "onRename": "onRename"; }, never, never, true, never>;
|
|
1298
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPFileListComponent, "axp-file-list", never, { "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "fileEditable": { "alias": "fileEditable"; "required": false; "isSignal": true; }; "files": { "alias": "files"; "required": false; "isSignal": true; }; "plugins": { "alias": "plugins"; "required": false; "isSignal": true; }; "excludePlugins": { "alias": "excludePlugins"; "required": false; "isSignal": true; }; "host": { "alias": "host"; "required": false; "isSignal": true; }; }, { "onRemove": "onRemove"; "onRevert": "onRevert"; "onRename": "onRename"; }, never, never, true, never>;
|
|
1293
1299
|
}
|
|
1294
1300
|
|
|
1295
1301
|
declare class AXPGalleryWidgetEditComponent extends AXPValueWidgetComponent<any> {
|
|
@@ -1933,7 +1939,7 @@ declare class AXPGridOptionsWidgetEditComponent extends AXPValueWidgetComponent<
|
|
|
1933
1939
|
private findJustifyNameById;
|
|
1934
1940
|
initialValues(): void;
|
|
1935
1941
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPGridOptionsWidgetEditComponent, never>;
|
|
1936
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPGridOptionsWidgetEditComponent, "
|
|
1942
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPGridOptionsWidgetEditComponent, "axp-grid-options-widget", never, {}, {}, never, never, true, never>;
|
|
1937
1943
|
}
|
|
1938
1944
|
|
|
1939
1945
|
declare const AXPGridOptionsWidget: AXPWidgetConfig;
|
|
@@ -2009,7 +2015,7 @@ declare class AXPBorderWidgetEditComponent extends AXPValueWidgetComponent<AXPBo
|
|
|
2009
2015
|
protected shownStyle: _angular_core.Signal<string>;
|
|
2010
2016
|
protected handleActiveBorderSide(event: PointerEvent): void;
|
|
2011
2017
|
protected handleActiveRadiusSide(event: PointerEvent): void;
|
|
2012
|
-
|
|
2018
|
+
af: _angular_core.AfterRenderRef;
|
|
2013
2019
|
private initializeBorder;
|
|
2014
2020
|
private initializeRadius;
|
|
2015
2021
|
private createUniformValues;
|
|
@@ -2154,9 +2160,7 @@ declare const AXP_default_Spacing_Box_Value: AXPSpacingBox<number>;
|
|
|
2154
2160
|
declare const AXP_default_Spacing_Box_Units: AXPSpacingBox<string>;
|
|
2155
2161
|
|
|
2156
2162
|
declare class AXPSpacingWidgetEditComponent extends AXPValueWidgetComponent<AXPSpacingBoxString> {
|
|
2157
|
-
#private;
|
|
2158
2163
|
private ngZone;
|
|
2159
|
-
private rendered;
|
|
2160
2164
|
private isDragging;
|
|
2161
2165
|
protected calculatedValues: _angular_core.WritableSignal<AXPSpacingBox<number>>;
|
|
2162
2166
|
protected originalValues: _angular_core.WritableSignal<AXPSpacingBox<number>>;
|