@acorex-platform/framework-client 2.0.0-next.20 → 2.0.0-next.21
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-framework-client-layout-builder.mjs +20 -0
- package/fesm2022/acorex-platform-framework-client-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-components.mjs +192 -29
- package/fesm2022/acorex-platform-framework-client-layout-components.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-uEA2EE9v.mjs → acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-B3NLw_X8.mjs} +101 -13
- package/fesm2022/{acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-uEA2EE9v.mjs.map → acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-B3NLw_X8.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-i9bfszKb.mjs → acorex-platform-framework-client-layout-entity-attachments-page.component-CCOi5IsF.mjs} +2 -2
- package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-i9bfszKb.mjs.map → acorex-platform-framework-client-layout-entity-attachments-page.component-CCOi5IsF.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-bulk-entity.command-Ej4_qrGa.mjs → acorex-platform-framework-client-layout-entity-bulk-entity.command-D8g9PkkI.mjs} +2 -2
- package/fesm2022/{acorex-platform-framework-client-layout-entity-bulk-entity.command-Ej4_qrGa.mjs.map → acorex-platform-framework-client-layout-entity-bulk-entity.command-D8g9PkkI.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-file-list-popup.component-BbYsgq32.mjs → acorex-platform-framework-client-layout-entity-file-list-popup.component-B2aSSN0A.mjs} +2 -2
- package/fesm2022/{acorex-platform-framework-client-layout-entity-file-list-popup.component-BbYsgq32.mjs.map → acorex-platform-framework-client-layout-entity-file-list-popup.component-B2aSSN0A.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-CWc-6CZ8.mjs → acorex-platform-framework-client-layout-entity-gallery-page.component-D6r3VvFN.mjs} +2 -2
- package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-CWc-6CZ8.mjs.map → acorex-platform-framework-client-layout-entity-gallery-page.component-D6r3VvFN.mjs.map} +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-entity.mjs +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs +6 -0
- package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-DZMgisgf.mjs → acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-ByihbDgl.mjs} +48 -14
- package/fesm2022/acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-ByihbDgl.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-BejeCu5q.mjs → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-BFB3Jo5r.mjs} +2 -2
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-BejeCu5q.mjs.map → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-BFB3Jo5r.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-C2XsTtkl.mjs → acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-HBONm-TI.mjs} +2 -2
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-C2XsTtkl.mjs.map → acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-HBONm-TI.mjs.map} +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs +1 -1
- package/fesm2022/acorex-platform-framework-client-themes-default.mjs +82 -26
- package/fesm2022/acorex-platform-framework-client-themes-default.mjs.map +1 -1
- package/package.json +2 -2
- package/types/acorex-platform-framework-client-layout-components.d.ts +12 -2
- package/types/acorex-platform-framework-client-layout-entity.d.ts +34 -3
- package/types/acorex-platform-framework-client-layout-widgets.d.ts +6 -0
- package/types/acorex-platform-framework-client-themes-default.d.ts +12 -0
- package/fesm2022/acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-DZMgisgf.mjs.map +0 -1
|
@@ -208,6 +208,7 @@ class AXPLayoutConversionService {
|
|
|
208
208
|
if (!editorWidget.mode) {
|
|
209
209
|
editorWidget.mode = fieldMode;
|
|
210
210
|
}
|
|
211
|
+
hoistWidgetDefaultValue(editorWidget);
|
|
211
212
|
const hintOpts = field.description != null &&
|
|
212
213
|
(typeof field.description !== 'string' || field.description.trim().length > 0)
|
|
213
214
|
? { hint: field.description, hintDisplayMode: 'note' }
|
|
@@ -289,6 +290,7 @@ class AXPLayoutConversionService {
|
|
|
289
290
|
const fieldModePart = param.mode ?? '_';
|
|
290
291
|
const visiblePart = param.visible === undefined ? '_' : String(param.visible);
|
|
291
292
|
keyParts.push(`p${groupIndex}.${paramIndex}:${param.path}:${param.widget.type}:${fieldModePart}:${visiblePart}`);
|
|
293
|
+
keyParts.push(`pW${groupIndex}.${paramIndex}:${JSON.stringify(param.widget.defaultValue ?? null)}:${JSON.stringify(param.widget.options ?? null)}`);
|
|
292
294
|
keyParts.push(`pL${groupIndex}.${paramIndex}:${JSON.stringify(param.title ?? null)}:${JSON.stringify(param.description ?? null)}:${JSON.stringify(param.badge ?? null)}`);
|
|
293
295
|
});
|
|
294
296
|
});
|
|
@@ -359,6 +361,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
359
361
|
providedIn: 'root',
|
|
360
362
|
}]
|
|
361
363
|
}] });
|
|
364
|
+
/**
|
|
365
|
+
* `defaultValue` is a widget-node field. Configurators and metadata forms sometimes leave it
|
|
366
|
+
* on `options`, which the value widget never reads. Lift a meaningful value onto the node.
|
|
367
|
+
*/
|
|
368
|
+
function hoistWidgetDefaultValue(widget) {
|
|
369
|
+
const options = widget.options;
|
|
370
|
+
const fromOptions = options?.['defaultValue'];
|
|
371
|
+
const nodeValue = widget.defaultValue;
|
|
372
|
+
const nodeMissing = nodeValue === undefined || nodeValue === null || nodeValue === '';
|
|
373
|
+
const optionsMeaningful = fromOptions !== undefined && fromOptions !== null && fromOptions !== '';
|
|
374
|
+
if (nodeMissing && optionsMeaningful) {
|
|
375
|
+
widget.defaultValue = fromOptions;
|
|
376
|
+
}
|
|
377
|
+
if (options && 'defaultValue' in options) {
|
|
378
|
+
const { defaultValue: _defaultValue, ...rest } = options;
|
|
379
|
+
widget.options = rest;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
362
382
|
|
|
363
383
|
//#region ---- Dialog Close Confirmation Utilities ----
|
|
364
384
|
function normalizeDialogCloseConfirmation(value) {
|