litos-ui 0.21.0 → 0.22.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 (381) hide show
  1. package/README.md +119 -15
  2. package/README.zh-CN.md +153 -0
  3. package/lib/base.d.ts +1 -0
  4. package/lib/base.js +1 -1
  5. package/lib/button/index.js +4 -4
  6. package/lib/{style-gKR_qwzm.js → button/index.less_inline.js} +2 -3
  7. package/lib/button/style.js +6 -2
  8. package/lib/calendar/index.js +140 -2
  9. package/lib/calendar/index.less_inline.js +4 -0
  10. package/lib/calendar/langs.js +12 -0
  11. package/lib/card/index.js +64 -2
  12. package/lib/card/index.less_inline.js +4 -0
  13. package/lib/carousel/index.js +257 -2
  14. package/lib/carousel/index.less_inline.js +4 -0
  15. package/lib/carousel/item.js +15 -2
  16. package/lib/carousel/item.less_inline.js +4 -0
  17. package/lib/carousel/timer.js +19 -0
  18. package/lib/check/check.d.ts +1 -0
  19. package/lib/check/check.js +117 -0
  20. package/lib/check/check.less_inline.js +4 -0
  21. package/lib/check/checkbox.js +18 -2
  22. package/lib/{checkbox-DhGHJXwI.js → check/checkbox.less_inline.js} +2 -14
  23. package/lib/check/checkbox_group.js +1 -1
  24. package/lib/check/index.d.ts +1 -0
  25. package/lib/{check-DFlwStH9.js → check/index.js} +10 -9
  26. package/lib/check/index.less_inline.js +4 -0
  27. package/lib/check/radio.js +15 -2
  28. package/lib/{radio-C9NPQWGI.js → check/radio.less_inline.js} +2 -11
  29. package/lib/check/radio_group.js +1 -1
  30. package/lib/collapse/index.js +103 -2
  31. package/lib/collapse/index.less_inline.js +4 -0
  32. package/lib/collapse/item.d.ts +1 -0
  33. package/lib/collapse/item.js +118 -2
  34. package/lib/collapse/item.less_inline.js +4 -0
  35. package/lib/collapse/types.d.ts +1 -0
  36. package/lib/color_picker/index.js +42 -2
  37. package/lib/color_picker/index.less_inline.js +4 -0
  38. package/lib/date_picker/index.js +100 -3
  39. package/lib/date_picker/index.less_inline.js +4 -0
  40. package/lib/date_picker_ori/index.js +121 -2
  41. package/lib/date_picker_ori/index.less_inline.js +4 -0
  42. package/lib/description_panel/index.js +54 -2
  43. package/lib/description_panel/index.less_inline.js +4 -0
  44. package/lib/dialog/dialog_box.js +10 -10
  45. package/lib/{dialog_container_style-C1s0aBf7.js → dialog/dialog_container.css_inline.js} +2 -3
  46. package/lib/dialog/dialog_container.js +2 -2
  47. package/lib/dialog/dialog_container_style.js +6 -2
  48. package/lib/dialog/index.js +1 -1
  49. package/lib/entries/base.d.ts +2 -0
  50. package/lib/entries/base.js +2 -0
  51. package/lib/entries/button.d.ts +2 -0
  52. package/lib/entries/button.js +6 -0
  53. package/lib/entries/calendar.d.ts +2 -0
  54. package/lib/entries/calendar.js +6 -0
  55. package/lib/entries/card.d.ts +2 -0
  56. package/lib/entries/card.js +6 -0
  57. package/lib/entries/carousel-item.d.ts +2 -0
  58. package/lib/entries/carousel-item.js +6 -0
  59. package/lib/entries/carousel.d.ts +5 -0
  60. package/lib/entries/carousel.js +6 -0
  61. package/lib/entries/checkbox-group.d.ts +3 -0
  62. package/lib/entries/checkbox-group.js +6 -0
  63. package/lib/entries/checkbox.d.ts +2 -0
  64. package/lib/entries/checkbox.js +6 -0
  65. package/lib/entries/collapse-item.d.ts +3 -0
  66. package/lib/entries/collapse-item.js +6 -0
  67. package/lib/entries/collapse.d.ts +3 -0
  68. package/lib/entries/collapse.js +6 -0
  69. package/lib/entries/color-picker.d.ts +3 -0
  70. package/lib/entries/color-picker.js +6 -0
  71. package/lib/entries/date-picker-ori.d.ts +2 -0
  72. package/lib/entries/date-picker-ori.js +6 -0
  73. package/lib/entries/date-picker.d.ts +9 -0
  74. package/lib/entries/date-picker.js +6 -0
  75. package/lib/entries/description-panel.d.ts +4 -0
  76. package/lib/entries/description-panel.js +6 -0
  77. package/lib/entries/dialog-box.d.ts +6 -0
  78. package/lib/entries/dialog-box.js +2 -0
  79. package/lib/entries/dialog-container.d.ts +4 -0
  80. package/lib/entries/dialog-container.js +6 -0
  81. package/lib/entries/dialog.d.ts +3 -0
  82. package/lib/entries/dialog.js +2 -0
  83. package/lib/entries/form-item.d.ts +2 -0
  84. package/lib/entries/form-item.js +6 -0
  85. package/lib/entries/form.d.ts +3 -0
  86. package/lib/entries/form.js +6 -0
  87. package/lib/entries/icon-arrow-down.d.ts +2 -0
  88. package/lib/entries/icon-arrow-down.js +6 -0
  89. package/lib/entries/icon-arrow-left.d.ts +2 -0
  90. package/lib/entries/icon-arrow-left.js +6 -0
  91. package/lib/entries/icon-arrow-right.d.ts +2 -0
  92. package/lib/entries/icon-arrow-right.js +6 -0
  93. package/lib/entries/icon-arrow-up.d.ts +2 -0
  94. package/lib/entries/icon-arrow-up.js +6 -0
  95. package/lib/entries/icon-base.d.ts +2 -0
  96. package/lib/entries/icon-base.js +6 -0
  97. package/lib/entries/icon-calendar.d.ts +2 -0
  98. package/lib/entries/icon-calendar.js +6 -0
  99. package/lib/entries/icon-caret-bottom.d.ts +2 -0
  100. package/lib/entries/icon-caret-bottom.js +6 -0
  101. package/lib/entries/icon-caret-top.d.ts +2 -0
  102. package/lib/entries/icon-caret-top.js +6 -0
  103. package/lib/entries/icon-close-filled.d.ts +2 -0
  104. package/lib/entries/icon-close-filled.js +6 -0
  105. package/lib/entries/icon-close.d.ts +2 -0
  106. package/lib/entries/icon-close.js +6 -0
  107. package/lib/entries/icon-copy.d.ts +2 -0
  108. package/lib/entries/icon-copy.js +6 -0
  109. package/lib/entries/icon-d-arrow-left.d.ts +2 -0
  110. package/lib/entries/icon-d-arrow-left.js +6 -0
  111. package/lib/entries/icon-d-arrow-right.d.ts +2 -0
  112. package/lib/entries/icon-d-arrow-right.js +6 -0
  113. package/lib/entries/icon-delete.d.ts +2 -0
  114. package/lib/entries/icon-delete.js +6 -0
  115. package/lib/entries/icon-eye-outline.d.ts +2 -0
  116. package/lib/entries/icon-eye-outline.js +6 -0
  117. package/lib/entries/icon-font-icon.d.ts +2 -0
  118. package/lib/entries/icon-font-icon.js +6 -0
  119. package/lib/entries/icon-info.d.ts +2 -0
  120. package/lib/entries/icon-info.js +6 -0
  121. package/lib/entries/icon-loading.d.ts +2 -0
  122. package/lib/entries/icon-loading.js +6 -0
  123. package/lib/entries/icon-minus.d.ts +2 -0
  124. package/lib/entries/icon-minus.js +6 -0
  125. package/lib/entries/icon-moon.d.ts +2 -0
  126. package/lib/entries/icon-moon.js +6 -0
  127. package/lib/entries/icon-more.d.ts +2 -0
  128. package/lib/entries/icon-more.js +6 -0
  129. package/lib/entries/icon-picture.d.ts +2 -0
  130. package/lib/entries/icon-picture.js +6 -0
  131. package/lib/entries/icon-plus.d.ts +2 -0
  132. package/lib/entries/icon-plus.js +6 -0
  133. package/lib/entries/icon-reduction.d.ts +2 -0
  134. package/lib/entries/icon-reduction.js +6 -0
  135. package/lib/entries/icon-refresh-left.d.ts +2 -0
  136. package/lib/entries/icon-refresh-left.js +6 -0
  137. package/lib/entries/icon-refresh-right.d.ts +2 -0
  138. package/lib/entries/icon-refresh-right.js +6 -0
  139. package/lib/entries/icon-refresh.d.ts +2 -0
  140. package/lib/entries/icon-refresh.js +6 -0
  141. package/lib/entries/icon-search.d.ts +2 -0
  142. package/lib/entries/icon-search.js +6 -0
  143. package/lib/entries/icon-select.d.ts +2 -0
  144. package/lib/entries/icon-select.js +6 -0
  145. package/lib/entries/icon-sort.d.ts +2 -0
  146. package/lib/entries/icon-sort.js +6 -0
  147. package/lib/entries/icon-success.d.ts +2 -0
  148. package/lib/entries/icon-success.js +6 -0
  149. package/lib/entries/icon-sun.d.ts +2 -0
  150. package/lib/entries/icon-sun.js +6 -0
  151. package/lib/entries/icon-theme-default.d.ts +2 -0
  152. package/lib/entries/icon-theme-default.js +6 -0
  153. package/lib/entries/icon-warn.d.ts +2 -0
  154. package/lib/entries/icon-warn.js +6 -0
  155. package/lib/entries/icon-zoom-in.d.ts +2 -0
  156. package/lib/entries/icon-zoom-in.js +6 -0
  157. package/lib/entries/icon-zoom-out.d.ts +2 -0
  158. package/lib/entries/icon-zoom-out.js +6 -0
  159. package/lib/entries/image-preview.d.ts +10 -0
  160. package/lib/entries/image-preview.js +6 -0
  161. package/lib/entries/image.d.ts +2 -0
  162. package/lib/entries/image.js +6 -0
  163. package/lib/entries/input-number.d.ts +2 -0
  164. package/lib/entries/input-number.js +6 -0
  165. package/lib/entries/input.d.ts +2 -0
  166. package/lib/entries/input.js +6 -0
  167. package/lib/entries/list.d.ts +3 -0
  168. package/lib/entries/list.js +6 -0
  169. package/lib/entries/loading.d.ts +2 -0
  170. package/lib/entries/loading.js +2 -0
  171. package/lib/entries/mask.d.ts +2 -0
  172. package/lib/entries/mask.js +6 -0
  173. package/lib/entries/md-input.d.ts +2 -0
  174. package/lib/entries/md-input.js +6 -0
  175. package/lib/entries/menu.d.ts +3 -0
  176. package/lib/entries/menu.js +6 -0
  177. package/lib/entries/message.d.ts +6 -0
  178. package/lib/entries/message.js +2 -0
  179. package/lib/entries/modal-box.d.ts +6 -0
  180. package/lib/entries/modal-box.js +2 -0
  181. package/lib/entries/modal.d.ts +4 -0
  182. package/lib/entries/modal.js +6 -0
  183. package/lib/entries/notification.d.ts +7 -0
  184. package/lib/entries/notification.js +6 -0
  185. package/lib/entries/page-header.d.ts +4 -0
  186. package/lib/entries/page-header.js +6 -0
  187. package/lib/entries/pagination.d.ts +9 -0
  188. package/lib/entries/pagination.js +6 -0
  189. package/lib/entries/polygon.d.ts +2 -0
  190. package/lib/entries/polygon.js +6 -0
  191. package/lib/entries/popconfirm.d.ts +3 -0
  192. package/lib/entries/popconfirm.js +2 -0
  193. package/lib/entries/popover.d.ts +1 -0
  194. package/lib/entries/popover.js +2 -0
  195. package/lib/entries/qrcode.d.ts +2 -0
  196. package/lib/entries/qrcode.js +6 -0
  197. package/lib/entries/radio-group.d.ts +3 -0
  198. package/lib/entries/radio-group.js +6 -0
  199. package/lib/entries/radio.d.ts +2 -0
  200. package/lib/entries/radio.js +6 -0
  201. package/lib/entries/select-ori.d.ts +2 -0
  202. package/lib/entries/select-ori.js +6 -0
  203. package/lib/entries/select.d.ts +4 -0
  204. package/lib/entries/select.js +6 -0
  205. package/lib/entries/space.d.ts +2 -0
  206. package/lib/entries/space.js +6 -0
  207. package/lib/entries/switch.d.ts +2 -0
  208. package/lib/entries/switch.js +6 -0
  209. package/lib/entries/tabbar-item.d.ts +2 -0
  210. package/lib/entries/tabbar-item.js +6 -0
  211. package/lib/entries/tabbar.d.ts +3 -0
  212. package/lib/entries/tabbar.js +6 -0
  213. package/lib/entries/table.d.ts +3 -0
  214. package/lib/entries/table.js +6 -0
  215. package/lib/entries/tabs.d.ts +3 -0
  216. package/lib/entries/tabs.js +2 -0
  217. package/lib/entries/tag.d.ts +2 -0
  218. package/lib/entries/tag.js +6 -0
  219. package/lib/entries/theme-color.d.ts +3 -0
  220. package/lib/entries/theme-color.js +6 -0
  221. package/lib/entries/theme.d.ts +9 -0
  222. package/lib/entries/theme.js +6 -0
  223. package/lib/entries/transition.d.ts +1 -0
  224. package/lib/entries/transition.js +2 -0
  225. package/lib/entries/upload.d.ts +3 -0
  226. package/lib/entries/upload.js +6 -0
  227. package/lib/entries/utils.d.ts +1 -0
  228. package/lib/entries/utils.js +2 -0
  229. package/lib/form/form_inner.d.ts +1 -0
  230. package/lib/{form_inner-Cnwb6f_Q.js → form/form_inner.js} +9 -9
  231. package/lib/form/form_item.d.ts +2 -1
  232. package/lib/form/form_item.js +148 -2
  233. package/lib/form/form_item.less_inline.js +4 -0
  234. package/lib/form/index.d.ts +3 -2
  235. package/lib/form/index.js +191 -2
  236. package/lib/form/index.less_inline.js +4 -0
  237. package/lib/icon/base.js +1 -1
  238. package/lib/icon/delete.d.ts +5 -0
  239. package/lib/icon/delete.js +10 -0
  240. package/lib/icon/eye_outline.d.ts +6 -0
  241. package/lib/icon/eye_outline.js +13 -0
  242. package/lib/icon/icon_style.js +6 -2
  243. package/lib/{icon_style-J7iiDS_a.js → icon/index.less_inline.js} +2 -3
  244. package/lib/icon/minus.d.ts +5 -0
  245. package/lib/icon/minus.js +10 -0
  246. package/lib/icon/picture.d.ts +5 -0
  247. package/lib/icon/picture.js +10 -0
  248. package/lib/icon/plus.d.ts +5 -0
  249. package/lib/icon/plus.js +10 -0
  250. package/lib/image/image_preview.js +91 -2
  251. package/lib/image/image_preview.less_inline.js +4 -0
  252. package/lib/image/index.js +163 -2
  253. package/lib/image/index.less_inline.js +4 -0
  254. package/lib/index.d.ts +11 -0
  255. package/lib/index.js +47 -40
  256. package/lib/input/index.js +4 -4
  257. package/lib/{input-DUBlLEXS.js → input/index.less_inline.js} +1 -1
  258. package/lib/{input_inner-x4GfLGjj.js → input/input_inner.less_inline.js} +1 -1
  259. package/lib/input_number/index.js +3 -3
  260. package/lib/{style-C5wUmE2b.js → input_number/index.less_inline.js} +2 -3
  261. package/lib/input_number/style.js +6 -2
  262. package/lib/list/index.js +52 -2
  263. package/lib/list/index.less_inline.js +4 -0
  264. package/lib/loading/index.js +1 -1
  265. package/lib/mask/index.d.ts +1 -1
  266. package/lib/mask/index.js +109 -2
  267. package/lib/mask/index.less_inline.js +4 -0
  268. package/lib/md_input/index.js +59 -2
  269. package/lib/md_input/index.less_inline.js +4 -0
  270. package/lib/menu/index.js +275 -2
  271. package/lib/menu/index.less_inline.js +4 -0
  272. package/lib/message/index.js +1 -1
  273. package/lib/modal/index.js +199 -2
  274. package/lib/modal/index.less_inline.js +4 -0
  275. package/lib/modal/modal_box.js +21 -22
  276. package/lib/notification/index.d.ts +212 -0
  277. package/lib/notification/index.js +380 -0
  278. package/lib/notification/index.less_inline.js +4 -0
  279. package/lib/notification/placement.d.ts +49 -0
  280. package/lib/notification/placement.js +48 -0
  281. package/lib/notification/style.d.ts +2 -0
  282. package/lib/notification/style.js +6 -0
  283. package/lib/page_header/index.js +100 -2
  284. package/lib/page_header/index.less_inline.js +4 -0
  285. package/lib/pagination/index.js +214 -2
  286. package/lib/pagination/index.less_inline.js +4 -0
  287. package/lib/polygon/index.js +21 -2
  288. package/lib/{polygon-DhhovlrG.js → polygon/index.less_inline.js} +2 -18
  289. package/lib/qrcode/index.js +65 -2
  290. package/lib/qrcode/index.less_inline.js +4 -0
  291. package/lib/select/index.js +355 -3
  292. package/lib/select/index.less_inline.js +4 -0
  293. package/lib/select_ori/index.js +58 -2
  294. package/lib/select_ori/index.less_inline.js +4 -0
  295. package/lib/space/index.js +40 -2
  296. package/lib/space/index.less_inline.js +4 -0
  297. package/lib/{animation-Bo4jbSGK.js → styles/animation/index.css_inline.js} +2 -3
  298. package/lib/styles/animation/index.js +6 -2
  299. package/lib/{mask-Ox6CoyFB.js → styles/mask/index.css_inline.js} +2 -3
  300. package/lib/styles/mask/index.js +6 -2
  301. package/lib/switch/index.js +51 -2
  302. package/lib/switch/index.less_inline.js +4 -0
  303. package/lib/tabbar/index.js +97 -2
  304. package/lib/tabbar/index.less_inline.js +4 -0
  305. package/lib/tabbar/item.js +61 -2
  306. package/lib/tabbar/item.less_inline.js +4 -0
  307. package/lib/table/index.js +234 -2
  308. package/lib/table/index.less_inline.js +4 -0
  309. package/lib/tabs/index.js +1 -1
  310. package/lib/tag/index.js +75 -2
  311. package/lib/tag/index.less_inline.js +4 -0
  312. package/lib/theme/index.js +86 -2
  313. package/lib/theme/index.less_inline.js +4 -0
  314. package/lib/theme/theme_color.js +1 -1
  315. package/lib/upload/index.d.ts +170 -0
  316. package/lib/upload/index.js +848 -0
  317. package/lib/upload/index.less_inline.js +4 -0
  318. package/lib/upload/style.d.ts +2 -0
  319. package/lib/upload/style.js +6 -0
  320. package/lib/utils/context_provide.d.ts +1 -0
  321. package/lib/utils/context_provide.js +1 -1
  322. package/lib/utils/event.d.ts +30 -0
  323. package/lib/utils/index.d.ts +3 -0
  324. package/lib/utils/index.js +1 -1
  325. package/lib/utils/popover.js +1 -1
  326. package/lib/utils/signal_types.d.ts +5 -0
  327. package/lib/utils/transition.d.ts +28 -0
  328. package/lib/utils/transition.js +1 -1
  329. package/package.json +39 -18
  330. package/styles/animation.css +2 -2
  331. package/styles/container.css +8 -8
  332. package/styles/datepicker.css +9 -9
  333. package/styles/dialog.css +7 -7
  334. package/styles/loading.css +17 -17
  335. package/styles/message.css +9 -9
  336. package/styles/modal_box.css +3 -3
  337. package/styles/notification.css +17 -0
  338. package/styles/popover.css +11 -14
  339. package/styles/reset.css +13 -15
  340. package/styles/scrollbar.css +5 -5
  341. package/styles/select.css +6 -6
  342. package/styles/tabs.css +3 -3
  343. package/styles/theme-coral.css +35 -0
  344. package/styles/theme-jade.css +35 -0
  345. package/styles/theme-tangerine.css +35 -0
  346. package/styles/transition.css +1 -1
  347. package/styles/vars.css +41 -7
  348. package/lib/calendar-CvlUsN6w.js +0 -146
  349. package/lib/card-3DM-lJQV.js +0 -63
  350. package/lib/carousel-DvkZ1YXq.js +0 -276
  351. package/lib/check-doQ2ZpQj.js +0 -117
  352. package/lib/collapse-B6-Rn05A.js +0 -102
  353. package/lib/color_picker-0a-IGZY9.js +0 -41
  354. package/lib/date_picker-BDN2PAz5.js +0 -99
  355. package/lib/date_picker_ori-BXFs1eET.js +0 -120
  356. package/lib/description_panel--AKXBzLL.js +0 -53
  357. package/lib/esm-DAha108i.js +0 -270
  358. package/lib/form-DJxvBiLy.js +0 -190
  359. package/lib/form_item-BqPMRABd.js +0 -147
  360. package/lib/image-CVQai6NX.js +0 -162
  361. package/lib/image_preview-DfQAKSJH.js +0 -90
  362. package/lib/item-CQ2Sknbz.js +0 -14
  363. package/lib/item-DI6mQXtB.js +0 -117
  364. package/lib/item-D_ZOPXuE.js +0 -60
  365. package/lib/list-MG8PRzos.js +0 -51
  366. package/lib/mask-Bx-yNIJv.js +0 -108
  367. package/lib/md_input-BX3bujz8.js +0 -58
  368. package/lib/menu-DKscK5mw.js +0 -274
  369. package/lib/modal-Cwi3qlEf.js +0 -198
  370. package/lib/page_header-ujV3pncE.js +0 -99
  371. package/lib/pagination-aRbGd3Rf.js +0 -213
  372. package/lib/qrcode-Dip8uLSA.js +0 -64
  373. package/lib/select-BZMDj5VE.js +0 -354
  374. package/lib/select_ori-C7sUZxen.js +0 -57
  375. package/lib/space-CKuTk0YB.js +0 -39
  376. package/lib/switch-wh2-ivty.js +0 -50
  377. package/lib/tabbar-CBXK-_AV.js +0 -96
  378. package/lib/table-BQxMD2Ae.js +0 -233
  379. package/lib/tag-Di1z9PoZ.js +0 -74
  380. package/lib/theme-CLbBS-in.js +0 -85
  381. package/styles/dark.css +0 -13
