@pixelium/web-vue 0.0.2 → 0.0.3-beta

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 (285) hide show
  1. package/README.md +42 -0
  2. package/README.zh.md +6 -3
  3. package/coverage/base.css +224 -0
  4. package/coverage/block-navigation.js +87 -0
  5. package/coverage/coverage-final.json +106 -0
  6. package/coverage/favicon.png +0 -0
  7. package/coverage/index.html +926 -0
  8. package/coverage/prettify.css +1 -0
  9. package/coverage/prettify.js +2 -0
  10. package/coverage/sort-arrow-sprite.png +0 -0
  11. package/coverage/sorter.js +210 -0
  12. package/dist/font.css +1 -1
  13. package/dist/index.d.ts +1593 -248
  14. package/dist/normalize.css +2 -0
  15. package/dist/pixelium-vue-icon-hn.cjs +1 -1
  16. package/dist/pixelium-vue-icon-hn.css +2 -1
  17. package/dist/pixelium-vue-icon-hn.js +8533 -8154
  18. package/dist/pixelium-vue-icon-hn.umd.cjs +1 -1
  19. package/dist/pixelium-vue-icon-pa.cjs +1 -1
  20. package/dist/pixelium-vue-icon-pa.css +2 -1
  21. package/dist/pixelium-vue-icon-pa.js +10625 -10143
  22. package/dist/pixelium-vue-icon-pa.umd.cjs +1 -1
  23. package/dist/pixelium-vue.cjs +2 -2
  24. package/dist/pixelium-vue.css +2 -1
  25. package/dist/pixelium-vue.js +7402 -5852
  26. package/dist/pixelium-vue.umd.cjs +2 -2
  27. package/es/aside/index.js +46 -151
  28. package/es/auto-complete/draw.d.ts +1 -1
  29. package/es/auto-complete/draw.js +26 -51
  30. package/es/auto-complete/index.css +92 -32
  31. package/es/auto-complete/index.d.ts +12 -15
  32. package/es/auto-complete/index.js +338 -400
  33. package/es/auto-complete/type.d.ts +25 -13
  34. package/es/avatar/css.js +2 -0
  35. package/es/avatar/draw.d.ts +2 -0
  36. package/es/avatar/draw.js +11 -0
  37. package/es/avatar/index.css +49 -0
  38. package/es/avatar/index.d.ts +15 -0
  39. package/es/avatar/index.js +110 -0
  40. package/es/avatar/type.d.ts +34 -0
  41. package/es/button/draw.d.ts +4 -4
  42. package/es/button/draw.js +213 -297
  43. package/es/button/index.css +40 -30
  44. package/es/button/index.d.ts +0 -4
  45. package/es/button/index.js +230 -256
  46. package/es/button/type.d.ts +3 -3
  47. package/es/button-group/index.css +0 -3
  48. package/es/button-group/index.d.ts +1 -2
  49. package/es/button-group/index.js +59 -31
  50. package/es/button-group/type.d.ts +21 -4
  51. package/es/checkbox/css.js +2 -0
  52. package/es/checkbox/draw.d.ts +4 -0
  53. package/es/checkbox/draw.js +46 -0
  54. package/es/checkbox/index.css +85 -0
  55. package/es/checkbox/index.d.ts +31 -0
  56. package/es/checkbox/index.js +206 -0
  57. package/es/checkbox/type.d.ts +88 -0
  58. package/es/checkbox-group/css.js +2 -0
  59. package/es/checkbox-group/index.css +20 -0
  60. package/es/checkbox-group/index.d.ts +23 -0
  61. package/es/checkbox-group/index.js +84 -0
  62. package/es/checkbox-group/type.d.ts +78 -0
  63. package/es/col/index.d.ts +2 -2
  64. package/es/col/index.js +43 -58
  65. package/es/container/index.js +18 -31
  66. package/es/divider/index.js +39 -53
  67. package/es/empty/index.css +4 -4
  68. package/es/empty/index.js +16 -71
  69. package/es/entry.js +102 -0
  70. package/es/footer/index.js +31 -40
  71. package/es/form/css.js +1 -0
  72. package/es/form/index.d.ts +27 -0
  73. package/es/form/index.js +125 -0
  74. package/es/form/type.d.ts +238 -0
  75. package/es/form/use-form.d.ts +4 -0
  76. package/es/form/use-form.js +48 -0
  77. package/es/form-item/css.js +2 -0
  78. package/es/form-item/index.css +77 -0
  79. package/es/form-item/index.d.ts +37 -0
  80. package/es/form-item/index.js +318 -0
  81. package/es/form-item/type.d.ts +96 -0
  82. package/es/grid/index.js +56 -75
  83. package/es/grid-item/css.js +0 -1
  84. package/es/grid-item/index.d.ts +1 -1
  85. package/es/grid-item/index.js +85 -121
  86. package/es/header/index.js +31 -40
  87. package/es/icon/index.js +44 -55
  88. package/es/icons/css-hn.js +0 -1
  89. package/es/icons/css-pa.js +0 -1
  90. package/es/icons/icon-hn.js +10337 -15986
  91. package/es/icons/icon-pa.js +12573 -17447
  92. package/es/image/css.js +2 -0
  93. package/es/image/index.css +69 -0
  94. package/es/image/index.d.ts +35 -0
  95. package/es/image/index.js +199 -0
  96. package/es/image/type.d.ts +126 -0
  97. package/es/index.css +1 -515
  98. package/es/index.d.ts +22 -2
  99. package/es/index.js +143 -123
  100. package/es/input/draw.d.ts +1 -1
  101. package/es/input/draw.js +26 -51
  102. package/es/input/index.css +85 -33
  103. package/es/input/index.d.ts +9 -16
  104. package/es/input/index.js +319 -423
  105. package/es/input/type.d.ts +3 -3
  106. package/es/input-group/index.css +0 -1
  107. package/es/input-group/index.d.ts +2 -2
  108. package/es/input-group/index.js +66 -37
  109. package/es/input-group/type.d.ts +16 -4
  110. package/es/input-group-label/draw.d.ts +1 -1
  111. package/es/input-group-label/draw.js +26 -51
  112. package/es/input-group-label/index.css +33 -22
  113. package/es/input-group-label/index.d.ts +1 -4
  114. package/es/input-group-label/index.js +104 -127
  115. package/es/input-group-label/type.d.ts +3 -3
  116. package/es/input-number/draw.d.ts +1 -1
  117. package/es/input-number/draw.js +26 -51
  118. package/es/input-number/index.css +90 -35
  119. package/es/input-number/index.d.ts +9 -16
  120. package/es/input-number/index.js +428 -536
  121. package/es/input-number/type.d.ts +3 -3
  122. package/es/input-tag/draw.d.ts +1 -1
  123. package/es/input-tag/draw.js +26 -48
  124. package/es/input-tag/index.css +100 -33
  125. package/es/input-tag/index.d.ts +7 -13
  126. package/es/input-tag/index.js +442 -467
  127. package/es/input-tag/type.d.ts +24 -13
  128. package/es/link/index.js +75 -106
  129. package/es/main/index.js +11 -15
  130. package/es/mask/index.js +94 -115
  131. package/es/message/index.css +1 -1
  132. package/es/message/index.js +168 -346
  133. package/es/message-box/css.js +1 -1
  134. package/es/message-box/index.js +98 -114
  135. package/es/message-box/message-box-wrapped.js +33 -46
  136. package/es/message-box/message-box.js +79 -111
  137. package/es/option-list/index.css +13 -13
  138. package/es/option-list/index.d.ts +4 -31
  139. package/es/option-list/index.js +99 -167
  140. package/es/option-list/type.d.ts +5 -1
  141. package/es/pixelate/pixel.d.ts +5 -0
  142. package/es/pixelate/pixel.js +70 -0
  143. package/es/pixelate/pixelate.worker.d.ts +1 -0
  144. package/es/popover/index.d.ts +13 -99
  145. package/es/popover/index.js +75 -238
  146. package/es/popover/type.d.ts +7 -2
  147. package/es/popup/css.js +1 -0
  148. package/es/popup/index.d.ts +210 -0
  149. package/es/popup/index.js +203 -0
  150. package/es/popup/type.d.ts +105 -0
  151. package/es/popup-content/draw.d.ts +2 -2
  152. package/es/popup-content/draw.js +98 -143
  153. package/es/popup-content/index.css +11 -11
  154. package/es/popup-content/index.d.ts +1 -0
  155. package/es/popup-content/index.js +253 -1576
  156. package/es/popup-content/type.d.ts +1 -0
  157. package/es/popup-trigger/index.d.ts +8 -2
  158. package/es/popup-trigger/index.js +122 -95
  159. package/es/popup-trigger/type.d.ts +4 -1
  160. package/es/popup-wrapper/css.js +2 -0
  161. package/es/popup-wrapper/index.css +14 -0
  162. package/es/popup-wrapper/index.d.ts +18 -0
  163. package/es/popup-wrapper/index.js +67 -0
  164. package/es/popup-wrapper/type.d.ts +9 -0
  165. package/es/radio/css.js +1 -0
  166. package/es/radio/draw.d.ts +4 -0
  167. package/es/radio/draw.js +47 -0
  168. package/es/radio/index.d.ts +30 -0
  169. package/es/radio/index.js +190 -0
  170. package/es/radio/style.css +73 -0
  171. package/es/radio/type.d.ts +76 -0
  172. package/es/radio-group/css.js +2 -0
  173. package/es/radio-group/index.css +20 -0
  174. package/es/radio-group/index.d.ts +23 -0
  175. package/es/radio-group/index.js +77 -0
  176. package/es/radio-group/type.d.ts +77 -0
  177. package/es/row/index.js +56 -70
  178. package/es/select/draw.d.ts +1 -1
  179. package/es/select/draw.js +26 -51
  180. package/es/select/index.css +118 -36
  181. package/es/select/index.d.ts +14 -16
  182. package/es/select/index.js +625 -672
  183. package/es/select/type.d.ts +60 -25
  184. package/es/share/const/event-bus-key.js +1 -6
  185. package/es/share/const/index.d.ts +4 -0
  186. package/es/share/const/index.js +22 -24
  187. package/es/share/const/provide-key.d.ts +5 -0
  188. package/es/share/const/provide-key.js +6 -5
  189. package/es/share/const/style.d.ts +6 -0
  190. package/es/share/const/style.js +7 -0
  191. package/es/share/hook/use-cancelable-delay.d.ts +1 -0
  192. package/es/share/hook/use-cancelable-delay.js +42 -0
  193. package/es/share/hook/use-click-outside-listener.d.ts +1 -1
  194. package/es/share/hook/use-click-outside-listener.js +28 -41
  195. package/es/share/hook/use-composition.js +17 -15
  196. package/es/share/hook/use-controlled-mode.d.ts +3 -3
  197. package/es/share/hook/use-controlled-mode.js +20 -23
  198. package/es/share/hook/use-dark-mode.js +51 -65
  199. package/es/share/hook/use-index-of-children.d.ts +2 -1
  200. package/es/share/hook/use-index-of-children.js +47 -45
  201. package/es/share/hook/use-lazy-load.d.ts +10 -0
  202. package/es/share/hook/use-lazy-load.js +133 -0
  203. package/es/share/hook/use-props-detect.d.ts +2 -0
  204. package/es/share/hook/use-resize-observer.d.ts +1 -2
  205. package/es/share/hook/use-resize-observer.js +28 -20
  206. package/es/share/hook/use-screen-width.js +27 -36
  207. package/es/share/hook/use-smooth-transition.d.ts +2 -0
  208. package/es/share/hook/use-smooth-transition.js +65 -0
  209. package/es/share/hook/use-textarea-height.js +86 -92
  210. package/es/share/hook/use-theme-mode.js +41 -42
  211. package/es/share/hook/use-transition-end.d.ts +2 -0
  212. package/es/share/hook/use-transition-end.js +12 -0
  213. package/es/share/hook/use-watch-global-css-var.js +12 -16
  214. package/es/share/hook/use-window-resize-listener.d.ts +1 -0
  215. package/es/share/hook/use-window-resize-listener.js +15 -0
  216. package/es/share/hook/use-z-index.js +30 -27
  217. package/es/share/type/index.d.ts +18 -3
  218. package/es/share/util/color.d.ts +5 -3
  219. package/es/share/util/color.js +156 -149
  220. package/es/share/util/common.d.ts +7 -2
  221. package/es/share/util/common.js +127 -65
  222. package/es/share/util/console.d.ts +3 -3
  223. package/es/share/util/console.js +10 -7
  224. package/es/share/util/dom.d.ts +19 -0
  225. package/es/share/util/dom.js +88 -0
  226. package/es/share/util/env.d.ts +1 -0
  227. package/es/share/util/env.js +5 -4
  228. package/es/share/util/event-bus.js +3 -20
  229. package/es/share/util/lru-cache.js +29 -33
  230. package/es/share/util/pixel.d.ts +4 -0
  231. package/es/share/util/plot.d.ts +8 -3
  232. package/es/share/util/plot.js +457 -229
  233. package/es/share/util/reactivity.d.ts +8 -0
  234. package/es/share/util/reactivity.js +23 -0
  235. package/es/share/util/render.js +31 -41
  236. package/es/share/util/theme.d.ts +3 -0
  237. package/es/share/util/theme.js +77 -57
  238. package/es/slider/css.js +2 -0
  239. package/es/slider/draw.d.ts +25 -0
  240. package/es/slider/draw.js +113 -0
  241. package/es/slider/index.css +119 -0
  242. package/es/slider/index.d.ts +66 -0
  243. package/es/slider/index.js +503 -0
  244. package/es/slider/type.d.ts +162 -0
  245. package/es/slider/util.d.ts +37 -0
  246. package/es/slider/util.js +130 -0
  247. package/es/space/index.css +24 -29
  248. package/es/space/index.js +73 -97
  249. package/es/spin/index.css +18 -17
  250. package/es/spin/index.js +72 -102
  251. package/es/spin/type.d.ts +11 -5
  252. package/es/switch/css.js +2 -0
  253. package/es/switch/draw.d.ts +2 -0
  254. package/es/switch/draw.js +18 -0
  255. package/es/switch/index.css +121 -0
  256. package/es/switch/index.d.ts +42 -0
  257. package/es/switch/index.js +259 -0
  258. package/es/switch/type.d.ts +133 -0
  259. package/es/tag/draw.d.ts +2 -2
  260. package/es/tag/draw.js +80 -127
  261. package/es/tag/index.css +38 -22
  262. package/es/tag/index.d.ts +2 -2
  263. package/es/tag/index.js +121 -190
  264. package/es/tag/type.d.ts +3 -3
  265. package/es/text-outline/css.js +2 -0
  266. package/es/text-outline/index.css +4 -0
  267. package/es/text-outline/index.d.ts +17 -0
  268. package/es/text-outline/index.js +33 -0
  269. package/es/text-outline/type.d.ts +23 -0
  270. package/es/textarea/draw.js +9 -11
  271. package/es/textarea/index.css +37 -23
  272. package/es/textarea/index.d.ts +8 -14
  273. package/es/textarea/index.js +274 -262
  274. package/es/tooltip/index.d.ts +100 -4
  275. package/es/tooltip/index.js +70 -226
  276. package/es/tooltip/type.d.ts +7 -2
  277. package/es/vendor.js +504 -0
  278. package/es/virtual-list/css.js +2 -0
  279. package/es/virtual-list/index.css +25 -0
  280. package/es/virtual-list/index.d.ts +11 -0
  281. package/es/virtual-list/index.js +313 -0
  282. package/es/virtual-list/type.d.ts +26 -0
  283. package/package.json +10 -16
  284. package/es/grid-item/index.css +0 -0
  285. /package/es/message-box/{message-box.css → index.css} +0 -0
