@next-bricks/ai-portal 0.59.5 → 0.60.1
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/dist/bricks.json +25 -21
- package/dist/chunks/1480.ec45b604.js +2 -0
- package/dist/chunks/1480.ec45b604.js.map +1 -0
- package/dist/chunks/2232.02cd2bbc.js.map +1 -1
- package/dist/chunks/2357.b6f1e719.js +2 -0
- package/dist/chunks/2357.b6f1e719.js.map +1 -0
- package/dist/chunks/3793.03162dd0.js +2 -0
- package/dist/chunks/3793.03162dd0.js.map +1 -0
- package/dist/chunks/5712.4f691939.js +2 -0
- package/dist/chunks/5712.4f691939.js.map +1 -0
- package/dist/chunks/6450.ade6ef3e.js +2 -0
- package/dist/chunks/6450.ade6ef3e.js.map +1 -0
- package/dist/chunks/6792.26bcd166.js +2 -0
- package/dist/chunks/6792.26bcd166.js.map +1 -0
- package/dist/chunks/7888.c0645842.js +3 -0
- package/dist/chunks/7888.c0645842.js.LICENSE.txt +7 -0
- package/dist/chunks/7888.c0645842.js.map +1 -0
- package/dist/chunks/7955.0c92eb57.js +3 -0
- package/dist/chunks/{7238.9abe2a64.js.LICENSE.txt → 7955.0c92eb57.js.LICENSE.txt} +0 -6
- package/dist/chunks/7955.0c92eb57.js.map +1 -0
- package/dist/chunks/9525.9e5140be.js +15 -0
- package/dist/chunks/9525.9e5140be.js.map +1 -0
- package/dist/chunks/9979.44f64896.js +2 -0
- package/dist/chunks/9979.44f64896.js.map +1 -0
- package/dist/chunks/call-tool.89a848e0.js.map +1 -1
- package/dist/chunks/chat-box.991e397f.js.map +1 -1
- package/dist/chunks/{cruise-canvas.b444c4ca.js → cruise-canvas.426be93e.js} +2 -2
- package/dist/chunks/{cruise-canvas.b444c4ca.js.map → cruise-canvas.426be93e.js.map} +1 -1
- package/dist/chunks/gantt-chart.0086539c.js +2 -0
- package/dist/chunks/gantt-chart.0086539c.js.map +1 -0
- package/dist/chunks/main.08db9bee.js +2 -0
- package/dist/chunks/{main.5ba2de01.js.map → main.08db9bee.js.map} +1 -1
- package/dist/chunks/preview-container.5793faee.js +2 -0
- package/dist/chunks/preview-container.5793faee.js.map +1 -0
- package/dist/chunks/set-chat-command.367b9c88.js.map +1 -1
- package/dist/examples.json +18 -15
- package/dist/index.8852dff5.js +2 -0
- package/dist/index.8852dff5.js.map +1 -0
- package/dist/manifest.json +210 -178
- package/dist/types.json +239 -99
- package/dist-types/bootstrap.d.ts +1 -0
- package/dist-types/chat-stream/useConversationStream.spec.d.ts +1 -0
- package/dist-types/data-providers/call-tool.d.ts +1 -1
- package/dist-types/data-providers/set-chat-command.d.ts +1 -1
- package/dist-types/gantt-chart/GanttBar.d.ts +2 -0
- package/dist-types/gantt-chart/GanttBar.spec.d.ts +1 -0
- package/dist-types/gantt-chart/constants.d.ts +5 -0
- package/dist-types/gantt-chart/getStateIcon.d.ts +6 -0
- package/dist-types/gantt-chart/i18n.d.ts +17 -0
- package/dist-types/gantt-chart/index.d.ts +23 -0
- package/dist-types/gantt-chart/index.spec.d.ts +1 -0
- package/dist-types/gantt-chart/interfaces.d.ts +12 -0
- package/dist-types/gantt-chart/utils.d.ts +6 -0
- package/dist-types/gantt-chart/utils.spec.d.ts +1 -0
- package/dist-types/shared/PlanProgress/PlanProgress.d.ts +3 -3
- package/dist-types/shared/getFlatChunks.spec.d.ts +1 -0
- package/dist-types/shared/getTaskTree.spec.d.ts +1 -0
- package/dist-types/shared/interfaces.d.ts +7 -6
- package/dist-types/shared/useServiceFlowPlan.d.ts +2 -2
- package/dist-types/shared/workers/tsxParser.d.ts +1 -1
- package/docs/gantt-chart.md +37 -0
- package/package.json +2 -2
- package/dist/chunks/2621.30041500.js +0 -2
- package/dist/chunks/2621.30041500.js.map +0 -1
- package/dist/chunks/3199.0220cf6e.js +0 -3
- package/dist/chunks/3199.0220cf6e.js.map +0 -1
- package/dist/chunks/3735.8c1d82e7.js +0 -15
- package/dist/chunks/3735.8c1d82e7.js.LICENSE.txt +0 -5
- package/dist/chunks/3735.8c1d82e7.js.map +0 -1
- package/dist/chunks/5712.c566ad78.js +0 -2
- package/dist/chunks/5712.c566ad78.js.map +0 -1
- package/dist/chunks/6593.58eda50f.js +0 -2
- package/dist/chunks/6593.58eda50f.js.map +0 -1
- package/dist/chunks/7238.9abe2a64.js +0 -3
- package/dist/chunks/7238.9abe2a64.js.map +0 -1
- package/dist/chunks/7586.b406d4bf.js +0 -2
- package/dist/chunks/7586.b406d4bf.js.map +0 -1
- package/dist/chunks/8135.3255c5ba.js +0 -2
- package/dist/chunks/8135.3255c5ba.js.map +0 -1
- package/dist/chunks/843.9b7325c3.js +0 -2
- package/dist/chunks/843.9b7325c3.js.map +0 -1
- package/dist/chunks/9388.e48bb229.js +0 -2
- package/dist/chunks/9388.e48bb229.js.map +0 -1
- package/dist/chunks/9496.1d7ebb7f.js +0 -2
- package/dist/chunks/9496.1d7ebb7f.js.map +0 -1
- package/dist/chunks/main.5ba2de01.js +0 -2
- package/dist/chunks/preview-container.19631a7b.js +0 -2
- package/dist/chunks/preview-container.19631a7b.js.map +0 -1
- package/dist/index.a425606e.js +0 -2
- package/dist/index.a425606e.js.map +0 -1
- /package/dist/chunks/{3199.0220cf6e.js.LICENSE.txt → 9525.9e5140be.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -1,49 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"ai-portal.
|
|
2
|
+
"ai-portal.home-container": {
|
|
3
3
|
"properties": [
|
|
4
4
|
{
|
|
5
|
-
"name": "
|
|
6
|
-
"annotation": {
|
|
7
|
-
"type": "reference",
|
|
8
|
-
"typeName": {
|
|
9
|
-
"type": "identifier",
|
|
10
|
-
"name": "GeneralIconProps"
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "tooltip",
|
|
16
|
-
"annotation": {
|
|
17
|
-
"type": "keyword",
|
|
18
|
-
"value": "string"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "tooltipHoist",
|
|
23
|
-
"annotation": {
|
|
24
|
-
"type": "keyword",
|
|
25
|
-
"value": "boolean"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "disabled",
|
|
30
|
-
"annotation": {
|
|
31
|
-
"type": "keyword",
|
|
32
|
-
"value": "boolean"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "variant",
|
|
37
|
-
"annotation": {
|
|
38
|
-
"type": "reference",
|
|
39
|
-
"typeName": {
|
|
40
|
-
"type": "identifier",
|
|
41
|
-
"name": "IconButtonVariant"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "reduceIconSize",
|
|
5
|
+
"name": "sticky",
|
|
47
6
|
"annotation": {
|
|
48
7
|
"type": "keyword",
|
|
49
8
|
"value": "boolean"
|
|
@@ -51,38 +10,7 @@
|
|
|
51
10
|
}
|
|
52
11
|
],
|
|
53
12
|
"events": [],
|
|
54
|
-
"methods": []
|
|
55
|
-
"types": [
|
|
56
|
-
{
|
|
57
|
-
"type": "typeAlias",
|
|
58
|
-
"name": "IconButtonVariant",
|
|
59
|
-
"annotation": {
|
|
60
|
-
"type": "union",
|
|
61
|
-
"types": [
|
|
62
|
-
{
|
|
63
|
-
"type": "jsLiteral",
|
|
64
|
-
"value": "default"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"type": "jsLiteral",
|
|
68
|
-
"value": "light"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"type": "jsLiteral",
|
|
72
|
-
"value": "mini"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"type": "jsLiteral",
|
|
76
|
-
"value": "mini-light"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"type": "jsLiteral",
|
|
80
|
-
"value": "bordered"
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
]
|
|
13
|
+
"methods": []
|
|
86
14
|
},
|
|
87
15
|
"ai-portal.stat-with-mini-chart": {
|
|
88
16
|
"properties": [
|
|
@@ -188,10 +116,51 @@
|
|
|
188
116
|
"events": [],
|
|
189
117
|
"methods": []
|
|
190
118
|
},
|
|
191
|
-
"ai-portal.
|
|
119
|
+
"ai-portal.icon-button": {
|
|
192
120
|
"properties": [
|
|
193
121
|
{
|
|
194
|
-
"name": "
|
|
122
|
+
"name": "icon",
|
|
123
|
+
"annotation": {
|
|
124
|
+
"type": "reference",
|
|
125
|
+
"typeName": {
|
|
126
|
+
"type": "identifier",
|
|
127
|
+
"name": "GeneralIconProps"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "tooltip",
|
|
133
|
+
"annotation": {
|
|
134
|
+
"type": "keyword",
|
|
135
|
+
"value": "string"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "tooltipHoist",
|
|
140
|
+
"annotation": {
|
|
141
|
+
"type": "keyword",
|
|
142
|
+
"value": "boolean"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "disabled",
|
|
147
|
+
"annotation": {
|
|
148
|
+
"type": "keyword",
|
|
149
|
+
"value": "boolean"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "variant",
|
|
154
|
+
"annotation": {
|
|
155
|
+
"type": "reference",
|
|
156
|
+
"typeName": {
|
|
157
|
+
"type": "identifier",
|
|
158
|
+
"name": "IconButtonVariant"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "reduceIconSize",
|
|
195
164
|
"annotation": {
|
|
196
165
|
"type": "keyword",
|
|
197
166
|
"value": "boolean"
|
|
@@ -199,7 +168,38 @@
|
|
|
199
168
|
}
|
|
200
169
|
],
|
|
201
170
|
"events": [],
|
|
202
|
-
"methods": []
|
|
171
|
+
"methods": [],
|
|
172
|
+
"types": [
|
|
173
|
+
{
|
|
174
|
+
"type": "typeAlias",
|
|
175
|
+
"name": "IconButtonVariant",
|
|
176
|
+
"annotation": {
|
|
177
|
+
"type": "union",
|
|
178
|
+
"types": [
|
|
179
|
+
{
|
|
180
|
+
"type": "jsLiteral",
|
|
181
|
+
"value": "default"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"type": "jsLiteral",
|
|
185
|
+
"value": "light"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"type": "jsLiteral",
|
|
189
|
+
"value": "mini"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"type": "jsLiteral",
|
|
193
|
+
"value": "mini-light"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"type": "jsLiteral",
|
|
197
|
+
"value": "bordered"
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
203
|
},
|
|
204
204
|
"ai-portal.call-tool": {
|
|
205
205
|
"type": "provider",
|
|
@@ -802,7 +802,6 @@
|
|
|
802
802
|
"type": "keyword",
|
|
803
803
|
"value": "string"
|
|
804
804
|
},
|
|
805
|
-
"optional": true,
|
|
806
805
|
"computed": false
|
|
807
806
|
},
|
|
808
807
|
{
|
|
@@ -1936,6 +1935,26 @@
|
|
|
1936
1935
|
}
|
|
1937
1936
|
]
|
|
1938
1937
|
},
|
|
1938
|
+
"ai-portal.preview-container": {
|
|
1939
|
+
"properties": [
|
|
1940
|
+
{
|
|
1941
|
+
"name": "source",
|
|
1942
|
+
"annotation": {
|
|
1943
|
+
"type": "keyword",
|
|
1944
|
+
"value": "string"
|
|
1945
|
+
}
|
|
1946
|
+
},
|
|
1947
|
+
{
|
|
1948
|
+
"name": "url",
|
|
1949
|
+
"annotation": {
|
|
1950
|
+
"type": "keyword",
|
|
1951
|
+
"value": "string"
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
],
|
|
1955
|
+
"events": [],
|
|
1956
|
+
"methods": []
|
|
1957
|
+
},
|
|
1939
1958
|
"ai-portal.action-buttons": {
|
|
1940
1959
|
"properties": [
|
|
1941
1960
|
{
|
|
@@ -2054,26 +2073,6 @@
|
|
|
2054
2073
|
}
|
|
2055
2074
|
]
|
|
2056
2075
|
},
|
|
2057
|
-
"ai-portal.preview-container": {
|
|
2058
|
-
"properties": [
|
|
2059
|
-
{
|
|
2060
|
-
"name": "source",
|
|
2061
|
-
"annotation": {
|
|
2062
|
-
"type": "keyword",
|
|
2063
|
-
"value": "string"
|
|
2064
|
-
}
|
|
2065
|
-
},
|
|
2066
|
-
{
|
|
2067
|
-
"name": "url",
|
|
2068
|
-
"annotation": {
|
|
2069
|
-
"type": "keyword",
|
|
2070
|
-
"value": "string"
|
|
2071
|
-
}
|
|
2072
|
-
}
|
|
2073
|
-
],
|
|
2074
|
-
"events": [],
|
|
2075
|
-
"methods": []
|
|
2076
|
-
},
|
|
2077
2076
|
"ai-portal.project-conversations": {
|
|
2078
2077
|
"properties": [
|
|
2079
2078
|
{
|
|
@@ -5293,6 +5292,147 @@
|
|
|
5293
5292
|
}
|
|
5294
5293
|
]
|
|
5295
5294
|
},
|
|
5295
|
+
"ai-portal.gantt-chart": {
|
|
5296
|
+
"properties": [
|
|
5297
|
+
{
|
|
5298
|
+
"name": "chartTitle",
|
|
5299
|
+
"annotation": {
|
|
5300
|
+
"type": "keyword",
|
|
5301
|
+
"value": "string"
|
|
5302
|
+
}
|
|
5303
|
+
},
|
|
5304
|
+
{
|
|
5305
|
+
"name": "nodes",
|
|
5306
|
+
"annotation": {
|
|
5307
|
+
"type": "array",
|
|
5308
|
+
"elementType": {
|
|
5309
|
+
"type": "reference",
|
|
5310
|
+
"typeName": {
|
|
5311
|
+
"type": "identifier",
|
|
5312
|
+
"name": "GanttNode"
|
|
5313
|
+
}
|
|
5314
|
+
}
|
|
5315
|
+
}
|
|
5316
|
+
}
|
|
5317
|
+
],
|
|
5318
|
+
"events": [
|
|
5319
|
+
{
|
|
5320
|
+
"name": "node.click",
|
|
5321
|
+
"detail": {
|
|
5322
|
+
"annotation": {
|
|
5323
|
+
"type": "reference",
|
|
5324
|
+
"typeName": {
|
|
5325
|
+
"type": "identifier",
|
|
5326
|
+
"name": "GanttNode"
|
|
5327
|
+
}
|
|
5328
|
+
}
|
|
5329
|
+
}
|
|
5330
|
+
},
|
|
5331
|
+
{
|
|
5332
|
+
"name": "fullscreen.click",
|
|
5333
|
+
"detail": {
|
|
5334
|
+
"annotation": {
|
|
5335
|
+
"type": "keyword",
|
|
5336
|
+
"value": "void"
|
|
5337
|
+
}
|
|
5338
|
+
}
|
|
5339
|
+
}
|
|
5340
|
+
],
|
|
5341
|
+
"methods": [],
|
|
5342
|
+
"types": [
|
|
5343
|
+
{
|
|
5344
|
+
"type": "interface",
|
|
5345
|
+
"name": "GanttNode",
|
|
5346
|
+
"body": [
|
|
5347
|
+
{
|
|
5348
|
+
"type": "propertySignature",
|
|
5349
|
+
"key": {
|
|
5350
|
+
"type": "identifier",
|
|
5351
|
+
"name": "name"
|
|
5352
|
+
},
|
|
5353
|
+
"annotation": {
|
|
5354
|
+
"type": "keyword",
|
|
5355
|
+
"value": "string"
|
|
5356
|
+
},
|
|
5357
|
+
"computed": false
|
|
5358
|
+
},
|
|
5359
|
+
{
|
|
5360
|
+
"type": "propertySignature",
|
|
5361
|
+
"key": {
|
|
5362
|
+
"type": "identifier",
|
|
5363
|
+
"name": "state"
|
|
5364
|
+
},
|
|
5365
|
+
"annotation": {
|
|
5366
|
+
"type": "union",
|
|
5367
|
+
"types": [
|
|
5368
|
+
{
|
|
5369
|
+
"type": "reference",
|
|
5370
|
+
"typeName": {
|
|
5371
|
+
"type": "identifier",
|
|
5372
|
+
"name": "TaskState"
|
|
5373
|
+
}
|
|
5374
|
+
},
|
|
5375
|
+
{
|
|
5376
|
+
"type": "reference",
|
|
5377
|
+
"typeName": {
|
|
5378
|
+
"type": "identifier",
|
|
5379
|
+
"name": "JobState"
|
|
5380
|
+
}
|
|
5381
|
+
}
|
|
5382
|
+
]
|
|
5383
|
+
},
|
|
5384
|
+
"optional": true,
|
|
5385
|
+
"computed": false
|
|
5386
|
+
},
|
|
5387
|
+
{
|
|
5388
|
+
"type": "propertySignature",
|
|
5389
|
+
"key": {
|
|
5390
|
+
"type": "identifier",
|
|
5391
|
+
"name": "startTime"
|
|
5392
|
+
},
|
|
5393
|
+
"annotation": {
|
|
5394
|
+
"type": "keyword",
|
|
5395
|
+
"value": "number"
|
|
5396
|
+
},
|
|
5397
|
+
"optional": true,
|
|
5398
|
+
"computed": false
|
|
5399
|
+
},
|
|
5400
|
+
{
|
|
5401
|
+
"type": "propertySignature",
|
|
5402
|
+
"key": {
|
|
5403
|
+
"type": "identifier",
|
|
5404
|
+
"name": "endTime"
|
|
5405
|
+
},
|
|
5406
|
+
"annotation": {
|
|
5407
|
+
"type": "keyword",
|
|
5408
|
+
"value": "number"
|
|
5409
|
+
},
|
|
5410
|
+
"optional": true,
|
|
5411
|
+
"computed": false
|
|
5412
|
+
},
|
|
5413
|
+
{
|
|
5414
|
+
"type": "propertySignature",
|
|
5415
|
+
"key": {
|
|
5416
|
+
"type": "identifier",
|
|
5417
|
+
"name": "children"
|
|
5418
|
+
},
|
|
5419
|
+
"annotation": {
|
|
5420
|
+
"type": "array",
|
|
5421
|
+
"elementType": {
|
|
5422
|
+
"type": "reference",
|
|
5423
|
+
"typeName": {
|
|
5424
|
+
"type": "identifier",
|
|
5425
|
+
"name": "GanttNode"
|
|
5426
|
+
}
|
|
5427
|
+
}
|
|
5428
|
+
},
|
|
5429
|
+
"optional": true,
|
|
5430
|
+
"computed": false
|
|
5431
|
+
}
|
|
5432
|
+
]
|
|
5433
|
+
}
|
|
5434
|
+
]
|
|
5435
|
+
},
|
|
5296
5436
|
"ai-portal.goal-card-list": {
|
|
5297
5437
|
"properties": [
|
|
5298
5438
|
{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ToolInfo } from "@next-
|
|
1
|
+
import type { ToolInfo } from "@next-tsx/parser";
|
|
2
2
|
export declare function callTool(tool: ToolInfo, params: Record<string, unknown>): Promise<unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
|
|
2
|
+
import type { ConversationState, JobState, TaskState } from "../shared/interfaces";
|
|
3
|
+
export declare function getStateIcon(state: TaskState | JobState | ConversationState | undefined, isFirstLevel?: boolean): {
|
|
4
|
+
icon: GeneralIconProps;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum K {
|
|
2
|
+
FULLSCREEN = "FULLSCREEN",
|
|
3
|
+
COLLAPSE = "COLLAPSE",
|
|
4
|
+
EXPAND = "EXPAND"
|
|
5
|
+
}
|
|
6
|
+
export declare const NS = "bricks/ai-portal/gantt-chart";
|
|
7
|
+
export declare const locales: {
|
|
8
|
+
en: Locale;
|
|
9
|
+
zh: Locale;
|
|
10
|
+
};
|
|
11
|
+
export declare const t: any;
|
|
12
|
+
type Locale = {
|
|
13
|
+
[k in K]: string;
|
|
14
|
+
} & {
|
|
15
|
+
[k in K as `${k}_plural`]?: string;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ReactNextElement } from "@next-core/react-element";
|
|
3
|
+
import "@next-core/theme";
|
|
4
|
+
import type { GanttNode } from "./interfaces.js";
|
|
5
|
+
export interface GanttChartProps {
|
|
6
|
+
chartTitle?: string;
|
|
7
|
+
nodes?: GanttNode[];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 构件 `ai-portal.gantt-chart`
|
|
11
|
+
*/
|
|
12
|
+
export declare class GanttChart extends ReactNextElement implements GanttChartProps {
|
|
13
|
+
#private;
|
|
14
|
+
accessor chartTitle: string | undefined;
|
|
15
|
+
accessor nodes: GanttNode[] | undefined;
|
|
16
|
+
render(): React.JSX.Element;
|
|
17
|
+
}
|
|
18
|
+
export interface GanttChartNodeProps {
|
|
19
|
+
node: GanttNode;
|
|
20
|
+
level: number;
|
|
21
|
+
isLast: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function GanttChartNode({ node, level, isLast }: GanttChartNodeProps): React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { JobState, TaskState } from "../shared/interfaces.js";
|
|
2
|
+
export interface GanttNode {
|
|
3
|
+
name: string;
|
|
4
|
+
state?: TaskState | JobState;
|
|
5
|
+
startTime?: number;
|
|
6
|
+
endTime?: number;
|
|
7
|
+
children?: GanttNode[];
|
|
8
|
+
}
|
|
9
|
+
export interface Timing {
|
|
10
|
+
start: number;
|
|
11
|
+
end: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { GanttNode, Timing } from "./interfaces";
|
|
2
|
+
export declare function countNodes(node: GanttNode, collapsedNodes: Set<GanttNode> | null): number;
|
|
3
|
+
export declare function processTimeline(nodes: GanttNode[] | undefined): {
|
|
4
|
+
duration: number;
|
|
5
|
+
timeline: Map<GanttNode, Timing>;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type { ConversationState,
|
|
2
|
+
import type { ConversationState, PlanProgressStep, TaskState } from "../interfaces";
|
|
3
3
|
export interface PlanProgressProps {
|
|
4
|
-
plan:
|
|
4
|
+
plan: PlanProgressStep[];
|
|
5
5
|
conversationState?: ConversationState;
|
|
6
6
|
style?: React.CSSProperties;
|
|
7
7
|
}
|
|
@@ -11,5 +11,5 @@ interface PlanStepProps {
|
|
|
11
11
|
conversationState?: ConversationState;
|
|
12
12
|
name: string;
|
|
13
13
|
}
|
|
14
|
-
declare function
|
|
14
|
+
declare function PlanProgressStep({ state, conversationState, name }: PlanStepProps): React.JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ParsedApp } from "@next-
|
|
1
|
+
import type { ParsedApp } from "@next-tsx/parser";
|
|
2
2
|
export interface Conversation {
|
|
3
3
|
id: string;
|
|
4
4
|
title: string;
|
|
@@ -19,6 +19,11 @@ export interface Task {
|
|
|
19
19
|
startTime: number;
|
|
20
20
|
endTime?: number;
|
|
21
21
|
aiEmployeeId?: string;
|
|
22
|
+
plan?: PlanStep[];
|
|
23
|
+
}
|
|
24
|
+
export interface PlanStep {
|
|
25
|
+
name: string;
|
|
26
|
+
jobId?: string;
|
|
22
27
|
}
|
|
23
28
|
export type ConversationState = "working" | "completed" | "failed" | "input-required" | "terminated";
|
|
24
29
|
export type TaskState = "working" | "input-required" | "completed" | "failed";
|
|
@@ -58,10 +63,6 @@ export interface HumanActionSelect {
|
|
|
58
63
|
type: "select";
|
|
59
64
|
options: string[];
|
|
60
65
|
}
|
|
61
|
-
export interface Step {
|
|
62
|
-
id: string;
|
|
63
|
-
instruction: string;
|
|
64
|
-
}
|
|
65
66
|
export interface Message {
|
|
66
67
|
role: string;
|
|
67
68
|
parts: Part[];
|
|
@@ -225,7 +226,7 @@ export interface ActiveDetailOfActivity {
|
|
|
225
226
|
activity: ActivityRun;
|
|
226
227
|
flow: ServiceFlowRun;
|
|
227
228
|
}
|
|
228
|
-
export interface
|
|
229
|
+
export interface PlanProgressStep {
|
|
229
230
|
name: string;
|
|
230
231
|
taskId?: string;
|
|
231
232
|
state?: TaskState;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function useServiceFlowPlan(serviceFlows: ServiceFlowRun[], tasks: Task[]):
|
|
1
|
+
import type { PlanProgressStep, ServiceFlowRun, Task } from "./interfaces";
|
|
2
|
+
export declare function useServiceFlowPlan(serviceFlows: ServiceFlowRun[], tasks: Task[]): PlanProgressStep[];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
构件 `ai-portal.gantt-chart`
|
|
2
|
+
|
|
3
|
+
## Examples
|
|
4
|
+
|
|
5
|
+
### Basic
|
|
6
|
+
|
|
7
|
+
```yaml preview
|
|
8
|
+
brick: ai-portal.gantt-chart
|
|
9
|
+
properties:
|
|
10
|
+
chartTitle: Hello world
|
|
11
|
+
nodes:
|
|
12
|
+
- name: 整理产品业务相关知识
|
|
13
|
+
state: completed
|
|
14
|
+
children:
|
|
15
|
+
- name: One
|
|
16
|
+
startTime: 100
|
|
17
|
+
endTime: 110
|
|
18
|
+
- name: Two
|
|
19
|
+
- name: 创建产品设计业务流
|
|
20
|
+
state: working
|
|
21
|
+
children:
|
|
22
|
+
- name: 根据整理知识格式化为业务流定义
|
|
23
|
+
state: completed
|
|
24
|
+
children:
|
|
25
|
+
- name: Three
|
|
26
|
+
- name: 发起业务流:创建业务流
|
|
27
|
+
state: working
|
|
28
|
+
children:
|
|
29
|
+
- name: 编写业务流
|
|
30
|
+
state: completed
|
|
31
|
+
- name: 管理员确认
|
|
32
|
+
state: input-required
|
|
33
|
+
- name: 保存业务流
|
|
34
|
+
state: failed
|
|
35
|
+
- name: 展示业务流
|
|
36
|
+
# - name: 完成
|
|
37
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/ai-portal",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.1",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"@next-bricks/presentational": "*",
|
|
48
48
|
"@next-bricks/vs": "*"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "661dc7a85d28c62a4eaca4ba626e18e3c59f3d11"
|
|
51
51
|
}
|