@pixpilot/formily-shadcn 1.14.2 → 1.15.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/components/array-base/mcp.js +53 -0
- package/dist/components/array-cards/Item.cjs +2 -3
- package/dist/components/array-cards/Item.js +2 -3
- package/dist/components/array-cards/mcp.js +54 -0
- package/dist/components/array-collapse/Item.cjs +2 -3
- package/dist/components/array-collapse/Item.js +2 -3
- package/dist/components/array-collapse/mcp.js +55 -0
- package/dist/components/array-common/ArrayItemDraftFields.cjs +1 -15
- package/dist/components/array-common/ArrayItemDraftFields.js +1 -15
- package/dist/components/array-common/ListItem.cjs +20 -30
- package/dist/components/array-common/ListItem.js +20 -30
- package/dist/components/array-common/array-mcp-props.js +26 -0
- package/dist/components/array-common/index.cjs +1 -0
- package/dist/components/array-common/index.js +1 -0
- package/dist/components/array-common/use-array-item-wrapper-props.cjs +35 -0
- package/dist/components/array-common/use-array-item-wrapper-props.js +32 -0
- package/dist/components/array-dialog/mcp.js +58 -0
- package/dist/components/array-inline/Item.cjs +2 -3
- package/dist/components/array-inline/Item.js +2 -3
- package/dist/components/array-inline/mcp.js +46 -0
- package/dist/components/array-popover/mcp.js +52 -0
- package/dist/components/array-sortable/mcp.js +44 -0
- package/dist/components/array-tags/mcp.js +70 -0
- package/dist/components/array-toggle-group/mcp.js +53 -0
- package/dist/components/{Checkbox.cjs → checkbox/Checkbox.cjs} +3 -3
- package/dist/components/checkbox/Checkbox.d.cts +12 -0
- package/dist/components/checkbox/Checkbox.d.ts +12 -0
- package/dist/components/{Checkbox.js → checkbox/Checkbox.js} +2 -2
- package/dist/components/checkbox/index.cjs +1 -0
- package/dist/components/checkbox/index.d.cts +1 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/checkbox/mcp.js +41 -0
- package/dist/components/color-picker/mcp.js +59 -0
- package/dist/components/{ColorSelect.cjs → color-select/ColorSelect.cjs} +2 -2
- package/dist/components/color-select/ColorSelect.d.cts +7 -0
- package/dist/components/color-select/ColorSelect.d.ts +7 -0
- package/dist/components/{ColorSelect.js → color-select/ColorSelect.js} +1 -1
- package/dist/components/color-select/index.cjs +1 -0
- package/dist/components/color-select/index.d.cts +1 -0
- package/dist/components/color-select/index.d.ts +1 -0
- package/dist/components/color-select/index.js +1 -0
- package/dist/components/color-select/mcp.js +46 -0
- package/dist/components/{Column.cjs → column/Column.cjs} +2 -2
- package/dist/components/{Column.d.cts → column/Column.d.cts} +2 -2
- package/dist/components/{Column.d.ts → column/Column.d.ts} +2 -2
- package/dist/components/{Column.js → column/Column.js} +1 -1
- package/dist/components/column/index.cjs +1 -0
- package/dist/components/column/index.d.cts +1 -0
- package/dist/components/column/index.d.ts +1 -0
- package/dist/components/column/index.js +1 -0
- package/dist/components/column/mcp.js +36 -0
- package/dist/components/{Combobox.cjs → combobox/Combobox.cjs} +2 -2
- package/dist/components/combobox/Combobox.d.cts +7 -0
- package/dist/components/combobox/Combobox.d.ts +7 -0
- package/dist/components/{Combobox.js → combobox/Combobox.js} +1 -1
- package/dist/components/combobox/index.cjs +1 -0
- package/dist/components/combobox/index.d.cts +1 -0
- package/dist/components/combobox/index.d.ts +1 -0
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/combobox/mcp.js +48 -0
- package/dist/components/{DatePicker.cjs → date-picker/DatePicker.cjs} +2 -2
- package/dist/components/{DatePicker.d.cts → date-picker/DatePicker.d.cts} +5 -4
- package/dist/components/{DatePicker.d.ts → date-picker/DatePicker.d.ts} +5 -4
- package/dist/components/{DatePicker.js → date-picker/DatePicker.js} +1 -1
- package/dist/components/date-picker/index.cjs +1 -0
- package/dist/components/date-picker/index.d.cts +1 -0
- package/dist/components/date-picker/index.d.ts +1 -0
- package/dist/components/date-picker/index.js +1 -0
- package/dist/components/date-picker/mcp.js +104 -0
- package/dist/components/file-upload/mcp.js +62 -0
- package/dist/components/{Form.cjs → form/Form.cjs} +6 -5
- package/dist/components/{Form.d.cts → form/Form.d.cts} +4 -4
- package/dist/components/{Form.d.ts → form/Form.d.ts} +4 -4
- package/dist/components/{Form.js → form/Form.js} +5 -4
- package/dist/components/form/index.cjs +1 -0
- package/dist/components/form/index.d.cts +1 -0
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/form/index.js +1 -0
- package/dist/components/form/mcp.js +31 -0
- package/dist/components/{FormGrid.cjs → form-grid/FormGrid.cjs} +2 -2
- package/dist/components/{FormGrid.d.cts → form-grid/FormGrid.d.cts} +2 -2
- package/dist/components/{FormGrid.d.ts → form-grid/FormGrid.d.ts} +2 -2
- package/dist/components/{FormGrid.js → form-grid/FormGrid.js} +1 -1
- package/dist/components/form-grid/index.cjs +1 -0
- package/dist/components/form-grid/index.d.cts +1 -0
- package/dist/components/form-grid/index.d.ts +1 -0
- package/dist/components/form-grid/index.js +1 -0
- package/dist/components/form-grid/mcp.js +35 -0
- package/dist/components/form-item/ConnectedFormItem.d.cts +4 -4
- package/dist/components/form-item/ConnectedFormItem.d.ts +4 -4
- package/dist/components/form-item/mcp.js +46 -0
- package/dist/components/{FormItemContainer.cjs → form-item-container/FormItemContainer.cjs} +5 -5
- package/dist/components/{FormItemContainer.js → form-item-container/FormItemContainer.js} +4 -4
- package/dist/components/form-item-container/index.cjs +1 -0
- package/dist/components/form-item-container/index.js +1 -0
- package/dist/components/form-item-container/mcp.js +36 -0
- package/dist/components/{Hidden.cjs → hidden/Hidden.cjs} +2 -2
- package/dist/components/hidden/Hidden.d.cts +9 -0
- package/dist/components/hidden/Hidden.d.ts +9 -0
- package/dist/components/{Hidden.js → hidden/Hidden.js} +1 -1
- package/dist/components/hidden/index.cjs +1 -0
- package/dist/components/hidden/index.d.cts +1 -0
- package/dist/components/hidden/index.d.ts +1 -0
- package/dist/components/hidden/index.js +1 -0
- package/dist/components/hidden/mcp.js +36 -0
- package/dist/components/{IconPicker.cjs → icon-picker/IconPicker.cjs} +4 -4
- package/dist/components/{IconPicker.d.cts → icon-picker/IconPicker.d.cts} +7 -7
- package/dist/components/icon-picker/IconPicker.d.ts +15 -0
- package/dist/components/{IconPicker.js → icon-picker/IconPicker.js} +3 -3
- package/dist/components/icon-picker/index.cjs +1 -0
- package/dist/components/icon-picker/index.d.cts +1 -0
- package/dist/components/icon-picker/index.d.ts +1 -0
- package/dist/components/icon-picker/index.js +1 -0
- package/dist/components/icon-picker/mcp.js +48 -0
- package/dist/components/{IconToggle.cjs → icon-toggle/IconToggle.cjs} +3 -3
- package/dist/components/icon-toggle/IconToggle.d.cts +12 -0
- package/dist/components/icon-toggle/IconToggle.d.ts +12 -0
- package/dist/components/{IconToggle.js → icon-toggle/IconToggle.js} +2 -2
- package/dist/components/icon-toggle/index.cjs +1 -0
- package/dist/components/icon-toggle/index.d.cts +1 -0
- package/dist/components/icon-toggle/index.d.ts +1 -0
- package/dist/components/icon-toggle/index.js +1 -0
- package/dist/components/icon-toggle/mcp.js +45 -0
- package/dist/components/{Input.cjs → input/Input.cjs} +2 -2
- package/dist/components/input/Input.d.cts +12 -0
- package/dist/components/input/Input.d.ts +12 -0
- package/dist/components/{Input.js → input/Input.js} +1 -1
- package/dist/components/input/index.cjs +1 -0
- package/dist/components/input/index.d.cts +1 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/input/index.js +1 -0
- package/dist/components/input/mcp.js +41 -0
- package/dist/components/json-schema-form-renderer/JsonSchemaFormRenderer.cjs +2 -1
- package/dist/components/json-schema-form-renderer/JsonSchemaFormRenderer.js +2 -1
- package/dist/components/json-schema-form-renderer/mcp.js +43 -0
- package/dist/components/json-schema-form-renderer/types.d.cts +2 -1
- package/dist/components/json-schema-form-renderer/types.d.ts +2 -1
- package/dist/components/number/NumberInput.d.cts +5 -9
- package/dist/components/number/NumberInput.d.ts +5 -9
- package/dist/components/number/index.d.cts +1 -1
- package/dist/components/number/index.d.ts +1 -1
- package/dist/components/number/mcp.js +40 -0
- package/dist/components/{ObjectContainer.cjs → object-container/ObjectContainer.cjs} +9 -8
- package/dist/components/{ObjectContainer.d.cts → object-container/ObjectContainer.d.cts} +2 -2
- package/dist/components/{ObjectContainer.d.ts → object-container/ObjectContainer.d.ts} +2 -2
- package/dist/components/{ObjectContainer.js → object-container/ObjectContainer.js} +8 -7
- package/dist/components/object-container/index.cjs +1 -0
- package/dist/components/object-container/index.js +1 -0
- package/dist/components/object-container/mcp.js +41 -0
- package/dist/components/{Radio.cjs → radio/Radio.cjs} +2 -2
- package/dist/components/{Radio.d.cts → radio/Radio.d.cts} +5 -5
- package/dist/components/{Radio.d.ts → radio/Radio.d.ts} +5 -5
- package/dist/components/{Radio.js → radio/Radio.js} +1 -1
- package/dist/components/radio/index.cjs +1 -0
- package/dist/components/radio/index.d.cts +1 -0
- package/dist/components/radio/index.d.ts +1 -0
- package/dist/components/radio/index.js +1 -0
- package/dist/components/radio/mcp.js +45 -0
- package/dist/components/{Rating.cjs → rating/Rating.cjs} +2 -2
- package/dist/components/rating/Rating.d.cts +12 -0
- package/dist/components/rating/Rating.d.ts +12 -0
- package/dist/components/{Rating.js → rating/Rating.js} +1 -1
- package/dist/components/rating/index.cjs +1 -0
- package/dist/components/rating/index.d.cts +1 -0
- package/dist/components/rating/index.d.ts +1 -0
- package/dist/components/rating/index.js +1 -0
- package/dist/components/rating/mcp.js +47 -0
- package/dist/components/{RichTextEditor.cjs → rich-text-editor/RichTextEditor.cjs} +4 -4
- package/dist/components/rich-text-editor/RichTextEditor.d.cts +7 -0
- package/dist/components/rich-text-editor/RichTextEditor.d.ts +7 -0
- package/dist/components/{RichTextEditor.js → rich-text-editor/RichTextEditor.js} +3 -3
- package/dist/components/rich-text-editor/index.cjs +1 -0
- package/dist/components/rich-text-editor/index.d.cts +1 -0
- package/dist/components/rich-text-editor/index.d.ts +1 -0
- package/dist/components/rich-text-editor/index.js +1 -0
- package/dist/components/rich-text-editor/mcp.js +49 -0
- package/dist/components/{Row.cjs → row/Row.cjs} +2 -2
- package/dist/components/{Row.d.cts → row/Row.d.cts} +2 -2
- package/dist/components/{Row.d.ts → row/Row.d.ts} +2 -2
- package/dist/components/{Row.js → row/Row.js} +1 -1
- package/dist/components/row/index.cjs +1 -0
- package/dist/components/row/index.d.cts +1 -0
- package/dist/components/row/index.d.ts +1 -0
- package/dist/components/row/index.js +1 -0
- package/dist/components/row/mcp.js +36 -0
- package/dist/components/schema-field/index.d.cts +1 -1
- package/dist/components/schema-field/index.d.ts +1 -1
- package/dist/components/schema-field/mcp.js +61 -0
- package/dist/components/schema-field/schema-field-basics.cjs +32 -16
- package/dist/components/schema-field/schema-field-basics.d.cts +282 -437
- package/dist/components/schema-field/schema-field-basics.d.ts +285 -440
- package/dist/components/schema-field/schema-field-basics.js +32 -16
- package/dist/components/schema-field/schema-field-extended.cjs +4 -2
- package/dist/components/schema-field/schema-field-extended.d.cts +435 -632
- package/dist/components/schema-field/schema-field-extended.d.ts +435 -632
- package/dist/components/schema-field/schema-field-extended.js +4 -2
- package/dist/components/schema-field/schema-field.cjs +8 -4
- package/dist/components/schema-field/schema-field.d.cts +371 -548
- package/dist/components/schema-field/schema-field.d.ts +374 -551
- package/dist/components/schema-field/schema-field.js +8 -4
- package/dist/components/{Select.cjs → select/Select.cjs} +3 -3
- package/dist/components/select/Select.d.cts +20 -0
- package/dist/components/select/Select.d.ts +20 -0
- package/dist/components/{Select.js → select/Select.js} +2 -2
- package/dist/components/select/index.cjs +1 -0
- package/dist/components/select/index.d.cts +1 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/select/mcp.js +49 -0
- package/dist/components/{Separator.cjs → separator/Separator.cjs} +2 -2
- package/dist/components/separator/Separator.d.cts +12 -0
- package/dist/components/separator/Separator.d.ts +12 -0
- package/dist/components/{Separator.js → separator/Separator.js} +1 -1
- package/dist/components/separator/index.cjs +1 -0
- package/dist/components/separator/index.d.cts +1 -0
- package/dist/components/separator/index.d.ts +1 -0
- package/dist/components/separator/index.js +1 -0
- package/dist/components/separator/mcp.js +40 -0
- package/dist/components/slider/Slider.d.cts +5 -4
- package/dist/components/slider/Slider.d.ts +5 -4
- package/dist/components/slider/SliderInput.d.cts +3 -3
- package/dist/components/slider/SliderInput.d.ts +3 -3
- package/dist/components/slider/SliderSelect.d.cts +4 -3
- package/dist/components/slider/SliderSelect.d.ts +4 -3
- package/dist/components/slider/index.d.cts +1 -1
- package/dist/components/slider/index.d.ts +1 -1
- package/dist/components/slider/mcp.js +50 -0
- package/dist/components/{Switch.cjs → switch/Switch.cjs} +3 -3
- package/dist/components/switch/Switch.d.cts +12 -0
- package/dist/components/switch/Switch.d.ts +12 -0
- package/dist/components/{Switch.js → switch/Switch.js} +2 -2
- package/dist/components/switch/index.cjs +1 -0
- package/dist/components/switch/index.d.cts +1 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/switch/index.js +1 -0
- package/dist/components/switch/mcp.js +41 -0
- package/dist/components/{TagsInputInline.cjs → tags-input-inline/TagsInputInline.cjs} +2 -2
- package/dist/components/tags-input-inline/TagsInputInline.d.cts +15 -0
- package/dist/components/tags-input-inline/TagsInputInline.d.ts +15 -0
- package/dist/components/{TagsInputInline.js → tags-input-inline/TagsInputInline.js} +1 -1
- package/dist/components/tags-input-inline/index.cjs +1 -0
- package/dist/components/tags-input-inline/index.d.cts +1 -0
- package/dist/components/tags-input-inline/index.d.ts +1 -0
- package/dist/components/tags-input-inline/index.js +1 -0
- package/dist/components/tags-input-inline/mcp.js +54 -0
- package/dist/components/{Textarea.cjs → textarea/Textarea.cjs} +2 -2
- package/dist/components/textarea/Textarea.d.cts +11 -0
- package/dist/components/textarea/Textarea.d.ts +11 -0
- package/dist/components/{Textarea.js → textarea/Textarea.js} +1 -1
- package/dist/components/textarea/index.cjs +1 -0
- package/dist/components/textarea/index.d.cts +1 -0
- package/dist/components/textarea/index.d.ts +1 -0
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/textarea/mcp.js +36 -0
- package/dist/components/{ToggleButton.cjs → toggle-button/ToggleButton.cjs} +3 -3
- package/dist/components/toggle-button/ToggleButton.d.cts +12 -0
- package/dist/components/toggle-button/ToggleButton.d.ts +12 -0
- package/dist/components/{ToggleButton.js → toggle-button/ToggleButton.js} +2 -2
- package/dist/components/toggle-button/index.cjs +1 -0
- package/dist/components/toggle-button/index.d.cts +1 -0
- package/dist/components/toggle-button/index.d.ts +1 -0
- package/dist/components/toggle-button/index.js +1 -0
- package/dist/components/toggle-button/mcp.js +45 -0
- package/dist/components/{ToggleGroup.cjs → toggle-group/ToggleGroup.cjs} +5 -4
- package/dist/components/{ToggleGroup.d.cts → toggle-group/ToggleGroup.d.cts} +2 -2
- package/dist/components/{ToggleGroup.d.ts → toggle-group/ToggleGroup.d.ts} +2 -2
- package/dist/components/{ToggleGroup.js → toggle-group/ToggleGroup.js} +3 -3
- package/dist/components/toggle-group/index.cjs +1 -0
- package/dist/components/toggle-group/index.d.cts +1 -0
- package/dist/components/toggle-group/index.d.ts +1 -0
- package/dist/components/toggle-group/index.js +1 -0
- package/dist/components/toggle-group/mcp.js +52 -0
- package/dist/generated/mcp-registry.js +95 -0
- package/dist/index.cjs +44 -22
- package/dist/index.d.cts +46 -25
- package/dist/index.d.ts +46 -25
- package/dist/index.js +44 -22
- package/dist/mcp/src/search.js +81 -0
- package/dist/mcp/src/server.js +72 -0
- package/dist/mcp/src/utils.js +8 -0
- package/dist/mcp-server.js +18 -0
- package/package.json +11 -3
- package/dist/components/Checkbox.d.cts +0 -11
- package/dist/components/Checkbox.d.ts +0 -11
- package/dist/components/ColorSelect.d.cts +0 -6
- package/dist/components/ColorSelect.d.ts +0 -6
- package/dist/components/Combobox.d.cts +0 -6
- package/dist/components/Combobox.d.ts +0 -6
- package/dist/components/IconPicker.d.ts +0 -15
- package/dist/components/IconToggle.d.cts +0 -11
- package/dist/components/IconToggle.d.ts +0 -11
- package/dist/components/Input.d.cts +0 -17
- package/dist/components/Input.d.ts +0 -17
- package/dist/components/Rating.d.cts +0 -13
- package/dist/components/Rating.d.ts +0 -13
- package/dist/components/RichTextEditor.d.cts +0 -6
- package/dist/components/RichTextEditor.d.ts +0 -6
- package/dist/components/Select.d.cts +0 -6
- package/dist/components/Select.d.ts +0 -6
- package/dist/components/Separator.d.cts +0 -11
- package/dist/components/Separator.d.ts +0 -11
- package/dist/components/Switch.d.cts +0 -11
- package/dist/components/Switch.d.ts +0 -11
- package/dist/components/TagsInputInline.d.cts +0 -15
- package/dist/components/TagsInputInline.d.ts +0 -15
- package/dist/components/Textarea.d.cts +0 -9
- package/dist/components/Textarea.d.ts +0 -9
- package/dist/components/ToggleButton.d.cts +0 -11
- package/dist/components/ToggleButton.d.ts +0 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Column } from "./Column.js";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineProps } from "../../mcp/src/utils.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/column/mcp.ts
|
|
4
|
+
const meta = {
|
|
5
|
+
name: "Column",
|
|
6
|
+
category: "Formily Layout",
|
|
7
|
+
description: "A layout wrapper for placing Formily fields inside a responsive column.",
|
|
8
|
+
htmlElement: "div",
|
|
9
|
+
props: defineProps({}),
|
|
10
|
+
examples: [{
|
|
11
|
+
title: "Declarative schema field",
|
|
12
|
+
code: `<SchemaField.String name="column" title="Column" x-decorator="FormItem" x-component="Column" />`
|
|
13
|
+
}, {
|
|
14
|
+
title: "JSON schema for form renderer",
|
|
15
|
+
code: `{
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
column: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
title: 'Column',
|
|
21
|
+
'x-decorator': 'FormItem',
|
|
22
|
+
'x-component': 'Column',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
}`
|
|
26
|
+
}],
|
|
27
|
+
keywords: [
|
|
28
|
+
"formily",
|
|
29
|
+
"layout",
|
|
30
|
+
"column",
|
|
31
|
+
"grid"
|
|
32
|
+
]
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
//#endregion
|
|
36
|
+
export { meta };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
const require_rolldown_runtime = require('
|
|
4
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
5
|
let __formily_react = require("@formily/react");
|
|
6
6
|
__formily_react = require_rolldown_runtime.__toESM(__formily_react);
|
|
7
7
|
let __pixpilot_shadcn_ui = require("@pixpilot/shadcn-ui");
|
|
8
8
|
__pixpilot_shadcn_ui = require_rolldown_runtime.__toESM(__pixpilot_shadcn_ui);
|
|
9
9
|
|
|
10
|
-
//#region src/components/Combobox.tsx
|
|
10
|
+
//#region src/components/combobox/Combobox.tsx
|
|
11
11
|
const Combobox = (0, __formily_react.connect)(__pixpilot_shadcn_ui.Combobox, (0, __formily_react.mapProps)({ dataSource: "options" }));
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { connect, mapProps } from "@formily/react";
|
|
5
5
|
import { Combobox } from "@pixpilot/shadcn-ui";
|
|
6
6
|
|
|
7
|
-
//#region src/components/Combobox.tsx
|
|
7
|
+
//#region src/components/combobox/Combobox.tsx
|
|
8
8
|
const Combobox$1 = connect(Combobox, mapProps({ dataSource: "options" }));
|
|
9
9
|
|
|
10
10
|
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_Combobox = require('./Combobox.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Combobox } from "./Combobox.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Combobox } from "./Combobox.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Combobox } from "./Combobox.js";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineProps } from "../../mcp/src/utils.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/combobox/mcp.ts
|
|
4
|
+
const meta = {
|
|
5
|
+
name: "Combobox",
|
|
6
|
+
category: "Formily Inputs",
|
|
7
|
+
description: "A Formily-connected searchable select input that maps dataSource to combobox options.",
|
|
8
|
+
htmlElement: "button",
|
|
9
|
+
props: defineProps({
|
|
10
|
+
label: "Label content or accessible label for the component.",
|
|
11
|
+
filter: "Forwarded to the underlying UI component.",
|
|
12
|
+
options: "Options supplied directly or resolved from schema enum/dataSource.",
|
|
13
|
+
placeholder: "Placeholder text shown before a value is selected or entered.",
|
|
14
|
+
asChild: "Renders behavior through the child element instead of the default element.",
|
|
15
|
+
loop: "Forwarded to the underlying UI component.",
|
|
16
|
+
emptyText: "Forwarded to the underlying UI component.",
|
|
17
|
+
shouldFilter: "Forwarded to the underlying UI component.",
|
|
18
|
+
disablePointerSelection: "Forwarded to the underlying UI component.",
|
|
19
|
+
vimBindings: "Forwarded to the underlying UI component.",
|
|
20
|
+
searchPlaceholder: "Forwarded to the underlying UI component."
|
|
21
|
+
}),
|
|
22
|
+
examples: [{
|
|
23
|
+
title: "Declarative schema field",
|
|
24
|
+
code: `<SchemaField.String name="combobox" title="Combobox" x-decorator="FormItem" x-component="Combobox" />`
|
|
25
|
+
}, {
|
|
26
|
+
title: "JSON schema for form renderer",
|
|
27
|
+
code: `{
|
|
28
|
+
type: 'object',
|
|
29
|
+
properties: {
|
|
30
|
+
combobox: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
title: 'Combobox',
|
|
33
|
+
'x-decorator': 'FormItem',
|
|
34
|
+
'x-component': 'Combobox',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
}`
|
|
38
|
+
}],
|
|
39
|
+
keywords: [
|
|
40
|
+
"formily",
|
|
41
|
+
"combobox",
|
|
42
|
+
"select",
|
|
43
|
+
"search"
|
|
44
|
+
]
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
export { meta };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
const require_rolldown_runtime = require('
|
|
4
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
5
5
|
let __formily_react = require("@formily/react");
|
|
6
6
|
__formily_react = require_rolldown_runtime.__toESM(__formily_react);
|
|
7
7
|
let __pixpilot_shadcn_ui = require("@pixpilot/shadcn-ui");
|
|
@@ -9,7 +9,7 @@ __pixpilot_shadcn_ui = require_rolldown_runtime.__toESM(__pixpilot_shadcn_ui);
|
|
|
9
9
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
11
11
|
|
|
12
|
-
//#region src/components/DatePicker.tsx
|
|
12
|
+
//#region src/components/date-picker/DatePicker.tsx
|
|
13
13
|
/**
|
|
14
14
|
* Formily-connected Date Picker component
|
|
15
15
|
* Displays a date picker with calendar popup
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react0 from "react";
|
|
2
2
|
import { DatePickerProps } from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
|
-
//#region src/components/DatePicker.d.ts
|
|
5
|
-
|
|
4
|
+
//#region src/components/date-picker/DatePicker.d.ts
|
|
5
|
+
|
|
6
|
+
declare const DatePicker: react0.ForwardRefExoticComponent<Partial<{
|
|
6
7
|
value?: Date;
|
|
7
8
|
onChange?: (date: Date | undefined) => void;
|
|
8
9
|
placeholder?: string;
|
|
9
|
-
} & Omit<DatePickerProps, "onSelect" | "selected" | "mode">> &
|
|
10
|
+
} & Omit<DatePickerProps, "onSelect" | "selected" | "mode">> & react0.RefAttributes<unknown>>;
|
|
10
11
|
//#endregion
|
|
11
12
|
export { DatePicker };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react0 from "react";
|
|
2
2
|
import { DatePickerProps } from "@pixpilot/shadcn-ui";
|
|
3
3
|
|
|
4
|
-
//#region src/components/DatePicker.d.ts
|
|
5
|
-
|
|
4
|
+
//#region src/components/date-picker/DatePicker.d.ts
|
|
5
|
+
|
|
6
|
+
declare const DatePicker$1: react0.ForwardRefExoticComponent<Partial<{
|
|
6
7
|
value?: Date;
|
|
7
8
|
onChange?: (date: Date | undefined) => void;
|
|
8
9
|
placeholder?: string;
|
|
9
|
-
} & Omit<DatePickerProps, "onSelect" | "selected" | "mode">> &
|
|
10
|
+
} & Omit<DatePickerProps, "onSelect" | "selected" | "mode">> & react0.RefAttributes<unknown>>;
|
|
10
11
|
//#endregion
|
|
11
12
|
export { DatePicker$1 as DatePicker };
|
|
@@ -5,7 +5,7 @@ import { connect, mapProps } from "@formily/react";
|
|
|
5
5
|
import { DatePicker } from "@pixpilot/shadcn-ui";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
|
-
//#region src/components/DatePicker.tsx
|
|
8
|
+
//#region src/components/date-picker/DatePicker.tsx
|
|
9
9
|
/**
|
|
10
10
|
* Formily-connected Date Picker component
|
|
11
11
|
* Displays a date picker with calendar popup
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_DatePicker = require('./DatePicker.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { DatePicker } from "./DatePicker.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { DatePicker } from "./DatePicker.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { DatePicker } from "./DatePicker.js";
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { defineProps } from "../../mcp/src/utils.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/date-picker/mcp.ts
|
|
4
|
+
const meta = {
|
|
5
|
+
name: "DatePicker",
|
|
6
|
+
category: "Formily Inputs",
|
|
7
|
+
description: "A Formily-connected date picker field for selecting a single date value.",
|
|
8
|
+
htmlElement: "button",
|
|
9
|
+
props: defineProps({
|
|
10
|
+
footer: "Forwarded to the underlying UI component.",
|
|
11
|
+
animate: "Forwarded to the underlying UI component.",
|
|
12
|
+
components: "Forwarded to the underlying UI component.",
|
|
13
|
+
required: "Marks the control as required for accessibility and UI state.",
|
|
14
|
+
placeholder: "Placeholder text shown before a value is selected or entered.",
|
|
15
|
+
classNames: "Forwarded to the underlying UI component.",
|
|
16
|
+
modifiersClassNames: "Forwarded to the underlying UI component.",
|
|
17
|
+
styles: "Forwarded to the underlying UI component.",
|
|
18
|
+
modifiersStyles: "Forwarded to the underlying UI component.",
|
|
19
|
+
defaultMonth: "Forwarded to the underlying UI component.",
|
|
20
|
+
month: "Forwarded to the underlying UI component.",
|
|
21
|
+
numberOfMonths: "Forwarded to the underlying UI component.",
|
|
22
|
+
startMonth: "Forwarded to the underlying UI component.",
|
|
23
|
+
fromDate: "Forwarded to the underlying UI component.",
|
|
24
|
+
fromMonth: "Forwarded to the underlying UI component.",
|
|
25
|
+
fromYear: "Forwarded to the underlying UI component.",
|
|
26
|
+
endMonth: "Forwarded to the underlying UI component.",
|
|
27
|
+
toDate: "Forwarded to the underlying UI component.",
|
|
28
|
+
toMonth: "Forwarded to the underlying UI component.",
|
|
29
|
+
toYear: "Forwarded to the underlying UI component.",
|
|
30
|
+
pagedNavigation: "Forwarded to the underlying UI component.",
|
|
31
|
+
reverseMonths: "Forwarded to the underlying UI component.",
|
|
32
|
+
hideNavigation: "Forwarded to the underlying UI component.",
|
|
33
|
+
disableNavigation: "Forwarded to the underlying UI component.",
|
|
34
|
+
captionLayout: "Forwarded to the underlying UI component.",
|
|
35
|
+
reverseYears: "Forwarded to the underlying UI component.",
|
|
36
|
+
navLayout: "Forwarded to the underlying UI component.",
|
|
37
|
+
fixedWeeks: "Forwarded to the underlying UI component.",
|
|
38
|
+
hideWeekdays: "Forwarded to the underlying UI component.",
|
|
39
|
+
showOutsideDays: "Forwarded to the underlying UI component.",
|
|
40
|
+
showWeekNumber: "Forwarded to the underlying UI component.",
|
|
41
|
+
broadcastCalendar: "Forwarded to the underlying UI component.",
|
|
42
|
+
ISOWeek: "Forwarded to the underlying UI component.",
|
|
43
|
+
timeZone: "Forwarded to the underlying UI component.",
|
|
44
|
+
noonSafe: "Forwarded to the underlying UI component.",
|
|
45
|
+
initialFocus: "Forwarded to the underlying UI component.",
|
|
46
|
+
today: "Forwarded to the underlying UI component.",
|
|
47
|
+
modifiers: "Forwarded to the underlying UI component.",
|
|
48
|
+
labels: "Forwarded to the underlying UI component.",
|
|
49
|
+
formatters: "Forwarded to the underlying UI component.",
|
|
50
|
+
locale: "Forwarded to the underlying UI component.",
|
|
51
|
+
numerals: "Forwarded to the underlying UI component.",
|
|
52
|
+
weekStartsOn: "Forwarded to the underlying UI component.",
|
|
53
|
+
firstWeekContainsDate: "Forwarded to the underlying UI component.",
|
|
54
|
+
useAdditionalWeekYearTokens: "Forwarded to the underlying UI component.",
|
|
55
|
+
useAdditionalDayOfYearTokens: "Forwarded to the underlying UI component.",
|
|
56
|
+
onMonthChange: "Forwarded to the underlying UI component.",
|
|
57
|
+
onNextClick: "Forwarded to the underlying UI component.",
|
|
58
|
+
onPrevClick: "Forwarded to the underlying UI component.",
|
|
59
|
+
onWeekNumberClick: "Forwarded to the underlying UI component.",
|
|
60
|
+
onDayClick: "Forwarded to the underlying UI component.",
|
|
61
|
+
onDayFocus: "Forwarded to the underlying UI component.",
|
|
62
|
+
onDayBlur: "Forwarded to the underlying UI component.",
|
|
63
|
+
onDayKeyDown: "Forwarded to the underlying UI component.",
|
|
64
|
+
onDayMouseEnter: "Forwarded to the underlying UI component.",
|
|
65
|
+
onDayMouseLeave: "Forwarded to the underlying UI component.",
|
|
66
|
+
dateLib: "Forwarded to the underlying UI component.",
|
|
67
|
+
onDayKeyUp: "Forwarded to the underlying UI component.",
|
|
68
|
+
onDayKeyPress: "Forwarded to the underlying UI component.",
|
|
69
|
+
onDayPointerEnter: "Forwarded to the underlying UI component.",
|
|
70
|
+
onDayPointerLeave: "Forwarded to the underlying UI component.",
|
|
71
|
+
onDayTouchCancel: "Forwarded to the underlying UI component.",
|
|
72
|
+
onDayTouchEnd: "Forwarded to the underlying UI component.",
|
|
73
|
+
onDayTouchMove: "Forwarded to the underlying UI component.",
|
|
74
|
+
onDayTouchStart: "Forwarded to the underlying UI component.",
|
|
75
|
+
buttonVariant: "Forwarded to the underlying UI component.",
|
|
76
|
+
showClearButton: "Forwarded to the underlying UI component."
|
|
77
|
+
}),
|
|
78
|
+
examples: [{
|
|
79
|
+
title: "Declarative schema field",
|
|
80
|
+
code: `<SchemaField.String name="datePicker" title="DatePicker" x-decorator="FormItem" x-component="DatePicker" />`
|
|
81
|
+
}, {
|
|
82
|
+
title: "JSON schema for form renderer",
|
|
83
|
+
code: `{
|
|
84
|
+
type: 'object',
|
|
85
|
+
properties: {
|
|
86
|
+
datePicker: {
|
|
87
|
+
type: 'string',
|
|
88
|
+
title: 'DatePicker',
|
|
89
|
+
'x-decorator': 'FormItem',
|
|
90
|
+
'x-component': 'DatePicker',
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
}`
|
|
94
|
+
}],
|
|
95
|
+
keywords: [
|
|
96
|
+
"formily",
|
|
97
|
+
"date",
|
|
98
|
+
"picker",
|
|
99
|
+
"calendar"
|
|
100
|
+
]
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
//#endregion
|
|
104
|
+
export { meta };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineProps } from "../../mcp/src/utils.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/file-upload/mcp.ts
|
|
4
|
+
const meta = {
|
|
5
|
+
name: "FileUpload",
|
|
6
|
+
category: "Formily Inputs",
|
|
7
|
+
description: "A Formily-connected file upload field with upload feedback and schema value mapping.",
|
|
8
|
+
htmlElement: "div",
|
|
9
|
+
props: defineProps({
|
|
10
|
+
onValueChange: "Controlled value-change callback. Usually supplied by Formily.",
|
|
11
|
+
label: "Label content or accessible label for the component.",
|
|
12
|
+
asChild: "Renders behavior through the child element instead of the default element.",
|
|
13
|
+
value: "Controlled value. Usually supplied by Formily.",
|
|
14
|
+
name: "HTML/form name forwarded to the underlying control.",
|
|
15
|
+
disabled: "Disables user interaction. Usually also respects the Formily field disabled state.",
|
|
16
|
+
required: "Marks the control as required for accessibility and UI state.",
|
|
17
|
+
invalid: "Forwarded to the underlying UI component.",
|
|
18
|
+
accept: "Accepted file MIME types or extensions.",
|
|
19
|
+
multiple: "Allows selecting multiple files.",
|
|
20
|
+
onAccept: "Forwarded to the underlying UI component.",
|
|
21
|
+
onFileAccept: "Forwarded to the underlying UI component.",
|
|
22
|
+
onFileReject: "Forwarded to the underlying UI component.",
|
|
23
|
+
onFilesReject: "Forwarded to the underlying UI component.",
|
|
24
|
+
onFileValidate: "Forwarded to the underlying UI component.",
|
|
25
|
+
transformFile: "Forwarded to the underlying UI component.",
|
|
26
|
+
onUpload: "Forwarded to the underlying UI component.",
|
|
27
|
+
maxFiles: "Maximum number of files allowed.",
|
|
28
|
+
maxSize: "Maximum file size allowed.",
|
|
29
|
+
preventDuplicates: "Forwarded to the underlying UI component.",
|
|
30
|
+
onFileSuccess: "Forwarded to the underlying UI component.",
|
|
31
|
+
onFileError: "Forwarded to the underlying UI component.",
|
|
32
|
+
mapValue: "Maps uploaded file values between Formily and the upload component."
|
|
33
|
+
}),
|
|
34
|
+
examples: [{
|
|
35
|
+
title: "Declarative schema field",
|
|
36
|
+
code: `<SchemaField.Array name="files" title="Files" x-decorator="FormItem" x-component="FileUpload" />`
|
|
37
|
+
}, {
|
|
38
|
+
title: "JSON schema for form renderer",
|
|
39
|
+
code: `{
|
|
40
|
+
type: 'object',
|
|
41
|
+
properties: {
|
|
42
|
+
files: {
|
|
43
|
+
type: 'array',
|
|
44
|
+
title: 'Files',
|
|
45
|
+
'x-decorator': 'FormItem',
|
|
46
|
+
'x-component': 'FileUpload',
|
|
47
|
+
items: { type: 'object' },
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
}`
|
|
51
|
+
}],
|
|
52
|
+
keywords: [
|
|
53
|
+
"formily",
|
|
54
|
+
"file",
|
|
55
|
+
"upload",
|
|
56
|
+
"attachments"
|
|
57
|
+
],
|
|
58
|
+
related: ["AvatarUpload", "FileUploadInline"]
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
export { meta };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('
|
|
2
|
-
const require_form_context = require('
|
|
3
|
-
require('
|
|
4
|
-
const require_FormItemContainer = require('
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_form_context = require('../context/form-context.cjs');
|
|
3
|
+
require('../context/index.cjs');
|
|
4
|
+
const require_FormItemContainer = require('../form-item-container/FormItemContainer.cjs');
|
|
5
|
+
require('../form-item-container/index.cjs');
|
|
5
6
|
let __formily_react = require("@formily/react");
|
|
6
7
|
__formily_react = require_rolldown_runtime.__toESM(__formily_react);
|
|
7
8
|
let react = require("react");
|
|
@@ -11,7 +12,7 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
|
11
12
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
12
13
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
13
14
|
|
|
14
|
-
//#region src/components/Form.tsx
|
|
15
|
+
//#region src/components/form/Form.tsx
|
|
15
16
|
/**
|
|
16
17
|
* Form component - wraps FormProvider and provides form context
|
|
17
18
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FormContextStates } from "
|
|
2
|
-
import "
|
|
1
|
+
import { FormContextStates } from "../context/form-context.cjs";
|
|
2
|
+
import "../context/index.cjs";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { Form } from "@formily/core";
|
|
5
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
6
|
|
|
7
|
-
//#region src/components/Form.d.ts
|
|
7
|
+
//#region src/components/form/Form.d.ts
|
|
8
8
|
interface IFormProps extends FormContextStates {
|
|
9
9
|
form: Form;
|
|
10
10
|
id?: string;
|
|
@@ -29,4 +29,4 @@ declare function Form$1({
|
|
|
29
29
|
settings
|
|
30
30
|
}: IFormProps): react_jsx_runtime0.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { Form$1 as Form };
|
|
32
|
+
export { Form$1 as Form, IFormProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FormContextStates } from "
|
|
2
|
-
import "
|
|
1
|
+
import { FormContextStates } from "../context/form-context.js";
|
|
2
|
+
import "../context/index.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
import { Form } from "@formily/core";
|
|
6
6
|
|
|
7
|
-
//#region src/components/Form.d.ts
|
|
7
|
+
//#region src/components/form/Form.d.ts
|
|
8
8
|
interface IFormProps extends FormContextStates {
|
|
9
9
|
form: Form;
|
|
10
10
|
id?: string;
|
|
@@ -29,4 +29,4 @@ declare function Form$1({
|
|
|
29
29
|
settings
|
|
30
30
|
}: IFormProps): react_jsx_runtime0.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { Form$1 as Form };
|
|
32
|
+
export { Form$1 as Form, IFormProps };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { Provider } from "
|
|
2
|
-
import "
|
|
3
|
-
import { FormItemContainer } from "
|
|
1
|
+
import { Provider } from "../context/form-context.js";
|
|
2
|
+
import "../context/index.js";
|
|
3
|
+
import { FormItemContainer } from "../form-item-container/FormItemContainer.js";
|
|
4
|
+
import "../form-item-container/index.js";
|
|
4
5
|
import { FormProvider } from "@formily/react";
|
|
5
6
|
import React from "react";
|
|
6
7
|
import { jsx } from "react/jsx-runtime";
|
|
7
8
|
import { cn } from "@pixpilot/shadcn";
|
|
8
9
|
|
|
9
|
-
//#region src/components/Form.tsx
|
|
10
|
+
//#region src/components/form/Form.tsx
|
|
10
11
|
/**
|
|
11
12
|
* Form component - wraps FormProvider and provides form context
|
|
12
13
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_Form = require('./Form.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Form, IFormProps } from "./Form.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Form, IFormProps } from "./Form.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Form } from "./Form.js";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { defineProps } from "../../mcp/src/utils.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/form/mcp.ts
|
|
4
|
+
const meta = {
|
|
5
|
+
name: "Form",
|
|
6
|
+
category: "Formily",
|
|
7
|
+
description: "A Formily form provider wrapper that renders a native form element and wires submit handling into the Formily form instance.",
|
|
8
|
+
htmlElement: "form",
|
|
9
|
+
props: defineProps({
|
|
10
|
+
form: {
|
|
11
|
+
description: "The Formily form instance created with createForm().",
|
|
12
|
+
type: "Form",
|
|
13
|
+
required: true
|
|
14
|
+
},
|
|
15
|
+
layout: "Optional layout configuration passed through the Formily shadcn form context.",
|
|
16
|
+
onAutoSubmit: "Called with submitted values after the underlying Formily form submit succeeds.",
|
|
17
|
+
settings: "Optional form settings passed through the Formily shadcn form context."
|
|
18
|
+
}),
|
|
19
|
+
examples: [{
|
|
20
|
+
title: "Basic Formily form",
|
|
21
|
+
code: "<Form form={form} onSubmit={(values) => save(values)}><SchemaField schema={schema} /></Form>"
|
|
22
|
+
}],
|
|
23
|
+
keywords: [
|
|
24
|
+
"formily",
|
|
25
|
+
"form",
|
|
26
|
+
"provider"
|
|
27
|
+
]
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { meta };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
let react = require("react");
|
|
3
3
|
react = require_rolldown_runtime.__toESM(react);
|
|
4
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -6,7 +6,7 @@ react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
|
6
6
|
let __pixpilot_shadcn = require("@pixpilot/shadcn");
|
|
7
7
|
__pixpilot_shadcn = require_rolldown_runtime.__toESM(__pixpilot_shadcn);
|
|
8
8
|
|
|
9
|
-
//#region src/components/FormGrid.tsx
|
|
9
|
+
//#region src/components/form-grid/FormGrid.tsx
|
|
10
10
|
function FormGrid({ className, children,...rest }) {
|
|
11
11
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
12
12
|
...rest,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
|
-
//#region src/components/FormGrid.d.ts
|
|
4
|
+
//#region src/components/form-grid/FormGrid.d.ts
|
|
5
5
|
interface IFormGridProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
6
6
|
declare function FormGrid({
|
|
7
7
|
className,
|
|
@@ -9,4 +9,4 @@ declare function FormGrid({
|
|
|
9
9
|
...rest
|
|
10
10
|
}: IFormGridProps): react_jsx_runtime1.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { FormGrid };
|
|
12
|
+
export { FormGrid, IFormGridProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
|
-
//#region src/components/FormGrid.d.ts
|
|
4
|
+
//#region src/components/form-grid/FormGrid.d.ts
|
|
5
5
|
interface IFormGridProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
6
6
|
declare function FormGrid({
|
|
7
7
|
className,
|
|
@@ -9,4 +9,4 @@ declare function FormGrid({
|
|
|
9
9
|
...rest
|
|
10
10
|
}: IFormGridProps): react_jsx_runtime1.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { FormGrid };
|
|
12
|
+
export { FormGrid, IFormGridProps };
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { cn } from "@pixpilot/shadcn";
|
|
4
4
|
|
|
5
|
-
//#region src/components/FormGrid.tsx
|
|
5
|
+
//#region src/components/form-grid/FormGrid.tsx
|
|
6
6
|
function FormGrid({ className, children,...rest }) {
|
|
7
7
|
return /* @__PURE__ */ jsx("div", {
|
|
8
8
|
...rest,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_FormGrid = require('./FormGrid.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { FormGrid, IFormGridProps } from "./FormGrid.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { FormGrid, IFormGridProps } from "./FormGrid.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { FormGrid } from "./FormGrid.js";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineProps } from "../../mcp/src/utils.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/form-grid/mcp.ts
|
|
4
|
+
const meta = {
|
|
5
|
+
name: "FormGrid",
|
|
6
|
+
category: "Formily Layout",
|
|
7
|
+
description: "A Formily layout container for arranging fields in a responsive grid.",
|
|
8
|
+
htmlElement: "div",
|
|
9
|
+
props: defineProps({}),
|
|
10
|
+
examples: [{
|
|
11
|
+
title: "Declarative schema field",
|
|
12
|
+
code: `<SchemaField.String name="formGrid" title="FormGrid" x-decorator="FormItem" x-component="FormGrid" />`
|
|
13
|
+
}, {
|
|
14
|
+
title: "JSON schema for form renderer",
|
|
15
|
+
code: `{
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
formGrid: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
title: 'FormGrid',
|
|
21
|
+
'x-decorator': 'FormItem',
|
|
22
|
+
'x-component': 'FormGrid',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
}`
|
|
26
|
+
}],
|
|
27
|
+
keywords: [
|
|
28
|
+
"formily",
|
|
29
|
+
"layout",
|
|
30
|
+
"grid"
|
|
31
|
+
]
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
export { meta };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FormItemProps } from "./form-item-types.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react1246 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/form-item/ConnectedFormItem.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* FormItem component connected to Formily field state.
|
|
7
7
|
* Automatically maps field validation state to component props.
|
|
8
8
|
*/
|
|
9
|
-
declare const FormItem:
|
|
10
|
-
children?:
|
|
11
|
-
}>, "ref"> &
|
|
9
|
+
declare const FormItem: react1246.ForwardRefExoticComponent<Omit<Partial<FormItemProps & {
|
|
10
|
+
children?: react1246.ReactNode | undefined;
|
|
11
|
+
}>, "ref"> & react1246.RefAttributes<unknown>>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { FormItem };
|