@acorex/platform 21.0.0-next.2 → 21.0.0-next.5

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.
Files changed (72) hide show
  1. package/auth/index.d.ts +97 -238
  2. package/common/index.d.ts +783 -213
  3. package/core/index.d.ts +311 -442
  4. package/fesm2022/acorex-platform-auth.mjs +156 -200
  5. package/fesm2022/acorex-platform-auth.mjs.map +1 -1
  6. package/fesm2022/acorex-platform-common.mjs +1038 -127
  7. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  8. package/fesm2022/acorex-platform-core.mjs +602 -413
  9. package/fesm2022/acorex-platform-core.mjs.map +1 -1
  10. package/fesm2022/acorex-platform-domain.mjs +54 -11
  11. package/fesm2022/acorex-platform-domain.mjs.map +1 -1
  12. package/fesm2022/acorex-platform-layout-builder.mjs +412 -270
  13. package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
  14. package/fesm2022/acorex-platform-layout-components.mjs +2100 -3141
  15. package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
  16. package/fesm2022/acorex-platform-layout-designer.mjs +7 -7
  17. package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
  18. package/fesm2022/acorex-platform-layout-entity.mjs +730 -652
  19. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  20. package/fesm2022/acorex-platform-layout-views.mjs +4 -4
  21. package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
  22. package/fesm2022/acorex-platform-layout-widget-core.mjs +249 -205
  23. package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
  24. 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
  25. package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-CxrsI6Hn.mjs.map +1 -0
  26. package/fesm2022/{acorex-platform-layout-widgets-tabular-data-edit-popup.component-m8rHZP8L.mjs → acorex-platform-layout-widgets-tabular-data-edit-popup.component-Ck7-wpT2.mjs} +2 -2
  27. package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-Ck7-wpT2.mjs.map +1 -0
  28. package/fesm2022/acorex-platform-layout-widgets.mjs +3066 -1040
  29. package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
  30. package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-mARj77Mr.mjs → acorex-platform-themes-default-entity-master-create-view.component-VIGuU5M4.mjs} +26 -5
  31. package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-VIGuU5M4.mjs.map +1 -0
  32. package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-Cym8pq0v.mjs → acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs} +4 -5
  33. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs.map +1 -0
  34. package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Ua3ZA5hk.mjs +101 -0
  35. package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Ua3ZA5hk.mjs.map +1 -0
  36. 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
  37. package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-eMBby9k4.mjs.map +1 -0
  38. package/fesm2022/acorex-platform-themes-default.mjs +166 -30
  39. package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
  40. package/fesm2022/acorex-platform-themes-shared.mjs +27 -27
  41. package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
  42. package/fesm2022/acorex-platform-workflow.mjs +474 -1527
  43. package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
  44. package/layout/builder/index.d.ts +4 -1
  45. package/layout/components/index.d.ts +405 -327
  46. package/layout/designer/index.d.ts +3 -3
  47. package/layout/entity/index.d.ts +154 -108
  48. package/layout/widget-core/index.d.ts +39 -52
  49. package/layout/widgets/index.d.ts +368 -54
  50. package/package.json +9 -9
  51. package/themes/default/index.d.ts +15 -2
  52. package/themes/shared/index.d.ts +10 -10
  53. package/workflow/index.d.ts +182 -817
  54. package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-edit.component-fhhZOWul.mjs +0 -50
  55. package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-edit.component-fhhZOWul.mjs.map +0 -1
  56. package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-view.component-C3Qbs0fz.mjs +0 -42
  57. package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-view.component-C3Qbs0fz.mjs.map +0 -1
  58. package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-edit.component-CngQBUlN.mjs +0 -55
  59. package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-edit.component-CngQBUlN.mjs.map +0 -1
  60. package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-view.component-DSNo9e4W.mjs +0 -50
  61. package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-view.component-DSNo9e4W.mjs.map +0 -1
  62. package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-edit.component-CL0CwEHX.mjs +0 -48
  63. package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-edit.component-CL0CwEHX.mjs.map +0 -1
  64. package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-view.component-B6Fi0xTw.mjs +0 -42
  65. package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-view.component-B6Fi0xTw.mjs.map +0 -1
  66. package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-D0y-9nE5.mjs.map +0 -1
  67. package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-m8rHZP8L.mjs.map +0 -1
  68. package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-mARj77Mr.mjs.map +0 -1
  69. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-Cym8pq0v.mjs.map +0 -1
  70. package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BTA6h7Xd.mjs +0 -101
  71. package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BTA6h7Xd.mjs.map +0 -1
  72. package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-B_P0a5KW.mjs.map +0 -1
package/common/index.d.ts CHANGED
@@ -3,16 +3,17 @@ 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';
7
- import { AXPWidgetTypesMap, AXPWidgetNode, AXPMetaDataDefinition } from '@acorex/platform/layout/widget-core';
8
- import * as i5 from '@angular/router';
6
+ import * as i5 from '@acorex/platform/core';
7
+ import { AXPValueTransformerFunctions, AXPGridLayoutOptions, AXPValidationRules, AXPSystemActionType, AXPMetaData, AXPOptionsData, AXPLogoConfig, AXPNavigateActionCommand, AXPExecuteCommand, AXPEntityReference, AXPApplicationUserReference, AXPPlatformScopeKey, AXPPlatformScope, AXPWidgetTriggers, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviderContext } from '@acorex/platform/core';
8
+ import { AXPWidgetTypesMap, AXPMetaDataDefinition, AXPWidgetNode } from '@acorex/platform/layout/widget-core';
9
+ import * as i6 from '@angular/router';
9
10
  import { Route, Routes } from '@angular/router';
10
- import * as rxjs from 'rxjs';
11
- import { Subject } from 'rxjs';
12
11
  import * as i1 from '@acorex/platform/workflow';
13
12
  import { AXPWorkflowAction, AXPWorkflowContext, AXPWorkflow } from '@acorex/platform/workflow';
14
13
  import * as i3 from '@acorex/core/date-time';
15
14
  import * as i4 from '@acorex/components/toast';
15
+ import * as rxjs from 'rxjs';
16
+ import { Subject } from 'rxjs';
16
17
  import * as _ngrx_signals from '@ngrx/signals';
17
18
  import { AXTranslationService } from '@acorex/core/translation';
18
19
  import { AXLocaleProfile } from '@acorex/core/locale';
@@ -239,8 +240,8 @@ interface AXPEntity {
239
240
  delete?: AXPEntityCommand | undefined;
240
241
  [name: string]: AXPEntityCommand | undefined;
241
242
  };