package/es/input/index.js CHANGED
@@ -1,432 +1,328 @@
1
1
  import './css.js'
2
- import { defineComponent, createElementBlock, openBlock, normalizeStyle, createElementVNode, getCurrentInstance, ref, inject, computed, shallowRef, useSlots, watch, onMounted, nextTick, normalizeClass, createCommentVNode, unref, renderSlot, withModifiers, createBlock, toDisplayString, createVNode } from "vue";
3
- import { u as useResizeObserver } from "../share/hook/use-resize-observer.js";
4
- import { d as drawBorder } from "./draw.js";
5
- import { g as getGlobalThemeColor } from "../share/util/color.js";
6
- import { a as canvasPreprocess, c as calcPixelSize, g as getBorderRadius, b as calcBorderCornerCenter, f as floodFill } from "../share/util/plot.js";
7
- import { u as useDarkMode } from "../share/hook/use-dark-mode.js";
8
- import { u as useComposition } from "../share/hook/use-composition.js";
9
- import { T as TimesCircleSolid, S as SpinnerThirdSolid } from "../auto-complete/index.js";
10
- import { N } from "../aside/index.js";
11
- import { u as useWatchGlobalCssVal } from "../share/hook/use-watch-global-css-var.js";
12
- import { _ as _sfc_main$1 } from "../input-group/index.js";
13
- import { I as INPUT_GROUP_UPDATE } from "../share/const/event-bus-key.js";
14
- import { u as useIndexOfChildren } from "../share/hook/use-index-of-children.js";
15
- import { I as INPUT_GROUP_PROVIDE } from "../share/const/provide-key.js";
16
- import { B as BORDER_CORNER_RAD_RANGE } from "../share/const/index.js";
17
- import { u as useControlledMode } from "../share/hook/use-controlled-mode.js";
18
- const Eye = /* @__PURE__ */ defineComponent({
19
- props: {
20
- size: {},
21
- color: {}
22
- },
23
- setup(__props) {
24
- const props = __props;
25
- return (_ctx, _cache) => {
26
- return openBlock(), createElementBlock(
27
- "svg",
28
- {
29
- class: "px-icon-hn",
30
- style: normalizeStyle({ color: props.color, fontSize: props.size + "px" }),
31
- xmlns: "http://www.w3.org/2000/svg",
32
- viewBox: "0 0 24 24"
33
- },
34
- [..._cache[0] || (_cache[0] = [
35
- createElementVNode(
36
- "path",
37
- { d: "M16 11h1v2h-1zM16 13v2h-1v1h-2v-1h1v-1h1v-1zM16 9v2h-1v-1h-1V9h-1V8h2v1zM11 16h2v1h-2zM11 15v1H9v-1H8v-2h1v1h1v1zM13 7v1h-1v3h-1v1H8v1H7v-2h1V9h1V8h2V7z" },
38
- null,
39
- -1
40
- /* CACHED */
41
- ),
42
- createElementVNode(
43
- "path",
44
- { d: "M22 11V9h-1V8h-1V7h-1V6h-2V5H7v1H5v1H4v1H3v1H2v2H1v2h1v2h1v1h1v1h1v1h2v1h10v-1h2v-1h1v-1h1v-1h1v-2h1v-2zm-1 3h-1v1h-1v1h-1v1h-2v1H8v-1H7v-1H5v-1H4v-1H3v-4h1V9h1V8h1V7h2V6h8v1h2v1h1v1h1v1h1z" },
45
- null,
46
- -1
47
- /* CACHED */
48
- )
49
- ])],
50
- 4
51
- /* STYLE */
52
- );
53
- };
54
- }
55
- });
56
- const EyeCross = /* @__PURE__ */ defineComponent({
57
- props: {
58
- size: {},
59
- color: {}
60
- },
61
- setup(__props) {
62
- const props = __props;
63
- return (_ctx, _cache) => {
64
- return openBlock(), createElementBlock(
65
- "svg",
66
- {
67
- class: "px-icon-hn",
68
- style: normalizeStyle({ color: props.color, fontSize: props.size + "px" }),
69
- xmlns: "http://www.w3.org/2000/svg",
70
- viewBox: "0 0 24 24"
71
- },
72
- [..._cache[0] || (_cache[0] = [
73
- createElementVNode(
74
- "path",
75
- { d: "M15 13h1v2h-1v1h-2v-1h1v-1h1zM16 11h1v2h-1z" },
76
- null,
77
- -1
78
- /* CACHED */
79
- ),
80
- createElementVNode(
81
- "path",
82
- { d: "M23 11v2h-1v2h-1v1h-1v1h-1v1h-2v1H9v-1h7v-1h2v-1h1v-1h1v-1h1v-4h-1V9h-1V8h2v1h1v2zM2 13H1v-2h1V9h1V8h1V7h1V6h2V5h8v1H8v1H6v1H5v1H4v1H3v4h1v1h1v1H3v-1H2z" },
83
- null,
84
- -1
85
- /* CACHED */
86
- ),
87
- createElementVNode(
88
- "path",
89
- { d: "M13 7v1h-1v1h-1v1h-1v1H9v1H8v1H7v-2h1V9h1V8h2V7zM9 17H8v1H7v1H6v1H5v1H4v1H3v-1H2v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1v-1h1V9h1V8h1V7h1V6h1V5h1V4h1V3h1V2h1v1h1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1h-1v1H9zM11 16h2v1h-2z" },
90
- null,
91
- -1
92
- /* CACHED */
93
- )
94
- ])],
95
- 4
96
- /* STYLE */
97
- );
98
- };
99
- }
100
- });
101
- const _hoisted_1 = {
102
- key: 0,
103
- class: "px-input-prefix-wrapper"
2
+ import { V as spinner_third_solid_default, _ as E, l as times_circle_solid_default, o as eye_cross_default, s as eye_default } from "../vendor.js";
3
+ import { t as BORDER_CORNER_RAD_RANGE } from "../share/const/index.js";
4
+ import { i as canvasPreprocess, l as getBorderRadius, n as calcPixelSize, s as floodFill, t as calcBorderCornerCenter } from "../share/util/plot.js";
5
+ import { n as getGlobalThemeColor } from "../share/util/color.js";
6
+ import { t as useDarkMode } from "../share/hook/use-dark-mode.js";
7
+ import { t as useResizeObserver } from "../share/hook/use-resize-observer.js";
8
+ import { i as INPUT_GROUP_UPDATE } from "../share/const/event-bus-key.js";
9
+ import { t as useWatchGlobalCssVal } from "../share/hook/use-watch-global-css-var.js";
10
+ import { n as useIndexOfChildren } from "../share/hook/use-index-of-children.js";
11
+ import { i as FORM_ITEM_PROVIDE, s as INPUT_GROUP_PROVIDE } from "../share/const/provide-key.js";
12
+ import { t as createProvideComputed } from "../share/util/reactivity.js";
13
+ import { t as useTransitionEnd } from "../share/hook/use-transition-end.js";
14
+ import { t as drawBorder } from "./draw.js";
15
+ import { t as useComposition } from "../share/hook/use-composition.js";
16
+ import { t as useControlledMode } from "../share/hook/use-controlled-mode.js";
17
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, getCurrentInstance, inject, nextTick, normalizeClass, onMounted, openBlock, ref, renderSlot, shallowRef, toDisplayString, unref, useSlots, watch, withModifiers } from "vue";
18
+ var _hoisted_1 = {
19
+ key: 0,
20
+ class: "px-input-prefix-wrapper"
104
21
  };
