@acorex/platform 21.0.0-next.34 → 21.0.0-next.39
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/fesm2022/acorex-platform-common.mjs +19 -1
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +11 -172
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +7 -8
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +39 -29
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +8 -9
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +468 -255
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +171 -86
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +36 -13
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-9uCkMxcc.mjs → acorex-platform-layout-widgets-file-list-popup.component-CDYAGBku.mjs} +5 -60
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-CDYAGBku.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets.mjs +101 -128
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +16 -4
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +25 -5
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-common.d.ts +11 -6
- package/types/acorex-platform-core.d.ts +56 -101
- package/types/acorex-platform-layout-builder.d.ts +0 -1
- package/types/acorex-platform-layout-components.d.ts +4 -3
- package/types/acorex-platform-layout-designer.d.ts +1 -1
- package/types/acorex-platform-layout-entity.d.ts +36 -30
- package/types/acorex-platform-layout-views.d.ts +31 -29
- package/types/acorex-platform-layout-widget-core.d.ts +30 -14
- package/types/acorex-platform-layout-widgets.d.ts +17 -11
- package/types/acorex-platform-themes-default.d.ts +1 -0
- package/types/acorex-platform-workflow.d.ts +28 -51
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-9uCkMxcc.mjs.map +0 -1
|
@@ -177,7 +177,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
177
177
|
|
|
178
178
|
//
|
|
179
179
|
// @deprecated
|
|
180
|
-
//
|
|
180
|
+
// Prefer AXPWidgetsList from @acorex/modules/common; dashboard widget type ids live in dashboard-management RootConfig.widgets.
|
|
181
181
|
const AXPWidgetsCatalog = {
|
|
182
182
|
timeDuration: 'time-duration',
|
|
183
183
|
timeDurationFilter: 'time-duration-filter',
|
|
@@ -258,22 +258,11 @@ const AXPWidgetsCatalog = {
|
|
|
258
258
|
betweenValidation: 'between-validation',
|
|
259
259
|
equalValidation: 'equal-validation',
|
|
260
260
|
callbackValidation: 'callback-validation',
|
|
261
|
-
donutChart: 'donut-chart',
|
|
262
|
-
lineChart: 'line-chart',
|
|
263
|
-
barChart: 'bar-chart',
|
|
264
|
-
gaugeChart: 'gauge-chart',
|
|
265
|
-
stickyNote: 'sticky-note',
|
|
266
|
-
clockCalendar: 'clock-calendar',
|
|
267
|
-
analogClock: 'analog-clock',
|
|
268
|
-
weather: 'weather',
|
|
269
|
-
minimalWeather: 'minimal-weather',
|
|
270
|
-
advancedWeather: 'advanced-weather',
|
|
271
261
|
metaData: 'meta-data-editor',
|
|
272
262
|
templateEditor: 'template-box-editor',
|
|
273
263
|
templateContentEditor: 'template-content-editor',
|
|
274
264
|
panel: 'panel',
|
|
275
265
|
notification: 'notification',
|
|
276
|
-
taskBoard: 'task-board',
|
|
277
266
|
comment: 'comment',
|
|
278
267
|
dataList: 'data-list',
|
|
279
268
|
listToolbar: 'list-toolbar',
|
|
@@ -2915,6 +2904,40 @@ var AXPWidgetGroupEnum;
|
|
|
2915
2904
|
AXPWidgetGroupEnum["UtilityWidget"] = "utility-widget";
|
|
2916
2905
|
})(AXPWidgetGroupEnum || (AXPWidgetGroupEnum = {}));
|
|
2917
2906
|
|
|
2907
|
+
//#endregion
|
|
2908
|
+
//#region ---- Mapping ----
|
|
2909
|
+
/**
|
|
2910
|
+
* Converts a domain {@link AXPProperty} into a {@link AXPWidgetProperty} row for
|
|
2911
|
+
* the layout property viewer (`AXPPropertyViewerService` and `buildPropertyViewerTabsFromProperties`).
|
|
2912
|
+
*/
|
|
2913
|
+
function mapAXPPropertyToWidgetProperty(property, options) {
|
|
2914
|
+
const { group, order, valuePathPrefix, resolveTitle, resolveDescription } = options;
|
|
2915
|
+
const path = valuePathPrefix ? `${valuePathPrefix}.${property.name}` : property.name;
|
|
2916
|
+
const iface = property.interface;
|
|
2917
|
+
const widgetType = iface?.type ?? 'text-editor';
|
|
2918
|
+
const description = resolveDescription?.(property);
|
|
2919
|
+
return {
|
|
2920
|
+
name: property.name,
|
|
2921
|
+
title: resolveTitle(property),
|
|
2922
|
+
...(description !== undefined && description !== '' ? { description } : {}),
|
|
2923
|
+
group,
|
|
2924
|
+
order,
|
|
2925
|
+
schema: {
|
|
2926
|
+
dataType: property.dataType,
|
|
2927
|
+
interface: {
|
|
2928
|
+
path,
|
|
2929
|
+
name: property.name,
|
|
2930
|
+
type: widgetType,
|
|
2931
|
+
options: iface?.options ?? {},
|
|
2932
|
+
...(iface?.triggers ? { triggers: iface.triggers } : {}),
|
|
2933
|
+
},
|
|
2934
|
+
},
|
|
2935
|
+
validations: property.validations,
|
|
2936
|
+
visible: true,
|
|
2937
|
+
};
|
|
2938
|
+
}
|
|
2939
|
+
//#endregion
|
|
2940
|
+
|
|
2918
2941
|
//#region ---- Helpers ----
|
|
2919
2942
|
/**
|
|
2920
2943
|
* True when the widget declares the AI category (see {@link AXP_WIDGETS_AI_CATEGORY}).
|
|
@@ -2946,5 +2969,5 @@ function isWidgetAiCatalogIncluded(config) {
|
|
|
2946
2969
|
* Generated bundle index. Do not edit.
|
|
2947
2970
|
*/
|
|
2948
2971
|
|
|
2949
|
-
export { AXPBaseWidgetComponent, AXPBlockBaseLayoutWidgetComponent, AXPBoxModelLayoutWidgetComponent, AXPColumnWidgetComponent, AXPDataListWidgetComponent, AXPFlexBaseLayoutWidgetComponent, AXPFlexItemBaseLayoutWidgetComponent, AXPGridBaseLayoutWidgetComponent, AXPGridItemBaseLayoutWidgetComponent, AXPInlineBaseLayoutWidgetComponent, AXPLayoutBaseWidgetComponent, AXPPageStatus, AXPPropertyEditorHelper, AXPTableBaseLayoutWidgetComponent, AXPTableItemBaseLayoutWidgetComponent, AXPTableItemOpsBaseLayoutWidgetComponent, AXPValueWidgetComponent, AXPWidgetColumnRendererComponent, AXPWidgetContainerComponent, AXPWidgetCoreElement, AXPWidgetCoreModule, AXPWidgetCoreService, AXPWidgetGroupEnum, AXPWidgetRegistryService, AXPWidgetRendererDirective, AXPWidgetSerializationHelper, AXPWidgetStatus, AXPWidgetsCatalog, AXP_WIDGETS_ACTION_CATEGORY, AXP_WIDGETS_ADVANCE_CATEGORY, AXP_WIDGETS_AI_CATEGORY, AXP_WIDGETS_CATEGORIES, AXP_WIDGETS_EDITOR_CATEGORY, AXP_WIDGETS_LAYOUT_CATEGORY, AXP_WIDGET_COLUMN_TOKEN, AXP_WIDGET_DEFINITION_PROVIDER, AXP_WIDGET_TOKEN, buildWidgetRegistryMapFromProviders, cloneProperty, createBooleanProperty, createNumberProperty, createSelectProperty, createStringProperty, findNonEmptyBreakpoints, hasAiWidgetCategory, isWidgetAiCatalogIncluded, normalizeWidgetCategories };
|
|
2972
|
+
export { AXPBaseWidgetComponent, AXPBlockBaseLayoutWidgetComponent, AXPBoxModelLayoutWidgetComponent, AXPColumnWidgetComponent, AXPDataListWidgetComponent, AXPFlexBaseLayoutWidgetComponent, AXPFlexItemBaseLayoutWidgetComponent, AXPGridBaseLayoutWidgetComponent, AXPGridItemBaseLayoutWidgetComponent, AXPInlineBaseLayoutWidgetComponent, AXPLayoutBaseWidgetComponent, AXPPageStatus, AXPPropertyEditorHelper, AXPTableBaseLayoutWidgetComponent, AXPTableItemBaseLayoutWidgetComponent, AXPTableItemOpsBaseLayoutWidgetComponent, AXPValueWidgetComponent, AXPWidgetColumnRendererComponent, AXPWidgetContainerComponent, AXPWidgetCoreElement, AXPWidgetCoreModule, AXPWidgetCoreService, AXPWidgetGroupEnum, AXPWidgetRegistryService, AXPWidgetRendererDirective, AXPWidgetSerializationHelper, AXPWidgetStatus, AXPWidgetsCatalog, AXP_WIDGETS_ACTION_CATEGORY, AXP_WIDGETS_ADVANCE_CATEGORY, AXP_WIDGETS_AI_CATEGORY, AXP_WIDGETS_CATEGORIES, AXP_WIDGETS_EDITOR_CATEGORY, AXP_WIDGETS_LAYOUT_CATEGORY, AXP_WIDGET_COLUMN_TOKEN, AXP_WIDGET_DEFINITION_PROVIDER, AXP_WIDGET_TOKEN, buildWidgetRegistryMapFromProviders, cloneProperty, createBooleanProperty, createNumberProperty, createSelectProperty, createStringProperty, findNonEmptyBreakpoints, hasAiWidgetCategory, isWidgetAiCatalogIncluded, mapAXPPropertyToWidgetProperty, normalizeWidgetCategories };
|
|
2950
2973
|
//# sourceMappingURL=acorex-platform-layout-widget-core.mjs.map
|