kui-vue 6.3.0 → 6.4.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 (446) hide show
  1. package/ai/kui-components.json +376 -7
  2. package/dist/index.js +2 -2
  3. package/es/index.js +1008 -479
  4. package/es/locale/de.js +2 -3
  5. package/es/locale/el.js +2 -3
  6. package/es/locale/en.js +2 -3
  7. package/es/locale/fr.js +2 -3
  8. package/es/locale/it.js +2 -3
  9. package/es/locale/ja.js +2 -3
  10. package/es/locale/ko.js +2 -3
  11. package/es/locale/ru.js +2 -3
  12. package/es/locale/th.js +2 -3
  13. package/es/locale/uk.js +2 -3
  14. package/es/locale/vi.js +2 -3
  15. package/es/locale/zh-CN.js +2 -3
  16. package/es/locale/zh-TW.js +2 -3
  17. package/lib/index.cjs +2 -2
  18. package/lib/locale/de.cjs +1 -1
  19. package/lib/locale/el.cjs +1 -1
  20. package/lib/locale/en.cjs +1 -1
  21. package/lib/locale/fr.cjs +1 -1
  22. package/lib/locale/it.cjs +1 -1
  23. package/lib/locale/ja.cjs +1 -1
  24. package/lib/locale/ko.cjs +1 -1
  25. package/lib/locale/ru.cjs +1 -1
  26. package/lib/locale/th.cjs +1 -1
  27. package/lib/locale/uk.cjs +1 -1
  28. package/lib/locale/vi.cjs +1 -1
  29. package/lib/locale/zh-CN.cjs +1 -1
  30. package/lib/locale/zh-TW.cjs +1 -1
  31. package/package.json +24 -24
  32. package/style/base.css +1 -1
  33. package/style/components.css +2 -2
  34. package/style/index.css +2 -2
  35. package/style/motion.css +1 -1
  36. package/style/theme.css +1 -1
  37. package/types/affix/index.d.cts +42 -0
  38. package/types/alert/index.d.cts +84 -0
  39. package/types/alert/index.d.ts +2 -2
  40. package/types/anchor/anchor-link.d.cts +23 -0
  41. package/types/anchor/anchor.d.cts +58 -0
  42. package/types/anchor/anchor.d.ts +1 -1
  43. package/types/anchor/context.d.cts +8 -0
  44. package/types/anchor/index.d.cts +5 -0
  45. package/types/anchor/index.d.ts +4 -4
  46. package/types/auto-complete/index.d.cts +181 -0
  47. package/types/auto-complete/index.d.ts +1 -1
  48. package/types/avatar/avatar-group.d.cts +42 -0
  49. package/types/avatar/avatar-group.d.ts +1 -1
  50. package/types/avatar/avatar.d.cts +49 -0
  51. package/types/avatar/avatar.d.ts +2 -2
  52. package/types/avatar/context.d.cts +8 -0
  53. package/types/avatar/index.d.cts +5 -0
  54. package/types/avatar/index.d.ts +4 -4
  55. package/types/back-top/index.d.cts +60 -0
  56. package/types/badge/index.d.cts +45 -0
  57. package/types/badge/index.d.ts +2 -2
  58. package/types/base/transition.d.cts +3 -0
  59. package/types/breadcrumb/breadcrumb-item.d.cts +25 -0
  60. package/types/breadcrumb/breadcrumb-item.d.ts +1 -1
  61. package/types/breadcrumb/breadcrumb.d.cts +22 -0
  62. package/types/breadcrumb/index.d.cts +5 -0
  63. package/types/breadcrumb/index.d.ts +4 -4
  64. package/types/button/button-group.d.cts +21 -0
  65. package/types/button/button-group.d.ts +1 -1
  66. package/types/button/button.d.cts +38 -0
  67. package/types/button/button.d.ts +2 -2
  68. package/types/button/index.d.cts +5 -0
  69. package/types/button/index.d.ts +4 -4
  70. package/types/calendar/index.d.cts +93 -0
  71. package/types/card/card-meta.d.cts +17 -0
  72. package/types/card/index.d.cts +76 -0
  73. package/types/card/index.d.ts +4 -4
  74. package/types/carousel/carousel-item.d.cts +2 -0
  75. package/types/carousel/carousel.d.cts +116 -0
  76. package/types/carousel/carousel.d.ts +1 -1
  77. package/types/carousel/drag.d.cts +19 -0
  78. package/types/carousel/index.d.cts +4 -0
  79. package/types/carousel/index.d.ts +3 -3
  80. package/types/cascader/index.d.cts +151 -0
  81. package/types/cascader/index.d.ts +23 -23
  82. package/types/cascader/types.d.cts +76 -0
  83. package/types/cascader/types.d.ts +2 -2
  84. package/types/check-card/check-card-group.d.cts +80 -0
  85. package/types/check-card/check-card-group.d.ts +2 -2
  86. package/types/check-card/check-card.d.cts +113 -0
  87. package/types/check-card/check-card.d.ts +3 -3
  88. package/types/check-card/context.d.cts +20 -0
  89. package/types/check-card/context.d.ts +2 -2
  90. package/types/check-card/index.d.cts +7 -0
  91. package/types/check-card/index.d.ts +5 -5
  92. package/types/check-card/types.d.cts +22 -0
  93. package/types/check-card/types.d.ts +2 -2
  94. package/types/checkbox/checkbox-group.d.cts +87 -0
  95. package/types/checkbox/checkbox-group.d.ts +2 -2
  96. package/types/checkbox/checkbox.d.cts +68 -0
  97. package/types/checkbox/checkbox.d.ts +2 -2
  98. package/types/checkbox/index.d.cts +7 -0
  99. package/types/checkbox/index.d.ts +5 -5
  100. package/types/checkbox/types.d.cts +12 -0
  101. package/types/collapse/collapse-panel.d.cts +21 -0
  102. package/types/collapse/collapse-panel.d.ts +1 -1
  103. package/types/collapse/collapse.d.cts +62 -0
  104. package/types/collapse/collapse.d.ts +2 -2
  105. package/types/collapse/context.d.cts +7 -0
  106. package/types/collapse/index.d.cts +6 -0
  107. package/types/collapse/index.d.ts +4 -4
  108. package/types/color-picker/alpha.d.cts +22 -0
  109. package/types/color-picker/hue.d.cts +21 -0
  110. package/types/color-picker/index.d.cts +233 -0
  111. package/types/color-picker/index.d.ts +9 -4
  112. package/types/color-picker/mode.d.cts +28 -0
  113. package/types/color-picker/mode.d.ts +2 -2
  114. package/types/color-picker/paint.d.cts +40 -0
  115. package/types/color-picker/presets.d.cts +22 -0
  116. package/types/color-picker/types.d.cts +1 -0
  117. package/types/components.d.cts +169 -0
  118. package/types/components.d.ts +169 -166
  119. package/types/config/context.d.cts +128 -0
  120. package/types/config/context.d.ts +1 -1
  121. package/types/config/index.d.cts +38 -0
  122. package/types/config/index.d.ts +2 -2
  123. package/types/config/popup-host.d.cts +6 -0
  124. package/types/config/popup.d.cts +4 -0
  125. package/types/const/types.d.cts +39 -0
  126. package/types/const/types.d.ts +1 -1
  127. package/types/const/var.d.cts +6 -0
  128. package/types/date-picker/index.d.cts +334 -0
  129. package/types/date-picker/index.d.ts +3 -3
  130. package/types/descriptions/descriptions-item.d.cts +28 -0
  131. package/types/descriptions/descriptions-item.d.ts +1 -1
  132. package/types/descriptions/descriptions.d.cts +69 -0
  133. package/types/descriptions/descriptions.d.ts +1 -1
  134. package/types/descriptions/index.d.cts +6 -0
  135. package/types/descriptions/index.d.ts +4 -4
  136. package/types/directives/outsiteclick.d.cts +2 -0
  137. package/types/directives/resize.d.cts +3 -0
  138. package/types/directives/scroll.d.cts +2 -0
  139. package/types/divider/index.d.cts +42 -0
  140. package/types/divider/index.d.ts +1 -1
  141. package/types/drawer/index.d.cts +197 -0
  142. package/types/drawer/index.d.ts +1 -1
  143. package/types/dropdown/dropdown-button.d.cts +65 -0
  144. package/types/dropdown/dropdown-button.d.ts +2 -2
  145. package/types/dropdown/dropdown-context.d.cts +16 -0
  146. package/types/dropdown/dropdown.d.cts +80 -0
  147. package/types/dropdown/dropdown.d.ts +1 -1
  148. package/types/dropdown/index.d.cts +6 -0
  149. package/types/dropdown/index.d.ts +4 -4
  150. package/types/dropdown/trigger.d.cts +13 -0
  151. package/types/dropdown/trigger.d.ts +2 -2
  152. package/types/empty/index.d.cts +12 -0
  153. package/types/feature-card/index.d.cts +101 -0
  154. package/types/feature-card/index.d.ts +2 -2
  155. package/types/feedback-panel/feedback-panel.d.cts +64 -0
  156. package/types/feedback-panel/feedback-panel.d.ts +3 -3
  157. package/types/feedback-panel/index.d.cts +4 -0
  158. package/types/feedback-panel/index.d.ts +3 -3
  159. package/types/flame-wrap/engine.d.cts +83 -0
  160. package/types/flame-wrap/index.d.cts +81 -0
  161. package/types/flame-wrap/index.d.ts +1 -1
  162. package/types/flex/index.d.cts +44 -0
  163. package/types/flex/index.d.ts +3 -3
  164. package/types/flex/types.d.cts +4 -0
  165. package/types/flex/types.d.ts +1 -1
  166. package/types/form/context.d.cts +68 -0
  167. package/types/form/context.d.ts +2 -2
  168. package/types/form/form-item.d.cts +39 -0
  169. package/types/form/form-item.d.ts +2 -2
  170. package/types/form/form.d.cts +87 -0
  171. package/types/form/form.d.ts +2 -2
  172. package/types/form/index.d.cts +8 -0
  173. package/types/form/index.d.ts +6 -6
  174. package/types/form/types.d.cts +27 -0
  175. package/types/global.d.cts +532 -0
  176. package/types/global.d.ts +16 -0
  177. package/types/gradient-picker/corners.d.cts +39 -0
  178. package/types/gradient-picker/corners.d.ts +39 -0
  179. package/types/gradient-picker/index.d.cts +87 -0
  180. package/types/gradient-picker/index.d.ts +87 -0
  181. package/types/gradient-picker/stops.d.cts +39 -0
  182. package/types/gradient-picker/stops.d.ts +39 -0
  183. package/types/gradient-picker/types.d.cts +34 -0
  184. package/types/gradient-picker/types.d.ts +34 -0
  185. package/types/grid/grid-item.d.cts +25 -0
  186. package/types/grid/grid-item.d.ts +1 -1
  187. package/types/grid/grid.d.cts +44 -0
  188. package/types/grid/grid.d.ts +2 -2
  189. package/types/grid/index.d.cts +6 -0
  190. package/types/grid/index.d.ts +5 -5
  191. package/types/grid/useBreakpoint.d.cts +9 -0
  192. package/types/icon/index.d.cts +62 -0
  193. package/types/icon/index.d.ts +3 -3
  194. package/types/icon/types.d.cts +4 -0
  195. package/types/image/context.d.cts +9 -0
  196. package/types/image/context.d.ts +1 -1
  197. package/types/image/group.d.cts +11 -0
  198. package/types/image/image.d.cts +73 -0
  199. package/types/image/image.d.ts +2 -2
  200. package/types/image/index.d.cts +6 -0
  201. package/types/image/index.d.ts +5 -5
  202. package/types/image/instance.d.cts +17 -0
  203. package/types/image/instance.d.ts +1 -1
  204. package/types/image/preview.d.cts +47 -0
  205. package/types/image/preview.d.ts +1 -1
  206. package/types/image/utils.d.cts +6 -0
  207. package/types/index.d.cts +1 -1
  208. package/types/index.d.ts +1 -1
  209. package/types/input/index.d.cts +8 -0
  210. package/types/input/index.d.ts +6 -6
  211. package/types/input/input-base.d.cts +186 -0
  212. package/types/input/input-base.d.ts +2 -2
  213. package/types/input/input-box.d.cts +47 -0
  214. package/types/input/input-box.d.ts +1 -1
  215. package/types/input/input-group.d.cts +54 -0
  216. package/types/input/input-group.d.ts +1 -1
  217. package/types/input/input.d.cts +114 -0
  218. package/types/input/input.d.ts +19 -19
  219. package/types/input/textarea.d.cts +81 -0
  220. package/types/input/textarea.d.ts +1 -1
  221. package/types/input-number/drag.d.cts +9 -0
  222. package/types/input-number/drag.d.ts +9 -0
  223. package/types/input-number/index.d.cts +193 -0
  224. package/types/input-number/index.d.ts +15 -2
  225. package/types/input-otp/index.d.cts +4 -0
  226. package/types/input-otp/index.d.ts +3 -3
  227. package/types/input-otp/input-otp.d.cts +113 -0
  228. package/types/input-otp/input-otp.d.ts +3 -3
  229. package/types/input-otp/types.d.cts +1 -0
  230. package/types/input-tag/index.d.cts +118 -0
  231. package/types/input-tag/index.d.ts +1 -1
  232. package/types/kanban/index.d.cts +124 -0
  233. package/types/kanban/index.d.ts +1 -1
  234. package/types/layout/index.d.cts +136 -0
  235. package/types/layout/index.d.ts +1 -1
  236. package/types/list-panel/index.d.cts +79 -0
  237. package/types/list-panel/index.d.ts +3 -3
  238. package/types/loading/index.d.cts +11 -0
  239. package/types/mentions/index.d.cts +167 -0
  240. package/types/mentions/index.d.ts +1 -1
  241. package/types/menu/index.d.cts +8 -0
  242. package/types/menu/index.d.ts +6 -6
  243. package/types/menu/menu-context.d.cts +23 -0
  244. package/types/menu/menu-context.d.ts +1 -1
  245. package/types/menu/menu-divider.d.cts +2 -0
  246. package/types/menu/menu-group.d.cts +11 -0
  247. package/types/menu/menu-item.d.cts +23 -0
  248. package/types/menu/menu-item.d.ts +2 -2
  249. package/types/menu/menu-keyboard.d.cts +30 -0
  250. package/types/menu/menu.d.cts +99 -0
  251. package/types/menu/menu.d.ts +3 -3
  252. package/types/menu/recursive-menu.d.cts +14 -0
  253. package/types/menu/recursive-menu.d.ts +1 -1
  254. package/types/menu/sub-menu.d.cts +19 -0
  255. package/types/menu/sub-menu.d.ts +2 -2
  256. package/types/menu/types.d.cts +14 -0
  257. package/types/menu/types.d.ts +1 -1
  258. package/types/message/index.d.cts +26 -0
  259. package/types/message/index.d.ts +2 -2
  260. package/types/modal/index.d.cts +38 -0
  261. package/types/modal/index.d.ts +3 -3
  262. package/types/modal/modal.d.cts +178 -0
  263. package/types/modal/modal.d.ts +2 -2
  264. package/types/modal/toast.d.cts +37 -0
  265. package/types/modal/toast.d.ts +2 -2
  266. package/types/notice/container.d.cts +6 -0
  267. package/types/notice/content.d.cts +64 -0
  268. package/types/notice/content.d.ts +3 -3
  269. package/types/notice/index.d.cts +24 -0
  270. package/types/notice/index.d.ts +2 -2
  271. package/types/notice/instance.d.cts +8 -0
  272. package/types/notice/instance.d.ts +1 -1
  273. package/types/page/index.d.cts +143 -0
  274. package/types/page/index.d.ts +1 -1
  275. package/types/page/responsive.d.cts +1 -0
  276. package/types/page-header/index.d.cts +14 -0
  277. package/types/popconfirm/index.d.cts +85 -0
  278. package/types/popconfirm/index.d.ts +5 -2
  279. package/types/poptip/index.d.cts +83 -0
  280. package/types/poptip/index.d.ts +5 -2
  281. package/types/popup/index.d.cts +255 -0
  282. package/types/popup/index.d.ts +7 -3
  283. package/types/popup/layers.d.cts +11 -0
  284. package/types/popup/types.d.cts +15 -0
  285. package/types/progress/index.d.cts +123 -0
  286. package/types/progress/index.d.ts +2 -2
  287. package/types/qrcode/index.d.cts +195 -0
  288. package/types/qrcode/index.d.ts +2 -2
  289. package/types/radio/index.d.cts +9 -0
  290. package/types/radio/index.d.ts +8 -8
  291. package/types/radio/radio-button.d.cts +84 -0
  292. package/types/radio/radio-button.d.ts +3 -3
  293. package/types/radio/radio-group.d.cts +36 -0
  294. package/types/radio/radio-group.d.ts +2 -2
  295. package/types/radio/radio.d.cts +84 -0
  296. package/types/radio/radio.d.ts +2 -2
  297. package/types/radio/types.d.cts +12 -0
  298. package/types/radio/types.d.ts +1 -1
  299. package/types/rate/index.d.cts +102 -0
  300. package/types/rate/index.d.ts +2 -2
  301. package/types/rate/star.d.cts +70 -0
  302. package/types/rate/star.d.ts +2 -2
  303. package/types/result/index.d.cts +4 -0
  304. package/types/result/index.d.ts +3 -3
  305. package/types/result/result.d.cts +34 -0
  306. package/types/result/result.d.ts +3 -3
  307. package/types/ripple/engine.d.cts +66 -0
  308. package/types/ripple/index.d.cts +42 -0
  309. package/types/ripple/index.d.ts +1 -1
  310. package/types/row-col/col.d.cts +52 -0
  311. package/types/row-col/index.d.cts +5 -0
  312. package/types/row-col/index.d.ts +4 -4
  313. package/types/row-col/row.d.cts +38 -0
  314. package/types/segmented/index.d.cts +49 -0
  315. package/types/segmented/index.d.ts +4 -3
  316. package/types/select/index.d.cts +6 -0
  317. package/types/select/index.d.ts +5 -5
  318. package/types/select/option.d.cts +53 -0
  319. package/types/select/option.d.ts +3 -3
  320. package/types/select/select.d.cts +81 -0
  321. package/types/select/select.d.ts +4 -4
  322. package/types/select/types.d.cts +12 -0
  323. package/types/skeleton/index.d.cts +11 -0
  324. package/types/skeleton/index.d.ts +10 -10
  325. package/types/skeleton/skeleton-avatar.d.cts +27 -0
  326. package/types/skeleton/skeleton-avatar.d.ts +9 -9
  327. package/types/skeleton/skeleton-button.d.cts +29 -0
  328. package/types/skeleton/skeleton-button.d.ts +11 -11
  329. package/types/skeleton/skeleton-image.d.cts +25 -0
  330. package/types/skeleton/skeleton-image.d.ts +5 -5
  331. package/types/skeleton/skeleton-text.d.cts +25 -0
  332. package/types/skeleton/skeleton-text.d.ts +7 -7
  333. package/types/skeleton/skeleton.d.cts +53 -0
  334. package/types/skeleton/skeleton.d.ts +9 -9
  335. package/types/skeleton/types.d.cts +71 -0
  336. package/types/skeleton/types.d.ts +1 -1
  337. package/types/skeleton/use-skeleton-loading.d.cts +2 -0
  338. package/types/slider/index.d.cts +66 -0
  339. package/types/slider/index.d.ts +1 -1
  340. package/types/slider/thumb.d.cts +70 -0
  341. package/types/slider/thumb.d.ts +1 -1
  342. package/types/space/index.d.cts +54 -0
  343. package/types/space/index.d.ts +1 -1
  344. package/types/spin/index.d.cts +71 -0
  345. package/types/spin/index.d.ts +1 -1
  346. package/types/splitter/index.d.cts +4 -0
  347. package/types/splitter/index.d.ts +2 -2
  348. package/types/splitter/splitter-panel.d.cts +35 -0
  349. package/types/splitter/splitter.d.cts +31 -0
  350. package/types/splitter/splitter.d.ts +1 -1
  351. package/types/stat-card/countup.d.cts +56 -0
  352. package/types/stat-card/index.d.cts +6 -0
  353. package/types/stat-card/index.d.ts +5 -5
  354. package/types/stat-card/rollup.d.cts +34 -0
  355. package/types/stat-card/stat-card.d.cts +120 -0
  356. package/types/stat-card/stat-card.d.ts +3 -3
  357. package/types/stat-card/stat-number.d.cts +110 -0
  358. package/types/stat-card/stat-number.d.ts +1 -1
  359. package/types/stat-card/types.d.cts +15 -0
  360. package/types/stat-card/utils/countup.d.cts +128 -0
  361. package/types/stat-card/utils/odometer.d.cts +17 -0
  362. package/types/stat-card/utils/odometer.d.ts +1 -1
  363. package/types/stat-card/utils/stat-item-key.d.cts +11 -0
  364. package/types/steps/index.d.cts +86 -0
  365. package/types/switch/index.d.cts +63 -0
  366. package/types/switch/index.d.ts +1 -1
  367. package/types/table/column-setting.d.cts +78 -0
  368. package/types/table/column-setting.d.ts +2 -2
  369. package/types/table/index.d.cts +262 -0
  370. package/types/table/index.d.ts +5 -5
  371. package/types/table/types.d.cts +39 -0
  372. package/types/table/utils.d.cts +89 -0
  373. package/types/table/utils.d.ts +1 -1
  374. package/types/tabs/index.d.cts +6 -0
  375. package/types/tabs/index.d.ts +5 -5
  376. package/types/tabs/tab-panel.d.cts +22 -0
  377. package/types/tabs/tab-panel.d.ts +2 -2
  378. package/types/tabs/tabs.d.cts +51 -0
  379. package/types/tabs/tabs.d.ts +1 -1
  380. package/types/tabs/types.d.cts +16 -0
  381. package/types/tabs/types.d.ts +1 -1
  382. package/types/tag/index.d.cts +58 -0
  383. package/types/tag/index.d.ts +2 -2
  384. package/types/time-line/index.d.cts +6 -0
  385. package/types/time-line/index.d.ts +5 -5
  386. package/types/time-line/timeline-item.d.cts +21 -0
  387. package/types/time-line/timeline-item.d.ts +1 -1
  388. package/types/time-line/timeline.d.cts +27 -0
  389. package/types/time-line/timeline.d.ts +2 -2
  390. package/types/tooltip/index.d.cts +79 -0
  391. package/types/tooltip/index.d.ts +5 -2
  392. package/types/tour/index.d.cts +122 -0
  393. package/types/transfer/index.d.cts +129 -0
  394. package/types/transfer/index.d.ts +1 -1
  395. package/types/tree/context.d.cts +6 -0
  396. package/types/tree/index.d.cts +166 -0
  397. package/types/tree/index.d.ts +5 -5
  398. package/types/tree/types.d.cts +27 -0
  399. package/types/tree/types.d.ts +1 -1
  400. package/types/tree/utils.d.cts +33 -0
  401. package/types/tree/utils.d.ts +1 -1
  402. package/types/tree-select/index.d.cts +96 -0
  403. package/types/tree-select/index.d.ts +4 -4
  404. package/types/typography/index.d.cts +316 -0
  405. package/types/upload/file-list.d.cts +101 -0
  406. package/types/upload/file-list.d.ts +3 -3
  407. package/types/upload/index.d.cts +229 -0
  408. package/types/upload/index.d.ts +4 -4
  409. package/types/upload/picture-sort.d.cts +2 -0
  410. package/types/upload/selector.d.cts +82 -0
  411. package/types/upload/selector.d.ts +4 -4
  412. package/types/upload/types.d.cts +39 -0
  413. package/types/upload/types.d.ts +1 -1
  414. package/types/utils/checked.d.cts +2 -0
  415. package/types/utils/checked.d.ts +1 -1
  416. package/types/utils/color.d.cts +14 -0
  417. package/types/utils/css.d.cts +2 -0
  418. package/types/utils/element.d.cts +17 -0
  419. package/types/utils/focus.d.cts +5 -0
  420. package/types/utils/model-value.d.cts +10 -0
  421. package/types/utils/mouse.d.cts +1 -0
  422. package/types/utils/number.d.cts +6 -0
  423. package/types/utils/number.d.ts +1 -1
  424. package/types/utils/overlay-order.d.cts +6 -0
  425. package/types/utils/overlay-stack.d.cts +13 -0
  426. package/types/utils/placement.d.cts +17 -0
  427. package/types/utils/placement.d.ts +2 -1
  428. package/types/utils/popup-arrow.d.cts +5 -0
  429. package/types/utils/popup-arrow.d.ts +5 -0
  430. package/types/utils/popup.d.cts +11 -0
  431. package/types/utils/promise.d.cts +5 -0
  432. package/types/utils/selection-tags.d.cts +18 -0
  433. package/types/utils/selection-tags.d.ts +1 -1
  434. package/types/utils/share.d.cts +12 -0
  435. package/types/utils/theme.d.cts +5 -0
  436. package/types/utils/vnode.d.cts +33 -0
  437. package/types/utils/vue.d.cts +17 -0
  438. package/types/virtual-list/index.d.cts +76 -0
  439. package/types/virtual-list/index.d.ts +1 -1
  440. package/types/virtual-list/range.d.cts +15 -0
  441. package/types/watermark/index.d.cts +188 -0
  442. package/types/watermark/index.d.ts +3 -3
  443. package/types/watermark/types.d.cts +11 -0
  444. package/vetur/attributes.json +212 -4
  445. package/vetur/tags.json +66 -0
  446. package/vetur/web-types.json +337 -5
