@silver-formily/element-plus 0.0.1-beta.0 → 1.0.1

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 (325) hide show
  1. package/esm/__builtins__/configs/index.d.ts +1 -0
  2. package/esm/__builtins__/configs/index.mjs +5 -0
  3. package/esm/__builtins__/configs/index.mjs.map +1 -0
  4. package/esm/__builtins__/index.d.ts +2 -0
  5. package/esm/__builtins__/index.mjs +27 -0
  6. package/esm/__builtins__/index.mjs.map +1 -0
  7. package/esm/__builtins__/shared/hooks.d.ts +7 -0
  8. package/esm/__builtins__/shared/hooks.mjs +59 -0
  9. package/esm/__builtins__/shared/hooks.mjs.map +1 -0
  10. package/esm/__builtins__/shared/index.d.ts +7 -0
  11. package/esm/__builtins__/shared/index.mjs +25 -0
  12. package/esm/__builtins__/shared/index.mjs.map +1 -0
  13. package/esm/__builtins__/shared/load-config-provider.d.ts +2 -0
  14. package/esm/__builtins__/shared/load-config-provider.mjs +12 -0
  15. package/esm/__builtins__/shared/load-config-provider.mjs.map +1 -0
  16. package/esm/__builtins__/shared/loading.d.ts +12 -0
  17. package/esm/__builtins__/shared/loading.mjs +49 -0
  18. package/esm/__builtins__/shared/loading.mjs.map +1 -0
  19. package/esm/__builtins__/shared/simple-version-compare.d.ts +2 -0
  20. package/esm/__builtins__/shared/simple-version-compare.mjs +18 -0
  21. package/esm/__builtins__/shared/simple-version-compare.mjs.map +1 -0
  22. package/esm/__builtins__/shared/transform-component.d.ts +8 -0
  23. package/esm/__builtins__/shared/transform-component.mjs +49 -0
  24. package/esm/__builtins__/shared/transform-component.mjs.map +1 -0
  25. package/esm/__builtins__/shared/types.d.ts +2 -0
  26. package/esm/__builtins__/shared/types.mjs +2 -0
  27. package/esm/__builtins__/shared/types.mjs.map +1 -0
  28. package/esm/__builtins__/shared/utils.d.ts +8 -0
  29. package/esm/__builtins__/shared/utils.mjs +34 -0
  30. package/esm/__builtins__/shared/utils.mjs.map +1 -0
  31. package/esm/array-base/array-base-addition.d.ts +5 -0
  32. package/esm/array-base/array-base-index.d.ts +19 -0
  33. package/esm/array-base/array-base-inner.d.ts +18 -0
  34. package/esm/array-base/array-base-item.d.ts +18 -0
  35. package/esm/array-base/array-base-move-down.d.ts +18 -0
  36. package/esm/array-base/array-base-move-up.d.ts +18 -0
  37. package/esm/array-base/array-base-remove.d.ts +18 -0
  38. package/esm/array-base/array-base-sort-handle.d.ts +2 -0
  39. package/esm/array-base/index.d.ts +114 -0
  40. package/esm/array-base/index.mjs +209 -0
  41. package/esm/array-base/index.mjs.map +1 -0
  42. package/esm/array-base/symbols.d.ts +4 -0
  43. package/esm/array-base/symbols.mjs +6 -0
  44. package/esm/array-base/symbols.mjs.map +1 -0
  45. package/esm/array-base/types.d.ts +28 -0
  46. package/esm/array-base/types.mjs +2 -0
  47. package/esm/array-base/types.mjs.map +1 -0
  48. package/esm/array-base/utils.d.ts +18 -0
  49. package/esm/array-base/utils.mjs +79 -0
  50. package/esm/array-base/utils.mjs.map +1 -0
  51. package/esm/array-cards/array-cards.d.ts +13 -0
  52. package/esm/array-cards/index.d.ts +122 -0
  53. package/esm/array-cards/index.mjs +119 -0
  54. package/esm/array-cards/index.mjs.map +1 -0
  55. package/esm/array-collapse/array-collapse-item.d.ts +18 -0
  56. package/esm/array-collapse/array-collapse.d.ts +16 -0
  57. package/esm/array-collapse/index.d.ts +134 -0
  58. package/esm/array-collapse/index.mjs +177 -0
  59. package/esm/array-collapse/index.mjs.map +1 -0
  60. package/esm/array-collapse/utils.d.ts +1 -0
  61. package/esm/array-collapse/utils.mjs +12 -0
  62. package/esm/array-collapse/utils.mjs.map +1 -0
  63. package/esm/array-items/array-items-item.d.ts +30 -0
  64. package/esm/array-items/array-items.d.ts +2 -0
  65. package/esm/array-items/index.d.ts +130 -0
  66. package/esm/array-items/index.mjs +105 -0
  67. package/esm/array-items/index.mjs.map +1 -0
  68. package/esm/array-list-tabs/array-list-tabs.d.ts +31 -0
  69. package/esm/array-list-tabs/index.d.ts +83 -0
  70. package/esm/array-list-tabs/index.mjs +183 -0
  71. package/esm/array-list-tabs/index.mjs.map +1 -0
  72. package/esm/array-list-tabs/utils.d.ts +3 -0
  73. package/esm/array-list-tabs/utils.mjs +16 -0
  74. package/esm/array-list-tabs/utils.mjs.map +1 -0
  75. package/esm/array-table/array-table.d.ts +1477 -0
  76. package/esm/array-table/index.d.ts +1573 -0
  77. package/esm/array-table/index.mjs +225 -0
  78. package/esm/array-table/index.mjs.map +1 -0
  79. package/esm/array-table/types.d.ts +6 -0
  80. package/esm/array-table/types.mjs +2 -0
  81. package/esm/array-table/types.mjs.map +1 -0
  82. package/esm/array-table/utils.d.ts +5 -0
  83. package/esm/array-table/utils.mjs +25 -0
  84. package/esm/array-table/utils.mjs.map +1 -0
  85. package/esm/array-tabs/array-tabs.d.ts +2 -0
  86. package/esm/array-tabs/index.d.ts +2 -0
  87. package/esm/array-tabs/index.mjs +87 -0
  88. package/esm/array-tabs/index.mjs.map +1 -0
  89. package/esm/cascader/cascader.d.ts +30 -0
  90. package/esm/cascader/index.d.ts +41 -0
  91. package/esm/cascader/index.mjs +54 -0
  92. package/esm/cascader/index.mjs.map +1 -0
  93. package/esm/checkbox/checkbox-group.d.ts +58 -0
  94. package/esm/checkbox/index.d.ts +779 -0
  95. package/esm/checkbox/index.mjs +83 -0
  96. package/esm/checkbox/index.mjs.map +1 -0
  97. package/esm/date-picker/index.d.ts +2 -0
  98. package/esm/date-picker/index.mjs +57 -0
  99. package/esm/date-picker/index.mjs.map +1 -0
  100. package/esm/editable/editable-popover.d.ts +25 -0
  101. package/esm/editable/editable.d.ts +187 -0
  102. package/esm/editable/index.d.ts +147 -0
  103. package/esm/editable/index.mjs +225 -0
  104. package/esm/editable/index.mjs.map +1 -0
  105. package/esm/form/form.d.ts +46 -0
  106. package/esm/form/form.mjs +71 -0
  107. package/esm/form/form.mjs.map +1 -0
  108. package/esm/form/index.d.ts +1 -0
  109. package/esm/form/index.mjs +6 -0
  110. package/esm/form/index.mjs.map +1 -0
  111. package/esm/form-button-group/form-button-group-sticky.d.ts +17 -0
  112. package/esm/form-button-group/form-button-group.d.ts +48 -0
  113. package/esm/form-button-group/index.d.ts +87 -0
  114. package/esm/form-button-group/index.mjs +87 -0
  115. package/esm/form-button-group/index.mjs.map +1 -0
  116. package/esm/form-button-group/utils.d.ts +1 -0
  117. package/esm/form-button-group/utils.mjs +12 -0
  118. package/esm/form-button-group/utils.mjs.map +1 -0
  119. package/esm/form-collapse/form-collapse.d.ts +18 -0
  120. package/esm/form-collapse/index.d.ts +45 -0
  121. package/esm/form-collapse/index.mjs +87 -0
  122. package/esm/form-collapse/index.mjs.map +1 -0
  123. package/esm/form-collapse/utils.d.ts +31 -0
  124. package/esm/form-collapse/utils.mjs +50 -0
  125. package/esm/form-collapse/utils.mjs.map +1 -0
  126. package/esm/form-dialog/dialog-content.d.ts +60 -0
  127. package/esm/form-dialog/index.d.ts +4 -0
  128. package/esm/form-dialog/index.mjs +208 -0
  129. package/esm/form-dialog/index.mjs.map +1 -0
  130. package/esm/form-dialog/types.d.ts +32 -0
  131. package/esm/form-dialog/types.mjs +2 -0
  132. package/esm/form-dialog/types.mjs.map +1 -0
  133. package/esm/form-drawer/drawer-content.d.ts +60 -0
  134. package/esm/form-drawer/index.d.ts +4 -0
  135. package/esm/form-drawer/index.mjs +202 -0
  136. package/esm/form-drawer/index.mjs.map +1 -0
  137. package/esm/form-drawer/types.d.ts +32 -0
  138. package/esm/form-drawer/types.mjs +2 -0
  139. package/esm/form-drawer/types.mjs.map +1 -0
  140. package/esm/form-grid/form-grid-column.d.ts +29 -0
  141. package/esm/form-grid/form-grid.d.ts +101 -0
  142. package/esm/form-grid/hooks.d.ts +5 -0
  143. package/esm/form-grid/hooks.mjs +14 -0
  144. package/esm/form-grid/hooks.mjs.map +1 -0
  145. package/esm/form-grid/index.d.ts +184 -0
  146. package/esm/form-grid/index.mjs +107 -0
  147. package/esm/form-grid/index.mjs.map +1 -0
  148. package/esm/form-item/form-item.d.ts +18 -0
  149. package/esm/form-item/index.d.ts +70 -0
  150. package/esm/form-item/index.mjs +331 -0
  151. package/esm/form-item/index.mjs.map +1 -0
  152. package/esm/form-item/types.d.ts +25 -0
  153. package/esm/form-item/types.mjs +2 -0
  154. package/esm/form-item/types.mjs.map +1 -0
  155. package/esm/form-item/utils.d.ts +3 -0
  156. package/esm/form-item/utils.mjs +17 -0
  157. package/esm/form-item/utils.mjs.map +1 -0
  158. package/esm/form-layout/form-layout.d.ts +32 -0
  159. package/esm/form-layout/form-layout.mjs +83 -0
  160. package/esm/form-layout/form-layout.mjs.map +1 -0
  161. package/esm/form-layout/index.d.ts +1 -0
  162. package/esm/form-layout/index.mjs +6 -0
  163. package/esm/form-layout/index.mjs.map +1 -0
  164. package/esm/form-layout/types.d.ts +43 -0
  165. package/esm/form-layout/types.mjs +2 -0
  166. package/esm/form-layout/types.mjs.map +1 -0
  167. package/esm/form-layout/utils.d.ts +57 -0
  168. package/esm/form-layout/utils.mjs +109 -0
  169. package/esm/form-layout/utils.mjs.map +1 -0
  170. package/esm/form-step/form-step-pane.d.ts +2 -0
  171. package/esm/form-step/form-step.d.ts +5 -0
  172. package/esm/form-step/index.d.ts +24 -0
  173. package/esm/form-step/index.mjs +92 -0
  174. package/esm/form-step/index.mjs.map +1 -0
  175. package/esm/form-step/types.d.ts +21 -0
  176. package/esm/form-step/types.mjs +2 -0
  177. package/esm/form-step/types.mjs.map +1 -0
  178. package/esm/form-step/utils.d.ts +11 -0
  179. package/esm/form-step/utils.mjs +64 -0
  180. package/esm/form-step/utils.mjs.map +1 -0
  181. package/esm/form-tab/form-tab.d.ts +7 -0
  182. package/esm/form-tab/hooks.d.ts +7 -0
  183. package/esm/form-tab/hooks.mjs +24 -0
  184. package/esm/form-tab/hooks.mjs.map +1 -0
  185. package/esm/form-tab/index.d.ts +28 -0
  186. package/esm/form-tab/index.mjs +77 -0
  187. package/esm/form-tab/index.mjs.map +1 -0
  188. package/esm/form-tab/types.d.ts +12 -0
  189. package/esm/form-tab/types.mjs +2 -0
  190. package/esm/form-tab/types.mjs.map +1 -0
  191. package/esm/form-tab/utils.d.ts +4 -0
  192. package/esm/form-tab/utils.mjs +14 -0
  193. package/esm/form-tab/utils.mjs.map +1 -0
  194. package/esm/index.d.ts +37 -0
  195. package/esm/index.mjs +81 -0
  196. package/esm/index.mjs.map +1 -0
  197. package/esm/input/index.d.ts +84 -0
  198. package/esm/input/index.mjs +77 -0
  199. package/esm/input/index.mjs.map +1 -0
  200. package/esm/input/input.d.ts +32 -0
  201. package/esm/input-number/index.d.ts +4 -0
  202. package/esm/input-number/index.mjs +30 -0
  203. package/esm/input-number/index.mjs.map +1 -0
  204. package/esm/pagination/components/jumper.d.ts +16 -0
  205. package/esm/pagination/components/jumper.mjs +12 -0
  206. package/esm/pagination/components/jumper.mjs.map +1 -0
  207. package/esm/pagination/components/next.d.ts +42 -0
  208. package/esm/pagination/components/next.mjs +23 -0
  209. package/esm/pagination/components/next.mjs.map +1 -0
  210. package/esm/pagination/components/pager.d.ts +42 -0
  211. package/esm/pagination/components/pager.mjs +23 -0
  212. package/esm/pagination/components/pager.mjs.map +1 -0
  213. package/esm/pagination/components/prev.d.ts +39 -0
  214. package/esm/pagination/components/prev.mjs +22 -0
  215. package/esm/pagination/components/prev.mjs.map +1 -0
  216. package/esm/pagination/components/sizes.d.ts +56 -0
  217. package/esm/pagination/components/sizes.mjs +7 -0
  218. package/esm/pagination/components/sizes.mjs.map +1 -0
  219. package/esm/pagination/components/total.d.ts +8 -0
  220. package/esm/pagination/components/total.mjs +11 -0
  221. package/esm/pagination/components/total.mjs.map +1 -0
  222. package/esm/pagination/pagination.d.ts +128 -0
  223. package/esm/pagination/pagination.mjs +629 -0
  224. package/esm/pagination/pagination.mjs.map +1 -0
  225. package/esm/password/index.d.ts +86 -0
  226. package/esm/password/index.mjs +14 -0
  227. package/esm/password/index.mjs.map +1 -0
  228. package/esm/preview-text/cascader.d.ts +5 -0
  229. package/esm/preview-text/date-picker.d.ts +5 -0
  230. package/esm/preview-text/index.d.ts +102 -0
  231. package/esm/preview-text/index.mjs +314 -0
  232. package/esm/preview-text/index.mjs.map +1 -0
  233. package/esm/preview-text/input.d.ts +28 -0
  234. package/esm/preview-text/preview.d.ts +18 -0
  235. package/esm/preview-text/select.d.ts +5 -0
  236. package/esm/preview-text/time-picker.d.ts +5 -0
  237. package/esm/preview-text/tree.d.ts +22 -0
  238. package/esm/preview-text/utils.d.ts +14 -0
  239. package/esm/preview-text/utils.mjs +16 -0
  240. package/esm/preview-text/utils.mjs.map +1 -0
  241. package/esm/radio/index.d.ts +370 -0
  242. package/esm/radio/index.mjs +80 -0
  243. package/esm/radio/index.mjs.map +1 -0
  244. package/esm/radio/radio-group.d.ts +44 -0
  245. package/esm/reset/index.d.ts +63 -0
  246. package/esm/reset/index.mjs +44 -0
  247. package/esm/reset/index.mjs.map +1 -0
  248. package/esm/reset/reset.d.ts +45 -0
  249. package/esm/select/index.d.ts +142 -0
  250. package/esm/select/index.mjs +132 -0
  251. package/esm/select/index.mjs.map +1 -0
  252. package/esm/select/select.d.ts +50 -0
  253. package/esm/select-table/index.d.ts +1530 -0
  254. package/esm/select-table/index.mjs +205 -0
  255. package/esm/select-table/index.mjs.map +1 -0
  256. package/esm/select-table/select-table.d.ts +2974 -0
  257. package/esm/select-table/types.d.ts +17 -0
  258. package/esm/select-table/types.mjs +2 -0
  259. package/esm/select-table/types.mjs.map +1 -0
  260. package/esm/space/index.d.ts +1 -0
  261. package/esm/space/index.mjs +6 -0
  262. package/esm/space/index.mjs.map +1 -0
  263. package/esm/styles/array-base/index.css +1 -0
  264. package/esm/styles/array-cards/index.css +1 -0
  265. package/esm/styles/array-collapse/index.css +1 -0
  266. package/esm/styles/array-items/index.css +1 -0
  267. package/esm/styles/array-list-tabs/index.css +1 -0
  268. package/esm/styles/array-table/index.css +1 -0
  269. package/esm/styles/array-tabs/index.css +1 -0
  270. package/esm/styles/editable/index.css +1 -0
  271. package/esm/styles/form-button-group/index.css +1 -0
  272. package/esm/styles/form-collapse/index.css +1 -0
  273. package/esm/styles/form-grid/index.css +1 -0
  274. package/esm/styles/form-item/index.css +1 -0
  275. package/esm/styles/form-tab/index.css +1 -0
  276. package/esm/styles/preview-text/index.css +1 -0
  277. package/esm/styles/radio/index.css +1 -0
  278. package/esm/styles/select-table/index.css +1 -0
  279. package/esm/submit/index.d.ts +48 -0
  280. package/esm/submit/index.mjs +40 -0
  281. package/esm/submit/index.mjs.map +1 -0
  282. package/esm/submit/submit.d.ts +36 -0
  283. package/esm/switch/index.d.ts +4 -0
  284. package/esm/switch/index.mjs +19 -0
  285. package/esm/switch/index.mjs.map +1 -0
  286. package/esm/time-picker/index.d.ts +4 -0
  287. package/esm/time-picker/index.mjs +21 -0
  288. package/esm/time-picker/index.mjs.map +1 -0
  289. package/esm/time-select/index.d.ts +2 -0
  290. package/esm/time-select/index.mjs +21 -0
  291. package/esm/time-select/index.mjs.map +1 -0
  292. package/esm/transfer/index.d.ts +186 -0
  293. package/esm/transfer/index.mjs +11 -0
  294. package/esm/transfer/index.mjs.map +1 -0
  295. package/esm/tree/index.d.ts +42 -0
  296. package/esm/tree/index.mjs +104 -0
  297. package/esm/tree/index.mjs.map +1 -0
  298. package/esm/tree/tree.d.ts +20 -0
  299. package/esm/tree/types.d.ts +13 -0
  300. package/esm/tree/types.mjs +2 -0
  301. package/esm/tree/types.mjs.map +1 -0
  302. package/esm/tree/utils.d.ts +45 -0
  303. package/esm/tree/utils.mjs +161 -0
  304. package/esm/tree/utils.mjs.map +1 -0
  305. package/esm/tree-select/index.d.ts +32 -0
  306. package/esm/tree-select/index.mjs +47 -0
  307. package/esm/tree-select/index.mjs.map +1 -0
  308. package/esm/tree-select/tree-select.d.ts +17 -0
  309. package/esm/upload/index.d.ts +707 -0
  310. package/esm/upload/index.mjs +175 -0
  311. package/esm/upload/index.mjs.map +1 -0
  312. package/esm/upload/upload.d.ts +1249 -0
  313. package/esm/vendor/icon.mjs +11 -0
  314. package/esm/vendor/icon.mjs.map +1 -0
  315. package/esm/vendor/lodash.mjs +1400 -0
  316. package/esm/vendor/lodash.mjs.map +1 -0
  317. package/esm/vendor/runtime.mjs +35 -0
  318. package/esm/vendor/runtime.mjs.map +1 -0
  319. package/esm/vendor/shared.esm-bundler.mjs +14 -0
  320. package/esm/vendor/shared.esm-bundler.mjs.map +1 -0
  321. package/esm/vendor/sizes.mjs +27 -0
  322. package/esm/vendor/sizes.mjs.map +1 -0
  323. package/esm/vendor/types.mjs +19 -0
  324. package/esm/vendor/types.mjs.map +1 -0
  325. package/package.json +1 -1
