@acorex/platform 20.8.13 → 20.8.14
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/{types/acorex-platform-auth.d.ts → auth/index.d.ts} +2 -14
- package/{types/acorex-platform-common.d.ts → common/index.d.ts} +30 -302
- package/{types/acorex-platform-core.d.ts → core/index.d.ts} +44 -188
- package/{types/acorex-platform-domain.d.ts → domain/index.d.ts} +412 -744
- package/fesm2022/acorex-platform-auth.mjs +27 -125
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/{acorex-platform-common-common-settings.provider-Bi1RYif5.mjs → acorex-platform-common-common-settings.provider-DVvuLUfF.mjs} +32 -30
- package/fesm2022/acorex-platform-common-common-settings.provider-DVvuLUfF.mjs.map +1 -0
- package/fesm2022/acorex-platform-common.mjs +205 -711
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +127 -420
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-domain.mjs +830 -561
- package/fesm2022/acorex-platform-domain.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +114 -634
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-components-binding-expression-editor-popup.component-CXEdvDTf.mjs → acorex-platform-layout-components-binding-expression-editor-popup.component-CSxCnzwU.mjs} +9 -9
- package/fesm2022/acorex-platform-layout-components-binding-expression-editor-popup.component-CSxCnzwU.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-components.mjs +877 -3362
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +204 -456
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +10062 -14672
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +171 -413
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +441 -507
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-button-widget-designer.component-Dy7jF-oD.mjs → acorex-platform-layout-widgets-button-widget-designer.component-CPBzE96V.mjs} +10 -10
- package/fesm2022/acorex-platform-layout-widgets-button-widget-designer.component-CPBzE96V.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-CDYAGBku.mjs → acorex-platform-layout-widgets-file-list-popup.component-Dtv6U3df.mjs} +76 -21
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-Dtv6U3df.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-image-preview.popup-C_EPAvCU.mjs → acorex-platform-layout-widgets-image-preview.popup-QxJfswhK.mjs} +7 -6
- package/fesm2022/acorex-platform-layout-widgets-image-preview.popup-QxJfswhK.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-page-widget-designer.component-D10yO28c.mjs → acorex-platform-layout-widgets-page-widget-designer.component-CVdssZBD.mjs} +12 -12
- package/fesm2022/acorex-platform-layout-widgets-page-widget-designer.component-CVdssZBD.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-BCxE0RTB.mjs +111 -0
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-BCxE0RTB.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-edit-popup.component-DmzNTYiS.mjs → acorex-platform-layout-widgets-tabular-data-edit-popup.component-DVaZN9QN.mjs} +5 -5
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-DVaZN9QN.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-tabular-data-view-popup.component-BNG_588B.mjs → acorex-platform-layout-widgets-tabular-data-view-popup.component-DPGHgXa6.mjs} +4 -4
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-view-popup.component-DPGHgXa6.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-text-block-widget-designer.component-Vo4fWHtX.mjs → acorex-platform-layout-widgets-text-block-widget-designer.component-CdiNW691.mjs} +6 -6
- package/fesm2022/acorex-platform-layout-widgets-text-block-widget-designer.component-CdiNW691.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets.mjs +3408 -5611
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-native.mjs +7 -8
- package/fesm2022/acorex-platform-native.mjs.map +1 -1
- package/fesm2022/acorex-platform-runtime.mjs +166 -391
- package/fesm2022/acorex-platform-runtime.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-D4hU2SCE.mjs +160 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-D4hU2SCE.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-D2CtNrSn.mjs +1716 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-D2CtNrSn.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BVTklnzs.mjs +120 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-BVTklnzs.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-BfCeUU5F.mjs → acorex-platform-themes-default-entity-master-single-view.component-rGsMVAZj.mjs} +23 -16
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-rGsMVAZj.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-error-401.component-C7EYJzSr.mjs → acorex-platform-themes-default-error-401.component-53VB-PS_.mjs} +4 -4
- package/fesm2022/acorex-platform-themes-default-error-401.component-53VB-PS_.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-error-404.component-7MVLMwIa.mjs → acorex-platform-themes-default-error-404.component-DVF9soT5.mjs} +4 -4
- package/fesm2022/acorex-platform-themes-default-error-404.component-DVF9soT5.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-error-offline.component-CwNNHzZn.mjs +19 -0
- package/fesm2022/acorex-platform-themes-default-error-offline.component-CwNNHzZn.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +61 -1784
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-column.component-CqkWJYdv.mjs → acorex-platform-themes-shared-icon-chooser-column.component-TJ9PWHMY.mjs} +6 -6
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-column.component-TJ9PWHMY.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-view.component-BOTuLdWN.mjs → acorex-platform-themes-shared-icon-chooser-view.component-BHcKkIx0.mjs} +6 -6
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-BHcKkIx0.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-settings.provider-DK6R87Lf.mjs → acorex-platform-themes-shared-settings.provider-DSs1o1M6.mjs} +25 -24
- package/fesm2022/acorex-platform-themes-shared-settings.provider-DSs1o1M6.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-BUPs84MI.mjs +65 -0
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-BUPs84MI.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-BotknoHn.mjs +64 -0
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-BotknoHn.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +305 -408
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +100 -359
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/fesm2022/acorex-platform.mjs.map +1 -1
- package/{types/acorex-platform-layout-builder.d.ts → layout/builder/index.d.ts} +38 -160
- package/{types/acorex-platform-layout-components.d.ts → layout/components/index.d.ts} +125 -854
- package/{types/acorex-platform-layout-designer.d.ts → layout/designer/index.d.ts} +18 -96
- package/{types/acorex-platform-layout-entity.d.ts → layout/entity/index.d.ts} +65 -848
- package/{types/acorex-platform-layout-views.d.ts → layout/views/index.d.ts} +47 -80
- package/{types/acorex-platform-layout-widget-core.d.ts → layout/widget-core/index.d.ts} +197 -274
- package/{types/acorex-platform-layout-widgets.d.ts → layout/widgets/index.d.ts} +124 -608
- package/{types/acorex-platform-native.d.ts → native/index.d.ts} +7 -0
- package/package.json +31 -31
- package/runtime/index.d.ts +307 -0
- package/{types/acorex-platform-themes-default.d.ts → themes/default/index.d.ts} +4 -113
- package/{types/acorex-platform-themes-shared.d.ts → themes/shared/index.d.ts} +4 -5
- package/{types/acorex-platform-workflow.d.ts → workflow/index.d.ts} +81 -162
- package/fesm2022/acorex-platform-common-common-settings.provider-Bi1RYif5.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-components-binding-expression-editor-popup.component-CXEdvDTf.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-button-widget-designer.component-Dy7jF-oD.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-CDYAGBku.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-image-preview.popup-C_EPAvCU.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-page-widget-designer.component-D10yO28c.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-BGO75IMz.mjs +0 -116
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-BGO75IMz.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-DmzNTYiS.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-view-popup.component-BNG_588B.mjs.map +0 -1
- package/fesm2022/acorex-platform-layout-widgets-text-block-widget-designer.component-Vo4fWHtX.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Cx1lLUaR.mjs +0 -160
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Cx1lLUaR.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-AOrcgjDF.mjs +0 -120
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-AOrcgjDF.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-BfCeUU5F.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-error-401.component-C7EYJzSr.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-error-404.component-7MVLMwIa.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-error-offline.component-DR6G8gPC.mjs +0 -19
- package/fesm2022/acorex-platform-themes-default-error-offline.component-DR6G8gPC.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-column.component-CqkWJYdv.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-BOTuLdWN.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-settings.provider-DK6R87Lf.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-D566Kdvy.mjs +0 -94
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-D566Kdvy.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-D7-rCGl7.mjs +0 -86
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-D7-rCGl7.mjs.map +0 -1
- package/types/acorex-platform-runtime.d.ts +0 -571
- /package/{types/acorex-platform.d.ts → index.d.ts} +0 -0
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { InjectionToken, Signal, ComponentRef, OnInit, EventEmitter, TemplateRef, Injector, WritableSignal, SimpleChanges, ModuleWithProviders } from '@angular/core';
|
|
3
|
+
import { AXPOptionsData, AXPDataType, AXPExpression, AXPWidgetTriggers, AXPMetaData, AXPValueTransformerFunctions, AXPValidationRules, AXPPartialNested, AXPExpressionEvaluatorService } from '@acorex/platform/core';
|
|
4
4
|
import * as _ngrx_signals from '@ngrx/signals';
|
|
5
|
-
import * as _acorex_platform_core from '@acorex/platform/core';
|
|
6
|
-
import { AXPOptionsData, AXPMultiLanguageString, AXPDefinitionCategory, AXPDataType, AXPExpression, AXPWidgetTriggers, AXPMetaData, AXPValueTransformerFunctions, AXPValidationRules, AXPPartialNested, AXPProperty, AXPContextChangeEvent, AXPExpressionEvaluatorService } from '@acorex/platform/core';
|
|
7
|
-
export { AXPDefinitionCategory, normalizeDefinitionCategories } from '@acorex/platform/core';
|
|
8
5
|
import { AXValueChangedEvent, AXDataSource } from '@acorex/cdk/common';
|
|
9
6
|
import { Subject, BehaviorSubject } from 'rxjs';
|
|
7
|
+
import * as _acorex_platform_layout_widget_core from '@acorex/platform/layout/widget-core';
|
|
10
8
|
import { AXDataTableColumnComponent } from '@acorex/components/data-table';
|
|
11
9
|
import * as i7 from '@acorex/core/translation';
|
|
12
10
|
import { AXTranslationService } from '@acorex/core/translation';
|
|
@@ -15,86 +13,18 @@ import * as i4 from '@angular/common';
|
|
|
15
13
|
import * as i5 from '@angular/cdk/portal';
|
|
16
14
|
import * as i6 from '@acorex/components/skeleton';
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Rendering = "rendering",// The page is being rendered.
|
|
21
|
-
Rendered = "rendered",// The rendering process is complete. should be renamed to idle
|
|
22
|
-
Processing = "processing",// The page is performing a task or interaction.
|
|
23
|
-
Submitting = "submitting",// The form is being submitted.
|
|
24
|
-
Submitted = "submitted",// Submission is completed.
|
|
25
|
-
Validating = "validating",// The form is being validated.
|
|
26
|
-
Validated = "validated",// Validation is completed.
|
|
27
|
-
Error = "error"
|
|
28
|
-
}
|
|
29
|
-
declare enum AXPWidgetStatus {
|
|
30
|
-
Rendering = "rendering",// The widget is being rendered.
|
|
31
|
-
Rendered = "rendered",// The rendering process is complete.
|
|
32
|
-
Processing = "processing",// The widget is performing a task or interaction.
|
|
33
|
-
Error = "error"
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
type AXPWidgetCoreElementAPI = {
|
|
37
|
-
[name: string]: Subject<any> | Function;
|
|
38
|
-
};
|
|
39
|
-
type AXPWidgetCoreElementAction = {
|
|
16
|
+
interface AXPWidgetCategory {
|
|
17
|
+
name: string;
|
|
40
18
|
title: string;
|
|
41
|
-
|
|
42
|
-
icon?: string;
|
|
43
|
-
color?: string;
|
|
44
|
-
disabled?: boolean | string;
|
|
45
|
-
hidden?: boolean | string;
|
|
46
|
-
zone?: 'header' | 'footer';
|
|
47
|
-
placement?: 'prefix' | 'suffix';
|
|
48
|
-
scope?: 'primary' | 'secondary';
|
|
49
|
-
/** When `command` is not `widget:<name>.<action>`, widget name used to resolve `api` for `hidden` / `disabled` expressions. */
|
|
50
|
-
predicateApiWidgetName?: string;
|
|
51
|
-
};
|
|
52
|
-
declare abstract class AXPWidgetCoreElement {
|
|
53
|
-
abstract get id(): string | null;
|
|
54
|
-
abstract get status(): Signal<AXPWidgetStatus>;
|
|
55
|
-
api(): AXPWidgetCoreElementAPI;
|
|
56
|
-
actions(): AXPWidgetCoreElementAction[];
|
|
57
|
-
}
|
|
58
|
-
declare class AXPWidgetCoreService {
|
|
59
|
-
private readonly variables$;
|
|
60
|
-
private readonly functions$;
|
|
61
|
-
readonly onRefresh: Subject<void>;
|
|
62
|
-
private widgets;
|
|
63
|
-
private readonly onWidgetRegistered;
|
|
64
|
-
private readonly status$;
|
|
65
|
-
readonly status: Signal<AXPPageStatus>;
|
|
66
|
-
readonly isBusy: Signal<boolean>;
|
|
67
|
-
registeredWidgetsCount: _angular_core.WritableSignal<number>;
|
|
68
|
-
get variables(): any;
|
|
69
|
-
get functions(): {
|
|
70
|
-
[key: string]: Function;
|
|
71
|
-
};
|
|
72
|
-
updateStatus(): void;
|
|
73
|
-
private detectStatus;
|
|
74
|
-
refresh(): void;
|
|
75
|
-
setStatus(status: AXPPageStatus): void;
|
|
76
|
-
setVariables(keysValues: any): void;
|
|
77
|
-
setVariables(key: string, value: any): void;
|
|
78
|
-
setFunctions(keysValues: any): void;
|
|
79
|
-
setFunctions(key: string, value: any): void;
|
|
80
|
-
registerWidget(id: string, widget: AXPWidgetCoreElement): void;
|
|
81
|
-
getWidget(id: string): AXPWidgetCoreElement | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* Waits until a widget with the given id is registered, then resolves with it.
|
|
84
|
-
* If the widget is already registered, resolves immediately.
|
|
85
|
-
* Optionally accepts a timeout (in ms) after which it resolves with undefined.
|
|
86
|
-
*/
|
|
87
|
-
waitForWidget(id: string, timeoutMs?: number): Promise<AXPWidgetCoreElement | undefined>;
|
|
88
|
-
/**
|
|
89
|
-
* Returns a list of registered widget ids (names).
|
|
90
|
-
*/
|
|
91
|
-
listRegisteredWidgetNames(): string[];
|
|
92
|
-
ngOnDestroy(): void;
|
|
93
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPWidgetCoreService, never>;
|
|
94
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPWidgetCoreService>;
|
|
19
|
+
order: number;
|
|
95
20
|
}
|
|
21
|
+
declare const AXP_WIDGETS_LAYOUT_CATEGORY: AXPWidgetCategory;
|
|
22
|
+
declare const AXP_WIDGETS_EDITOR_CATEGORY: AXPWidgetCategory;
|
|
23
|
+
declare const AXP_WIDGETS_ACTION_CATEGORY: AXPWidgetCategory;
|
|
24
|
+
declare const AXP_WIDGETS_ADVANCE_CATEGORY: AXPWidgetCategory;
|
|
25
|
+
declare const AXP_WIDGETS_CATEGORIES: AXPWidgetCategory[];
|
|
96
26
|
|
|
97
|
-
type AXPWidgetGroup = 'form-element' | 'dashboard-widget' | 'form-template' | 'property-editor' | 'meta-data' | 'setting-widget' | 'entity-widget' | 'utility-widget'
|
|
27
|
+
type AXPWidgetGroup = 'form-element' | 'dashboard-widget' | 'form-template' | 'property-editor' | 'meta-data' | 'setting-widget' | 'entity-widget' | 'utility-widget';
|
|
98
28
|
declare enum AXPWidgetGroupEnum {
|
|
99
29
|
FormElement = "form-element",
|
|
100
30
|
DashboardWidget = "dashboard-widget",
|
|
@@ -103,8 +33,7 @@ declare enum AXPWidgetGroupEnum {
|
|
|
103
33
|
MetaData = "meta-data",
|
|
104
34
|
SettingWidget = "setting-widget",
|
|
105
35
|
EntityWidget = "entity-widget",
|
|
106
|
-
UtilityWidget = "utility-widget"
|
|
107
|
-
BaseWidget = "base-widget"
|
|
36
|
+
UtilityWidget = "utility-widget"
|
|
108
37
|
}
|
|
109
38
|
|
|
110
39
|
interface AXPWidgetTypesMap {
|
|
@@ -128,7 +57,6 @@ interface AXPWidgetTypesMap {
|
|
|
128
57
|
pageLayout: 'page-layout';
|
|
129
58
|
repeaterLayout: 'repeater-layout';
|
|
130
59
|
textBlockLayout: 'text-block-layout';
|
|
131
|
-
alertBoxLayout: 'alert-box-layout';
|
|
132
60
|
fileUploader: 'file-uploader';
|
|
133
61
|
fileTypeExtension: 'file-type-extension';
|
|
134
62
|
map: 'map';
|
|
@@ -178,9 +106,19 @@ interface AXPWidgetTypesMap {
|
|
|
178
106
|
betweenValidation: 'between-validation';
|
|
179
107
|
equalValidation: 'equal-validation';
|
|
180
108
|
callbackValidation: 'callback-validation';
|
|
109
|
+
donutChart: 'donut-chart';
|
|
110
|
+
barChart: 'bar-chart';
|
|
111
|
+
lineChart: 'line-chart';
|
|
112
|
+
gaugeChart: 'gauge-chart';
|
|
113
|
+
stickyNote: 'sticky-note';
|
|
114
|
+
clockCalendar: 'clock-calendar';
|
|
115
|
+
analogClock: 'analog-clock';
|
|
116
|
+
weather: 'weather';
|
|
117
|
+
minimalWeather: 'minimal-weather';
|
|
118
|
+
advancedWeather: 'advanced-weather';
|
|
181
119
|
metaData: 'meta-data-editor';
|
|
182
120
|
templateEditor: 'template-box-editor';
|
|
183
|
-
|
|
121
|
+
themePaletteChooser: 'theme-palette-chooser';
|
|
184
122
|
themeModeChooser: 'theme-mode-chooser';
|
|
185
123
|
menuOrientationChooser: 'menu-orientation-chooser';
|
|
186
124
|
fontStyleChooser: 'font-style-chooser';
|
|
@@ -190,6 +128,7 @@ interface AXPWidgetTypesMap {
|
|
|
190
128
|
themeColorChooser: 'theme-color-chooser';
|
|
191
129
|
panel: 'panel';
|
|
192
130
|
notification: 'notification';
|
|
131
|
+
taskBoard: 'task-board';
|
|
193
132
|
comment: 'comment';
|
|
194
133
|
list: 'list-editor';
|
|
195
134
|
dataList: 'data-list';
|
|
@@ -197,11 +136,27 @@ interface AXPWidgetTypesMap {
|
|
|
197
136
|
entityList: 'entity-list';
|
|
198
137
|
stepWizard: 'step-wizard';
|
|
199
138
|
documentUploader: 'document-uploader';
|
|
200
|
-
documentFileTypeFilter: 'document-file-type-filter';
|
|
201
139
|
editorJs: 'editor-js-editor';
|
|
202
140
|
progressBar: 'progress-bar-editor';
|
|
203
141
|
rate: 'rate-picker-editor';
|
|
204
|
-
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare enum AXPPageStatus {
|
|
145
|
+
Idle = "idle",// The page is idle.
|
|
146
|
+
Rendering = "rendering",// The page is being rendered.
|
|
147
|
+
Rendered = "rendered",// The rendering process is complete. should be renamed to idle
|
|
148
|
+
Processing = "processing",// The page is performing a task or interaction.
|
|
149
|
+
Submitting = "submitting",// The form is being submitted.
|
|
150
|
+
Submitted = "submitted",// Submission is completed.
|
|
151
|
+
Validating = "validating",// The form is being validated.
|
|
152
|
+
Validated = "validated",// Validation is completed.
|
|
153
|
+
Error = "error"
|
|
154
|
+
}
|
|
155
|
+
declare enum AXPWidgetStatus {
|
|
156
|
+
Rendering = "rendering",// The widget is being rendered.
|
|
157
|
+
Rendered = "rendered",// The rendering process is complete.
|
|
158
|
+
Processing = "processing",// The widget is performing a task or interaction.
|
|
159
|
+
Error = "error"
|
|
205
160
|
}
|
|
206
161
|
|
|
207
162
|
interface AXPWidgetPropertyGroup {
|
|
@@ -227,7 +182,7 @@ interface AXPWidgetProperty {
|
|
|
227
182
|
interface: Required<Pick<AXPWidgetNode, 'path'>> & Omit<AXPWidgetNode, 'path'>;
|
|
228
183
|
};
|
|
229
184
|
validations?: AXPValidationRules;
|
|
230
|
-
visible: boolean
|
|
185
|
+
visible: boolean;
|
|
231
186
|
binding?: {
|
|
232
187
|
enabled: boolean;
|
|
233
188
|
/** When set, the expression is edited at path + '.' + optionKey (e.g. options.visibility). */
|
|
@@ -241,7 +196,7 @@ declare function createStringProperty(ctor: {
|
|
|
241
196
|
title: string;
|
|
242
197
|
path?: string;
|
|
243
198
|
group: AXPWidgetPropertyGroup;
|
|
244
|
-
visible?: boolean
|
|
199
|
+
visible?: boolean;
|
|
245
200
|
}): AXPWidgetProperty;
|
|
246
201
|
declare function createNumberProperty(ctor: {
|
|
247
202
|
defaultValue?: number;
|
|
@@ -249,7 +204,7 @@ declare function createNumberProperty(ctor: {
|
|
|
249
204
|
title: string;
|
|
250
205
|
path?: string;
|
|
251
206
|
group: AXPWidgetPropertyGroup;
|
|
252
|
-
visible?: boolean
|
|
207
|
+
visible?: boolean;
|
|
253
208
|
options?: {
|
|
254
209
|
minValue?: number;
|
|
255
210
|
maxValue?: number;
|
|
@@ -262,7 +217,7 @@ declare function createBooleanProperty(ctor: {
|
|
|
262
217
|
title: string;
|
|
263
218
|
path?: string;
|
|
264
219
|
group: AXPWidgetPropertyGroup;
|
|
265
|
-
visible?: boolean
|
|
220
|
+
visible?: boolean;
|
|
266
221
|
}): AXPWidgetProperty;
|
|
267
222
|
declare function createSelectProperty<T = string | {
|
|
268
223
|
id: string;
|
|
@@ -274,7 +229,7 @@ declare function createSelectProperty<T = string | {
|
|
|
274
229
|
title: string;
|
|
275
230
|
path?: string;
|
|
276
231
|
group: AXPWidgetPropertyGroup;
|
|
277
|
-
visible?: boolean
|
|
232
|
+
visible?: boolean;
|
|
278
233
|
}): AXPWidgetProperty;
|
|
279
234
|
interface AXPWidgetNode {
|
|
280
235
|
type: AXPWidgetTypesMap[keyof AXPWidgetTypesMap] | keyof AXPWidgetTypesMap | string;
|
|
@@ -299,8 +254,6 @@ interface AXPWidgetColumnNode {
|
|
|
299
254
|
type: string;
|
|
300
255
|
path: string;
|
|
301
256
|
options?: AXPOptionsData;
|
|
302
|
-
/** Column header caption from data-table (`title || name`); often an i18n key. */
|
|
303
|
-
caption?: string;
|
|
304
257
|
}
|
|
305
258
|
interface AXPWidgetColumnNodeToken extends AXPWidgetColumnNode {
|
|
306
259
|
config: AXPWidgetConfig;
|
|
@@ -339,24 +292,10 @@ type AXPExtractWidgetConfig<T> = {
|
|
|
339
292
|
interface AXPWidgetConfig<T = any> {
|
|
340
293
|
name: AXPWidgetTypesMap[keyof AXPWidgetTypesMap] | keyof AXPWidgetTypesMap | string;
|
|
341
294
|
alias?: string | string[];
|
|
342
|
-
title:
|
|
295
|
+
title: string;
|
|
343
296
|
icon?: string;
|
|
344
|
-
description?:
|
|
345
|
-
|
|
346
|
-
* Picker tabs and section headings in the widget gallery (when the widget is included in the picker list).
|
|
347
|
-
*/
|
|
348
|
-
categories?: AXPDefinitionCategory | AXPDefinitionCategory[];
|
|
349
|
-
/**
|
|
350
|
-
* Optional sub-group within a parent category tab in the widget picker.
|
|
351
|
-
* Ignored on the "All" tab (widgets are grouped by parent category only).
|
|
352
|
-
*/
|
|
353
|
-
subCategory?: AXPDefinitionCategory;
|
|
354
|
-
/**
|
|
355
|
-
* Which surfaces may offer this widget. The designer widget picker includes a widget only when this list
|
|
356
|
-
* intersects the requested groups (e.g. the layout designer requests `AXPWidgetGroupEnum.FormElement`).
|
|
357
|
-
* Use `AXPWidgetGroupEnum.BaseWidget` alone for types that must stay registered (filters, renderers, AI tools)
|
|
358
|
-
* but must not appear in form or dashboard pickers.
|
|
359
|
-
*/
|
|
297
|
+
description?: string;
|
|
298
|
+
categories?: AXPWidgetCategory | AXPWidgetCategory[];
|
|
360
299
|
groups?: AXPWidgetGroup[];
|
|
361
300
|
properties?: AXPWidgetProperty[];
|
|
362
301
|
components: AXPWidgetConfigComponents;
|
|
@@ -365,15 +304,8 @@ interface AXPWidgetConfig<T = any> {
|
|
|
365
304
|
designer?: AXPExtractWidgetConfig<T>['designer'];
|
|
366
305
|
options?: Record<string, any>;
|
|
367
306
|
defaultFilterWidgetName?: 'string-filter' | 'number-filter' | 'datetime-filter' | 'boolean-filter' | 'select-filter' | 'lookup-filter' | 'time-duration-filter' | string;
|
|
368
|
-
/**
|
|
369
|
-
* Optional layout for Change History. When set, this AXPWidgetNode is rendered for
|
|
370
|
-
* changes of this widget type instead of the default fieldKey/actionKey text.
|
|
371
|
-
* Context passed to renderer: the AXPActivityLogChange object.
|
|
372
|
-
* If omitted, the default display is used.
|
|
373
|
-
*/
|
|
374
|
-
historyLayout?: AXPWidgetNode;
|
|
375
307
|
}
|
|
376
|
-
interface
|
|
308
|
+
interface extendedWidget {
|
|
377
309
|
widget: AXPWidgetConfig;
|
|
378
310
|
parentName: string;
|
|
379
311
|
}
|
|
@@ -382,6 +314,102 @@ interface AXPLayoutBuilderStatusChangedEvent {
|
|
|
382
314
|
status: AXPPageStatus;
|
|
383
315
|
}
|
|
384
316
|
|
|
317
|
+
type AXPWidgetCoreContextState = 'initiated' | 'restored' | 'changed' | 'patch';
|
|
318
|
+
declare class AXPWidgetCoreContextChangeEvent {
|
|
319
|
+
oldValue?: any;
|
|
320
|
+
newValue?: any;
|
|
321
|
+
path?: string;
|
|
322
|
+
state: AXPWidgetCoreContextState;
|
|
323
|
+
data: any;
|
|
324
|
+
}
|
|
325
|
+
declare const AXPWidgetCoreContextStore: _angular_core.Type<{
|
|
326
|
+
data: _angular_core.Signal<{}>;
|
|
327
|
+
state: _angular_core.Signal<AXPWidgetCoreContextState>;
|
|
328
|
+
initialSnapshot: _angular_core.Signal<{}>;
|
|
329
|
+
previousSnapshot: _angular_core.Signal<{}>;
|
|
330
|
+
lastChange: _ngrx_signals.DeepSignal<AXPWidgetCoreContextChangeEvent>;
|
|
331
|
+
isChanged: _angular_core.Signal<boolean>;
|
|
332
|
+
isReset: _angular_core.Signal<boolean>;
|
|
333
|
+
isInitiated: _angular_core.Signal<boolean>;
|
|
334
|
+
isEmpty: _angular_core.Signal<boolean>;
|
|
335
|
+
isDirty: _angular_core.Signal<boolean>;
|
|
336
|
+
snapshot: _angular_core.Signal<{}>;
|
|
337
|
+
initial: _angular_core.Signal<{}>;
|
|
338
|
+
previous: _angular_core.Signal<{}>;
|
|
339
|
+
changeEvent: _angular_core.Signal<AXPWidgetCoreContextChangeEvent>;
|
|
340
|
+
update: (path: string, value: any) => void;
|
|
341
|
+
patch: (context: {}, skipDirtyTracking?: boolean) => void;
|
|
342
|
+
reset: () => void;
|
|
343
|
+
set: (initialData: any) => void;
|
|
344
|
+
getValue: (path: string) => any;
|
|
345
|
+
hasValue: (path: string) => boolean;
|
|
346
|
+
} & _ngrx_signals.StateSource<{
|
|
347
|
+
data: {};
|
|
348
|
+
state: AXPWidgetCoreContextState;
|
|
349
|
+
initialSnapshot: {};
|
|
350
|
+
previousSnapshot: {};
|
|
351
|
+
lastChange: AXPWidgetCoreContextChangeEvent;
|
|
352
|
+
}>>;
|
|
353
|
+
|
|
354
|
+
type AXPWidgetCoreElementAPI = {
|
|
355
|
+
[name: string]: Subject<any> | Function;
|
|
356
|
+
};
|
|
357
|
+
type AXPWidgetCoreElementAction = {
|
|
358
|
+
title: string;
|
|
359
|
+
command: string;
|
|
360
|
+
icon?: string;
|
|
361
|
+
color?: string;
|
|
362
|
+
disabled?: boolean | string;
|
|
363
|
+
hidden?: boolean | string;
|
|
364
|
+
zone?: 'header' | 'footer';
|
|
365
|
+
placement?: 'prefix' | 'suffix';
|
|
366
|
+
scope?: 'primary' | 'secondary';
|
|
367
|
+
};
|
|
368
|
+
declare abstract class AXPWidgetCoreElement {
|
|
369
|
+
abstract get id(): string | null;
|
|
370
|
+
abstract get status(): Signal<AXPWidgetStatus>;
|
|
371
|
+
api(): AXPWidgetCoreElementAPI;
|
|
372
|
+
actions(): AXPWidgetCoreElementAction[];
|
|
373
|
+
}
|
|
374
|
+
declare class AXPWidgetCoreService {
|
|
375
|
+
private readonly variables$;
|
|
376
|
+
private readonly functions$;
|
|
377
|
+
readonly onRefresh: Subject<void>;
|
|
378
|
+
private widgets;
|
|
379
|
+
private readonly onWidgetRegistered;
|
|
380
|
+
private readonly status$;
|
|
381
|
+
readonly status: Signal<AXPPageStatus>;
|
|
382
|
+
readonly isBusy: Signal<boolean>;
|
|
383
|
+
registeredWidgetsCount: _angular_core.WritableSignal<number>;
|
|
384
|
+
get variables(): any;
|
|
385
|
+
get functions(): {
|
|
386
|
+
[key: string]: Function;
|
|
387
|
+
};
|
|
388
|
+
updateStatus(): void;
|
|
389
|
+
private detectStatus;
|
|
390
|
+
refresh(): void;
|
|
391
|
+
setStatus(status: AXPPageStatus): void;
|
|
392
|
+
setVariables(keysValues: any): void;
|
|
393
|
+
setVariables(key: string, value: any): void;
|
|
394
|
+
setFunctions(keysValues: any): void;
|
|
395
|
+
setFunctions(key: string, value: any): void;
|
|
396
|
+
registerWidget(id: string, widget: AXPWidgetCoreElement): void;
|
|
397
|
+
getWidget(id: string): AXPWidgetCoreElement | undefined;
|
|
398
|
+
/**
|
|
399
|
+
* Waits until a widget with the given id is registered, then resolves with it.
|
|
400
|
+
* If the widget is already registered, resolves immediately.
|
|
401
|
+
* Optionally accepts a timeout (in ms) after which it resolves with undefined.
|
|
402
|
+
*/
|
|
403
|
+
waitForWidget(id: string, timeoutMs?: number): Promise<AXPWidgetCoreElement | undefined>;
|
|
404
|
+
/**
|
|
405
|
+
* Returns a list of registered widget ids (names).
|
|
406
|
+
*/
|
|
407
|
+
listRegisteredWidgetNames(): string[];
|
|
408
|
+
ngOnDestroy(): void;
|
|
409
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPWidgetCoreService, never>;
|
|
410
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPWidgetCoreService>;
|
|
411
|
+
}
|
|
412
|
+
|
|
385
413
|
type AXPClassMap = Readonly<Record<string, boolean>>;
|
|
386
414
|
type AXPStyleMap = Readonly<Record<string, string | number>>;
|
|
387
415
|
declare abstract class AXPBaseWidgetComponent<TOptions extends Record<string, unknown> = AXPOptionsData> extends AXPWidgetCoreElement {
|
|
@@ -390,34 +418,34 @@ declare abstract class AXPBaseWidgetComponent<TOptions extends Record<string, un
|
|
|
390
418
|
readonly host: HTMLDivElement;
|
|
391
419
|
protected readonly layoutService: AXPWidgetCoreService;
|
|
392
420
|
protected readonly contextService: {
|
|
393
|
-
data: _angular_core.Signal<
|
|
394
|
-
state: _angular_core.Signal<
|
|
421
|
+
data: _angular_core.Signal<{}>;
|
|
422
|
+
state: _angular_core.Signal<AXPWidgetCoreContextState>;
|
|
395
423
|
initialSnapshot: _angular_core.Signal<{}>;
|
|
396
424
|
previousSnapshot: _angular_core.Signal<{}>;
|
|
397
|
-
lastChange: _ngrx_signals.DeepSignal<
|
|
425
|
+
lastChange: _ngrx_signals.DeepSignal<AXPWidgetCoreContextChangeEvent>;
|
|
398
426
|
isChanged: _angular_core.Signal<boolean>;
|
|
399
427
|
isReset: _angular_core.Signal<boolean>;
|
|
400
428
|
isInitiated: _angular_core.Signal<boolean>;
|
|
401
429
|
isEmpty: _angular_core.Signal<boolean>;
|
|
402
430
|
isDirty: _angular_core.Signal<boolean>;
|
|
403
|
-
snapshot: _angular_core.Signal<
|
|
431
|
+
snapshot: _angular_core.Signal<{}>;
|
|
404
432
|
initial: _angular_core.Signal<{}>;
|
|
405
433
|
previous: _angular_core.Signal<{}>;
|
|
406
|
-
changeEvent: _angular_core.Signal<
|
|
434
|
+
changeEvent: _angular_core.Signal<AXPWidgetCoreContextChangeEvent>;
|
|
407
435
|
update: (path: string, value: any) => void;
|
|
408
|
-
patch: (context:
|
|
436
|
+
patch: (context: {}, skipDirtyTracking?: boolean) => void;
|
|
409
437
|
reset: () => void;
|
|
410
438
|
set: (initialData: any) => void;
|
|
411
439
|
getValue: (path: string) => any;
|
|
412
440
|
hasValue: (path: string) => boolean;
|
|
413
441
|
} & _ngrx_signals.StateSource<{
|
|
414
|
-
data:
|
|
415
|
-
state:
|
|
442
|
+
data: {};
|
|
443
|
+
state: AXPWidgetCoreContextState;
|
|
416
444
|
initialSnapshot: {};
|
|
417
445
|
previousSnapshot: {};
|
|
418
|
-
lastChange:
|
|
446
|
+
lastChange: AXPWidgetCoreContextChangeEvent;
|
|
419
447
|
}>;
|
|
420
|
-
readonly config:
|
|
448
|
+
readonly config: AXPWidgetConfig<any>;
|
|
421
449
|
readonly node: AXPWidgetNode;
|
|
422
450
|
protected readonly name: string | undefined;
|
|
423
451
|
protected component: this;
|
|
@@ -502,8 +530,6 @@ declare abstract class AXPColumnWidgetComponent<T = any | null | void> {
|
|
|
502
530
|
private readonly token;
|
|
503
531
|
protected readonly path: string;
|
|
504
532
|
protected readonly options: Record<string, any>;
|
|
505
|
-
/** Column header caption when rendered inside `axp-widget-column-renderer`. */
|
|
506
|
-
protected readonly columnCaption: string | undefined;
|
|
507
533
|
protected readonly rawValue: T;
|
|
508
534
|
protected readonly rowData: any;
|
|
509
535
|
protected readonly nullText: any;
|
|
@@ -530,33 +556,6 @@ declare abstract class AXPBlockBaseLayoutWidgetComponent extends AXPBoxModelLayo
|
|
|
530
556
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPBlockBaseLayoutWidgetComponent>;
|
|
531
557
|
}
|
|
532
558
|
|
|
533
|
-
/**
|
|
534
|
-
* Maps a platform {@link AXPProperty} to a property viewer row model ({@link AXPWidgetProperty}).
|
|
535
|
-
* Kept in widget-core (not platform/core) to avoid a dependency cycle: widget-core already depends on platform/core.
|
|
536
|
-
*/
|
|
537
|
-
interface MapAXPPropertyToWidgetPropertyOptions {
|
|
538
|
-
group: AXPWidgetPropertyGroup;
|
|
539
|
-
order: number;
|
|
540
|
-
/**
|
|
541
|
-
* Dot path prefix for {@link AXPWidgetProperty.schema.interface.path}.
|
|
542
|
-
* Example: `input` → `input.requestId`; `properties` → `properties.message`.
|
|
543
|
-
*/
|
|
544
|
-
valuePathPrefix: string;
|
|
545
|
-
/**
|
|
546
|
-
* Resolves a display title (supports multi-language strings on the source property).
|
|
547
|
-
*/
|
|
548
|
-
resolveTitle: (property: AXPProperty) => string;
|
|
549
|
-
/**
|
|
550
|
-
* Optional description line for the viewer row.
|
|
551
|
-
*/
|
|
552
|
-
resolveDescription?: (property: AXPProperty) => string | undefined;
|
|
553
|
-
}
|
|
554
|
-
/**
|
|
555
|
-
* Converts a domain {@link AXPProperty} into a {@link AXPWidgetProperty} row for
|
|
556
|
-
* the layout property viewer (`AXPPropertyViewerService` and `buildPropertyViewerTabsFromProperties`).
|
|
557
|
-
*/
|
|
558
|
-
declare function mapAXPPropertyToWidgetProperty(property: AXPProperty, options: MapAXPPropertyToWidgetPropertyOptions): AXPWidgetProperty;
|
|
559
|
-
|
|
560
559
|
type AXPPropertyEditorSideValues = 'top' | 'left' | 'bottom' | 'right';
|
|
561
560
|
type AXPPropertyEditorCornerValues = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
562
561
|
type AXPPropertyEditorSideGeneric<T extends string, U extends string | number = string> = Record<T, U>;
|
|
@@ -771,83 +770,56 @@ declare abstract class AXPTableItemBaseLayoutWidgetComponent extends AXPTableIte
|
|
|
771
770
|
|
|
772
771
|
declare class AXPWidgetContainerComponent {
|
|
773
772
|
readonly contextService: {
|
|
774
|
-
data: _angular_core.Signal<
|
|
775
|
-
state: _angular_core.Signal<
|
|
773
|
+
data: _angular_core.Signal<{}>;
|
|
774
|
+
state: _angular_core.Signal<AXPWidgetCoreContextState>;
|
|
776
775
|
initialSnapshot: _angular_core.Signal<{}>;
|
|
777
776
|
previousSnapshot: _angular_core.Signal<{}>;
|
|
778
|
-
lastChange: _ngrx_signals.DeepSignal<
|
|
777
|
+
lastChange: _ngrx_signals.DeepSignal<AXPWidgetCoreContextChangeEvent>;
|
|
779
778
|
isChanged: _angular_core.Signal<boolean>;
|
|
780
779
|
isReset: _angular_core.Signal<boolean>;
|
|
781
780
|
isInitiated: _angular_core.Signal<boolean>;
|
|
782
781
|
isEmpty: _angular_core.Signal<boolean>;
|
|
783
782
|
isDirty: _angular_core.Signal<boolean>;
|
|
784
|
-
snapshot: _angular_core.Signal<
|
|
783
|
+
snapshot: _angular_core.Signal<{}>;
|
|
785
784
|
initial: _angular_core.Signal<{}>;
|
|
786
785
|
previous: _angular_core.Signal<{}>;
|
|
787
|
-
changeEvent: _angular_core.Signal<
|
|
786
|
+
changeEvent: _angular_core.Signal<AXPWidgetCoreContextChangeEvent>;
|
|
788
787
|
update: (path: string, value: any) => void;
|
|
789
|
-
patch: (context:
|
|
788
|
+
patch: (context: {}, skipDirtyTracking?: boolean) => void;
|
|
790
789
|
reset: () => void;
|
|
791
790
|
set: (initialData: any) => void;
|
|
792
791
|
getValue: (path: string) => any;
|
|
793
792
|
hasValue: (path: string) => boolean;
|
|
794
793
|
} & _ngrx_signals.StateSource<{
|
|
795
|
-
data:
|
|
796
|
-
state:
|
|
794
|
+
data: {};
|
|
795
|
+
state: AXPWidgetCoreContextState;
|
|
797
796
|
initialSnapshot: {};
|
|
798
797
|
previousSnapshot: {};
|
|
799
|
-
lastChange:
|
|
798
|
+
lastChange: AXPWidgetCoreContextChangeEvent;
|
|
800
799
|
}>;
|
|
801
800
|
readonly builderService: AXPWidgetCoreService;
|
|
802
|
-
readonly onContextChanged: EventEmitter<
|
|
801
|
+
readonly onContextChanged: EventEmitter<AXPWidgetCoreContextChangeEvent>;
|
|
803
802
|
set context(value: any);
|
|
804
803
|
set functions(v: any);
|
|
805
804
|
constructor();
|
|
806
805
|
status: _angular_core.Signal<_acorex_platform_layout_widget_core.AXPPageStatus>;
|
|
807
806
|
isBusy: _angular_core.Signal<boolean>;
|
|
808
807
|
refresh(): void;
|
|
809
|
-
find(name: string): Promise<
|
|
808
|
+
find(name: string): Promise<AXPWidgetCoreElement | undefined>;
|
|
810
809
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPWidgetContainerComponent, never>;
|
|
811
810
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPWidgetContainerComponent, "axp-widgets-container", never, { "context": { "alias": "context"; "required": false; }; "functions": { "alias": "functions"; "required": false; }; }, { "onContextChanged": "onContextChanged"; }, never, ["*"], false, never>;
|
|
812
811
|
}
|
|
813
812
|
|
|
814
|
-
/**
|
|
815
|
-
* Provider interface for widget definitions.
|
|
816
|
-
* Implement this interface and register via AXP_WIDGET_DEFINITION_PROVIDER to contribute widgets.
|
|
817
|
-
*/
|
|
818
|
-
interface AXPWidgetDefinitionProvider {
|
|
819
|
-
getWidgets(): AXPWidgetConfig[];
|
|
820
|
-
getExtendedWidgets?(): AXPExtendedWidget[];
|
|
821
|
-
}
|
|
822
|
-
/**
|
|
823
|
-
* Injection token for widget definition providers.
|
|
824
|
-
* Modules register their widget providers using this token (multi: true).
|
|
825
|
-
*/
|
|
826
|
-
declare const AXP_WIDGET_DEFINITION_PROVIDER: InjectionToken<AXPWidgetDefinitionProvider[]>;
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* Merges core + extended widgets the same way as AXPWidgetRegistryService.ensureBuilt().
|
|
830
|
-
* Use with concrete providers (e.g. AXPCoreWidgetsProvider, AXPEntityWidgetsProvider) in Node scripts without DI.
|
|
831
|
-
*/
|
|
832
|
-
declare function buildWidgetRegistryMapFromProviders(providers: AXPWidgetDefinitionProvider[]): Map<string, AXPWidgetConfig>;
|
|
833
|
-
/**
|
|
834
|
-
* Aggregates widgets from all AXP_WIDGET_DEFINITION_PROVIDER instances.
|
|
835
|
-
* Token-based like AXP_MENU_PROVIDER / AXP_PERMISSION_DEFINITION_PROVIDER / AXP_SETTING_DEFINITION_PROVIDER.
|
|
836
|
-
* No separate registry - widgets come solely from providers.
|
|
837
|
-
*/
|
|
838
813
|
declare class AXPWidgetRegistryService {
|
|
839
|
-
private
|
|
840
|
-
|
|
814
|
+
private types;
|
|
815
|
+
static instance: AXPWidgetRegistryService;
|
|
841
816
|
/**
|
|
842
|
-
*
|
|
817
|
+
*
|
|
843
818
|
*/
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
* {@link resolve}'s value may be a non-widget id (e.g. data-source row id in dynamic field configurator).
|
|
849
|
-
*/
|
|
850
|
-
getOptional(name: string): AXPWidgetConfig | undefined;
|
|
819
|
+
constructor();
|
|
820
|
+
register(widget: AXPWidgetConfig): void;
|
|
821
|
+
extend(parentName: string, widget: AXPWidgetConfig): void;
|
|
822
|
+
resolve(name: string): AXPWidgetConfig | undefined;
|
|
851
823
|
all(): AXPWidgetConfig[];
|
|
852
824
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPWidgetRegistryService, never>;
|
|
853
825
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPWidgetRegistryService>;
|
|
@@ -936,7 +908,7 @@ type AXPWidgetRendererDirectiveOptions = AXPMetaData;
|
|
|
936
908
|
declare class AXPWidgetRendererDirective {
|
|
937
909
|
parentNode: _angular_core.InputSignal<AXPLayoutBaseWidgetComponent<Record<string, any>> | null | undefined>;
|
|
938
910
|
index: _angular_core.InputSignal<number | null | undefined>;
|
|
939
|
-
mode: _angular_core.InputSignal<keyof
|
|
911
|
+
mode: _angular_core.InputSignal<keyof AXPWidgetConfigComponents>;
|
|
940
912
|
node: _angular_core.InputSignal<AXPWidgetNode>;
|
|
941
913
|
private _options;
|
|
942
914
|
options: _angular_core.Signal<AXPMetaData>;
|
|
@@ -961,32 +933,32 @@ declare class AXPWidgetRendererDirective {
|
|
|
961
933
|
private injector;
|
|
962
934
|
protected builderService: AXPWidgetCoreService;
|
|
963
935
|
protected contextService: {
|
|
964
|
-
data: _angular_core.Signal<
|
|
965
|
-
state: _angular_core.Signal<
|
|
936
|
+
data: _angular_core.Signal<{}>;
|
|
937
|
+
state: _angular_core.Signal<AXPWidgetCoreContextState>;
|
|
966
938
|
initialSnapshot: _angular_core.Signal<{}>;
|
|
967
939
|
previousSnapshot: _angular_core.Signal<{}>;
|
|
968
|
-
lastChange: _ngrx_signals.DeepSignal<
|
|
940
|
+
lastChange: _ngrx_signals.DeepSignal<AXPWidgetCoreContextChangeEvent>;
|
|
969
941
|
isChanged: _angular_core.Signal<boolean>;
|
|
970
942
|
isReset: _angular_core.Signal<boolean>;
|
|
971
943
|
isInitiated: _angular_core.Signal<boolean>;
|
|
972
944
|
isEmpty: _angular_core.Signal<boolean>;
|
|
973
945
|
isDirty: _angular_core.Signal<boolean>;
|
|
974
|
-
snapshot: _angular_core.Signal<
|
|
946
|
+
snapshot: _angular_core.Signal<{}>;
|
|
975
947
|
initial: _angular_core.Signal<{}>;
|
|
976
948
|
previous: _angular_core.Signal<{}>;
|
|
977
|
-
changeEvent: _angular_core.Signal<
|
|
949
|
+
changeEvent: _angular_core.Signal<AXPWidgetCoreContextChangeEvent>;
|
|
978
950
|
update: (path: string, value: any) => void;
|
|
979
|
-
patch: (context:
|
|
951
|
+
patch: (context: {}, skipDirtyTracking?: boolean) => void;
|
|
980
952
|
reset: () => void;
|
|
981
953
|
set: (initialData: any) => void;
|
|
982
954
|
getValue: (path: string) => any;
|
|
983
955
|
hasValue: (path: string) => boolean;
|
|
984
956
|
} & _ngrx_signals.StateSource<{
|
|
985
|
-
data:
|
|
986
|
-
state:
|
|
957
|
+
data: {};
|
|
958
|
+
state: AXPWidgetCoreContextState;
|
|
987
959
|
initialSnapshot: {};
|
|
988
960
|
previousSnapshot: {};
|
|
989
|
-
lastChange:
|
|
961
|
+
lastChange: AXPWidgetCoreContextChangeEvent;
|
|
990
962
|
}>;
|
|
991
963
|
protected widgetRegistery: AXPWidgetRegistryService;
|
|
992
964
|
protected unsubscriber: AXUnsubscriber;
|
|
@@ -1019,15 +991,6 @@ declare class AXPWidgetRendererDirective {
|
|
|
1019
991
|
private queueContextUpdate;
|
|
1020
992
|
private processBatchedUpdates;
|
|
1021
993
|
private isRelevantContextChange;
|
|
1022
|
-
/**
|
|
1023
|
-
* True when a context store path used in an expression (`context.eval`, `context.options`) is
|
|
1024
|
-
* affected by `changedPath`.
|
|
1025
|
-
*/
|
|
1026
|
-
private contextStorePathDependsOnChangedPath;
|
|
1027
|
-
/**
|
|
1028
|
-
* Whether an expression template string reads context store paths affected by `changedPath`.
|
|
1029
|
-
*/
|
|
1030
|
-
private expressionTextDependsOnContextPath;
|
|
1031
994
|
private hasExpressionDependency;
|
|
1032
995
|
private isPathAlias;
|
|
1033
996
|
private getExpressionValueFromNode;
|
|
@@ -1060,68 +1023,28 @@ declare class AXPWidgetRendererDirective {
|
|
|
1060
1023
|
|
|
1061
1024
|
interface AXPWidgetCoreModuleConfigs {
|
|
1062
1025
|
widgets?: AXPWidgetConfig[];
|
|
1063
|
-
|
|
1026
|
+
extendedWidgets?: extendedWidget[];
|
|
1064
1027
|
}
|
|
1065
1028
|
declare class AXPWidgetCoreModule {
|
|
1066
|
-
static
|
|
1067
|
-
static
|
|
1029
|
+
static forRoot(config?: AXPWidgetCoreModuleConfigs): ModuleWithProviders<AXPWidgetCoreModule>;
|
|
1030
|
+
static forChild(config?: AXPWidgetCoreModuleConfigs): ModuleWithProviders<AXPWidgetCoreModule>;
|
|
1031
|
+
/**
|
|
1032
|
+
* @ignore
|
|
1033
|
+
*/
|
|
1034
|
+
constructor(instances: any[]);
|
|
1035
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPWidgetCoreModule, [{ optional: true; }]>;
|
|
1036
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXPWidgetCoreModule, [typeof AXPWidgetContainerComponent, typeof AXPWidgetColumnRendererComponent, typeof AXPWidgetRendererDirective], [typeof i4.CommonModule, typeof i5.PortalModule, typeof i6.AXSkeletonModule, typeof i4.CommonModule, typeof i7.AXTranslationModule], [typeof AXPWidgetContainerComponent, typeof AXPWidgetColumnRendererComponent, typeof AXPWidgetRendererDirective]>;
|
|
1068
1037
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXPWidgetCoreModule>;
|
|
1069
1038
|
}
|
|
1070
1039
|
|
|
1071
|
-
interface AXPMetaDataFeatures {
|
|
1072
|
-
searchable?: {
|
|
1073
|
-
enabled: boolean;
|
|
1074
|
-
fullText: boolean;
|
|
1075
|
-
};
|
|
1076
|
-
filterable?: {
|
|
1077
|
-
enabled: boolean;
|
|
1078
|
-
inline: boolean;
|
|
1079
|
-
};
|
|
1080
|
-
sortable?: {
|
|
1081
|
-
enabled: boolean;
|
|
1082
|
-
};
|
|
1083
|
-
auditable?: {
|
|
1084
|
-
enabled: boolean;
|
|
1085
|
-
};
|
|
1086
|
-
}
|
|
1087
1040
|
interface AXPMetaDataDefinition {
|
|
1088
1041
|
name: string;
|
|
1089
1042
|
title: string;
|
|
1090
1043
|
defaultValue?: any;
|
|
1091
1044
|
interface: string | AXPWidgetNode | (() => Promise<AXPWidgetNode>);
|
|
1092
|
-
features?: AXPMetaDataFeatures;
|
|
1093
1045
|
}
|
|
1094
1046
|
|
|
1095
1047
|
declare const AXPWidgetsCatalog: AXPWidgetTypesMap;
|
|
1096
1048
|
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
declare const AXP_WIDGETS_EDITOR_SUB_DATETIME: AXPDefinitionCategory;
|
|
1100
|
-
declare const AXP_WIDGETS_EDITOR_SUB_CHOICE: AXPDefinitionCategory;
|
|
1101
|
-
declare const AXP_WIDGETS_EDITOR_SUB_RICH: AXPDefinitionCategory;
|
|
1102
|
-
declare const AXP_WIDGETS_EDITOR_SUB_VISUAL: AXPDefinitionCategory;
|
|
1103
|
-
declare const AXP_WIDGETS_EDITOR_SUB_COMPOSITE: AXPDefinitionCategory;
|
|
1104
|
-
declare const AXP_WIDGETS_EDITOR_SUB_CONFIG: AXPDefinitionCategory;
|
|
1105
|
-
declare const AXP_WIDGETS_LAYOUT_SUB_SHELL: AXPDefinitionCategory;
|
|
1106
|
-
declare const AXP_WIDGETS_LAYOUT_SUB_GRID: AXPDefinitionCategory;
|
|
1107
|
-
declare const AXP_WIDGETS_LAYOUT_SUB_SURFACES: AXPDefinitionCategory;
|
|
1108
|
-
declare const AXP_WIDGETS_LAYOUT_SUB_TABS: AXPDefinitionCategory;
|
|
1109
|
-
declare const AXP_WIDGETS_LAYOUT_SUB_LISTS: AXPDefinitionCategory;
|
|
1110
|
-
declare const AXP_WIDGETS_LAYOUT_SUB_UTILITY: AXPDefinitionCategory;
|
|
1111
|
-
declare const AXP_WIDGETS_ACTION_SUB_CONTROLS: AXPDefinitionCategory;
|
|
1112
|
-
declare const AXP_WIDGETS_ADVANCE_SUB_MEDIA: AXPDefinitionCategory;
|
|
1113
|
-
declare const AXP_WIDGETS_ADVANCE_SUB_INPUT: AXPDefinitionCategory;
|
|
1114
|
-
declare const AXP_WIDGETS_ADVANCE_SUB_DATA: AXPDefinitionCategory;
|
|
1115
|
-
declare const AXP_WIDGETS_ADVANCE_SUB_TOOLS: AXPDefinitionCategory;
|
|
1116
|
-
/** Normalizes widget categories to an array for iteration and serialization. */
|
|
1117
|
-
declare function normalizeWidgetCategories(categories?: AXPDefinitionCategory | AXPDefinitionCategory[]): AXPDefinitionCategory[];
|
|
1118
|
-
declare const AXP_WIDGETS_LAYOUT_CATEGORY: AXPDefinitionCategory;
|
|
1119
|
-
declare const AXP_WIDGETS_EDITOR_CATEGORY: AXPDefinitionCategory;
|
|
1120
|
-
declare const AXP_WIDGETS_ACTION_CATEGORY: AXPDefinitionCategory;
|
|
1121
|
-
declare const AXP_WIDGETS_ADVANCE_CATEGORY: AXPDefinitionCategory;
|
|
1122
|
-
/** AI category tab in the widget picker (metadata); unrelated to Widgets:GetForAI listing scope. */
|
|
1123
|
-
declare const AXP_WIDGETS_AI_CATEGORY: AXPDefinitionCategory;
|
|
1124
|
-
declare const AXP_WIDGETS_CATEGORIES: AXPDefinitionCategory[];
|
|
1125
|
-
|
|
1126
|
-
export { AXPBaseWidgetComponent, AXPBlockBaseLayoutWidgetComponent, AXPBoxModelLayoutWidgetComponent, AXPColumnWidgetComponent, AXPDataListWidgetComponent, AXPFlexBaseLayoutWidgetComponent, AXPFlexItemBaseLayoutWidgetComponent, AXPGridBaseLayoutWidgetComponent, AXPGridItemBaseLayoutWidgetComponent, AXPInlineBaseLayoutWidgetComponent, AXPLayoutBaseWidgetComponent, AXPPageStatus, AXPPropertyEditorHelper, AXPTableBaseLayoutWidgetComponent, AXPTableItemBaseLayoutWidgetComponent, AXPTableItemOpsBaseLayoutWidgetComponent, AXPValueWidgetComponent, AXPWidgetColumnRendererComponent, AXPWidgetContainerComponent, AXPWidgetCoreElement, AXPWidgetCoreModule, AXPWidgetCoreService, AXPWidgetGroupEnum, AXPWidgetRegistryService, AXPWidgetRendererDirective, AXPWidgetSerializationHelper, AXPWidgetStatus, AXPWidgetsCatalog, AXP_WIDGETS_ACTION_CATEGORY, AXP_WIDGETS_ACTION_SUB_CONTROLS, AXP_WIDGETS_ADVANCE_CATEGORY, AXP_WIDGETS_ADVANCE_SUB_DATA, AXP_WIDGETS_ADVANCE_SUB_INPUT, AXP_WIDGETS_ADVANCE_SUB_MEDIA, AXP_WIDGETS_ADVANCE_SUB_TOOLS, AXP_WIDGETS_AI_CATEGORY, AXP_WIDGETS_CATEGORIES, AXP_WIDGETS_EDITOR_CATEGORY, AXP_WIDGETS_EDITOR_SUB_CHOICE, AXP_WIDGETS_EDITOR_SUB_COMPOSITE, AXP_WIDGETS_EDITOR_SUB_CONFIG, AXP_WIDGETS_EDITOR_SUB_DATETIME, AXP_WIDGETS_EDITOR_SUB_NUMERIC, AXP_WIDGETS_EDITOR_SUB_RICH, AXP_WIDGETS_EDITOR_SUB_TEXT_INPUTS, AXP_WIDGETS_EDITOR_SUB_VISUAL, AXP_WIDGETS_LAYOUT_CATEGORY, AXP_WIDGETS_LAYOUT_SUB_GRID, AXP_WIDGETS_LAYOUT_SUB_LISTS, AXP_WIDGETS_LAYOUT_SUB_SHELL, AXP_WIDGETS_LAYOUT_SUB_SURFACES, AXP_WIDGETS_LAYOUT_SUB_TABS, AXP_WIDGETS_LAYOUT_SUB_UTILITY, AXP_WIDGET_COLUMN_TOKEN, AXP_WIDGET_DEFINITION_PROVIDER, AXP_WIDGET_TOKEN, buildWidgetRegistryMapFromProviders, cloneProperty, createBooleanProperty, createNumberProperty, createSelectProperty, createStringProperty, findNonEmptyBreakpoints, mapAXPPropertyToWidgetProperty, normalizeWidgetCategories };
|
|
1127
|
-
export type { AXPBorderBox, AXPBorderBoxString, AXPBreakpointValues, AXPBreakpoints, AXPClassMap, AXPExtendedWidget, AXPExtractWidgetConfig, AXPFlexBoxString, AXPFlexItemBoxString, AXPGridBoxString, AXPGridBreakpointValues, AXPGridItemBoxString, AXPLayoutBuilderStatusChangedEvent, AXPMetaDataDefinition, AXPMetaDataFeatures, AXPPropertyCorners, AXPPropertyEditorCornerValues, AXPPropertyEditorSideGeneric, AXPPropertyEditorSideValues, AXPPropertySides, AXPSpacingBox, AXPSpacingBoxString, AXPStyleMap, AXPWidgetColumnNode, AXPWidgetColumnNodeToken, AXPWidgetComponentConfig, AXPWidgetConfig, AXPWidgetConfigComponents, AXPWidgetCoreElementAPI, AXPWidgetCoreElementAction, AXPWidgetCoreModuleConfigs, AXPWidgetDefinitionProvider, AXPWidgetDesignerOptionsMap, AXPWidgetGroup, AXPWidgetNode, AXPWidgetNodeToken, AXPWidgetProperty, AXPWidgetPropertyGroup, AXPWidgetRenderMode, AXPWidgetRendererDirectiveOptions, AXPWidgetTypesMap, AXPWidgetViewType, MapAXPPropertyToWidgetPropertyOptions };
|
|
1049
|
+
export { AXPBaseWidgetComponent, AXPBlockBaseLayoutWidgetComponent, AXPBoxModelLayoutWidgetComponent, AXPColumnWidgetComponent, AXPDataListWidgetComponent, AXPFlexBaseLayoutWidgetComponent, AXPFlexItemBaseLayoutWidgetComponent, AXPGridBaseLayoutWidgetComponent, AXPGridItemBaseLayoutWidgetComponent, AXPInlineBaseLayoutWidgetComponent, AXPLayoutBaseWidgetComponent, AXPPageStatus, AXPPropertyEditorHelper, AXPTableBaseLayoutWidgetComponent, AXPTableItemBaseLayoutWidgetComponent, AXPTableItemOpsBaseLayoutWidgetComponent, AXPValueWidgetComponent, AXPWidgetColumnRendererComponent, AXPWidgetContainerComponent, AXPWidgetCoreContextChangeEvent, AXPWidgetCoreContextStore, AXPWidgetCoreElement, AXPWidgetCoreModule, AXPWidgetCoreService, AXPWidgetGroupEnum, AXPWidgetRegistryService, AXPWidgetRendererDirective, AXPWidgetSerializationHelper, AXPWidgetStatus, AXPWidgetsCatalog, AXP_WIDGETS_ACTION_CATEGORY, AXP_WIDGETS_ADVANCE_CATEGORY, AXP_WIDGETS_CATEGORIES, AXP_WIDGETS_EDITOR_CATEGORY, AXP_WIDGETS_LAYOUT_CATEGORY, AXP_WIDGET_COLUMN_TOKEN, AXP_WIDGET_TOKEN, cloneProperty, createBooleanProperty, createNumberProperty, createSelectProperty, createStringProperty, findNonEmptyBreakpoints };
|
|
1050
|
+
export type { AXPBorderBox, AXPBorderBoxString, AXPBreakpointValues, AXPBreakpoints, AXPClassMap, AXPExtractWidgetConfig, AXPFlexBoxString, AXPFlexItemBoxString, AXPGridBoxString, AXPGridBreakpointValues, AXPGridItemBoxString, AXPLayoutBuilderStatusChangedEvent, AXPMetaDataDefinition, AXPPropertyCorners, AXPPropertyEditorCornerValues, AXPPropertyEditorSideGeneric, AXPPropertyEditorSideValues, AXPPropertySides, AXPSpacingBox, AXPSpacingBoxString, AXPStyleMap, AXPWidgetCategory, AXPWidgetColumnNode, AXPWidgetColumnNodeToken, AXPWidgetComponentConfig, AXPWidgetConfig, AXPWidgetConfigComponents, AXPWidgetCoreContextState, AXPWidgetCoreElementAPI, AXPWidgetCoreElementAction, AXPWidgetCoreModuleConfigs, AXPWidgetDesignerOptionsMap, AXPWidgetGroup, AXPWidgetNode, AXPWidgetNodeToken, AXPWidgetProperty, AXPWidgetPropertyGroup, AXPWidgetRenderMode, AXPWidgetRendererDirectiveOptions, AXPWidgetTypesMap, AXPWidgetViewType, extendedWidget };
|