@next-bricks/ai-portal 0.59.5 → 0.60.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/dist/bricks.json +26 -22
- package/dist/chunks/2232.02cd2bbc.js.map +1 -1
- package/dist/chunks/6792.0efb2d00.js +2 -0
- package/dist/chunks/6792.0efb2d00.js.map +1 -0
- package/dist/chunks/chat-box.991e397f.js.map +1 -1
- package/dist/chunks/gantt-chart.c8cdcd66.js +2 -0
- package/dist/chunks/gantt-chart.c8cdcd66.js.map +1 -0
- package/dist/chunks/{main.5ba2de01.js → main.87ffc00f.js} +2 -2
- package/dist/chunks/{main.5ba2de01.js.map → main.87ffc00f.js.map} +1 -1
- package/dist/chunks/set-chat-command.367b9c88.js.map +1 -1
- package/dist/examples.json +19 -16
- package/dist/index.a91518b7.js +2 -0
- package/dist/index.a91518b7.js.map +1 -0
- package/dist/manifest.json +175 -143
- package/dist/types.json +317 -177
- package/dist-types/bootstrap.d.ts +1 -0
- package/dist-types/chat-stream/useConversationStream.spec.d.ts +1 -0
- 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 +6 -5
- package/dist-types/shared/useServiceFlowPlan.d.ts +2 -2
- 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/index.a425606e.js +0 -2
- package/dist/index.a425606e.js.map +0 -1
package/dist/types.json
CHANGED
|
@@ -1,89 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"ai-portal.icon-button": {
|
|
3
|
-
"properties": [
|
|
4
|
-
{
|
|
5
|
-
"name": "icon",
|
|
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",
|
|
47
|
-
"annotation": {
|
|
48
|
-
"type": "keyword",
|
|
49
|
-
"value": "boolean"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"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
|
-
]
|
|
86
|
-
},
|
|
87
2
|
"ai-portal.stat-with-mini-chart": {
|
|
88
3
|
"properties": [
|
|
89
4
|
{
|
|
@@ -201,6 +116,91 @@
|
|
|
201
116
|
"events": [],
|
|
202
117
|
"methods": []
|
|
203
118
|
},
|
|
119
|
+
"ai-portal.icon-button": {
|
|
120
|
+
"properties": [
|
|
121
|
+
{
|
|
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",
|
|
164
|
+
"annotation": {
|
|
165
|
+
"type": "keyword",
|
|
166
|
+
"value": "boolean"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"events": [],
|
|
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
|
+
},
|
|
204
204
|
"ai-portal.call-tool": {
|
|
205
205
|
"type": "provider",
|
|
206
206
|
"params": [
|
|
@@ -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
|
{
|
|
@@ -824,6 +823,77 @@
|
|
|
824
823
|
}
|
|
825
824
|
]
|
|
826
825
|
},
|
|
826
|
+
"ai-portal.tab-list": {
|
|
827
|
+
"properties": [
|
|
828
|
+
{
|
|
829
|
+
"name": "tabs",
|
|
830
|
+
"annotation": {
|
|
831
|
+
"type": "array",
|
|
832
|
+
"elementType": {
|
|
833
|
+
"type": "reference",
|
|
834
|
+
"typeName": {
|
|
835
|
+
"type": "identifier",
|
|
836
|
+
"name": "Tab"
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"name": "activeTab",
|
|
843
|
+
"annotation": {
|
|
844
|
+
"type": "keyword",
|
|
845
|
+
"value": "string"
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
],
|
|
849
|
+
"events": [
|
|
850
|
+
{
|
|
851
|
+
"name": "tab.click",
|
|
852
|
+
"detail": {
|
|
853
|
+
"annotation": {
|
|
854
|
+
"type": "reference",
|
|
855
|
+
"typeName": {
|
|
856
|
+
"type": "identifier",
|
|
857
|
+
"name": "Tab"
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
],
|
|
863
|
+
"methods": [],
|
|
864
|
+
"types": [
|
|
865
|
+
{
|
|
866
|
+
"type": "interface",
|
|
867
|
+
"name": "Tab",
|
|
868
|
+
"body": [
|
|
869
|
+
{
|
|
870
|
+
"type": "propertySignature",
|
|
871
|
+
"key": {
|
|
872
|
+
"type": "identifier",
|
|
873
|
+
"name": "id"
|
|
874
|
+
},
|
|
875
|
+
"annotation": {
|
|
876
|
+
"type": "keyword",
|
|
877
|
+
"value": "string"
|
|
878
|
+
},
|
|
879
|
+
"computed": false
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"type": "propertySignature",
|
|
883
|
+
"key": {
|
|
884
|
+
"type": "identifier",
|
|
885
|
+
"name": "label"
|
|
886
|
+
},
|
|
887
|
+
"annotation": {
|
|
888
|
+
"type": "keyword",
|
|
889
|
+
"value": "string"
|
|
890
|
+
},
|
|
891
|
+
"computed": false
|
|
892
|
+
}
|
|
893
|
+
]
|
|
894
|
+
}
|
|
895
|
+
]
|
|
896
|
+
},
|
|
827
897
|
"ai-portal.page-container": {
|
|
828
898
|
"properties": [
|
|
829
899
|
{
|
|
@@ -932,77 +1002,6 @@
|
|
|
932
1002
|
}
|
|
933
1003
|
]
|
|
934
1004
|
},
|
|
935
|
-
"ai-portal.tab-list": {
|
|
936
|
-
"properties": [
|
|
937
|
-
{
|
|
938
|
-
"name": "tabs",
|
|
939
|
-
"annotation": {
|
|
940
|
-
"type": "array",
|
|
941
|
-
"elementType": {
|
|
942
|
-
"type": "reference",
|
|
943
|
-
"typeName": {
|
|
944
|
-
"type": "identifier",
|
|
945
|
-
"name": "Tab"
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
},
|
|
950
|
-
{
|
|
951
|
-
"name": "activeTab",
|
|
952
|
-
"annotation": {
|
|
953
|
-
"type": "keyword",
|
|
954
|
-
"value": "string"
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
],
|
|
958
|
-
"events": [
|
|
959
|
-
{
|
|
960
|
-
"name": "tab.click",
|
|
961
|
-
"detail": {
|
|
962
|
-
"annotation": {
|
|
963
|
-
"type": "reference",
|
|
964
|
-
"typeName": {
|
|
965
|
-
"type": "identifier",
|
|
966
|
-
"name": "Tab"
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
}
|
|
971
|
-
],
|
|
972
|
-
"methods": [],
|
|
973
|
-
"types": [
|
|
974
|
-
{
|
|
975
|
-
"type": "interface",
|
|
976
|
-
"name": "Tab",
|
|
977
|
-
"body": [
|
|
978
|
-
{
|
|
979
|
-
"type": "propertySignature",
|
|
980
|
-
"key": {
|
|
981
|
-
"type": "identifier",
|
|
982
|
-
"name": "id"
|
|
983
|
-
},
|
|
984
|
-
"annotation": {
|
|
985
|
-
"type": "keyword",
|
|
986
|
-
"value": "string"
|
|
987
|
-
},
|
|
988
|
-
"computed": false
|
|
989
|
-
},
|
|
990
|
-
{
|
|
991
|
-
"type": "propertySignature",
|
|
992
|
-
"key": {
|
|
993
|
-
"type": "identifier",
|
|
994
|
-
"name": "label"
|
|
995
|
-
},
|
|
996
|
-
"annotation": {
|
|
997
|
-
"type": "keyword",
|
|
998
|
-
"value": "string"
|
|
999
|
-
},
|
|
1000
|
-
"computed": false
|
|
1001
|
-
}
|
|
1002
|
-
]
|
|
1003
|
-
}
|
|
1004
|
-
]
|
|
1005
|
-
},
|
|
1006
1005
|
"ai-portal.elevo-logo": {
|
|
1007
1006
|
"properties": [],
|
|
1008
1007
|
"events": [],
|
|
@@ -1767,6 +1766,26 @@
|
|
|
1767
1766
|
}
|
|
1768
1767
|
]
|
|
1769
1768
|
},
|
|
1769
|
+
"ai-portal.preview-container": {
|
|
1770
|
+
"properties": [
|
|
1771
|
+
{
|
|
1772
|
+
"name": "source",
|
|
1773
|
+
"annotation": {
|
|
1774
|
+
"type": "keyword",
|
|
1775
|
+
"value": "string"
|
|
1776
|
+
}
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
"name": "url",
|
|
1780
|
+
"annotation": {
|
|
1781
|
+
"type": "keyword",
|
|
1782
|
+
"value": "string"
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
],
|
|
1786
|
+
"events": [],
|
|
1787
|
+
"methods": []
|
|
1788
|
+
},
|
|
1770
1789
|
"ai-portal.dropdown-select": {
|
|
1771
1790
|
"properties": [
|
|
1772
1791
|
{
|
|
@@ -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 {};
|
|
@@ -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 {};
|