105
- const _hoisted_2 = ["value", "placeholder", "disabled", "autofocus", "type"];
106
- const _hoisted_3 = {
107
- key: 1,
108
- class: "px-input-close-wrapper"
22
+ var _hoisted_2 = [
23
+ "value",
24
+ "placeholder",
25
+ "disabled",
26
+ "autofocus",
27
+ "type"
28
+ ];
29
+ var _hoisted_3 = {
30
+ key: 1,
31
+ class: "px-input-close-wrapper"
109
32
  };
110
- const _hoisted_4 = {
111
- key: 1,
112
- class: "px-input-icon-placeholder"
33
+ var _hoisted_4 = {
34
+ key: 1,
35
+ class: "px-input-icon-placeholder"
113
36
  };
114
- const _hoisted_5 = {
115
- key: 2,
116
- class: "px-input-password-wrapper"
37
+ var _hoisted_5 = {
38
+ key: 2,
39
+ class: "px-input-password-wrapper"
117
40
  };
118
- const _hoisted_6 = {
119
- key: 3,
120
- class: "px-input-count-wrapper"
41
+ var _hoisted_6 = {
42
+ key: 3,
43
+ class: "px-input-count-wrapper"
121
44
  };
122
- const _hoisted_7 = {
123
- key: 4,
124
- class: "px-input-loading-wrapper"
45
+ var _hoisted_7 = {
46
+ key: 4,
47
+ class: "px-input-loading-wrapper"
125
48
  };
126
- const _hoisted_8 = {
127
- key: 5,
128
- class: "px-input-suffix-wrapper"
49
+ var _hoisted_8 = {
50
+ key: 5,
51
+ class: "px-input-suffix-wrapper"
129
52
  };
130
- const _sfc_main = /* @__PURE__ */ defineComponent({
131
- ...{
132
- name: "Input"
133
- },
134
- __name: "index",
135
- props: {
136
- modelValue: null,
137
- defaultValue: null,
138
- placeholder: null,
139
- password: { type: Boolean, default: false },
140
- disabled: { type: Boolean, default: false },
141
- readonly: { type: Boolean, default: false },
142
- clearable: { type: Boolean, default: false },
143
- loading: { type: Boolean, default: false },
144
- size: { default: "medium" },
145
- shape: { default: "default" },
146
- borderRadius: null,
147
- maxLength: null,
148
- showCount: { type: Boolean, default: false },
149
- countGraphemes: { type: Function },
150
- sliceGraphemes: { type: Function },
151
- status: { default: "normal" },
152
- autofocus: { type: Boolean },
153
- nativeType: null
154
- },
155
- emits: ["input", "update:modelValue", "change", "clear", "blur", "focus"],
156
- setup(__props, { expose: __expose, emit: __emit }) {
157
- var _a;
158
- const props = __props;
159
- const emits = __emit;
160
- const [isComposing, compositionStartHandler, compositionUpdateHandler] = useComposition({
161
- afterComposition: (e) => {
162
- nextTick(() => {
163
- inputHandler(e);
164
- });
165
- }
166
- });
167
- const instance = getCurrentInstance();
168
- const innerInputGroup = ref(((_a = instance == null ? void 0 : instance.parent) == null ? void 0 : _a.type) === _sfc_main$1);
169
- const [_, first, last] = innerInputGroup.value ? useIndexOfChildren(INPUT_GROUP_UPDATE) : [ref(0), ref(false), ref(false)];
170
- const inputGroupProps = inject(INPUT_GROUP_PROVIDE);
171
- const borderRadiusComputed = computed(() => {
172
- return innerInputGroup.value && inputGroupProps ? inputGroupProps.borderRadius : props.borderRadius;
173
- });
174
- const sizeComputed = computed(() => {
175
- return innerInputGroup.value && inputGroupProps ? inputGroupProps.size : props.size;
176
- });
177
- const shapeComputed = computed(() => {
178
- return innerInputGroup.value && inputGroupProps ? inputGroupProps.shape : props.shape;
179
- });
180
- const disabledComputed = computed(() => {
181
- return innerInputGroup.value && inputGroupProps ? inputGroupProps.disabled || props.disabled : props.disabled;
182
- });
183
- const [inputValue, updateInputValue] = useControlledMode("modelValue", props, emits, {
184
- defaultField: "defaultValue",
185
- transform: (nextValue) => {
186
- return nextValue || "";
187
- }
188
- });
189
- const wrapperRef = shallowRef(null);
190
- const canvasRef = shallowRef(null);
191
- const inputRef = shallowRef(null);
192
- const currentLength = computed(() => {
193
- return props.countGraphemes ? props.countGraphemes(inputValue.value) : inputValue.value.length;
194
- });
195
- const inputHandler = async (e) => {
196
- const target = e.target;
197
- let newValue = target.value;
198
- inputValue.value = newValue;
199
- if (isComposing.value) {
200
- return;
201
- }
202
- emits("input", newValue, e);
203
- if (props.maxLength) {
204
- if (props.countGraphemes && props.sliceGraphemes) {
205
- await nextTick();
206
- newValue = props.sliceGraphemes(inputValue.value, props.maxLength);
207
- } else {
208
- newValue = inputValue.value.slice(0, props.maxLength);
209
- }
210
- }
211
- updateInputValue(newValue);
212
- };
213
- const clearHandler = async () => {
214
- await updateInputValue("");
215
- emits("change", "");
216
- emits("clear", "");
217
- };
218
- const changeHandler = (e) => {
219
- const target = e.target;
220
- emits("change", target.value, e);
221
- };
222
- const focusMode = ref(false);
223
- const blurHandler = () => {
224
- focusMode.value = false;
225
- };
226
- const focusHandler = () => {
227
- focusMode.value = true;
228
- };
229
- const focusInputHandler = () => {
230
- var _a2;
231
- (_a2 = inputRef.value) == null ? void 0 : _a2.focus();
232
- };
233
- const hoverFlag = ref(false);
234
- const mouseenterHandler = () => {
235
- hoverFlag.value = true;
236
- };
237
- const mouseleaveHandler = () => {
238
- hoverFlag.value = false;
239
- };
240
- const showClose = computed(() => {
241
- return props.clearable && !disabledComputed.value && !props.readonly;
242
- });
243
- const showPassword = ref(false);
244
- const toggleShowPassword = () => {
245
- showPassword.value = !showPassword.value;
246
- };
247
- const typeComputed = computed(() => {
248
- if (props.nativeType) {
249
- return props.nativeType;
250
- }
251
- if (props.password) {
252
- return showPassword.value ? "text" : "password";
253
- }
254
- return "text";
255
- });
256
- const slots = useSlots();
257
- __expose({
258
- focus: () => {
259
- var _a2;
260
- (_a2 = inputRef.value) == null ? void 0 : _a2.focus();
261
- },
262
- blur: () => {
263
- var _a2;
264
- (_a2 = inputRef.value) == null ? void 0 : _a2.blur();
265
- },
266
- clear: () => clearHandler(),
267
- select: () => {
268
- var _a2;
269
- (_a2 = inputRef.value) == null ? void 0 : _a2.select();
270
- }
271
- });
272
- const darkMode = useDarkMode();
273
- watch(
274
- [
275
- first,
276
- last,
277
- borderRadiusComputed,
278
- shapeComputed,
279
- sizeComputed,
280
- disabledComputed,
281
- () => slots,
282
- darkMode,
283
- focusMode,
284
- hoverFlag
285
- ],
286
- () => {
287
- setTimeout(() => {
288
- drawPixel();
289
- });
290
- }
291
- );
292
- const drawPixel = () => {
293
- const preprocessData = canvasPreprocess(wrapperRef, canvasRef);
294
- if (!preprocessData) {
295
- return;
296
- }
297
- const { ctx, width, height, canvas } = preprocessData;
298
- const pixelSize = calcPixelSize();
299
- const borderRadius = getBorderRadius(
300
- canvas,
301
- pixelSize,
302
- borderRadiusComputed.value,
303
- shapeComputed.value,
304
- sizeComputed.value || "medium",
305
- innerInputGroup.value,
306
- first.value,
307
- last.value
308
- );
309
- const borderColor = props.status !== "normal" ? getGlobalThemeColor(props.status === "error" ? "danger" : props.status, 6) : (hoverFlag.value || focusMode.value) && !disabledComputed.value && !props.readonly ? getGlobalThemeColor("primary", 6) : getGlobalThemeColor("neutral", 10);
310
- const center = calcBorderCornerCenter(borderRadius, width, height, pixelSize);
311
- const rad = BORDER_CORNER_RAD_RANGE;
312
- drawBorder(
313
- ctx,
314
- width,
315
- height,
316
- center,
317
- borderRadius,
318
- rad,
319
- borderColor,
320
- pixelSize,
321
- innerInputGroup.value,
322
- first.value,
323
- last.value
324
- );
325
- const backgroundColor = disabledComputed.value ? getGlobalThemeColor("neutral", 6) : getGlobalThemeColor("neutral", 1);
326
- floodFill(ctx, Math.round(width / 2), Math.round(height / 2), backgroundColor);
327
- };
328
- onMounted(() => {
329
- nextTick(() => {
330
- drawPixel();
331
- });
332
- });
333
- useResizeObserver(wrapperRef, drawPixel);
334
- useWatchGlobalCssVal(drawPixel);
335
- return (_ctx, _cache) => {
336
- return openBlock(), createElementBlock(
337
- "div",
338
- {
339
- class: normalizeClass(["pixelium px-input", {
340
- [`px-input__${sizeComputed.value}`]: !!sizeComputed.value,
341
- [`px-input__${shapeComputed.value}`]: !!shapeComputed.value,
342
- "px-input__inner": innerInputGroup.value,
343
- "px-input__disabled": !!disabledComputed.value
344
- }]),
345
- ref_key: "wrapperRef",
346
- ref: wrapperRef,
347
- onClick: focusInputHandler,
348
- onMouseenter: mouseenterHandler,
349
- onMouseleave: mouseleaveHandler
350
- },
351
- [
352
- unref(slots).prefix ? (openBlock(), createElementBlock("div", _hoisted_1, [
353
- renderSlot(_ctx.$slots, "prefix")
354
- ])) : createCommentVNode("v-if", true),
355
- createElementVNode("input", {
356
- class: "px-input-inner",
357
- value: unref(inputValue),
358
- ref_key: "inputRef",
359
- ref: inputRef,
360
- placeholder: props.placeholder,
361
- disabled: disabledComputed.value || props.readonly,
362
- autofocus: __props.autofocus,
363
- type: typeComputed.value,
364
- onInput: withModifiers(inputHandler, ["stop"]),
365
- onChange: withModifiers(changeHandler, ["stop"]),
366
- onBlur: blurHandler,
367
- onFocus: focusHandler,
368
- onCompositionstart: _cache[0] || (_cache[0] = //@ts-ignore
369
- (...args) => unref(compositionStartHandler) && unref(compositionStartHandler)(...args)),
370
- onCompositionend: _cache[1] || (_cache[1] = //@ts-ignore
371
- (...args) => unref(compositionUpdateHandler) && unref(compositionUpdateHandler)(...args))
372
- }, null, 40, _hoisted_2),
373
- showClose.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
374
- hoverFlag.value && !!unref(inputValue) ? (openBlock(), createBlock(unref(TimesCircleSolid), {
375
- key: 0,
376
- class: "px-input-icon",
377
- onClick: clearHandler
378
- })) : (openBlock(), createElementBlock("div", _hoisted_4))
379
- ])) : createCommentVNode("v-if", true),
380
- props.password ? (openBlock(), createElementBlock("div", _hoisted_5, [
381
- !showPassword.value ? (openBlock(), createBlock(unref(Eye), {
382
- key: 0,
383
- class: "px-input-icon",
384
- onClick: toggleShowPassword
385
- })) : (openBlock(), createBlock(unref(EyeCross), {
386
- key: 1,
387
- class: "px-input-icon",
388
- onClick: toggleShowPassword
389
- }))
390
- ])) : createCommentVNode("v-if", true),
391
- props.showCount ? (openBlock(), createElementBlock("div", _hoisted_6, [
392
- renderSlot(_ctx.$slots, "count", {
393
- value: unref(inputValue),
394
- count: currentLength.value,
395
- maxLength: props.maxLength
396
- }, () => [
397
- createElementVNode(
398
- "span",
399
- null,
400
- toDisplayString(currentLength.value) + toDisplayString(unref(N)(props.maxLength) ? "" : " / " + props.maxLength),
401
- 1
402
- /* TEXT */
403
- )
404
- ])
405
- ])) : createCommentVNode("v-if", true),
406
- props.loading ? (openBlock(), createElementBlock("div", _hoisted_7, [
407
- createVNode(unref(SpinnerThirdSolid), { class: "px-input-icon px-animation__loading" })
408
- ])) : createCommentVNode("v-if", true),
409
- unref(slots).suffix ? (openBlock(), createElementBlock("div", _hoisted_8, [
410
- renderSlot(_ctx.$slots, "suffix")
411
- ])) : createCommentVNode("v-if", true),
412
- createElementVNode(
413
- "canvas",
414
- {
415
- class: "px-input-canvas",
416
- ref_key: "canvasRef",
417
- ref: canvasRef
418
- },
419
- null,
420
- 512
421
- /* NEED_PATCH */
422
- )
423
- ],
424
- 34
425
- /* CLASS, NEED_HYDRATION */
426
- );
427
- };
428
- }
53
+ var input_default = /* @__PURE__ */ defineComponent({
54
+ name: "Input",
55
+ __name: "index",
56
+ props: {
57
+ modelValue: null,
58
+ defaultValue: null,
59
+ placeholder: null,
60
+ password: {
61
+ type: Boolean,
62
+ default: false
63
+ },
64
+ disabled: {
65
+ type: Boolean,
66
+ default: false
67
+ },
68
+ readonly: {
69
+ type: Boolean,
70
+ default: false
71
+ },
72
+ clearable: {
73
+ type: Boolean,
74
+ default: false
75
+ },
76
+ loading: {
77
+ type: Boolean,
78
+ default: false
79
+ },
80
+ size: null,
81
+ shape: null,
82
+ borderRadius: null,
83
+ maxLength: null,
84
+ showCount: {
85
+ type: Boolean,
86
+ default: false
87
+ },
88
+ countGraphemes: { type: Function },
89
+ sliceGraphemes: { type: Function },
90
+ status: { default: "normal" },
91
+ autofocus: { type: Boolean },
92
+ nativeType: null
93
+ },
94
+ emits: [
95
+ "input",
96
+ "update:modelValue",
97
+ "change",
98
+ "clear",
99
+ "blur",
100
+ "focus"
101
+ ],
102
+ setup(__props, { expose: __expose, emit: __emit }) {
103
+ var _instance$parent;
104
+ const props = __props;
105
+ const emits = __emit;
106
+ const [isComposing, compositionStartHandler, compositionUpdateHandler] = useComposition({ afterComposition: (e) => {
107
+ nextTick(() => {
108
+ inputHandler(e);
109
+ });
110
+ } });
111
+ const instance = getCurrentInstance();
112
+ const innerInputGroup = ref((instance === null || instance === void 0 || (_instance$parent = instance.parent) === null || _instance$parent === void 0 ? void 0 : _instance$parent.type.name) === "InputGroup");
113
+ const [index, first, last] = innerInputGroup.value ? useIndexOfChildren(INPUT_GROUP_UPDATE) : [
114
+ ref(0),
115
+ ref(false),
116
+ ref(false)
117
+ ];
118
+ const inputGroupProvide = inject(INPUT_GROUP_PROVIDE);
119
+ const formItemProvide = inject(FORM_ITEM_PROVIDE);
120
+ const borderRadiusComputed = createProvideComputed("borderRadius", () => [innerInputGroup.value && inputGroupProvide, props]);
121
+ const sizeComputed = createProvideComputed("size", () => [
122
+ innerInputGroup.value && inputGroupProvide,
123
+ props.size && props,
124
+ formItemProvide,
125
+ props
126
+ ], "nullish", (val) => val || "medium");
127
+ const shapeComputed = createProvideComputed("shape", () => [innerInputGroup.value && inputGroupProvide, props], "nullish", (val) => val || "rect");
128
+ const disabledComputed = createProvideComputed("disabled", () => [
129
+ innerInputGroup.value && inputGroupProvide,
130
+ formItemProvide,
131
+ props
132
+ ], "or");
133
+ const readonlyComputed = createProvideComputed("readonly", () => [
134
+ innerInputGroup.value && inputGroupProvide,
135
+ formItemProvide,
136
+ props
137
+ ], "or");
138
+ const statusComputed = createProvideComputed("status", () => [formItemProvide, props]);
139
+ const nextIsTextButton = computed(() => {
140
+ if (index.value >= 0) {
141
+ var _inputGroupProvide$ch;
142
+ return innerInputGroup.value ? !!((inputGroupProvide === null || inputGroupProvide === void 0 || (_inputGroupProvide$ch = inputGroupProvide.childrenInfo.value.find((e) => e.index === index.value + 1)) === null || _inputGroupProvide$ch === void 0 ? void 0 : _inputGroupProvide$ch.variant) === "text") : false;
143
+ } else return false;
144
+ });
145
+ const [inputValue, updateInputValue] = useControlledMode("modelValue", props, emits, {
146
+ defaultField: "defaultValue",
147
+ transform: (nextValue) => {
148
+ return nextValue || "";
149
+ }
150
+ });
151
+ const wrapperRef = shallowRef(null);
152
+ const canvasRef = shallowRef(null);
153
+ const inputRef = shallowRef(null);
154
+ const currentLength = computed(() => {
155
+ return props.countGraphemes ? props.countGraphemes(inputValue.value) : inputValue.value.length;
156
+ });
157
+ const inputHandler = async (e) => {
158
+ let newValue = e.target.value;
159
+ inputValue.value = newValue;
160
+ if (isComposing.value) return;
161
+ emits("input", newValue, e);
162
+ if (props.maxLength) if (props.countGraphemes && props.sliceGraphemes) {
163
+ await nextTick();
164
+ newValue = props.sliceGraphemes(inputValue.value, props.maxLength);
165
+ } else newValue = inputValue.value.slice(0, props.maxLength);
166
+ updateInputValue(newValue);
167
+ formItemProvide === null || formItemProvide === void 0 || formItemProvide.inputHandler();
168
+ };
169
+ const clearHandler = async () => {
170
+ await updateInputValue("");
171
+ emits("change", "");
172
+ emits("clear", "");
173
+ formItemProvide === null || formItemProvide === void 0 || formItemProvide.changeHandler();
174
+ };
175
+ const changeHandler = (e) => {
176
+ const target = e.target;
177
+ emits("change", target.value, e);
178
+ formItemProvide === null || formItemProvide === void 0 || formItemProvide.changeHandler();
179
+ };
180
+ const focusMode = ref(false);
181
+ const blurHandler = (e) => {
182
+ focusMode.value = false;
183
+ emits("blur", e);
184
+ formItemProvide === null || formItemProvide === void 0 || formItemProvide.blurHandler();
185
+ };
186
+ const focusHandler = (e) => {
187
+ focusMode.value = true;
188
+ emits("focus", e);
189
+ };
190
+ const focusInputHandler = () => {
191
+ var _inputRef$value;
192
+ (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
193
+ };
194
+ const hoverFlag = ref(false);
195
+ const mouseenterHandler = () => {
196
+ hoverFlag.value = true;
197
+ };
198
+ const mouseleaveHandler = () => {
199
+ hoverFlag.value = false;
200
+ };
201
+ const showClose = computed(() => {
202
+ return props.clearable && !disabledComputed.value && !readonlyComputed.value;
203
+ });
204
+ const showPassword = ref(false);
205
+ const toggleShowPassword = () => {
206
+ showPassword.value = !showPassword.value;
207
+ };
208
+ const typeComputed = computed(() => {
209
+ if (props.nativeType) return props.nativeType;
210
+ if (props.password) return showPassword.value ? "text" : "password";
211
+ return "text";
212
+ });
213
+ const slots = useSlots();
214
+ __expose({
215
+ focus: () => {
216
+ var _inputRef$value2;
217
+ (_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.focus();
218
+ },
219
+ blur: () => {
220
+ var _inputRef$value3;
221
+ (_inputRef$value3 = inputRef.value) === null || _inputRef$value3 === void 0 || _inputRef$value3.blur();
222
+ },
223
+ clear: () => clearHandler(),
224
+ select: () => {
225
+ var _inputRef$value4;
226
+ (_inputRef$value4 = inputRef.value) === null || _inputRef$value4 === void 0 || _inputRef$value4.select();
227
+ }
228
+ });
229
+ watch([
230
+ first,
231
+ last,
232
+ borderRadiusComputed,
233
+ shapeComputed,
234
+ sizeComputed,
235
+ readonlyComputed,
236
+ disabledComputed,
237
+ () => slots,
238
+ useDarkMode(),
239
+ focusMode,
240
+ hoverFlag,
241
+ statusComputed,
242
+ nextIsTextButton
243
+ ], () => {
244
+ drawPixel();
245
+ });
246
+ const drawPixel = () => {
247
+ const preprocessData = canvasPreprocess(wrapperRef, canvasRef);
248
+ if (!preprocessData) return;
249
+ const { ctx, width, height, canvas } = preprocessData;
250
+ const pixelSize = calcPixelSize();
251
+ const borderRadius = getBorderRadius(canvas, pixelSize, borderRadiusComputed.value, shapeComputed.value, sizeComputed.value || "medium", innerInputGroup.value, first.value, last.value);
252
+ const borderColor = statusComputed.value !== "normal" ? getGlobalThemeColor(statusComputed.value === "error" ? "danger" : statusComputed.value, 6) : (hoverFlag.value || focusMode.value) && !disabledComputed.value && !readonlyComputed.value ? getGlobalThemeColor("primary", 6) : getGlobalThemeColor("neutral", 10);
253
+ const center = calcBorderCornerCenter(borderRadius, width, height, pixelSize);
254
+ const rad = BORDER_CORNER_RAD_RANGE;
255
+ if (borderColor) drawBorder(ctx, width, height, center, borderRadius, rad, borderColor, pixelSize, innerInputGroup.value, first.value, last.value, nextIsTextButton.value);
256
+ const backgroundColor = disabledComputed.value ? getGlobalThemeColor("neutral", 6) : getGlobalThemeColor("neutral", 1);
257
+ if (backgroundColor) floodFill(ctx, Math.round(width / 2), Math.round(height / 2), backgroundColor);
258
+ };
259
+ onMounted(() => {
260
+ nextTick(() => {
261
+ drawPixel();
262
+ });
263
+ });
264
+ useResizeObserver(wrapperRef, drawPixel);
265
+ useWatchGlobalCssVal(drawPixel);
266
+ useTransitionEnd(wrapperRef, drawPixel);
267
+ return (_ctx, _cache) => {
268
+ return openBlock(), createElementBlock("div", {
269
+ class: normalizeClass(["pixelium px-input", {
270
+ [`px-input__${unref(sizeComputed)}`]: !!unref(sizeComputed),
271
+ [`px-input__${unref(shapeComputed)}`]: !!unref(shapeComputed),
272
+ "px-input__inner": innerInputGroup.value,
273
+ "px-input__disabled": !!unref(disabledComputed)
274
+ }]),
275
+ ref_key: "wrapperRef",
276
+ ref: wrapperRef,
277
+ onClick: focusInputHandler,
278
+ onMouseenter: mouseenterHandler,
279
+ onMouseleave: mouseleaveHandler,
280
+ onFocusout: blurHandler,
281
+ onFocusin: focusHandler
282
+ }, [
283
+ unref(slots).prefix ? (openBlock(), createElementBlock("div", _hoisted_1, [renderSlot(_ctx.$slots, "prefix")])) : createCommentVNode("v-if", true),
284
+ createElementVNode("input", {
285
+ class: "px-input-inner",
286
+ value: unref(inputValue),
287
+ ref_key: "inputRef",
288
+ ref: inputRef,
289
+ placeholder: props.placeholder,
290
+ disabled: unref(disabledComputed) || unref(readonlyComputed),
291
+ autofocus: __props.autofocus,
292
+ type: typeComputed.value,
293
+ onInput: withModifiers(inputHandler, ["stop"]),
294
+ onChange: withModifiers(changeHandler, ["stop"]),
295
+ onCompositionstart: _cache[0] || (_cache[0] = (...args) => unref(compositionStartHandler) && unref(compositionStartHandler)(...args)),
296
+ onCompositionend: _cache[1] || (_cache[1] = (...args) => unref(compositionUpdateHandler) && unref(compositionUpdateHandler)(...args))
297
+ }, null, 40, _hoisted_2),
298
+ showClose.value ? (openBlock(), createElementBlock("div", _hoisted_3, [hoverFlag.value && !!unref(inputValue) ? (openBlock(), createBlock(unref(times_circle_solid_default), {
299
+ key: 0,
300
+ class: "px-input-icon",
301
+ onClick: clearHandler
302
+ })) : (openBlock(), createElementBlock("div", _hoisted_4))])) : createCommentVNode("v-if", true),
303
+ props.password ? (openBlock(), createElementBlock("div", _hoisted_5, [!showPassword.value ? (openBlock(), createBlock(unref(eye_default), {
304
+ key: 0,
305
+ class: "px-input-icon",
306
+ onClick: toggleShowPassword
307
+ })) : (openBlock(), createBlock(unref(eye_cross_default), {
308
+ key: 1,
309
+ class: "px-input-icon",
310
+ onClick: toggleShowPassword
311
+ }))])) : createCommentVNode("v-if", true),
312
+ props.showCount ? (openBlock(), createElementBlock("div", _hoisted_6, [renderSlot(_ctx.$slots, "count", {
313
+ value: unref(inputValue),
314
+ count: currentLength.value,
315
+ maxLength: props.maxLength
316
+ }, () => [createElementVNode("span", null, toDisplayString(currentLength.value) + toDisplayString(unref(E)(props.maxLength) ? "" : " / " + props.maxLength), 1)])])) : createCommentVNode("v-if", true),
317
+ props.loading ? (openBlock(), createElementBlock("div", _hoisted_7, [createVNode(unref(spinner_third_solid_default), { class: "px-input-icon px-animation__loading" })])) : createCommentVNode("v-if", true),
318
+ unref(slots).suffix ? (openBlock(), createElementBlock("div", _hoisted_8, [renderSlot(_ctx.$slots, "suffix")])) : createCommentVNode("v-if", true),
319
+ createElementVNode("canvas", {
320
+ class: "px-input-canvas",
321
+ ref_key: "canvasRef",
322
+ ref: canvasRef
323
+ }, null, 512)
324
+ ], 34);
325
+ };
326
+ }
429
327
  });
430
- export {
431
- _sfc_main as _
432
- };
328
+ export { input_default as t };