@acorex/platform 20.8.12 → 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 +36 -36
- 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,9 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Type, InjectionToken, OnInit, ViewContainerRef, ModuleWithProviders, ElementRef, EventEmitter, OnChanges, Renderer2, SimpleChanges, OnDestroy, Injector, PipeTransform, Provider } from '@angular/core';
|
|
3
|
-
import { AXStyleColorType, AXDataSource, AXDataSourceSortOption, AXDataSourceFilterOption,
|
|
4
|
-
import { AXMultiLanguageString } from '@acorex/core/translation';
|
|
3
|
+
import { AXStyleColorType, AXDataSource, AXDataSourceSortOption, AXDataSourceFilterOption, AXDataSourceQuery, AXDataSourceCallbackResult } from '@acorex/cdk/common';
|
|
5
4
|
import * as _ngrx_signals from '@ngrx/signals';
|
|
6
|
-
import * as _acorex_platform_core from '@acorex/platform/core';
|
|
7
5
|
import { Observable } from 'rxjs';
|
|
8
6
|
import { NavigationExtras } from '@angular/router';
|
|
9
7
|
|
|
@@ -909,28 +907,6 @@ type AXPPartialNested<T> = {
|
|
|
909
907
|
};
|
|
910
908
|
declare function getNestedKeys(obj: any, prefix?: string): string[];
|
|
911
909
|
type AXPExpression = string;
|
|
912
|
-
/**
|
|
913
|
-
* Plain or rich text that may be localized: a single string or a map of locale code to string.
|
|
914
|
-
* Use when multi-language editing stores `Record<locale, string>` instead of one string.
|
|
915
|
-
*
|
|
916
|
-
* @example Single value (one locale or shared text)
|
|
917
|
-
* `"<p>Pick one</p>"`
|
|
918
|
-
*
|
|
919
|
-
* @example Per-locale map (e.g. after multi-language editor save)
|
|
920
|
-
* `{ "en-US": "<p>Pick one</p>", "fa-IR": "<p>یکی را انتخاب کنید</p>" }`
|
|
921
|
-
*/
|
|
922
|
-
type AXPMultiLanguageString = AXMultiLanguageString;
|
|
923
|
-
/**
|
|
924
|
-
* Shared category descriptor for widgets, query catalog tooling, and other definition groupings.
|
|
925
|
-
*/
|
|
926
|
-
interface AXPDefinitionCategory {
|
|
927
|
-
name: string;
|
|
928
|
-
title: AXPMultiLanguageString;
|
|
929
|
-
order: number;
|
|
930
|
-
icon?: string;
|
|
931
|
-
}
|
|
932
|
-
/** Normalizes definition categories to an array for iteration and serialization. */
|
|
933
|
-
declare function normalizeDefinitionCategories(categories?: AXPDefinitionCategory | AXPDefinitionCategory[]): AXPDefinitionCategory[];
|
|
934
910
|
type AXPMetaData = Record<string, any>;
|
|
935
911
|
type AXPOptionsData<T extends Record<string, unknown> = Record<string, any>> = T;
|
|
936
912
|
interface AXPValueUnit {
|
|
@@ -967,10 +943,9 @@ interface AXPContent {
|
|
|
967
943
|
content: string;
|
|
968
944
|
contentType: AXPContentType;
|
|
969
945
|
}
|
|
970
|
-
type AXPMaybePromise<T = unknown> = T | Promise<T>;
|
|
971
946
|
|
|
972
947
|
type AXPDataSource = string | AXDataSource | any[];
|
|
973
|
-
type AXPDataType = 'string' | 'number' | '
|
|
948
|
+
type AXPDataType = 'string' | 'number' | 'object' | 'boolean' | 'array';
|
|
974
949
|
interface AXPPagedListResult<T = any> {
|
|
975
950
|
items: T[];
|
|
976
951
|
total: number;
|
|
@@ -1011,9 +986,9 @@ interface AXPCategoryEntity<TKey = string> {
|
|
|
1011
986
|
/** Unique identifier for the category */
|
|
1012
987
|
id: TKey;
|
|
1013
988
|
/** Display name of the category (required) */
|
|
1014
|
-
title:
|
|
989
|
+
title: string;
|
|
1015
990
|
/** Optional description of the category */
|
|
1016
|
-
description?:
|
|
991
|
+
description?: string;
|
|
1017
992
|
/** Parent category ID (undefined for root categories) */
|
|
1018
993
|
parentId?: TKey;
|
|
1019
994
|
/**
|
|
@@ -1104,22 +1079,17 @@ interface AXPCategoryEntityWithItems<T> extends AXPCategoryEntity {
|
|
|
1104
1079
|
items: T[];
|
|
1105
1080
|
children?: AXPCategoryEntityWithItems<T>[];
|
|
1106
1081
|
}
|
|
1107
|
-
/**
|
|
1108
|
-
* Denormalized category row on entities and DTOs (id + localized display title).
|
|
1109
|
-
* Use for `categories` arrays expanded from {@link AXPCategoryEntity} assignments.
|
|
1110
|
-
*/
|
|
1111
|
-
interface AXPCategoryListItem<TKey extends string = string> {
|
|
1112
|
-
id: TKey;
|
|
1113
|
-
title: AXPMultiLanguageString;
|
|
1114
|
-
}
|
|
1115
1082
|
interface AXPCategorizedEntity {
|
|
1116
1083
|
categoryIds: string[];
|
|
1117
1084
|
}
|
|
1118
1085
|
interface AXPCategorizedEntityDto {
|
|
1119
1086
|
categoryIds: string[];
|
|
1120
|
-
categories:
|
|
1087
|
+
categories: {
|
|
1088
|
+
id: string;
|
|
1089
|
+
title: string;
|
|
1090
|
+
}[];
|
|
1121
1091
|
}
|
|
1122
|
-
type AXPEntityOp = 'initial' | 'create' | 'update' | 'delete' | 'getOne' | 'getAll' | 'query'
|
|
1092
|
+
type AXPEntityOp = 'initial' | 'create' | 'update' | 'delete' | 'getOne' | 'getAll' | 'query';
|
|
1123
1093
|
|
|
1124
1094
|
type AXPWidgetTrigger = {
|
|
1125
1095
|
event: string;
|
|
@@ -1149,15 +1119,6 @@ interface AXPFileListItem {
|
|
|
1149
1119
|
description?: string;
|
|
1150
1120
|
}
|
|
1151
1121
|
|
|
1152
|
-
/**
|
|
1153
|
-
* Filter toolbar trigger entries (same shape as entity `schema.interface.triggers`).
|
|
1154
|
-
* Declared on `AXPFilterDefinition` and populated when building list filter definitions.
|
|
1155
|
-
*/
|
|
1156
|
-
interface AXPFilterTriggerDefinition {
|
|
1157
|
-
event: string;
|
|
1158
|
-
action: string;
|
|
1159
|
-
disabled?: boolean;
|
|
1160
|
-
}
|
|
1161
1122
|
interface AXPFilterClause extends AXDataSourceFilterOption {
|
|
1162
1123
|
id?: string;
|
|
1163
1124
|
order?: number;
|
|
@@ -1180,13 +1141,6 @@ interface AXPFilterDefinition extends AXPFilterClause {
|
|
|
1180
1141
|
};
|
|
1181
1142
|
};
|
|
1182
1143
|
hidden?: boolean;
|
|
1183
|
-
/**
|
|
1184
|
-
* When true, the filter is not selectable. When a string, it is evaluated as an expression (e.g. `{{ ... }}`)
|
|
1185
|
-
* using the current filters context.
|
|
1186
|
-
*/
|
|
1187
|
-
disabled?: boolean | string;
|
|
1188
|
-
/** Expression-driven triggers (events/actions); same semantics as entity `schema.interface.triggers`. */
|
|
1189
|
-
triggers?: AXPFilterTriggerDefinition[];
|
|
1190
1144
|
}
|
|
1191
1145
|
interface AXPFilterQuery extends Pick<AXPFilterDefinition, 'field' | 'value' | 'operator' | 'logic' | 'hidden'> {
|
|
1192
1146
|
filters?: AXPFilterQuery[];
|
|
@@ -1195,11 +1149,10 @@ interface AXPFilterQuery extends Pick<AXPFilterDefinition, 'field' | 'value' | '
|
|
|
1195
1149
|
|
|
1196
1150
|
type AXPActionMenuItem = {
|
|
1197
1151
|
name?: string;
|
|
1198
|
-
title:
|
|
1152
|
+
title: string;
|
|
1199
1153
|
icon?: string;
|
|
1200
1154
|
iconOnly?: boolean;
|
|
1201
1155
|
color?: string;
|
|
1202
|
-
look?: AXStyleLookType;
|
|
1203
1156
|
break?: boolean;
|
|
1204
1157
|
items?: AXPActionMenuItem[];
|
|
1205
1158
|
command?: AXPExecuteCommand;
|
|
@@ -1208,11 +1161,11 @@ type AXPActionMenuItem = {
|
|
|
1208
1161
|
policy?: string;
|
|
1209
1162
|
};
|
|
1210
1163
|
type AXPBackButton = {
|
|
1211
|
-
title:
|
|
1164
|
+
title: string;
|
|
1212
1165
|
};
|
|
1213
1166
|
type AXPBreadcrumbItem = {
|
|
1214
1167
|
name?: string;
|
|
1215
|
-
title:
|
|
1168
|
+
title: string;
|
|
1216
1169
|
icon?: string;
|
|
1217
1170
|
command?: AXPExecuteCommand;
|
|
1218
1171
|
};
|
|
@@ -1230,7 +1183,7 @@ type AXPPageStatus = {
|
|
|
1230
1183
|
interface AXPCommandMessage {
|
|
1231
1184
|
type?: 'info' | 'success' | 'warning' | 'error';
|
|
1232
1185
|
code?: string;
|
|
1233
|
-
text:
|
|
1186
|
+
text: string;
|
|
1234
1187
|
details?: unknown;
|
|
1235
1188
|
}
|
|
1236
1189
|
type AXPExecuteCommand = {
|
|
@@ -1252,7 +1205,7 @@ interface AXPQueryFetchResult<T = any> {
|
|
|
1252
1205
|
};
|
|
1253
1206
|
message?: {
|
|
1254
1207
|
code?: string;
|
|
1255
|
-
text?:
|
|
1208
|
+
text?: string;
|
|
1256
1209
|
details?: any;
|
|
1257
1210
|
};
|
|
1258
1211
|
}
|
|
@@ -1265,7 +1218,7 @@ type AXPNavigateActionOptions = {
|
|
|
1265
1218
|
};
|
|
1266
1219
|
modal: {
|
|
1267
1220
|
component: Type<any>;
|
|
1268
|
-
title:
|
|
1221
|
+
title: string;
|
|
1269
1222
|
options?: any;
|
|
1270
1223
|
};
|
|
1271
1224
|
};
|
|
@@ -1317,6 +1270,23 @@ declare class AXPIconLogoConfig implements AXPLogoConfig {
|
|
|
1317
1270
|
constructor(icon: string, color?: string | undefined);
|
|
1318
1271
|
}
|
|
1319
1272
|
|
|
1273
|
+
type AXPPlatformScopeKey = 'P' | 'T' | 'U';
|
|
1274
|
+
declare enum AXPPlatformScope {
|
|
1275
|
+
Platform = "P",
|
|
1276
|
+
Tenant = "T",
|
|
1277
|
+
User = "U"
|
|
1278
|
+
}
|
|
1279
|
+
declare function resolvePlatformScopeKey(name: string): AXPPlatformScopeKey;
|
|
1280
|
+
declare function resolvePlatformScopeName(scope: AXPPlatformScopeKey): string;
|
|
1281
|
+
|
|
1282
|
+
interface AXPSortDefinition {
|
|
1283
|
+
name: string;
|
|
1284
|
+
title: string;
|
|
1285
|
+
dir?: 'asc' | 'desc';
|
|
1286
|
+
}
|
|
1287
|
+
interface AXPSortQuery extends Pick<AXPSortDefinition, 'name' | 'dir'> {
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1320
1290
|
type AXPValidationRule = {
|
|
1321
1291
|
rule: string;
|
|
1322
1292
|
message?: string;
|
|
@@ -1353,52 +1323,6 @@ interface AXPReqexValidationRule extends AXPValidationRule {
|
|
|
1353
1323
|
}
|
|
1354
1324
|
type AXPStringValidationRules = (AXPRequiredValidationRule | AXPMinLengthValidationRule | AXPMaxLengthValidationRule | AXPEqualValidationRule<string> | AXPReqexValidationRule)[];
|
|
1355
1325
|
|
|
1356
|
-
interface AXPPropertyGroup {
|
|
1357
|
-
name: string;
|
|
1358
|
-
title: AXPMultiLanguageString;
|
|
1359
|
-
icon?: string;
|
|
1360
|
-
description?: AXPMultiLanguageString;
|
|
1361
|
-
order?: number;
|
|
1362
|
-
}
|
|
1363
|
-
interface AXPPropertyInterface {
|
|
1364
|
-
type: string;
|
|
1365
|
-
options: AXPOptionsData;
|
|
1366
|
-
triggers?: AXPWidgetTriggers;
|
|
1367
|
-
}
|
|
1368
|
-
/**
|
|
1369
|
-
* Platform property bag (entity fields, workflow inputs, etc.).
|
|
1370
|
-
*
|
|
1371
|
-
* For property viewer rows, use `mapAXPPropertyToWidgetProperty` from `@acorex/platform/layout/widget-core`
|
|
1372
|
-
* (keeps `platform/core` free of a dependency on `layout/widget-core`).
|
|
1373
|
-
*/
|
|
1374
|
-
interface AXPProperty {
|
|
1375
|
-
name: string;
|
|
1376
|
-
title: AXPMultiLanguageString;
|
|
1377
|
-
description?: AXPMultiLanguageString;
|
|
1378
|
-
dataType: AXPDataType;
|
|
1379
|
-
validations?: AXPValidationRules;
|
|
1380
|
-
group?: AXPPropertyGroup | string;
|
|
1381
|
-
order?: number;
|
|
1382
|
-
interface: AXPPropertyInterface;
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
type AXPPlatformScopeKey = 'P' | 'T' | 'U';
|
|
1386
|
-
declare enum AXPPlatformScope {
|
|
1387
|
-
Platform = "P",
|
|
1388
|
-
Tenant = "T",
|
|
1389
|
-
User = "U"
|
|
1390
|
-
}
|
|
1391
|
-
declare function resolvePlatformScopeKey(name: string): AXPPlatformScopeKey;
|
|
1392
|
-
declare function resolvePlatformScopeName(scope: AXPPlatformScopeKey): string;
|
|
1393
|
-
|
|
1394
|
-
interface AXPSortDefinition {
|
|
1395
|
-
name: string;
|
|
1396
|
-
title: string;
|
|
1397
|
-
dir?: 'asc' | 'desc';
|
|
1398
|
-
}
|
|
1399
|
-
interface AXPSortQuery extends Pick<AXPSortDefinition, 'name' | 'dir'> {
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
1326
|
interface AXPViewQuery {
|
|
1403
1327
|
name: string;
|
|
1404
1328
|
fixed: boolean;
|
|
@@ -1518,18 +1442,6 @@ interface AXPMiddlewareErrorResponse {
|
|
|
1518
1442
|
interface AXPActivityLogChange {
|
|
1519
1443
|
type: AXPSystemActionType;
|
|
1520
1444
|
description: string;
|
|
1521
|
-
/** I18n key for field label. When set with actionKey, used for translated display. */
|
|
1522
|
-
fieldKey?: string;
|
|
1523
|
-
/** Params for fieldKey translation (e.g. for unknown-field with {{name}}). */
|
|
1524
|
-
fieldKeyParams?: Record<string, string>;
|
|
1525
|
-
/** I18n key for action (e.g. @activity-log:changes.replaced). When set with fieldKey, overrides description. */
|
|
1526
|
-
actionKey?: string;
|
|
1527
|
-
oldValue?: unknown;
|
|
1528
|
-
newValue?: unknown;
|
|
1529
|
-
/** Short human-readable summary for Change History (e.g. "Updated from 'X' to 'Y'"). Used when layout is present. */
|
|
1530
|
-
summary?: string;
|
|
1531
|
-
/** Custom layout (AXPWidgetNode) for Change History. When set, rendered via AXPLayoutRenderer instead of default fieldKey/actionKey text. */
|
|
1532
|
-
layout?: unknown;
|
|
1533
1445
|
}
|
|
1534
1446
|
interface AXPActivityLog {
|
|
1535
1447
|
id: string;
|
|
@@ -1877,11 +1789,10 @@ declare const AXPContextStore: i0.Type<{
|
|
|
1877
1789
|
previous: i0.Signal<{}>;
|
|
1878
1790
|
changeEvent: i0.Signal<AXPContextChangeEvent>;
|
|
1879
1791
|
update: (path: string, value: any) => void;
|
|
1880
|
-
patch: (context:
|
|
1792
|
+
patch: (context: {}) => void;
|
|
1881
1793
|
reset: () => void;
|
|
1882
1794
|
set: (initialData: any) => void;
|
|
1883
1795
|
getValue: (path: string) => any;
|
|
1884
|
-
hasValue: (path: string) => boolean;
|
|
1885
1796
|
} & _ngrx_signals.StateSource<{
|
|
1886
1797
|
data: AXPContextData;
|
|
1887
1798
|
state: AXPContextState;
|
|
@@ -1919,10 +1830,10 @@ declare class AXPComponentSlotDirective implements OnInit {
|
|
|
1919
1830
|
viewContainerRef: ViewContainerRef;
|
|
1920
1831
|
contextStore: {
|
|
1921
1832
|
data: i0.Signal<AXPContextData>;
|
|
1922
|
-
state: i0.Signal<
|
|
1833
|
+
state: i0.Signal<AXPContextState>;
|
|
1923
1834
|
initialSnapshot: i0.Signal<{}>;
|
|
1924
1835
|
previousSnapshot: i0.Signal<{}>;
|
|
1925
|
-
lastChange: _ngrx_signals.DeepSignal<
|
|
1836
|
+
lastChange: _ngrx_signals.DeepSignal<AXPContextChangeEvent>;
|
|
1926
1837
|
isChanged: i0.Signal<boolean>;
|
|
1927
1838
|
isReset: i0.Signal<boolean>;
|
|
1928
1839
|
isInitiated: i0.Signal<boolean>;
|
|
@@ -1931,19 +1842,18 @@ declare class AXPComponentSlotDirective implements OnInit {
|
|
|
1931
1842
|
snapshot: i0.Signal<AXPContextData>;
|
|
1932
1843
|
initial: i0.Signal<{}>;
|
|
1933
1844
|
previous: i0.Signal<{}>;
|
|
1934
|
-
changeEvent: i0.Signal<
|
|
1845
|
+
changeEvent: i0.Signal<AXPContextChangeEvent>;
|
|
1935
1846
|
update: (path: string, value: any) => void;
|
|
1936
|
-
patch: (context:
|
|
1847
|
+
patch: (context: {}) => void;
|
|
1937
1848
|
reset: () => void;
|
|
1938
1849
|
set: (initialData: any) => void;
|
|
1939
1850
|
getValue: (path: string) => any;
|
|
1940
|
-
hasValue: (path: string) => boolean;
|
|
1941
1851
|
} & _ngrx_signals.StateSource<{
|
|
1942
1852
|
data: AXPContextData;
|
|
1943
|
-
state:
|
|
1853
|
+
state: AXPContextState;
|
|
1944
1854
|
initialSnapshot: {};
|
|
1945
1855
|
previousSnapshot: {};
|
|
1946
|
-
lastChange:
|
|
1856
|
+
lastChange: AXPContextChangeEvent;
|
|
1947
1857
|
}>;
|
|
1948
1858
|
isEmpty: i0.Signal<boolean>;
|
|
1949
1859
|
private _viewCount;
|
|
@@ -2020,11 +1930,6 @@ interface AXPDataSourceDataFieldDefinition {
|
|
|
2020
1930
|
type: string;
|
|
2021
1931
|
options?: AXPOptionsData;
|
|
2022
1932
|
}
|
|
2023
|
-
type AXPLazyDataSource<T = unknown> = AXPMaybePromise<AXDataSource<T>>;
|
|
2024
|
-
type AXPDataSourceArray<T = unknown> = AXPMaybePromise<Array<T>>;
|
|
2025
|
-
type AXPDataSourceValue<T = unknown> = AXPMaybePromise<T>;
|
|
2026
|
-
type AXPDataSourceType<T = any> = AXPLazyDataSource<T> | AXPDataSourceArray<T> | AXPDataSourceValue<T>;
|
|
2027
|
-
type AXPDataSourceSample<T = any> = AXPDataSourceArray<T> | AXPDataSourceValue<T>;
|
|
2028
1933
|
interface AXPDataSourceDefinition<T = any> {
|
|
2029
1934
|
name: string;
|
|
2030
1935
|
title: string;
|
|
@@ -2038,9 +1943,9 @@ interface AXPDataSourceDefinition<T = any> {
|
|
|
2038
1943
|
};
|
|
2039
1944
|
columns: AXPDataSourceDataFieldDefinition[];
|
|
2040
1945
|
filters: AXPFilterDefinition[];
|
|
2041
|
-
samples?:
|
|
1946
|
+
samples?: any[];
|
|
2042
1947
|
visible?: boolean;
|
|
2043
|
-
source: () =>
|
|
1948
|
+
source: () => AXDataSource<T> | Promise<AXDataSource<T>>;
|
|
2044
1949
|
}
|
|
2045
1950
|
interface AXPDataSourceDefinitionProvider {
|
|
2046
1951
|
items(): Promise<AXPDataSourceDefinition[]>;
|
|
@@ -2049,7 +1954,7 @@ declare const AXP_DATASOURCE_DEFINITION_PROVIDER: InjectionToken<AXPDataSourceDe
|
|
|
2049
1954
|
declare class AXPDataSourceDefinitionProviderService implements AXPDataSourceDefinitionProvider {
|
|
2050
1955
|
private providers;
|
|
2051
1956
|
items(): Promise<AXPDataSourceDefinition[]>;
|
|
2052
|
-
get
|
|
1957
|
+
get(name: string): Promise<AXPDataSourceDefinition | undefined>;
|
|
2053
1958
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPDataSourceDefinitionProviderService, never>;
|
|
2054
1959
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPDataSourceDefinitionProviderService>;
|
|
2055
1960
|
}
|
|
@@ -2373,18 +2278,6 @@ interface AXPFeatureDefinition extends AXPModuleFeatureDefinition {
|
|
|
2373
2278
|
key: string;
|
|
2374
2279
|
}
|
|
2375
2280
|
|
|
2376
|
-
/**
|
|
2377
|
-
* Registered module manifests for select widgets via dataSource name {@link MODULE_MANIFESTS_DATASOURCE_NAME}.
|
|
2378
|
-
*/
|
|
2379
|
-
declare const MODULE_MANIFESTS_DATASOURCE_NAME = "platform-module-manifests";
|
|
2380
|
-
/**
|
|
2381
|
-
* Data source definition for module names/titles from {@link AXPModuleManifestRegistry}.
|
|
2382
|
-
*/
|
|
2383
|
-
declare class AXPModuleManifestsDataSourceDefinition implements AXPDataSourceDefinitionProvider {
|
|
2384
|
-
private readonly manifestRegistry;
|
|
2385
|
-
items(): Promise<AXPDataSourceDefinition[]>;
|
|
2386
|
-
}
|
|
2387
|
-
|
|
2388
2281
|
/**
|
|
2389
2282
|
* Registry service for module manifests.
|
|
2390
2283
|
* Collects and manages all registered module manifests.
|
|
@@ -2552,21 +2445,6 @@ declare const AXP_SESSION_SERVICE: InjectionToken<AXPISessionService>;
|
|
|
2552
2445
|
*/
|
|
2553
2446
|
declare const AXP_MODULE_MANIFEST_PROVIDER: InjectionToken<AXPModuleManifest[]>;
|
|
2554
2447
|
|
|
2555
|
-
/**
|
|
2556
|
-
* Locale-aware comparison of {@link AXPMultiLanguageString} values (plain string, `@scope:key`, or locale map).
|
|
2557
|
-
* Resolves each side with {@link resolveMultiLanguageString} for `locale`, then compares with `String#localeCompare`.
|
|
2558
|
-
*/
|
|
2559
|
-
declare function compareMultiLanguageStrings(a: AXPMultiLanguageString | null | undefined, b: AXPMultiLanguageString | null | undefined, locale: string, collatorOptions?: Intl.CollatorOptions): number;
|
|
2560
|
-
/**
|
|
2561
|
-
* Stable sort copy: orders items by resolved string for `getValue(item)` using the active `locale`.
|
|
2562
|
-
*/
|
|
2563
|
-
declare function sortByMultiLanguageString<T>(items: readonly T[], getValue: (item: T) => AXPMultiLanguageString | null | undefined, locale: string, collatorOptions?: Intl.CollatorOptions): T[];
|
|
2564
|
-
/**
|
|
2565
|
-
* True when the resolved value contains `query` (case-insensitive) for `locale`.
|
|
2566
|
-
* Useful for search/filter flows over {@link AXPMultiLanguageString}.
|
|
2567
|
-
*/
|
|
2568
|
-
declare function searchInMultiLanguageString(value: AXPMultiLanguageString | null | undefined, query: string, locale: string): boolean;
|
|
2569
|
-
|
|
2570
2448
|
/**
|
|
2571
2449
|
* Represents a tag with text, color, and metadata
|
|
2572
2450
|
*/
|
|
@@ -2873,33 +2751,11 @@ declare function createProviderWithInjectionContext<T>(loader: () => Promise<new
|
|
|
2873
2751
|
*/
|
|
2874
2752
|
declare function provideLazyProvider<TProvider>(token: InjectionToken<any>, loader: () => Promise<new () => TProvider>, multi?: boolean): Provider;
|
|
2875
2753
|
|
|
2876
|
-
/**
|
|
2877
|
-
* If `raw` is a plain non-array object with a `value` property, returns `value`; otherwise returns `raw`.
|
|
2878
|
-
*/
|
|
2879
|
-
declare function unwrapValueProperty(raw: unknown): unknown;
|
|
2880
|
-
/**
|
|
2881
|
-
* Coerces to a trimmed string. Plain objects may carry `{ value }` from setting widgets or `{ id }` from select payloads using `valueField: 'id'`.
|
|
2882
|
-
*/
|
|
2883
|
-
declare function coerceUnknownToTrimmedString(raw: unknown): string;
|
|
2884
|
-
/**
|
|
2885
|
-
* Coerces to boolean: direct booleans pass through; wrapped `{ value: true | 'true' }` is respected; otherwise false.
|
|
2886
|
-
*/
|
|
2887
|
-
declare function coerceUnknownToBoolean(raw: unknown): boolean;
|
|
2888
|
-
/** Parses a finite number after optional `{ value }` unwrap; non-finite or empty string yields NaN. */
|
|
2889
|
-
declare function coerceUnknownToFiniteNumber(raw: unknown): number;
|
|
2890
|
-
/** Parses a Date after optional `{ value }` unwrap; invalid input yields Invalid Date. */
|
|
2891
|
-
declare function coerceUnknownToDate(raw: unknown): Date;
|
|
2892
|
-
|
|
2893
2754
|
declare function extractTextFromHtml(value: string): string;
|
|
2894
|
-
/**
|
|
2895
|
-
* True when the string likely contains HTML markup (e.g. `<p>`, `<ul>`), as opposed to plain text.
|
|
2896
|
-
* Used to choose innerHTML vs text interpolation for multilingual fields.
|
|
2897
|
-
*/
|
|
2898
|
-
declare function containsHtmlMarkup(value: string | null | undefined): boolean;
|
|
2899
2755
|
/**
|
|
2900
2756
|
* Generate kebab-case group name from title
|
|
2901
2757
|
*/
|
|
2902
2758
|
declare function generateKebabCase(title: string): string;
|
|
2903
2759
|
|
|
2904
|
-
export { AXHighlightService, AXPActivityLogProvider, AXPActivityLogService, AXPAppStartUpProvider, AXPAppStartUpService, AXPBroadcastEventService, AXPColorPaletteProvider, AXPColorPaletteService, AXPColumnWidthService, AXPComponentLogoConfig, AXPComponentSlot, AXPComponentSlotDirective, AXPComponentSlotModule, AXPComponentSlotRegistryService, AXPContentCheckerDirective, AXPContextChangeEvent, AXPContextStore, AXPCountdownPipe, AXPDataGenerator, AXPDataSourceDefinitionProviderService, AXPDblClickDirective, AXPDefaultColorPalettesProvider, AXPDeviceService, AXPDeviceType, AXPDistributedEventListenerService, AXPElementDataDirective, AXPExportTemplateToken, AXPExpressionEvaluatorScopeProviderContext, AXPExpressionEvaluatorScopeProviderService, AXPExpressionEvaluatorService, AXPFeatureDefinitionProviderContext, AXPGridLayoutDirective, AXPHookService, AXPIconLogoConfig, AXPImageUrlLogoConfig, AXPModuleManifestModule, AXPModuleManifestRegistry,
|
|
2905
|
-
export type { AXPActionMenuItem, AXPActivityLog, AXPActivityLogChange, AXPApplicationUserReference, AXPBackButton, AXPBadge, AXPBreadcrumbItem, AXPCategorizedEntity, AXPCategorizedEntityDto, AXPCategoryEntity, AXPCategoryEntityWithItems,
|
|
2760
|
+
export { AXHighlightService, AXPActivityLogProvider, AXPActivityLogService, AXPAppStartUpProvider, AXPAppStartUpService, AXPBroadcastEventService, AXPColorPaletteProvider, AXPColorPaletteService, AXPColumnWidthService, AXPComponentLogoConfig, AXPComponentSlot, AXPComponentSlotDirective, AXPComponentSlotModule, AXPComponentSlotRegistryService, AXPContentCheckerDirective, AXPContextChangeEvent, AXPContextStore, AXPCountdownPipe, AXPDataGenerator, AXPDataSourceDefinitionProviderService, AXPDblClickDirective, AXPDefaultColorPalettesProvider, AXPDeviceService, AXPDeviceType, AXPDistributedEventListenerService, AXPElementDataDirective, AXPExportTemplateToken, AXPExpressionEvaluatorScopeProviderContext, AXPExpressionEvaluatorScopeProviderService, AXPExpressionEvaluatorService, AXPFeatureDefinitionProviderContext, AXPGridLayoutDirective, AXPHookService, AXPIconLogoConfig, AXPImageUrlLogoConfig, AXPModuleManifestModule, AXPModuleManifestRegistry, AXPPlatformScope, AXPScreenSize, AXPSystemActionType, AXPSystemActions, AXPTagProvider, AXPTagService, AXP_ACTIVITY_LOG_PROVIDER, AXP_COLOR_PALETTE_PROVIDER, AXP_COLUMN_WIDTH_PROVIDER, AXP_DATASOURCE_DEFINITION_PROVIDER, AXP_DISTRIBUTED_EVENT_LISTENER_PROVIDER, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER, AXP_FEATURE_DEFINITION_PROVIDER, AXP_MODULE_MANIFEST_PROVIDER, AXP_SESSION_SERVICE, AXP_TAG_PROVIDER, applyFilterArray, applyPagination, applyQueryArray, applySortArray, applySystemActionDefault, cleanDeep, createProviderWithInjectionContext, defaultColumnWidthProvider, extractNestedFieldsWildcard, extractTextFromHtml, extractValue, generateKebabCase, getActionButton, getChangedPaths, getDetailedChanges, getEnumValues, getNestedKeys, getSmart, getSystemActions, objectKeyValueTransforms, provideLazyProvider, resolveActionLook, resolvePlatformScopeKey, resolvePlatformScopeName, setSmart };
|
|
2761
|
+
export type { AXPActionMenuItem, AXPActivityLog, AXPActivityLogChange, AXPApplicationUserReference, AXPBackButton, AXPBadge, AXPBreadcrumbItem, AXPCategorizedEntity, AXPCategorizedEntityDto, AXPCategoryEntity, AXPCategoryEntityWithItems, AXPColorPalette, AXPColorPaletteFilterOptions, AXPColumnQuery, AXPColumnWidthMatcher, AXPColumnWidthProvider, AXPCommandMessage, AXPComponentSlotConfig, AXPComponentSlotModuleConfigs, AXPContent, AXPContentDirection, AXPContentType, AXPContextData, AXPContextState, AXPDataSource, AXPDataSourceDataFieldDefinition, AXPDataSourceDefinition, AXPDataSourceDefinitionProvider, AXPDataType, AXPDistributedEventListenerProvider, AXPDistributedEventListenerProviderToken, AXPEntityOp, AXPEntityReference, AXPEqualValidationRule, AXPExecuteCommand, AXPExecuteCommandResult, AXPExportCsvOptions, AXPExportExcelOptions, AXPExportOptions, AXPExportPdfOptions, AXPExportPrintOptions, AXPExpression, AXPExpressionEvaluatorScope, AXPExpressionEvaluatorScopeProvider, AXPExpressionEvaluatorScopeProviders, AXPFeatureDefinition, AXPFeatureDefinitionProvider, AXPFeatureName, AXPFileListItem, AXPFileSource, AXPFileStatus, AXPFilterClause, AXPFilterDefinition, AXPFilterQuery, AXPFlowDirection, AXPGridLayoutOptions, AXPGridPlacement, AXPISessionService, AXPLogoConfig, AXPMaxLengthValidationRule, AXPMetaData, AXPMiddlewareErrorResponse, AXPMinLengthValidationRule, AXPModuleFeatureDefinition, AXPModuleFeatureDefinitionWithKey, AXPModuleManifest, AXPNavigateActionCommand, AXPNavigateActionOptions, AXPOptionsData, AXPPageStatus, AXPPagedListResult, AXPPartialNested, AXPPlatformScopeKey, AXPQueryFetchResult, AXPQueryRequest, AXPReqexValidationRule, AXPRequiredValidationRule, AXPSortDefinition, AXPSortQuery, AXPStartUpTask, AXPStringValidationRules, AXPSystemAction, AXPTag, AXPTagFilterOptions, AXPUserReference, AXPValidationRule, AXPValidationRules, AXPValueTransformerFunction, AXPValueTransformerFunctions, AXPValueUnit, AXPValueUnits, AXPViewBlockDefinition, AXPViewDefinition, AXPViewFieldDefinition, AXPViewQuery, AXPWidgetTrigger, AXPWidgetTriggers, ColumnNameMatcher, ColumnWidthValue, IColumnWithWidth, WidgetTypeMatcher };
|