@qin-ui/antdv-next-pro 1.1.14 → 1.2.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.
Files changed (129) hide show
  1. package/AI-CONTEXT.md +281 -23
  2. package/LICENSE +9 -0
  3. package/README.md +75 -58
  4. package/api.json +70 -28
  5. package/bin/init-ai.mjs +404 -49
  6. package/es/antdv-next-pro.css +9 -9
  7. package/es/component-provider/{index-Daiw7IxY.js → index-Tesc9NuK.js} +2 -1
  8. package/es/component-provider/index-Tesc9NuK.js.map +1 -0
  9. package/es/component-provider/index.js +2 -1
  10. package/es/component-provider/index.js.map +1 -0
  11. package/es/components/component-provider/components/index.vue.d.ts +27 -0
  12. package/es/components/component-provider/components/index.vue.d.ts.map +1 -0
  13. package/es/components/component-provider/constants/index.d.ts +16 -0
  14. package/es/components/component-provider/constants/index.d.ts.map +1 -0
  15. package/es/components/component-provider/index.d.ts +4 -0
  16. package/es/components/component-provider/index.d.ts.map +1 -0
  17. package/es/components/component-provider/types/index.d.ts +26 -0
  18. package/es/components/component-provider/types/index.d.ts.map +1 -0
  19. package/es/components/form/components/BaseField/index.vue.d.ts +13 -0
  20. package/es/components/form/components/BaseField/index.vue.d.ts.map +1 -0
  21. package/es/components/form/components/BaseField/utils/index.d.ts +3 -0
  22. package/es/components/form/components/BaseField/utils/index.d.ts.map +1 -0
  23. package/es/components/form/components/BaseFormItem/index.vue.d.ts +9 -0
  24. package/es/components/form/components/BaseFormItem/index.vue.d.ts.map +1 -0
  25. package/es/components/form/components/ContainerFragment/index.vue.d.ts +23 -0
  26. package/es/components/form/components/ContainerFragment/index.vue.d.ts.map +1 -0
  27. package/es/components/form/components/GroupedFieldAttrs/index.vue.d.ts +31 -0
  28. package/es/components/form/components/GroupedFieldAttrs/index.vue.d.ts.map +1 -0
  29. package/es/components/form/components/PathProvider/index.vue.d.ts +24 -0
  30. package/es/components/form/components/PathProvider/index.vue.d.ts.map +1 -0
  31. package/es/components/form/components/ProForm/index.vue.d.ts +36 -0
  32. package/es/components/form/components/ProForm/index.vue.d.ts.map +1 -0
  33. package/es/components/form/components/SlotComponent/index.vue.d.ts +7 -0
  34. package/es/components/form/components/SlotComponent/index.vue.d.ts.map +1 -0
  35. package/es/components/form/components/index.d.ts +12 -0
  36. package/es/components/form/components/index.d.ts.map +1 -0
  37. package/es/components/form/constants/index.d.ts +81 -0
  38. package/es/components/form/constants/index.d.ts.map +1 -0
  39. package/es/components/form/hooks/index.d.ts +5 -0
  40. package/es/components/form/hooks/index.d.ts.map +1 -0
  41. package/es/components/form/hooks/useFields.d.ts +57 -0
  42. package/es/components/form/hooks/useFields.d.ts.map +1 -0
  43. package/es/components/form/hooks/useForm.d.ts +93 -0
  44. package/es/components/form/hooks/useForm.d.ts.map +1 -0
  45. package/es/components/form/hooks/useFormRef.d.ts +30 -0
  46. package/es/components/form/hooks/useFormRef.d.ts.map +1 -0
  47. package/es/components/form/index.d.ts +7 -0
  48. package/es/components/form/index.d.ts.map +1 -0
  49. package/es/components/form/types/index.d.ts +251 -0
  50. package/es/components/form/types/index.d.ts.map +1 -0
  51. package/es/components/table/components/ColumnControl.vue.d.ts +9 -0
  52. package/es/components/table/components/ColumnControl.vue.d.ts.map +1 -0
  53. package/es/components/table/components/DefaultSearchFormContainer.vue.d.ts +18 -0
  54. package/es/components/table/components/DefaultSearchFormContainer.vue.d.ts.map +1 -0
  55. package/es/components/table/components/DefaultTableContainer.vue.d.ts +18 -0
  56. package/es/components/table/components/DefaultTableContainer.vue.d.ts.map +1 -0
  57. package/es/components/table/components/ProTable.vue.d.ts +118 -0
  58. package/es/components/table/components/ProTable.vue.d.ts.map +1 -0
  59. package/es/components/table/components/SearchForm.vue.d.ts +48 -0
  60. package/es/components/table/components/SearchForm.vue.d.ts.map +1 -0
  61. package/es/components/table/components/SizeControl.vue.d.ts +12 -0
  62. package/es/components/table/components/SizeControl.vue.d.ts.map +1 -0
  63. package/es/components/table/components/icons/ColumnHeightOutlined.vue.d.ts +3 -0
  64. package/es/components/table/components/icons/ColumnHeightOutlined.vue.d.ts.map +1 -0
  65. package/es/components/table/components/icons/DownOutlined.vue.d.ts +3 -0
  66. package/es/components/table/components/icons/DownOutlined.vue.d.ts.map +1 -0
  67. package/es/components/table/components/icons/FilterOutlined.vue.d.ts +3 -0
  68. package/es/components/table/components/icons/FilterOutlined.vue.d.ts.map +1 -0
  69. package/es/components/table/components/index.d.ts +5 -0
  70. package/es/components/table/components/index.d.ts.map +1 -0
  71. package/es/components/table/index.d.ts +8 -0
  72. package/es/components/table/index.d.ts.map +1 -0
  73. package/es/components/table/types/index.d.ts +48 -0
  74. package/es/components/table/types/index.d.ts.map +1 -0
  75. package/es/components/table/useTable.d.ts +111 -0
  76. package/es/components/table/useTable.d.ts.map +1 -0
  77. package/es/form/{index-7clzY8ZD.js → index-CcP5OaUd.js} +12 -6
  78. package/es/form/index-CcP5OaUd.js.map +1 -0
  79. package/es/form/index.js +4 -3
  80. package/es/form/index.js.map +1 -0
  81. package/es/index.d.ts +76 -1522
  82. package/es/index.d.ts.map +1 -0
  83. package/es/index.js +14 -23
  84. package/es/index.js.map +1 -0
  85. package/es/shared/core/index.d.ts +6 -0
  86. package/es/shared/core/index.d.ts.map +1 -0
  87. package/es/shared/ui/index.d.ts +9 -0
  88. package/es/shared/ui/index.d.ts.map +1 -0
  89. package/es/table/index.js +11 -9
  90. package/es/table/index.js.map +1 -0
  91. package/package.json +10 -11
  92. package/src/components/component-provider/components/index.vue +67 -0
  93. package/src/components/component-provider/constants/index.ts +177 -0
  94. package/src/components/component-provider/index.ts +6 -0
  95. package/src/components/component-provider/types/index.ts +59 -0
  96. package/src/components/form/components/BaseField/index.vue +181 -0
  97. package/src/components/form/components/BaseField/utils/index.ts +16 -0
  98. package/src/components/form/components/BaseFormItem/index.vue +158 -0
  99. package/src/components/form/components/ContainerFragment/index.vue +24 -0
  100. package/src/components/form/components/GroupedFieldAttrs/index.vue +119 -0
  101. package/src/components/form/components/PathProvider/index.vue +19 -0
  102. package/src/components/form/components/ProForm/index.vue +104 -0
  103. package/src/components/form/components/SlotComponent/index.vue +26 -0
  104. package/src/components/form/components/index.ts +15 -0
  105. package/src/components/form/constants/index.ts +140 -0
  106. package/src/components/form/hooks/index.ts +5 -0
  107. package/src/components/form/hooks/useFields.ts +67 -0
  108. package/src/components/form/hooks/useForm.ts +110 -0
  109. package/src/components/form/hooks/useFormRef.ts +35 -0
  110. package/src/components/form/index.ts +29 -0
  111. package/src/components/form/types/index.ts +317 -0
  112. package/src/components/table/components/ColumnControl.vue +142 -0
  113. package/src/components/table/components/DefaultSearchFormContainer.vue +22 -0
  114. package/src/components/table/components/DefaultTableContainer.vue +19 -0
  115. package/src/components/table/components/ProTable.vue +372 -0
  116. package/src/components/table/components/SearchForm.vue +296 -0
  117. package/src/components/table/components/SizeControl.vue +54 -0
  118. package/src/components/table/components/icons/ColumnHeightOutlined.vue +4 -0
  119. package/src/components/table/components/icons/DownOutlined.vue +4 -0
  120. package/src/components/table/components/icons/FilterOutlined.vue +4 -0
  121. package/src/components/table/components/index.ts +4 -0
  122. package/src/components/table/index.ts +14 -0
  123. package/src/components/table/types/index.ts +52 -0
  124. package/src/components/table/useTable.ts +129 -0
  125. package/src/index.ts +81 -0
  126. package/src/shared/core/index.ts +37 -0
  127. package/src/shared/ui/index.ts +55 -0
  128. package/es/core/index-ghYuQ3Sy.js +0 -360
  129. package/es/vendor/utils/lodash-es-p6jau26B.js +0 -1120
