@silver-formily/element-plus 2.4.0 → 3.0.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 (180) hide show
  1. package/README.en-US.md +32 -32
  2. package/README.md +32 -32
  3. package/esm/__builtins__/configs/index.mjs.map +1 -1
  4. package/esm/__builtins__/index.mjs +18 -18
  5. package/esm/__builtins__/shared/loading.mjs.map +1 -1
  6. package/esm/__builtins__/shared/simple-version-compare.mjs.map +1 -1
  7. package/esm/__builtins__/shared/transform-component.d.ts +1 -1
  8. package/esm/__builtins__/shared/transform-component.mjs.map +1 -1
  9. package/esm/__builtins__/shared/use-enter-submit.mjs.map +1 -1
  10. package/esm/__builtins__/shared/utils.mjs +0 -2
  11. package/esm/__builtins__/shared/utils.mjs.map +1 -1
  12. package/esm/array-base/index.mjs +59 -63
  13. package/esm/array-base/index.mjs.map +1 -1
  14. package/esm/array-base/symbols.mjs +1 -1
  15. package/esm/array-base/symbols.mjs.map +1 -1
  16. package/esm/array-base/utils.mjs +31 -38
  17. package/esm/array-base/utils.mjs.map +1 -1
  18. package/esm/array-cards/index.mjs +33 -36
  19. package/esm/array-cards/index.mjs.map +1 -1
  20. package/esm/array-collapse/index.mjs +38 -43
  21. package/esm/array-collapse/index.mjs.map +1 -1
  22. package/esm/array-collapse/utils.mjs +2 -9
  23. package/esm/array-collapse/utils.mjs.map +1 -1
  24. package/esm/array-items/index.mjs +34 -38
  25. package/esm/array-items/index.mjs.map +1 -1
  26. package/esm/array-list-tabs/index.mjs +39 -41
  27. package/esm/array-list-tabs/index.mjs.map +1 -1
  28. package/esm/array-list-tabs/utils.mjs +5 -12
  29. package/esm/array-list-tabs/utils.mjs.map +1 -1
  30. package/esm/array-table/index.mjs +63 -68
  31. package/esm/array-table/index.mjs.map +1 -1
  32. package/esm/array-table/utils.mjs +11 -18
  33. package/esm/array-table/utils.mjs.map +1 -1
  34. package/esm/array-tabs/index.mjs +25 -29
  35. package/esm/array-tabs/index.mjs.map +1 -1
  36. package/esm/autocomplete/autocomplete.d.ts +16 -16
  37. package/esm/autocomplete/index.d.ts +8 -8
  38. package/esm/autocomplete/index.mjs +18 -24
  39. package/esm/autocomplete/index.mjs.map +1 -1
  40. package/esm/cascader/index.mjs +18 -22
  41. package/esm/cascader/index.mjs.map +1 -1
  42. package/esm/checkbox/index.d.ts +27 -27
  43. package/esm/checkbox/index.mjs +21 -30
  44. package/esm/checkbox/index.mjs.map +1 -1
  45. package/esm/color-picker/index.mjs +6 -9
  46. package/esm/color-picker/index.mjs.map +1 -1
  47. package/esm/color-picker-panel/index.mjs +6 -9
  48. package/esm/color-picker-panel/index.mjs.map +1 -1
  49. package/esm/date-picker/index.mjs +11 -14
  50. package/esm/date-picker/index.mjs.map +1 -1
  51. package/esm/date-picker/utils.mjs.map +1 -1
  52. package/esm/date-picker-panel/index.mjs +11 -14
  53. package/esm/date-picker-panel/index.mjs.map +1 -1
  54. package/esm/editable/editable.d.ts +12 -12
  55. package/esm/editable/index.d.ts +6 -6
  56. package/esm/editable/index.mjs +49 -58
  57. package/esm/editable/index.mjs.map +1 -1
  58. package/esm/env.d.d.ts +1 -0
  59. package/esm/form/form.mjs +10 -10
  60. package/esm/form/form.mjs.map +1 -1
  61. package/esm/form-button-group/index.mjs +14 -25
  62. package/esm/form-button-group/index.mjs.map +1 -1
  63. package/esm/form-button-group/utils.mjs +2 -9
  64. package/esm/form-button-group/utils.mjs.map +1 -1
  65. package/esm/form-collapse/index.mjs +19 -22
  66. package/esm/form-collapse/index.mjs.map +1 -1
  67. package/esm/form-collapse/utils.mjs +0 -2
  68. package/esm/form-collapse/utils.mjs.map +1 -1
  69. package/esm/form-dialog/index.mjs +63 -70
  70. package/esm/form-dialog/index.mjs.map +1 -1
  71. package/esm/form-drawer/index.mjs +62 -69
  72. package/esm/form-drawer/index.mjs.map +1 -1
  73. package/esm/form-grid/form-grid.d.ts +2 -2
  74. package/esm/form-grid/hooks.d.ts +1 -2
  75. package/esm/form-grid/hooks.mjs +4 -11
  76. package/esm/form-grid/hooks.mjs.map +1 -1
  77. package/esm/form-grid/index.mjs +39 -40
  78. package/esm/form-grid/index.mjs.map +1 -1
  79. package/esm/form-item/index.mjs +57 -65
  80. package/esm/form-item/index.mjs.map +1 -1
  81. package/esm/form-item/types.d.ts +8 -6
  82. package/esm/form-item/utils.mjs.map +1 -1
  83. package/esm/form-layout/form-layout.mjs +12 -16
  84. package/esm/form-layout/form-layout.mjs.map +1 -1
  85. package/esm/form-layout/utils.mjs +2 -2
  86. package/esm/form-layout/utils.mjs.map +1 -1
  87. package/esm/form-step/index.mjs +27 -30
  88. package/esm/form-step/index.mjs.map +1 -1
  89. package/esm/form-step/utils.mjs +0 -3
  90. package/esm/form-step/utils.mjs.map +1 -1
  91. package/esm/form-tab/hooks.d.ts +2 -1
  92. package/esm/form-tab/hooks.mjs +13 -20
  93. package/esm/form-tab/hooks.mjs.map +1 -1
  94. package/esm/form-tab/index.mjs +38 -41
  95. package/esm/form-tab/index.mjs.map +1 -1
  96. package/esm/form-tab/utils.mjs.map +1 -1
  97. package/esm/index.mjs +76 -76
  98. package/esm/input/index.mjs +26 -30
  99. package/esm/input/index.mjs.map +1 -1
  100. package/esm/input-number/index.d.ts +15 -15
  101. package/esm/input-number/index.mjs +8 -11
  102. package/esm/input-number/index.mjs.map +1 -1
  103. package/esm/input-tag/index.mjs +16 -20
  104. package/esm/input-tag/index.mjs.map +1 -1
  105. package/esm/mention/index.mjs +20 -24
  106. package/esm/mention/index.mjs.map +1 -1
  107. package/esm/pagination/components/jumper.mjs.map +1 -1
  108. package/esm/pagination/components/next.mjs.map +1 -1
  109. package/esm/pagination/components/pager.mjs.map +1 -1
  110. package/esm/pagination/components/prev.mjs.map +1 -1
  111. package/esm/pagination/components/total.mjs.map +1 -1
  112. package/esm/pagination/pagination.mjs +1 -1
  113. package/esm/pagination/pagination.mjs.map +1 -1
  114. package/esm/password/index.mjs.map +1 -1
  115. package/esm/preview-text/index.mjs +27 -40
  116. package/esm/preview-text/index.mjs.map +1 -1
  117. package/esm/preview-text/utils.mjs +1 -1
  118. package/esm/preview-text/utils.mjs.map +1 -1
  119. package/esm/query-form/default-components.mjs.map +1 -1
  120. package/esm/query-form/hooks.mjs.map +1 -1
  121. package/esm/query-form/index.d.ts +3 -3
  122. package/esm/query-form/index.mjs +55 -61
  123. package/esm/query-form/index.mjs.map +1 -1
  124. package/esm/query-form/query-form.d.ts +1 -1
  125. package/esm/query-form/types.d.ts +1 -1
  126. package/esm/query-form-item/index.mjs +37 -44
  127. package/esm/query-form-item/index.mjs.map +1 -1
  128. package/esm/radio/index.d.ts +18 -18
  129. package/esm/radio/index.mjs +30 -39
  130. package/esm/radio/index.mjs.map +1 -1
  131. package/esm/rate/index.mjs +10 -13
  132. package/esm/rate/index.mjs.map +1 -1
  133. package/esm/reset/index.mjs +2 -2
  134. package/esm/reset/index.mjs.map +1 -1
  135. package/esm/segmented/index.mjs +13 -17
  136. package/esm/segmented/index.mjs.map +1 -1
  137. package/esm/select/index.d.ts +16 -16
  138. package/esm/select/index.mjs +22 -26
  139. package/esm/select/index.mjs.map +1 -1
  140. package/esm/select-table/index.d.ts +6 -6
  141. package/esm/select-table/index.mjs +16 -21
  142. package/esm/select-table/index.mjs.map +1 -1
  143. package/esm/select-table/select-table.d.ts +2 -2
  144. package/esm/shared/overlay-elements.mjs.map +1 -1
  145. package/esm/slider/index.mjs +10 -13
  146. package/esm/slider/index.mjs.map +1 -1
  147. package/esm/styles/form-grid/index.css +1 -1
  148. package/esm/submit/index.mjs +3 -3
  149. package/esm/submit/index.mjs.map +1 -1
  150. package/esm/switch/index.d.ts +9 -9
  151. package/esm/switch/index.mjs.map +1 -1
  152. package/esm/time-picker/index.mjs +6 -9
  153. package/esm/time-picker/index.mjs.map +1 -1
  154. package/esm/time-select/index.d.ts +12 -12
  155. package/esm/time-select/index.mjs +6 -9
  156. package/esm/time-select/index.mjs.map +1 -1
  157. package/esm/transfer/index.d.ts +12 -12
  158. package/esm/transfer/index.mjs.map +1 -1
  159. package/esm/tree/index.mjs +29 -33
  160. package/esm/tree/index.mjs.map +1 -1
  161. package/esm/tree/utils.mjs +0 -2
  162. package/esm/tree/utils.mjs.map +1 -1
  163. package/esm/tree-select/index.mjs +14 -18
  164. package/esm/tree-select/index.mjs.map +1 -1
  165. package/esm/upload/index.d.ts +12 -12
  166. package/esm/upload/index.mjs +10 -13
  167. package/esm/upload/index.mjs.map +1 -1
  168. package/esm/upload/upload.d.ts +24 -24
  169. package/esm/vendor/icon.mjs.map +1 -1
  170. package/esm/vendor/lodash.mjs +111 -85
  171. package/esm/vendor/lodash.mjs.map +1 -1
  172. package/esm/vendor/runtime.mjs +23 -29
  173. package/esm/vendor/runtime.mjs.map +1 -1
  174. package/esm/vendor/shared.esm-bundler.mjs +2 -7
  175. package/esm/vendor/shared.esm-bundler.mjs.map +1 -1
  176. package/esm/vendor/sizes.mjs.map +1 -1
  177. package/esm/vendor/types.mjs +5 -5
  178. package/esm/vendor/types.mjs.map +1 -1
  179. package/package.json +56 -82
  180. package/LICENSE +0 -21
