@acorex/platform 20.2.3 → 20.2.4-next.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/common/index.d.ts +91 -3
- package/core/index.d.ts +65 -58
- package/fesm2022/acorex-platform-common.mjs +16 -8
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +110 -158
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +109 -55
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +1086 -35
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +15 -122
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +2518 -1006
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +243 -65
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-hHXxHlFG.mjs → acorex-platform-themes-default-entity-master-create-view.component-I7Eq8Nti.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-hHXxHlFG.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-I7Eq8Nti.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DXGLsVis.mjs +706 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DXGLsVis.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-DC3MrDtI.mjs → acorex-platform-themes-default-entity-master-modify-view.component-16sdMBvH.mjs} +3 -10
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-16sdMBvH.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-Bb90PeHq.mjs → acorex-platform-themes-default-entity-master-single-view.component-CVaJzWb2.mjs} +25 -17
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-CVaJzWb2.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +65 -495
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-shared-color-chooser-column.component-DjKLg513.mjs → acorex-platform-themes-shared-theme-color-chooser-column.component-DjKLg513.mjs} +1 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-DjKLg513.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-color-chooser-view.component-DE0wO98F.mjs → acorex-platform-themes-shared-theme-color-chooser-view.component-DE0wO98F.mjs} +1 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-DE0wO98F.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +10 -12
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-BI18uzNZ.mjs → acorex-platform-widgets-checkbox-widget-designer.component-Cv7dEMCm.mjs} +2 -2
- package/fesm2022/acorex-platform-widgets-checkbox-widget-designer.component-Cv7dEMCm.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets-extra-properties-schema-widget-edit.component-B3SJUnGQ.mjs +50 -0
- package/fesm2022/acorex-platform-widgets-extra-properties-schema-widget-edit.component-B3SJUnGQ.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets-extra-properties-schema-widget-view.component-BLR0JkRt.mjs +42 -0
- package/fesm2022/acorex-platform-widgets-extra-properties-schema-widget-view.component-BLR0JkRt.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets-extra-properties-values-widget-edit.component-hzR2FgOm.mjs +55 -0
- package/fesm2022/acorex-platform-widgets-extra-properties-values-widget-edit.component-hzR2FgOm.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets-extra-properties-values-widget-view.component-IDm6Clua.mjs +50 -0
- package/fesm2022/acorex-platform-widgets-extra-properties-values-widget-view.component-IDm6Clua.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets-extra-properties-widget-edit.component-BRO9tYDa.mjs +48 -0
- package/fesm2022/acorex-platform-widgets-extra-properties-widget-edit.component-BRO9tYDa.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets-extra-properties-widget-view.component-CkpLimyW.mjs +42 -0
- package/fesm2022/acorex-platform-widgets-extra-properties-widget-view.component-CkpLimyW.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-file-list-popup.component-DFbPO0ud.mjs → acorex-platform-widgets-file-list-popup.component-B601gPsW.mjs} +66 -3
- package/fesm2022/acorex-platform-widgets-file-list-popup.component-B601gPsW.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-tabular-data-edit-popup.component-nLZYiPnF.mjs → acorex-platform-widgets-tabular-data-edit-popup.component-BDQIfr0g.mjs} +5 -5
- package/fesm2022/{acorex-platform-widgets-tabular-data-edit-popup.component-nLZYiPnF.mjs.map → acorex-platform-widgets-tabular-data-edit-popup.component-BDQIfr0g.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-widgets-tabular-data-view-popup.component-D6kiasYM.mjs → acorex-platform-widgets-tabular-data-view-popup.component-CmPqtt0G.mjs} +3 -3
- package/fesm2022/{acorex-platform-widgets-tabular-data-view-popup.component-D6kiasYM.mjs.map → acorex-platform-widgets-tabular-data-view-popup.component-CmPqtt0G.mjs.map} +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +1352 -218
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +3 -0
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/builder/index.d.ts +19 -5
- package/layout/components/index.d.ts +214 -9
- package/layout/designer/index.d.ts +3 -46
- package/layout/entity/index.d.ts +203 -332
- package/layout/views/index.d.ts +83 -21
- package/package.json +5 -5
- package/themes/default/index.d.ts +5 -2
- package/widgets/index.d.ts +107 -11
- package/workflow/index.d.ts +3 -1
- package/fesm2022/acorex-platform-themes-default-create-entity-view.component-SY0oMDoH.mjs +0 -22
- package/fesm2022/acorex-platform-themes-default-create-entity-view.component-SY0oMDoH.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-hf4QOz_4.mjs +0 -665
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-hf4QOz_4.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-DC3MrDtI.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-Bb90PeHq.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-color-chooser-column.component-DjKLg513.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-color-chooser-view.component-DE0wO98F.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-designer.component-BI18uzNZ.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-file-list-popup.component-DFbPO0ud.mjs.map +0 -1
package/common/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { InjectionToken, OnChanges, ElementRef, Renderer2, SimpleChanges, EventE
|
|
|
3
3
|
import { AXStyleColorType, AXDataSourceOperator, AXDataSourceFilterOption } from '@acorex/cdk/common';
|
|
4
4
|
import * as i2 from '@acorex/components/popup';
|
|
5
5
|
import { AXPopupSizeType, AXPopupService } from '@acorex/components/popup';
|
|
6
|
-
import { AXPNavigateActionCommand, AXPExecuteCommand, AXPMetaData, AXPValueTransformerFunctions, AXPValidationRules, AXPPlatformScope, AXPPlatformScopeKey,
|
|
6
|
+
import { AXPNavigateActionCommand, AXPExecuteCommand, AXPMetaData, AXPValueTransformerFunctions, AXPValidationRules, AXPOptionsData, AXPPlatformScope, AXPPlatformScopeKey, AXPWidgetTriggers, AXPAppStartUpService, AXPLogoConfig, AXPUserReference, AXPApplicationUserReference, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviderContext } from '@acorex/platform/core';
|
|
7
7
|
import { AXPWidgetTypesMap, AXPWidgetNode, AXPMetaDataDefinition } from '@acorex/platform/layout/builder';
|
|
8
8
|
import * as i5 from '@angular/router';
|
|
9
9
|
import { Route, Routes } from '@angular/router';
|
|
@@ -401,6 +401,7 @@ interface AXPEntitySectionView {
|
|
|
401
401
|
description?: string;
|
|
402
402
|
order?: number;
|
|
403
403
|
type?: 'wrapper' | 'section';
|
|
404
|
+
collapsed?: boolean;
|
|
404
405
|
layout?: AXPEntityPropertyLayoutConfig;
|
|
405
406
|
}
|
|
406
407
|
interface AXPEntityProperty {
|
|
@@ -457,7 +458,7 @@ interface AXPEntityQuery {
|
|
|
457
458
|
execute: string | Function;
|
|
458
459
|
type: AXPEntityQueryType;
|
|
459
460
|
}
|
|
460
|
-
type AXPCommandActionType = 'create' | 'update' | 'delete' | 'print' | 'confirm' | 'report' | 'info' | 'view' | 'archive' | 'design' | 'upload' | 'version-history' | 'sent' | 'review' | 'sign';
|
|
461
|
+
type AXPCommandActionType = 'create' | 'update' | 'delete' | 'print' | 'confirm' | 'report' | 'info' | 'view' | 'archive' | 'design' | 'upload' | 'version-history' | 'sent' | 'review' | 'sign' | 'lock' | 'unlock' | 'compare' | 'comments';
|
|
461
462
|
interface AXPCommandActionLook {
|
|
462
463
|
color: AXStyleColorType;
|
|
463
464
|
icon: string;
|
|
@@ -498,9 +499,14 @@ interface AXPEntityAction extends AXPCommandActionDisplay {
|
|
|
498
499
|
scope: AXPEntityCommandScope;
|
|
499
500
|
}
|
|
500
501
|
interface AXPEntity {
|
|
502
|
+
plugins?: {
|
|
503
|
+
name: string;
|
|
504
|
+
options?: AXPOptionsData;
|
|
505
|
+
}[];
|
|
501
506
|
module: string;
|
|
502
507
|
name: string;
|
|
503
508
|
source: string;
|
|
509
|
+
icon?: string;
|
|
504
510
|
parentKey?: string;
|
|
505
511
|
category?: AXPCategoryEntity;
|
|
506
512
|
versionHistory?: AXPEntityVersionHistory;
|
|
@@ -509,6 +515,7 @@ interface AXPEntity {
|
|
|
509
515
|
individual: string;
|
|
510
516
|
plural: string;
|
|
511
517
|
lookup?: string;
|
|
518
|
+
displayName?: string;
|
|
512
519
|
searchResult?: {
|
|
513
520
|
title: string;
|
|
514
521
|
description?: string;
|
|
@@ -567,7 +574,9 @@ declare function createAllQueryView(params?: {
|
|
|
567
574
|
interface AXPRelatedEntity {
|
|
568
575
|
entity: string;
|
|
569
576
|
title?: string;
|
|
577
|
+
icon?: string;
|
|
570
578
|
columns?: string[];
|
|
579
|
+
layoutType?: 'tab-detail' | 'tab-list' | 'page-detail' | 'page-list';
|
|
571
580
|
conditions?: AXPQueryFilter[];
|
|
572
581
|
hidden?: boolean | string;
|
|
573
582
|
actions?: AXPEntityAction[];
|
|
@@ -1089,6 +1098,32 @@ interface AXPFileStorageUpdateRequest {
|
|
|
1089
1098
|
*/
|
|
1090
1099
|
isPrimary?: boolean;
|
|
1091
1100
|
}
|
|
1101
|
+
interface AXPFileManyStorageInfo {
|
|
1102
|
+
/**
|
|
1103
|
+
* The unique identifier for the stored file.
|
|
1104
|
+
*/
|
|
1105
|
+
id?: string;
|
|
1106
|
+
/**
|
|
1107
|
+
* The unique identifier for the stored file.
|
|
1108
|
+
*/
|
|
1109
|
+
fileId: string;
|
|
1110
|
+
/**
|
|
1111
|
+
* The unique identifier of referenced entity.
|
|
1112
|
+
*/
|
|
1113
|
+
refId: string;
|
|
1114
|
+
/**
|
|
1115
|
+
* The type of the referenced entity.
|
|
1116
|
+
*/
|
|
1117
|
+
refType: string;
|
|
1118
|
+
/**
|
|
1119
|
+
* The size of the file in bytes.
|
|
1120
|
+
*/
|
|
1121
|
+
size: number;
|
|
1122
|
+
/**
|
|
1123
|
+
* The name of the file.
|
|
1124
|
+
*/
|
|
1125
|
+
name?: string;
|
|
1126
|
+
}
|
|
1092
1127
|
/**
|
|
1093
1128
|
* Represents information about a file stored in the AXP file storage system.
|
|
1094
1129
|
*/
|
|
@@ -1144,6 +1179,58 @@ interface AXPFileStorageInfo {
|
|
|
1144
1179
|
status: AXPFileStorageStatus;
|
|
1145
1180
|
binary: File;
|
|
1146
1181
|
}
|
|
1182
|
+
interface AXPFileStorageInfo {
|
|
1183
|
+
/**
|
|
1184
|
+
* The unique identifier for the stored file.
|
|
1185
|
+
*/
|
|
1186
|
+
id?: string;
|
|
1187
|
+
/**
|
|
1188
|
+
* The unique identifier for the stored file.
|
|
1189
|
+
*/
|
|
1190
|
+
fileId: string;
|
|
1191
|
+
/**
|
|
1192
|
+
* The unique identifier of referenced entity.
|
|
1193
|
+
*/
|
|
1194
|
+
refId: string;
|
|
1195
|
+
/**
|
|
1196
|
+
* The type of the referenced entity.
|
|
1197
|
+
*/
|
|
1198
|
+
refType: string;
|
|
1199
|
+
/**
|
|
1200
|
+
* The category of the file. profile-picture, company-logo, policy, document, etc.
|
|
1201
|
+
*/
|
|
1202
|
+
category: string;
|
|
1203
|
+
/**
|
|
1204
|
+
* The URL where the file can be accessed.
|
|
1205
|
+
*/
|
|
1206
|
+
url?: string;
|
|
1207
|
+
/**
|
|
1208
|
+
* The size of the file in bytes.
|
|
1209
|
+
*/
|
|
1210
|
+
size: number;
|
|
1211
|
+
/**
|
|
1212
|
+
* The name of the file.
|
|
1213
|
+
*/
|
|
1214
|
+
name?: string;
|
|
1215
|
+
/**
|
|
1216
|
+
* The MIME type of the file.
|
|
1217
|
+
*/
|
|
1218
|
+
mimeType: string;
|
|
1219
|
+
/**
|
|
1220
|
+
* The date and time when the file was uploaded.
|
|
1221
|
+
*/
|
|
1222
|
+
uploadedAt: Date;
|
|
1223
|
+
/**
|
|
1224
|
+
* Indicates whether the file is public or private.
|
|
1225
|
+
*/
|
|
1226
|
+
isPublic: boolean;
|
|
1227
|
+
/**
|
|
1228
|
+
* Indicates whether the file is primary or not.
|
|
1229
|
+
*/
|
|
1230
|
+
isPrimary?: boolean;
|
|
1231
|
+
status: AXPFileStorageStatus;
|
|
1232
|
+
binary: File;
|
|
1233
|
+
}
|
|
1147
1234
|
/**
|
|
1148
1235
|
* Represents information about a file stored in the AXP file storage system.
|
|
1149
1236
|
*/
|
|
@@ -1185,6 +1272,7 @@ declare abstract class AXPFileStorageService {
|
|
|
1185
1272
|
abstract save(request: AXPFileStorageCreateRequest): Promise<AXPFileStorageInfo>;
|
|
1186
1273
|
abstract update(request: AXPFileStorageUpdateRequest): Promise<AXPFileStorageInfo>;
|
|
1187
1274
|
abstract find(request: AXPFileStorageFindRequest): Promise<AXPFileStorageInfo[]>;
|
|
1275
|
+
abstract findMany(ids: string[]): Promise<AXPFileManyStorageInfo[]>;
|
|
1188
1276
|
abstract getInfo(fileId: string): Promise<AXPFileStorageInfo>;
|
|
1189
1277
|
abstract remove(fileId: string): Promise<void>;
|
|
1190
1278
|
abstract commit(fileId: string): Promise<void>;
|
|
@@ -1486,4 +1574,4 @@ declare class AXMWorkflowErrorHandler implements AXPErrorHandler {
|
|
|
1486
1574
|
}
|
|
1487
1575
|
|
|
1488
1576
|
export { ALL_DEFAULT_OPERATORS, AXMWorkflowErrorHandler, AXPAppVersionService, AXPCleanNestedFilters, AXPClipBoardService, AXPCommonModule, AXPCustomOperatorService, AXPCustomOperatorServiceImpl, AXPDataProvider, AXPDialogConfirmAction, AXPEntityCommandScope, AXPEntityQueryType, AXPErrorHandlerRegistryService, AXPExportService, AXPFileStorageService, AXPFileStorageStatus, AXPFileTypeProviderService, AXPFilterOperatorMiddlewareService, AXPFilterOperatorMiddlewareServiceImpl, AXPFooterTextSlotComponent, AXPGlobalErrorHandler, AXPGlobalVariableDefinitionService, AXPGlobalVariableEvaluatorScopeProvider, AXPGridLayoutDirective, AXPHomePageModule, AXPHomePageService, AXPLockService, AXPLogoComponent, AXPMenuProviderService, AXPMenuSearchDefinitionProvider, AXPMenuSearchProvider, AXPMenuService, AXPNavBarSlotComponent, AXPNavigateWorkflow, AXPPlatformDefaultConfigs, AXPRedirectEvent, AXPRefreshEvent, AXPRelationshipCardinality, AXPRelationshipKind, AXPReloadAction, AXPReloadEvent, AXPSearchCommandProvider, AXPSearchDefinitionActionBuilder, AXPSearchDefinitionBuilder, AXPSearchDefinitionProviderContext, AXPSearchDefinitionProviderService, AXPSearchService, AXPSettingDefaultValuesAggregatorService, AXPSettingDefinitionGroupBuilder, AXPSettingDefinitionProviderContext, AXPSettingDefinitionProviderService, AXPSettingDefinitionSectionBuilder, AXPSettingService, AXPStickyDirective, AXPToastAction, AXPWorkflowNavigateAction, AXPWorkflowRouterNavigateAction, AXP_APP_VERSION_PROVIDER, AXP_FILE_TYPE_INFO_PROVIDER, AXP_GLOBAL_VARIABLE_DEFINITION_PROVIDER, AXP_HOME_PAGES, AXP_HOME_PAGE_DEFAULT_KEY, AXP_MENU_PROVIDER, AXP_PLATFORM_CONFIG_TOKEN, AXP_ROOT_CONFIG_TOKEN, AXP_SEARCH_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER, AXP_SETTING_DEFAULT_VALUES_PROVIDERS, AXP_SETTING_DEFINITION_PROVIDER, AXP_SETTING_VALUE_PROVIDER, BETWEEN_OPER, BOOLEAN_OPERATORS, CONTAINS_OPER, DATE_OPERATORS, ENDS_WITH_OPER, ENVIRONMENT, EQ_OPER, GTE_OPER, GT_OPER, IN_OPER, IS_EMPTY_OPER, IS_NOT_EMPTY_OPER, LTE_OPER, LT_OPER, NOT_CONTAINS_OPER, NOT_EQ_OPER, NUMBER_OPERATORS, STARTS_WITH_OPER, STRING_OPERATORS, configPlatform, createAllQueryView, createQueryView, getEntityInfo, provideDynamicHomePage, resolveActionLook };
|
|
1489
|
-
export type { AXEntityPropertyWidget, AXPAggregate, AXPAppVersion, AXPAppVersionProvider, AXPApplication, AXPCategoryEntity, AXPCommandActionCallback, AXPCommandActionDisplay, AXPCommandActionLook, AXPCommandActionPriority, AXPCommandActionType, AXPCommonModuleConfigs, AXPCurrency, AXPDomToImageOptions, AXPEntity, AXPEntityAction, AXPEntityCommand, AXPEntityDetailListView, AXPEntityMasterCreateLayoutView, AXPEntityMasterLayoutView, AXPEntityMasterListView, AXPEntityMasterSingleLayoutView, AXPEntityMasterUpdateLayoutView, AXPEntityProperty, AXPEntityPropertyCreateView, AXPEntityPropertyGroup, AXPEntityPropertyLayoutConfig, AXPEntityPropertyUpdateView, AXPEntityPropertyView, AXPEntityQuery, AXPEntitySectionView, AXPEntityTableColumn, AXPEntityVersionHistory, AXPErrorHandler, AXPFileExtension, AXPFileStorageCreateRequest, AXPFileStorageFindRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileType, AXPFileTypeInfoProvider, AXPFilterOperator, AXPGeoLocation, AXPGlobalVariableDefinition, AXPGlobalVariableDefinitionProvider, AXPGlobalVariableDefinitionProviderToken, AXPGridLayoutOptions, AXPGridLayoutPositions, AXPGroupSearchResult, AXPHomePageDefinition, AXPLanguage, AXPLocaleProfile, AXPLockGetInfoRequest, AXPLockInfo, AXPLockRequest, AXPLockType, AXPMenuFinderResult, AXPMenuInsertion, AXPMenuItem, AXPMenuItemCommand, AXPMenuItemWithParent, AXPMenuProvider, AXPMenuProviderContext, AXPMenuType, AXPModule, AXPPlatformConfigs, AXPQueryFilter, AXPQuerySort, AXPQueryView, AXPRelatedEntity, AXPRelationship, AXPRootConfigs, AXPSearchAction, AXPSearchDefinition, AXPSearchDefinitionDisplayFormat, AXPSearchDefinitionProvider, AXPSearchDisplayGroupResult, AXPSearchDisplayResult, AXPSearchDisplayResultForSave, AXPSearchParentResult, AXPSearchProvider, AXPSearchResult, AXPSettingChangedEvent, AXPSettingDefaultValuesProvider, AXPSettingDefinition, AXPSettingDefinitionGroup, AXPSettingDefinitionProvider, AXPSettingDefinitionSection, AXPSettingServiceInterface, AXPSettingValue, AXPSettingValueProvider, AXPTimeZone, AXPUnLockRequest };
|
|
1577
|
+
export type { AXEntityPropertyWidget, AXPAggregate, AXPAppVersion, AXPAppVersionProvider, AXPApplication, AXPCategoryEntity, AXPCommandActionCallback, AXPCommandActionDisplay, AXPCommandActionLook, AXPCommandActionPriority, AXPCommandActionType, AXPCommonModuleConfigs, AXPCurrency, AXPDomToImageOptions, AXPEntity, AXPEntityAction, AXPEntityCommand, AXPEntityDetailListView, AXPEntityMasterCreateLayoutView, AXPEntityMasterLayoutView, AXPEntityMasterListView, AXPEntityMasterSingleLayoutView, AXPEntityMasterUpdateLayoutView, AXPEntityProperty, AXPEntityPropertyCreateView, AXPEntityPropertyGroup, AXPEntityPropertyLayoutConfig, AXPEntityPropertyUpdateView, AXPEntityPropertyView, AXPEntityQuery, AXPEntitySectionView, AXPEntityTableColumn, AXPEntityVersionHistory, AXPErrorHandler, AXPFileExtension, AXPFileManyStorageInfo, AXPFileStorageCreateRequest, AXPFileStorageFindRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileType, AXPFileTypeInfoProvider, AXPFilterOperator, AXPGeoLocation, AXPGlobalVariableDefinition, AXPGlobalVariableDefinitionProvider, AXPGlobalVariableDefinitionProviderToken, AXPGridLayoutOptions, AXPGridLayoutPositions, AXPGroupSearchResult, AXPHomePageDefinition, AXPLanguage, AXPLocaleProfile, AXPLockGetInfoRequest, AXPLockInfo, AXPLockRequest, AXPLockType, AXPMenuFinderResult, AXPMenuInsertion, AXPMenuItem, AXPMenuItemCommand, AXPMenuItemWithParent, AXPMenuProvider, AXPMenuProviderContext, AXPMenuType, AXPModule, AXPPlatformConfigs, AXPQueryFilter, AXPQuerySort, AXPQueryView, AXPRelatedEntity, AXPRelationship, AXPRootConfigs, AXPSearchAction, AXPSearchDefinition, AXPSearchDefinitionDisplayFormat, AXPSearchDefinitionProvider, AXPSearchDisplayGroupResult, AXPSearchDisplayResult, AXPSearchDisplayResultForSave, AXPSearchParentResult, AXPSearchProvider, AXPSearchResult, AXPSettingChangedEvent, AXPSettingDefaultValuesProvider, AXPSettingDefinition, AXPSettingDefinitionGroup, AXPSettingDefinitionProvider, AXPSettingDefinitionSection, AXPSettingServiceInterface, AXPSettingValue, AXPSettingValueProvider, AXPTimeZone, AXPUnLockRequest };
|
package/core/index.d.ts
CHANGED
|
@@ -453,6 +453,12 @@ declare const AXPSystemActions: Readonly<{
|
|
|
453
453
|
}>;
|
|
454
454
|
declare function getSystemActions(type: AXPSystemActionType): AXPSystemAction;
|
|
455
455
|
|
|
456
|
+
interface AXPColumnQuery {
|
|
457
|
+
name: string;
|
|
458
|
+
title: string;
|
|
459
|
+
visible: boolean;
|
|
460
|
+
}
|
|
461
|
+
|
|
456
462
|
type AXPPartialNested<T> = {
|
|
457
463
|
[K in keyof T]?: T[K] extends object ? AXPPartialNested<T[K]> : T[K];
|
|
458
464
|
};
|
|
@@ -508,6 +514,27 @@ interface AXPQueryRequest {
|
|
|
508
514
|
};
|
|
509
515
|
}
|
|
510
516
|
type AXPDataType = 'string' | 'number' | 'object' | 'boolean' | 'array';
|
|
517
|
+
interface AXPCategoryEntity {
|
|
518
|
+
id: string;
|
|
519
|
+
title: string;
|
|
520
|
+
description?: string;
|
|
521
|
+
parentId?: string;
|
|
522
|
+
childCount: number;
|
|
523
|
+
}
|
|
524
|
+
interface AXPCategoryEntityWithItems<T> extends AXPCategoryEntity {
|
|
525
|
+
items: T[];
|
|
526
|
+
children?: AXPCategoryEntityWithItems<T>[];
|
|
527
|
+
}
|
|
528
|
+
interface AXPCategorizedEntity {
|
|
529
|
+
categoryIds: string[];
|
|
530
|
+
}
|
|
531
|
+
interface AXPCategorizedEntityDto {
|
|
532
|
+
categoryIds: string[];
|
|
533
|
+
categories: {
|
|
534
|
+
id: string;
|
|
535
|
+
title: string;
|
|
536
|
+
}[];
|
|
537
|
+
}
|
|
511
538
|
|
|
512
539
|
type AXPWidgetTrigger = {
|
|
513
540
|
event: string;
|
|
@@ -551,8 +578,9 @@ interface AXPFilterDefinition {
|
|
|
551
578
|
advance: boolean;
|
|
552
579
|
inline: boolean;
|
|
553
580
|
};
|
|
581
|
+
hidden?: boolean;
|
|
554
582
|
}
|
|
555
|
-
interface AXPFilterQuery extends Pick<AXPFilterDefinition, 'field' | 'value' | 'operator' | 'logic'> {
|
|
583
|
+
interface AXPFilterQuery extends Pick<AXPFilterDefinition, 'field' | 'value' | 'operator' | 'logic' | 'hidden'> {
|
|
556
584
|
filters?: AXPFilterQuery[];
|
|
557
585
|
}
|
|
558
586
|
|
|
@@ -577,6 +605,11 @@ type AXPBreadcrumbItem = {
|
|
|
577
605
|
icon?: string;
|
|
578
606
|
command?: AXPExecuteCommand;
|
|
579
607
|
};
|
|
608
|
+
type AXPBadge = {
|
|
609
|
+
title: string;
|
|
610
|
+
description?: string;
|
|
611
|
+
color?: 'primary' | 'success' | 'warning' | 'danger';
|
|
612
|
+
};
|
|
580
613
|
type AXPExecuteCommand = {
|
|
581
614
|
name: string;
|
|
582
615
|
options?: AXPMetaData;
|
|
@@ -676,6 +709,14 @@ declare enum AXPPlatformScope {
|
|
|
676
709
|
declare function resolvePlatformScopeKey(name: string): AXPPlatformScopeKey;
|
|
677
710
|
declare function resolvePlatformScopeName(scope: AXPPlatformScopeKey): string;
|
|
678
711
|
|
|
712
|
+
interface AXPSortDefinition {
|
|
713
|
+
name: string;
|
|
714
|
+
title: string;
|
|
715
|
+
dir?: 'asc' | 'desc';
|
|
716
|
+
}
|
|
717
|
+
interface AXPSortQuery extends Pick<AXPSortDefinition, 'name' | 'dir'> {
|
|
718
|
+
}
|
|
719
|
+
|
|
679
720
|
type AXPValidationRule = {
|
|
680
721
|
rule: string;
|
|
681
722
|
message?: string;
|
|
@@ -712,6 +753,15 @@ interface AXPReqexValidationRule extends AXPValidationRule {
|
|
|
712
753
|
}
|
|
713
754
|
type AXPStringValidationRules = (AXPRequiredValidationRule | AXPMinLengthValidationRule | AXPMaxLengthValidationRule | AXPEqualValidationRule<string> | AXPReqexValidationRule)[];
|
|
714
755
|
|
|
756
|
+
interface AXPViewQuery {
|
|
757
|
+
name: string;
|
|
758
|
+
fixed: boolean;
|
|
759
|
+
title: string;
|
|
760
|
+
columns: string[];
|
|
761
|
+
conditions: AXPFilterQuery[];
|
|
762
|
+
sorts: AXPSortQuery[];
|
|
763
|
+
}
|
|
764
|
+
|
|
715
765
|
interface AXPViewDefinition {
|
|
716
766
|
key: string;
|
|
717
767
|
title: string;
|
|
@@ -890,7 +940,6 @@ declare class AXPContentCheckerDirective {
|
|
|
890
940
|
viewContainerRef: ViewContainerRef;
|
|
891
941
|
elementRef: ElementRef<HTMLDivElement>;
|
|
892
942
|
isEmpty: i0.Signal<boolean>;
|
|
893
|
-
ngAfterViewInit(): void;
|
|
894
943
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPContentCheckerDirective, never>;
|
|
895
944
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AXPContentCheckerDirective, "[axp-content-checker]", ["checker"], {}, {}, never, never, true, never>;
|
|
896
945
|
}
|
|
@@ -1008,6 +1057,17 @@ declare function setSmart(obj: any, smartPath: string, value: any): any;
|
|
|
1008
1057
|
declare function getSmart(obj: any, smartPath: string): any;
|
|
1009
1058
|
declare function extractValue<T = any>(value: any, key?: string): T | null;
|
|
1010
1059
|
declare function cleanDeep(obj: any): any;
|
|
1060
|
+
type ChangeEntry = {
|
|
1061
|
+
path: string;
|
|
1062
|
+
oldValue: any;
|
|
1063
|
+
newValue: any;
|
|
1064
|
+
arrayDiff?: {
|
|
1065
|
+
added: any[];
|
|
1066
|
+
removed: any[];
|
|
1067
|
+
};
|
|
1068
|
+
};
|
|
1069
|
+
declare function getChangedPaths(obj1: any, obj2: any): string[];
|
|
1070
|
+
declare function getDetailedChanges(obj1: any, obj2: any): ChangeEntry[];
|
|
1011
1071
|
|
|
1012
1072
|
declare function applyFilterArray(dataArray: any[], filters?: AXDataSourceFilterOption[], logic?: 'and' | 'or'): any[];
|
|
1013
1073
|
declare function applySortArray(dataArray: any, sorts: AXDataSourceSortOption[]): any;
|
|
@@ -1107,6 +1167,7 @@ interface AXPDistributedEventListenerProvider<T> {
|
|
|
1107
1167
|
|
|
1108
1168
|
declare class AXPDistributedEventListenerService {
|
|
1109
1169
|
private readonly listenerProviders;
|
|
1170
|
+
private readonly injector;
|
|
1110
1171
|
/** Cache for listeners by key. */
|
|
1111
1172
|
private listenersByKey;
|
|
1112
1173
|
/** Flag to track if providers have been loaded */
|
|
@@ -1138,59 +1199,5 @@ declare class AXPDistributedEventListenerService {
|
|
|
1138
1199
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPDistributedEventListenerService>;
|
|
1139
1200
|
}
|
|
1140
1201
|
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
* Handles pattern-based dispatching for entity operations with wildcard support
|
|
1144
|
-
*/
|
|
1145
|
-
declare class AXPEntityEventDispatcherService {
|
|
1146
|
-
private readonly eventService;
|
|
1147
|
-
/**
|
|
1148
|
-
* Dispatch entity events with pattern matching support for wildcard listeners
|
|
1149
|
-
* @param operation The operation type (inserted, updated, deleted)
|
|
1150
|
-
* @param entityName The full entity name (e.g., 'PlatformManagement.Category')
|
|
1151
|
-
* @param data The event data
|
|
1152
|
-
*/
|
|
1153
|
-
dispatchEntityEvent(operation: 'inserted' | 'updated' | 'deleted', entityName: string, data: any): Promise<void>;
|
|
1154
|
-
/**
|
|
1155
|
-
* Get all event keys that should be dispatched for this entity operation
|
|
1156
|
-
* including wildcard pattern matches
|
|
1157
|
-
*/
|
|
1158
|
-
private getAllMatchingEventKeys;
|
|
1159
|
-
/**
|
|
1160
|
-
* Find wildcard listener keys that match this entity operation
|
|
1161
|
-
*/
|
|
1162
|
-
private findMatchingWildcardKeys;
|
|
1163
|
-
/**
|
|
1164
|
-
* Check if an entity event key matches a wildcard pattern
|
|
1165
|
-
* Only supports entity patterns (entity.*)
|
|
1166
|
-
*/
|
|
1167
|
-
private matchesEntityPattern;
|
|
1168
|
-
/**
|
|
1169
|
-
* Generate all possible event keys for an entity operation
|
|
1170
|
-
* @param operation The operation type
|
|
1171
|
-
* @param entityName The entity name (e.g., 'PlatformManagement.Category')
|
|
1172
|
-
*/
|
|
1173
|
-
private generateEventKeys;
|
|
1174
|
-
/**
|
|
1175
|
-
* Convenience methods for specific operations
|
|
1176
|
-
*/
|
|
1177
|
-
dispatchInserted(entityName: string, data: any): Promise<void>;
|
|
1178
|
-
dispatchUpdated(entityName: string, data: any): Promise<void>;
|
|
1179
|
-
dispatchDeleted(entityName: string, data: any): Promise<void>;
|
|
1180
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPEntityEventDispatcherService, never>;
|
|
1181
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXPEntityEventDispatcherService>;
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
/**
|
|
1185
|
-
* Example implementation of a distributed event listener provider.
|
|
1186
|
-
* This is just a sample to show how to implement the interface.
|
|
1187
|
-
*/
|
|
1188
|
-
declare class ExampleEventListenerProvider implements AXPDistributedEventListenerProvider<any> {
|
|
1189
|
-
key: string;
|
|
1190
|
-
execute(data: any): Promise<void>;
|
|
1191
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ExampleEventListenerProvider, never>;
|
|
1192
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ExampleEventListenerProvider>;
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
export { AXHighlightService, AXPActivityLogProvider, AXPActivityLogService, AXPAppStartUpProvider, AXPAppStartUpService, AXPBroadcastEventService, AXPComponentLogoConfig, AXPContentCheckerDirective, AXPContextChangeEvent, AXPContextStore, AXPCountdownPipe, AXPDataGenerator, AXPDataSourceDefinitionProviderService, AXPDblClickDirective, AXPDistributedEventListenerService, AXPElementDataDirective, AXPEntityEventDispatcherService, AXPExportTemplateToken, AXPExpressionEvaluatorScopeProviderContext, AXPExpressionEvaluatorScopeProviderService, AXPExpressionEvaluatorService, AXPGridLayoutDirective, AXPImageUrlLogoConfig, AXPPlatformScope, AXPSystemActionType, AXPSystemActions, AXP_ACTIVITY_LOG_PROVIDER, AXP_DATASOURCE_DEFINITION_PROVIDER, AXP_DISTRIBUTED_EVENT_LISTENER_PROVIDER, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, ExampleEventListenerProvider, applyFilterArray, applyPagination, applyQueryArray, applySortArray, applySystemActionDefault, cleanDeep, extractNestedFieldsWildcard, extractTextFromHtml, extractValue, getNestedKeys, getSmart, getSystemActions, objectKeyValueTransforms, resolvePlatformScopeKey, resolvePlatformScopeName, setSmart };
|
|
1196
|
-
export type { AXPActionMenuItem, AXPActivityLog, AXPActivityLogChange, AXPApplicationUserReference, AXPBackButton, AXPBreadcrumbItem, AXPContent, AXPContentDirection, AXPContentType, AXPContextData, AXPContextState, AXPDataSource, AXPDataSourceDataFieldDefinition, AXPDataSourceDefinition, AXPDataSourceDefinitionProvider, AXPDataType, AXPDistributedEventListenerProvider, AXPDistributedEventListenerProviderToken, AXPEntityReference, AXPEqualValidationRule, AXPExecuteCommand, AXPExecuteCommandResult, AXPExportCsvOptions, AXPExportExcelOptions, AXPExportOptions, AXPExportPdfOptions, AXPExportPrintOptions, AXPExpression, AXPExpressionEvaluatorScope, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviders, AXPFileListItem, AXPFileSource, AXPFileStatus, AXPFilterDefinition, AXPFilterLogic, AXPFilterOperation, AXPFilterQuery, AXPFlowDirection, AXPGridLayoutOptions, AXPGridPlacement, AXPLayoutFlexStyles, AXPLogoConfig, AXPMaxLengthValidationRule, AXPMetaData, AXPMinLengthValidationRule, AXPNavigateActionCommand, AXPNavigateActionOptions, AXPOptionsData, AXPPagedListResult, AXPPartialNested, AXPPlatformScopeKey, AXPQueryFetchResult, AXPQueryRequest, AXPReqexValidationRule, AXPRequiredValidationRule, AXPStartUpTask, AXPStringValidationRules, AXPSystemAction, AXPUserReference, AXPValidationRule, AXPValidationRules, AXPValueTransformerFunction, AXPValueTransformerFunctions, AXPValueUnit, AXPValueUnits, AXPViewBlockDefinition, AXPViewDefinition, AXPViewFieldDefinition, AXPWidgetTrigger, AXPWidgetTriggers };
|
|
1202
|
+
export { AXHighlightService, AXPActivityLogProvider, AXPActivityLogService, AXPAppStartUpProvider, AXPAppStartUpService, AXPBroadcastEventService, AXPComponentLogoConfig, AXPContentCheckerDirective, AXPContextChangeEvent, AXPContextStore, AXPCountdownPipe, AXPDataGenerator, AXPDataSourceDefinitionProviderService, AXPDblClickDirective, AXPDistributedEventListenerService, AXPElementDataDirective, AXPExportTemplateToken, AXPExpressionEvaluatorScopeProviderContext, AXPExpressionEvaluatorScopeProviderService, AXPExpressionEvaluatorService, AXPGridLayoutDirective, AXPImageUrlLogoConfig, AXPPlatformScope, AXPSystemActionType, AXPSystemActions, AXP_ACTIVITY_LOG_PROVIDER, AXP_DATASOURCE_DEFINITION_PROVIDER, AXP_DISTRIBUTED_EVENT_LISTENER_PROVIDER, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, applyFilterArray, applyPagination, applyQueryArray, applySortArray, applySystemActionDefault, cleanDeep, extractNestedFieldsWildcard, extractTextFromHtml, extractValue, getChangedPaths, getDetailedChanges, getNestedKeys, getSmart, getSystemActions, objectKeyValueTransforms, resolvePlatformScopeKey, resolvePlatformScopeName, setSmart };
|
|
1203
|
+
export type { AXPActionMenuItem, AXPActivityLog, AXPActivityLogChange, AXPApplicationUserReference, AXPBackButton, AXPBadge, AXPBreadcrumbItem, AXPCategorizedEntity, AXPCategorizedEntityDto, AXPCategoryEntity, AXPCategoryEntityWithItems, AXPColumnQuery, AXPContent, AXPContentDirection, AXPContentType, AXPContextData, AXPContextState, AXPDataSource, AXPDataSourceDataFieldDefinition, AXPDataSourceDefinition, AXPDataSourceDefinitionProvider, AXPDataType, AXPDistributedEventListenerProvider, AXPDistributedEventListenerProviderToken, AXPEntityReference, AXPEqualValidationRule, AXPExecuteCommand, AXPExecuteCommandResult, AXPExportCsvOptions, AXPExportExcelOptions, AXPExportOptions, AXPExportPdfOptions, AXPExportPrintOptions, AXPExpression, AXPExpressionEvaluatorScope, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviders, AXPFileListItem, AXPFileSource, AXPFileStatus, AXPFilterDefinition, AXPFilterLogic, AXPFilterOperation, AXPFilterQuery, AXPFlowDirection, AXPGridLayoutOptions, AXPGridPlacement, AXPLayoutFlexStyles, AXPLogoConfig, AXPMaxLengthValidationRule, AXPMetaData, AXPMinLengthValidationRule, AXPNavigateActionCommand, AXPNavigateActionOptions, AXPOptionsData, AXPPagedListResult, AXPPartialNested, AXPPlatformScopeKey, AXPQueryFetchResult, AXPQueryRequest, AXPReqexValidationRule, AXPRequiredValidationRule, AXPSortDefinition, AXPSortQuery, AXPStartUpTask, AXPStringValidationRules, AXPSystemAction, AXPUserReference, AXPValidationRule, AXPValidationRules, AXPValueTransformerFunction, AXPValueTransformerFunctions, AXPValueUnit, AXPValueUnits, AXPViewBlockDefinition, AXPViewDefinition, AXPViewFieldDefinition, AXPViewQuery, AXPWidgetTrigger, AXPWidgetTriggers };
|
|
@@ -131,6 +131,7 @@ function createAllQueryView(params = {
|
|
|
131
131
|
sorts: params.sorts ?? [],
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
+
//TODO: check with actions in core module
|
|
134
135
|
function resolveActionLook(tr) {
|
|
135
136
|
const icon = 'fa-light';
|
|
136
137
|
switch (tr.type) {
|
|
@@ -139,25 +140,33 @@ function resolveActionLook(tr) {
|
|
|
139
140
|
case 'view':
|
|
140
141
|
return { color: 'primary', icon: `${icon} fa-eye` };
|
|
141
142
|
case 'info':
|
|
142
|
-
return { color: '
|
|
143
|
+
return { color: 'default', icon: `${icon} fa-info` };
|
|
143
144
|
case 'delete':
|
|
144
145
|
return { color: 'danger', icon: `${icon} fa-trash-can` };
|
|
145
146
|
case 'update':
|
|
146
|
-
return { color: '
|
|
147
|
+
return { color: 'default', icon: `${icon} fa-pen` };
|
|
147
148
|
case 'print':
|
|
148
|
-
return { color: '
|
|
149
|
+
return { color: 'default', icon: `${icon} fa-print` };
|
|
149
150
|
case 'confirm':
|
|
150
151
|
return { color: 'success', icon: `${icon} fa-check` };
|
|
151
152
|
case 'archive':
|
|
152
153
|
return { color: 'warning', icon: `${icon} fa-archive` };
|
|
153
154
|
case 'design':
|
|
154
|
-
return { color: '
|
|
155
|
+
return { color: 'success', icon: `${icon} fa-paintbrush` };
|
|
155
156
|
case 'version-history':
|
|
156
|
-
return { color: '
|
|
157
|
+
return { color: 'default', icon: `${icon} fa-history` };
|
|
157
158
|
case 'upload':
|
|
158
|
-
return { color: '
|
|
159
|
+
return { color: 'default', icon: `${icon} fa-upload` };
|
|
160
|
+
case 'lock':
|
|
161
|
+
return { color: 'default', icon: `${icon} fa-lock` };
|
|
162
|
+
case 'unlock':
|
|
163
|
+
return { color: 'default', icon: `${icon} fa-unlock` };
|
|
164
|
+
case 'compare':
|
|
165
|
+
return { color: 'default', icon: `${icon} fa-code-compare` };
|
|
166
|
+
case 'comments':
|
|
167
|
+
return { color: 'default', icon: `${icon} fa-comments` };
|
|
159
168
|
default:
|
|
160
|
-
return { color: '
|
|
169
|
+
return { color: 'default', icon: '' };
|
|
161
170
|
}
|
|
162
171
|
}
|
|
163
172
|
|
|
@@ -1957,7 +1966,6 @@ class AXPDialogConfirmAction extends AXPWorkflowAction {
|
|
|
1957
1966
|
async execute(context) {
|
|
1958
1967
|
context.setOutput('result', false);
|
|
1959
1968
|
const dialogResult = await this.dialogService.confirm(await this.translationService.translateAsync(this.title), await this.translationService.translateAsync(this.message), (await this.translationService.translateAsync(this.type)), 'horizontal', false, 'cancel');
|
|
1960
|
-
console.log({ dialogResult });
|
|
1961
1969
|
context.setOutput('result', dialogResult.result);
|
|
1962
1970
|
}
|
|
1963
1971
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXPDialogConfirmAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|