ngx-axis-appforge 0.0.5 → 0.0.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/axis-components/design/index.d.ts +8 -1
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs +31 -11
- package/fesm2022/ngx-axis-appforge-axis-components-design.mjs.map +1 -1
- package/fesm2022/ngx-axis-appforge-core.mjs +11 -6
- package/fesm2022/ngx-axis-appforge-core.mjs.map +1 -1
- package/package.json +75 -75
|
@@ -1760,7 +1760,7 @@ class CommonMenu {
|
|
|
1760
1760
|
const { treeNode } = node;
|
|
1761
1761
|
treeNode.dropObj[treeNode.defaultDropIndex] = optionsNodes.current.options;
|
|
1762
1762
|
optionsNodes.parent.dropObj[optionsNodes.current.indexOfParentObj] = treeNode.options;
|
|
1763
|
-
this.baseMenu().onChange();
|
|
1763
|
+
this.baseMenu().onChange(undefined, res.options.id);
|
|
1764
1764
|
}
|
|
1765
1765
|
}
|
|
1766
1766
|
});
|
|
@@ -1770,7 +1770,7 @@ class CommonMenu {
|
|
|
1770
1770
|
if (res.options) {
|
|
1771
1771
|
const { optionsNodes } = this.baseMenu();
|
|
1772
1772
|
optionsNodes.current.dropObj[optionsNodes.current.defaultDropIndex] = res.options;
|
|
1773
|
-
this.baseMenu().onChange();
|
|
1773
|
+
this.baseMenu().onChange(undefined, res.options.id);
|
|
1774
1774
|
}
|
|
1775
1775
|
});
|
|
1776
1776
|
}
|
|
@@ -1779,13 +1779,18 @@ class CommonMenu {
|
|
|
1779
1779
|
this.baseMenu().onChange(null);
|
|
1780
1780
|
}
|
|
1781
1781
|
else {
|
|
1782
|
-
|
|
1783
|
-
|
|
1782
|
+
const { parentObj, indexOfParentObj } = this.baseMenu().optionsNodes.current;
|
|
1783
|
+
let nextNodeId = this.baseMenu().optionsNodes.parent?.id;
|
|
1784
|
+
if (Array.isArray(parentObj)) {
|
|
1785
|
+
parentObj.splice(indexOfParentObj, 1);
|
|
1786
|
+
if (parentObj.length) {
|
|
1787
|
+
nextNodeId = parentObj[Math.min(indexOfParentObj, parentObj.length - 1)].id;
|
|
1788
|
+
}
|
|
1784
1789
|
}
|
|
1785
1790
|
else {
|
|
1786
|
-
|
|
1791
|
+
parentObj[indexOfParentObj] = null;
|
|
1787
1792
|
}
|
|
1788
|
-
this.baseMenu().onChange();
|
|
1793
|
+
this.baseMenu().onChange(undefined, nextNodeId);
|
|
1789
1794
|
}
|
|
1790
1795
|
}
|
|
1791
1796
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: CommonMenu, deps: [], target: i0.ɵɵFactoryTarget.Component });
|