@silver-formily/element-plus 2.1.0 → 2.3.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 (177) hide show
  1. package/LICENSE +21 -21
  2. package/README.en-US.md +32 -32
  3. package/README.md +32 -32
  4. package/esm/__builtins__/configs/index.mjs.map +1 -1
  5. package/esm/__builtins__/index.mjs +19 -23
  6. package/esm/__builtins__/index.mjs.map +1 -1
  7. package/esm/__builtins__/shared/index.d.ts +0 -1
  8. package/esm/__builtins__/shared/index.mjs +17 -21
  9. package/esm/__builtins__/shared/index.mjs.map +1 -1
  10. package/esm/__builtins__/shared/loading.mjs +5 -5
  11. package/esm/__builtins__/shared/loading.mjs.map +1 -1
  12. package/esm/__builtins__/shared/simple-version-compare.mjs.map +1 -1
  13. package/esm/__builtins__/shared/transform-component.mjs.map +1 -1
  14. package/esm/__builtins__/shared/use-enter-submit.d.ts +9 -0
  15. package/esm/__builtins__/shared/use-enter-submit.mjs +25 -0
  16. package/esm/__builtins__/shared/use-enter-submit.mjs.map +1 -0
  17. package/esm/__builtins__/shared/utils.mjs.map +1 -1
  18. package/esm/array-base/index.mjs +18 -21
  19. package/esm/array-base/index.mjs.map +1 -1
  20. package/esm/array-base/symbols.mjs.map +1 -1
  21. package/esm/array-base/utils.mjs +29 -33
  22. package/esm/array-base/utils.mjs.map +1 -1
  23. package/esm/array-cards/index.mjs +29 -31
  24. package/esm/array-cards/index.mjs.map +1 -1
  25. package/esm/array-collapse/index.mjs +35 -36
  26. package/esm/array-collapse/index.mjs.map +1 -1
  27. package/esm/array-collapse/utils.mjs +2 -8
  28. package/esm/array-collapse/utils.mjs.map +1 -1
  29. package/esm/array-items/index.mjs +30 -33
  30. package/esm/array-items/index.mjs.map +1 -1
  31. package/esm/array-list-tabs/index.mjs +27 -28
  32. package/esm/array-list-tabs/index.mjs.map +1 -1
  33. package/esm/array-list-tabs/utils.mjs +5 -11
  34. package/esm/array-list-tabs/utils.mjs.map +1 -1
  35. package/esm/array-table/index.mjs +52 -53
  36. package/esm/array-table/index.mjs.map +1 -1
  37. package/esm/array-table/utils.mjs +12 -18
  38. package/esm/array-table/utils.mjs.map +1 -1
  39. package/esm/array-tabs/index.mjs +17 -19
  40. package/esm/array-tabs/index.mjs.map +1 -1
  41. package/esm/autocomplete/autocomplete.d.ts +1222 -0
  42. package/esm/autocomplete/index.d.ts +639 -0
  43. package/esm/autocomplete/index.mjs +110 -0
  44. package/esm/autocomplete/index.mjs.map +1 -0
  45. package/esm/cascader/index.mjs +17 -20
  46. package/esm/cascader/index.mjs.map +1 -1
  47. package/esm/checkbox/index.d.ts +42 -42
  48. package/esm/checkbox/index.mjs +16 -19
  49. package/esm/checkbox/index.mjs.map +1 -1
  50. package/esm/color-picker/index.d.ts +210 -0
  51. package/esm/color-picker/index.mjs +14 -0
  52. package/esm/color-picker/index.mjs.map +1 -0
  53. package/esm/color-picker-panel/index.d.ts +129 -0
  54. package/esm/color-picker-panel/index.mjs +22 -0
  55. package/esm/color-picker-panel/index.mjs.map +1 -0
  56. package/esm/date-picker/index.mjs +11 -35
  57. package/esm/date-picker/index.mjs.map +1 -1
  58. package/esm/date-picker/utils.d.ts +4 -0
  59. package/esm/date-picker/utils.mjs +27 -0
  60. package/esm/date-picker/utils.mjs.map +1 -0
  61. package/esm/date-picker-panel/index.d.ts +143 -0
  62. package/esm/date-picker-panel/index.mjs +27 -0
  63. package/esm/date-picker-panel/index.mjs.map +1 -0
  64. package/esm/editable/index.mjs +48 -50
  65. package/esm/editable/index.mjs.map +1 -1
  66. package/esm/env.d.mjs +2 -0
  67. package/esm/env.d.mjs.map +1 -0
  68. package/esm/form/form.mjs +6 -6
  69. package/esm/form/form.mjs.map +1 -1
  70. package/esm/form-button-group/form-button-group.d.ts +1 -1
  71. package/esm/form-button-group/index.d.ts +3 -3
  72. package/esm/form-button-group/index.mjs +23 -26
  73. package/esm/form-button-group/index.mjs.map +1 -1
  74. package/esm/form-button-group/utils.mjs +2 -8
  75. package/esm/form-button-group/utils.mjs.map +1 -1
  76. package/esm/form-collapse/index.mjs +18 -20
  77. package/esm/form-collapse/index.mjs.map +1 -1
  78. package/esm/form-collapse/utils.mjs.map +1 -1
  79. package/esm/form-dialog/dialog-content.d.ts +789 -3
  80. package/esm/form-dialog/index.mjs +98 -87
  81. package/esm/form-dialog/index.mjs.map +1 -1
  82. package/esm/form-dialog/types.d.ts +1 -0
  83. package/esm/form-drawer/drawer-content.d.ts +919 -3
  84. package/esm/form-drawer/index.mjs +92 -82
  85. package/esm/form-drawer/index.mjs.map +1 -1
  86. package/esm/form-drawer/types.d.ts +1 -0
  87. package/esm/form-grid/hooks.mjs.map +1 -1
  88. package/esm/form-grid/index.mjs +20 -23
  89. package/esm/form-grid/index.mjs.map +1 -1
  90. package/esm/form-item/index.mjs +59 -57
  91. package/esm/form-item/index.mjs.map +1 -1
  92. package/esm/form-item/utils.mjs.map +1 -1
  93. package/esm/form-layout/form-layout.mjs +14 -18
  94. package/esm/form-layout/form-layout.mjs.map +1 -1
  95. package/esm/form-layout/utils.mjs +19 -24
  96. package/esm/form-layout/utils.mjs.map +1 -1
  97. package/esm/form-step/index.mjs +24 -26
  98. package/esm/form-step/index.mjs.map +1 -1
  99. package/esm/form-step/utils.mjs.map +1 -1
  100. package/esm/form-tab/hooks.mjs.map +1 -1
  101. package/esm/form-tab/index.mjs +19 -20
  102. package/esm/form-tab/index.mjs.map +1 -1
  103. package/esm/form-tab/utils.mjs.map +1 -1
  104. package/esm/index.d.ts +9 -0
  105. package/esm/index.mjs +90 -72
  106. package/esm/index.mjs.map +1 -1
  107. package/esm/input/index.mjs +20 -23
  108. package/esm/input/index.mjs.map +1 -1
  109. package/esm/input-number/index.d.ts +21 -21
  110. package/esm/input-number/index.mjs +7 -9
  111. package/esm/input-number/index.mjs.map +1 -1
  112. package/esm/input-tag/index.d.ts +32 -0
  113. package/esm/input-tag/index.mjs +46 -0
  114. package/esm/input-tag/index.mjs.map +1 -0
  115. package/esm/input-tag/input-tag.d.ts +32 -0
  116. package/esm/mention/index.d.ts +50 -0
  117. package/esm/mention/index.mjs +93 -0
  118. package/esm/mention/index.mjs.map +1 -0
  119. package/esm/mention/mention.d.ts +51 -0
  120. package/esm/pagination/components/jumper.mjs.map +1 -1
  121. package/esm/pagination/components/next.mjs.map +1 -1
  122. package/esm/pagination/components/pager.mjs.map +1 -1
  123. package/esm/pagination/components/prev.mjs.map +1 -1
  124. package/esm/pagination/components/total.mjs.map +1 -1
  125. package/esm/pagination/pagination.mjs.map +1 -1
  126. package/esm/password/index.mjs.map +1 -1
  127. package/esm/preview-text/color-picker.d.ts +5 -0
  128. package/esm/preview-text/index.d.ts +10 -0
  129. package/esm/preview-text/index.mjs +175 -119
  130. package/esm/preview-text/index.mjs.map +1 -1
  131. package/esm/preview-text/rate.d.ts +5 -0
  132. package/esm/preview-text/utils.d.ts +5 -5
  133. package/esm/preview-text/utils.mjs.map +1 -1
  134. package/esm/radio/index.d.ts +36 -36
  135. package/esm/radio/index.mjs +25 -28
  136. package/esm/radio/index.mjs.map +1 -1
  137. package/esm/rate/index.d.ts +187 -0
  138. package/esm/rate/index.mjs +14 -0
  139. package/esm/rate/index.mjs.map +1 -0
  140. package/esm/reset/index.mjs.map +1 -1
  141. package/esm/segmented/index.d.ts +26 -0
  142. package/esm/segmented/index.mjs +37 -0
  143. package/esm/segmented/index.mjs.map +1 -0
  144. package/esm/segmented/segmented.d.ts +25 -0
  145. package/esm/select/index.mjs +16 -19
  146. package/esm/select/index.mjs.map +1 -1
  147. package/esm/select-table/index.mjs +12 -15
  148. package/esm/select-table/index.mjs.map +1 -1
  149. package/esm/shared/overlay-elements.d.ts +6 -0
  150. package/esm/shared/overlay-elements.mjs +16 -0
  151. package/esm/shared/overlay-elements.mjs.map +1 -0
  152. package/esm/slider/index.d.ts +177 -0
  153. package/esm/slider/index.mjs +14 -0
  154. package/esm/slider/index.mjs.map +1 -0
  155. package/esm/styles/preview-text/index.css +1 -1
  156. package/esm/submit/index.mjs.map +1 -1
  157. package/esm/switch/index.d.ts +12 -12
  158. package/esm/switch/index.mjs.map +1 -1
  159. package/esm/time-picker/index.mjs +6 -8
  160. package/esm/time-picker/index.mjs.map +1 -1
  161. package/esm/time-select/index.mjs +6 -8
  162. package/esm/time-select/index.mjs.map +1 -1
  163. package/esm/transfer/index.mjs.map +1 -1
  164. package/esm/tree/index.mjs +28 -31
  165. package/esm/tree/index.mjs.map +1 -1
  166. package/esm/tree/utils.mjs.map +1 -1
  167. package/esm/tree-select/index.mjs +17 -20
  168. package/esm/tree-select/index.mjs.map +1 -1
  169. package/esm/upload/index.d.ts +1 -1
  170. package/esm/upload/index.mjs +7 -9
  171. package/esm/upload/index.mjs.map +1 -1
  172. package/esm/upload/upload.d.ts +2 -2
  173. package/esm/vendor/sizes.mjs.map +1 -1
  174. package/package.json +115 -113
  175. package/esm/__builtins__/shared/hooks.d.ts +0 -7
  176. package/esm/__builtins__/shared/hooks.mjs +0 -59
  177. package/esm/__builtins__/shared/hooks.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/input/input.vue","../../src/input/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport { ElInput } from 'element-plus'\nimport { useCleanAttrs } from '../__builtins__/index'\n\ndefineOptions({\n name: 'FInput',\n inheritAttrs: false,\n})\n\nconst slots = defineSlots<{\n prefix?: () => any\n suffix?: () => any\n prepend?: () => any\n append?: () => any\n}>()\n\nconst { props: inputProps } = useCleanAttrs()\n</script>\n\n<template>\n <ElInput\n v-bind=\"inputProps\"\n >\n <template v-if=\"slots.prefix\" #prefix>\n <slot name=\"prefix\" />\n </template>\n <template v-if=\"slots.suffix\" #suffix>\n <slot name=\"suffix\" />\n </template>\n <template v-if=\"slots.prepend\" #prepend>\n <slot name=\"prepend\" />\n </template>\n <template v-if=\"slots.append\" #append>\n <slot name=\"append\" />\n </template>\n </ElInput>\n</template>\n","import { connect, mapProps } from '@silver-formily/vue'\nimport { composeExport, mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\nimport FInput from './input.vue'\n\nconst InnerInput = connect<typeof FInput>(\n FInput,\n mapProps({\n readOnly: 'readonly',\n }),\n mapReadPretty(PreviewText.Input),\n)\n\nconst TextArea = connect<typeof FInput>(\n FInput,\n mapProps((props) => {\n return {\n ...props,\n readonly: props.readOnly,\n type: 'textarea',\n }\n }),\n mapReadPretty(PreviewText.Input),\n)\n\nexport const Input = composeExport(InnerInput, {\n TextArea,\n})\n\nexport default Input\n"],"names":["slots","_useSlots","inputProps","useCleanAttrs","_openBlock","_createBlock","_unref","_createSlots","_renderSlot","_ctx","InnerInput","connect","FInput","mapProps","mapReadPretty","PreviewText","TextArea","props","Input","composeExport"],"mappings":";;;;;;;;;;;;;;AASA,UAAMA,IAAQC,EAAA,GAOR,EAAE,OAAOC,EAAA,IAAeC,EAAA;sBAI5BC,KAAAC,EAeUC,UAdAA,EAAAJ,CAAA,CAAU,CAAA,GAAAK,EAAA,EAAA,GAAA,KAAA;AAAA,MAEFP,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBQ,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;MAERT,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBQ,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;MAERT,EAAM;cAAU;AAAA,cAC9B,MAAuB;AAAA,UAAvBQ,EAAuBC,EAAA,QAAA,SAAA;AAAA,QAAA;;;MAETT,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBQ,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;;;IC5BtBC,IAAaC;AAAA,EACjBC;AAAAA,EACAC,EAAS;AAAA,IACP,UAAU;AAAA,EAAA,CACX;AAAA,EACDC,EAAcC,EAAY,KAAK;AACjC,GAEMC,IAAWL;AAAA,EACfC;AAAAA,EACAC,EAAS,CAACI,OACD;AAAA,IACL,GAAGA;AAAA,IACH,UAAUA,EAAM;AAAA,IAChB,MAAM;AAAA,EAAA,EAET;AAAA,EACDH,EAAcC,EAAY,KAAK;AACjC,GAEaG,IAAQC,EAAcT,GAAY;AAAA,EAC7C,UAAAM;AACF,CAAC;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../src/input/input.vue","../../src/input/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\r\nimport { ElInput } from 'element-plus'\r\nimport { useCleanAttrs } from '../__builtins__/index'\r\n\r\ndefineOptions({\r\n name: 'FInput',\r\n inheritAttrs: false,\r\n})\r\n\r\nconst slots = defineSlots<{\r\n prefix?: () => any\r\n suffix?: () => any\r\n prepend?: () => any\r\n append?: () => any\r\n}>()\r\n\r\nconst { props: inputProps } = useCleanAttrs()\r\n</script>\r\n\r\n<template>\r\n <ElInput\r\n v-bind=\"inputProps\"\r\n >\r\n <template v-if=\"slots.prefix\" #prefix>\r\n <slot name=\"prefix\" />\r\n </template>\r\n <template v-if=\"slots.suffix\" #suffix>\r\n <slot name=\"suffix\" />\r\n </template>\r\n <template v-if=\"slots.prepend\" #prepend>\r\n <slot name=\"prepend\" />\r\n </template>\r\n <template v-if=\"slots.append\" #append>\r\n <slot name=\"append\" />\r\n </template>\r\n </ElInput>\r\n</template>\r\n","import { connect, mapProps } from '@silver-formily/vue'\r\nimport { composeExport, mapReadPretty } from '../__builtins__'\r\nimport { PreviewText } from '../preview-text'\r\nimport FInput from './input.vue'\r\n\r\nconst InnerInput = connect<typeof FInput>(\r\n FInput,\r\n mapProps({\r\n readOnly: 'readonly',\r\n }),\r\n mapReadPretty(PreviewText.Input),\r\n)\r\n\r\nconst TextArea = connect<typeof FInput>(\r\n FInput,\r\n mapProps((props) => {\r\n return {\r\n ...props,\r\n readonly: props.readOnly,\r\n type: 'textarea',\r\n }\r\n }),\r\n mapReadPretty(PreviewText.Input),\r\n)\r\n\r\nexport const Input = composeExport(InnerInput, {\r\n TextArea,\r\n})\r\n\r\nexport default Input\r\n"],"names":["slots","_useSlots","inputProps","useCleanAttrs","_openBlock","_createBlock","_unref","_createSlots","_renderSlot","_ctx","InnerInput","connect","FInput","mapProps","mapReadPretty","PreviewText","TextArea","props","Input","composeExport"],"mappings":";;;;;;;;;;;AASA,UAAMA,IAAQC,EAAA,GAOR,EAAE,OAAOC,EAAA,IAAeC,EAAA;sBAI5BC,KAAAC,EAeUC,UAdAA,EAAAJ,CAAA,CAAU,CAAA,GAAAK,EAAA,EAAA,GAAA,KAAA;AAAA,MAEFP,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBQ,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;MAERT,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBQ,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;MAERT,EAAM;cAAU;AAAA,cAC9B,MAAuB;AAAA,UAAvBQ,EAAuBC,EAAA,QAAA,SAAA;AAAA,QAAA;;;MAETT,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBQ,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;;;IC5BtBC,IAAaC;AAAA,EACjBC;AAAAA,EACAC,EAAS;AAAA,IACP,UAAU;AAAA,EAAA,CACX;AAAA,EACDC,EAAcC,EAAY,KAAK;AACjC,GAEMC,IAAWL;AAAA,EACfC;AAAAA,EACAC,EAAS,CAACI,OACD;AAAA,IACL,GAAGA;AAAA,IACH,UAAUA,EAAM;AAAA,IAChB,MAAM;AAAA,EAAA,EAET;AAAA,EACDH,EAAcC,EAAY,KAAK;AACjC,GAEaG,IAAQC,EAAcT,GAAY;AAAA,EAC7C,UAAAM;AACF,CAAC;"}
