@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.
- package/auth/index.d.ts +97 -238
- package/common/index.d.ts +783 -213
- package/core/index.d.ts +311 -442
- package/fesm2022/acorex-platform-auth.mjs +156 -200
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-common.mjs +1038 -127
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +602 -413
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-domain.mjs +54 -11
- package/fesm2022/acorex-platform-domain.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +412 -270
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +2100 -3141
- 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 +730 -652
- 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 +249 -205
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-D0y-9nE5.mjs → acorex-platform-layout-widgets-file-list-popup.component-CxrsI6Hn.mjs} +2 -2
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-CxrsI6Hn.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-edit-popup.component-m8rHZP8L.mjs → acorex-platform-layout-widgets-tabular-data-edit-popup.component-Ck7-wpT2.mjs} +2 -2
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-Ck7-wpT2.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets.mjs +3066 -1040
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- 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
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-VIGuU5M4.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-Cym8pq0v.mjs → acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs} +4 -5
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DyDa_hyd.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Ua3ZA5hk.mjs +101 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Ua3ZA5hk.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-B_P0a5KW.mjs → acorex-platform-themes-default-entity-master-single-view.component-eMBby9k4.mjs} +3 -3
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-eMBby9k4.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +166 -30
- 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/fesm2022/acorex-platform-workflow.mjs +474 -1527
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/builder/index.d.ts +4 -1
- package/layout/components/index.d.ts +405 -327
- package/layout/designer/index.d.ts +3 -3
- package/layout/entity/index.d.ts +154 -108
- package/layout/widget-core/index.d.ts +39 -52
- package/layout/widgets/index.d.ts +368 -54
- package/package.json +9 -9
- package/themes/default/index.d.ts +15 -2
- package/themes/shared/index.d.ts +10 -10
- package/workflow/index.d.ts +182 -817
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-edit.component-fhhZOWul.mjs +0 -50
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-edit.component-fhhZOWul.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-view.component-C3Qbs0fz.mjs +0 -42
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-view.component-C3Qbs0fz.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-edit.component-CngQBUlN.mjs +0 -55
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-edit.component-CngQBUlN.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-view.component-DSNo9e4W.mjs +0 -50
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-view.component-DSNo9e4W.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-edit.component-CL0CwEHX.mjs +0 -48
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-edit.component-CL0CwEHX.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-view.component-B6Fi0xTw.mjs +0 -42
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-view.component-B6Fi0xTw.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-D0y-9nE5.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-m8rHZP8L.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-mARj77Mr.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-Cym8pq0v.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BTA6h7Xd.mjs +0 -101
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BTA6h7Xd.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-B_P0a5KW.mjs.map +0 -1
package/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Type, InjectionToken, OnInit, ElementRef, EventEmitter, OnChanges, Renderer2, SimpleChanges, ViewContainerRef, OnDestroy, PipeTransform } from '@angular/core';
|
|
2
|
+
import { Type, InjectionToken, OnInit, ElementRef, EventEmitter, OnChanges, Renderer2, SimpleChanges, ViewContainerRef, OnDestroy, Injector, PipeTransform, Provider } from '@angular/core';
|
|
3
3
|
import { AXStyleColorType, AXDataSource, AXDataSourceSortOption, AXDataSourceFilterOption, AXDataSourceQuery, AXDataSourceCallbackResult } from '@acorex/cdk/common';
|
|
4
4
|
import * as _ngrx_signals from '@ngrx/signals';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
@@ -924,6 +924,8 @@ interface AXPValueUnits {
|
|
|
924
924
|
interface AXPEntityReference {
|
|
925
925
|
id: string;
|
|
926
926
|
type: string;
|
|
927
|
+
title?: string;
|
|
928
|
+
metadata?: AXPMetaData;
|
|
927
929
|
}
|
|
928
930
|
interface AXPUserReference {
|
|
929
931
|
id: string;
|
|
@@ -1002,19 +1004,14 @@ interface AXPFileListItem {
|
|
|
1002
1004
|
source?: AXPFileSource;
|
|
1003
1005
|
}
|
|
1004
1006
|
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
interface AXPFilterDefinition {
|
|
1007
|
+
interface AXPFilterClause extends AXDataSourceFilterOption {
|
|
1008
|
+
id?: string;
|
|
1009
|
+
order?: number;
|
|
1010
|
+
filters?: AXPFilterClause[];
|
|
1011
|
+
}
|
|
1012
|
+
interface AXPFilterDefinition extends AXPFilterClause {
|
|
1011
1013
|
title: string;
|
|
1012
|
-
field: string;
|
|
1013
|
-
value?: unknown;
|
|
1014
1014
|
isParametric?: boolean;
|
|
1015
|
-
operator: AXPFilterOperation;
|
|
1016
|
-
logic?: AXPFilterLogic;
|
|
1017
|
-
filters?: AXPFilterDefinition[];
|
|
1018
1015
|
icon?: string;
|
|
1019
1016
|
widget: {
|
|
1020
1017
|
type: string;
|
|
@@ -1035,6 +1032,7 @@ type AXPActionMenuItem = {
|
|
|
1035
1032
|
name?: string;
|
|
1036
1033
|
title: string;
|
|
1037
1034
|
icon?: string;
|
|
1035
|
+
iconOnly?: boolean;
|
|
1038
1036
|
color?: string;
|
|
1039
1037
|
break?: boolean;
|
|
1040
1038
|
items?: AXPActionMenuItem[];
|
|
@@ -1141,6 +1139,11 @@ declare class AXPComponentLogoConfig implements AXPLogoConfig {
|
|
|
1141
1139
|
width?: number | undefined;
|
|
1142
1140
|
constructor(component: Type<any>);
|
|
1143
1141
|
}
|
|
1142
|
+
declare class AXPIconLogoConfig implements AXPLogoConfig {
|
|
1143
|
+
icon: string;
|
|
1144
|
+
color?: string | undefined;
|
|
1145
|
+
constructor(icon: string, color?: string | undefined);
|
|
1146
|
+
}
|
|
1144
1147
|
|
|
1145
1148
|
type AXPPlatformScopeKey = 'C' | 'G' | 'P' | 'T' | 'U';
|
|
1146
1149
|
declare enum AXPPlatformScope {
|
|
@@ -1445,6 +1448,11 @@ declare class AXPColorPaletteService {
|
|
|
1445
1448
|
* Reload palettes from all providers
|
|
1446
1449
|
*/
|
|
1447
1450
|
reload(): Promise<void>;
|
|
1451
|
+
/**
|
|
1452
|
+
* Get the default palette (material-design) or fallback colors
|
|
1453
|
+
* @returns Promise of default palette, never returns undefined
|
|
1454
|
+
*/
|
|
1455
|
+
getDefaultPalette(): Promise<AXPColorPalette>;
|
|
1448
1456
|
/**
|
|
1449
1457
|
* Load palettes from all providers
|
|
1450
1458
|
*/
|
|
@@ -1529,6 +1537,7 @@ declare class AXPDataGenerator {
|
|
|
1529
1537
|
static city(): string;
|
|
1530
1538
|
static state(): string;
|
|
1531
1539
|
static address(): string;
|
|
1540
|
+
static avatar(): string;
|
|
1532
1541
|
}
|
|
1533
1542
|
|
|
1534
1543
|
type AXPValueTransformerFunction = (value: any) => any;
|
|
@@ -1559,6 +1568,7 @@ interface AXPDataSourceDefinition<T = any> {
|
|
|
1559
1568
|
columns: AXPDataSourceDataFieldDefinition[];
|
|
1560
1569
|
filters: AXPFilterDefinition[];
|
|
1561
1570
|
samples?: any[];
|
|
1571
|
+
visible?: boolean;
|
|
1562
1572
|
source: () => AXDataSource<T> | Promise<AXDataSource<T>>;
|
|
1563
1573
|
}
|
|
1564
1574
|
interface AXPDataSourceDefinitionProvider {
|
|
@@ -1623,6 +1633,69 @@ declare class AXPContentCheckerDirective {
|
|
|
1623
1633
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AXPContentCheckerDirective, "[axp-content-checker]", ["checker"], {}, {}, never, never, true, never>;
|
|
1624
1634
|
}
|
|
1625
1635
|
|
|
1636
|
+
/**
|
|
1637
|
+
* Fullscreen directive that provides CSS-based fullscreen functionality
|
|
1638
|
+
* Usage: <element axFullscreen #fullscreen="axFullscreen"></element>
|
|
1639
|
+
* Then: fullscreen.toggle() or fullscreen.enter() or fullscreen.exit()
|
|
1640
|
+
*/
|
|
1641
|
+
declare class AXFullscreenDirective implements OnDestroy {
|
|
1642
|
+
private elementRef;
|
|
1643
|
+
/**
|
|
1644
|
+
* Current fullscreen state
|
|
1645
|
+
*/
|
|
1646
|
+
private readonly isFullscreenState;
|
|
1647
|
+
/**
|
|
1648
|
+
* Original element styles to restore
|
|
1649
|
+
*/
|
|
1650
|
+
private originalStyles;
|
|
1651
|
+
/**
|
|
1652
|
+
* Original parent element reference
|
|
1653
|
+
*/
|
|
1654
|
+
private originalParent;
|
|
1655
|
+
/**
|
|
1656
|
+
* Fullscreen container element
|
|
1657
|
+
*/
|
|
1658
|
+
private fullscreenContainer;
|
|
1659
|
+
/**
|
|
1660
|
+
* Fullscreen change event
|
|
1661
|
+
*/
|
|
1662
|
+
readonly fullscreenChange: i0.OutputEmitterRef<boolean>;
|
|
1663
|
+
private readonly destroyRef;
|
|
1664
|
+
private readonly renderer;
|
|
1665
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
1666
|
+
/**
|
|
1667
|
+
* Toggle fullscreen state
|
|
1668
|
+
*/
|
|
1669
|
+
toggle(): Promise<void>;
|
|
1670
|
+
/**
|
|
1671
|
+
* Enter fullscreen mode using CSS
|
|
1672
|
+
*/
|
|
1673
|
+
enter(): Promise<void>;
|
|
1674
|
+
/**
|
|
1675
|
+
* Exit fullscreen mode
|
|
1676
|
+
*/
|
|
1677
|
+
exit(): Promise<void>;
|
|
1678
|
+
/**
|
|
1679
|
+
* Check if currently in fullscreen mode
|
|
1680
|
+
*/
|
|
1681
|
+
isFullscreen(): boolean;
|
|
1682
|
+
/**
|
|
1683
|
+
* Store original element styles
|
|
1684
|
+
*/
|
|
1685
|
+
private storeOriginalStyles;
|
|
1686
|
+
/**
|
|
1687
|
+
* Restore original element styles
|
|
1688
|
+
*/
|
|
1689
|
+
private restoreOriginalStyles;
|
|
1690
|
+
/**
|
|
1691
|
+
* Convert camelCase to kebab-case for CSS properties
|
|
1692
|
+
*/
|
|
1693
|
+
private camelToKebabCase;
|
|
1694
|
+
ngOnDestroy(): void;
|
|
1695
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXFullscreenDirective, never>;
|
|
1696
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AXFullscreenDirective, "[axFullscreen]", ["axFullscreen"], {}, { "fullscreenChange": "fullscreenChange"; }, never, never, true, never>;
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1626
1699
|
type AXPDistributedEventListenerProviderToken<T> = AXPDistributedEventListenerProvider<T> | Promise<AXPDistributedEventListenerProvider<T>>;
|
|
1627
1700
|
declare const AXP_DISTRIBUTED_EVENT_LISTENER_PROVIDER: InjectionToken<AXPDistributedEventListenerProviderToken<any>[]>;
|
|
1628
1701
|
interface AXPDistributedEventListenerProvider<TInput = any, TOutput = void> {
|
|
@@ -1780,524 +1853,284 @@ declare class AXPHookService {
|
|
|
1780
1853
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPHookService>;
|
|
1781
1854
|
}
|
|
1782
1855
|
|
|
1783
|
-
interface AXPStartUpTask {
|
|
1784
|
-
name: string;
|
|
1785
|
-
statusText: string;
|
|
1786
|
-
priority: number;
|
|
1787
|
-
run: () => Promise<void>;
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
declare class AXPAppStartUpService {
|
|
1791
|
-
private tasks;
|
|
1792
|
-
registerTask(task: AXPStartUpTask): void;
|
|
1793
|
-
runAllTasks(): Promise<void>;
|
|
1794
|
-
private updateStatus;
|
|
1795
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPAppStartUpService, never>;
|
|
1796
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXPAppStartUpService>;
|
|
1797
|
-
}
|
|
1798
|
-
declare const AXPAppStartUpProvider: i0.EnvironmentProviders;
|
|
1799
|
-
|
|
1800
1856
|
/**
|
|
1801
|
-
*
|
|
1802
|
-
* Defines
|
|
1857
|
+
* Feature definition in module manifest.
|
|
1858
|
+
* Defines available features with default values.
|
|
1803
1859
|
*/
|
|
1804
|
-
|
|
1805
|
-
/**
|
|
1806
|
-
* Status definition with metadata
|
|
1807
|
-
*/
|
|
1808
|
-
interface AXPStatusDefinition {
|
|
1809
|
-
/**
|
|
1810
|
-
* Unique identifier for the status
|
|
1811
|
-
*/
|
|
1812
|
-
name: string;
|
|
1860
|
+
interface AXPModuleFeatureDefinition {
|
|
1813
1861
|
/**
|
|
1814
|
-
*
|
|
1862
|
+
* Feature title (translation key or literal)
|
|
1815
1863
|
*/
|
|
1816
1864
|
title: string;
|
|
1817
1865
|
/**
|
|
1818
|
-
*
|
|
1819
|
-
*/
|
|
1820
|
-
color: string;
|
|
1821
|
-
/**
|
|
1822
|
-
* Optional icon class (e.g., 'fa-light fa-check')
|
|
1823
|
-
*/
|
|
1824
|
-
icon?: string;
|
|
1825
|
-
/**
|
|
1826
|
-
* Optional description
|
|
1866
|
+
* Feature description (translation key or literal)
|
|
1827
1867
|
*/
|
|
1828
1868
|
description?: string;
|
|
1829
1869
|
/**
|
|
1830
|
-
*
|
|
1870
|
+
* Default value for the feature.
|
|
1871
|
+
* Used when user doesn't have explicit feature value.
|
|
1831
1872
|
*/
|
|
1832
|
-
|
|
1873
|
+
defaultValue: boolean | number | string | string[] | null;
|
|
1833
1874
|
/**
|
|
1834
|
-
*
|
|
1875
|
+
* Type hint for validation and UI rendering
|
|
1835
1876
|
*/
|
|
1836
|
-
|
|
1877
|
+
type?: 'boolean' | 'number' | 'string' | 'array';
|
|
1837
1878
|
/**
|
|
1838
|
-
*
|
|
1879
|
+
* Widget interface for feature configuration UI (optional)
|
|
1839
1880
|
*/
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1881
|
+
interface?: {
|
|
1882
|
+
type: string;
|
|
1883
|
+
options?: Record<string, any>;
|
|
1884
|
+
};
|
|
1885
|
+
}
|
|
1886
|
+
/**
|
|
1887
|
+
* Feature definition in array format (with key).
|
|
1888
|
+
* Used when features are defined as an array in manifest.
|
|
1889
|
+
*/
|
|
1890
|
+
interface AXPModuleFeatureDefinitionWithKey extends AXPModuleFeatureDefinition {
|
|
1845
1891
|
/**
|
|
1846
|
-
*
|
|
1892
|
+
* Full feature key (ModuleName.FeatureKey format).
|
|
1893
|
+
* When using array format, this must be provided.
|
|
1847
1894
|
*/
|
|
1848
|
-
|
|
1895
|
+
key: string;
|
|
1849
1896
|
}
|
|
1850
1897
|
/**
|
|
1851
|
-
*
|
|
1898
|
+
* Module manifest structure.
|
|
1899
|
+
* Defines module metadata and dependencies.
|
|
1900
|
+
* Features are provided via AXP_FEATURE_DEFINITION_PROVIDER token.
|
|
1852
1901
|
*/
|
|
1853
|
-
interface
|
|
1902
|
+
interface AXPModuleManifest {
|
|
1854
1903
|
/**
|
|
1855
|
-
*
|
|
1904
|
+
* Module name (must match RootConfig.module.name)
|
|
1856
1905
|
*/
|
|
1857
|
-
|
|
1906
|
+
name: string;
|
|
1858
1907
|
/**
|
|
1859
|
-
*
|
|
1908
|
+
* Module version
|
|
1860
1909
|
*/
|
|
1861
|
-
|
|
1910
|
+
version: string;
|
|
1862
1911
|
/**
|
|
1863
|
-
*
|
|
1864
|
-
* Uses expression evaluator syntax (e.g., "{{user.isAdmin}}", "{{item.priority > 5}}")
|
|
1912
|
+
* Module title (can reference const.ts or be translation key)
|
|
1865
1913
|
*/
|
|
1866
|
-
|
|
1914
|
+
title: string;
|
|
1867
1915
|
/**
|
|
1868
|
-
*
|
|
1916
|
+
* Module description (optional)
|
|
1869
1917
|
*/
|
|
1870
|
-
|
|
1918
|
+
description?: string;
|
|
1871
1919
|
/**
|
|
1872
|
-
*
|
|
1920
|
+
* Module icon (can reference const.ts)
|
|
1873
1921
|
*/
|
|
1874
|
-
|
|
1922
|
+
icon?: string;
|
|
1875
1923
|
/**
|
|
1876
|
-
*
|
|
1924
|
+
* i18n scope name (can reference const.ts)
|
|
1877
1925
|
*/
|
|
1878
|
-
|
|
1926
|
+
i18n?: string;
|
|
1879
1927
|
/**
|
|
1880
|
-
*
|
|
1928
|
+
* Module dependencies.
|
|
1929
|
+
* Simple array format: module names (e.g., "MeasurementCore") or feature keys (e.g., "DataManagement.MetaDataDefinitions").
|
|
1930
|
+
* Features use ModuleName.FeatureKey format (dot separator).
|
|
1881
1931
|
*/
|
|
1882
|
-
|
|
1932
|
+
dependencies?: string[];
|
|
1883
1933
|
/**
|
|
1884
|
-
*
|
|
1934
|
+
* Whether this module is required (always enabled, cannot be disabled).
|
|
1935
|
+
* Required modules like 'auth' and 'common' are always available.
|
|
1885
1936
|
*/
|
|
1886
|
-
|
|
1937
|
+
required?: boolean;
|
|
1887
1938
|
/**
|
|
1888
|
-
*
|
|
1939
|
+
* Additional metadata
|
|
1889
1940
|
*/
|
|
1890
|
-
|
|
1941
|
+
metadata?: {
|
|
1942
|
+
[key: string]: any;
|
|
1943
|
+
};
|
|
1944
|
+
}
|
|
1945
|
+
/**
|
|
1946
|
+
* Full feature name with module prefix.
|
|
1947
|
+
* Format: ModuleName.FeatureKey
|
|
1948
|
+
*/
|
|
1949
|
+
type AXPFeatureName = string;
|
|
1950
|
+
/**
|
|
1951
|
+
* Feature definition with full name.
|
|
1952
|
+
*/
|
|
1953
|
+
interface AXPFeatureDefinition extends AXPModuleFeatureDefinition {
|
|
1954
|
+
/**
|
|
1955
|
+
* Full feature name (ModuleName.FeatureKey)
|
|
1956
|
+
*/
|
|
1957
|
+
name: AXPFeatureName;
|
|
1958
|
+
/**
|
|
1959
|
+
* Module name
|
|
1960
|
+
*/
|
|
1961
|
+
module: string;
|
|
1891
1962
|
/**
|
|
1892
|
-
*
|
|
1963
|
+
* Feature key (short name)
|
|
1893
1964
|
*/
|
|
1894
|
-
|
|
1965
|
+
key: string;
|
|
1895
1966
|
}
|
|
1967
|
+
|
|
1896
1968
|
/**
|
|
1897
|
-
*
|
|
1898
|
-
*
|
|
1969
|
+
* Registry service for module manifests.
|
|
1970
|
+
* Collects and manages all registered module manifests.
|
|
1899
1971
|
*/
|
|
1900
|
-
declare
|
|
1972
|
+
declare class AXPModuleManifestRegistry {
|
|
1973
|
+
private readonly manifests;
|
|
1974
|
+
private readonly featureDefinitions;
|
|
1975
|
+
private readonly injector;
|
|
1976
|
+
private initializationPromise;
|
|
1977
|
+
private isInitialized;
|
|
1901
1978
|
/**
|
|
1902
|
-
*
|
|
1979
|
+
* Initialize registry by loading all manifest providers.
|
|
1980
|
+
* Should be called during app startup.
|
|
1981
|
+
* Safe to call multiple times - will only initialize once.
|
|
1903
1982
|
*/
|
|
1904
|
-
|
|
1983
|
+
initialize(): Promise<void>;
|
|
1905
1984
|
/**
|
|
1906
|
-
*
|
|
1985
|
+
* Internal initialization logic.
|
|
1907
1986
|
*/
|
|
1908
|
-
|
|
1987
|
+
private _doInitialize;
|
|
1909
1988
|
/**
|
|
1910
|
-
*
|
|
1989
|
+
* Register a module manifest.
|
|
1911
1990
|
*/
|
|
1912
|
-
|
|
1991
|
+
register(manifest: AXPModuleManifest): Promise<void>;
|
|
1913
1992
|
/**
|
|
1914
|
-
*
|
|
1993
|
+
* Get manifest for a module.
|
|
1915
1994
|
*/
|
|
1916
|
-
|
|
1995
|
+
get(moduleName: string): AXPModuleManifest | undefined;
|
|
1917
1996
|
/**
|
|
1918
|
-
*
|
|
1997
|
+
* Get all registered manifests.
|
|
1919
1998
|
*/
|
|
1920
|
-
|
|
1921
|
-
}
|
|
1922
|
-
type AXPStatusActionPriority = 'primary' | 'secondary';
|
|
1923
|
-
type AXPStatusActionScope = 'individual' | 'selected' | 'typeLevel' | 'section';
|
|
1924
|
-
interface AXPStatusWorkflowAction {
|
|
1999
|
+
getAll(): AXPModuleManifest[];
|
|
1925
2000
|
/**
|
|
1926
|
-
*
|
|
2001
|
+
* Check if a module manifest is registered.
|
|
1927
2002
|
*/
|
|
1928
|
-
|
|
2003
|
+
has(moduleName: string): boolean;
|
|
1929
2004
|
/**
|
|
1930
|
-
*
|
|
2005
|
+
* Load feature definitions from all registered feature definition providers.
|
|
2006
|
+
* Features are automatically associated with modules based on the module name in the feature key.
|
|
1931
2007
|
*/
|
|
1932
|
-
|
|
2008
|
+
private loadFeatureDefinitions;
|
|
1933
2009
|
/**
|
|
1934
|
-
*
|
|
2010
|
+
* Get all feature definitions from all manifests.
|
|
1935
2011
|
*/
|
|
1936
|
-
|
|
1937
|
-
name: string;
|
|
1938
|
-
options?: Record<string, unknown>;
|
|
1939
|
-
};
|
|
2012
|
+
getAllFeatureDefinitions(): AXPFeatureDefinition[];
|
|
1940
2013
|
/**
|
|
1941
|
-
*
|
|
2014
|
+
* Get feature definition by full name.
|
|
1942
2015
|
*/
|
|
1943
|
-
|
|
2016
|
+
getFeatureDefinition(featureName: AXPFeatureName): AXPFeatureDefinition | undefined;
|
|
1944
2017
|
/**
|
|
1945
|
-
*
|
|
2018
|
+
* Check if a feature is defined in any manifest.
|
|
1946
2019
|
*/
|
|
1947
|
-
|
|
2020
|
+
isFeatureDefined(featureName: AXPFeatureName): boolean;
|
|
1948
2021
|
/**
|
|
1949
|
-
*
|
|
2022
|
+
* Get default value for a feature.
|
|
2023
|
+
* Returns undefined if feature is not defined.
|
|
1950
2024
|
*/
|
|
1951
|
-
|
|
2025
|
+
getFeatureDefault(featureName: AXPFeatureName): any;
|
|
1952
2026
|
/**
|
|
1953
|
-
*
|
|
2027
|
+
* Get all feature definitions for a specific module.
|
|
1954
2028
|
*/
|
|
1955
|
-
|
|
2029
|
+
getModuleFeatures(moduleName: string): AXPFeatureDefinition[];
|
|
1956
2030
|
/**
|
|
1957
|
-
*
|
|
2031
|
+
* Register a feature definition dynamically (e.g., from feature definition provider).
|
|
2032
|
+
* Used to add features that are defined at runtime via AXP_FEATURE_DEFINITION_PROVIDER.
|
|
1958
2033
|
*/
|
|
1959
|
-
|
|
2034
|
+
registerFeatureDefinition(definition: AXPFeatureDefinition): void;
|
|
1960
2035
|
/**
|
|
1961
|
-
*
|
|
2036
|
+
* Check if module dependencies are satisfied.
|
|
2037
|
+
* Returns array of missing dependencies.
|
|
2038
|
+
* Dependencies can be module names or feature keys (ModuleName.FeatureKey format).
|
|
1962
2039
|
*/
|
|
1963
|
-
|
|
2040
|
+
checkDependencies(moduleName: string): {
|
|
2041
|
+
missingModules: string[];
|
|
2042
|
+
missingFeatures: string[];
|
|
2043
|
+
};
|
|
2044
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPModuleManifestRegistry, never>;
|
|
2045
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPModuleManifestRegistry>;
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
interface AXPStartUpTask {
|
|
2049
|
+
name: string;
|
|
2050
|
+
statusText: string;
|
|
2051
|
+
priority: number;
|
|
2052
|
+
run: () => Promise<void>;
|
|
2053
|
+
}
|
|
2054
|
+
|
|
2055
|
+
declare class AXPAppStartUpService {
|
|
2056
|
+
private tasks;
|
|
2057
|
+
registerTask(task: AXPStartUpTask): void;
|
|
2058
|
+
runAllTasks(): Promise<void>;
|
|
2059
|
+
private updateStatus;
|
|
2060
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPAppStartUpService, never>;
|
|
2061
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPAppStartUpService>;
|
|
1964
2062
|
}
|
|
2063
|
+
declare const AXPAppStartUpProvider: i0.EnvironmentProviders;
|
|
1965
2064
|
|
|
1966
2065
|
/**
|
|
1967
|
-
*
|
|
1968
|
-
*
|
|
2066
|
+
* Module for managing module manifests initialization.
|
|
2067
|
+
* Handles the registration of manifest startup tasks.
|
|
1969
2068
|
*/
|
|
1970
|
-
declare
|
|
1971
|
-
/**
|
|
1972
|
-
* Service for managing status definitions from multiple providers
|
|
1973
|
-
* Similar to AXPTaskBadgeService pattern - no cache, direct access
|
|
1974
|
-
*
|
|
1975
|
-
* @example
|
|
1976
|
-
* ```typescript
|
|
1977
|
-
* // In a module providers array:
|
|
1978
|
-
* {
|
|
1979
|
-
* provide: AXP_STATUS_PROVIDERS,
|
|
1980
|
-
* useClass: TaskStatusProvider,
|
|
1981
|
-
* multi: true,
|
|
1982
|
-
* }
|
|
1983
|
-
*
|
|
1984
|
-
* // Example provider implementation:
|
|
1985
|
-
* export class TaskStatusProvider extends AXPStatusProvider {
|
|
1986
|
-
* readonly key = 'task-management.status';
|
|
1987
|
-
* readonly statuses = [
|
|
1988
|
-
* { name: 'todo', title: 'To Do', color: '#6b7280', icon: 'fa-light fa-circle', isInitial: true },
|
|
1989
|
-
* { name: 'in-progress', title: 'In Progress', color: '#3b82f6', icon: 'fa-light fa-play' },
|
|
1990
|
-
* { name: 'done', title: 'Done', color: '#10b981', icon: 'fa-light fa-check-circle', isFinal: true },
|
|
1991
|
-
* ];
|
|
1992
|
-
* readonly transitions = [
|
|
1993
|
-
* { from: 'todo', to: 'in-progress', title: 'Start', condition: '{{user.canEdit}}' },
|
|
1994
|
-
* { from: 'in-progress', to: 'done', title: 'Complete' },
|
|
1995
|
-
* ];
|
|
1996
|
-
* readonly defaultStatus = 'todo';
|
|
1997
|
-
* }
|
|
1998
|
-
*
|
|
1999
|
-
* // Later, get the status:
|
|
2000
|
-
* const status = statusService.getStatus('task-management.status');
|
|
2001
|
-
* if (status) {
|
|
2002
|
-
* console.log('Statuses:', status.statuses);
|
|
2003
|
-
* console.log('Transitions:', status.transitions);
|
|
2004
|
-
* }
|
|
2005
|
-
* ```
|
|
2006
|
-
*/
|
|
2007
|
-
declare class AXPStatusDefinitionProviderService {
|
|
2008
|
-
private providers;
|
|
2009
|
-
private statusMap;
|
|
2010
|
-
constructor();
|
|
2069
|
+
declare class AXPModuleManifestModule {
|
|
2011
2070
|
/**
|
|
2012
|
-
*
|
|
2013
|
-
*
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
* ```typescript
|
|
2020
|
-
* const status = statusService.getStatus('task-management.status');
|
|
2021
|
-
* if (status) {
|
|
2022
|
-
* console.log('Statuses:', status.statuses);
|
|
2023
|
-
* console.log('Transitions:', status.transitions);
|
|
2024
|
-
* }
|
|
2025
|
-
* ```
|
|
2026
|
-
*/
|
|
2027
|
-
getStatus(key: string): AXPStatusProvider | undefined;
|
|
2028
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPStatusDefinitionProviderService, never>;
|
|
2029
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXPStatusDefinitionProviderService>;
|
|
2071
|
+
* @ignore
|
|
2072
|
+
* Initializes module manifest tasks on module construction.
|
|
2073
|
+
*/
|
|
2074
|
+
constructor(appInitService: AXPAppStartUpService, injector: Injector);
|
|
2075
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPModuleManifestModule, never>;
|
|
2076
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPModuleManifestModule, never, never, never>;
|
|
2077
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXPModuleManifestModule>;
|
|
2030
2078
|
}
|
|
2031
2079
|
|
|
2032
2080
|
/**
|
|
2033
|
-
*
|
|
2034
|
-
*
|
|
2081
|
+
* Context for feature definition providers.
|
|
2082
|
+
* Allows providers to add additional feature definitions dynamically.
|
|
2035
2083
|
*/
|
|
2036
|
-
declare
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
Rejected = "rejected",
|
|
2049
|
-
Active = "active",
|
|
2050
|
-
Inactive = "inactive",
|
|
2051
|
-
Pending = "pending",
|
|
2052
|
-
Completed = "completed",
|
|
2053
|
-
Suspended = "suspended",
|
|
2054
|
-
Failed = "failed",
|
|
2055
|
-
Review = "review"
|
|
2084
|
+
declare class AXPFeatureDefinitionProviderContext {
|
|
2085
|
+
private readonly features;
|
|
2086
|
+
/**
|
|
2087
|
+
* Add a feature definition.
|
|
2088
|
+
* @param key Full feature key (ModuleName:FeatureKey format with colon separator)
|
|
2089
|
+
* @param definition Feature definition
|
|
2090
|
+
*/
|
|
2091
|
+
addFeature(key: string, definition: AXPModuleFeatureDefinition): void;
|
|
2092
|
+
/**
|
|
2093
|
+
* Get all feature definitions.
|
|
2094
|
+
*/
|
|
2095
|
+
getFeatures(): Map<string, AXPModuleFeatureDefinition>;
|
|
2056
2096
|
}
|
|
2057
2097
|
/**
|
|
2058
|
-
*
|
|
2059
|
-
*
|
|
2060
|
-
* Uses AXPStatusDefinition interface from status-definition.types.ts
|
|
2098
|
+
* Interface for feature definition providers.
|
|
2099
|
+
* Used to dynamically provide feature definitions for modules.
|
|
2061
2100
|
*/
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
readonly order: 1;
|
|
2070
|
-
readonly isActive: true;
|
|
2071
|
-
readonly isInitial: true;
|
|
2072
|
-
readonly isFinal: false;
|
|
2073
|
-
};
|
|
2074
|
-
readonly InProgress: {
|
|
2075
|
-
readonly name: AXPSystemStatusType.InProgress;
|
|
2076
|
-
readonly title: string;
|
|
2077
|
-
readonly icon: "fa-light fa-play";
|
|
2078
|
-
readonly color: "info";
|
|
2079
|
-
readonly description: string;
|
|
2080
|
-
readonly order: 2;
|
|
2081
|
-
readonly isActive: true;
|
|
2082
|
-
readonly isInitial: false;
|
|
2083
|
-
readonly isFinal: false;
|
|
2084
|
-
};
|
|
2085
|
-
readonly InReview: {
|
|
2086
|
-
readonly name: AXPSystemStatusType.InReview;
|
|
2087
|
-
readonly title: string;
|
|
2088
|
-
readonly icon: "fa-light fa-eye";
|
|
2089
|
-
readonly color: "info";
|
|
2090
|
-
readonly description: string;
|
|
2091
|
-
readonly order: 3;
|
|
2092
|
-
readonly isActive: true;
|
|
2093
|
-
readonly isInitial: false;
|
|
2094
|
-
readonly isFinal: false;
|
|
2095
|
-
};
|
|
2096
|
-
readonly Blocked: {
|
|
2097
|
-
readonly name: AXPSystemStatusType.Blocked;
|
|
2098
|
-
readonly title: string;
|
|
2099
|
-
readonly icon: "fa-light fa-ban";
|
|
2100
|
-
readonly color: "danger";
|
|
2101
|
-
readonly description: string;
|
|
2102
|
-
readonly order: 4;
|
|
2103
|
-
readonly isActive: true;
|
|
2104
|
-
readonly isInitial: false;
|
|
2105
|
-
readonly isFinal: false;
|
|
2106
|
-
};
|
|
2107
|
-
readonly Done: {
|
|
2108
|
-
readonly name: AXPSystemStatusType.Done;
|
|
2109
|
-
readonly title: string;
|
|
2110
|
-
readonly icon: "fa-light fa-check-circle";
|
|
2111
|
-
readonly color: "success";
|
|
2112
|
-
readonly description: string;
|
|
2113
|
-
readonly order: 5;
|
|
2114
|
-
readonly isActive: true;
|
|
2115
|
-
readonly isInitial: false;
|
|
2116
|
-
readonly isFinal: true;
|
|
2117
|
-
};
|
|
2118
|
-
readonly Cancelled: {
|
|
2119
|
-
readonly name: AXPSystemStatusType.Cancelled;
|
|
2120
|
-
readonly title: string;
|
|
2121
|
-
readonly icon: "fa-light fa-times-circle";
|
|
2122
|
-
readonly color: "neutral";
|
|
2123
|
-
readonly description: string;
|
|
2124
|
-
readonly order: 6;
|
|
2125
|
-
readonly isActive: true;
|
|
2126
|
-
readonly isInitial: false;
|
|
2127
|
-
readonly isFinal: true;
|
|
2128
|
-
};
|
|
2129
|
-
readonly Draft: {
|
|
2130
|
-
readonly name: AXPSystemStatusType.Draft;
|
|
2131
|
-
readonly title: string;
|
|
2132
|
-
readonly icon: "fa-light fa-file-pen";
|
|
2133
|
-
readonly color: "neutral";
|
|
2134
|
-
readonly description: string;
|
|
2135
|
-
readonly order: 1;
|
|
2136
|
-
readonly isActive: true;
|
|
2137
|
-
readonly isInitial: true;
|
|
2138
|
-
readonly isFinal: false;
|
|
2139
|
-
};
|
|
2140
|
-
readonly PendingReview: {
|
|
2141
|
-
readonly name: AXPSystemStatusType.PendingReview;
|
|
2142
|
-
readonly title: string;
|
|
2143
|
-
readonly icon: "fa-light fa-clock";
|
|
2144
|
-
readonly color: "warning";
|
|
2145
|
-
readonly description: string;
|
|
2146
|
-
readonly order: 2;
|
|
2147
|
-
readonly isActive: true;
|
|
2148
|
-
readonly isInitial: false;
|
|
2149
|
-
readonly isFinal: false;
|
|
2150
|
-
};
|
|
2151
|
-
readonly Approved: {
|
|
2152
|
-
readonly name: AXPSystemStatusType.Approved;
|
|
2153
|
-
readonly title: string;
|
|
2154
|
-
readonly icon: "fa-light fa-check-circle";
|
|
2155
|
-
readonly color: "success";
|
|
2156
|
-
readonly description: string;
|
|
2157
|
-
readonly order: 3;
|
|
2158
|
-
readonly isActive: true;
|
|
2159
|
-
readonly isInitial: false;
|
|
2160
|
-
readonly isFinal: false;
|
|
2161
|
-
};
|
|
2162
|
-
readonly Published: {
|
|
2163
|
-
readonly name: AXPSystemStatusType.Published;
|
|
2164
|
-
readonly title: string;
|
|
2165
|
-
readonly icon: "fa-light fa-globe";
|
|
2166
|
-
readonly color: "primary";
|
|
2167
|
-
readonly description: string;
|
|
2168
|
-
readonly order: 4;
|
|
2169
|
-
readonly isActive: true;
|
|
2170
|
-
readonly isInitial: false;
|
|
2171
|
-
readonly isFinal: false;
|
|
2172
|
-
};
|
|
2173
|
-
readonly Archived: {
|
|
2174
|
-
readonly name: AXPSystemStatusType.Archived;
|
|
2175
|
-
readonly title: string;
|
|
2176
|
-
readonly icon: "fa-light fa-archive";
|
|
2177
|
-
readonly color: "neutral";
|
|
2178
|
-
readonly description: string;
|
|
2179
|
-
readonly order: 5;
|
|
2180
|
-
readonly isActive: true;
|
|
2181
|
-
readonly isInitial: false;
|
|
2182
|
-
readonly isFinal: true;
|
|
2183
|
-
};
|
|
2184
|
-
readonly Rejected: {
|
|
2185
|
-
readonly name: AXPSystemStatusType.Rejected;
|
|
2186
|
-
readonly title: string;
|
|
2187
|
-
readonly icon: "fa-light fa-times-circle";
|
|
2188
|
-
readonly color: "danger";
|
|
2189
|
-
readonly description: string;
|
|
2190
|
-
readonly order: 6;
|
|
2191
|
-
readonly isActive: true;
|
|
2192
|
-
readonly isInitial: false;
|
|
2193
|
-
readonly isFinal: true;
|
|
2194
|
-
};
|
|
2195
|
-
readonly Active: {
|
|
2196
|
-
readonly name: AXPSystemStatusType.Active;
|
|
2197
|
-
readonly title: string;
|
|
2198
|
-
readonly icon: "fa-light fa-check-circle";
|
|
2199
|
-
readonly color: "success";
|
|
2200
|
-
readonly description: string;
|
|
2201
|
-
readonly order: 1;
|
|
2202
|
-
readonly isActive: true;
|
|
2203
|
-
readonly isInitial: false;
|
|
2204
|
-
readonly isFinal: false;
|
|
2205
|
-
};
|
|
2206
|
-
readonly Inactive: {
|
|
2207
|
-
readonly name: AXPSystemStatusType.Inactive;
|
|
2208
|
-
readonly title: string;
|
|
2209
|
-
readonly icon: "fa-light fa-circle";
|
|
2210
|
-
readonly color: "secondary";
|
|
2211
|
-
readonly description: string;
|
|
2212
|
-
readonly order: 2;
|
|
2213
|
-
readonly isActive: true;
|
|
2214
|
-
readonly isInitial: false;
|
|
2215
|
-
readonly isFinal: false;
|
|
2216
|
-
};
|
|
2217
|
-
readonly Pending: {
|
|
2218
|
-
readonly name: AXPSystemStatusType.Pending;
|
|
2219
|
-
readonly title: string;
|
|
2220
|
-
readonly icon: "fa-light fa-clock";
|
|
2221
|
-
readonly color: "warning";
|
|
2222
|
-
readonly description: string;
|
|
2223
|
-
readonly order: 1;
|
|
2224
|
-
readonly isActive: true;
|
|
2225
|
-
readonly isInitial: true;
|
|
2226
|
-
readonly isFinal: false;
|
|
2227
|
-
};
|
|
2228
|
-
readonly Completed: {
|
|
2229
|
-
readonly name: AXPSystemStatusType.Completed;
|
|
2230
|
-
readonly title: string;
|
|
2231
|
-
readonly icon: "fa-light fa-check-circle";
|
|
2232
|
-
readonly color: "success";
|
|
2233
|
-
readonly description: string;
|
|
2234
|
-
readonly order: 10;
|
|
2235
|
-
readonly isActive: true;
|
|
2236
|
-
readonly isInitial: false;
|
|
2237
|
-
readonly isFinal: true;
|
|
2238
|
-
};
|
|
2239
|
-
readonly Suspended: {
|
|
2240
|
-
readonly name: AXPSystemStatusType.Suspended;
|
|
2241
|
-
readonly title: string;
|
|
2242
|
-
readonly icon: "fa-light fa-pause-circle";
|
|
2243
|
-
readonly color: "neutral";
|
|
2244
|
-
readonly description: string;
|
|
2245
|
-
readonly order: 5;
|
|
2246
|
-
readonly isActive: true;
|
|
2247
|
-
readonly isInitial: false;
|
|
2248
|
-
readonly isFinal: false;
|
|
2249
|
-
};
|
|
2250
|
-
readonly Failed: {
|
|
2251
|
-
readonly name: AXPSystemStatusType.Failed;
|
|
2252
|
-
readonly title: string;
|
|
2253
|
-
readonly icon: "fa-light fa-xmark-circle";
|
|
2254
|
-
readonly color: "danger";
|
|
2255
|
-
readonly description: string;
|
|
2256
|
-
readonly order: 10;
|
|
2257
|
-
readonly isActive: true;
|
|
2258
|
-
readonly isInitial: false;
|
|
2259
|
-
readonly isFinal: true;
|
|
2260
|
-
};
|
|
2261
|
-
readonly Review: {
|
|
2262
|
-
readonly name: AXPSystemStatusType.Review;
|
|
2263
|
-
readonly title: string;
|
|
2264
|
-
readonly icon: "fa-light fa-eye";
|
|
2265
|
-
readonly color: "info";
|
|
2266
|
-
readonly description: string;
|
|
2267
|
-
readonly order: 3;
|
|
2268
|
-
readonly isActive: true;
|
|
2269
|
-
};
|
|
2270
|
-
}>;
|
|
2101
|
+
interface AXPFeatureDefinitionProvider {
|
|
2102
|
+
/**
|
|
2103
|
+
* Provide feature definitions.
|
|
2104
|
+
* @param context Context for adding feature definitions
|
|
2105
|
+
*/
|
|
2106
|
+
provide(context: AXPFeatureDefinitionProviderContext): Promise<void>;
|
|
2107
|
+
}
|
|
2271
2108
|
/**
|
|
2272
|
-
*
|
|
2273
|
-
* @param type - Status type
|
|
2274
|
-
* @returns System status definition or undefined
|
|
2109
|
+
* Injection token for feature definition providers.
|
|
2275
2110
|
*/
|
|
2276
|
-
declare
|
|
2111
|
+
declare const AXP_FEATURE_DEFINITION_PROVIDER: InjectionToken<AXPFeatureDefinitionProvider[]>;
|
|
2112
|
+
|
|
2277
2113
|
/**
|
|
2278
|
-
*
|
|
2279
|
-
*
|
|
2280
|
-
* @param statusType - Status type string
|
|
2281
|
-
* @returns Color and icon for the status
|
|
2114
|
+
* Session service interface for module provider operations.
|
|
2115
|
+
* Implementation: @acorex/platform/auth
|
|
2282
2116
|
*/
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2117
|
+
interface AXPISessionService {
|
|
2118
|
+
isLoading$: any;
|
|
2119
|
+
status$: any;
|
|
2120
|
+
tenant: any | null;
|
|
2121
|
+
application: any | null;
|
|
2122
|
+
user: any | null;
|
|
2123
|
+
}
|
|
2287
2124
|
/**
|
|
2288
|
-
*
|
|
2289
|
-
*
|
|
2290
|
-
* @param statusType - Status type string
|
|
2291
|
-
* @returns Complete status information as AXPStatusDefinition
|
|
2125
|
+
* Injection token for session service.
|
|
2126
|
+
* Implementation: @acorex/platform/auth
|
|
2292
2127
|
*/
|
|
2293
|
-
declare
|
|
2128
|
+
declare const AXP_SESSION_SERVICE: InjectionToken<AXPISessionService>;
|
|
2294
2129
|
/**
|
|
2295
|
-
*
|
|
2296
|
-
*
|
|
2297
|
-
* @param overrides - Optional overrides for the status definition
|
|
2298
|
-
* @returns AXPStatusDefinition
|
|
2130
|
+
* Injection token for module manifest providers.
|
|
2131
|
+
* Modules register their manifest providers using this token.
|
|
2299
2132
|
*/
|
|
2300
|
-
declare
|
|
2133
|
+
declare const AXP_MODULE_MANIFEST_PROVIDER: InjectionToken<AXPModuleManifest[]>;
|
|
2301
2134
|
|
|
2302
2135
|
/**
|
|
2303
2136
|
* Represents a tag with text, color, and metadata
|
|
@@ -2563,11 +2396,47 @@ declare function getEnumValues(enumType: any): {
|
|
|
2563
2396
|
title: string;
|
|
2564
2397
|
}[];
|
|
2565
2398
|
|
|
2399
|
+
/**
|
|
2400
|
+
* Creates a provider instance within an injection context.
|
|
2401
|
+
* Handles dynamic import, injector resolution, and provider instantiation.
|
|
2402
|
+
*
|
|
2403
|
+
* @param loader - Function that returns a promise resolving to the provider class
|
|
2404
|
+
* @returns Promise that resolves to the provider instance
|
|
2405
|
+
*
|
|
2406
|
+
* @example
|
|
2407
|
+
* ```typescript
|
|
2408
|
+
* useFactory: () => createProviderWithInjectionContext(() =>
|
|
2409
|
+
* import('./settings.provider').then(m => m.AXMSettingProvider)
|
|
2410
|
+
* )
|
|
2411
|
+
* ```
|
|
2412
|
+
*/
|
|
2413
|
+
declare function createProviderWithInjectionContext<T>(loader: () => Promise<new () => T>): Promise<T>;
|
|
2414
|
+
/**
|
|
2415
|
+
* Creates a provider configuration for lazy-loaded providers with injection context.
|
|
2416
|
+
* Simplifies provider registration in NgModule providers array.
|
|
2417
|
+
*
|
|
2418
|
+
* @param token - The injection token to provide
|
|
2419
|
+
* @param loader - Function that returns a promise resolving to the provider class
|
|
2420
|
+
* @param multi - Whether the provider is multi-provider (defaults to true)
|
|
2421
|
+
* @returns Provider configuration object
|
|
2422
|
+
*
|
|
2423
|
+
* @example
|
|
2424
|
+
* ```typescript
|
|
2425
|
+
* providers: [
|
|
2426
|
+
* provideLazyProvider(
|
|
2427
|
+
* AXP_SETTING_DEFINITION_PROVIDER,
|
|
2428
|
+
* () => import('./settings.provider').then(m => m.AXMSettingProvider)
|
|
2429
|
+
* )
|
|
2430
|
+
* ]
|
|
2431
|
+
* ```
|
|
2432
|
+
*/
|
|
2433
|
+
declare function provideLazyProvider<TProvider>(token: InjectionToken<any>, loader: () => Promise<new () => TProvider>, multi?: boolean): Provider;
|
|
2434
|
+
|
|
2566
2435
|
declare function extractTextFromHtml(value: string): string;
|
|
2567
2436
|
/**
|
|
2568
2437
|
* Generate kebab-case group name from title
|
|
2569
2438
|
*/
|
|
2570
2439
|
declare function generateKebabCase(title: string): string;
|
|
2571
2440
|
|
|
2572
|
-
export { AXHighlightService, AXPActivityLogProvider, AXPActivityLogService, AXPAppStartUpProvider, AXPAppStartUpService, AXPBroadcastEventService, AXPColorPaletteProvider, AXPColorPaletteService, AXPComponentLogoConfig, AXPContentCheckerDirective, AXPContextChangeEvent, AXPContextStore, AXPCountdownPipe, AXPDataGenerator, AXPDataSourceDefinitionProviderService, AXPDblClickDirective, AXPDefaultColorPalettesProvider, AXPDeviceService, AXPDeviceType, AXPDistributedEventListenerService, AXPElementDataDirective, AXPExportTemplateToken, AXPExpressionEvaluatorScopeProviderContext, AXPExpressionEvaluatorScopeProviderService, AXPExpressionEvaluatorService, AXPGridLayoutDirective, AXPHookService, AXPImageUrlLogoConfig,
|
|
2573
|
-
export type { AXPActionMenuItem, AXPActivityLog, AXPActivityLogChange, AXPApplicationUserReference, AXPBackButton, AXPBadge, AXPBreadcrumbItem, AXPCategorizedEntity, AXPCategorizedEntityDto, AXPCategoryEntity, AXPCategoryEntityWithItems, AXPColorPalette, AXPColorPaletteFilterOptions, AXPColumnQuery, AXPCommandMessage, AXPContent, AXPContentDirection, AXPContentType, AXPContextData, AXPContextState, AXPDataSource, AXPDataSourceDataFieldDefinition, AXPDataSourceDefinition, AXPDataSourceDefinitionProvider, AXPDataType, AXPDistributedEventListenerProvider, AXPDistributedEventListenerProviderToken, AXPEntityReference, AXPEqualValidationRule, AXPExecuteCommand, AXPExecuteCommandResult, AXPExportCsvOptions, AXPExportExcelOptions, AXPExportOptions, AXPExportPdfOptions, AXPExportPrintOptions, AXPExpression, AXPExpressionEvaluatorScope, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviders, AXPFileListItem, AXPFileSource, AXPFileStatus,
|
|
2441
|
+
export { AXFullscreenDirective, AXHighlightService, AXPActivityLogProvider, AXPActivityLogService, AXPAppStartUpProvider, AXPAppStartUpService, AXPBroadcastEventService, AXPColorPaletteProvider, AXPColorPaletteService, AXPComponentLogoConfig, AXPContentCheckerDirective, AXPContextChangeEvent, AXPContextStore, AXPCountdownPipe, AXPDataGenerator, AXPDataSourceDefinitionProviderService, AXPDblClickDirective, AXPDefaultColorPalettesProvider, AXPDeviceService, AXPDeviceType, AXPDistributedEventListenerService, AXPElementDataDirective, AXPExportTemplateToken, AXPExpressionEvaluatorScopeProviderContext, AXPExpressionEvaluatorScopeProviderService, AXPExpressionEvaluatorService, AXPFeatureDefinitionProviderContext, AXPGridLayoutDirective, AXPHookService, AXPIconLogoConfig, AXPImageUrlLogoConfig, AXPModuleManifestModule, AXPModuleManifestRegistry, AXPPlatformScope, AXPScreenSize, AXPSystemActionType, AXPSystemActions, AXPTagProvider, AXPTagService, AXP_ACTIVITY_LOG_PROVIDER, AXP_COLOR_PALETTE_PROVIDER, AXP_DATASOURCE_DEFINITION_PROVIDER, AXP_DISTRIBUTED_EVENT_LISTENER_PROVIDER, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, AXP_FEATURE_DEFINITION_PROVIDER, AXP_MODULE_MANIFEST_PROVIDER, AXP_SESSION_SERVICE, AXP_TAG_PROVIDER, applyFilterArray, applyPagination, applyQueryArray, applySortArray, applySystemActionDefault, cleanDeep, createProviderWithInjectionContext, extractNestedFieldsWildcard, extractTextFromHtml, extractValue, generateKebabCase, getActionButton, getChangedPaths, getDetailedChanges, getEnumValues, getNestedKeys, getSmart, getSystemActions, objectKeyValueTransforms, provideLazyProvider, resolveActionLook, resolvePlatformScopeKey, resolvePlatformScopeName, setSmart };
|
|
2442
|
+
export type { AXPActionMenuItem, AXPActivityLog, AXPActivityLogChange, AXPApplicationUserReference, AXPBackButton, AXPBadge, AXPBreadcrumbItem, AXPCategorizedEntity, AXPCategorizedEntityDto, AXPCategoryEntity, AXPCategoryEntityWithItems, AXPColorPalette, AXPColorPaletteFilterOptions, AXPColumnQuery, AXPCommandMessage, AXPContent, AXPContentDirection, AXPContentType, AXPContextData, AXPContextState, AXPDataSource, AXPDataSourceDataFieldDefinition, AXPDataSourceDefinition, AXPDataSourceDefinitionProvider, AXPDataType, AXPDistributedEventListenerProvider, AXPDistributedEventListenerProviderToken, AXPEntityReference, AXPEqualValidationRule, AXPExecuteCommand, AXPExecuteCommandResult, AXPExportCsvOptions, AXPExportExcelOptions, AXPExportOptions, AXPExportPdfOptions, AXPExportPrintOptions, AXPExpression, AXPExpressionEvaluatorScope, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviders, AXPFeatureDefinition, AXPFeatureDefinitionProvider, AXPFeatureName, AXPFileListItem, AXPFileSource, AXPFileStatus, AXPFilterClause, AXPFilterDefinition, AXPFilterQuery, AXPFlowDirection, AXPGridLayoutOptions, AXPGridPlacement, AXPISessionService, AXPLogoConfig, AXPMaxLengthValidationRule, AXPMetaData, AXPMiddlewareErrorResponse, AXPMinLengthValidationRule, AXPModuleFeatureDefinition, AXPModuleFeatureDefinitionWithKey, AXPModuleManifest, AXPNavigateActionCommand, AXPNavigateActionOptions, AXPOptionsData, AXPPagedListResult, AXPPartialNested, AXPPlatformScopeKey, AXPQueryFetchResult, AXPQueryRequest, AXPReqexValidationRule, AXPRequiredValidationRule, AXPSortDefinition, AXPSortQuery, AXPStartUpTask, AXPStringValidationRules, AXPSystemAction, AXPTag, AXPTagFilterOptions, AXPUserReference, AXPValidationRule, AXPValidationRules, AXPValueTransformerFunction, AXPValueTransformerFunctions, AXPValueUnit, AXPValueUnits, AXPViewBlockDefinition, AXPViewDefinition, AXPViewFieldDefinition, AXPViewQuery, AXPWidgetTrigger, AXPWidgetTriggers };
|