@acorex/platform 20.7.6 → 20.7.8
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-core.mjs +5 -3
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components-binding-expression-editor-popup.component-ZnTG7wlJ.mjs +121 -0
- package/fesm2022/acorex-platform-layout-components-binding-expression-editor-popup.component-ZnTG7wlJ.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-components.mjs +232 -107
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +612 -330
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +11 -2
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-layout-widgets-repeater-widget-column.component-D4UOMW6k.mjs → acorex-platform-layout-widgets-repeater-widget-column.component-fcCirNxz.mjs} +2 -2
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-fcCirNxz.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-widgets.mjs +582 -76
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-C31xDGGb.mjs → acorex-platform-themes-default-entity-master-list-view.component-DzWjSMSK.mjs} +5 -4
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-C31xDGGb.mjs.map → acorex-platform-themes-default-entity-master-list-view.component-DzWjSMSK.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +2 -2
- package/layout/components/index.d.ts +49 -28
- package/layout/entity/index.d.ts +42 -41
- package/layout/widget-core/index.d.ts +11 -2
- package/layout/widgets/index.d.ts +130 -8
- package/package.json +1 -1
- package/fesm2022/acorex-platform-layout-widgets-repeater-widget-column.component-D4UOMW6k.mjs.map +0 -1
|
@@ -545,7 +545,7 @@ function setSmart(obj, smartPath, value) {
|
|
|
545
545
|
if (isPlainObject(parentObj)) {
|
|
546
546
|
const existingKeys = Object.keys(parentObj);
|
|
547
547
|
// Check if all existing properties are null/undefined using lodash
|
|
548
|
-
const allNil = isEmpty(existingKeys) || existingKeys.every(key => isNil(parentObj[key]));
|
|
548
|
+
const allNil = isEmpty(existingKeys) || existingKeys.every((key) => isNil(parentObj[key]));
|
|
549
549
|
if (allNil) {
|
|
550
550
|
// Set parent to null instead of creating/keeping an object with all undefined properties
|
|
551
551
|
set(obj, parentPath, null);
|
|
@@ -560,7 +560,7 @@ function setSmart(obj, smartPath, value) {
|
|
|
560
560
|
const parentObj = get(obj, parentPath);
|
|
561
561
|
if (isPlainObject(parentObj)) {
|
|
562
562
|
// Use lodash to check if all properties are null/undefined
|
|
563
|
-
const allNil = Object.keys(parentObj).every(key => isNil(parentObj[key]));
|
|
563
|
+
const allNil = Object.keys(parentObj).every((key) => isNil(parentObj[key]));
|
|
564
564
|
if (allNil) {
|
|
565
565
|
set(obj, parentPath, null);
|
|
566
566
|
}
|
|
@@ -645,6 +645,8 @@ function getSmart(obj, smartPath) {
|
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
647
|
function extractValue(value, key = 'id') {
|
|
648
|
+
console.log('value', value);
|
|
649
|
+
console.log('key', key);
|
|
648
650
|
if (isNil(value)) {
|
|
649
651
|
return null;
|
|
650
652
|
}
|
|
@@ -1671,7 +1673,7 @@ class AXPExpressionEvaluatorService {
|
|
|
1671
1673
|
}
|
|
1672
1674
|
isExpression(expression) {
|
|
1673
1675
|
if (typeof expression === 'string') {
|
|
1674
|
-
return expression.
|
|
1676
|
+
return expression.trim().startsWith('{{') && expression.trim().endsWith('}}');
|
|
1675
1677
|
}
|
|
1676
1678
|
return false;
|
|
1677
1679
|
}
|