@balkangraph/orgchart.js 8.2.31 → 8.2.34
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 +52 -49
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
declare class OrgChart extends OrgChartBase {
|
|
4
|
-
nodes: { [key in
|
|
4
|
+
nodes: { [key in any]: OrgChart.node };
|
|
5
5
|
isVisible: boolean;
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -146,8 +146,8 @@ declare class OrgChart extends OrgChartBase {
|
|
|
146
146
|
* @param callback called when the animation completes
|
|
147
147
|
*/
|
|
148
148
|
center(nodeId: string | number, options?: {
|
|
149
|
-
parentState:
|
|
150
|
-
childrenState:
|
|
149
|
+
parentState: any,
|
|
150
|
+
childrenState: any,
|
|
151
151
|
rippleId: string | number,
|
|
152
152
|
vertical: boolean,
|
|
153
153
|
horizontal: boolean
|
|
@@ -341,7 +341,7 @@ declare class OrgChart extends OrgChartBase {
|
|
|
341
341
|
/**
|
|
342
342
|
* value of the filed, can be changed in the event
|
|
343
343
|
*/
|
|
344
|
-
value:
|
|
344
|
+
value: any,
|
|
345
345
|
/**
|
|
346
346
|
* svg or html element of the filed, can be changed in the event
|
|
347
347
|
*/
|
|
@@ -586,7 +586,7 @@ declare class OrgChart extends OrgChartBase {
|
|
|
586
586
|
* is null, empty or undefined
|
|
587
587
|
* @param val
|
|
588
588
|
*/
|
|
589
|
-
static isNEU(val:
|
|
589
|
+
static isNEU(val: any): boolean;
|
|
590
590
|
static gradientCircleForDefs(id: string | number, colors: Array<string> | string, r: number, strokeWidth: number): string;
|
|
591
591
|
|
|
592
592
|
|
|
@@ -629,7 +629,7 @@ declare class OrgChart extends OrgChartBase {
|
|
|
629
629
|
|
|
630
630
|
|
|
631
631
|
|
|
632
|
-
static templates :{ [key: string]:
|
|
632
|
+
static templates :{ [key: string]: object} ;
|
|
633
633
|
|
|
634
634
|
|
|
635
635
|
static scroll: {
|
|
@@ -644,7 +644,7 @@ declare class OrgChart extends OrgChartBase {
|
|
|
644
644
|
};
|
|
645
645
|
|
|
646
646
|
static events: {
|
|
647
|
-
on(type: "node-created" | "layout", listener: (args:
|
|
647
|
+
on(type: "node-created" | "layout", listener: (args: any, args1: any, args2: any) => void): void
|
|
648
648
|
};
|
|
649
649
|
static state: { clear(stateName: string): void };
|
|
650
650
|
|
|
@@ -752,6 +752,8 @@ declare class OrgChart extends OrgChartBase {
|
|
|
752
752
|
* Hides the Edit Form when the chart is moved with pan
|
|
753
753
|
*/
|
|
754
754
|
static HIDE_EDIT_FORM_ON_PAN: boolean;
|
|
755
|
+
|
|
756
|
+
|
|
755
757
|
}
|
|
756
758
|
|
|
757
759
|
declare namespace OrgChart {
|
|
@@ -772,40 +774,41 @@ declare namespace OrgChart {
|
|
|
772
774
|
const COLLAPSE_SUB_CHILDRENS: number;
|
|
773
775
|
|
|
774
776
|
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
777
|
+
var template: object;
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
// interface template
|
|
782
|
+
// {
|
|
783
|
+
// defs?: string,
|
|
784
|
+
// size?: Array<number>,
|
|
785
|
+
// expandCollapseSize?: number,
|
|
786
|
+
// linkAdjuster?: {
|
|
787
|
+
// fromX?: number,
|
|
788
|
+
// fromY?: number,
|
|
789
|
+
// toX?: number,
|
|
790
|
+
// toY?: number
|
|
791
|
+
// },
|
|
792
|
+
// ripple?: {
|
|
793
|
+
// radius?: number,
|
|
794
|
+
// color?: string,
|
|
795
|
+
// rect?: Array<number>
|
|
796
|
+
// },
|
|
797
|
+
// assistanseLink?: string,
|
|
798
|
+
// svg?: string,
|
|
799
|
+
// link?: string,
|
|
800
|
+
// pointer?: string,
|
|
801
|
+
// node?: string,
|
|
802
|
+
// plus?: string,
|
|
803
|
+
// minus?: string,
|
|
804
|
+
// nodeMenuButton?: string,
|
|
805
|
+
// menuButton?: string,
|
|
806
|
+
// img_0?: string,
|
|
807
|
+
// link_field_0?: string,
|
|
808
|
+
// editFormHeaderColor?: string,
|
|
809
|
+
// nodeCircleMenuButton?: string,
|
|
810
|
+
// min?: template
|
|
811
|
+
// }
|
|
809
812
|
|
|
810
813
|
interface editUI {
|
|
811
814
|
/**
|
|
@@ -819,7 +822,7 @@ declare namespace OrgChart {
|
|
|
819
822
|
* @param type A case-sensitive string representing the event type to listen for.
|
|
820
823
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
821
824
|
*/
|
|
822
|
-
on(type: "show" | "save" | "cancel" | "element-btn-click" | "button-click" | "hide", listener: (sender: editUI, args:
|
|
825
|
+
on(type: "show" | "save" | "cancel" | "element-btn-click" | "button-click" | "hide", listener: (sender: editUI, args: any, args1: any, args2: any) => void | boolean): editUI;
|
|
823
826
|
/**
|
|
824
827
|
* Shows the edit form for the specified node id
|
|
825
828
|
* @param id node id
|
|
@@ -847,7 +850,7 @@ declare namespace OrgChart {
|
|
|
847
850
|
* @param type A case-sensitive string representing the event type to listen for.
|
|
848
851
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
849
852
|
*/
|
|
850
|
-
on(type: "searchclick", listener: (sender: OrgChart, args:
|
|
853
|
+
on(type: "searchclick", listener: (sender: OrgChart, args: any, args1: any, args2: any) => void | boolean): searchUI;
|
|
851
854
|
/**
|
|
852
855
|
* Hides the search grid
|
|
853
856
|
*/
|
|
@@ -868,7 +871,7 @@ declare namespace OrgChart {
|
|
|
868
871
|
* @param type A case-sensitive string representing the event type to listen for.
|
|
869
872
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
870
873
|
*/
|
|
871
|
-
on(type: "show", listener: (sender: menuUI, args:
|
|
874
|
+
on(type: "show", listener: (sender: menuUI, args: any, args1: any, args2: any) => void | boolean): menuUI;
|
|
872
875
|
/**
|
|
873
876
|
* Shows menu next to html element
|
|
874
877
|
* @param stickToElement
|
|
@@ -915,7 +918,7 @@ declare namespace OrgChart {
|
|
|
915
918
|
* @param type A case-sensitive string representing the event type to listen for.
|
|
916
919
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
917
920
|
*/
|
|
918
|
-
on(type: "show" | "drag" | "drop" | "mouseenter" | "mouseout", listener: (sender: circleMenuUI, args:
|
|
921
|
+
on(type: "show" | "drag" | "drop" | "mouseenter" | "mouseout", listener: (sender: circleMenuUI, args: any, args1: any, args2: any) => void | boolean): circleMenuUI;
|
|
919
922
|
}
|
|
920
923
|
|
|
921
924
|
interface toolbarUI {
|
|
@@ -975,7 +978,7 @@ declare namespace OrgChart {
|
|
|
975
978
|
type?: string,
|
|
976
979
|
label?: string,
|
|
977
980
|
binding?: string,
|
|
978
|
-
options?: Array<
|
|
981
|
+
options?: Array<any>,
|
|
979
982
|
btn?: string,
|
|
980
983
|
vlidators?: { required?: string, email?: string }
|
|
981
984
|
}
|
|
@@ -1974,7 +1977,7 @@ declare class OrgChartBase {
|
|
|
1974
1977
|
* @param type A case-sensitive string representing the event type to listen for.
|
|
1975
1978
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
1976
1979
|
*/
|
|
1977
|
-
on(type: "init" | "field" | "update" | "add" | "remove" | "renderbuttons" | "label" | "render-link" | "drag" | "drop" | "redraw" | "expcollclick" | "exportstart" | "exportend" | "click" | "dbclick" | "slink-click" | "clink-click" | "up-click" | "import" | "adding" | "added" | "updated" | "key-down" | "visibility-change" | "renderdefs" | "render" | "prerender" | "screen-reader-text" | "removed" | "ready" | "ripple", listener: (sender: OrgChart, args?:
|
|
1980
|
+
on(type: "init" | "field" | "update" | "add" | "remove" | "renderbuttons" | "label" | "render-link" | "drag" | "drop" | "redraw" | "expcollclick" | "exportstart" | "exportend" | "click" | "dbclick" | "slink-click" | "clink-click" | "up-click" | "import" | "adding" | "added" | "updated" | "key-down" | "visibility-change" | "renderdefs" | "render" | "prerender" | "screen-reader-text" | "removed" | "ready" | "ripple", listener: (sender: OrgChart, args?: any, args1?: any, args2?: any) => void | boolean): OrgChart;
|
|
1978
1981
|
|
|
1979
1982
|
/**
|
|
1980
1983
|
* Occurs when the node data has been updated by updateNode method.
|
|
@@ -2019,8 +2022,8 @@ declare class OrgChartBase {
|
|
|
2019
2022
|
* 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.
|
|
2020
2023
|
*/
|
|
2021
2024
|
newPidsAndStpidsForIds: {
|
|
2022
|
-
newPidsForIds: { [key in
|
|
2023
|
-
newStpidsForIds: { [key in
|
|
2025
|
+
newPidsForIds: { [key in any]: string | number },
|
|
2026
|
+
newStpidsForIds: { [key in any]: string | number }
|
|
2024
2027
|
}
|
|
2025
2028
|
}) => void): OrgChart;
|
|
2026
2029
|
|