@@ -1,2 +1,257 @@
1
- import { t as e } from "../carousel-DvkZ1YXq.js";
2
- export { e as default };
1
+ import e from "../base.js";
2
+ import { parseAttrValue as t } from "../utils/index.js";
3
+ import n from "./index.less_inline.js";
4
+ import r from "./timer.js";
5
+ import { $ as i, $$ as a, $one as o, debounce as s, getAttr as c, iterate as l, off as u, on as d, shouldEventNext as f } from "utilane/browser";
6
+ //#region src/components/carousel/index.ts
7
+ var p = class extends e {
8
+ static baseName = "carousel";
9
+ arrows = "hover";
10
+ currentIndex = 0;
11
+ allIndex = -1;
12
+ #e = 0;
13
+ loop = !0;
14
+ observer;
15
+ autoplay = !1;
16
+ #t = void 0;
17
+ #n = 0;
18
+ #r = !1;
19
+ #i = 0;
20
+ #a = 0;
21
+ #o;
22
+ static get observedAttributes() {
23
+ return [
24
+ "arrows",
25
+ "loop",
26
+ "current-index",
27
+ "autoplay"
28
+ ];
29
+ }
30
+ attributeChangedCallback(e, n, r) {
31
+ switch (e) {
32
+ case "arrows":
33
+ let e = t(r, "hover");
34
+ if (e !== this.arrows) {
35
+ this.arrows = e;
36
+ let t = document.createDocumentFragment();
37
+ this.renderArrows(t), this.root.appendChild(t);
38
+ }
39
+ break;
40
+ case "loop":
41
+ this.loop = t(r, !1, "loop");
42
+ break;
43
+ case "current-index":
44
+ let n = t(r, 0);
45
+ n !== this.currentIndex && this.#h(this.loop ? n + 1 : n);
46
+ break;
47
+ case "autoplay":
48
+ let i = t(r, !1, "autoplay");
49
+ i !== this.autoplay && (this.autoplay = i, this.#t && (i ? this.#t.start() : this.#t.stop()));
50
+ }
51
+ }
52
+ connectedCallback() {
53
+ this.loadStyleText(n), this.style.setProperty("--carousel-width", `${Math.floor(this.clientWidth)}px`);
54
+ let e = c(this, "height");
55
+ e && this.style.setProperty("height", `${e}px`), this.#d(), super.connectedCallback();
56
+ }
57
+ afterInit() {
58
+ this.setAttribute("data-page", "__stop__"), d(this.root, "click", this.#p), this.#c(), this.#t = r(() => {
59
+ this.#m("next");
60
+ }), this.autoplay && this.#t.start(), this.#o = o(".container", this.root), d(this.#o, "pointerdown", this.#b), d(this.#o, "pointerup", this.#S), d(this.#o, "pointermove", this.#x), d(this.#o, "pointercancel", this.#w), d(this.#o, "pointerleave", this.#w);
61
+ }
62
+ beforeDestroy() {
63
+ u(this, "mouseenter", this.#g), u(this, "mouseleave", this.#_), u(this.root, "click", this.#p), u(this.#o, "pointerdown", this.#b), u(this.#o, "pointerup", this.#S), u(this.#o, "pointermove", this.#x), u(this.#o, "pointercancel", this.#w), u(this.#o, "pointerleave", this.#w), this.#o = void 0, this.#l(!0), this.#t.stop(), this.#t = void 0;
64
+ }
65
+ render() {
66
+ let e = document.createDocumentFragment(), t = "";
67
+ if (this.allIndex > 0) {
68
+ let e = this.loop ? this.currentIndex + 1 : this.currentIndex, n = Math.floor(e * this.clientWidth * -1);
69
+ t = `transform:translateX(${n}px);`;
70
+ let r = Math.floor(this.clientWidth * (this.allIndex + 3));
71
+ t += `min-width:${r}px;`, this.#e = n;
72
+ }
73
+ let n = a("div", {
74
+ class: "container",
75
+ style: t,
76
+ "data-container": "1"
77
+ });
78
+ n.appendChild(a("slot")), e.appendChild(n), this.renderArrows(e);
79
+ let r = a("div", {
80
+ class: "pagination",
81
+ part: "pagination"
82
+ });
83
+ return this.allIndex >= 0 && r.replaceChildren(this.#s()), e.appendChild(r), e;
84
+ }
85
+ renderArrows(e) {
86
+ if (this.arrows !== "never") this.renderNavigationButton("prev", e), this.renderNavigationButton("next", e), this.arrows === "hover" && (d(this, "mouseenter", this.#g), d(this, "mouseleave", this.#_));
87
+ else {
88
+ u(this, "mouseenter", this.#g), u(this, "mouseleave", this.#_);
89
+ let e = i(".nav-button", this.root);
90
+ e.length && l(e, (e) => {
91
+ e.remove();
92
+ });
93
+ }
94
+ }
95
+ #s() {
96
+ let e = document.createDocumentFragment();
97
+ for (let t = 0; t <= this.allIndex; t++) e.appendChild(a("div", {
98
+ class: ["bullet", t === this.currentIndex ? "active" : ""],
99
+ "aria-label": `第 ${t + 1} 页`,
100
+ "data-page": `${t}`,
101
+ id: `bullet-${t}`
102
+ }));
103
+ return e;
104
+ }
105
+ renderNavigationButton(e = "prev", t) {
106
+ let n = o(`.nav-${e}`, this.root);
107
+ if (n == null) {
108
+ let r = e === "prev" ? "left" : "right";
109
+ n = a("button", {
110
+ class: `nav-button nav-${e}`,
111
+ type: "button",
112
+ innerHTML: `<l-arrow-${r}-icon></l-arrow-${r}-icon>`,
113
+ "aria-label": e,
114
+ "data-page": e
115
+ }), t.appendChild(n);
116
+ }
117
+ this.arrows === "always" ? n.style.display = "flex" : n.style.display = "none";
118
+ }
119
+ #c() {
120
+ this.observer ??= new MutationObserver(this.#f), this.observer.observe(this, { childList: !0 });
121
+ }
122
+ #l(e = !1) {
123
+ this.observer && (this.observer.disconnect(), e && (this.observer = void 0));
124
+ }
125
+ #u = s(() => {
126
+ let e = o("#cloneFirst", this);
127
+ e && e.remove();
128
+ let t = o("#cloneLast", this);
129
+ if (t && t.remove(), this.#d(), this.#o) {
130
+ if (this.allIndex > 0) {
131
+ let e = Math.floor(this.clientWidth * (this.allIndex + 3));
132
+ this.#o.style.minWidth = `${e}px`;
133
+ } else this.#o.style.minWidth = "900%";
134
+ let e = this.loop ? this.currentIndex + 1 : this.currentIndex, t = Math.floor(e * this.clientWidth * -1);
135
+ this.#o.style.transform = `translateX(${t}px)`, this.#e = t;
136
+ }
137
+ let n = o(".pagination", this.root);
138
+ n && n.replaceChildren(this.#s()), this.#c();
139
+ }, 300);
140
+ #d() {
141
+ let e = this.children, t = e.length;
142
+ if (t > 0 && this.loop) {
143
+ let n = e[0].cloneNode(!0);
144
+ n.id = "cloneFirst";
145
+ let r = e[t - 1].cloneNode(!0);
146
+ r.id = "cloneLast", this.children[t - 1].insertAdjacentElement("afterend", n), this.children[0].insertAdjacentElement("beforebegin", r);
147
+ }
148
+ this.allIndex = this.children.length - (this.loop ? 3 : 1);
149
+ }
150
+ #f = (e) => {
151
+ for (let t of e) t.type === "childList" && (this.#l(), this.#u());
152
+ };
153
+ #p = (e) => {
154
+ let [t, n] = f(e, "data-page", this.root);
155
+ t && this.#m(n);
156
+ };
157
+ #m(e) {
158
+ this.#t.stop();
159
+ let t = this.loop ? this.currentIndex + 1 : this.currentIndex, n = t;
160
+ if (e === "prev") n = this.loop && this.currentIndex === 0 ? 0 : t - 1, n < 0 && (n = 0);
161
+ else if (e === "next") n = this.loop && this.currentIndex === this.allIndex ? this.allIndex + 2 : t + 1, !this.loop && n > this.allIndex && (n = this.allIndex);
162
+ else {
163
+ let t = Number(e);
164
+ t !== this.currentIndex && (n = this.loop ? t + 1 : t);
165
+ }
166
+ n !== t && this.#h(n), requestAnimationFrame(() => {
167
+ this.#C();
168
+ });
169
+ }
170
+ #h(e) {
171
+ if (this.#o) {
172
+ let t = Math.floor(e * this.clientWidth * -1), n = this.#o.style.transform;
173
+ this.#o.animate([{ transform: n }, { transform: `translateX(${t}px)` }], { duration: 300 }).addEventListener("finish", () => {
174
+ let n = t;
175
+ this.loop && e === this.allIndex + 2 ? n = Math.floor(this.clientWidth * -1) : this.loop && e === 0 && (n = Math.floor(this.clientWidth * (this.allIndex + 1) * -1)), this.#o.style.transform = `translateX(${n}px)`, this.#e = n;
176
+ }, { once: !0 });
177
+ }
178
+ this.currentIndex = this.loop && this.allIndex > 0 && e === this.allIndex + 2 ? 0 : this.loop && this.allIndex > 0 && e === 0 ? this.allIndex : this.loop ? e - 1 : e;
179
+ let t = o(".bullet.active", this.root);
180
+ t && t.classList.remove("active");
181
+ let n = o(`#bullet-${this.currentIndex}`, this.root);
182
+ n && n.classList.add("active");
183
+ }
184
+ #g = () => {
185
+ if (this.arrows === "hover") {
186
+ let e = i(".nav-button", this.root);
187
+ l(e, (e) => {
188
+ e.style.display = "flex", this.#v(e, !0);
189
+ });
190
+ }
191
+ };
192
+ #_ = () => {
193
+ if (this.arrows === "hover") {
194
+ let e = i(".nav-button", this.root);
195
+ l(e, (e) => {
196
+ this.#v(e, !1);
197
+ });
198
+ }
199
+ };
200
+ #v(e, t = !0) {
201
+ let n = e.getAttribute("data-page") === "prev" ? -10 : 10, r = [];
202
+ t ? r.push({
203
+ opacity: 0,
204
+ transform: `translate3d(${n}px, -50%, 0)`
205
+ }, {
206
+ opacity: 1,
207
+ transform: "translate3d(0px, -50%, 0)"
208
+ }) : r.push({
209
+ opacity: 1,
210
+ transform: "translate3d(0px, -50%, 0)"
211
+ }, {
212
+ opacity: 0,
213
+ transform: `translate3d(${n}px, -50%, 0)`
214
+ });
215
+ let i = e.animate(r, {
216
+ duration: 300,
217
+ fill: "both"
218
+ });
219
+ t || i.addEventListener("finish", () => {
220
+ e.style.display = "none";
221
+ }, { once: !0 });
222
+ }
223
+ #y = () => {
224
+ let e = o(".container", this.root);
225
+ e.style.transition = "transform 0.3s", requestAnimationFrame(() => {
226
+ e.style.transform = `translateX(${this.#e}px)`;
227
+ }), e.addEventListener("transitionend", () => {
228
+ e.style.transition = "";
229
+ }, { once: !0 });
230
+ };
231
+ #b = (e) => {
232
+ this.#n = e.clientX, this.#r = !0, this.#i = Date.now(), this.#t.stop();
233
+ };
234
+ #x = (e) => {
235
+ this.#r && (this.#a && cancelAnimationFrame(this.#a), this.#a = requestAnimationFrame(() => {
236
+ let t = Math.floor(e.clientX - this.#n);
237
+ if (!this.loop && (t < 0 && this.currentIndex === this.allIndex || t > 0 && this.currentIndex === 0)) return;
238
+ let n = this.#e + t;
239
+ this.#o.style.transform = `translateX(${n}px)`;
240
+ }), e.preventDefault());
241
+ };
242
+ #S = (e) => {
243
+ if (!this.#r) return;
244
+ let t = Date.now() - this.#i, n = e.clientX - this.#n;
245
+ if (this.#r = !1, n === 0) return;
246
+ let r = "cancel";
247
+ t <= 200 ? n >= 20 ? r = "prev" : n <= -20 && (r = "next") : n >= this.clientWidth / 2 ? r = "prev" : n <= -this.clientWidth / 2 && (r = "next"), r === "cancel" ? this.#y() : this.#m(r), this.#C();
248
+ };
249
+ #C = () => {
250
+ this.autoplay && this.#t.start();
251
+ };
252
+ #w = () => {
253
+ this.#r && (this.#r = !1, this.#y(), this.#C());
254
+ };
255
+ };
256
+ //#endregion
257
+ export { p as default };
@@ -0,0 +1,4 @@
1
+ //#region src/components/carousel/index.less?inline
2
+ var e = ":host{box-sizing:border-box;width:100%;height:180px;margin:0 auto;display:block;position:relative;overflow:hidden}.container{box-sizing:border-box;min-width:900%;height:100%;display:flex;position:relative}.nav-button{cursor:pointer;z-index:20;color:#fff;background-color:#292d3d4d;border:none;border-radius:50%;outline:none;justify-content:center;align-items:center;width:30px;height:30px;margin:0;padding:0;font-size:16px;transition:background-color .3s;display:flex;position:absolute;top:50%;transform:translateY(-50%)}.nav-button:hover{background-color:#292d3d66}.nav-button:active{background-color:#292d3d80}.nav-prev{left:20px}.nav-next{right:20px}.pagination{z-index:2;justify-content:center;align-items:center;gap:8px;width:100%;display:flex;position:absolute;bottom:10px;left:0}.bullet{cursor:pointer;background-color:#0000004d;border-radius:50%;width:8px;height:8px;transition:background-color .3s;display:inline-block}.bullet.active{background-color:var(--l-primary-color,#722ed1)}";
3
+ //#endregion
4
+ export { e as default };
@@ -1,2 +1,15 @@
1
- import { t as e } from "../item-CQ2Sknbz.js";
2
- export { e as default };
1
+ import e from "../base.js";
2
+ import t from "./item.less_inline.js";
3
+ import { $$ as n } from "utilane/browser";
4
+ //#region src/components/carousel/item.ts
5
+ var r = class extends e {
6
+ static baseName = "carousel-item";
7
+ connectedCallback() {
8
+ this.loadStyleText(t), super.connectedCallback();
9
+ }
10
+ render() {
11
+ return n("slot");
12
+ }
13
+ };
14
+ //#endregion
15
+ export { r as default };
@@ -0,0 +1,4 @@
1
+ //#region src/components/carousel/item.less?inline
2
+ var e = ":host{width:var(--carousel-width,100%);box-sizing:border-box;height:100%;display:block}:host(.active){display:block}";
3
+ //#endregion
4
+ export { e as default };
@@ -0,0 +1,19 @@
1
+ //#region src/components/carousel/timer.ts
2
+ function e(e, t = 3e3) {
3
+ let n = 0, r = !1, i = null;
4
+ function a() {
5
+ r || (r = !0, n = 0, i = requestAnimationFrame(s));
6
+ }
7
+ function o() {
8
+ r = !1, i &&= (cancelAnimationFrame(i), null);
9
+ }
10
+ function s(a) {
11
+ r && (n ||= a, a - n >= t && (e(), n = a), i = requestAnimationFrame(s));
12
+ }
13
+ return {
14
+ start: a,
15
+ stop: o
16
+ };
17
+ }
18
+ //#endregion
19
+ export { e as default };
@@ -1,3 +1,4 @@
1
+ import type { Signal, SignalStop } from "../utils/signal_types";
1
2
  import FormInner from "../form/form_inner";
