@acorex/platform 20.6.0-next.9 → 21.0.0-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/auth/index.d.ts +91 -12
- package/common/index.d.ts +615 -44
- package/core/index.d.ts +718 -422
- package/fesm2022/acorex-platform-auth.mjs +152 -39
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-common.mjs +1009 -112
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +887 -408
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-domain.mjs +99 -11
- package/fesm2022/acorex-platform-domain.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +555 -492
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +2446 -2733
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +9 -9
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +9708 -4721
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +32 -26
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +252 -182
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-D0y-9nE5.mjs → acorex-platform-layout-widgets-file-list-popup.component-CxrsI6Hn.mjs} +2 -2
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-CxrsI6Hn.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets-image-preview.popup-V31OpYah.mjs +30 -0
- package/fesm2022/acorex-platform-layout-widgets-image-preview.popup-V31OpYah.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-edit-popup.component-C1l2KSDa.mjs → acorex-platform-layout-widgets-tabular-data-edit-popup.component-Ck7-wpT2.mjs} +2 -2
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-Ck7-wpT2.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-view-popup.component-D-31ej0C.mjs → acorex-platform-layout-widgets-tabular-data-view-popup.component-y8vjUiVs.mjs} +2 -2
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-view-popup.component-y8vjUiVs.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets.mjs +9791 -6928
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-runtime.mjs +79 -3
- package/fesm2022/acorex-platform-runtime.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-VIGuU5M4.mjs +157 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-VIGuU5M4.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs +1542 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Ua3ZA5hk.mjs +101 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Ua3ZA5hk.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-B_P0a5KW.mjs → acorex-platform-themes-default-entity-master-single-view.component-eMBby9k4.mjs} +3 -3
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-eMBby9k4.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +282 -43
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-column.component-C0EpfU2k.mjs +55 -0
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-column.component-C0EpfU2k.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +42 -137
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +658 -45
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/builder/index.d.ts +10 -34
- package/layout/components/index.d.ts +694 -375
- package/layout/designer/index.d.ts +4 -4
- package/layout/entity/index.d.ts +802 -183
- package/layout/views/index.d.ts +5 -58
- package/layout/widget-core/index.d.ts +63 -75
- package/layout/widgets/README.md +0 -1
- package/layout/widgets/index.d.ts +493 -129
- package/package.json +5 -5
- package/runtime/index.d.ts +36 -8
- package/themes/default/index.d.ts +44 -75
- package/themes/shared/index.d.ts +11 -49
- package/workflow/index.d.ts +401 -90
- package/fesm2022/acorex-platform-layout-entity-create-entity.command-DGeylNSY.mjs +0 -52
- package/fesm2022/acorex-platform-layout-entity-create-entity.command-DGeylNSY.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-edit.component-fhhZOWul.mjs +0 -50
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-edit.component-fhhZOWul.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-view.component-C3Qbs0fz.mjs +0 -42
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-view.component-C3Qbs0fz.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-edit.component-CngQBUlN.mjs +0 -55
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-edit.component-CngQBUlN.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-view.component-DSNo9e4W.mjs +0 -50
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-view.component-DSNo9e4W.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-edit.component-CL0CwEHX.mjs +0 -48
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-edit.component-CL0CwEHX.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-view.component-B6Fi0xTw.mjs +0 -42
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-view.component-B6Fi0xTw.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-D0y-9nE5.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-C1l2KSDa.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-view-popup.component-D-31ej0C.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-WbPPqDON.mjs +0 -115
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-WbPPqDON.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CD7rJIMh.mjs +0 -803
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CD7rJIMh.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BTA6h7Xd.mjs +0 -101
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BTA6h7Xd.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-B_P0a5KW.mjs.map +0 -1
package/common/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { InjectionToken, EnvironmentProviders, Injector, ErrorHandler, ModuleWit
|
|
|
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 { AXPValueTransformerFunctions, AXPGridLayoutOptions, AXPValidationRules, AXPSystemActionType, AXPMetaData, AXPOptionsData, AXPPlatformScope, AXPPlatformScopeKey, AXPWidgetTriggers, AXPAppStartUpService, AXPLogoConfig, AXPNavigateActionCommand, AXPExecuteCommand, AXPEntityReference, AXPApplicationUserReference, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviderContext } from '@acorex/platform/core';
|
|
6
|
+
import { AXPValueTransformerFunctions, AXPGridLayoutOptions, AXPValidationRules, AXPSystemActionType, AXPMetaData, AXPOptionsData, AXPPlatformScope, AXPPlatformScopeKey, AXPWidgetTriggers, AXPAppStartUpService, AXPModuleManifestInitializer, AXPLogoConfig, AXPNavigateActionCommand, AXPExecuteCommand, AXPEntityReference, AXPApplicationUserReference, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviderContext } from '@acorex/platform/core';
|
|
7
7
|
import { AXPWidgetTypesMap, AXPWidgetNode, AXPMetaDataDefinition } from '@acorex/platform/layout/widget-core';
|
|
8
8
|
import * as i5 from '@angular/router';
|
|
9
9
|
import { Route, Routes } from '@angular/router';
|
|
@@ -86,6 +86,7 @@ interface AXPEntityPropertyGroup {
|
|
|
86
86
|
title: string;
|
|
87
87
|
description?: string;
|
|
88
88
|
permissions?: string[];
|
|
89
|
+
icon?: string;
|
|
89
90
|
}
|
|
90
91
|
interface AXPEntityPropertyView {
|
|
91
92
|
name: string;
|
|
@@ -100,6 +101,7 @@ interface AXPEntityPropertyCreateView extends AXPEntityPropertyView {
|
|
|
100
101
|
}
|
|
101
102
|
interface AXPEntitySectionView {
|
|
102
103
|
id: string;
|
|
104
|
+
icon?: string;
|
|
103
105
|
description?: string;
|
|
104
106
|
order?: number;
|
|
105
107
|
collapsed?: boolean;
|
|
@@ -113,8 +115,8 @@ interface AXPEntityProperty {
|
|
|
113
115
|
schema: {
|
|
114
116
|
dataType: string;
|
|
115
117
|
nullable?: boolean;
|
|
116
|
-
readonly?: boolean;
|
|
117
|
-
|
|
118
|
+
readonly?: boolean | string;
|
|
119
|
+
visible?: boolean | string;
|
|
118
120
|
defaultValue?: any | string | ((context: any | null) => any);
|
|
119
121
|
unique?: {
|
|
120
122
|
enabled: boolean;
|
|
@@ -201,6 +203,7 @@ interface AXPCommandActionDisplay extends Partial<AXPCommandActionLook> {
|
|
|
201
203
|
hidden?: boolean | string;
|
|
202
204
|
disabled?: boolean | string;
|
|
203
205
|
default?: boolean;
|
|
206
|
+
order?: number;
|
|
204
207
|
}
|
|
205
208
|
interface AXPEntityAction extends AXPCommandActionDisplay {
|
|
206
209
|
scope: AXPEntityCommandScope;
|
|
@@ -236,8 +239,8 @@ interface AXPEntity {
|
|
|
236
239
|
delete?: AXPEntityCommand | undefined;
|
|
237
240
|
[name: string]: AXPEntityCommand | undefined;
|
|
238
241
|
};
|
|
239
|
-
queries
|
|
240
|
-
byKey
|
|
242
|
+
queries?: {
|
|
243
|
+
byKey?: AXPEntityQuery;
|
|
241
244
|
list?: AXPEntityQuery;
|
|
242
245
|
lookup?: AXPEntityQuery;
|
|
243
246
|
history?: AXPEntityQuery;
|
|
@@ -595,6 +598,7 @@ interface AXPSettingDefinitionProvider {
|
|
|
595
598
|
declare const AXP_SETTING_DEFINITION_PROVIDER: InjectionToken<AXPSettingDefinitionProvider[]>;
|
|
596
599
|
declare class AXPSettingDefinitionProviderService {
|
|
597
600
|
private providers;
|
|
601
|
+
private providerRegistry;
|
|
598
602
|
private cache;
|
|
599
603
|
private load;
|
|
600
604
|
reload(): Promise<void>;
|
|
@@ -617,13 +621,13 @@ declare class AXPSettingDefaultValuesAggregatorService {
|
|
|
617
621
|
|
|
618
622
|
declare const AXP_SETTING_VALUE_PROVIDER: InjectionToken<AXPSettingValueProvider[]>;
|
|
619
623
|
|
|
620
|
-
interface
|
|
624
|
+
interface AXPSettingsServiceInterface {
|
|
621
625
|
load(): Promise<AXPSettingValue[]>;
|
|
622
626
|
get<T = any>(key: string): Promise<T>;
|
|
623
627
|
defaultValues(scope: AXPPlatformScope): Promise<Record<string, unknown>>;
|
|
624
628
|
scope(scope: AXPPlatformScope): ScopedSettingService;
|
|
625
629
|
}
|
|
626
|
-
declare class
|
|
630
|
+
declare class AXPSettingsService implements AXPSettingsServiceInterface {
|
|
627
631
|
private readonly providers;
|
|
628
632
|
private readonly injector;
|
|
629
633
|
private readonly eventService;
|
|
@@ -638,14 +642,14 @@ declare class AXPSettingService implements AXPSettingServiceInterface {
|
|
|
638
642
|
defaultValues(scope: AXPPlatformScope): Promise<Record<string, unknown>>;
|
|
639
643
|
scope(scope: AXPPlatformScope): ScopedSettingService;
|
|
640
644
|
invokeChangeEvent(event: AXPSettingChangedEvent): void;
|
|
641
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
642
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
645
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingsService, never>;
|
|
646
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingsService>;
|
|
643
647
|
}
|
|
644
648
|
declare class ScopedSettingService {
|
|
645
649
|
private parent;
|
|
646
650
|
private provider;
|
|
647
651
|
private scopeCache;
|
|
648
|
-
constructor(parent:
|
|
652
|
+
constructor(parent: AXPSettingsService, provider: AXPSettingValueProvider, scopeCache: Map<string, any>);
|
|
649
653
|
get<T = any>(key: string): Promise<T>;
|
|
650
654
|
all(): Promise<any>;
|
|
651
655
|
defaultValues(): Promise<Record<string, unknown>>;
|
|
@@ -654,6 +658,34 @@ declare class ScopedSettingService {
|
|
|
654
658
|
update<T = any>(key: string, updateFn: (currentValue: T) => T): Promise<void>;
|
|
655
659
|
}
|
|
656
660
|
|
|
661
|
+
/**
|
|
662
|
+
* Regional settings keys for date, time, and locale formatting.
|
|
663
|
+
* These keys are used by platform widgets and components to access regional settings.
|
|
664
|
+
* The actual setting definitions and providers are implemented in the locale-management module.
|
|
665
|
+
*/
|
|
666
|
+
declare enum AXPRegionalSetting {
|
|
667
|
+
LocaleProfile = "LocaleManagement:Setting:Regional.LocaleProfile",
|
|
668
|
+
TimeZone = "LocaleManagement:Setting:Regional.TimeZone",
|
|
669
|
+
Language = "LocaleManagement:Setting:Regional.Language",
|
|
670
|
+
Country = "LocaleManagement:Setting:Regional.Country",
|
|
671
|
+
Calendar = "LocaleManagement:Setting:Regional.Calendar",
|
|
672
|
+
FirstDayOfWeek = "LocaleManagement:Setting:Regional.FirstDayOfWeek",
|
|
673
|
+
WeekendDays = "LocaleManagement:Setting:Regional.WeekendDays",
|
|
674
|
+
ShortDate = "LocaleManagement:Setting:Regional.ShortDate",
|
|
675
|
+
MediumDate = "LocaleManagement:Setting:Regional.MediumDate",
|
|
676
|
+
LongDate = "LocaleManagement:Setting:Regional.LongDate",
|
|
677
|
+
ShortTime = "LocaleManagement:Setting:Regional.ShortTime",
|
|
678
|
+
MediumTime = "LocaleManagement:Setting:Regional.MediumTime",
|
|
679
|
+
LongTime = "LocaleManagement:Setting:Regional.LongTime",
|
|
680
|
+
MeasurementUnits = "LocaleManagement:Setting:Regional.MeasurementUnits",
|
|
681
|
+
TemperatureUnits = "LocaleManagement:Setting:Regional.TemperatureUnits",
|
|
682
|
+
DistanceUnits = "LocaleManagement:Setting:Regional.DistanceUnits",
|
|
683
|
+
WeightUnits = "LocaleManagement:Setting:Regional.WeightUnits",
|
|
684
|
+
VolumeUnits = "LocaleManagement:Setting:Regional.VolumeUnits",
|
|
685
|
+
SpeedUnits = "LocaleManagement:Setting:Regional.SpeedUnits",
|
|
686
|
+
AreaUnits = "LocaleManagement:Setting:Regional.AreaUnits"
|
|
687
|
+
}
|
|
688
|
+
|
|
657
689
|
interface AXPCommonModuleConfigs {
|
|
658
690
|
errorHandlers: (new () => AXPErrorHandler)[];
|
|
659
691
|
}
|
|
@@ -663,7 +695,7 @@ declare class AXPCommonModule {
|
|
|
663
695
|
/**
|
|
664
696
|
* @ignore
|
|
665
697
|
*/
|
|
666
|
-
constructor(instances: any[], appInitService: AXPAppStartUpService, settingsService:
|
|
698
|
+
constructor(instances: any[], appInitService: AXPAppStartUpService, settingsService: AXPSettingsService, manifestInitializer: AXPModuleManifestInitializer, injector: Injector);
|
|
667
699
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPCommonModule, never>;
|
|
668
700
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPCommonModule, never, [typeof i1.AXPWorkflowModule, typeof i2.AXPopupModule, typeof i3.AXDateTimeModule, typeof i4.AXToastModule], [typeof i5.RouterModule]>;
|
|
669
701
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXPCommonModule>;
|
|
@@ -696,8 +728,8 @@ declare const AXPPlatformDefaultConfigs: AXPPlatformConfigs;
|
|
|
696
728
|
declare function configPlatform(config?: Partial<AXPPlatformConfigs>): AXPPlatformConfigs;
|
|
697
729
|
|
|
698
730
|
declare enum AXPCommonSettings {
|
|
699
|
-
EnableOperationToasts = "
|
|
700
|
-
EntityFilterApplyMode = "
|
|
731
|
+
EnableOperationToasts = "Common:Setting:Notifications.EnableOperationToasts",
|
|
732
|
+
EntityFilterApplyMode = "Common:Setting:Entity.FilterApplyMode"
|
|
701
733
|
}
|
|
702
734
|
|
|
703
735
|
declare const AXP_ROOT_CONFIG_TOKEN: InjectionToken<AXPRootConfigs>;
|
|
@@ -821,6 +853,10 @@ interface AXPFileStorageUpdateRequest {
|
|
|
821
853
|
* If null, the service will resolve the path based on metadata, user, tenant, or default rules.
|
|
822
854
|
*/
|
|
823
855
|
path?: string;
|
|
856
|
+
/**
|
|
857
|
+
* The name of the file.
|
|
858
|
+
*/
|
|
859
|
+
name?: string;
|
|
824
860
|
/**
|
|
825
861
|
* Metadata associated with the file.
|
|
826
862
|
*/
|
|
@@ -1109,18 +1145,6 @@ declare class AXPStickyDirective {
|
|
|
1109
1145
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AXPStickyDirective, "[axpSticky]", ["axpSticky"], { "stickyClass": { "alias": "axpSticky"; "required": false; }; "stickyOffset": { "alias": "stickyOffset"; "required": false; }; "stickyParent": { "alias": "stickyParent"; "required": false; }; "stickyTarget": { "alias": "stickyTarget"; "required": false; }; }, { "isStickyChange": "isStickyChange"; }, never, never, true, never>;
|
|
1110
1146
|
}
|
|
1111
1147
|
|
|
1112
|
-
declare class AXPLogoComponent {
|
|
1113
|
-
source: any;
|
|
1114
|
-
protected logoType: string;
|
|
1115
|
-
private platform;
|
|
1116
|
-
ngOnInit(): void;
|
|
1117
|
-
ngOnChanges(): void;
|
|
1118
|
-
protected setLogoType(): void;
|
|
1119
|
-
protected setLogoTheme(): void;
|
|
1120
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPLogoComponent, never>;
|
|
1121
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXPLogoComponent, "axp-logo", never, { "source": { "alias": "source"; "required": false; }; }, {}, never, never, true, never>;
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
1148
|
type AXPMenuInsertion = 'before' | 'after' | 'inside';
|
|
1125
1149
|
type AXPMenuType = 'menu' | 'group' | 'break';
|
|
1126
1150
|
type AXPMenuItemCommand = AXPNavigateActionCommand<'modal' | 'router'> | AXPExecuteCommand;
|
|
@@ -1143,6 +1167,7 @@ interface AXPMenuItem {
|
|
|
1143
1167
|
};
|
|
1144
1168
|
}
|
|
1145
1169
|
interface AXPMenuFinderResult {
|
|
1170
|
+
readonly exists: boolean;
|
|
1146
1171
|
insert(items: AXPMenuItem[], position: AXPMenuInsertion): void;
|
|
1147
1172
|
remove(): void;
|
|
1148
1173
|
update(updatedItem: Partial<AXPMenuItem>): void;
|
|
@@ -1159,6 +1184,7 @@ interface AXPMenuProvider {
|
|
|
1159
1184
|
declare const AXP_MENU_PROVIDER: InjectionToken<AXPMenuProvider[]>;
|
|
1160
1185
|
declare class AXPMenuProviderService {
|
|
1161
1186
|
private providers;
|
|
1187
|
+
private providerRegistry;
|
|
1162
1188
|
private middlewareRegistry;
|
|
1163
1189
|
private cache;
|
|
1164
1190
|
private pendingInserts;
|
|
@@ -1195,6 +1221,14 @@ declare class AXPMenuProviderService {
|
|
|
1195
1221
|
private createMenuProviderContext;
|
|
1196
1222
|
private applyPendingOperations;
|
|
1197
1223
|
private findItemWithParent;
|
|
1224
|
+
/**
|
|
1225
|
+
* Find menu item by name in the items tree (recursive search)
|
|
1226
|
+
*/
|
|
1227
|
+
private findItemByName;
|
|
1228
|
+
/**
|
|
1229
|
+
* Merge new item properties into existing item, handling children merge
|
|
1230
|
+
*/
|
|
1231
|
+
private mergeMenuItem;
|
|
1198
1232
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPMenuProviderService, never>;
|
|
1199
1233
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPMenuProviderService>;
|
|
1200
1234
|
}
|
|
@@ -1440,6 +1474,37 @@ declare const AXPMenuService: i0.Type<{
|
|
|
1440
1474
|
};
|
|
1441
1475
|
}>>;
|
|
1442
1476
|
|
|
1477
|
+
/**
|
|
1478
|
+
* Service for checking menu item visibility based on permissions, features, and children.
|
|
1479
|
+
* This service helps filter out empty menu items that have no visible children.
|
|
1480
|
+
*/
|
|
1481
|
+
declare class AXPMenuVisibilityService {
|
|
1482
|
+
private sessionService;
|
|
1483
|
+
/**
|
|
1484
|
+
* Checks if a menu item should be visible based on permissions and features.
|
|
1485
|
+
*/
|
|
1486
|
+
isItemVisible(item: AXPMenuItem): boolean;
|
|
1487
|
+
/**
|
|
1488
|
+
* Recursively checks if a menu item has any visible children.
|
|
1489
|
+
* @param item The menu item to check
|
|
1490
|
+
* @param getRouterLink Optional function to check if an item has a router link
|
|
1491
|
+
*/
|
|
1492
|
+
hasVisibleChildren(item: AXPMenuItem, getRouterLink?: (item: AXPMenuItem) => unknown): boolean;
|
|
1493
|
+
/**
|
|
1494
|
+
* Determines if a menu item should be rendered.
|
|
1495
|
+
* A menu item should be rendered if:
|
|
1496
|
+
* 1. It has a routerLink, OR
|
|
1497
|
+
* 2. It has visible children, OR
|
|
1498
|
+
* 3. It has a command (for non-router navigation)
|
|
1499
|
+
*
|
|
1500
|
+
* @param item The menu item to check
|
|
1501
|
+
* @param getRouterLink Optional function to check if an item has a router link
|
|
1502
|
+
*/
|
|
1503
|
+
shouldRenderMenuItem(item: AXPMenuItem, getRouterLink?: (item: AXPMenuItem) => unknown): boolean;
|
|
1504
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPMenuVisibilityService, never>;
|
|
1505
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPMenuVisibilityService>;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1443
1508
|
interface AXPSearchDefinitionDisplayFormat {
|
|
1444
1509
|
title?: string;
|
|
1445
1510
|
description?: string;
|
|
@@ -1539,6 +1604,7 @@ interface AXPSearchDefinitionProvider {
|
|
|
1539
1604
|
declare const AXP_SEARCH_DEFINITION_PROVIDER: InjectionToken<AXPSearchDefinitionProvider[]>;
|
|
1540
1605
|
declare class AXPSearchDefinitionProviderService {
|
|
1541
1606
|
private providers;
|
|
1607
|
+
private providerRegistry;
|
|
1542
1608
|
private cache;
|
|
1543
1609
|
private load;
|
|
1544
1610
|
getListAsync(): Promise<AXPSearchDefinition[]>;
|
|
@@ -1560,6 +1626,7 @@ declare abstract class AXPSearchCommandProvider {
|
|
|
1560
1626
|
declare const AXP_SEARCH_PROVIDER: InjectionToken<AXPSearchProvider[]>;
|
|
1561
1627
|
declare class AXPSearchService {
|
|
1562
1628
|
private providers;
|
|
1629
|
+
private providerRegistry;
|
|
1563
1630
|
private definitionService;
|
|
1564
1631
|
private formatService;
|
|
1565
1632
|
search(text: string): Promise<AXPSearchDisplayGroupResult[]>;
|
|
@@ -1639,42 +1706,531 @@ declare abstract class AXPLockService {
|
|
|
1639
1706
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPLockService>;
|
|
1640
1707
|
}
|
|
1641
1708
|
|
|
1642
|
-
|
|
1709
|
+
/**
|
|
1710
|
+
* Status Definition Types
|
|
1711
|
+
* Defines the structure for status definitions and their transitions
|
|
1712
|
+
*/
|
|
1713
|
+
/**
|
|
1714
|
+
* Status definition with metadata
|
|
1715
|
+
*/
|
|
1716
|
+
interface AXPStatusDefinition {
|
|
1717
|
+
/**
|
|
1718
|
+
* Unique identifier for the status
|
|
1719
|
+
*/
|
|
1720
|
+
name: string;
|
|
1721
|
+
/**
|
|
1722
|
+
* Display title for the status
|
|
1723
|
+
*/
|
|
1724
|
+
title: string;
|
|
1725
|
+
/**
|
|
1726
|
+
* Color code or semantic color name for the status
|
|
1727
|
+
*/
|
|
1728
|
+
color: string;
|
|
1729
|
+
/**
|
|
1730
|
+
* Optional icon class (e.g., 'fa-light fa-check')
|
|
1731
|
+
*/
|
|
1732
|
+
icon?: string;
|
|
1733
|
+
/**
|
|
1734
|
+
* Optional description
|
|
1735
|
+
*/
|
|
1736
|
+
description?: string;
|
|
1737
|
+
/**
|
|
1738
|
+
* Optional order for sorting
|
|
1739
|
+
*/
|
|
1740
|
+
order?: number;
|
|
1741
|
+
/**
|
|
1742
|
+
* Whether this is a final status (end state)
|
|
1743
|
+
*/
|
|
1744
|
+
isFinal?: boolean;
|
|
1745
|
+
/**
|
|
1746
|
+
* Whether this is an initial status (starting state)
|
|
1747
|
+
*/
|
|
1748
|
+
isInitial?: boolean;
|
|
1749
|
+
/**
|
|
1750
|
+
* Whether list views should be automatically generated for this status
|
|
1751
|
+
*/
|
|
1752
|
+
generateView?: boolean;
|
|
1753
|
+
}
|
|
1754
|
+
/**
|
|
1755
|
+
* Status transition definition
|
|
1756
|
+
*/
|
|
1757
|
+
interface AXPStatusTransition {
|
|
1758
|
+
/**
|
|
1759
|
+
* Source status name
|
|
1760
|
+
*/
|
|
1761
|
+
from: string;
|
|
1762
|
+
/**
|
|
1763
|
+
* Target status name
|
|
1764
|
+
*/
|
|
1765
|
+
to: string;
|
|
1766
|
+
/**
|
|
1767
|
+
* Optional condition expression to evaluate before allowing transition
|
|
1768
|
+
* Uses expression evaluator syntax (e.g., "{{user.isAdmin}}", "{{item.priority > 5}}")
|
|
1769
|
+
*/
|
|
1770
|
+
condition?: string;
|
|
1771
|
+
/**
|
|
1772
|
+
* Optional display title for the transition
|
|
1773
|
+
*/
|
|
1774
|
+
title?: string;
|
|
1775
|
+
/**
|
|
1776
|
+
* Optional description
|
|
1777
|
+
*/
|
|
1778
|
+
description?: string;
|
|
1779
|
+
/**
|
|
1780
|
+
* Optional command descriptor to execute for this transition
|
|
1781
|
+
* If not provided, defaults to Entity:UpdateStatus with entity, id, and status
|
|
1782
|
+
*/
|
|
1783
|
+
command?: {
|
|
1784
|
+
name: string;
|
|
1785
|
+
options?: Record<string, unknown>;
|
|
1786
|
+
};
|
|
1787
|
+
/**
|
|
1788
|
+
* Whether this transition is automatic (no user action required)
|
|
1789
|
+
*/
|
|
1790
|
+
isAutomatic?: boolean;
|
|
1791
|
+
/**
|
|
1792
|
+
* Whether this transition requires approval
|
|
1793
|
+
*/
|
|
1794
|
+
requiresApproval?: boolean;
|
|
1795
|
+
}
|
|
1796
|
+
/**
|
|
1797
|
+
* Abstract class for status providers
|
|
1798
|
+
* Similar to AXPTaskBadgeProvider pattern
|
|
1799
|
+
*/
|
|
1800
|
+
declare abstract class AXPStatusProvider {
|
|
1801
|
+
/**
|
|
1802
|
+
* Unique key for the status (e.g., 'task-management.status')
|
|
1803
|
+
*/
|
|
1804
|
+
abstract readonly key: string;
|
|
1805
|
+
/**
|
|
1806
|
+
* List of available status definitions
|
|
1807
|
+
*/
|
|
1808
|
+
abstract readonly statuses: AXPStatusDefinition[];
|
|
1809
|
+
/**
|
|
1810
|
+
* List of allowed transitions between statuses
|
|
1811
|
+
*/
|
|
1812
|
+
abstract readonly transitions: AXPStatusTransition[];
|
|
1813
|
+
/**
|
|
1814
|
+
* Optional default status name
|
|
1815
|
+
*/
|
|
1816
|
+
abstract readonly defaultStatus?: string;
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* Injection token for status providers
|
|
1821
|
+
* Use with multi: true to register multiple providers
|
|
1822
|
+
*/
|
|
1823
|
+
declare const AXP_STATUS_PROVIDERS: InjectionToken<AXPStatusProvider[]>;
|
|
1824
|
+
/**
|
|
1825
|
+
* Service for managing status definitions from multiple providers
|
|
1826
|
+
* Similar to AXPTaskBadgeService pattern - no cache, direct access
|
|
1827
|
+
*
|
|
1828
|
+
* @example
|
|
1829
|
+
* ```typescript
|
|
1830
|
+
* // In a module providers array:
|
|
1831
|
+
* {
|
|
1832
|
+
* provide: AXP_STATUS_PROVIDERS,
|
|
1833
|
+
* useClass: TaskStatusProvider,
|
|
1834
|
+
* multi: true,
|
|
1835
|
+
* }
|
|
1836
|
+
*
|
|
1837
|
+
* // Example provider implementation:
|
|
1838
|
+
* export class TaskStatusProvider extends AXPStatusProvider {
|
|
1839
|
+
* readonly key = 'task-management.status';
|
|
1840
|
+
* readonly statuses = [
|
|
1841
|
+
* { name: 'todo', title: 'To Do', color: '#6b7280', icon: 'fa-light fa-circle', isInitial: true },
|
|
1842
|
+
* { name: 'in-progress', title: 'In Progress', color: '#3b82f6', icon: 'fa-light fa-play' },
|
|
1843
|
+
* { name: 'done', title: 'Done', color: '#10b981', icon: 'fa-light fa-check-circle', isFinal: true },
|
|
1844
|
+
* ];
|
|
1845
|
+
* readonly transitions = [
|
|
1846
|
+
* { from: 'todo', to: 'in-progress', title: 'Start', condition: '{{user.canEdit}}' },
|
|
1847
|
+
* { from: 'in-progress', to: 'done', title: 'Complete' },
|
|
1848
|
+
* ];
|
|
1849
|
+
* readonly defaultStatus = 'todo';
|
|
1850
|
+
* }
|
|
1851
|
+
*
|
|
1852
|
+
* // Later, get the status:
|
|
1853
|
+
* const status = statusService.getStatus('task-management.status');
|
|
1854
|
+
* if (status) {
|
|
1855
|
+
* console.log('Statuses:', status.statuses);
|
|
1856
|
+
* console.log('Transitions:', status.transitions);
|
|
1857
|
+
* }
|
|
1858
|
+
* ```
|
|
1859
|
+
*/
|
|
1860
|
+
declare class AXPStatusDefinitionProviderService {
|
|
1861
|
+
private providers;
|
|
1862
|
+
private commandService;
|
|
1863
|
+
private statusMap;
|
|
1864
|
+
constructor();
|
|
1865
|
+
/**
|
|
1866
|
+
* Get a status provider by key
|
|
1867
|
+
* Direct access from Map (no lazy load, no cache)
|
|
1868
|
+
*
|
|
1869
|
+
* @param key - Status key (e.g., 'task-management.status')
|
|
1870
|
+
* @returns Status provider with all statuses and transitions, or undefined if not found
|
|
1871
|
+
*
|
|
1872
|
+
* @example
|
|
1873
|
+
* ```typescript
|
|
1874
|
+
* const status = statusService.getStatus('task-management.status');
|
|
1875
|
+
* if (status) {
|
|
1876
|
+
* console.log('Statuses:', status.statuses);
|
|
1877
|
+
* console.log('Transitions:', status.transitions);
|
|
1878
|
+
* }
|
|
1879
|
+
* ```
|
|
1880
|
+
*/
|
|
1881
|
+
getStatus(key: string): AXPStatusProvider | undefined;
|
|
1882
|
+
/**
|
|
1883
|
+
* Execute a status transition workflow action
|
|
1884
|
+
* Uses transition.command if provided, otherwise defaults to Entity:UpdateStatus
|
|
1885
|
+
* Validates the transition is allowed before executing
|
|
1886
|
+
*
|
|
1887
|
+
* @param definitionKey - Status definition key
|
|
1888
|
+
* @param transition - The transition to execute
|
|
1889
|
+
* @param context - Context data for the command (must include entity name and id/ids)
|
|
1890
|
+
* @returns Promise that resolves when the command execution completes
|
|
1891
|
+
*
|
|
1892
|
+
* @example
|
|
1893
|
+
* ```typescript
|
|
1894
|
+
* await statusService.executeTransition(
|
|
1895
|
+
* 'task-management.status',
|
|
1896
|
+
* { from: 'todo', to: 'in-progress' },
|
|
1897
|
+
* { entity: 'TaskManagement.Task', id: '123', ...entityData }
|
|
1898
|
+
* );
|
|
1899
|
+
* ```
|
|
1900
|
+
*/
|
|
1901
|
+
executeTransition(definitionKey: string, transition: AXPStatusTransition, context: Record<string, any>): Promise<void>;
|
|
1902
|
+
/**
|
|
1903
|
+
* Validate if a transition is allowed
|
|
1904
|
+
* Checks if the transition exists in the provider's transitions list
|
|
1905
|
+
*/
|
|
1906
|
+
private isValidTransition;
|
|
1907
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPStatusDefinitionProviderService, never>;
|
|
1908
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPStatusDefinitionProviderService>;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
/**
|
|
1912
|
+
* Standard system status types
|
|
1913
|
+
* These are the predefined status values used across the platform
|
|
1914
|
+
*/
|
|
1915
|
+
declare enum AXPSystemStatusType {
|
|
1916
|
+
Todo = "todo",
|
|
1917
|
+
InProgress = "in-progress",
|
|
1918
|
+
InReview = "in-review",
|
|
1919
|
+
Open = "open",
|
|
1920
|
+
Closed = "closed",
|
|
1921
|
+
Blocked = "blocked",
|
|
1922
|
+
Done = "done",
|
|
1923
|
+
Cancelled = "cancelled",
|
|
1924
|
+
Draft = "draft",
|
|
1925
|
+
PendingReview = "pending-review",
|
|
1926
|
+
Approved = "approved",
|
|
1927
|
+
Published = "published",
|
|
1928
|
+
Archived = "archived",
|
|
1929
|
+
Rejected = "rejected",
|
|
1930
|
+
Active = "active",
|
|
1931
|
+
Inactive = "inactive",
|
|
1932
|
+
Pending = "pending",
|
|
1933
|
+
Completed = "completed",
|
|
1934
|
+
Suspended = "suspended",
|
|
1935
|
+
Failed = "failed",
|
|
1936
|
+
Review = "review",
|
|
1937
|
+
Expired = "expired"
|
|
1938
|
+
}
|
|
1939
|
+
/**
|
|
1940
|
+
* Standard system status definitions
|
|
1941
|
+
* Provides consistent status definitions across the platform
|
|
1942
|
+
* Uses AXPStatusDefinition interface from status-definition.types.ts
|
|
1943
|
+
*/
|
|
1944
|
+
declare const AXPSystemStatuses: Readonly<{
|
|
1945
|
+
readonly Open: {
|
|
1946
|
+
readonly name: AXPSystemStatusType.Open;
|
|
1947
|
+
readonly title: string;
|
|
1948
|
+
readonly icon: "fa-light fa-circle";
|
|
1949
|
+
readonly color: "secondary";
|
|
1950
|
+
readonly description: string;
|
|
1951
|
+
readonly order: 1;
|
|
1952
|
+
readonly isInitial: true;
|
|
1953
|
+
readonly isFinal: false;
|
|
1954
|
+
};
|
|
1955
|
+
readonly Closed: {
|
|
1956
|
+
readonly name: AXPSystemStatusType.Closed;
|
|
1957
|
+
readonly title: string;
|
|
1958
|
+
readonly icon: "fa-light fa-circle";
|
|
1959
|
+
readonly color: "danger";
|
|
1960
|
+
readonly description: string;
|
|
1961
|
+
readonly order: 2;
|
|
1962
|
+
readonly isInitial: false;
|
|
1963
|
+
readonly isFinal: true;
|
|
1964
|
+
};
|
|
1965
|
+
readonly Todo: {
|
|
1966
|
+
readonly name: AXPSystemStatusType.Todo;
|
|
1967
|
+
readonly title: string;
|
|
1968
|
+
readonly icon: "fa-light fa-circle";
|
|
1969
|
+
readonly color: "secondary";
|
|
1970
|
+
readonly description: string;
|
|
1971
|
+
readonly order: 1;
|
|
1972
|
+
readonly isInitial: true;
|
|
1973
|
+
readonly isFinal: false;
|
|
1974
|
+
};
|
|
1975
|
+
readonly InProgress: {
|
|
1976
|
+
readonly name: AXPSystemStatusType.InProgress;
|
|
1977
|
+
readonly title: string;
|
|
1978
|
+
readonly icon: "fa-light fa-play";
|
|
1979
|
+
readonly color: "info";
|
|
1980
|
+
readonly description: string;
|
|
1981
|
+
readonly order: 2;
|
|
1982
|
+
readonly isInitial: false;
|
|
1983
|
+
readonly isFinal: false;
|
|
1984
|
+
};
|
|
1985
|
+
readonly InReview: {
|
|
1986
|
+
readonly name: AXPSystemStatusType.InReview;
|
|
1987
|
+
readonly title: string;
|
|
1988
|
+
readonly icon: "fa-light fa-eye";
|
|
1989
|
+
readonly color: "info";
|
|
1990
|
+
readonly description: string;
|
|
1991
|
+
readonly order: 3;
|
|
1992
|
+
readonly isInitial: false;
|
|
1993
|
+
readonly isFinal: false;
|
|
1994
|
+
};
|
|
1995
|
+
readonly Blocked: {
|
|
1996
|
+
readonly name: AXPSystemStatusType.Blocked;
|
|
1997
|
+
readonly title: string;
|
|
1998
|
+
readonly icon: "fa-light fa-ban";
|
|
1999
|
+
readonly color: "danger";
|
|
2000
|
+
readonly description: string;
|
|
2001
|
+
readonly order: 4;
|
|
2002
|
+
readonly isInitial: false;
|
|
2003
|
+
readonly isFinal: false;
|
|
2004
|
+
};
|
|
2005
|
+
readonly Done: {
|
|
2006
|
+
readonly name: AXPSystemStatusType.Done;
|
|
2007
|
+
readonly title: string;
|
|
2008
|
+
readonly icon: "fa-light fa-check-circle";
|
|
2009
|
+
readonly color: "success";
|
|
2010
|
+
readonly description: string;
|
|
2011
|
+
readonly order: 5;
|
|
2012
|
+
readonly isInitial: false;
|
|
2013
|
+
readonly isFinal: true;
|
|
2014
|
+
};
|
|
2015
|
+
readonly Cancelled: {
|
|
2016
|
+
readonly name: AXPSystemStatusType.Cancelled;
|
|
2017
|
+
readonly title: string;
|
|
2018
|
+
readonly icon: "fa-light fa-times-circle";
|
|
2019
|
+
readonly color: "neutral";
|
|
2020
|
+
readonly description: string;
|
|
2021
|
+
readonly order: 6;
|
|
2022
|
+
readonly isInitial: false;
|
|
2023
|
+
readonly isFinal: true;
|
|
2024
|
+
};
|
|
2025
|
+
readonly Draft: {
|
|
2026
|
+
readonly name: AXPSystemStatusType.Draft;
|
|
2027
|
+
readonly title: string;
|
|
2028
|
+
readonly icon: "fa-light fa-file-pen";
|
|
2029
|
+
readonly color: "neutral";
|
|
2030
|
+
readonly description: string;
|
|
2031
|
+
readonly order: 1;
|
|
2032
|
+
readonly isInitial: true;
|
|
2033
|
+
readonly isFinal: false;
|
|
2034
|
+
};
|
|
2035
|
+
readonly PendingReview: {
|
|
2036
|
+
readonly name: AXPSystemStatusType.PendingReview;
|
|
2037
|
+
readonly title: string;
|
|
2038
|
+
readonly icon: "fa-light fa-clock";
|
|
2039
|
+
readonly color: "warning";
|
|
2040
|
+
readonly description: string;
|
|
2041
|
+
readonly order: 2;
|
|
2042
|
+
readonly isInitial: false;
|
|
2043
|
+
readonly isFinal: false;
|
|
2044
|
+
};
|
|
2045
|
+
readonly Approved: {
|
|
2046
|
+
readonly name: AXPSystemStatusType.Approved;
|
|
2047
|
+
readonly title: string;
|
|
2048
|
+
readonly icon: "fa-light fa-check-circle";
|
|
2049
|
+
readonly color: "success";
|
|
2050
|
+
readonly description: string;
|
|
2051
|
+
readonly order: 3;
|
|
2052
|
+
readonly isInitial: false;
|
|
2053
|
+
readonly isFinal: false;
|
|
2054
|
+
};
|
|
2055
|
+
readonly Published: {
|
|
2056
|
+
readonly name: AXPSystemStatusType.Published;
|
|
2057
|
+
readonly title: string;
|
|
2058
|
+
readonly icon: "fa-light fa-globe";
|
|
2059
|
+
readonly color: "primary";
|
|
2060
|
+
readonly description: string;
|
|
2061
|
+
readonly order: 4;
|
|
2062
|
+
readonly isInitial: false;
|
|
2063
|
+
readonly isFinal: false;
|
|
2064
|
+
};
|
|
2065
|
+
readonly Archived: {
|
|
2066
|
+
readonly name: AXPSystemStatusType.Archived;
|
|
2067
|
+
readonly title: string;
|
|
2068
|
+
readonly icon: "fa-light fa-archive";
|
|
2069
|
+
readonly color: "danger";
|
|
2070
|
+
readonly description: string;
|
|
2071
|
+
readonly order: 5;
|
|
2072
|
+
readonly isInitial: false;
|
|
2073
|
+
readonly isFinal: true;
|
|
2074
|
+
};
|
|
2075
|
+
readonly Rejected: {
|
|
2076
|
+
readonly name: AXPSystemStatusType.Rejected;
|
|
2077
|
+
readonly title: string;
|
|
2078
|
+
readonly icon: "fa-light fa-times-circle";
|
|
2079
|
+
readonly color: "danger";
|
|
2080
|
+
readonly description: string;
|
|
2081
|
+
readonly order: 6;
|
|
2082
|
+
readonly isInitial: false;
|
|
2083
|
+
readonly isFinal: true;
|
|
2084
|
+
};
|
|
2085
|
+
readonly Active: {
|
|
2086
|
+
readonly name: AXPSystemStatusType.Active;
|
|
2087
|
+
readonly title: string;
|
|
2088
|
+
readonly icon: "fa-light fa-check-circle";
|
|
2089
|
+
readonly color: "success";
|
|
2090
|
+
readonly description: string;
|
|
2091
|
+
readonly order: 1;
|
|
2092
|
+
readonly isInitial: false;
|
|
2093
|
+
readonly isFinal: false;
|
|
2094
|
+
};
|
|
2095
|
+
readonly Inactive: {
|
|
2096
|
+
readonly name: AXPSystemStatusType.Inactive;
|
|
2097
|
+
readonly title: string;
|
|
2098
|
+
readonly icon: "fa-light fa-circle";
|
|
2099
|
+
readonly color: "secondary";
|
|
2100
|
+
readonly description: string;
|
|
2101
|
+
readonly order: 2;
|
|
2102
|
+
readonly isInitial: false;
|
|
2103
|
+
readonly isFinal: false;
|
|
2104
|
+
};
|
|
2105
|
+
readonly Pending: {
|
|
2106
|
+
readonly name: AXPSystemStatusType.Pending;
|
|
2107
|
+
readonly title: string;
|
|
2108
|
+
readonly icon: "fa-light fa-clock";
|
|
2109
|
+
readonly color: "warning";
|
|
2110
|
+
readonly description: string;
|
|
2111
|
+
readonly order: 1;
|
|
2112
|
+
readonly isInitial: true;
|
|
2113
|
+
readonly isFinal: false;
|
|
2114
|
+
};
|
|
2115
|
+
readonly Completed: {
|
|
2116
|
+
readonly name: AXPSystemStatusType.Completed;
|
|
2117
|
+
readonly title: string;
|
|
2118
|
+
readonly icon: "fa-light fa-check-circle";
|
|
2119
|
+
readonly color: "success";
|
|
2120
|
+
readonly description: string;
|
|
2121
|
+
readonly order: 10;
|
|
2122
|
+
readonly isInitial: false;
|
|
2123
|
+
readonly isFinal: true;
|
|
2124
|
+
};
|
|
2125
|
+
readonly Suspended: {
|
|
2126
|
+
readonly name: AXPSystemStatusType.Suspended;
|
|
2127
|
+
readonly title: string;
|
|
2128
|
+
readonly icon: "fa-light fa-pause-circle";
|
|
2129
|
+
readonly color: "neutral";
|
|
2130
|
+
readonly description: string;
|
|
2131
|
+
readonly order: 5;
|
|
2132
|
+
readonly isInitial: false;
|
|
2133
|
+
readonly isFinal: false;
|
|
2134
|
+
};
|
|
2135
|
+
readonly Failed: {
|
|
2136
|
+
readonly name: AXPSystemStatusType.Failed;
|
|
2137
|
+
readonly title: string;
|
|
2138
|
+
readonly icon: "fa-light fa-xmark-circle";
|
|
2139
|
+
readonly color: "danger";
|
|
2140
|
+
readonly description: string;
|
|
2141
|
+
readonly order: 10;
|
|
2142
|
+
readonly isInitial: false;
|
|
2143
|
+
readonly isFinal: true;
|
|
2144
|
+
};
|
|
2145
|
+
readonly Review: {
|
|
2146
|
+
readonly name: AXPSystemStatusType.Review;
|
|
2147
|
+
readonly title: string;
|
|
2148
|
+
readonly icon: "fa-light fa-eye";
|
|
2149
|
+
readonly color: "info";
|
|
2150
|
+
readonly description: string;
|
|
2151
|
+
readonly order: 3;
|
|
2152
|
+
};
|
|
2153
|
+
readonly Expired: {
|
|
2154
|
+
readonly name: AXPSystemStatusType.Expired;
|
|
2155
|
+
readonly title: string;
|
|
2156
|
+
readonly icon: "fa-light fa-clock";
|
|
2157
|
+
readonly color: "danger";
|
|
2158
|
+
readonly description: string;
|
|
2159
|
+
readonly order: 10;
|
|
2160
|
+
readonly isInitial: false;
|
|
2161
|
+
readonly isFinal: true;
|
|
2162
|
+
};
|
|
2163
|
+
}>;
|
|
2164
|
+
/**
|
|
2165
|
+
* Get system status definition by type
|
|
2166
|
+
* @param type - Status type
|
|
2167
|
+
* @returns System status definition or undefined
|
|
2168
|
+
*/
|
|
2169
|
+
declare function getSystemStatus(type: AXPSystemStatusType): AXPStatusDefinition;
|
|
2170
|
+
/**
|
|
2171
|
+
* Resolves the visual appearance (color and icon) for status
|
|
2172
|
+
* using the system statuses from the core module.
|
|
2173
|
+
* @param statusType - Status type string
|
|
2174
|
+
* @returns Color and icon for the status
|
|
2175
|
+
*/
|
|
2176
|
+
declare function resolveStatusLook(statusType: string): {
|
|
2177
|
+
color: AXStyleColorType;
|
|
2178
|
+
icon: string;
|
|
2179
|
+
};
|
|
2180
|
+
/**
|
|
2181
|
+
* Resolves the complete status information (title, description, icon, color) for a status
|
|
2182
|
+
* using the system statuses from the core module.
|
|
2183
|
+
* @param statusType - Status type string
|
|
2184
|
+
* @returns Complete status information as AXPStatusDefinition
|
|
2185
|
+
*/
|
|
2186
|
+
declare function getStatusInfo(statusType: string): AXPStatusDefinition;
|
|
2187
|
+
/**
|
|
2188
|
+
* Get system status definition directly (no conversion needed since it's already AXPStatusDefinition)
|
|
2189
|
+
* @param statusType - Status type
|
|
2190
|
+
* @param overrides - Optional overrides for the status definition
|
|
2191
|
+
* @returns AXPStatusDefinition
|
|
2192
|
+
*/
|
|
2193
|
+
declare function systemStatusToDefinition(statusType: AXPSystemStatusType, overrides?: Partial<AXPStatusDefinition>): AXPStatusDefinition;
|
|
2194
|
+
|
|
2195
|
+
interface AXPTokenDefinition {
|
|
1643
2196
|
name: string;
|
|
1644
2197
|
execute: () => Promise<any> | any;
|
|
1645
2198
|
}
|
|
1646
2199
|
|
|
1647
|
-
type
|
|
1648
|
-
declare const
|
|
1649
|
-
interface
|
|
2200
|
+
type AXPTokenDefinitionProviderToken = AXPTokenDefinitionProvider | Promise<AXPTokenDefinitionProvider>;
|
|
2201
|
+
declare const AXP_TOKEN_DEFINITION_PROVIDER: InjectionToken<AXPTokenDefinitionProviderToken[]>;
|
|
2202
|
+
interface AXPTokenDefinitionProvider<T = any> {
|
|
1650
2203
|
name: string;
|
|
1651
2204
|
title: string;
|
|
1652
2205
|
description?: string;
|
|
1653
|
-
icon?: string;
|
|
1654
|
-
order?: number;
|
|
1655
2206
|
execute(): Promise<T> | T;
|
|
1656
2207
|
}
|
|
1657
2208
|
|
|
1658
|
-
declare class
|
|
2209
|
+
declare class AXPTokenDefinitionService {
|
|
1659
2210
|
private readonly definitionProviders;
|
|
1660
2211
|
/** Cache for definitions by name. */
|
|
1661
2212
|
private definitionsByName;
|
|
1662
2213
|
/**
|
|
1663
|
-
* Returns a
|
|
2214
|
+
* Returns a token definition by its name.
|
|
1664
2215
|
* First checks the cache, then queries all providers if not found.
|
|
1665
|
-
* @param name The
|
|
1666
|
-
* @returns The
|
|
2216
|
+
* @param name The token name.
|
|
2217
|
+
* @returns The token definition if found, undefined otherwise.
|
|
1667
2218
|
*/
|
|
1668
|
-
|
|
1669
|
-
|
|
2219
|
+
getDefinition(name: string): Promise<AXPTokenDefinition | undefined>;
|
|
2220
|
+
/**
|
|
2221
|
+
* Gets the resolved value of a token by its name.
|
|
2222
|
+
* @param name The token name.
|
|
2223
|
+
* @returns The resolved token value, or undefined if the token is not found.
|
|
2224
|
+
*/
|
|
2225
|
+
getValue(name: string): Promise<any>;
|
|
1670
2226
|
/** Clears the definitions by name cache. */
|
|
1671
2227
|
clearDefinitionsCache(): void;
|
|
1672
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
1673
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
2228
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPTokenDefinitionService, never>;
|
|
2229
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPTokenDefinitionService>;
|
|
1674
2230
|
}
|
|
1675
2231
|
|
|
1676
|
-
declare class
|
|
1677
|
-
protected
|
|
2232
|
+
declare class AXPTokenEvaluatorScopeProvider implements AXPExpressionEvaluatorScopeProvider {
|
|
2233
|
+
protected tokenService: AXPTokenDefinitionService;
|
|
1678
2234
|
provide(context: AXPExpressionEvaluatorScopeProviderContext): Promise<void>;
|
|
1679
2235
|
}
|
|
1680
2236
|
|
|
@@ -1685,6 +2241,21 @@ declare class AXPClipBoardService {
|
|
|
1685
2241
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPClipBoardService>;
|
|
1686
2242
|
}
|
|
1687
2243
|
|
|
2244
|
+
/**
|
|
2245
|
+
* Service for debugging user access information.
|
|
2246
|
+
* Displays loaded modules, features, and permissions for the current user.
|
|
2247
|
+
*/
|
|
2248
|
+
declare class AXPDebugService {
|
|
2249
|
+
private readonly sessionService;
|
|
2250
|
+
private readonly manifestRegistry;
|
|
2251
|
+
/**
|
|
2252
|
+
* Display all loaded modules, features, and permissions for the current user.
|
|
2253
|
+
*/
|
|
2254
|
+
displayUserAccessInfo(): Promise<void>;
|
|
2255
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPDebugService, never>;
|
|
2256
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPDebugService>;
|
|
2257
|
+
}
|
|
2258
|
+
|
|
1688
2259
|
declare class AXPExportService {
|
|
1689
2260
|
popupService: AXPopupService;
|
|
1690
2261
|
generateBlobFromElement(element: HTMLElement, blobOptions?: AXPDomToImageOptions): Promise<Blob>;
|
|
@@ -1856,7 +2427,7 @@ declare class AXPDialogConfirmAction extends AXPWorkflowAction {
|
|
|
1856
2427
|
declare class AXPToastAction extends AXPWorkflowAction {
|
|
1857
2428
|
private toastService;
|
|
1858
2429
|
private translationService;
|
|
1859
|
-
private
|
|
2430
|
+
private settingsService;
|
|
1860
2431
|
color: AXStyleColorType;
|
|
1861
2432
|
title: string;
|
|
1862
2433
|
content: string;
|
|
@@ -1889,5 +2460,5 @@ declare class AXMWorkflowErrorHandler implements AXPErrorHandler {
|
|
|
1889
2460
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMWorkflowErrorHandler>;
|
|
1890
2461
|
}
|
|
1891
2462
|
|
|
1892
|
-
export { ALL_DEFAULT_OPERATORS, AXMWorkflowErrorHandler, AXPAppVersionService, AXPCleanNestedFilters, AXPClipBoardService, AXPCommonModule, AXPCommonSettings, AXPCustomOperatorService, AXPCustomOperatorServiceImpl, AXPDataProvider, AXPDialogConfirmAction, AXPEntityCommandScope, AXPEntityQueryType, AXPErrorHandlerRegistryService, AXPExportService, AXPFileStorageService, AXPFileStorageStatus, AXPFileTypeProviderService, AXPFilterOperatorMiddlewareService, AXPFilterOperatorMiddlewareServiceImpl, AXPFooterTextSlotComponent, AXPGlobalErrorHandler,
|
|
1893
|
-
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,
|
|
2463
|
+
export { ALL_DEFAULT_OPERATORS, AXMWorkflowErrorHandler, AXPAppVersionService, AXPCleanNestedFilters, AXPClipBoardService, AXPCommonModule, AXPCommonSettings, AXPCustomOperatorService, AXPCustomOperatorServiceImpl, AXPDataProvider, AXPDebugService, AXPDialogConfirmAction, AXPEntityCommandScope, AXPEntityQueryType, AXPErrorHandlerRegistryService, AXPExportService, AXPFileStorageService, AXPFileStorageStatus, AXPFileTypeProviderService, AXPFilterOperatorMiddlewareService, AXPFilterOperatorMiddlewareServiceImpl, AXPFooterTextSlotComponent, AXPGlobalErrorHandler, AXPHomePageModule, AXPHomePageService, AXPLockService, AXPMenuMiddlewareRegistry, AXPMenuProviderService, AXPMenuSearchDefinitionProvider, AXPMenuSearchProvider, AXPMenuService, AXPMenuVisibilityService, AXPNavBarSlotComponent, AXPNavigateWorkflow, AXPPlatformDefaultConfigs, AXPRedirectEvent, AXPRefreshEvent, AXPRegionalSetting, AXPRelationshipCardinality, AXPRelationshipKind, AXPReloadAction, AXPReloadEvent, AXPSearchCommandProvider, AXPSearchDefinitionActionBuilder, AXPSearchDefinitionBuilder, AXPSearchDefinitionProviderContext, AXPSearchDefinitionProviderService, AXPSearchService, AXPSettingDefaultValuesAggregatorService, AXPSettingDefinitionGroupBuilder, AXPSettingDefinitionProviderContext, AXPSettingDefinitionProviderService, AXPSettingDefinitionSectionBuilder, AXPSettingsService, AXPStatusDefinitionProviderService, AXPStatusProvider, AXPStickyDirective, AXPSystemStatusType, AXPSystemStatuses, AXPToastAction, AXPTokenDefinitionService, AXPTokenEvaluatorScopeProvider, AXPVersioningService, AXPWorkflowNavigateAction, AXPWorkflowRouterNavigateAction, AXP_APP_VERSION_PROVIDER, AXP_FILE_TYPE_INFO_PROVIDER, AXP_HOME_PAGES, AXP_HOME_PAGE_DEFAULT_KEY, AXP_MENU_MIDDLEWARE, 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, AXP_STATUS_PROVIDERS, AXP_TOKEN_DEFINITION_PROVIDER, AXVChangeType, 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, createMenuContext, createMenuMiddleware, createQueryView, getEntityInfo, getStatusInfo, getSystemStatus, provideDynamicHomePage, provideMenuMiddleware, resolveStatusLook, systemStatusToDefinition };
|
|
2464
|
+
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, AXPGroupSearchResult, AXPHomePageDefinition, AXPLanguage, AXPLocaleProfile, AXPLockGetInfoRequest, AXPLockInfo, AXPLockRequest, AXPLockType, AXPMenuFinderResult, AXPMenuInsertion, AXPMenuItem, AXPMenuItemCommand, AXPMenuItemFinder, AXPMenuItemWithParent, AXPMenuMiddleware, AXPMenuMiddlewareContext, AXPMenuMiddlewareProvider, 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, AXPSettingValue, AXPSettingValueProvider, AXPSettingsServiceInterface, AXPStatusDefinition, AXPStatusTransition, AXPTimeZone, AXPTokenDefinition, AXPTokenDefinitionProvider, AXPTokenDefinitionProviderToken, AXPUnLockRequest, AXPVersionChange, AXPVersionEntry, AXPVersionStream, CanonicalChange, CanonicalChangeOp, VersionedFileInfo };
|