@zeedhi/common 1.55.0 → 1.55.1
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/dist/zd-common.esm.js +8 -1
- package/dist/zd-common.umd.js +8 -1
- package/package.json +2 -2
package/dist/zd-common.esm.js
CHANGED
|
@@ -10973,7 +10973,8 @@ class Tree extends ComponentRender {
|
|
|
10973
10973
|
const nodePath = node.pathStr;
|
|
10974
10974
|
if (!nodePath)
|
|
10975
10975
|
return;
|
|
10976
|
-
const compName = component.name
|
|
10976
|
+
const compName = component.name.indexOf(`_${nodePath}`) > -1
|
|
10977
|
+
? component.name.substring(0, component.name.indexOf(`_${nodePath}`)) : component.name;
|
|
10977
10978
|
const instanceName = `${compName}_${nodePath}`;
|
|
10978
10979
|
const path = parentPath ? `${parentPath}.${compName}` : compName;
|
|
10979
10980
|
const newInstances = Metadata.getInstances(instanceName);
|
|
@@ -10983,6 +10984,12 @@ class Tree extends ComponentRender {
|
|
|
10983
10984
|
const newChildren = this.getSlotComponent(newComponent.children || [], node, path);
|
|
10984
10985
|
newComponent.name = instanceName;
|
|
10985
10986
|
newComponent.children = newChildren;
|
|
10987
|
+
try {
|
|
10988
|
+
Metadata.updateInstance(instanceName, appliedConditions);
|
|
10989
|
+
}
|
|
10990
|
+
catch (e) {
|
|
10991
|
+
// do nothing
|
|
10992
|
+
}
|
|
10986
10993
|
newComponents.push(newComponent);
|
|
10987
10994
|
});
|
|
10988
10995
|
return newComponents;
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -10980,7 +10980,8 @@
|
|
|
10980
10980
|
const nodePath = node.pathStr;
|
|
10981
10981
|
if (!nodePath)
|
|
10982
10982
|
return;
|
|
10983
|
-
const compName = component.name
|
|
10983
|
+
const compName = component.name.indexOf(`_${nodePath}`) > -1
|
|
10984
|
+
? component.name.substring(0, component.name.indexOf(`_${nodePath}`)) : component.name;
|
|
10984
10985
|
const instanceName = `${compName}_${nodePath}`;
|
|
10985
10986
|
const path = parentPath ? `${parentPath}.${compName}` : compName;
|
|
10986
10987
|
const newInstances = core.Metadata.getInstances(instanceName);
|
|
@@ -10990,6 +10991,12 @@
|
|
|
10990
10991
|
const newChildren = this.getSlotComponent(newComponent.children || [], node, path);
|
|
10991
10992
|
newComponent.name = instanceName;
|
|
10992
10993
|
newComponent.children = newChildren;
|
|
10994
|
+
try {
|
|
10995
|
+
core.Metadata.updateInstance(instanceName, appliedConditions);
|
|
10996
|
+
}
|
|
10997
|
+
catch (e) {
|
|
10998
|
+
// do nothing
|
|
10999
|
+
}
|
|
10993
11000
|
newComponents.push(newComponent);
|
|
10994
11001
|
});
|
|
10995
11002
|
return newComponents;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.55.
|
|
3
|
+
"version": "1.55.1",
|
|
4
4
|
"description": "Zeedhi Common",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"lodash.times": "^4.3.2",
|
|
38
38
|
"mockdate": "^3.0.2"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "7788a732156c6f3dc76b2b5f536df5cdb83b1488"
|
|
41
41
|
}
|