@next-bricks/visual-builder 1.36.4 → 1.36.6
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 +18 -17
- package/dist/chunks/1722.a3a496a1.js +1 -0
- package/dist/chunks/5832.77dfa23e.js +3 -0
- package/dist/chunks/5832.77dfa23e.js.map +1 -0
- package/dist/chunks/get-raw-data-system-prompts.3b2d4429.js +2 -0
- package/dist/chunks/get-raw-data-system-prompts.3b2d4429.js.map +1 -0
- package/dist/chunks/main.5a395082.js +2 -0
- package/dist/chunks/main.5a395082.js.map +1 -0
- package/dist/chunks/raw-data-preview.99a3eb75.js +3 -0
- package/dist/chunks/raw-data-preview.99a3eb75.js.map +1 -0
- package/dist/chunks/workbench-action-list.d112a973.js +2 -0
- package/dist/chunks/workbench-action-list.d112a973.js.map +1 -0
- package/dist/chunks/workbench-action.81fda224.js +3 -0
- package/dist/chunks/workbench-action.81fda224.js.map +1 -0
- package/dist/examples.json +3 -0
- package/dist/index.ec9c1d74.js +2 -0
- package/dist/index.ec9c1d74.js.map +1 -0
- package/dist/manifest.json +99 -96
- package/dist/types.json +98 -72
- package/dist-types/bootstrap.d.ts +1 -0
- package/dist-types/data-providers/get-raw-data-system-prompts.d.ts +1 -0
- package/dist-types/raw-data-preview/raw-data-interfaces.d.ts +14 -1
- package/dist-types/workbench-action/index.d.ts +1 -0
- package/dist-types/workbench-action-list/index.d.ts +1 -0
- package/docs/raw-data-preview.md +1714 -0
- package/package.json +2 -2
- package/dist/chunks/5656.fd681e1f.js +0 -3
- package/dist/chunks/5656.fd681e1f.js.map +0 -1
- package/dist/chunks/main.47d3c876.js +0 -2
- package/dist/chunks/main.47d3c876.js.map +0 -1
- package/dist/chunks/raw-data-preview.7967d51c.js +0 -3
- package/dist/chunks/raw-data-preview.7967d51c.js.map +0 -1
- package/dist/chunks/workbench-action-list.4d784167.js +0 -2
- package/dist/chunks/workbench-action-list.4d784167.js.map +0 -1
- package/dist/chunks/workbench-action.fecc0cc7.js +0 -3
- package/dist/chunks/workbench-action.fecc0cc7.js.map +0 -1
- package/dist/index.13b875d0.js +0 -2
- package/dist/index.13b875d0.js.map +0 -1
- /package/dist/chunks/{5656.fd681e1f.js.LICENSE.txt → 5832.77dfa23e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{raw-data-preview.7967d51c.js.LICENSE.txt → raw-data-preview.99a3eb75.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{workbench-action.fecc0cc7.js.LICENSE.txt → workbench-action.81fda224.js.LICENSE.txt} +0 -0
package/dist/types.json
CHANGED
|
@@ -58,50 +58,6 @@
|
|
|
58
58
|
"events": [],
|
|
59
59
|
"methods": []
|
|
60
60
|
},
|
|
61
|
-
"visual-builder.workbench-action": {
|
|
62
|
-
"properties": [
|
|
63
|
-
{
|
|
64
|
-
"name": "icon",
|
|
65
|
-
"annotation": {
|
|
66
|
-
"type": "reference",
|
|
67
|
-
"typeName": {
|
|
68
|
-
"type": "identifier",
|
|
69
|
-
"name": "GeneralIconProps"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "to",
|
|
75
|
-
"annotation": {
|
|
76
|
-
"type": "keyword",
|
|
77
|
-
"value": "string"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"name": "active",
|
|
82
|
-
"annotation": {
|
|
83
|
-
"type": "keyword",
|
|
84
|
-
"value": "boolean"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"name": "href",
|
|
89
|
-
"annotation": {
|
|
90
|
-
"type": "keyword",
|
|
91
|
-
"value": "string"
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"name": "target",
|
|
96
|
-
"annotation": {
|
|
97
|
-
"type": "keyword",
|
|
98
|
-
"value": "string"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
"events": [],
|
|
103
|
-
"methods": []
|
|
104
|
-
},
|
|
105
61
|
"visual-builder.page-arch-node": {
|
|
106
62
|
"properties": [
|
|
107
63
|
{
|
|
@@ -379,6 +335,50 @@
|
|
|
379
335
|
}
|
|
380
336
|
]
|
|
381
337
|
},
|
|
338
|
+
"visual-builder.workbench-action": {
|
|
339
|
+
"properties": [
|
|
340
|
+
{
|
|
341
|
+
"name": "icon",
|
|
342
|
+
"annotation": {
|
|
343
|
+
"type": "reference",
|
|
344
|
+
"typeName": {
|
|
345
|
+
"type": "identifier",
|
|
346
|
+
"name": "GeneralIconProps"
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"name": "to",
|
|
352
|
+
"annotation": {
|
|
353
|
+
"type": "keyword",
|
|
354
|
+
"value": "string"
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "active",
|
|
359
|
+
"annotation": {
|
|
360
|
+
"type": "keyword",
|
|
361
|
+
"value": "boolean"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"name": "href",
|
|
366
|
+
"annotation": {
|
|
367
|
+
"type": "keyword",
|
|
368
|
+
"value": "string"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "target",
|
|
373
|
+
"annotation": {
|
|
374
|
+
"type": "keyword",
|
|
375
|
+
"value": "string"
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
"events": [],
|
|
380
|
+
"methods": []
|
|
381
|
+
},
|
|
382
382
|
"visual-builder.batch-update-raw-data-generated-view": {
|
|
383
383
|
"type": "provider",
|
|
384
384
|
"params": [
|
|
@@ -583,6 +583,32 @@
|
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
},
|
|
586
|
+
"visual-builder.get-raw-data-system-prompts": {
|
|
587
|
+
"type": "provider",
|
|
588
|
+
"params": [],
|
|
589
|
+
"returns": {
|
|
590
|
+
"annotation": {
|
|
591
|
+
"type": "reference",
|
|
592
|
+
"typeName": {
|
|
593
|
+
"type": "identifier",
|
|
594
|
+
"name": "Record"
|
|
595
|
+
},
|
|
596
|
+
"typeParameters": {
|
|
597
|
+
"type": "typeParameterInstantiation",
|
|
598
|
+
"params": [
|
|
599
|
+
{
|
|
600
|
+
"type": "keyword",
|
|
601
|
+
"value": "string"
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"type": "keyword",
|
|
605
|
+
"value": "string"
|
|
606
|
+
}
|
|
607
|
+
]
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
},
|
|
586
612
|
"visual-builder.parse-path": {
|
|
587
613
|
"type": "provider",
|
|
588
614
|
"params": [
|
|
@@ -653,34 +679,6 @@
|
|
|
653
679
|
}
|
|
654
680
|
]
|
|
655
681
|
},
|
|
656
|
-
"visual-builder.pre-generated-table-view": {
|
|
657
|
-
"properties": [],
|
|
658
|
-
"events": [],
|
|
659
|
-
"methods": []
|
|
660
|
-
},
|
|
661
|
-
"visual-builder.pre-generated-container": {
|
|
662
|
-
"properties": [
|
|
663
|
-
{
|
|
664
|
-
"name": "useBrick",
|
|
665
|
-
"annotation": {
|
|
666
|
-
"type": "reference",
|
|
667
|
-
"typeName": {
|
|
668
|
-
"type": "identifier",
|
|
669
|
-
"name": "UseBrickConf"
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
"name": "dataSource",
|
|
675
|
-
"annotation": {
|
|
676
|
-
"type": "keyword",
|
|
677
|
-
"value": "unknown"
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
],
|
|
681
|
-
"events": [],
|
|
682
|
-
"methods": []
|
|
683
|
-
},
|
|
684
682
|
"visual-builder.pre-generated-preview": {
|
|
685
683
|
"properties": [
|
|
686
684
|
{
|
|
@@ -907,6 +905,34 @@
|
|
|
907
905
|
}
|
|
908
906
|
]
|
|
909
907
|
},
|
|
908
|
+
"visual-builder.pre-generated-container": {
|
|
909
|
+
"properties": [
|
|
910
|
+
{
|
|
911
|
+
"name": "useBrick",
|
|
912
|
+
"annotation": {
|
|
913
|
+
"type": "reference",
|
|
914
|
+
"typeName": {
|
|
915
|
+
"type": "identifier",
|
|
916
|
+
"name": "UseBrickConf"
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"name": "dataSource",
|
|
922
|
+
"annotation": {
|
|
923
|
+
"type": "keyword",
|
|
924
|
+
"value": "unknown"
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
],
|
|
928
|
+
"events": [],
|
|
929
|
+
"methods": []
|
|
930
|
+
},
|
|
931
|
+
"visual-builder.pre-generated-table-view": {
|
|
932
|
+
"properties": [],
|
|
933
|
+
"events": [],
|
|
934
|
+
"methods": []
|
|
935
|
+
},
|
|
910
936
|
"visual-builder.workbench-action-list": {
|
|
911
937
|
"properties": [
|
|
912
938
|
{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getRawDataSystemPrompts(): Record<string, string>;
|
|
@@ -2,7 +2,7 @@ export interface VisualConfig {
|
|
|
2
2
|
/** 视觉重量,整型,默认为 0,取值范围 [-1, 2] */
|
|
3
3
|
visualWeight: number;
|
|
4
4
|
/** 显示形式,默认为 text */
|
|
5
|
-
display: "text" | "tag" | "link" | "icon" | "
|
|
5
|
+
display: "text" | "tag" | "link" | "icon" | "icon+text";
|
|
6
6
|
/** 原始数据类型 */
|
|
7
7
|
type: "integer" | "float" | "string" | "boolean" | "enum" | "enum-list" | "struct" | "struct-list" | "date" | "date-time";
|
|
8
8
|
/** 样式设置 */
|
|
@@ -11,7 +11,12 @@ export interface VisualConfig {
|
|
|
11
11
|
ranges?: VisualRange[];
|
|
12
12
|
/** 格式化设置 */
|
|
13
13
|
formatter?: VisualFormatter;
|
|
14
|
+
/** 显示的图标 */
|
|
14
15
|
icon?: string;
|
|
16
|
+
/** 值为 true 时的显示配置 */
|
|
17
|
+
true?: VisualValueConfig;
|
|
18
|
+
/** 值为 false 时的显示配置 */
|
|
19
|
+
false?: VisualValueConfig;
|
|
15
20
|
/** 最多显示的列表项数量,当结构体列表数据降级显示时使用 */
|
|
16
21
|
maxItems?: number;
|
|
17
22
|
/** 尽显示列表类数据的数量 */
|
|
@@ -19,6 +24,14 @@ export interface VisualConfig {
|
|
|
19
24
|
/** 当结构体或结构体列表数据降级显示时,仅显示该字段值 */
|
|
20
25
|
field?: string;
|
|
21
26
|
}
|
|
27
|
+
export interface VisualValueConfig {
|
|
28
|
+
/** 显示的图标 */
|
|
29
|
+
icon?: string;
|
|
30
|
+
/** 显示的文本 */
|
|
31
|
+
text?: string;
|
|
32
|
+
/** 样式设置 */
|
|
33
|
+
style?: VisualStyle;
|
|
34
|
+
}
|
|
22
35
|
export interface VisualStyle {
|
|
23
36
|
/**
|
|
24
37
|
* 尺寸
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
|
|
3
3
|
import { ReactNextElement } from "@next-core/react-element";
|
|
4
|
+
import "./host-context.css";
|
|
4
5
|
export interface WorkbenchActionProps {
|
|
5
6
|
icon?: GeneralIconProps;
|
|
6
7
|
to?: string;
|
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import { SidebarMenuItem } from "@next-shared/general/types";
|
|
4
4
|
import { GeneralIconProps } from "@next-bricks/icons/general-icon";
|
|
5
|
+
import "./host-context.css";
|
|
5
6
|
export interface SidebarMenu {
|
|
6
7
|
title?: string;
|
|
7
8
|
icon?: GeneralIconProps;
|