@@ -0,0 +1,251 @@
1
+ import { FormItemProps, GridProps, GridItemProps, FormInstance, FormItem } from '../../../shared/ui';
2
+ import { ComponentProps, ComponentSlots } from 'vue-component-type-helpers';
3
+ import { CSSProperties, Component, Raw, MaybeRef, ComputedRef, VNode, VNodeProps } from 'vue';
4
+ import { Data, Path } from '../../../shared/core';
5
+ import { ComponentName, GetComponentType } from '../constants';
6
+ export type { FormInstance };
7
+ export type PathProps = {
8
+ path?: string;
9
+ } & Data;
10
+ export type VModelProps<T = any> = {
11
+ value?: T;
12
+ 'onUpdate:value'?: (val: T) => void;
13
+ };
14
+ export type ValueFormatter = {
15
+ (val: any, oldVal: any): any;
16
+ } | {
17
+ get?: (val: any) => any;
18
+ set?: (val: any, oldVal: any) => any;
19
+ };
20
+ /**
21
+ * @description 自定义组件
22
+ * @example (p, ctx) => h('div', ctx.attrs)
23
+ */
24
+ export type RenderComponentType = Component<VModelProps & PathProps>;
25
+ /**
26
+ * @description 插槽组件类型
27
+ */
28
+ export type SlotComponentType = Component<PathProps> | VNode | string | number | boolean | null | undefined | ((...args: any[]) => SlotComponentType);
29
+ /**
30
+ * @description 容器组件类型
31
+ */
32
+ export type ContainerComponent = Component<PathProps>;
33
+ /**
34
+ * @description 插槽对象类型
35
+ */
36
+ export type Slots = {
37
+ [name: string]: SlotComponentType;
38
+ };
39
+ export type Option = {
40
+ label: string;
41
+ value: any;
42
+ [x: string]: any;
43
+ };
44
+ export type Options = Array<Option>;
45
+ export type Grid = boolean | (GridProps & {});
46
+ type BaseCommon<D extends Data = Data> = {
47
+ /**
48
+ * @description 字段标识namePath, 同name
49
+ * @example 'name' | 'age' | 'sex' | ...
50
+ */
51
+ path?: Path<D>;
52
+ /**
53
+ * @description 字段是否隐藏
54
+ */
55
+ hidden?: boolean;
56
+ /**
57
+ * @description 字段是否禁用
58
+ */
59
+ disabled?: boolean;
60
+ /**
61
+ * @description 字段中文名称,支持字符串或组件
62
+ * @example '姓名' | '年龄' | '性别' | () => h('span', '自定义标签')
63
+ */
64
+ label?: SlotComponentType;
65
+ /**
66
+ * @description 字段插槽配置,可包含formItem插槽和component插槽
67
+ * @example
68
+ * ```js
69
+ * slots: {
70
+ * label: () => h('div', { style: { fontSize: '12px' } }, '年龄'),
71
+ * addonAfter: '岁',
72
+ * suffix: () => h('span', '元')
73
+ * }
74
+ * ```
75
+ */
76
+ slots?: Partial<ComponentSlots<typeof FormItem>>;
77
+ /**
78
+ * @description 字段formItem样式属性
79
+ * @example { marginBottom: '8px', padding: '12px' }
80
+ */
81
+ formItemStyle?: CSSProperties;
82
+ /**
83
+ * @description 字段formItem样式类名
84
+ * @example 'custom-form-item' | 'required-field'
85
+ */
86
+ formItemClass?: string;
87
+ /**
88
+ * @description 字段formItem容器包裹组件
89
+ * @example (props, ctx) => h('div', { class: 'custom-container' }, ctx.slots.default?.())
90
+ */
91
+ formItemContainer?: ContainerComponent;
92
+ /**
93
+ * @description 将属性附加到 FormItem 的 DOM 节点
94
+ * @example { 'data-form-item-test': 'test-value', 'aria-label': 'name' }
95
+ */
96
+ formItemDataAttrs?: Record<string, string>;
97
+ /**
98
+ * @description 额外的自定义属性,不会被当作组件参数,仅用做给字段添加标识属性等功能
99
+ * @example { group: 'group-1' }
100
+ */
101
+ extraProps?: Record<string, any>;
102
+ };
103
+ type BaseWithFields<D extends Data = Data> = BaseCommon<D> & {
104
+ /**
105
+ * @description 嵌套子字段配置
106
+ * @example [{ key: 'firstName', label: '名' }, { key: 'lastName', label: '姓' }]
107
+ */
108
+ fields: Fields<D>;
109
+ /**
110
+ * @description 网格布局属性,true表示使用默认网格布局,针对具有嵌套字段的字段
111
+ * @example boolean | { gutter: 24 }
112
+ */
113
+ grid?: Grid;
114
+ component?: never;
115
+ /**
116
+ * @description 字段component样式属性
117
+ * @example { width: '100%', borderColor: '#d9d9d9' }
118
+ */
119
+ componentStyle?: never;
120
+ /**
121
+ * @description 字段component样式类名
122
+ * @example 'custom-input' | 'error-input'
123
+ */
124
+ componentClass?: never;
125
+ /**
126
+ * @description 字段component容器包裹组件
127
+ * @example (props, ctx) => h('div', { class: 'input-wrapper' }, ctx.slots.default?.())
128
+ */
129
+ componentContainer?: never;
130
+ /**
131
+ * @description 将属性附加到表单组件的 DOM 节点
132
+ * @example { 'data-test': 'input-value', 'aria-label': 'name' }
133
+ */
134
+ componentDataAttrs?: never;
135
+ /**
136
+ * @description 字段值处理函数,在onUpdateValue前执行,函数返回值将作为更新值,也可设置get和set函数,用于处理字段值
137
+ * @example (val) => val?.trim()
138
+ */
139
+ valueFormatter?: never;
140
+ /**
141
+ * @description 组件v-model双向绑定更新属性名,默认'value'
142
+ */
143
+ modelProp?: never;
144
+ };
145
+ type BaseWithoutFields<D extends Data = Data> = BaseCommon<D> & {
146
+ fields?: undefined;
147
+ grid?: never;
148
+ /**
149
+ * @description 字段component样式属性
150
+ * @example { width: '100%', borderColor: '#d9d9d9' }
151
+ */
152
+ componentStyle?: CSSProperties;
153
+ /**
154
+ * @description 字段component样式类名
155
+ * @example 'custom-input' | 'error-input'
156
+ */
157
+ componentClass?: string;
158
+ /**
159
+ * @description 字段component容器包裹组件
160
+ * @example (props, ctx) => h('div', { class: 'input-wrapper' }, ctx.slots.default?.())
161
+ */
162
+ componentContainer?: ContainerComponent;
163
+ /**
164
+ * @description 将属性附加到表单组件的 DOM 节点
165
+ * @example { 'data-test': 'input-value', 'aria-label': 'name' }
166
+ */
167
+ componentDataAttrs?: Record<string, string>;
168
+ /**
169
+ * @description 字段值处理函数,在onUpdateValue前执行,函数返回值将作为更新值,也可设置get和set函数,用于处理字段值
170
+ * @example (val) => val?.trim()
171
+ */
172
+ valueFormatter?: ValueFormatter;
173
+ /**
174
+ * @description 组件v-model双向绑定更新属性名,默认'value'
175
+ */
176
+ modelProp?: string;
177
+ };
178
+ /**
179
+ * 字段配置的基础公共类型
180
+ * @description 定义了 ProForm 字段配置的**保留属性**(由 ProForm 自身消费,不会透传给底层组件):
181
+ * - path, label, component - 字段标识与渲染
182
+ * - hidden, disabled, rules - 字段状态与校验
183
+ * - span, slots, grid, fields - 布局与嵌套
184
+ * - modelProp, valueFormatter - 双向绑定与值转换
185
+ * - formItemStyle/Class/Container/DataAttrs - FormItem 容器样式
186
+ * - componentStyle/Class/Container/DataAttrs - 输入组件样式
187
+ * - extraProps - 自定义扩展属性
188
+ *
189
+ * **重要:所有未在此列出的属性将直接 v-bind 透传到底层 antdv-next 组件。**
190
+ *
191
+ * @public
192
+ */
193
+ export type Base<D extends Data = Data> = BaseWithFields<D> | BaseWithoutFields<D>;
194
+ /**
195
+ * 字段类型映射集合
196
+ * @description 将每个 component 字符串映射到其对应的 antdv-next 组件 Props 类型。
197
+ * 例如 `component: 'select'` 时,Field 获得 Select 组件的所有 Props(options, mode, showSearch 等)作为类型提示。
198
+ * `component: 'custom'` 支持通过渲染函数或直接传入 Vue 组件进行完全自定义渲染。
199
+ *
200
+ * @public
201
+ */
202
+ export type FieldTypeMap<D extends Data = Data> = {
203
+ [K in ComponentName]: K extends 'custom' ? WithCommon<{
204
+ slots?: Slots;
205
+ [x: string]: any;
206
+ }, D> & {
207
+ component?: RenderComponentType | Raw<RenderComponentType>;
208
+ } : WithComponent<GetComponentType<K>, D> & {
209
+ component?: K;
210
+ };
211
+ };
212
+ /**
213
+ * @description 不支持响应式的属性名
214
+ */
215
+ type NotSupportedRefOrGetterProps = 'component' | 'formItemContainer' | 'componentContainer' | 'valueFormatter' | 'fields' | 'slots' | 'modelProp';
216
+ type MaybeRefOrComputedRef<T = any> = MaybeRef<T> | ComputedRef<T>;
217
+ /**
218
+ * @description 为对象属性添加响应式支持的类型
219
+ * @template T - 原始类型
220
+ */
221
+ export type WithRef<T> = {
222
+ [P in keyof T]: P extends NotSupportedRefOrGetterProps ? T[P] : T[P] extends (...args: any[]) => any ? T[P] : MaybeRefOrComputedRef<T[P]>;
223
+ };
224
+ type WithCommonBase<T = unknown> = T & Omit<FormItemProps, 'label'> & GridItemProps;
225
+ type WithCommon<T, D extends Data = Data> = WithRef<WithCommonBase<T> & BaseWithoutFields<D>>;
226
+ type WithFields<D extends Data = Data> = WithRef<WithCommonBase & BaseWithFields<D>>;
227
+ /**
228
+ * @description 自动从 Vue 组件提取 Props 和 Slots,并加上公共表单字段属性
229
+ * @template T - Vue 组件类型
230
+ * @template D - 数据对象类型
231
+ */
232
+ type WithComponent<T extends abstract new (...args: any) => any, D extends Data = Data> = WithCommon<{
233
+ slots?: Partial<ComponentSlots<T>>;
234
+ } & Partial<Omit<ComponentProps<T>, keyof VNodeProps>>, D>;
235
+ /**
236
+ * @description 字段配置类型,包含所有字段属性和响应式支持
237
+ * @template D - 数据对象类型
238
+
239
+ * @public
240
+ */
241
+ export type Field<C extends ComponentName = ComponentName, D extends Data = Data> = (FieldTypeMap<D>[C] & {
242
+ component?: C extends 'custom' ? FieldTypeMap<D>[C]['component'] : C;
243
+ }) | WithFields<D>;
244
+ /**
245
+ * @description 字段数组类型
246
+ * @template D - 数据对象类型
247
+
248
+ * @public
249
+ */
250
+ export type Fields<D extends Data = Data> = Array<Field<ComponentName, D>>;
251
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,SAAS,EACT,aAAa,EACb,YAAY,EACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,GAAG,EACR,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,EACL,UAAU,EACX,MAAM,KAAK,CAAC;AACb,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE/D,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC;AAEjD,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,GAAG,IAAI;IACjC,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;CACrC,CAAC;AAE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,EAAE,CAAC,SAAS,QAAQ,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;CACtE,CAAC,GACF,UAAU,CAAC,CAAC,CAAC,CAAC;AAElB;;;;;GAKG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,IAAI,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Columns } from '../types';
2
+ import { Table } from '../useTable';
3
+ type Props = {
4
+ columns: Columns;
5
+ table?: Table;
6
+ };
7
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
9
+ //# sourceMappingURL=ColumnControl.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColumnControl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/ColumnControl.vue"],"names":[],"mappings":"AAkJA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAGzC,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;;AAmMF,wBAOG"}
@@ -0,0 +1,18 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
18
+ //# sourceMappingURL=DefaultSearchFormContainer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultSearchFormContainer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/DefaultSearchFormContainer.vue"],"names":[],"mappings":"AA+BA,iBAAS,cAAc;WA4BT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,18 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
18
+ //# sourceMappingURL=DefaultTableContainer.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultTableContainer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/DefaultTableContainer.vue"],"names":[],"mappings":"AA4BA,iBAAS,cAAc;WA4BT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,118 @@
1
+ import { TableProps, ColumnType } from '../../../shared/ui';
2
+ import { Slot } from 'vue';
3
+ import { ContainerComponent } from '../../form/types';
4
+ import { SearchFormProps } from './SearchForm.vue';
5
+ import { Table } from '../useTable';
6
+ import { Column } from '../types';
7
+ declare const _default: <T extends Table<any> = Table>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
8
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
9
+ readonly "onUpdate:size"?: ((value: import('antdv-next').ButtonSize) => any) | undefined;
10
+ readonly "onUpdate:loading"?: ((value: boolean) => any) | undefined;
11
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:size" | "onUpdate:loading"> & ({
12
+ size?: TableProps["size"];
13
+ loading?: boolean;
14
+ } & {
15
+ table?: T;
16
+ search?: () => Promise<unknown>;
17
+ addIndexColumn?: boolean;
18
+ immediateSearch?: boolean;
19
+ control?: boolean | Partial<{
20
+ sizeControl: boolean;
21
+ columnControl: boolean;
22
+ }>;
23
+ searchFormConfig?: Omit<SearchFormProps, "form"> & {
24
+ hidden?: boolean;
25
+ container?: ContainerComponent | false;
26
+ };
27
+ tableContainer?: ContainerComponent | false;
28
+ } & TableProps<import('antdv-next/dist/_util/type').AnyObject>) & Partial<{}>> & import('vue').PublicProps;
29
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
30
+ attrs: any;
31
+ slots: Readonly<Omit<Omit<Readonly<{
32
+ default?: (() => any) | undefined;
33
+ title?: ((data: readonly import('antdv-next/dist/_util/type').AnyObject[]) => any) | undefined;
34
+ footer?: ((data: readonly import('antdv-next/dist/_util/type').AnyObject[]) => any) | undefined;
35
+ summary?: ((data: readonly import('antdv-next/dist/_util/type').AnyObject[]) => any) | undefined;
36
+ emptyText?: (() => any) | undefined;
37
+ expandIcon?: ((info: any) => any) | undefined;
38
+ expandedRowRender?: ((ctx: {
39
+ record: import('antdv-next/dist/_util/type').AnyObject;
40
+ index: number;
41
+ indent: number;
42
+ expanded: boolean;
43
+ }) => any) | undefined;
44
+ headerCell?: ((ctx: {
45
+ column: ColumnType<import('antdv-next/dist/_util/type').AnyObject>;
46
+ index: number;
47
+ text: any;
48
+ }) => any) | undefined;
49
+ bodyCell?: ((ctx: {
50
+ column: ColumnType<import('antdv-next/dist/_util/type').AnyObject>;
51
+ index: number;
52
+ text: any;
53
+ record: import('antdv-next/dist/_util/type').AnyObject;
54
+ }) => any) | undefined;
55
+ filterDropdown?: ((ctx: import('antdv-next/dist/table/interface').FilterDropdownProps & {
56
+ column: ColumnType<import('antdv-next/dist/_util/type').AnyObject>;
57
+ }) => any) | undefined;
58
+ filterIcon?: ((ctx: {
59
+ column: ColumnType<import('antdv-next/dist/_util/type').AnyObject>;
60
+ filtered: boolean;
61
+ }) => any) | undefined;
62
+ }>, "bodyCell"> & Readonly<{
63
+ bodyCell?: (props: {
64
+ text: any;
65
+ value: any;
66
+ record: T extends Table<any, infer R extends import('@qin-ui/pro-components-core').Data> ? R : never;
67
+ index: number;
68
+ column: Column<T extends Table<any, infer R extends import('@qin-ui/pro-components-core').Data> ? R : never>;
69
+ }) => void;
70
+ }> & Readonly<Partial<Record<"table" | "search-form" | "button-bar" | "toolbar", Slot>>>, "default">> & Omit<Omit<Readonly<{
71
+ default?: (() => any) | undefined;
72
+ title?: ((data: readonly import('antdv-next/dist/_util/type').AnyObject[]) => any) | undefined;
73
+ footer?: ((data: readonly import('antdv-next/dist/_util/type').AnyObject[]) => any) | undefined;
74
+ summary?: ((data: readonly import('antdv-next/dist/_util/type').AnyObject[]) => any) | undefined;
75
+ emptyText?: (() => any) | undefined;
76
+ expandIcon?: ((info: any) => any) | undefined;
77
+ expandedRowRender?: ((ctx: {
78
+ record: import('antdv-next/dist/_util/type').AnyObject;
79
+ index: number;
80
+ indent: number;
81
+ expanded: boolean;
82
+ }) => any) | undefined;
83
+ headerCell?: ((ctx: {
84
+ column: ColumnType<import('antdv-next/dist/_util/type').AnyObject>;
85
+ index: number;
86
+ text: any;
87
+ }) => any) | undefined;
88
+ bodyCell?: ((ctx: {
89
+ column: ColumnType<import('antdv-next/dist/_util/type').AnyObject>;
90
+ index: number;
91
+ text: any;
92
+ record: import('antdv-next/dist/_util/type').AnyObject;
93
+ }) => any) | undefined;
94
+ filterDropdown?: ((ctx: import('antdv-next/dist/table/interface').FilterDropdownProps & {
95
+ column: ColumnType<import('antdv-next/dist/_util/type').AnyObject>;
96
+ }) => any) | undefined;
97
+ filterIcon?: ((ctx: {
98
+ column: ColumnType<import('antdv-next/dist/_util/type').AnyObject>;
99
+ filtered: boolean;
100
+ }) => any) | undefined;
101
+ }>, "bodyCell"> & Readonly<{
102
+ bodyCell?: (props: {
103
+ text: any;
104
+ value: any;
105
+ record: T extends Table<any, infer R extends import('@qin-ui/pro-components-core').Data> ? R : never;
106
+ index: number;
107
+ column: Column<T extends Table<any, infer R extends import('@qin-ui/pro-components-core').Data> ? R : never>;
108
+ }) => void;
109
+ }> & Readonly<Partial<Record<"table" | "search-form" | "button-bar" | "toolbar", Slot>>>, "default">;
110
+ emit: ((evt: "update:size", value: import('antdv-next').ButtonSize) => void) & ((evt: "update:loading", value: boolean) => void);
111
+ }>) => import('vue').VNode & {
112
+ __ctx?: Awaited<typeof __VLS_setup>;
113
+ };
114
+ export default _default;
115
+ type __VLS_PrettifyLocal<T> = {
116
+ [K in keyof T]: T[K];
117
+ } & {};
118
+ //# sourceMappingURL=ProTable.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/ProTable.vue"],"names":[],"mappings":"AAsXA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAGL,UAAU,EACV,UAAU,EAEX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAML,KAAK,IAAI,EACV,MAAM,KAAK,CAAC;AAGb,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AASzC,OAAO,EAAE,MAAM,EAAW,MAAM,UAAU,CAAC;yBAE1B,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,EAC5C,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC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G,EAAE,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { FormProps } from '../../../shared/ui';
2
+ import { AllowedComponentProps, Component, DefineComponent } from 'vue';
3
+ import { Form } from '../../form';
4
+ type Expand = {
5
+ minExpandRows?: number;
6
+ expandStatus?: boolean;
7
+ };
8
+ type _FormProps = Pick<Partial<FormProps>, 'colon' | 'disabled' | 'labelAlign' | 'labelCol' | 'labelWrap' | 'name' | 'wrapperCol'>;
9
+ type ButtonProps = {
10
+ onClick: () => void;
11
+ };
12
+ type ExpandButtonProps = ButtonProps & {
13
+ expandStatus: boolean;
14
+ };
15
+ export type SearchFormProps = {
16
+ form: Form;
17
+ layout?: 'grid' | 'inline';
18
+ expand?: boolean | Expand;
19
+ searchButton?: Component<ButtonProps> | DefineComponent<ButtonProps> | false;
20
+ resetButton?: Component<ButtonProps> | DefineComponent<ButtonProps> | false;
21
+ expandButton?: Component<ExpandButtonProps> | DefineComponent<ExpandButtonProps> | false;
22
+ rowGap?: number;
23
+ columnGap?: number;
24
+ } & /* @vue-ignore */ _FormProps & AllowedComponentProps;
25
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<SearchFormProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
26
+ search: () => any;
27
+ reset: () => any;
28
+ }, string, import('vue').PublicProps, Readonly<SearchFormProps> & Readonly<{
29
+ onSearch?: (() => any) | undefined;
30
+ onReset?: (() => any) | undefined;
31
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
32
+ 'reset-button'?(_: {
33
+ onClick: () => void;
34
+ }): any;
35
+ 'search-button'?(_: {
36
+ onClick: () => void;
37
+ }): any;
38
+ 'expand-button'?(_: {
39
+ onClick: () => void;
40
+ }): any;
41
+ }>;
42
+ export default _default;
43
+ type __VLS_WithTemplateSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
48
+ //# sourceMappingURL=SearchForm.vue.d.ts.map
@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AM,CAAC;CACpB,GAAG,iBAAiB,CAAC,UAAU,GAC9B,qBAAqB,CAAC;;;;;;;;;;QAuVa,GAAG;;;QACF,GAAG;;;QACH,GAAG;;AAvVzC,wBAoYK;AAQL,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { TableProps } from '../../../shared/ui';
2
+ type Size = TableProps['size'];
3
+ type __VLS_PublicProps = {
4
+ 'size'?: Size;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "update:size": (value: import('antdv-next').ButtonSize) => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
9
+ "onUpdate:size"?: ((value: import('antdv-next').ButtonSize) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ export default _default;
12
+ //# sourceMappingURL=SizeControl.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SizeControl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/SizeControl.vue"],"names":[],"mappings":"AAwDA,OAAO,EAIL,KAAK,UAAU,EAEhB,MAAM,oBAAoB,CAAC;AAG5B,KAAK,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;AAiB/B,KAAK,iBAAiB,GAAG;IACzB,MAAM,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;;;;;;AA0GF,wBAQG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=ColumnHeightOutlined.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColumnHeightOutlined.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/table/components/icons/ColumnHeightOutlined.vue"],"names":[],"mappings":";AAkDA,wBAKG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=DownOutlined.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DownOutlined.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/table/components/icons/DownOutlined.vue"],"names":[],"mappings":";AAkDA,wBAKG"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=FilterOutlined.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FilterOutlined.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/table/components/icons/FilterOutlined.vue"],"names":[],"mappings":";AAkDA,wBAKG"}
@@ -0,0 +1,5 @@
1
+ export { default as DefaultSearchFormContainer } from './DefaultSearchFormContainer.vue';
2
+ export { default as DefaultTableContainer } from './DefaultTableContainer.vue';
3
+ export { default as SizeControl } from './SizeControl.vue';
4
+ export { default as ColumnControl } from './ColumnControl.vue';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ComponentExposed, ComponentProps } from 'vue-component-type-helpers';
2
+ import { default as ProTable } from './components/ProTable.vue';
3
+ export type ProTableProps = ComponentProps<typeof ProTable>;
4
+ export type ProTableInstance = ComponentExposed<typeof ProTable>;
5
+ export { type Column, type Columns } from './types';
6
+ export { useTable, type Table } from './useTable';
7
+ export default ProTable;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AAGjD,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5D,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,QAAQ,CAAC,CAAC;AAGjE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAGpD,OAAO,EAAE,QAAQ,EAAE,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAElD,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { ColumnType } from '../../../shared/ui';
2
+ import { Data, KeyExpandString, Paths, Path } from '../../../shared/core';
3
+ /**
4
+ * @qin-ui/antdv-next-pro 表格列配置类型
5
+ *
6
+ * @description 继承 antdv-next 的 ColumnType 列类型,并添加:
7
+ * - 类型安全的 dataIndex(基于泛型 D 推导路径),优先使用
8
+ * - key 作为辅助标识
9
+ * - hidden 属性用于控制列显隐
10
+ *
11
+ * @template D - 表格行数据类型
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * interface User { name: string; age: number }
16
+ *
17
+ * const columns: Columns<User> = [
18
+ * { dataIndex: 'name', title: '姓名', width: 120 },
19
+ * { dataIndex: 'age', title: '年龄', width: 80 },
20
+ * ]
21
+ * ```
22
+
23
+ * @public
24
+ */
25
+ export type Column<D extends Data = Data> = Omit<ColumnType, 'dataIndex' | 'key'> & {
26
+ /**
27
+ * @description 列数据路径(主要字段),优先使用 dataIndex 进行字段匹配
28
+ * @example 'name' | 'address.city' | ['address', 'city']
29
+ */
30
+ dataIndex?: KeyExpandString<Extract<keyof D, string>> | Paths<D>;
31
+ /**
32
+ * @description 列字段标识(辅助字段),当 dataIndex 不满足需求时使用
33
+ */
34
+ key?: Path<D>;
35
+ /**
36
+ * @description 是否隐藏该列
37
+ * @default false
38
+ */
39
+ hidden?: boolean;
40
+ };
41
+ /**
42
+ * @qin-ui/antdv-next-pro 表格列配置数组类型
43
+ * @template D - 表格行数据类型
44
+
45
+ * @public
46
+ */
47
+ export type Columns<D extends Data = Data> = Array<Column<D>>;
48
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE1E;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,IAAI,IAAI,CAC9C,UAAU,EACV,WAAW,GAAG,KAAK,CACpB,GAAG;IACF;;;OAGG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IACjE;;OAEG;IACH,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACd;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC"}