@balkangraph/orgchart.js 8.2.10 → 8.2.14
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 +31 -23
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare class OrgChart extends OrgChartBase {
|
|
1
|
+
export declare class OrgChart extends OrgChartBase {
|
|
2
2
|
nodes: { [key: string | number]: OrgChart.node };
|
|
3
3
|
isVisible: boolean;
|
|
4
4
|
|
|
@@ -174,7 +174,13 @@ declare class OrgChart extends OrgChartBase {
|
|
|
174
174
|
* @param retrieveFields retrive data for fields
|
|
175
175
|
* {@link https://balkan.app/OrgChartJS/Docs/Search | See doc...}
|
|
176
176
|
*/
|
|
177
|
-
search(value: string, searchInFileds?: Array<string>, retrieveFields?: Array<string>):
|
|
177
|
+
search(value: string, searchInFileds?: Array<string>, retrieveFields?: Array<string>): Array<{
|
|
178
|
+
id: number | string,
|
|
179
|
+
name: string,
|
|
180
|
+
__score: number,
|
|
181
|
+
__searchField: string,
|
|
182
|
+
__searchMarks: string
|
|
183
|
+
}>;
|
|
178
184
|
/**
|
|
179
185
|
* Gets collpased node ids of the specifeid node
|
|
180
186
|
* @param node
|
|
@@ -547,7 +553,8 @@ declare class OrgChart extends OrgChartBase {
|
|
|
547
553
|
nodeCircleMenuUI: OrgChart.circleMenuUI;
|
|
548
554
|
nodeContextMenuUI: OrgChart.menuUI;
|
|
549
555
|
menuUI: OrgChart.menuUI;
|
|
550
|
-
toolbarUI: OrgChart.toolbarUI;
|
|
556
|
+
toolbarUI: OrgChart.toolbarUI;
|
|
557
|
+
config: OrgChart.options
|
|
551
558
|
|
|
552
559
|
static fileUploadDialog(callback: () => void): void;
|
|
553
560
|
static isMobile(): boolean;
|
|
@@ -596,21 +603,21 @@ declare class OrgChart extends OrgChartBase {
|
|
|
596
603
|
|
|
597
604
|
|
|
598
605
|
static icon: {
|
|
599
|
-
png: (w: string, h: string, c: string) => string,
|
|
600
|
-
pdf: (w: string, h: string, c: string) => string,
|
|
601
|
-
svg: (w: string, h: string, c: string) => string,
|
|
602
|
-
csv: (w: string, h: string, c: string) => string,
|
|
603
|
-
excel: (w: string, h: string, c: string) => string,
|
|
604
|
-
edit: (w: string, h: string, c: string) => string,
|
|
605
|
-
details: (w: string, h: string, c: string) => string,
|
|
606
|
-
remove: (w: string, h: string, c: string) => string,
|
|
607
|
-
add: (w: string, h: string, c: string) => string,
|
|
608
|
-
xml: (w: string, h: string, c: string) => string,
|
|
609
|
-
link: (w: string, h: string, c: string) => string,
|
|
610
|
-
happy: (w: string, h: string, c: string) => string,
|
|
611
|
-
sad: (w: string, h: string, c: string) => string,
|
|
612
|
-
share: (w: string, h: string, c: string, x
|
|
613
|
-
user: (w: string, h: string, c: string, x
|
|
606
|
+
png: (w: string| number, h: string | number, c: string) => string,
|
|
607
|
+
pdf: (w: string | number| number, h: string | number, c: string) => string,
|
|
608
|
+
svg: (w: string| number, h: string| number, c: string | number) => string,
|
|
609
|
+
csv: (w: string| number, h: string| number, c: string| number) => string,
|
|
610
|
+
excel: (w: string| number, h: string| number, c: string| number) => string,
|
|
611
|
+
edit: (w: string| number, h: string| number, c: string| number) => string,
|
|
612
|
+
details: (w: string| number, h: string| number, c: string| number) => string,
|
|
613
|
+
remove: (w: string| number, h: string| number, c: string| number) => string,
|
|
614
|
+
add: (w: string| number, h: string| number, c: string| number) => string,
|
|
615
|
+
xml: (w: string| number, h: string| number, c: string| number) => string,
|
|
616
|
+
link: (w: string| number, h: string| number, c: string| number) => string,
|
|
617
|
+
happy: (w: string| number, h: string| number, c: string| number) => string,
|
|
618
|
+
sad: (w: string| number, h: string| number, c: string| number) => string,
|
|
619
|
+
share: (w: string| number, h: string| number, c: string| number, x?: string| number, y?: string| number) => string,
|
|
620
|
+
user: (w: string| number, h: string| number, c: string| number, x?: string| number, y?: string| number) => string
|
|
614
621
|
}
|
|
615
622
|
|
|
616
623
|
|
|
@@ -736,9 +743,11 @@ declare class OrgChart extends OrgChartBase {
|
|
|
736
743
|
*/
|
|
737
744
|
static LAZY_LOADING_FACTOR: number;
|
|
738
745
|
|
|
746
|
+
|
|
747
|
+
|
|
739
748
|
}
|
|
740
749
|
|
|
741
|
-
declare namespace OrgChart {
|
|
750
|
+
export declare namespace OrgChart {
|
|
742
751
|
/**
|
|
743
752
|
* deprecated
|
|
744
753
|
* @ignore
|
|
@@ -1927,7 +1936,7 @@ declare namespace OrgChart {
|
|
|
1927
1936
|
}
|
|
1928
1937
|
/// <reference path="OrgChart.d.ts" />
|
|
1929
1938
|
|
|
1930
|
-
declare class OrgChartBase {
|
|
1939
|
+
export declare class OrgChartBase {
|
|
1931
1940
|
|
|
1932
1941
|
/**
|
|
1933
1942
|
* Removes specified node from nodes collection, redraws the chart and fires remove event.
|
|
@@ -1957,7 +1966,7 @@ declare class OrgChartBase {
|
|
|
1957
1966
|
* @param type A case-sensitive string representing the event type to listen for.
|
|
1958
1967
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
1959
1968
|
*/
|
|
1960
|
-
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
|
|
1969
|
+
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?: unknown, args1?: unknown, args2?: unknown) => void | boolean): OrgChart;
|
|
1961
1970
|
|
|
1962
1971
|
/**
|
|
1963
1972
|
* Occurs when the node data has been updated by updateNode method.
|
|
@@ -2064,7 +2073,7 @@ declare class OrgChartBase {
|
|
|
2064
2073
|
}) => void): OrgChart;
|
|
2065
2074
|
}
|
|
2066
2075
|
|
|
2067
|
-
declare namespace OrgChart {
|
|
2076
|
+
export declare namespace OrgChart {
|
|
2068
2077
|
/**
|
|
2069
2078
|
* deprecated, use OrgChart.align.center isntead
|
|
2070
2079
|
* @ignore
|
|
@@ -2116,4 +2125,3 @@ declare namespace OrgChart {
|
|
|
2116
2125
|
enableDragDrop?: boolean,
|
|
2117
2126
|
}
|
|
2118
2127
|
}
|
|
2119
|
-
export default OrgChart
|