package/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * kui-vue v6.3.0
2
+ * kui-vue v6.4.0
3
3
  * Copyright 2017-present, kui-vue.
4
4
  * All rights reserved.
5
5
  * Homepage: https://k-ui.cn
@@ -9,14 +9,14 @@
9
9
  import en_default from "./locale/en.js";
10
10
  import { Comment, Fragment, Teleport, Text, Transition, TransitionGroup, cloneVNode, computed, createTextVNode, createVNode, defineComponent, getCurrentInstance, h, inject, isRef, isVNode, mergeProps, nextTick, onBeforeUnmount, onMounted, onUnmounted, onUpdated, provide, reactive, readonly, ref, render, resolveDirective, shallowRef, toRaw, toRefs, useId, vShow, watch, withDirectives } from "vue";
11
11
  import dayjs from "dayjs";
12
- //#region \0rolldown/runtime.js
12
+ // \0rolldown/runtime.js
13
13
  var __create = Object.create;
14
14
  var __defProp = Object.defineProperty;
15
15
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
16
16
  var __getOwnPropNames = Object.getOwnPropertyNames;
17
17
  var __getProtoOf = Object.getPrototypeOf;
18
18
  var __hasOwnProp = Object.prototype.hasOwnProperty;
19
- var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
19
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod, mod.exports), cb = null), mod.exports);
20
20
  var __exportAll = (all, no_symbols) => {
21
21
  let target = {};
22
22
  for (var name in all) __defProp(target, name, {
@@ -40,8 +40,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
40
40
  value: mod,
41
41
  enumerable: true
42
42
  }) : target, mod));
43
- //#endregion
44
- //#region components/affix/index.tsx
43
+ // components/affix/index.tsx
45
44
  var Affix = /* @__PURE__ */ defineComponent({
46
45
  name: "Affix",
47
46
  props: {
@@ -166,8 +165,7 @@ var Affix = /* @__PURE__ */ defineComponent({
166
165
  };
167
166
  }
168
167
  });
169
- //#endregion
170
- //#region components/config/popup.ts
168
+ // components/config/popup.ts
171
169
  var popupContainerKey = Symbol("kui-popup-container");
172
170
  var usePopupContainer = () => {
173
171
  const injected = inject(popupContainerKey, void 0);
@@ -177,8 +175,7 @@ var usePopupContainer = () => {
177
175
  return typeof document !== "undefined" ? document.body : null;
178
176
  };
179
177
  };
180
- //#endregion
181
- //#region components/config/popup-host.ts
178
+ // components/config/popup-host.ts
182
179
  var popupHostKey = Symbol("kui-popup-host");
183
180
  /** Creates an isolated popup scope for components whose overlays are teleported elsewhere. */
184
181
  var providePopupHost = () => {
@@ -202,8 +199,43 @@ var usePopupHost = (close) => {
202
199
  });
203
200
  onBeforeUnmount(() => unregister?.());
204
201
  };
205
- //#endregion
206
- //#region components/utils/placement.ts
202
+ // components/utils/popup-arrow.ts
203
+ var margins = /* @__PURE__ */ new WeakMap();
204
+ /** Measure the painted arrow after placement CSS has been applied, including rotation. */
205
+ function measurePopupArrow(popup, placement, enabled) {
206
+ const arrow = popup.querySelector("[data-popup-arrow]");
207
+ if (!arrow) return;
208
+ const saved = margins.get(arrow);
209
+ if (saved) {
210
+ arrow.style.marginLeft = saved.left;
211
+ arrow.style.marginTop = saved.top;
212
+ }
213
+ if (!enabled) return;
214
+ popup.setAttribute("k-placement", placement);
215
+ const rect = popup.getBoundingClientRect();
216
+ const arrowRect = arrow.getBoundingClientRect();
217
+ const horizontal = placement.startsWith("top") || placement.startsWith("bottom");
218
+ const scale = horizontal ? rect.width / popup.offsetWidth : rect.height / popup.offsetHeight;
219
+ if (!Number.isFinite(scale) || scale <= 0) return;
220
+ const center = horizontal ? (arrowRect.left + arrowRect.width / 2 - rect.left) / scale : (arrowRect.top + arrowRect.height / 2 - rect.top) / scale;
221
+ const half = (horizontal ? arrowRect.width : arrowRect.height) / scale / 2;
222
+ const style = getComputedStyle(arrow);
223
+ const margin = parseFloat(horizontal ? style.marginLeft : style.marginTop) || 0;
224
+ if (!saved) margins.set(arrow, {
225
+ left: arrow.style.marginLeft,
226
+ top: arrow.style.marginTop
227
+ });
228
+ return {
229
+ center,
230
+ shift(target) {
231
+ const size = horizontal ? popup.offsetWidth : popup.offsetHeight;
232
+ const safe = Math.max(half, Math.min(size - half, target));
233
+ if (horizontal) arrow.style.marginLeft = `${margin + safe - center}px`;
234
+ else arrow.style.marginTop = `${margin + safe - center}px`;
235
+ }
236
+ };
237
+ }
238
+ // components/utils/placement.ts
207
239
  var popupAppearanceSources = /* @__PURE__ */ new Map();
208
240
  var popupAppearanceObserver = null;
209
241
  var inheritedAppearanceAttributes = ["theme-mode", "shape-mode"];
@@ -235,7 +267,7 @@ var inheritPopupAppearance = (popup, source) => {
235
267
  subtree: true
236
268
  });
237
269
  };
