@balkangraph/orgchart.js 8.2.32 → 8.2.35
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 +16 -12
- 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
|
|
|
@@ -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,6 +774,7 @@ declare namespace OrgChart {
|
|
|
772
774
|
const COLLAPSE_SUB_CHILDRENS: number;
|
|
773
775
|
|
|
774
776
|
|
|
777
|
+
var template: object;
|
|
775
778
|
|
|
776
779
|
|
|
777
780
|
|
|
@@ -804,7 +807,8 @@ declare namespace OrgChart {
|
|
|
804
807
|
link_field_0?: string,
|
|
805
808
|
editFormHeaderColor?: string,
|
|
806
809
|
nodeCircleMenuButton?: string,
|
|
807
|
-
min?: template
|
|
810
|
+
min?: template,
|
|
811
|
+
[name: string]: any
|
|
808
812
|
}
|
|
809
813
|
|
|
810
814
|
interface editUI {
|
|
@@ -819,7 +823,7 @@ declare namespace OrgChart {
|
|
|
819
823
|
* @param type A case-sensitive string representing the event type to listen for.
|
|
820
824
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
821
825
|
*/
|
|
822
|
-
on(type: "show" | "save" | "cancel" | "element-btn-click" | "button-click" | "hide", listener: (sender: editUI, args:
|
|
826
|
+
on(type: "show" | "save" | "cancel" | "element-btn-click" | "button-click" | "hide", listener: (sender: editUI, args: any, args1: any, args2: any) => void | boolean): editUI;
|
|
823
827
|
/**
|
|
824
828
|
* Shows the edit form for the specified node id
|
|
825
829
|
* @param id node id
|
|
@@ -847,7 +851,7 @@ declare namespace OrgChart {
|
|
|
847
851
|
* @param type A case-sensitive string representing the event type to listen for.
|
|
848
852
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
849
853
|
*/
|
|
850
|
-
on(type: "searchclick", listener: (sender: OrgChart, args:
|
|
854
|
+
on(type: "searchclick", listener: (sender: OrgChart, args: any, args1: any, args2: any) => void | boolean): searchUI;
|
|
851
855
|
/**
|
|
852
856
|
* Hides the search grid
|
|
853
857
|
*/
|
|
@@ -868,7 +872,7 @@ declare namespace OrgChart {
|
|
|
868
872
|
* @param type A case-sensitive string representing the event type to listen for.
|
|
869
873
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
870
874
|
*/
|
|
871
|
-
on(type: "show", listener: (sender: menuUI, args:
|
|
875
|
+
on(type: "show", listener: (sender: menuUI, args: any, args1: any, args2: any) => void | boolean): menuUI;
|
|
872
876
|
/**
|
|
873
877
|
* Shows menu next to html element
|
|
874
878
|
* @param stickToElement
|
|
@@ -915,7 +919,7 @@ declare namespace OrgChart {
|
|
|
915
919
|
* @param type A case-sensitive string representing the event type to listen for.
|
|
916
920
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
917
921
|
*/
|
|
918
|
-
on(type: "show" | "drag" | "drop" | "mouseenter" | "mouseout", listener: (sender: circleMenuUI, args:
|
|
922
|
+
on(type: "show" | "drag" | "drop" | "mouseenter" | "mouseout", listener: (sender: circleMenuUI, args: any, args1: any, args2: any) => void | boolean): circleMenuUI;
|
|
919
923
|
}
|
|
920
924
|
|
|
921
925
|
interface toolbarUI {
|
|
@@ -975,7 +979,7 @@ declare namespace OrgChart {
|
|
|
975
979
|
type?: string,
|
|
976
980
|
label?: string,
|
|
977
981
|
binding?: string,
|
|
978
|
-
options?: Array<
|
|
982
|
+
options?: Array<any>,
|
|
979
983
|
btn?: string,
|
|
980
984
|
vlidators?: { required?: string, email?: string }
|
|
981
985
|
}
|