@acorex/platform 21.0.0-next.1 → 21.0.0-next.2
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 +238 -92
- package/common/index.d.ts +42 -606
- package/core/index.d.ts +432 -574
- package/fesm2022/acorex-platform-auth.mjs +200 -153
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-common.mjs +112 -1009
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +416 -694
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-domain.mjs +11 -54
- package/fesm2022/acorex-platform-domain.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +272 -414
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +3105 -2064
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +7 -7
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +648 -756
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +4 -4
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +174 -248
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-edit.component-fhhZOWul.mjs +50 -0
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-edit.component-fhhZOWul.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-view.component-C3Qbs0fz.mjs +42 -0
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-view.component-C3Qbs0fz.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-edit.component-CngQBUlN.mjs +55 -0
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-edit.component-CngQBUlN.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-view.component-DSNo9e4W.mjs +50 -0
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-view.component-DSNo9e4W.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-edit.component-CL0CwEHX.mjs +48 -0
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-edit.component-CL0CwEHX.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-view.component-B6Fi0xTw.mjs +42 -0
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-view.component-B6Fi0xTw.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-CxrsI6Hn.mjs → acorex-platform-layout-widgets-file-list-popup.component-D0y-9nE5.mjs} +2 -2
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-D0y-9nE5.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-edit-popup.component-Ck7-wpT2.mjs → acorex-platform-layout-widgets-tabular-data-edit-popup.component-m8rHZP8L.mjs} +2 -2
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-m8rHZP8L.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets.mjs +974 -2994
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-VIGuU5M4.mjs → acorex-platform-themes-default-entity-master-create-view.component-mARj77Mr.mjs} +5 -26
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-mARj77Mr.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs → acorex-platform-themes-default-entity-master-list-view.component-Cym8pq0v.mjs} +5 -4
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-Cym8pq0v.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BTA6h7Xd.mjs +101 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BTA6h7Xd.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-eMBby9k4.mjs → acorex-platform-themes-default-entity-master-single-view.component-B_P0a5KW.mjs} +3 -3
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-B_P0a5KW.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +30 -166
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +27 -27
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/layout/builder/index.d.ts +1 -4
- package/layout/components/index.d.ts +327 -405
- package/layout/designer/index.d.ts +3 -3
- package/layout/entity/index.d.ts +108 -163
- package/layout/widget-core/index.d.ts +49 -39
- package/layout/widgets/index.d.ts +54 -368
- package/package.json +5 -5
- package/themes/default/index.d.ts +2 -15
- package/themes/shared/index.d.ts +10 -10
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-CxrsI6Hn.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-Ck7-wpT2.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-VIGuU5M4.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Ua3ZA5hk.mjs +0 -101
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Ua3ZA5hk.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-eMBby9k4.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,
|
|
6
|
+
import { AXPValueTransformerFunctions, AXPGridLayoutOptions, AXPValidationRules, AXPSystemActionType, AXPMetaData, AXPOptionsData, AXPPlatformScope, AXPPlatformScopeKey, AXPWidgetTriggers, AXPAppStartUpService, 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';
|
|
@@ -239,8 +239,8 @@ interface AXPEntity {
|
|
|
239
239
|
delete?: AXPEntityCommand | undefined;
|
|
240
240
|
[name: string]: AXPEntityCommand | undefined;
|
|
241
241
|
};
|
|
242
|
-
queries
|
|
243
|
-
byKey
|
|
242
|
+
queries: {
|
|
243
|
+
byKey: AXPEntityQuery;
|
|
244
244
|
list?: AXPEntityQuery;
|
|
245
245
|
lookup?: AXPEntityQuery;
|
|
246
246
|
history?: AXPEntityQuery;
|
|
@@ -598,7 +598,6 @@ interface AXPSettingDefinitionProvider {
|
|
|
598
598
|
declare const AXP_SETTING_DEFINITION_PROVIDER: InjectionToken<AXPSettingDefinitionProvider[]>;
|
|
599
599
|
declare class AXPSettingDefinitionProviderService {
|
|
600
600
|
private providers;
|
|
601
|
-
private providerRegistry;
|
|
602
601
|
private cache;
|
|
603
602
|
private load;
|
|
604
603
|
reload(): Promise<void>;
|
|
@@ -621,13 +620,13 @@ declare class AXPSettingDefaultValuesAggregatorService {
|
|
|
621
620
|
|
|
622
621
|
declare const AXP_SETTING_VALUE_PROVIDER: InjectionToken<AXPSettingValueProvider[]>;
|
|
623
622
|
|
|
624
|
-
interface
|
|
623
|
+
interface AXPSettingServiceInterface {
|
|
625
624
|
load(): Promise<AXPSettingValue[]>;
|
|
626
625
|
get<T = any>(key: string): Promise<T>;
|
|
627
626
|
defaultValues(scope: AXPPlatformScope): Promise<Record<string, unknown>>;
|
|
628
627
|
scope(scope: AXPPlatformScope): ScopedSettingService;
|
|
629
628
|
}
|
|
630
|
-
declare class
|
|
629
|
+
declare class AXPSettingService implements AXPSettingServiceInterface {
|
|
631
630
|
private readonly providers;
|
|
632
631
|
private readonly injector;
|
|
633
632
|
private readonly eventService;
|
|
@@ -642,14 +641,14 @@ declare class AXPSettingsService implements AXPSettingsServiceInterface {
|
|
|
642
641
|
defaultValues(scope: AXPPlatformScope): Promise<Record<string, unknown>>;
|
|
643
642
|
scope(scope: AXPPlatformScope): ScopedSettingService;
|
|
644
643
|
invokeChangeEvent(event: AXPSettingChangedEvent): void;
|
|
645
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
646
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
644
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingService, never>;
|
|
645
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingService>;
|
|
647
646
|
}
|
|
648
647
|
declare class ScopedSettingService {
|
|
649
648
|
private parent;
|
|
650
649
|
private provider;
|
|
651
650
|
private scopeCache;
|
|
652
|
-
constructor(parent:
|
|
651
|
+
constructor(parent: AXPSettingService, provider: AXPSettingValueProvider, scopeCache: Map<string, any>);
|
|
653
652
|
get<T = any>(key: string): Promise<T>;
|
|
654
653
|
all(): Promise<any>;
|
|
655
654
|
defaultValues(): Promise<Record<string, unknown>>;
|
|
@@ -658,34 +657,6 @@ declare class ScopedSettingService {
|
|
|
658
657
|
update<T = any>(key: string, updateFn: (currentValue: T) => T): Promise<void>;
|
|
659
658
|
}
|
|
660
659
|
|
|
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
|
-
|
|
689
660
|
interface AXPCommonModuleConfigs {
|
|
690
661
|
errorHandlers: (new () => AXPErrorHandler)[];
|
|
691
662
|
}
|
|
@@ -695,7 +666,7 @@ declare class AXPCommonModule {
|
|
|
695
666
|
/**
|
|
696
667
|
* @ignore
|
|
697
668
|
*/
|
|
698
|
-
constructor(instances: any[], appInitService: AXPAppStartUpService, settingsService:
|
|
669
|
+
constructor(instances: any[], appInitService: AXPAppStartUpService, settingsService: AXPSettingService);
|
|
699
670
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPCommonModule, never>;
|
|
700
671
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPCommonModule, never, [typeof i1.AXPWorkflowModule, typeof i2.AXPopupModule, typeof i3.AXDateTimeModule, typeof i4.AXToastModule], [typeof i5.RouterModule]>;
|
|
701
672
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXPCommonModule>;
|
|
@@ -728,8 +699,8 @@ declare const AXPPlatformDefaultConfigs: AXPPlatformConfigs;
|
|
|
728
699
|
declare function configPlatform(config?: Partial<AXPPlatformConfigs>): AXPPlatformConfigs;
|
|
729
700
|
|
|
730
701
|
declare enum AXPCommonSettings {
|
|
731
|
-
EnableOperationToasts = "
|
|
732
|
-
EntityFilterApplyMode = "
|
|
702
|
+
EnableOperationToasts = "general:notifications:enable-operation-toasts",
|
|
703
|
+
EntityFilterApplyMode = "general:entity:filter-apply-mode"
|
|
733
704
|
}
|
|
734
705
|
|
|
735
706
|
declare const AXP_ROOT_CONFIG_TOKEN: InjectionToken<AXPRootConfigs>;
|
|
@@ -1145,6 +1116,18 @@ declare class AXPStickyDirective {
|
|
|
1145
1116
|
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>;
|
|
1146
1117
|
}
|
|
1147
1118
|
|
|
1119
|
+
declare class AXPLogoComponent {
|
|
1120
|
+
source: any;
|
|
1121
|
+
protected logoType: string;
|
|
1122
|
+
private platform;
|
|
1123
|
+
ngOnInit(): void;
|
|
1124
|
+
ngOnChanges(): void;
|
|
1125
|
+
protected setLogoType(): void;
|
|
1126
|
+
protected setLogoTheme(): void;
|
|
1127
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPLogoComponent, never>;
|
|
1128
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXPLogoComponent, "axp-logo", never, { "source": { "alias": "source"; "required": false; }; }, {}, never, never, true, never>;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1148
1131
|
type AXPMenuInsertion = 'before' | 'after' | 'inside';
|
|
1149
1132
|
type AXPMenuType = 'menu' | 'group' | 'break';
|
|
1150
1133
|
type AXPMenuItemCommand = AXPNavigateActionCommand<'modal' | 'router'> | AXPExecuteCommand;
|
|
@@ -1167,7 +1150,6 @@ interface AXPMenuItem {
|
|
|
1167
1150
|
};
|
|
1168
1151
|
}
|
|
1169
1152
|
interface AXPMenuFinderResult {
|
|
1170
|
-
readonly exists: boolean;
|
|
1171
1153
|
insert(items: AXPMenuItem[], position: AXPMenuInsertion): void;
|
|
1172
1154
|
remove(): void;
|
|
1173
1155
|
update(updatedItem: Partial<AXPMenuItem>): void;
|
|
@@ -1184,7 +1166,6 @@ interface AXPMenuProvider {
|
|
|
1184
1166
|
declare const AXP_MENU_PROVIDER: InjectionToken<AXPMenuProvider[]>;
|
|
1185
1167
|
declare class AXPMenuProviderService {
|
|
1186
1168
|
private providers;
|
|
1187
|
-
private providerRegistry;
|
|
1188
1169
|
private middlewareRegistry;
|
|
1189
1170
|
private cache;
|
|
1190
1171
|
private pendingInserts;
|
|
@@ -1221,14 +1202,6 @@ declare class AXPMenuProviderService {
|
|
|
1221
1202
|
private createMenuProviderContext;
|
|
1222
1203
|
private applyPendingOperations;
|
|
1223
1204
|
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;
|
|
1232
1205
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPMenuProviderService, never>;
|
|
1233
1206
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPMenuProviderService>;
|
|
1234
1207
|
}
|
|
@@ -1474,37 +1447,6 @@ declare const AXPMenuService: i0.Type<{
|
|
|
1474
1447
|
};
|
|
1475
1448
|
}>>;
|
|
1476
1449
|
|
|
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
|
-
|
|
1508
1450
|
interface AXPSearchDefinitionDisplayFormat {
|
|
1509
1451
|
title?: string;
|
|
1510
1452
|
description?: string;
|
|
@@ -1604,7 +1546,6 @@ interface AXPSearchDefinitionProvider {
|
|
|
1604
1546
|
declare const AXP_SEARCH_DEFINITION_PROVIDER: InjectionToken<AXPSearchDefinitionProvider[]>;
|
|
1605
1547
|
declare class AXPSearchDefinitionProviderService {
|
|
1606
1548
|
private providers;
|
|
1607
|
-
private providerRegistry;
|
|
1608
1549
|
private cache;
|
|
1609
1550
|
private load;
|
|
1610
1551
|
getListAsync(): Promise<AXPSearchDefinition[]>;
|
|
@@ -1626,7 +1567,6 @@ declare abstract class AXPSearchCommandProvider {
|
|
|
1626
1567
|
declare const AXP_SEARCH_PROVIDER: InjectionToken<AXPSearchProvider[]>;
|
|
1627
1568
|
declare class AXPSearchService {
|
|
1628
1569
|
private providers;
|
|
1629
|
-
private providerRegistry;
|
|
1630
1570
|
private definitionService;
|
|
1631
1571
|
private formatService;
|
|
1632
1572
|
search(text: string): Promise<AXPSearchDisplayGroupResult[]>;
|
|
@@ -1706,531 +1646,42 @@ declare abstract class AXPLockService {
|
|
|
1706
1646
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPLockService>;
|
|
1707
1647
|
}
|
|
1708
1648
|
|
|
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 {
|
|
1649
|
+
interface AXPGlobalVariableDefinition {
|
|
2196
1650
|
name: string;
|
|
2197
1651
|
execute: () => Promise<any> | any;
|
|
2198
1652
|
}
|
|
2199
1653
|
|
|
2200
|
-
type
|
|
2201
|
-
declare const
|
|
2202
|
-
interface
|
|
1654
|
+
type AXPGlobalVariableDefinitionProviderToken = AXPGlobalVariableDefinitionProvider | Promise<AXPGlobalVariableDefinitionProvider>;
|
|
1655
|
+
declare const AXP_GLOBAL_VARIABLE_DEFINITION_PROVIDER: InjectionToken<AXPGlobalVariableDefinitionProviderToken[]>;
|
|
1656
|
+
interface AXPGlobalVariableDefinitionProvider<T = any> {
|
|
2203
1657
|
name: string;
|
|
2204
1658
|
title: string;
|
|
2205
1659
|
description?: string;
|
|
1660
|
+
icon?: string;
|
|
1661
|
+
order?: number;
|
|
2206
1662
|
execute(): Promise<T> | T;
|
|
2207
1663
|
}
|
|
2208
1664
|
|
|
2209
|
-
declare class
|
|
1665
|
+
declare class AXPGlobalVariableDefinitionService {
|
|
2210
1666
|
private readonly definitionProviders;
|
|
2211
1667
|
/** Cache for definitions by name. */
|
|
2212
1668
|
private definitionsByName;
|
|
2213
1669
|
/**
|
|
2214
|
-
* Returns a
|
|
1670
|
+
* Returns a report definition by its id.
|
|
2215
1671
|
* First checks the cache, then queries all providers if not found.
|
|
2216
|
-
* @param name The
|
|
2217
|
-
* @returns The
|
|
1672
|
+
* @param name The global variable name.
|
|
1673
|
+
* @returns The global variable definition if found, undefined otherwise.
|
|
2218
1674
|
*/
|
|
2219
|
-
|
|
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>;
|
|
1675
|
+
getByName(name: string): Promise<AXPGlobalVariableDefinition | undefined>;
|
|
1676
|
+
execute(name: string): Promise<any>;
|
|
2226
1677
|
/** Clears the definitions by name cache. */
|
|
2227
1678
|
clearDefinitionsCache(): void;
|
|
2228
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
2229
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
1679
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPGlobalVariableDefinitionService, never>;
|
|
1680
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPGlobalVariableDefinitionService>;
|
|
2230
1681
|
}
|
|
2231
1682
|
|
|
2232
|
-
declare class
|
|
2233
|
-
protected
|
|
1683
|
+
declare class AXPGlobalVariableEvaluatorScopeProvider implements AXPExpressionEvaluatorScopeProvider {
|
|
1684
|
+
protected globalVariableService: AXPGlobalVariableDefinitionService;
|
|
2234
1685
|
provide(context: AXPExpressionEvaluatorScopeProviderContext): Promise<void>;
|
|
2235
1686
|
}
|
|
2236
1687
|
|
|
@@ -2241,21 +1692,6 @@ declare class AXPClipBoardService {
|
|
|
2241
1692
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPClipBoardService>;
|
|
2242
1693
|
}
|
|
2243
1694
|
|
|
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
|
-
|
|
2259
1695
|
declare class AXPExportService {
|
|
2260
1696
|
popupService: AXPopupService;
|
|
2261
1697
|
generateBlobFromElement(element: HTMLElement, blobOptions?: AXPDomToImageOptions): Promise<Blob>;
|
|
@@ -2427,7 +1863,7 @@ declare class AXPDialogConfirmAction extends AXPWorkflowAction {
|
|
|
2427
1863
|
declare class AXPToastAction extends AXPWorkflowAction {
|
|
2428
1864
|
private toastService;
|
|
2429
1865
|
private translationService;
|
|
2430
|
-
private
|
|
1866
|
+
private settingService;
|
|
2431
1867
|
color: AXStyleColorType;
|
|
2432
1868
|
title: string;
|
|
2433
1869
|
content: string;
|
|
@@ -2460,5 +1896,5 @@ declare class AXMWorkflowErrorHandler implements AXPErrorHandler {
|
|
|
2460
1896
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMWorkflowErrorHandler>;
|
|
2461
1897
|
}
|
|
2462
1898
|
|
|
2463
|
-
export { ALL_DEFAULT_OPERATORS, AXMWorkflowErrorHandler, AXPAppVersionService, AXPCleanNestedFilters, AXPClipBoardService, AXPCommonModule, AXPCommonSettings, AXPCustomOperatorService, AXPCustomOperatorServiceImpl, AXPDataProvider,
|
|
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,
|
|
1899
|
+
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, AXPGlobalVariableDefinitionService, AXPGlobalVariableEvaluatorScopeProvider, AXPHomePageModule, AXPHomePageService, AXPLockService, AXPLogoComponent, AXPMenuMiddlewareRegistry, 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, AXPVersioningService, 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_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, 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, provideDynamicHomePage, provideMenuMiddleware };
|
|
1900
|
+
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, 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, AXPSettingServiceInterface, AXPSettingValue, AXPSettingValueProvider, AXPTimeZone, AXPUnLockRequest, AXPVersionChange, AXPVersionEntry, AXPVersionStream, CanonicalChange, CanonicalChangeOp, VersionedFileInfo };
|