@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.
Files changed (157) hide show
  1. package/common/index.d.ts +1 -0
  2. package/common/lib/app/application.types.d.ts +2 -2
  3. package/common/lib/file-storage/file-storage.service.d.ts +13 -0
  4. package/common/lib/file-storage/file-storage.types.d.ts +143 -0
  5. package/common/lib/file-storage/index.d.ts +2 -0
  6. package/common/lib/filters/filters.types.d.ts +2 -1
  7. package/common/lib/settings/setting-definition.provider.d.ts +12 -5
  8. package/common/lib/settings/setting.builder.d.ts +4 -3
  9. package/common/lib/settings/settings.provider.d.ts +2 -7
  10. package/common/lib/settings/settings.service.d.ts +19 -7
  11. package/common/lib/settings/settings.types.d.ts +15 -2
  12. package/common/lib/workflows/common.workflow.d.ts +11 -0
  13. package/core/utils/highlighter.d.ts +1 -1
  14. package/fesm2022/acorex-platform-common.mjs +194 -74
  15. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  16. package/fesm2022/acorex-platform-core.mjs +2 -2
  17. package/fesm2022/acorex-platform-core.mjs.map +1 -1
  18. package/fesm2022/acorex-platform-layout-builder.mjs +290 -456
  19. package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
  20. package/fesm2022/acorex-platform-layout-designer.mjs +13 -13
  21. package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
  22. package/fesm2022/acorex-platform-layout-entity.mjs +595 -584
  23. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  24. package/fesm2022/acorex-platform-layout-filters.mjs +82 -6
  25. package/fesm2022/acorex-platform-layout-filters.mjs.map +1 -1
  26. package/fesm2022/acorex-platform-layout-setting.mjs +73 -91
  27. package/fesm2022/acorex-platform-layout-setting.mjs.map +1 -1
  28. package/fesm2022/acorex-platform-layouts.mjs +3 -4
  29. package/fesm2022/acorex-platform-layouts.mjs.map +1 -1
  30. package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-K9B_-q_K.mjs +108 -0
  31. package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-K9B_-q_K.mjs.map +1 -0
  32. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-xlBBA76O.mjs +369 -0
  33. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-xlBBA76O.mjs.map +1 -0
  34. package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Cd2gxLZt.mjs +87 -0
  35. package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Cd2gxLZt.mjs.map +1 -0
  36. package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-6sZdw013.mjs +130 -0
  37. package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-6sZdw013.mjs.map +1 -0
  38. package/fesm2022/acorex-platform-themes-default-setting-page.component-BYpCgHZb.mjs +74 -0
  39. package/fesm2022/acorex-platform-themes-default-setting-page.component-BYpCgHZb.mjs.map +1 -0
  40. package/fesm2022/acorex-platform-themes-default-setting-view.component-CdmIphX1.mjs +73 -0
  41. package/fesm2022/acorex-platform-themes-default-setting-view.component-CdmIphX1.mjs.map +1 -0
  42. package/fesm2022/acorex-platform-themes-default.mjs +20 -20
  43. package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
  44. package/fesm2022/acorex-platform-themes-shared.mjs +288 -81
  45. package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
  46. package/fesm2022/{acorex-platform-widgets-checkbox-widget-column.component-05nKV-UV.mjs → acorex-platform-widgets-checkbox-widget-column.component-jeZBOEhl.mjs} +18 -14
  47. package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-jeZBOEhl.mjs.map +1 -0
  48. package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-B_Gec5Qf.mjs → acorex-platform-widgets-checkbox-widget-designer.component-D8KErkus.mjs} +3 -3
  49. 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
  50. package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-DU1niJES.mjs +64 -0
  51. package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-DU1niJES.mjs.map +1 -0
  52. package/fesm2022/acorex-platform-widgets.mjs +2306 -549
  53. package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
  54. package/fesm2022/acorex-platform-workflow.mjs +9 -3
  55. package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
  56. package/layout/builder/lib/builder/builder.module.d.ts +10 -10
  57. package/layout/builder/lib/builder/builder.service.d.ts +9 -10
  58. package/layout/builder/lib/builder/context-store.service.d.ts +33 -0
  59. package/layout/builder/lib/builder/index.d.ts +4 -2
  60. package/layout/builder/lib/builder/widget-catalog.d.ts +1 -1
  61. package/layout/builder/lib/builder/widget-container.component.d.ts +34 -9
  62. package/layout/builder/lib/builder/widget-groups.d.ts +1 -0
  63. package/layout/builder/lib/builder/widget-map.d.ts +48 -0
  64. package/layout/builder/lib/builder/widget-placeholder.component.d.ts +5 -0
  65. package/layout/builder/lib/builder/{widget-renderer.component.directive.d.ts → widget-renderer.directive.d.ts} +27 -1
  66. package/layout/builder/lib/builder/widget-status.types.d.ts +14 -0
  67. package/layout/builder/lib/builder/widget.types.d.ts +45 -55
  68. package/layout/designer/lib/preview/preview-viewer.component.d.ts +2 -2
  69. package/layout/designer/lib/property-viewer/widget-property-viewer.component.d.ts +2 -2
  70. package/layout/entity/lib/entity-master-list.viewmodel.d.ts +7 -2
  71. package/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.d.ts +0 -1
  72. package/layout/filters/lib/filters.viewmodel.d.ts +13 -3
  73. package/layout/setting/lib/convert-setting-data.d.ts +0 -20
  74. package/layout/setting/lib/setting.viewmodel.d.ts +65 -4
  75. package/layouts/lib/admin/entity-layout/entity-details-view/entity-details-view.component.d.ts +15 -5
  76. package/package.json +9 -9
  77. package/themes/default/lib/layouts/base/simple-page/simple-page.layout.d.ts +15 -5
  78. package/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.d.ts +15 -5
  79. package/themes/default/lib/layouts/entity-layouts/entity-master-create-view/entity-master-create-view.component.d.ts +2 -1
  80. package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.d.ts +17 -6
  81. package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/list-view-option-filters/list-view-option-filters.component.d.ts +6 -3
  82. package/themes/default/lib/layouts/entity-layouts/entity-master-modify-view/entity-master-modify-view.component.d.ts +2 -1
  83. package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.d.ts +15 -5
  84. package/themes/default/lib/layouts/filters-layout/simple-filter-builder/filters-view.component.d.ts +6 -5
  85. package/themes/default/lib/layouts/root-layout/components/header/header.component.d.ts +15 -5
  86. package/themes/default/lib/layouts/root-layout/root-layout.component.d.ts +15 -5
  87. package/themes/default/lib/layouts/setting-layout/setting-page/setting-page.component.d.ts +0 -47
  88. package/themes/default/lib/layouts/setting-layout/setting-view/setting-view.component.d.ts +19 -5
  89. package/themes/shared/index.d.ts +3 -1
  90. package/themes/shared/lib/components/theme-slot.component.d.ts +23 -13
  91. package/themes/shared/lib/palette.provider.d.ts +9 -0
  92. package/themes/shared/lib/setting.keys.d.ts +7 -2
  93. package/themes/shared/lib/setting.provider.d.ts +1 -0
  94. package/themes/shared/lib/shared.module.d.ts +2 -1
  95. package/themes/shared/lib/{services/theme.service.d.ts → theme.service.d.ts} +16 -24
  96. package/themes/shared/lib/theme.types.d.ts +25 -0
  97. package/themes/shared/lib/widgets/theme-color-selection/index.d.ts +2 -0
  98. package/themes/shared/lib/widgets/theme-color-selection/theme-color-selection-widget-edit.component.d.ts +6 -0
  99. package/themes/shared/lib/widgets/theme-color-selection/theme-color-selection-widget.config.d.ts +7 -0
  100. package/widgets/lib/properties/layout.props.d.ts +1 -0
  101. package/widgets/lib/widgets/advance/avatar/avatar-widget-column.component.d.ts +6 -0
  102. package/widgets/lib/widgets/advance/avatar/avatar-widget-designer.component.d.ts +6 -0
  103. package/widgets/lib/widgets/advance/avatar/avatar-widget-edit.component.d.ts +18 -0
  104. package/widgets/lib/widgets/advance/avatar/avatar-widget-print.component.d.ts +6 -0
  105. package/widgets/lib/widgets/advance/avatar/avatar-widget-view.component.d.ts +6 -0
  106. package/widgets/lib/widgets/advance/avatar/avatar-widget.config.d.ts +7 -0
  107. package/widgets/lib/widgets/advance/avatar/index.d.ts +6 -0
  108. package/widgets/lib/widgets/advance/map/map-box-widget-edit.component.d.ts +9 -5
  109. package/widgets/lib/widgets/advance/map/map-box-widget-view.component.d.ts +6 -4
  110. package/widgets/lib/widgets/editors/number/number-box-widget-edit.component.d.ts +1 -7
  111. package/widgets/lib/widgets/editors/select/select-box-widget-edit.component.d.ts +1 -1
  112. package/widgets/lib/widgets/editors/toggle/toggle-widget-edit.component.d.ts +0 -2
  113. package/widgets/lib/widgets/filters/boolean-filter/boolean-filter-widget-edit.component.d.ts +18 -0
  114. package/widgets/lib/widgets/filters/boolean-filter/boolean-filter-widget.config.d.ts +7 -0
  115. package/widgets/lib/widgets/filters/boolean-filter/index.d.ts +2 -0
  116. package/widgets/lib/widgets/filters/date-time-filter/date-time-filter-widget-edit.component.d.ts +20 -0
  117. package/widgets/lib/widgets/filters/date-time-filter/date-time-filter-widget.config.d.ts +7 -0
  118. package/widgets/lib/widgets/filters/date-time-filter/index.d.ts +2 -0
  119. package/widgets/lib/widgets/filters/number-filter/index.d.ts +2 -0
  120. package/widgets/lib/widgets/filters/number-filter/number-filter-widget-edit.component.d.ts +12 -0
  121. package/widgets/lib/widgets/filters/number-filter/number-filter-widget.config.d.ts +7 -0
  122. package/widgets/lib/widgets/filters/operations/operations.component.d.ts +9 -0
  123. package/widgets/lib/widgets/filters/select-filter/index.d.ts +2 -0
  124. package/widgets/lib/widgets/filters/select-filter/select-filter-widget-edit.component.d.ts +16 -0
  125. package/widgets/lib/widgets/filters/select-filter/select-filter-widget.config.d.ts +7 -0
  126. package/widgets/lib/widgets/filters/string-filter/index.d.ts +2 -0
  127. package/widgets/lib/widgets/filters/string-filter/string-filter-widget-edit.component.d.ts +12 -0
  128. package/widgets/lib/widgets/filters/string-filter/string-filter-widget.config.d.ts +7 -0
  129. package/widgets/lib/widgets/index.d.ts +5 -1
  130. package/widgets/lib/widgets/property-editors/border/border-widget-editor.component.d.ts +29 -7
  131. package/widgets/lib/widgets/property-editors/border/index.d.ts +0 -1
  132. package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget-editor.component.d.ts +36 -0
  133. package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget.config.d.ts +7 -0
  134. package/widgets/lib/widgets/property-editors/flex-options/flex-options-widget.type.d.ts +18 -0
  135. package/widgets/lib/widgets/property-editors/flex-options/index.d.ts +3 -0
  136. package/widgets/lib/widgets/property-editors/property-editor-helper.d.ts +82 -0
  137. package/widgets/lib/widgets/property-editors/property-editor.type.d.ts +35 -0
  138. package/widgets/lib/widgets/property-editors/spacing/index.d.ts +0 -1
  139. package/widgets/lib/widgets/property-editors/spacing/spacing-widget-editor.component.d.ts +11 -9
  140. package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-CSyR4pYp.mjs +0 -108
  141. package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-CSyR4pYp.mjs.map +0 -1
  142. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-xHWp2Lk-.mjs +0 -368
  143. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-xHWp2Lk-.mjs.map +0 -1
  144. package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-n7mYNduJ.mjs +0 -87
  145. package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-n7mYNduJ.mjs.map +0 -1
  146. package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DjyYU0Gy.mjs +0 -130
  147. package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DjyYU0Gy.mjs.map +0 -1
  148. package/fesm2022/acorex-platform-themes-default-setting-page.component-6Dd8MGqr.mjs +0 -78
  149. package/fesm2022/acorex-platform-themes-default-setting-page.component-6Dd8MGqr.mjs.map +0 -1
  150. package/fesm2022/acorex-platform-themes-default-setting-view.component-BgiMClew.mjs +0 -58
  151. package/fesm2022/acorex-platform-themes-default-setting-view.component-BgiMClew.mjs.map +0 -1
  152. package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-05nKV-UV.mjs.map +0 -1
  153. package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-BkWcZ4K9.mjs +0 -72
  154. package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-BkWcZ4K9.mjs.map +0 -1
  155. package/layout/builder/lib/builder/widget-renderer.component.d.ts +0 -48
  156. package/widgets/lib/widgets/property-editors/border/border-widget-type.d.ts +0 -18
  157. package/widgets/lib/widgets/property-editors/spacing/spacing-widget-type.d.ts +0 -16
