@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
|
@@ -106,6 +106,7 @@ withMethods((store) => ({
|
|
|
106
106
|
if (isEqual(currentData, initialData)) {
|
|
107
107
|
return; // Skip if the current state matches the initial state
|
|
108
108
|
}
|
|
109
|
+
console.log('initialData', initialData);
|
|
109
110
|
const changeEvent = {
|
|
110
111
|
oldValue: null,
|
|
111
112
|
newValue: cloneDeep(initialData),
|
|
@@ -397,7 +398,7 @@ const AXPWidgetsCatalog = {
|
|
|
397
398
|
documentUploader: 'document-uploader',
|
|
398
399
|
stepWizard: 'step-wizard',
|
|
399
400
|
progressBar: 'progress-bar-editor',
|
|
400
|
-
rate: 'rate-picker-editor'
|
|
401
|
+
rate: 'rate-picker-editor'
|
|
401
402
|
};
|
|
402
403
|
|
|
403
404
|
function cloneProperty(property, values) {
|
|
@@ -453,6 +454,9 @@ function createBooleanProperty(ctor) {
|
|
|
453
454
|
},
|
|
454
455
|
},
|
|
455
456
|
visible: ctor.visible ?? true,
|
|
457
|
+
binding: {
|
|
458
|
+
enabled: true,
|
|
459
|
+
},
|
|
456
460
|
};
|
|
457
461
|
}
|
|
458
462
|
function createSelectProperty(ctor) {
|
|
@@ -2286,8 +2290,13 @@ class AXPWidgetRendererDirective {
|
|
|
2286
2290
|
const newValue = await evaluator();
|
|
2287
2291
|
const evalTime = performance.now() - evalStartTime;
|
|
2288
2292
|
// Check if result has actually changed using Lodash isEqual
|
|
2293
|
+
// Important: We must check if the key exists in the map, not just compare values
|
|
2294
|
+
// This handles the case where the expression evaluates to `undefined` for the first time
|
|
2295
|
+
// Without this check, `undefined` would be incorrectly treated as "no change"
|
|
2296
|
+
// because Map.get() returns `undefined` for non-existent keys
|
|
2297
|
+
const hasLastValue = this.lastExpressionResults.has(path);
|
|
2289
2298
|
const lastValue = this.lastExpressionResults.get(path);
|
|
2290
|
-
const hasChanged = !isEqual(newValue, lastValue);
|
|
2299
|
+
const hasChanged = !hasLastValue || !isEqual(newValue, lastValue);
|
|
2291
2300
|
if (hasChanged) {
|
|
2292
2301
|
// console.log(
|
|
2293
2302
|
// `📝 [${this.node().type}] Expression '${path}' evaluated in ${evalTime.toFixed(2)}ms - value changed`,
|