@balkangraph/orgchart.js 8.2.79 → 8.3.0
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 +33 -2
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -650,6 +650,11 @@ declare class OrgChart extends OrgChartBase {
|
|
|
650
650
|
|
|
651
651
|
|
|
652
652
|
static events: {
|
|
653
|
+
/**
|
|
654
|
+
* node-created and layout event listeners are obsolete use node-initialized or node-layout instead
|
|
655
|
+
* @param type
|
|
656
|
+
* @param listener
|
|
657
|
+
*/
|
|
653
658
|
on(type: "node-created" | "layout", listener: (args: any, args1: any, args2: any) => void): void
|
|
654
659
|
};
|
|
655
660
|
static state: { clear(stateName: string): void };
|
|
@@ -1001,6 +1006,14 @@ declare namespace OrgChart {
|
|
|
1001
1006
|
createItem(img: string, id: string | number, first: string, second: string): string;
|
|
1002
1007
|
}
|
|
1003
1008
|
|
|
1009
|
+
|
|
1010
|
+
interface filterUI {
|
|
1011
|
+
init(instance: OrgChart): void;
|
|
1012
|
+
update(): void;
|
|
1013
|
+
shouldFilter(data: object): boolean;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
|
|
1004
1017
|
interface menuUI {
|
|
1005
1018
|
init(obj: OrgChart, menu: { [key: string]: menu }): void;
|
|
1006
1019
|
/**
|
|
@@ -1798,7 +1811,21 @@ declare namespace OrgChart {
|
|
|
1798
1811
|
* });
|
|
1799
1812
|
* ```
|
|
1800
1813
|
*/
|
|
1801
|
-
orderBy?: string
|
|
1814
|
+
orderBy?: string | Array<OrgChart.orderBy>,
|
|
1815
|
+
/**
|
|
1816
|
+
* Filter the OrgChart by the specified fields.
|
|
1817
|
+
* ```typescript
|
|
1818
|
+
* var chart = new OrgChart('#tree', {
|
|
1819
|
+
* filterBy: 'all'
|
|
1820
|
+
* });
|
|
1821
|
+
* ```
|
|
1822
|
+
* ```typescript
|
|
1823
|
+
* var chart = new OrgChart('#tree', {
|
|
1824
|
+
* filterBy: ['country', 'title']
|
|
1825
|
+
* });
|
|
1826
|
+
* ```
|
|
1827
|
+
*/
|
|
1828
|
+
filterBy?: string | Array<string> | boolean,
|
|
1802
1829
|
/**
|
|
1803
1830
|
* @ignore
|
|
1804
1831
|
*/
|
|
@@ -1807,6 +1834,10 @@ declare namespace OrgChart {
|
|
|
1807
1834
|
* @ignore
|
|
1808
1835
|
*/
|
|
1809
1836
|
searchUI?: OrgChart.searchUI,
|
|
1837
|
+
/**
|
|
1838
|
+
* @ignore
|
|
1839
|
+
*/
|
|
1840
|
+
filterUI?: OrgChart.filterUI,
|
|
1810
1841
|
/**
|
|
1811
1842
|
* @ignore
|
|
1812
1843
|
*/
|
|
@@ -2044,7 +2075,7 @@ declare class OrgChartBase {
|
|
|
2044
2075
|
* @param type A case-sensitive string representing the event type to listen for.
|
|
2045
2076
|
* @param listener The object that receives a notification when an event of the specified type occurs. This must be a JavaScript function.
|
|
2046
2077
|
*/
|
|
2047
|
-
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" | "searchclick" | "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;
|
|
2078
|
+
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" | "searchclick" | "import" | "adding" | "added" | "updated" | "key-down" | "visibility-change" | "renderdefs" | "render" | "prerender" | "screen-reader-text" | "removed" | "ready" | "ripple" | "node-initialized" | "node-layout", listener: (sender: OrgChart, args?: any, args1?: any, args2?: any) => void | boolean): OrgChart;
|
|
2048
2079
|
|
|
2049
2080
|
/**
|
|
2050
2081
|
* Occurs when the node data has been updated by updateNode method.
|