@next-bricks/ai-portal 0.48.1 → 0.48.2
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 +12 -11
- package/dist/chunks/7431.5093d0d9.js +3 -0
- package/dist/chunks/7431.5093d0d9.js.map +1 -0
- package/dist/chunks/9328.222dec55.js +2 -0
- package/dist/chunks/9328.222dec55.js.map +1 -0
- package/dist/chunks/action-buttons.16da8761.js +2 -0
- package/dist/chunks/action-buttons.16da8761.js.map +1 -0
- package/dist/chunks/{main.040f8a8b.js → main.4486142d.js} +2 -2
- package/dist/chunks/{main.040f8a8b.js.map → main.4486142d.js.map} +1 -1
- package/dist/examples.json +6 -6
- package/dist/index.416c83ca.js +2 -0
- package/dist/{index.6dbc99ec.js.map → index.416c83ca.js.map} +1 -1
- package/dist/manifest.json +120 -130
- package/dist/types.json +28 -59
- package/dist-types/action-buttons/index.d.ts +3 -7
- package/package.json +2 -2
- package/dist/chunks/7431.9d8c1ccb.js +0 -3
- package/dist/chunks/7431.9d8c1ccb.js.map +0 -1
- package/dist/chunks/9328.283c35b3.js +0 -2
- package/dist/chunks/9328.283c35b3.js.map +0 -1
- package/dist/chunks/action-buttons.52180d20.js +0 -2
- package/dist/chunks/action-buttons.52180d20.js.map +0 -1
- package/dist/index.6dbc99ec.js +0 -2
- /package/dist/chunks/{7431.9d8c1ccb.js.LICENSE.txt → 7431.5093d0d9.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -4,62 +4,74 @@
|
|
|
4
4
|
"name": "ai-portal",
|
|
5
5
|
"bricks": [
|
|
6
6
|
{
|
|
7
|
-
"name": "ai-portal.
|
|
7
|
+
"name": "ai-portal.home-container",
|
|
8
|
+
"properties": [],
|
|
9
|
+
"events": [],
|
|
10
|
+
"slots": [],
|
|
11
|
+
"methods": [],
|
|
12
|
+
"parts": [],
|
|
13
|
+
"description": "构件 `ai-portal.home-container`"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "ai-portal.stat-with-mini-chart",
|
|
8
17
|
"properties": [
|
|
9
18
|
{
|
|
10
|
-
"name": "
|
|
11
|
-
"type": "
|
|
19
|
+
"name": "label",
|
|
20
|
+
"type": "string"
|
|
12
21
|
},
|
|
13
22
|
{
|
|
14
|
-
"name": "
|
|
23
|
+
"name": "value",
|
|
15
24
|
"type": "string"
|
|
16
25
|
},
|
|
17
26
|
{
|
|
18
|
-
"name": "
|
|
19
|
-
"
|
|
27
|
+
"name": "size",
|
|
28
|
+
"description": "",
|
|
29
|
+
"default": "\"medium\"",
|
|
30
|
+
"type": "\"medium\" | \"small\""
|
|
20
31
|
},
|
|
21
32
|
{
|
|
22
|
-
"name": "
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"events": [
|
|
33
|
+
"name": "lineColor",
|
|
34
|
+
"description": "",
|
|
35
|
+
"default": "\"var(--color-brand)\"",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
28
38
|
{
|
|
29
|
-
"name": "
|
|
30
|
-
"
|
|
31
|
-
"type": "string"
|
|
32
|
-
}
|
|
39
|
+
"name": "showArea",
|
|
40
|
+
"type": "boolean"
|
|
33
41
|
},
|
|
34
42
|
{
|
|
35
|
-
"name": "
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
"slots": [],
|
|
42
|
-
"methods": [
|
|
43
|
+
"name": "min",
|
|
44
|
+
"description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
|
|
45
|
+
"type": "number"
|
|
46
|
+
},
|
|
43
47
|
{
|
|
44
|
-
"name": "
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
"name": "value",
|
|
48
|
-
"type": "string"
|
|
49
|
-
}
|
|
50
|
-
]
|
|
48
|
+
"name": "max",
|
|
49
|
+
"description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
|
|
50
|
+
"type": "number"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
"name": "
|
|
54
|
-
"
|
|
53
|
+
"name": "xField",
|
|
54
|
+
"description": "",
|
|
55
|
+
"default": "\"0\"",
|
|
56
|
+
"type": "string"
|
|
55
57
|
},
|
|
56
58
|
{
|
|
57
|
-
"name": "
|
|
58
|
-
"
|
|
59
|
+
"name": "yField",
|
|
60
|
+
"description": "",
|
|
61
|
+
"default": "\"1\"",
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "data",
|
|
66
|
+
"attribute": false,
|
|
67
|
+
"type": "Record<string, number>[]"
|
|
59
68
|
}
|
|
60
69
|
],
|
|
70
|
+
"events": [],
|
|
71
|
+
"slots": [],
|
|
72
|
+
"methods": [],
|
|
61
73
|
"parts": [],
|
|
62
|
-
"description": "构件 `ai-portal.
|
|
74
|
+
"description": "构件 `ai-portal.stat-with-mini-chart`"
|
|
63
75
|
},
|
|
64
76
|
{
|
|
65
77
|
"name": "ai-portal.cruise-canvas",
|
|
@@ -206,76 +218,6 @@
|
|
|
206
218
|
"parts": [],
|
|
207
219
|
"description": "构件 `ai-portal.cruise-canvas`"
|
|
208
220
|
},
|
|
209
|
-
{
|
|
210
|
-
"name": "ai-portal.home-container",
|
|
211
|
-
"properties": [],
|
|
212
|
-
"events": [],
|
|
213
|
-
"slots": [],
|
|
214
|
-
"methods": [],
|
|
215
|
-
"parts": [],
|
|
216
|
-
"description": "构件 `ai-portal.home-container`"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"name": "ai-portal.stat-with-mini-chart",
|
|
220
|
-
"properties": [
|
|
221
|
-
{
|
|
222
|
-
"name": "label",
|
|
223
|
-
"type": "string"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
"name": "value",
|
|
227
|
-
"type": "string"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
"name": "size",
|
|
231
|
-
"description": "",
|
|
232
|
-
"default": "\"medium\"",
|
|
233
|
-
"type": "\"medium\" | \"small\""
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"name": "lineColor",
|
|
237
|
-
"description": "",
|
|
238
|
-
"default": "\"var(--color-brand)\"",
|
|
239
|
-
"type": "string"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
"name": "showArea",
|
|
243
|
-
"type": "boolean"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"name": "min",
|
|
247
|
-
"description": "Specify the minimum value of the y-axis.\nIf not specified, the minimum value will be calculated from the data.",
|
|
248
|
-
"type": "number"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"name": "max",
|
|
252
|
-
"description": "Specify the maximum value of the y-axis.\nIf not specified, the maximum value will be calculated from the data.",
|
|
253
|
-
"type": "number"
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"name": "xField",
|
|
257
|
-
"description": "",
|
|
258
|
-
"default": "\"0\"",
|
|
259
|
-
"type": "string"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
"name": "yField",
|
|
263
|
-
"description": "",
|
|
264
|
-
"default": "\"1\"",
|
|
265
|
-
"type": "string"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"name": "data",
|
|
269
|
-
"attribute": false,
|
|
270
|
-
"type": "Record<string, number>[]"
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
|
-
"events": [],
|
|
274
|
-
"slots": [],
|
|
275
|
-
"methods": [],
|
|
276
|
-
"parts": [],
|
|
277
|
-
"description": "构件 `ai-portal.stat-with-mini-chart`"
|
|
278
|
-
},
|
|
279
221
|
{
|
|
280
222
|
"name": "ai-portal.elevo-sidebar",
|
|
281
223
|
"properties": [
|
|
@@ -415,6 +357,64 @@
|
|
|
415
357
|
"parts": [],
|
|
416
358
|
"description": "构件 `ai-portal.elevo-sidebar`"
|
|
417
359
|
},
|
|
360
|
+
{
|
|
361
|
+
"name": "ai-portal.chat-box",
|
|
362
|
+
"properties": [
|
|
363
|
+
{
|
|
364
|
+
"name": "disabled",
|
|
365
|
+
"type": "boolean"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"name": "placeholder",
|
|
369
|
+
"type": "string"
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "autoFocus",
|
|
373
|
+
"type": "boolean"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"name": "aiEmployees",
|
|
377
|
+
"attribute": false,
|
|
378
|
+
"type": "AIEmployee[]"
|
|
379
|
+
}
|
|
380
|
+
],
|
|
381
|
+
"events": [
|
|
382
|
+
{
|
|
383
|
+
"name": "message.submit",
|
|
384
|
+
"detail": {
|
|
385
|
+
"type": "string"
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"name": "ai-employee.mention",
|
|
390
|
+
"detail": {
|
|
391
|
+
"type": "AIEmployee | null"
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
],
|
|
395
|
+
"slots": [],
|
|
396
|
+
"methods": [
|
|
397
|
+
{
|
|
398
|
+
"name": "setValue",
|
|
399
|
+
"params": [
|
|
400
|
+
{
|
|
401
|
+
"name": "value",
|
|
402
|
+
"type": "string"
|
|
403
|
+
}
|
|
404
|
+
]
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "getValue",
|
|
408
|
+
"params": []
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"name": "focusOnInput",
|
|
412
|
+
"params": []
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"parts": [],
|
|
416
|
+
"description": "构件 `ai-portal.chat-box`"
|
|
417
|
+
},
|
|
418
418
|
{
|
|
419
419
|
"name": "ai-portal.icon-button",
|
|
420
420
|
"properties": [
|
|
@@ -828,30 +828,20 @@
|
|
|
828
828
|
"type": "ActionItem[]"
|
|
829
829
|
},
|
|
830
830
|
{
|
|
831
|
-
"name": "
|
|
832
|
-
"type": "
|
|
831
|
+
"name": "activeKey",
|
|
832
|
+
"type": "string | null"
|
|
833
833
|
}
|
|
834
834
|
],
|
|
835
835
|
"events": [
|
|
836
836
|
{
|
|
837
|
-
"name": "
|
|
837
|
+
"name": "change",
|
|
838
838
|
"detail": {
|
|
839
|
-
"type": "ActionItem"
|
|
839
|
+
"type": "ActionItem | null"
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
842
|
],
|
|
843
843
|
"slots": [],
|
|
844
|
-
"methods": [
|
|
845
|
-
{
|
|
846
|
-
"name": "setActive",
|
|
847
|
-
"params": [
|
|
848
|
-
{
|
|
849
|
-
"name": "key",
|
|
850
|
-
"type": "string"
|
|
851
|
-
}
|
|
852
|
-
]
|
|
853
|
-
}
|
|
854
|
-
],
|
|
844
|
+
"methods": [],
|
|
855
845
|
"parts": [],
|
|
856
846
|
"description": "构件 `ai-portal.action-buttons`"
|
|
857
847
|
},
|
|
@@ -1059,15 +1049,6 @@
|
|
|
1059
1049
|
"parts": [],
|
|
1060
1050
|
"description": "构件 `ai-portal.chat-input`"
|
|
1061
1051
|
},
|
|
1062
|
-
{
|
|
1063
|
-
"name": "ai-portal.elevo-logo",
|
|
1064
|
-
"properties": [],
|
|
1065
|
-
"events": [],
|
|
1066
|
-
"slots": [],
|
|
1067
|
-
"methods": [],
|
|
1068
|
-
"parts": [],
|
|
1069
|
-
"description": "构件 `ai-portal.elevo-logo`"
|
|
1070
|
-
},
|
|
1071
1052
|
{
|
|
1072
1053
|
"name": "ai-portal.show-case",
|
|
1073
1054
|
"properties": [
|
|
@@ -1089,6 +1070,15 @@
|
|
|
1089
1070
|
"methods": [],
|
|
1090
1071
|
"parts": [],
|
|
1091
1072
|
"description": "构件 `ai-portal.show-case`"
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"name": "ai-portal.elevo-logo",
|
|
1076
|
+
"properties": [],
|
|
1077
|
+
"events": [],
|
|
1078
|
+
"slots": [],
|
|
1079
|
+
"methods": [],
|
|
1080
|
+
"parts": [],
|
|
1081
|
+
"description": "构件 `ai-portal.elevo-logo`"
|
|
1092
1082
|
}
|
|
1093
1083
|
],
|
|
1094
1084
|
"providers": [
|
package/dist/types.json
CHANGED
|
@@ -1439,42 +1439,46 @@
|
|
|
1439
1439
|
}
|
|
1440
1440
|
},
|
|
1441
1441
|
{
|
|
1442
|
-
"name": "
|
|
1442
|
+
"name": "activeKey",
|
|
1443
1443
|
"annotation": {
|
|
1444
|
-
"type": "
|
|
1445
|
-
"
|
|
1444
|
+
"type": "union",
|
|
1445
|
+
"types": [
|
|
1446
|
+
{
|
|
1447
|
+
"type": "keyword",
|
|
1448
|
+
"value": "string"
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
"type": "keyword",
|
|
1452
|
+
"value": "null"
|
|
1453
|
+
}
|
|
1454
|
+
]
|
|
1446
1455
|
}
|
|
1447
1456
|
}
|
|
1448
1457
|
],
|
|
1449
1458
|
"events": [
|
|
1450
1459
|
{
|
|
1451
|
-
"name": "
|
|
1460
|
+
"name": "change",
|
|
1452
1461
|
"detail": {
|
|
1453
1462
|
"annotation": {
|
|
1454
|
-
"type": "
|
|
1455
|
-
"
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1463
|
+
"type": "union",
|
|
1464
|
+
"types": [
|
|
1465
|
+
{
|
|
1466
|
+
"type": "reference",
|
|
1467
|
+
"typeName": {
|
|
1468
|
+
"type": "identifier",
|
|
1469
|
+
"name": "ActionItem"
|
|
1470
|
+
}
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
"type": "keyword",
|
|
1474
|
+
"value": "null"
|
|
1475
|
+
}
|
|
1476
|
+
]
|
|
1459
1477
|
}
|
|
1460
1478
|
}
|
|
1461
1479
|
}
|
|
1462
1480
|
],
|
|
1463
|
-
"methods": [
|
|
1464
|
-
{
|
|
1465
|
-
"name": "setActive",
|
|
1466
|
-
"params": [
|
|
1467
|
-
{
|
|
1468
|
-
"name": "key",
|
|
1469
|
-
"annotation": {
|
|
1470
|
-
"type": "keyword",
|
|
1471
|
-
"value": "string"
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
],
|
|
1475
|
-
"returns": {}
|
|
1476
|
-
}
|
|
1477
|
-
],
|
|
1481
|
+
"methods": [],
|
|
1478
1482
|
"types": [
|
|
1479
1483
|
{
|
|
1480
1484
|
"type": "interface",
|
|
@@ -1520,32 +1524,6 @@
|
|
|
1520
1524
|
"optional": true,
|
|
1521
1525
|
"computed": false
|
|
1522
1526
|
},
|
|
1523
|
-
{
|
|
1524
|
-
"type": "propertySignature",
|
|
1525
|
-
"key": {
|
|
1526
|
-
"type": "identifier",
|
|
1527
|
-
"name": "active"
|
|
1528
|
-
},
|
|
1529
|
-
"annotation": {
|
|
1530
|
-
"type": "keyword",
|
|
1531
|
-
"value": "boolean"
|
|
1532
|
-
},
|
|
1533
|
-
"optional": true,
|
|
1534
|
-
"computed": false
|
|
1535
|
-
},
|
|
1536
|
-
{
|
|
1537
|
-
"type": "propertySignature",
|
|
1538
|
-
"key": {
|
|
1539
|
-
"type": "identifier",
|
|
1540
|
-
"name": "event"
|
|
1541
|
-
},
|
|
1542
|
-
"annotation": {
|
|
1543
|
-
"type": "keyword",
|
|
1544
|
-
"value": "string"
|
|
1545
|
-
},
|
|
1546
|
-
"optional": true,
|
|
1547
|
-
"computed": false
|
|
1548
|
-
},
|
|
1549
1527
|
{
|
|
1550
1528
|
"type": "propertySignature",
|
|
1551
1529
|
"key": {
|
|
@@ -1559,15 +1537,6 @@
|
|
|
1559
1537
|
"optional": true,
|
|
1560
1538
|
"computed": false
|
|
1561
1539
|
}
|
|
1562
|
-
],
|
|
1563
|
-
"extends": [
|
|
1564
|
-
{
|
|
1565
|
-
"type": "expressionWithTypeArguments",
|
|
1566
|
-
"expression": {
|
|
1567
|
-
"type": "identifier",
|
|
1568
|
-
"name": "ButtonProps"
|
|
1569
|
-
}
|
|
1570
|
-
}
|
|
1571
1540
|
]
|
|
1572
1541
|
}
|
|
1573
1542
|
]
|
|
@@ -2,18 +2,15 @@ import React from "react";
|
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
4
|
import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
|
|
5
|
-
|
|
6
|
-
interface ActionItem extends ButtonProps {
|
|
5
|
+
interface ActionItem {
|
|
7
6
|
text: string;
|
|
8
7
|
key: string;
|
|
9
8
|
icon?: GeneralIconProps;
|
|
10
|
-
active?: boolean;
|
|
11
|
-
event?: string;
|
|
12
9
|
hidden?: boolean;
|
|
13
10
|
}
|
|
14
11
|
export interface ActionButtonsProps {
|
|
15
12
|
items?: ActionItem[];
|
|
16
|
-
|
|
13
|
+
activeKey?: string | null;
|
|
17
14
|
}
|
|
18
15
|
/**
|
|
19
16
|
* 构件 `ai-portal.action-buttons`
|
|
@@ -21,8 +18,7 @@ export interface ActionButtonsProps {
|
|
|
21
18
|
export declare class ActionButtons extends ReactNextElement implements ActionButtonsProps {
|
|
22
19
|
#private;
|
|
23
20
|
accessor items: ActionItem[] | undefined;
|
|
24
|
-
accessor
|
|
25
|
-
setActive(key: string): void;
|
|
21
|
+
accessor activeKey: string | null | undefined;
|
|
26
22
|
render(): React.JSX.Element;
|
|
27
23
|
}
|
|
28
24
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/ai-portal",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.2",
|
|
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": "c8eafe0203c6b18b09dc3aa091aa860ea6879d18"
|
|
51
51
|
}
|