238
- function setPlacement({ refSelection, refPopper, currentPlacement, position = null, transOrigin, top, left, offset = 3 }) {
270
+ function setPlacement({ refSelection, refPopper, currentPlacement, position = null, transOrigin, top, left, offset = 3, arrowPointAtCenter = false }) {
239
271
  if (!refPopper.value) return;
240
272
  const sourceInstance = refSelection?.value;
241
273
  const sourceElement = sourceInstance?.$el || sourceInstance;
@@ -332,12 +364,24 @@ function setPlacement({ refSelection, refPopper, currentPlacement, position = nu
332
364
  calcLeft = rect.left + (rect.width - pickerW) / 2;
333
365
  originX = "center";
334
366
  }
367
+ const popupArrow = refPopper.value ? measurePopupArrow(refPopper.value, finalPlacement, arrowPointAtCenter && !isMouseMode) : void 0;
368
+ const horizontalArrow = side === "top" || side === "bottom";
369
+ if (popupArrow) {
370
+ if (horizontalArrow) calcLeft = rect.left + rect.width / 2 - popupArrow.center;
371
+ else calcTop = rect.top + rect.height / 2 - popupArrow.center;
372
+ }
335
373
  if (rect.bottom > 0 && rect.top < clientHeight && rect.right > 0 && rect.left < clientWidth) {
336
374
  if (calcLeft < 0) calcLeft = 0;
337
375
  else if (calcLeft + pickerW > clientWidth) calcLeft = clientWidth - pickerW;
338
376
  if (calcTop < 0) calcTop = 0;
339
377
  else if (calcTop + pickerH > clientHeight) calcTop = clientHeight - pickerH;
340
378
  }
379
+ if (popupArrow) {
380
+ const target = horizontalArrow ? rect.left + rect.width / 2 - calcLeft : rect.top + rect.height / 2 - calcTop;
381
+ popupArrow.shift(target);
382
+ if (horizontalArrow) originX = `${target}px`;
383
+ else originY = `${target}px`;
384
+ }
341
385
  const offsetParent = refPopper.value.offsetParent;
342
386
  if (!offsetParent || offsetParent === document.body || offsetParent === document.documentElement) {
343
387
  top.value = calcTop + scrollTop;
@@ -350,8 +394,7 @@ function setPlacement({ refSelection, refPopper, currentPlacement, position = nu
350
394
  transOrigin.value = `${originX} ${originY}`;
351
395
  if (currentPlacement.value !== finalPlacement) currentPlacement.value = finalPlacement;
352
396
  }
353
- //#endregion
354
- //#region components/utils/popup.ts
397
+ // components/utils/popup.ts
355
398
  /** One pending frame per owner; callbacks are replaced by the latest request. */
356
399
  function createFrameScheduler() {
357
400
  let frame;
@@ -383,8 +426,7 @@ function isEventOutside(event, elements, requireAll = true) {
383
426
  const path = event.composedPath();
384
427
  return nodes.every((node) => !node || !node.contains(target) && !path.includes(node));
385
428
  }
386
- //#endregion
387
- //#region components/utils/vnode.tsx
429
+ // components/utils/vnode.tsx
388
430
  function cloneNodes(vnode, props, merge = false, cloneTransition) {
389
431
  return vnode.length == 1 && vnode[0].type !== Text ? cloneVNode(vnode[0], props, merge) : cloneVNode(createVNode("span", null, [vnode]), props, merge, cloneTransition);
390
432
  }
@@ -481,8 +523,7 @@ var toggleContainerScroll = (target, lock) => {
481
523
  if (!state.hadLockClass) target.classList.remove("k-scroll-locked");
482
524
  scrollLocks.delete(target);
483
525
  };
484
- //#endregion
485
- //#region components/utils/overlay-order.ts
526
+ // components/utils/overlay-order.ts
486
527
  /**
487
528
  * 遮罩层(Modal / Drawer)与弹层(Popup)共用一个"打开顺序"时钟:数值越大越晚打开,也就越靠上。
488
529
  * 两边各自有注册表(弹层要算子孙,语义不一样),但必须用同一个时钟才能互相比较谁压在上面。
@@ -490,8 +531,7 @@ var toggleContainerScroll = (target, lock) => {
490
531
  */
491
532
  var order = 0;
492
533
  var nextOverlayOrder = () => ++order;
493
- //#endregion
494
- //#region components/popup/layers.ts
534
+ // components/popup/layers.ts
495
535
  var layers = [];
496
536
  var openedAt = /* @__PURE__ */ new WeakMap();
497
537
  function registerPopupLayer(layer) {
@@ -522,8 +562,7 @@ function closePopupChildren(popup) {
522
562
  const layer = layers.find((item) => item.popup === popup);
523
563
  if (layer) descendants(layer).reverse().forEach((child) => child.close());
524
564
  }
525
- //#endregion
526
- //#region components/popup/index.tsx
565
+ // components/popup/index.tsx
527
566
  var popupProps = {
528
567
  open: {
529
568
  type: Boolean,
@@ -539,6 +578,7 @@ var popupProps = {
539
578
  default: "click"
540
579
  },
541
580
  arrow: Boolean,
581
+ arrowPointAtCenter: Boolean,
542
582
  offset: {
543
583
  type: Number,
544
584
  default: 3
@@ -593,6 +633,7 @@ var popupProps = {
593
633
  };
594
634
  var PopupArrow = ({ prefixCls }) => createVNode("div", {
595
635
  "class": `${prefixCls}-arrow`,
636
+ "data-popup-arrow": "",
596
637
  "aria-hidden": "true"
597
638
  }, [createVNode("svg", {
598
639
  "style": { fill: "currentcolor" },
@@ -668,6 +709,7 @@ var popup_default = /* @__PURE__ */ defineComponent({
668
709
  transOrigin,
669
710
  currentPlacement,
670
711
  offset: props.offset,
712
+ arrowPointAtCenter: props.arrowPointAtCenter,
671
713
  position: props.getAnchorPosition?.() ?? (contextPoint ? {
672
714
  x: rect.left + contextPoint.x,
673
715
  y: rect.top + contextPoint.y
@@ -712,6 +754,7 @@ var popup_default = /* @__PURE__ */ defineComponent({
712
754
  props.placement,
713
755
  props.offset,
714
756
  props.arrow,
757
+ props.arrowPointAtCenter,
715
758
  props.matchTriggerWidth,
716
759
  props.overlay
717
760
  ], () => {
@@ -913,8 +956,7 @@ var popup_default = /* @__PURE__ */ defineComponent({
913
956
  };
914
957
  }
915
958
  });
916
- //#endregion
917
- //#region node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js
959
+ // node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js
918
960
  /*!
919
961
  * kui-icons v5.0.0
920
962
  * Copyright 2017-present, kui-icons.
@@ -1093,8 +1135,7 @@ var X = [{
1093
1135
  d: "M18 6L6 18 M6 6L18 18",
1094
1136
  s: "fill:none;stroke:currentcolor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round"
1095
1137
  }];
1096
- //#endregion
1097
- //#region components/base/transition.ts
1138
+ // components/base/transition.ts
1098
1139
  function getTransitionProp(name) {
1099
1140
  return {
1100
1141
  name,
@@ -1142,8 +1183,7 @@ function getTransitionProp(name) {
1142
1183
  }
1143
1184
  };
1144
1185
  }
1145
- //#endregion
1146
- //#region components/config/context.ts
1186
+ // components/config/context.ts
1147
1187
  /**
1148
1188
  * 没有 ConfigProvider 兜底时用的语言。
1149
1189
  * 默认值只有这一个出处,inject 的地方不许再各自写 zhCN 兜底;要改库级默认就改这里。
@@ -1235,8 +1275,7 @@ var getMousePoint = () => {
1235
1275
  y: 0
1236
1276
  };
1237
1277
  };
1238
- //#endregion
1239
- //#region components/icon/index.tsx
1278
+ // components/icon/index.tsx
1240
1279
  var parseStyle = (styleString) => {
1241
1280
  const styles = {};
1242
1281
  if (!styleString) return styles;
@@ -1308,8 +1347,7 @@ var Icon = /* @__PURE__ */ defineComponent({
1308
1347
  };
1309
1348
  }
1310
1349
  });
1311
- //#endregion
1312
- //#region components/alert/index.tsx
1350
+ // components/alert/index.tsx
1313
1351
  var PAINTED_THEMES$16 = [
1314
1352
  "fill",
1315
1353
  "outline",
@@ -1399,8 +1437,7 @@ var Alert = /* @__PURE__ */ defineComponent({
1399
1437
  };
1400
1438
  }
1401
1439
  });
1402
- //#endregion
1403
- //#region components/form/context.ts
1440
+ // components/form/context.ts
1404
1441
  var FORM_INJECTION_KEY = Symbol("KForm");
1405
1442
  var FORM_FIELD_INJECTION_KEY = Symbol("KFormField");
1406
1443
  var formFieldComponents = /* @__PURE__ */ new WeakSet();
@@ -1449,8 +1486,7 @@ var markFormFieldWrapper = (component) => {
1449
1486
  return component;
1450
1487
  };
1451
1488
  var isFormFieldWrapper = (component) => (typeof component === "object" || typeof component === "function") && component !== null && formFieldWrappers.has(component);
1452
- //#endregion
1453
- //#region node_modules/.pnpm/big.js@7.0.1/node_modules/big.js/big.mjs
1489
+ // node_modules/.pnpm/big.js@7.0.1/node_modules/big.js/big.mjs
1454
1490
  /************************************** EDITABLE DEFAULTS *****************************************/
1455
1491
  var DP = 20;
1456
1492
  var RM = 1;
@@ -1517,7 +1553,7 @@ function parse(x, n) {
1517
1553
  }
1518
1554
  return x;
1519
1555
  }
1520
- function round(x, sd, rm, more) {
1556
+ function round$2(x, sd, rm, more) {
1521
1557
  var xc = x.c;
1522
1558
  if (rm === UNDEFINED) rm = x.constructor.RM;
1523
1559
  if (rm !== 0 && rm !== 1 && rm !== 2 && rm !== 3) throw Error(INVALID_RM);
@@ -1613,7 +1649,7 @@ P.div = function(y) {
1613
1649
  q.e--;
1614
1650
  p--;
1615
1651
  }
1616
- if (qi > p) round(q, p, Big.RM, r[0] !== UNDEFINED);
1652
+ if (qi > p) round$2(q, p, Big.RM, r[0] !== UNDEFINED);
1617
1653
  return q;
1618
1654
  };
1619
1655
  P.eq = function(y) {
@@ -1769,12 +1805,12 @@ P.pow = function(n) {
1769
1805
  };
1770
1806
  P.prec = function(sd, rm) {
1771
1807
  if (sd !== ~~sd || sd < 1 || sd > MAX_DP) throw Error(INVALID + "precision");
1772
- return round(new this.constructor(this), sd, rm);
1808
+ return round$2(new this.constructor(this), sd, rm);
1773
1809
  };
1774
1810
  P.round = function(dp, rm) {
1775
1811
  if (dp === UNDEFINED) dp = 0;
1776
1812
  else if (dp !== ~~dp || dp < -1e6 || dp > MAX_DP) throw Error(INVALID_DP);
1777
- return round(new this.constructor(this), dp + this.e + 1, rm);
1813
+ return round$2(new this.constructor(this), dp + this.e + 1, rm);
1778
1814
  };
1779
1815
  P.sqrt = function() {
1780
1816
  var r, c, t, x = this, Big = x.constructor, s = x.s, e = x.e, half = new Big("0.5");
@@ -1793,7 +1829,7 @@ P.sqrt = function() {
1793
1829
  t = r;
1794
1830
  r = half.times(t.plus(x.div(t)));
1795
1831
  } while (t.c.slice(0, e).join("") !== r.c.slice(0, e).join(""));
1796
- return round(r, (Big.DP -= 4) + r.e + 1, Big.RM);
1832
+ return round$2(r, (Big.DP -= 4) + r.e + 1, Big.RM);
1797
1833
  };
1798
1834
  P.times = P.mul = function(y) {
1799
1835
  var c, x = this, Big = x.constructor, xc = x.c, yc = (y = new Big(y)).c, a = xc.length, b = yc.length, i = x.e, j = y.e;
@@ -1831,7 +1867,7 @@ P.toExponential = function(dp, rm) {
1831
1867
  var x = this, n = x.c[0];
1832
1868
  if (dp !== UNDEFINED) {
1833
1869
  if (dp !== ~~dp || dp < 0 || dp > MAX_DP) throw Error(INVALID_DP);
1834
- x = round(new x.constructor(x), ++dp, rm);
1870
+ x = round$2(new x.constructor(x), ++dp, rm);
1835
1871
  for (; x.c.length < dp;) x.c.push(0);
1836
1872
  }
1837
1873
  return stringify(x, true, !!n);
@@ -1840,7 +1876,7 @@ P.toFixed = function(dp, rm) {
1840
1876
  var x = this, n = x.c[0];
1841
1877
  if (dp !== UNDEFINED) {
1842
1878
  if (dp !== ~~dp || dp < 0 || dp > MAX_DP) throw Error(INVALID_DP);
1843
- x = round(new x.constructor(x), dp + x.e + 1, rm);
1879
+ x = round$2(new x.constructor(x), dp + x.e + 1, rm);
1844
1880
  for (dp = dp + x.e + 1; x.c.length < dp;) x.c.push(0);
1845
1881
  }
1846
1882
  return stringify(x, false, !!n);
@@ -1859,7 +1895,7 @@ P.toPrecision = function(sd, rm) {
1859
1895
  var x = this, Big = x.constructor, n = x.c[0];
1860
1896
  if (sd !== UNDEFINED) {
1861
1897
  if (sd !== ~~sd || sd < 1 || sd > MAX_DP) throw Error(INVALID + "precision");
1862
- x = round(new Big(x), sd, rm);
1898
+ x = round$2(new Big(x), sd, rm);
1863
1899
  for (; x.c.length < sd;) x.c.push(0);
1864
1900
  }
1865
1901
  return stringify(x, sd <= x.e || x.e <= Big.NE || x.e >= Big.PE, !!n);
@@ -1870,8 +1906,7 @@ P.valueOf = function() {
1870
1906
  return stringify(x, x.e <= Big.NE || x.e >= Big.PE, true);
1871
1907
  };
1872
1908
  var Big = _Big_();
1873
- //#endregion
1874
- //#region components/utils/number.ts
1909
+ // components/utils/number.ts
1875
1910
  var isEmpty = (value) => {
1876
1911
  return value == null || typeof value === "string" && value.trim() === "" || Array.isArray(value) && value.length === 0 || typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === 0;
1877
1912
  };
@@ -2056,8 +2091,7 @@ var input_group_default = markFormFieldWrapper(/* @__PURE__ */ defineComponent({
2056
2091
  };
2057
2092
  }
2058
2093
  }));
2059
- //#endregion
2060
- //#region components/input/input-base.tsx
2094
+ // components/input/input-base.tsx
2061
2095
  var inputProps = {
2062
2096
  clearable: {
2063
2097
  type: Boolean,
@@ -2347,8 +2381,7 @@ var InputBase = /* @__PURE__ */ defineComponent({
2347
2381
  };
2348
2382
  }
2349
2383
  });
2350
- //#endregion
2351
- //#region components/input/input.tsx
2384
+ // components/input/input.tsx
2352
2385
  var FormInput = markFormFieldComponent(/* @__PURE__ */ defineComponent({
2353
2386
  name: "Input",
2354
2387
  inheritAttrs: false,
@@ -2385,8 +2418,7 @@ var FormInput = markFormFieldComponent(/* @__PURE__ */ defineComponent({
2385
2418
  };
2386
2419
  }
2387
2420
  }));
2388
- //#endregion
2389
- //#region components/input/textarea.tsx
2421
+ // components/input/textarea.tsx
2390
2422
  var FormTextArea = markFormFieldComponent(/* @__PURE__ */ defineComponent({
2391
2423
  name: "TextArea",
2392
2424
  props: {
@@ -2466,8 +2498,7 @@ var FormTextArea = markFormFieldComponent(/* @__PURE__ */ defineComponent({
2466
2498
  };
2467
2499
  }
2468
2500
  }));
2469
- //#endregion
2470
- //#region components/input/index.ts
2501
+ // components/input/index.ts
2471
2502
  var input_default = FormInput;
2472
2503
  var auto_complete_default = markFormFieldComponent(/* @__PURE__ */ defineComponent({
2473
2504
  name: "AutoComplete",
@@ -2781,11 +2812,9 @@ var auto_complete_default = markFormFieldComponent(/* @__PURE__ */ defineCompone
2781
2812
  }, [option.label ?? option.value]))])]) })]]);
2782
2813
  }
2783
2814
  }));
2784
- //#endregion
2785
- //#region components/anchor/context.ts
2815
+ // components/anchor/context.ts
2786
2816
  var anchorContextKey = Symbol("anchor-context");
2787
- //#endregion
2788
- //#region components/anchor/anchor.tsx
2817
+ // components/anchor/anchor.tsx
2789
2818
  var Anchor = /* @__PURE__ */ defineComponent({
2790
2819
  name: "Anchor",
2791
2820
  inheritAttrs: false,
@@ -2996,8 +3025,7 @@ var Anchor = /* @__PURE__ */ defineComponent({
2996
3025
  };
2997
3026
  }
2998
3027
  });
2999
- //#endregion
3000
- //#region components/anchor/anchor-link.tsx
3028
+ // components/anchor/anchor-link.tsx
3001
3029
  var AnchorLink = /* @__PURE__ */ defineComponent({
3002
3030
  name: "AnchorLink",
3003
3031
  inheritAttrs: false,
@@ -3041,11 +3069,9 @@ var AnchorLink = /* @__PURE__ */ defineComponent({
3041
3069
  };
3042
3070
  }
3043
3071
  });
3044
- //#endregion
3045
- //#region components/avatar/context.ts
3072
+ // components/avatar/context.ts
3046
3073
  var avatarGroupContextKey = Symbol("avatar-group");
3047
- //#endregion
3048
- //#region components/avatar/avatar.tsx
3074
+ // components/avatar/avatar.tsx
3049
3075
  var Avatar = /* @__PURE__ */ defineComponent({
3050
3076
  name: "Avatar",
3051
3077
  props: {
@@ -3145,8 +3171,7 @@ var Avatar = /* @__PURE__ */ defineComponent({
3145
3171
  };
3146
3172
  }
3147
3173
  });
3148
- //#endregion
3149
- //#region components/avatar/avatar-group.tsx
3174
+ // components/avatar/avatar-group.tsx
3150
3175
  var AvatarGroup = /* @__PURE__ */ defineComponent({
3151
3176
  name: "AvatarGroup",
3152
3177
  props: {
@@ -3195,8 +3220,7 @@ var AvatarGroup = /* @__PURE__ */ defineComponent({
3195
3220
  };
3196
3221
  }
3197
3222
  });
3198
- //#endregion
3199
- //#region components/breadcrumb/breadcrumb.tsx
3223
+ // components/breadcrumb/breadcrumb.tsx
3200
3224
  var Breadcrumb = /* @__PURE__ */ defineComponent({
3201
3225
  name: "Breadcrumb",
3202
3226
  props: { separator: {
@@ -3210,8 +3234,7 @@ var Breadcrumb = /* @__PURE__ */ defineComponent({
3210
3234
  };
3211
3235
  }
3212
3236
  });
3213
- //#endregion
3214
- //#region components/breadcrumb/breadcrumb-item.tsx
3237
+ // components/breadcrumb/breadcrumb-item.tsx
3215
3238
  var BreadcrumbItem = /* @__PURE__ */ defineComponent({
3216
3239
  name: "BreadcrumbItem",
3217
3240
  props: {
@@ -3243,8 +3266,7 @@ var BreadcrumbItem = /* @__PURE__ */ defineComponent({
3243
3266
  };
3244
3267
  }
3245
3268
  });
3246
- //#endregion
3247
- //#region components/back-top/index.tsx
3269
+ // components/back-top/index.tsx
3248
3270
  var defaultTarget = () => typeof document === "undefined" ? null : document.body;
3249
3271
  var BackTop = /* @__PURE__ */ defineComponent({
3250
3272
  name: "BackTop",
@@ -3337,8 +3359,7 @@ var BackTop = /* @__PURE__ */ defineComponent({
3337
3359
  };
3338
3360
  }
3339
3361
  });
3340
- //#endregion
3341
- //#region components/const/var.ts
3362
+ // components/const/var.ts
3342
3363
  /**
3343
3364
  * 预设色值名,`Tag` / `Badge` / `Button` / `Tooltip` 的 `color` 共用这一套。
3344
3365
  * 里面只有能上色的名字:不传 `color` 就是组件自己的那张表面,给它再取一个名字只会让人以为
@@ -3363,8 +3384,7 @@ var colors$1 = [
3363
3384
  "brown",
3364
3385
  "gray"
3365
3386
  ];
3366
- //#endregion
3367
- //#region components/stat-card/utils/odometer.ts
3387
+ // components/stat-card/utils/odometer.ts
3368
3388
  /** Bounded digit tracks shared by statistical numbers and badges. */
3369
3389
  var Odometer = class {
3370
3390
  previous;
@@ -3480,8 +3500,7 @@ var Odometer = class {
3480
3500
  });
3481
3501
  }
3482
3502
  };
3483
- //#endregion
3484
- //#region components/stat-card/rollup.tsx
3503
+ // components/stat-card/rollup.tsx
3485
3504
  var rollup_default = /* @__PURE__ */ defineComponent({
3486
3505
  name: "RollUp",
3487
3506
  props: {
@@ -3532,8 +3551,7 @@ var rollup_default = /* @__PURE__ */ defineComponent({
3532
3551
  }, [initialText]);
3533
3552
  }
3534
3553
  });
3535
- //#endregion
3536
- //#region node_modules/.pnpm/color-name@2.1.1/node_modules/color-name/index.js
3554
+ // node_modules/.pnpm/color-name@2.1.1/node_modules/color-name/index.js
3537
3555
  var colors = {
3538
3556
  aliceblue: [
3539
3557
  240,
@@ -4278,8 +4296,7 @@ var colors = {
4278
4296
  };
4279
4297
  for (const key in colors) Object.freeze(colors[key]);
4280
4298
  var color_name_default = Object.freeze(colors);
4281
- //#endregion
4282
- //#region node_modules/.pnpm/color-string@2.1.4/node_modules/color-string/index.js
4299
+ // node_modules/.pnpm/color-string@2.1.4/node_modules/color-string/index.js
4283
4300
  var reverseNames = Object.create(null);
4284
4301
  for (const name in color_name_default) if (Object.hasOwn(color_name_default, name)) reverseNames[color_name_default[name]] = name;
4285
4302
  var cs = {
@@ -4356,8 +4373,8 @@ cs.get.rgb = function(string) {
4356
4373
  rgb[3] = 1;
4357
4374
  return rgb;
4358
4375
  } else return null;
4359
- for (i = 0; i < 3; i++) rgb[i] = clamp$1(rgb[i], 0, 255);
4360
- rgb[3] = clamp$1(rgb[3], 0, 1);
4376
+ for (i = 0; i < 3; i++) rgb[i] = clamp$2(rgb[i], 0, 255);
4377
+ rgb[3] = clamp$2(rgb[3], 0, 1);
4361
4378
  return rgb;
4362
4379
  };
4363
4380
  cs.get.hsl = function(string) {
@@ -4367,9 +4384,9 @@ cs.get.hsl = function(string) {
4367
4384
  const alpha = Number.parseFloat(match[4]);
4368
4385
  return [
4369
4386
  (Number.parseFloat(match[1]) % 360 + 360) % 360,
4370
- clamp$1(Number.parseFloat(match[2]), 0, 100),
4371
- clamp$1(Number.parseFloat(match[3]), 0, 100),
4372
- clamp$1(Number.isNaN(alpha) ? 1 : alpha, 0, 1)
4387
+ clamp$2(Number.parseFloat(match[2]), 0, 100),
4388
+ clamp$2(Number.parseFloat(match[3]), 0, 100),
4389
+ clamp$2(Number.isNaN(alpha) ? 1 : alpha, 0, 1)
4373
4390
  ];
4374
4391
  }
4375
4392
  return null;
@@ -4381,9 +4398,9 @@ cs.get.hwb = function(string) {
4381
4398
  const alpha = Number.parseFloat(match[4]);
4382
4399
  return [
4383
4400
  (Number.parseFloat(match[1]) % 360 + 360) % 360,
4384
- clamp$1(Number.parseFloat(match[2]), 0, 100),
4385
- clamp$1(Number.parseFloat(match[3]), 0, 100),
4386
- clamp$1(Number.isNaN(alpha) ? 1 : alpha, 0, 1)
4401
+ clamp$2(Number.parseFloat(match[2]), 0, 100),
4402
+ clamp$2(Number.parseFloat(match[3]), 0, 100),
4403
+ clamp$2(Number.isNaN(alpha) ? 1 : alpha, 0, 1)
4387
4404
  ];
4388
4405
  }
4389
4406
  return null;
@@ -4411,15 +4428,14 @@ cs.to.hwb = function(...hwba) {
4411
4428
  cs.to.keyword = function(...rgb) {
4412
4429
  return reverseNames[rgb.slice(0, 3)];
4413
4430
  };
4414
- function clamp$1(number_, min, max) {
4431
+ function clamp$2(number_, min, max) {
4415
4432
  return Math.min(Math.max(min, number_), max);
4416
4433
  }
4417
4434
  function hexDouble(number_) {
4418
4435
  const string_ = Math.round(number_).toString(16).toUpperCase();
4419
4436
  return string_.length < 2 ? "0" + string_ : string_;
4420
4437
  }
4421
- //#endregion
4422
- //#region node_modules/.pnpm/color-convert@3.1.3/node_modules/color-convert/conversions.js
4438
+ // node_modules/.pnpm/color-convert@3.1.3/node_modules/color-convert/conversions.js
4423
4439
  var reverseKeywords = {};
4424
4440
  for (const key of Object.keys(color_name_default)) reverseKeywords[color_name_default[key]] = key;
4425
4441
  var convert$1 = {
@@ -5297,8 +5313,7 @@ convert$1.gray.hex = function(gray) {
5297
5313
  convert$1.rgb.gray = function(rgb) {
5298
5314
  return [(rgb[0] + rgb[1] + rgb[2]) / 3 / 255 * 100];
5299
5315
  };
5300
- //#endregion
5301
- //#region node_modules/.pnpm/color-convert@3.1.3/node_modules/color-convert/route.js
5316
+ // node_modules/.pnpm/color-convert@3.1.3/node_modules/color-convert/route.js
5302
5317
  function buildGraph() {
5303
5318
  const graph = {};
5304
5319
  const models = Object.keys(convert$1);
@@ -5355,8 +5370,7 @@ function route(fromModel) {
5355
5370
  }
5356
5371
  return conversion;
5357
5372
  }
5358
- //#endregion
5359
- //#region node_modules/.pnpm/color-convert@3.1.3/node_modules/color-convert/index.js
5373
+ // node_modules/.pnpm/color-convert@3.1.3/node_modules/color-convert/index.js
5360
5374
  var convert = {};
5361
5375
  var models = Object.keys(convert$1);
5362
5376
  function wrapRaw(fn) {
@@ -5393,8 +5407,7 @@ for (const fromModel of models) {
5393
5407
  convert[fromModel][toModel].raw = wrapRaw(fn);
5394
5408
  }
5395
5409
  }
5396
- //#endregion
5397
- //#region node_modules/.pnpm/color@5.0.3/node_modules/color/index.js
5410
+ // node_modules/.pnpm/color@5.0.3/node_modules/color/index.js
5398
5411
  var skippedModels = [
5399
5412
  "keyword",
5400
5413
  "gray",
@@ -5711,8 +5724,7 @@ function zeroArray(array, length) {
5711
5724
  for (let i = 0; i < length; i++) if (typeof array[i] !== "number") array[i] = 0;
5712
5725
  return array;
5713
5726
  }
5714
- //#endregion
5715
- //#region components/utils/color.ts
5727
+ // components/utils/color.ts
5716
5728
  function isColor(value) {
5717
5729
  if (typeof value !== "string" || typeof CSS === "undefined" || !CSS.supports) return false;
5718
5730
  return CSS.supports("color", value);
@@ -5739,8 +5751,7 @@ function wash(value, share) {
5739
5751
  return;
5740
5752
  }
5741
5753
  }
5742
- //#endregion
5743
- //#region components/badge/index.tsx
5754
+ // components/badge/index.tsx
5744
5755
  var Badge = /* @__PURE__ */ defineComponent({
5745
5756
  name: "Badge",
5746
5757
  props: {
@@ -5804,8 +5815,7 @@ var Badge = /* @__PURE__ */ defineComponent({
5804
5815
  };
5805
5816
  }
5806
5817
  });
5807
- //#endregion
5808
- //#region components/button/button.tsx
5818
+ // components/button/button.tsx
5809
5819
  var PAINTED_THEMES$15 = [
5810
5820
  "fill",
5811
5821
  "outline",
@@ -5905,8 +5915,7 @@ var Button = /* @__PURE__ */ defineComponent({
5905
5915
  };
5906
5916
  }
5907
5917
  });
5908
- //#endregion
5909
- //#region components/button/button-group.tsx
5918
+ // components/button/button-group.tsx
5910
5919
  var ButtonGroup = /* @__PURE__ */ defineComponent({
5911
5920
  name: "ButtonGroup",
5912
5921
  props: {
@@ -5932,8 +5941,7 @@ var ButtonGroup = /* @__PURE__ */ defineComponent({
5932
5941
  };
5933
5942
  }
5934
5943
  });
5935
- //#endregion
5936
- //#region components/utils/model-value.ts
5944
+ // components/utils/model-value.ts
5937
5945
  function useInitialValue(props) {
5938
5946
  const initial = props.value;
5939
5947
  const local = shallowRef(Array.isArray(initial) ? [...initial] : initial);
@@ -5944,8 +5952,7 @@ function useInitialValue(props) {
5944
5952
  }
5945
5953
  });
5946
5954
  }
5947
- //#endregion
5948
- //#region components/empty/index.tsx
5955
+ // components/empty/index.tsx
5949
5956
  var Empty = /* @__PURE__ */ defineComponent({
5950
5957
  name: "Empty",
5951
5958
  props: {
@@ -6435,8 +6442,7 @@ var cascader_default = markFormFieldComponent(/* @__PURE__ */ defineComponent({
6435
6442
  };
6436
6443
  }
6437
6444
  }));
6438
- //#endregion
6439
- //#region components/card/card-meta.tsx
6445
+ // components/card/card-meta.tsx
6440
6446
  var CardMeta = /* @__PURE__ */ defineComponent({
6441
6447
  name: "CardMeta",
6442
6448
  inheritAttrs: false,
@@ -6463,8 +6469,7 @@ var CardMeta = /* @__PURE__ */ defineComponent({
6463
6469
  };
6464
6470
  }
6465
6471
  });
6466
- //#endregion
6467
- //#region components/card/index.tsx
6472
+ // components/card/index.tsx
6468
6473
  var PAINTED_THEMES$14 = [
6469
6474
  "fill",
6470
6475
  "outline",
@@ -6542,8 +6547,7 @@ var Card = /* @__PURE__ */ defineComponent({
6542
6547
  };
6543
6548
  }
6544
6549
  });
6545
- //#endregion
6546
- //#region components/calendar/index.tsx
6550
+ // components/calendar/index.tsx
6547
6551
  var calendarProps = {
6548
6552
  modelValue: String,
6549
6553
  value: String,
@@ -6805,8 +6809,7 @@ var Calendar = /* @__PURE__ */ defineComponent({
6805
6809
  };
6806
6810
  }
6807
6811
  });
6808
- //#endregion
6809
- //#region components/feature-card/index.tsx
6812
+ // components/feature-card/index.tsx
6810
6813
  var featureCardProps = {
6811
6814
  icon: Array,
6812
6815
  title: String,
@@ -6903,8 +6906,7 @@ var FeatureCard = /* @__PURE__ */ defineComponent({
6903
6906
  };
6904
6907
  }
6905
6908
  });
6906
- //#endregion
6907
- //#region components/flame-wrap/engine.ts
6909
+ // components/flame-wrap/engine.ts
6908
6910
  var DEFAULTS$1 = {
6909
6911
  color: [
6910
6912
  .31,
@@ -7534,8 +7536,7 @@ function createFlameWrap(elements, options = {}) {
7534
7536
  }
7535
7537
  };
7536
7538
  }
7537
- //#endregion
7538
- //#region components/utils/vue.ts
7539
+ // components/utils/vue.ts
7539
7540
  var globalComponents = [
7540
7541
  "message",
7541
7542
  "modal",
@@ -7552,8 +7553,7 @@ var installGlobal = (app, component) => {
7552
7553
  * belongs here instead of being repeated in every component prop declaration.
7553
7554
  */
7554
7555
  var tuplePropType = () => Array;
7555
- //#endregion
7556
- //#region components/flame-wrap/index.tsx
7556
+ // components/flame-wrap/index.tsx
7557
7557
  var flameWrapProps = {
7558
7558
  color: {
7559
7559
  type: tuplePropType(),
@@ -7695,8 +7695,7 @@ var FlameWrap = /* @__PURE__ */ defineComponent({
7695
7695
  };
7696
7696
  }
7697
7697
  });
7698
- //#endregion
7699
- //#region components/list-panel/index.tsx
7698
+ // components/list-panel/index.tsx
7700
7699
  var PAINTED_THEMES$12 = [
7701
7700
  "fill",
7702
7701
  "outline",
@@ -7766,8 +7765,7 @@ var ListPanel = /* @__PURE__ */ defineComponent({
7766
7765
  };
7767
7766
  }
7768
7767
  });
7769
- //#endregion
7770
- //#region components/directives/resize.ts
7768
+ // components/directives/resize.ts
7771
7769
  var resize = {
7772
7770
  mounted(_, { value }) {
7773
7771
  window.addEventListener("resize", value);
@@ -7776,8 +7774,7 @@ var resize = {
7776
7774
  window.removeEventListener("resize", value);
7777
7775
  }
7778
7776
  };
7779
- //#endregion
7780
- //#region components/carousel/drag.ts
7777
+ // components/carousel/drag.ts
7781
7778
  var swipeThreshold = 5;
7782
7779
  var shortSwipeMs = 300;
7783
7780
  var longSwipeRatio = .5;
@@ -7936,8 +7933,7 @@ function readCarouselOffset(root, vertical, position, size) {
7936
7933
  const offset = transform.startsWith("matrix3d") ? values[vertical ? 13 : 12] : transform.startsWith("matrix") ? values[vertical ? 5 : 4] : transform.startsWith("translate3d") ? values[vertical ? 1 : 0] : void 0;
7937
7934
  return Number.isFinite(offset) ? offset + position * size : 0;
7938
7935
  }
7939
- //#endregion
7940
- //#region components/carousel/carousel.tsx
7936
+ // components/carousel/carousel.tsx
7941
7937
  var Carousel = /* @__PURE__ */ defineComponent({
7942
7938
  name: "Carousel",
7943
7939
  directives: { resize },
@@ -8279,8 +8275,7 @@ var Carousel = /* @__PURE__ */ defineComponent({
8279
8275
  };
8280
8276
  }
8281
8277
  });
8282
- //#endregion
8283
- //#region components/carousel/carousel-item.tsx
8278
+ // components/carousel/carousel-item.tsx
8284
8279
  var CarouselItem = /* @__PURE__ */ defineComponent({
8285
8280
  name: "CarouselItem",
8286
8281
  setup(_, { slots }) {
@@ -8298,8 +8293,7 @@ var CarouselItem = /* @__PURE__ */ defineComponent({
8298
8293
  };
8299
8294
  }
8300
8295
  });
8301
- //#endregion
8302
- //#region components/utils/checked.ts
8296
+ // components/utils/checked.ts
8303
8297
  var getValueWithType = (checked, vType) => {
8304
8298
  let value = checked;
8305
8299
  switch (vType) {
@@ -8313,8 +8307,7 @@ var getValueWithType = (checked, vType) => {
8313
8307
  }
8314
8308
  return value;
8315
8309
  };
8316
- //#endregion
8317
- //#region components/checkbox/checkbox.tsx
8310
+ // components/checkbox/checkbox.tsx
8318
8311
  var PAINTED_THEMES$11 = ["fill", "outline"];
8319
8312
  var FormCheckbox = markFormFieldComponent(/* @__PURE__ */ defineComponent({
8320
8313
  name: "Checkbox",
@@ -8435,8 +8428,7 @@ var FormCheckbox = markFormFieldComponent(/* @__PURE__ */ defineComponent({
8435
8428
  };
8436
8429
  }
8437
8430
  }));
8438
- //#endregion
8439
- //#region components/checkbox/checkbox-group.tsx
8431
+ // components/checkbox/checkbox-group.tsx
8440
8432
  var FormCheckboxGroup = markFormFieldComponent(/* @__PURE__ */ defineComponent({
8441
8433
  name: "CheckboxGroup",
8442
8434
  props: {
@@ -8529,14 +8521,11 @@ var FormCheckboxGroup = markFormFieldComponent(/* @__PURE__ */ defineComponent({
8529
8521
  };
8530
8522
  }
8531
8523
  }));
8532
- //#endregion
8533
- //#region components/checkbox/index.ts
8524
+ // components/checkbox/index.ts
8534
8525
  var checkbox_default = FormCheckbox;
8535
- //#endregion
8536
- //#region components/check-card/context.ts
8526
+ // components/check-card/context.ts
8537
8527
  var checkCardGroupKey = Symbol("check-card-group");
8538
- //#endregion
8539
- //#region components/check-card/check-card.tsx
8528
+ // components/check-card/check-card.tsx
8540
8529
  var PAINTED_THEMES$10 = [
8541
8530
  "fill",
8542
8531
  "outline",
@@ -8786,11 +8775,9 @@ var check_card_group_default = markFormFieldComponent(/* @__PURE__ */ defineComp
8786
8775
  }, null)) ?? slots.default?.()]);
8787
8776
  }
8788
8777
  }));
8789
- //#endregion
8790
- //#region components/collapse/context.ts
8778
+ // components/collapse/context.ts
8791
8779
  var collapseContextKey = Symbol("collapse-context");
8792
- //#endregion
8793
- //#region components/collapse/collapse.tsx
8780
+ // components/collapse/collapse.tsx
8794
8781
  var PAINTED_THEMES$9 = [
8795
8782
  "fill",
8796
8783
  "outline",
@@ -8850,8 +8837,7 @@ var Collapse = /* @__PURE__ */ defineComponent({
8850
8837
  };
8851
8838
  }
8852
8839
  });
8853
- //#endregion
8854
- //#region components/collapse/collapse-panel.tsx
8840
+ // components/collapse/collapse-panel.tsx
8855
8841
  var CollapsePanel = /* @__PURE__ */ defineComponent({
8856
8842
  name: "CollapsePanel",
8857
8843
  props: {
@@ -8917,14 +8903,12 @@ var CollapsePanel = /* @__PURE__ */ defineComponent({
8917
8903
  };
8918
8904
  }
8919
8905
  });
8920
- //#endregion
8921
- //#region components/utils/share.ts
8906
+ // components/utils/share.ts
8922
8907
  var assert = (condition, ...infos) => {
8923
8908
  if (!condition) console.warn(...infos);
8924
8909
  };
8925
- var clamp = (n, min, max) => Math.min(max, Math.max(min, n));
8926
- //#endregion
8927
- //#region components/color-picker/alpha.tsx
8910
+ var clamp$1 = (n, min, max) => Math.min(max, Math.max(min, n));
8911
+ // components/color-picker/alpha.tsx
8928
8912
  var alpha_default = /* @__PURE__ */ defineComponent({
8929
8913
  name: "Alpha",
8930
8914
  props: {
@@ -8965,7 +8949,7 @@ var alpha_default = /* @__PURE__ */ defineComponent({
8965
8949
  const canvas = refPaint.value;
8966
8950
  if (!canvas) return;
8967
8951
  const { width, left } = canvas.getBoundingClientRect();
8968
- const x = clamp(e.clientX - left, 0, width);
8952
+ const x = clamp$1(e.clientX - left, 0, width);
8969
8953
  emit("updateAlpha", parseFloat((x / width).toFixed(2)));
8970
8954
  };
8971
8955
  const onMouseDown = (e) => {
@@ -8994,7 +8978,7 @@ var alpha_default = /* @__PURE__ */ defineComponent({
8994
8978
  else if (event.key === "End") value = 1;
8995
8979
  else return;
8996
8980
  event.preventDefault();
8997
- emit("updateAlpha", Number(clamp(value, 0, 1).toFixed(2)));
8981
+ emit("updateAlpha", Number(clamp$1(value, 0, 1).toFixed(2)));
8998
8982
  };
8999
8983
  watch(() => props.modelValue, () => {
9000
8984
  renderPaint();
@@ -9028,8 +9012,7 @@ var alpha_default = /* @__PURE__ */ defineComponent({
9028
9012
  }, null)]);
9029
9013
  }
9030
9014
  });
9031
- //#endregion
9032
- //#region components/color-picker/hue.tsx
9015
+ // components/color-picker/hue.tsx
9033
9016
  var hue_default = /* @__PURE__ */ defineComponent({
9034
9017
  name: "Hue",
9035
9018
  props: {
@@ -9066,7 +9049,7 @@ var hue_default = /* @__PURE__ */ defineComponent({
9066
9049
  const canvas = refPaint.value;
9067
9050
  if (!canvas) return;
9068
9051
  const { width, left } = canvas.getBoundingClientRect();
9069
- const newHue = clamp(e.clientX - left, 0, width) / width * 360;
9052
+ const newHue = clamp$1(e.clientX - left, 0, width) / width * 360;
9070
9053
  emit("updateHue", Math.round(newHue));
9071
9054
  };
9072
9055
  const onMouseUp = () => {
@@ -9095,7 +9078,7 @@ var hue_default = /* @__PURE__ */ defineComponent({
9095
9078
  else if (event.key === "End") value = 360;
9096
9079
  else return;
9097
9080
  event.preventDefault();
9098
- emit("updateHue", clamp(value, 0, 360));
9081
+ emit("updateHue", clamp$1(value, 0, 360));
9099
9082
  };
9100
9083
  watch(() => props.hue, updatePos);
9101
9084
  onMounted(() => {
@@ -9123,6 +9106,59 @@ var hue_default = /* @__PURE__ */ defineComponent({
9123
9106
  }, null)]);
9124
9107
  }
9125
9108
  });
9109
+ // components/input-number/drag.ts
9110
+ /** Start-relative movement keeps speed independent of pointer-event frequency. */
9111
+ function startNumberDrag(event, options) {
9112
+ if (event.button !== 0 || event.isPrimary === false || options.blocked()) return () => {};
9113
+ event.preventDefault();
9114
+ const input = event.currentTarget.parentElement?.querySelector("input");
9115
+ const startX = event.clientX;
9116
+ const initial = new Big(options.value || 0);
9117
+ let step = new Big(1);
9118
+ try {
9119
+ const candidate = new Big(options.step);
9120
+ if (candidate.gt(0)) step = candidate;
9121
+ } catch {}
9122
+ let moved = false;
9123
+ let previous = initial.toFixed();
9124
+ const move = (next) => {
9125
+ if (next.pointerId !== event.pointerId) return;
9126
+ if (options.blocked()) {
9127
+ cleanup();
9128
+ return;
9129
+ }
9130
+ const delta = next.clientX - startX;
9131
+ if (!moved && Math.abs(delta) < 4) return;
9132
+ moved = true;
9133
+ if (next.cancelable) next.preventDefault();
9134
+ const distance = Math.abs(delta);
9135
+ const steps = Math.floor(distance / 4 * (1 + Math.min(9, distance / 80)));
9136
+ const value = initial.plus(step.times(delta < 0 ? -steps : steps)).toFixed();
9137
+ if (value !== previous) {
9138
+ previous = value;
9139
+ options.update(value);
9140
+ }
9141
+ };
9142
+ const up = (next) => {
9143
+ if (next.pointerId !== event.pointerId) return;
9144
+ cleanup();
9145
+ if (!moved && !options.blocked()) input?.focus();
9146
+ };
9147
+ const cancel = (next) => {
9148
+ if (next.pointerId === event.pointerId) cleanup();
9149
+ };
9150
+ const cleanup = () => {
9151
+ document.removeEventListener("pointermove", move);
9152
+ document.removeEventListener("pointerup", up);
9153
+ document.removeEventListener("pointercancel", cancel);
9154
+ window.removeEventListener("blur", cleanup);
9155
+ };
9156
+ document.addEventListener("pointermove", move, { passive: false });
9157
+ document.addEventListener("pointerup", up);
9158
+ document.addEventListener("pointercancel", cancel);
9159
+ window.addEventListener("blur", cleanup);
9160
+ return cleanup;
9161
+ }
9126
9162
  var input_number_default = markFormFieldComponent(/* @__PURE__ */ defineComponent({
9127
9163
  inheritAttrs: false,
9128
9164
  name: "InputNumber",
@@ -9150,6 +9186,10 @@ var input_number_default = markFormFieldComponent(/* @__PURE__ */ defineComponen
9150
9186
  type: Boolean,
9151
9187
  default: true
9152
9188
  },
9189
+ draggable: {
9190
+ type: Boolean,
9191
+ default: true
9192
+ },
9153
9193
  keyboard: {
9154
9194
  type: Boolean,
9155
9195
  default: true
@@ -9188,6 +9228,12 @@ var input_number_default = markFormFieldComponent(/* @__PURE__ */ defineComponen
9188
9228
  const parentSize = inject("size", void 0);
9189
9229
  const innerValue = ref("");
9190
9230
  const userInput = ref(null);
9231
+ const blocked = () => Boolean(props.disabled || field?.disabled.value || props.readonly || field?.readonly.value || !props.draggable);
9232
+ let stopDrag = () => {};
9233
+ onBeforeUnmount(() => stopDrag());
9234
+ watch(blocked, (value) => {
9235
+ if (value) stopDrag();
9236
+ });
9191
9237
  const safePrecision = computed(() => props.precision === void 0 ? void 0 : Math.max(0, Math.trunc(props.precision)));
9192
9238
  const clamp = (val) => {
9193
9239
  if (!isValidBig(val)) return val === "" ? "" : innerValue.value;
@@ -9311,13 +9357,31 @@ var input_number_default = markFormFieldComponent(/* @__PURE__ */ defineComponen
9311
9357
  prefix: () => slots.prefix?.(),
9312
9358
  addonBefore: () => slots.addonBefore?.(),
9313
9359
  addonAfter: () => slots.addonAfter?.(),
9314
- controls: () => controls
9360
+ controls: () => createVNode(Fragment, null, [!blocked() && createVNode("span", {
9361
+ "class": "k-input-number-drag",
9362
+ "aria-hidden": "true",
9363
+ "onDblclick": (event) => event.currentTarget.parentElement?.querySelector("input")?.select(),
9364
+ "onPointerdown": (event) => {
9365
+ stopDrag();
9366
+ stopDrag = startNumberDrag(event, {
9367
+ value: isValidBig(innerValue.value) ? innerValue.value : "0",
9368
+ step: props.step,
9369
+ blocked,
9370
+ update: (value) => {
9371
+ const next = clamp(value);
9372
+ if (next === innerValue.value) return;
9373
+ innerValue.value = next;
9374
+ userInput.value = null;
9375
+ emitValue(Number(next));
9376
+ }
9377
+ });
9378
+ }
9379
+ }, null), controls])
9315
9380
  });
9316
9381
  };
9317
9382
  }
9318
9383
  }));
9319
- //#endregion
9320
- //#region components/select/option.tsx
9384
+ // components/select/option.tsx
9321
9385
  var Option = /* @__PURE__ */ defineComponent({
9322
9386
  name: "Option",
9323
9387
  props: {
@@ -9372,8 +9436,7 @@ var Option = /* @__PURE__ */ defineComponent({
9372
9436
  };
9373
9437
  }
9374
9438
  });
9375
- //#endregion
9376
- //#region components/utils/css.ts
9439
+ // components/utils/css.ts
9377
9440
  var numericLengthPattern = /^-?(?:\d+\.?\d*|\.\d+)$/;
9378
9441
  var toCssLength = (value) => {
9379
9442
  if (typeof value === "number") return Number.isFinite(value) ? `${value}px` : void 0;
@@ -9382,8 +9445,7 @@ var toCssLength = (value) => {
9382
9445
  if (!normalized) return void 0;
9383
9446
  return numericLengthPattern.test(normalized) ? `${normalized}px` : normalized;
9384
9447
  };
9385
- //#endregion
9386
- //#region components/space/index.tsx
9448
+ // components/space/index.tsx
9387
9449
  var Space = /* @__PURE__ */ defineComponent({
9388
9450
  name: "Space",
9389
9451
  inheritAttrs: false,
@@ -9461,8 +9523,7 @@ var Space = /* @__PURE__ */ defineComponent({
9461
9523
  };
9462
9524
  }
9463
9525
  });
9464
- //#endregion
9465
- //#region components/tag/index.tsx
9526
+ // components/tag/index.tsx
9466
9527
  var tagProps = {
9467
9528
  closeable: Boolean,
9468
9529
  compact: Boolean,
@@ -9544,8 +9605,7 @@ var Tag = /* @__PURE__ */ defineComponent({
9544
9605
  };
9545
9606
  }
9546
9607
  });
9547
- //#endregion
9548
- //#region components/tooltip/index.tsx
9608
+ // components/tooltip/index.tsx
9549
9609
  var tooltipProps = {
9550
9610
  trigger: {
9551
9611
  type: String,
@@ -9561,6 +9621,7 @@ var tooltipProps = {
9561
9621
  color: String,
9562
9622
  disabled: Boolean,
9563
9623
  width: [Number, String],
9624
+ arrowPointAtCenter: Boolean,
9564
9625
  placement: {
9565
9626
  type: String,
9566
9627
  default: "top"
@@ -9591,6 +9652,7 @@ var Tooltip = /* @__PURE__ */ defineComponent({
9591
9652
  "disabled": props.disabled,
9592
9653
  "trigger": props.trigger,
9593
9654
  "placement": props.placement,
9655
+ "arrowPointAtCenter": props.arrowPointAtCenter,
9594
9656
  "panelOnly": props.panelOnly,
9595
9657
  "prefixCls": "k-tooltip",
9596
9658
  "destroyOnClose": props.destroyOnClose,
@@ -9611,7 +9673,10 @@ var Tooltip = /* @__PURE__ */ defineComponent({
9611
9673
  }, {
9612
9674
  default: slots.default,
9613
9675
  overlay: () => createVNode("div", { "class": "k-tooltip-title" }, [slots.title?.() ?? props.title]),
9614
- arrow: () => createVNode("div", { "class": "k-tooltip-arrow" }, [createVNode("svg", {
9676
+ arrow: () => createVNode("div", {
9677
+ "class": "k-tooltip-arrow",
9678
+ "data-popup-arrow": ""
9679
+ }, [createVNode("svg", {
9615
9680
  "style": { fill: bgColor || "currentcolor" },
9616
9681
  "viewBox": "0 0 24 7"
9617
9682
  }, [createVNode("path", { "d": "M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z" }, null), createVNode("path", {
@@ -9633,8 +9698,7 @@ var TooltipPanel = /* @__PURE__ */ defineComponent({
9633
9698
  panelOnly: true
9634
9699
  }, slots)
9635
9700
  });
9636
- //#endregion
9637
- //#region components/utils/selection-tags.tsx
9701
+ // components/utils/selection-tags.tsx
9638
9702
  function _isSlot$12(s) {
9639
9703
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
9640
9704
  }
@@ -9675,8 +9739,7 @@ function renderSelectionTags({ labels, maxTagCount, size = "medium", shape, them
9675
9739
  ] })] }));
9676
9740
  return tags;
9677
9741
  }
9678
- //#endregion
9679
- //#region components/virtual-list/range.ts
9742
+ // components/virtual-list/range.ts
9680
9743
  var normalizeItemHeight = (value) => Number.isFinite(value) && value > 0 ? value : 1;
9681
9744
  var getVirtualRange = ({ count, scrollTop, viewportHeight, itemHeight, overscan }) => {
9682
9745
  const safeCount = Number.isFinite(count) ? Math.max(0, Math.floor(count)) : 0;
@@ -9694,8 +9757,7 @@ var getVirtualRange = ({ count, scrollTop, viewportHeight, itemHeight, overscan
9694
9757
  total: safeCount * safeHeight
9695
9758
  };
9696
9759
  };
9697
- //#endregion
9698
- //#region components/virtual-list/index.tsx
9760
+ // components/virtual-list/index.tsx
9699
9761
  var VirtualList = /* @__PURE__ */ defineComponent({
9700
9762
  name: "VirtualList",
9701
9763
  inheritAttrs: false,
@@ -9819,8 +9881,7 @@ var VirtualList = /* @__PURE__ */ defineComponent({
9819
9881
  };
9820
9882
  }
9821
9883
  });
9822
- //#endregion
9823
- //#region components/select/select.tsx
9884
+ // components/select/select.tsx
9824
9885
  var FormSelect = markFormFieldComponent(/* @__PURE__ */ defineComponent({
9825
9886
  name: "Select",
9826
9887
  emits: {
@@ -10366,8 +10427,7 @@ var FormSelect = markFormFieldComponent(/* @__PURE__ */ defineComponent({
10366
10427
  };
10367
10428
  }
10368
10429
  }));
10369
- //#endregion
10370
- //#region components/color-picker/mode.tsx
10430
+ // components/color-picker/mode.tsx
10371
10431
  var mode_default = /* @__PURE__ */ defineComponent({
10372
10432
  name: "Mode",
10373
10433
  props: {
@@ -10529,8 +10589,7 @@ var mode_default = /* @__PURE__ */ defineComponent({
10529
10589
  };
10530
10590
  }
10531
10591
  });
10532
- //#endregion
10533
- //#region components/color-picker/paint.tsx
10592
+ // components/color-picker/paint.tsx
10534
10593
  var paint_default = /* @__PURE__ */ defineComponent({
10535
10594
  name: "Paint",
10536
10595
  props: {
@@ -10587,8 +10646,8 @@ var paint_default = /* @__PURE__ */ defineComponent({
10587
10646
  const canvas = refPaint.value;
10588
10647
  if (!canvas) return;
10589
10648
  const { width, height, left, top } = canvas.getBoundingClientRect();
10590
- const x = clamp(e.clientX - left, 0, width);
10591
- const y = clamp(e.clientY - top, 0, height);
10649
+ const x = clamp$1(e.clientX - left, 0, width);
10650
+ const y = clamp$1(e.clientY - top, 0, height);
10592
10651
  dotPos.x = x - 7;
10593
10652
  dotPos.y = y - 7;
10594
10653
  const s = x / width * 100;
@@ -10619,7 +10678,7 @@ var paint_default = /* @__PURE__ */ defineComponent({
10619
10678
  else if (event.key === "ArrowDown") hsv.v -= step;
10620
10679
  else return;
10621
10680
  event.preventDefault();
10622
- emit("updateRGB", Color().hsv(props.hue, clamp(hsv.s, 0, 100), clamp(hsv.v, 0, 100)).rgb().object());
10681
+ emit("updateRGB", Color().hsv(props.hue, clamp$1(hsv.s, 0, 100), clamp$1(hsv.v, 0, 100)).rgb().object());
10623
10682
  };
10624
10683
  watch([() => props.hue, () => props.modelValue], () => {
10625
10684
  renderPaint();
@@ -10660,8 +10719,7 @@ var paint_default = /* @__PURE__ */ defineComponent({
10660
10719
  }, null)]);
10661
10720
  }
10662
10721
  });
10663
- //#endregion
10664
- //#region components/color-picker/presets.tsx
10722
+ // components/color-picker/presets.tsx
10665
10723
  var presets_default = /* @__PURE__ */ defineComponent({
10666
10724
  name: "Presets",
10667
10725
  props: {
@@ -10717,8 +10775,7 @@ var presets_default = /* @__PURE__ */ defineComponent({
10717
10775
  };
10718
10776
  }
10719
10777
  });
10720
- //#endregion
10721
- //#region components/color-picker/index.tsx
10778
+ // components/color-picker/index.tsx
10722
10779
  var colorPickerProps = {
10723
10780
  modelValue: String,
10724
10781
  value: String,
@@ -10727,6 +10784,7 @@ var colorPickerProps = {
10727
10784
  readonly: Boolean,
10728
10785
  disabledAlpha: Boolean,
10729
10786
  showText: Boolean,
10787
+ arrowPointAtCenter: Boolean,
10730
10788
  placement: {
10731
10789
  type: String,
10732
10790
  default: "bottom-left"
@@ -10931,7 +10989,10 @@ var ColorPicker = /* @__PURE__ */ defineComponent({
10931
10989
  "modelValue": props.presets,
10932
10990
  "color": currentColor.value
10933
10991
  }, null)
10934
- ]), !props.panelOnly && createVNode("div", { "class": `k-color-picker-arrow` }, [createVNode("svg", {
10992
+ ]), !props.panelOnly && createVNode("div", {
10993
+ "class": `k-color-picker-arrow`,
10994
+ "data-popup-arrow": ""
10995
+ }, [createVNode("svg", {
10935
10996
  "style": { fill: "currentcolor" },
10936
10997
  "viewBox": "0 0 24 8"
10937
10998
  }, [createVNode("path", {
@@ -10950,6 +11011,7 @@ var ColorPicker = /* @__PURE__ */ defineComponent({
10950
11011
  "target": refSelection,
10951
11012
  "trigger": "manual",
10952
11013
  "placement": props.placement,
11014
+ "arrowPointAtCenter": props.arrowPointAtCenter,
10953
11015
  "prefixCls": "k-color-picker-dropdown",
10954
11016
  "destroyOnClose": props.destroyOnClose,
10955
11017
  "transitionName": "k-color-picker",
@@ -11033,12 +11095,588 @@ var ColorPickerPanel = /* @__PURE__ */ defineComponent({
11033
11095
  })
11034
11096
  });
11035
11097
  var color_picker_default = markFormFieldComponent(ColorPicker);
11036
- //#endregion
11037
- //#region node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/plugin/customParseFormat.js
11038
- var require_customParseFormat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11098
+ // components/gradient-picker/corners.tsx
11099
+ var positions = [
11100
+ "tl",
11101
+ "tr",
11102
+ "bl",
11103
+ "br"
11104
+ ];
11105
+ var labels = [
11106
+ "Top left",
11107
+ "Top right",
11108
+ "Bottom left",
11109
+ "Bottom right"
11110
+ ];
11111
+ var corners_default = /* @__PURE__ */ defineComponent({
11112
+ name: "GradientCorners",
11113
+ props: {
11114
+ disabled: Boolean,
11115
+ colors: {
11116
+ type: Array,
11117
+ required: true
11118
+ },
11119
+ selected: {
11120
+ type: Number,
11121
+ default: 0
11122
+ },
11123
+ gradient: {
11124
+ type: String,
11125
+ default: ""
11126
+ }
11127
+ },
11128
+ emits: { activate: (index, element) => typeof index === "number" && element instanceof HTMLElement },
11129
+ setup(props, { emit }) {
11130
+ return () => createVNode("div", { "class": "k-gradient-picker-corners" }, [createVNode("div", { "class": "k-gradient-picker-corners-fill" }, [createVNode("div", {
11131
+ "class": "k-gradient-picker-corners-color",
11132
+ "style": { backgroundImage: props.gradient }
11133
+ }, null)]), props.colors.map((color, index) => createVNode("button", {
11134
+ "type": "button",
11135
+ "class": [
11136
+ "k-gradient-picker-corner",
11137
+ `k-gradient-picker-corner-${positions[index]}`,
11138
+ { "k-gradient-picker-corner-active": index === props.selected }
11139
+ ],
11140
+ "aria-label": labels[index],
11141
+ "aria-pressed": index === props.selected,
11142
+ "aria-haspopup": "dialog",
11143
+ "aria-disabled": props.disabled || void 0,
11144
+ "disabled": props.disabled,
11145
+ "onClick": (event) => {
11146
+ if (props.disabled) return;
11147
+ emit("activate", index, event.currentTarget);
11148
+ }
11149
+ }, [createVNode("span", {
11150
+ "class": "k-gradient-picker-corner-color",
11151
+ "style": { backgroundColor: color }
11152
+ }, null)]))]);
11153
+ }
11154
+ });
11155
+ // components/gradient-picker/stops.tsx
11156
+ var round$1 = (value) => Math.round(value * 100) / 100;
11157
+ var touchStart = (event) => ({
11158
+ clientX: event.touches[0].clientX,
11159
+ clientY: event.touches[0].clientY,
11160
+ currentTarget: event.currentTarget,
11161
+ preventDefault: () => event.preventDefault(),
11162
+ stopPropagation: () => event.stopPropagation()
11163
+ });
11164
+ var stops_default = /* @__PURE__ */ defineComponent({
11165
+ name: "GradientStops",
11166
+ props: {
11167
+ disabled: Boolean,
11168
+ stops: {
11169
+ type: Array,
11170
+ required: true
11171
+ },
11172
+ selected: {
11173
+ type: Number,
11174
+ default: 0
11175
+ }
11176
+ },
11177
+ emits: {
11178
+ add: (offset) => typeof offset === "number",
11179
+ move: (index, offset) => typeof index === "number" && typeof offset === "number",
11180
+ remove: (index) => typeof index === "number",
11181
+ select: (index) => typeof index === "number",
11182
+ activate: (index, element) => typeof index === "number" && element instanceof HTMLElement
11183
+ },
11184
+ setup(props, { emit }) {
11185
+ const lane = ref();
11186
+ const removingIndex = ref(-1);
11187
+ let dragging = false;
11188
+ let moved = false;
11189
+ let dragIndex = -1;
11190
+ let dragElement = null;
11191
+ let startX = 0;
11192
+ let startY = 0;
11193
+ let minOffset = 0;
11194
+ let maxOffset = 100;
11195
+ const offsetAt = (clientX) => {
11196
+ const rect = lane.value?.getBoundingClientRect();
11197
+ if (!rect || !rect.width) return 0;
11198
+ return round$1(clamp$1((clientX - rect.left) / rect.width * 100, 0, 100));
11199
+ };
11200
+ const stopDrag = () => {
11201
+ dragging = false;
11202
+ moved = false;
11203
+ dragElement = null;
11204
+ removingIndex.value = -1;
11205
+ document.removeEventListener("mousemove", handleMove);
11206
+ document.removeEventListener("mouseup", handleUp);
11207
+ document.removeEventListener("touchmove", handleTouchMove);
11208
+ document.removeEventListener("touchend", handleUp);
11209
+ document.removeEventListener("touchcancel", stopDrag);
11210
+ };
11211
+ const handleMove = (event) => {
11212
+ if (!dragging) return;
11213
+ if (Math.abs(event.clientX - startX) > 2 || Math.abs(event.clientY - startY) > 2) moved = true;
11214
+ const offset = round$1(clamp$1(offsetAt(event.clientX), minOffset, maxOffset));
11215
+ emit("move", dragIndex, offset);
11216
+ removingIndex.value = event.clientY - startY > 24 && props.stops.length > 2 ? dragIndex : -1;
11217
+ };
11218
+ const handleTouchMove = (event) => {
11219
+ if (event.cancelable) event.preventDefault();
11220
+ if (event.touches[0]) handleMove(event.touches[0]);
11221
+ };
11222
+ const handleUp = () => {
11223
+ if (!dragging) return;
11224
+ const index = dragIndex;
11225
+ const element = dragElement;
11226
+ const removing = removingIndex.value >= 0;
11227
+ const activating = !removing && !moved && element !== null;
11228
+ stopDrag();
11229
+ if (removing) emit("remove", index);
11230
+ else if (activating) emit("activate", index, element);
11231
+ };
11232
+ const beginDrag = (index, event, min, max, element) => {
11233
+ dragging = true;
11234
+ moved = false;
11235
+ dragIndex = index;
11236
+ dragElement = element;
11237
+ startX = event.clientX;
11238
+ startY = event.clientY;
11239
+ minOffset = min;
11240
+ maxOffset = max;
11241
+ document.addEventListener("mousemove", handleMove);
11242
+ document.addEventListener("mouseup", handleUp);
11243
+ document.addEventListener("touchmove", handleTouchMove, { passive: false });
11244
+ document.addEventListener("touchend", handleUp);
11245
+ document.addEventListener("touchcancel", stopDrag);
11246
+ };
11247
+ const startLaneDrag = (event) => {
11248
+ if (props.disabled) return;
11249
+ event.preventDefault();
11250
+ const offset = offsetAt(event.clientX);
11251
+ const near = props.stops.findIndex((stop) => Math.abs(stop.offset - offset) <= 2);
11252
+ let index = near;
11253
+ if (near < 0) {
11254
+ index = props.stops.filter((stop) => stop.offset < offset).length;
11255
+ emit("add", offset);
11256
+ emit("select", index);
11257
+ }
11258
+ const previous = props.stops[index - 1];
11259
+ const next = near >= 0 ? props.stops[index + 1] : props.stops[index];
11260
+ const low = previous ? previous.offset + .1 : 0;
11261
+ const high = next ? next.offset - .1 : 100;
11262
+ const current = near >= 0 ? props.stops[index].offset : offset;
11263
+ beginDrag(index, event, Math.min(low, current), Math.max(high, current), null);
11264
+ };
11265
+ const startStopDrag = (event, index) => {
11266
+ if (props.disabled) return;
11267
+ event.preventDefault();
11268
+ event.stopPropagation();
11269
+ emit("select", index);
11270
+ const previous = props.stops[index - 1];
11271
+ const next = props.stops[index + 1];
11272
+ const low = previous ? previous.offset + .1 : 0;
11273
+ const high = next ? next.offset - .1 : 100;
11274
+ const current = props.stops[index].offset;
11275
+ const element = event.currentTarget;
11276
+ beginDrag(index, event, Math.min(low, current), Math.max(high, current), element);
11277
+ };
11278
+ const onKeydown = (event, index) => {
11279
+ if (props.disabled) return;
11280
+ const stop = props.stops[index];
11281
+ const previous = props.stops[index - 1];
11282
+ const next = props.stops[index + 1];
11283
+ const low = previous ? previous.offset + .1 : 0;
11284
+ const high = next ? next.offset - .1 : 100;
11285
+ const current = stop.offset;
11286
+ const lower = Math.min(low, current);
11287
+ const upper = Math.max(high, current);
11288
+ const step = event.shiftKey ? 10 : 1;
11289
+ if (event.key === "ArrowLeft" || event.key === "ArrowRight") {
11290
+ event.preventDefault();
11291
+ emit("move", index, round$1(clamp$1(stop.offset + (event.key === "ArrowRight" ? step : -step), lower, upper)));
11292
+ } else if (event.key === "Home" || event.key === "End") {
11293
+ event.preventDefault();
11294
+ emit("move", index, round$1(event.key === "Home" ? lower : upper));
11295
+ } else if ((event.key === "Delete" || event.key === "Backspace") && props.stops.length > 2) {
11296
+ event.preventDefault();
11297
+ emit("remove", index);
11298
+ } else if (event.key === "Enter" || event.key === " ") {
11299
+ event.preventDefault();
11300
+ emit("select", index);
11301
+ emit("activate", index, event.currentTarget);
11302
+ }
11303
+ };
11304
+ watch(() => props.disabled, (disabled) => {
11305
+ if (disabled) stopDrag();
11306
+ });
11307
+ onBeforeUnmount(stopDrag);
11308
+ return () => createVNode("div", {
11309
+ "class": "k-gradient-picker-stops",
11310
+ "ref": lane,
11311
+ "onMousedown": startLaneDrag,
11312
+ "onTouchstart": (event) => {
11313
+ if (event.touches.length === 1) startLaneDrag(touchStart(event));
11314
+ }
11315
+ }, [props.stops.map((stop, index) => createVNode("span", {
11316
+ "class": ["k-gradient-picker-stop", {
11317
+ "k-gradient-picker-stop-active": index === props.selected,
11318
+ "k-gradient-picker-stop-removing": index === removingIndex.value
11319
+ }],
11320
+ "style": { left: `${stop.offset}%` },
11321
+ "role": "slider",
11322
+ "tabindex": props.disabled ? -1 : 0,
11323
+ "aria-label": `Color stop ${index + 1}`,
11324
+ "aria-haspopup": "dialog",
11325
+ "aria-valuemin": 0,
11326
+ "aria-valuemax": 100,
11327
+ "aria-valuenow": stop.offset,
11328
+ "aria-disabled": props.disabled || void 0,
11329
+ "onMousedown": (event) => startStopDrag(event, index),
11330
+ "onTouchstart": (event) => {
11331
+ if (event.touches.length === 1) startStopDrag(touchStart(event), index);
11332
+ },
11333
+ "onKeydown": (event) => onKeydown(event, index)
11334
+ }, [createVNode("span", {
11335
+ "class": "k-gradient-picker-stop-color",
11336
+ "style": { backgroundColor: stop.color }
11337
+ }, null)]))]);
11338
+ }
11339
+ });
11340
+ // components/gradient-picker/types.ts
11341
+ var clamp = (value, min, max) => Math.min(max, Math.max(min, Number.isFinite(value) ? value : min));
11342
+ var round = (value) => Math.round(value * 100) / 100;
11343
+ var clampOffset = (value) => round(clamp(value, 0, 100));
11344
+ function createLinearGradient() {
11345
+ return [{
11346
+ color: "#ff0000",
11347
+ offset: 0
11348
+ }, {
11349
+ color: "#0000ff",
11350
+ offset: 100
11351
+ }];
11352
+ }
11353
+ function createCornerGradient() {
11354
+ return [
11355
+ "#ff0000",
11356
+ "#ffff00",
11357
+ "#00ff00",
11358
+ "#0000ff"
11359
+ ];
11360
+ }
11361
+ function formatColor(color) {
11362
+ const instance = Color(color);
11363
+ return (instance.alpha() < 1 ? instance.hexa() : instance.hex()).toLowerCase();
11364
+ }
11365
+ function mixGradientColor(from, to, ratio) {
11366
+ const start = Color(from);
11367
+ const end = Color(to);
11368
+ const weight = clamp(ratio, 0, 1);
11369
+ const alpha = start.alpha() + (end.alpha() - start.alpha()) * weight;
11370
+ const channel = (a, b) => alpha === 0 ? 0 : Math.round((a * start.alpha() * (1 - weight) + b * end.alpha() * weight) / alpha);
11371
+ return formatColor(Color({
11372
+ r: channel(start.red(), end.red()),
11373
+ g: channel(start.green(), end.green()),
11374
+ b: channel(start.blue(), end.blue()),
11375
+ alpha: Math.round(alpha * 1e3) / 1e3
11376
+ }));
11377
+ }
11378
+ function normalizeStops(stops) {
11379
+ const list = (stops ?? []).filter((stop) => stop && typeof stop.color === "string").map((stop) => ({
11380
+ color: formatColor(stop.color),
11381
+ offset: clampOffset(stop.offset)
11382
+ })).sort((a, b) => a.offset - b.offset);
11383
+ if (list.length === 0) return createLinearGradient();
11384
+ if (list.length === 1) {
11385
+ const only = list[0];
11386
+ return only.offset <= 50 ? [only, {
11387
+ color: "#000000",
11388
+ offset: 100
11389
+ }] : [{
11390
+ color: "#000000",
11391
+ offset: 0
11392
+ }, only];
11393
+ }
11394
+ return list;
11395
+ }
11396
+ var isColorList = (value) => value.every((item) => typeof item === "string");
11397
+ var isStopList = (value) => value.some((item) => typeof item === "object" && item !== null);
11398
+ /**
11399
+ * Fill in a complete value of `type`. A value of the other shape is converted the way the panel
11400
+ * switches: stops → corner takes the two end colors for the left and right edges; corner → stops
11401
+ * runs the diagonal (top-left to bottom-right).
11402
+ */
11403
+ function normalizeGradient(value, type = "linear") {
11404
+ const list = Array.isArray(value) ? value : [];
11405
+ if (type === "corner") {
11406
+ if (list.length && isColorList(list)) {
11407
+ const fallback = createCornerGradient();
11408
+ const colors = list.slice(0, 4).map((color) => formatColor(color));
11409
+ while (colors.length < 4) colors.push(fallback[colors.length]);
11410
+ return colors;
11411
+ }
11412
+ if (list.length) {
11413
+ const stops = normalizeStops(list);
11414
+ const first = stops[0].color;
11415
+ const last = stops[stops.length - 1].color;
11416
+ return [
11417
+ first,
11418
+ last,
11419
+ first,
11420
+ last
11421
+ ];
11422
+ }
11423
+ return createCornerGradient();
11424
+ }
11425
+ if (list.length && isStopList(list)) return normalizeStops(list);
11426
+ if (list.length) {
11427
+ const colors = list;
11428
+ return [{
11429
+ color: formatColor(colors[0]),
11430
+ offset: 0
11431
+ }, {
11432
+ color: formatColor(colors[colors.length - 1]),
11433
+ offset: 100
11434
+ }];
11435
+ }
11436
+ return createLinearGradient();
11437
+ }
11438
+ function gradientColorAtOffset(value, offset) {
11439
+ const stops = value;
11440
+ if (!stops.length) return "#000000";
11441
+ const target = clampOffset(offset);
11442
+ if (target <= stops[0].offset) return stops[0].color;
11443
+ const last = stops[stops.length - 1];
11444
+ if (target >= last.offset) return last.color;
11445
+ for (let index = 1; index < stops.length; index++) {
11446
+ const previous = stops[index - 1];
11447
+ const next = stops[index];
11448
+ if (target <= next.offset) {
11449
+ const span = next.offset - previous.offset;
11450
+ return mixGradientColor(previous.color, next.color, span === 0 ? 0 : (target - previous.offset) / span);
11451
+ }
11452
+ }
11453
+ return last.color;
11454
+ }
11455
+ /**
11456
+ * CSS for the component's own preview and for demos: stops render left to right; the four-corner
11457
+ * value has no single native CSS gradient, so the default is a layered approximation. Consumers who
11458
+ * need another function (radial, conic, direction) build it from the value instead.
11459
+ */
11460
+ function formatGradient(value) {
11461
+ if (Array.isArray(value) && value.length && isColorList(value)) {
11462
+ const [topLeft, topRight, bottomLeft, bottomRight] = value;
11463
+ const fade = (color) => {
11464
+ const instance = Color(color);
11465
+ return `rgba(${Math.round(instance.red())}, ${Math.round(instance.green())}, ${Math.round(instance.blue())}, 0)`;
11466
+ };
11467
+ return [
11468
+ `radial-gradient(at 0% 0%, ${topLeft} 0%, ${fade(topLeft)} 70%)`,
11469
+ `radial-gradient(at 100% 0%, ${topRight} 0%, ${fade(topRight)} 70%)`,
11470
+ `radial-gradient(at 0% 100%, ${bottomLeft} 0%, ${fade(bottomLeft)} 70%)`,
11471
+ `radial-gradient(at 100% 100%, ${bottomRight} 0%, ${fade(bottomRight)} 70%)`,
11472
+ `linear-gradient(135deg, ${topLeft} 0%, ${bottomRight} 100%)`
11473
+ ].join(", ");
11474
+ }
11475
+ return `linear-gradient(90deg, ${[...value].sort((a, b) => a.offset - b.offset).map((stop) => `${stop.color} ${round(stop.offset)}%`).join(", ")})`;
11476
+ }
11477
+ var gradient_picker_default = markFormFieldComponent(/* @__PURE__ */ defineComponent({
11478
+ name: "GradientPicker",
11479
+ props: {
11480
+ modelValue: Array,
11481
+ /** 初始值,仅初始化时读取;后续更新使用 modelValue,同时传入时 modelValue 优先。 */
11482
+ value: Array,
11483
+ type: {
11484
+ type: String,
11485
+ default: "linear"
11486
+ },
11487
+ /** 颜色面板是否提供透明度调节;开启后色标颜色可以是 `#rrggbbaa` / `rgba()`。 */
11488
+ alpha: Boolean,
11489
+ arrowPointAtCenter: {
11490
+ type: Boolean,
11491
+ default: true
11492
+ },
11493
+ disabled: Boolean,
11494
+ readonly: Boolean,
11495
+ mode: {
11496
+ type: String,
11497
+ default: "hex"
11498
+ },
11499
+ /** 控件尺寸,与其它控件一样分三档;色条加色标或四角预览块的总高度与对应尺寸的控件一致。 */
11500
+ size: String
11501
+ },
11502
+ emits: {
11503
+ "update:modelValue": (value) => Array.isArray(value),
11504
+ "update:mode": (mode) => [
11505
+ "hex",
11506
+ "rgb",
11507
+ "hsl"
11508
+ ].includes(mode),
11509
+ change: (value) => Array.isArray(value)
11510
+ },
11511
+ setup(props, { attrs, emit }) {
11512
+ const initialModel = useInitialValue(props);
11513
+ const field = useFormField(true);
11514
+ const appearance = useFormAppearance(props, field);
11515
+ const innerValue = ref(normalizeGradient(field?.prop ? field.value.value : initialModel.value, props.type));
11516
+ const selectedStop = ref(0);
11517
+ const selectedCorner = ref(0);
11518
+ const currentMode = ref(props.mode);
11519
+ const colorOpen = ref(false);
11520
+ const activeMarker = ref(null);
11521
+ const popup = ref();
11522
+ let lastCommitted = null;
11523
+ watch(() => field?.prop ? field.value.value : initialModel.value, (source) => {
11524
+ const next = normalizeGradient(source, props.type);
11525
+ const echo = JSON.stringify(next) === lastCommitted;
11526
+ lastCommitted = null;
11527
+ innerValue.value = next;
11528
+ if (!echo) colorOpen.value = false;
11529
+ }, { deep: true });
11530
+ watch(() => props.type, (type) => {
11531
+ innerValue.value = normalizeGradient(innerValue.value, type);
11532
+ selectedStop.value = 0;
11533
+ selectedCorner.value = 0;
11534
+ colorOpen.value = false;
11535
+ });
11536
+ watch(() => props.mode, (mode) => {
11537
+ currentMode.value = mode;
11538
+ });
11539
+ watch(innerValue, (value) => {
11540
+ if (props.type === "linear" && selectedStop.value > value.length - 1) selectedStop.value = Math.max(0, value.length - 1);
11541
+ }, { deep: true });
11542
+ const interactionBlocked = () => Boolean(props.disabled || field?.disabled.value || props.readonly || field?.readonly.value);
11543
+ watch(interactionBlocked, (blocked) => {
11544
+ if (blocked) colorOpen.value = false;
11545
+ });
11546
+ const commit = (next) => {
11547
+ if (interactionBlocked()) return;
11548
+ innerValue.value = next;
11549
+ lastCommitted = JSON.stringify(next);
11550
+ emit("update:modelValue", next);
11551
+ if (field?.prop) field.update(next);
11552
+ emit("change", next);
11553
+ };
11554
+ const selectedColor = computed(() => {
11555
+ const value = innerValue.value;
11556
+ return props.type === "corner" ? value[selectedCorner.value] ?? "#000000" : value[selectedStop.value]?.color ?? "#000000";
11557
+ });
11558
+ const writeSelectedColor = (color) => {
11559
+ if (interactionBlocked()) return;
11560
+ const next = formatColor(color);
11561
+ const value = innerValue.value;
11562
+ if (props.type === "corner") {
11563
+ const colors = [...value];
11564
+ colors[selectedCorner.value] = next;
11565
+ commit(colors);
11566
+ } else {
11567
+ const stops = value.map((stop, index) => index === selectedStop.value ? {
11568
+ ...stop,
11569
+ color: next
11570
+ } : stop);
11571
+ commit(stops);
11572
+ }
11573
+ };
11574
+ const onUpdateMode = (mode) => {
11575
+ if (interactionBlocked()) return;
11576
+ currentMode.value = mode;
11577
+ emit("update:mode", mode);
11578
+ };
11579
+ const openColorPanel = (index, element) => {
11580
+ if (interactionBlocked()) return;
11581
+ if (props.type === "linear") selectedStop.value = index;
11582
+ else selectedCorner.value = index;
11583
+ activeMarker.value = element;
11584
+ colorOpen.value = true;
11585
+ nextTick(() => popup.value?.updatePosition());
11586
+ };
11587
+ const addStop = (offset) => {
11588
+ if (interactionBlocked() || props.type !== "linear") return;
11589
+ const stops = innerValue.value;
11590
+ const color = gradientColorAtOffset(stops, offset);
11591
+ const index = stops.filter((stop) => stop.offset < offset).length;
11592
+ const next = [...stops];
11593
+ next.splice(index, 0, {
11594
+ color,
11595
+ offset
11596
+ });
11597
+ commit(next);
11598
+ selectedStop.value = index;
11599
+ };
11600
+ const moveStop = (index, offset) => {
11601
+ if (interactionBlocked() || props.type !== "linear") return;
11602
+ const next = innerValue.value.map((stop, i) => i === index ? {
11603
+ ...stop,
11604
+ offset
11605
+ } : stop);
11606
+ commit(next);
11607
+ };
11608
+ const removeStop = (index) => {
11609
+ if (interactionBlocked() || props.type !== "linear") return;
11610
+ const stops = innerValue.value;
11611
+ if (stops.length <= 2) return;
11612
+ const next = stops.filter((_, i) => i !== index);
11613
+ commit(next);
11614
+ selectedStop.value = Math.max(0, Math.min(index, next.length - 1));
11615
+ colorOpen.value = false;
11616
+ };
11617
+ const colorPanel = () => createVNode("div", { "class": "k-gradient-picker-color-popup k-color-picker-dropdown" }, [createVNode(ColorPickerPanel, {
11618
+ "modelValue": selectedColor.value,
11619
+ "disabled": interactionBlocked(),
11620
+ "disabledAlpha": !props.alpha,
11621
+ "mode": currentMode.value,
11622
+ "onChange": writeSelectedColor,
11623
+ "onUpdate:mode": onUpdateMode
11624
+ }, null), createVNode(PopupArrow, { "prefixCls": "k-color-picker" }, null)]);
11625
+ return () => {
11626
+ const value = innerValue.value;
11627
+ const cssText = formatGradient(value);
11628
+ const disabled = props.disabled || field?.disabled.value;
11629
+ const readonly = props.readonly || field?.readonly.value;
11630
+ const size = appearance.size.value;
11631
+ return createVNode("div", mergeProps(attrs, resolveFormControlAttrs(attrs, field), {
11632
+ class: ["k-gradient-picker", {
11633
+ "k-gradient-picker-disabled": disabled,
11634
+ "k-gradient-picker-readonly": readonly,
11635
+ "k-gradient-picker-sm": size === "small",
11636
+ "k-gradient-picker-lg": size === "large"
11637
+ }],
11638
+ "aria-disabled": disabled || void 0,
11639
+ "aria-readonly": readonly || void 0,
11640
+ onFocusout: () => field?.blur()
11641
+ }), [props.type === "linear" ? createVNode(Fragment, null, [createVNode("div", { "class": "k-gradient-picker-bar" }, [createVNode("div", {
11642
+ "class": "k-gradient-picker-bar-fill",
11643
+ "style": { backgroundImage: cssText }
11644
+ }, null)]), createVNode(stops_default, {
11645
+ "disabled": interactionBlocked(),
11646
+ "stops": value,
11647
+ "selected": selectedStop.value,
11648
+ "onAdd": addStop,
11649
+ "onMove": moveStop,
11650
+ "onRemove": removeStop,
11651
+ "onSelect": (index) => selectedStop.value = index,
11652
+ "onActivate": openColorPanel
11653
+ }, null)]) : createVNode(corners_default, {
11654
+ "disabled": interactionBlocked(),
11655
+ "colors": value,
11656
+ "selected": selectedCorner.value,
11657
+ "gradient": cssText,
11658
+ "onActivate": openColorPanel
11659
+ }, null), createVNode(popup_default, {
11660
+ "ref": popup,
11661
+ "raw": true,
11662
+ "arrowPointAtCenter": props.arrowPointAtCenter,
11663
+ "open": colorOpen.value,
11664
+ "target": activeMarker,
11665
+ "trigger": "manual",
11666
+ "placement": "bottom-left",
11667
+ "offset": 6,
11668
+ "destroyOnClose": true,
11669
+ "transitionName": "k-color-picker",
11670
+ "onOpenChange": (open) => colorOpen.value = open
11671
+ }, { overlay: colorPanel })]);
11672
+ };
11673
+ }
11674
+ }));
11675
+ // node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/plugin/customParseFormat.js
11676
+ var require_customParseFormat = /* @__PURE__ */ __commonJSMin(((exports, module, this$3) => {
11039
11677
  (function(e, t) {
11040
11678
  "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_customParseFormat = t();
11041
- })(exports, (function() {
11679
+ })(this$3, (function() {
11042
11680
  "use strict";
11043
11681
  var e = {
11044
11682
  LTS: "h:mm:ss A",
@@ -11196,12 +11834,11 @@ var require_customParseFormat = /* @__PURE__ */ __commonJSMin(((exports, module)
11196
11834
  };
11197
11835
  }));
11198
11836
  }));
11199
- //#endregion
11200
- //#region node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/plugin/isBetween.js
11201
- var require_isBetween = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11837
+ // node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/plugin/isBetween.js
11838
+ var require_isBetween = /* @__PURE__ */ __commonJSMin(((exports, module, this$2) => {
11202
11839
  (function(e, i) {
11203
11840
  "object" == typeof exports && "undefined" != typeof module ? module.exports = i() : "function" == typeof define && define.amd ? define(i) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_isBetween = i();
11204
- })(exports, (function() {
11841
+ })(this$2, (function() {
11205
11842
  "use strict";
11206
11843
  return function(e, i, t) {
11207
11844
  i.prototype.isBetween = function(e, i, s, f) {
@@ -11211,12 +11848,11 @@ var require_isBetween = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11211
11848
  };
11212
11849
  }));
11213
11850
  }));
11214
- //#endregion
11215
- //#region node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/plugin/localeData.js
11216
- var require_localeData = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11851
+ // node_modules/.pnpm/dayjs@1.11.23/node_modules/dayjs/plugin/localeData.js
11852
+ var require_localeData = /* @__PURE__ */ __commonJSMin(((exports, module, this$1) => {
11217
11853
  (function(n, e) {
11218
11854
  "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (n = "undefined" != typeof globalThis ? globalThis : n || self).dayjs_plugin_localeData = e();
11219
- })(exports, (function() {
11855
+ })(this$1, (function() {
11220
11856
  "use strict";
11221
11857
  return function(n, e, t) {
11222
11858
  var r = e.prototype, o = function(n) {
@@ -11309,8 +11945,7 @@ var require_localeData = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11309
11945
  };
11310
11946
  }));
11311
11947
  }));
11312
- //#endregion
11313
- //#region components/date-picker/index.tsx
11948
+ // components/date-picker/index.tsx
11314
11949
  var import_customParseFormat = /* @__PURE__ */ __toESM(require_customParseFormat(), 1);
11315
11950
  var import_isBetween = /* @__PURE__ */ __toESM(require_isBetween(), 1);
11316
11951
  var import_localeData = /* @__PURE__ */ __toESM(require_localeData(), 1);
@@ -12370,8 +13005,7 @@ var DatePickerPanel = /* @__PURE__ */ defineComponent({
12370
13005
  }, slots)
12371
13006
  });
12372
13007
  var FormDatePicker = markFormFieldComponent(DatePicker);
12373
- //#endregion
12374
- //#region components/grid/useBreakpoint.ts
13008
+ // components/grid/useBreakpoint.ts
12375
13009
  var breakpointMap = {
12376
13010
  0: "xs",
12377
13011
  576: "sm",
@@ -12408,8 +13042,7 @@ function useBreakpoint(elRef) {
12408
13042
  });
12409
13043
  return readonly(active);
12410
13044
  }
12411
- //#endregion
12412
- //#region components/descriptions/descriptions-item.tsx
13045
+ // components/descriptions/descriptions-item.tsx
12413
13046
  var DescriptionsItem = /* @__PURE__ */ defineComponent({
12414
13047
  name: "DescriptionsItem",
12415
13048
  props: {
@@ -12468,8 +13101,7 @@ var DescriptionsItem = /* @__PURE__ */ defineComponent({
12468
13101
  };
12469
13102
  }
12470
13103
  });
12471
- //#endregion
12472
- //#region components/descriptions/descriptions.tsx
13104
+ // components/descriptions/descriptions.tsx
12473
13105
  function _isSlot$11(s) {
12474
13106
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
12475
13107
  }
@@ -12599,8 +13231,7 @@ var Descriptions = /* @__PURE__ */ defineComponent({
12599
13231
  };
12600
13232
  }
12601
13233
  });
12602
- //#endregion
12603
- //#region components/utils/focus.ts
13234
+ // components/utils/focus.ts
12604
13235
  var focusableSelector = [
12605
13236
  "[autofocus]",
12606
13237
  "button:not([disabled])",
@@ -12653,8 +13284,7 @@ var createFocusTrap = (getContainer) => {
12653
13284
  handleKeydown
12654
13285
  };
12655
13286
  };
12656
- //#endregion
12657
- //#region components/utils/overlay-stack.ts
13287
+ // components/utils/overlay-stack.ts
12658
13288
  var overlays = [];
12659
13289
  function pushOverlay() {
12660
13290
  const order = nextOverlayOrder();
@@ -12675,8 +13305,7 @@ function pushOverlay() {
12675
13305
  }
12676
13306
  };
12677
13307
  }
12678
- //#endregion
12679
- //#region components/drawer/index.tsx
13308
+ // components/drawer/index.tsx
12680
13309
  var Drawer = /* @__PURE__ */ defineComponent({
12681
13310
  name: "Drawer",
12682
13311
  props: {
@@ -12925,8 +13554,7 @@ var Drawer = /* @__PURE__ */ defineComponent({
12925
13554
  };
12926
13555
  }
12927
13556
  });
12928
- //#endregion
12929
- //#region components/dropdown/dropdown-context.ts
13557
+ // components/dropdown/dropdown-context.ts
12930
13558
  var DropdownContextKey = Symbol("dropdown-context");
12931
13559
  var dropdown_default = /* @__PURE__ */ defineComponent({
12932
13560
  name: "Dropdown",
@@ -13032,8 +13660,7 @@ var dropdown_default = /* @__PURE__ */ defineComponent({
13032
13660
  });
13033
13661
  }
13034
13662
  });
13035
- //#endregion
13036
- //#region components/dropdown/trigger.tsx
13663
+ // components/dropdown/trigger.tsx
13037
13664
  var trigger_default = /* @__PURE__ */ defineComponent({
13038
13665
  name: "TriggerButton",
13039
13666
  props: {
@@ -13060,8 +13687,7 @@ var trigger_default = /* @__PURE__ */ defineComponent({
13060
13687
  };
13061
13688
  }
13062
13689
  });
13063
- //#endregion
13064
- //#region components/dropdown/dropdown-button.tsx
13690
+ // components/dropdown/dropdown-button.tsx
13065
13691
  var DropdownButton = /* @__PURE__ */ defineComponent({
13066
13692
  name: "DropdownButton",
13067
13693
  props: {
@@ -13116,8 +13742,7 @@ var DropdownButton = /* @__PURE__ */ defineComponent({
13116
13742
  };
13117
13743
  }
13118
13744
  });
13119
- //#endregion
13120
- //#region components/divider/index.tsx
13745
+ // components/divider/index.tsx
13121
13746
  var Divider = /* @__PURE__ */ defineComponent({
13122
13747
  name: "Divider",
13123
13748
  props: {
@@ -13148,8 +13773,7 @@ var Divider = /* @__PURE__ */ defineComponent({
13148
13773
  };
13149
13774
  }
13150
13775
  });
13151
- //#endregion
13152
- //#region components/form/form.tsx
13776
+ // components/form/form.tsx
13153
13777
  var Form = /* @__PURE__ */ defineComponent({
13154
13778
  name: "Form",
13155
13779
  props: {
@@ -13302,8 +13926,7 @@ var Form = /* @__PURE__ */ defineComponent({
13302
13926
  };
13303
13927
  }
13304
13928
  });
13305
- //#endregion
13306
- //#region components/row-col/col.tsx
13929
+ // components/row-col/col.tsx
13307
13930
  var responsiveProp$1 = [Number, Object];
13308
13931
  var Col = /* @__PURE__ */ defineComponent({
13309
13932
  name: "Col",
@@ -13374,8 +13997,7 @@ var Col = /* @__PURE__ */ defineComponent({
13374
13997
  };
13375
13998
  }
13376
13999
  });
13377
- //#endregion
13378
- //#region components/row-col/row.tsx
14000
+ // components/row-col/row.tsx
13379
14001
  var Row = /* @__PURE__ */ defineComponent({
13380
14002
  name: "Row",
13381
14003
  props: {
@@ -13412,8 +14034,7 @@ var Row = /* @__PURE__ */ defineComponent({
13412
14034
  };
13413
14035
  }
13414
14036
  });
13415
- //#endregion
13416
- //#region components/form/form-item.tsx
14037
+ // components/form/form-item.tsx
13417
14038
  /**
13418
14039
  * 判断某条规则是否应该在指定时机触发。
13419
14040
  * 未设置 `trigger` 时默认在 `change` 时校验,以兼容历史行为。
@@ -13714,8 +14335,7 @@ var FormItem = /* @__PURE__ */ defineComponent({
13714
14335
  };
13715
14336
  }
13716
14337
  });
13717
- //#endregion
13718
- //#region components/flex/index.tsx
14338
+ // components/flex/index.tsx
13719
14339
  var Flex = /* @__PURE__ */ defineComponent({
13720
14340
  name: "Flex",
13721
14341
  props: {
@@ -13758,8 +14378,7 @@ var Flex = /* @__PURE__ */ defineComponent({
13758
14378
  };
13759
14379
  }
13760
14380
  });
13761
- //#endregion
13762
- //#region components/grid/grid.tsx
14381
+ // components/grid/grid.tsx
13763
14382
  var responsiveProp = [
13764
14383
  Number,
13765
14384
  String,
@@ -13854,8 +14473,7 @@ var Grid = /* @__PURE__ */ defineComponent({
13854
14473
  };
13855
14474
  }
13856
14475
  });
13857
- //#endregion
13858
- //#region components/grid/grid-item.tsx
14476
+ // components/grid/grid-item.tsx
13859
14477
  var responsiveNumberProp = [Number, Object];
13860
14478
  var GridItem = /* @__PURE__ */ defineComponent({
13861
14479
  name: "GridItem",
@@ -13904,11 +14522,9 @@ var GridItem = /* @__PURE__ */ defineComponent({
13904
14522
  };
13905
14523
  }
13906
14524
  });
13907
- //#endregion
13908
- //#region components/image/context.ts
14525
+ // components/image/context.ts
13909
14526
  var imageGroupKey = Symbol("ImageGroup");
13910
- //#endregion
13911
- //#region components/slider/thumb.tsx
14527
+ // components/slider/thumb.tsx
13912
14528
  var thumb_default = /* @__PURE__ */ defineComponent({
13913
14529
  props: {
13914
14530
  id: String,
@@ -14017,14 +14633,12 @@ var thumb_default = /* @__PURE__ */ defineComponent({
14017
14633
  };
14018
14634
  }
14019
14635
  });
14020
- //#endregion
14021
- //#region components/utils/mouse.ts
14636
+ // components/utils/mouse.ts
14022
14637
  var getPosition = (e) => {
14023
14638
  if ("touches" in e) return [e.touches[0].clientX, e.touches[0].clientY];
14024
14639
  return [e.clientX, e.clientY];
14025
14640
  };
14026
- //#endregion
14027
- //#region components/slider/index.tsx
14641
+ // components/slider/index.tsx
14028
14642
  var FormSlider = markFormFieldComponent(/* @__PURE__ */ defineComponent({
14029
14643
  name: "Slider",
14030
14644
  props: {
@@ -14373,8 +14987,7 @@ var FormSlider = markFormFieldComponent(/* @__PURE__ */ defineComponent({
14373
14987
  };
14374
14988
  }
14375
14989
  }));
14376
- //#endregion
14377
- //#region components/image/utils.ts
14990
+ // components/image/utils.ts
14378
14991
  var loadImage = (src, callback, err) => {
14379
14992
  if (!src) return () => {};
14380
14993
  let image = new Image();
@@ -14403,8 +15016,7 @@ var loadImage = (src, callback, err) => {
14403
15016
  image.src = src;
14404
15017
  return cleanup;
14405
15018
  };
14406
- //#endregion
14407
- //#region components/image/preview.tsx
15019
+ // components/image/preview.tsx
14408
15020
  var ImagePreview = /* @__PURE__ */ defineComponent({
14409
15021
  name: "ImagePreview",
14410
15022
  props: {
@@ -14799,8 +15411,7 @@ var ImagePreview = /* @__PURE__ */ defineComponent({
14799
15411
  };
14800
15412
  }
14801
15413
  });
14802
- //#endregion
14803
- //#region components/image/instance.ts
15414
+ // components/image/instance.ts
14804
15415
  var seed = 0;
14805
15416
  var createInstance$2 = (props = {}, slots) => {
14806
15417
  const container = document.createElement("div");
@@ -14832,8 +15443,7 @@ var createInstance$2 = (props = {}, slots) => {
14832
15443
  };
14833
15444
  return instance;
14834
15445
  };
14835
- //#endregion
14836
- //#region components/image/group.tsx
15446
+ // components/image/group.tsx
14837
15447
  var ImageGroup = /* @__PURE__ */ defineComponent({
14838
15448
  name: "ImageGroup",
14839
15449
  props: { data: Array },
@@ -14880,8 +15490,7 @@ var ImageGroup = /* @__PURE__ */ defineComponent({
14880
15490
  };
14881
15491
  }
14882
15492
  });
14883
- //#endregion
14884
- //#region components/image/image.tsx
15493
+ // components/image/image.tsx
14885
15494
  var PAINTED_THEMES$7 = [
14886
15495
  "fill",
14887
15496
  "outline",
@@ -15227,8 +15836,7 @@ var input_tag_default = markFormFieldComponent(/* @__PURE__ */ defineComponent({
15227
15836
  };
15228
15837
  }
15229
15838
  }));
15230
- //#endregion
15231
- //#region components/input-otp/index.ts
15839
+ // components/input-otp/index.ts
15232
15840
  var input_otp_default = markFormFieldComponent(/* @__PURE__ */ defineComponent({
15233
15841
  name: "InputOTP",
15234
15842
  inheritAttrs: false,
@@ -15406,8 +16014,7 @@ var input_otp_default = markFormFieldComponent(/* @__PURE__ */ defineComponent({
15406
16014
  }, null)]))]);
15407
16015
  }
15408
16016
  }));
15409
- //#endregion
15410
- //#region components/layout/index.tsx
16017
+ // components/layout/index.tsx
15411
16018
  var SiderHookKey = Symbol("SiderHookKey");
15412
16019
  var layoutProps = {
15413
16020
  suffixCls: {
@@ -15499,8 +16106,7 @@ Layout.Header = Header;
15499
16106
  Layout.Footer = Footer;
15500
16107
  Layout.Content = Content;
15501
16108
  Layout.Sider = Sider;
15502
- //#endregion
15503
- //#region components/loading/index.tsx
16109
+ // components/loading/index.tsx
15504
16110
  var LoadingComponent = /* @__PURE__ */ defineComponent({
15505
16111
  name: "LoadingBar",
15506
16112
  props: { height: {
@@ -15619,12 +16225,10 @@ var loading = {
15619
16225
  loadInstance?.destroy?.();
15620
16226
  }
15621
16227
  };
15622
- //#endregion
15623
- //#region components/menu/menu-context.ts
16228
+ // components/menu/menu-context.ts
15624
16229
  var MenuContextKey = Symbol("menu-context");
15625
16230
  var SubMenuContextKey = Symbol("sub-menu-context");
15626
- //#endregion
15627
- //#region components/menu/menu-keyboard.ts
16231
+ // components/menu/menu-keyboard.ts
15628
16232
  var handleMenuItemKeydown = (event, activate) => {
15629
16233
  if (event.key === "Enter" || event.key === " ") {
15630
16234
  event.preventDefault();
@@ -15688,8 +16292,7 @@ var handleSubMenuListKeydown = (event, closeAndRefocusTrigger) => {
15688
16292
  closeAndRefocusTrigger();
15689
16293
  return true;
15690
16294
  };
15691
- //#endregion
15692
- //#region components/menu/menu-item.tsx
16295
+ // components/menu/menu-item.tsx
15693
16296
  function _isSlot$10(s) {
15694
16297
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
15695
16298
  }
@@ -15761,8 +16364,7 @@ var MenuItem = /* @__PURE__ */ defineComponent({
15761
16364
  };
15762
16365
  }
15763
16366
  });
15764
- //#endregion
15765
- //#region components/menu/sub-menu.tsx
16367
+ // components/menu/sub-menu.tsx
15766
16368
  var SubMenu = /* @__PURE__ */ defineComponent({
15767
16369
  name: "SubMenu",
15768
16370
  props: {
@@ -16013,8 +16615,7 @@ var SubMenu = /* @__PURE__ */ defineComponent({
16013
16615
  };
16014
16616
  }
16015
16617
  });
16016
- //#endregion
16017
- //#region components/menu/recursive-menu.tsx
16618
+ // components/menu/recursive-menu.tsx
16018
16619
  function _isSlot$9(s) {
16019
16620
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
16020
16621
  }
@@ -16046,8 +16647,7 @@ var RecursiveMenu = /* @__PURE__ */ defineComponent({
16046
16647
  };
16047
16648
  }
16048
16649
  });
16049
- //#endregion
16050
- //#region components/menu/menu.tsx
16650
+ // components/menu/menu.tsx
16051
16651
  function _isSlot$8(s) {
16052
16652
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
16053
16653
  }
@@ -16284,8 +16884,7 @@ var Menu = /* @__PURE__ */ defineComponent({
16284
16884
  };
16285
16885
  }
16286
16886
  });
16287
- //#endregion
16288
- //#region components/menu/menu-divider.tsx
16887
+ // components/menu/menu-divider.tsx
16289
16888
  var MenuDivider = /* @__PURE__ */ defineComponent({
16290
16889
  name: "MenuDivider",
16291
16890
  setup() {
@@ -16298,8 +16897,7 @@ var MenuDivider = /* @__PURE__ */ defineComponent({
16298
16897
  };
16299
16898
  }
16300
16899
  });
16301
- //#endregion
16302
- //#region components/menu/menu-group.tsx
16900
+ // components/menu/menu-group.tsx
16303
16901
  var MenuGroup = /* @__PURE__ */ defineComponent({
16304
16902
  name: "MenuGroup",
16305
16903
  props: { title: [
@@ -16321,8 +16919,7 @@ var MenuGroup = /* @__PURE__ */ defineComponent({
16321
16919
  };
16322
16920
  }
16323
16921
  });
16324
- //#endregion
16325
- //#region components/notice/content.tsx
16922
+ // components/notice/content.tsx
16326
16923
  var contentProps = {
16327
16924
  type: { type: String },
16328
16925
  title: String,
@@ -16410,8 +17007,7 @@ var NoticePanel = /* @__PURE__ */ defineComponent({
16410
17007
  closable: false
16411
17008
  }, slots)
16412
17009
  });
16413
- //#endregion
16414
- //#region components/notice/container.tsx
17010
+ // components/notice/container.tsx
16415
17011
  var count = 0;
16416
17012
  function getUuid() {
16417
17013
  return `k-message-${Date.now()}-${count++}`;
@@ -16481,8 +17077,7 @@ var container_default = /* @__PURE__ */ defineComponent({
16481
17077
  };
16482
17078
  }
16483
17079
  });
16484
- //#endregion
16485
- //#region components/notice/instance.ts
17080
+ // components/notice/instance.ts
16486
17081
  var createInstance = (type, context) => {
16487
17082
  const containerId = `k-${type}-box`;
16488
17083
  let container = document.getElementById(containerId);
@@ -16501,8 +17096,7 @@ var createInstance = (type, context) => {
16501
17096
  };
16502
17097
  return instance;
16503
17098
  };
16504
- //#endregion
16505
- //#region components/message/index.ts
17099
+ // components/message/index.ts
16506
17100
  var messageInstance = null;
16507
17101
  var message = {
16508
17102
  name: "message",
@@ -16914,8 +17508,7 @@ var mentions_default = markFormFieldComponent(/* @__PURE__ */ defineComponent({
16914
17508
  ]);
16915
17509
  }
16916
17510
  }));
16917
- //#endregion
16918
- //#region components/modal/modal.tsx
17511
+ // components/modal/modal.tsx
16919
17512
  function _isSlot$7(s) {
16920
17513
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
16921
17514
  }
@@ -17233,8 +17826,7 @@ var ModalPanel = /* @__PURE__ */ defineComponent({
17233
17826
  panelOnly: true
17234
17827
  }, slots)
17235
17828
  });
17236
- //#endregion
17237
- //#region components/utils/promise.ts
17829
+ // components/utils/promise.ts
17238
17830
  /**
17239
17831
  * onOk / validate 这类回调允许返回 Promise,组件得先认出 thenable 才决定要不要挂 loading。
17240
17832
  * 两个仓库这份实现逐字符相同。
@@ -17242,8 +17834,7 @@ var ModalPanel = /* @__PURE__ */ defineComponent({
17242
17834
  function isPromiseLike(value) {
17243
17835
  return typeof value === "object" && value !== null && typeof value.then === "function";
17244
17836
  }
17245
- //#endregion
17246
- //#region components/modal/toast.tsx
17837
+ // components/modal/toast.tsx
17247
17838
  var toast_default = /* @__PURE__ */ defineComponent({
17248
17839
  name: "Toast",
17249
17840
  props: {
@@ -17353,8 +17944,7 @@ var toast_default = /* @__PURE__ */ defineComponent({
17353
17944
  };
17354
17945
  }
17355
17946
  });
17356
- //#endregion
17357
- //#region components/modal/index.ts
17947
+ // components/modal/index.ts
17358
17948
  var modalList = [];
17359
17949
  recordMousePoint();
17360
17950
  var showModal = (props) => {
@@ -17429,8 +18019,7 @@ var modal = {
17429
18019
  }
17430
18020
  };
17431
18021
  var modal_default = Modal;
17432
- //#endregion
17433
- //#region components/notice/index.ts
18022
+ // components/notice/index.ts
17434
18023
  var noticeInstance = null;
17435
18024
  var notice = {
17436
18025
  name: "notice",
@@ -17474,8 +18063,7 @@ var notice = {
17474
18063
  });
17475
18064
  }
17476
18065
  };
17477
- //#endregion
17478
- //#region components/page/responsive.ts
18066
+ // components/page/responsive.ts
17479
18067
  function showLayout(root, layout) {
17480
18068
  root.dataset.pageLayout = layout;
17481
18069
  root.querySelectorAll("[data-page-pager]").forEach((pager) => {
@@ -17561,8 +18149,7 @@ function bindResponsivePage(root) {
17561
18149
  delete root.dataset.pageLayout;
17562
18150
  };
17563
18151
  }
17564
- //#endregion
17565
- //#region components/page/index.tsx
18152
+ // components/page/index.tsx
17566
18153
  var PAINTED_THEMES$6 = [
17567
18154
  "fill",
17568
18155
  "outline",
@@ -17956,8 +18543,7 @@ var Page = /* @__PURE__ */ defineComponent({
17956
18543
  };
17957
18544
  }
17958
18545
  });
17959
- //#endregion
17960
- //#region components/page-header/index.tsx
18546
+ // components/page-header/index.tsx
17961
18547
  var PageHeader = /* @__PURE__ */ defineComponent({
17962
18548
  name: "PageHeader",
17963
18549
  props: {
@@ -17983,8 +18569,7 @@ var PageHeader = /* @__PURE__ */ defineComponent({
17983
18569
  };
17984
18570
  }
17985
18571
  });
17986
- //#endregion
17987
- //#region components/poptip/index.tsx
18572
+ // components/poptip/index.tsx
17988
18573
  var poptipProps = {
17989
18574
  dark: Boolean,
17990
18575
  show: Boolean,
@@ -18000,6 +18585,7 @@ var poptipProps = {
18000
18585
  type: String,
18001
18586
  default: "hover"
18002
18587
  },
18588
+ arrowPointAtCenter: Boolean,
18003
18589
  placement: {
18004
18590
  type: String,
18005
18591
  default: "top"
@@ -18028,6 +18614,7 @@ var Poptip = /* @__PURE__ */ defineComponent({
18028
18614
  "open": visible.value,
18029
18615
  "trigger": props.trigger,
18030
18616
  "placement": props.placement,
18617
+ "arrowPointAtCenter": props.arrowPointAtCenter,
18031
18618
  "panelOnly": props.panelOnly,
18032
18619
  "arrow": true,
18033
18620
  "respectDefaultPrevented": false,
@@ -18057,8 +18644,7 @@ var PoptipPanel = /* @__PURE__ */ defineComponent({
18057
18644
  panelOnly: true
18058
18645
  }, slots)
18059
18646
  });
18060
- //#endregion
18061
- //#region components/popconfirm/index.tsx
18647
+ // components/popconfirm/index.tsx
18062
18648
  var popconfirmProps = {
18063
18649
  dark: Boolean,
18064
18650
  show: Boolean,
@@ -18071,6 +18657,7 @@ var popconfirmProps = {
18071
18657
  width: [Number, String],
18072
18658
  okText: { type: String },
18073
18659
  cancelText: { type: String },
18660
+ arrowPointAtCenter: Boolean,
18074
18661
  placement: {
18075
18662
  type: String,
18076
18663
  default: "top"
@@ -18102,6 +18689,7 @@ var Popconfirm = /* @__PURE__ */ defineComponent({
18102
18689
  "open": visible.value,
18103
18690
  "trigger": "click",
18104
18691
  "placement": props.placement,
18692
+ "arrowPointAtCenter": props.arrowPointAtCenter,
18105
18693
  "panelOnly": props.panelOnly,
18106
18694
  "arrow": true,
18107
18695
  "respectDefaultPrevented": false,
@@ -18143,8 +18731,7 @@ var PopconfirmPanel = /* @__PURE__ */ defineComponent({
18143
18731
  panelOnly: true
18144
18732
  }, slots)
18145
18733
  });
18146
- //#endregion
18147
- //#region components/progress/index.tsx
18734
+ // components/progress/index.tsx
18148
18735
  var Progress = /* @__PURE__ */ defineComponent({
18149
18736
  name: "Progress",
18150
18737
  props: {
@@ -18285,8 +18872,7 @@ var Progress = /* @__PURE__ */ defineComponent({
18285
18872
  };
18286
18873
  }
18287
18874
  });
18288
- //#endregion
18289
- //#region components/ripple/engine.ts
18875
+ // components/ripple/engine.ts
18290
18876
  var DEFAULTS = {
18291
18877
  amplitude: .5,
18292
18878
  speed: .65,
@@ -18762,8 +19348,7 @@ function createRipple(elements, options = {}) {
18762
19348
  }
18763
19349
  };
18764
19350
  }
18765
- //#endregion
18766
- //#region components/ripple/index.tsx
19351
+ // components/ripple/index.tsx
18767
19352
  var Ripple = /* @__PURE__ */ defineComponent({
18768
19353
  name: "Ripple",
18769
19354
  inheritAttrs: false,
@@ -18891,15 +19476,13 @@ var Ripple = /* @__PURE__ */ defineComponent({
18891
19476
  };
18892
19477
  }
18893
19478
  });
18894
- //#endregion
18895
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js
19479
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/can-promise.js
18896
19480
  var require_can_promise = /* @__PURE__ */ __commonJSMin(((exports, module) => {
18897
19481
  module.exports = function() {
18898
19482
  return typeof Promise === "function" && Promise.prototype && Promise.prototype.then;
18899
19483
  };
18900
19484
  }));
18901
- //#endregion
18902
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js
19485
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js
18903
19486
  var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
18904
19487
  var toSJISFunction;
18905
19488
  var CODEWORDS_COUNT = [
@@ -18990,8 +19573,7 @@ var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
18990
19573
  return toSJISFunction(kanji);
18991
19574
  };
18992
19575
  }));
18993
- //#endregion
18994
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js
19576
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-level.js
18995
19577
  var require_error_correction_level = /* @__PURE__ */ __commonJSMin(((exports) => {
18996
19578
  exports.L = { bit: 1 };
18997
19579
  exports.M = { bit: 0 };
@@ -19023,8 +19605,7 @@ var require_error_correction_level = /* @__PURE__ */ __commonJSMin(((exports) =>
19023
19605
  }
19024
19606
  };
19025
19607
  }));
19026
- //#endregion
19027
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js
19608
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-buffer.js
19028
19609
  var require_bit_buffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19029
19610
  function BitBuffer() {
19030
19611
  this.buffer = [];
@@ -19050,8 +19631,7 @@ var require_bit_buffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19050
19631
  };
19051
19632
  module.exports = BitBuffer;
19052
19633
  }));
19053
- //#endregion
19054
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js
19634
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/bit-matrix.js
19055
19635
  var require_bit_matrix = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19056
19636
  /**
19057
19637
  * Helper class to handle QR Code symbol modules
@@ -19111,8 +19691,7 @@ var require_bit_matrix = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19111
19691
  };
19112
19692
  module.exports = BitMatrix;
19113
19693
  }));
19114
- //#endregion
19115
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js
19694
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alignment-pattern.js
19116
19695
  var require_alignment_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
19117
19696
  /**
19118
19697
  * Alignment pattern are fixed reference pattern in defined positions
@@ -19179,8 +19758,7 @@ var require_alignment_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
19179
19758
  return coords;
19180
19759
  };
19181
19760
  }));
19182
- //#endregion
19183
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js
19761
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/finder-pattern.js
19184
19762
  var require_finder_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
19185
19763
  var getSymbolSize = require_utils$1().getSymbolSize;
19186
19764
  var FINDER_PATTERN_SIZE = 7;
@@ -19200,8 +19778,7 @@ var require_finder_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
19200
19778
  ];
19201
19779
  };
19202
19780
  }));
19203
- //#endregion
19204
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js
19781
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mask-pattern.js
19205
19782
  var require_mask_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
19206
19783
  /**
19207
19784
  * Data mask pattern reference
@@ -19264,18 +19841,18 @@ var require_mask_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
19264
19841
  sameCountCol = sameCountRow = 0;
19265
19842
  lastCol = lastRow = null;
19266
19843
  for (let col = 0; col < size; col++) {
19267
- let module$1 = data.get(row, col);
19268
- if (module$1 === lastCol) sameCountCol++;
19844
+ let module = data.get(row, col);
19845
+ if (module === lastCol) sameCountCol++;
19269
19846
  else {
19270
19847
  if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5);
19271
- lastCol = module$1;
19848
+ lastCol = module;
19272
19849
  sameCountCol = 1;
19273
19850
  }
19274
- module$1 = data.get(col, row);
19275
- if (module$1 === lastRow) sameCountRow++;
19851
+ module = data.get(col, row);
19852
+ if (module === lastRow) sameCountRow++;
19276
19853
  else {
19277
19854
  if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5);
19278
- lastRow = module$1;
19855
+ lastRow = module;
19279
19856
  sameCountRow = 1;
19280
19857
  }
19281
19858
  }
@@ -19391,8 +19968,7 @@ var require_mask_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
19391
19968
  return bestPattern;
19392
19969
  };
19393
19970
  }));
19394
- //#endregion
19395
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js
19971
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/error-correction-code.js
19396
19972
  var require_error_correction_code = /* @__PURE__ */ __commonJSMin(((exports) => {
19397
19973
  var ECLevel = require_error_correction_level();
19398
19974
  var EC_BLOCKS_TABLE = [
@@ -19754,8 +20330,7 @@ var require_error_correction_code = /* @__PURE__ */ __commonJSMin(((exports) =>
19754
20330
  }
19755
20331
  };
19756
20332
  }));
19757
- //#endregion
19758
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js
20333
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/galois-field.js
19759
20334
  var require_galois_field = /* @__PURE__ */ __commonJSMin(((exports) => {
19760
20335
  var EXP_TABLE = /* @__PURE__ */ new Uint8Array(512);
19761
20336
  var LOG_TABLE = /* @__PURE__ */ new Uint8Array(256);
@@ -19800,8 +20375,7 @@ var require_galois_field = /* @__PURE__ */ __commonJSMin(((exports) => {
19800
20375
  return EXP_TABLE[LOG_TABLE[x] + LOG_TABLE[y]];
19801
20376
  };
19802
20377
  }));
19803
- //#endregion
19804
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js
20378
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/polynomial.js
19805
20379
  var require_polynomial = /* @__PURE__ */ __commonJSMin(((exports) => {
19806
20380
  var GF = require_galois_field();
19807
20381
  /**
@@ -19847,8 +20421,7 @@ var require_polynomial = /* @__PURE__ */ __commonJSMin(((exports) => {
19847
20421
  return poly;
19848
20422
  };
19849
20423
  }));
19850
- //#endregion
19851
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js
20424
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/reed-solomon-encoder.js
19852
20425
  var require_reed_solomon_encoder = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19853
20426
  var Polynomial = require_polynomial();
19854
20427
  function ReedSolomonEncoder(degree) {
@@ -19887,8 +20460,7 @@ var require_reed_solomon_encoder = /* @__PURE__ */ __commonJSMin(((exports, modu
19887
20460
  };
19888
20461
  module.exports = ReedSolomonEncoder;
19889
20462
  }));
19890
- //#endregion
19891
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js
20463
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version-check.js
19892
20464
  var require_version_check = /* @__PURE__ */ __commonJSMin(((exports) => {
19893
20465
  /**
19894
20466
  * Check if QR Code version is valid
@@ -19900,8 +20472,7 @@ var require_version_check = /* @__PURE__ */ __commonJSMin(((exports) => {
19900
20472
  return !isNaN(version) && version >= 1 && version <= 40;
19901
20473
  };
19902
20474
  }));
19903
- //#endregion
19904
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js
20475
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/regex.js
19905
20476
  var require_regex = /* @__PURE__ */ __commonJSMin(((exports) => {
19906
20477
  var numeric = "[0-9]+";
19907
20478
  var alphanumeric = "[A-Z $%*+\\-./:]+";
@@ -19926,8 +20497,7 @@ var require_regex = /* @__PURE__ */ __commonJSMin(((exports) => {
19926
20497
  return TEST_ALPHANUMERIC.test(str);
19927
20498
  };
19928
20499
  }));
19929
- //#endregion
19930
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js
20500
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/mode.js
19931
20501
  var require_mode = /* @__PURE__ */ __commonJSMin(((exports) => {
19932
20502
  var VersionCheck = require_version_check();
19933
20503
  var Regex = require_regex();
@@ -20083,8 +20653,7 @@ var require_mode = /* @__PURE__ */ __commonJSMin(((exports) => {
20083
20653
  }
20084
20654
  };
20085
20655
  }));
20086
- //#endregion
20087
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js
20656
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/version.js
20088
20657
  var require_version = /* @__PURE__ */ __commonJSMin(((exports) => {
20089
20658
  var Utils = require_utils$1();
20090
20659
  var ECCode = require_error_correction_code();
@@ -20180,8 +20749,7 @@ var require_version = /* @__PURE__ */ __commonJSMin(((exports) => {
20180
20749
  return version << 12 | d;
20181
20750
  };
20182
20751
  }));
20183
- //#endregion
20184
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js
20752
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/format-info.js
20185
20753
  var require_format_info = /* @__PURE__ */ __commonJSMin(((exports) => {
20186
20754
  var Utils = require_utils$1();
20187
20755
  var G15 = 1335;
@@ -20204,8 +20772,7 @@ var require_format_info = /* @__PURE__ */ __commonJSMin(((exports) => {
20204
20772
  return (data << 10 | d) ^ G15_MASK;
20205
20773
  };
20206
20774
  }));
20207
- //#endregion
20208
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js
20775
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/numeric-data.js
20209
20776
  var require_numeric_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20210
20777
  var Mode = require_mode();
20211
20778
  function NumericData(data) {
@@ -20237,8 +20804,7 @@ var require_numeric_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20237
20804
  };
20238
20805
  module.exports = NumericData;
20239
20806
  }));
20240
- //#endregion
20241
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js
20807
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/alphanumeric-data.js
20242
20808
  var require_alphanumeric_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20243
20809
  var Mode = require_mode();
20244
20810
  /**
@@ -20321,8 +20887,7 @@ var require_alphanumeric_data = /* @__PURE__ */ __commonJSMin(((exports, module)
20321
20887
  };
20322
20888
  module.exports = AlphanumericData;
20323
20889
  }));
20324
- //#endregion
20325
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js
20890
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/byte-data.js
20326
20891
  var require_byte_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20327
20892
  var Mode = require_mode();
20328
20893
  function ByteData(data) {
@@ -20344,8 +20909,7 @@ var require_byte_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20344
20909
  };
20345
20910
  module.exports = ByteData;
20346
20911
  }));
20347
- //#endregion
20348
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js
20912
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/kanji-data.js
20349
20913
  var require_kanji_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20350
20914
  var Mode = require_mode();
20351
20915
  var Utils = require_utils$1();
@@ -20375,8 +20939,7 @@ var require_kanji_data = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20375
20939
  };
20376
20940
  module.exports = KanjiData;
20377
20941
  }));
20378
- //#endregion
20379
- //#region node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js
20942
+ // node_modules/.pnpm/dijkstrajs@1.0.3/node_modules/dijkstrajs/dijkstra.js
20380
20943
  var require_dijkstra = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20381
20944
  /******************************************************************************
20382
20945
  * Created 2008-08-19.
@@ -20491,8 +21054,7 @@ var require_dijkstra = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20491
21054
  };
20492
21055
  if (typeof module !== "undefined") module.exports = dijkstra;
20493
21056
  }));
20494
- //#endregion
20495
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js
21057
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/segments.js
20496
21058
  var require_segments = /* @__PURE__ */ __commonJSMin(((exports) => {
20497
21059
  var Mode = require_mode();
20498
21060
  var NumericData = require_numeric_data();
@@ -20770,8 +21332,7 @@ var require_segments = /* @__PURE__ */ __commonJSMin(((exports) => {
20770
21332
  return exports.fromArray(getSegmentsFromString(data, Utils.isKanjiModeEnabled()));
20771
21333
  };
20772
21334
  }));
20773
- //#endregion
20774
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js
21335
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/qrcode.js
20775
21336
  var require_qrcode = /* @__PURE__ */ __commonJSMin(((exports) => {
20776
21337
  var Utils = require_utils$1();
20777
21338
  var ECLevel = require_error_correction_level();
@@ -21065,8 +21626,7 @@ var require_qrcode = /* @__PURE__ */ __commonJSMin(((exports) => {
21065
21626
  return createSymbol(data, version, errorCorrectionLevel, mask);
21066
21627
  };
21067
21628
  }));
21068
- //#endregion
21069
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js
21629
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js
21070
21630
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
21071
21631
  function hex2rgba(hex) {
21072
21632
  if (typeof hex === "number") hex = hex.toString();
@@ -21133,8 +21693,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
21133
21693
  }
21134
21694
  };
21135
21695
  }));
21136
- //#endregion
21137
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js
21696
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/canvas.js
21138
21697
  var require_canvas = /* @__PURE__ */ __commonJSMin(((exports) => {
21139
21698
  var Utils = require_utils();
21140
21699
  function clearCanvas(ctx, canvas, size) {
@@ -21182,8 +21741,7 @@ var require_canvas = /* @__PURE__ */ __commonJSMin(((exports) => {
21182
21741
  return canvasEl.toDataURL(type, rendererOpts.quality);
21183
21742
  };
21184
21743
  }));
21185
- //#endregion
21186
- //#region node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js
21744
+ // node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/svg-tag.js
21187
21745
  var require_svg_tag = /* @__PURE__ */ __commonJSMin(((exports) => {
21188
21746
  var Utils = require_utils();
21189
21747
  function getColorAttrib(color, attrib) {
@@ -21233,8 +21791,7 @@ var require_svg_tag = /* @__PURE__ */ __commonJSMin(((exports) => {
21233
21791
  return svgTag;
21234
21792
  };
21235
21793
  }));
21236
- //#endregion
21237
- //#region components/spin/index.tsx
21794
+ // components/spin/index.tsx
21238
21795
  var import_browser = (/* @__PURE__ */ __commonJSMin(((exports) => {
21239
21796
  var canPromise = require_can_promise();
21240
21797
  var QRCode = require_qrcode();
@@ -21348,8 +21905,7 @@ var Spin = /* @__PURE__ */ defineComponent({
21348
21905
  };
21349
21906
  }
21350
21907
  });
21351
- //#endregion
21352
- //#region components/qrcode/index.tsx
21908
+ // components/qrcode/index.tsx
21353
21909
  var PAINTED_THEMES$5 = [
21354
21910
  "fill",
21355
21911
  "outline",
@@ -21608,8 +22164,7 @@ var QRCode = /* @__PURE__ */ defineComponent({
21608
22164
  };
21609
22165
  }
21610
22166
  });
21611
- //#endregion
21612
- //#region components/radio/radio.tsx
22167
+ // components/radio/radio.tsx
21613
22168
  var PAINTED_THEMES$4 = ["fill", "outline"];
21614
22169
  var radio_default = markFormFieldComponent(/* @__PURE__ */ defineComponent({
21615
22170
  name: "Radio",
@@ -21704,8 +22259,7 @@ var radio_default = markFormFieldComponent(/* @__PURE__ */ defineComponent({
21704
22259
  };
21705
22260
  }
21706
22261
  }));
21707
- //#endregion
21708
- //#region components/radio/radio-button.tsx
22262
+ // components/radio/radio-button.tsx
21709
22263
  function _isSlot$6(s) {
21710
22264
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
21711
22265
  }
@@ -21783,8 +22337,7 @@ var radio_button_default = markFormFieldComponent(/* @__PURE__ */ defineComponen
21783
22337
  };
21784
22338
  }
21785
22339
  }));
21786
- //#endregion
21787
- //#region components/radio/radio-group.tsx
22340
+ // components/radio/radio-group.tsx
21788
22341
  var FormRadioGroup = markFormFieldComponent(/* @__PURE__ */ defineComponent({
21789
22342
  name: "RadioGroup",
21790
22343
  props: {
@@ -21893,8 +22446,12 @@ var FormRadioGroup = markFormFieldComponent(/* @__PURE__ */ defineComponent({
21893
22446
  };
21894
22447
  }
21895
22448
  }));
21896
- //#endregion
21897
- //#region components/segmented/index.tsx
22449
+ // components/segmented/index.tsx
22450
+ var isOptionObject = (option) => typeof option === "object" && option !== null;
22451
+ var normalizeOptions = (options) => options.map((option) => isOptionObject(option) ? option : {
22452
+ label: option,
22453
+ value: option
22454
+ });
21898
22455
  var FormSegmented = markFormFieldComponent(/* @__PURE__ */ defineComponent({
21899
22456
  name: "Segmented",
21900
22457
  props: {
@@ -21929,6 +22486,13 @@ var FormSegmented = markFormFieldComponent(/* @__PURE__ */ defineComponent({
21929
22486
  const field = useFormField(true);
21930
22487
  const appearance = useFormAppearance(props, field);
21931
22488
  const currentValue = computed(() => field?.prop ? field.value.value : initialModel.value);
22489
+ const items = computed(() => normalizeOptions(props.options));
22490
+ const focusValue = computed(() => {
22491
+ const list = items.value;
22492
+ const selected = list.find((item) => item.value === currentValue.value);
22493
+ if (selected && !selected.disabled) return selected.value;
22494
+ return list.find((item) => !item.disabled)?.value;
22495
+ });
21932
22496
  const rootRef = ref();
21933
22497
  const itemRefs = /* @__PURE__ */ new Map();
21934
22498
  const indicatorStyle = ref({});
@@ -21969,7 +22533,7 @@ var FormSegmented = markFormFieldComponent(/* @__PURE__ */ defineComponent({
21969
22533
  "Home",
21970
22534
  "End"
21971
22535
  ].includes(event.key)) return;
21972
- const available = props.options.filter((option) => !option.disabled);
22536
+ const available = items.value.filter((option) => !option.disabled);
21973
22537
  if (!available.length || props.disabled || field?.disabled.value || props.readonly || field?.readonly.value) return;
21974
22538
  event.preventDefault();
21975
22539
  const current = available.findIndex((option) => option.value === currentValue.value);
@@ -22015,11 +22579,12 @@ var FormSegmented = markFormFieldComponent(/* @__PURE__ */ defineComponent({
22015
22579
  ],
22016
22580
  "role": "radiogroup"
22017
22581
  }, resolveFormControlAttrs(attrs, field), {
22582
+ "aria-orientation": isVertical.value ? "vertical" : "horizontal",
22018
22583
  "aria-disabled": props.disabled || field?.disabled.value || void 0,
22019
22584
  "aria-readonly": props.readonly || field?.readonly.value || void 0,
22020
22585
  "onFocusout": () => field?.blur(),
22021
22586
  "onKeydown": move
22022
- }), [props.options.map((option) => {
22587
+ }), [items.value.map((option) => {
22023
22588
  const selected = option.value === currentValue.value;
22024
22589
  return createVNode("button", {
22025
22590
  "key": option.value,
@@ -22029,7 +22594,7 @@ var FormSegmented = markFormFieldComponent(/* @__PURE__ */ defineComponent({
22029
22594
  "role": "radio",
22030
22595
  "aria-checked": selected,
22031
22596
  "disabled": props.disabled || field?.disabled.value || option.disabled,
22032
- "tabindex": selected ? 0 : -1,
22597
+ "tabindex": option.value === focusValue.value ? 0 : -1,
22033
22598
  "onClick": () => select(option)
22034
22599
  }, [option.icon && createVNode(Icon, { "type": option.icon }, null), createVNode("span", null, [slots.label?.({
22035
22600
  option,
@@ -22042,8 +22607,7 @@ var FormSegmented = markFormFieldComponent(/* @__PURE__ */ defineComponent({
22042
22607
  };
22043
22608
  }
22044
22609
  }));
22045
- //#endregion
22046
- //#region components/rate/star.tsx
22610
+ // components/rate/star.tsx
22047
22611
  function _isSlot$5(s) {
22048
22612
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
22049
22613
  }
@@ -22232,8 +22796,7 @@ var rate_default = markFormFieldComponent(/* @__PURE__ */ defineComponent({
22232
22796
  };
22233
22797
  }
22234
22798
  }));
22235
- //#endregion
22236
- //#region components/result/result.tsx
22799
+ // components/result/result.tsx
22237
22800
  var resultProps = {
22238
22801
  status: {
22239
22802
  type: String,
@@ -22260,8 +22823,7 @@ var statusIcons = {
22260
22823
  "404": Info,
22261
22824
  "500": CircleX
22262
22825
  };
22263
- //#endregion
22264
- //#region components/result/index.ts
22826
+ // components/result/index.ts
22265
22827
  var result_default = /* @__PURE__ */ defineComponent({
22266
22828
  name: "Result",
22267
22829
  inheritAttrs: false,
@@ -22295,8 +22857,7 @@ var result_default = /* @__PURE__ */ defineComponent({
22295
22857
  };
22296
22858
  }
22297
22859
  });
22298
- //#endregion
22299
- //#region components/feedback-panel/feedback-panel.tsx
22860
+ // components/feedback-panel/feedback-panel.tsx
22300
22861
  var PAINTED_THEMES$3 = [
22301
22862
  "fill",
22302
22863
  "outline",
@@ -22336,8 +22897,7 @@ var symbols = {
22336
22897
  caution: TriangleAlert,
22337
22898
  neutral: Info
22338
22899
  };
22339
- //#endregion
22340
- //#region components/feedback-panel/index.ts
22900
+ // components/feedback-panel/index.ts
22341
22901
  var feedback_panel_default = /* @__PURE__ */ defineComponent({
22342
22902
  name: "FeedbackPanel",
22343
22903
  inheritAttrs: false,
@@ -22373,8 +22933,7 @@ var feedback_panel_default = /* @__PURE__ */ defineComponent({
22373
22933
  };
22374
22934
  }
22375
22935
  });
22376
- //#endregion
22377
- //#region components/config/index.ts
22936
+ // components/config/index.ts
22378
22937
  var ConfigProvider = defineComponent({
22379
22938
  name: "ConfigProvider",
22380
22939
  props: {
@@ -22410,8 +22969,7 @@ var ConfigProvider = defineComponent({
22410
22969
  };
22411
22970
  }
22412
22971
  });
22413
- //#endregion
22414
- //#region components/skeleton/types.ts
22972
+ // components/skeleton/types.ts
22415
22973
  var skeletonLoadingProps = {
22416
22974
  animated: Boolean,
22417
22975
  loading: Boolean,
@@ -22457,8 +23015,7 @@ var skeletonTextProps = {
22457
23015
  width: Number,
22458
23016
  size: String
22459
23017
  };
22460
- //#endregion
22461
- //#region components/skeleton/use-skeleton-loading.ts
23018
+ // components/skeleton/use-skeleton-loading.ts
22462
23019
  var useSkeletonLoading = (loading, delay) => {
22463
23020
  const show = ref(false);
22464
23021
  let timer;
@@ -22488,8 +23045,7 @@ var useSkeletonLoading = (loading, delay) => {
22488
23045
  onBeforeUnmount(clearTimer);
22489
23046
  return show;
22490
23047
  };
22491
- //#endregion
22492
- //#region components/skeleton/skeleton.tsx
23048
+ // components/skeleton/skeleton.tsx
22493
23049
  var Skeleton = /* @__PURE__ */ defineComponent({
22494
23050
  name: "Skeleton",
22495
23051
  props: skeletonProps,
@@ -22537,8 +23093,7 @@ var Skeleton = /* @__PURE__ */ defineComponent({
22537
23093
  };
22538
23094
  }
22539
23095
  });
22540
- //#endregion
22541
- //#region components/skeleton/skeleton-avatar.tsx
23096
+ // components/skeleton/skeleton-avatar.tsx
22542
23097
  var SkeletonAvatar = /* @__PURE__ */ defineComponent({
22543
23098
  name: "SkeletonAvatar",
22544
23099
  props: skeletonAvatarProps,
@@ -22566,8 +23121,7 @@ var SkeletonAvatar = /* @__PURE__ */ defineComponent({
22566
23121
  };
22567
23122
  }
22568
23123
  });
22569
- //#endregion
22570
- //#region components/skeleton/skeleton-button.tsx
23124
+ // components/skeleton/skeleton-button.tsx
22571
23125
  var SkeletonButton = /* @__PURE__ */ defineComponent({
22572
23126
  name: "SkeletonButton",
22573
23127
  props: skeletonButtonProps,
@@ -22593,8 +23147,7 @@ var SkeletonButton = /* @__PURE__ */ defineComponent({
22593
23147
  };
22594
23148
  }
22595
23149
  });
22596
- //#endregion
22597
- //#region components/skeleton/skeleton-image.tsx
23150
+ // components/skeleton/skeleton-image.tsx
22598
23151
  var SkeletonImage = /* @__PURE__ */ defineComponent({
22599
23152
  name: "SkeletonImage",
22600
23153
  props: skeletonImageProps,
@@ -22630,8 +23183,7 @@ var SkeletonImage = /* @__PURE__ */ defineComponent({
22630
23183
  };
22631
23184
  }
22632
23185
  });
22633
- //#endregion
22634
- //#region components/skeleton/skeleton-text.tsx
23186
+ // components/skeleton/skeleton-text.tsx
22635
23187
  var SkeletonText = /* @__PURE__ */ defineComponent({
22636
23188
  name: "SkeletonText",
22637
23189
  props: skeletonTextProps,
@@ -22653,8 +23205,7 @@ var SkeletonText = /* @__PURE__ */ defineComponent({
22653
23205
  };
22654
23206
  }
22655
23207
  });
22656
- //#endregion
22657
- //#region components/stat-card/utils/countup.ts
23208
+ // components/stat-card/utils/countup.ts
22658
23209
  /**
22659
23210
  * Animates a number by counting to it.
22660
23211
  * playground: stackblitz.com/edit/countup-typescript
@@ -22935,8 +23486,7 @@ var CountUp = class CountUp {
22935
23486
  return parseFloat(num);
22936
23487
  }
22937
23488
  };
22938
- //#endregion
22939
- //#region components/stat-card/countup.tsx
23489
+ // components/stat-card/countup.tsx
22940
23490
  var CountUpNumber = /* @__PURE__ */ defineComponent({
22941
23491
  name: "CountUpNumber",
22942
23492
  props: {
@@ -23006,8 +23556,7 @@ var CountUpNumber = /* @__PURE__ */ defineComponent({
23006
23556
  }, null);
23007
23557
  }
23008
23558
  });
23009
- //#endregion
23010
- //#region components/stat-card/stat-number.tsx
23559
+ // components/stat-card/stat-number.tsx
23011
23560
  var StatNumber = /* @__PURE__ */ defineComponent({
23012
23561
  name: "StatNumber",
23013
23562
  props: {
@@ -23065,8 +23614,7 @@ var StatNumber = /* @__PURE__ */ defineComponent({
23065
23614
  };
23066
23615
  }
23067
23616
  });
23068
- //#endregion
23069
- //#region components/stat-card/utils/stat-item-key.ts
23617
+ // components/stat-card/utils/stat-item-key.ts
23070
23618
  /**
23071
23619
  * Identity of one `items` entry across renders.
23072
23620
  *
@@ -23078,8 +23626,7 @@ var StatNumber = /* @__PURE__ */ defineComponent({
23078
23626
  function statItemKey(item, index) {
23079
23627
  return String(item.key ?? `kui-item-${index}`);
23080
23628
  }
23081
- //#endregion
23082
- //#region components/stat-card/stat-card.tsx
23629
+ // components/stat-card/stat-card.tsx
23083
23630
  var statCardProps = {
23084
23631
  title: [
23085
23632
  String,
@@ -23258,8 +23805,7 @@ var steps_default = /* @__PURE__ */ defineComponent({
23258
23805
  };
23259
23806
  }
23260
23807
  });
23261
- //#endregion
23262
- //#region components/switch/index.tsx
23808
+ // components/switch/index.tsx
23263
23809
  var FormSwitch = markFormFieldComponent(/* @__PURE__ */ defineComponent({
23264
23810
  name: "Switch",
23265
23811
  inheritAttrs: false,
@@ -23537,8 +24083,7 @@ var SplitterPanel = /* @__PURE__ */ defineComponent({
23537
24083
  return () => createVNode("div", mergeProps(attrs, { "class": ["k-splitter-panel", attrs.class] }), [slots.default?.()]);
23538
24084
  }
23539
24085
  });
23540
- //#endregion
23541
- //#region components/table/utils.ts
24086
+ // components/table/utils.ts
23542
24087
  var flattenColumns = (columns) => columns.flatMap((column) => column.children?.length ? flattenColumns(column.children) : column);
23543
24088
  var countColumnLeaves = (column) => column.children?.length ? column.children.reduce((sum, child) => sum + countColumnLeaves(child), 0) : 1;
23544
24089
  /**
@@ -23640,8 +24185,7 @@ var getSyntheticRowKey = (record) => {
23640
24185
  * 本函数与上面的 `getSyntheticRowKey` 在两个仓库里是逐字节相同的副本,改一边必须同步另一边。
23641
24186
  */
23642
24187
  var resolveRowKey = (record, rowKey) => {
23643
- if (typeof rowKey === "function") return rowKey(record);
23644
- const value = getRecordValue(record, rowKey);
24188
+ const value = typeof rowKey === "function" ? rowKey(record) : getRecordValue(record, rowKey);
23645
24189
  return typeof value === "string" || typeof value === "number" ? value : getSyntheticRowKey(record);
23646
24190
  };
23647
24191
  var flattenTreeData = ({ data, childrenColumnName, expandedKeys, getKey, sortRecords = (records) => records }) => {
@@ -23699,8 +24243,7 @@ var resolveCellEllipsis = (columnValue, tableValue) => {
23699
24243
  tooltip: options.tooltip
23700
24244
  };
23701
24245
  };
23702
- //#endregion
23703
- //#region components/table/column-setting.tsx
24246
+ // components/table/column-setting.tsx
23704
24247
  var TableColumnSetting = /* @__PURE__ */ defineComponent({
23705
24248
  name: "TableColumnSetting",
23706
24249
  props: {
@@ -23774,8 +24317,7 @@ var TableColumnSetting = /* @__PURE__ */ defineComponent({
23774
24317
  });
23775
24318
  }
23776
24319
  });
23777
- //#endregion
23778
- //#region components/table/index.tsx
24320
+ // components/table/index.tsx
23779
24321
  /**
23780
24322
  * 列宽基准,与 kui-react `components/table/index.tsx` 的同名常量保持一致。
23781
24323
  *
@@ -24193,11 +24735,12 @@ var Table = /* @__PURE__ */ defineComponent({
24193
24735
  body: bodyStyles
24194
24736
  };
24195
24737
  });
24738
+ const selectionFixedLast = computed(() => pingLeft.value && flattedColumns.value[0]?.fixed !== "left");
24196
24739
  const getFixedClass = (col, index, colSpan = 1) => {
24197
24740
  const cls = [];
24198
24741
  if (col.fixed === "left") {
24199
24742
  cls.push("k-table-cell-fix-left");
24200
- if (flattedColumns.value[index + 1]?.fixed !== "left") cls.push("k-table-cell-fix-left-last");
24743
+ if (flattedColumns.value[index + colSpan]?.fixed !== "left") cls.push("k-table-cell-fix-left-last");
24201
24744
  }
24202
24745
  if (col.fixed === "right") {
24203
24746
  cls.push("k-table-cell-fix-right");
@@ -24348,7 +24891,7 @@ var Table = /* @__PURE__ */ defineComponent({
24348
24891
  "rowspan": maxDepth,
24349
24892
  "class": [
24350
24893
  "k-table-cell-fix-left",
24351
- pingLeft.value && "k-table-cell-fix-left-last",
24894
+ selectionFixedLast.value && "k-table-cell-fix-left-last",
24352
24895
  !flattedColumns.value.length && "k-table-cell-last-column"
24353
24896
  ],
24354
24897
  "style": { left: 0 }
@@ -24454,7 +24997,7 @@ var Table = /* @__PURE__ */ defineComponent({
24454
24997
  }, [props.checkable && createVNode("td", {
24455
24998
  "class": [
24456
24999
  "k-table-cell-fix-left",
24457
- pingLeft.value && "k-table-cell-fix-left-last",
25000
+ selectionFixedLast.value && "k-table-cell-fix-left-last",
24458
25001
  !flattedColumns.value.length && "k-table-cell-last-column"
24459
25002
  ],
24460
25003
  "style": {
@@ -24560,7 +25103,7 @@ var Table = /* @__PURE__ */ defineComponent({
24560
25103
  "ref": bodyWrapperRef,
24561
25104
  "style": {
24562
25105
  overflowY: props.scroll.y ? "scroll" : "auto",
24563
- overflowX: props.data?.length ? "auto" : "hidden",
25106
+ overflowX: "auto",
24564
25107
  maxHeight: props.scroll.y ? typeof props.scroll.y === "number" ? `${props.scroll.y}px` : props.scroll.y : void 0
24565
25108
  },
24566
25109
  "onScroll": (e) => handleBodyScroll(e.currentTarget)
@@ -24585,8 +25128,7 @@ var Table = /* @__PURE__ */ defineComponent({
24585
25128
  };
24586
25129
  }
24587
25130
  });
24588
- //#endregion
24589
- //#region components/kanban/index.tsx
25131
+ // components/kanban/index.tsx
24590
25132
  var toRenderKey = (value) => `${typeof value}:${String(value)}`;
24591
25133
  var PAINTED_THEMES$1 = [
24592
25134
  "fill",
@@ -24941,8 +25483,7 @@ var tour_default = /* @__PURE__ */ defineComponent({
24941
25483
  };
24942
25484
  }
24943
25485
  });
24944
- //#endregion
24945
- //#region components/transfer/index.tsx
25486
+ // components/transfer/index.tsx
24946
25487
  function _isSlot$3(s) {
24947
25488
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
24948
25489
  }
@@ -25150,8 +25691,7 @@ var transfer_default = markFormFieldComponent(/* @__PURE__ */ defineComponent({
25150
25691
  };
25151
25692
  }
25152
25693
  }));
25153
- //#endregion
25154
- //#region components/typography/index.tsx
25694
+ // components/typography/index.tsx
25155
25695
  function _isSlot$2(s) {
25156
25696
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
25157
25697
  }
@@ -25299,8 +25839,7 @@ var TypographyText = createTypography("TypographyText", "span");
25299
25839
  var TypographyParagraph = createTypography("TypographyParagraph", "p");
25300
25840
  var TypographyTitle = createTypography("TypographyTitle", "h2");
25301
25841
  var Typography = createTypography("Typography", "span");
25302
- //#endregion
25303
- //#region components/tabs/tab-panel.tsx
25842
+ // components/tabs/tab-panel.tsx
25304
25843
  var TabPanel = /* @__PURE__ */ defineComponent({
25305
25844
  name: "TabPanel",
25306
25845
  props: {
@@ -25328,8 +25867,7 @@ var TabPanel = /* @__PURE__ */ defineComponent({
25328
25867
  };
25329
25868
  }
25330
25869
  });
25331
- //#endregion
25332
- //#region components/tabs/tabs.tsx
25870
+ // components/tabs/tabs.tsx
25333
25871
  function _isSlot$1(s) {
25334
25872
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
25335
25873
  }
@@ -25615,8 +26153,7 @@ var Tabs = /* @__PURE__ */ defineComponent({
25615
26153
  };
25616
26154
  }
25617
26155
  });
25618
- //#endregion
25619
- //#region components/time-line/timeline.tsx
26156
+ // components/time-line/timeline.tsx
25620
26157
  var TimeLine = /* @__PURE__ */ defineComponent({
25621
26158
  name: "TimeLine",
25622
26159
  props: { mode: {
@@ -25638,8 +26175,7 @@ var TimeLine = /* @__PURE__ */ defineComponent({
25638
26175
  };
25639
26176
  }
25640
26177
  });
25641
- //#endregion
25642
- //#region components/time-line/timeline-item.tsx
26178
+ // components/time-line/timeline-item.tsx
25643
26179
  var TimeLineItem = /* @__PURE__ */ defineComponent({
25644
26180
  name: "TimeLineItem",
25645
26181
  props: {
@@ -25678,11 +26214,9 @@ var TimeLineItem = /* @__PURE__ */ defineComponent({
25678
26214
  };
25679
26215
  }
25680
26216
  });
25681
- //#endregion
25682
- //#region components/tree/context.ts
26217
+ // components/tree/context.ts
25683
26218
  var treeSelectContextKey = Symbol("tree-select-context");
25684
- //#endregion
25685
- //#region components/tree/utils.ts
26219
+ // components/tree/utils.ts
25686
26220
  var updateParentIndeterminate = (nodes, parentKey) => {
25687
26221
  let parent;
25688
26222
  for (let i = 0; i < nodes.length; i++) if (nodes[i].key === parentKey) {
@@ -25773,8 +26307,7 @@ var buildTree = ({ data, expandedKeys = [], selectedKeys = [], checkedKeys = [],
25773
26307
  }
25774
26308
  return result;
25775
26309
  };
25776
- //#endregion
25777
- //#region components/tree/index.tsx
26310
+ // components/tree/index.tsx
25778
26311
  function _isSlot(s) {
25779
26312
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
25780
26313
  }
@@ -26427,8 +26960,7 @@ var Tree = /* @__PURE__ */ defineComponent({
26427
26960
  };
26428
26961
  }
26429
26962
  });
26430
- //#endregion
26431
- //#region components/tree-select/index.tsx
26963
+ // components/tree-select/index.tsx
26432
26964
  var FormTreeSelect = markFormFieldComponent(/* @__PURE__ */ defineComponent({
26433
26965
  name: "TreeSelect",
26434
26966
  props: {
@@ -26902,8 +27434,7 @@ var FormTreeSelect = markFormFieldComponent(/* @__PURE__ */ defineComponent({
26902
27434
  };
26903
27435
  }
26904
27436
  }));
26905
- //#endregion
26906
- //#region components/upload/picture-sort.ts
27437
+ // components/upload/picture-sort.ts
26907
27438
  /** Preview a reorder with transforms; commit data only after the card settles. */
26908
27439
  function startPictureSort(event, card, onSort) {
26909
27440
  const parent = card.parentElement;
@@ -27270,8 +27801,7 @@ var selector_default = /* @__PURE__ */ defineComponent({
27270
27801
  };
27271
27802
  }
27272
27803
  });
27273
- //#endregion
27274
- //#region components/upload/index.tsx
27804
+ // components/upload/index.tsx
27275
27805
  var uploadUid = 0;
27276
27806
  var createUploadUid = () => globalThis.crypto?.randomUUID?.() ?? `k-upload-${Date.now().toString(36)}-${uploadUid++}`;
27277
27807
  var upload_default = markFormFieldComponent(/* @__PURE__ */ defineComponent({
@@ -27782,8 +28312,7 @@ var upload_default = markFormFieldComponent(/* @__PURE__ */ defineComponent({
27782
28312
  };
27783
28313
  }
27784
28314
  }));
27785
- //#endregion
27786
- //#region components/watermark/index.tsx
28315
+ // components/watermark/index.tsx
27787
28316
  var Watermark = /* @__PURE__ */ defineComponent({
27788
28317
  name: "Watermark",
27789
28318
  props: {
@@ -28027,8 +28556,7 @@ var Watermark = /* @__PURE__ */ defineComponent({
28027
28556
  };
28028
28557
  }
28029
28558
  });
28030
- //#endregion
28031
- //#region components/utils/theme.ts
28559
+ // components/utils/theme.ts
28032
28560
  var THEME_KEY = "theme-mode";
28033
28561
  var toggleTheme = () => {
28034
28562
  const isDark = document.documentElement.getAttribute(THEME_KEY) === "dark";
@@ -28076,8 +28604,7 @@ var Theme = {
28076
28604
  });
28077
28605
  }
28078
28606
  };
28079
- //#endregion
28080
- //#region components/components.ts
28607
+ // components/components.ts
28081
28608
  var components_exports = /* @__PURE__ */ __exportAll({
28082
28609
  Affix: () => Affix,
28083
28610
  Alert: () => Alert,
@@ -28125,6 +28652,7 @@ var components_exports = /* @__PURE__ */ __exportAll({
28125
28652
  Footer: () => Footer,
28126
28653
  Form: () => Form,
28127
28654
  FormItem: () => FormItem,
28655
+ GradientPicker: () => gradient_picker_default,
28128
28656
  Grid: () => Grid,
28129
28657
  GridItem: () => GridItem,
28130
28658
  Header: () => Header,
@@ -28205,14 +28733,16 @@ var components_exports = /* @__PURE__ */ __exportAll({
28205
28733
  Upload: () => upload_default,
28206
28734
  VirtualList: () => VirtualList,
28207
28735
  Watermark: () => Watermark,
28736
+ createCornerGradient: () => createCornerGradient,
28737
+ createLinearGradient: () => createLinearGradient,
28738
+ formatGradient: () => formatGradient,
28208
28739
  loading: () => loading,
28209
28740
  message: () => message,
28210
28741
  modal: () => modal,
28211
28742
  notice: () => notice,
28212
28743
  theme: () => Theme
28213
28744
  });
28214
- //#endregion
28215
- //#region components/index.ts
28745
+ // components/index.ts
28216
28746
  var UI = {
28217
28747
  version: void 0,
28218
28748
  lang: {},
@@ -28229,5 +28759,4 @@ var UI = {
28229
28759
  };
28230
28760
  var install = UI.install;
28231
28761
  var version = UI.version;
28232
- //#endregion
28233
- export { Affix, Alert, Anchor, AnchorLink, auto_complete_default as AutoComplete, Avatar, AvatarGroup, BackTop, Badge, Breadcrumb, BreadcrumbItem, Button, ButtonGroup, Calendar, Card, CardMeta, Carousel, CarouselItem, cascader_default as Cascader, check_card_default as CheckCard, check_card_group_default as CheckCardGroup, FormCheckbox as Checkbox, FormCheckboxGroup as CheckboxGroup, Col, Collapse, CollapsePanel, color_picker_default as ColorPicker, ColorPickerPanel, ConfigProvider, Content, FormDatePicker as DatePicker, DatePickerPanel, Descriptions, DescriptionsItem, Divider, Drawer, dropdown_default as Dropdown, DropdownButton, Empty, FeatureCard, feedback_panel_default as FeedbackPanel, FlameWrap, Flex, Footer, Form, FormItem, Grid, GridItem, Header, Icon, Image$1 as Image, ImageGroup, FormInput as Input, input_group_default as InputGroup, input_number_default as InputNumber, input_otp_default as InputOTP, input_tag_default as InputTag, Kanban, Layout, ListPanel, mentions_default as Mentions, Menu, MenuDivider, MenuGroup, MenuItem, MessagePanel, modal_default as Modal, ModalPanel, NoticePanel, Option, Page, PageHeader, Popconfirm, PopconfirmPanel, Poptip, PoptipPanel, popup_default as Popup, Progress, QRCode, radio_default as Radio, radio_button_default as RadioButton, FormRadioGroup as RadioGroup, rate_default as Rate, result_default as Result, Ripple, Row, FormSegmented as Segmented, FormSelect as Select, Sider, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonText, FormSlider as Slider, Space, Spin, Splitter, SplitterPanel, StatCard, StatNumber, Step, steps_default as Steps, SubMenu, FormSwitch as Switch, TabPanel, Table, TableColumnSetting, Tabs, Tag, FormTextArea as TextArea, TimeLine, TimeLineItem, Tooltip, TooltipPanel, tour_default as Tour, transfer_default as Transfer, Tree, FormTreeSelect as TreeSelect, Typography, TypographyParagraph, TypographyText, TypographyTitle, upload_default as Upload, VirtualList, Watermark, UI as default, install, loading, message, modal, notice, Theme as theme, version };
28762
+ export { Affix, Alert, Anchor, AnchorLink, auto_complete_default as AutoComplete, Avatar, AvatarGroup, BackTop, Badge, Breadcrumb, BreadcrumbItem, Button, ButtonGroup, Calendar, Card, CardMeta, Carousel, CarouselItem, cascader_default as Cascader, check_card_default as CheckCard, check_card_group_default as CheckCardGroup, FormCheckbox as Checkbox, FormCheckboxGroup as CheckboxGroup, Col, Collapse, CollapsePanel, color_picker_default as ColorPicker, ColorPickerPanel, ConfigProvider, Content, FormDatePicker as DatePicker, DatePickerPanel, Descriptions, DescriptionsItem, Divider, Drawer, dropdown_default as Dropdown, DropdownButton, Empty, FeatureCard, feedback_panel_default as FeedbackPanel, FlameWrap, Flex, Footer, Form, FormItem, gradient_picker_default as GradientPicker, Grid, GridItem, Header, Icon, Image$1 as Image, ImageGroup, FormInput as Input, input_group_default as InputGroup, input_number_default as InputNumber, input_otp_default as InputOTP, input_tag_default as InputTag, Kanban, Layout, ListPanel, mentions_default as Mentions, Menu, MenuDivider, MenuGroup, MenuItem, MessagePanel, modal_default as Modal, ModalPanel, NoticePanel, Option, Page, PageHeader, Popconfirm, PopconfirmPanel, Poptip, PoptipPanel, popup_default as Popup, Progress, QRCode, radio_default as Radio, radio_button_default as RadioButton, FormRadioGroup as RadioGroup, rate_default as Rate, result_default as Result, Ripple, Row, FormSegmented as Segmented, FormSelect as Select, Sider, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonText, FormSlider as Slider, Space, Spin, Splitter, SplitterPanel, StatCard, StatNumber, Step, steps_default as Steps, SubMenu, FormSwitch as Switch, TabPanel, Table, TableColumnSetting, Tabs, Tag, FormTextArea as TextArea, TimeLine, TimeLineItem, Tooltip, TooltipPanel, tour_default as Tour, transfer_default as Transfer, Tree, FormTreeSelect as TreeSelect, Typography, TypographyParagraph, TypographyText, TypographyTitle, upload_default as Upload, VirtualList, Watermark, createCornerGradient, createLinearGradient, UI as default, formatGradient, install, loading, message, modal, notice, Theme as theme, version };