@@ -1,69 +1,65 @@
1
1
  import { connect as s, mapProps as a } from "@silver-formily/vue";
2
- import { ElInput as d } from "element-plus";
3
- import "@formily/reactive";
4
- import "@vueuse/core";
5
- import { defineComponent as l, useSlots as c, createBlock as y, openBlock as x, unref as p, normalizeProps as I, guardReactiveProps as k, createSlots as v, withCtx as r, renderSlot as o } from "vue";
6
- import { mapReadPretty as i } from "../__builtins__/shared/transform-component.mjs";
2
+ import { PreviewText as i } from "../preview-text/index.mjs";
3
+ import { defineComponent as d, useSlots as l, openBlock as c, createBlock as y, unref as p, normalizeProps as x, guardReactiveProps as I, createSlots as k, withCtx as t, renderSlot as r } from "vue";
4
+ import { ElInput as v } from "element-plus";
7
5
  import { useCleanAttrs as P, composeExport as _ } from "../__builtins__/shared/utils.mjs";
8
- import { PreviewText as m } from "../preview-text/index.mjs";
9
- import "@formily/core";
10
- import "@silver-formily/reactive-vue";
11
- const f = /* @__PURE__ */ l({
6
+ import { mapReadPretty as f } from "../__builtins__/shared/transform-component.mjs";
7
+ const m = /* @__PURE__ */ d({
12
8
  name: "FInput",
13
9
  inheritAttrs: !1,
14
10
  __name: "input",
15
- setup(n) {
16
- const e = c(), { props: u } = P();
17
- return (t, A) => (x(), y(p(d), I(k(p(u))), v({ _: 2 }, [
11
+ setup(o) {
12
+ const e = l(), { props: u } = P();
13
+ return (n, A) => (c(), y(p(v), x(I(p(u))), k({ _: 2 }, [
18
14
  e.prefix ? {
19
15
  name: "prefix",
20
- fn: r(() => [
21
- o(t.$slots, "prefix")
16
+ fn: t(() => [
17
+ r(n.$slots, "prefix")
22
18
  ]),
23
19
  key: "0"
24
20
  } : void 0,
25
21
  e.suffix ? {
26
22
  name: "suffix",
27
- fn: r(() => [
28
- o(t.$slots, "suffix")
23
+ fn: t(() => [
24
+ r(n.$slots, "suffix")
29
25
  ]),
30
26
  key: "1"
31
27
  } : void 0,
32
28
  e.prepend ? {
33
29
  name: "prepend",
34
- fn: r(() => [
35
- o(t.$slots, "prepend")
30
+ fn: t(() => [
31
+ r(n.$slots, "prepend")
36
32
  ]),
37
33
  key: "2"
38
34
  } : void 0,
39
35
  e.append ? {
40
36
  name: "append",
41
- fn: r(() => [
42
- o(t.$slots, "append")
37
+ fn: t(() => [
38
+ r(n.$slots, "append")
43
39
  ]),
44
40
  key: "3"
45
41
  } : void 0
46
42
  ]), 1040));
47
43
  }
48
44
  }), $ = s(
49
- f,
45
+ m,
50
46
  a({
51
47
  readOnly: "readonly"
52
48
  }),
53
- i(m.Input)
49
+ f(i.Input)
54
50
  ), h = s(
55
- f,
56
- a((n) => ({
57
- ...n,
58
- readonly: n.readOnly,
51
+ m,
52
+ a((o) => ({
53
+ ...o,
54
+ readonly: o.readOnly,
59
55
  type: "textarea"
60
56
  })),
61
- i(m.Input)
62
- ), F = _($, {
57
+ f(i.Input)
58
+ ), R = _($, {
63
59
  TextArea: h
64
60
  });
65
61
  export {
66
- F as Input,
67
- F as default
62
+ R as Input,
63
+ R as default
68
64
  };
69
65
  //# sourceMappingURL=index.mjs.map
@@ -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;"}
@@ -10,7 +10,7 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
10
10
  type: import('vue').PropType<"" | "small" | "default" | "large">;
11
11
  };
12
12
  align: {
13
- type: import('vue').PropType<"center" | "left" | "right">;
13
+ type: import('vue').PropType<"center" | "right" | "left">;
14
14
  default: string;
15
15
  };
16
16
  name: {
@@ -20,6 +20,10 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
20
20
  type: import('vue').PropType<number>;
21
21
  default: number;
22
22
  };
23
+ min: {
24
+ type: import('vue').PropType<number>;
25
+ default: number;
26
+ };
23
27
  disabled: {
24
28
  type: import('vue').PropType<boolean>;
25
29
  default: undefined;
@@ -49,10 +53,6 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
49
53
  type: import('vue').PropType<"search" | "text" | "url" | "email" | "none" | "tel" | "numeric" | "decimal">;
50
54
  default: undefined;
51
55
  };
52
- min: {
53
- type: import('vue').PropType<number>;
54
- default: number;
55
- };
56
56
  step: {
57
57
  type: import('vue').PropType<number>;
58
58
  default: number;
@@ -120,7 +120,7 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
120
120
  type: import('vue').PropType<"" | "small" | "default" | "large">;
121
121
  };
122
122
  align: {
123
- type: import('vue').PropType<"center" | "left" | "right">;
123
+ type: import('vue').PropType<"center" | "right" | "left">;
124
124
  default: string;
125
125
  };
126
126
  name: {
@@ -130,6 +130,10 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
130
130
  type: import('vue').PropType<number>;
131
131
  default: number;
132
132
  };
133
+ min: {
134
+ type: import('vue').PropType<number>;
135
+ default: number;
136
+ };
133
137
  disabled: {
134
138
  type: import('vue').PropType<boolean>;
135
139
  default: undefined;
@@ -159,10 +163,6 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
159
163
  type: import('vue').PropType<"search" | "text" | "url" | "email" | "none" | "tel" | "numeric" | "decimal">;
160
164
  default: undefined;
161
165
  };
162
- min: {
163
- type: import('vue').PropType<number>;
164
- default: number;
165
- };
166
166
  step: {
167
167
  type: import('vue').PropType<number>;
168
168
  default: number;
@@ -221,7 +221,7 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
221
221
  type: import('vue').PropType<"" | "small" | "default" | "large">;
222
222
  };
223
223
  align: {
224
- type: import('vue').PropType<"center" | "left" | "right">;
224
+ type: import('vue').PropType<"center" | "right" | "left">;
225
225
  default: string;
226
226
  };
227
227
  name: {
@@ -231,6 +231,10 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
231
231
  type: import('vue').PropType<number>;
232
232
  default: number;
233
233
  };
234
+ min: {
235
+ type: import('vue').PropType<number>;
236
+ default: number;
237
+ };
234
238
  disabled: {
235
239
  type: import('vue').PropType<boolean>;
236
240
  default: undefined;
@@ -260,10 +264,6 @@ export declare const InputNumber: import('element-plus/es/utils/index.mjs').SFCW
260
264
  type: import('vue').PropType<"search" | "text" | "url" | "email" | "none" | "tel" | "numeric" | "decimal">;
261
265
  default: undefined;
262
266
  };
263
- min: {
264
- type: import('vue').PropType<number>;
265
- default: number;
266
- };
267
267
  step: {
268
268
  type: import('vue').PropType<number>;
269
269
  default: number;
@@ -1,12 +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 "@formily/reactive";
4
- import "@vueuse/core";
5
- import "vue";
6
- import { mapReadPretty as p } from "../__builtins__/shared/transform-component.mjs";
7
- import { PreviewText as e } from "../preview-text/index.mjs";
8
- const f = r(
9
- m,
2
+ import { ElInputNumber as e } from "element-plus";
3
+ import { PreviewText as n } from "../preview-text/index.mjs";
4
+ import { mapReadPretty as m } from "../__builtins__/shared/transform-component.mjs";
5
+ const u = r(
6
+ e,
10
7
  t(
11
8
  {
12
9
  readOnly: "readonly"
@@ -15,10 +12,10 @@ const f = r(
15
12
  controlsPosition: o.controlsPosition ?? "right"
16
13
  })
17
14
  ),
18
- p(e.Input)
15
+ m(n.Input)
19
16
  );
20
17
  export {
21
- f as InputNumber,
22
- f as default
18
+ u as InputNumber,
19
+ u as default
23
20
  };
24
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;"}
@@ -1,50 +1,46 @@
1
- import { useField as f, connect as l, mapProps as u } from "@silver-formily/vue";
2
- import { ElInputTag as d } from "element-plus";
3
- import "@formily/reactive";
4
- import "@vueuse/core";
5
- import { defineComponent as c, useSlots as g, createBlock as x, openBlock as y, unref as o, normalizeProps as n, guardReactiveProps as s, createSlots as P, withCtx as r, renderSlot as i } from "vue";
6
- import { mapReadPretty as _ } from "../__builtins__/shared/transform-component.mjs";
7
- import { PreviewText as k } from "../preview-text/index.mjs";
8
- import "@formily/core";
9
- import "@silver-formily/reactive-vue";
10
- import { useCleanAttrs as v } from "../__builtins__/shared/utils.mjs";
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, openBlock as x, createBlock 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";
11
7
  const T = /* @__PURE__ */ c({
12
8
  name: "FInputTag",
13
9
  inheritAttrs: !1,
14
10
  __name: "input-tag",
15
11
  setup(S) {
16
- const e = g(), { props: p } = v(), a = f();
17
- return (t, h) => (y(), x(o(d), n(s(o(p))), P({ _: 2 }, [
12
+ const e = g(), { props: i } = k(), p = l();
13
+ return (t, h) => (x(), y(o(_), s(a(o(i))), P({ _: 2 }, [
18
14
  e.tag ? {
19
15
  name: "tag",
20
- fn: r((m) => [
21
- i(t.$slots, "tag", n(s({ ...m, field: o(a) })))
16
+ fn: r((f) => [
17
+ n(t.$slots, "tag", s(a({ ...f, field: o(p) })))
22
18
  ]),
23
19
  key: "0"
24
20
  } : void 0,
25
21
  e.prefix ? {
26
22
  name: "prefix",
27
23
  fn: r(() => [
28
- i(t.$slots, "prefix")
24
+ n(t.$slots, "prefix")
29
25
  ]),
30
26
  key: "1"
31
27
  } : void 0,
32
28
  e.suffix ? {
33
29
  name: "suffix",
34
30
  fn: r(() => [
35
- i(t.$slots, "suffix")
31
+ n(t.$slots, "suffix")
36
32
  ]),
37
33
  key: "2"
38
34
  } : void 0
39
35
  ]), 1040));
40
36
  }
41
- }), E = l(
37
+ }), B = m(
42
38
  T,
43
39
  u({ readOnly: "readonly", disabled: !0 }),
44
- _(k.Select, { multiple: !0 })
40
+ v(d.Select, { multiple: !0 })
45
41
  );
46
42
  export {
47
- E as InputTag,
48
- E as default
43
+ B as InputTag,
44
+ B as default
49
45
  };
50
46
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/input-tag/input-tag.vue","../../src/input-tag/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { Field } from '@formily/core'\nimport { useField } from '@silver-formily/vue'\nimport { ElInputTag } from 'element-plus'\nimport { useCleanAttrs } from '../__builtins__'\n\ndefineOptions({\n name: 'FInputTag',\n inheritAttrs: false,\n})\n\nconst slots = defineSlots<{\n tag?: (scope: { value: string, index: number, field: Field | undefined }) => any\n prefix?: () => any\n suffix?: () => any\n}>()\n\nconst { props: inputTagProps } = useCleanAttrs()\nconst fieldRef = useField<Field>()\n</script>\n\n<template>\n <ElInputTag v-bind=\"inputTagProps\">\n <template v-if=\"slots.tag\" #tag=\"slotProps\">\n <slot name=\"tag\" v-bind=\"{ ...slotProps, field: fieldRef }\" />\n </template>\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 </ElInputTag>\n</template>\n","import { connect, mapProps } from '@silver-formily/vue'\nimport { mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\nimport FInputTag from './input-tag.vue'\n\nexport const InputTag = connect<typeof FInputTag>(\n FInputTag,\n mapProps({ readOnly: 'readonly', disabled: true }),\n mapReadPretty(PreviewText.Select, { multiple: true }),\n)\n\nexport default InputTag\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;"}
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;"}
@@ -1,32 +1,28 @@
1
1
  import { useField as u, connect as c, mapProps as v } from "@silver-formily/vue";
2
- import { ElMention as y } from "element-plus";
3
- import "@formily/reactive";
4
- import "@vueuse/core";
5
- import { defineComponent as k, useSlots as h, computed as $, createBlock as P, openBlock as S, unref as i, normalizeProps as p, guardReactiveProps as l, createSlots as g, withCtx as n, renderSlot as r } from "vue";
6
- import { mapReadPretty as b } from "../__builtins__/shared/transform-component.mjs";
7
- import { PreviewText as M } from "../preview-text/index.mjs";
8
- import "@formily/core";
9
- import "@silver-formily/reactive-vue";
10
- import { useCleanAttrs as w } from "../__builtins__/shared/utils.mjs";
2
+ import { PreviewText as y } from "../preview-text/index.mjs";
3
+ import { defineComponent as k, useSlots as h, computed as $, openBlock as P, createBlock 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";
11
7
  const C = /* @__PURE__ */ k({
12
8
  name: "FMention",
13
9
  inheritAttrs: !1,
14
10
  __name: "mention",
15
11
  setup(R) {
16
- const o = h(), { props: d } = w(), t = u(), f = $(() => {
17
- const e = d.value, { onSearch: s } = e;
18
- return s ? {
12
+ const o = h(), { props: d } = M(), t = u(), f = $(() => {
13
+ const e = d.value, { onSearch: a } = e;
14
+ return a ? {
19
15
  ...e,
20
- onSearch(a, m) {
21
- return s(
22
- a,
16
+ onSearch(i, m) {
17
+ return a(
18
+ i,
23
19
  m,
24
20
  t.value
25
21
  );
26
22
  }
27
23
  } : e;
28
24
  });
29
- return (e, s) => (S(), P(i(y), p(l(f.value)), g({ _: 2 }, [
25
+ return (e, a) => (P(), S(s(b), p(l(f.value)), g({ _: 2 }, [
30
26
  o.prefix ? {
31
27
  name: "prefix",
32
28
  fn: n(() => [
@@ -58,21 +54,21 @@ const C = /* @__PURE__ */ k({
58
54
  o.header ? {
59
55
  name: "header",
60
56
  fn: n(() => [
61
- r(e.$slots, "header", { field: i(t) })
57
+ r(e.$slots, "header", { field: s(t) })
62
58
  ]),
63
59
  key: "4"
64
60
  } : void 0,
65
61
  o.footer ? {
66
62
  name: "footer",
67
63
  fn: n(() => [
68
- r(e.$slots, "footer", { field: i(t) })
64
+ r(e.$slots, "footer", { field: s(t) })
69
65
  ]),
70
66
  key: "5"
71
67
  } : void 0,
72
68
  o.label ? {
73
69
  name: "label",
74
- fn: n((a) => [
75
- r(e.$slots, "label", p(l({ ...a, field: i(t) })))
70
+ fn: n((i) => [
71
+ r(e.$slots, "label", p(l({ ...i, field: s(t) })))
76
72
  ]),
77
73
  key: "6"
78
74
  } : void 0,
@@ -85,13 +81,13 @@ const C = /* @__PURE__ */ k({
85
81
  } : void 0
86
82
  ]), 1040));
87
83
  }
88
- }), j = c(
84
+ }), I = c(
89
85
  C,
90
86
  v({ dataSource: "options", readOnly: "readonly", loading: !0, disabled: !0 }),
91
- b(M.Input)
87
+ w(y.Input)
92
88
  );
93
89
  export {
94
- j as Mention,
95
- j as default
90
+ I as Mention,
91
+ I as default
96
92
  };
97
93
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../src/mention/mention.vue","../../src/mention/index.ts"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { Field } from '@formily/core'\nimport type { MentionOption } from 'element-plus/es/components/mention'\nimport { useField } from '@silver-formily/vue'\nimport { ElMention } from 'element-plus'\nimport { computed } from 'vue'\nimport { useCleanAttrs } from '../__builtins__'\n\ndefineOptions({\n name: 'FMention',\n inheritAttrs: false,\n})\n\nconst slots = defineSlots<{\n label?: (scope: { item: MentionOption, index: number, field: Field | undefined }) => any\n header?: (scope: { field: Field | undefined }) => any\n footer?: (scope: { field: Field | undefined }) => any\n loading?: () => any\n prefix?: () => any\n suffix?: () => any\n prepend?: () => any\n append?: () => any\n}>()\n\nconst { props: rawMentionProps } = useCleanAttrs()\nconst fieldRef = useField<Field>()\n\nconst mentionProps = computed(() => {\n const props = rawMentionProps.value\n const { onSearch } = props\n if (!onSearch) {\n return props\n }\n\n return {\n ...props,\n onSearch(pattern: string, prefix: string) {\n return (onSearch as (pattern: string, prefix: string, field?: Field) => any)(\n pattern,\n prefix,\n fieldRef.value,\n )\n },\n }\n})\n</script>\n\n<template>\n <ElMention v-bind=\"mentionProps\">\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 <template v-if=\"slots.header\" #header>\n <slot name=\"header\" :field=\"fieldRef\" />\n </template>\n <template v-if=\"slots.footer\" #footer>\n <slot name=\"footer\" :field=\"fieldRef\" />\n </template>\n <template v-if=\"slots.label\" #label=\"slotProps\">\n <slot name=\"label\" v-bind=\"{ ...slotProps, field: fieldRef }\" />\n </template>\n <template v-if=\"slots.loading\" #loading>\n <slot name=\"loading\" />\n </template>\n </ElMention>\n</template>\n","import { connect, mapProps } from '@silver-formily/vue'\nimport { mapReadPretty } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\nimport FMention from './mention.vue'\n\nexport const Mention = connect<typeof FMention>(\n FMention,\n mapProps({ dataSource: 'options', readOnly: 'readonly', loading: true, disabled: true }),\n mapReadPretty(PreviewText.Input),\n)\n\nexport default Mention\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;"}
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;"}
@@ -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;"}
@@ -1,6 +1,6 @@
1
1
  import { DArrowLeft as ce, MoreFilled as re, DArrowRight as pe, ArrowRight as fe, ArrowLeft as me } from "@element-plus/icons-vue";
2
2
  import { useLocale as R, useNamespace as O, ElInput as ve, ElIcon as oe, CHANGE_EVENT as X, ElBadge as H, ElSelect as be, ElOption as Pe, useSizeProp as Ce, useGlobalSize as he, useDeprecated as ze, elPaginationKey as Se } from "element-plus";
3
- import { inject as ye, defineComponent as U, ref as M, computed as C, createElementBlock as w, openBlock as d, unref as t, normalizeClass as k, createElementVNode as j, createVNode as ne, toDisplayString as D, createBlock as z, withCtx as A, resolveDynamicComponent as ue, watchEffect as ke, withKeys as Ne, createCommentVNode as ae, Fragment as de, renderList as ge, watch as Y, getCurrentInstance as Ee, provide as xe, h as I } from "vue";
3
+ import { inject as ye, defineComponent as U, ref as M, computed as C, openBlock as d, createElementBlock as w, unref as t, normalizeClass as k, createElementVNode as j, toDisplayString as D, createVNode as ne, createBlock as z, withCtx as A, resolveDynamicComponent as ue, watchEffect as ke, withKeys as Ne, createCommentVNode as ae, Fragment as de, renderList as ge, watch as Y, getCurrentInstance as Ee, provide as xe, h as I } from "vue";
4
4
  import { paginationJumperProps as $e } from "./components/jumper.mjs";
5
5
  import { paginationNextProps as Te } from "./components/next.mjs";
6
6
  import { useObserver as Me, formilyComputed as te } from "@silver-formily/reactive-vue";