@@ -0,0 +1,184 @@
1
+ import { createFormGrid } from './hooks';
2
+ export declare const FormGrid: {
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
4
+ columnGap: {
5
+ type: NumberConstructor;
6
+ };
7
+ rowGap: {
8
+ type: NumberConstructor;
9
+ };
10
+ minColumns: {
11
+ type: (ArrayConstructor | NumberConstructor)[];
12
+ };
13
+ minWidth: {
14
+ type: (ArrayConstructor | NumberConstructor)[];
15
+ };
16
+ maxColumns: {
17
+ type: (ArrayConstructor | NumberConstructor)[];
18
+ };
19
+ maxWidth: {
20
+ type: (ArrayConstructor | NumberConstructor)[];
21
+ };
22
+ breakpoints: {
23
+ type: import('vue').PropType<number[]>;
24
+ };
25
+ colWrap: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ strictAutoFit: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ shouldVisible: {
34
+ type: import('vue').PropType<import('@formily/grid').IGridOptions["shouldVisible"]>;
35
+ default(): () => true;
36
+ };
37
+ grid: {
38
+ type: import('vue').PropType<import('@formily/grid').Grid<HTMLElement>>;
39
+ };
40
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
41
+ colWrap: boolean;
42
+ strictAutoFit: boolean;
43
+ shouldVisible: (node: import('@formily/grid').GridNode, grid: import('@formily/grid').Grid<HTMLElement>) => boolean;
44
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
45
+ rootRef: HTMLDivElement;
46
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
47
+ P: {};
48
+ B: {};
49
+ D: {};
50
+ C: {};
51
+ M: {};
52
+ Defaults: {};
53
+ }, Readonly<import('vue').ExtractPropTypes<{
54
+ columnGap: {
55
+ type: NumberConstructor;
56
+ };
57
+ rowGap: {
58
+ type: NumberConstructor;
59
+ };
60
+ minColumns: {
61
+ type: (ArrayConstructor | NumberConstructor)[];
62
+ };
63
+ minWidth: {
64
+ type: (ArrayConstructor | NumberConstructor)[];
65
+ };
66
+ maxColumns: {
67
+ type: (ArrayConstructor | NumberConstructor)[];
68
+ };
69
+ maxWidth: {
70
+ type: (ArrayConstructor | NumberConstructor)[];
71
+ };
72
+ breakpoints: {
73
+ type: import('vue').PropType<number[]>;
74
+ };
75
+ colWrap: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ strictAutoFit: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ shouldVisible: {
84
+ type: import('vue').PropType<import('@formily/grid').IGridOptions["shouldVisible"]>;
85
+ default(): () => true;
86
+ };
87
+ grid: {
88
+ type: import('vue').PropType<import('@formily/grid').Grid<HTMLElement>>;
89
+ };
90
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
91
+ colWrap: boolean;
92
+ strictAutoFit: boolean;
93
+ shouldVisible: (node: import('@formily/grid').GridNode, grid: import('@formily/grid').Grid<HTMLElement>) => boolean;
94
+ }>;
95
+ __isFragment?: never;
96
+ __isTeleport?: never;
97
+ __isSuspense?: never;
98
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
99
+ columnGap: {
100
+ type: NumberConstructor;
101
+ };
102
+ rowGap: {
103
+ type: NumberConstructor;
104
+ };
105
+ minColumns: {
106
+ type: (ArrayConstructor | NumberConstructor)[];
107
+ };
108
+ minWidth: {
109
+ type: (ArrayConstructor | NumberConstructor)[];
110
+ };
111
+ maxColumns: {
112
+ type: (ArrayConstructor | NumberConstructor)[];
113
+ };
114
+ maxWidth: {
115
+ type: (ArrayConstructor | NumberConstructor)[];
116
+ };
117
+ breakpoints: {
118
+ type: import('vue').PropType<number[]>;
119
+ };
120
+ colWrap: {
121
+ type: BooleanConstructor;
122
+ default: boolean;
123
+ };
124
+ strictAutoFit: {
125
+ type: BooleanConstructor;
126
+ default: boolean;
127
+ };
128
+ shouldVisible: {
129
+ type: import('vue').PropType<import('@formily/grid').IGridOptions["shouldVisible"]>;
130
+ default(): () => true;
131
+ };
132
+ grid: {
133
+ type: import('vue').PropType<import('@formily/grid').Grid<HTMLElement>>;
134
+ };
135
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
136
+ colWrap: boolean;
137
+ strictAutoFit: boolean;
138
+ shouldVisible: (node: import('@formily/grid').GridNode, grid: import('@formily/grid').Grid<HTMLElement>) => boolean;
139
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
140
+ $slots: {
141
+ default?(_: {}): any;
142
+ };
143
+ }) & {
144
+ GridColumn: {
145
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
146
+ gridSpan: {
147
+ type: NumberConstructor;
148
+ default: number;
149
+ };
150
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
151
+ gridSpan: number;
152
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
153
+ P: {};
154
+ B: {};
155
+ D: {};
156
+ C: {};
157
+ M: {};
158
+ Defaults: {};
159
+ }, Readonly<import('vue').ExtractPropTypes<{
160
+ gridSpan: {
161
+ type: NumberConstructor;
162
+ default: number;
163
+ };
164
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
165
+ gridSpan: number;
166
+ }>;
167
+ __isFragment?: never;
168
+ __isTeleport?: never;
169
+ __isSuspense?: never;
170
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
171
+ gridSpan: {
172
+ type: NumberConstructor;
173
+ default: number;
174
+ };
175
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
176
+ gridSpan: number;
177
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
178
+ $slots: {
179
+ default?(_: {}): any;
180
+ };
181
+ });
182
+ createFormGrid: typeof createFormGrid;
183
+ };
184
+ export default FormGrid;
@@ -0,0 +1,107 @@
1
+ import { observer as s } from "@formily/reactive-vue";
2
+ import { defineComponent as l, createElementBlock as u, openBlock as c, renderSlot as d, ref as y, computed as G, provide as b, watchEffect as _, normalizeStyle as g, normalizeClass as F } from "vue";
3
+ import "element-plus";
4
+ import { markRaw as C } from "@formily/reactive";
5
+ import "@formily/core";
6
+ import "@formily/vue";
7
+ import { composeExport as v } from "../__builtins__/shared/utils.mjs";
8
+ import { Grid as h } from "@formily/grid";
9
+ import { stylePrefix as N } from "../__builtins__/configs/index.mjs";
10
+ import { FormGridSymbol as w, createFormGrid as x } from "./hooks.mjs";
11
+ import '../styles/form-grid/index.css';const A = ["data-grid-span"], k = /* @__PURE__ */ l({
12
+ name: "FFormGridColumn",
13
+ __name: "form-grid-column",
14
+ props: {
15
+ gridSpan: {
16
+ type: Number,
17
+ default: 1
18
+ }
19
+ },
20
+ setup(m) {
21
+ const r = m;
22
+ return (n, a) => (c(), u("div", {
23
+ "data-grid-span": r.gridSpan
24
+ }, [
25
+ d(n.$slots, "default")
26
+ ], 8, A));
27
+ }
28
+ }), S = /* @__PURE__ */ l({
29
+ name: "FFormGrid",
30
+ __name: "form-grid",
31
+ props: {
32
+ columnGap: {
33
+ type: Number
34
+ },
35
+ rowGap: {
36
+ type: Number
37
+ },
38
+ minColumns: {
39
+ type: [Number, Array]
40
+ },
41
+ minWidth: {
42
+ type: [Number, Array]
43
+ },
44
+ maxColumns: {
45
+ type: [Number, Array]
46
+ },
47
+ maxWidth: {
48
+ type: [Number, Array]
49
+ },
50
+ breakpoints: {
51
+ type: Array
52
+ },
53
+ colWrap: {
54
+ type: Boolean,
55
+ default: !0
56
+ },
57
+ strictAutoFit: {
58
+ type: Boolean,
59
+ default: !1
60
+ },
61
+ shouldVisible: {
62
+ type: Function,
63
+ default() {
64
+ return () => !0;
65
+ }
66
+ },
67
+ grid: {
68
+ type: Object
69
+ }
70
+ },
71
+ setup(m) {
72
+ const r = m, n = `${N}-form-grid`, a = y(), o = G(() => {
73
+ const { grid: e, ...t } = r, f = {
74
+ columnGap: r?.columnGap ?? 8,
75
+ rowGap: r.rowGap ?? 4,
76
+ ...Object.fromEntries(
77
+ Object.entries(t).filter(([i, p]) => p !== void 0).map(([i, p]) => [i, p])
78
+ )
79
+ };
80
+ return C(e ?? new h(f));
81
+ });
82
+ return b(w, o), _((e) => {
83
+ const t = o.value.connect(a.value);
84
+ e(() => {
85
+ t();
86
+ });
87
+ }), (e, t) => (c(), u("div", {
88
+ ref_key: "rootRef",
89
+ ref: a,
90
+ class: F(n),
91
+ style: g({
92
+ gridTemplateColumns: o.value.templateColumns,
93
+ gap: o.value.gap
94
+ })
95
+ }, [
96
+ d(e.$slots, "default")
97
+ ], 4));
98
+ }
99
+ }), B = s(S), E = s(k), q = v(B, {
100
+ GridColumn: E,
101
+ createFormGrid: x
102
+ });
103
+ export {
104
+ q as FormGrid,
105
+ q as default
106
+ };
107
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../src/form-grid/form-grid-column.vue","../../src/form-grid/form-grid.vue","../../src/form-grid/index.ts"],"sourcesContent":["<script lang=\"ts\" setup>\ndefineOptions({\n name: 'FFormGridColumn',\n})\n\nconst props = defineProps({\n gridSpan: {\n type: Number,\n default: 1,\n },\n})\n</script>\n\n<template>\n <!-- @formily/grid 会优先使用这个值,如果没有会自动生成 -->\n <div :data-grid-span=\"props.gridSpan\">\n <slot />\n </div>\n</template>\n","<script lang=\"ts\" setup>\nimport type { IGridOptions } from '@formily/grid'\nimport type { PropType } from 'vue'\nimport { Grid } from '@formily/grid'\nimport { markRaw } from '@formily/reactive'\nimport { computed, provide, ref, watchEffect } from 'vue'\nimport { stylePrefix } from '../__builtins__'\nimport { FormGridSymbol } from './hooks'\n\ndefineOptions({\n name: 'FFormGrid',\n})\n\nconst props = defineProps({\n columnGap: {\n type: Number,\n },\n rowGap: {\n type: Number,\n },\n minColumns: {\n type: [Number, Array],\n },\n minWidth: {\n type: [Number, Array],\n },\n maxColumns: {\n type: [Number, Array],\n },\n maxWidth: {\n type: [Number, Array],\n },\n breakpoints: {\n type: Array as PropType<number[]>,\n },\n colWrap: {\n type: Boolean,\n default: true,\n },\n strictAutoFit: {\n type: Boolean,\n default: false,\n },\n shouldVisible: {\n type: Function as PropType<IGridOptions['shouldVisible']>,\n default() {\n return () => true\n },\n },\n grid: {\n type: Object as PropType<Grid<HTMLElement>>,\n },\n})\n\nconst prefixCls = `${stylePrefix}-form-grid`\nconst rootRef = ref<HTMLElement>()\n\nconst gridInstance = computed(() => {\n const { grid, ...restProps } = props\n const options = {\n columnGap: props?.columnGap ?? 8,\n rowGap: props.rowGap ?? 4,\n ...Object.fromEntries(\n Object.entries(restProps)\n .filter(([_, v]) => v !== undefined)\n .map(([k, v]) => [k, v]),\n ),\n }\n return markRaw(grid ?? new Grid(options))\n})\n\nprovide(FormGridSymbol, gridInstance)\n\nwatchEffect((onInvalidate) => {\n const dispose = gridInstance.value.connect(rootRef.value)\n onInvalidate(() => {\n dispose()\n })\n})\n</script>\n\n<template>\n <div\n ref=\"rootRef\"\n :class=\"prefixCls\"\n :style=\"{\n gridTemplateColumns: gridInstance.templateColumns,\n gap: gridInstance.gap,\n }\"\n >\n <slot />\n </div>\n</template>\n","import { observer } from '@formily/reactive-vue'\nimport { composeExport } from '../__builtins__'\nimport FFormGridColumn from './form-grid-column.vue'\nimport FFormGrid from './form-grid.vue'\nimport { createFormGrid } from './hooks'\nimport './style.scss'\n\nconst FormGridInner = observer(FFormGrid)\n\nconst FormGridColumn = observer(FFormGridColumn)\n\nexport const FormGrid = composeExport(FormGridInner, {\n GridColumn: FormGridColumn,\n createFormGrid,\n})\n\nexport default FormGrid\n"],"names":["props","__props","_createElementBlock","_renderSlot","_ctx","prefixCls","stylePrefix","rootRef","ref","gridInstance","computed","grid","restProps","options","_","v","k","markRaw","Grid","provide","FormGridSymbol","watchEffect","onInvalidate","dispose","_normalizeStyle","FormGridInner","observer","FFormGrid","FormGridColumn","FFormGridColumn","FormGrid","composeExport","createFormGrid"],"mappings":";;;;;;;;;;;;;;;;;;;;AAKA,UAAMA,IAAQC;2BAUZC,EAEM,OAAA;AAAA,MAFA,kBAAgBF,EAAM;AAAA,IAAA;MAC1BG,EAAQC,EAAA,QAAA,SAAA;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACHZ,UAAMJ,IAAQC,GAyCRI,IAAY,GAAGC,CAAW,cAC1BC,IAAUC,EAAA,GAEVC,IAAeC,EAAS,MAAM;AAClC,YAAM,EAAE,MAAAC,GAAM,GAAGC,EAAA,IAAcZ,GACzBa,IAAU;AAAA,QACd,WAAWb,GAAO,aAAa;AAAA,QAC/B,QAAQA,EAAM,UAAU;AAAA,QACxB,GAAG,OAAO;AAAA,UACR,OAAO,QAAQY,CAAS,EACrB,OAAO,CAAC,CAACE,GAAGC,CAAC,MAAMA,MAAM,MAAS,EAClC,IAAI,CAAC,CAACC,GAAGD,CAAC,MAAM,CAACC,GAAGD,CAAC,CAAC;AAAA,QAAA;AAAA,MAC3B;AAEF,aAAOE,EAAQN,KAAQ,IAAIO,EAAKL,CAAO,CAAC;AAAA,IAC1C,CAAC;AAED,WAAAM,EAAQC,GAAgBX,CAAY,GAEpCY,EAAY,CAACC,MAAiB;AAC5B,YAAMC,IAAUd,EAAa,MAAM,QAAQF,EAAQ,KAAK;AACxD,MAAAe,EAAa,MAAM;AACjB,QAAAC,EAAA;AAAA,MACF,CAAC;AAAA,IACH,CAAC,mBAICrB,EASM,OAAA;AAAA,eARA;AAAA,MAAJ,KAAIK;AAAA,MACH,SAAOF,CAAS;AAAA,MAChB,OAAKmB,EAAA;AAAA,QAA+B,qBAAAf,EAAA,MAAa;AAAA,QAA4B,KAAAA,EAAA,MAAa;AAAA,MAAA;;MAK3FN,EAAQC,EAAA,QAAA,SAAA;AAAA,IAAA;;ICnFNqB,IAAgBC,EAASC,CAAS,GAElCC,IAAiBF,EAASG,CAAe,GAElCC,IAAWC,EAAcN,GAAe;AAAA,EACnD,YAAYG;AAAA,EACZ,gBAAAI;AACF,CAAC;"}
@@ -0,0 +1,18 @@
1
+ import { TooltipInstance } from 'element-plus';
2
+ import { IFormItemProps } from './types';
3
+ declare function __VLS_template(): any;
4
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
5
+ declare const __VLS_component: import('vue').DefineComponent<IFormItemProps, {
6
+ feedbackTooltipRef: import('vue').Ref<TooltipInstance, TooltipInstance>;
7
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IFormItemProps> & Readonly<{}>, {
8
+ colon: boolean;
9
+ fullness: boolean;
10
+ feedbackLayout: "loose" | "terse" | "popover";
11
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, any, any>;
12
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,70 @@
1
+ export declare function fieldFeedbackMapper(props: any, field: any): any;
2
+ export declare const FormItem: {
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').IFormItemProps> & Readonly<{}>, {
4
+ feedbackTooltipRef: import('vue').Ref<import('element-plus').TooltipInstance, import('element-plus').TooltipInstance>;
5
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
6
+ colon: boolean;
7
+ fullness: boolean;
8
+ feedbackLayout: "loose" | "terse" | "popover";
9
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, any, any, import('vue').ComponentProvideOptions, {
10
+ P: {};
11
+ B: {};
12
+ D: {};
13
+ C: {};
14
+ M: {};
15
+ Defaults: {};
16
+ }, Readonly<import('./types').IFormItemProps> & Readonly<{}>, {
17
+ feedbackTooltipRef: import('vue').Ref<import('element-plus').TooltipInstance, import('element-plus').TooltipInstance>;
18
+ }, {}, {}, {}, {
19
+ colon: boolean;
20
+ fullness: boolean;
21
+ feedbackLayout: "loose" | "terse" | "popover";
22
+ }>;
23
+ __isFragment?: never;
24
+ __isTeleport?: never;
25
+ __isSuspense?: never;
26
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types').IFormItemProps> & Readonly<{}>, {
27
+ feedbackTooltipRef: import('vue').Ref<import('element-plus').TooltipInstance, import('element-plus').TooltipInstance>;
28
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
29
+ colon: boolean;
30
+ fullness: boolean;
31
+ feedbackLayout: "loose" | "terse" | "popover";
32
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
33
+ $slots: any;
34
+ }) & {
35
+ BaseItem: {
36
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').IFormItemProps> & Readonly<{}>, {
37
+ feedbackTooltipRef: import('vue').Ref<import('element-plus').TooltipInstance, import('element-plus').TooltipInstance>;
38
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
39
+ colon: boolean;
40
+ fullness: boolean;
41
+ feedbackLayout: "loose" | "terse" | "popover";
42
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, any, any, import('vue').ComponentProvideOptions, {
43
+ P: {};
44
+ B: {};
45
+ D: {};
46
+ C: {};
47
+ M: {};
48
+ Defaults: {};
49
+ }, Readonly<import('./types').IFormItemProps> & Readonly<{}>, {
50
+ feedbackTooltipRef: import('vue').Ref<import('element-plus').TooltipInstance, import('element-plus').TooltipInstance>;
51
+ }, {}, {}, {}, {
52
+ colon: boolean;
53
+ fullness: boolean;
54
+ feedbackLayout: "loose" | "terse" | "popover";
55
+ }>;
56
+ __isFragment?: never;
57
+ __isTeleport?: never;
58
+ __isSuspense?: never;
59
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types').IFormItemProps> & Readonly<{}>, {
60
+ feedbackTooltipRef: import('vue').Ref<import('element-plus').TooltipInstance, import('element-plus').TooltipInstance>;
61
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
62
+ colon: boolean;
63
+ fullness: boolean;
64
+ feedbackLayout: "loose" | "terse" | "popover";
65
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
66
+ $slots: any;
67
+ });
68
+ };
69
+ export default FormItem;
70
+ export { default as FormBaseItem } from './form-item';