242
- queries: {
243
- byKey: AXPEntityQuery;
243
+ queries?: {
244
+ byKey?: AXPEntityQuery;
244
245
  list?: AXPEntityQuery;
245
246
  lookup?: AXPEntityQuery;
246
247
  history?: AXPEntityQuery;
@@ -486,177 +487,6 @@ declare class AXPGlobalErrorHandler extends ErrorHandler {
486
487
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPGlobalErrorHandler>;
487
488
  }
488
489
 
489
- interface AXPSettingValueProvider {
490
- get scope(): AXPPlatformScope;
491
- load(): Promise<AXPSettingValue[]>;
492
- set(key: string, value: any): Promise<void>;
493
- set(values: Record<string, any>): Promise<void>;
494
- }
495
- /**
496
- * Provider interface for supplying default setting values from higher layers (e.g., app, mocks, API).
497
- * Providers are merged by ascending priority; later providers override earlier values on key conflicts.
498
- */
499
- interface AXPSettingDefaultValuesProvider {
500
- /** Merge order; lower numbers are applied first. Default is 0. */
501
- priority?: number;
502
- /** Returns a flat map of setting key to default value. */
503
- provide(): Promise<Record<string, unknown>>;
504
- }
505
- interface AXPSettingValue {
506
- key: string;
507
- value: any;
508
- }
509
- interface AXPSettingChangedEvent {
510
- scope: AXPPlatformScope;
511
- keys: string[];
512
- values: Record<string, any>;
513
- entries: AXPSettingValue[];
514
- }
515
- interface AXPSettingDefinition {
516
- name: string;
517
- title: string;
518
- description?: string;
519
- widget: AXPWidgetNode;
520
- layout?: AXPGridLayoutOptions;
521
- scope: AXPPlatformScopeKey;
522
- isRequired?: boolean;
523
- isInherited?: boolean;
524
- isEncrypted?: boolean;
525
- defaultValue?: unknown;
526
- value?: unknown;
527
- }
528
- interface AXPSettingDefinitionGroup {
529
- name: string;
530
- title: string;
531
- icon?: string;
532
- description?: string;
533
- groups: AXPSettingDefinitionGroup[];
534
- sections: AXPSettingDefinitionSection[];
535
- }
536
- interface AXPSettingDefinitionSection {
537
- name: string;
538
- title: string;
539
- description?: string;
540
- settings: AXPSettingDefinition[];
541
- }
542
- interface AXPGroupSearchResult {
543
- breadcrumb: {
544
- name: string;
545
- title: string;
546
- description?: string;
547
- }[];
548
- sections: AXPSettingDefinitionSection[] | null;
549
- groups: AXPSettingDefinitionGroup[] | null;
550
- }
551
-
552
- declare class AXPSettingDefinitionProviderContext {
553
- private rootGroups;
554
- private groupMap;
555
- addGroup(name: string, title: string, description?: string, icon?: string): AXPSettingDefinitionGroupBuilder;
556
- group(name: string): AXPSettingDefinitionGroupBuilder | null;
557
- getGroups(): AXPSettingDefinitionGroup[];
558
- hasGroup(name: string): boolean;
559
- getGroup(name: string): AXPSettingDefinitionGroup | undefined;
560
- }
561
- declare class AXPSettingDefinitionGroupBuilder {
562
- private context;
563
- private group;
564
- constructor(context: AXPSettingDefinitionProviderContext, group: AXPSettingDefinitionGroup);
565
- addSection(name: string, title: string, description?: string): AXPSettingDefinitionSectionBuilder;
566
- section(name: string): AXPSettingDefinitionSectionBuilder | null;
567
- addGroup(name: string, title: string, description?: string, icon?: string): AXPSettingDefinitionGroupBuilder;
568
- endGroup(): AXPSettingDefinitionProviderContext;
569
- }
570
- declare class AXPSettingDefinitionSectionBuilder {
571
- private groupBuilder;
572
- private section;
573
- constructor(groupBuilder: AXPSettingDefinitionGroupBuilder, section: AXPSettingDefinitionSection);
574
- addSetting(setting: {
575
- key: string;
576
- title: string;
577
- scope: AXPPlatformScopeKey;
578
- widget: {
579
- type: AXPWidgetTypesMap[keyof AXPWidgetTypesMap] | string;
580
- options?: AXPOptionsData;
581
- triggers?: AXPWidgetTriggers;
582
- layout?: AXPGridLayoutOptions;
583
- };
584
- description?: string;
585
- isRequired?: boolean;
586
- isInherited?: boolean;
587
- isEncrypted?: boolean;
588
- defaultValue?: unknown;
589
- valueTransforms?: AXPValueTransformerFunctions;
590
- validationRules?: AXPValidationRules;
591
- }): this;
592
- endSection(): AXPSettingDefinitionGroupBuilder;
593
- }
594
-
595
- interface AXPSettingDefinitionProvider {
596
- provide(context: AXPSettingDefinitionProviderContext): Promise<void>;
597
- }
598
- declare const AXP_SETTING_DEFINITION_PROVIDER: InjectionToken<AXPSettingDefinitionProvider[]>;
599
- declare class AXPSettingDefinitionProviderService {
600
- private providers;
601
- private cache;
602
- private load;
603
- reload(): Promise<void>;
604
- getListAsync(scope: AXPPlatformScopeKey): Promise<AXPSettingDefinitionGroup[]>;
605
- getList(scope: AXPPlatformScopeKey): AXPSettingDefinitionGroup[];
606
- defaultValues(): Promise<Record<string, unknown>>;
607
- findGroup(scope: AXPPlatformScopeKey, groupName: string): AXPGroupSearchResult;
608
- private searchRecursive;
609
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingDefinitionProviderService, never>;
610
- static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingDefinitionProviderService>;
611
- }
612
- declare const AXP_SETTING_DEFAULT_VALUES_PROVIDERS: InjectionToken<AXPSettingDefaultValuesProvider[]>;
613
- declare class AXPSettingDefaultValuesAggregatorService {
614
- private readonly definitionService;
615
- private readonly providers;
616
- getDefaults(): Promise<Record<string, unknown>>;
617
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingDefaultValuesAggregatorService, never>;
618
- static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingDefaultValuesAggregatorService>;
619
- }
620
-
621
- declare const AXP_SETTING_VALUE_PROVIDER: InjectionToken<AXPSettingValueProvider[]>;
622
-
623
- interface AXPSettingServiceInterface {
624
- load(): Promise<AXPSettingValue[]>;
625
- get<T = any>(key: string): Promise<T>;
626
- defaultValues(scope: AXPPlatformScope): Promise<Record<string, unknown>>;
627
- scope(scope: AXPPlatformScope): ScopedSettingService;
628
- }
629
- declare class AXPSettingService implements AXPSettingServiceInterface {
630
- private readonly providers;
631
- private readonly injector;
632
- private readonly eventService;
633
- private readonly sessionService;
634
- private readonly scopedSettingsCache;
635
- readonly onChanged: Subject<AXPSettingChangedEvent>;
636
- readonly onLoaded: Subject<void>;
637
- constructor();
638
- reload(): Promise<void>;
639
- load(): Promise<AXPSettingValue[]>;
640
- get<T = any>(key: string): Promise<T>;
641
- defaultValues(scope: AXPPlatformScope): Promise<Record<string, unknown>>;
642
- scope(scope: AXPPlatformScope): ScopedSettingService;
643
- invokeChangeEvent(event: AXPSettingChangedEvent): void;
644
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingService, never>;
645
- static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingService>;
646
- }
647
- declare class ScopedSettingService {
648
- private parent;
649
- private provider;
650
- private scopeCache;
651
- constructor(parent: AXPSettingService, provider: AXPSettingValueProvider, scopeCache: Map<string, any>);
652
- get<T = any>(key: string): Promise<T>;
653
- all(): Promise<any>;
654
- defaultValues(): Promise<Record<string, unknown>>;
655
- set<T = any>(key: string, value: T): Promise<void>;
656
- set<T = any>(values: Record<string, T>): Promise<void>;
657
- update<T = any>(key: string, updateFn: (currentValue: T) => T): Promise<void>;
658
- }
659
-
660
490
  interface AXPCommonModuleConfigs {
661
491
  errorHandlers: (new () => AXPErrorHandler)[];
662
492
  }
@@ -666,9 +496,9 @@ declare class AXPCommonModule {
666
496
  /**
667
497
  * @ignore
668
498
  */
669
- constructor(instances: any[], appInitService: AXPAppStartUpService, settingsService: AXPSettingService);
499
+ constructor(instances: any[]);
670
500
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPCommonModule, never>;
671
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXPCommonModule, never, [typeof i1.AXPWorkflowModule, typeof i2.AXPopupModule, typeof i3.AXDateTimeModule, typeof i4.AXToastModule], [typeof i5.RouterModule]>;
501
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXPCommonModule, never, [typeof i1.AXPWorkflowModule, typeof i2.AXPopupModule, typeof i3.AXDateTimeModule, typeof i4.AXToastModule, typeof i5.AXPModuleManifestModule], [typeof i6.RouterModule]>;
672
502
  static ɵinj: i0.ɵɵInjectorDeclaration<AXPCommonModule>;
673
503
  }
674
504
 
@@ -699,8 +529,8 @@ declare const AXPPlatformDefaultConfigs: AXPPlatformConfigs;
699
529
  declare function configPlatform(config?: Partial<AXPPlatformConfigs>): AXPPlatformConfigs;
700
530
 
701
531
  declare enum AXPCommonSettings {
702
- EnableOperationToasts = "general:notifications:enable-operation-toasts",
703
- EntityFilterApplyMode = "general:entity:filter-apply-mode"
532
+ EnableOperationToasts = "Common:Setting:Notifications.EnableOperationToasts",
533
+ EntityFilterApplyMode = "Common:Setting:Entity.FilterApplyMode"
704
534
  }
705
535
 
706
536
  declare const AXP_ROOT_CONFIG_TOKEN: InjectionToken<AXPRootConfigs>;
@@ -1116,18 +946,6 @@ declare class AXPStickyDirective {
1116
946
  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>;
1117
947
  }
1118
948
 
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
-
1131
949
  type AXPMenuInsertion = 'before' | 'after' | 'inside';
1132
950
  type AXPMenuType = 'menu' | 'group' | 'break';
1133
951
  type AXPMenuItemCommand = AXPNavigateActionCommand<'modal' | 'router'> | AXPExecuteCommand;
@@ -1150,6 +968,7 @@ interface AXPMenuItem {
1150
968
  };
1151
969
  }
1152
970
  interface AXPMenuFinderResult {
971
+ readonly exists: boolean;
1153
972
  insert(items: AXPMenuItem[], position: AXPMenuInsertion): void;
1154
973
  remove(): void;
1155
974
  update(updatedItem: Partial<AXPMenuItem>): void;
@@ -1202,6 +1021,14 @@ declare class AXPMenuProviderService {
1202
1021
  private createMenuProviderContext;
1203
1022
  private applyPendingOperations;
1204
1023
  private findItemWithParent;
1024
+ /**
1025
+ * Find menu item by name in the items tree (recursive search)
1026
+ */
1027
+ private findItemByName;
1028
+ /**
1029
+ * Merge new item properties into existing item, handling children merge
1030
+ */
1031
+ private mergeMenuItem;
1205
1032
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPMenuProviderService, never>;
1206
1033
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPMenuProviderService>;
1207
1034
  }
@@ -1447,6 +1274,37 @@ declare const AXPMenuService: i0.Type<{
1447
1274
  };
1448
1275
  }>>;
1449
1276
 
1277
+ /**
1278
+ * Service for checking menu item visibility based on permissions, features, and children.
1279
+ * This service helps filter out empty menu items that have no visible children.
1280
+ */
1281
+ declare class AXPMenuVisibilityService {
1282
+ private sessionService;
1283
+ /**
1284
+ * Checks if a menu item should be visible based on permissions and features.
1285
+ */
1286
+ isItemVisible(item: AXPMenuItem): boolean;
1287
+ /**
1288
+ * Recursively checks if a menu item has any visible children.
1289
+ * @param item The menu item to check
1290
+ * @param getRouterLink Optional function to check if an item has a router link
1291
+ */
1292
+ hasVisibleChildren(item: AXPMenuItem, getRouterLink?: (item: AXPMenuItem) => unknown): boolean;
1293
+ /**
1294
+ * Determines if a menu item should be rendered.
1295
+ * A menu item should be rendered if:
1296
+ * 1. It has a routerLink, OR
1297
+ * 2. It has visible children, OR
1298
+ * 3. It has a command (for non-router navigation)
1299
+ *
1300
+ * @param item The menu item to check
1301
+ * @param getRouterLink Optional function to check if an item has a router link
1302
+ */
1303
+ shouldRenderMenuItem(item: AXPMenuItem, getRouterLink?: (item: AXPMenuItem) => unknown): boolean;
1304
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPMenuVisibilityService, never>;
1305
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPMenuVisibilityService>;
1306
+ }
1307
+
1450
1308
  interface AXPSearchDefinitionDisplayFormat {
1451
1309
  title?: string;
1452
1310
  description?: string;
@@ -1646,42 +1504,739 @@ declare abstract class AXPLockService {
1646
1504
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPLockService>;
1647
1505
  }
1648
1506
 
1649
- interface AXPGlobalVariableDefinition {
1507
+ interface AXPSettingValueProvider {
1508
+ get scope(): AXPPlatformScope;
1509
+ load(): Promise<AXPSettingValue[]>;
1510
+ set(key: string, value: any): Promise<void>;
1511
+ set(values: Record<string, any>): Promise<void>;
1512
+ }
1513
+ /**
1514
+ * Provider interface for supplying default setting values from higher layers (e.g., app, mocks, API).
1515
+ * Providers are merged by ascending priority; later providers override earlier values on key conflicts.
1516
+ */
1517
+ interface AXPSettingDefaultValuesProvider {
1518
+ /** Merge order; lower numbers are applied first. Default is 0. */
1519
+ priority?: number;
1520
+ /** Returns a flat map of setting key to default value. */
1521
+ provide(): Promise<Record<string, unknown>>;
1522
+ }
1523
+ interface AXPSettingValue {
1524
+ key: string;
1525
+ value: any;
1526
+ }
1527
+ interface AXPSettingChangedEvent {
1528
+ scope: AXPPlatformScope;
1529
+ keys: string[];
1530
+ values: Record<string, any>;
1531
+ entries: AXPSettingValue[];
1532
+ }
1533
+ interface AXPSettingDefinition {
1650
1534
  name: string;
1651
- execute: () => Promise<any> | any;
1535
+ title: string;
1536
+ description?: string;
1537
+ widget: AXPWidgetNode;
1538
+ layout?: AXPGridLayoutOptions;
1539
+ scope: AXPPlatformScopeKey;
1540
+ isRequired?: boolean;
1541
+ isInherited?: boolean;
1542
+ isEncrypted?: boolean;
1543
+ defaultValue?: unknown;
1544
+ value?: unknown;
1652
1545
  }
1653
-
1654
- type AXPGlobalVariableDefinitionProviderToken = AXPGlobalVariableDefinitionProvider | Promise<AXPGlobalVariableDefinitionProvider>;
1655
- declare const AXP_GLOBAL_VARIABLE_DEFINITION_PROVIDER: InjectionToken<AXPGlobalVariableDefinitionProviderToken[]>;
1656
- interface AXPGlobalVariableDefinitionProvider<T = any> {
1546
+ interface AXPSettingDefinitionGroup {
1657
1547
  name: string;
1658
1548
  title: string;
1549
+ icon?: string;
1659
1550
  description?: string;
1551
+ groups: AXPSettingDefinitionGroup[];
1552
+ sections: AXPSettingDefinitionSection[];
1553
+ }
1554
+ interface AXPSettingDefinitionSection {
1555
+ name: string;
1556
+ title: string;
1557
+ description?: string;
1558
+ settings: AXPSettingDefinition[];
1559
+ }
1560
+ interface AXPGroupSearchResult {
1561
+ breadcrumb: {
1562
+ name: string;
1563
+ title: string;
1564
+ description?: string;
1565
+ }[];
1566
+ sections: AXPSettingDefinitionSection[] | null;
1567
+ groups: AXPSettingDefinitionGroup[] | null;
1568
+ }
1569
+
1570
+ declare class AXPSettingDefinitionProviderContext {
1571
+ private rootGroups;
1572
+ private groupMap;
1573
+ addGroup(name: string, title: string, description?: string, icon?: string): AXPSettingDefinitionGroupBuilder;
1574
+ group(name: string): AXPSettingDefinitionGroupBuilder | null;
1575
+ getGroups(): AXPSettingDefinitionGroup[];
1576
+ hasGroup(name: string): boolean;
1577
+ getGroup(name: string): AXPSettingDefinitionGroup | undefined;
1578
+ }
1579
+ declare class AXPSettingDefinitionGroupBuilder {
1580
+ private context;
1581
+ private group;
1582
+ constructor(context: AXPSettingDefinitionProviderContext, group: AXPSettingDefinitionGroup);
1583
+ addSection(name: string, title: string, description?: string): AXPSettingDefinitionSectionBuilder;
1584
+ section(name: string): AXPSettingDefinitionSectionBuilder | null;
1585
+ addGroup(name: string, title: string, description?: string, icon?: string): AXPSettingDefinitionGroupBuilder;
1586
+ endGroup(): AXPSettingDefinitionProviderContext;
1587
+ }
1588
+ declare class AXPSettingDefinitionSectionBuilder {
1589
+ private groupBuilder;
1590
+ private section;
1591
+ constructor(groupBuilder: AXPSettingDefinitionGroupBuilder, section: AXPSettingDefinitionSection);
1592
+ addSetting(setting: {
1593
+ key: string;
1594
+ title: string;
1595
+ scope: AXPPlatformScopeKey;
1596
+ widget: {
1597
+ type: AXPWidgetTypesMap[keyof AXPWidgetTypesMap] | string;
1598
+ options?: AXPOptionsData;
1599
+ triggers?: AXPWidgetTriggers;
1600
+ layout?: AXPGridLayoutOptions;
1601
+ };
1602
+ description?: string;
1603
+ isRequired?: boolean;
1604
+ isInherited?: boolean;
1605
+ isEncrypted?: boolean;
1606
+ defaultValue?: unknown;
1607
+ valueTransforms?: AXPValueTransformerFunctions;
1608
+ validationRules?: AXPValidationRules;
1609
+ }): this;
1610
+ endSection(): AXPSettingDefinitionGroupBuilder;
1611
+ }
1612
+
1613
+ interface AXPSettingDefinitionProvider {
1614
+ provide(context: AXPSettingDefinitionProviderContext): Promise<void>;
1615
+ }
1616
+ declare const AXP_SETTING_DEFINITION_PROVIDER: InjectionToken<AXPSettingDefinitionProvider[]>;
1617
+ declare class AXPSettingDefinitionProviderService {
1618
+ private providers;
1619
+ private cache;
1620
+ private load;
1621
+ reload(): Promise<void>;
1622
+ getListAsync(scope: AXPPlatformScopeKey): Promise<AXPSettingDefinitionGroup[]>;
1623
+ getList(scope: AXPPlatformScopeKey): AXPSettingDefinitionGroup[];
1624
+ defaultValues(): Promise<Record<string, unknown>>;
1625
+ findGroup(scope: AXPPlatformScopeKey, groupName: string): AXPGroupSearchResult;
1626
+ private searchRecursive;
1627
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingDefinitionProviderService, never>;
1628
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingDefinitionProviderService>;
1629
+ }
1630
+ declare const AXP_SETTING_DEFAULT_VALUES_PROVIDERS: InjectionToken<AXPSettingDefaultValuesProvider[]>;
1631
+ declare class AXPSettingDefaultValuesAggregatorService {
1632
+ private readonly definitionService;
1633
+ private readonly providers;
1634
+ getDefaults(): Promise<Record<string, unknown>>;
1635
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingDefaultValuesAggregatorService, never>;
1636
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingDefaultValuesAggregatorService>;
1637
+ }
1638
+
1639
+ declare const AXP_SETTING_VALUE_PROVIDER: InjectionToken<AXPSettingValueProvider[]>;
1640
+
1641
+ interface AXPSettingsServiceInterface {
1642
+ load(): Promise<AXPSettingValue[]>;
1643
+ get<T = any>(key: string): Promise<T>;
1644
+ defaultValues(scope: AXPPlatformScope): Promise<Record<string, unknown>>;
1645
+ scope(scope: AXPPlatformScope): ScopedSettingService;
1646
+ }
1647
+ declare class AXPSettingsService implements AXPSettingsServiceInterface {
1648
+ private readonly providers;
1649
+ private readonly injector;
1650
+ private readonly eventService;
1651
+ private readonly sessionService;
1652
+ private readonly scopedSettingsCache;
1653
+ readonly onChanged: Subject<AXPSettingChangedEvent>;
1654
+ readonly onLoaded: Subject<void>;
1655
+ constructor();
1656
+ reload(): Promise<void>;
1657
+ load(): Promise<AXPSettingValue[]>;
1658
+ get<T = any>(key: string): Promise<T>;
1659
+ defaultValues(scope: AXPPlatformScope): Promise<Record<string, unknown>>;
1660
+ scope(scope: AXPPlatformScope): ScopedSettingService;
1661
+ invokeChangeEvent(event: AXPSettingChangedEvent): void;
1662
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingsService, never>;
1663
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingsService>;
1664
+ }
1665
+ declare class ScopedSettingService {
1666
+ private parent;
1667
+ private provider;
1668
+ private scopeCache;
1669
+ constructor(parent: AXPSettingsService, provider: AXPSettingValueProvider, scopeCache: Map<string, any>);
1670
+ get<T = any>(key: string): Promise<T>;
1671
+ all(): Promise<any>;
1672
+ defaultValues(): Promise<Record<string, unknown>>;
1673
+ set<T = any>(key: string, value: T): Promise<void>;
1674
+ set<T = any>(values: Record<string, T>): Promise<void>;
1675
+ update<T = any>(key: string, updateFn: (currentValue: T) => T): Promise<void>;
1676
+ }
1677
+
1678
+ /**
1679
+ * Regional settings keys for date, time, and locale formatting.
1680
+ * These keys are used by platform widgets and components to access regional settings.
1681
+ * The actual setting definitions and providers are implemented in the locale-management module.
1682
+ */
1683
+ declare enum AXPRegionalSetting {
1684
+ LocaleProfile = "LocaleManagement:Setting:Regional.LocaleProfile",
1685
+ TimeZone = "LocaleManagement:Setting:Regional.TimeZone",
1686
+ Language = "LocaleManagement:Setting:Regional.Language",
1687
+ Country = "LocaleManagement:Setting:Regional.Country",
1688
+ Calendar = "LocaleManagement:Setting:Regional.Calendar",
1689
+ FirstDayOfWeek = "LocaleManagement:Setting:Regional.FirstDayOfWeek",
1690
+ WeekendDays = "LocaleManagement:Setting:Regional.WeekendDays",
1691
+ ShortDate = "LocaleManagement:Setting:Regional.ShortDate",
1692
+ MediumDate = "LocaleManagement:Setting:Regional.MediumDate",
1693
+ LongDate = "LocaleManagement:Setting:Regional.LongDate",
1694
+ ShortTime = "LocaleManagement:Setting:Regional.ShortTime",
1695
+ MediumTime = "LocaleManagement:Setting:Regional.MediumTime",
1696
+ LongTime = "LocaleManagement:Setting:Regional.LongTime",
1697
+ MeasurementUnits = "LocaleManagement:Setting:Regional.MeasurementUnits",
1698
+ TemperatureUnits = "LocaleManagement:Setting:Regional.TemperatureUnits",
1699
+ DistanceUnits = "LocaleManagement:Setting:Regional.DistanceUnits",
1700
+ WeightUnits = "LocaleManagement:Setting:Regional.WeightUnits",
1701
+ VolumeUnits = "LocaleManagement:Setting:Regional.VolumeUnits",
1702
+ SpeedUnits = "LocaleManagement:Setting:Regional.SpeedUnits",
1703
+ AreaUnits = "LocaleManagement:Setting:Regional.AreaUnits"
1704
+ }
1705
+
1706
+ /**
1707
+ * Status Definition Types
1708
+ * Defines the structure for status definitions and their transitions
1709
+ */
1710
+ /**
1711
+ * Status definition with metadata
1712
+ */
1713
+ interface AXPStatusDefinition {
1714
+ /**
1715
+ * Unique identifier for the status
1716
+ */
1717
+ name: string;
1718
+ /**
1719
+ * Display title for the status
1720
+ */
1721
+ title: string;
1722
+ /**
1723
+ * Color code or semantic color name for the status
1724
+ */
1725
+ color: string;
1726
+ /**
1727
+ * Optional icon class (e.g., 'fa-light fa-check')
1728
+ */
1660
1729
  icon?: string;
1730
+ /**
1731
+ * Optional description
1732
+ */
1733
+ description?: string;
1734
+ /**
1735
+ * Optional order for sorting
1736
+ */
1661
1737
  order?: number;
1738
+ /**
1739
+ * Whether this is a final status (end state)
1740
+ */
1741
+ isFinal?: boolean;
1742
+ /**
1743
+ * Whether this is an initial status (starting state)
1744
+ */
1745
+ isInitial?: boolean;
1746
+ /**
1747
+ * Whether list views should be automatically generated for this status
1748
+ */
1749
+ generateView?: boolean;
1750
+ }
1751
+ /**
1752
+ * Status transition definition
1753
+ */
1754
+ interface AXPStatusTransition {
1755
+ /**
1756
+ * Source status name
1757
+ */
1758
+ from: string;
1759
+ /**
1760
+ * Target status name
1761
+ */
1762
+ to: string;
1763
+ /**
1764
+ * Optional condition expression to evaluate before allowing transition
1765
+ * Uses expression evaluator syntax (e.g., "{{user.isAdmin}}", "{{item.priority > 5}}")
1766
+ */
1767
+ condition?: string;
1768
+ /**
1769
+ * Optional display title for the transition
1770
+ */
1771
+ title?: string;
1772
+ /**
1773
+ * Optional description
1774
+ */
1775
+ description?: string;
1776
+ /**
1777
+ * Optional command descriptor to execute for this transition
1778
+ * If not provided, defaults to Entity:UpdateStatus with entity, id, and status
1779
+ */
1780
+ command?: {
1781
+ name: string;
1782
+ options?: Record<string, unknown>;
1783
+ };
1784
+ /**
1785
+ * Whether this transition is automatic (no user action required)
1786
+ */
1787
+ isAutomatic?: boolean;
1788
+ /**
1789
+ * Whether this transition requires approval
1790
+ */
1791
+ requiresApproval?: boolean;
1792
+ }
1793
+ /**
1794
+ * Abstract class for status providers
1795
+ * Similar to AXPTaskBadgeProvider pattern
1796
+ */
1797
+ declare abstract class AXPStatusProvider {
1798
+ /**
1799
+ * Unique key for the status (e.g., 'task-management.status')
1800
+ */
1801
+ abstract readonly key: string;
1802
+ /**
1803
+ * List of available status definitions
1804
+ */
1805
+ abstract readonly statuses: AXPStatusDefinition[];
1806
+ /**
1807
+ * List of allowed transitions between statuses
1808
+ */
1809
+ abstract readonly transitions: AXPStatusTransition[];
1810
+ /**
1811
+ * Optional default status name
1812
+ */
1813
+ abstract readonly defaultStatus?: string;
1814
+ }
1815
+
1816
+ /**
1817
+ * Injection token for status providers
1818
+ * Use with multi: true to register multiple providers
1819
+ */
1820
+ declare const AXP_STATUS_PROVIDERS: InjectionToken<AXPStatusProvider[]>;
1821
+ /**
1822
+ * Service for managing status definitions from multiple providers
1823
+ * Similar to AXPTaskBadgeService pattern - no cache, direct access
1824
+ *
1825
+ * @example
1826
+ * ```typescript
1827
+ * // In a module providers array:
1828
+ * {
1829
+ * provide: AXP_STATUS_PROVIDERS,
1830
+ * useClass: TaskStatusProvider,
1831
+ * multi: true,
1832
+ * }
1833
+ *
1834
+ * // Example provider implementation:
1835
+ * export class TaskStatusProvider extends AXPStatusProvider {
1836
+ * readonly key = 'task-management.status';
1837
+ * readonly statuses = [
1838
+ * { name: 'todo', title: 'To Do', color: '#6b7280', icon: 'fa-light fa-circle', isInitial: true },
1839
+ * { name: 'in-progress', title: 'In Progress', color: '#3b82f6', icon: 'fa-light fa-play' },
1840
+ * { name: 'done', title: 'Done', color: '#10b981', icon: 'fa-light fa-check-circle', isFinal: true },
1841
+ * ];
1842
+ * readonly transitions = [
1843
+ * { from: 'todo', to: 'in-progress', title: 'Start', condition: '{{user.canEdit}}' },
1844
+ * { from: 'in-progress', to: 'done', title: 'Complete' },
1845
+ * ];
1846
+ * readonly defaultStatus = 'todo';
1847
+ * }
1848
+ *
1849
+ * // Later, get the status:
1850
+ * const status = statusService.getStatus('task-management.status');
1851
+ * if (status) {
1852
+ * console.log('Statuses:', status.statuses);
1853
+ * console.log('Transitions:', status.transitions);
1854
+ * }
1855
+ * ```
1856
+ */
1857
+ declare class AXPStatusDefinitionProviderService {
1858
+ private providers;
1859
+ private commandService;
1860
+ private statusMap;
1861
+ private initializationPromise;
1862
+ private isInitialized;
1863
+ constructor();
1864
+ /**
1865
+ * Initialize providers (resolve promises if needed)
1866
+ * Called lazily on first access
1867
+ */
1868
+ private initialize;
1869
+ private _doInitialize;
1870
+ /**
1871
+ * Get a status provider by key
1872
+ * Direct synchronous access from Map. Providers are initialized in the constructor,
1873
+ * including lazy-loaded providers (promises) which are resolved during initialization.
1874
+ *
1875
+ * @param key - Status key (e.g., 'task-management.status')
1876
+ * @returns Status provider with all statuses and transitions, or undefined if not found
1877
+ *
1878
+ * @example
1879
+ * ```typescript
1880
+ * const status = statusService.getStatus('task-management.status');
1881
+ * if (status) {
1882
+ * console.log('Statuses:', status.statuses);
1883
+ * console.log('Transitions:', status.transitions);
1884
+ * }
1885
+ * ```
1886
+ */
1887
+ getStatus(key: string): AXPStatusProvider | undefined;
1888
+ /**
1889
+ * Execute a status transition workflow action
1890
+ * Uses transition.command if provided, otherwise defaults to Entity:UpdateStatus
1891
+ * Validates the transition is allowed before executing
1892
+ *
1893
+ * @param definitionKey - Status definition key
1894
+ * @param transition - The transition to execute
1895
+ * @param context - Context data for the command (must include entity name and id/ids)
1896
+ * @returns Promise that resolves when the command execution completes
1897
+ *
1898
+ * @example
1899
+ * ```typescript
1900
+ * await statusService.executeTransition(
1901
+ * 'task-management.status',
1902
+ * { from: 'todo', to: 'in-progress' },
1903
+ * { entity: 'TaskManagement.Task', id: '123', ...entityData }
1904
+ * );
1905
+ * ```
1906
+ */
1907
+ executeTransition(definitionKey: string, transition: AXPStatusTransition, context: Record<string, any>): Promise<void>;
1908
+ /**
1909
+ * Validate if a transition is allowed
1910
+ * Checks if the transition exists in the provider's transitions list
1911
+ */
1912
+ private isValidTransition;
1913
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPStatusDefinitionProviderService, never>;
1914
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPStatusDefinitionProviderService>;
1915
+ }
1916
+
1917
+ /**
1918
+ * Standard system status types
1919
+ * These are the predefined status values used across the platform
1920
+ */
1921
+ declare enum AXPSystemStatusType {
1922
+ Todo = "todo",
1923
+ InProgress = "in-progress",
1924
+ InReview = "in-review",
1925
+ Open = "open",
1926
+ Closed = "closed",
1927
+ Blocked = "blocked",
1928
+ Done = "done",
1929
+ Cancelled = "cancelled",
1930
+ Draft = "draft",
1931
+ PendingReview = "pending-review",
1932
+ Approved = "approved",
1933
+ Published = "published",
1934
+ Archived = "archived",
1935
+ Rejected = "rejected",
1936
+ Active = "active",
1937
+ Inactive = "inactive",
1938
+ Pending = "pending",
1939
+ Completed = "completed",
1940
+ Suspended = "suspended",
1941
+ Failed = "failed",
1942
+ Review = "review",
1943
+ Expired = "expired"
1944
+ }
1945
+ /**
1946
+ * Standard system status definitions
1947
+ * Provides consistent status definitions across the platform
1948
+ * Uses AXPStatusDefinition interface from status-definition.types.ts
1949
+ */
1950
+ declare const AXPSystemStatuses: Readonly<{
1951
+ readonly Open: {
1952
+ readonly name: AXPSystemStatusType.Open;
1953
+ readonly title: string;
1954
+ readonly icon: "fa-light fa-circle";
1955
+ readonly color: "secondary";
1956
+ readonly description: string;
1957
+ readonly order: 1;
1958
+ readonly isInitial: true;
1959
+ readonly isFinal: false;
1960
+ };
1961
+ readonly Closed: {
1962
+ readonly name: AXPSystemStatusType.Closed;
1963
+ readonly title: string;
1964
+ readonly icon: "fa-light fa-circle";
1965
+ readonly color: "danger";
1966
+ readonly description: string;
1967
+ readonly order: 2;
1968
+ readonly isInitial: false;
1969
+ readonly isFinal: true;
1970
+ };
1971
+ readonly Todo: {
1972
+ readonly name: AXPSystemStatusType.Todo;
1973
+ readonly title: string;
1974
+ readonly icon: "fa-light fa-circle";
1975
+ readonly color: "secondary";
1976
+ readonly description: string;
1977
+ readonly order: 1;
1978
+ readonly isInitial: true;
1979
+ readonly isFinal: false;
1980
+ };
1981
+ readonly InProgress: {
1982
+ readonly name: AXPSystemStatusType.InProgress;
1983
+ readonly title: string;
1984
+ readonly icon: "fa-light fa-play";
1985
+ readonly color: "info";
1986
+ readonly description: string;
1987
+ readonly order: 2;
1988
+ readonly isInitial: false;
1989
+ readonly isFinal: false;
1990
+ };
1991
+ readonly InReview: {
1992
+ readonly name: AXPSystemStatusType.InReview;
1993
+ readonly title: string;
1994
+ readonly icon: "fa-light fa-eye";
1995
+ readonly color: "info";
1996
+ readonly description: string;
1997
+ readonly order: 3;
1998
+ readonly isInitial: false;
1999
+ readonly isFinal: false;
2000
+ };
2001
+ readonly Blocked: {
2002
+ readonly name: AXPSystemStatusType.Blocked;
2003
+ readonly title: string;
2004
+ readonly icon: "fa-light fa-ban";
2005
+ readonly color: "danger";
2006
+ readonly description: string;
2007
+ readonly order: 4;
2008
+ readonly isInitial: false;
2009
+ readonly isFinal: false;
2010
+ };
2011
+ readonly Done: {
2012
+ readonly name: AXPSystemStatusType.Done;
2013
+ readonly title: string;
2014
+ readonly icon: "fa-light fa-check-circle";
2015
+ readonly color: "success";
2016
+ readonly description: string;
2017
+ readonly order: 5;
2018
+ readonly isInitial: false;
2019
+ readonly isFinal: true;
2020
+ };
2021
+ readonly Cancelled: {
2022
+ readonly name: AXPSystemStatusType.Cancelled;
2023
+ readonly title: string;
2024
+ readonly icon: "fa-light fa-times-circle";
2025
+ readonly color: "neutral";
2026
+ readonly description: string;
2027
+ readonly order: 6;
2028
+ readonly isInitial: false;
2029
+ readonly isFinal: true;
2030
+ };
2031
+ readonly Draft: {
2032
+ readonly name: AXPSystemStatusType.Draft;
2033
+ readonly title: string;
2034
+ readonly icon: "fa-light fa-file-pen";
2035
+ readonly color: "neutral";
2036
+ readonly description: string;
2037
+ readonly order: 1;
2038
+ readonly isInitial: true;
2039
+ readonly isFinal: false;
2040
+ };
2041
+ readonly PendingReview: {
2042
+ readonly name: AXPSystemStatusType.PendingReview;
2043
+ readonly title: string;
2044
+ readonly icon: "fa-light fa-clock";
2045
+ readonly color: "warning";
2046
+ readonly description: string;
2047
+ readonly order: 2;
2048
+ readonly isInitial: false;
2049
+ readonly isFinal: false;
2050
+ };
2051
+ readonly Approved: {
2052
+ readonly name: AXPSystemStatusType.Approved;
2053
+ readonly title: string;
2054
+ readonly icon: "fa-light fa-check-circle";
2055
+ readonly color: "success";
2056
+ readonly description: string;
2057
+ readonly order: 3;
2058
+ readonly isInitial: false;
2059
+ readonly isFinal: false;
2060
+ };
2061
+ readonly Published: {
2062
+ readonly name: AXPSystemStatusType.Published;
2063
+ readonly title: string;
2064
+ readonly icon: "fa-light fa-globe";
2065
+ readonly color: "primary";
2066
+ readonly description: string;
2067
+ readonly order: 4;
2068
+ readonly isInitial: false;
2069
+ readonly isFinal: false;
2070
+ };
2071
+ readonly Archived: {
2072
+ readonly name: AXPSystemStatusType.Archived;
2073
+ readonly title: string;
2074
+ readonly icon: "fa-light fa-archive";
2075
+ readonly color: "danger";
2076
+ readonly description: string;
2077
+ readonly order: 5;
2078
+ readonly isInitial: false;
2079
+ readonly isFinal: true;
2080
+ };
2081
+ readonly Rejected: {
2082
+ readonly name: AXPSystemStatusType.Rejected;
2083
+ readonly title: string;
2084
+ readonly icon: "fa-light fa-times-circle";
2085
+ readonly color: "danger";
2086
+ readonly description: string;
2087
+ readonly order: 6;
2088
+ readonly isInitial: false;
2089
+ readonly isFinal: true;
2090
+ };
2091
+ readonly Active: {
2092
+ readonly name: AXPSystemStatusType.Active;
2093
+ readonly title: string;
2094
+ readonly icon: "fa-light fa-check-circle";
2095
+ readonly color: "success";
2096
+ readonly description: string;
2097
+ readonly order: 1;
2098
+ readonly isInitial: false;
2099
+ readonly isFinal: false;
2100
+ };
2101
+ readonly Inactive: {
2102
+ readonly name: AXPSystemStatusType.Inactive;
2103
+ readonly title: string;
2104
+ readonly icon: "fa-light fa-circle";
2105
+ readonly color: "secondary";
2106
+ readonly description: string;
2107
+ readonly order: 2;
2108
+ readonly isInitial: false;
2109
+ readonly isFinal: false;
2110
+ };
2111
+ readonly Pending: {
2112
+ readonly name: AXPSystemStatusType.Pending;
2113
+ readonly title: string;
2114
+ readonly icon: "fa-light fa-clock";
2115
+ readonly color: "warning";
2116
+ readonly description: string;
2117
+ readonly order: 1;
2118
+ readonly isInitial: true;
2119
+ readonly isFinal: false;
2120
+ };
2121
+ readonly Completed: {
2122
+ readonly name: AXPSystemStatusType.Completed;
2123
+ readonly title: string;
2124
+ readonly icon: "fa-light fa-check-circle";
2125
+ readonly color: "success";
2126
+ readonly description: string;
2127
+ readonly order: 10;
2128
+ readonly isInitial: false;
2129
+ readonly isFinal: true;
2130
+ };
2131
+ readonly Suspended: {
2132
+ readonly name: AXPSystemStatusType.Suspended;
2133
+ readonly title: string;
2134
+ readonly icon: "fa-light fa-pause-circle";
2135
+ readonly color: "neutral";
2136
+ readonly description: string;
2137
+ readonly order: 5;
2138
+ readonly isInitial: false;
2139
+ readonly isFinal: false;
2140
+ };
2141
+ readonly Failed: {
2142
+ readonly name: AXPSystemStatusType.Failed;
2143
+ readonly title: string;
2144
+ readonly icon: "fa-light fa-xmark-circle";
2145
+ readonly color: "danger";
2146
+ readonly description: string;
2147
+ readonly order: 10;
2148
+ readonly isInitial: false;
2149
+ readonly isFinal: true;
2150
+ };
2151
+ readonly Review: {
2152
+ readonly name: AXPSystemStatusType.Review;
2153
+ readonly title: string;
2154
+ readonly icon: "fa-light fa-eye";
2155
+ readonly color: "info";
2156
+ readonly description: string;
2157
+ readonly order: 3;
2158
+ };
2159
+ readonly Expired: {
2160
+ readonly name: AXPSystemStatusType.Expired;
2161
+ readonly title: string;
2162
+ readonly icon: "fa-light fa-clock";
2163
+ readonly color: "danger";
2164
+ readonly description: string;
2165
+ readonly order: 10;
2166
+ readonly isInitial: false;
2167
+ readonly isFinal: true;
2168
+ };
2169
+ }>;
2170
+ /**
2171
+ * Get system status definition by type
2172
+ * @param type - Status type
2173
+ * @returns System status definition or undefined
2174
+ */
2175
+ declare function getSystemStatus(type: AXPSystemStatusType): AXPStatusDefinition;
2176
+ /**
2177
+ * Resolves the visual appearance (color and icon) for status
2178
+ * using the system statuses from the core module.
2179
+ * @param statusType - Status type string
2180
+ * @returns Color and icon for the status
2181
+ */
2182
+ declare function resolveStatusLook(statusType: string): {
2183
+ color: AXStyleColorType;
2184
+ icon: string;
2185
+ };
2186
+ /**
2187
+ * Resolves the complete status information (title, description, icon, color) for a status
2188
+ * using the system statuses from the core module.
2189
+ * @param statusType - Status type string
2190
+ * @returns Complete status information as AXPStatusDefinition
2191
+ */
2192
+ declare function getStatusInfo(statusType: string): AXPStatusDefinition;
2193
+ /**
2194
+ * Get system status definition directly (no conversion needed since it's already AXPStatusDefinition)
2195
+ * @param statusType - Status type
2196
+ * @param overrides - Optional overrides for the status definition
2197
+ * @returns AXPStatusDefinition
2198
+ */
2199
+ declare function systemStatusToDefinition(statusType: AXPSystemStatusType, overrides?: Partial<AXPStatusDefinition>): AXPStatusDefinition;
2200
+
2201
+ interface AXPTokenDefinition {
2202
+ name: string;
2203
+ execute: () => Promise<any> | any;
2204
+ }
2205
+
2206
+ type AXPTokenDefinitionProviderToken = AXPTokenDefinitionProvider | Promise<AXPTokenDefinitionProvider>;
2207
+ declare const AXP_TOKEN_DEFINITION_PROVIDER: InjectionToken<AXPTokenDefinitionProviderToken[]>;
2208
+ interface AXPTokenDefinitionProvider<T = any> {
2209
+ name: string;
2210
+ title: string;
2211
+ description?: string;
1662
2212
  execute(): Promise<T> | T;
1663
2213
  }
1664
2214
 
1665
- declare class AXPGlobalVariableDefinitionService {
2215
+ declare class AXPTokenDefinitionService {
1666
2216
  private readonly definitionProviders;
1667
2217
  /** Cache for definitions by name. */
1668
2218
  private definitionsByName;
1669
2219
  /**
1670
- * Returns a report definition by its id.
2220
+ * Returns a token definition by its name.
1671
2221
  * First checks the cache, then queries all providers if not found.
1672
- * @param name The global variable name.
1673
- * @returns The global variable definition if found, undefined otherwise.
2222
+ * @param name The token name.
2223
+ * @returns The token definition if found, undefined otherwise.
2224
+ */
2225
+ getDefinition(name: string): Promise<AXPTokenDefinition | undefined>;
2226
+ /**
2227
+ * Gets the resolved value of a token by its name.
2228
+ * @param name The token name.
2229
+ * @returns The resolved token value, or undefined if the token is not found.
1674
2230
  */
1675
- getByName(name: string): Promise<AXPGlobalVariableDefinition | undefined>;
1676
- execute(name: string): Promise<any>;
2231
+ getValue(name: string): Promise<any>;
1677
2232
  /** Clears the definitions by name cache. */
1678
2233
  clearDefinitionsCache(): void;
1679
- static ɵfac: i0.ɵɵFactoryDeclaration<AXPGlobalVariableDefinitionService, never>;
1680
- static ɵprov: i0.ɵɵInjectableDeclaration<AXPGlobalVariableDefinitionService>;
2234
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPTokenDefinitionService, never>;
2235
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPTokenDefinitionService>;
1681
2236
  }
1682
2237
 
1683
- declare class AXPGlobalVariableEvaluatorScopeProvider implements AXPExpressionEvaluatorScopeProvider {
1684
- protected globalVariableService: AXPGlobalVariableDefinitionService;
2238
+ declare class AXPTokenEvaluatorScopeProvider implements AXPExpressionEvaluatorScopeProvider {
2239
+ protected tokenService: AXPTokenDefinitionService;
1685
2240
  provide(context: AXPExpressionEvaluatorScopeProviderContext): Promise<void>;
1686
2241
  }
1687
2242
 
@@ -1692,6 +2247,21 @@ declare class AXPClipBoardService {
1692
2247
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPClipBoardService>;
1693
2248
  }
1694
2249
 
2250
+ /**
2251
+ * Service for debugging user access information.
2252
+ * Displays loaded modules, features, and permissions for the current user.
2253
+ */
2254
+ declare class AXPDebugService {
2255
+ private readonly sessionService;
2256
+ private readonly manifestRegistry;
2257
+ /**
2258
+ * Display all loaded modules, features, and permissions for the current user.
2259
+ */
2260
+ displayUserAccessInfo(): Promise<void>;
2261
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXPDebugService, never>;
2262
+ static ɵprov: i0.ɵɵInjectableDeclaration<AXPDebugService>;
2263
+ }
2264
+
1695
2265
  declare class AXPExportService {
1696
2266
  popupService: AXPopupService;
1697
2267
  generateBlobFromElement(element: HTMLElement, blobOptions?: AXPDomToImageOptions): Promise<Blob>;
@@ -1863,7 +2433,7 @@ declare class AXPDialogConfirmAction extends AXPWorkflowAction {
1863
2433
  declare class AXPToastAction extends AXPWorkflowAction {
1864
2434
  private toastService;
1865
2435
  private translationService;
1866
- private settingService;
2436
+ private settingsService;
1867
2437
  color: AXStyleColorType;
1868
2438
  title: string;
1869
2439
  content: string;
@@ -1896,5 +2466,5 @@ declare class AXMWorkflowErrorHandler implements AXPErrorHandler {
1896
2466
  static ɵprov: i0.ɵɵInjectableDeclaration<AXMWorkflowErrorHandler>;
1897
2467
  }
1898
2468
 
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 };
2469
+ 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 };
2470
+ 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 };