2
3
  type CheckState = {
3
4
  /** 是否为按钮样式 */
@@ -0,0 +1,117 @@
1
+ import { parseAttrValue as e, stopSignal as t } from "../utils/index.js";
2
+ import n from "../form/form_inner.js";
3
+ import { $$ as r, addClass as i, off as a, on as o, removeClass as s, toggleClass as c } from "utilane/browser";
4
+ import { effect as l } from "alien-signals";
5
+ //#region src/components/check/check.ts
6
+ var u = class extends n {
7
+ _checked;
8
+ _inputType;
9
+ $input;
10
+ _groupCtx;
11
+ _groupCtxStop;
12
+ setChecked(e) {
13
+ this._checked = e, this.checkedChange();
14
+ }
15
+ getChecked() {
16
+ return this._checked;
17
+ }
18
+ constructor() {
19
+ super(), this._checked = !1, this._inputType = "radio", Object.defineProperty(this, "checked", {
20
+ configurable: !0,
21
+ enumerable: !0,
22
+ get: this.getChecked,
23
+ set: this.setChecked
24
+ });
25
+ }
26
+ static get observedAttributes() {
27
+ return [
28
+ "checked",
29
+ "label",
30
+ "button",
31
+ "indeterminate",
32
+ ...n.observedAttributes
33
+ ];
34
+ }
35
+ connectedCallback() {
36
+ super.connectedCallback(), this.getChecked() && this.setChecked(!0), this.isDisabled() && i(this, "is-disabled"), this._updateIndeterminate(), this.emitInject("check-context-request", (e) => {
37
+ this._groupCtx = e;
38
+ }), this._groupCtxStop = l(() => {
39
+ if (this.value == null) return;
40
+ let e = this._groupCtx ? this._groupCtx() : [];
41
+ this.setChecked(e.includes(this.value));
42
+ });
43
+ }
44
+ afterInit() {
45
+ o(this, "click", this.#e);
46
+ }
47
+ beforeDestroy() {
48
+ a(this, "click", this.#e), this._groupCtxStop = t(this._groupCtxStop);
49
+ }
50
+ render() {
51
+ let e = document.createDocumentFragment(), t = r("input", {
52
+ type: this._inputType,
53
+ class: "l-check__input",
54
+ name: this.getName(),
55
+ value: this.value,
56
+ checked: this.getChecked(),
57
+ disabled: this.isDisabled() ? "disabled" : void 0
58
+ });
59
+ if (this.$input = t, e.appendChild(t), !this._state.button) {
60
+ let t = r("span", { class: "l-check__inner" });
61
+ e.appendChild(t);
62
+ }
63
+ let n = r("label", {
64
+ class: "l-check__label",
65
+ part: "label"
66
+ }), i = r("slot", { textContent: this._state.label });
67
+ return n.appendChild(i), e.appendChild(n), e;
68
+ }
69
+ attributeChange(t, n, r) {
70
+ switch (t) {
71
+ case "checked":
72
+ let n = e(r, !1, "checked");
73
+ this.setChecked(n);
74
+ break;
75
+ case "button":
76
+ this._state[t] = e(r, !1, t);
77
+ break;
78
+ case "indeterminate":
79
+ let i = e(r, !1, t);
80
+ this._state.indeterminate = i, this._updateIndeterminate();
81
+ break;
82
+ case "label": this._state.label = r;
83
+ }
84
+ }
85
+ checkedChange() {
86
+ this.getChecked() ? i(this, "is-checked") : s(this, "is-checked"), this.$input && (this.$input.checked = this.getChecked());
87
+ }
88
+ disabledChange() {
89
+ c(this, "is-disabled"), this.$input && (this.$input.disabled = this.isDisabled());
90
+ }
91
+ _updateIndeterminate() {
92
+ this._state.indeterminate ? i(this, "is-indeterminate") : s(this, "is-indeterminate");
93
+ }
94
+ #e = () => {
95
+ if (!this.isDisabled()) {
96
+ if (this.value && this._groupCtx) this.emitChange();
97
+ else {
98
+ let e = this._inputType === "radio" || !this.getChecked();
99
+ this.setChecked(e), this.emitChange();
100
+ }
101
+ }
102
+ };
103
+ emitChange() {
104
+ this.emit("change", {
105
+ detail: {
106
+ value: this.value,
107
+ name: this.getName(),
108
+ checked: this.getChecked()
109
+ },
110
+ composed: !0,
111
+ bubbles: !0
112
+ });
113
+ }
114
+ _doChangeAction() {}
115
+ };
116
+ //#endregion
117
+ export { u as default };
@@ -0,0 +1,4 @@
1
+ //#region src/components/check/check.less?inline
2
+ var e = ":host{cursor:pointer;outline:none;align-items:center;width:auto;transition:color .3s,border-color .3s,background-color .3s;display:inline-flex;position:relative}.l-check__input{z-index:-1;opacity:0;width:0;height:0;margin:0;position:absolute}.l-check__inner{width:var(--l-check-size,14px);height:var(--l-check-size,14px);border-radius:var(--l-check-border-radius,var(--l-border-radius,13px));box-sizing:border-box;border:1px solid #dcddd9;flex-shrink:0;justify-content:center;align-items:center;margin-right:5px;transition:border-color .3s ease-in-out;display:flex;position:relative}.l-check__label{cursor:inherit;line-height:1;transition:color .3s}:host(.is-checked) .l-check__inner{border-color:var(--l-primary-color,#722ed1)}:host(.is-disabled){cursor:not-allowed}:host(.is-disabled) .l-check__label{color:var(--l-disabled-color,#e6e6e6)}:host([button]){height:var(--l-form-control-height,32px);border-radius:inherit;border:1px solid #c0c4cc;border-left-width:0;justify-content:center;margin-left:0;padding:0 15px}:host([button]:first-child){border-top-left-radius:var(--l-check-border-radius,var(--l-border-radius,13px));border-bottom-left-radius:var(--l-check-border-radius,var(--l-border-radius,13px));border-left-width:1px}:host([button]:last-child){border-top-right-radius:var(--l-check-border-radius,var(--l-border-radius,13px));border-bottom-right-radius:var(--l-check-border-radius,var(--l-border-radius,13px))}:host([button].is-checked){background-color:var(--l-primary-color,#722ed1);color:#fff;border-color:var(--l-primary-color,#722ed1);border-right-color:#fff}:host([button].is-checked:last-child){border-right-color:var(--l-primary-color,#722ed1)}";
3
+ //#endregion
4
+ export { e as default };
@@ -1,2 +1,18 @@
1
- import { t as e } from "../checkbox-DhGHJXwI.js";
2
- export { e as default };
1
+ import e from "./check.js";
2
+ import t from "./check.less_inline.js";
3
+ import n from "./checkbox.less_inline.js";
4
+ //#region src/components/check/checkbox.ts
5
+ var r = class extends e {
6
+ static baseName = "checkbox";
7
+ constructor() {
8
+ super(), this._inputType = "checkbox";
9
+ }
10
+ connectedCallback() {
11
+ this.loadStyleText([t, n]), super.connectedCallback();
12
+ }
13
+ _doChangeAction() {
14
+ this.getChecked() ? this.setChecked(!1) : this.setChecked(!0), this.emitChange();
15
+ }
16
+ };
17
+ //#endregion
18
+ export { r as default };
@@ -1,16 +1,4 @@
1
- import { n as e, t } from "./check-doQ2ZpQj.js";
2
1
  //#region src/components/check/checkbox.less?inline
3
- var n = ":host(.is-indeterminate) .l-check__inner{background-color:var(--l-primary-color,#722ed1)}:host(.is-indeterminate) .l-check__inner:after{content:\"\";width:calc(var(--l-check-size,14px) * .4);border:none;border-bottom:1px solid #fff;height:1px;margin-top:0;display:block;transform:rotate(0)}.l-check__inner:after,:host(.is-checked) .l-check__inner:after{content:\"\";width:calc(var(--l-check-size,14px) * .6);height:calc(var(--l-check-size,14px) * .3);border-top:none;border-bottom:1px solid #0000;border-left:1px solid #0000;border-right:none;margin-top:-3px;transition:border-color .2s ease-in-out;display:block;transform:rotate(-45deg)}:host(.is-checked) .l-check__inner{background-color:var(--l-primary-color,#722ed1)}:host(.is-checked) .l-check__inner:after{border-color:#fff}:host(.is-disabled) .l-check__inner{background-color:var(--l-disabled-color,#e6e6e6);border-color:var(--l-disabled-color,#e6e6e6)}", r = class extends e {
4
- static baseName = "checkbox";
5
- constructor() {
6
- super(), this._inputType = "checkbox";
7
- }
8
- connectedCallback() {
9
- this.loadStyleText([t, n]), super.connectedCallback();
10
- }
11
- _doChangeAction() {
12
- this.getChecked() ? this.setChecked(!1) : this.setChecked(!0), this.emitChange();
13
- }
14
- };
2
+ var e = ":host(.is-indeterminate) .l-check__inner{background-color:var(--l-primary-color,#722ed1)}:host(.is-indeterminate) .l-check__inner:after{content:\"\";width:calc(var(--l-check-size,14px) * .4);border:none;border-bottom:1px solid #fff;height:1px;margin-top:0;display:block;transform:rotate(0)}.l-check__inner:after,:host(.is-checked) .l-check__inner:after{content:\"\";width:calc(var(--l-check-size,14px) * .6);height:calc(var(--l-check-size,14px) * .3);border-top:none;border-bottom:1px solid #0000;border-left:1px solid #0000;border-right:none;margin-top:-3px;transition:border-color .2s ease-in-out;display:block;transform:rotate(-45deg)}:host(.is-checked) .l-check__inner{background-color:var(--l-primary-color,#722ed1)}:host(.is-checked) .l-check__inner:after{border-color:#fff}:host(.is-disabled) .l-check__inner{background-color:var(--l-disabled-color,#e6e6e6);border-color:var(--l-disabled-color,#e6e6e6)}";
15
3
  //#endregion
16
- export { r as t };
4
+ export { e as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../check-DFlwStH9.js";
1
+ import e from "./index.js";
2
2
  //#region src/components/check/checkbox_group.ts
3
3
  var t = class extends e {
4
4
  static baseName = "checkbox-group";
@@ -1,3 +1,4 @@
1
+ import type { Signal } from "../utils/signal_types";
1
2
  import FormInner from "../form/form_inner";
2
3
  type CheckGroupState = {
3
4
  gap?: string;
@@ -1,9 +1,10 @@
1
- import { unitNumberStr as e } from "./utils/index.js";
2
- import { n as t } from "./esm-DAha108i.js";
3
- import { t as n } from "./form_inner-Cnwb6f_Q.js";
4
- import { $$ as r, off as i, on as a } from "ph-utils/browser";
5
- //#region src/components/check/index.less?inline
6
- var o = ":host{align-items:center;gap:var(--l-check-gap,0px);display:flex}", s = class extends n {
1
+ import { unitNumberStr as e } from "../utils/index.js";
2
+ import t from "../form/form_inner.js";
3
+ import n from "./index.less_inline.js";
4
+ import { $$ as r, off as i, on as a } from "utilane/browser";
5
+ import { signal as o } from "alien-signals";
6
+ //#region src/components/check/index.ts
7
+ var s = class extends t {
7
8
  values;
8
9
  multiple;
9
10
  _state;
@@ -11,7 +12,7 @@ var o = ":host{align-items:center;gap:var(--l-check-gap,0px);display:flex}", s =
11
12
  super.setValue(e), this.rendered && this.updateChecked();
12
13
  }
13
14
  constructor() {
14
- super(!1), this.multiple = !0, this.values = t([]), this._state = {};
15
+ super(!1), this.multiple = !0, this.values = o([]), this._state = {};
15
16
  }
16
17
  static get observedAttributes() {
17
18
  return [
@@ -29,7 +30,7 @@ var o = ":host{align-items:center;gap:var(--l-check-gap,0px);display:flex}", s =
29
30
  e.has("gap") && this._updateGap();
30
31
  }
31
32
  connectedCallback() {
32
- this.loadStyleText([o]), this.updateChecked(), super.connectedCallback(), this._updateGap();
33
+ this.loadStyleText([n]), this.updateChecked(), super.connectedCallback(), this._updateGap();
33
34
  }
34
35
  afterInit() {
35
36
  a(this.root, "change", this.#e), a(this, "check-context-request", this._privide);
@@ -67,4 +68,4 @@ var o = ":host{align-items:center;gap:var(--l-check-gap,0px);display:flex}", s =
67
68
  }
68
69
  };
69
70
  //#endregion
70
- export { s as t };
71
+ export { s as default };
@@ -0,0 +1,4 @@
1
+ //#region src/components/check/index.less?inline
2
+ var e = ":host{align-items:center;gap:var(--l-check-gap,0px);display:flex}";
3
+ //#endregion
4
+ export { e as default };
@@ -1,2 +1,15 @@
1
- import { t as e } from "../radio-C9NPQWGI.js";
2
- export { e as default };
1
+ import e from "./check.js";
2
+ import t from "./check.less_inline.js";
3
+ import n from "./radio.less_inline.js";
4
+ //#region src/components/check/radio.ts
5
+ var r = class extends e {
6
+ static baseName = "radio";
7
+ connectedCallback() {
8
+ this.loadStyleText([t, n]), super.connectedCallback();
9
+ }
10
+ _doChangeAction() {
11
+ this.setChecked(!0), this.emitChange();
12
+ }
13
+ };
14
+ //#endregion
15
+ export { r as default };
@@ -1,13 +1,4 @@
1
- import { n as e, t } from "./check-doQ2ZpQj.js";
2
1
  //#region src/components/check/radio.less?inline
3
- var n = ".l-check__inner{border-radius:50%}.l-check__inner:after{content:\"\";background-color:#0000;border-radius:50%;width:60%;height:60%;transition:background-color .3s ease-in-out;display:block}:host(.is-checked) .l-check__inner:after{background-color:var(--l-primary-color,#722ed1)}:host(.is-disabled) .l-check__inner{border-color:var(--l-disabled-color,#e6e6e6)}:host(.is-disabled) .l-check__inner:after{background-color:var(--l-disabled-color,#e6e6e6)}", r = class extends e {
4
- static baseName = "radio";
5
- connectedCallback() {
6
- this.loadStyleText([t, n]), super.connectedCallback();
7
- }
8
- _doChangeAction() {
9
- this.setChecked(!0), this.emitChange();
10
- }
11
- };
2
+ var e = ".l-check__inner{border-radius:50%}.l-check__inner:after{content:\"\";background-color:#0000;border-radius:50%;width:60%;height:60%;transition:background-color .3s ease-in-out;display:block}:host(.is-checked) .l-check__inner:after{background-color:var(--l-primary-color,#722ed1)}:host(.is-disabled) .l-check__inner{border-color:var(--l-disabled-color,#e6e6e6)}:host(.is-disabled) .l-check__inner:after{background-color:var(--l-disabled-color,#e6e6e6)}";
12
3
  //#endregion
13
- export { r as t };
4
+ export { e as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../check-DFlwStH9.js";
1
+ import e from "./index.js";
2
2
  //#region src/components/check/radio_group.ts
3
3
  var t = class extends e {
4
4
  static baseName = "radio-group";