@acorex/platform 19.1.3 → 19.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/index.d.ts +1 -0
- package/common/lib/app/application.types.d.ts +2 -2
- package/common/lib/file-storage/file-storage.service.d.ts +13 -0
- package/common/lib/file-storage/file-storage.types.d.ts +143 -0
- package/common/lib/file-storage/index.d.ts +2 -0
- package/common/lib/filters/filters.types.d.ts +2 -1
- package/common/lib/settings/setting-definition.provider.d.ts +12 -5
- package/common/lib/settings/setting.builder.d.ts +4 -3
- package/common/lib/settings/settings.provider.d.ts +2 -7
- package/common/lib/settings/settings.service.d.ts +19 -7
- package/common/lib/settings/settings.types.d.ts +15 -2
- package/common/lib/workflows/common.workflow.d.ts +11 -0
- package/core/utils/highlighter.d.ts +1 -1
- package/fesm2022/acorex-platform-common.mjs +194 -74
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +2 -2
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +290 -456
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +13 -13
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +595 -584
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-filters.mjs +82 -6
- package/fesm2022/acorex-platform-layout-filters.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-setting.mjs +73 -91
- package/fesm2022/acorex-platform-layout-setting.mjs.map +1 -1
- package/fesm2022/acorex-platform-layouts.mjs +3 -4
- package/fesm2022/acorex-platform-layouts.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-K9B_-q_K.mjs +108 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-K9B_-q_K.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-xlBBA76O.mjs +369 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-xlBBA76O.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Cd2gxLZt.mjs +87 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Cd2gxLZt.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-6sZdw013.mjs +130 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-6sZdw013.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-setting-page.component-BYpCgHZb.mjs +74 -0
- package/fesm2022/acorex-platform-themes-default-setting-page.component-BYpCgHZb.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-setting-view.component-CdmIphX1.mjs +73 -0
- package/fesm2022/acorex-platform-themes-default-setting-view.component-CdmIphX1.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +20 -20
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +288 -81
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-column.component-05nKV-UV.mjs → acorex-platform-widgets-checkbox-widget-column.component-jeZBOEhl.mjs} +18 -14
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-jeZBOEhl.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-B_Gec5Qf.mjs → acorex-platform-widgets-checkbox-widget-designer.component-D8KErkus.mjs} +3 -3
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-B_Gec5Qf.mjs.map → acorex-platform-widgets-checkbox-widget-designer.component-D8KErkus.mjs.map} +1 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-DU1niJES.mjs +64 -0
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-DU1niJES.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +2306 -549
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +9 -3
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/builder/lib/builder/builder.module.d.ts +10 -10
- package/layout/builder/lib/builder/builder.service.d.ts +9 -10
- package/layout/builder/lib/builder/context-store.service.d.ts +33 -0
- package/layout/builder/lib/builder/index.d.ts +4 -2
- package/layout/builder/lib/builder/widget-catalog.d.ts +1 -1
- package/layout/builder/lib/builder/widget-container.component.d.ts +34 -9
- package/layout/builder/lib/builder/widget-groups.d.ts +1 -0
- package/layout/builder/lib/builder/widget-map.d.ts +48 -0
- package/layout/builder/lib/builder/widget-placeholder.component.d.ts +5 -0
- package/layout/builder/lib/builder/{widget-renderer.component.directive.d.ts → widget-renderer.directive.d.ts} +27 -1
- package/layout/builder/lib/builder/widget-status.types.d.ts +14 -0
- package/layout/builder/lib/builder/widget.types.d.ts +45 -55
- package/layout/designer/lib/preview/preview-viewer.component.d.ts +2 -2
- package/layout/designer/lib/property-viewer/widget-property-viewer.component.d.ts +2 -2
- package/layout/entity/lib/entity-master-list.viewmodel.d.ts +7 -2
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.d.ts +0 -1
- package/layout/filters/lib/filters.viewmodel.d.ts +13 -3
- package/layout/setting/lib/convert-setting-data.d.ts +0 -20
- package/layout/setting/lib/setting.viewmodel.d.ts +65 -4
- package/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.d.ts +15 -5
- package/package.json +9 -9
- package/themes/default/lib/layouts/base/simple-page/simple-page.layout.d.ts +15 -5
- package/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.d.ts +15 -5
- package/themes/default/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.d.ts +2 -1
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.d.ts +17 -6
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-filters/list-view-option-filters.component.d.ts +6 -3
- package/themes/default/lib/layouts/entity-layouts/entity-master-modify-view/entity-master-modify-view.component.d.ts +2 -1
- package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.d.ts +15 -5
- package/themes/default/lib/layouts/filters-layout/simple-filter-builder/filters-view.component.d.ts +6 -5
- package/themes/default/lib/layouts/root-layout/components/header/header.component.d.ts +15 -5
- package/themes/default/lib/layouts/root-layout/root-layout.component.d.ts +15 -5
- package/themes/default/lib/layouts/setting-layout/setting-page/setting-page.component.d.ts +0 -47
- package/themes/default/lib/layouts/setting-layout/setting-view/setting-view.component.d.ts +19 -5
- package/themes/shared/index.d.ts +3 -1
- package/themes/shared/lib/components/theme-slot.component.d.ts +23 -13
- package/themes/shared/lib/palette.provider.d.ts +9 -0
- package/themes/shared/lib/setting.keys.d.ts +7 -2
- package/themes/shared/lib/setting.provider.d.ts +1 -0
- package/themes/shared/lib/shared.module.d.ts +2 -1
- package/themes/shared/lib/{services/theme.service.d.ts → theme.service.d.ts} +16 -24
- package/themes/shared/lib/theme.types.d.ts +25 -0
- package/themes/shared/lib/widgets/theme-color-selection/index.d.ts +2 -0
- package/themes/shared/lib/widgets/theme-color-selection/theme-color-selection-widget-edit.component.d.ts +6 -0
- package/themes/shared/lib/widgets/theme-color-selection/theme-color-selection-widget.config.d.ts +7 -0
- package/widgets/lib/properties/layout.props.d.ts +1 -0
- package/widgets/lib/widgets/advance/avatar/avatar-widget-column.component.d.ts +6 -0
- package/widgets/lib/widgets/advance/avatar/avatar-widget-designer.component.d.ts +6 -0
- package/widgets/lib/widgets/advance/avatar/avatar-widget-edit.component.d.ts +18 -0
- package/widgets/lib/widgets/advance/avatar/avatar-widget-print.component.d.ts +6 -0
- package/widgets/lib/widgets/advance/avatar/avatar-widget-view.component.d.ts +6 -0
- package/widgets/lib/widgets/advance/avatar/avatar-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/advance/avatar/index.d.ts +6 -0
- package/widgets/lib/widgets/advance/map/map-box-widget-edit.component.d.ts +9 -5
- package/widgets/lib/widgets/advance/map/map-box-widget-view.component.d.ts +6 -4
- package/widgets/lib/widgets/editors/number/number-box-widget-edit.component.d.ts +1 -7
- package/widgets/lib/widgets/editors/select/select-box-widget-edit.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/toggle/toggle-widget-edit.component.d.ts +0 -2
- package/widgets/lib/widgets/filters/boolean-filter/boolean-filter-widget-edit.component.d.ts +18 -0
- package/widgets/lib/widgets/filters/boolean-filter/boolean-filter-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/filters/boolean-filter/index.d.ts +2 -0
- package/widgets/lib/widgets/filters/date-time-filter/date-time-filter-widget-edit.component.d.ts +20 -0
- package/widgets/lib/widgets/filters/date-time-filter/date-time-filter-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/filters/date-time-filter/index.d.ts +2 -0
- package/widgets/lib/widgets/filters/number-filter/index.d.ts +2 -0
- package/widgets/lib/widgets/filters/number-filter/number-filter-widget-edit.component.d.ts +12 -0
- package/widgets/lib/widgets/filters/number-filter/number-filter-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/filters/operations/operations.component.d.ts +9 -0
- package/widgets/lib/widgets/filters/select-filter/index.d.ts +2 -0
- package/widgets/lib/widgets/filters/select-filter/select-filter-widget-edit.component.d.ts +16 -0
- package/widgets/lib/widgets/filters/select-filter/select-filter-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/filters/string-filter/index.d.ts +2 -0
- package/widgets/lib/widgets/filters/string-filter/string-filter-widget-edit.component.d.ts +12 -0
- package/widgets/lib/widgets/filters/string-filter/string-filter-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/index.d.ts +5 -1
- package/widgets/lib/widgets/property-editors/border/border-widget-editor.component.d.ts +29 -7
- package/widgets/lib/widgets/property-editors/border/index.d.ts +0 -1
- package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget-editor.component.d.ts +36 -0
- package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget.type.d.ts +18 -0
- package/widgets/lib/widgets/property-editors/flex-options/index.d.ts +3 -0
- package/widgets/lib/widgets/property-editors/property-editor-helper.d.ts +82 -0
- package/widgets/lib/widgets/property-editors/property-editor.type.d.ts +35 -0
- package/widgets/lib/widgets/property-editors/spacing/index.d.ts +0 -1
- package/widgets/lib/widgets/property-editors/spacing/spacing-widget-editor.component.d.ts +11 -9
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-CSyR4pYp.mjs +0 -108
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-CSyR4pYp.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-xHWp2Lk-.mjs +0 -368
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-xHWp2Lk-.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-n7mYNduJ.mjs +0 -87
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-n7mYNduJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DjyYU0Gy.mjs +0 -130
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DjyYU0Gy.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-setting-page.component-6Dd8MGqr.mjs +0 -78
- package/fesm2022/acorex-platform-themes-default-setting-page.component-6Dd8MGqr.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-setting-view.component-BgiMClew.mjs +0 -58
- package/fesm2022/acorex-platform-themes-default-setting-view.component-BgiMClew.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-05nKV-UV.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-BkWcZ4K9.mjs +0 -72
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-BkWcZ4K9.mjs.map +0 -1
- package/layout/builder/lib/builder/widget-renderer.component.d.ts +0 -48
- package/widgets/lib/widgets/property-editors/border/border-widget-type.d.ts +0 -18
- package/widgets/lib/widgets/property-editors/spacing/spacing-widget-type.d.ts +0 -16
package/common/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AXDataSourceOperator, AXStyleColorType } from '@acorex/components/common';
|
|
2
|
-
import {
|
|
2
|
+
import { AXPValidationRules } from '@acorex/platform/core';
|
|
3
3
|
import { AXPWidgetTypesMap } from '@acorex/platform/layout/builder';
|
|
4
4
|
import { AXPGridLayoutOptions } from '../layout';
|
|
5
5
|
export interface AXEntityPropertyWidget {
|
|
@@ -94,7 +94,7 @@ export interface AXPEntityProperty {
|
|
|
94
94
|
filter?: {
|
|
95
95
|
advance?: {
|
|
96
96
|
enabled?: boolean;
|
|
97
|
-
|
|
97
|
+
widgetType?: AXPWidgetTypesMap[keyof AXPWidgetTypesMap];
|
|
98
98
|
};
|
|
99
99
|
inline?: {
|
|
100
100
|
enabled?: boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AXPFileStorageCreateRequest, AXPFileStorageInfo, AXPFileStorageUpdateRequest, AXPFileStorageFindRequest } from "./file-storage.types";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare abstract class AXPFileStorageService {
|
|
4
|
+
abstract save(request: AXPFileStorageCreateRequest): Promise<AXPFileStorageInfo>;
|
|
5
|
+
abstract update(request: AXPFileStorageUpdateRequest): Promise<AXPFileStorageInfo>;
|
|
6
|
+
abstract find(request: AXPFileStorageFindRequest): Promise<AXPFileStorageInfo[]>;
|
|
7
|
+
abstract getInfo(fileId: string): Promise<AXPFileStorageInfo>;
|
|
8
|
+
abstract remove(fileId: string): Promise<void>;
|
|
9
|
+
abstract commit(fileId: string): Promise<void>;
|
|
10
|
+
abstract markForDeletion(fileId: string): Promise<void>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPFileStorageService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPFileStorageService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { AXPMetaData } from "@acorex/platform/core";
|
|
2
|
+
export declare enum AXPFileStorageStatus {
|
|
3
|
+
Temporary = "temporary",// File is not yet associated with a parent entity
|
|
4
|
+
Committed = "committed",// File is fully associated and in use
|
|
5
|
+
PendingDeletion = "pendingDeletion",// File is marked for deletion but not yet removed
|
|
6
|
+
Archived = "archived",// File is archived and no longer actively used
|
|
7
|
+
Error = "error"
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Interface representing a file storage request in the Acorex platform.
|
|
11
|
+
*/
|
|
12
|
+
export interface AXPFileStorageCreateRequest {
|
|
13
|
+
/**
|
|
14
|
+
* The file to be stored.
|
|
15
|
+
*/
|
|
16
|
+
file: File;
|
|
17
|
+
/**
|
|
18
|
+
* The unique identifier of referenced entity.
|
|
19
|
+
*/
|
|
20
|
+
refId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The type of the referenced entity.
|
|
23
|
+
*/
|
|
24
|
+
refType: string;
|
|
25
|
+
/**
|
|
26
|
+
* The category of the file. profile-picture, company-logo, policy, document, etc.
|
|
27
|
+
*/
|
|
28
|
+
category: string;
|
|
29
|
+
/**
|
|
30
|
+
* The folder path where the file should be stored.
|
|
31
|
+
* If null, the service will resolve the path based on metadata, user, tenant, or default rules.
|
|
32
|
+
*/
|
|
33
|
+
path?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Metadata associated with the file.
|
|
36
|
+
*/
|
|
37
|
+
metadata?: AXPMetaData;
|
|
38
|
+
/**
|
|
39
|
+
* Indicates whether the file is primary or not.
|
|
40
|
+
*/
|
|
41
|
+
isPrimary?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface AXPFileStorageUpdateRequest {
|
|
44
|
+
/**
|
|
45
|
+
* The unique identifier for the stored file.
|
|
46
|
+
*/
|
|
47
|
+
fileId: string;
|
|
48
|
+
/**
|
|
49
|
+
* The folder path where the file should be stored.
|
|
50
|
+
* If null, the service will resolve the path based on metadata, user, tenant, or default rules.
|
|
51
|
+
*/
|
|
52
|
+
path?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Metadata associated with the file.
|
|
55
|
+
*/
|
|
56
|
+
metadata: AXPMetaData;
|
|
57
|
+
/**
|
|
58
|
+
* Indicates whether the file is primary or not.
|
|
59
|
+
*/
|
|
60
|
+
isPrimary?: boolean;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Represents information about a file stored in the AXP file storage system.
|
|
64
|
+
*/
|
|
65
|
+
export interface AXPFileStorageInfo {
|
|
66
|
+
/**
|
|
67
|
+
* The unique identifier for the stored file.
|
|
68
|
+
*/
|
|
69
|
+
fileId: string;
|
|
70
|
+
/**
|
|
71
|
+
* The unique identifier of referenced entity.
|
|
72
|
+
*/
|
|
73
|
+
refId: string;
|
|
74
|
+
/**
|
|
75
|
+
* The type of the referenced entity.
|
|
76
|
+
*/
|
|
77
|
+
refType: string;
|
|
78
|
+
/**
|
|
79
|
+
* The category of the file. profile-picture, company-logo, policy, document, etc.
|
|
80
|
+
*/
|
|
81
|
+
category: string;
|
|
82
|
+
/**
|
|
83
|
+
* The URL where the file can be accessed.
|
|
84
|
+
*/
|
|
85
|
+
url?: string;
|
|
86
|
+
/**
|
|
87
|
+
* The size of the file in bytes.
|
|
88
|
+
*/
|
|
89
|
+
size: number;
|
|
90
|
+
/**
|
|
91
|
+
* The MIME type of the file.
|
|
92
|
+
*/
|
|
93
|
+
mimeType: string;
|
|
94
|
+
/**
|
|
95
|
+
* The date and time when the file was uploaded.
|
|
96
|
+
*/
|
|
97
|
+
uploadedAt: Date;
|
|
98
|
+
/**
|
|
99
|
+
* Indicates whether the file is public or private.
|
|
100
|
+
*/
|
|
101
|
+
isPublic: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Indicates whether the file is primary or not.
|
|
104
|
+
*/
|
|
105
|
+
isPrimary?: boolean;
|
|
106
|
+
status: AXPFileStorageStatus;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Represents information about a file stored in the AXP file storage system.
|
|
110
|
+
*/
|
|
111
|
+
export interface AXPFileStorageFindRequest {
|
|
112
|
+
/**
|
|
113
|
+
* The unique identifier of referenced entity.
|
|
114
|
+
*/
|
|
115
|
+
refId?: string;
|
|
116
|
+
/**
|
|
117
|
+
* The type of the referenced entity.
|
|
118
|
+
*/
|
|
119
|
+
refType?: string;
|
|
120
|
+
/**
|
|
121
|
+
* The category of the file. profile-picture, company-logo, policy, document, etc.
|
|
122
|
+
*/
|
|
123
|
+
category?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The MIME type of the file.
|
|
126
|
+
*/
|
|
127
|
+
mimeType?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Indicates whether the file is public or private.
|
|
130
|
+
*/
|
|
131
|
+
isPublic?: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Indicates whether the file is primary or not.
|
|
134
|
+
*/
|
|
135
|
+
isPrimary?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* The date and time range when the file was uploaded.
|
|
138
|
+
*/
|
|
139
|
+
uploadedAtRange?: {
|
|
140
|
+
from: Date;
|
|
141
|
+
to: Date;
|
|
142
|
+
};
|
|
143
|
+
}
|
|
@@ -14,5 +14,6 @@ export interface AXPFilterDefinition {
|
|
|
14
14
|
filters?: AXPFilterDefinition[];
|
|
15
15
|
widget: AXPWidgetNode;
|
|
16
16
|
}
|
|
17
|
-
export interface AXPFilterQuery extends Pick<AXPFilterDefinition, 'field' | 'value' | 'operator' | 'logic'
|
|
17
|
+
export interface AXPFilterQuery extends Pick<AXPFilterDefinition, 'field' | 'value' | 'operator' | 'logic'> {
|
|
18
|
+
filters?: AXPFilterQuery[];
|
|
18
19
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { AXPGroupSearchResult, AXPSettingDefinitionGroup, AXPSettingScope } from './settings.types';
|
|
2
|
+
import { AXPGroupSearchResult, AXPSettingDefinitionGroup, AXPSettingScope, AXPSettingScopeKey, AXPSettingValue, AXPSettingValueProvider } from './settings.types';
|
|
3
3
|
import { AXPSettingDefinitionProviderContext } from './setting.builder';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export interface AXPSettingDefinitionProvider {
|
|
@@ -10,11 +10,18 @@ export declare class AXPSettingDefinitionProviderService {
|
|
|
10
10
|
private providers;
|
|
11
11
|
private cache;
|
|
12
12
|
private load;
|
|
13
|
-
getListAsync(scope:
|
|
14
|
-
getList(scope:
|
|
15
|
-
defaultValues(
|
|
16
|
-
findGroup(scope:
|
|
13
|
+
getListAsync(scope: AXPSettingScopeKey): Promise<AXPSettingDefinitionGroup[]>;
|
|
14
|
+
getList(scope: AXPSettingScopeKey): AXPSettingDefinitionGroup[];
|
|
15
|
+
defaultValues(): Promise<Record<string, unknown>>;
|
|
16
|
+
findGroup(scope: AXPSettingScopeKey, groupName: string): AXPGroupSearchResult;
|
|
17
17
|
private searchRecursive;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingDefinitionProviderService, never>;
|
|
19
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingDefinitionProviderService>;
|
|
20
20
|
}
|
|
21
|
+
export declare class AXPSettingDefaultValueProvider implements AXPSettingValueProvider {
|
|
22
|
+
private definitionProvider;
|
|
23
|
+
get scope(): AXPSettingScope;
|
|
24
|
+
load(): Promise<AXPSettingValue[]>;
|
|
25
|
+
set(key: string, value: any): Promise<void>;
|
|
26
|
+
set(values: Record<string, any>): Promise<void>;
|
|
27
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AXPOptionsData } from '@acorex/platform/core';
|
|
1
|
+
import { AXPOptionsData, AXPValidationRules } from '@acorex/platform/core';
|
|
2
2
|
import { AXPWidgetTriggers, AXPWidgetTypesMap, AXPWidgetValueTransformFunctions } from '@acorex/platform/layout/builder';
|
|
3
|
-
import { AXPSettingDefinitionGroup, AXPSettingDefinitionSection,
|
|
3
|
+
import { AXPSettingDefinitionGroup, AXPSettingDefinitionSection, AXPSettingScopeKey } from './index';
|
|
4
4
|
export declare class AXPSettingDefinitionProviderContext {
|
|
5
5
|
private rootGroups;
|
|
6
6
|
private groupMap;
|
|
@@ -26,7 +26,7 @@ export declare class AXPSettingDefinitionSectionBuilder {
|
|
|
26
26
|
addSetting(setting: {
|
|
27
27
|
key: string;
|
|
28
28
|
title: string;
|
|
29
|
-
scope:
|
|
29
|
+
scope: AXPSettingScopeKey;
|
|
30
30
|
widget: {
|
|
31
31
|
type: AXPWidgetTypesMap[keyof AXPWidgetTypesMap];
|
|
32
32
|
options?: AXPOptionsData;
|
|
@@ -38,6 +38,7 @@ export declare class AXPSettingDefinitionSectionBuilder {
|
|
|
38
38
|
isEncrypted?: boolean;
|
|
39
39
|
defaultValue?: unknown;
|
|
40
40
|
valueTransforms?: AXPWidgetValueTransformFunctions;
|
|
41
|
+
validationRules?: AXPValidationRules;
|
|
41
42
|
}): this;
|
|
42
43
|
endSection(): AXPSettingDefinitionGroupBuilder;
|
|
43
44
|
}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AXPSettingValueProvider } from "./settings.types";
|
|
2
2
|
import { InjectionToken } from "@angular/core";
|
|
3
|
-
export
|
|
4
|
-
load(): Promise<AXPSettingValue[]>;
|
|
5
|
-
set(key: string, value: any): Promise<void>;
|
|
6
|
-
set(values: Record<string, any>): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
export declare const AXP_SETTING_VALUE_PROVIDER: InjectionToken<AXPSettingValueProvider>;
|
|
3
|
+
export declare const AXP_SETTING_VALUE_PROVIDER: InjectionToken<AXPSettingValueProvider[]>;
|
|
@@ -1,17 +1,29 @@
|
|
|
1
1
|
import { Subject } from 'rxjs';
|
|
2
|
-
import { AXPSettingChangedEvent, AXPSettingValue } from './settings.types';
|
|
2
|
+
import { AXPSettingChangedEvent, AXPSettingScope, AXPSettingValue, AXPSettingValueProvider } from './settings.types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class AXPSettingValueProviderService {
|
|
5
|
-
private readonly
|
|
6
|
-
private
|
|
5
|
+
private readonly providers;
|
|
6
|
+
private readonly definitionService;
|
|
7
|
+
private scopedSettingsCache;
|
|
7
8
|
readonly onChanged: Subject<AXPSettingChangedEvent>;
|
|
9
|
+
constructor();
|
|
8
10
|
load(): Promise<AXPSettingValue[]>;
|
|
9
11
|
get<T = any>(key: string): Promise<T>;
|
|
12
|
+
defaultValues(scope: AXPSettingScope): Promise<Record<string, unknown>>;
|
|
13
|
+
scope(scope: AXPSettingScope): ScopedSettingService;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingValueProviderService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingValueProviderService>;
|
|
16
|
+
}
|
|
17
|
+
declare class ScopedSettingService {
|
|
18
|
+
private parent;
|
|
19
|
+
private provider;
|
|
20
|
+
private onChanged;
|
|
21
|
+
private scopeCache;
|
|
22
|
+
constructor(parent: AXPSettingValueProviderService, provider: AXPSettingValueProvider, onChanged: Subject<AXPSettingChangedEvent>, scopeCache: Map<string, any>);
|
|
23
|
+
get<T = any>(key: string): Promise<T>;
|
|
10
24
|
all(): Promise<any>;
|
|
25
|
+
defaultValues(): Promise<Record<string, unknown>>;
|
|
11
26
|
set<T = any>(key: string, value: T): Promise<void>;
|
|
12
27
|
set<T = any>(values: Record<string, T>): Promise<void>;
|
|
13
|
-
set<T = any>(key: string, value: T): Promise<void>;
|
|
14
|
-
set<T = any>(values: Record<string, T>): Promise<void>;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingValueProviderService, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingValueProviderService>;
|
|
17
28
|
}
|
|
29
|
+
export {};
|
|
@@ -1,20 +1,33 @@
|
|
|
1
1
|
import { AXPWidgetNode } from '@acorex/platform/layout/builder';
|
|
2
|
+
export interface AXPSettingValueProvider {
|
|
3
|
+
get scope(): AXPSettingScope;
|
|
4
|
+
load(): Promise<AXPSettingValue[]>;
|
|
5
|
+
set(key: string, value: any): Promise<void>;
|
|
6
|
+
set(values: Record<string, any>): Promise<void>;
|
|
7
|
+
}
|
|
2
8
|
export interface AXPSettingValue {
|
|
3
9
|
key: string;
|
|
4
10
|
value: any;
|
|
5
11
|
}
|
|
6
12
|
export interface AXPSettingChangedEvent {
|
|
13
|
+
scope: AXPSettingScope;
|
|
7
14
|
keys: string[];
|
|
8
15
|
values: Record<string, any>;
|
|
9
16
|
entries: AXPSettingValue[];
|
|
10
17
|
}
|
|
11
|
-
export type
|
|
18
|
+
export type AXPSettingScopeKey = 'C' | 'G' | 'T' | 'U';
|
|
19
|
+
export declare enum AXPSettingScope {
|
|
20
|
+
Environment = "C",
|
|
21
|
+
Global = "G",
|
|
22
|
+
Tenant = "T",
|
|
23
|
+
User = "U"
|
|
24
|
+
}
|
|
12
25
|
export interface AXPSettingDefinition {
|
|
13
26
|
name: string;
|
|
14
27
|
title: string;
|
|
15
28
|
description?: string;
|
|
16
29
|
widget: AXPWidgetNode;
|
|
17
|
-
scope:
|
|
30
|
+
scope: AXPSettingScopeKey;
|
|
18
31
|
isRequired?: boolean;
|
|
19
32
|
isInherited?: boolean;
|
|
20
33
|
isEncrypted?: boolean;
|
|
@@ -12,6 +12,17 @@ export declare const AXPRedirectEvent: {
|
|
|
12
12
|
};
|
|
13
13
|
type: string;
|
|
14
14
|
};
|
|
15
|
+
export declare const AXPRefreshEvent: {
|
|
16
|
+
(payload: {
|
|
17
|
+
entity: string;
|
|
18
|
+
}): {
|
|
19
|
+
type: string;
|
|
20
|
+
payload: {
|
|
21
|
+
entity: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
15
26
|
export declare class AXPWorkflowNavigateAction extends AXPWorkflowAction {
|
|
16
27
|
private router;
|
|
17
28
|
execute(context: AXPWorkflowContext): Promise<void>;
|
|
@@ -16,7 +16,7 @@ export declare class AXHighlightService {
|
|
|
16
16
|
/**
|
|
17
17
|
* Resets all highlighted text within the elements matching the previously used query selector.
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
clear(): void;
|
|
20
20
|
/**
|
|
21
21
|
* Applies highlighting to a specific element by matching text against the search value.
|
|
22
22
|
*
|