@next-bricks/visual-builder 1.23.0 → 1.24.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 +6 -6
- package/dist/chunks/859.bc26cb2d.js +3 -0
- package/dist/chunks/859.bc26cb2d.js.map +1 -0
- package/dist/chunks/8850.1d30fe19.js +3 -0
- package/dist/chunks/8850.1d30fe19.js.LICENSE.txt +34 -0
- package/dist/chunks/8850.1d30fe19.js.map +1 -0
- package/dist/chunks/{9515.7f8e4c58.js → 9515.80c4b472.js} +2 -2
- package/dist/chunks/{9515.7f8e4c58.js.map → 9515.80c4b472.js.map} +1 -1
- package/dist/chunks/main.7d000bed.js +2 -0
- package/dist/chunks/{main.464ee67b.js.map → main.7d000bed.js.map} +1 -1
- package/dist/chunks/property-editor.4015f465.js +2 -0
- package/dist/chunks/property-editor.4015f465.js.map +1 -0
- package/dist/index.d2024b46.js +2 -0
- package/dist/{index.7bb34650.js.map → index.d2024b46.js.map} +1 -1
- package/dist/manifest.json +45 -29
- package/dist/types.json +259 -236
- package/dist-types/property-editor/components/common/ColorPickerComponent.d.ts +7 -0
- package/dist-types/property-editor/index.d.ts +28 -10
- package/dist-types/property-editor/utils/colorTransform.d.ts +12 -0
- package/dist-types/property-editor/utils/colorTrasnform.spec.d.ts +1 -0
- package/dist-types/property-editor/utils/formilySchemaFormatter.d.ts +2 -1
- package/package.json +2 -2
- package/dist/chunks/8091.c5adab63.js +0 -3
- package/dist/chunks/8091.c5adab63.js.LICENSE.txt +0 -54
- package/dist/chunks/8091.c5adab63.js.map +0 -1
- package/dist/chunks/9690.49e106bf.js +0 -3
- package/dist/chunks/9690.49e106bf.js.map +0 -1
- package/dist/chunks/main.464ee67b.js +0 -2
- package/dist/chunks/property-editor.19896d87.js +0 -2
- package/dist/chunks/property-editor.19896d87.js.map +0 -1
- package/dist/index.7bb34650.js +0 -2
- /package/dist/chunks/{9690.49e106bf.js.LICENSE.txt → 859.bc26cb2d.js.LICENSE.txt} +0 -0
|
@@ -7,6 +7,7 @@ import { CategoryTitle } from "./components/CategoryTitle";
|
|
|
7
7
|
import { AdvancedFormItem } from "./components/AdvancedFormItem";
|
|
8
8
|
import { CodeEditorComponent } from "./components/common/CodeEditorComponent";
|
|
9
9
|
import { IconSelectComponent } from "./components/common/IconSelectComponent";
|
|
10
|
+
import { ColorPickerComponent } from "./components/common/ColorPickerComponent";
|
|
10
11
|
import { DataNode } from "./utils/formilySchemaFormatter";
|
|
11
12
|
import "./style.css";
|
|
12
13
|
import { BrickPackage } from "@next-core/types";
|
|
@@ -14,7 +15,7 @@ declare const SchemaField: {
|
|
|
14
15
|
<Decorator extends import("@formily/react").JSXComponent, Component extends import("@formily/react").JSXComponent>(props: import("@formily/react").ISchemaFieldProps<Decorator, Component, import("@formily/core").ObjectField<Decorator, Component>>): JSX.Element;
|
|
15
16
|
displayName: string;
|
|
16
17
|
Markup: {
|
|
17
|
-
<Decorator_1 extends "CodeEditor" | "
|
|
18
|
+
<Decorator_1 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_1 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaMarkupFieldProps<{
|
|
18
19
|
FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
|
|
19
20
|
useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
20
21
|
useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
@@ -50,11 +51,12 @@ declare const SchemaField: {
|
|
|
50
51
|
CategoryTitle: typeof CategoryTitle;
|
|
51
52
|
CodeEditor: typeof CodeEditorComponent;
|
|
52
53
|
IconSelect: typeof IconSelectComponent;
|
|
54
|
+
ColorPicker: typeof ColorPickerComponent;
|
|
53
55
|
}, Component_1, Decorator_1>): JSX.Element;
|
|
54
56
|
displayName: string;
|
|
55
57
|
};
|
|
56
58
|
String: {
|
|
57
|
-
<Decorator_2 extends "CodeEditor" | "
|
|
59
|
+
<Decorator_2 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_2 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaTypeFieldProps<{
|
|
58
60
|
FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
|
|
59
61
|
useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
60
62
|
useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
@@ -90,11 +92,12 @@ declare const SchemaField: {
|
|
|
90
92
|
CategoryTitle: typeof CategoryTitle;
|
|
91
93
|
CodeEditor: typeof CodeEditorComponent;
|
|
92
94
|
IconSelect: typeof IconSelectComponent;
|
|
95
|
+
ColorPicker: typeof ColorPickerComponent;
|
|
93
96
|
}, Component_2, Decorator_2>): JSX.Element;
|
|
94
97
|
displayName: string;
|
|
95
98
|
};
|
|
96
99
|
Object: {
|
|
97
|
-
<Decorator_3 extends "CodeEditor" | "
|
|
100
|
+
<Decorator_3 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_3 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaTypeFieldProps<{
|
|
98
101
|
FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
|
|
99
102
|
useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
100
103
|
useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
@@ -130,11 +133,12 @@ declare const SchemaField: {
|
|
|
130
133
|
CategoryTitle: typeof CategoryTitle;
|
|
131
134
|
CodeEditor: typeof CodeEditorComponent;
|
|
132
135
|
IconSelect: typeof IconSelectComponent;
|
|
136
|
+
ColorPicker: typeof ColorPickerComponent;
|
|
133
137
|
}, Component_3, Decorator_3>): JSX.Element;
|
|
134
138
|
displayName: string;
|
|
135
139
|
};
|
|
136
140
|
Array: {
|
|
137
|
-
<Decorator_4 extends "CodeEditor" | "
|
|
141
|
+
<Decorator_4 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_4 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaTypeFieldProps<{
|
|
138
142
|
FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
|
|
139
143
|
useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
140
144
|
useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
@@ -170,11 +174,12 @@ declare const SchemaField: {
|
|
|
170
174
|
CategoryTitle: typeof CategoryTitle;
|
|
171
175
|
CodeEditor: typeof CodeEditorComponent;
|
|
172
176
|
IconSelect: typeof IconSelectComponent;
|
|
177
|
+
ColorPicker: typeof ColorPickerComponent;
|
|
173
178
|
}, Component_4, Decorator_4>): JSX.Element;
|
|
174
179
|
displayName: string;
|
|
175
180
|
};
|
|
176
181
|
Boolean: {
|
|
177
|
-
<Decorator_5 extends "CodeEditor" | "
|
|
182
|
+
<Decorator_5 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_5 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaTypeFieldProps<{
|
|
178
183
|
FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
|
|
179
184
|
useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
180
185
|
useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
@@ -210,11 +215,12 @@ declare const SchemaField: {
|
|
|
210
215
|
CategoryTitle: typeof CategoryTitle;
|
|
211
216
|
CodeEditor: typeof CodeEditorComponent;
|
|
212
217
|
IconSelect: typeof IconSelectComponent;
|
|
218
|
+
ColorPicker: typeof ColorPickerComponent;
|
|
213
219
|
}, Component_5, Decorator_5>): JSX.Element;
|
|
214
220
|
displayName: string;
|
|
215
221
|
};
|
|
216
222
|
Date: {
|
|
217
|
-
<Decorator_6 extends "CodeEditor" | "
|
|
223
|
+
<Decorator_6 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_6 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaTypeFieldProps<{
|
|
218
224
|
FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
|
|
219
225
|
useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
220
226
|
useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
@@ -250,11 +256,12 @@ declare const SchemaField: {
|
|
|
250
256
|
CategoryTitle: typeof CategoryTitle;
|
|
251
257
|
CodeEditor: typeof CodeEditorComponent;
|
|
252
258
|
IconSelect: typeof IconSelectComponent;
|
|
259
|
+
ColorPicker: typeof ColorPickerComponent;
|
|
253
260
|
}, Component_6, Decorator_6>): JSX.Element;
|
|
254
261
|
displayName: string;
|
|
255
262
|
};
|
|
256
263
|
DateTime: {
|
|
257
|
-
<Decorator_7 extends "CodeEditor" | "
|
|
264
|
+
<Decorator_7 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_7 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaTypeFieldProps<{
|
|
258
265
|
FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
|
|
259
266
|
useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
260
267
|
useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
@@ -290,11 +297,12 @@ declare const SchemaField: {
|
|
|
290
297
|
CategoryTitle: typeof CategoryTitle;
|
|
291
298
|
CodeEditor: typeof CodeEditorComponent;
|
|
292
299
|
IconSelect: typeof IconSelectComponent;
|
|
300
|
+
ColorPicker: typeof ColorPickerComponent;
|
|
293
301
|
}, Component_7, Decorator_7>): JSX.Element;
|
|
294
302
|
displayName: string;
|
|
295
303
|
};
|
|
296
304
|
Void: {
|
|
297
|
-
<Decorator_8 extends "CodeEditor" | "
|
|
305
|
+
<Decorator_8 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_8 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaTypeFieldProps<{
|
|
298
306
|
FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
|
|
299
307
|
useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
300
308
|
useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
@@ -330,11 +338,12 @@ declare const SchemaField: {
|
|
|
330
338
|
CategoryTitle: typeof CategoryTitle;
|
|
331
339
|
CodeEditor: typeof CodeEditorComponent;
|
|
332
340
|
IconSelect: typeof IconSelectComponent;
|
|
341
|
+
ColorPicker: typeof ColorPickerComponent;
|
|
333
342
|
}, Component_8, Decorator_8>): JSX.Element;
|
|
334
343
|
displayName: string;
|
|
335
344
|
};
|
|
336
345
|
Number: {
|
|
337
|
-
<Decorator_9 extends "CodeEditor" | "
|
|
346
|
+
<Decorator_9 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group", Component_9 extends "CodeEditor" | "FormItemWithoutAdvanced" | "FormItem" | "Input" | "Switch" | "FormLayout" | "FormCollapse" | "NumberPicker" | "Radio" | "Select" | "CategoryTitle" | "IconSelect" | "ColorPicker" | "FormCollapse.CollapsePanel" | "FormItemWithoutAdvanced.BaseItem" | "Input.TextArea" | "Switch.$$typeof" | "FormLayout.useFormLayout" | "FormLayout.useFormDeepLayout" | "FormLayout.useFormShallowLayout" | "FormCollapse.createFormCollapse" | "NumberPicker.$$typeof" | "Radio.$$typeof" | "Radio.__ANT_RADIO" | "Radio.Group">(props: import("@formily/react").ISchemaTypeFieldProps<{
|
|
338
347
|
FormLayout: React.FC<React.PropsWithChildren<import("@formily/antd-v5").IFormLayoutProps>> & {
|
|
339
348
|
useFormLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
340
349
|
useFormDeepLayout: () => import("@formily/antd-v5").IFormLayoutContext;
|
|
@@ -370,6 +379,7 @@ declare const SchemaField: {
|
|
|
370
379
|
CategoryTitle: typeof CategoryTitle;
|
|
371
380
|
CodeEditor: typeof CodeEditorComponent;
|
|
372
381
|
IconSelect: typeof IconSelectComponent;
|
|
382
|
+
ColorPicker: typeof ColorPickerComponent;
|
|
373
383
|
}, Component_9, Decorator_9>): JSX.Element;
|
|
374
384
|
displayName: string;
|
|
375
385
|
};
|
|
@@ -391,6 +401,9 @@ export interface EditorComponentProps {
|
|
|
391
401
|
scope: {
|
|
392
402
|
advancedMode: boolean;
|
|
393
403
|
dataList: DataItem[];
|
|
404
|
+
extraLibs: any;
|
|
405
|
+
links: any;
|
|
406
|
+
tokenClick: (token: string) => void;
|
|
394
407
|
};
|
|
395
408
|
}
|
|
396
409
|
export interface DefinitionItem {
|
|
@@ -419,6 +432,8 @@ export declare class PropertyEditor extends ReactNextElement {
|
|
|
419
432
|
accessor advancedMode: boolean | undefined;
|
|
420
433
|
accessor dataList: DataItem[];
|
|
421
434
|
accessor editorPackages: BrickPackage[];
|
|
435
|
+
accessor links: any;
|
|
436
|
+
accessor extraLibs: any;
|
|
422
437
|
validate(): void;
|
|
423
438
|
render(): React.JSX.Element;
|
|
424
439
|
}
|
|
@@ -427,8 +442,11 @@ export interface PropertyEditorProps {
|
|
|
427
442
|
editorName: string;
|
|
428
443
|
advancedMode?: boolean;
|
|
429
444
|
dataList: DataItem[];
|
|
445
|
+
extraLibs: any;
|
|
446
|
+
links: any;
|
|
430
447
|
editorPackages: BrickPackage[];
|
|
431
448
|
handleValuesChange: (value: any) => void;
|
|
449
|
+
handleTokenClick: (token: string) => void;
|
|
432
450
|
onSubmitEffect: (listener: (value: any, form: Form) => any) => void;
|
|
433
451
|
}
|
|
434
|
-
export declare function LegacyPropertyEditor({ advancedMode, values, editorName, dataList, editorPackages, handleValuesChange, onSubmitEffect, }: PropertyEditorProps, ref: any): React.JSX.Element;
|
|
452
|
+
export declare function LegacyPropertyEditor({ advancedMode, values, editorName, dataList, editorPackages, extraLibs, links, handleValuesChange, handleTokenClick, onSubmitEffect, }: PropertyEditorProps, ref: any): React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ColorPickerProps } from "antd";
|
|
2
|
+
export type Presets = Required<ColorPickerProps>["presets"];
|
|
3
|
+
export type ColorItem = {
|
|
4
|
+
metaColor: {
|
|
5
|
+
format?: string;
|
|
6
|
+
originalInput: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const presets: import("antd/es/color-picker/interface").PresetsItem[];
|
|
10
|
+
export declare const compressPresets: (presets: Presets) => Presets;
|
|
11
|
+
export declare const trasnformColorToCssVariables: (presets: Presets, color: string) => string;
|
|
12
|
+
export declare const transformCssVariablesToColor: (presets: Presets, color: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ISchema } from "@formily/react";
|
|
2
|
+
export declare const NORMAL_FORM_KEY = "#normal_form";
|
|
2
3
|
export declare const ADVANCED_FORM_KEY = "#advanced_form";
|
|
3
4
|
type ComponentType = string | {
|
|
4
5
|
name: string;
|
|
@@ -14,5 +15,5 @@ export interface DataNode {
|
|
|
14
15
|
children?: DataNode[];
|
|
15
16
|
[k: string]: any;
|
|
16
17
|
}
|
|
17
|
-
export declare function formilySchemaFormatter(data: DataNode
|
|
18
|
+
export declare function formilySchemaFormatter(data: DataNode): ISchema;
|
|
18
19
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/visual-builder",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.24.0",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/visual-builder",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"@next-bricks/icons": "*",
|
|
45
45
|
"@next-bricks/vs": "*"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "a5e9dc77226ee4068fe3c91a0c5bd14410df7600"
|
|
48
48
|
}
|