@acorex/platform 19.2.19 → 19.3.0-next.0
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 +13 -3
- package/common/lib/file-storage/file-storage.types.d.ts +20 -12
- package/common/lib/filters/filters.types.d.ts +5 -0
- package/common/lib/layout/menu/badge-helper.d.ts +7 -0
- package/common/lib/layout/menu/index.d.ts +1 -0
- package/common/lib/layout/menu/menu.types.d.ts +1 -0
- package/common/lib/layout/task-badge/index.d.ts +2 -0
- package/common/lib/layout/task-badge/task-badge.service.d.ts +11 -0
- package/common/lib/layout/task-badge/task-badge.type.d.ts +6 -0
- package/common/lib/settings/setting-definition.provider.d.ts +7 -5
- package/common/lib/settings/setting.builder.d.ts +8 -5
- package/common/lib/settings/settings.service.d.ts +6 -5
- package/common/lib/settings/settings.types.d.ts +6 -10
- package/core/lib/data/index.d.ts +1 -0
- package/core/lib/data/value-transformer.d.ts +6 -0
- package/core/lib/types/core.types.d.ts +18 -0
- package/{layout/entity/lib → core/lib/types}/data.types.d.ts +3 -1
- package/core/lib/types/element.types.d.ts +6 -0
- package/core/lib/types/index.d.ts +6 -0
- package/core/lib/types/interactive.types.d.ts +44 -0
- package/core/lib/types/scope.types.d.ts +10 -0
- package/core/lib/types/validation.types.d.ts +7 -0
- package/core/lib/utils/index.d.ts +1 -0
- package/core/lib/utils/object-util.d.ts +3 -0
- package/fesm2022/acorex-platform-common.mjs +79 -35
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +151 -6
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +44 -55
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +77 -35
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +243 -415
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-search.mjs +7 -26
- package/fesm2022/acorex-platform-layout-search.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-setting.mjs +211 -278
- package/fesm2022/acorex-platform-layout-setting.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-LKhN00ob.mjs → acorex-platform-themes-default-entity-master-create-view.component-3gmbdeJ_.mjs} +4 -3
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-3gmbdeJ_.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DnEL7Ej-.mjs +741 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DnEL7Ej-.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-8DdICjNs.mjs +91 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-8DdICjNs.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DadBeY1I.mjs +164 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DadBeY1I.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-search-popup.component-CGARdU4C.mjs → acorex-platform-themes-default-search-popup.component-BADEuoeJ.mjs} +9 -9
- package/fesm2022/{acorex-platform-themes-default-search-popup.component-CGARdU4C.mjs.map → acorex-platform-themes-default-search-popup.component-BADEuoeJ.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default-setting-page.component-Cj73brIK.mjs +219 -0
- package/fesm2022/acorex-platform-themes-default-setting-page.component-Cj73brIK.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-setting-view.component-rrAq6hg2.mjs +103 -0
- package/fesm2022/acorex-platform-themes-default-setting-view.component-rrAq6hg2.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +237 -73
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared-setting.provider-CXiRmniv.mjs +168 -0
- package/fesm2022/acorex-platform-themes-shared-setting.provider-CXiRmniv.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +502 -322
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +4109 -1487
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/lib/builder/builder.service.d.ts +1 -1
- package/layout/builder/lib/builder/index.d.ts +2 -1
- package/layout/builder/lib/builder/widget-categories.d.ts +10 -0
- package/layout/builder/lib/builder/widget-group.types.d.ts +10 -0
- package/layout/builder/lib/builder/widget-map.d.ts +8 -1
- package/layout/builder/lib/builder/widget-status.types.d.ts +2 -0
- package/layout/builder/lib/builder/widget.types.d.ts +11 -27
- package/layout/designer/lib/designer/components/widget-picker/widget-picker.component.d.ts +7 -3
- package/layout/designer/lib/designer/components/widget-picker/widget-picker.service.d.ts +12 -0
- package/layout/designer/lib/designer/index.d.ts +1 -0
- package/layout/designer/lib/designer/shared/designer.service.d.ts +1 -0
- package/layout/designer/lib/property-viewer/widget-property-viewer.component.d.ts +2 -1
- package/layout/entity/lib/entity-data-seeder.d.ts +2 -2
- package/layout/entity/lib/entity-master-list.viewmodel.d.ts +4 -7
- package/layout/entity/lib/entity-storage-service.d.ts +39 -55
- package/layout/entity/lib/entity.types.d.ts +21 -0
- package/layout/entity/lib/index.d.ts +1 -2
- package/layout/entity/lib/widgets/lookup-widget/index.d.ts +0 -2
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-column.component.d.ts +4 -0
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-edit.component.d.ts +7 -9
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.component.d.ts +5 -2
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-selector.viewmodel.d.ts +11 -3
- package/layout/search/lib/search.viewmodel.d.ts +0 -2
- package/layout/setting/lib/setting.viewmodel.d.ts +45 -111
- package/package.json +1 -1
- package/themes/default/lib/layouts/base/base-page.component.d.ts +39 -13
- package/themes/default/lib/layouts/base/base-page.types.d.ts +15 -3
- package/themes/default/lib/layouts/base/index.d.ts +1 -0
- package/themes/default/lib/layouts/base/page-layout/index.d.ts +1 -0
- package/themes/default/lib/{pages/theme-palette-preview/theme-palette-preview.page.d.ts → layouts/base/page-layout/page-layout.component.d.ts} +13 -26
- package/themes/default/lib/layouts/base/simple-page/simple-page.layout.d.ts +2 -2
- package/themes/default/lib/layouts/entity-layouts/entity-category/entity-category.component.d.ts +16 -0
- package/themes/default/lib/layouts/entity-layouts/entity-detail-list-view/entity-detail-list-view.component.d.ts +2 -2
- package/themes/default/lib/layouts/entity-layouts/entity-master-list-view/entity-master-list-view.component.d.ts +10 -8
- package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.d.ts +12 -4
- package/themes/default/lib/layouts/entity-layouts/entity-master-toolbar-view/entity-master-toolbar-view.component.d.ts +7 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-toolbar-view/filters/entity-filter-toolbar.component.d.ts +48 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-toolbar-view/views/entity-view-toolbar.component.d.ts +12 -0
- package/themes/default/lib/layouts/root-layout/components/header/header.component.d.ts +2 -2
- package/themes/default/lib/layouts/root-layout/components/horizontal-menu/horizontal-menu.component.d.ts +9 -3
- package/themes/default/lib/layouts/root-layout/components/side-menu/side-menu.component.d.ts +7 -1
- package/themes/default/lib/layouts/root-layout/horizontal/horizontal-layout.component.d.ts +2 -2
- package/themes/default/lib/layouts/root-layout/root-layout.component.d.ts +2 -2
- package/themes/default/lib/layouts/root-layout/vertical/vertical-layout.component.d.ts +2 -2
- package/themes/default/lib/layouts/setting-layout/setting-page/setting-page.component.d.ts +61 -5
- package/themes/default/lib/layouts/setting-layout/setting-view/setting-view.component.d.ts +68 -6
- package/themes/shared/index.d.ts +1 -1
- package/themes/shared/lib/components/badge/badge.directive.d.ts +14 -0
- package/themes/shared/lib/components/layout-elements/layout-blocks.component.d.ts +4 -1
- package/themes/shared/lib/components/layout-elements/layout-side.component.d.ts +2 -2
- package/themes/shared/lib/components/slots/theme-slot.component.d.ts +2 -2
- package/themes/shared/lib/palette.provider.d.ts +1 -1
- package/themes/shared/lib/setting.keys.d.ts +2 -1
- package/themes/shared/lib/setting.provider.d.ts +4 -1
- package/themes/shared/lib/theme.service.d.ts +2 -2
- package/themes/shared/lib/theme.types.d.ts +11 -2
- package/themes/shared/lib/widgets/font-size-chooser/font-size-chooser-widget.component.d.ts +10 -0
- package/themes/shared/lib/widgets/font-size-chooser/font-size-chooser-widget.config.d.ts +7 -0
- package/themes/shared/lib/widgets/font-size-chooser/index.d.ts +2 -0
- package/themes/shared/lib/widgets/font-style-chooser/font-style-chooser-widget.component.d.ts +15 -0
- package/themes/shared/lib/widgets/font-style-chooser/font-style-chooser-widget.config.d.ts +7 -0
- package/themes/shared/lib/widgets/font-style-chooser/index.d.ts +2 -0
- package/themes/shared/lib/widgets/menu-orientation-chooser/index.d.ts +2 -0
- package/themes/shared/lib/widgets/menu-orientation-chooser/menu-orientation-chooser-widget.component.d.ts +15 -0
- package/themes/shared/lib/widgets/menu-orientation-chooser/menu-orientation-chooser-widget.config.d.ts +7 -0
- package/themes/shared/lib/widgets/theme-mode-chooser/index.d.ts +2 -0
- package/themes/shared/lib/widgets/theme-mode-chooser/theme-mode-chooser-widget.component.d.ts +16 -0
- package/themes/shared/lib/widgets/theme-mode-chooser/theme-mode-chooser-widget.config.d.ts +7 -0
- package/themes/shared/lib/widgets/theme-palette-chooser/index.d.ts +2 -0
- package/themes/shared/lib/widgets/theme-palette-chooser/theme-palette-chooser-widget.component.d.ts +13 -0
- package/themes/shared/lib/widgets/{theme-color-selection/theme-color-selection-widget.config.d.ts → theme-palette-chooser/theme-palette-chooser-widget.config.d.ts} +2 -2
- package/widgets/lib/properties/groups.d.ts +2 -0
- package/widgets/lib/widgets/advance/file/file-box-widget-edit.component.d.ts +5 -5
- package/widgets/lib/widgets/charts/bar-chart/bar-chart-widget.component.d.ts +52 -0
- package/widgets/lib/widgets/charts/bar-chart/bar-chart.type.d.ts +29 -11
- package/widgets/lib/widgets/charts/bar-chart/index.d.ts +1 -1
- package/widgets/lib/widgets/charts/chart.type.d.ts +3 -0
- package/widgets/lib/widgets/charts/clock-calendar/clock-calendar-widget.component.d.ts +40 -0
- package/widgets/lib/widgets/charts/clock-calendar/clock-calendar-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/charts/clock-calendar/clock-calendar.types.d.ts +50 -0
- package/widgets/lib/widgets/charts/clock-calendar/index.d.ts +3 -0
- package/widgets/lib/widgets/charts/donut-chart/donut-chart-widget.component.d.ts +54 -0
- package/widgets/lib/widgets/charts/donut-chart/donut-chart.type.d.ts +31 -21
- package/widgets/lib/widgets/charts/donut-chart/index.d.ts +1 -1
- package/widgets/lib/widgets/charts/gauge-chart/{gauge-chart-widget-edit.component.d.ts → gauge-chart-widget.component.d.ts} +3 -3
- package/widgets/lib/widgets/charts/gauge-chart/gauge-chart.type.d.ts +26 -11
- package/widgets/lib/widgets/charts/gauge-chart/index.d.ts +2 -1
- package/widgets/lib/widgets/charts/shared/chart-base.component.d.ts +44 -0
- package/widgets/lib/widgets/charts/shared/chart-base.type.d.ts +37 -0
- package/widgets/lib/widgets/charts/sticky-note/index.d.ts +1 -1
- package/widgets/lib/widgets/charts/sticky-note/{sticky-note-widget-edit.component.d.ts → sticky-note-widget.component.d.ts} +3 -3
- package/widgets/lib/widgets/charts/weather/index.d.ts +4 -0
- package/widgets/lib/widgets/charts/weather/weather-services/index.d.ts +3 -0
- package/widgets/lib/widgets/charts/weather/weather-services/weather-api.abstract.d.ts +174 -0
- package/widgets/lib/widgets/charts/weather/weather-services/weather-api.key.d.ts +2 -0
- package/widgets/lib/widgets/charts/weather/weather-services/weather-api.mock.service.d.ts +47 -0
- package/widgets/lib/widgets/charts/weather/weather-services/weather-api.service.d.ts +48 -0
- package/widgets/lib/widgets/charts/weather/weather-widget.component.d.ts +109 -0
- package/widgets/lib/widgets/charts/weather/weather-widget.config.d.ts +14 -0
- package/widgets/lib/widgets/charts/weather/weather.module.d.ts +11 -0
- package/widgets/lib/widgets/editors/select/select-box-widget-column.component.d.ts +0 -1
- package/widgets/lib/widgets/editors/select/select-box-widget-edit.component.d.ts +4 -1
- package/widgets/lib/widgets/editors/template-box/index.d.ts +6 -0
- package/widgets/lib/widgets/editors/template-box/template-box-widget-column.component.d.ts +10 -0
- package/widgets/lib/widgets/editors/template-box/template-box-widget-edit.component.d.ts +29 -0
- package/widgets/lib/widgets/editors/template-box/template-box-widget-filter.component.d.ts +6 -0
- package/widgets/lib/widgets/editors/template-box/template-box-widget-print.component.d.ts +10 -0
- package/widgets/lib/widgets/editors/template-box/template-box-widget-view.component.d.ts +11 -0
- package/widgets/lib/widgets/editors/template-box/template-box-widget.config.d.ts +7 -0
- package/widgets/lib/widgets/filters/select-filter/select-filter-widget-edit.component.d.ts +2 -5
- package/widgets/lib/widgets/index.d.ts +3 -0
- package/core/lib/types.d.ts +0 -57
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-LKhN00ob.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CdC4eF25.mjs +0 -400
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-CdC4eF25.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-B9TUh-2S.mjs +0 -91
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-B9TUh-2S.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-ZfUaIxUa.mjs +0 -135
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-ZfUaIxUa.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-setting-page.component-Cd2yaPEZ.mjs +0 -74
- package/fesm2022/acorex-platform-themes-default-setting-page.component-Cd2yaPEZ.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-setting-view.component-B3Aob67f.mjs +0 -73
- package/fesm2022/acorex-platform-themes-default-setting-view.component-B3Aob67f.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-DqAngWCf.mjs +0 -146
- package/fesm2022/acorex-platform-themes-default-theme-palette-preview.page-DqAngWCf.mjs.map +0 -1
- package/layout/builder/lib/builder/widget-groups.d.ts +0 -9
- package/layout/entity/lib/dexie-storage.service.d.ts +0 -16
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-filter.component.d.ts +0 -6
- package/layout/entity/lib/widgets/lookup-widget/lookup-widget-print.component.d.ts +0 -6
- package/themes/default/lib/layouts/filters-layout/simple-filter-builder/filters-view.component.d.ts +0 -13
- package/themes/shared/lib/components/drawer/drawer.directive.d.ts +0 -22
- package/themes/shared/lib/components/drawer/index.d.ts +0 -1
- package/themes/shared/lib/widgets/theme-color-selection/index.d.ts +0 -2
- package/themes/shared/lib/widgets/theme-color-selection/theme-color-selection-widget-edit.component.d.ts +0 -6
- package/widgets/lib/widgets/charts/bar-chart/bar-chart-widget-edit.component.d.ts +0 -40
- package/widgets/lib/widgets/charts/donut-chart/donut-chart-widget-edit.component.d.ts +0 -44
package/common/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AXDataSourceOperator, AXStyleColorType } from '@acorex/components/common';
|
|
2
2
|
import { AXPopupSizeType } from '@acorex/components/popup';
|
|
3
|
-
import { AXPMetaData, AXPValidationRules } from '@acorex/platform/core';
|
|
4
|
-
import { AXPWidgetTypesMap
|
|
3
|
+
import { AXPMetaData, AXPValidationRules, AXPValueTransformerFunctions } from '@acorex/platform/core';
|
|
4
|
+
import { AXPWidgetTypesMap } from '@acorex/platform/layout/builder';
|
|
5
5
|
import { AXPGridLayoutOptions } from '../layout';
|
|
6
6
|
export interface AXEntityPropertyWidget {
|
|
7
7
|
type: AXPWidgetTypesMap[keyof AXPWidgetTypesMap];
|
|
@@ -16,7 +16,7 @@ export interface AXEntityPropertyWidget {
|
|
|
16
16
|
action: string;
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
}[];
|
|
19
|
-
valueTransforms?:
|
|
19
|
+
valueTransforms?: AXPValueTransformerFunctions;
|
|
20
20
|
}
|
|
21
21
|
export declare enum AXPRelationshipKind {
|
|
22
22
|
Association = 0,
|
|
@@ -59,6 +59,7 @@ export interface AXPEntityPropertyGroup {
|
|
|
59
59
|
}
|
|
60
60
|
export interface AXPEntityPropertyView {
|
|
61
61
|
name: string;
|
|
62
|
+
dataPath?: string;
|
|
62
63
|
permissions?: string[];
|
|
63
64
|
layout?: AXPEntityPropertyLayoutConfig;
|
|
64
65
|
}
|
|
@@ -174,6 +175,7 @@ export interface AXPEntity {
|
|
|
174
175
|
name: string;
|
|
175
176
|
source: string;
|
|
176
177
|
parentKey?: string;
|
|
178
|
+
category?: AXPCategoryEntity;
|
|
177
179
|
title: string;
|
|
178
180
|
formats: {
|
|
179
181
|
individual: string;
|
|
@@ -242,6 +244,14 @@ export interface AXPRelatedEntity {
|
|
|
242
244
|
hidden?: boolean | string;
|
|
243
245
|
actions?: AXPEntityAction[];
|
|
244
246
|
}
|
|
247
|
+
export interface AXPCategoryEntity {
|
|
248
|
+
entity: string;
|
|
249
|
+
title?: string;
|
|
250
|
+
textField?: string;
|
|
251
|
+
valueField?: string;
|
|
252
|
+
conditions?: AXPQueryFilter[];
|
|
253
|
+
applyConditions?: AXPQueryFilter[];
|
|
254
|
+
}
|
|
245
255
|
export interface AXPAggregate {
|
|
246
256
|
id: string;
|
|
247
257
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AXPMetaData } from
|
|
1
|
+
import { AXPMetaData } from '@acorex/platform/core';
|
|
2
2
|
export declare enum AXPFileStorageStatus {
|
|
3
3
|
Temporary = "temporary",// File is not yet associated with a parent entity
|
|
4
4
|
Committed = "committed",// File is fully associated and in use
|
|
@@ -14,6 +14,10 @@ export interface AXPFileStorageCreateRequest {
|
|
|
14
14
|
* The file to be stored.
|
|
15
15
|
*/
|
|
16
16
|
file: File;
|
|
17
|
+
/**
|
|
18
|
+
* The name of the file.
|
|
19
|
+
*/
|
|
20
|
+
name?: string;
|
|
17
21
|
/**
|
|
18
22
|
* The unique identifier of referenced entity.
|
|
19
23
|
*/
|
|
@@ -46,21 +50,21 @@ export interface AXPFileStorageCreateRequest {
|
|
|
46
50
|
}
|
|
47
51
|
export interface AXPFileStorageUpdateRequest {
|
|
48
52
|
/**
|
|
49
|
-
|
|
50
|
-
|
|
53
|
+
* The unique identifier for the stored file.
|
|
54
|
+
*/
|
|
51
55
|
fileId: string;
|
|
52
56
|
/**
|
|
53
57
|
* The folder path where the file should be stored.
|
|
54
58
|
* If null, the service will resolve the path based on metadata, user, tenant, or default rules.
|
|
55
|
-
|
|
59
|
+
*/
|
|
56
60
|
path?: string;
|
|
57
61
|
/**
|
|
58
62
|
* Metadata associated with the file.
|
|
59
63
|
*/
|
|
60
64
|
metadata: AXPMetaData;
|
|
61
65
|
/**
|
|
62
|
-
|
|
63
|
-
|
|
66
|
+
* Indicates whether the file is primary or not.
|
|
67
|
+
*/
|
|
64
68
|
isPrimary?: boolean;
|
|
65
69
|
}
|
|
66
70
|
/**
|
|
@@ -72,8 +76,8 @@ export interface AXPFileStorageInfo {
|
|
|
72
76
|
*/
|
|
73
77
|
fileId: string;
|
|
74
78
|
/**
|
|
75
|
-
|
|
76
|
-
|
|
79
|
+
* The unique identifier of referenced entity.
|
|
80
|
+
*/
|
|
77
81
|
refId: string;
|
|
78
82
|
/**
|
|
79
83
|
* The type of the referenced entity.
|
|
@@ -91,6 +95,10 @@ export interface AXPFileStorageInfo {
|
|
|
91
95
|
* The size of the file in bytes.
|
|
92
96
|
*/
|
|
93
97
|
size: number;
|
|
98
|
+
/**
|
|
99
|
+
* The name of the file.
|
|
100
|
+
*/
|
|
101
|
+
name?: string;
|
|
94
102
|
/**
|
|
95
103
|
* The MIME type of the file.
|
|
96
104
|
*/
|
|
@@ -104,8 +112,8 @@ export interface AXPFileStorageInfo {
|
|
|
104
112
|
*/
|
|
105
113
|
isPublic: boolean;
|
|
106
114
|
/**
|
|
107
|
-
|
|
108
|
-
|
|
115
|
+
* Indicates whether the file is primary or not.
|
|
116
|
+
*/
|
|
109
117
|
isPrimary?: boolean;
|
|
110
118
|
status: AXPFileStorageStatus;
|
|
111
119
|
}
|
|
@@ -134,8 +142,8 @@ export interface AXPFileStorageFindRequest {
|
|
|
134
142
|
*/
|
|
135
143
|
isPublic?: boolean;
|
|
136
144
|
/**
|
|
137
|
-
|
|
138
|
-
|
|
145
|
+
* Indicates whether the file is primary or not.
|
|
146
|
+
*/
|
|
139
147
|
isPrimary?: boolean;
|
|
140
148
|
/**
|
|
141
149
|
* The date and time range when the file was uploaded.
|
|
@@ -12,7 +12,12 @@ export interface AXPFilterDefinition {
|
|
|
12
12
|
operator: AXPFilterOperation;
|
|
13
13
|
logic?: AXPFilterLogic;
|
|
14
14
|
filters?: AXPFilterDefinition[];
|
|
15
|
+
icon?: string;
|
|
15
16
|
widget: AXPWidgetNode;
|
|
17
|
+
filterType: {
|
|
18
|
+
advance: boolean;
|
|
19
|
+
inline: boolean;
|
|
20
|
+
};
|
|
16
21
|
}
|
|
17
22
|
export interface AXPFilterQuery extends Pick<AXPFilterDefinition, 'field' | 'value' | 'operator' | 'logic'> {
|
|
18
23
|
filters?: AXPFilterQuery[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AXPTaskBadgeService } from "../task-badge";
|
|
2
|
+
import { AXPMenuItem } from "./menu.types";
|
|
3
|
+
import { Signal } from "@angular/core";
|
|
4
|
+
export declare class AXPMenuBadgeHelper {
|
|
5
|
+
private static cache;
|
|
6
|
+
static getTotalCount(item: AXPMenuItem, badgeService: AXPTaskBadgeService): Signal<number>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Signal } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AXPTaskBadgeService {
|
|
4
|
+
private badgeMap;
|
|
5
|
+
private providers;
|
|
6
|
+
private computedCache;
|
|
7
|
+
constructor();
|
|
8
|
+
getCount(key: string): Signal<number>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPTaskBadgeService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXPTaskBadgeService>;
|
|
11
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { AXPGroupSearchResult, AXPSettingDefinitionGroup,
|
|
2
|
+
import { AXPGroupSearchResult, AXPSettingDefinitionGroup, AXPSettingValue, AXPSettingValueProvider } from './settings.types';
|
|
3
3
|
import { AXPSettingDefinitionProviderContext } from './setting.builder';
|
|
4
|
+
import { AXPPlatformScope, AXPPlatformScopeKey } from '@acorex/platform/core';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export interface AXPSettingDefinitionProvider {
|
|
6
7
|
provide(context: AXPSettingDefinitionProviderContext): Promise<void>;
|
|
@@ -10,17 +11,18 @@ export declare class AXPSettingDefinitionProviderService {
|
|
|
10
11
|
private providers;
|
|
11
12
|
private cache;
|
|
12
13
|
private load;
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
reload(): Promise<void>;
|
|
15
|
+
getListAsync(scope: AXPPlatformScopeKey): Promise<AXPSettingDefinitionGroup[]>;
|
|
16
|
+
getList(scope: AXPPlatformScopeKey): AXPSettingDefinitionGroup[];
|
|
15
17
|
defaultValues(): Promise<Record<string, unknown>>;
|
|
16
|
-
findGroup(scope:
|
|
18
|
+
findGroup(scope: AXPPlatformScopeKey, groupName: string): AXPGroupSearchResult;
|
|
17
19
|
private searchRecursive;
|
|
18
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingDefinitionProviderService, never>;
|
|
19
21
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingDefinitionProviderService>;
|
|
20
22
|
}
|
|
21
23
|
export declare class AXPSettingDefaultValueProvider implements AXPSettingValueProvider {
|
|
22
24
|
private definitionProvider;
|
|
23
|
-
get scope():
|
|
25
|
+
get scope(): AXPPlatformScope;
|
|
24
26
|
load(): Promise<AXPSettingValue[]>;
|
|
25
27
|
set(key: string, value: any): Promise<void>;
|
|
26
28
|
set(values: Record<string, any>): Promise<void>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { AXPOptionsData, AXPValidationRules } from '@acorex/platform/core';
|
|
2
|
-
import {
|
|
3
|
-
import { AXPSettingDefinitionGroup, AXPSettingDefinitionSection
|
|
1
|
+
import { AXPOptionsData, AXPValidationRules, AXPValueTransformerFunctions, AXPWidgetTriggers } from '@acorex/platform/core';
|
|
2
|
+
import { AXPWidgetTypesMap } from '@acorex/platform/layout/builder';
|
|
3
|
+
import { AXPSettingDefinitionGroup, AXPSettingDefinitionSection } from './index';
|
|
4
|
+
import { AXPGridLayoutOptions } from '../layout';
|
|
5
|
+
import { AXPPlatformScopeKey } from '@acorex/platform/core';
|
|
4
6
|
export declare class AXPSettingDefinitionProviderContext {
|
|
5
7
|
private rootGroups;
|
|
6
8
|
private groupMap;
|
|
@@ -26,18 +28,19 @@ export declare class AXPSettingDefinitionSectionBuilder {
|
|
|
26
28
|
addSetting(setting: {
|
|
27
29
|
key: string;
|
|
28
30
|
title: string;
|
|
29
|
-
scope:
|
|
31
|
+
scope: AXPPlatformScopeKey;
|
|
30
32
|
widget: {
|
|
31
33
|
type: AXPWidgetTypesMap[keyof AXPWidgetTypesMap];
|
|
32
34
|
options?: AXPOptionsData;
|
|
33
35
|
triggers?: AXPWidgetTriggers;
|
|
36
|
+
layout?: AXPGridLayoutOptions;
|
|
34
37
|
};
|
|
35
38
|
description?: string;
|
|
36
39
|
isRequired?: boolean;
|
|
37
40
|
isInherited?: boolean;
|
|
38
41
|
isEncrypted?: boolean;
|
|
39
42
|
defaultValue?: unknown;
|
|
40
|
-
valueTransforms?:
|
|
43
|
+
valueTransforms?: AXPValueTransformerFunctions;
|
|
41
44
|
validationRules?: AXPValidationRules;
|
|
42
45
|
}): this;
|
|
43
46
|
endSection(): AXPSettingDefinitionGroupBuilder;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Subject } from 'rxjs';
|
|
2
|
-
import { AXPSettingChangedEvent,
|
|
2
|
+
import { AXPSettingChangedEvent, AXPSettingValue, AXPSettingValueProvider } from './settings.types';
|
|
3
|
+
import { AXPPlatformScope } from '@acorex/platform/core';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export interface AXPSettingServiceInterface {
|
|
5
6
|
load(): Promise<AXPSettingValue[]>;
|
|
6
7
|
get<T = any>(key: string): Promise<T>;
|
|
7
|
-
defaultValues(scope:
|
|
8
|
-
scope(scope:
|
|
8
|
+
defaultValues(scope: AXPPlatformScope): Promise<Record<string, unknown>>;
|
|
9
|
+
scope(scope: AXPPlatformScope): ScopedSettingService;
|
|
9
10
|
}
|
|
10
11
|
export declare class AXPSettingService implements AXPSettingServiceInterface {
|
|
11
12
|
private readonly providers;
|
|
@@ -16,8 +17,8 @@ export declare class AXPSettingService implements AXPSettingServiceInterface {
|
|
|
16
17
|
constructor();
|
|
17
18
|
load(): Promise<AXPSettingValue[]>;
|
|
18
19
|
get<T = any>(key: string): Promise<T>;
|
|
19
|
-
defaultValues(scope:
|
|
20
|
-
scope(scope:
|
|
20
|
+
defaultValues(scope: AXPPlatformScope): Promise<Record<string, unknown>>;
|
|
21
|
+
scope(scope: AXPPlatformScope): ScopedSettingService;
|
|
21
22
|
invokeChangeEvent(event: AXPSettingChangedEvent): void;
|
|
22
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSettingService, never>;
|
|
23
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXPSettingService>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { AXPWidgetNode } from '@acorex/platform/layout/builder';
|
|
2
|
+
import { AXPGridLayoutOptions } from '../layout';
|
|
3
|
+
import { AXPPlatformScope, AXPPlatformScopeKey } from '@acorex/platform/core';
|
|
2
4
|
export interface AXPSettingValueProvider {
|
|
3
|
-
get scope():
|
|
5
|
+
get scope(): AXPPlatformScope;
|
|
4
6
|
load(): Promise<AXPSettingValue[]>;
|
|
5
7
|
set(key: string, value: any): Promise<void>;
|
|
6
8
|
set(values: Record<string, any>): Promise<void>;
|
|
@@ -10,24 +12,18 @@ export interface AXPSettingValue {
|
|
|
10
12
|
value: any;
|
|
11
13
|
}
|
|
12
14
|
export interface AXPSettingChangedEvent {
|
|
13
|
-
scope:
|
|
15
|
+
scope: AXPPlatformScope;
|
|
14
16
|
keys: string[];
|
|
15
17
|
values: Record<string, any>;
|
|
16
18
|
entries: AXPSettingValue[];
|
|
17
19
|
}
|
|
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
|
-
}
|
|
25
20
|
export interface AXPSettingDefinition {
|
|
26
21
|
name: string;
|
|
27
22
|
title: string;
|
|
28
23
|
description?: string;
|
|
29
24
|
widget: AXPWidgetNode;
|
|
30
|
-
|
|
25
|
+
layout?: AXPGridLayoutOptions;
|
|
26
|
+
scope: AXPPlatformScopeKey;
|
|
31
27
|
isRequired?: boolean;
|
|
32
28
|
isInherited?: boolean;
|
|
33
29
|
isEncrypted?: boolean;
|
package/core/lib/data/index.d.ts
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type AXPValueTransformerFunction = (value: any) => any;
|
|
2
|
+
export type AXPValueTransformerFunctions = {
|
|
3
|
+
getter?: AXPValueTransformerFunction;
|
|
4
|
+
setter?: AXPValueTransformerFunction;
|
|
5
|
+
};
|
|
6
|
+
export declare function objectKeyValueTransforms(keyName: string): AXPValueTransformerFunctions;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type AXPPartialNested<T> = {
|
|
2
|
+
[K in keyof T]?: T[K] extends object ? AXPPartialNested<T[K]> : T[K];
|
|
3
|
+
};
|
|
4
|
+
export declare function getNestedKeys(obj: any, prefix?: string): string[];
|
|
5
|
+
export type AXPMetaData = Record<string, any>;
|
|
6
|
+
export type AXPOptionsData = Record<string, any>;
|
|
7
|
+
export interface AXPValueUnit {
|
|
8
|
+
name: string;
|
|
9
|
+
title: string;
|
|
10
|
+
ratio: number;
|
|
11
|
+
order: number;
|
|
12
|
+
}
|
|
13
|
+
export interface AXPValueUnits {
|
|
14
|
+
name: string;
|
|
15
|
+
title: string;
|
|
16
|
+
items: AXPValueUnit[];
|
|
17
|
+
default: string;
|
|
18
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AXDataSourceFilterOption, AXDataSourceSortOption } from
|
|
1
|
+
import { AXDataSource, AXDataSourceFilterOption, AXDataSourceSortOption } from "@acorex/components/common";
|
|
2
|
+
export type AXPDataSource = string | AXDataSource | any[];
|
|
2
3
|
export interface AXPPagedListResult<T = any> {
|
|
3
4
|
items: T[];
|
|
4
5
|
total: number;
|
|
@@ -12,3 +13,4 @@ export interface AXPQueryRequest {
|
|
|
12
13
|
[key: string]: string;
|
|
13
14
|
};
|
|
14
15
|
}
|
|
16
|
+
export type AXPDataType = 'string' | 'number' | 'object' | 'boolean' | 'array';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { NavigationExtras } from '@angular/router';
|
|
3
|
+
import { AXPMetaData } from './core.types';
|
|
4
|
+
export type AXPActionMenuItem = {
|
|
5
|
+
name?: string;
|
|
6
|
+
title: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
break?: boolean;
|
|
10
|
+
items?: AXPActionMenuItem[];
|
|
11
|
+
command?: AXPExecuteCommand;
|
|
12
|
+
disabled?: boolean | string;
|
|
13
|
+
};
|
|
14
|
+
export type AXPBackButton = {
|
|
15
|
+
title: string;
|
|
16
|
+
};
|
|
17
|
+
export type AXPBreadcrumbItem = {
|
|
18
|
+
name?: string;
|
|
19
|
+
title: string;
|
|
20
|
+
icon?: string;
|
|
21
|
+
command?: AXPExecuteCommand;
|
|
22
|
+
};
|
|
23
|
+
export type AXPExecuteCommand = {
|
|
24
|
+
name: string;
|
|
25
|
+
options?: AXPMetaData;
|
|
26
|
+
metadata?: AXPMetaData;
|
|
27
|
+
};
|
|
28
|
+
export type AXPNavigateActionOptions = {
|
|
29
|
+
router: {
|
|
30
|
+
path: string;
|
|
31
|
+
extras?: NavigationExtras & {
|
|
32
|
+
target?: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
modal: {
|
|
36
|
+
component: Type<any>;
|
|
37
|
+
title: string;
|
|
38
|
+
options?: any;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export interface AXPNavigateActionCommand<T extends keyof AXPNavigateActionOptions> {
|
|
42
|
+
type: T;
|
|
43
|
+
options: AXPNavigateActionOptions[T];
|
|
44
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type AXPPlatformScopeKey = 'C' | 'G' | 'P' | 'T' | 'U';
|
|
2
|
+
export declare enum AXPPlatformScope {
|
|
3
|
+
Environment = "C",
|
|
4
|
+
Global = "G",
|
|
5
|
+
Platform = "P",
|
|
6
|
+
Tenant = "T",
|
|
7
|
+
User = "U"
|
|
8
|
+
}
|
|
9
|
+
export declare function resolvePlatformScopeKey(name: string): AXPPlatformScopeKey;
|
|
10
|
+
export declare function resolvePlatformScopeName(scope: AXPPlatformScopeKey): string;
|