@balkangraph/orgchart.js 8.2.10 → 8.2.11

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
@@ -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>): void;
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: string, y: string) => string,
613
- user: (w: string, h: string, c: string, x: string, y: string) => string
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,6 +743,8 @@ declare class OrgChart extends OrgChartBase {
736
743
  */
737
744
  static LAZY_LOADING_FACTOR: number;
738
745
 
746
+
747
+
739
748
  }
740
749
 
741
750
  declare namespace OrgChart {
@@ -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: unknown, args1: unknown, args2: unknown) => void | boolean): OrgChart;
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.