@acorex/platform 20.2.2 → 20.2.4-next.0
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 +9 -2
- package/core/index.d.ts +42 -57
- package/fesm2022/acorex-platform-common.mjs +17 -9
- 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 +62 -50
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +170 -23
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +1774 -989
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +186 -51
- 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-hf4QOz_4.mjs → acorex-platform-themes-default-entity-master-list-view.component-ezrf2oBR.mjs} +93 -176
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-ezrf2oBR.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-D8r3S2lI.mjs} +12 -7
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-D8r3S2lI.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +49 -491
- package/fesm2022/acorex-platform-themes-default.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-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 +584 -102
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/index.d.ts +7 -3
- package/layout/components/index.d.ts +45 -6
- package/layout/entity/index.d.ts +136 -328
- package/layout/views/index.d.ts +64 -20
- package/package.json +1 -1
- package/themes/default/index.d.ts +1 -1
- package/widgets/index.d.ts +91 -4
- 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.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-widgets-checkbox-widget-designer.component-BI18uzNZ.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';
|
|
@@ -457,7 +457,7 @@ interface AXPEntityQuery {
|
|
|
457
457
|
execute: string | Function;
|
|
458
458
|
type: AXPEntityQueryType;
|
|
459
459
|
}
|
|
460
|
-
type AXPCommandActionType = 'create' | 'update' | 'delete' | 'print' | 'confirm' | 'report' | 'info' | 'view' | 'archive' | 'design' | 'upload' | 'version-history' | 'sent' | 'review' | 'sign';
|
|
460
|
+
type AXPCommandActionType = 'create' | 'update' | 'delete' | 'print' | 'confirm' | 'report' | 'info' | 'view' | 'archive' | 'design' | 'upload' | 'version-history' | 'sent' | 'review' | 'sign' | 'lock' | 'unlock' | 'compare' | 'comments';
|
|
461
461
|
interface AXPCommandActionLook {
|
|
462
462
|
color: AXStyleColorType;
|
|
463
463
|
icon: string;
|
|
@@ -498,9 +498,14 @@ interface AXPEntityAction extends AXPCommandActionDisplay {
|
|
|
498
498
|
scope: AXPEntityCommandScope;
|
|
499
499
|
}
|
|
500
500
|
interface AXPEntity {
|
|
501
|
+
plugins?: {
|
|
502
|
+
name: string;
|
|
503
|
+
options?: AXPOptionsData;
|
|
504
|
+
}[];
|
|
501
505
|
module: string;
|
|
502
506
|
name: string;
|
|
503
507
|
source: string;
|
|
508
|
+
icon?: string;
|
|
504
509
|
parentKey?: string;
|
|
505
510
|
category?: AXPCategoryEntity;
|
|
506
511
|
versionHistory?: AXPEntityVersionHistory;
|
|
@@ -567,7 +572,9 @@ declare function createAllQueryView(params?: {
|
|
|
567
572
|
interface AXPRelatedEntity {
|
|
568
573
|
entity: string;
|
|
569
574
|
title?: string;
|
|
575
|
+
icon?: string;
|
|
570
576
|
columns?: string[];
|
|
577
|
+
layoutType?: 'tab-detail' | 'tab-list' | 'page-detail' | 'page-list';
|
|
571
578
|
conditions?: AXPQueryFilter[];
|
|
572
579
|
hidden?: boolean | string;
|
|
573
580
|
actions?: AXPEntityAction[];
|
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
|
};
|
|
@@ -577,6 +583,11 @@ type AXPBreadcrumbItem = {
|
|
|
577
583
|
icon?: string;
|
|
578
584
|
command?: AXPExecuteCommand;
|
|
579
585
|
};
|
|
586
|
+
type AXPBadge = {
|
|
587
|
+
title: string;
|
|
588
|
+
description?: string;
|
|
589
|
+
color?: 'primary' | 'success' | 'warning' | 'danger';
|
|
590
|
+
};
|
|
580
591
|
type AXPExecuteCommand = {
|
|
581
592
|
name: string;
|
|
582
593
|
options?: AXPMetaData;
|
|
@@ -676,6 +687,14 @@ declare enum AXPPlatformScope {
|
|
|
676
687
|
declare function resolvePlatformScopeKey(name: string): AXPPlatformScopeKey;
|
|
677
688
|
declare function resolvePlatformScopeName(scope: AXPPlatformScopeKey): string;
|
|
678
689
|
|
|
690
|
+
interface AXPSortDefinition {
|
|
691
|
+
name: string;
|
|
692
|
+
title: string;
|
|
693
|
+
dir?: 'asc' | 'desc';
|
|
694
|
+
}
|
|
695
|
+
interface AXPSortQuery extends Pick<AXPSortDefinition, 'name' | 'dir'> {
|
|
696
|
+
}
|
|
697
|
+
|
|
679
698
|
type AXPValidationRule = {
|
|
680
699
|
rule: string;
|
|
681
700
|
message?: string;
|
|
@@ -712,6 +731,15 @@ interface AXPReqexValidationRule extends AXPValidationRule {
|
|
|
712
731
|
}
|
|
713
732
|
type AXPStringValidationRules = (AXPRequiredValidationRule | AXPMinLengthValidationRule | AXPMaxLengthValidationRule | AXPEqualValidationRule<string> | AXPReqexValidationRule)[];
|
|
714
733
|
|
|
734
|
+
interface AXPViewQuery {
|
|
735
|
+
name: string;
|
|
736
|
+
fixed: boolean;
|
|
737
|
+
title: string;
|
|
738
|
+
columns: string[];
|
|
739
|
+
conditions: AXPFilterQuery[];
|
|
740
|
+
sorts: AXPSortQuery[];
|
|
741
|
+
}
|
|
742
|
+
|
|
715
743
|
interface AXPViewDefinition {
|
|
716
744
|
key: string;
|
|
717
745
|
title: string;
|
|
@@ -890,7 +918,6 @@ declare class AXPContentCheckerDirective {
|
|
|
890
918
|
viewContainerRef: ViewContainerRef;
|
|
891
919
|
elementRef: ElementRef<HTMLDivElement>;
|
|
892
920
|
isEmpty: i0.Signal<boolean>;
|
|
893
|
-
ngAfterViewInit(): void;
|
|
894
921
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPContentCheckerDirective, never>;
|
|
895
922
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AXPContentCheckerDirective, "[axp-content-checker]", ["checker"], {}, {}, never, never, true, never>;
|
|
896
923
|
}
|
|
@@ -1008,6 +1035,17 @@ declare function setSmart(obj: any, smartPath: string, value: any): any;
|
|
|
1008
1035
|
declare function getSmart(obj: any, smartPath: string): any;
|
|
1009
1036
|
declare function extractValue<T = any>(value: any, key?: string): T | null;
|
|
1010
1037
|
declare function cleanDeep(obj: any): any;
|
|
1038
|
+
type ChangeEntry = {
|
|
1039
|
+
path: string;
|
|
1040
|
+
oldValue: any;
|
|
1041
|
+
newValue: any;
|
|
1042
|
+
arrayDiff?: {
|
|
1043
|
+
added: any[];
|
|
1044
|
+
removed: any[];
|
|
1045
|
+
};
|
|
1046
|
+
};
|
|
1047
|
+
declare function getChangedPaths(obj1: any, obj2: any): string[];
|
|
1048
|
+
declare function getDetailedChanges(obj1: any, obj2: any): ChangeEntry[];
|
|
1011
1049
|
|
|
1012
1050
|
declare function applyFilterArray(dataArray: any[], filters?: AXDataSourceFilterOption[], logic?: 'and' | 'or'): any[];
|
|
1013
1051
|
declare function applySortArray(dataArray: any, sorts: AXDataSourceSortOption[]): any;
|
|
@@ -1107,6 +1145,7 @@ interface AXPDistributedEventListenerProvider<T> {
|
|
|
1107
1145
|
|
|
1108
1146
|
declare class AXPDistributedEventListenerService {
|
|
1109
1147
|
private readonly listenerProviders;
|
|
1148
|
+
private readonly injector;
|
|
1110
1149
|
/** Cache for listeners by key. */
|
|
1111
1150
|
private listenersByKey;
|
|
1112
1151
|
/** Flag to track if providers have been loaded */
|
|
@@ -1138,59 +1177,5 @@ declare class AXPDistributedEventListenerService {
|
|
|
1138
1177
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPDistributedEventListenerService>;
|
|
1139
1178
|
}
|
|
1140
1179
|
|
|
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 };
|
|
1180
|
+
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 };
|
|
1181
|
+
export type { AXPActionMenuItem, AXPActivityLog, AXPActivityLogChange, AXPApplicationUserReference, AXPBackButton, AXPBadge, AXPBreadcrumbItem, 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,33 +131,42 @@ 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) {
|
|
137
138
|
case 'create':
|
|
138
139
|
return { color: 'primary', icon: `${icon} fa-add` };
|
|
139
140
|
case 'view':
|
|
140
|
-
return { color: '
|
|
141
|
+
return { color: 'accent2', 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 }); }
|