@acorex/platform 20.7.6 → 20.7.7
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 +543 -306
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +10 -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 +40 -40
- 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
|
@@ -397,7 +397,7 @@ const AXPWidgetsCatalog = {
|
|
|
397
397
|
documentUploader: 'document-uploader',
|
|
398
398
|
stepWizard: 'step-wizard',
|
|
399
399
|
progressBar: 'progress-bar-editor',
|
|
400
|
-
rate: 'rate-picker-editor'
|
|
400
|
+
rate: 'rate-picker-editor'
|
|
401
401
|
};
|
|
402
402
|
|
|
403
403
|
function cloneProperty(property, values) {
|
|
@@ -453,6 +453,9 @@ function createBooleanProperty(ctor) {
|
|
|
453
453
|
},
|
|
454
454
|
},
|
|
455
455
|
visible: ctor.visible ?? true,
|
|
456
|
+
binding: {
|
|
457
|
+
enabled: true,
|
|
458
|
+
},
|
|
456
459
|
};
|
|
457
460
|
}
|
|
458
461
|
function createSelectProperty(ctor) {
|
|
@@ -2286,8 +2289,13 @@ class AXPWidgetRendererDirective {
|
|
|
2286
2289
|
const newValue = await evaluator();
|
|
2287
2290
|
const evalTime = performance.now() - evalStartTime;
|
|
2288
2291
|
// Check if result has actually changed using Lodash isEqual
|
|
2292
|
+
// Important: We must check if the key exists in the map, not just compare values
|
|
2293
|
+
// This handles the case where the expression evaluates to `undefined` for the first time
|
|
2294
|
+
// Without this check, `undefined` would be incorrectly treated as "no change"
|
|
2295
|
+
// because Map.get() returns `undefined` for non-existent keys
|
|
2296
|
+
const hasLastValue = this.lastExpressionResults.has(path);
|
|
2289
2297
|
const lastValue = this.lastExpressionResults.get(path);
|
|
2290
|
-
const hasChanged = !isEqual(newValue, lastValue);
|
|
2298
|
+
const hasChanged = !hasLastValue || !isEqual(newValue, lastValue);
|
|
2291
2299
|
if (hasChanged) {
|
|
2292
2300
|
// console.log(
|
|
2293
2301
|
// `📝 [${this.node().type}] Expression '${path}' evaluated in ${evalTime.toFixed(2)}ms - value changed`,
|