@balkangraph/orgchart.js 8.8.13 → 8.9.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 +23 -4
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ declare class OrgChart extends OrgChartBase {
|
|
|
32
32
|
* Gets node data.
|
|
33
33
|
* @param id identification number of the node
|
|
34
34
|
*/
|
|
35
|
-
get(id: string | number):
|
|
35
|
+
get(id: string | number): OrgChart.node;
|
|
36
36
|
/**
|
|
37
37
|
* If specified node has assistant/s or partner/s as children will return false.
|
|
38
38
|
* @param id identification number of the node
|
|
@@ -729,9 +729,13 @@ declare class OrgChart extends OrgChartBase {
|
|
|
729
729
|
*/
|
|
730
730
|
static STRING_TAGS: boolean;
|
|
731
731
|
/**
|
|
732
|
-
|
|
733
|
-
|
|
732
|
+
* Search placeholder
|
|
733
|
+
*/
|
|
734
734
|
static SEARCH_PLACEHOLDER: string;
|
|
735
|
+
/**
|
|
736
|
+
* Search help symbol.
|
|
737
|
+
*/
|
|
738
|
+
static SEARCH_HELP_SYMBOL: string;
|
|
735
739
|
/**
|
|
736
740
|
* @ignore
|
|
737
741
|
*/
|
|
@@ -1021,7 +1025,7 @@ declare namespace OrgChart {
|
|
|
1021
1025
|
* @param detailsMode If true the edit form is in read only mode
|
|
1022
1026
|
* @param dontAnim
|
|
1023
1027
|
*/
|
|
1024
|
-
show(id: string | number, detailsMode
|
|
1028
|
+
show(id: string | number, detailsMode?: boolean, dontAnim?: boolean): void;
|
|
1025
1029
|
/**
|
|
1026
1030
|
* Hides the edit form
|
|
1027
1031
|
*/
|
|
@@ -1053,6 +1057,8 @@ declare namespace OrgChart {
|
|
|
1053
1057
|
*/
|
|
1054
1058
|
find(value: string): void;
|
|
1055
1059
|
createItem(img: string, id: string | number, first: string, second: string): string;
|
|
1060
|
+
helpView(): string;
|
|
1061
|
+
addMatchTag(id: string | number) : boolean;
|
|
1056
1062
|
}
|
|
1057
1063
|
|
|
1058
1064
|
|
|
@@ -1674,6 +1680,19 @@ declare namespace OrgChart {
|
|
|
1674
1680
|
* {@link https://balkan.app/OrgChartJS/Docs/Search | See doc...}
|
|
1675
1681
|
*/
|
|
1676
1682
|
searchFieldsWeight?: { [key: string]: number },
|
|
1683
|
+
/**
|
|
1684
|
+
* Search in field with abbreviation.
|
|
1685
|
+
* ```typescript
|
|
1686
|
+
* var chart = new OrgChart('#tree', {
|
|
1687
|
+
* searchFiledsAbbreviation: {
|
|
1688
|
+
* "n": "name",
|
|
1689
|
+
* "a": "My Address"
|
|
1690
|
+
* }
|
|
1691
|
+
* });
|
|
1692
|
+
* ```
|
|
1693
|
+
* {@link https://balkan.app/OrgChartJS/Docs/Search | See doc...}
|
|
1694
|
+
*/
|
|
1695
|
+
searchFiledsAbbreviation?: { [key: string]: string },
|
|
1677
1696
|
/**
|
|
1678
1697
|
* Array of node data JSON objects. nodes option is the data source of the chart. Node JSON objects could have unlimited number of properties, id, pid, ppid, stpid and tags are reserved node properties.
|
|
1679
1698
|
* - id - unique identifier, it clould be integer or string
|