@acorex/platform 21.0.0-next.3 → 21.0.0-next.5
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/auth/index.d.ts +6 -6
- package/common/index.d.ts +10 -5
- package/core/index.d.ts +55 -315
- package/fesm2022/acorex-platform-auth.mjs +18 -22
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-common.mjs +62 -38
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +150 -246
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +3 -3
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +30 -60
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +2 -32
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +12 -6
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +474 -1527
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/entity/index.d.ts +0 -9
- package/layout/widget-core/index.d.ts +0 -3
- package/package.json +9 -9
- package/workflow/index.d.ts +182 -817
|
@@ -1704,7 +1704,6 @@ class AXPWidgetRendererDirective {
|
|
|
1704
1704
|
this.applyOptions();
|
|
1705
1705
|
}
|
|
1706
1706
|
await this.updateVisibility();
|
|
1707
|
-
await this.updateValueBasedOnFormula();
|
|
1708
1707
|
}
|
|
1709
1708
|
else if (changed.path && this.isRelevantContextChange(changed.path)) {
|
|
1710
1709
|
// console.log(`🎯 [${this.node().type}] Context change detected: ${changed.path}`);
|
|
@@ -1788,14 +1787,6 @@ class AXPWidgetRendererDirective {
|
|
|
1788
1787
|
// console.log(`🔧 [${this.node().type}] Options updated (${optionsTime.toFixed(2)}ms)`);
|
|
1789
1788
|
this.applyOptions();
|
|
1790
1789
|
}
|
|
1791
|
-
// Check formulas for any of the changed paths
|
|
1792
|
-
const formulaStartTime = performance.now();
|
|
1793
|
-
const formulaNeedsUpdate = paths.some((path) => this.checkFormulaForUpdate(this.node().formula, path));
|
|
1794
|
-
if (formulaNeedsUpdate) {
|
|
1795
|
-
// console.log(`🧮 [${this.node().type}] Formula needs update`);
|
|
1796
|
-
await this.updateValueBasedOnFormula();
|
|
1797
|
-
}
|
|
1798
|
-
const formulaTime = performance.now() - formulaStartTime;
|
|
1799
1790
|
// Check visibility for any of the changed paths
|
|
1800
1791
|
const visibilityStartTime = performance.now();
|
|
1801
1792
|
const visibilityNeedsUpdate = paths.some((path) => this.hasVisibilityDependency(path));
|
|
@@ -1810,7 +1801,7 @@ class AXPWidgetRendererDirective {
|
|
|
1810
1801
|
});
|
|
1811
1802
|
const totalTime = performance.now() - startTime;
|
|
1812
1803
|
// console.log(
|
|
1813
|
-
// `✅ [${this.node().type}] Batch processing completed in ${totalTime.toFixed(2)}ms (options: ${optionsTime.toFixed(2)}ms,
|
|
1804
|
+
// `✅ [${this.node().type}] Batch processing completed in ${totalTime.toFixed(2)}ms (options: ${optionsTime.toFixed(2)}ms, visibility: ${visibilityTime.toFixed(2)}ms)`,
|
|
1814
1805
|
// );
|
|
1815
1806
|
}
|
|
1816
1807
|
//#endregion
|
|
@@ -1833,11 +1824,7 @@ class AXPWidgetRendererDirective {
|
|
|
1833
1824
|
if (this.hasExpressionDependency(changedPath)) {
|
|
1834
1825
|
return true;
|
|
1835
1826
|
}
|
|
1836
|
-
// 5.
|
|
1837
|
-
if (node.formula && this.checkFormulaForUpdate(node.formula, changedPath)) {
|
|
1838
|
-
return true;
|
|
1839
|
-
}
|
|
1840
|
-
// 6. Trigger dependency check - if widget has triggers that depend on this path
|
|
1827
|
+
// 5. Trigger dependency check - if widget has triggers that depend on this path
|
|
1841
1828
|
if (this.hasTriggerDependency(changedPath)) {
|
|
1842
1829
|
return true;
|
|
1843
1830
|
}
|
|
@@ -2159,7 +2146,6 @@ class AXPWidgetRendererDirective {
|
|
|
2159
2146
|
this.instance?.onValueChanged?.pipe(this.unsubscriber.takeUntilDestroy).subscribe((c) => {
|
|
2160
2147
|
this.onValueChanged.emit({ sender: this, widget: c.sender });
|
|
2161
2148
|
});
|
|
2162
|
-
await this.updateValueBasedOnFormula();
|
|
2163
2149
|
await this.updateVisibility();
|
|
2164
2150
|
await this.assignTriggers();
|
|
2165
2151
|
//
|
|
@@ -2234,16 +2220,6 @@ class AXPWidgetRendererDirective {
|
|
|
2234
2220
|
return !isEqual(newOptions, this.lastAppliedOptions);
|
|
2235
2221
|
}
|
|
2236
2222
|
// Removed deepCloneValue method - now using Lodash cloneDeep
|
|
2237
|
-
checkFormulaForUpdate(formula, path) {
|
|
2238
|
-
if (formula) {
|
|
2239
|
-
const regex = /context\.eval\('([^']+)'\)/g;
|
|
2240
|
-
const matches = formula.match(regex);
|
|
2241
|
-
const nodes = matches ? matches.map((match) => match.match(/'([^']+)'/)[1]) : [];
|
|
2242
|
-
return nodes.includes(path);
|
|
2243
|
-
}
|
|
2244
|
-
else
|
|
2245
|
-
return false;
|
|
2246
|
-
}
|
|
2247
2223
|
preprocessAndInitialOptions(obj, pathPrefix = '') {
|
|
2248
2224
|
if (!obj) {
|
|
2249
2225
|
return;
|
|
@@ -2351,12 +2327,6 @@ class AXPWidgetRendererDirective {
|
|
|
2351
2327
|
// );
|
|
2352
2328
|
return changedUpdates.length;
|
|
2353
2329
|
}
|
|
2354
|
-
async updateValueBasedOnFormula() {
|
|
2355
|
-
if (this.node().formula) {
|
|
2356
|
-
const value = await this.evaluateExpression(this.node().formula);
|
|
2357
|
-
this.instance.setValue(value);
|
|
2358
|
-
}
|
|
2359
|
-
}
|
|
2360
2330
|
async updateVisibility() {
|
|
2361
2331
|
const node = this.node();
|
|
2362
2332
|
const visibility = node.options?.['visible'] || this.mergedOptions()?.visible;
|