@acorex/platform 21.0.0-next.37 → 21.0.0-next.40
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 +25 -3
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +18 -172
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-domain.mjs +3 -0
- package/fesm2022/acorex-platform-domain.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +29 -13
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +62 -40
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +209 -62
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +1072 -358
- 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 +170 -63
- 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 +720 -415
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-runtime.mjs +120 -9
- package/fesm2022/acorex-platform-runtime.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-Cvvr4HnL.mjs → acorex-platform-themes-default-entity-master-create-view.component-Cx1lLUaR.mjs} +3 -3
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Cx1lLUaR.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-TYoLN1Jq.mjs → acorex-platform-themes-default-entity-master-modify-view.component-AOrcgjDF.mjs} +3 -3
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-AOrcgjDF.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-C2z5Lq9y.mjs → acorex-platform-themes-default-entity-master-single-view.component-BfCeUU5F.mjs} +3 -3
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-BfCeUU5F.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +26 -14
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-shared-settings.provider-DSs1o1M6.mjs → acorex-platform-themes-shared-settings.provider-D13QB3Hr.mjs} +2 -2
- package/fesm2022/acorex-platform-themes-shared-settings.provider-D13QB3Hr.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-D566Kdvy.mjs +94 -0
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-D566Kdvy.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-view.component-BSmvnUVq.mjs → acorex-platform-themes-shared-theme-color-chooser-view.component-D7-rCGl7.mjs} +38 -16
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-D7-rCGl7.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +183 -84
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +75 -15
- 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 +67 -101
- package/types/acorex-platform-domain.d.ts +28 -2
- package/types/acorex-platform-layout-builder.d.ts +41 -28
- package/types/acorex-platform-layout-components.d.ts +4 -3
- package/types/acorex-platform-layout-designer.d.ts +56 -16
- package/types/acorex-platform-layout-entity.d.ts +180 -40
- package/types/acorex-platform-layout-views.d.ts +31 -29
- package/types/acorex-platform-layout-widget-core.d.ts +81 -52
- package/types/acorex-platform-layout-widgets.d.ts +42 -16
- package/types/acorex-platform-runtime.d.ts +156 -61
- package/types/acorex-platform-themes-default.d.ts +1 -0
- package/types/acorex-platform-workflow.d.ts +64 -52
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-9uCkMxcc.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Cvvr4HnL.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-TYoLN1Jq.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-C2z5Lq9y.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-settings.provider-DSs1o1M6.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-CHfrTtol.mjs +0 -65
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-CHfrTtol.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-BSmvnUVq.mjs.map +0 -1
|
@@ -2,6 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { signal, computed, Injectable, InjectionToken, inject, ElementRef, effect, untracked, Injector, ChangeDetectorRef, ViewChild, Input, ChangeDetectionStrategy, Component, EventEmitter, Output, input, output, ViewContainerRef, Directive, NgModule } from '@angular/core';
|
|
3
3
|
import { convertArrayToDataSource, AXDataSource } from '@acorex/cdk/common';
|
|
4
4
|
import { AXPContextStore, AXPDataSourceDefinitionProviderService, extractValue, AXPExpressionEvaluatorService, getSmart } from '@acorex/platform/core';
|
|
5
|
+
export { normalizeDefinitionCategories } from '@acorex/platform/core';
|
|
5
6
|
import { set, merge, cloneDeep, isNil, get, isEqual, isUndefined, isObjectLike, sum, isEmpty, isString } from 'lodash-es';
|
|
6
7
|
import { Subject, BehaviorSubject, filter } from 'rxjs';
|
|
7
8
|
import * as i1$1 from '@acorex/components/skeleton';
|
|
@@ -177,7 +178,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
177
178
|
|
|
178
179
|
//
|
|
179
180
|
// @deprecated
|
|
180
|
-
//
|
|
181
|
+
// Prefer AXPWidgetsList from @acorex/modules/common; dashboard widget type ids live in dashboard-management RootConfig.widgets.
|
|
181
182
|
const AXPWidgetsCatalog = {
|
|
182
183
|
timeDuration: 'time-duration',
|
|
183
184
|
timeDurationFilter: 'time-duration-filter',
|
|
@@ -230,7 +231,6 @@ const AXPWidgetsCatalog = {
|
|
|
230
231
|
tableLayout: 'table-layout',
|
|
231
232
|
tableItem: 'table-item-layout',
|
|
232
233
|
avatar: 'avatar',
|
|
233
|
-
themePaletteChooser: 'theme-palette-chooser',
|
|
234
234
|
themeModeChooser: 'theme-mode-chooser',
|
|
235
235
|
menuOrientationChooser: 'menu-orientation-chooser',
|
|
236
236
|
fontStyleChooser: 'font-style-chooser',
|
|
@@ -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',
|
|
@@ -710,6 +699,8 @@ class AXPColumnWidgetComponent {
|
|
|
710
699
|
this.token = inject(AXP_WIDGET_COLUMN_TOKEN);
|
|
711
700
|
this.path = this.token.path;
|
|
712
701
|
this.options = this.token.options ?? {};
|
|
702
|
+
/** Column header caption when rendered inside `axp-widget-column-renderer`. */
|
|
703
|
+
this.columnCaption = this.token.caption;
|
|
713
704
|
this.rawValue = null;
|
|
714
705
|
this.nullText = this.options['nullText'];
|
|
715
706
|
this.nullValue = this.options['nullValue'];
|
|
@@ -1234,6 +1225,7 @@ class AXPWidgetColumnRendererComponent extends AXDataTableColumnComponent {
|
|
|
1234
1225
|
const tokenValue = {
|
|
1235
1226
|
path: this.node.path,
|
|
1236
1227
|
options: this.mergedOptions(),
|
|
1228
|
+
caption: this.caption,
|
|
1237
1229
|
};
|
|
1238
1230
|
this.widgetInjector = Injector.create({
|
|
1239
1231
|
parent: this.injector,
|
|
@@ -1332,6 +1324,7 @@ class AXPWidgetColumnRendererComponent extends AXDataTableColumnComponent {
|
|
|
1332
1324
|
const tokenValue = {
|
|
1333
1325
|
path: this.node.path,
|
|
1334
1326
|
options: this.mergedOptions(),
|
|
1327
|
+
caption: this.caption,
|
|
1335
1328
|
};
|
|
1336
1329
|
rowInjector = Injector.create({
|
|
1337
1330
|
parent: this.injector,
|
|
@@ -1364,6 +1357,7 @@ class AXPWidgetColumnRendererComponent extends AXDataTableColumnComponent {
|
|
|
1364
1357
|
const tokenValue = {
|
|
1365
1358
|
path: this.node.path,
|
|
1366
1359
|
options: evaluatedOptions,
|
|
1360
|
+
caption: this.caption,
|
|
1367
1361
|
};
|
|
1368
1362
|
const newInjector = Injector.create({
|
|
1369
1363
|
parent: this.injector,
|
|
@@ -1390,6 +1384,7 @@ class AXPWidgetColumnRendererComponent extends AXDataTableColumnComponent {
|
|
|
1390
1384
|
const tokenValue = {
|
|
1391
1385
|
path: this.node.path,
|
|
1392
1386
|
options: this.mergedOptions(),
|
|
1387
|
+
caption: this.caption,
|
|
1393
1388
|
};
|
|
1394
1389
|
rowInjector = Injector.create({
|
|
1395
1390
|
parent: this.injector,
|
|
@@ -2394,30 +2389,31 @@ class AXPWidgetRendererDirective {
|
|
|
2394
2389
|
}
|
|
2395
2390
|
getEventScope() {
|
|
2396
2391
|
return {
|
|
2397
|
-
context: (
|
|
2392
|
+
context: (...paths) => {
|
|
2398
2393
|
return this.onContextChanged.pipe(filter((c) => {
|
|
2399
|
-
|
|
2400
|
-
|
|
2394
|
+
const activePaths = paths.filter((p) => !!p && p.trim().length > 0);
|
|
2395
|
+
// If no path filters specified, pass all events
|
|
2396
|
+
if (activePaths.length === 0) {
|
|
2401
2397
|
return true;
|
|
2402
2398
|
}
|
|
2403
2399
|
// Ensure c.path exists
|
|
2404
2400
|
if (!c.path) {
|
|
2405
2401
|
return false;
|
|
2406
2402
|
}
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2403
|
+
return activePaths.some((path) => {
|
|
2404
|
+
// Pattern: "prefix*" - matches paths that start with prefix
|
|
2405
|
+
if (path.endsWith('*')) {
|
|
2406
|
+
const prefix = path.substring(0, path.length - 1);
|
|
2407
|
+
return c.path.startsWith(prefix);
|
|
2408
|
+
}
|
|
2409
|
+
// Pattern: "*suffix" - matches paths that end with suffix
|
|
2410
|
+
if (path.startsWith('*')) {
|
|
2411
|
+
const suffix = path.substring(1);
|
|
2412
|
+
return c.path.endsWith(suffix);
|
|
2413
|
+
}
|
|
2414
|
+
// Exact match
|
|
2419
2415
|
return c.path === path;
|
|
2420
|
-
}
|
|
2416
|
+
});
|
|
2421
2417
|
}));
|
|
2422
2418
|
},
|
|
2423
2419
|
from: (event) => get(this.instance.api(), event),
|
|
@@ -2580,6 +2576,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
2580
2576
|
}]
|
|
2581
2577
|
}] });
|
|
2582
2578
|
|
|
2579
|
+
//#endregion
|
|
2580
|
+
//#region ---- Mapping ----
|
|
2581
|
+
/**
|
|
2582
|
+
* Converts a domain {@link AXPProperty} into a {@link AXPWidgetProperty} row for
|
|
2583
|
+
* the layout property viewer (`AXPPropertyViewerService` and `buildPropertyViewerTabsFromProperties`).
|
|
2584
|
+
*/
|
|
2585
|
+
function mapAXPPropertyToWidgetProperty(property, options) {
|
|
2586
|
+
const { group, order, valuePathPrefix, resolveTitle, resolveDescription } = options;
|
|
2587
|
+
const path = valuePathPrefix ? `${valuePathPrefix}.${property.name}` : property.name;
|
|
2588
|
+
const iface = property.interface;
|
|
2589
|
+
const widgetType = iface?.type ?? 'text-editor';
|
|
2590
|
+
const description = resolveDescription?.(property);
|
|
2591
|
+
return {
|
|
2592
|
+
name: property.name,
|
|
2593
|
+
title: resolveTitle(property),
|
|
2594
|
+
...(description !== undefined && description !== '' ? { description } : {}),
|
|
2595
|
+
group,
|
|
2596
|
+
order,
|
|
2597
|
+
schema: {
|
|
2598
|
+
dataType: property.dataType,
|
|
2599
|
+
interface: {
|
|
2600
|
+
path,
|
|
2601
|
+
name: property.name,
|
|
2602
|
+
type: widgetType,
|
|
2603
|
+
options: iface?.options ?? {},
|
|
2604
|
+
...(iface?.triggers ? { triggers: iface.triggers } : {}),
|
|
2605
|
+
},
|
|
2606
|
+
},
|
|
2607
|
+
validations: property.validations,
|
|
2608
|
+
visible: true,
|
|
2609
|
+
};
|
|
2610
|
+
}
|
|
2611
|
+
//#endregion
|
|
2612
|
+
|
|
2583
2613
|
class AXPPropertyEditorHelper {
|
|
2584
2614
|
static expandShorthand(values) {
|
|
2585
2615
|
switch (values.length) {
|
|
@@ -2862,6 +2892,109 @@ class AXPWidgetSerializationHelper {
|
|
|
2862
2892
|
}
|
|
2863
2893
|
//#endregion
|
|
2864
2894
|
|
|
2895
|
+
//#region ---- Editor sub-categories (widget picker) ----
|
|
2896
|
+
const AXP_WIDGETS_EDITOR_SUB_TEXT_INPUTS = {
|
|
2897
|
+
name: 'editor-text-inputs',
|
|
2898
|
+
order: 1,
|
|
2899
|
+
title: '@platform-layout-widgets:subcategories.editor-text-inputs.title',
|
|
2900
|
+
};
|
|
2901
|
+
const AXP_WIDGETS_EDITOR_SUB_NUMERIC = {
|
|
2902
|
+
name: 'editor-numeric',
|
|
2903
|
+
order: 2,
|
|
2904
|
+
title: '@platform-layout-widgets:subcategories.editor-numeric.title',
|
|
2905
|
+
};
|
|
2906
|
+
const AXP_WIDGETS_EDITOR_SUB_DATETIME = {
|
|
2907
|
+
name: 'editor-datetime',
|
|
2908
|
+
order: 3,
|
|
2909
|
+
title: '@platform-layout-widgets:subcategories.editor-datetime.title',
|
|
2910
|
+
};
|
|
2911
|
+
const AXP_WIDGETS_EDITOR_SUB_CHOICE = {
|
|
2912
|
+
name: 'editor-choice',
|
|
2913
|
+
order: 4,
|
|
2914
|
+
title: '@platform-layout-widgets:subcategories.editor-choice.title',
|
|
2915
|
+
};
|
|
2916
|
+
const AXP_WIDGETS_EDITOR_SUB_RICH = {
|
|
2917
|
+
name: 'editor-rich',
|
|
2918
|
+
order: 5,
|
|
2919
|
+
title: '@platform-layout-widgets:subcategories.editor-rich.title',
|
|
2920
|
+
};
|
|
2921
|
+
const AXP_WIDGETS_EDITOR_SUB_VISUAL = {
|
|
2922
|
+
name: 'editor-visual',
|
|
2923
|
+
order: 6,
|
|
2924
|
+
title: '@platform-layout-widgets:subcategories.editor-visual.title',
|
|
2925
|
+
};
|
|
2926
|
+
const AXP_WIDGETS_EDITOR_SUB_COMPOSITE = {
|
|
2927
|
+
name: 'editor-composite',
|
|
2928
|
+
order: 7,
|
|
2929
|
+
title: '@platform-layout-widgets:subcategories.editor-composite.title',
|
|
2930
|
+
};
|
|
2931
|
+
const AXP_WIDGETS_EDITOR_SUB_CONFIG = {
|
|
2932
|
+
name: 'editor-config',
|
|
2933
|
+
order: 8,
|
|
2934
|
+
title: '@platform-layout-widgets:subcategories.editor-config.title',
|
|
2935
|
+
};
|
|
2936
|
+
//#endregion
|
|
2937
|
+
//#region ---- Layout sub-categories (widget picker) ----
|
|
2938
|
+
const AXP_WIDGETS_LAYOUT_SUB_SHELL = {
|
|
2939
|
+
name: 'layout-shell',
|
|
2940
|
+
order: 1,
|
|
2941
|
+
title: '@platform-layout-widgets:subcategories.layout-shell.title',
|
|
2942
|
+
};
|
|
2943
|
+
const AXP_WIDGETS_LAYOUT_SUB_GRID = {
|
|
2944
|
+
name: 'layout-grid',
|
|
2945
|
+
order: 2,
|
|
2946
|
+
title: '@platform-layout-widgets:subcategories.layout-grid.title',
|
|
2947
|
+
};
|
|
2948
|
+
const AXP_WIDGETS_LAYOUT_SUB_SURFACES = {
|
|
2949
|
+
name: 'layout-surfaces',
|
|
2950
|
+
order: 3,
|
|
2951
|
+
title: '@platform-layout-widgets:subcategories.layout-surfaces.title',
|
|
2952
|
+
};
|
|
2953
|
+
const AXP_WIDGETS_LAYOUT_SUB_TABS = {
|
|
2954
|
+
name: 'layout-tabs',
|
|
2955
|
+
order: 4,
|
|
2956
|
+
title: '@platform-layout-widgets:subcategories.layout-tabs.title',
|
|
2957
|
+
};
|
|
2958
|
+
const AXP_WIDGETS_LAYOUT_SUB_LISTS = {
|
|
2959
|
+
name: 'layout-lists',
|
|
2960
|
+
order: 5,
|
|
2961
|
+
title: '@platform-layout-widgets:subcategories.layout-lists.title',
|
|
2962
|
+
};
|
|
2963
|
+
const AXP_WIDGETS_LAYOUT_SUB_UTILITY = {
|
|
2964
|
+
name: 'layout-utility',
|
|
2965
|
+
order: 6,
|
|
2966
|
+
title: '@platform-layout-widgets:subcategories.layout-utility.title',
|
|
2967
|
+
};
|
|
2968
|
+
//#endregion
|
|
2969
|
+
//#region ---- Action sub-categories (widget picker) ----
|
|
2970
|
+
const AXP_WIDGETS_ACTION_SUB_CONTROLS = {
|
|
2971
|
+
name: 'action-controls',
|
|
2972
|
+
order: 1,
|
|
2973
|
+
title: '@platform-layout-widgets:subcategories.action-controls.title',
|
|
2974
|
+
};
|
|
2975
|
+
//#endregion
|
|
2976
|
+
//#region ---- Advance sub-categories (widget picker) ----
|
|
2977
|
+
const AXP_WIDGETS_ADVANCE_SUB_MEDIA = {
|
|
2978
|
+
name: 'advance-media',
|
|
2979
|
+
order: 1,
|
|
2980
|
+
title: '@platform-layout-widgets:subcategories.advance-media.title',
|
|
2981
|
+
};
|
|
2982
|
+
const AXP_WIDGETS_ADVANCE_SUB_INPUT = {
|
|
2983
|
+
name: 'advance-input',
|
|
2984
|
+
order: 2,
|
|
2985
|
+
title: '@platform-layout-widgets:subcategories.advance-input.title',
|
|
2986
|
+
};
|
|
2987
|
+
const AXP_WIDGETS_ADVANCE_SUB_DATA = {
|
|
2988
|
+
name: 'advance-data',
|
|
2989
|
+
order: 3,
|
|
2990
|
+
title: '@platform-layout-widgets:subcategories.advance-data.title',
|
|
2991
|
+
};
|
|
2992
|
+
const AXP_WIDGETS_ADVANCE_SUB_TOOLS = {
|
|
2993
|
+
name: 'advance-tools',
|
|
2994
|
+
order: 4,
|
|
2995
|
+
title: '@platform-layout-widgets:subcategories.advance-tools.title',
|
|
2996
|
+
};
|
|
2997
|
+
//#endregion
|
|
2865
2998
|
/** Normalizes widget categories to an array for iteration and serialization. */
|
|
2866
2999
|
function normalizeWidgetCategories(categories) {
|
|
2867
3000
|
if (categories == null) {
|
|
@@ -2872,28 +3005,28 @@ function normalizeWidgetCategories(categories) {
|
|
|
2872
3005
|
const AXP_WIDGETS_LAYOUT_CATEGORY = {
|
|
2873
3006
|
name: 'layout',
|
|
2874
3007
|
order: 1,
|
|
2875
|
-
title: '
|
|
3008
|
+
title: '@platform-layout-widgets:categories.layout.title',
|
|
2876
3009
|
};
|
|
2877
3010
|
const AXP_WIDGETS_EDITOR_CATEGORY = {
|
|
2878
3011
|
name: 'editor',
|
|
2879
3012
|
order: 2,
|
|
2880
|
-
title: '
|
|
3013
|
+
title: '@platform-layout-widgets:categories.editor.title',
|
|
2881
3014
|
};
|
|
2882
3015
|
const AXP_WIDGETS_ACTION_CATEGORY = {
|
|
2883
3016
|
name: 'action',
|
|
2884
3017
|
order: 3,
|
|
2885
|
-
title: '
|
|
3018
|
+
title: '@platform-layout-widgets:categories.action.title',
|
|
2886
3019
|
};
|
|
2887
3020
|
const AXP_WIDGETS_ADVANCE_CATEGORY = {
|
|
2888
3021
|
name: 'advance',
|
|
2889
3022
|
order: 4,
|
|
2890
|
-
title: '
|
|
3023
|
+
title: '@platform-layout-widgets:categories.advance.title',
|
|
2891
3024
|
};
|
|
2892
|
-
/**
|
|
3025
|
+
/** AI category tab in the widget picker (metadata); unrelated to Widgets:GetForAI listing scope. */
|
|
2893
3026
|
const AXP_WIDGETS_AI_CATEGORY = {
|
|
2894
3027
|
name: 'ai',
|
|
2895
3028
|
order: 5,
|
|
2896
|
-
title: '
|
|
3029
|
+
title: '@platform-layout-widgets:categories.ai.title',
|
|
2897
3030
|
};
|
|
2898
3031
|
const AXP_WIDGETS_CATEGORIES = [
|
|
2899
3032
|
AXP_WIDGETS_LAYOUT_CATEGORY,
|
|
@@ -2913,38 +3046,12 @@ var AXPWidgetGroupEnum;
|
|
|
2913
3046
|
AXPWidgetGroupEnum["SettingWidget"] = "setting-widget";
|
|
2914
3047
|
AXPWidgetGroupEnum["EntityWidget"] = "entity-widget";
|
|
2915
3048
|
AXPWidgetGroupEnum["UtilityWidget"] = "utility-widget";
|
|
3049
|
+
AXPWidgetGroupEnum["BaseWidget"] = "base-widget";
|
|
2916
3050
|
})(AXPWidgetGroupEnum || (AXPWidgetGroupEnum = {}));
|
|
2917
3051
|
|
|
2918
|
-
//#region ---- Helpers ----
|
|
2919
|
-
/**
|
|
2920
|
-
* True when the widget declares the AI category (see {@link AXP_WIDGETS_AI_CATEGORY}).
|
|
2921
|
-
*/
|
|
2922
|
-
function hasAiWidgetCategory(config) {
|
|
2923
|
-
return normalizeWidgetCategories(config.categories).some((c) => c.name === AXP_WIDGETS_AI_CATEGORY.name);
|
|
2924
|
-
}
|
|
2925
|
-
//#endregion
|
|
2926
|
-
//#region ---- Public API ----
|
|
2927
|
-
/**
|
|
2928
|
-
* Resolves AI catalog visibility using {@link AXPWidgetConfig.aiCatalog} and the AI widget category.
|
|
2929
|
-
* - `exclude`: never listed.
|
|
2930
|
-
* - `include`: always listed (override when the widget cannot declare the AI category yet).
|
|
2931
|
-
* - `inherit` / omitted: listed only if {@link hasAiWidgetCategory} is true.
|
|
2932
|
-
*/
|
|
2933
|
-
function isWidgetAiCatalogIncluded(config) {
|
|
2934
|
-
const mode = config.aiCatalog ?? 'inherit';
|
|
2935
|
-
if (mode === 'exclude') {
|
|
2936
|
-
return false;
|
|
2937
|
-
}
|
|
2938
|
-
if (mode === 'include') {
|
|
2939
|
-
return true;
|
|
2940
|
-
}
|
|
2941
|
-
return hasAiWidgetCategory(config);
|
|
2942
|
-
}
|
|
2943
|
-
//#endregion
|
|
2944
|
-
|
|
2945
3052
|
/**
|
|
2946
3053
|
* Generated bundle index. Do not edit.
|
|
2947
3054
|
*/
|
|
2948
3055
|
|
|
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,
|
|
3056
|
+
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_ACTION_SUB_CONTROLS, AXP_WIDGETS_ADVANCE_CATEGORY, AXP_WIDGETS_ADVANCE_SUB_DATA, AXP_WIDGETS_ADVANCE_SUB_INPUT, AXP_WIDGETS_ADVANCE_SUB_MEDIA, AXP_WIDGETS_ADVANCE_SUB_TOOLS, AXP_WIDGETS_AI_CATEGORY, AXP_WIDGETS_CATEGORIES, AXP_WIDGETS_EDITOR_CATEGORY, AXP_WIDGETS_EDITOR_SUB_CHOICE, AXP_WIDGETS_EDITOR_SUB_COMPOSITE, AXP_WIDGETS_EDITOR_SUB_CONFIG, AXP_WIDGETS_EDITOR_SUB_DATETIME, AXP_WIDGETS_EDITOR_SUB_NUMERIC, AXP_WIDGETS_EDITOR_SUB_RICH, AXP_WIDGETS_EDITOR_SUB_TEXT_INPUTS, AXP_WIDGETS_EDITOR_SUB_VISUAL, AXP_WIDGETS_LAYOUT_CATEGORY, AXP_WIDGETS_LAYOUT_SUB_GRID, AXP_WIDGETS_LAYOUT_SUB_LISTS, AXP_WIDGETS_LAYOUT_SUB_SHELL, AXP_WIDGETS_LAYOUT_SUB_SURFACES, AXP_WIDGETS_LAYOUT_SUB_TABS, AXP_WIDGETS_LAYOUT_SUB_UTILITY, AXP_WIDGET_COLUMN_TOKEN, AXP_WIDGET_DEFINITION_PROVIDER, AXP_WIDGET_TOKEN, buildWidgetRegistryMapFromProviders, cloneProperty, createBooleanProperty, createNumberProperty, createSelectProperty, createStringProperty, findNonEmptyBreakpoints, mapAXPPropertyToWidgetProperty, normalizeWidgetCategories };
|
|
2950
3057
|
//# sourceMappingURL=acorex-platform-layout-widget-core.mjs.map
|