@balkangraph/orgchart.js 8.8.15 → 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 CHANGED
@@ -729,9 +729,13 @@ declare class OrgChart extends OrgChartBase {
729
729
  */
730
730
  static STRING_TAGS: boolean;
731
731
  /**
732
- * @ignore
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
  */
@@ -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