@balkangraph/orgchart.js 8.2.26 → 8.2.30

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
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
3
  declare class OrgChart extends OrgChartBase {
4
- nodes: { [key: string | number]: OrgChart.node };
4
+ nodes: { [key in string | number]: OrgChart.node };
5
5
  isVisible: boolean;
6
6
 
7
7
  /**
@@ -407,7 +407,7 @@ declare class OrgChart extends OrgChartBase {
407
407
  * Occurs in the beginning of the export. Extra css styles can be added to the exported document using this event listener or show loading image.
408
408
  * ```typescript
409
409
  * var chart = new OrgChart('#tree', {});
410
- * chart.onExporStart(() => {
410
+ * chart.onExportStart(() => {
411
411
  * args.styles += '<link href="https://fonts.googleapis.com/css?family=Gochi+Hand" rel="stylesheet">';
412
412
  * //return false; to cancel the operation
413
413
  * });
@@ -415,7 +415,7 @@ declare class OrgChart extends OrgChartBase {
415
415
  * @category Event Listeners
416
416
  * @param listener
417
417
  */
418
- onExporStart(listener: (args:
418
+ onExportStart(listener: (args:
419
419
  {
420
420
  /**
421
421
  * the content to be exported
@@ -464,14 +464,14 @@ declare class OrgChart extends OrgChartBase {
464
464
  * Occurs in the beginning of the export. Use this event listener to hide loading image or upload exported document to your server using ArrayBuffer argument.
465
465
  * ```typescript
466
466
  * var chart = new OrgChart('#tree', {});
467
- * chart.onExporEnd(() => {
467
+ * chart.onExportEnd(() => {
468
468
  * //return false; to cancel the operation for example id you prefer the exported document to not download
469
469
  * });
470
470
  * ```
471
471
  * @category Event Listeners
472
472
  * @param listener
473
473
  */
474
- onExporEnd(listener: (args:
474
+ onExportEnd(listener: (args:
475
475
  /**
476
476
  * for PDF/PNG
477
477
  */
@@ -1934,6 +1934,8 @@ declare namespace OrgChart {
1934
1934
  addMore?: string,
1935
1935
  addMoreBtn?: string,
1936
1936
  addMoreFieldName?: string,
1937
+ saveAndCloseBtn?: string,
1938
+ cancelBtn?: string,
1937
1939
  generateElementsFromFields?: boolean,
1938
1940
  buttons?: {
1939
1941
  [key: string]: {
@@ -2017,8 +2019,8 @@ declare class OrgChartBase {
2017
2019
  * parent ids and sub tree parents ids that needs to be updated on the server. For example if you remove a node that has children all chilren nodes will change their pid to the parent node id of the removed node.
2018
2020
  */
2019
2021
  newPidsAndStpidsForIds: {
2020
- newPidsForIds: { [key: string | number]: string | number },
2021
- newStpidsForIds: { [key: string | number]: string | number }
2022
+ newPidsForIds: { [key in string | number]: string | number },
2023
+ newStpidsForIds: { [key in string | number]: string | number }
2022
2024
  }
2023
2025
  }) => void): OrgChart;
2024
2026