@balkangraph/orgchart.js 8.15.30 → 8.15.32
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 +69 -11
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -2651,6 +2651,18 @@ declare namespace OrgChart {
|
|
|
2651
2651
|
[name: string]: any
|
|
2652
2652
|
}
|
|
2653
2653
|
|
|
2654
|
+
|
|
2655
|
+
/**
|
|
2656
|
+
* Edit/Details Form User Interface
|
|
2657
|
+
* ```typescript
|
|
2658
|
+
* let chart = new OrgChart("#tree", {
|
|
2659
|
+
* });
|
|
2660
|
+
* chart.onInit(function(){
|
|
2661
|
+
* chart.editUI.show(1);
|
|
2662
|
+
* });
|
|
2663
|
+
* chart.load(nodes)
|
|
2664
|
+
* ```
|
|
2665
|
+
*/
|
|
2654
2666
|
interface editUI {
|
|
2655
2667
|
/**
|
|
2656
2668
|
* Inits edit ui
|
|
@@ -2679,7 +2691,18 @@ declare namespace OrgChart {
|
|
|
2679
2691
|
// static renderHeaderContent(title: string, photo: string, node: OrgChart.node, data: object): string;
|
|
2680
2692
|
}
|
|
2681
2693
|
|
|
2682
|
-
|
|
2694
|
+
/**
|
|
2695
|
+
* AI User Interface
|
|
2696
|
+
* ```typescript
|
|
2697
|
+
* let chart = new OrgChart("#tree", {
|
|
2698
|
+
* enableAI: true,
|
|
2699
|
+
* });
|
|
2700
|
+
* chart.onInit(function(){
|
|
2701
|
+
* chart.aiUI.show();
|
|
2702
|
+
* });
|
|
2703
|
+
* chart.load(nodes)
|
|
2704
|
+
* ```
|
|
2705
|
+
*/
|
|
2683
2706
|
interface aiUI {
|
|
2684
2707
|
/**
|
|
2685
2708
|
* Prompt text box
|
|
@@ -2910,9 +2933,42 @@ declare namespace OrgChart {
|
|
|
2910
2933
|
layoutIcon?: string;
|
|
2911
2934
|
}
|
|
2912
2935
|
|
|
2913
|
-
|
|
2914
2936
|
/**
|
|
2915
2937
|
* When you implement function calling in a prompt, you create a tools object, which contains one or more function declarations.
|
|
2938
|
+
* ```typescript
|
|
2939
|
+
* var chart = new OrgChart('#tree', {
|
|
2940
|
+
* enableAI: true,
|
|
2941
|
+
* aiChatTools: [{
|
|
2942
|
+
* functionName: 'sendEmail',
|
|
2943
|
+
* functionDescription: 'Send an email to a given employee with a subject and message.',
|
|
2944
|
+
* functionParameters: {
|
|
2945
|
+
* type: "object",
|
|
2946
|
+
* properties: {
|
|
2947
|
+
* to: {
|
|
2948
|
+
* type: "string",
|
|
2949
|
+
* description: "The employee email address."
|
|
2950
|
+
* },
|
|
2951
|
+
* subject: {
|
|
2952
|
+
* type: "string",
|
|
2953
|
+
* description: "Email subject line."
|
|
2954
|
+
* },
|
|
2955
|
+
* body: {
|
|
2956
|
+
* type: "string",
|
|
2957
|
+
* description: "Body of the email message."
|
|
2958
|
+
* }
|
|
2959
|
+
* },
|
|
2960
|
+
* required: [
|
|
2961
|
+
* "to",
|
|
2962
|
+
* "subject",
|
|
2963
|
+
* "body"
|
|
2964
|
+
* },
|
|
2965
|
+
* additionalProperties: false
|
|
2966
|
+
* },
|
|
2967
|
+
* strict: true
|
|
2968
|
+
* }]
|
|
2969
|
+
* });
|
|
2970
|
+
* ```
|
|
2971
|
+
* [Go to AI doc page for more details](https://balkan.app/OrgChartJS/Docs/AI)
|
|
2916
2972
|
*/
|
|
2917
2973
|
interface aiChatTool {
|
|
2918
2974
|
/**
|
|
@@ -3194,6 +3250,10 @@ declare namespace OrgChart {
|
|
|
3194
3250
|
template?: string,
|
|
3195
3251
|
label?: string
|
|
3196
3252
|
}
|
|
3253
|
+
|
|
3254
|
+
/**
|
|
3255
|
+
* @ignore
|
|
3256
|
+
*/
|
|
3197
3257
|
interface backdrop {
|
|
3198
3258
|
id?: string | number,
|
|
3199
3259
|
levels?: number,
|
|
@@ -4255,14 +4315,7 @@ declare namespace OrgChart {
|
|
|
4255
4315
|
slinks?: Array<OrgChart.link>,
|
|
4256
4316
|
|
|
4257
4317
|
/**
|
|
4258
|
-
*
|
|
4259
|
-
* ```typescript
|
|
4260
|
-
* var chart = new OrgChart('#tree', {
|
|
4261
|
-
* backdrops: [
|
|
4262
|
-
* { id: 5, levels: 2, color: '#039BE5', opacity: 0.2 }
|
|
4263
|
-
* ]
|
|
4264
|
-
* });
|
|
4265
|
-
* ```
|
|
4318
|
+
* @ignore
|
|
4266
4319
|
*/
|
|
4267
4320
|
backdrops?: Array<OrgChart.backdrop>,
|
|
4268
4321
|
|
|
@@ -4520,7 +4573,12 @@ declare namespace OrgChart {
|
|
|
4520
4573
|
text?: string
|
|
4521
4574
|
} }},
|
|
4522
4575
|
/**
|
|
4523
|
-
*
|
|
4576
|
+
* ```typescript
|
|
4577
|
+
* let chart = new OrgChart('#tree', {
|
|
4578
|
+
* editUI: new editForm(),
|
|
4579
|
+
* });
|
|
4580
|
+
* ```
|
|
4581
|
+
* [Go to edit doc page for more details](https://balkan.app/OrgChartJS/Docs/Edit#custom)
|
|
4524
4582
|
*/
|
|
4525
4583
|
editUI?: OrgChart.editUI,
|
|
4526
4584
|
/**
|