@balkangraph/orgchart.js 8.2.67 → 8.2.70

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
@@ -577,7 +577,7 @@ declare class OrgChart extends OrgChartBase {
577
577
  toolbarUI: OrgChart.toolbarUI;
578
578
  config: OrgChart.options
579
579
 
580
- static fileUploadDialog(callback: () => void): void;
580
+ static fileUploadDialog(callback: (file: any) => void): void;
581
581
  static isMobile(): boolean;
582
582
  /**
583
583
  * Checks if the used libraris is licnsed or not
@@ -617,28 +617,6 @@ declare class OrgChart extends OrgChartBase {
617
617
  }
618
618
 
619
619
 
620
- static icon: {
621
- png: (w: string| number, h: string | number, c: string) => string,
622
- pdf: (w: string | number| number, h: string | number, c: string) => string,
623
- svg: (w: string| number, h: string| number, c: string | number) => string,
624
- csv: (w: string| number, h: string| number, c: string| number) => string,
625
- excel: (w: string| number, h: string| number, c: string| number) => string,
626
- edit: (w: string| number, h: string| number, c: string| number) => string,
627
- details: (w: string| number, h: string| number, c: string| number) => string,
628
- remove: (w: string| number, h: string| number, c: string| number) => string,
629
- add: (w: string| number, h: string| number, c: string| number) => string,
630
- xml: (w: string| number, h: string| number, c: string| number) => string,
631
- link: (w: string| number, h: string| number, c: string| number) => string,
632
- happy: (w: string| number, h: string| number, c: string| number) => string,
633
- sad: (w: string| number, h: string| number, c: string| number) => string,
634
- share: (w: string| number, h: string| number, c: string| number, x?: string| number, y?: string| number) => string,
635
- user: (w: string| number, h: string| number, c: string| number, x?: string| number, y?: string| number) => string
636
- }
637
-
638
-
639
-
640
-
641
-
642
620
  static templates :{ [key: string]: OrgChart.template} ;
643
621
 
644
622
 
@@ -775,6 +753,9 @@ declare class OrgChart extends OrgChartBase {
775
753
  static attr: any;
776
754
  static toolbarUI: any;
777
755
  static elements: any;
756
+
757
+ static expcollOpenTag: any;
758
+ static grCloseTag: any;
778
759
  }
779
760
 
780
761
  declare namespace OrgChart {
@@ -851,7 +832,7 @@ declare namespace OrgChart {
851
832
  * @param detailsMode If true the edit form is in read only mode
852
833
  * @param dontAnim
853
834
  */
854
- show(id: string | number, detailsMode: boolean, dontAnim: boolean): void;
835
+ show(id: string | number, detailsMode: boolean, dontAnim?: boolean): void;
855
836
  /**
856
837
  * Hides the edit form
857
838
  */
@@ -1982,10 +1963,44 @@ declare namespace OrgChart {
1982
1963
  elements?: Array<OrgChart.editFormElement | Array<OrgChart.editFormElement>>
1983
1964
  }
1984
1965
  }
1966
+
1967
+ var ui: {
1968
+ defs(fromrender: string): string;
1969
+ lonely(config: Object): string;
1970
+ pointer(config: Object, action: OrgChart.action, scale: number): string;
1971
+ node(node: OrgChart.node, data: Object, animations: OrgChart.anim, config: Object, x: number | undefined, y: number | undefined, nodeBinding: Object | undefined, action: OrgChart.action, scale: number, sender: Object): string;
1972
+ nodeBtns(config: Object, node: OrgChart.node, action: OrgChart.action, t: Object, sender: Object): string;
1973
+ expandCollapseBtn(chart: OrgChart, node: OrgChart.node, layoutConfigs: any, action: OrgChart.action, scale: number): string;
1974
+ link(node: OrgChart.node, obj: Object, scale: number, bordersByRootIdAndLevel: Object, nodes: Object, action: OrgChart.action): Array<string>;
1975
+ svg(width: number, height: number, viewBox: Array<number>, config: Object, content: string, scale: number): string;
1976
+ menuButton(config: Object): string;
1977
+
1978
+ };
1979
+
1980
+ var t: any;
1985
1981
  }
1986
1982
 
1987
1983
  declare class OrgChartBase {
1988
1984
 
1985
+ static icon: {
1986
+ png: (w: string| number, h: string | number, c: string) => string,
1987
+ pdf: (w: string | number| number, h: string | number, c: string) => string,
1988
+ svg: (w: string| number, h: string| number, c: string | number) => string,
1989
+ csv: (w: string| number, h: string| number, c: string| number) => string,
1990
+ excel: (w: string| number, h: string| number, c: string| number) => string,
1991
+ edit: (w: string| number, h: string| number, c: string| number) => string,
1992
+ details: (w: string| number, h: string| number, c: string| number) => string,
1993
+ remove: (w: string| number, h: string| number, c: string| number) => string,
1994
+ add: (w: string| number, h: string| number, c: string| number) => string,
1995
+ xml: (w: string| number, h: string| number, c: string| number) => string,
1996
+ link: (w: string| number, h: string| number, c: string| number) => string,
1997
+ happy: (w: string| number, h: string| number, c: string| number) => string,
1998
+ sad: (w: string| number, h: string| number, c: string| number) => string,
1999
+ share: (w: string| number, h: string| number, c: string| number, x?: string| number, y?: string| number) => string,
2000
+ user: (w: string| number, h: string| number, c: string| number, x?: string| number, y?: string| number) => string
2001
+ }
2002
+
2003
+
1989
2004
  /**
1990
2005
  * Can update link
1991
2006
  * @param id child id