@@ -9,13 +9,17 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
9
9
  size: {
10
10
  type: import('vue').PropType<"" | "small" | "default" | "large">;
11
11
  };
12
- max: {
13
- type: import('vue').PropType<number>;
14
- default: number;
12
+ align: {
13
+ type: import('vue').PropType<"center" | "left" | "right">;
14
+ default: string;
15
15
  };
16
16
  name: {
17
17
  type: import('vue').PropType<string>;
18
18
  };
19
+ max: {
20
+ type: import('vue').PropType<number>;
21
+ default: number;
22
+ };
19
23
  disabled: {
20
24
  type: import('vue').PropType<boolean>;
21
25
  default: undefined;
@@ -30,10 +34,6 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
30
34
  modelValue: {
31
35
  type: import('vue').PropType<number>;
32
36
  };
33
- align: {
34
- type: import('vue').PropType<"center" | "left" | "right">;
35
- default: string;
36
- };
37
37
  ariaLabel: {
38
38
  type: import('vue').PropType<string>;
39
39
  };
@@ -119,13 +119,17 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
119
119
  size: {
120
120
  type: import('vue').PropType<"" | "small" | "default" | "large">;
121
121
  };
122
- max: {
123
- type: import('vue').PropType<number>;
124
- default: number;
122
+ align: {
123
+ type: import('vue').PropType<"center" | "left" | "right">;
124
+ default: string;
125
125
  };
126
126
  name: {
127
127
  type: import('vue').PropType<string>;
128
128
  };
129
+ max: {
130
+ type: import('vue').PropType<number>;
131
+ default: number;
132
+ };
129
133
  disabled: {
130
134
  type: import('vue').PropType<boolean>;
131
135
  default: undefined;
@@ -140,10 +144,6 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
140
144
  modelValue: {
141
145
  type: import('vue').PropType<number>;
142
146
  };
143
- align: {
144
- type: import('vue').PropType<"center" | "left" | "right">;
145
- default: string;
146
- };
147
147
  ariaLabel: {
148
148
  type: import('vue').PropType<string>;
149
149
  };
@@ -220,13 +220,17 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
220
220
  size: {
221
221
  type: import('vue').PropType<"" | "small" | "default" | "large">;
222
222
  };
223
- max: {
224
- type: import('vue').PropType<number>;
225
- default: number;
223
+ align: {
224
+ type: import('vue').PropType<"center" | "left" | "right">;
225
+ default: string;
226
226
  };
227
227
  name: {
228
228
  type: import('vue').PropType<string>;
229
229
  };
230
+ max: {
231
+ type: import('vue').PropType<number>;
232
+ default: number;
233
+ };
230
234
  disabled: {
231
235
  type: import('vue').PropType<boolean>;
232
236
  default: undefined;
@@ -241,10 +245,6 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
241
245
  modelValue: {
242
246
  type: import('vue').PropType<number>;
243
247
  };
244
- align: {
245
- type: import('vue').PropType<"center" | "left" | "right">;
246
- default: string;
247
- };
248
248
  ariaLabel: {
249
249
  type: import('vue').PropType<string>;
250
250
  };
@@ -1,11 +1,9 @@
1
1
  import { connect as r, mapProps as t } from "@silver-formily/vue";
2
- import { ElInputNumber as m } from "element-plus";
3
- import "vue";
4
- import "@formily/reactive";
5
- import { mapReadPretty as e } from "../__builtins__/shared/transform-component.mjs";
2
+ import { ElInputNumber as e } from "element-plus";
6
3
  import { PreviewText as n } from "../preview-text/index.mjs";
7
- const c = r(
8
- m,
4
+ import { mapReadPretty as m } from "../__builtins__/shared/transform-component.mjs";
5
+ const u = r(
6
+ e,
9
7
  t(
10
8
  {
11
9
  readOnly: "readonly"
@@ -14,10 +12,10 @@ const c = r(
14
12
  controlsPosition: o.controlsPosition ?? "right"
15
13
  })
16
14
  ),
17
- e(n.Input)
15
+ m(n.Input)
18
16
  );
19
17
  export {
20
- c as InputNumber,
21
- c as default
18
+ u as InputNumber,
19
+ u as default
22
20
  };
23
21
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/input-number/index.ts"],"sourcesContent":["import { connect, mapProps } from '@silver-formily/vue'\nimport { ElInputNumber } from 'element-plus'\nimport { mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\n\nexport type InputNumberProps = typeof ElInputNumber\n\nexport const InputNumber = connect<typeof ElInputNumber>(\n ElInputNumber,\n mapProps(\n {\n readOnly: 'readonly',\n },\n (props) => {\n return {\n controlsPosition: props.controlsPosition ?? 'right',\n }\n },\n ),\n mapReadPretty(PreviewText.Input),\n)\n\nexport default InputNumber\n"],"names":["InputNumber","connect","ElInputNumber","mapProps","props","mapReadPretty","PreviewText"],"mappings":";;;;;;AAOO,MAAMA,IAAcC;AAAA,EACzBC;AAAA,EACAC;AAAA,IACE;AAAA,MACE,UAAU;AAAA,IAAA;AAAA,IAEZ,CAACC,OACQ;AAAA,MACL,kBAAkBA,EAAM,oBAAoB;AAAA,IAAA;AAAA,EAEhD;AAAA,EAEFC,EAAcC,EAAY,KAAK;AACjC;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../src/input-number/index.ts"],"sourcesContent":["import { connect, mapProps } from '@silver-formily/vue'\r\nimport { ElInputNumber } from 'element-plus'\r\nimport { mapReadPretty } from '../__builtins__'\r\nimport { PreviewText } from '../preview-text'\r\n\r\nexport type InputNumberProps = typeof ElInputNumber\r\n\r\nexport const InputNumber = connect<typeof ElInputNumber>(\r\n ElInputNumber,\r\n mapProps(\r\n {\r\n readOnly: 'readonly',\r\n },\r\n (props) => {\r\n return {\r\n controlsPosition: props.controlsPosition ?? 'right',\r\n }\r\n },\r\n ),\r\n mapReadPretty(PreviewText.Input),\r\n)\r\n\r\nexport default InputNumber\r\n"],"names":["InputNumber","connect","ElInputNumber","mapProps","props","mapReadPretty","PreviewText"],"mappings":";;;;AAOO,MAAMA,IAAcC;AAAA,EACzBC;AAAA,EACAC;AAAA,IACE;AAAA,MACE,UAAU;AAAA,IAAA;AAAA,IAEZ,CAACC,OACQ;AAAA,MACL,kBAAkBA,EAAM,oBAAoB;AAAA,IAAA;AAAA,EAEhD;AAAA,EAEFC,EAAcC,EAAY,KAAK;AACjC;"}
@@ -0,0 +1,32 @@
1
+ export declare const InputTag: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
3
+ P: {};
4
+ B: {};
5
+ D: {};
6
+ C: {};
7
+ M: {};
8
+ Defaults: {};
9
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
10
+ __isFragment?: never;
11
+ __isTeleport?: never;
12
+ __isSuspense?: never;
13
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
14
+ $slots: Readonly<{
15
+ tag?: (scope: {
16
+ value: string;
17
+ index: number;
18
+ field: import('@formily/core').Field | undefined;
19
+ }) => any;
20
+ prefix?: () => any;
21
+ suffix?: () => any;
22
+ }> & {
23
+ tag?: (scope: {
24
+ value: string;
25
+ index: number;
26
+ field: import('@formily/core').Field | undefined;
27
+ }) => any;
28
+ prefix?: () => any;
29
+ suffix?: () => any;
30
+ };
31
+ });
32
+ export default InputTag;
@@ -0,0 +1,46 @@
1
+ import { useField as l, connect as m, mapProps as u } from "@silver-formily/vue";
2
+ import { PreviewText as d } from "../preview-text/index.mjs";
3
+ import { defineComponent as c, useSlots as g, createBlock as x, openBlock as y, unref as o, normalizeProps as s, guardReactiveProps as a, createSlots as P, withCtx as r, renderSlot as n } from "vue";
4
+ import { ElInputTag as _ } from "element-plus";
5
+ import { useCleanAttrs as k } from "../__builtins__/shared/utils.mjs";
6
+ import { mapReadPretty as v } from "../__builtins__/shared/transform-component.mjs";
7
+ const T = /* @__PURE__ */ c({
8
+ name: "FInputTag",
9
+ inheritAttrs: !1,
10
+ __name: "input-tag",
11
+ setup(S) {
12
+ const e = g(), { props: i } = k(), p = l();
13
+ return (t, h) => (y(), x(o(_), s(a(o(i))), P({ _: 2 }, [
14
+ e.tag ? {
15
+ name: "tag",
16
+ fn: r((f) => [
17
+ n(t.$slots, "tag", s(a({ ...f, field: o(p) })))
18
+ ]),
19
+ key: "0"
20
+ } : void 0,
21
+ e.prefix ? {
22
+ name: "prefix",
23
+ fn: r(() => [
24
+ n(t.$slots, "prefix")
25
+ ]),
26
+ key: "1"
27
+ } : void 0,
28
+ e.suffix ? {
29
+ name: "suffix",
30
+ fn: r(() => [
31
+ n(t.$slots, "suffix")
32
+ ]),
33
+ key: "2"
34
+ } : void 0
35
+ ]), 1040));
36
+ }
37
+ }), B = m(
38
+ T,
39
+ u({ readOnly: "readonly", disabled: !0 }),
40
+ v(d.Select, { multiple: !0 })
41
+ );
42
+ export {
43
+ B as InputTag,
44
+ B as default
45
+ };
46
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../src/input-tag/input-tag.vue","../../src/input-tag/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\r\nimport type { Field } from '@formily/core'\r\nimport { useField } from '@silver-formily/vue'\r\nimport { ElInputTag } from 'element-plus'\r\nimport { useCleanAttrs } from '../__builtins__'\r\n\r\ndefineOptions({\r\n name: 'FInputTag',\r\n inheritAttrs: false,\r\n})\r\n\r\nconst slots = defineSlots<{\r\n tag?: (scope: { value: string, index: number, field: Field | undefined }) => any\r\n prefix?: () => any\r\n suffix?: () => any\r\n}>()\r\n\r\nconst { props: inputTagProps } = useCleanAttrs()\r\nconst fieldRef = useField<Field>()\r\n</script>\r\n\r\n<template>\r\n <ElInputTag v-bind=\"inputTagProps\">\r\n <template v-if=\"slots.tag\" #tag=\"slotProps\">\r\n <slot name=\"tag\" v-bind=\"{ ...slotProps, field: fieldRef }\" />\r\n </template>\r\n <template v-if=\"slots.prefix\" #prefix>\r\n <slot name=\"prefix\" />\r\n </template>\r\n <template v-if=\"slots.suffix\" #suffix>\r\n <slot name=\"suffix\" />\r\n </template>\r\n </ElInputTag>\r\n</template>\r\n","import { connect, mapProps } from '@silver-formily/vue'\r\nimport { mapReadPretty } from '../__builtins__'\r\nimport { PreviewText } from '../preview-text'\r\nimport FInputTag from './input-tag.vue'\r\n\r\nexport const InputTag = connect<typeof FInputTag>(\r\n FInputTag,\r\n mapProps({ readOnly: 'readonly', disabled: true }),\r\n mapReadPretty(PreviewText.Select, { multiple: true }),\r\n)\r\n\r\nexport default InputTag\r\n"],"names":["slots","_useSlots","inputTagProps","useCleanAttrs","fieldRef","useField","_openBlock","_createBlock","_unref","_createSlots","_withCtx","slotProps","_renderSlot","_ctx","_normalizeProps","_guardReactiveProps","InputTag","connect","FInputTag","mapProps","mapReadPretty","PreviewText"],"mappings":";;;;;;;;;;;AAWA,UAAMA,IAAQC,EAAA,GAMR,EAAE,OAAOC,EAAA,IAAkBC,EAAA,GAC3BC,IAAWC,EAAA;sBAIfC,KAAAC,EAUaC,UAVOA,EAAAN,CAAA,CAAa,CAAA,GAAAO,EAAA,EAAA,GAAA,KAAA;AAAA,MACfT,EAAM;cAAM;AAAA,QAC1B,IAAAU,EAAA,CAD+BC,MAAS;AAAA,UACxCC,EAA8DC,EAAA,QAAA,OAAAC,EAAAC,EAAA,EAAA,GAAhCJ,GAAS,OAASH,EAAAJ,CAAA,EAAA,CAAQ,CAAA,CAAA;AAAA,QAAA;;;MAE1CJ,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBY,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;MAERb,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBY,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;;;ICzBfG,IAAWC;AAAA,EACtBC;AAAAA,EACAC,EAAS,EAAE,UAAU,YAAY,UAAU,IAAM;AAAA,EACjDC,EAAcC,EAAY,QAAQ,EAAE,UAAU,IAAM;AACtD;"}
@@ -0,0 +1,32 @@
1
+ import { Field } from '@formily/core';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<{
5
+ tag?: (scope: {
6
+ value: string;
7
+ index: number;
8
+ field: Field | undefined;
9
+ }) => any;
10
+ prefix?: () => any;
11
+ suffix?: () => any;
12
+ }> & {
13
+ tag?: (scope: {
14
+ value: string;
15
+ index: number;
16
+ field: Field | undefined;
17
+ }) => any;
18
+ prefix?: () => any;
19
+ suffix?: () => any;
20
+ };
21
+ refs: {};
22
+ rootEl: any;
23
+ };
24
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
25
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,50 @@
1
+ export declare const Mention: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
3
+ P: {};
4
+ B: {};
5
+ D: {};
6
+ C: {};
7
+ M: {};
8
+ Defaults: {};
9
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
10
+ __isFragment?: never;
11
+ __isTeleport?: never;
12
+ __isSuspense?: never;
13
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
14
+ $slots: Readonly<{
15
+ label?: (scope: {
16
+ item: import('element-plus').MentionOption;
17
+ index: number;
18
+ field: import('@formily/core').Field | undefined;
19
+ }) => any;
20
+ header?: (scope: {
21
+ field: import('@formily/core').Field | undefined;
22
+ }) => any;
23
+ footer?: (scope: {
24
+ field: import('@formily/core').Field | undefined;
25
+ }) => any;
26
+ loading?: () => any;
27
+ prefix?: () => any;
28
+ suffix?: () => any;
29
+ prepend?: () => any;
30
+ append?: () => any;
31
+ }> & {
32
+ label?: (scope: {
33
+ item: import('element-plus').MentionOption;
34
+ index: number;
35
+ field: import('@formily/core').Field | undefined;
36
+ }) => any;
37
+ header?: (scope: {
38
+ field: import('@formily/core').Field | undefined;
39
+ }) => any;
40
+ footer?: (scope: {
41
+ field: import('@formily/core').Field | undefined;
42
+ }) => any;
43
+ loading?: () => any;
44
+ prefix?: () => any;
45
+ suffix?: () => any;
46
+ prepend?: () => any;
47
+ append?: () => any;
48
+ };
49
+ });
50
+ export default Mention;
@@ -0,0 +1,93 @@
1
+ import { useField as u, connect as c, mapProps as v } from "@silver-formily/vue";
2
+ import { PreviewText as y } from "../preview-text/index.mjs";
3
+ import { defineComponent as k, useSlots as h, computed as $, createBlock as P, openBlock as S, unref as s, normalizeProps as p, guardReactiveProps as l, createSlots as g, withCtx as n, renderSlot as r } from "vue";
4
+ import { ElMention as b } from "element-plus";
5
+ import { useCleanAttrs as M } from "../__builtins__/shared/utils.mjs";
6
+ import { mapReadPretty as w } from "../__builtins__/shared/transform-component.mjs";
7
+ const C = /* @__PURE__ */ k({
8
+ name: "FMention",
9
+ inheritAttrs: !1,
10
+ __name: "mention",
11
+ setup(R) {
12
+ const o = h(), { props: d } = M(), t = u(), f = $(() => {
13
+ const e = d.value, { onSearch: a } = e;
14
+ return a ? {
15
+ ...e,
16
+ onSearch(i, m) {
17
+ return a(
18
+ i,
19
+ m,
20
+ t.value
21
+ );
22
+ }
23
+ } : e;
24
+ });
25
+ return (e, a) => (S(), P(s(b), p(l(f.value)), g({ _: 2 }, [
26
+ o.prefix ? {
27
+ name: "prefix",
28
+ fn: n(() => [
29
+ r(e.$slots, "prefix")
30
+ ]),
31
+ key: "0"
32
+ } : void 0,
33
+ o.suffix ? {
34
+ name: "suffix",
35
+ fn: n(() => [
36
+ r(e.$slots, "suffix")
37
+ ]),
38
+ key: "1"
39
+ } : void 0,
40
+ o.prepend ? {
41
+ name: "prepend",
42
+ fn: n(() => [
43
+ r(e.$slots, "prepend")
44
+ ]),
45
+ key: "2"
46
+ } : void 0,
47
+ o.append ? {
48
+ name: "append",
49
+ fn: n(() => [
50
+ r(e.$slots, "append")
51
+ ]),
52
+ key: "3"
53
+ } : void 0,
54
+ o.header ? {
55
+ name: "header",
56
+ fn: n(() => [
57
+ r(e.$slots, "header", { field: s(t) })
58
+ ]),
59
+ key: "4"
60
+ } : void 0,
61
+ o.footer ? {
62
+ name: "footer",
63
+ fn: n(() => [
64
+ r(e.$slots, "footer", { field: s(t) })
65
+ ]),
66
+ key: "5"
67
+ } : void 0,
68
+ o.label ? {
69
+ name: "label",
70
+ fn: n((i) => [
71
+ r(e.$slots, "label", p(l({ ...i, field: s(t) })))
72
+ ]),
73
+ key: "6"
74
+ } : void 0,
75
+ o.loading ? {
76
+ name: "loading",
77
+ fn: n(() => [
78
+ r(e.$slots, "loading")
79
+ ]),
80
+ key: "7"
81
+ } : void 0
82
+ ]), 1040));
83
+ }
84
+ }), I = c(
85
+ C,
86
+ v({ dataSource: "options", readOnly: "readonly", loading: !0, disabled: !0 }),
87
+ w(y.Input)
88
+ );
89
+ export {
90
+ I as Mention,
91
+ I as default
92
+ };
93
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../src/mention/mention.vue","../../src/mention/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\r\nimport type { Field } from '@formily/core'\r\nimport type { MentionOption } from 'element-plus/es/components/mention'\r\nimport { useField } from '@silver-formily/vue'\r\nimport { ElMention } from 'element-plus'\r\nimport { computed } from 'vue'\r\nimport { useCleanAttrs } from '../__builtins__'\r\n\r\ndefineOptions({\r\n name: 'FMention',\r\n inheritAttrs: false,\r\n})\r\n\r\nconst slots = defineSlots<{\r\n label?: (scope: { item: MentionOption, index: number, field: Field | undefined }) => any\r\n header?: (scope: { field: Field | undefined }) => any\r\n footer?: (scope: { field: Field | undefined }) => any\r\n loading?: () => any\r\n prefix?: () => any\r\n suffix?: () => any\r\n prepend?: () => any\r\n append?: () => any\r\n}>()\r\n\r\nconst { props: rawMentionProps } = useCleanAttrs()\r\nconst fieldRef = useField<Field>()\r\n\r\nconst mentionProps = computed(() => {\r\n const props = rawMentionProps.value\r\n const { onSearch } = props\r\n if (!onSearch) {\r\n return props\r\n }\r\n\r\n return {\r\n ...props,\r\n onSearch(pattern: string, prefix: string) {\r\n return (onSearch as (pattern: string, prefix: string, field?: Field) => any)(\r\n pattern,\r\n prefix,\r\n fieldRef.value,\r\n )\r\n },\r\n }\r\n})\r\n</script>\r\n\r\n<template>\r\n <ElMention v-bind=\"mentionProps\">\r\n <template v-if=\"slots.prefix\" #prefix>\r\n <slot name=\"prefix\" />\r\n </template>\r\n <template v-if=\"slots.suffix\" #suffix>\r\n <slot name=\"suffix\" />\r\n </template>\r\n <template v-if=\"slots.prepend\" #prepend>\r\n <slot name=\"prepend\" />\r\n </template>\r\n <template v-if=\"slots.append\" #append>\r\n <slot name=\"append\" />\r\n </template>\r\n <template v-if=\"slots.header\" #header>\r\n <slot name=\"header\" :field=\"fieldRef\" />\r\n </template>\r\n <template v-if=\"slots.footer\" #footer>\r\n <slot name=\"footer\" :field=\"fieldRef\" />\r\n </template>\r\n <template v-if=\"slots.label\" #label=\"slotProps\">\r\n <slot name=\"label\" v-bind=\"{ ...slotProps, field: fieldRef }\" />\r\n </template>\r\n <template v-if=\"slots.loading\" #loading>\r\n <slot name=\"loading\" />\r\n </template>\r\n </ElMention>\r\n</template>\r\n","import { connect, mapProps } from '@silver-formily/vue'\r\nimport { mapReadPretty } from '../__builtins__'\r\nimport { PreviewText } from '../preview-text'\r\nimport FMention from './mention.vue'\r\n\r\nexport const Mention = connect<typeof FMention>(\r\n FMention,\r\n mapProps({ dataSource: 'options', readOnly: 'readonly', loading: true, disabled: true }),\r\n mapReadPretty(PreviewText.Input),\r\n)\r\n\r\nexport default Mention\r\n"],"names":["slots","_useSlots","rawMentionProps","useCleanAttrs","fieldRef","useField","mentionProps","computed","props","onSearch","pattern","prefix","_openBlock","_createBlock","_unref","_createSlots","_renderSlot","_ctx","_withCtx","slotProps","_normalizeProps","_guardReactiveProps","Mention","connect","FMention","mapProps","mapReadPretty","PreviewText"],"mappings":";;;;;;;;;;;AAaA,UAAMA,IAAQC,EAAA,GAWR,EAAE,OAAOC,EAAA,IAAoBC,EAAA,GAC7BC,IAAWC,EAAA,GAEXC,IAAeC,EAAS,MAAM;AAClC,YAAMC,IAAQN,EAAgB,OACxB,EAAE,UAAAO,MAAaD;AACrB,aAAKC,IAIE;AAAA,QACL,GAAGD;AAAA,QACH,SAASE,GAAiBC,GAAgB;AACxC,iBAAQF;AAAA,YACNC;AAAA,YACAC;AAAA,YACAP,EAAS;AAAA,UAAA;AAAA,QAEb;AAAA,MAAA,IAXOI;AAAA,IAaX,CAAC;sBAICI,KAAAC,EAyBYC,UAzBOR,EAAA,KAAY,CAAA,GAAAS,EAAA,EAAA,GAAA,KAAA;AAAA,MACbf,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBgB,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;MAERjB,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBgB,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;MAERjB,EAAM;cAAU;AAAA,cAC9B,MAAuB;AAAA,UAAvBgB,EAAuBC,EAAA,QAAA,SAAA;AAAA,QAAA;;;MAETjB,EAAM;cAAS;AAAA,cAC7B,MAAsB;AAAA,UAAtBgB,EAAsBC,EAAA,QAAA,QAAA;AAAA,QAAA;;;MAERjB,EAAM;cAAS;AAAA,cAC7B,MAAwC;AAAA,UAAxCgB,EAAwCC,EAAA,QAAA,UAAA,EAAnB,OAAOH,EAAAV,CAAA,EAAA,CAAQ;AAAA,QAAA;;;MAEtBJ,EAAM;cAAS;AAAA,cAC7B,MAAwC;AAAA,UAAxCgB,EAAwCC,EAAA,QAAA,UAAA,EAAnB,OAAOH,EAAAV,CAAA,EAAA,CAAQ;AAAA,QAAA;;;MAEtBJ,EAAM;cAAQ;AAAA,QAC5B,IAAAkB,EAAA,CADmCC,MAAS;AAAA,UAC5CH,EAAgEC,EAAA,QAAA,SAAAG,EAAAC,EAAA,EAAA,GAAhCF,GAAS,OAASL,EAAAV,CAAA,EAAA,CAAQ,CAAA,CAAA;AAAA,QAAA;;;MAE5CJ,EAAM;cAAU;AAAA,cAC9B,MAAuB;AAAA,UAAvBgB,EAAuBC,EAAA,QAAA,SAAA;AAAA,QAAA;;;;;IClEhBK,IAAUC;AAAA,EACrBC;AAAAA,EACAC,EAAS,EAAE,YAAY,WAAW,UAAU,YAAY,SAAS,IAAM,UAAU,IAAM;AAAA,EACvFC,EAAcC,EAAY,KAAK;AACjC;"}
@@ -0,0 +1,51 @@
1
+ import { Field } from '@formily/core';
2
+ import { MentionOption } from 'element-plus/es/components/mention';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: Readonly<{
6
+ label?: (scope: {
7
+ item: MentionOption;
8
+ index: number;
9
+ field: Field | undefined;
10
+ }) => any;
11
+ header?: (scope: {
12
+ field: Field | undefined;
13
+ }) => any;
14
+ footer?: (scope: {
15
+ field: Field | undefined;
16
+ }) => any;
17
+ loading?: () => any;
18
+ prefix?: () => any;
19
+ suffix?: () => any;
20
+ prepend?: () => any;
21
+ append?: () => any;
22
+ }> & {
23
+ label?: (scope: {
24
+ item: MentionOption;
25
+ index: number;
26
+ field: Field | undefined;
27
+ }) => any;
28
+ header?: (scope: {
29
+ field: Field | undefined;
30
+ }) => any;
31
+ footer?: (scope: {
32
+ field: Field | undefined;
33
+ }) => any;
34
+ loading?: () => any;
35
+ prefix?: () => any;
36
+ suffix?: () => any;
37
+ prepend?: () => any;
38
+ append?: () => any;
39
+ };
40
+ refs: {};
41
+ rootEl: any;
42
+ };
43
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
44
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
45
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
46
+ export default _default;
47
+ type __VLS_WithTemplateSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"jumper.mjs","sources":["../../../src/pagination/components/jumper.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Jumper from './jumper.vue'\nimport { componentSizes } from 'element-plus'\nimport { buildProps } from 'element-plus/es/utils/index'\n\nexport const paginationJumperProps = buildProps({\n size: {\n type: String,\n values: componentSizes,\n },\n} as const)\n\nexport type PaginationJumperProps = ExtractPropTypes<\n typeof paginationJumperProps\n>\n\nexport type PaginationJumperInstance = InstanceType<typeof Jumper> & unknown\n"],"names":["paginationJumperProps","buildProps","componentSizes"],"mappings":";;AAKO,MAAMA,IAAwBC,EAAW;AAAA,EAC9C,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,QAAQC;AAAA,EAAA;AAEZ,CAAU;"}
1
+ {"version":3,"file":"jumper.mjs","sources":["../../../src/pagination/components/jumper.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\r\nimport type Jumper from './jumper.vue'\r\nimport { componentSizes } from 'element-plus'\r\nimport { buildProps } from 'element-plus/es/utils/index'\r\n\r\nexport const paginationJumperProps = buildProps({\r\n size: {\r\n type: String,\r\n values: componentSizes,\r\n },\r\n} as const)\r\n\r\nexport type PaginationJumperProps = ExtractPropTypes<\r\n typeof paginationJumperProps\r\n>\r\n\r\nexport type PaginationJumperInstance = InstanceType<typeof Jumper> & unknown\r\n"],"names":["paginationJumperProps","buildProps","componentSizes"],"mappings":";;AAKO,MAAMA,IAAwBC,EAAW;AAAA,EAC9C,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,QAAQC;AAAA,EAAA;AAEZ,CAAU;"}
@@ -1 +1 @@
1
- {"version":3,"file":"next.mjs","sources":["../../../src/pagination/components/next.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Next from './next.vue'\nimport { buildProps, iconPropType } from 'element-plus/es/utils/index'\n\nexport const paginationNextProps = buildProps({\n disabled: Boolean,\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n default: 50,\n },\n nextText: {\n type: String,\n },\n nextIcon: {\n type: iconPropType,\n },\n} as const)\n\nexport type PaginationNextProps = ExtractPropTypes<typeof paginationNextProps>\n\nexport type NextInstance = InstanceType<typeof Next> & unknown\n"],"names":["paginationNextProps","buildProps","iconPropType"],"mappings":";;AAIO,MAAMA,IAAsBC,EAAW;AAAA,EAC5C,UAAU;AAAA,EACV,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA,EAEX,WAAW;AAAA,IACT,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA,EAEX,UAAU;AAAA,IACR,MAAM;AAAA,EAAA;AAAA,EAER,UAAU;AAAA,IACR,MAAMC;AAAA,EAAA;AAEV,CAAU;"}
1
+ {"version":3,"file":"next.mjs","sources":["../../../src/pagination/components/next.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\r\nimport type Next from './next.vue'\r\nimport { buildProps, iconPropType } from 'element-plus/es/utils/index'\r\n\r\nexport const paginationNextProps = buildProps({\r\n disabled: Boolean,\r\n currentPage: {\r\n type: Number,\r\n default: 1,\r\n },\r\n pageCount: {\r\n type: Number,\r\n default: 50,\r\n },\r\n nextText: {\r\n type: String,\r\n },\r\n nextIcon: {\r\n type: iconPropType,\r\n },\r\n} as const)\r\n\r\nexport type PaginationNextProps = ExtractPropTypes<typeof paginationNextProps>\r\n\r\nexport type NextInstance = InstanceType<typeof Next> & unknown\r\n"],"names":["paginationNextProps","buildProps","iconPropType"],"mappings":";;AAIO,MAAMA,IAAsBC,EAAW;AAAA,EAC5C,UAAU;AAAA,EACV,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA,EAEX,WAAW;AAAA,IACT,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA,EAEX,UAAU;AAAA,IACR,MAAM;AAAA,EAAA;AAAA,EAER,UAAU;AAAA,IACR,MAAMC;AAAA,EAAA;AAEV,CAAU;"}
@@ -1 +1 @@
1
- {"version":3,"file":"pager.mjs","sources":["../../../src/pagination/components/pager.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Pager from './pager.vue'\nimport { buildProps } from 'element-plus/es/utils/index'\n\nexport const paginationPagerProps = buildProps({\n currentPage: {\n type: Number,\n default: 1,\n },\n pageCount: {\n type: Number,\n required: true,\n },\n pagerCount: {\n type: Number,\n default: 7,\n },\n pageSize: {\n type: Number,\n },\n disabled: Boolean,\n} as const)\n\nexport type PaginationPagerProps = ExtractPropTypes<typeof paginationPagerProps>\n\nexport type PagerInstance = InstanceType<typeof Pager> & unknown\n"],"names":["paginationPagerProps","buildProps"],"mappings":";AAIO,MAAMA,IAAuBC,EAAW;AAAA,EAC7C,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA,EAEX,WAAW;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,EAAA;AAAA,EAEZ,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA,EAEX,UAAU;AAAA,IACR,MAAM;AAAA,EAAA;AAAA,EAER,UAAU;AACZ,CAAU;"}
1
+ {"version":3,"file":"pager.mjs","sources":["../../../src/pagination/components/pager.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\r\nimport type Pager from './pager.vue'\r\nimport { buildProps } from 'element-plus/es/utils/index'\r\n\r\nexport const paginationPagerProps = buildProps({\r\n currentPage: {\r\n type: Number,\r\n default: 1,\r\n },\r\n pageCount: {\r\n type: Number,\r\n required: true,\r\n },\r\n pagerCount: {\r\n type: Number,\r\n default: 7,\r\n },\r\n pageSize: {\r\n type: Number,\r\n },\r\n disabled: Boolean,\r\n} as const)\r\n\r\nexport type PaginationPagerProps = ExtractPropTypes<typeof paginationPagerProps>\r\n\r\nexport type PagerInstance = InstanceType<typeof Pager> & unknown\r\n"],"names":["paginationPagerProps","buildProps"],"mappings":";AAIO,MAAMA,IAAuBC,EAAW;AAAA,EAC7C,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA,EAEX,WAAW;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,EAAA;AAAA,EAEZ,YAAY;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA,EAEX,UAAU;AAAA,IACR,MAAM;AAAA,EAAA;AAAA,EAER,UAAU;AACZ,CAAU;"}
@@ -1 +1 @@
1
- {"version":3,"file":"prev.mjs","sources":["../../../src/pagination/components/prev.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Prev from './prev.vue'\nimport { buildProps, iconPropType } from 'element-plus/es/utils/index'\n\nexport const paginationPrevProps = buildProps({\n disabled: Boolean,\n currentPage: {\n type: Number,\n default: 1,\n },\n prevText: {\n type: String,\n },\n prevIcon: {\n type: iconPropType,\n },\n} as const)\n\nexport const paginationPrevEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\n\nexport type PaginationPrevProps = ExtractPropTypes<typeof paginationPrevProps>\n\nexport type PrevInstance = InstanceType<typeof Prev> & unknown\n"],"names":["paginationPrevProps","buildProps","iconPropType","paginationPrevEmits","evt"],"mappings":";;AAIO,MAAMA,IAAsBC,EAAW;AAAA,EAC5C,UAAU;AAAA,EACV,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA,EAEX,UAAU;AAAA,IACR,MAAM;AAAA,EAAA;AAAA,EAER,UAAU;AAAA,IACR,MAAMC;AAAA,EAAA;AAEV,CAAU,GAEGC,IAAsB;AAAA,EACjC,OAAO,CAACC,MAAoBA,aAAe;AAC7C;"}
1
+ {"version":3,"file":"prev.mjs","sources":["../../../src/pagination/components/prev.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\r\nimport type Prev from './prev.vue'\r\nimport { buildProps, iconPropType } from 'element-plus/es/utils/index'\r\n\r\nexport const paginationPrevProps = buildProps({\r\n disabled: Boolean,\r\n currentPage: {\r\n type: Number,\r\n default: 1,\r\n },\r\n prevText: {\r\n type: String,\r\n },\r\n prevIcon: {\r\n type: iconPropType,\r\n },\r\n} as const)\r\n\r\nexport const paginationPrevEmits = {\r\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\r\n}\r\n\r\nexport type PaginationPrevProps = ExtractPropTypes<typeof paginationPrevProps>\r\n\r\nexport type PrevInstance = InstanceType<typeof Prev> & unknown\r\n"],"names":["paginationPrevProps","buildProps","iconPropType","paginationPrevEmits","evt"],"mappings":";;AAIO,MAAMA,IAAsBC,EAAW;AAAA,EAC5C,UAAU;AAAA,EACV,aAAa;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAAA,EAEX,UAAU;AAAA,IACR,MAAM;AAAA,EAAA;AAAA,EAER,UAAU;AAAA,IACR,MAAMC;AAAA,EAAA;AAEV,CAAU,GAEGC,IAAsB;AAAA,EACjC,OAAO,CAACC,MAAoBA,aAAe;AAC7C;"}
@@ -1 +1 @@
1
- {"version":3,"file":"total.mjs","sources":["../../../src/pagination/components/total.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport type Total from './total.vue'\nimport { buildProps } from 'element-plus/es/utils/index'\n\nexport const paginationTotalProps = buildProps({\n total: {\n type: Number,\n default: 1000,\n },\n} as const)\n\nexport type PaginationTotalProps = ExtractPropTypes<typeof paginationTotalProps>\n\nexport type TotalInstance = InstanceType<typeof Total> & unknown\n"],"names":["paginationTotalProps","buildProps"],"mappings":";AAIO,MAAMA,IAAuBC,EAAW;AAAA,EAC7C,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEb,CAAU;"}
1
+ {"version":3,"file":"total.mjs","sources":["../../../src/pagination/components/total.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\r\nimport type Total from './total.vue'\r\nimport { buildProps } from 'element-plus/es/utils/index'\r\n\r\nexport const paginationTotalProps = buildProps({\r\n total: {\r\n type: Number,\r\n default: 1000,\r\n },\r\n} as const)\r\n\r\nexport type PaginationTotalProps = ExtractPropTypes<typeof paginationTotalProps>\r\n\r\nexport type TotalInstance = InstanceType<typeof Total> & unknown\r\n"],"names":["paginationTotalProps","buildProps"],"mappings":";AAIO,MAAMA,IAAuBC,EAAW;AAAA,EAC7C,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEb,CAAU;"}