@balkangraph/orgchart.js 8.14.52 → 8.14.54

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
@@ -899,6 +899,11 @@ declare class OrgChart extends OrgChartBase {
899
899
  * The init event listener will be called as soon as the OrgChart become visible.
900
900
  */
901
901
  static LAZY_LOADING: boolean;
902
+
903
+ /**
904
+ * Minimum in search input before triggering the search.
905
+ */
906
+ static MINIMUM_SYMBOLS_IN_SEARCH_INPUT: number;
902
907
 
903
908
  /**
904
909
  * Hides the Edit Form when the chart is moved with pan
@@ -1201,7 +1206,7 @@ declare namespace OrgChart {
1201
1206
  /**
1202
1207
  * Search in field with abbreviation.
1203
1208
  */
1204
- searchFieldsAbbreviation: {[key: string]: string};
1209
+ searchFieldsAbbreviation: {[key: string]: string};
1205
1210
  }
1206
1211
 
1207
1212
 
@@ -2334,33 +2339,6 @@ declare namespace OrgChart {
2334
2339
  * ```
2335
2340
  */
2336
2341
  exportUrl?: string,
2337
- /**
2338
- * Collapse specified level of the chart and its children if allChildren is true.
2339
- * ```typescript
2340
- * var chart = new OrgChart('#tree', {
2341
- * collapse: {level: 2, allChildren: true}
2342
- * });
2343
- * ```
2344
- */
2345
- collapse?: {
2346
- level: number,
2347
- allChildren?: boolean
2348
- },
2349
- /**
2350
- * Expand specified node ids and its children if allChildren is true. The expand option works only if collapse is set.
2351
- *
2352
- * In the example above the second level of the chart will be collapsed but node with id 155 and its children will be expanded.
2353
- * ```typescript
2354
- * var chart = new OrgChart('#tree', {
2355
- * collapse: {level: 2, allChildren: true},
2356
- * expand: {nodes: [155], allChildren: true}
2357
- * });
2358
- * ```
2359
- */
2360
- expand?: {
2361
- nodes?: Array<string | number>,
2362
- allChildren?: boolean
2363
- },
2364
2342
  /**
2365
2343
  * The align option specifies the alignment of the nodes inside Org Chart JS.
2366
2344
  * - OrgChart.align.center - centered
@@ -2728,14 +2706,42 @@ declare namespace OrgChart {
2728
2706
 
2729
2707
  interface options {
2730
2708
  /**
2731
- * With the drag and drop features enabled you can move nodes easily and change the tree structure. Default value - *false*.
2732
- * ```typescript
2733
- * var chart = new OrgChart('#tree', {
2734
- * enableDragDrop: true
2735
- * });
2736
- * ```
2737
- */
2709
+ * With the drag and drop features enabled you can move nodes easily and change the tree structure. Default value - *false*.
2710
+ * ```typescript
2711
+ * var chart = new OrgChart('#tree', {
2712
+ * enableDragDrop: true
2713
+ * });
2714
+ * ```
2715
+ */
2738
2716
  enableDragDrop?: boolean,
2717
+ /**
2718
+ * Collapse specified level of the chart and its children if allChildren is true.
2719
+ * ```typescript
2720
+ * var chart = new OrgChart('#tree', {
2721
+ * collapse: {level: 2, allChildren: true}
2722
+ * });
2723
+ * ```
2724
+ */
2725
+ collapse?: {
2726
+ level: number,
2727
+ allChildren?: boolean
2728
+ },
2729
+ /**
2730
+ * Expand specified node ids and its children if allChildren is true. The expand option works only if collapse is set.
2731
+ *
2732
+ * In the example above the second level of the chart will be collapsed but node with id 155 and its children will be expanded.
2733
+ * ```typescript
2734
+ * var chart = new OrgChart('#tree', {
2735
+ * collapse: {level: 2, allChildren: true},
2736
+ * expand: {nodes: [155], allChildren: true}
2737
+ * });
2738
+ * ```
2739
+ */
2740
+ expand?: {
2741
+ nodes?: Array<string | number>,
2742
+ allChildren?: boolean
2743
+ },
2739
2744
  }
2745
+
2740
2746
  }
2741
2747
  export default OrgChart