@acorex-platform/framework-client 0.0.10
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/README.md +7 -0
- package/auth/README.md +3 -0
- package/common/README.md +3 -0
- package/core/README.md +4 -0
- package/fesm2022/acorex-platform-framework-client-auth.mjs +1383 -0
- package/fesm2022/acorex-platform-framework-client-auth.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-common-common-settings.provider-CbzOYCnI.mjs +190 -0
- package/fesm2022/acorex-platform-framework-client-common-common-settings.provider-CbzOYCnI.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-common.mjs +9467 -0
- package/fesm2022/acorex-platform-framework-client-common.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-core.mjs +4655 -0
- package/fesm2022/acorex-platform-framework-client-core.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-domain.mjs +3189 -0
- package/fesm2022/acorex-platform-framework-client-domain.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-builder.mjs +3439 -0
- package/fesm2022/acorex-platform-framework-client-layout-builder.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CWVU3wXL.mjs +134 -0
- package/fesm2022/acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CWVU3wXL.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-components.mjs +9777 -0
- package/fesm2022/acorex-platform-framework-client-layout-components.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-designer.mjs +2799 -0
- package/fesm2022/acorex-platform-framework-client-layout-designer.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-entity-attachments-page.component-CxBxxpmA.mjs +376 -0
- package/fesm2022/acorex-platform-framework-client-layout-entity-attachments-page.component-CxBxxpmA.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-entity-file-list-popup.component-l0JAHKIH.mjs +100 -0
- package/fesm2022/acorex-platform-framework-client-layout-entity-file-list-popup.component-l0JAHKIH.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-entity.mjs +26299 -0
- package/fesm2022/acorex-platform-framework-client-layout-entity.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-views.mjs +2960 -0
- package/fesm2022/acorex-platform-framework-client-layout-views.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs +4711 -0
- package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-button-widget-designer.component-CpkWwygb.mjs +72 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-button-widget-designer.component-CpkWwygb.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-image-preview.popup-C_EPAvCU.mjs +29 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-image-preview.popup-C_EPAvCU.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-page-widget-designer.component-CmtTq2Mt.mjs +172 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-page-widget-designer.component-CmtTq2Mt.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-DSx0E3NV.mjs +513 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-DSx0E3NV.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-DdfcGV1C.mjs +274 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-DdfcGV1C.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-CntopmDS.mjs +64 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-tabular-data-view-popup.component-CntopmDS.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-B5kSWxGk.mjs +34 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-B5kSWxGk.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs +28553 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-native.mjs +155 -0
- package/fesm2022/acorex-platform-framework-client-native.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-runtime.mjs +911 -0
- package/fesm2022/acorex-platform-framework-client-runtime.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-create-view.component-DnTHwsDJ.mjs +160 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-create-view.component-DnTHwsDJ.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BpR9g6QS.mjs +121 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-modify-view.component-BpR9g6QS.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-single-view.component-D1a7UI71.mjs +236 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-single-view.component-D1a7UI71.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-401.component-D--_MIar.mjs +48 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-401.component-D--_MIar.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-404.component-Byyqk8pH.mjs +42 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-404.component-Byyqk8pH.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-DR6G8gPC.mjs +19 -0
- package/fesm2022/acorex-platform-framework-client-themes-default-error-offline.component-DR6G8gPC.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default.mjs +4160 -0
- package/fesm2022/acorex-platform-framework-client-themes-default.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-icon-chooser-column.component-CXSGiTCK.mjs +55 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-icon-chooser-column.component-CXSGiTCK.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-icon-chooser-view.component-BY5clQ1J.mjs +57 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-icon-chooser-view.component-BY5clQ1J.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-settings.provider-DEL2YOTP.mjs +234 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-settings.provider-DEL2YOTP.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-BXl8u4Yp.mjs +94 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-theme-color-chooser-column.component-BXl8u4Yp.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-i2sOOkVj.mjs +86 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared-theme-color-chooser-view.component-i2sOOkVj.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared.mjs +2375 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-workflow.mjs +2836 -0
- package/fesm2022/acorex-platform-framework-client-workflow.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client.mjs +6 -0
- package/fesm2022/acorex-platform-framework-client.mjs.map +1 -0
- package/layout/builder/README.md +1578 -0
- package/layout/components/README.md +3 -0
- package/layout/designer/README.md +4 -0
- package/layout/entity/README.md +4 -0
- package/layout/views/README.md +3 -0
- package/layout/widget-core/README.md +4 -0
- package/layout/widgets/README.md +3 -0
- package/native/README.md +4 -0
- package/package.json +98 -0
- package/runtime/README.md +3 -0
- package/themes/default/README.md +3 -0
- package/themes/shared/README.md +3 -0
- package/types/acorex-platform-framework-client-auth.d.ts +690 -0
- package/types/acorex-platform-framework-client-common.d.ts +3287 -0
- package/types/acorex-platform-framework-client-core.d.ts +1849 -0
- package/types/acorex-platform-framework-client-domain.d.ts +1968 -0
- package/types/acorex-platform-framework-client-layout-builder.d.ts +1058 -0
- package/types/acorex-platform-framework-client-layout-components.d.ts +3362 -0
- package/types/acorex-platform-framework-client-layout-designer.d.ts +501 -0
- package/types/acorex-platform-framework-client-layout-entity.d.ts +4374 -0
- package/types/acorex-platform-framework-client-layout-views.d.ts +975 -0
- package/types/acorex-platform-framework-client-layout-widget-core.d.ts +1080 -0
- package/types/acorex-platform-framework-client-layout-widgets.d.ts +5263 -0
- package/types/acorex-platform-framework-client-native.d.ts +28 -0
- package/types/acorex-platform-framework-client-runtime.d.ts +301 -0
- package/types/acorex-platform-framework-client-themes-default.d.ts +889 -0
- package/types/acorex-platform-framework-client-themes-shared.d.ts +202 -0
- package/types/acorex-platform-framework-client-workflow.d.ts +1345 -0
- package/types/acorex-platform-framework-client.d.ts +2 -0
- package/workflow/README.md +4 -0
|
@@ -0,0 +1,1849 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, Type, OnInit, ViewContainerRef, ModuleWithProviders, ElementRef, EventEmitter, OnChanges, Renderer2, SimpleChanges, OnDestroy, DestroyRef, Injector, PipeTransform, Provider } from '@angular/core';
|
|
3
|
+
import * as _acorex_platform_framework_shared_core from '@acorex-platform/framework-shared/core';
|
|
4
|
+
import { AXPApplicationUserReference, AXPEntityReference, AXPSystemActionType, AXPMultiLanguageString, AXPOptionsData, AXPFilterDefinition, AXPMaybePromise, AXPContextData, AXPContextState, AXPContextChangeEvent, AXPContextUpdateOptions, AXPContextPatchOptions, AXPGridLayoutOptions, AXPKeyboardShortcutDirectionBehavior, AXPKeyboardShortcutChord, AXPKeyboardShortcut, AXPResolvedKeyboardShortcut, AXPKeyboardShortcutRegistration, AXPKeyboardShortcutHelpEntry, AXPActionMenuItem } from '@acorex-platform/framework-shared/core';
|
|
5
|
+
import { AXDataSource, AXDataSourceFilterOption, AXDataSourceQuery, AXDataSourceCallbackResult, AXDataSourceSortOption } from '@acorex/cdk/common';
|
|
6
|
+
import * as _ngrx_signals from '@ngrx/signals';
|
|
7
|
+
import { Observable } from 'rxjs';
|
|
8
|
+
import { AXFormatService } from '@acorex/core/format';
|
|
9
|
+
import { NavigationExtras } from '@angular/router';
|
|
10
|
+
|
|
11
|
+
interface AXPActivityLogChange {
|
|
12
|
+
type: AXPSystemActionType;
|
|
13
|
+
description: string;
|
|
14
|
+
/** I18n key for field label. When set with actionKey, used for translated display. */
|
|
15
|
+
fieldKey?: string;
|
|
16
|
+
/** Params for fieldKey translation (e.g. for unknown-field with {{name}}). */
|
|
17
|
+
fieldKeyParams?: Record<string, string>;
|
|
18
|
+
/** I18n key for action (e.g. @activity-log:changes.replaced). When set with fieldKey, overrides description. */
|
|
19
|
+
actionKey?: string;
|
|
20
|
+
oldValue?: unknown;
|
|
21
|
+
newValue?: unknown;
|
|
22
|
+
/** Short human-readable summary for Change History (e.g. "Updated from 'X' to 'Y'"). Used when layout is present. */
|
|
23
|
+
summary?: string;
|
|
24
|
+
/** Custom layout (AXPWidgetNode) for Change History. When set, rendered via AXPLayoutRenderer instead of default fieldKey/actionKey text. */
|
|
25
|
+
layout?: unknown;
|
|
26
|
+
}
|
|
27
|
+
interface AXPActivityLog {
|
|
28
|
+
id: string;
|
|
29
|
+
title: string;
|
|
30
|
+
date: Date;
|
|
31
|
+
user: AXPApplicationUserReference;
|
|
32
|
+
reference: AXPEntityReference;
|
|
33
|
+
changeType: AXPSystemActionType.Create | AXPSystemActionType.Update | AXPSystemActionType.Delete;
|
|
34
|
+
data: any;
|
|
35
|
+
changes: AXPActivityLogChange[];
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare abstract class AXPActivityLogProvider {
|
|
39
|
+
abstract getHistory(refId: string, refType: string, options?: {
|
|
40
|
+
from?: Date;
|
|
41
|
+
to?: Date;
|
|
42
|
+
limit?: number;
|
|
43
|
+
offset?: number;
|
|
44
|
+
}): Promise<AXPActivityLog[]>;
|
|
45
|
+
abstract getHistoryByIds(refId: string, refType: string, ids: string[]): Promise<AXPActivityLog[]>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare const AXP_ACTIVITY_LOG_PROVIDER: InjectionToken<AXPActivityLogProvider[]>;
|
|
49
|
+
declare class AXPActivityLogService {
|
|
50
|
+
private providers;
|
|
51
|
+
getHistory(refId: string, refType: string, options?: {
|
|
52
|
+
from?: Date;
|
|
53
|
+
to?: Date;
|
|
54
|
+
limit?: number;
|
|
55
|
+
offset?: number;
|
|
56
|
+
}): Promise<AXPActivityLog[]>;
|
|
57
|
+
getHistoryByIds(refId: string, refType: string, ids: string[]): Promise<AXPActivityLog[]>;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPActivityLogService, never>;
|
|
59
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPActivityLogService>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Stable catalog scope registered by a module provider (integration contract).
|
|
64
|
+
*/
|
|
65
|
+
interface AXPCatalogScopeDefinition {
|
|
66
|
+
/** Unique key, e.g. `human-capital-management.hr`. */
|
|
67
|
+
name: string;
|
|
68
|
+
title: string | AXPMultiLanguageString;
|
|
69
|
+
description?: string | AXPMultiLanguageString;
|
|
70
|
+
/**
|
|
71
|
+
* Entity refs filtered by this scope elsewhere (lookups, workflow selectors, etc.).
|
|
72
|
+
* Does not restrict which scopes appear on the owning entity's catalog-scope picker.
|
|
73
|
+
*/
|
|
74
|
+
targets: string[];
|
|
75
|
+
icon?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Platform utility classes applied to the whole scope badge (surface, on-surface, border).
|
|
78
|
+
* Example: `ax-primary-surface ax-text-on-primary-surface ax-border-border-primary-surface`.
|
|
79
|
+
*/
|
|
80
|
+
cssClass?: string;
|
|
81
|
+
order?: number;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
interface AXPCatalogScopeDefinitionProvider {
|
|
85
|
+
items(): Promise<AXPCatalogScopeDefinition[]>;
|
|
86
|
+
}
|
|
87
|
+
declare const AXP_CATALOG_SCOPE_DEFINITION_PROVIDER: InjectionToken<AXPCatalogScopeDefinitionProvider[]>;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Collects {@link AXPCatalogScopeDefinition} entries from all registered providers.
|
|
91
|
+
*/
|
|
92
|
+
declare class AXPCatalogScopeDefinitionProviderService {
|
|
93
|
+
private readonly providers;
|
|
94
|
+
private readonly translation;
|
|
95
|
+
items(): Promise<AXPCatalogScopeDefinition[]>;
|
|
96
|
+
get(name: string): Promise<AXPCatalogScopeDefinition | undefined>;
|
|
97
|
+
/**
|
|
98
|
+
* Scopes applicable to the given entity ref (`Module.Entity`).
|
|
99
|
+
*/
|
|
100
|
+
byTarget(entityRef: string): Promise<AXPCatalogScopeDefinition[]>;
|
|
101
|
+
/**
|
|
102
|
+
* Resolves display title for a scope key (active locale).
|
|
103
|
+
*/
|
|
104
|
+
resolveTitle(definition: AXPCatalogScopeDefinition): string;
|
|
105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPCatalogScopeDefinitionProviderService, never>;
|
|
106
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPCatalogScopeDefinitionProviderService>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
interface AXPDataSourceDataFieldDefinition {
|
|
110
|
+
name: string;
|
|
111
|
+
title: string;
|
|
112
|
+
datatype: string;
|
|
113
|
+
type: string;
|
|
114
|
+
options?: AXPOptionsData;
|
|
115
|
+
}
|
|
116
|
+
type AXPLazyDataSource<T = unknown> = AXPMaybePromise<AXDataSource<T>>;
|
|
117
|
+
type AXPDataSourceArray<T = unknown> = AXPMaybePromise<Array<T>>;
|
|
118
|
+
type AXPDataSourceValue<T = unknown> = AXPMaybePromise<T>;
|
|
119
|
+
type AXPDataSourceType<T = any> = AXPLazyDataSource<T> | AXPDataSourceArray<T> | AXPDataSourceValue<T>;
|
|
120
|
+
type AXPDataSourceSample<T = any> = AXPDataSourceArray<T> | AXPDataSourceValue<T>;
|
|
121
|
+
interface AXPDataSourceDefinition<T = any> {
|
|
122
|
+
name: string;
|
|
123
|
+
title: string;
|
|
124
|
+
valueField?: {
|
|
125
|
+
name: string;
|
|
126
|
+
title: string;
|
|
127
|
+
};
|
|
128
|
+
textField?: {
|
|
129
|
+
name: string;
|
|
130
|
+
title: string;
|
|
131
|
+
};
|
|
132
|
+
columns: AXPDataSourceDataFieldDefinition[];
|
|
133
|
+
filters: AXPFilterDefinition[];
|
|
134
|
+
samples?: AXPDataSourceSample<T>;
|
|
135
|
+
visible?: boolean;
|
|
136
|
+
source: () => AXPDataSourceType<T>;
|
|
137
|
+
}
|
|
138
|
+
interface AXPDataSourceDefinitionProvider {
|
|
139
|
+
items(): Promise<AXPDataSourceDefinition[]>;
|
|
140
|
+
}
|
|
141
|
+
declare const AXP_DATASOURCE_DEFINITION_PROVIDER: InjectionToken<AXPDataSourceDefinitionProvider[]>;
|
|
142
|
+
declare class AXPDataSourceDefinitionProviderService implements AXPDataSourceDefinitionProvider {
|
|
143
|
+
private providers;
|
|
144
|
+
items(): Promise<AXPDataSourceDefinition[]>;
|
|
145
|
+
get<T = any>(name: string): Promise<AXPDataSourceDefinition<T> | undefined>;
|
|
146
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPDataSourceDefinitionProviderService, never>;
|
|
147
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPDataSourceDefinitionProviderService>;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Registered catalog scopes for select / selection-list widgets via {@link AXPPlatformCoreDataSourceKeys.CatalogScopes}.
|
|
152
|
+
*/
|
|
153
|
+
declare class AXPCatalogScopeDefinitionsDataSourceDefinition implements AXPDataSourceDefinitionProvider {
|
|
154
|
+
private readonly catalogScopeRegistry;
|
|
155
|
+
items(): Promise<AXPDataSourceDefinition[]>;
|
|
156
|
+
private readTargetFilter;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Represents a color palette with a unique identifier and collection of colors
|
|
161
|
+
*/
|
|
162
|
+
interface AXPColorPalette {
|
|
163
|
+
/**
|
|
164
|
+
* Unique identifier for the palette
|
|
165
|
+
* @example 'material-design', 'brand-colors', 'pastel-theme'
|
|
166
|
+
*/
|
|
167
|
+
name: string;
|
|
168
|
+
/**
|
|
169
|
+
* Display title for the palette
|
|
170
|
+
* @example 'Material Design', 'Brand Colors', 'Pastel Theme'
|
|
171
|
+
*/
|
|
172
|
+
title: string;
|
|
173
|
+
/**
|
|
174
|
+
* Array of color codes in any valid CSS color format
|
|
175
|
+
* @example ['#FF6B6B', '#4ECDC4', 'rgb(255, 107, 107)']
|
|
176
|
+
*/
|
|
177
|
+
colors: string[];
|
|
178
|
+
/**
|
|
179
|
+
* Optional description of the palette
|
|
180
|
+
*/
|
|
181
|
+
description?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Optional category for grouping palettes
|
|
184
|
+
* @example 'brand', 'material', 'theme', 'custom'
|
|
185
|
+
*/
|
|
186
|
+
category?: string;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Options for filtering color palettes
|
|
190
|
+
*/
|
|
191
|
+
interface AXPColorPaletteFilterOptions {
|
|
192
|
+
category?: string;
|
|
193
|
+
search?: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Abstract class for color palette providers
|
|
198
|
+
* Implement this to provide palettes from different sources (system, app, module, etc.)
|
|
199
|
+
*/
|
|
200
|
+
declare abstract class AXPColorPaletteProvider {
|
|
201
|
+
/**
|
|
202
|
+
* Unique name for this provider (e.g., 'system', 'app', 'module')
|
|
203
|
+
*/
|
|
204
|
+
abstract name: string;
|
|
205
|
+
/**
|
|
206
|
+
* Provide color palettes from this source
|
|
207
|
+
* @returns Promise of palettes
|
|
208
|
+
*/
|
|
209
|
+
abstract provide(): Promise<AXPColorPalette[]>;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Injection token for color palette providers
|
|
213
|
+
* Use this to register multiple palette providers
|
|
214
|
+
*/
|
|
215
|
+
declare const AXP_COLOR_PALETTE_PROVIDER: InjectionToken<AXPColorPaletteProvider[]>;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Service for managing color palettes from multiple providers
|
|
219
|
+
* Aggregates palettes from all registered providers
|
|
220
|
+
*/
|
|
221
|
+
declare class AXPColorPaletteService {
|
|
222
|
+
private providers;
|
|
223
|
+
private cache;
|
|
224
|
+
/**
|
|
225
|
+
* Get all palettes from all providers
|
|
226
|
+
* @param options Filter options
|
|
227
|
+
* @returns Promise of palettes
|
|
228
|
+
*/
|
|
229
|
+
getPalettes(options?: AXPColorPaletteFilterOptions): Promise<AXPColorPalette[]>;
|
|
230
|
+
/**
|
|
231
|
+
* Get a palette by name
|
|
232
|
+
* @param name The unique name of the palette
|
|
233
|
+
* @returns Promise of palette or undefined if not found
|
|
234
|
+
*/
|
|
235
|
+
getPalette(name: string): Promise<AXPColorPalette | undefined>;
|
|
236
|
+
/**
|
|
237
|
+
* Get palettes by category
|
|
238
|
+
* @param category The category to filter by
|
|
239
|
+
* @returns Promise of palettes in the specified category
|
|
240
|
+
*/
|
|
241
|
+
getByCategory(category: string): Promise<AXPColorPalette[]>;
|
|
242
|
+
/**
|
|
243
|
+
* Check if a palette exists
|
|
244
|
+
* @param name The unique name of the palette
|
|
245
|
+
* @returns Promise of true if the palette exists
|
|
246
|
+
*/
|
|
247
|
+
has(name: string): Promise<boolean>;
|
|
248
|
+
/**
|
|
249
|
+
* Reload palettes from all providers
|
|
250
|
+
*/
|
|
251
|
+
reload(): Promise<void>;
|
|
252
|
+
/**
|
|
253
|
+
* Get the default palette (material-design) or fallback colors
|
|
254
|
+
* @returns Promise of default palette, never returns undefined
|
|
255
|
+
*/
|
|
256
|
+
getDefaultPalette(): Promise<AXPColorPalette>;
|
|
257
|
+
/**
|
|
258
|
+
* Load palettes from all providers
|
|
259
|
+
*/
|
|
260
|
+
private loadPalettes;
|
|
261
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPColorPaletteService, never>;
|
|
262
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPColorPaletteService>;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Default system color palette provider
|
|
267
|
+
* Provides built-in color palettes
|
|
268
|
+
*/
|
|
269
|
+
declare class AXPDefaultColorPalettesProvider extends AXPColorPaletteProvider {
|
|
270
|
+
name: string;
|
|
271
|
+
provide(): Promise<AXPColorPalette[]>;
|
|
272
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPDefaultColorPalettesProvider, never>;
|
|
273
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPDefaultColorPalettesProvider>;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Column width value can be a number (converted to pixels) or a string with any CSS unit
|
|
278
|
+
* @example 150 (becomes '150px'), '300px', '50%', '2rem', '20ch'
|
|
279
|
+
*/
|
|
280
|
+
type ColumnWidthValue = string | number;
|
|
281
|
+
/**
|
|
282
|
+
* Matcher for column name - can be exact string match or RegExp pattern
|
|
283
|
+
* @example 'title', /^user/, /.*name$/i
|
|
284
|
+
*/
|
|
285
|
+
type ColumnNameMatcher = string | RegExp;
|
|
286
|
+
/**
|
|
287
|
+
* Matcher for widget type - can be exact string match or RegExp pattern (case-insensitive)
|
|
288
|
+
* @example 'text-box', /^date/, /.*editor$/i
|
|
289
|
+
*/
|
|
290
|
+
type WidgetTypeMatcher = string | RegExp;
|
|
291
|
+
/**
|
|
292
|
+
* Defines a single width matching rule
|
|
293
|
+
*/
|
|
294
|
+
interface AXPColumnWidthMatcher {
|
|
295
|
+
/**
|
|
296
|
+
* Match by column name (exact string or RegExp pattern)
|
|
297
|
+
* Takes precedence over widgetType matching
|
|
298
|
+
* @example 'title', /^user/, /.*name$/i
|
|
299
|
+
*/
|
|
300
|
+
name?: ColumnNameMatcher;
|
|
301
|
+
/**
|
|
302
|
+
* Match by widget type (exact string or RegExp pattern, case-insensitive)
|
|
303
|
+
* Used as fallback when name doesn't match
|
|
304
|
+
* @example 'text-box', /^date/, /.*editor$/i
|
|
305
|
+
*/
|
|
306
|
+
widgetType?: WidgetTypeMatcher;
|
|
307
|
+
/**
|
|
308
|
+
* Width value to apply if this matcher matches
|
|
309
|
+
* Numbers are converted to pixels (e.g., 150 -> '150px')
|
|
310
|
+
* Strings can include any CSS unit (e.g., '300px', '50%', '2rem')
|
|
311
|
+
*/
|
|
312
|
+
width: ColumnWidthValue;
|
|
313
|
+
/**
|
|
314
|
+
* Priority for this matcher within the provider (higher = more specific, applied first)
|
|
315
|
+
* Default: 0
|
|
316
|
+
*/
|
|
317
|
+
priority?: number;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Provider configuration for column width rules
|
|
321
|
+
*/
|
|
322
|
+
interface AXPColumnWidthProvider {
|
|
323
|
+
/**
|
|
324
|
+
* Array of matchers to evaluate
|
|
325
|
+
* Evaluated in priority order (highest first), then by match type (name before widgetType)
|
|
326
|
+
*/
|
|
327
|
+
matchers: AXPColumnWidthMatcher[];
|
|
328
|
+
/**
|
|
329
|
+
* Priority for this provider relative to other providers (higher = applied first)
|
|
330
|
+
* Default: 100
|
|
331
|
+
*/
|
|
332
|
+
priority?: number;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Generic column interface for width resolution
|
|
336
|
+
* Works with any column type that has these properties
|
|
337
|
+
*/
|
|
338
|
+
interface IColumnWithWidth {
|
|
339
|
+
/**
|
|
340
|
+
* Column name
|
|
341
|
+
*/
|
|
342
|
+
name: string;
|
|
343
|
+
/**
|
|
344
|
+
* Current width (if already set)
|
|
345
|
+
*/
|
|
346
|
+
width?: string;
|
|
347
|
+
/**
|
|
348
|
+
* Widget type information (optional)
|
|
349
|
+
*/
|
|
350
|
+
widget?: {
|
|
351
|
+
type: string;
|
|
352
|
+
};
|
|
353
|
+
/**
|
|
354
|
+
* Additional options that might contain width
|
|
355
|
+
*/
|
|
356
|
+
options?: {
|
|
357
|
+
width?: string;
|
|
358
|
+
};
|
|
359
|
+
/**
|
|
360
|
+
* For entity columns - showAs configuration
|
|
361
|
+
*/
|
|
362
|
+
showAs?: {
|
|
363
|
+
type: string;
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Service for resolving column widths based on registered providers
|
|
369
|
+
* Supports matching by column name (priority) and widget type (fallback)
|
|
370
|
+
* Uses multi-provider pattern for extensibility
|
|
371
|
+
*/
|
|
372
|
+
declare class AXPColumnWidthService {
|
|
373
|
+
private readonly providers;
|
|
374
|
+
/**
|
|
375
|
+
* Resolve width for a column based on registered providers
|
|
376
|
+
* Only returns a width if column doesn't already have one set
|
|
377
|
+
*
|
|
378
|
+
* @param column Column to resolve width for
|
|
379
|
+
* @returns Resolved width string (normalized) or undefined if no match or column already has width
|
|
380
|
+
*/
|
|
381
|
+
resolveWidth(column: IColumnWithWidth): string | undefined;
|
|
382
|
+
/**
|
|
383
|
+
* Apply resolved width to a column (mutates the column)
|
|
384
|
+
* Only applies if column doesn't already have a width
|
|
385
|
+
*
|
|
386
|
+
* @param column Column to apply width to
|
|
387
|
+
* @returns true if width was applied, false if column already had width or no match found
|
|
388
|
+
*/
|
|
389
|
+
applyWidth(column: IColumnWithWidth): boolean;
|
|
390
|
+
/**
|
|
391
|
+
* Collect all matchers from all providers, sorted by provider priority and matcher priority
|
|
392
|
+
*/
|
|
393
|
+
private collectMatchers;
|
|
394
|
+
/**
|
|
395
|
+
* Find first matching matcher by column name
|
|
396
|
+
* Name matches take precedence over widget type matches
|
|
397
|
+
*/
|
|
398
|
+
private findNameMatch;
|
|
399
|
+
/**
|
|
400
|
+
* Find first matching matcher by widget type (case-insensitive)
|
|
401
|
+
*/
|
|
402
|
+
private findWidgetTypeMatch;
|
|
403
|
+
/**
|
|
404
|
+
* Normalize width value to string format
|
|
405
|
+
* Numbers are converted to pixels (e.g., 150 -> '150px')
|
|
406
|
+
* Strings are preserved as-is (supports any CSS unit)
|
|
407
|
+
*/
|
|
408
|
+
private normalizeWidth;
|
|
409
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPColumnWidthService, never>;
|
|
410
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPColumnWidthService>;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Injection token for column width providers
|
|
415
|
+
* Use this to register multiple column width providers with multi: true
|
|
416
|
+
*
|
|
417
|
+
* @example
|
|
418
|
+
* ```typescript
|
|
419
|
+
* providers: [
|
|
420
|
+
* {
|
|
421
|
+
* provide: AXP_COLUMN_WIDTH_PROVIDER,
|
|
422
|
+
* useValue: {
|
|
423
|
+
* matchers: [
|
|
424
|
+
* { name: 'title', width: '300px', priority: 10 },
|
|
425
|
+
* { widgetType: /text-box/i, width: '200px' }
|
|
426
|
+
* ],
|
|
427
|
+
* priority: 150
|
|
428
|
+
* },
|
|
429
|
+
* multi: true
|
|
430
|
+
* }
|
|
431
|
+
* ]
|
|
432
|
+
* ```
|
|
433
|
+
*/
|
|
434
|
+
declare const AXP_COLUMN_WIDTH_PROVIDER: InjectionToken<AXPColumnWidthProvider[]>;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Default column width configuration
|
|
438
|
+
* Migrated from DEFAULT_COLUMN_WIDTHS in column-width.middleware.ts
|
|
439
|
+
* Provides sensible defaults for common column names
|
|
440
|
+
*/
|
|
441
|
+
declare const defaultColumnWidthProvider: AXPColumnWidthProvider;
|
|
442
|
+
|
|
443
|
+
interface AXPComponentSlotConfig {
|
|
444
|
+
name: string;
|
|
445
|
+
priority?: number;
|
|
446
|
+
component?: Type<any>;
|
|
447
|
+
condition?: ((context?: AXPContextData) => boolean | Promise<boolean>) | string;
|
|
448
|
+
features?: string[];
|
|
449
|
+
loadComponent?: () => Type<any> | Promise<Type<any>>;
|
|
450
|
+
options?: AXPOptionsData | (() => AXPOptionsData) | (() => Promise<AXPOptionsData>);
|
|
451
|
+
}
|
|
452
|
+
interface AXPComponentSlotModuleConfigs {
|
|
453
|
+
[slotName: string]: AXPComponentSlotConfig[];
|
|
454
|
+
}
|
|
455
|
+
declare abstract class AXPComponentSlot {
|
|
456
|
+
host: any;
|
|
457
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPComponentSlot, never>;
|
|
458
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AXPComponentSlot, never, never, {}, {}, never, never, true, never>;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
declare class AXPComponentSlotDirective implements OnInit {
|
|
462
|
+
name: i0.InputSignal<string>;
|
|
463
|
+
host: i0.InputSignal<any>;
|
|
464
|
+
context: i0.InputSignal<any>;
|
|
465
|
+
private elementRef;
|
|
466
|
+
private registryService;
|
|
467
|
+
private injector;
|
|
468
|
+
private evaluator;
|
|
469
|
+
viewContainerRef: ViewContainerRef;
|
|
470
|
+
contextStore: {
|
|
471
|
+
data: i0.Signal<AXPContextData>;
|
|
472
|
+
state: i0.Signal<_acorex_platform_framework_shared_core.AXPContextState>;
|
|
473
|
+
savedSnapshot: i0.Signal<AXPContextData>;
|
|
474
|
+
previousSnapshot: i0.Signal<AXPContextData>;
|
|
475
|
+
userEditedSinceCommit: i0.Signal<boolean>;
|
|
476
|
+
lastChange: _ngrx_signals.DeepSignal<_acorex_platform_framework_shared_core.AXPContextChangeEvent>;
|
|
477
|
+
isChanged: i0.Signal<boolean>;
|
|
478
|
+
isReset: i0.Signal<boolean>;
|
|
479
|
+
isInitiated: i0.Signal<boolean>;
|
|
480
|
+
isEmpty: i0.Signal<boolean>;
|
|
481
|
+
isSavedCommitted: i0.Signal<boolean>;
|
|
482
|
+
hasUserEditedSinceCommit: i0.Signal<boolean>;
|
|
483
|
+
isDirty: i0.Signal<boolean>;
|
|
484
|
+
snapshot: i0.Signal<AXPContextData>;
|
|
485
|
+
saved: i0.Signal<AXPContextData>;
|
|
486
|
+
initial: i0.Signal<AXPContextData>;
|
|
487
|
+
previous: i0.Signal<AXPContextData>;
|
|
488
|
+
changeEvent: i0.Signal<_acorex_platform_framework_shared_core.AXPContextChangeEvent>;
|
|
489
|
+
update: (path: string, value: any, options?: _acorex_platform_framework_shared_core.AXPContextUpdateOptions) => void;
|
|
490
|
+
applyObjectPaths: (obj: Record<string, unknown>, options?: _acorex_platform_framework_shared_core.AXPContextUpdateOptions, prefix?: string) => void;
|
|
491
|
+
syncPathToSavedBaseline: (path: string, options?: _acorex_platform_framework_shared_core.AXPContextUpdateOptions) => void;
|
|
492
|
+
patch: (context: Record<string, any>, options?: _acorex_platform_framework_shared_core.AXPContextPatchOptions) => void;
|
|
493
|
+
revertToSaved: () => void;
|
|
494
|
+
reset: () => void;
|
|
495
|
+
set: (initialData: any) => void;
|
|
496
|
+
getValue: (path: string) => any;
|
|
497
|
+
getSavedValue: (path: string) => any;
|
|
498
|
+
hasValue: (path: string) => boolean;
|
|
499
|
+
commitSaved: () => void;
|
|
500
|
+
applyParentBind: (merged: AXPContextData) => void;
|
|
501
|
+
} & _ngrx_signals.StateSource<{
|
|
502
|
+
data: AXPContextData;
|
|
503
|
+
state: _acorex_platform_framework_shared_core.AXPContextState;
|
|
504
|
+
savedSnapshot: AXPContextData;
|
|
505
|
+
previousSnapshot: AXPContextData;
|
|
506
|
+
userEditedSinceCommit: boolean;
|
|
507
|
+
lastChange: _acorex_platform_framework_shared_core.AXPContextChangeEvent;
|
|
508
|
+
}>;
|
|
509
|
+
isEmpty: i0.Signal<boolean>;
|
|
510
|
+
private _viewCount;
|
|
511
|
+
private componentRefs;
|
|
512
|
+
private placeholderRefs;
|
|
513
|
+
constructor();
|
|
514
|
+
ngOnInit(): Promise<void>;
|
|
515
|
+
loadComponents(): Promise<void>;
|
|
516
|
+
private evaluateCondition;
|
|
517
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPComponentSlotDirective, never>;
|
|
518
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AXPComponentSlotDirective, "axp-component-slot", ["slot"], { "name": { "alias": "name"; "required": true; "isSignal": true; }; "host": { "alias": "host"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
declare class AXPComponentSlotRegistryService {
|
|
522
|
+
private registry;
|
|
523
|
+
register(slotName: string, config: AXPComponentSlotConfig): void;
|
|
524
|
+
get(slotName: string): AXPComponentSlotConfig[];
|
|
525
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPComponentSlotRegistryService, never>;
|
|
526
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPComponentSlotRegistryService>;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
declare class AXPComponentSlotModule {
|
|
530
|
+
static forRoot(configs?: AXPComponentSlotModuleConfigs): ModuleWithProviders<AXPComponentSlotModule>;
|
|
531
|
+
static forChild(configs?: AXPComponentSlotModuleConfigs): ModuleWithProviders<AXPComponentSlotModule>;
|
|
532
|
+
/**
|
|
533
|
+
* @ignore
|
|
534
|
+
*/
|
|
535
|
+
constructor(instances: any[]);
|
|
536
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPComponentSlotModule, [{ optional: true; }]>;
|
|
537
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPComponentSlotModule, [typeof AXPComponentSlotDirective], never, [typeof AXPComponentSlotDirective]>;
|
|
538
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXPComponentSlotModule>;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
declare const AXPContextStore: i0.Type<{
|
|
542
|
+
data: i0.Signal<AXPContextData>;
|
|
543
|
+
state: i0.Signal<AXPContextState>;
|
|
544
|
+
savedSnapshot: i0.Signal<AXPContextData>;
|
|
545
|
+
previousSnapshot: i0.Signal<AXPContextData>;
|
|
546
|
+
userEditedSinceCommit: i0.Signal<boolean>;
|
|
547
|
+
lastChange: _ngrx_signals.DeepSignal<AXPContextChangeEvent>;
|
|
548
|
+
isChanged: i0.Signal<boolean>;
|
|
549
|
+
isReset: i0.Signal<boolean>;
|
|
550
|
+
isInitiated: i0.Signal<boolean>;
|
|
551
|
+
isEmpty: i0.Signal<boolean>;
|
|
552
|
+
isSavedCommitted: i0.Signal<boolean>;
|
|
553
|
+
hasUserEditedSinceCommit: i0.Signal<boolean>;
|
|
554
|
+
isDirty: i0.Signal<boolean>;
|
|
555
|
+
snapshot: i0.Signal<AXPContextData>;
|
|
556
|
+
saved: i0.Signal<AXPContextData>;
|
|
557
|
+
initial: i0.Signal<AXPContextData>;
|
|
558
|
+
previous: i0.Signal<AXPContextData>;
|
|
559
|
+
changeEvent: i0.Signal<AXPContextChangeEvent>;
|
|
560
|
+
update: (path: string, value: any, options?: AXPContextUpdateOptions) => void;
|
|
561
|
+
applyObjectPaths: (obj: Record<string, unknown>, options?: AXPContextUpdateOptions, prefix?: string) => void;
|
|
562
|
+
syncPathToSavedBaseline: (path: string, options?: AXPContextUpdateOptions) => void;
|
|
563
|
+
patch: (context: Record<string, any>, options?: AXPContextPatchOptions) => void;
|
|
564
|
+
revertToSaved: () => void;
|
|
565
|
+
reset: () => void;
|
|
566
|
+
set: (initialData: any) => void;
|
|
567
|
+
getValue: (path: string) => any;
|
|
568
|
+
getSavedValue: (path: string) => any;
|
|
569
|
+
hasValue: (path: string) => boolean;
|
|
570
|
+
commitSaved: () => void;
|
|
571
|
+
applyParentBind: (merged: AXPContextData) => void;
|
|
572
|
+
} & _ngrx_signals.StateSource<{
|
|
573
|
+
data: AXPContextData;
|
|
574
|
+
state: AXPContextState;
|
|
575
|
+
savedSnapshot: AXPContextData;
|
|
576
|
+
previousSnapshot: AXPContextData;
|
|
577
|
+
userEditedSinceCommit: boolean;
|
|
578
|
+
lastChange: AXPContextChangeEvent;
|
|
579
|
+
}>>;
|
|
580
|
+
|
|
581
|
+
/** Trace namespace for form dirty-state diagnostics (lookup/select revert, discard, baseline). */
|
|
582
|
+
declare const FORM_DIRTY_TRACE_NS = "FORM STATE";
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Compact hints for assembling platform context into LLM system prompts.
|
|
586
|
+
* Mirrors fields used by {@link AXPAiPlatformRuntimeContext} and the mock engine runtime prompt
|
|
587
|
+
* formatter — keep labels short and values bounded.
|
|
588
|
+
*/
|
|
589
|
+
interface AXPContextDefinitionAiHints {
|
|
590
|
+
/**
|
|
591
|
+
* Short English label for bullet lists (e.g. `UI locale`, `Current instant (UTC, ISO 8601)`).
|
|
592
|
+
*/
|
|
593
|
+
promptLabel?: string;
|
|
594
|
+
/**
|
|
595
|
+
* One-line guidance for the model (when to use this value, what not to ask the user).
|
|
596
|
+
*/
|
|
597
|
+
usageHint?: string;
|
|
598
|
+
/**
|
|
599
|
+
* When `false`, this definition is omitted from AI system-prompt assembly. Default `true`.
|
|
600
|
+
*/
|
|
601
|
+
includeInSystemPrompt?: boolean;
|
|
602
|
+
/**
|
|
603
|
+
* How to stringify the value compactly in prompts.
|
|
604
|
+
*/
|
|
605
|
+
valueKind?: 'string' | 'number' | 'boolean' | 'instant' | 'locale' | 'dateTime' | 'object';
|
|
606
|
+
/**
|
|
607
|
+
* When `true`, the value must not be sent to the model (PII, secrets, tokens).
|
|
608
|
+
*/
|
|
609
|
+
sensitive?: boolean;
|
|
610
|
+
/**
|
|
611
|
+
* Sort order when rendering the AI context block (lower first).
|
|
612
|
+
*/
|
|
613
|
+
order?: number;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Describes a named platform context key (e.g. `currentDate`, `language`).
|
|
617
|
+
*/
|
|
618
|
+
interface AXPContextDefinition {
|
|
619
|
+
/** Stable identifier used as the context key and in expressions. */
|
|
620
|
+
name: string;
|
|
621
|
+
/** Human-readable title for designers and tooling. */
|
|
622
|
+
title: string;
|
|
623
|
+
/** What this context represents and when consumers should use it. */
|
|
624
|
+
description: string;
|
|
625
|
+
/** Optional metadata for AI system-prompt assembly. */
|
|
626
|
+
ai?: AXPContextDefinitionAiHints;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
interface AXPContextDefinitionProvider {
|
|
630
|
+
items(): Promise<AXPContextDefinition[]>;
|
|
631
|
+
}
|
|
632
|
+
declare const AXP_CONTEXT_DEFINITION_PROVIDER: InjectionToken<AXPContextDefinitionProvider[]>;
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Collects {@link AXPContextDefinition} entries from all registered {@link AXPContextDefinitionProvider} instances.
|
|
636
|
+
*/
|
|
637
|
+
declare class AXPContextDefinitionProviderService implements AXPContextDefinitionProvider {
|
|
638
|
+
private readonly providers;
|
|
639
|
+
items(): Promise<AXPContextDefinition[]>;
|
|
640
|
+
get(name: string): Promise<AXPContextDefinition | undefined>;
|
|
641
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPContextDefinitionProviderService, never>;
|
|
642
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPContextDefinitionProviderService>;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
type AXPDebugData = Record<string, unknown>;
|
|
646
|
+
/** Lazy factory — evaluated only when the log method actually emits. */
|
|
647
|
+
type AXPDebugDataFactory = () => AXPDebugData;
|
|
648
|
+
type AXPDebugDataInput = AXPDebugData | AXPDebugDataFactory;
|
|
649
|
+
/**
|
|
650
|
+
* Platform debug and trace logging.
|
|
651
|
+
* Call `trace` / `traceGroup` for diagnostics (gated by tenant Debug Mode).
|
|
652
|
+
* Call `warn` / `error` for always-on console output.
|
|
653
|
+
*
|
|
654
|
+
* Debug Mode is applied via `setDebugMode()` (wired from settings in platform common).
|
|
655
|
+
*/
|
|
656
|
+
declare class AXPDebugService {
|
|
657
|
+
/** Root instance for call sites outside injection context (e.g. middleware). */
|
|
658
|
+
static instance: AXPDebugService | undefined;
|
|
659
|
+
private debugModeEnabled;
|
|
660
|
+
constructor();
|
|
661
|
+
isDebugMode(): boolean;
|
|
662
|
+
setDebugMode(enabled: boolean): void;
|
|
663
|
+
/**
|
|
664
|
+
* @param namespace Module/feature namespace (kebab-case). Filter console with `[AXP:<namespace>]`.
|
|
665
|
+
* @param title Short area name (component, service, middleware).
|
|
666
|
+
* @param message What happened.
|
|
667
|
+
* @param data Optional structured payload, or a factory evaluated only when Debug Mode is on.
|
|
668
|
+
*/
|
|
669
|
+
trace(namespace: string, title: string, message: string, data?: AXPDebugDataInput): void;
|
|
670
|
+
/**
|
|
671
|
+
* Same as {@link trace} but emits a collapsible console group (useful for multi-field payloads).
|
|
672
|
+
*/
|
|
673
|
+
traceGroup(namespace: string, title: string, message: string, data?: AXPDebugDataInput): void;
|
|
674
|
+
warn(namespace: string, title: string, message: string, data?: AXPDebugDataInput): void;
|
|
675
|
+
error(namespace: string, title: string, message: string, data?: AXPDebugDataInput): void;
|
|
676
|
+
private formatPrefix;
|
|
677
|
+
private resolveData;
|
|
678
|
+
private log;
|
|
679
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPDebugService, never>;
|
|
680
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPDebugService>;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
declare class AXPDataGenerator {
|
|
684
|
+
static uuid(): string;
|
|
685
|
+
static number(max: number): number;
|
|
686
|
+
static number(min: number, max: number): number;
|
|
687
|
+
static date(): Date;
|
|
688
|
+
static date(start: Date): Date;
|
|
689
|
+
static date(start: Date, end: Date): Date;
|
|
690
|
+
static array<T>(length: number | undefined, generator: () => T): T[];
|
|
691
|
+
static pick<T>(items: T[]): T;
|
|
692
|
+
static pick<T>(items: T[], count: number): T[];
|
|
693
|
+
static string(length?: number): string;
|
|
694
|
+
static boolean(): boolean;
|
|
695
|
+
static item<T>(array?: T[]): T | undefined;
|
|
696
|
+
static color(format?: 'hsl' | 'rgb' | 'hex'): string;
|
|
697
|
+
private static hslToRgb;
|
|
698
|
+
static alphanumeric(length?: number): string;
|
|
699
|
+
static alphabet(length?: number): string;
|
|
700
|
+
static phone(): string;
|
|
701
|
+
static firstName(): string;
|
|
702
|
+
static lastName(): string;
|
|
703
|
+
static email(): string;
|
|
704
|
+
static email(firstName: string, lastName: string): string;
|
|
705
|
+
static country(): string;
|
|
706
|
+
static city(): string;
|
|
707
|
+
static state(): string;
|
|
708
|
+
static address(): string;
|
|
709
|
+
static avatar(): string;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
type AXPValueTransformerFunction = (value: any) => any;
|
|
713
|
+
type AXPValueTransformerFunctions = {
|
|
714
|
+
getter?: AXPValueTransformerFunction;
|
|
715
|
+
setter?: AXPValueTransformerFunction;
|
|
716
|
+
};
|
|
717
|
+
declare function objectKeyValueTransforms(keyName: string): AXPValueTransformerFunctions;
|
|
718
|
+
|
|
719
|
+
declare class AXPContentCheckerDirective {
|
|
720
|
+
viewContainerRef: ViewContainerRef;
|
|
721
|
+
elementRef: ElementRef<HTMLDivElement>;
|
|
722
|
+
isEmpty: i0.Signal<boolean>;
|
|
723
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPContentCheckerDirective, never>;
|
|
724
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AXPContentCheckerDirective, "[axp-content-checker]", ["checker"], {}, {}, never, never, true, never>;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
declare class AXPDblClickDirective {
|
|
728
|
+
onDblClick: EventEmitter<Event>;
|
|
729
|
+
private lastTap;
|
|
730
|
+
private readonly doubleTapThreshold;
|
|
731
|
+
handleOnDblClick(event: Event): void;
|
|
732
|
+
onTouchEnd(event: TouchEvent): void;
|
|
733
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPDblClickDirective, never>;
|
|
734
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AXPDblClickDirective, "[onDblClick]", never, {}, { "onDblClick": "onDblClick"; }, never, never, true, never>;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
declare class AXPElementDataDirective implements OnInit {
|
|
738
|
+
private elementRef;
|
|
739
|
+
data: i0.InputSignal<any>;
|
|
740
|
+
path: i0.InputSignal<string>;
|
|
741
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
742
|
+
ngOnInit(): void;
|
|
743
|
+
private updateEffect;
|
|
744
|
+
/**
|
|
745
|
+
* Get data from the element
|
|
746
|
+
*/
|
|
747
|
+
getData(): any;
|
|
748
|
+
/**
|
|
749
|
+
* Update data at runtime
|
|
750
|
+
*/
|
|
751
|
+
setData(data: any): void;
|
|
752
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPElementDataDirective, never>;
|
|
753
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AXPElementDataDirective, "[axp-data]", never, { "data": { "alias": "axp-data"; "required": false; "isSignal": true; }; "path": { "alias": "axp-data-path"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
declare class AXPGridLayoutDirective implements OnChanges {
|
|
757
|
+
private el;
|
|
758
|
+
private renderer;
|
|
759
|
+
options: i0.InputSignal<AXPGridLayoutOptions>;
|
|
760
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
761
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
762
|
+
private applyTailwindClasses;
|
|
763
|
+
private setClasses;
|
|
764
|
+
private clearClasses;
|
|
765
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPGridLayoutDirective, never>;
|
|
766
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AXPGridLayoutDirective, "[axp-grid-layout]", never, { "options": { "alias": "axp-grid-layout"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
type AXPDistributedEventListenerProviderToken<T> = AXPDistributedEventListenerProvider<T> | Promise<AXPDistributedEventListenerProvider<T>>;
|
|
770
|
+
declare const AXP_DISTRIBUTED_EVENT_LISTENER_PROVIDER: InjectionToken<AXPDistributedEventListenerProviderToken<any>[]>;
|
|
771
|
+
interface AXPDistributedEventListenerProvider<TInput = any, TOutput = void> {
|
|
772
|
+
key: string;
|
|
773
|
+
execute(data: TInput): Promise<TOutput> | TOutput;
|
|
774
|
+
priority?: number;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
declare class AXPDistributedEventListenerService {
|
|
778
|
+
private readonly listenerProviders;
|
|
779
|
+
private readonly injector;
|
|
780
|
+
/** Cache for listeners by key. */
|
|
781
|
+
private listenersByKey;
|
|
782
|
+
/** Flag to track if providers have been loaded */
|
|
783
|
+
private providersLoaded;
|
|
784
|
+
/**
|
|
785
|
+
* Dispatches an event to all registered listeners for the given key.
|
|
786
|
+
* @param key The event key.
|
|
787
|
+
* @param data The event data to pass to listeners.
|
|
788
|
+
*/
|
|
789
|
+
dispatch(key: string, data?: any): Promise<void>;
|
|
790
|
+
/**
|
|
791
|
+
* Dispatch with async response (first matching provider, with retry/timeout)
|
|
792
|
+
*/
|
|
793
|
+
dispatchAsync<T, R>(key: string, data: T, options?: {
|
|
794
|
+
timeout: number;
|
|
795
|
+
retries: number;
|
|
796
|
+
retryDelay: number;
|
|
797
|
+
}): Promise<R>;
|
|
798
|
+
/**
|
|
799
|
+
* Resolve all providers (handle both direct provider and Promise<provider>)
|
|
800
|
+
*/
|
|
801
|
+
private resolveProviders;
|
|
802
|
+
/**
|
|
803
|
+
* Returns all listeners for a specific event key.
|
|
804
|
+
* @param key The event key.
|
|
805
|
+
* @returns Array of listeners for the key.
|
|
806
|
+
*/
|
|
807
|
+
getListeners(key: string): Promise<AXPDistributedEventListenerProvider<any>[]>;
|
|
808
|
+
/**
|
|
809
|
+
* Returns all registered event keys.
|
|
810
|
+
* @returns Array of all event keys that have listeners.
|
|
811
|
+
*/
|
|
812
|
+
getRegisteredKeys(): Promise<string[]>;
|
|
813
|
+
/**
|
|
814
|
+
* Ensures that all providers have been loaded and cached.
|
|
815
|
+
*/
|
|
816
|
+
private ensureProvidersLoaded;
|
|
817
|
+
/** Clears the listeners cache and forces reload on next access. */
|
|
818
|
+
clearListenersCache(): void;
|
|
819
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPDistributedEventListenerService, never>;
|
|
820
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPDistributedEventListenerService>;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
declare class AXPBroadcastEventService implements OnDestroy {
|
|
824
|
+
private channel;
|
|
825
|
+
private eventSubjects;
|
|
826
|
+
private pendingRequests;
|
|
827
|
+
private multiTabEventHistory;
|
|
828
|
+
private readonly instanceId;
|
|
829
|
+
constructor();
|
|
830
|
+
/**
|
|
831
|
+
* Publish an event without expecting a response
|
|
832
|
+
*/
|
|
833
|
+
publish<T>(type: string, payload?: T): void;
|
|
834
|
+
/**
|
|
835
|
+
* Subscribe to an event
|
|
836
|
+
*/
|
|
837
|
+
listen<T>(type: string): Observable<{
|
|
838
|
+
data: T;
|
|
839
|
+
requestId?: string;
|
|
840
|
+
}>;
|
|
841
|
+
/**
|
|
842
|
+
* Unsubscribe from an event
|
|
843
|
+
*/
|
|
844
|
+
unsubscribe(type: string): void;
|
|
845
|
+
/**
|
|
846
|
+
* Send a message and wait for a response with retry logic
|
|
847
|
+
*/
|
|
848
|
+
sendAndWaitForResponse<T, R>(type: string, payload?: T, options?: {
|
|
849
|
+
timeout: number;
|
|
850
|
+
retries: number;
|
|
851
|
+
retryDelay: number;
|
|
852
|
+
}): Promise<R>;
|
|
853
|
+
/**
|
|
854
|
+
* Respond to a request
|
|
855
|
+
*/
|
|
856
|
+
respondToRequest(requestId: string, response: any): void;
|
|
857
|
+
/**
|
|
858
|
+
* Cleanup when the service is destroyed
|
|
859
|
+
*/
|
|
860
|
+
ngOnDestroy(): void;
|
|
861
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPBroadcastEventService, never>;
|
|
862
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPBroadcastEventService>;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
/** Registered {@link AXFormatService} formatter name (e.g. `date`, `translate`, custom). */
|
|
866
|
+
type AXPContextEvalPipeName = string;
|
|
867
|
+
interface AXPContextEvalPipeSpec {
|
|
868
|
+
type: AXPContextEvalPipeName;
|
|
869
|
+
options?: Record<string, unknown>;
|
|
870
|
+
}
|
|
871
|
+
/** Shorthand pipe name or full spec with formatter options. */
|
|
872
|
+
type AXPContextEvalPipe = AXPContextEvalPipeName | AXPContextEvalPipeSpec;
|
|
873
|
+
interface AXPContextEvalOptions {
|
|
874
|
+
pipes?: AXPContextEvalPipe[];
|
|
875
|
+
}
|
|
876
|
+
type AXPContextEvalFn = (path: string, options?: AXPContextEvalOptions) => unknown;
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* Builds sync `context.eval(path, { pipes })` functions backed by {@link AXFormatService}.
|
|
880
|
+
* Supports built-in and custom formatters registered on {@link AXFormatModule}.
|
|
881
|
+
*/
|
|
882
|
+
declare class AXPContextEvalFactory {
|
|
883
|
+
private readonly formatService;
|
|
884
|
+
/** Creates a sync eval function for the given record/context data object. */
|
|
885
|
+
create(data: Record<string, unknown>): AXPContextEvalFn;
|
|
886
|
+
/** Creates `{ eval }` scope object for expression evaluator scopes. */
|
|
887
|
+
createScope(data: Record<string, unknown>): {
|
|
888
|
+
eval: AXPContextEvalFn;
|
|
889
|
+
};
|
|
890
|
+
/**
|
|
891
|
+
* Display-tier scope that re-reads data on each eval (for live stores / changing row context).
|
|
892
|
+
*/
|
|
893
|
+
createLiveScope(getData: () => Record<string, unknown>): {
|
|
894
|
+
eval: AXPContextEvalFn;
|
|
895
|
+
};
|
|
896
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPContextEvalFactory, never>;
|
|
897
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPContextEvalFactory>;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
/** Normalizes shorthand pipe names to `{ type, options? }` specs. */
|
|
901
|
+
declare function normalizeContextEvalPipes(pipes: AXPContextEvalPipe[]): AXPContextEvalPipeSpec[];
|
|
902
|
+
/**
|
|
903
|
+
* Applies a left-to-right formatter pipeline via {@link AXFormatService}.
|
|
904
|
+
* Unknown formatters fall back to a trimmed string representation.
|
|
905
|
+
*/
|
|
906
|
+
declare function applyContextEvalPipes(value: unknown, pipes: AXPContextEvalPipe[] | undefined, formatService: AXFormatService): unknown;
|
|
907
|
+
/** Reads a nested path from data and optionally applies display pipes. */
|
|
908
|
+
declare function contextEvalWithPipes(data: Record<string, unknown>, path: string, formatService: AXFormatService, pipes?: AXPContextEvalPipe[]): unknown;
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* Normalizes display templates before {@link AXPExpressionEvaluatorService} evaluation.
|
|
912
|
+
* Converts simple dot paths (e.g. `{{ position.title }}`) to `context.eval("position.title")`
|
|
913
|
+
* so row data is read from scope.context instead of bare JavaScript identifiers.
|
|
914
|
+
*/
|
|
915
|
+
declare function normalizeExpressionTemplate(template: string): string;
|
|
916
|
+
|
|
917
|
+
type AXPExpressionEvaluatorScope = {
|
|
918
|
+
[name: string]: {
|
|
919
|
+
[name: string]: Function;
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
declare class AXPExpressionEvaluatorService {
|
|
923
|
+
private expressionCache;
|
|
924
|
+
private providerService;
|
|
925
|
+
private getOrCompileFunction;
|
|
926
|
+
private getMergedScope;
|
|
927
|
+
evaluate(source: any | any[], scope?: AXPExpressionEvaluatorScope): Promise<any>;
|
|
928
|
+
private evaluateStringExpression;
|
|
929
|
+
isExpression(expression: string): boolean;
|
|
930
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPExpressionEvaluatorService, never>;
|
|
931
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPExpressionEvaluatorService>;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
interface AXPExpressionEvaluatorScopeProvider {
|
|
935
|
+
provide(context: AXPExpressionEvaluatorScopeProviderContext): Promise<void>;
|
|
936
|
+
}
|
|
937
|
+
declare class AXPExpressionEvaluatorScopeProviderContext {
|
|
938
|
+
private scopes;
|
|
939
|
+
addScope(namespace: string, functions: {
|
|
940
|
+
[name: string]: Function;
|
|
941
|
+
}): void;
|
|
942
|
+
getScopes(): AXPExpressionEvaluatorScope;
|
|
943
|
+
}
|
|
944
|
+
type AXPExpressionEvaluatorScopeProviders = AXPExpressionEvaluatorScopeProvider[] | (() => AXPExpressionEvaluatorScopeProvider[]);
|
|
945
|
+
declare const AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER: InjectionToken<AXPExpressionEvaluatorScopeProviders>;
|
|
946
|
+
declare class AXPExpressionEvaluatorScopeProviderService {
|
|
947
|
+
private readonly injector;
|
|
948
|
+
private cache;
|
|
949
|
+
private load;
|
|
950
|
+
getScopesAsync(): Promise<AXPExpressionEvaluatorScope>;
|
|
951
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPExpressionEvaluatorScopeProviderService, never>;
|
|
952
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPExpressionEvaluatorScopeProviderService>;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
declare class AXPHookService {
|
|
956
|
+
private readonly listenerProviders;
|
|
957
|
+
private readonly injector;
|
|
958
|
+
/**
|
|
959
|
+
* Resolve all providers (handle both direct providers and Promise<provider>)
|
|
960
|
+
*/
|
|
961
|
+
private resolveProviders;
|
|
962
|
+
/**
|
|
963
|
+
* Fire sync hooks (fire-and-forget).
|
|
964
|
+
* All providers with the given key will be executed.
|
|
965
|
+
* Execution is not awaited.
|
|
966
|
+
*/
|
|
967
|
+
fire<T>(key: string, data: T): void;
|
|
968
|
+
/**
|
|
969
|
+
* Run async hooks sequentially (waterfall).
|
|
970
|
+
* The output of each hook is passed as input to the next hook.
|
|
971
|
+
* Returns the final merged data after all hooks are executed.
|
|
972
|
+
*/
|
|
973
|
+
runAsync<T>(key: string, initialData: T): Promise<T>;
|
|
974
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPHookService, never>;
|
|
975
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPHookService>;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/** Acorex overlay root (modal shell, popup, dialog). */
|
|
979
|
+
declare const AX_OVERLAY_CONTAINER_SELECTOR = ".ax-overlay-container";
|
|
980
|
+
/** Anchored widget panel inside an overlay (select, date picker, dropdown). */
|
|
981
|
+
declare const AX_OVERLAY_PANE_SELECTOR = ".ax-overlay-pane";
|
|
982
|
+
/**
|
|
983
|
+
* True when a visible overlay layer is foreground (modal, popup, widget popover/picker).
|
|
984
|
+
*/
|
|
985
|
+
declare function hasForegroundOverlayLayer(document: Document): boolean;
|
|
986
|
+
/**
|
|
987
|
+
* Returns visible anchored overlay panes (widget popovers/pickers).
|
|
988
|
+
*/
|
|
989
|
+
declare function getVisibleAnchoredOverlayPanes(document: Document): HTMLElement[];
|
|
990
|
+
/**
|
|
991
|
+
* Visible anchored panes that are not contained by `excludeContainer` (e.g. dialog shell).
|
|
992
|
+
*/
|
|
993
|
+
declare function getNestedVisibleOverlayPanes(document: Document, excludeContainer: HTMLElement | null): HTMLElement[];
|
|
994
|
+
/**
|
|
995
|
+
* Collects visible overlay containers in stacking order (later / higher z-index wins).
|
|
996
|
+
*/
|
|
997
|
+
declare function getVisibleOverlayContainers(document: Document): HTMLElement[];
|
|
998
|
+
/** Topmost visible overlay container, if any. */
|
|
999
|
+
declare function getTopVisibleOverlayContainer(document: Document): HTMLElement | null;
|
|
1000
|
+
/** Nearest overlay container ancestor of `element`. */
|
|
1001
|
+
declare function findOverlayContainerAncestor(element: HTMLElement): HTMLElement | null;
|
|
1002
|
+
/**
|
|
1003
|
+
* Returns true when the overlay element is rendered and visible in the viewport.
|
|
1004
|
+
*/
|
|
1005
|
+
declare function isVisibleOverlayElement(element: Element): boolean;
|
|
1006
|
+
|
|
1007
|
+
interface AXPKeyboardShortcutFormatOptions {
|
|
1008
|
+
directionBehavior?: AXPKeyboardShortcutDirectionBehavior;
|
|
1009
|
+
/** From `AXLocaleService.activeProfile().i18nMeta?.rtl`. */
|
|
1010
|
+
isRtl?: boolean;
|
|
1011
|
+
/** Chord was already passed through `resolveDisplayShortcutChord` (e.g. help `displayChords`). */
|
|
1012
|
+
skipDirectionResolve?: boolean;
|
|
1013
|
+
}
|
|
1014
|
+
/** Maps a horizontal direction key to its RTL semantic counterpart. */
|
|
1015
|
+
declare function mirrorHorizontalDirectionalKey(key: string): string;
|
|
1016
|
+
/** True when the chord's primary key is a horizontal direction key (`←`/`→`, `[`/`]`). */
|
|
1017
|
+
declare function isHorizontalDirectionalShortcutKey(key: string): boolean;
|
|
1018
|
+
/**
|
|
1019
|
+
* Resolves direction behavior for a chord.
|
|
1020
|
+
* Horizontal direction keys default to `semantic`; others default to `physical`.
|
|
1021
|
+
* An explicit binding value always wins.
|
|
1022
|
+
*/
|
|
1023
|
+
declare function resolveEffectiveDirectionBehavior(chord: AXPKeyboardShortcutChord, explicit?: AXPKeyboardShortcutDirectionBehavior): AXPKeyboardShortcutDirectionBehavior;
|
|
1024
|
+
/** Resolves the key the user presses for a semantically registered chord in RTL. */
|
|
1025
|
+
declare function resolveSemanticDirectionalKey(storedKey: string, rtl: boolean): string;
|
|
1026
|
+
/** Chord string with directional key mirrored for RTL display/matching when semantic. */
|
|
1027
|
+
declare function resolveDisplayShortcutChord(chord: AXPKeyboardShortcutChord, isRtl: boolean, explicitDirectionBehavior?: AXPKeyboardShortcutDirectionBehavior): string;
|
|
1028
|
+
interface ParsedShortcut$1 {
|
|
1029
|
+
ctrl: boolean;
|
|
1030
|
+
shift: boolean;
|
|
1031
|
+
alt: boolean;
|
|
1032
|
+
meta: boolean;
|
|
1033
|
+
key: string;
|
|
1034
|
+
}
|
|
1035
|
+
/**
|
|
1036
|
+
* Parses a shortcut chord such as `Enter`, `Escape`, or `ctrl+shift+s`.
|
|
1037
|
+
*/
|
|
1038
|
+
declare function parseKeyboardShortcutChord(chord: AXPKeyboardShortcutChord): ParsedShortcut$1;
|
|
1039
|
+
/**
|
|
1040
|
+
* Returns true when the keyboard event matches the given chord.
|
|
1041
|
+
* On macOS, `ctrl+*` chords also match `meta+*` for common platform shortcuts.
|
|
1042
|
+
*/
|
|
1043
|
+
declare function matchesKeyboardShortcutChord(event: KeyboardEvent, chord: AXPKeyboardShortcutChord, options?: AXPKeyboardShortcutFormatOptions): boolean;
|
|
1044
|
+
/**
|
|
1045
|
+
* Formats one chord for UI display (OS-aware modifier symbols).
|
|
1046
|
+
*/
|
|
1047
|
+
declare function formatKeyboardShortcutChord(chord: AXPKeyboardShortcutChord, options?: AXPKeyboardShortcutFormatOptions): string;
|
|
1048
|
+
/**
|
|
1049
|
+
* Formats multiple chords as a single display string (e.g. `← / PgUp`).
|
|
1050
|
+
*/
|
|
1051
|
+
declare function formatKeyboardShortcutChords(chords: readonly AXPKeyboardShortcutChord[], options?: AXPKeyboardShortcutFormatOptions): string;
|
|
1052
|
+
/** Maps a chord to `ax-kbd-item` key parts (modifiers + display symbols). */
|
|
1053
|
+
declare function chordToKbdItemKeys(chord: AXPKeyboardShortcutChord, options?: AXPKeyboardShortcutFormatOptions): string[];
|
|
1054
|
+
/**
|
|
1055
|
+
* When focus is in a native edit control, avoid stealing plain key shortcuts.
|
|
1056
|
+
*/
|
|
1057
|
+
declare function isKeyboardTargetInsideEditableField(target: EventTarget | null): boolean;
|
|
1058
|
+
/**
|
|
1059
|
+
* Returns true when Esc should close an open widget overlay first (select, date picker, popover, modal).
|
|
1060
|
+
* Used by the global shortcut registry so page-level Esc bindings do not swallow overlay dismiss.
|
|
1061
|
+
*/
|
|
1062
|
+
declare function shouldDeferEscapeToOpenOverlay(document: Document): boolean;
|
|
1063
|
+
declare function isMacPlatform(): boolean;
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* Normalizes a declarative shortcut (`'ctrl+s'` or `{ keys: 'home', allowInEditableFields: false }`).
|
|
1067
|
+
*/
|
|
1068
|
+
declare function normalizeKeyboardShortcut(shortcut: AXPKeyboardShortcut): AXPResolvedKeyboardShortcut | undefined;
|
|
1069
|
+
/**
|
|
1070
|
+
* Normalizes an array of declarative shortcuts. Empty or invalid entries are skipped.
|
|
1071
|
+
*/
|
|
1072
|
+
declare function normalizeKeyboardShortcuts(shortcuts?: readonly AXPKeyboardShortcut[]): AXPResolvedKeyboardShortcut[];
|
|
1073
|
+
/** Returns the first chord from declarative shortcuts (for UI hints such as `ax-kbd`). */
|
|
1074
|
+
declare function getPrimaryKeyboardShortcutChord(shortcuts?: readonly AXPKeyboardShortcut[]): AXPKeyboardShortcutChord | undefined;
|
|
1075
|
+
|
|
1076
|
+
interface AXPKeyboardShortcutRegisterOptions extends AXPKeyboardShortcutRegistration {
|
|
1077
|
+
/** Auto-unregister when the owner is destroyed. */
|
|
1078
|
+
owner: DestroyRef;
|
|
1079
|
+
/** When set, shortcuts are active only while the element is connected to the document. */
|
|
1080
|
+
elementRef?: ElementRef<HTMLElement>;
|
|
1081
|
+
}
|
|
1082
|
+
declare class AXPKeyboardShortcutRegistry {
|
|
1083
|
+
private readonly document;
|
|
1084
|
+
private readonly localeService;
|
|
1085
|
+
private readonly activeProfile;
|
|
1086
|
+
private readonly registrations;
|
|
1087
|
+
private helpDialogHandler;
|
|
1088
|
+
private listenerAttached;
|
|
1089
|
+
/** Active shortcut entries for the help dialog. */
|
|
1090
|
+
readonly helpEntries: i0.Signal<AXPKeyboardShortcutHelpEntry[]>;
|
|
1091
|
+
/**
|
|
1092
|
+
* Registers a scope of shortcuts. Unregisters automatically when `owner` is destroyed.
|
|
1093
|
+
*/
|
|
1094
|
+
register(options: AXPKeyboardShortcutRegisterOptions): void;
|
|
1095
|
+
/**
|
|
1096
|
+
* Wires the F1 help dialog opener (provided by platform/common).
|
|
1097
|
+
*/
|
|
1098
|
+
setHelpDialogHandler(handler: () => void | Promise<void>): void;
|
|
1099
|
+
/** OS-aware display string for UI hints. */
|
|
1100
|
+
formatDisplayKeys(chords: readonly AXPKeyboardShortcutChord[]): string;
|
|
1101
|
+
private ensureHelpShortcutRegistered;
|
|
1102
|
+
private createRegistrationId;
|
|
1103
|
+
private unregister;
|
|
1104
|
+
private ensureListener;
|
|
1105
|
+
private readonly onDocumentKeyDown;
|
|
1106
|
+
private resolveActiveCandidates;
|
|
1107
|
+
private isRegistrationActive;
|
|
1108
|
+
private isRtlProfile;
|
|
1109
|
+
private buildHelpEntries;
|
|
1110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPKeyboardShortcutRegistry, never>;
|
|
1111
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPKeyboardShortcutRegistry>;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
/** Resolved chord string used by dialog footer shortcut matching. */
|
|
1115
|
+
type AXPDialogActionShortcut = AXPKeyboardShortcutChord;
|
|
1116
|
+
declare const DEFAULT_CANCEL_DIALOG_ACTION_SHORTCUTS: readonly AXPDialogActionShortcut[];
|
|
1117
|
+
declare const DEFAULT_SUBMIT_DIALOG_ACTION_SHORTCUTS: readonly AXPDialogActionShortcut[];
|
|
1118
|
+
interface AXPDialogActionOptions {
|
|
1119
|
+
/**
|
|
1120
|
+
* Additional keyboard shortcuts for this action (e.g. `'ctrl+s'` or `{ keys: 'ctrl+s' }`).
|
|
1121
|
+
* Merged with built-in defaults for `cancel` / `submit`. Pass `[]` to disable all shortcuts.
|
|
1122
|
+
*/
|
|
1123
|
+
shortcuts?: AXPKeyboardShortcut[];
|
|
1124
|
+
}
|
|
1125
|
+
interface ParsedShortcut {
|
|
1126
|
+
ctrl: boolean;
|
|
1127
|
+
shift: boolean;
|
|
1128
|
+
alt: boolean;
|
|
1129
|
+
meta: boolean;
|
|
1130
|
+
key: string;
|
|
1131
|
+
}
|
|
1132
|
+
/**
|
|
1133
|
+
* Parses a shortcut string such as `Enter`, `Escape`, or `ctrl+shift+s`.
|
|
1134
|
+
*/
|
|
1135
|
+
declare function parseDialogActionShortcut(shortcut: string): ParsedShortcut;
|
|
1136
|
+
/**
|
|
1137
|
+
* Returns true when the keyboard event matches the given shortcut definition.
|
|
1138
|
+
*/
|
|
1139
|
+
declare function matchesDialogActionShortcut(event: KeyboardEvent, shortcut: string): boolean;
|
|
1140
|
+
/**
|
|
1141
|
+
* Resolves footer action shortcuts: defaults when omitted, merge when extras are provided, none when `[]`.
|
|
1142
|
+
*/
|
|
1143
|
+
declare function resolveDialogActionShortcuts(defaults: readonly AXPKeyboardShortcut[], overrides?: readonly AXPKeyboardShortcut[]): AXPDialogActionShortcut[] | undefined;
|
|
1144
|
+
/**
|
|
1145
|
+
* Applies built-in footer shortcuts when actions are declared without `shortcuts`
|
|
1146
|
+
* (e.g. workflow `show-layout-popup` raw action config).
|
|
1147
|
+
*/
|
|
1148
|
+
declare function resolveConfiguredFooterActionShortcuts(command: string | undefined, explicit?: readonly AXPKeyboardShortcut[]): AXPDialogActionShortcut[] | undefined;
|
|
1149
|
+
/**
|
|
1150
|
+
* Whether a dialog footer shortcut may fire while focus is inside an editable field.
|
|
1151
|
+
*/
|
|
1152
|
+
declare function isDialogShortcutAllowedInEditableField(shortcut: string): boolean;
|
|
1153
|
+
/**
|
|
1154
|
+
* Normalizes dialog footer chord strings for {@link AXPKeyboardShortcutRegistry} (`Esc` → `escape`).
|
|
1155
|
+
*/
|
|
1156
|
+
declare function normalizeDialogActionShortcutChord(shortcut: string): string;
|
|
1157
|
+
/**
|
|
1158
|
+
* Whether a shortcut should fire given the current focus target.
|
|
1159
|
+
* Enter without modifiers is suppressed in multiline / rich-text fields.
|
|
1160
|
+
*/
|
|
1161
|
+
declare function shouldTriggerDialogActionShortcut(event: KeyboardEvent, shortcut: string): boolean;
|
|
1162
|
+
|
|
1163
|
+
interface AXPPopupFooterShortcutAction {
|
|
1164
|
+
/** i18n key or plain label for the help dialog. */
|
|
1165
|
+
title: string;
|
|
1166
|
+
/** Used to resolve default chords (`cancel` → Esc, `submit`/`save`/`select` → Enter/Ctrl+S). */
|
|
1167
|
+
command: string;
|
|
1168
|
+
shortcuts?: readonly AXPKeyboardShortcut[];
|
|
1169
|
+
disabled?: () => boolean;
|
|
1170
|
+
hidden?: () => boolean;
|
|
1171
|
+
handler: () => void | Promise<void>;
|
|
1172
|
+
}
|
|
1173
|
+
interface AXPPopupFooterKeyboardShortcutsOptions {
|
|
1174
|
+
registry: AXPKeyboardShortcutRegistry;
|
|
1175
|
+
owner: DestroyRef;
|
|
1176
|
+
elementRef: ElementRef<HTMLElement>;
|
|
1177
|
+
id: string;
|
|
1178
|
+
scope?: string;
|
|
1179
|
+
when?: () => boolean;
|
|
1180
|
+
actions: readonly AXPPopupFooterShortcutAction[];
|
|
1181
|
+
}
|
|
1182
|
+
/**
|
|
1183
|
+
* Registers popup footer shortcuts at modal priority so they win over page bindings and stop bubbling.
|
|
1184
|
+
*/
|
|
1185
|
+
declare function registerPopupFooterKeyboardShortcuts(options: AXPPopupFooterKeyboardShortcutsOptions): void;
|
|
1186
|
+
interface AXPPopupFooterKeyboardShortcutsSetupConfig {
|
|
1187
|
+
id?: string;
|
|
1188
|
+
scope?: string;
|
|
1189
|
+
when?: () => boolean;
|
|
1190
|
+
}
|
|
1191
|
+
/**
|
|
1192
|
+
* Binds footer shortcuts for AXPopupService-hosted components. Call from the popup constructor.
|
|
1193
|
+
*/
|
|
1194
|
+
declare function setupPopupFooterKeyboardShortcuts(getActions: () => AXPPopupFooterShortcutAction[], config?: AXPPopupFooterKeyboardShortcutsSetupConfig): void;
|
|
1195
|
+
|
|
1196
|
+
/** Global overlay flag + task count ({@link AXPLayoutThemeService}). */
|
|
1197
|
+
declare const OVERLAY_LAYOUT_TRACE_NS = "OVERLAY-LAYOUT";
|
|
1198
|
+
/** Root shell loading dialog sync ({@link AXPRootLayoutComponent}). */
|
|
1199
|
+
declare const OVERLAY_ROOT_LAYOUT_TRACE_NS = "OVERLAY-ROOT-LAYOUT";
|
|
1200
|
+
/** Details view page load and overlay release orchestration. */
|
|
1201
|
+
declare const OVERLAY_DETAILS_VIEW_TRACE_NS = "OVERLAY-DETAILS-VIEW";
|
|
1202
|
+
/** Widget tree mount / settle polling ({@link AXPWidgetContainerComponent}). */
|
|
1203
|
+
declare const OVERLAY_WIDGET_SETTLE_TRACE_NS = "OVERLAY-WIDGET-SETTLE";
|
|
1204
|
+
|
|
1205
|
+
/**
|
|
1206
|
+
* Feature definition in module manifest.
|
|
1207
|
+
* Defines available features with default values.
|
|
1208
|
+
*/
|
|
1209
|
+
interface AXPModuleFeatureDefinition {
|
|
1210
|
+
/**
|
|
1211
|
+
* Feature title (translation key or literal)
|
|
1212
|
+
*/
|
|
1213
|
+
title: string;
|
|
1214
|
+
/**
|
|
1215
|
+
* Feature description (translation key or literal)
|
|
1216
|
+
*/
|
|
1217
|
+
description?: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* Default value for the feature.
|
|
1220
|
+
* Used when user doesn't have explicit feature value.
|
|
1221
|
+
*/
|
|
1222
|
+
defaultValue: boolean | number | string | string[] | null;
|
|
1223
|
+
/**
|
|
1224
|
+
* Type hint for validation and UI rendering
|
|
1225
|
+
*/
|
|
1226
|
+
type?: 'boolean' | 'number' | 'string' | 'array';
|
|
1227
|
+
/**
|
|
1228
|
+
* Widget interface for feature configuration UI (optional)
|
|
1229
|
+
*/
|
|
1230
|
+
interface?: {
|
|
1231
|
+
type: string;
|
|
1232
|
+
options?: Record<string, any>;
|
|
1233
|
+
};
|
|
1234
|
+
}
|
|
1235
|
+
/**
|
|
1236
|
+
* Feature definition in array format (with key).
|
|
1237
|
+
* Used when features are defined as an array in manifest.
|
|
1238
|
+
*/
|
|
1239
|
+
interface AXPModuleFeatureDefinitionWithKey extends AXPModuleFeatureDefinition {
|
|
1240
|
+
/**
|
|
1241
|
+
* Full feature key (ModuleName.FeatureKey format).
|
|
1242
|
+
* When using array format, this must be provided.
|
|
1243
|
+
*/
|
|
1244
|
+
key: string;
|
|
1245
|
+
}
|
|
1246
|
+
/**
|
|
1247
|
+
* Module manifest structure.
|
|
1248
|
+
* Defines module metadata and dependencies.
|
|
1249
|
+
* Features are provided via AXP_FEATURE_DEFINITION_PROVIDER token.
|
|
1250
|
+
*/
|
|
1251
|
+
interface AXPModuleManifest {
|
|
1252
|
+
/**
|
|
1253
|
+
* Module name (must match RootConfig.module.name)
|
|
1254
|
+
*/
|
|
1255
|
+
name: string;
|
|
1256
|
+
/**
|
|
1257
|
+
* Module version
|
|
1258
|
+
*/
|
|
1259
|
+
version: string;
|
|
1260
|
+
/**
|
|
1261
|
+
* Module title (can reference const.ts or be translation key)
|
|
1262
|
+
*/
|
|
1263
|
+
title: string;
|
|
1264
|
+
/**
|
|
1265
|
+
* Module description (optional)
|
|
1266
|
+
*/
|
|
1267
|
+
description?: string;
|
|
1268
|
+
/**
|
|
1269
|
+
* Module icon (can reference const.ts)
|
|
1270
|
+
*/
|
|
1271
|
+
icon?: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* i18n scope name (can reference const.ts)
|
|
1274
|
+
*/
|
|
1275
|
+
i18n?: string;
|
|
1276
|
+
/**
|
|
1277
|
+
* Module dependencies.
|
|
1278
|
+
* Simple array format: module names (e.g., "MeasurementCore") or feature keys (e.g., "DataManagement.MetaDataDefinitions").
|
|
1279
|
+
* Features use ModuleName.FeatureKey format (dot separator).
|
|
1280
|
+
*/
|
|
1281
|
+
dependencies?: string[];
|
|
1282
|
+
/**
|
|
1283
|
+
* Whether this module is required (always enabled, cannot be disabled).
|
|
1284
|
+
* Required modules like 'auth' and 'common' are always available.
|
|
1285
|
+
*/
|
|
1286
|
+
required?: boolean;
|
|
1287
|
+
/**
|
|
1288
|
+
* Additional metadata
|
|
1289
|
+
*/
|
|
1290
|
+
metadata?: {
|
|
1291
|
+
[key: string]: any;
|
|
1292
|
+
};
|
|
1293
|
+
}
|
|
1294
|
+
/**
|
|
1295
|
+
* Full feature name with module prefix.
|
|
1296
|
+
* Format: ModuleName.FeatureKey
|
|
1297
|
+
*/
|
|
1298
|
+
type AXPFeatureName = string;
|
|
1299
|
+
/**
|
|
1300
|
+
* Feature definition with full name.
|
|
1301
|
+
*/
|
|
1302
|
+
interface AXPFeatureDefinition extends AXPModuleFeatureDefinition {
|
|
1303
|
+
/**
|
|
1304
|
+
* Full feature name (ModuleName.FeatureKey)
|
|
1305
|
+
*/
|
|
1306
|
+
name: AXPFeatureName;
|
|
1307
|
+
/**
|
|
1308
|
+
* Module name
|
|
1309
|
+
*/
|
|
1310
|
+
module: string;
|
|
1311
|
+
/**
|
|
1312
|
+
* Feature key (short name)
|
|
1313
|
+
*/
|
|
1314
|
+
key: string;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
* Data source definition for module names/titles from {@link AXPModuleManifestRegistry}.
|
|
1319
|
+
*/
|
|
1320
|
+
declare class AXPModuleManifestsDataSourceDefinition implements AXPDataSourceDefinitionProvider {
|
|
1321
|
+
private readonly manifestRegistry;
|
|
1322
|
+
items(): Promise<AXPDataSourceDefinition[]>;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* Registry service for module manifests.
|
|
1327
|
+
* Collects and manages all registered module manifests.
|
|
1328
|
+
*/
|
|
1329
|
+
declare class AXPModuleManifestRegistry {
|
|
1330
|
+
private readonly manifests;
|
|
1331
|
+
private readonly featureDefinitions;
|
|
1332
|
+
private readonly injector;
|
|
1333
|
+
private initializationPromise;
|
|
1334
|
+
private isInitialized;
|
|
1335
|
+
/**
|
|
1336
|
+
* Initialize registry by loading all manifest providers.
|
|
1337
|
+
* Should be called during app startup.
|
|
1338
|
+
* Safe to call multiple times - will only initialize once.
|
|
1339
|
+
*/
|
|
1340
|
+
initialize(): Promise<void>;
|
|
1341
|
+
/**
|
|
1342
|
+
* Internal initialization logic.
|
|
1343
|
+
*/
|
|
1344
|
+
private _doInitialize;
|
|
1345
|
+
/**
|
|
1346
|
+
* Register a module manifest.
|
|
1347
|
+
*/
|
|
1348
|
+
register(manifest: AXPModuleManifest): Promise<void>;
|
|
1349
|
+
/**
|
|
1350
|
+
* Get manifest for a module.
|
|
1351
|
+
*/
|
|
1352
|
+
get(moduleName: string): AXPModuleManifest | undefined;
|
|
1353
|
+
/**
|
|
1354
|
+
* Get all registered manifests.
|
|
1355
|
+
*/
|
|
1356
|
+
getAll(): AXPModuleManifest[];
|
|
1357
|
+
/**
|
|
1358
|
+
* Check if a module manifest is registered.
|
|
1359
|
+
*/
|
|
1360
|
+
has(moduleName: string): boolean;
|
|
1361
|
+
/**
|
|
1362
|
+
* Load feature definitions from all registered feature definition providers.
|
|
1363
|
+
* Features are automatically associated with modules based on the module name in the feature key.
|
|
1364
|
+
*/
|
|
1365
|
+
private loadFeatureDefinitions;
|
|
1366
|
+
/**
|
|
1367
|
+
* Get all feature definitions from all manifests.
|
|
1368
|
+
*/
|
|
1369
|
+
getAllFeatureDefinitions(): AXPFeatureDefinition[];
|
|
1370
|
+
/**
|
|
1371
|
+
* Get feature definition by full name.
|
|
1372
|
+
*/
|
|
1373
|
+
getFeatureDefinition(featureName: AXPFeatureName): AXPFeatureDefinition | undefined;
|
|
1374
|
+
/**
|
|
1375
|
+
* Check if a feature is defined in any manifest.
|
|
1376
|
+
*/
|
|
1377
|
+
isFeatureDefined(featureName: AXPFeatureName): boolean;
|
|
1378
|
+
/**
|
|
1379
|
+
* Get default value for a feature.
|
|
1380
|
+
* Returns undefined if feature is not defined.
|
|
1381
|
+
*/
|
|
1382
|
+
getFeatureDefault(featureName: AXPFeatureName): any;
|
|
1383
|
+
/**
|
|
1384
|
+
* Get all feature definitions for a specific module.
|
|
1385
|
+
*/
|
|
1386
|
+
getModuleFeatures(moduleName: string): AXPFeatureDefinition[];
|
|
1387
|
+
/**
|
|
1388
|
+
* Register a feature definition dynamically (e.g., from feature definition provider).
|
|
1389
|
+
* Used to add features that are defined at runtime via AXP_FEATURE_DEFINITION_PROVIDER.
|
|
1390
|
+
*/
|
|
1391
|
+
registerFeatureDefinition(definition: AXPFeatureDefinition): void;
|
|
1392
|
+
/**
|
|
1393
|
+
* Check if module dependencies are satisfied.
|
|
1394
|
+
* Returns array of missing dependencies.
|
|
1395
|
+
* Dependencies can be module names or feature keys (ModuleName.FeatureKey format).
|
|
1396
|
+
*/
|
|
1397
|
+
checkDependencies(moduleName: string): {
|
|
1398
|
+
missingModules: string[];
|
|
1399
|
+
missingFeatures: string[];
|
|
1400
|
+
};
|
|
1401
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPModuleManifestRegistry, never>;
|
|
1402
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPModuleManifestRegistry>;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
interface AXPStartUpTask {
|
|
1406
|
+
name: string;
|
|
1407
|
+
statusText: AXPMultiLanguageString;
|
|
1408
|
+
priority: number;
|
|
1409
|
+
run: () => Promise<void>;
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
declare class AXPAppStartUpService {
|
|
1413
|
+
private readonly translationService;
|
|
1414
|
+
private tasks;
|
|
1415
|
+
registerTask(task: AXPStartUpTask): void;
|
|
1416
|
+
runAllTasks(): Promise<void>;
|
|
1417
|
+
private updateStatus;
|
|
1418
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPAppStartUpService, never>;
|
|
1419
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPAppStartUpService>;
|
|
1420
|
+
}
|
|
1421
|
+
declare const AXPAppStartUpProvider: i0.EnvironmentProviders;
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* Module for managing module manifests initialization.
|
|
1425
|
+
* Handles the registration of manifest startup tasks.
|
|
1426
|
+
*/
|
|
1427
|
+
declare class AXPModuleManifestModule {
|
|
1428
|
+
/**
|
|
1429
|
+
* @ignore
|
|
1430
|
+
* Initializes module manifest tasks on module construction.
|
|
1431
|
+
*/
|
|
1432
|
+
constructor(appInitService: AXPAppStartUpService, injector: Injector);
|
|
1433
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPModuleManifestModule, never>;
|
|
1434
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPModuleManifestModule, never, never, never>;
|
|
1435
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AXPModuleManifestModule>;
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
/**
|
|
1439
|
+
* Context for feature definition providers.
|
|
1440
|
+
* Allows providers to add additional feature definitions dynamically.
|
|
1441
|
+
*/
|
|
1442
|
+
declare class AXPFeatureDefinitionProviderContext {
|
|
1443
|
+
private readonly features;
|
|
1444
|
+
/**
|
|
1445
|
+
* Add a feature definition.
|
|
1446
|
+
* @param key Full feature key (ModuleName:FeatureKey format with colon separator)
|
|
1447
|
+
* @param definition Feature definition
|
|
1448
|
+
*/
|
|
1449
|
+
addFeature(key: string, definition: AXPModuleFeatureDefinition): void;
|
|
1450
|
+
/**
|
|
1451
|
+
* Get all feature definitions.
|
|
1452
|
+
*/
|
|
1453
|
+
getFeatures(): Map<string, AXPModuleFeatureDefinition>;
|
|
1454
|
+
}
|
|
1455
|
+
/**
|
|
1456
|
+
* Interface for feature definition providers.
|
|
1457
|
+
* Used to dynamically provide feature definitions for modules.
|
|
1458
|
+
*/
|
|
1459
|
+
interface AXPFeatureDefinitionProvider {
|
|
1460
|
+
/**
|
|
1461
|
+
* Provide feature definitions.
|
|
1462
|
+
* @param context Context for adding feature definitions
|
|
1463
|
+
*/
|
|
1464
|
+
provide(context: AXPFeatureDefinitionProviderContext): Promise<void>;
|
|
1465
|
+
}
|
|
1466
|
+
/**
|
|
1467
|
+
* Injection token for feature definition providers.
|
|
1468
|
+
*/
|
|
1469
|
+
declare const AXP_FEATURE_DEFINITION_PROVIDER: InjectionToken<AXPFeatureDefinitionProvider[]>;
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* Session service interface for module provider operations.
|
|
1473
|
+
* Implementation: @acorex-platform/framework-client/auth
|
|
1474
|
+
*/
|
|
1475
|
+
interface AXPISessionService {
|
|
1476
|
+
isLoading$: any;
|
|
1477
|
+
status$: any;
|
|
1478
|
+
tenant: any | null;
|
|
1479
|
+
application: any | null;
|
|
1480
|
+
user: any | null;
|
|
1481
|
+
}
|
|
1482
|
+
/**
|
|
1483
|
+
* Injection token for session service.
|
|
1484
|
+
* Implementation: @acorex-platform/framework-client/auth
|
|
1485
|
+
*/
|
|
1486
|
+
declare const AXP_SESSION_SERVICE: InjectionToken<AXPISessionService>;
|
|
1487
|
+
/**
|
|
1488
|
+
* Injection token for module manifest providers.
|
|
1489
|
+
* Modules register their manifest providers using this token.
|
|
1490
|
+
*/
|
|
1491
|
+
declare const AXP_MODULE_MANIFEST_PROVIDER: InjectionToken<AXPModuleManifest[]>;
|
|
1492
|
+
|
|
1493
|
+
interface AXPIdleSchedulerWaitOptions {
|
|
1494
|
+
/** Max wait before running anyway (ms). Default 2000. */
|
|
1495
|
+
timeoutMs?: number;
|
|
1496
|
+
/** Minimum idle period passed to requestIdleCallback. Default 16. */
|
|
1497
|
+
minIdleMs?: number;
|
|
1498
|
+
}
|
|
1499
|
+
interface AXPIdleSchedulerEnqueueOptions {
|
|
1500
|
+
/** Dedupe key — replaces pending task with the same key. */
|
|
1501
|
+
key?: string;
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* Schedules low-priority work during browser idle periods.
|
|
1506
|
+
* Pauses when the tab is hidden or when explicitly paused (e.g. user-initiated seeding).
|
|
1507
|
+
*/
|
|
1508
|
+
declare class AXPIdleSchedulerService {
|
|
1509
|
+
private pausedState;
|
|
1510
|
+
readonly paused: i0.Signal<boolean>;
|
|
1511
|
+
private queue;
|
|
1512
|
+
private running;
|
|
1513
|
+
pause(): void;
|
|
1514
|
+
resume(): void;
|
|
1515
|
+
/**
|
|
1516
|
+
* Resolves after the browser reports idle time, or after timeoutMs (whichever comes first).
|
|
1517
|
+
*/
|
|
1518
|
+
waitForIdle(options?: AXPIdleSchedulerWaitOptions): Promise<void>;
|
|
1519
|
+
/** Enqueues async work processed sequentially during idle slices. */
|
|
1520
|
+
enqueue(task: () => Promise<void>, options?: AXPIdleSchedulerEnqueueOptions): void;
|
|
1521
|
+
private drainQueue;
|
|
1522
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPIdleSchedulerService, never>;
|
|
1523
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPIdleSchedulerService>;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* Represents a tag with text, color, and metadata
|
|
1528
|
+
*/
|
|
1529
|
+
interface AXPTag {
|
|
1530
|
+
id?: string;
|
|
1531
|
+
title: string;
|
|
1532
|
+
color: string;
|
|
1533
|
+
description?: string;
|
|
1534
|
+
scope?: 'system' | 'tenant' | 'user';
|
|
1535
|
+
}
|
|
1536
|
+
/**
|
|
1537
|
+
* Options for filtering tags
|
|
1538
|
+
*/
|
|
1539
|
+
interface AXPTagFilterOptions {
|
|
1540
|
+
scope?: ('system' | 'tenant' | 'user')[];
|
|
1541
|
+
search?: string;
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
/**
|
|
1545
|
+
* Abstract class for tag providers
|
|
1546
|
+
* Implement this to provide tags from different sources (system, tenant, user, etc.)
|
|
1547
|
+
*/
|
|
1548
|
+
declare abstract class AXPTagProvider {
|
|
1549
|
+
/**
|
|
1550
|
+
* Unique name for this provider (e.g., 'system', 'tenant', 'user')
|
|
1551
|
+
*/
|
|
1552
|
+
abstract name: string;
|
|
1553
|
+
/**
|
|
1554
|
+
* Provide tags from this source
|
|
1555
|
+
* @returns Promise of tags
|
|
1556
|
+
*/
|
|
1557
|
+
abstract provide(): Promise<AXPTag[]>;
|
|
1558
|
+
/**
|
|
1559
|
+
* Create a new tag (optional - not all providers support creation)
|
|
1560
|
+
* @param tag Tag to create
|
|
1561
|
+
* @returns Created tag with id
|
|
1562
|
+
*/
|
|
1563
|
+
create?(tag: Omit<AXPTag, 'id'>): Promise<AXPTag>;
|
|
1564
|
+
/**
|
|
1565
|
+
* Update an existing tag (optional)
|
|
1566
|
+
* @param tag Tag to update
|
|
1567
|
+
* @returns Updated tag
|
|
1568
|
+
*/
|
|
1569
|
+
update?(tag: AXPTag): Promise<AXPTag>;
|
|
1570
|
+
/**
|
|
1571
|
+
* Delete a tag (optional)
|
|
1572
|
+
* @param id Tag id to delete
|
|
1573
|
+
*/
|
|
1574
|
+
delete?(id: string): Promise<void>;
|
|
1575
|
+
}
|
|
1576
|
+
/**
|
|
1577
|
+
* Injection token for tag providers
|
|
1578
|
+
* Use this to register multiple tag providers
|
|
1579
|
+
*/
|
|
1580
|
+
declare const AXP_TAG_PROVIDER: InjectionToken<AXPTagProvider[]>;
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* Service for managing tags from multiple providers
|
|
1584
|
+
* Aggregates tags from all registered providers
|
|
1585
|
+
*/
|
|
1586
|
+
declare class AXPTagService {
|
|
1587
|
+
private providers;
|
|
1588
|
+
private cache;
|
|
1589
|
+
/**
|
|
1590
|
+
* Get all tags from all providers
|
|
1591
|
+
* @param options Filter options
|
|
1592
|
+
* @returns Promise of tags
|
|
1593
|
+
*/
|
|
1594
|
+
getTags(options?: AXPTagFilterOptions): Promise<AXPTag[]>;
|
|
1595
|
+
/**
|
|
1596
|
+
* Create a new tag using the appropriate provider
|
|
1597
|
+
* @param tag Tag to create
|
|
1598
|
+
* @param providerName Provider to use (defaults to first writable provider)
|
|
1599
|
+
* @returns Created tag
|
|
1600
|
+
*/
|
|
1601
|
+
createTag(tag: Omit<AXPTag, 'id'>, providerName?: string): Promise<AXPTag>;
|
|
1602
|
+
/**
|
|
1603
|
+
* Update an existing tag
|
|
1604
|
+
* @param tag Tag to update
|
|
1605
|
+
* @returns Updated tag
|
|
1606
|
+
*/
|
|
1607
|
+
updateTag(tag: AXPTag): Promise<AXPTag>;
|
|
1608
|
+
/**
|
|
1609
|
+
* Delete a tag
|
|
1610
|
+
* @param tagId Tag id to delete
|
|
1611
|
+
* @param scope Tag scope
|
|
1612
|
+
*/
|
|
1613
|
+
deleteTag(tagId: string, scope: string): Promise<void>;
|
|
1614
|
+
/**
|
|
1615
|
+
* Reload tags from all providers
|
|
1616
|
+
*/
|
|
1617
|
+
reload(): Promise<void>;
|
|
1618
|
+
/**
|
|
1619
|
+
* Load tags from all providers
|
|
1620
|
+
*/
|
|
1621
|
+
private loadTags;
|
|
1622
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPTagService, never>;
|
|
1623
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPTagService>;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
type AXPNavigateActionOptions = {
|
|
1627
|
+
router: {
|
|
1628
|
+
path: string;
|
|
1629
|
+
extras?: NavigationExtras & {
|
|
1630
|
+
target?: string;
|
|
1631
|
+
};
|
|
1632
|
+
};
|
|
1633
|
+
modal: {
|
|
1634
|
+
component: Type<unknown>;
|
|
1635
|
+
title: AXPMultiLanguageString;
|
|
1636
|
+
options?: unknown;
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
interface AXPNavigateActionCommand<T extends keyof AXPNavigateActionOptions> {
|
|
1640
|
+
type: T;
|
|
1641
|
+
options: AXPNavigateActionOptions[T];
|
|
1642
|
+
}
|
|
1643
|
+
declare function applySystemActionDefault(action: AXPActionMenuItem, type: AXPSystemActionType): AXPActionMenuItem;
|
|
1644
|
+
|
|
1645
|
+
declare class AXPImageUrlLogoConfig {
|
|
1646
|
+
url: string;
|
|
1647
|
+
width?: number | undefined;
|
|
1648
|
+
height?: number | undefined;
|
|
1649
|
+
constructor(url: string, width?: number | undefined, height?: number | undefined);
|
|
1650
|
+
}
|
|
1651
|
+
declare class AXPComponentLogoConfig {
|
|
1652
|
+
component: Type<unknown>;
|
|
1653
|
+
height?: number | undefined;
|
|
1654
|
+
width?: number | undefined;
|
|
1655
|
+
constructor(component: Type<unknown>);
|
|
1656
|
+
}
|
|
1657
|
+
declare class AXPIconLogoConfig {
|
|
1658
|
+
icon: string;
|
|
1659
|
+
color?: string | undefined;
|
|
1660
|
+
constructor(icon: string, color?: string | undefined);
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
declare class AXPCountdownPipe implements PipeTransform {
|
|
1664
|
+
private calendarService;
|
|
1665
|
+
private countdownSignal;
|
|
1666
|
+
private targetDate;
|
|
1667
|
+
private prevValue;
|
|
1668
|
+
transform(value: number): Observable<string>;
|
|
1669
|
+
private setupTimer;
|
|
1670
|
+
private updateTargetDate;
|
|
1671
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPCountdownPipe, never>;
|
|
1672
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<AXPCountdownPipe, "countdown", true>;
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
declare function applyFilterArray(dataArray: any[], filters?: AXDataSourceFilterOption[], logic?: 'and' | 'or'): any[];
|
|
1676
|
+
declare function applySortArray(dataArray: any, sorts: AXDataSourceSortOption[], locale?: string): any;
|
|
1677
|
+
declare function applyPagination<T>(dataArray: T[], skip: number, take: number): T[];
|
|
1678
|
+
declare function applyQueryArray<T>(dataArray: T[], query: AXDataSourceQuery): Promise<AXDataSourceCallbackResult<T>>;
|
|
1679
|
+
|
|
1680
|
+
/**
|
|
1681
|
+
* Screen Size Enum
|
|
1682
|
+
*/
|
|
1683
|
+
declare enum AXPScreenSize {
|
|
1684
|
+
Small = "small",
|
|
1685
|
+
Medium = "medium",
|
|
1686
|
+
Large = "large"
|
|
1687
|
+
}
|
|
1688
|
+
/**
|
|
1689
|
+
* Device Type Enum
|
|
1690
|
+
*/
|
|
1691
|
+
declare enum AXPDeviceType {
|
|
1692
|
+
Mobile = "mobile",
|
|
1693
|
+
Tablet = "tablet",
|
|
1694
|
+
Desktop = "desktop"
|
|
1695
|
+
}
|
|
1696
|
+
/**
|
|
1697
|
+
* Injectable service that provides reactive device and screen size information.
|
|
1698
|
+
* Monitors window resize events and updates signals accordingly.
|
|
1699
|
+
*/
|
|
1700
|
+
declare class AXPDeviceService {
|
|
1701
|
+
/**
|
|
1702
|
+
* Current screen size (Small, Medium, Large)
|
|
1703
|
+
*/
|
|
1704
|
+
readonly screenSize: i0.WritableSignal<AXPScreenSize>;
|
|
1705
|
+
/**
|
|
1706
|
+
* Current device type (Mobile, Tablet, Desktop)
|
|
1707
|
+
*/
|
|
1708
|
+
readonly deviceType: i0.WritableSignal<AXPDeviceType>;
|
|
1709
|
+
/**
|
|
1710
|
+
* Whether the device supports touch input
|
|
1711
|
+
*/
|
|
1712
|
+
readonly isTouchDevice: i0.WritableSignal<boolean>;
|
|
1713
|
+
/**
|
|
1714
|
+
* Whether the screen size is Small
|
|
1715
|
+
*/
|
|
1716
|
+
readonly isSmall: i0.Signal<boolean>;
|
|
1717
|
+
/**
|
|
1718
|
+
* Whether the screen size is Medium
|
|
1719
|
+
*/
|
|
1720
|
+
readonly isMedium: i0.Signal<boolean>;
|
|
1721
|
+
/**
|
|
1722
|
+
* Whether the screen size is Large
|
|
1723
|
+
*/
|
|
1724
|
+
readonly isLarge: i0.Signal<boolean>;
|
|
1725
|
+
/**
|
|
1726
|
+
* Whether the device is Mobile
|
|
1727
|
+
*/
|
|
1728
|
+
readonly isMobileDevice: i0.Signal<boolean>;
|
|
1729
|
+
/**
|
|
1730
|
+
* Whether the device is Tablet
|
|
1731
|
+
*/
|
|
1732
|
+
readonly isTabletDevice: i0.Signal<boolean>;
|
|
1733
|
+
/**
|
|
1734
|
+
* Whether the device is Desktop
|
|
1735
|
+
*/
|
|
1736
|
+
readonly isDesktopDevice: i0.Signal<boolean>;
|
|
1737
|
+
/**
|
|
1738
|
+
* Whether the device supports touch (alias for isTouchDevice)
|
|
1739
|
+
*/
|
|
1740
|
+
readonly isTouchScreen: i0.Signal<boolean>;
|
|
1741
|
+
private _resizeListener;
|
|
1742
|
+
constructor();
|
|
1743
|
+
/**
|
|
1744
|
+
* Update screen size and device type based on window width
|
|
1745
|
+
*/
|
|
1746
|
+
private _updateScreenSize;
|
|
1747
|
+
/**
|
|
1748
|
+
* Set up event listener for window resize
|
|
1749
|
+
*/
|
|
1750
|
+
private _setupResizeListener;
|
|
1751
|
+
/**
|
|
1752
|
+
* Remove event listener for window resize
|
|
1753
|
+
*/
|
|
1754
|
+
private _removeResizeListener;
|
|
1755
|
+
/**
|
|
1756
|
+
* Clean up resources when service is destroyed
|
|
1757
|
+
*/
|
|
1758
|
+
destroy(): void;
|
|
1759
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPDeviceService, never>;
|
|
1760
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPDeviceService>;
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
/**
|
|
1764
|
+
* Service for applying and resetting text highlighting within specified HTML elements.
|
|
1765
|
+
*/
|
|
1766
|
+
declare class AXHighlightService {
|
|
1767
|
+
private querySelector;
|
|
1768
|
+
private searchValue;
|
|
1769
|
+
constructor();
|
|
1770
|
+
/**
|
|
1771
|
+
* Highlights all occurrences of a search value within the elements matching the provided query selector.
|
|
1772
|
+
*
|
|
1773
|
+
* @param querySelector - CSS selector to identify target elements.
|
|
1774
|
+
* @param searchValue - Text to search and highlight.
|
|
1775
|
+
*/
|
|
1776
|
+
highlight(querySelector: string, searchValue: string): void;
|
|
1777
|
+
/**
|
|
1778
|
+
* Resets all highlighted text within the elements matching the previously used query selector.
|
|
1779
|
+
*/
|
|
1780
|
+
clear(): void;
|
|
1781
|
+
/**
|
|
1782
|
+
* Applies highlighting to a specific element by matching text against the search value.
|
|
1783
|
+
*
|
|
1784
|
+
* @param element - The HTML element to apply highlights to.
|
|
1785
|
+
*/
|
|
1786
|
+
private applyHighlight;
|
|
1787
|
+
/**
|
|
1788
|
+
* Recursively applies highlighting to text nodes within an element.
|
|
1789
|
+
*
|
|
1790
|
+
* @param element - The current node being processed.
|
|
1791
|
+
* @param searchRegex - Regular expression for matching text to highlight.
|
|
1792
|
+
*/
|
|
1793
|
+
private recursivelyHighlight;
|
|
1794
|
+
/**
|
|
1795
|
+
* Generates the HTML structure for highlighted text.
|
|
1796
|
+
*
|
|
1797
|
+
* @param textContent - The original text content to process.
|
|
1798
|
+
* @param searchRegex - Regular expression for matching text to highlight.
|
|
1799
|
+
* @returns A string of HTML with highlighted portions wrapped in span elements.
|
|
1800
|
+
*/
|
|
1801
|
+
private createHighlightedHTML;
|
|
1802
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXHighlightService, never>;
|
|
1803
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXHighlightService>;
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* Creates a provider instance within an injection context.
|
|
1808
|
+
* Handles dynamic import, injector resolution, and provider instantiation.
|
|
1809
|
+
*
|
|
1810
|
+
* @param loader - Function that returns a promise resolving to the provider class
|
|
1811
|
+
* @returns Promise that resolves to the provider instance
|
|
1812
|
+
*
|
|
1813
|
+
* @example
|
|
1814
|
+
* ```typescript
|
|
1815
|
+
* useFactory: () => createProviderWithInjectionContext(() =>
|
|
1816
|
+
* import('./settings.provider').then(m => m.AXMSettingProvider)
|
|
1817
|
+
* )
|
|
1818
|
+
* ```
|
|
1819
|
+
*/
|
|
1820
|
+
declare function createProviderWithInjectionContext<T>(loader: () => Promise<new () => T>): Promise<T>;
|
|
1821
|
+
/**
|
|
1822
|
+
* Creates a provider configuration for lazy-loaded providers with injection context.
|
|
1823
|
+
* Simplifies provider registration in NgModule providers array.
|
|
1824
|
+
*
|
|
1825
|
+
* @param token - The injection token to provide
|
|
1826
|
+
* @param loader - Function that returns a promise resolving to the provider class
|
|
1827
|
+
* @param multi - Optional. Whether the provider is a multi-provider (array of values). Defaults to `true`. Pass `false` for a single provider.
|
|
1828
|
+
* @returns Provider configuration object
|
|
1829
|
+
*
|
|
1830
|
+
* @example
|
|
1831
|
+
* ```typescript
|
|
1832
|
+
* // Multi-provider (default)
|
|
1833
|
+
* provideLazyProvider(
|
|
1834
|
+
* AXP_DATASOURCE_DEFINITION_PROVIDER,
|
|
1835
|
+
* () => import('./datasource.provider').then(m => m.AXMDataSourceProvider)
|
|
1836
|
+
* )
|
|
1837
|
+
*
|
|
1838
|
+
* // Single provider
|
|
1839
|
+
* provideLazyProvider(
|
|
1840
|
+
* SOME_TOKEN,
|
|
1841
|
+
* () => import('./my.provider').then(m => m.MyProvider),
|
|
1842
|
+
* false
|
|
1843
|
+
* )
|
|
1844
|
+
* ```
|
|
1845
|
+
*/
|
|
1846
|
+
declare function provideLazyProvider<TProvider>(token: InjectionToken<any>, loader: () => Promise<new () => TProvider>, multi?: boolean): Provider;
|
|
1847
|
+
|
|
1848
|
+
export { AXHighlightService, AXPActivityLogProvider, AXPActivityLogService, AXPAppStartUpProvider, AXPAppStartUpService, AXPBroadcastEventService, AXPCatalogScopeDefinitionProviderService, AXPCatalogScopeDefinitionsDataSourceDefinition, AXPColorPaletteProvider, AXPColorPaletteService, AXPColumnWidthService, AXPComponentLogoConfig, AXPComponentSlot, AXPComponentSlotDirective, AXPComponentSlotModule, AXPComponentSlotRegistryService, AXPContentCheckerDirective, AXPContextDefinitionProviderService, AXPContextEvalFactory, AXPContextStore, AXPCountdownPipe, AXPDataGenerator, AXPDataSourceDefinitionProviderService, AXPDblClickDirective, AXPDebugService, AXPDefaultColorPalettesProvider, AXPDeviceService, AXPDeviceType, AXPDistributedEventListenerService, AXPElementDataDirective, AXPExpressionEvaluatorScopeProviderContext, AXPExpressionEvaluatorScopeProviderService, AXPExpressionEvaluatorService, AXPFeatureDefinitionProviderContext, AXPGridLayoutDirective, AXPHookService, AXPIconLogoConfig, AXPIdleSchedulerService, AXPImageUrlLogoConfig, AXPKeyboardShortcutRegistry, AXPModuleManifestModule, AXPModuleManifestRegistry, AXPModuleManifestsDataSourceDefinition, AXPScreenSize, AXPTagProvider, AXPTagService, AXP_ACTIVITY_LOG_PROVIDER, AXP_CATALOG_SCOPE_DEFINITION_PROVIDER, AXP_COLOR_PALETTE_PROVIDER, AXP_COLUMN_WIDTH_PROVIDER, AXP_CONTEXT_DEFINITION_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, AX_OVERLAY_CONTAINER_SELECTOR, AX_OVERLAY_PANE_SELECTOR, DEFAULT_CANCEL_DIALOG_ACTION_SHORTCUTS, DEFAULT_SUBMIT_DIALOG_ACTION_SHORTCUTS, FORM_DIRTY_TRACE_NS, OVERLAY_DETAILS_VIEW_TRACE_NS, OVERLAY_LAYOUT_TRACE_NS, OVERLAY_ROOT_LAYOUT_TRACE_NS, OVERLAY_WIDGET_SETTLE_TRACE_NS, applyContextEvalPipes, applyFilterArray, applyPagination, applyQueryArray, applySortArray, applySystemActionDefault, chordToKbdItemKeys, contextEvalWithPipes, createProviderWithInjectionContext, defaultColumnWidthProvider, findOverlayContainerAncestor, formatKeyboardShortcutChord, formatKeyboardShortcutChords, getNestedVisibleOverlayPanes, getPrimaryKeyboardShortcutChord, getTopVisibleOverlayContainer, getVisibleAnchoredOverlayPanes, getVisibleOverlayContainers, hasForegroundOverlayLayer, isDialogShortcutAllowedInEditableField, isHorizontalDirectionalShortcutKey, isKeyboardTargetInsideEditableField, isMacPlatform, isVisibleOverlayElement, matchesDialogActionShortcut, matchesKeyboardShortcutChord, mirrorHorizontalDirectionalKey, normalizeContextEvalPipes, normalizeDialogActionShortcutChord, normalizeExpressionTemplate, normalizeKeyboardShortcut, normalizeKeyboardShortcuts, objectKeyValueTransforms, parseDialogActionShortcut, parseKeyboardShortcutChord, provideLazyProvider, registerPopupFooterKeyboardShortcuts, resolveConfiguredFooterActionShortcuts, resolveDialogActionShortcuts, resolveDisplayShortcutChord, resolveEffectiveDirectionBehavior, resolveSemanticDirectionalKey, setupPopupFooterKeyboardShortcuts, shouldDeferEscapeToOpenOverlay, shouldTriggerDialogActionShortcut };
|
|
1849
|
+
export type { AXPActivityLog, AXPActivityLogChange, AXPCatalogScopeDefinition, AXPCatalogScopeDefinitionProvider, AXPColorPalette, AXPColorPaletteFilterOptions, AXPColumnWidthMatcher, AXPColumnWidthProvider, AXPComponentSlotConfig, AXPComponentSlotModuleConfigs, AXPContextDefinition, AXPContextDefinitionAiHints, AXPContextDefinitionProvider, AXPContextEvalFn, AXPContextEvalOptions, AXPContextEvalPipe, AXPContextEvalPipeName, AXPContextEvalPipeSpec, AXPDataSourceArray, AXPDataSourceDataFieldDefinition, AXPDataSourceDefinition, AXPDataSourceDefinitionProvider, AXPDataSourceSample, AXPDataSourceType, AXPDataSourceValue, AXPDebugData, AXPDebugDataFactory, AXPDebugDataInput, AXPDialogActionOptions, AXPDialogActionShortcut, AXPDistributedEventListenerProvider, AXPDistributedEventListenerProviderToken, AXPExpressionEvaluatorScope, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviders, AXPFeatureDefinition, AXPFeatureDefinitionProvider, AXPFeatureName, AXPISessionService, AXPIdleSchedulerEnqueueOptions, AXPIdleSchedulerWaitOptions, AXPKeyboardShortcutFormatOptions, AXPKeyboardShortcutRegisterOptions, AXPLazyDataSource, AXPModuleFeatureDefinition, AXPModuleFeatureDefinitionWithKey, AXPModuleManifest, AXPNavigateActionCommand, AXPNavigateActionOptions, AXPPopupFooterKeyboardShortcutsOptions, AXPPopupFooterKeyboardShortcutsSetupConfig, AXPPopupFooterShortcutAction, AXPStartUpTask, AXPTag, AXPTagFilterOptions, AXPValueTransformerFunction, AXPValueTransformerFunctions, ColumnNameMatcher, ColumnWidthValue, IColumnWithWidth, WidgetTypeMatcher };
|