@balkangraph/orgchart.js 9.0.20 → 9.0.24

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/orgchart.d.ts CHANGED
@@ -1223,44 +1223,7 @@ declare class OrgChart {
1223
1223
  redoStepsCount(): number;
1224
1224
 
1225
1225
 
1226
- /**
1227
- * The onField() method of the OrgChart class sets up a function that will be called whenever the specified event is delivered to the target.
1228
- * ```typescript
1229
- * let chart = new OrgChart('#tree', {});
1230
- * chart.onField((args) => {
1231
- * //return false; to cancel
1232
- * });
1233
- * chart.load(nodes);
1234
- * ```
1235
- * @category Event Listeners
1236
- * @param listener
1237
- */
1238
- onField(listener: (this: OrgChart, args: {
1239
- /**
1240
- * the node
1241
- */
1242
- node: OrgChart.node,
1243
- /**
1244
- * node data json object
1245
- */
1246
- data: object,
1247
- /**
1248
- * value of the filed, can be changed in the event
1249
- */
1250
- value: any,
1251
- /**
1252
- * svg or html element of the filed, can be changed in the event
1253
- */
1254
- element: string,
1255
- /**
1256
- * name of the field
1257
- */
1258
- name: string
1259
- /**
1260
- * field template name
1261
- */
1262
- field: string
1263
- }) => void | boolean): OrgChart;
1226
+
1264
1227
 
1265
1228
  /**
1266
1229
  * Occurs when the nodes in OrgChart has been created and loaded to the DOM.
@@ -1703,65 +1666,6 @@ declare class OrgChart {
1703
1666
  * ```
1704
1667
  */
1705
1668
  static isTrial(): boolean;
1706
- /**
1707
- * Count all children nodes of the specified id.
1708
- * ```typescript
1709
- * let chart = new OrgChart('#tree', {});
1710
- * chart.onInit(() => {
1711
- * console.log(OrgChart.childrenCount(chart, chart.getNode(2)))
1712
- * });
1713
- * chart.load(nodes)
1714
- * ```
1715
- * @param chart OrgChart instance
1716
- * @param node
1717
- * @param count
1718
- */
1719
- static childrenCount(chart: OrgChart, node: OrgChart.node): number;
1720
-
1721
- /**
1722
- * Count the total (to the leafs) children nodes of the specified id.
1723
- * ```typescript
1724
- * let chart = new OrgChart('#tree', {});
1725
- * chart.onInit(() => {
1726
- * console.log(OrgChart.childrenTotalCount(chart, chart.getNode(2)))
1727
- * });
1728
- * chart.load(nodes)
1729
- * ```
1730
- * @param chart OrgChart instance
1731
- * @param node
1732
- * @param count
1733
- */
1734
- static childrenTotalCount(chart: OrgChart, node: OrgChart.node): number;
1735
-
1736
- /**
1737
- * Count the collapsed children nodes of the specified id.
1738
- * ```typescript
1739
- * let chart = new OrgChart('#tree', {});
1740
- * chart.onInit(() => {
1741
- * console.log(OrgChart.collapsedChildrenCount(chart, chart.getNode(2)))
1742
- * });
1743
- * chart.load(nodes)
1744
- * ```
1745
- * @param chart OrgChart instance
1746
- * @param node
1747
- * @param count
1748
- */
1749
- static collapsedChildrenCount(chart: OrgChart, node: OrgChart.node): number;
1750
-
1751
- /**
1752
- * Count the total (to the leafs) collapsed children nodes of the specified id.
1753
- * ```typescript
1754
- * let chart = new OrgChart('#tree', {});
1755
- * chart.onInit(() => {
1756
- * console.log(OrgChart.collapsedChildrenCount(chart, chart.getNode(2)))
1757
- * });
1758
- * chart.load(nodes)
1759
- * ```
1760
- * @param chart OrgChart instance
1761
- * @param node
1762
- * @param count
1763
- */
1764
- static collapsedChildrenTotalCount(chart: OrgChart, node: OrgChart.node): number;
1765
1669
 
1766
1670
  /**
1767
1671
  * Get the root node of the specified id.
@@ -2548,6 +2452,24 @@ declare namespace OrgChart {
2548
2452
  * template name, you can specify multiple templates with tags in one chart
2549
2453
  */
2550
2454
  templateName?: string,
2455
+
2456
+ /**
2457
+ * Number of direct child nodes.
2458
+ */
2459
+ childCount?: number,
2460
+ /**
2461
+ * Number of direct child nodes that are currently collapsed (hidden).
2462
+ */
2463
+ collapsedChildCount?: number,
2464
+ /**
2465
+ * Total number of collapsed descendant nodes (collapsed at any depth).
2466
+ */
2467
+ deepCollapsedChildCount?: number,
2468
+ /**
2469
+ * Total number of descendant nodes (children at all levels).
2470
+ */
2471
+ deepChildCount?: number,
2472
+
2551
2473
  /**
2552
2474
  * a reference to the left node neighbor, the default value is undefined
2553
2475
  */
@@ -4999,15 +4921,7 @@ declare namespace OrgChart {
4999
4921
  * ```
5000
4922
  */
5001
4923
  toolbar?: OrgChart.toolbar,
5002
- /**
5003
- * Stops the chart locking to the top of the screen once you move it.
5004
- * ```typescript
5005
- * var chart = new OrgChart('#tree', {
5006
- * sticky: false
5007
- * });
5008
- * ```
5009
- */
5010
- sticky?: boolean,
4924
+
5011
4925
  /**
5012
4926
  * nodeMouseClick can accept the following values:
5013
4927
  * - OrgChart.action.edit - will open the edit view for the clicked node on the right hand side
package/orgchart.js CHANGED
@@ -1 +1 @@
1
- /* eslint-disable */
1
+ /* eslint-disable */
package/package.json CHANGED
@@ -1 +1 @@
1
- {"author":{"name":"BALKAN App"},"bugs":{"email":"support@balkan.app","url":"https://github.com/BALKANGraph/OrgChartJS/issues"},"deprecated":false,"description":"Ultimate Organizational Chart JavaScript library, Interactive Diagrams","files":["orgchart.js","orgchart.d.ts","package.json","README.md"],"homepage":"https://balkan.app/","keywords":["diagram","chart","tree","orgchart","graph","svg","hierarchy","family-tree","decision-tree","visualization","tree-layout","hierarchical","javascript","js","html","html5"],"license":"SEE LICENSE IN https://balkan.app","main":"orgchart.js","types":"orgchart.d.ts","name":"@balkangraph/orgchart.js","repository":{"type":"git","url":"https://github.com/BALKANGraph/OrgChartJS"},"dependencies":{},"version":"9.00.20"}
1
+ {"author":{"name":"BALKAN App"},"bugs":{"email":"support@balkan.app","url":"https://github.com/BALKANGraph/OrgChartJS/issues"},"deprecated":false,"description":"Ultimate Organizational Chart JavaScript library, Interactive Diagrams","files":["orgchart.js","orgchart.d.ts","package.json","README.md"],"homepage":"https://balkan.app/","keywords":["diagram","chart","tree","orgchart","graph","svg","hierarchy","family-tree","decision-tree","visualization","tree-layout","hierarchical","javascript","js","html","html5"],"license":"SEE LICENSE IN https://balkan.app","main":"orgchart.js","types":"orgchart.d.ts","name":"@balkangraph/orgchart.js","repository":{"type":"git","url":"https://github.com/BALKANGraph/OrgChartJS"},"dependencies":{},"version":"9.00.24"}