package/common/index.d.ts CHANGED
@@ -11,3 +11,4 @@ export * from './lib/settings';
11
11
  export * from './lib/store';
12
12
  export * from './lib/utils';
13
13
  export * from './lib/workflows';
14
+ export * from './lib/file-storage';
@@ -1,5 +1,5 @@
1
1
  import { AXDataSourceOperator, AXStyleColorType } from '@acorex/components/common';
2
- import { AXPOptionsData, AXPValidationRules } from '@acorex/platform/core';
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
- widget?: AXPOptionsData;
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
+ }
@@ -0,0 +1,2 @@
1
+ export * from './file-storage.service';
2
+ export * from './file-storage.types';
@@ -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' | 'filters'> {
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: AXPSettingScope): Promise<AXPSettingDefinitionGroup[]>;
14
- getList(scope: AXPSettingScope): AXPSettingDefinitionGroup[];
15
- defaultValues(scope?: AXPSettingScope): Record<string, unknown>;
16
- findGroup(scope: AXPSettingScope, groupName: string): AXPGroupSearchResult;
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, AXPSettingScope } from './index';
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: AXPSettingScope;
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 { AXPSettingValue } from "./settings.types";
1
+ import { AXPSettingValueProvider } from "./settings.types";
2
2
  import { InjectionToken } from "@angular/core";
3
- export interface AXPSettingValueProvider {
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 settingsProvider;
6
- private settingsCache;
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 AXPSettingScope = 'C' | 'G' | 'T' | 'U';
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: AXPSettingScope;
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
- private resetHighlight;
19
+ clear(): void;
20
20
  /**
21
21
  * Applies highlighting to a specific element by matching text against the search value.
22
22
  *