@qin-ui/vant-pro 1.0.5 → 1.1.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/AI-CONTEXT.md +48 -33
- package/LICENSE +9 -0
- package/README.md +1 -1
- package/api.json +27 -22
- package/es/component-provider/{index-DC_k4_R3.js → index-cldbPMDQ.js} +5 -4
- package/es/component-provider/index-cldbPMDQ.js.map +1 -0
- package/es/component-provider/index.js +2 -1
- package/es/component-provider/index.js.map +1 -0
- package/es/components/component-provider/components/index.vue.d.ts +27 -0
- package/es/components/component-provider/components/index.vue.d.ts.map +1 -0
- package/es/components/component-provider/constants/index.d.ts +16 -0
- package/es/components/component-provider/constants/index.d.ts.map +1 -0
- package/es/components/component-provider/index.d.ts +4 -0
- package/es/components/component-provider/index.d.ts.map +1 -0
- package/es/components/component-provider/types/index.d.ts +16 -0
- package/es/components/component-provider/types/index.d.ts.map +1 -0
- package/es/components/form/components/BaseField/index.vue.d.ts +1323 -0
- package/es/components/form/components/BaseField/index.vue.d.ts.map +1 -0
- package/es/components/form/components/BaseField/utils/index.d.ts +3 -0
- package/es/components/form/components/BaseField/utils/index.d.ts.map +1 -0
- package/es/components/form/components/BaseFormItem/index.vue.d.ts +7 -0
- package/es/components/form/components/BaseFormItem/index.vue.d.ts.map +1 -0
- package/es/components/form/components/ContainerFragment/index.vue.d.ts +23 -0
- package/es/components/form/components/ContainerFragment/index.vue.d.ts.map +1 -0
- package/es/components/form/components/GroupedFieldAttrs/index.vue.d.ts +24 -0
- package/es/components/form/components/GroupedFieldAttrs/index.vue.d.ts.map +1 -0
- package/es/components/form/components/PathProvider/index.vue.d.ts +23 -0
- package/es/components/form/components/PathProvider/index.vue.d.ts.map +1 -0
- package/es/components/form/components/ProForm/index.vue.d.ts +34 -0
- package/es/components/form/components/ProForm/index.vue.d.ts.map +1 -0
- package/es/components/form/components/SlotComponent/index.vue.d.ts +7 -0
- package/es/components/form/components/SlotComponent/index.vue.d.ts.map +1 -0
- package/es/components/form/components/index.d.ts +12 -0
- package/es/components/form/components/index.d.ts.map +1 -0
- package/es/components/form/constants/index.d.ts +62 -0
- package/es/components/form/constants/index.d.ts.map +1 -0
- package/es/components/form/hooks/index.d.ts +6 -0
- package/es/components/form/hooks/index.d.ts.map +1 -0
- package/es/components/form/hooks/useFields.d.ts +57 -0
- package/es/components/form/hooks/useFields.d.ts.map +1 -0
- package/es/components/form/hooks/useForm.d.ts +101 -0
- package/es/components/form/hooks/useForm.d.ts.map +1 -0
- package/es/components/form/hooks/useFormPopup.d.ts +57 -0
- package/es/components/form/hooks/useFormPopup.d.ts.map +1 -0
- package/es/components/form/hooks/useFormRef.d.ts +30 -0
- package/es/components/form/hooks/useFormRef.d.ts.map +1 -0
- package/es/components/form/index.d.ts +7 -0
- package/es/components/form/index.d.ts.map +1 -0
- package/es/components/form/types/index.d.ts +152 -0
- package/es/components/form/types/index.d.ts.map +1 -0
- package/es/form/index.js +11 -7
- package/es/form/index.js.map +1 -0
- package/es/index.d.ts +58 -954
- package/es/index.d.ts.map +1 -0
- package/es/index.js +10 -21
- package/es/index.js.map +1 -0
- package/es/shared/core/index.d.ts +6 -0
- package/es/shared/core/index.d.ts.map +1 -0
- package/es/shared/ui/index.d.ts +2 -0
- package/es/shared/ui/index.d.ts.map +1 -0
- package/package.json +11 -12
- package/src/components/component-provider/components/index.vue +67 -0
- package/src/components/component-provider/constants/index.ts +110 -0
- package/src/components/component-provider/index.ts +6 -0
- package/src/components/component-provider/types/index.ts +31 -0
- package/src/components/form/components/BaseField/index.vue +340 -0
- package/src/components/form/components/BaseField/utils/index.ts +14 -0
- package/src/components/form/components/BaseFormItem/index.vue +77 -0
- package/src/components/form/components/ContainerFragment/index.vue +24 -0
- package/src/components/form/components/GroupedFieldAttrs/index.vue +51 -0
- package/src/components/form/components/PathProvider/index.vue +18 -0
- package/src/components/form/components/ProForm/index.vue +114 -0
- package/src/components/form/components/SlotComponent/index.vue +26 -0
- package/src/components/form/components/index.ts +15 -0
- package/src/components/form/constants/index.ts +109 -0
- package/src/components/form/hooks/index.ts +6 -0
- package/src/components/form/hooks/useFields.ts +67 -0
- package/src/components/form/hooks/useForm.ts +126 -0
- package/src/components/form/hooks/useFormPopup.ts +111 -0
- package/src/components/form/hooks/useFormRef.ts +35 -0
- package/src/components/form/index.ts +27 -0
- package/src/components/form/types/index.ts +220 -0
- package/src/index.ts +62 -0
- package/src/shared/core/index.ts +37 -0
- package/src/shared/ui/index.ts +26 -0
- package/es/core/index-B5vvm4Fj.js +0 -236
- package/es/vendor/utils/lodash-es-DN4QDiDm.js +0 -1079
package/AI-CONTEXT.md
CHANGED
|
@@ -22,24 +22,24 @@ ProForm 是**渲染引擎**,不是组件库。所有 UI 来自 vant。Field
|
|
|
22
22
|
|
|
23
23
|
### 组件映射表(componentMap,15 个内置组件)
|
|
24
24
|
|
|
25
|
-
| Field `component`
|
|
26
|
-
|
|
|
27
|
-
| `'field'`
|
|
28
|
-
| `'switch'`
|
|
29
|
-
| `'stepper'`
|
|
30
|
-
| `'rate'`
|
|
31
|
-
| `'slider'`
|
|
32
|
-
| `'uploader'`
|
|
33
|
-
| `'checkbox-group'`
|
|
34
|
-
| `'radio-group'`
|
|
35
|
-
| `'picker'`
|
|
36
|
-
| `'date-picker'`
|
|
37
|
-
| `'time-picker'`
|
|
38
|
-
| `'cascader'`
|
|
39
|
-
| `'area'`
|
|
40
|
-
| `'signature'`
|
|
41
|
-
| `'button'`
|
|
42
|
-
| `'custom'`
|
|
25
|
+
| Field `component` | 渲染的 vant 组件 | 备注 |
|
|
26
|
+
| :----------------- | :--------------- | :------------------------------------------- |
|
|
27
|
+
| `'field'` | Field | **特殊:直接渲染 van-field,无内部控件包裹** |
|
|
28
|
+
| `'switch'` | Switch | v-model 绑定 `modelValue`(vant 默认约定) |
|
|
29
|
+
| `'stepper'` | Stepper | |
|
|
30
|
+
| `'rate'` | Rate | |
|
|
31
|
+
| `'slider'` | Slider | |
|
|
32
|
+
| `'uploader'` | Uploader | |
|
|
33
|
+
| `'checkbox-group'` | CheckboxGroup | |
|
|
34
|
+
| `'radio-group'` | RadioGroup | |
|
|
35
|
+
| `'picker'` | Picker | 常用 popup 模式(底部弹出) |
|
|
36
|
+
| `'date-picker'` | DatePicker | 常用 popup 模式 |
|
|
37
|
+
| `'time-picker'` | TimePicker | 常用 popup 模式 |
|
|
38
|
+
| `'cascader'` | Cascader | 常用 popup 模式 |
|
|
39
|
+
| `'area'` | Area | 常用 popup 模式 |
|
|
40
|
+
| `'signature'` | Signature | 常用 popup 模式 |
|
|
41
|
+
| `'button'` | Button | |
|
|
42
|
+
| `'custom'` | 自定义 | 传入 Vue 组件或 h() 渲染函数 |
|
|
43
43
|
|
|
44
44
|
> **编写任何输入控件属性前,必须查阅 [vant v4 官方文档](https://vant-ui.com/) 确认属性名和类型。**
|
|
45
45
|
|
|
@@ -56,6 +56,7 @@ Field 配置的属性**逐层剥离**,分发到两个目标:
|
|
|
56
56
|
除上述外的其余属性(`columns`, `options`, `activeValue`, `min`, `max`, `step`, `count`, `size`, `direction`, `disabled` 等)。`componentClass`/`componentStyle` → 内部组件的 `class`/`style`。
|
|
57
57
|
|
|
58
58
|
**剥离逻辑:**
|
|
59
|
+
|
|
59
60
|
- 第一阶段(GroupedFieldAttrs):解构 `path`, `fields`, `hidden`, `extraProps` → 剩余 → `componentProps` → BaseField
|
|
60
61
|
- 第二阶段(BaseField):解构 `valueFormatter`, `displayFormatter`, `modelProp`, `slots`, `popup` 等 → 匹配 vant Field.props 的属性 + `on*` → `fieldAttrs` → van-field;其余 → `bindAttrs` → 内部控件
|
|
61
62
|
|
|
@@ -76,8 +77,20 @@ Field 配置的属性**逐层剥离**,分发到两个目标:
|
|
|
76
77
|
```ts
|
|
77
78
|
import { ProForm, useForm } from '@qin-ui/vant-pro';
|
|
78
79
|
const form = useForm({ username: '', password: '' }, [
|
|
79
|
-
{
|
|
80
|
-
|
|
80
|
+
{
|
|
81
|
+
path: 'username',
|
|
82
|
+
component: 'field',
|
|
83
|
+
label: '用户名',
|
|
84
|
+
placeholder: '请输入用户名',
|
|
85
|
+
rules: [{ required: true }],
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
path: 'password',
|
|
89
|
+
component: 'field',
|
|
90
|
+
label: '密码',
|
|
91
|
+
type: 'password',
|
|
92
|
+
rules: [{ required: true }],
|
|
93
|
+
},
|
|
81
94
|
]);
|
|
82
95
|
```
|
|
83
96
|
|
|
@@ -91,10 +104,10 @@ const form = useForm({ username: '', password: '' }, [
|
|
|
91
104
|
|
|
92
105
|
```ts
|
|
93
106
|
// computed() — 初始化时已确定的联动
|
|
94
|
-
disabled: computed(() => !form.formData.enabled)
|
|
107
|
+
disabled: computed(() => !form.formData.enabled);
|
|
95
108
|
|
|
96
109
|
// setField() — 事件触发时动态修改
|
|
97
|
-
form.setField('limitCount', { disabled: true })
|
|
110
|
+
form.setField('limitCount', { disabled: true });
|
|
98
111
|
```
|
|
99
112
|
|
|
100
113
|
### 3.3 自定义组件
|
|
@@ -134,23 +147,25 @@ Field 配置 `popup: true` 时:表单项以只读 van-field 展示,点击后
|
|
|
134
147
|
|
|
135
148
|
### INJECT_CONFIG 预设默认值
|
|
136
149
|
|
|
137
|
-
| 组件
|
|
138
|
-
|
|
|
139
|
-
| `pro-form`
|
|
140
|
-
| `field`
|
|
141
|
-
| 其余所有组件 | `{}`(无预设,直接使用 vant 默认值)
|
|
150
|
+
| 组件 | 预设默认值 |
|
|
151
|
+
| :----------- | :----------------------------------------------------------------------------------------------------------------------------- |
|
|
152
|
+
| `pro-form` | `{ inputAlign: 'right', errorMessageAlign: 'right', required: 'auto', scrollToError: true, scrollToErrorPosition: 'nearest' }` |
|
|
153
|
+
| `field` | `{ clearable: true, placeholder: '请输入' }` |
|
|
154
|
+
| 其余所有组件 | `{}`(无预设,直接使用 vant 默认值) |
|
|
142
155
|
|
|
143
156
|
### componentVars 额外配置键
|
|
144
157
|
|
|
145
158
|
`valueFormatter`, `displayFormatter`, `componentContainer`, `modelProp`, `popup` — 可通过 ProComponentProvider 全局统一配置。
|
|
146
159
|
|
|
147
160
|
```vue
|
|
148
|
-
<ProComponentProvider
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
161
|
+
<ProComponentProvider
|
|
162
|
+
:component-vars="{
|
|
163
|
+
'pro-form': { inputAlign: 'left' },
|
|
164
|
+
field: { clearable: false, placeholder: '请输入内容' },
|
|
165
|
+
switch: { activeColor: '#07c160' },
|
|
166
|
+
stepper: { integer: true, min: 0 },
|
|
167
|
+
}"
|
|
168
|
+
>
|
|
154
169
|
<ProForm :form="form" />
|
|
155
170
|
</ProComponentProvider>
|
|
156
171
|
```
|
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023-present pro-components
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @qin-ui/vant-pro
|
|
2
2
|
|
|
3
|
-
> 基于 **Vant 4** 和 **@qin-ui/core** 二次封装的移动端高级表单组件库,专门针对移动端 H5 精细化打造,助您极速构建交互流畅、配置驱动的移动端表单应用。
|
|
3
|
+
> 基于 **Vant 4** 和 **@qin-ui/pro-components-core** 二次封装的移动端高级表单组件库,专门针对移动端 H5 精细化打造,助您极速构建交互流畅、配置驱动的移动端表单应用。
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
<img src="https://img.shields.io/badge/Vant-4.x-blue" alt="Vant 4.x" />
|
package/api.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-07-
|
|
2
|
+
"generatedAt": "2026-07-09T04:30:07.554Z",
|
|
3
3
|
"name": "@qin-ui/vant-pro",
|
|
4
4
|
"api": [
|
|
5
5
|
{
|
|
@@ -12,25 +12,25 @@
|
|
|
12
12
|
"```vue\n<ProComponentProvider\n:componentVars=\"{ 'field': { placeholder: '请输入' } }\"\n>\n<ProForm :form=\"form\" :fields=\"fields\" />\n</ProComponentProvider>\n```"
|
|
13
13
|
]
|
|
14
14
|
},
|
|
15
|
+
{
|
|
16
|
+
"name": "ContainerFragment",
|
|
17
|
+
"type": "component",
|
|
18
|
+
"package": "@qin-ui/vant-pro",
|
|
19
|
+
"signature": "<ContainerFragment>",
|
|
20
|
+
"description": "容器分片渲染组件。用于动态渲染表单行或表单项的外部包裹容器(例如 Grid 行、Col 列等布局容器)。"
|
|
21
|
+
},
|
|
15
22
|
{
|
|
16
23
|
"name": "ProForm",
|
|
17
24
|
"type": "component",
|
|
18
25
|
"package": "@qin-ui/vant-pro",
|
|
19
26
|
"signature": "<ProForm>",
|
|
20
|
-
"description": "@qin-ui/vant-pro 配置驱动表单组件(移动端)\n通过配置驱动的方式快速构建移动端表单,支持:\n- 字段联动、嵌套字段、自定义组件\n- 弹出层表单(Popup,适用于移动端选择器场景)",
|
|
27
|
+
"description": "@qin-ui/vant-pro 配置驱动表单组件(移动端)\n架构设计说明 (Architecture Overview)\n[ 数据层 (Core) ] => [ 绑定层 (ProForm) ] => [ 渲染层 (BaseFormItem / BaseField) ]\n1. 数据隔离:ProForm 本身不负责存储和管理表单状态,所有核心状态(formData, fields, 校验规则)\n均交由底层的 `useForm`(@qin-ui/pro-components-core)驱动。\n2. 上下文透传:通过 `provide` 将核心状态下发给子组件,避免了深层嵌套的 Props 传递。\n3. 递归渲染:具体字段的解析交由 `<BaseFormItem>` 递归完成,实现了 UI 布局与表单逻辑的解耦。\n通过配置驱动的方式快速构建移动端表单,支持:\n- 字段联动、嵌套字段、自定义组件\n- 弹出层表单(Popup,适用于移动端选择器场景)",
|
|
21
28
|
"typeParams": [
|
|
22
29
|
{
|
|
23
30
|
"name": "F"
|
|
24
31
|
}
|
|
25
32
|
]
|
|
26
33
|
},
|
|
27
|
-
{
|
|
28
|
-
"name": "ContainerFragment",
|
|
29
|
-
"type": "component",
|
|
30
|
-
"package": "@qin-ui/vant-pro",
|
|
31
|
-
"signature": "<ContainerFragment>",
|
|
32
|
-
"description": "容器分片渲染组件。用于动态渲染表单行或表单项的外部包裹容器(例如 Grid 行、Col 列等布局容器)。"
|
|
33
|
-
},
|
|
34
34
|
{
|
|
35
35
|
"name": "SlotComponent",
|
|
36
36
|
"type": "component",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"name": "useFormData",
|
|
60
60
|
"type": "function",
|
|
61
61
|
"package": "@qin-ui/vant-pro",
|
|
62
|
-
"signature": "export const useFormData = <D extends Data = Data>(\n initFormData?: ExtendWithAny<DeepPartial<D>>\n) =>",
|
|
62
|
+
"signature": "export const useFormData = <D extends Data = Data>(\n initFormData?: ExtendWithAny<DeepPartial<D>>\n): UseFormDataReturn<D> =>",
|
|
63
63
|
"description": "表单数据处理 Hook\n提供响应式表单数据的管理能力,支持:\n- 响应式数据存储(基于 Vue reactive)\n- 深层路径读写(支持点号分隔,如 'address.city')\n- 类型安全的路径提示(传入泛型 D 后,path 参数可获得类型推导)\n- 父子表单自动注入(非根表单会从注入中获取数据)",
|
|
64
|
-
"returns": "{
|
|
64
|
+
"returns": "{UseFormDataReturn<D>} 表单数据操作对象",
|
|
65
65
|
"typeParams": [
|
|
66
66
|
{
|
|
67
67
|
"name": "D"
|
|
@@ -75,15 +75,16 @@
|
|
|
75
75
|
"name": "useFields",
|
|
76
76
|
"type": "function",
|
|
77
77
|
"package": "@qin-ui/vant-pro",
|
|
78
|
-
"signature": "export
|
|
79
|
-
"description": "
|
|
78
|
+
"signature": "export function useFields<D extends Data = Data>(\n initFields?: Fields<D>\n): UseFieldsReturn<D, Field<ComponentName, D>, FieldInstance>;",
|
|
79
|
+
"description": "字段配置管理 Hook\n基于 `@qin-ui/pro-components-core` 的 `useFields`,将泛型参数绑定为 Vant 的本地类型:\n- 字段类型 F -> `Field<ComponentName, D>`(支持 Vant 组件类型推导)\n- Field 实例 -> Vant 的 `FieldInstance`\n提供对字段配置数组的增删改查操作,支持:\n- 通过路径字符串或查找函数定位字段\n- 深层嵌套字段的遍历和匹配\n- 字段配置的合并/覆盖更新\n- 字段的添加、插入、删除\n- 父级字段查找\n- `fields` - 字段配置数组(响应式 Ref\\<F[]\\>)\n- `getField(path)` - 获取字段配置,支持路径字符串或查找函数\n- `setField(path, field, options?)` - 更新字段配置,默认合并模式\n- `deleteField(path, options?)` - 删除字段配置\n- `appendField(path, field, options?)` - 在指定字段后追加\n- `prependField(path, field, options?)` - 在指定字段前插入\n- `getParentField(path, options?)` - 获取父级字段配置",
|
|
80
|
+
"returns": "字段操作对象,包含以下属性:",
|
|
80
81
|
"typeParams": [
|
|
81
82
|
{
|
|
82
83
|
"name": "D"
|
|
83
84
|
}
|
|
84
85
|
],
|
|
85
86
|
"examples": [
|
|
86
|
-
"```ts\ninterface User { name: string; age: number }\n\nconst { fields, getField, setField } = useFields<User>([\n{ path: 'name', label: '姓名', component: 'field' },\n{ path: 'age', label: '年龄', component: 'stepper' },\n])\n```"
|
|
87
|
+
"```ts\ninterface User { name: string; age: number }\n\nconst { fields, getField, setField } = useFields<User>([\n{ path: 'name', label: '姓名', component: 'field' },\n{ path: 'age', label: '年龄', component: 'stepper' },\n])\n\n// 通过路径获取\ngetField('name')\n// 通过查找函数获取\ngetField(f => f.label === '姓名')\n// 更新字段(合并模式)\nsetField('name', { label: '用户名', disabled: true })\n```"
|
|
87
88
|
]
|
|
88
89
|
},
|
|
89
90
|
{
|
|
@@ -91,14 +92,14 @@
|
|
|
91
92
|
"type": "type",
|
|
92
93
|
"package": "@qin-ui/vant-pro",
|
|
93
94
|
"signature": "export type UseFields<D extends Data = Data> = ReturnType<typeof useFields<D>>;",
|
|
94
|
-
"description": "useFields
|
|
95
|
+
"description": "useFields 返回值类型"
|
|
95
96
|
},
|
|
96
97
|
{
|
|
97
98
|
"name": "Form",
|
|
98
99
|
"type": "type",
|
|
99
100
|
"package": "@qin-ui/vant-pro",
|
|
100
101
|
"signature": "export type Form<\n D extends Data = Data,\n F extends Field<ComponentName, D> = Field<ComponentName, D>,\n> = _Form<D, F, FormInstance> & { formPopup: FormPopup };",
|
|
101
|
-
"description": "在 core Form
|
|
102
|
+
"description": "表单实例类型\n在 core Form 类型的基础上,将字段类型 F 绑定为本地 Field<ComponentName, D>,\n将底层表单实例 I 绑定为 Vant 的 FormInstance,使 formRef 获得完整的类型提示。\n额外包含 formPopup 对象,用于管理弹出层表单。\n1. `setFormData(path, value)` - 设置指定路径的值<br>\n2. `setFormData(path, prev => newVal)` - 函数式更新<br>\n3. `setFormData({ ... })` - 批量覆盖整个表单",
|
|
102
103
|
"typeParams": [
|
|
103
104
|
{
|
|
104
105
|
"name": "D"
|
|
@@ -106,6 +107,9 @@
|
|
|
106
107
|
{
|
|
107
108
|
"name": "F"
|
|
108
109
|
}
|
|
110
|
+
],
|
|
111
|
+
"examples": [
|
|
112
|
+
"```ts\ninterface User { name: string; age: number }\nconst form: Form<User> = useForm({ name: '张三', age: 25 })\n\nform.formData.name // 直接读写响应式数据\nform.getFormData('name') // 通过路径读取\nform.setFormData('name', '李四') // 更新数据\nform.formRef.value?.validate() // 访问底层 Form 实例\nform.formPopup.open('address') // 打开弹出层表单\n```"
|
|
109
113
|
]
|
|
110
114
|
},
|
|
111
115
|
{
|
|
@@ -113,14 +117,15 @@
|
|
|
113
117
|
"type": "function",
|
|
114
118
|
"package": "@qin-ui/vant-pro",
|
|
115
119
|
"signature": "export function useForm<D extends Data = Data>(\n initFormData?: ExtendWithAny<DeepPartial<D>>,\n initFields?: Field<ComponentName, D>[],\n root?: boolean\n): Form<D, Field<ComponentName, D>>;",
|
|
116
|
-
"description": "
|
|
120
|
+
"description": "创建表单实例的 Hook\n基于 `@qin-ui/pro-components-core` 的 `useForm`,将泛型参数绑定为 Vant 的本地类型:\n- 字段类型 F -> `Field<ComponentName, D>`(支持 Vant 组件类型推导)\n- 表单实例 -> Vant 的 `FormInstance`(使 formRef 获得完整的类型提示)\n在 core useForm 基础上额外提供 formPopup,用于移动端弹窗表单场景。\n表单实例组合了四个子模块的能力:\n- **useFormData**:表单数据管理(响应式数据、读写、批量更新)\n- **useFields**:字段配置管理(增删改查字段配置,支持嵌套)\n- **useFormRef**:底层 Form 组件实例引用\n- **useFormPopup**:弹出层表单管理(Vant 专属)",
|
|
121
|
+
"returns": "{Form<D>} 表单实例,包含数据操作、字段操作、ref 操作和弹出层管理",
|
|
117
122
|
"typeParams": [
|
|
118
123
|
{
|
|
119
124
|
"name": "D"
|
|
120
125
|
}
|
|
121
126
|
],
|
|
122
127
|
"examples": [
|
|
123
|
-
"```ts\ninterface User { name: string; age: number }\n\nconst form = useForm<User>(\n{ name: '张三' },\n[\n{ path: 'name', label: '姓名', component: 'field' },\n]\n)\n\n//
|
|
128
|
+
"```ts\ninterface User { name: string; age: number }\n\n// 方式一:同时传入初始数据和字段\nconst form = useForm<User>(\n{ name: '张三', age: 25 },\n[\n{ path: 'name', label: '姓名', component: 'field' },\n],\ntrue\n)\n\n// 方式二:仅设置 root 标识\nconst form = useForm<User>(true)\n\n// 使用\nconst { formData, formRef, fields, setFormData, formPopup } = form\nsetFormData('name', '李四')\nformPopup.open('address') // 打开弹出层表单\n```"
|
|
124
129
|
]
|
|
125
130
|
},
|
|
126
131
|
{
|
|
@@ -152,11 +157,11 @@
|
|
|
152
157
|
"name": "useFormRef",
|
|
153
158
|
"type": "function",
|
|
154
159
|
"package": "@qin-ui/vant-pro",
|
|
155
|
-
"signature": "export
|
|
156
|
-
"description": "
|
|
157
|
-
"returns": "
|
|
160
|
+
"signature": "export function useFormRef(): UseFormRefReturn<FormInstance>",
|
|
161
|
+
"description": "表单组件实例引用 Hook\n基于 `@qin-ui/pro-components-core` 的 `useFormRef`,将泛型参数绑定为 Vant 的 `FormInstance`,\n使 formRef 获取到完整的 Vant Form 组件 API 类型提示(如 `validate()`、`resetValidation()` 等)。\n`formRef` 由 ProForm 组件内部自动通过 `setFormRef` 绑定,无需手动调用。\n- `formRef` — Vant Form 组件实例的响应式引用(`Ref<FormInstance | undefined>`)\n- `setFormRef(inst)` — 设置 Form 组件实例,由 ProForm 内部自动调用",
|
|
162
|
+
"returns": "表单组件实例引用管理对象:",
|
|
158
163
|
"examples": [
|
|
159
|
-
"```ts\nconst { formRef, setFormRef } = useFormRef()\nformRef.value?.
|
|
164
|
+
"```ts\nconst { formRef, setFormRef } = useFormRef()\n\n// formRef 由 ProForm 自动绑定,可直接使用\nawait formRef.value?.validate()\nformRef.value?.resetValidation()\nformRef.value?.scrollToField('username')\n```"
|
|
160
165
|
]
|
|
161
166
|
}
|
|
162
167
|
]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { getObject } from "@qin-ui/pro-components-core";
|
|
1
2
|
import { defineComponent, provide, renderSlot } from "vue";
|
|
2
|
-
import { g as getObject } from "../core/index-B5vvm4Fj.js";
|
|
3
3
|
const INJECT_CONFIG = {
|
|
4
4
|
"pro-form": {
|
|
5
5
|
injectionKey: Symbol(""),
|
|
@@ -99,15 +99,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
99
99
|
},
|
|
100
100
|
setup(__props) {
|
|
101
101
|
const props = __props;
|
|
102
|
-
if (props.componentMap) {
|
|
103
|
-
provide(INJECT_COMPONENTS, props.componentMap);
|
|
104
|
-
}
|
|
105
102
|
if (props.componentVars) {
|
|
106
103
|
Object.entries(props.componentVars).forEach(([key, val]) => {
|
|
107
104
|
const config = ensureInjectConfig(key);
|
|
108
105
|
provide(config.injectionKey, { ...config.default, ...getObject(val) });
|
|
109
106
|
});
|
|
110
107
|
}
|
|
108
|
+
if (props.componentMap) {
|
|
109
|
+
provide(INJECT_COMPONENTS, props.componentMap);
|
|
110
|
+
}
|
|
111
111
|
return (_ctx, _cache) => {
|
|
112
112
|
return renderSlot(_ctx.$slots, "default");
|
|
113
113
|
};
|
|
@@ -119,3 +119,4 @@ export {
|
|
|
119
119
|
INJECT_CONFIG as a,
|
|
120
120
|
getInjectConfig as g
|
|
121
121
|
};
|
|
122
|
+
//# sourceMappingURL=index-cldbPMDQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-cldbPMDQ.js","sources":["../../src/components/component-provider/constants/index.ts","../../src/components/component-provider/components/index.vue"],"sourcesContent":["import { RequiredComponentVars } from '../types';\nimport { InjectionKey, Component } from 'vue';\n\nexport type InjectConfigEntry<T = any> = {\n injectionKey: InjectionKey<T>;\n default: T;\n};\n\nexport const INJECT_CONFIG: {\n [key in keyof RequiredComponentVars]: {\n injectionKey: InjectionKey<RequiredComponentVars[key]>;\n default: RequiredComponentVars[key];\n };\n} = {\n 'pro-form': {\n injectionKey: Symbol(''),\n default: {\n inputAlign: 'right',\n errorMessageAlign: 'right',\n required: 'auto',\n scrollToError: true,\n scrollToErrorPosition: 'nearest',\n },\n },\n field: {\n injectionKey: Symbol(''),\n default: { clearable: true, placeholder: '请输入' },\n },\n switch: {\n injectionKey: Symbol(''),\n default: {},\n },\n stepper: {\n injectionKey: Symbol(''),\n default: {},\n },\n rate: {\n injectionKey: Symbol(''),\n default: {},\n },\n slider: {\n injectionKey: Symbol(''),\n default: {},\n },\n uploader: {\n injectionKey: Symbol(''),\n default: {},\n },\n 'checkbox-group': {\n injectionKey: Symbol(''),\n default: {},\n },\n 'radio-group': {\n injectionKey: Symbol(''),\n default: {},\n },\n picker: {\n injectionKey: Symbol(''),\n default: {},\n },\n 'date-picker': {\n injectionKey: Symbol(''),\n default: {},\n },\n 'time-picker': {\n injectionKey: Symbol(''),\n default: {},\n },\n cascader: {\n injectionKey: Symbol(''),\n default: {},\n },\n area: {\n injectionKey: Symbol(''),\n default: {},\n },\n signature: {\n injectionKey: Symbol(''),\n default: {},\n },\n button: {\n injectionKey: Symbol(''),\n default: {},\n },\n};\n\nexport const INJECT_COMPONENTS: InjectionKey<\n Partial<Record<string, Component>>\n> = Symbol('INJECT_COMPONENTS');\n\nconst DYNAMIC_INJECT_CONFIG: Record<string, InjectConfigEntry> =\n Object.create(null);\n\nexport const getInjectConfig = (key: string): InjectConfigEntry | undefined => {\n return (\n (INJECT_CONFIG as Record<string, InjectConfigEntry>)[key] ||\n DYNAMIC_INJECT_CONFIG[key]\n );\n};\n\nexport const ensureInjectConfig = (key: string): InjectConfigEntry => {\n const existing = getInjectConfig(key);\n if (existing) return existing;\n const created: InjectConfigEntry = {\n injectionKey: Symbol(`dynamic:${key}`),\n default: {},\n };\n DYNAMIC_INJECT_CONFIG[key] = created;\n return created;\n};\n","<script lang=\"ts\" setup>\n/**\n * @component ProComponentProvider\n * @description @qin-ui/vant-pro 全局配置提供者组件\n *\n * 用于在组件树的顶层配置所有子组件的全局默认属性。\n *\n * @param {ComponentVars} [componentVars] - 组件全局配置变量\n * @param {Record<ComponentName, any>} [componentMap] - 自定义组件映射\n *\n * @slot default - 子组件内容\n *\n * @example\n * ```vue\n * <ProComponentProvider\n * :componentVars=\"{ 'field': { placeholder: '请输入' } }\"\n * >\n * <ProForm :form=\"form\" :fields=\"fields\" />\n * </ProComponentProvider>\n * ```\n \n * @public\n */\nimport { ComponentVars } from '../types';\nimport { INJECT_COMPONENTS, ensureInjectConfig } from '../constants';\nimport { provide } from 'vue';\nimport { getObject } from '../../../shared/core';\nimport { ComponentName } from '../../form/constants';\n\ntype ComponentMap = Partial<Record<ComponentName, any>>;\n\ndefineOptions({\n name: 'ProComponentProvider',\n inheritAttrs: false,\n});\n\ntype Props = {\n /** 组件全局配置,可配置所有内置组件的默认属性 */\n componentVars?: ComponentVars;\n /** 自定义组件映射,用于替换或扩展内置组件 */\n componentMap?: ComponentMap;\n};\n\nconst props = defineProps<Props>();\n\n/*\n * 遍历 componentVars 的每个 key,获取或创建对应的 inject 配置\n * 将用户提供的值合并到默认值上,通过 provide 注入到子组件树\n * 子组件通过 inject(config.injectionKey) 获取合并后的配置\n */\nif (props.componentVars) {\n Object.entries(props.componentVars).forEach(([key, val]) => {\n const config = ensureInjectConfig(key);\n // 用户配置覆盖默认值\n provide(config.injectionKey, { ...config.default, ...getObject(val) });\n });\n}\n\n// 注入自定义组件映射,BaseField 在解析组件时会优先使用此映射\nif (props.componentMap) {\n provide(INJECT_COMPONENTS, props.componentMap);\n}\n</script>\n\n<template>\n <slot />\n</template>\n"],"names":["_renderSlot"],"mappings":";;AAQO,MAAM,gBAKT;AAAA,EACF,YAAY;AAAA,IACV,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS;AAAA,MACP,YAAY;AAAA,MACZ,mBAAmB;AAAA,MACnB,UAAU;AAAA,MACV,eAAe;AAAA,MACf,uBAAuB;AAAA,IAAA;AAAA,EACzB;AAAA,EAEF,OAAO;AAAA,IACL,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS,EAAE,WAAW,MAAM,aAAa,MAAA;AAAA,EAAM;AAAA,EAEjD,QAAQ;AAAA,IACN,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS,CAAA;AAAA,EAAC;AAAA,EAEZ,SAAS;AAAA,IACP,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS,CAAA;AAAA,EAAC;AAAA,EAEZ,MAAM;AAAA,IACJ,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS,CAAA;AAAA,EAAC;AAAA,EAEZ,QAAQ;AAAA,IACN,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS,CAAA;AAAA,EAAC;AAAA,EAEZ,UAAU;AAAA,IACR,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS,CAAA;AAAA,EAAC;AAAA,EAEZ,kBAAkB;AAAA,IAChB,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS,CAAA;AAAA,EAAC;AAAA,EAEZ,eAAe;AAAA,IACb,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS,CAAA;AAAA,EAAC;AAAA,EAEZ,QAAQ;AAAA,IACN,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS,CAAA;AAAA,EAAC;AAAA,EAEZ,eAAe;AAAA,IACb,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS,CAAA;AAAA,EAAC;AAAA,EAEZ,eAAe;AAAA,IACb,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS,CAAA;AAAA,EAAC;AAAA,EAEZ,UAAU;AAAA,IACR,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS,CAAA;AAAA,EAAC;AAAA,EAEZ,MAAM;AAAA,IACJ,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS,CAAA;AAAA,EAAC;AAAA,EAEZ,WAAW;AAAA,IACT,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS,CAAA;AAAA,EAAC;AAAA,EAEZ,QAAQ;AAAA,IACN,cAAc,OAAO,EAAE;AAAA,IACvB,SAAS,CAAA;AAAA,EAAC;AAEd;AAEO,MAAM,oBAET,OAAO,mBAAmB;AAE9B,MAAM,wBACJ,uBAAO,OAAO,IAAI;AAEb,MAAM,kBAAkB,CAAC,QAA+C;AAC7E,SACG,cAAoD,GAAG,KACxD,sBAAsB,GAAG;AAE7B;AAEO,MAAM,qBAAqB,CAAC,QAAmC;AACpE,QAAM,WAAW,gBAAgB,GAAG;AACpC,MAAI,SAAU,QAAO;AACrB,QAAM,UAA6B;AAAA,IACjC,cAAc,OAAO,WAAW,GAAG,EAAE;AAAA,IACrC,SAAS,CAAA;AAAA,EAAC;AAEZ,wBAAsB,GAAG,IAAI;AAC7B,SAAO;AACT;;;;;;;;;;;;AClEA,UAAM,QAAQ;AAOd,QAAI,MAAM,eAAe;AACvB,aAAO,QAAQ,MAAM,aAAa,EAAE,QAAQ,CAAC,CAAC,KAAK,GAAG,MAAM;AAC1D,cAAM,SAAS,mBAAmB,GAAG;AAErC,gBAAQ,OAAO,cAAc,EAAE,GAAG,OAAO,SAAS,GAAG,UAAU,GAAG,GAAG;AAAA,MACvE,CAAC;AAAA,IACH;AAGA,QAAI,MAAM,cAAc;AACtB,cAAQ,mBAAmB,MAAM,YAAY;AAAA,IAC/C;;aAIEA,WAAQ,KAAA,QAAA,SAAA;AAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComponentVars } from '../types';
|
|
2
|
+
import { ComponentName } from '../../form/constants';
|
|
3
|
+
type ComponentMap = Partial<Record<ComponentName, any>>;
|
|
4
|
+
type Props = {
|
|
5
|
+
/** 组件全局配置,可配置所有内置组件的默认属性 */
|
|
6
|
+
componentVars?: ComponentVars;
|
|
7
|
+
/** 自定义组件映射,用于替换或扩展内置组件 */
|
|
8
|
+
componentMap?: ComponentMap;
|
|
9
|
+
};
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: any;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/component-provider/components/index.vue"],"names":[],"mappings":"AAqEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAIzC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,KAAK,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC,CAAC;AAOxD,KAAK,KAAK,GAAG;IACX,4BAA4B;IAC5B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,0BAA0B;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,CAAC;AAyBF,iBAAS,cAAc;WAoBT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,sRAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RequiredComponentVars } from '../types';
|
|
2
|
+
import { InjectionKey, Component } from 'vue';
|
|
3
|
+
export type InjectConfigEntry<T = any> = {
|
|
4
|
+
injectionKey: InjectionKey<T>;
|
|
5
|
+
default: T;
|
|
6
|
+
};
|
|
7
|
+
export declare const INJECT_CONFIG: {
|
|
8
|
+
[key in keyof RequiredComponentVars]: {
|
|
9
|
+
injectionKey: InjectionKey<RequiredComponentVars[key]>;
|
|
10
|
+
default: RequiredComponentVars[key];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const INJECT_COMPONENTS: InjectionKey<Partial<Record<string, Component>>>;
|
|
14
|
+
export declare const getInjectConfig: (key: string) => InjectConfigEntry | undefined;
|
|
15
|
+
export declare const ensureInjectConfig: (key: string) => InjectConfigEntry;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/component-provider/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAE9C,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,GAAG,IAAI;IACvC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAC9B,OAAO,EAAE,CAAC,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE;KACzB,GAAG,IAAI,MAAM,qBAAqB,GAAG;QACpC,YAAY,EAAE,YAAY,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC;QACvD,OAAO,EAAE,qBAAqB,CAAC,GAAG,CAAC,CAAC;KACrC;CAwEF,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAC1C,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CACL,CAAC;AAKhC,eAAO,MAAM,eAAe,GAAI,KAAK,MAAM,KAAG,iBAAiB,GAAG,SAKjE,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,KAAG,iBAShD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/component-provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AAGvD,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Base } from '../../form/types';
|
|
2
|
+
import { ProFormProps } from '../../form';
|
|
3
|
+
import { AllowedComponentProps } from 'vue';
|
|
4
|
+
import { GetComponentType, ComponentName } from '../../form/constants';
|
|
5
|
+
import { ComponentProps } from 'vue-component-type-helpers';
|
|
6
|
+
import { FormProps } from 'vant';
|
|
7
|
+
type PP<T extends Record<string, any>> = Partial<T & AllowedComponentProps>;
|
|
8
|
+
type FP<T extends Record<string, any>> = Partial<T & Pick<Base, 'valueFormatter' | 'displayFormatter' | 'componentContainer' | 'modelProp' | 'popup'> & AllowedComponentProps>;
|
|
9
|
+
export type RequiredComponentVars = {
|
|
10
|
+
'pro-form': PP<Omit<ProFormProps & FormProps, 'form'>>;
|
|
11
|
+
} & {
|
|
12
|
+
[K in Exclude<ComponentName, 'custom'>]: FP<ComponentProps<GetComponentType<K>>>;
|
|
13
|
+
};
|
|
14
|
+
export type ComponentVars = Partial<RequiredComponentVars>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/component-provider/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAEtC,KAAK,EAAE,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,OAAO,CAAC,CAAC,GAAG,qBAAqB,CAAC,CAAC;AAE5E,KAAK,EAAE,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,OAAO,CAC9C,CAAC,GACC,IAAI,CACF,IAAI,EACF,gBAAgB,GAChB,kBAAkB,GAClB,oBAAoB,GACpB,WAAW,GACX,OAAO,CACV,GACD,qBAAqB,CACxB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,GAAG,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;CACxD,GAAG;KACD,CAAC,IAAI,OAAO,CAAC,aAAa,EAAE,QAAQ,CAAC,GAAG,EAAE,CACzC,cAAc,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CACpC;CACF,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC"}
|