yuyeon 0.3.3 → 0.3.4-beta.12

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 (439) hide show
  1. package/dist/style.css +1 -1
  2. package/dist/yuyeon.js +3107 -3080
  3. package/dist/yuyeon.umd.cjs +3 -3
  4. package/lib/abstract/items.js.map +1 -1
  5. package/lib/components/alert/YAlert.js +3 -4
  6. package/lib/components/alert/YAlert.js.map +1 -1
  7. package/lib/components/alert/index.js.map +1 -1
  8. package/lib/components/app/YApp.js +2 -2
  9. package/lib/components/app/YApp.js.map +1 -1
  10. package/lib/components/app/index.js.map +1 -1
  11. package/lib/components/badge/YBadge.js +3 -3
  12. package/lib/components/badge/YBadge.js.map +1 -1
  13. package/lib/components/badge/YBadge.scss +3 -2
  14. package/lib/components/badge/index.js.map +1 -1
  15. package/lib/components/bench/YBench.js +3 -4
  16. package/lib/components/bench/YBench.js.map +1 -1
  17. package/lib/components/bench/index.js.map +1 -1
  18. package/lib/components/button/YButton.js +1 -2
  19. package/lib/components/button/YButton.js.map +1 -1
  20. package/lib/components/button/index.js.map +1 -1
  21. package/lib/components/card/YCard.js.map +1 -1
  22. package/lib/components/card/YCard.scss +2 -2
  23. package/lib/components/card/YCardBody.js.map +1 -1
  24. package/lib/components/card/YCardFooter.js.map +1 -1
  25. package/lib/components/card/YCardHeader.js.map +1 -1
  26. package/lib/components/card/index.js.map +1 -1
  27. package/lib/components/checkbox/YCheckbox.js +1 -2
  28. package/lib/components/checkbox/YCheckbox.js.map +1 -1
  29. package/lib/components/checkbox/YInputCheckbox.js +1 -2
  30. package/lib/components/checkbox/YInputCheckbox.js.map +1 -1
  31. package/lib/components/checkbox/index.js.map +1 -1
  32. package/lib/components/chip/YChip.js +1 -2
  33. package/lib/components/chip/YChip.js.map +1 -1
  34. package/lib/components/chip/index.js.map +1 -1
  35. package/lib/components/date-picker/YDateCalendar.js +55 -53
  36. package/lib/components/date-picker/YDateCalendar.js.map +1 -1
  37. package/lib/components/date-picker/YDatePicker.js +24 -25
  38. package/lib/components/date-picker/YDatePicker.js.map +1 -1
  39. package/lib/components/date-picker/YDatePickerControl.js +19 -20
  40. package/lib/components/date-picker/YDatePickerControl.js.map +1 -1
  41. package/lib/components/date-picker/YMonthPicker.js +10 -11
  42. package/lib/components/date-picker/YMonthPicker.js.map +1 -1
  43. package/lib/components/date-picker/YYearPicker.js +11 -13
  44. package/lib/components/date-picker/YYearPicker.js.map +1 -1
  45. package/lib/components/date-picker/index.js.map +1 -1
  46. package/lib/components/default-provider/YDefaultProvider.js.map +1 -1
  47. package/lib/components/default-provider/index.js.map +1 -1
  48. package/lib/components/dialog/YDialog.js +32 -32
  49. package/lib/components/dialog/YDialog.js.map +1 -1
  50. package/lib/components/dialog/index.js.map +1 -1
  51. package/lib/components/divider/YDivider.js +5 -5
  52. package/lib/components/divider/YDivider.js.map +1 -1
  53. package/lib/components/divider/index.js.map +1 -1
  54. package/lib/components/draggable/YDraggable.js +10 -11
  55. package/lib/components/draggable/YDraggable.js.map +1 -1
  56. package/lib/components/draggable/index.js +2 -0
  57. package/lib/components/draggable/index.js.map +1 -0
  58. package/lib/components/dropdown/YDropdown.js +16 -17
  59. package/lib/components/dropdown/YDropdown.js.map +1 -1
  60. package/lib/components/dropdown/index.js.map +1 -1
  61. package/lib/components/field-input/YFieldInput.js +42 -40
  62. package/lib/components/field-input/YFieldInput.js.map +1 -1
  63. package/lib/components/field-input/index.js.map +1 -1
  64. package/lib/components/form/YForm.js +12 -14
  65. package/lib/components/form/YForm.js.map +1 -1
  66. package/lib/components/form/index.js.map +1 -1
  67. package/lib/components/hover/YHover.js +9 -8
  68. package/lib/components/hover/YHover.js.map +1 -1
  69. package/lib/components/hover/index.js.map +1 -1
  70. package/lib/components/icon/YIcon.js +2 -4
  71. package/lib/components/icon/YIcon.js.map +1 -1
  72. package/lib/components/icon/index.js.map +1 -1
  73. package/lib/components/icons/YIconCheckbox.js +7 -6
  74. package/lib/components/icons/YIconCheckbox.js.map +1 -1
  75. package/lib/components/icons/YIconClear.js +2 -1
  76. package/lib/components/icons/YIconClear.js.map +1 -1
  77. package/lib/components/icons/YIconDropdown.js +2 -1
  78. package/lib/components/icons/YIconDropdown.js.map +1 -1
  79. package/lib/components/icons/YIconExpand.js +1 -0
  80. package/lib/components/icons/YIconExpand.js.map +1 -1
  81. package/lib/components/icons/YIconPageControl.js +7 -6
  82. package/lib/components/icons/YIconPageControl.js.map +1 -1
  83. package/lib/components/icons/YIconSort.js +6 -5
  84. package/lib/components/icons/YIconSort.js.map +1 -1
  85. package/lib/components/icons/YIconSort.scss +2 -0
  86. package/lib/components/icons/index.js.map +1 -1
  87. package/lib/components/img/YImg.js +30 -31
  88. package/lib/components/img/YImg.js.map +1 -1
  89. package/lib/components/img/index.js.map +1 -1
  90. package/lib/components/index.js.map +1 -1
  91. package/lib/components/input/YInput.js +1 -2
  92. package/lib/components/input/YInput.js.map +1 -1
  93. package/lib/components/input/YInput.scss +10 -9
  94. package/lib/components/input/index.js.map +1 -1
  95. package/lib/components/ip-field/YIpv4Field.js +1 -2
  96. package/lib/components/ip-field/YIpv4Field.js.map +1 -1
  97. package/lib/components/ip-field/index.js.map +1 -1
  98. package/lib/components/layer/YLayer.js +4 -3
  99. package/lib/components/layer/YLayer.js.map +1 -1
  100. package/lib/components/layer/active-delay.js.map +1 -1
  101. package/lib/components/layer/active-stack.js.map +1 -1
  102. package/lib/components/layer/base.js.map +1 -1
  103. package/lib/components/layer/content.js.map +1 -1
  104. package/lib/components/layer/index.js.map +1 -1
  105. package/lib/components/layer/scroll-strategies.js.map +1 -1
  106. package/lib/components/list/YList.js +1 -2
  107. package/lib/components/list/YList.js.map +1 -1
  108. package/lib/components/list/YListItem.js +1 -2
  109. package/lib/components/list/YListItem.js.map +1 -1
  110. package/lib/components/list/index.js.map +1 -1
  111. package/lib/components/loading/YSpinnerRing.js.map +1 -1
  112. package/lib/components/loading/index.js.map +1 -1
  113. package/lib/components/menu/YMenu.js +5 -8
  114. package/lib/components/menu/YMenu.js.map +1 -1
  115. package/lib/components/menu/YMenu.scss +3 -4
  116. package/lib/components/menu/index.js.map +1 -1
  117. package/lib/components/navigation/YNavigation.js +1 -2
  118. package/lib/components/navigation/YNavigation.js.map +1 -1
  119. package/lib/components/navigation/index.js.map +1 -1
  120. package/lib/components/pagination/YPagination.js +1 -2
  121. package/lib/components/pagination/YPagination.js.map +1 -1
  122. package/lib/components/pagination/index.js.map +1 -1
  123. package/lib/components/panel/YDividePanel.js +1 -2
  124. package/lib/components/panel/YDividePanel.js.map +1 -1
  125. package/lib/components/panel/YDividePanel.scss +1 -0
  126. package/lib/components/panel/index.js.map +1 -1
  127. package/lib/components/plate/YPlate.js +3 -4
  128. package/lib/components/plate/YPlate.js.map +1 -1
  129. package/lib/components/plate/index.js.map +1 -1
  130. package/lib/components/progress-bar/YProgressBar.js +1 -2
  131. package/lib/components/progress-bar/YProgressBar.js.map +1 -1
  132. package/lib/components/progress-bar/index.js.map +1 -1
  133. package/lib/components/progress-ring/YProgressRing.js +3 -4
  134. package/lib/components/progress-ring/YProgressRing.js.map +1 -1
  135. package/lib/components/progress-ring/index.js.map +1 -1
  136. package/lib/components/radio/YRadio.js +58 -0
  137. package/lib/components/radio/YRadio.js.map +1 -0
  138. package/lib/components/radio/YRadio.scss +38 -0
  139. package/lib/components/radio/YRadioIcon.js +33 -0
  140. package/lib/components/radio/YRadioIcon.js.map +1 -0
  141. package/lib/components/radio/YRadioIcon.scss +43 -0
  142. package/lib/components/radio/index.js +3 -0
  143. package/lib/components/radio/index.js.map +1 -0
  144. package/lib/components/select/YSelect.js +41 -43
  145. package/lib/components/select/YSelect.js.map +1 -1
  146. package/lib/components/select/index.js.map +1 -1
  147. package/lib/components/slider/YSlider.js.map +1 -1
  148. package/lib/components/slider/index.js.map +1 -1
  149. package/lib/components/slider/slider.js.map +1 -1
  150. package/lib/components/snackbar/YSnackbar.js +6 -6
  151. package/lib/components/snackbar/YSnackbar.js.map +1 -1
  152. package/lib/components/snackbar/index.js.map +1 -1
  153. package/lib/components/switch/YSwitch.js +1 -2
  154. package/lib/components/switch/YSwitch.js.map +1 -1
  155. package/lib/components/switch/index.js.map +1 -1
  156. package/lib/components/tab/YTab.js +2 -3
  157. package/lib/components/tab/YTab.js.map +1 -1
  158. package/lib/components/tab/YTab.scss +1 -1
  159. package/lib/components/tab/YTabs.js +1 -2
  160. package/lib/components/tab/YTabs.js.map +1 -1
  161. package/lib/components/tab/index.js.map +1 -1
  162. package/lib/components/tab/shared.js.map +1 -1
  163. package/lib/components/tab/types.js.map +1 -1
  164. package/lib/components/table/YDataTable.js +8 -6
  165. package/lib/components/table/YDataTable.js.map +1 -1
  166. package/lib/components/table/YDataTableBody.js +1 -2
  167. package/lib/components/table/YDataTableBody.js.map +1 -1
  168. package/lib/components/table/YDataTableCell.js +1 -2
  169. package/lib/components/table/YDataTableCell.js.map +1 -1
  170. package/lib/components/table/YDataTableControl.js +8 -6
  171. package/lib/components/table/YDataTableControl.js.map +1 -1
  172. package/lib/components/table/YDataTableControl.scss +10 -0
  173. package/lib/components/table/YDataTableHead.js +1 -1
  174. package/lib/components/table/YDataTableHead.js.map +1 -1
  175. package/lib/components/table/YDataTableLayer.js +1 -2
  176. package/lib/components/table/YDataTableLayer.js.map +1 -1
  177. package/lib/components/table/YDataTableLayerRow.js +1 -2
  178. package/lib/components/table/YDataTableLayerRow.js.map +1 -1
  179. package/lib/components/table/YDataTableLayerRows.js +1 -2
  180. package/lib/components/table/YDataTableLayerRows.js.map +1 -1
  181. package/lib/components/table/YDataTableRow.js +1 -2
  182. package/lib/components/table/YDataTableRow.js.map +1 -1
  183. package/lib/components/table/YDataTableServer.js +8 -6
  184. package/lib/components/table/YDataTableServer.js.map +1 -1
  185. package/lib/components/table/YTable.js +1 -2
  186. package/lib/components/table/YTable.js.map +1 -1
  187. package/lib/components/table/composables/expand.js.map +1 -1
  188. package/lib/components/table/composables/header.js.map +1 -1
  189. package/lib/components/table/composables/items.js.map +1 -1
  190. package/lib/components/table/composables/measure.js +1 -1
  191. package/lib/components/table/composables/measure.js.map +1 -1
  192. package/lib/components/table/composables/options.js.map +1 -1
  193. package/lib/components/table/composables/pagination.js.map +1 -1
  194. package/lib/components/table/composables/provides.js.map +1 -1
  195. package/lib/components/table/composables/selection.js.map +1 -1
  196. package/lib/components/table/composables/sorted-items.js.map +1 -1
  197. package/lib/components/table/composables/sorting.js.map +1 -1
  198. package/lib/components/table/index.js.map +1 -1
  199. package/lib/components/table/types/common.js.map +1 -1
  200. package/lib/components/table/types/header.js.map +1 -1
  201. package/lib/components/table/types/index.js.map +1 -1
  202. package/lib/components/table/types/item.js.map +1 -1
  203. package/lib/components/table/types/row.js.map +1 -1
  204. package/lib/components/text-ellipsis/YTextEllipsis.js +1 -2
  205. package/lib/components/text-ellipsis/YTextEllipsis.js.map +1 -1
  206. package/lib/components/text-ellipsis/index.js.map +1 -1
  207. package/lib/components/text-highlighter/YTextHighlighter.js +2 -1
  208. package/lib/components/text-highlighter/YTextHighlighter.js.map +1 -1
  209. package/lib/components/text-highlighter/index.js.map +1 -1
  210. package/lib/components/text-interpolation/YTi.js +2 -2
  211. package/lib/components/text-interpolation/YTi.js.map +1 -1
  212. package/lib/components/text-interpolation/index.js.map +1 -1
  213. package/lib/components/textarea/YTextarea.js +1 -2
  214. package/lib/components/textarea/YTextarea.js.map +1 -1
  215. package/lib/components/textarea/index.js.map +1 -1
  216. package/lib/components/toggle-button/YToggleButton.js.map +1 -1
  217. package/lib/components/toggle-button/index.js.map +1 -1
  218. package/lib/components/tooltip/YTooltip.js +1 -2
  219. package/lib/components/tooltip/YTooltip.js.map +1 -1
  220. package/lib/components/tooltip/index.js.map +1 -1
  221. package/lib/components/transitions/expand-transition.js.map +1 -1
  222. package/lib/components/transitions/index.js.map +1 -1
  223. package/lib/components/tree-view/YTreeView.js +1 -2
  224. package/lib/components/tree-view/YTreeView.js.map +1 -1
  225. package/lib/components/tree-view/YTreeViewNode.js +7 -4
  226. package/lib/components/tree-view/YTreeViewNode.js.map +1 -1
  227. package/lib/components/tree-view/index.js.map +1 -1
  228. package/lib/components/tree-view/tree-view.js.map +1 -1
  229. package/lib/components/tree-view/types.js.map +1 -1
  230. package/lib/components/tree-view/util.js.map +1 -1
  231. package/lib/composables/choice-link.js.map +1 -1
  232. package/lib/composables/choice.js.map +1 -1
  233. package/lib/composables/communication.js.map +1 -1
  234. package/lib/composables/component.js.map +1 -1
  235. package/lib/composables/coordinate/arrangement.js.map +1 -1
  236. package/lib/composables/coordinate/index.js.map +1 -1
  237. package/lib/composables/coordinate/levitation.js +2 -2
  238. package/lib/composables/coordinate/levitation.js.map +1 -1
  239. package/lib/composables/coordinate/types.js.map +1 -1
  240. package/lib/composables/coordinate/utils/point.js.map +1 -1
  241. package/lib/composables/date/factory.js.map +1 -1
  242. package/lib/composables/date/index.js.map +1 -1
  243. package/lib/composables/date/setting.js.map +1 -1
  244. package/lib/composables/date/types.js.map +1 -1
  245. package/lib/composables/defaults/index.js.map +1 -1
  246. package/lib/composables/defaults/share.js.map +1 -1
  247. package/lib/composables/defaults/types.js.map +1 -1
  248. package/lib/composables/dimension.js.map +1 -1
  249. package/lib/composables/focus.js.map +1 -1
  250. package/lib/composables/form.js +5 -5
  251. package/lib/composables/form.js.map +1 -1
  252. package/lib/composables/i18n/index.js.map +1 -1
  253. package/lib/composables/i18n/locale.js.map +1 -1
  254. package/lib/composables/i18n/rtl.js.map +1 -1
  255. package/lib/composables/i18n/share.js.map +1 -1
  256. package/lib/composables/icon.js +1 -2
  257. package/lib/composables/icon.js.map +1 -1
  258. package/lib/composables/index.js.map +1 -1
  259. package/lib/composables/layer-group.js.map +1 -1
  260. package/lib/composables/layout.js.map +1 -1
  261. package/lib/composables/list-items.js.map +1 -1
  262. package/lib/composables/progress.js.map +1 -1
  263. package/lib/composables/ref.js.map +1 -1
  264. package/lib/composables/resize-observer.js.map +1 -1
  265. package/lib/composables/scope.js.map +1 -1
  266. package/lib/composables/style-color.js +1 -2
  267. package/lib/composables/style-color.js.map +1 -1
  268. package/lib/composables/theme/factory.js.map +1 -1
  269. package/lib/composables/theme/helper.js.map +1 -1
  270. package/lib/composables/theme/index.js +8 -1
  271. package/lib/composables/theme/index.js.map +1 -1
  272. package/lib/composables/theme/setting.js.map +1 -1
  273. package/lib/composables/theme/types.js.map +1 -1
  274. package/lib/composables/timing.js.map +1 -1
  275. package/lib/composables/transition.js.map +1 -1
  276. package/lib/composables/validation.js +7 -4
  277. package/lib/composables/validation.js.map +1 -1
  278. package/lib/composables/vue-router.js.map +1 -1
  279. package/lib/directives/complement-click/index.js.map +1 -1
  280. package/lib/directives/index.js +3 -0
  281. package/lib/directives/index.js.map +1 -0
  282. package/lib/directives/plate-wave/index.js +2 -2
  283. package/lib/directives/plate-wave/index.js.map +1 -1
  284. package/lib/directives/theme-class/index.js +24 -0
  285. package/lib/directives/theme-class/index.js.map +1 -0
  286. package/lib/etc/index.js.map +1 -1
  287. package/lib/i18n/built-in.js.map +1 -1
  288. package/lib/i18n/config.js.map +1 -1
  289. package/lib/i18n/types.js.map +1 -1
  290. package/lib/index.js +3 -3
  291. package/lib/index.js.map +1 -1
  292. package/lib/locales/en.js.map +1 -1
  293. package/lib/locales/index.js.map +1 -1
  294. package/lib/locales/ko.js.map +1 -1
  295. package/lib/mixins/di.js.map +1 -1
  296. package/lib/mixins/rebind-attrs.js +0 -2
  297. package/lib/mixins/rebind-attrs.js.map +1 -1
  298. package/lib/styles/_elevation.scss +0 -1
  299. package/lib/styles/base.scss +3 -1
  300. package/lib/styles/settings/_elevation.scss +12 -12
  301. package/lib/styles/settings/_provided.scss +23 -23
  302. package/lib/styles/theme/dark.scss +3 -3
  303. package/lib/styles/theme/index.scss +0 -1
  304. package/lib/styles/theme/light.scss +3 -3
  305. package/lib/styles/util/_mixin.scss +16 -16
  306. package/lib/types/index.js.map +1 -1
  307. package/lib/util/anchor.js.map +1 -1
  308. package/lib/util/array.js.map +1 -1
  309. package/lib/util/collection.js.map +1 -1
  310. package/lib/util/color/apca.js +1 -0
  311. package/lib/util/color/apca.js.map +1 -1
  312. package/lib/util/color/const.js.map +1 -1
  313. package/lib/util/color/contrast/contrast.js.map +1 -1
  314. package/lib/util/color/conversion.js.map +1 -1
  315. package/lib/util/color/hct/cam16.js.map +1 -1
  316. package/lib/util/color/hct/hct-solver.js +6 -6
  317. package/lib/util/color/hct/hct-solver.js.map +1 -1
  318. package/lib/util/color/hct/hct.js.map +1 -1
  319. package/lib/util/color/hct/viewing-conditions.js +6 -4
  320. package/lib/util/color/hct/viewing-conditions.js.map +1 -1
  321. package/lib/util/color/index.js +13 -13
  322. package/lib/util/color/index.js.map +1 -1
  323. package/lib/util/color/palettes/core-palette.js.map +1 -1
  324. package/lib/util/color/palettes/tonal-palette.js +3 -3
  325. package/lib/util/color/palettes/tonal-palette.js.map +1 -1
  326. package/lib/util/color/types.js.map +1 -1
  327. package/lib/util/color/utils/math-utils.js +62 -62
  328. package/lib/util/color/utils/math-utils.js.map +1 -1
  329. package/lib/util/common.js +28 -13
  330. package/lib/util/common.js.map +1 -1
  331. package/lib/util/component/component.js.map +1 -1
  332. package/lib/util/component/index.js.map +1 -1
  333. package/lib/util/component/inject-self.js.map +1 -1
  334. package/lib/util/component/props.js.map +1 -1
  335. package/lib/util/component/types.js.map +1 -1
  336. package/lib/util/date/adapters/yuyeon-date-adapter.js +3 -3
  337. package/lib/util/date/adapters/yuyeon-date-adapter.js.map +1 -1
  338. package/lib/util/date/built-in.js +2 -0
  339. package/lib/util/date/built-in.js.map +1 -1
  340. package/lib/util/date/index.js +1 -1
  341. package/lib/util/date/index.js.map +1 -1
  342. package/lib/util/date/types.js.map +1 -1
  343. package/lib/util/debounce.js +1 -1
  344. package/lib/util/debounce.js.map +1 -1
  345. package/lib/util/dom.js +10 -1
  346. package/lib/util/dom.js.map +1 -1
  347. package/lib/util/environments.js.map +1 -1
  348. package/lib/util/frame-scheduler.js +3 -3
  349. package/lib/util/frame-scheduler.js.map +1 -1
  350. package/lib/util/index.js +11 -11
  351. package/lib/util/index.js.map +1 -1
  352. package/lib/util/reactivity.js +3 -3
  353. package/lib/util/reactivity.js.map +1 -1
  354. package/lib/util/rect.js.map +1 -1
  355. package/lib/util/scroll.js.map +1 -1
  356. package/lib/util/string.js +6 -1
  357. package/lib/util/string.js.map +1 -1
  358. package/lib/util/ui.js.map +1 -1
  359. package/lib/util/validation.js.map +1 -1
  360. package/package.json +132 -123
  361. package/types/abstract/items.d.ts +4 -4
  362. package/types/components/alert/YAlert.d.ts +2 -2
  363. package/types/components/badge/YBadge.d.ts +0 -3
  364. package/types/components/button/YButton.d.ts +3 -3
  365. package/types/components/checkbox/YCheckbox.d.ts +4 -4
  366. package/types/components/chip/YChip.d.ts +0 -3
  367. package/types/components/date-picker/YDateCalendar.d.ts +3 -3
  368. package/types/components/date-picker/YDatePickerControl.d.ts +7 -7
  369. package/types/components/dialog/YDialog.d.ts +108 -6480
  370. package/types/components/draggable/YDraggable.d.ts +6 -6
  371. package/types/components/draggable/index.d.ts +1 -0
  372. package/types/components/dropdown/YDropdown.d.ts +87 -87
  373. package/types/components/field-input/YFieldInput.d.ts +20 -14
  374. package/types/components/form/YForm.d.ts +3 -3
  375. package/types/components/icon/YIcon.d.ts +4 -4
  376. package/types/components/icons/YIconPageControl.d.ts +1 -1
  377. package/types/components/icons/YIconSort.d.ts +1 -1
  378. package/types/components/icons/index.d.ts +4 -4
  379. package/types/components/img/YImg.d.ts +26 -26
  380. package/types/components/input/YInput.d.ts +13 -13
  381. package/types/components/ip-field/YIpv4Field.d.ts +5 -5
  382. package/types/components/layer/YLayer.d.ts +55 -3240
  383. package/types/components/layer/scroll-strategies.d.ts +4 -4
  384. package/types/components/menu/YMenu.d.ts +74 -6446
  385. package/types/components/pagination/YPagination.d.ts +3 -3
  386. package/types/components/radio/YRadio.d.ts +25 -0
  387. package/types/components/radio/YRadioIcon.d.ts +6 -0
  388. package/types/components/radio/index.d.ts +2 -0
  389. package/types/components/select/YSelect.d.ts +178 -496
  390. package/types/components/slider/YSlider.d.ts +1 -1
  391. package/types/components/snackbar/YSnackbar.d.ts +55 -55
  392. package/types/components/tab/YTab.d.ts +3 -3
  393. package/types/components/tab/YTabs.d.ts +1 -1
  394. package/types/components/table/YDataTable.d.ts +33 -87
  395. package/types/components/table/YDataTableBody.d.ts +3 -3
  396. package/types/components/table/YDataTableCell.d.ts +2 -2
  397. package/types/components/table/YDataTableControl.d.ts +18 -6
  398. package/types/components/table/YDataTableLayer.d.ts +2 -2
  399. package/types/components/table/YDataTableRow.d.ts +1 -1
  400. package/types/components/table/YDataTableServer.d.ts +54 -99
  401. package/types/components/table/YTable.d.ts +3 -3
  402. package/types/components/table/composables/expand.d.ts +4 -4
  403. package/types/components/table/composables/header.d.ts +16 -48
  404. package/types/components/table/composables/items.d.ts +2 -2
  405. package/types/components/table/composables/pagination.d.ts +10 -10
  406. package/types/components/table/composables/selection.d.ts +6 -6
  407. package/types/components/table/composables/sorting.d.ts +8 -14
  408. package/types/components/table/types/item.d.ts +1 -1
  409. package/types/components/textarea/YTextarea.d.ts +30 -30
  410. package/types/components/tooltip/YTooltip.d.ts +67 -67
  411. package/types/components/tree-view/YTreeView.d.ts +7 -7
  412. package/types/components/tree-view/YTreeViewNode.d.ts +5 -5
  413. package/types/components/tree-view/tree-view.d.ts +2 -2
  414. package/types/composables/choice.d.ts +2 -2
  415. package/types/composables/coordinate/index.d.ts +27 -3205
  416. package/types/composables/dimension.d.ts +6 -6
  417. package/types/composables/form.d.ts +17 -27
  418. package/types/composables/list-items.d.ts +3 -3
  419. package/types/composables/style-color.d.ts +0 -1
  420. package/types/composables/theme/index.d.ts +1 -0
  421. package/types/composables/transition.d.ts +10 -10
  422. package/types/composables/validation.d.ts +6 -6
  423. package/types/composables/vue-router.d.ts +3 -3
  424. package/types/declares.d.ts +1 -0
  425. package/types/directives/index.d.ts +2 -0
  426. package/types/directives/plate-wave/index.d.ts +7 -1
  427. package/types/globals.d.ts +19 -20
  428. package/types/shims.d.ts +58 -52
  429. package/types/types/index.d.ts +3 -0
  430. package/types/util/anchor.d.ts +1 -1
  431. package/types/util/common.d.ts +3 -0
  432. package/types/util/component/component.d.ts +1 -2
  433. package/types/util/component/props.d.ts +1 -1
  434. package/types/util/component/types.d.ts +1 -1
  435. package/types/util/date/index.d.ts +1 -1
  436. package/types/util/dom.d.ts +2 -0
  437. package/types/util/index.d.ts +11 -11
  438. package/types/util/string.d.ts +1 -0
  439. /package/types/directives/{theme-class.d.ts → theme-class/index.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"YForm.js","names":["ref","withKeys","useRender","createForm","pressFormPropsOptions","defineComponent","NAME","YForm","name","props","emits","val","submit","e","setup","_ref","emit","slots","expose","form","form$","formData","onSubmit","_e","validation","validate","then","bind","catch","finally","defaultPrevented","_ref2","valid","value","preventDefault","onKeydown","stopImmediatePropagation","_createVNode","default"],"sources":["../../../src/components/form/YForm.tsx"],"sourcesContent":["import { ref, withKeys } from 'vue';\r\n\r\nimport { useRender } from '@/composables/component';\r\nimport {\r\n SubmitEventPromise,\r\n createForm,\r\n pressFormPropsOptions,\r\n} from '@/composables/form';\r\nimport { defineComponent } from '@/util/component';\r\n\r\nconst NAME = 'y-form';\r\n\r\nexport const YForm = defineComponent({\r\n name: 'YForm',\r\n props: {\r\n ...pressFormPropsOptions(),\r\n },\r\n emits: {\r\n 'update:modelValue': (val: boolean | null) => true,\r\n submit: (e: SubmitEventPromise) => true,\r\n 'keydown.enter': (e: Event) => true,\r\n },\r\n setup(props, { emit, slots, expose }) {\r\n const form = createForm(props);\r\n const form$ = ref<HTMLFormElement>();\r\n // TODO: naming formData from form composition\r\n const formData = ref();\r\n\r\n function onSubmit(_e: Event) {\r\n const e = _e as SubmitEventPromise;\r\n\r\n const validation = form.validate();\r\n e.then = validation.then.bind(validation);\r\n e.catch = validation.catch.bind(validation);\r\n e.finally = validation.finally.bind(validation);\r\n\r\n emit('submit', e);\r\n\r\n if (!e.defaultPrevented) {\r\n validation.then(({ valid }) => {\r\n if (valid) {\r\n form$.value?.submit();\r\n }\r\n });\r\n }\r\n e.preventDefault();\r\n }\r\n\r\n function onKeydown(e: Event) {\r\n e.preventDefault();\r\n e.stopImmediatePropagation();\r\n emit('keydown.enter', e);\r\n }\r\n\r\n expose({\r\n ...form,\r\n });\r\n\r\n useRender(() => {\r\n return (\r\n <form\r\n ref={form$}\r\n class={[NAME]}\r\n novalidate\r\n onSubmit={onSubmit}\r\n onKeydown={withKeys(onKeydown, ['enter'])}\r\n >\r\n {slots.default?.()}\r\n </form>\r\n );\r\n });\r\n },\r\n});\r\n\r\nexport type YForm = InstanceType<typeof YForm>;\r\n"],"mappings":";AAAA,SAASA,GAAG,EAAEC,QAAQ,QAAQ,KAAK;AAAC,SAE3BC,SAAS;AAAA,SAGhBC,UAAU,EACVC,qBAAqB;AAAA,SAEdC,eAAe;AAExB,MAAMC,IAAI,GAAG,QAAQ;AAErB,OAAO,MAAMC,KAAK,GAAGF,eAAe,CAAC;EACnCG,IAAI,EAAE,OAAO;EACbC,KAAK,EAAE;IACL,GAAGL,qBAAqB,CAAC;EAC3B,CAAC;EACDM,KAAK,EAAE;IACL,mBAAmB,EAAGC,GAAmB,IAAK,IAAI;IAClDC,MAAM,EAAGC,CAAqB,IAAK,IAAI;IACvC,eAAe,EAAGA,CAAQ,IAAK;EACjC,CAAC;EACDC,KAAKA,CAACL,KAAK,EAAAM,IAAA,EAA2B;IAAA,IAAzB;MAAEC,IAAI;MAAEC,KAAK;MAAEC;IAAO,CAAC,GAAAH,IAAA;IAClC,MAAMI,IAAI,GAAGhB,UAAU,CAACM,KAAK,CAAC;IAC9B,MAAMW,KAAK,GAAGpB,GAAG,CAAkB,CAAC;IACpC;IACA,MAAMqB,QAAQ,GAAGrB,GAAG,CAAC,CAAC;IAEtB,SAASsB,QAAQA,CAACC,EAAS,EAAE;MAC3B,MAAMV,CAAC,GAAGU,EAAwB;MAElC,MAAMC,UAAU,GAAGL,IAAI,CAACM,QAAQ,CAAC,CAAC;MAClCZ,CAAC,CAACa,IAAI,GAAGF,UAAU,CAACE,IAAI,CAACC,IAAI,CAACH,UAAU,CAAC;MACzCX,CAAC,CAACe,KAAK,GAAGJ,UAAU,CAACI,KAAK,CAACD,IAAI,CAACH,UAAU,CAAC;MAC3CX,CAAC,CAACgB,OAAO,GAAGL,UAAU,CAACK,OAAO,CAACF,IAAI,CAACH,UAAU,CAAC;MAE/CR,IAAI,CAAC,QAAQ,EAAEH,CAAC,CAAC;MAEjB,IAAI,CAACA,CAAC,CAACiB,gBAAgB,EAAE;QACvBN,UAAU,CAACE,IAAI,CAACK,KAAA,IAAe;UAAA,IAAd;YAAEC;UAAM,CAAC,GAAAD,KAAA;UACxB,IAAIC,KAAK,EAAE;YACTZ,KAAK,CAACa,KAAK,EAAErB,MAAM,CAAC,CAAC;UACvB;QACF,CAAC,CAAC;MACJ;MACAC,CAAC,CAACqB,cAAc,CAAC,CAAC;IACpB;IAEA,SAASC,SAASA,CAACtB,CAAQ,EAAE;MAC3BA,CAAC,CAACqB,cAAc,CAAC,CAAC;MAClBrB,CAAC,CAACuB,wBAAwB,CAAC,CAAC;MAC5BpB,IAAI,CAAC,eAAe,EAAEH,CAAC,CAAC;IAC1B;IAEAK,MAAM,CAAC;MACL,GAAGC;IACL,CAAC,CAAC;IAEFjB,SAAS,CAAC,MAAM;MACd,OAAAmC,YAAA;QAAA,OAESjB,KAAK;QAAA,SACH,CAACd,IAAI,CAAC;QAAA;QAAA,YAEHgB,QAAQ;QAAA,aACPrB,QAAQ,CAACkC,SAAS,EAAE,CAAC,OAAO,CAAC;MAAC,IAExClB,KAAK,CAACqB,OAAO,GAAG,CAAC;IAGxB,CAAC,CAAC;EACJ;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"YForm.js","names":["ref","withKeys","createVNode","_createVNode","useRender","createForm","pressFormPropsOptions","makeEventPromiseLike","defineComponent","NAME","YForm","name","props","emits","val","submit","e","setup","_ref","emit","slots","expose","form","form$","onSubmit","_e","validation","validate","defaultPrevented","then","_ref2","valid","value","preventDefault","onKeydown","stopImmediatePropagation","default"],"sources":["../../../src/components/form/YForm.tsx"],"sourcesContent":["import { ref, withKeys } from \"vue\";\n\nimport { useRender } from \"@/composables/component\";\nimport {\n\tcreateForm,\n\ttype FormValidationResult,\n\tpressFormPropsOptions,\n\ttype SubmitEventPromise,\n} from \"@/composables/form\";\nimport { makeEventPromiseLike } from \"@/util/common\";\nimport { defineComponent } from \"@/util/component\";\n\nconst NAME = \"y-form\";\n\nexport const YForm = defineComponent({\n\tname: \"YForm\",\n\tprops: {\n\t\t...pressFormPropsOptions(),\n\t},\n\temits: {\n\t\t\"update:modelValue\": (val: boolean | null) => true,\n\t\tsubmit: (e: SubmitEventPromise) => true,\n\t\t\"keydown.enter\": (e: Event) => true,\n\t},\n\tsetup(props, { emit, slots, expose }) {\n\t\tconst form = createForm(props);\n\t\tconst form$ = ref<HTMLFormElement>();\n\t\t// TODO: naming formData from form composition\n\t\t// const formData = ref();\n\n\t\tfunction onSubmit(_e: Event) {\n\t\t\tconst validation = form.validate();\n\t\t\tconst e: SubmitEventPromise = makeEventPromiseLike<\n\t\t\t\tSubmitEvent,\n\t\t\t\tFormValidationResult\n\t\t\t>(_e as SubmitEvent, validation);\n\n\t\t\temit(\"submit\", e);\n\n\t\t\tif (!e.defaultPrevented) {\n\t\t\t\tvalidation.then(({ valid }) => {\n\t\t\t\t\tif (valid) {\n\t\t\t\t\t\tform$.value?.submit();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\te.preventDefault();\n\t\t}\n\n\t\tfunction onKeydown(e: Event) {\n\t\t\te.preventDefault();\n\t\t\te.stopImmediatePropagation();\n\t\t\temit(\"keydown.enter\", e);\n\t\t}\n\n\t\texpose({\n\t\t\t...form,\n\t\t});\n\n\t\tuseRender(() => {\n\t\t\treturn (\n\t\t\t\t<form\n\t\t\t\t\tref={form$}\n\t\t\t\t\tclass={[NAME]}\n\t\t\t\t\tnovalidate\n\t\t\t\t\tonSubmit={onSubmit}\n\t\t\t\t\tonKeydown={withKeys(onKeydown, [\"enter\"])}\n\t\t\t\t>\n\t\t\t\t\t{slots.default?.()}\n\t\t\t\t</form>\n\t\t\t);\n\t\t});\n\t},\n});\n\nexport type YForm = InstanceType<typeof YForm>;\n"],"mappings":"AAAA,SAASA,GAAG,EAAEC,QAAQ,EAAAC,WAAA,IAAAC,YAAA,QAAQ,KAAK;AAAC,SAE3BC,SAAS;AAAA,SAEjBC,UAAU,EAEVC,qBAAqB;AAAA,SAGbC,oBAAoB;AAAA,SACpBC,eAAe;AAExB,MAAMC,IAAI,GAAG,QAAQ;AAErB,OAAO,MAAMC,KAAK,GAAGF,eAAe,CAAC;EACpCG,IAAI,EAAE,OAAO;EACbC,KAAK,EAAE;IACN,GAAGN,qBAAqB,CAAC;EAC1B,CAAC;EACDO,KAAK,EAAE;IACN,mBAAmB,EAAGC,GAAmB,IAAK,IAAI;IAClDC,MAAM,EAAGC,CAAqB,IAAK,IAAI;IACvC,eAAe,EAAGA,CAAQ,IAAK;EAChC,CAAC;EACDC,KAAKA,CAACL,KAAK,EAAAM,IAAA,EAA2B;IAAA,IAAzB;MAAEC,IAAI;MAAEC,KAAK;MAAEC;IAAO,CAAC,GAAAH,IAAA;IACnC,MAAMI,IAAI,GAAGjB,UAAU,CAACO,KAAK,CAAC;IAC9B,MAAMW,KAAK,GAAGvB,GAAG,CAAkB,CAAC;IACpC;IACA;;IAEA,SAASwB,QAAQA,CAACC,EAAS,EAAE;MAC5B,MAAMC,UAAU,GAAGJ,IAAI,CAACK,QAAQ,CAAC,CAAC;MAClC,MAAMX,CAAqB,GAAGT,oBAAoB,CAGhDkB,EAAE,EAAiBC,UAAU,CAAC;MAEhCP,IAAI,CAAC,QAAQ,EAAEH,CAAC,CAAC;MAEjB,IAAI,CAACA,CAAC,CAACY,gBAAgB,EAAE;QACxBF,UAAU,CAACG,IAAI,CAACC,KAAA,IAAe;UAAA,IAAd;YAAEC;UAAM,CAAC,GAAAD,KAAA;UACzB,IAAIC,KAAK,EAAE;YACVR,KAAK,CAACS,KAAK,EAAEjB,MAAM,CAAC,CAAC;UACtB;QACD,CAAC,CAAC;MACH;MACAC,CAAC,CAACiB,cAAc,CAAC,CAAC;IACnB;IAEA,SAASC,SAASA,CAAClB,CAAQ,EAAE;MAC5BA,CAAC,CAACiB,cAAc,CAAC,CAAC;MAClBjB,CAAC,CAACmB,wBAAwB,CAAC,CAAC;MAC5BhB,IAAI,CAAC,eAAe,EAAEH,CAAC,CAAC;IACzB;IAEAK,MAAM,CAAC;MACN,GAAGC;IACJ,CAAC,CAAC;IAEFlB,SAAS,CAAC,MAAM;MACf,OAAAD,YAAA;QAAA,OAEOoB,KAAK;QAAA,SACH,CAACd,IAAI,CAAC;QAAA;QAAA,YAEHe,QAAQ;QAAA,aACPvB,QAAQ,CAACiC,SAAS,EAAE,CAAC,OAAO,CAAC;MAAC,IAExCd,KAAK,CAACgB,OAAO,GAAG,CAAC;IAGrB,CAAC,CAAC;EACH;AACD,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/form/index.ts"],"sourcesContent":["export * from './YForm';\n"],"mappings":""}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/form/index.ts"],"sourcesContent":["export * from './YForm';\n"],"mappings":"","ignoreList":[]}
@@ -1,5 +1,4 @@
1
- import { createVNode as _createVNode, Fragment as _Fragment } from "vue";
2
- import { ref, watch } from 'vue';
1
+ import { ref, watch, Fragment as _Fragment, createVNode as _createVNode } from "vue";
3
2
  import { useModelDuplex } from "../../composables/communication.js";
4
3
  import { useRender } from "../../composables/component.js";
5
4
  import { useDelay } from "../../composables/timing.js";
@@ -18,26 +17,28 @@ export const pressYHoverPropsOptions = propsFactory({
18
17
  type: Number,
19
18
  default: 100
20
19
  }
21
- }, 'YHover');
20
+ }, "YHover");
22
21
  export const YHover = defineComponent({
23
- name: 'YHover',
22
+ name: "YHover",
24
23
  props: pressYHoverPropsOptions(),
25
- emits: ['update:modelValue', 'hover'],
24
+ emits: ["update:modelValue", "hover"],
26
25
  setup(props, _ref) {
27
26
  let {
28
27
  slots,
29
28
  emit
30
29
  } = _ref;
31
- const isHovering = useModelDuplex(props, 'modelValue');
30
+ const isHovering = useModelDuplex(props, "modelValue");
32
31
  const {
33
32
  startOpenDelay,
34
33
  startCloseDelay
35
34
  } = useDelay(props, value => {
36
- !props.disabled && (isHovering.value = value);
35
+ if (!props.disabled) {
36
+ isHovering.value = value;
37
+ }
37
38
  });
38
39
  const defaultSlot = ref();
39
40
  watch(isHovering, neo => {
40
- emit('hover', neo, defaultSlot);
41
+ emit("hover", neo, defaultSlot);
41
42
  });
42
43
  useRender(() => {
43
44
  defaultSlot.value = slots.default?.({
@@ -1 +1 @@
1
- {"version":3,"file":"YHover.js","names":["ref","watch","useModelDuplex","useRender","useDelay","defineComponent","propsFactory","pressYHoverPropsOptions","disabled","Boolean","modelValue","type","default","undefined","openDelay","Number","closeDelay","YHover","name","props","emits","setup","_ref","slots","emit","isHovering","startOpenDelay","startCloseDelay","value","defaultSlot","neo","onMouseenter","onMouseleave","_createVNode","_Fragment"],"sources":["../../../src/components/hover/YHover.tsx"],"sourcesContent":["import { ref, watch } from 'vue';\n\nimport { useModelDuplex } from '@/composables/communication';\nimport { useRender } from '@/composables/component';\nimport { useDelay } from '@/composables/timing';\nimport { defineComponent, propsFactory } from '@/util/component';\n\nexport const pressYHoverPropsOptions = propsFactory(\n {\n disabled: Boolean,\n modelValue: {\n type: Boolean,\n default: undefined,\n },\n openDelay: {\n type: Number,\n default: 100,\n },\n closeDelay: {\n type: Number,\n default: 100,\n },\n },\n 'YHover',\n);\n\nexport const YHover = defineComponent({\n name: 'YHover',\n props: pressYHoverPropsOptions(),\n emits: ['update:modelValue', 'hover'],\n setup(props, { slots, emit }) {\n const isHovering = useModelDuplex(props, 'modelValue');\n const { startOpenDelay, startCloseDelay } = useDelay(\n props,\n (value: any) => {\n !props.disabled && (isHovering.value = value);\n },\n );\n\n const defaultSlot = ref<any>();\n\n watch(isHovering, (neo) => {\n emit('hover', neo, defaultSlot);\n });\n\n useRender(() => {\n defaultSlot.value = slots.default?.({\n isHovering: isHovering.value,\n props: {\n onMouseenter: () => startOpenDelay(),\n onMouseleave: () => startCloseDelay(),\n },\n });\n return <>{defaultSlot.value}</>;\n });\n },\n});\n\nexport type YHover = InstanceType<typeof YHover>;\n"],"mappings":";AAAA,SAASA,GAAG,EAAEC,KAAK,QAAQ,KAAK;AAAC,SAExBC,cAAc;AAAA,SACdC,SAAS;AAAA,SACTC,QAAQ;AAAA,SACRC,eAAe,EAAEC,YAAY;AAEtC,OAAO,MAAMC,uBAAuB,GAAGD,YAAY,CACjD;EACEE,QAAQ,EAAEC,OAAO;EACjBC,UAAU,EAAE;IACVC,IAAI,EAAEF,OAAO;IACbG,OAAO,EAAEC;EACX,CAAC;EACDC,SAAS,EAAE;IACTH,IAAI,EAAEI,MAAM;IACZH,OAAO,EAAE;EACX,CAAC;EACDI,UAAU,EAAE;IACVL,IAAI,EAAEI,MAAM;IACZH,OAAO,EAAE;EACX;AACF,CAAC,EACD,QACF,CAAC;AAED,OAAO,MAAMK,MAAM,GAAGZ,eAAe,CAAC;EACpCa,IAAI,EAAE,QAAQ;EACdC,KAAK,EAAEZ,uBAAuB,CAAC,CAAC;EAChCa,KAAK,EAAE,CAAC,mBAAmB,EAAE,OAAO,CAAC;EACrCC,KAAKA,CAACF,KAAK,EAAAG,IAAA,EAAmB;IAAA,IAAjB;MAAEC,KAAK;MAAEC;IAAK,CAAC,GAAAF,IAAA;IAC1B,MAAMG,UAAU,GAAGvB,cAAc,CAACiB,KAAK,EAAE,YAAY,CAAC;IACtD,MAAM;MAAEO,cAAc;MAAEC;IAAgB,CAAC,GAAGvB,QAAQ,CAClDe,KAAK,EACJS,KAAU,IAAK;MACd,CAACT,KAAK,CAACX,QAAQ,KAAKiB,UAAU,CAACG,KAAK,GAAGA,KAAK,CAAC;IAC/C,CACF,CAAC;IAED,MAAMC,WAAW,GAAG7B,GAAG,CAAM,CAAC;IAE9BC,KAAK,CAACwB,UAAU,EAAGK,GAAG,IAAK;MACzBN,IAAI,CAAC,OAAO,EAAEM,GAAG,EAAED,WAAW,CAAC;IACjC,CAAC,CAAC;IAEF1B,SAAS,CAAC,MAAM;MACd0B,WAAW,CAACD,KAAK,GAAGL,KAAK,CAACX,OAAO,GAAG;QAClCa,UAAU,EAAEA,UAAU,CAACG,KAAK;QAC5BT,KAAK,EAAE;UACLY,YAAY,EAAEA,CAAA,KAAML,cAAc,CAAC,CAAC;UACpCM,YAAY,EAAEA,CAAA,KAAML,eAAe,CAAC;QACtC;MACF,CAAC,CAAC;MACF,OAAAM,YAAA,CAAAC,SAAA,SAAUL,WAAW,CAACD,KAAK;IAC7B,CAAC,CAAC;EACJ;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"YHover.js","names":["ref","watch","Fragment","_Fragment","createVNode","_createVNode","useModelDuplex","useRender","useDelay","defineComponent","propsFactory","pressYHoverPropsOptions","disabled","Boolean","modelValue","type","default","undefined","openDelay","Number","closeDelay","YHover","name","props","emits","setup","_ref","slots","emit","isHovering","startOpenDelay","startCloseDelay","value","defaultSlot","neo","onMouseenter","onMouseleave"],"sources":["../../../src/components/hover/YHover.tsx"],"sourcesContent":["import { ref, watch } from \"vue\";\n\nimport { useModelDuplex } from \"@/composables/communication\";\nimport { useRender } from \"@/composables/component\";\nimport { useDelay } from \"@/composables/timing\";\nimport { defineComponent, propsFactory } from \"@/util/component\";\n\nexport const pressYHoverPropsOptions = propsFactory(\n\t{\n\t\tdisabled: Boolean,\n\t\tmodelValue: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: undefined,\n\t\t},\n\t\topenDelay: {\n\t\t\ttype: Number,\n\t\t\tdefault: 100,\n\t\t},\n\t\tcloseDelay: {\n\t\t\ttype: Number,\n\t\t\tdefault: 100,\n\t\t},\n\t},\n\t\"YHover\",\n);\n\nexport const YHover = defineComponent({\n\tname: \"YHover\",\n\tprops: pressYHoverPropsOptions(),\n\temits: [\"update:modelValue\", \"hover\"],\n\tsetup(props, { slots, emit }) {\n\t\tconst isHovering = useModelDuplex(props, \"modelValue\");\n\t\tconst { startOpenDelay, startCloseDelay } = useDelay(\n\t\t\tprops,\n\t\t\t(value: any) => {\n\t\t\t\tif (!props.disabled) {\n\t\t\t\t\tisHovering.value = value;\n\t\t\t\t}\n\t\t\t},\n\t\t);\n\n\t\tconst defaultSlot = ref<any>();\n\n\t\twatch(isHovering, (neo) => {\n\t\t\temit(\"hover\", neo, defaultSlot);\n\t\t});\n\n\t\tuseRender(() => {\n\t\t\tdefaultSlot.value = slots.default?.({\n\t\t\t\tisHovering: isHovering.value,\n\t\t\t\tprops: {\n\t\t\t\t\tonMouseenter: () => startOpenDelay(),\n\t\t\t\t\tonMouseleave: () => startCloseDelay(),\n\t\t\t\t},\n\t\t\t});\n\t\t\treturn <>{defaultSlot.value}</>;\n\t\t});\n\t},\n});\n\nexport type YHover = InstanceType<typeof YHover>;\n"],"mappings":"AAAA,SAASA,GAAG,EAAEC,KAAK,EAAAC,QAAA,IAAAC,SAAA,EAAAC,WAAA,IAAAC,YAAA,QAAQ,KAAK;AAAC,SAExBC,cAAc;AAAA,SACdC,SAAS;AAAA,SACTC,QAAQ;AAAA,SACRC,eAAe,EAAEC,YAAY;AAEtC,OAAO,MAAMC,uBAAuB,GAAGD,YAAY,CAClD;EACCE,QAAQ,EAAEC,OAAO;EACjBC,UAAU,EAAE;IACXC,IAAI,EAAEF,OAAO;IACbG,OAAO,EAAEC;EACV,CAAC;EACDC,SAAS,EAAE;IACVH,IAAI,EAAEI,MAAM;IACZH,OAAO,EAAE;EACV,CAAC;EACDI,UAAU,EAAE;IACXL,IAAI,EAAEI,MAAM;IACZH,OAAO,EAAE;EACV;AACD,CAAC,EACD,QACD,CAAC;AAED,OAAO,MAAMK,MAAM,GAAGZ,eAAe,CAAC;EACrCa,IAAI,EAAE,QAAQ;EACdC,KAAK,EAAEZ,uBAAuB,CAAC,CAAC;EAChCa,KAAK,EAAE,CAAC,mBAAmB,EAAE,OAAO,CAAC;EACrCC,KAAKA,CAACF,KAAK,EAAAG,IAAA,EAAmB;IAAA,IAAjB;MAAEC,KAAK;MAAEC;IAAK,CAAC,GAAAF,IAAA;IAC3B,MAAMG,UAAU,GAAGvB,cAAc,CAACiB,KAAK,EAAE,YAAY,CAAC;IACtD,MAAM;MAAEO,cAAc;MAAEC;IAAgB,CAAC,GAAGvB,QAAQ,CACnDe,KAAK,EACJS,KAAU,IAAK;MACf,IAAI,CAACT,KAAK,CAACX,QAAQ,EAAE;QACpBiB,UAAU,CAACG,KAAK,GAAGA,KAAK;MACzB;IACD,CACD,CAAC;IAED,MAAMC,WAAW,GAAGjC,GAAG,CAAM,CAAC;IAE9BC,KAAK,CAAC4B,UAAU,EAAGK,GAAG,IAAK;MAC1BN,IAAI,CAAC,OAAO,EAAEM,GAAG,EAAED,WAAW,CAAC;IAChC,CAAC,CAAC;IAEF1B,SAAS,CAAC,MAAM;MACf0B,WAAW,CAACD,KAAK,GAAGL,KAAK,CAACX,OAAO,GAAG;QACnCa,UAAU,EAAEA,UAAU,CAACG,KAAK;QAC5BT,KAAK,EAAE;UACNY,YAAY,EAAEA,CAAA,KAAML,cAAc,CAAC,CAAC;UACpCM,YAAY,EAAEA,CAAA,KAAML,eAAe,CAAC;QACrC;MACD,CAAC,CAAC;MACF,OAAA1B,YAAA,CAAAF,SAAA,SAAU8B,WAAW,CAACD,KAAK;IAC5B,CAAC,CAAC;EACH;AACD,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/hover/index.ts"],"sourcesContent":["export * from './YHover';\n"],"mappings":""}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/hover/index.ts"],"sourcesContent":["export * from './YHover';\n"],"mappings":"","ignoreList":[]}
@@ -1,10 +1,8 @@
1
- import { createVNode as _createVNode } from "vue";
2
- import { computed, ref } from 'vue';
1
+ import { computed, ref, createVNode as _createVNode } from 'vue';
3
2
  import { useRender } from "../../composables/component.js";
4
3
  import { IconValue, useIcon } from "../../composables/icon.js";
5
4
  import { pressThemePropsOptions, useLocalTheme } from "../../composables/theme/index.js";
6
- import { defineComponent } from "../../util/component/index.js";
7
- import { propsFactory } from "../../util/component/index.js";
5
+ import { defineComponent, propsFactory } from "../../util/component/index.js";
8
6
  import { toStyleSizeValue } from "../../util/ui.js";
9
7
  import "./YIcon.scss";
10
8
  export const pressYIconPropsOptions = propsFactory({
@@ -1 +1 @@
1
- {"version":3,"file":"YIcon.js","names":["computed","ref","useRender","IconValue","useIcon","pressThemePropsOptions","useLocalTheme","defineComponent","propsFactory","toStyleSizeValue","pressYIconPropsOptions","color","String","gap","icon","tag","type","default","size","Number","class","Array","YIcon","name","props","setup","_ref","attrs","slots","iconCode","themeClasses","iconData","value","defaultSlot","filter","node","Text","children","_createVNode","component","onClick","fontSize","width","height","undefined"],"sources":["../../../src/components/icon/YIcon.tsx"],"sourcesContent":["import { type PropType, computed, ref } from 'vue';\r\n\r\nimport { useRender } from '@/composables/component';\r\nimport { IconValue, useIcon } from '@/composables/icon';\r\nimport { pressThemePropsOptions, useLocalTheme } from '@/composables/theme';\r\nimport { defineComponent } from '@/util/component';\r\nimport { propsFactory } from '@/util/component';\r\nimport { toStyleSizeValue } from '@/util/ui';\r\n\r\nimport './YIcon.scss';\r\n\r\nexport const pressYIconPropsOptions = propsFactory(\r\n {\r\n color: String,\r\n gap: String,\r\n icon: IconValue,\r\n tag: {\r\n type: String,\r\n default: 'i',\r\n },\r\n size: {\r\n type: [String, Number],\r\n },\r\n class: [String, Array] as PropType<any>,\r\n ...pressThemePropsOptions(),\r\n },\r\n 'YIcon',\r\n);\r\n\r\nexport const YIcon = defineComponent({\r\n name: 'YIcon',\r\n props: pressYIconPropsOptions(),\r\n setup(props, { attrs, slots }) {\r\n const iconCode = ref<string>();\r\n\r\n const { themeClasses } = useLocalTheme(props);\r\n const { iconData } = useIcon(computed(() => iconCode.value || props.icon));\r\n\r\n useRender(() => {\r\n const defaultSlot = slots.default?.();\r\n if (defaultSlot) {\r\n iconCode.value = defaultSlot.filter(\r\n (node) =>\r\n node.type === Text &&\r\n node.children &&\r\n typeof node.children === 'string',\r\n )[0]?.children as string;\r\n }\r\n\r\n return (\r\n <iconData.value.component\r\n tag={props.tag}\r\n icon={iconData.value.icon}\r\n class={[\r\n 'y-icon',\r\n 'notranslate',\r\n themeClasses.value,\r\n {\r\n 'y-icon--clickable': !!attrs.onClick,\r\n },\r\n props.class,\r\n ]}\r\n style={{\r\n fontSize: toStyleSizeValue(props.size),\r\n width: toStyleSizeValue(props.size),\r\n height: toStyleSizeValue(props.size),\r\n }}\r\n role={attrs.onClick ? 'button' : undefined}\r\n aria-hidden={!attrs.onClick}\r\n >\r\n {defaultSlot}\r\n </iconData.value.component>\r\n );\r\n });\r\n },\r\n});\r\n\r\nexport type YIconIconProp = IconValue & Omit<PropType<YIcon['$props']>, 'icon'>;\r\n\r\nexport type YIcon = InstanceType<typeof YIcon>;\r\n"],"mappings":";AAAA,SAAwBA,QAAQ,EAAEC,GAAG,QAAQ,KAAK;AAAC,SAE1CC,SAAS;AAAA,SACTC,SAAS,EAAEC,OAAO;AAAA,SAClBC,sBAAsB,EAAEC,aAAa;AAAA,SACrCC,eAAe;AAAA,SACfC,YAAY;AAAA,SACZC,gBAAgB;AAEzB;AAEA,OAAO,MAAMC,sBAAsB,GAAGF,YAAY,CAChD;EACEG,KAAK,EAAEC,MAAM;EACbC,GAAG,EAAED,MAAM;EACXE,IAAI,EAAEX,SAAS;EACfY,GAAG,EAAE;IACHC,IAAI,EAAEJ,MAAM;IACZK,OAAO,EAAE;EACX,CAAC;EACDC,IAAI,EAAE;IACJF,IAAI,EAAE,CAACJ,MAAM,EAAEO,MAAM;EACvB,CAAC;EACDC,KAAK,EAAE,CAACR,MAAM,EAAES,KAAK,CAAkB;EACvC,GAAGhB,sBAAsB,CAAC;AAC5B,CAAC,EACD,OACF,CAAC;AAED,OAAO,MAAMiB,KAAK,GAAGf,eAAe,CAAC;EACnCgB,IAAI,EAAE,OAAO;EACbC,KAAK,EAAEd,sBAAsB,CAAC,CAAC;EAC/Be,KAAKA,CAACD,KAAK,EAAAE,IAAA,EAAoB;IAAA,IAAlB;MAAEC,KAAK;MAAEC;IAAM,CAAC,GAAAF,IAAA;IAC3B,MAAMG,QAAQ,GAAG5B,GAAG,CAAS,CAAC;IAE9B,MAAM;MAAE6B;IAAa,CAAC,GAAGxB,aAAa,CAACkB,KAAK,CAAC;IAC7C,MAAM;MAAEO;IAAS,CAAC,GAAG3B,OAAO,CAACJ,QAAQ,CAAC,MAAM6B,QAAQ,CAACG,KAAK,IAAIR,KAAK,CAACV,IAAI,CAAC,CAAC;IAE1EZ,SAAS,CAAC,MAAM;MACd,MAAM+B,WAAW,GAAGL,KAAK,CAACX,OAAO,GAAG,CAAC;MACrC,IAAIgB,WAAW,EAAE;QACfJ,QAAQ,CAACG,KAAK,GAAGC,WAAW,CAACC,MAAM,CAChCC,IAAI,IACHA,IAAI,CAACnB,IAAI,KAAKoB,IAAI,IAClBD,IAAI,CAACE,QAAQ,IACb,OAAOF,IAAI,CAACE,QAAQ,KAAK,QAC7B,CAAC,CAAC,CAAC,CAAC,EAAEA,QAAkB;MAC1B;MAEA,OAAAC,YAAA,CAAAP,QAAA,CAAAC,KAAA,CAAAO,SAAA;QAAA,OAESf,KAAK,CAACT,GAAG;QAAA,QACRgB,QAAQ,CAACC,KAAK,CAAClB,IAAI;QAAA,SAClB,CACL,QAAQ,EACR,aAAa,EACbgB,YAAY,CAACE,KAAK,EAClB;UACE,mBAAmB,EAAE,CAAC,CAACL,KAAK,CAACa;QAC/B,CAAC,EACDhB,KAAK,CAACJ,KAAK,CACZ;QAAA,SACM;UACLqB,QAAQ,EAAEhC,gBAAgB,CAACe,KAAK,CAACN,IAAI,CAAC;UACtCwB,KAAK,EAAEjC,gBAAgB,CAACe,KAAK,CAACN,IAAI,CAAC;UACnCyB,MAAM,EAAElC,gBAAgB,CAACe,KAAK,CAACN,IAAI;QACrC,CAAC;QAAA,QACKS,KAAK,CAACa,OAAO,GAAG,QAAQ,GAAGI,SAAS;QAAA,eAC7B,CAACjB,KAAK,CAACa;MAAO;QAAAvB,OAAA,EAAAA,CAAA,MAE1BgB,WAAW;MAAA;IAGlB,CAAC,CAAC;EACJ;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"YIcon.js","names":["computed","ref","createVNode","_createVNode","useRender","IconValue","useIcon","pressThemePropsOptions","useLocalTheme","defineComponent","propsFactory","toStyleSizeValue","pressYIconPropsOptions","color","String","gap","icon","tag","type","default","size","Number","class","Array","YIcon","name","props","setup","_ref","attrs","slots","iconCode","themeClasses","iconData","value","defaultSlot","filter","node","Text","children","component","onClick","fontSize","width","height","undefined"],"sources":["../../../src/components/icon/YIcon.tsx"],"sourcesContent":["import { computed, type PropType, ref } from 'vue';\n\nimport { useRender } from '@/composables/component';\nimport { IconValue, useIcon } from '@/composables/icon';\nimport { pressThemePropsOptions, useLocalTheme } from '@/composables/theme';\nimport { defineComponent, propsFactory } from '@/util/component';\nimport { toStyleSizeValue } from '@/util/ui';\n\nimport './YIcon.scss';\n\nexport const pressYIconPropsOptions = propsFactory(\n {\n color: String,\n gap: String,\n icon: IconValue,\n tag: {\n type: String,\n default: 'i',\n },\n size: {\n type: [String, Number],\n },\n class: [String, Array] as PropType<string | string[] | Record<string, any>[]>,\n ...pressThemePropsOptions(),\n },\n 'YIcon',\n);\n\nexport const YIcon = defineComponent({\n name: 'YIcon',\n props: pressYIconPropsOptions(),\n setup(props, { attrs, slots }) {\n const iconCode = ref<string>();\n\n const { themeClasses } = useLocalTheme(props);\n const { iconData } = useIcon(computed(() => iconCode.value || props.icon));\n\n useRender(() => {\n const defaultSlot = slots.default?.();\n if (defaultSlot) {\n iconCode.value = defaultSlot.filter(\n (node) =>\n node.type === Text &&\n node.children &&\n typeof node.children === 'string',\n )[0]?.children as string;\n }\n\n return (\n <iconData.value.component\n tag={props.tag}\n icon={iconData.value.icon}\n class={[\n 'y-icon',\n 'notranslate',\n themeClasses.value,\n {\n 'y-icon--clickable': !!attrs.onClick,\n },\n props.class,\n ]}\n style={{\n fontSize: toStyleSizeValue(props.size),\n width: toStyleSizeValue(props.size),\n height: toStyleSizeValue(props.size),\n }}\n role={attrs.onClick ? 'button' : undefined}\n aria-hidden={!attrs.onClick}\n >\n {defaultSlot}\n </iconData.value.component>\n );\n });\n },\n});\n\nexport type YIconIconProp = IconValue & Omit<PropType<YIcon['$props']>, 'icon'>;\n\nexport type YIcon = InstanceType<typeof YIcon>;\n"],"mappings":"AAAA,SAASA,QAAQ,EAAiBC,GAAG,EAAAC,WAAA,IAAAC,YAAA,QAAQ,KAAK;AAAC,SAE1CC,SAAS;AAAA,SACTC,SAAS,EAAEC,OAAO;AAAA,SAClBC,sBAAsB,EAAEC,aAAa;AAAA,SACrCC,eAAe,EAAEC,YAAY;AAAA,SAC7BC,gBAAgB;AAEzB;AAEA,OAAO,MAAMC,sBAAsB,GAAGF,YAAY,CAChD;EACEG,KAAK,EAAEC,MAAM;EACbC,GAAG,EAAED,MAAM;EACXE,IAAI,EAAEX,SAAS;EACfY,GAAG,EAAE;IACHC,IAAI,EAAEJ,MAAM;IACZK,OAAO,EAAE;EACX,CAAC;EACDC,IAAI,EAAE;IACJF,IAAI,EAAE,CAACJ,MAAM,EAAEO,MAAM;EACvB,CAAC;EACDC,KAAK,EAAE,CAACR,MAAM,EAAES,KAAK,CAAwD;EAC7E,GAAGhB,sBAAsB,CAAC;AAC5B,CAAC,EACD,OACF,CAAC;AAED,OAAO,MAAMiB,KAAK,GAAGf,eAAe,CAAC;EACnCgB,IAAI,EAAE,OAAO;EACbC,KAAK,EAAEd,sBAAsB,CAAC,CAAC;EAC/Be,KAAKA,CAACD,KAAK,EAAAE,IAAA,EAAoB;IAAA,IAAlB;MAAEC,KAAK;MAAEC;IAAM,CAAC,GAAAF,IAAA;IAC3B,MAAMG,QAAQ,GAAG9B,GAAG,CAAS,CAAC;IAE9B,MAAM;MAAE+B;IAAa,CAAC,GAAGxB,aAAa,CAACkB,KAAK,CAAC;IAC7C,MAAM;MAAEO;IAAS,CAAC,GAAG3B,OAAO,CAACN,QAAQ,CAAC,MAAM+B,QAAQ,CAACG,KAAK,IAAIR,KAAK,CAACV,IAAI,CAAC,CAAC;IAE1EZ,SAAS,CAAC,MAAM;MACd,MAAM+B,WAAW,GAAGL,KAAK,CAACX,OAAO,GAAG,CAAC;MACrC,IAAIgB,WAAW,EAAE;QACfJ,QAAQ,CAACG,KAAK,GAAGC,WAAW,CAACC,MAAM,CAChCC,IAAI,IACHA,IAAI,CAACnB,IAAI,KAAKoB,IAAI,IAClBD,IAAI,CAACE,QAAQ,IACb,OAAOF,IAAI,CAACE,QAAQ,KAAK,QAC7B,CAAC,CAAC,CAAC,CAAC,EAAEA,QAAkB;MAC1B;MAEA,OAAApC,YAAA,CAAA8B,QAAA,CAAAC,KAAA,CAAAM,SAAA;QAAA,OAESd,KAAK,CAACT,GAAG;QAAA,QACRgB,QAAQ,CAACC,KAAK,CAAClB,IAAI;QAAA,SAClB,CACL,QAAQ,EACR,aAAa,EACbgB,YAAY,CAACE,KAAK,EAClB;UACE,mBAAmB,EAAE,CAAC,CAACL,KAAK,CAACY;QAC/B,CAAC,EACDf,KAAK,CAACJ,KAAK,CACZ;QAAA,SACM;UACLoB,QAAQ,EAAE/B,gBAAgB,CAACe,KAAK,CAACN,IAAI,CAAC;UACtCuB,KAAK,EAAEhC,gBAAgB,CAACe,KAAK,CAACN,IAAI,CAAC;UACnCwB,MAAM,EAAEjC,gBAAgB,CAACe,KAAK,CAACN,IAAI;QACrC,CAAC;QAAA,QACKS,KAAK,CAACY,OAAO,GAAG,QAAQ,GAAGI,SAAS;QAAA,eAC7B,CAAChB,KAAK,CAACY;MAAO;QAAAtB,OAAA,EAAAA,CAAA,MAE1BgB,WAAW;MAAA;IAGlB,CAAC,CAAC;EACJ;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/icon/index.ts"],"sourcesContent":["export * from './YIcon';\n"],"mappings":""}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/components/icon/index.ts"],"sourcesContent":["export * from './YIcon';\n"],"mappings":"","ignoreList":[]}
@@ -2,7 +2,7 @@ import { createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "../../util/component/index.js";
3
3
  import "./YIconCheckbox.scss";
4
4
  export const YIconCheckbox = defineComponent({
5
- name: 'YIconCheckbox',
5
+ name: "YIconCheckbox",
6
6
  props: {
7
7
  checked: Boolean,
8
8
  indeterminate: Boolean,
@@ -10,10 +10,11 @@ export const YIconCheckbox = defineComponent({
10
10
  },
11
11
  render() {
12
12
  return _createVNode("svg", {
13
- "class": ['y-icon-checkbox', {
14
- 'y-icon-checkbox--checked': this.checked,
15
- 'y-icon-checkbox--indeterminate': this.indeterminate,
16
- 'y-icon-checkbox--disabled': this.disabled
13
+ "role": "presentation",
14
+ "class": ["y-icon-checkbox", {
15
+ "y-icon-checkbox--checked": this.checked,
16
+ "y-icon-checkbox--indeterminate": this.indeterminate,
17
+ "y-icon-checkbox--disabled": this.disabled
17
18
  }],
18
19
  "xmlns": "http://www.w3.org/2000/svg",
19
20
  "width": "24",
@@ -25,7 +26,7 @@ export const YIconCheckbox = defineComponent({
25
26
  }, null), _createVNode("path", {
26
27
  "class": "y-icon-checkbox__checkmark-path",
27
28
  "fill": "none",
28
- "d": this.indeterminate ? 'M5.73,11.91 11.1,11.91 17.79,11.91' : 'M5.73,11.91 11.1,16.28 17.79,7.59'
29
+ "d": this.indeterminate ? "M5.73,11.91 11.1,11.91 17.79,11.91" : "M5.73,11.91 11.1,16.28 17.79,7.59"
29
30
  }, null)]);
30
31
  }
31
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"YIconCheckbox.js","names":["defineComponent","YIconCheckbox","name","props","checked","Boolean","indeterminate","disabled","render","_createVNode"],"sources":["../../../src/components/icons/YIconCheckbox.tsx"],"sourcesContent":["import { defineComponent } from '@/util/component';\r\n\r\nimport './YIconCheckbox.scss';\r\n\r\nexport const YIconCheckbox = defineComponent({\r\n name: 'YIconCheckbox',\r\n props: {\r\n checked: Boolean,\r\n indeterminate: Boolean,\r\n disabled: Boolean,\r\n },\r\n render() {\r\n return (\r\n <svg\r\n class={[\r\n 'y-icon-checkbox',\r\n {\r\n 'y-icon-checkbox--checked': this.checked,\r\n 'y-icon-checkbox--indeterminate': this.indeterminate,\r\n 'y-icon-checkbox--disabled': this.disabled,\r\n },\r\n ]}\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"24\"\r\n height=\"24\"\r\n viewBox=\"0 0 24 24\"\r\n >\r\n <path\r\n class=\"y-icon-checkbox__border-path\"\r\n d=\"M 15.525 21.825 H 8.325 C 4.851 21.825 2.025 18.999 2.025 15.525 V 8.325 C 2.025 4.851 4.851 2.025 8.325 2.025 H 15.525 C 18.999 2.025 21.825 4.851 21.825 8.325 V 15.525 C 21.825 18.999 18.999 21.825 15.525 21.825 Z\"\r\n />\r\n <path\r\n class=\"y-icon-checkbox__checkmark-path\"\r\n fill=\"none\"\r\n d={\r\n this.indeterminate\r\n ? 'M5.73,11.91 11.1,11.91 17.79,11.91'\r\n : 'M5.73,11.91 11.1,16.28 17.79,7.59'\r\n }\r\n ></path>\r\n </svg>\r\n );\r\n },\r\n});\r\n"],"mappings":";SAASA,eAAe;AAExB;AAEA,OAAO,MAAMC,aAAa,GAAGD,eAAe,CAAC;EAC3CE,IAAI,EAAE,eAAe;EACrBC,KAAK,EAAE;IACLC,OAAO,EAAEC,OAAO;IAChBC,aAAa,EAAED,OAAO;IACtBE,QAAQ,EAAEF;EACZ,CAAC;EACDG,MAAMA,CAAA,EAAG;IACP,OAAAC,YAAA;MAAA,SAEW,CACL,iBAAiB,EACjB;QACE,0BAA0B,EAAE,IAAI,CAACL,OAAO;QACxC,gCAAgC,EAAE,IAAI,CAACE,aAAa;QACpD,2BAA2B,EAAE,IAAI,CAACC;MACpC,CAAC,CACF;MAAA;MAAA;MAAA;MAAA;IAAA,IAAAE,YAAA;MAAA;MAAA;IAAA,UAAAA,YAAA;MAAA;MAAA;MAAA,KAcG,IAAI,CAACH,aAAa,GACd,oCAAoC,GACpC;IAAmC;EAKjD;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"YIconCheckbox.js","names":["defineComponent","YIconCheckbox","name","props","checked","Boolean","indeterminate","disabled","render","_createVNode"],"sources":["../../../src/components/icons/YIconCheckbox.tsx"],"sourcesContent":["import { defineComponent } from \"@/util/component\";\n\nimport \"./YIconCheckbox.scss\";\n\nexport const YIconCheckbox = defineComponent({\n\tname: \"YIconCheckbox\",\n\tprops: {\n\t\tchecked: Boolean,\n\t\tindeterminate: Boolean,\n\t\tdisabled: Boolean,\n\t},\n\trender() {\n\t\treturn (\n\t\t\t<svg\n role=\"presentation\"\n\t\t\t\tclass={[\n\t\t\t\t\t\"y-icon-checkbox\",\n\t\t\t\t\t{\n\t\t\t\t\t\t\"y-icon-checkbox--checked\": this.checked,\n\t\t\t\t\t\t\"y-icon-checkbox--indeterminate\": this.indeterminate,\n\t\t\t\t\t\t\"y-icon-checkbox--disabled\": this.disabled,\n\t\t\t\t\t},\n\t\t\t\t]}\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\twidth=\"24\"\n\t\t\t\theight=\"24\"\n\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t>\n\t\t\t\t<path\n\t\t\t\t\tclass=\"y-icon-checkbox__border-path\"\n\t\t\t\t\td=\"M 15.525 21.825 H 8.325 C 4.851 21.825 2.025 18.999 2.025 15.525 V 8.325 C 2.025 4.851 4.851 2.025 8.325 2.025 H 15.525 C 18.999 2.025 21.825 4.851 21.825 8.325 V 15.525 C 21.825 18.999 18.999 21.825 15.525 21.825 Z\"\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\tclass=\"y-icon-checkbox__checkmark-path\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\td={\n\t\t\t\t\t\tthis.indeterminate\n\t\t\t\t\t\t\t? \"M5.73,11.91 11.1,11.91 17.79,11.91\"\n\t\t\t\t\t\t\t: \"M5.73,11.91 11.1,16.28 17.79,7.59\"\n\t\t\t\t\t}\n\t\t\t\t></path>\n\t\t\t</svg>\n\t\t);\n\t},\n});\n"],"mappings":";SAASA,eAAe;AAExB;AAEA,OAAO,MAAMC,aAAa,GAAGD,eAAe,CAAC;EAC5CE,IAAI,EAAE,eAAe;EACrBC,KAAK,EAAE;IACNC,OAAO,EAAEC,OAAO;IAChBC,aAAa,EAAED,OAAO;IACtBE,QAAQ,EAAEF;EACX,CAAC;EACDG,MAAMA,CAAA,EAAG;IACR,OAAAC,YAAA;MAAA;MAAA,SAGS,CACN,iBAAiB,EACjB;QACC,0BAA0B,EAAE,IAAI,CAACL,OAAO;QACxC,gCAAgC,EAAE,IAAI,CAACE,aAAa;QACpD,2BAA2B,EAAE,IAAI,CAACC;MACnC,CAAC,CACD;MAAA;MAAA;MAAA;MAAA;IAAA,IAAAE,YAAA;MAAA;MAAA;IAAA,UAAAA,YAAA;MAAA;MAAA;MAAA,KAcC,IAAI,CAACH,aAAa,GACf,oCAAoC,GACpC;IAAmC;EAK3C;AACD,CAAC,CAAC","ignoreList":[]}
@@ -1,9 +1,10 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "../../util/component/index.js";
3
3
  export const YIconClear = defineComponent({
4
- name: 'YIconClear',
4
+ name: "YIconClear",
5
5
  setup() {
6
6
  return () => _createVNode("svg", {
7
+ "role": "presentation",
7
8
  "viewBox": "0 0 16 16",
8
9
  "xmlns": "http://www.w3.org/2000/svg"
9
10
  }, [_createVNode("path", {
@@ -1 +1 @@
1
- {"version":3,"file":"YIconClear.js","names":["defineComponent","YIconClear","name","setup","_createVNode"],"sources":["../../../src/components/icons/YIconClear.tsx"],"sourcesContent":["import { defineComponent } from '@/util/component';\r\n\r\nexport const YIconClear = defineComponent({\r\n name: 'YIconClear',\r\n setup() {\r\n return () => (\r\n <svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"m8 1.5c-3.5839 0-6.5 2.9161-6.5 6.5 0 3.5839 2.9161 6.5 6.5 6.5 3.5839 0 6.5-2.9161 6.5-6.5 0-3.5839-2.9161-6.5-6.5-6.5zm-2 4a.5.5 0 01.35352.14648l1.6465 1.6465 1.6465-1.6465a.5.5 0 01.35352-.14648.5.5 0 01.35352.14648.5.5 0 010 .70703l-1.6465 1.6465 1.6465 1.6465a.5.5 0 010 .70703.5.5 0 01-.70703 0l-1.6465-1.6465-1.6465 1.6465a.5.5 0 01-.70703 0 .5.5 0 010-.70703l1.6465-1.6465-1.6465-1.6465a.5.5 0 010-.70703.5.5 0 01.35352-.14648z\"\r\n fill=\"currentColor\"\r\n stroke-miterlimit=\"10\"\r\n />\r\n </svg>\r\n );\r\n },\r\n});\r\n"],"mappings":";SAASA,eAAe;AAExB,OAAO,MAAMC,UAAU,GAAGD,eAAe,CAAC;EACxCE,IAAI,EAAE,YAAY;EAClBC,KAAKA,CAAA,EAAG;IACN,OAAO,MAAAC,YAAA;MAAA;MAAA;IAAA,IAAAA,YAAA;MAAA;MAAA;MAAA;IAAA,UAQN;EACH;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"YIconClear.js","names":["defineComponent","YIconClear","name","setup","_createVNode"],"sources":["../../../src/components/icons/YIconClear.tsx"],"sourcesContent":["import { defineComponent } from \"@/util/component\";\n\nexport const YIconClear = defineComponent({\n\tname: \"YIconClear\",\n\tsetup() {\n\t\treturn () => (\n\t\t\t<svg\n\t\t\t\trole=\"presentation\"\n\t\t\t\tviewBox=\"0 0 16 16\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t>\n\t\t\t\t<path\n\t\t\t\t\td=\"m8 1.5c-3.5839 0-6.5 2.9161-6.5 6.5 0 3.5839 2.9161 6.5 6.5 6.5 3.5839 0 6.5-2.9161 6.5-6.5 0-3.5839-2.9161-6.5-6.5-6.5zm-2 4a.5.5 0 01.35352.14648l1.6465 1.6465 1.6465-1.6465a.5.5 0 01.35352-.14648.5.5 0 01.35352.14648.5.5 0 010 .70703l-1.6465 1.6465 1.6465 1.6465a.5.5 0 010 .70703.5.5 0 01-.70703 0l-1.6465-1.6465-1.6465 1.6465a.5.5 0 01-.70703 0 .5.5 0 010-.70703l1.6465-1.6465-1.6465-1.6465a.5.5 0 010-.70703.5.5 0 01.35352-.14648z\"\n\t\t\t\t\tfill=\"currentColor\"\n\t\t\t\t\tstroke-miterlimit=\"10\"\n\t\t\t\t/>\n\t\t\t</svg>\n\t\t);\n\t},\n});\n"],"mappings":";SAASA,eAAe;AAExB,OAAO,MAAMC,UAAU,GAAGD,eAAe,CAAC;EACzCE,IAAI,EAAE,YAAY;EAClBC,KAAKA,CAAA,EAAG;IACP,OAAO,MAAAC,YAAA;MAAA;MAAA;MAAA;IAAA,IAAAA,YAAA;MAAA;MAAA;MAAA;IAAA,UAYN;EACF;AACD,CAAC,CAAC","ignoreList":[]}
@@ -1,9 +1,10 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "../../util/component/index.js";
3
3
  export const YIconDropdown = defineComponent({
4
- name: 'YIconDropdown',
4
+ name: "YIconDropdown",
5
5
  setup() {
6
6
  return () => _createVNode("svg", {
7
+ "role": "presentation",
7
8
  "version": "1.1",
8
9
  "viewBox": "0 0 24 24",
9
10
  "xmlns": "http://www.w3.org/2000/svg"
@@ -1 +1 @@
1
- {"version":3,"file":"YIconDropdown.js","names":["defineComponent","YIconDropdown","name","setup","_createVNode"],"sources":["../../../src/components/icons/YIconDropdown.tsx"],"sourcesContent":["import { defineComponent } from '@/util/component';\r\n\r\nexport const YIconDropdown = defineComponent({\r\n name: 'YIconDropdown',\r\n setup() {\r\n return () => (\r\n <svg version=\"1.1\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"M7,10L12,15L17,10H7Z\" fill=\"currentColor\" />\r\n </svg>\r\n );\r\n },\r\n});\r\n"],"mappings":";SAASA,eAAe;AAExB,OAAO,MAAMC,aAAa,GAAGD,eAAe,CAAC;EAC3CE,IAAI,EAAE,eAAe;EACrBC,KAAKA,CAAA,EAAG;IACN,OAAO,MAAAC,YAAA;MAAA;MAAA;MAAA;IAAA,IAAAA,YAAA;MAAA;MAAA;IAAA,UAIN;EACH;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"YIconDropdown.js","names":["defineComponent","YIconDropdown","name","setup","_createVNode"],"sources":["../../../src/components/icons/YIconDropdown.tsx"],"sourcesContent":["import { defineComponent } from \"@/util/component\";\n\nexport const YIconDropdown = defineComponent({\n\tname: \"YIconDropdown\",\n\tsetup() {\n\t\treturn () => (\n\t\t\t<svg\n\t\t\t\trole=\"presentation\"\n\t\t\t\tversion=\"1.1\"\n\t\t\t\tviewBox=\"0 0 24 24\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t>\n\t\t\t\t<path d=\"M7,10L12,15L17,10H7Z\" fill=\"currentColor\" />\n\t\t\t</svg>\n\t\t);\n\t},\n});\n"],"mappings":";SAASA,eAAe;AAExB,OAAO,MAAMC,aAAa,GAAGD,eAAe,CAAC;EAC5CE,IAAI,EAAE,eAAe;EACrBC,KAAKA,CAAA,EAAG;IACP,OAAO,MAAAC,YAAA;MAAA;MAAA;MAAA;MAAA;IAAA,IAAAA,YAAA;MAAA;MAAA;IAAA,UASN;EACF;AACD,CAAC,CAAC","ignoreList":[]}
@@ -4,6 +4,7 @@ export const YIconExpand = defineComponent({
4
4
  name: 'YIconExpand',
5
5
  setup() {
6
6
  return () => _createVNode("svg", {
7
+ "role": "presentation",
7
8
  "version": "1.1",
8
9
  "viewBox": "0 0 32 32",
9
10
  "xmlns": "http://www.w3.org/2000/svg"
@@ -1 +1 @@
1
- {"version":3,"file":"YIconExpand.js","names":["defineComponent","YIconExpand","name","setup","_createVNode"],"sources":["../../../src/components/icons/YIconExpand.tsx"],"sourcesContent":["import { defineComponent } from '@/util/component';\r\n\r\nexport const YIconExpand = defineComponent({\r\n name: 'YIconExpand',\r\n setup() {\r\n return () => (\r\n <svg version=\"1.1\" viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"m9.6086 5.7953 13.557 10.269-13.557 10.141\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n stroke-width=\"4.1024\"\r\n />\r\n </svg>\r\n );\r\n },\r\n});\r\n"],"mappings":";SAASA,eAAe;AAExB,OAAO,MAAMC,WAAW,GAAGD,eAAe,CAAC;EACzCE,IAAI,EAAE,aAAa;EACnBC,KAAKA,CAAA,EAAG;IACN,OAAO,MAAAC,YAAA;MAAA;MAAA;MAAA;IAAA,IAAAA,YAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;IAAA,UAWN;EACH;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"YIconExpand.js","names":["defineComponent","YIconExpand","name","setup","_createVNode"],"sources":["../../../src/components/icons/YIconExpand.tsx"],"sourcesContent":["import { defineComponent } from '@/util/component';\n\nexport const YIconExpand = defineComponent({\n name: 'YIconExpand',\n setup() {\n return () => (\n <svg role=\"presentation\" version=\"1.1\" viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"m9.6086 5.7953 13.557 10.269-13.557 10.141\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"4.1024\"\n />\n </svg>\n );\n },\n});\n"],"mappings":";SAASA,eAAe;AAExB,OAAO,MAAMC,WAAW,GAAGD,eAAe,CAAC;EACzCE,IAAI,EAAE,aAAa;EACnBC,KAAKA,CAAA,EAAG;IACN,OAAO,MAAAC,YAAA;MAAA;MAAA;MAAA;MAAA;IAAA,IAAAA,YAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;IAAA,UAWN;EACH;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,21 +1,22 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "../../util/component/index.js";
3
3
  export const PageControlPaths = {
4
- next: 'm12.18 23.585 7.6399-7.5489-7.4693-7.622',
5
- prev: 'm19.82 23.585-7.6399-7.5489 7.4693-7.622',
6
- last: 'm10.488 23.812 7.4981-7.7457-7.3307-7.8207m0 0zm10.856-0.075007v15.659',
7
- first: 'm21.512 23.812-7.4981-7.7457 7.3307-7.8207m0 0zm-10.856-0.075007v15.659'
4
+ next: "m12.18 23.585 7.6399-7.5489-7.4693-7.622",
5
+ prev: "m19.82 23.585-7.6399-7.5489 7.4693-7.622",
6
+ last: "m10.488 23.812 7.4981-7.7457-7.3307-7.8207m0 0zm10.856-0.075007v15.659",
7
+ first: "m21.512 23.812-7.4981-7.7457 7.3307-7.8207m0 0zm-10.856-0.075007v15.659"
8
8
  };
9
9
  export const YIconPageControl = defineComponent({
10
- name: 'YIconPageControl',
10
+ name: "YIconPageControl",
11
11
  props: {
12
12
  type: {
13
13
  type: String,
14
- default: 'next'
14
+ default: "next"
15
15
  }
16
16
  },
17
17
  render() {
18
18
  return _createVNode("svg", {
19
+ "role": "presentation",
19
20
  "version": "1.1",
20
21
  "viewBox": "0 0 32 32",
21
22
  "xmlns": "http://www.w3.org/2000/svg"
@@ -1 +1 @@
1
- {"version":3,"file":"YIconPageControl.js","names":["defineComponent","PageControlPaths","next","prev","last","first","YIconPageControl","name","props","type","String","default","render","_createVNode","$props"],"sources":["../../../src/components/icons/YIconPageControl.tsx"],"sourcesContent":["import { type PropType } from 'vue';\r\n\r\nimport { defineComponent } from '@/util/component';\r\n\r\nexport const PageControlPaths = {\r\n next: 'm12.18 23.585 7.6399-7.5489-7.4693-7.622',\r\n prev: 'm19.82 23.585-7.6399-7.5489 7.4693-7.622',\r\n last: 'm10.488 23.812 7.4981-7.7457-7.3307-7.8207m0 0zm10.856-0.075007v15.659',\r\n first:\r\n 'm21.512 23.812-7.4981-7.7457 7.3307-7.8207m0 0zm-10.856-0.075007v15.659',\r\n};\r\n\r\nexport const YIconPageControl = defineComponent({\r\n name: 'YIconPageControl',\r\n props: {\r\n type: {\r\n type: String as PropType<'next' | 'prev' | 'first' | 'last'>,\r\n default: 'next',\r\n },\r\n },\r\n render() {\r\n return (\r\n <svg version=\"1.1\" viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d={\r\n this.$props.type in PageControlPaths\r\n ? PageControlPaths[this.$props.type]\r\n : PageControlPaths.next\r\n }\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n stroke-width=\"3\"\r\n />\r\n </svg>\r\n );\r\n },\r\n});\r\n"],"mappings":";SAESA,eAAe;AAExB,OAAO,MAAMC,gBAAgB,GAAG;EAC9BC,IAAI,EAAE,0CAA0C;EAChDC,IAAI,EAAE,0CAA0C;EAChDC,IAAI,EAAE,wEAAwE;EAC9EC,KAAK,EACH;AACJ,CAAC;AAED,OAAO,MAAMC,gBAAgB,GAAGN,eAAe,CAAC;EAC9CO,IAAI,EAAE,kBAAkB;EACxBC,KAAK,EAAE;IACLC,IAAI,EAAE;MACJA,IAAI,EAAEC,MAAsD;MAC5DC,OAAO,EAAE;IACX;EACF,CAAC;EACDC,MAAMA,CAAA,EAAG;IACP,OAAAC,YAAA;MAAA;MAAA;MAAA;IAAA,IAAAA,YAAA;MAAA,KAIQ,IAAI,CAACC,MAAM,CAACL,IAAI,IAAIR,gBAAgB,GAChCA,gBAAgB,CAAC,IAAI,CAACa,MAAM,CAACL,IAAI,CAAC,GAClCR,gBAAgB,CAACC,IAAI;MAAA;MAAA;MAAA;MAAA;MAAA;IAAA;EAUnC;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"YIconPageControl.js","names":["defineComponent","PageControlPaths","next","prev","last","first","YIconPageControl","name","props","type","String","default","render","_createVNode","$props"],"sources":["../../../src/components/icons/YIconPageControl.tsx"],"sourcesContent":["import type { PropType } from \"vue\";\n\nimport { defineComponent } from \"@/util/component\";\n\nexport const PageControlPaths = {\n\tnext: \"m12.18 23.585 7.6399-7.5489-7.4693-7.622\",\n\tprev: \"m19.82 23.585-7.6399-7.5489 7.4693-7.622\",\n\tlast: \"m10.488 23.812 7.4981-7.7457-7.3307-7.8207m0 0zm10.856-0.075007v15.659\",\n\tfirst:\n\t\t\"m21.512 23.812-7.4981-7.7457 7.3307-7.8207m0 0zm-10.856-0.075007v15.659\",\n};\n\nexport const YIconPageControl = defineComponent({\n\tname: \"YIconPageControl\",\n\tprops: {\n\t\ttype: {\n\t\t\ttype: String as PropType<\"next\" | \"prev\" | \"first\" | \"last\">,\n\t\t\tdefault: \"next\",\n\t\t},\n\t},\n\trender() {\n\t\treturn (\n\t\t\t<svg\n\t\t\t\trole=\"presentation\"\n\t\t\t\tversion=\"1.1\"\n\t\t\t\tviewBox=\"0 0 32 32\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t>\n\t\t\t\t<path\n\t\t\t\t\td={\n\t\t\t\t\t\tthis.$props.type in PageControlPaths\n\t\t\t\t\t\t\t? PageControlPaths[this.$props.type]\n\t\t\t\t\t\t\t: PageControlPaths.next\n\t\t\t\t\t}\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tstroke-width=\"3\"\n\t\t\t\t/>\n\t\t\t</svg>\n\t\t);\n\t},\n});\n"],"mappings":";SAESA,eAAe;AAExB,OAAO,MAAMC,gBAAgB,GAAG;EAC/BC,IAAI,EAAE,0CAA0C;EAChDC,IAAI,EAAE,0CAA0C;EAChDC,IAAI,EAAE,wEAAwE;EAC9EC,KAAK,EACJ;AACF,CAAC;AAED,OAAO,MAAMC,gBAAgB,GAAGN,eAAe,CAAC;EAC/CO,IAAI,EAAE,kBAAkB;EACxBC,KAAK,EAAE;IACNC,IAAI,EAAE;MACLA,IAAI,EAAEC,MAAsD;MAC5DC,OAAO,EAAE;IACV;EACD,CAAC;EACDC,MAAMA,CAAA,EAAG;IACR,OAAAC,YAAA;MAAA;MAAA;MAAA;MAAA;IAAA,IAAAA,YAAA;MAAA,KASI,IAAI,CAACC,MAAM,CAACL,IAAI,IAAIR,gBAAgB,GACjCA,gBAAgB,CAAC,IAAI,CAACa,MAAM,CAACL,IAAI,CAAC,GAClCR,gBAAgB,CAACC,IAAI;MAAA;MAAA;MAAA;MAAA;MAAA;IAAA;EAU7B;AACD,CAAC,CAAC","ignoreList":[]}
@@ -2,7 +2,7 @@ import { createVNode as _createVNode } from "vue";
2
2
  import { defineComponent } from "../../util/component/index.js";
3
3
  import "./YIconSort.scss";
4
4
  export const YIconSort = defineComponent({
5
- name: 'YIconSort',
5
+ name: "YIconSort",
6
6
  props: {
7
7
  direction: {
8
8
  type: String
@@ -13,15 +13,16 @@ export const YIconSort = defineComponent({
13
13
  },
14
14
  render() {
15
15
  return _createVNode("svg", {
16
+ "role": "presentation",
16
17
  "version": "1.1",
17
18
  "width": "16",
18
19
  "height": "16",
19
20
  "viewBox": "0 0 32 32",
20
21
  "xmlns": "http://www.w3.org/2000/svg",
21
- "class": ['y-icon-sort', {
22
- 'y-icon-sort--disabled': this.disabled,
23
- 'y-icon-sort--asc': this.direction === 'asc',
24
- 'y-icon-sort--desc': this.direction === 'desc'
22
+ "class": ["y-icon-sort", {
23
+ "y-icon-sort--disabled": this.disabled,
24
+ "y-icon-sort--asc": this.direction === "asc",
25
+ "y-icon-sort--desc": this.direction === "desc"
25
26
  }]
26
27
  }, [_createVNode("path", {
27
28
  "d": "m8.4146 12.52 7.5489-7.6399 7.622 7.4693",
@@ -1 +1 @@
1
- {"version":3,"file":"YIconSort.js","names":["defineComponent","YIconSort","name","props","direction","type","String","disabled","Boolean","render","_createVNode"],"sources":["../../../src/components/icons/YIconSort.tsx"],"sourcesContent":["import { type PropType } from 'vue';\r\n\r\nimport { defineComponent } from '@/util/component';\r\n\r\nimport './YIconSort.scss';\r\n\r\nexport const YIconSort = defineComponent({\r\n name: 'YIconSort',\r\n props: {\r\n direction: {\r\n type: String as PropType<'asc' | 'desc'>,\r\n },\r\n disabled: {\r\n type: Boolean,\r\n },\r\n },\r\n render() {\r\n return (\r\n <svg\r\n version=\"1.1\"\r\n width=\"16\"\r\n height=\"16\"\r\n viewBox=\"0 0 32 32\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n class={[\r\n 'y-icon-sort',\r\n {\r\n 'y-icon-sort--disabled': this.disabled,\r\n 'y-icon-sort--asc': this.direction === 'asc',\r\n 'y-icon-sort--desc': this.direction === 'desc',\r\n },\r\n ]}\r\n >\r\n <path\r\n d=\"m8.4146 12.52 7.5489-7.6399 7.622 7.4693\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n stroke-width=\"3\"\r\n class=\"y-icon-sort__asc\"\r\n />\r\n <path\r\n d=\"m8.4146 19.48 7.5489 7.6399 7.622-7.4693\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n stroke-width=\"3\"\r\n class=\"y-icon-sort__desc\"\r\n />\r\n </svg>\r\n );\r\n },\r\n});\r\n"],"mappings":";SAESA,eAAe;AAExB;AAEA,OAAO,MAAMC,SAAS,GAAGD,eAAe,CAAC;EACvCE,IAAI,EAAE,WAAW;EACjBC,KAAK,EAAE;IACLC,SAAS,EAAE;MACTC,IAAI,EAAEC;IACR,CAAC;IACDC,QAAQ,EAAE;MACRF,IAAI,EAAEG;IACR;EACF,CAAC;EACDC,MAAMA,CAAA,EAAG;IACP,OAAAC,YAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA,SAOW,CACL,aAAa,EACb;QACE,uBAAuB,EAAE,IAAI,CAACH,QAAQ;QACtC,kBAAkB,EAAE,IAAI,CAACH,SAAS,KAAK,KAAK;QAC5C,mBAAmB,EAAE,IAAI,CAACA,SAAS,KAAK;MAC1C,CAAC;IACF,IAAAM,YAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;IAAA,UAAAA,YAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;IAAA;EAsBP;AACF,CAAC,CAAC"}
1
+ {"version":3,"file":"YIconSort.js","names":["defineComponent","YIconSort","name","props","direction","type","String","disabled","Boolean","render","_createVNode"],"sources":["../../../src/components/icons/YIconSort.tsx"],"sourcesContent":["import type { PropType } from \"vue\";\n\nimport { defineComponent } from \"@/util/component\";\n\nimport \"./YIconSort.scss\";\n\nexport const YIconSort = defineComponent({\n\tname: \"YIconSort\",\n\tprops: {\n\t\tdirection: {\n\t\t\ttype: String as PropType<\"asc\" | \"desc\">,\n\t\t},\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t},\n\t},\n\trender() {\n\t\treturn (\n\t\t\t<svg\n\t\t\t\trole=\"presentation\"\n\t\t\t\tversion=\"1.1\"\n\t\t\t\twidth=\"16\"\n\t\t\t\theight=\"16\"\n\t\t\t\tviewBox=\"0 0 32 32\"\n\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\tclass={[\n\t\t\t\t\t\"y-icon-sort\",\n\t\t\t\t\t{\n\t\t\t\t\t\t\"y-icon-sort--disabled\": this.disabled,\n\t\t\t\t\t\t\"y-icon-sort--asc\": this.direction === \"asc\",\n\t\t\t\t\t\t\"y-icon-sort--desc\": this.direction === \"desc\",\n\t\t\t\t\t},\n\t\t\t\t]}\n\t\t\t>\n\t\t\t\t<path\n\t\t\t\t\td=\"m8.4146 12.52 7.5489-7.6399 7.622 7.4693\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tstroke-width=\"3\"\n\t\t\t\t\tclass=\"y-icon-sort__asc\"\n\t\t\t\t/>\n\t\t\t\t<path\n\t\t\t\t\td=\"m8.4146 19.48 7.5489 7.6399 7.622-7.4693\"\n\t\t\t\t\tfill=\"none\"\n\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\tstroke-linejoin=\"round\"\n\t\t\t\t\tstroke-width=\"3\"\n\t\t\t\t\tclass=\"y-icon-sort__desc\"\n\t\t\t\t/>\n\t\t\t</svg>\n\t\t);\n\t},\n});\n"],"mappings":";SAESA,eAAe;AAExB;AAEA,OAAO,MAAMC,SAAS,GAAGD,eAAe,CAAC;EACxCE,IAAI,EAAE,WAAW;EACjBC,KAAK,EAAE;IACNC,SAAS,EAAE;MACVC,IAAI,EAAEC;IACP,CAAC;IACDC,QAAQ,EAAE;MACTF,IAAI,EAAEG;IACP;EACD,CAAC;EACDC,MAAMA,CAAA,EAAG;IACR,OAAAC,YAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA,SAQS,CACN,aAAa,EACb;QACC,uBAAuB,EAAE,IAAI,CAACH,QAAQ;QACtC,kBAAkB,EAAE,IAAI,CAACH,SAAS,KAAK,KAAK;QAC5C,mBAAmB,EAAE,IAAI,CAACA,SAAS,KAAK;MACzC,CAAC;IACD,IAAAM,YAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;IAAA,UAAAA,YAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;MAAA;IAAA;EAsBJ;AACD,CAAC,CAAC","ignoreList":[]}
@@ -8,6 +8,7 @@
8
8
  &__desc {
9
9
  opacity: 0.1;
10
10
  }
11
+
11
12
  &__asc {
12
13
  opacity: 0.8;
13
14
  }
@@ -17,6 +18,7 @@
17
18
  &__asc {
18
19
  opacity: 0.1;
19
20
  }
21
+
20
22
  &__desc {
21
23
  opacity: 0.8;
22
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["YIconCheckbox","YIconClear","YIconDropdown","YIconExpand","YIconPageControl","YIconSort","builtSet","expand","dropdown","clear","checkbox","pageControl","next","component","props","type","prev","sort"],"sources":["../../../src/components/icons/index.ts"],"sourcesContent":["import { YIconCheckbox } from './YIconCheckbox';\r\nimport { YIconClear } from './YIconClear';\r\nimport { YIconDropdown } from './YIconDropdown';\r\nimport { YIconExpand } from './YIconExpand';\r\nimport { YIconPageControl } from './YIconPageControl';\r\nimport { YIconSort } from './YIconSort';\r\n\r\nexport * from './YIconExpand';\r\nexport * from './YIconClear';\r\nexport * from './YIconCheckbox';\r\nexport * from './YIconPageControl';\r\nexport * from './YIconSort';\r\n\r\nexport const builtSet = {\r\n expand: YIconExpand,\r\n dropdown: YIconDropdown,\r\n clear: YIconClear,\r\n checkbox: YIconCheckbox,\r\n pageControl: YIconPageControl,\r\n next: {\r\n component: YIconPageControl,\r\n props: {\r\n type: 'next',\r\n },\r\n },\r\n prev: {\r\n component: YIconPageControl,\r\n props: {\r\n type: 'prev',\r\n },\r\n },\r\n sort: YIconSort,\r\n};\r\n"],"mappings":"SAASA,aAAa;AAAA,SACbC,UAAU;AAAA,SACVC,aAAa;AAAA,SACbC,WAAW;AAAA,SACXC,gBAAgB;AAAA,SAChBC,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAQlB,OAAO,MAAMC,QAAQ,GAAG;EACtBC,MAAM,EAAEJ,WAAW;EACnBK,QAAQ,EAAEN,aAAa;EACvBO,KAAK,EAAER,UAAU;EACjBS,QAAQ,EAAEV,aAAa;EACvBW,WAAW,EAAEP,gBAAgB;EAC7BQ,IAAI,EAAE;IACJC,SAAS,EAAET,gBAAgB;IAC3BU,KAAK,EAAE;MACLC,IAAI,EAAE;IACR;EACF,CAAC;EACDC,IAAI,EAAE;IACJH,SAAS,EAAET,gBAAgB;IAC3BU,KAAK,EAAE;MACLC,IAAI,EAAE;IACR;EACF,CAAC;EACDE,IAAI,EAAEZ;AACR,CAAC"}
1
+ {"version":3,"file":"index.js","names":["YIconCheckbox","YIconClear","YIconDropdown","YIconExpand","YIconPageControl","YIconSort","builtSet","expand","dropdown","clear","checkbox","pageControl","next","component","props","type","prev","sort"],"sources":["../../../src/components/icons/index.ts"],"sourcesContent":["import { YIconCheckbox } from './YIconCheckbox';\nimport { YIconClear } from './YIconClear';\nimport { YIconDropdown } from './YIconDropdown';\nimport { YIconExpand } from './YIconExpand';\nimport { YIconPageControl } from './YIconPageControl';\nimport { YIconSort } from './YIconSort';\n\nexport * from './YIconExpand';\nexport * from './YIconClear';\nexport * from './YIconCheckbox';\nexport * from './YIconPageControl';\nexport * from './YIconSort';\n\nexport const builtSet = {\n expand: YIconExpand,\n dropdown: YIconDropdown,\n clear: YIconClear,\n checkbox: YIconCheckbox,\n pageControl: YIconPageControl,\n next: {\n component: YIconPageControl,\n props: {\n type: 'next',\n },\n },\n prev: {\n component: YIconPageControl,\n props: {\n type: 'prev',\n },\n },\n sort: YIconSort,\n};\n"],"mappings":"SAASA,aAAa;AAAA,SACbC,UAAU;AAAA,SACVC,aAAa;AAAA,SACbC,WAAW;AAAA,SACXC,gBAAgB;AAAA,SAChBC,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAQlB,OAAO,MAAMC,QAAQ,GAAG;EACtBC,MAAM,EAAEJ,WAAW;EACnBK,QAAQ,EAAEN,aAAa;EACvBO,KAAK,EAAER,UAAU;EACjBS,QAAQ,EAAEV,aAAa;EACvBW,WAAW,EAAEP,gBAAgB;EAC7BQ,IAAI,EAAE;IACJC,SAAS,EAAET,gBAAgB;IAC3BU,KAAK,EAAE;MACLC,IAAI,EAAE;IACR;EACF,CAAC;EACDC,IAAI,EAAE;IACJH,SAAS,EAAET,gBAAgB;IAC3BU,KAAK,EAAE;MACLC,IAAI,EAAE;IACR;EACF,CAAC;EACDE,IAAI,EAAEZ;AACR,CAAC","ignoreList":[]}
@@ -1,9 +1,8 @@
1
- import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
- import { computed, getCurrentInstance, nextTick, onBeforeMount, onBeforeUnmount, ref, shallowRef, vShow, watch, withDirectives } from 'vue';
1
+ import { computed, getCurrentInstance, nextTick, onBeforeMount, onBeforeUnmount, ref, shallowRef, vShow, watch, withDirectives, createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
3
2
  import { useRender } from "../../composables/component.js";
4
3
  import { pressDimensionPropsOptions } from "../../composables/dimension.js";
5
4
  import { PolyTransition, pressPolyTransitionPropsOptions, usePolyTransition } from "../../composables/transition.js";
6
- import { propsFactory, defineComponent } from "../../util/component/index.js";
5
+ import { defineComponent, propsFactory } from "../../util/component/index.js";
7
6
  import Environments from "../../util/environments.js";
8
7
  import "./YImg.scss";
9
8
  export const pressYImgPropsOptions = propsFactory({
@@ -11,22 +10,22 @@ export const pressYImgPropsOptions = propsFactory({
11
10
  crossorigin: String,
12
11
  referrerpolicy: String,
13
12
  ...pressPolyTransitionPropsOptions({
14
- transition: 'fade'
13
+ transition: "fade"
15
14
  }),
16
15
  objectFit: {
17
16
  type: String,
18
- default: 'contain'
17
+ default: "contain"
19
18
  },
20
19
  eager: Boolean,
21
20
  ...pressDimensionPropsOptions()
22
- }, 'YImg');
21
+ }, "YImg");
23
22
  export const YImg = defineComponent({
24
- name: 'YImg',
23
+ name: "YImg",
25
24
  props: {
26
25
  ...pressYImgPropsOptions()
27
26
  },
28
27
  slots: Object,
29
- emits: ['load', 'loaded', 'error'],
28
+ emits: ["load", "loaded", "error"],
30
29
  setup(props, _ref) {
31
30
  let {
32
31
  slots,
@@ -35,8 +34,8 @@ export const YImg = defineComponent({
35
34
  } = _ref;
36
35
  const vm = getCurrentInstance();
37
36
  const image$ = ref();
38
- const status = shallowRef(props.eager ? 'loading' : 'idle');
39
- const imgSrc = shallowRef('');
37
+ const status = shallowRef(props.eager ? "loading" : "idle");
38
+ const imgSrc = shallowRef("");
40
39
  const naturalWidth = shallowRef();
41
40
  const naturalHeight = shallowRef();
42
41
  const {
@@ -50,10 +49,10 @@ export const YImg = defineComponent({
50
49
  });
51
50
  const imgClasses = computed(() => {
52
51
  return {
53
- 'y-img--cover': props.objectFit === 'cover',
54
- 'y-img--contain': props.objectFit === 'contain',
55
- 'y-img--fill': props.objectFit === 'fill',
56
- 'y-img--scale-down': props.objectFit === 'scale-down'
52
+ "y-img--cover": props.objectFit === "cover",
53
+ "y-img--contain": props.objectFit === "contain",
54
+ "y-img--fill": props.objectFit === "fill",
55
+ "y-img--scale-down": props.objectFit === "scale-down"
57
56
  };
58
57
  });
59
58
  function getImgSrc() {
@@ -66,9 +65,9 @@ export const YImg = defineComponent({
66
65
  if (imgEl.naturalWidth || imgEl.naturalHeight) {
67
66
  naturalWidth.value = imgEl.naturalWidth;
68
67
  naturalHeight.value = imgEl.naturalHeight;
69
- } else if (!imgEl.complete && status.value === 'loading') {
68
+ } else if (!imgEl.complete && status.value === "loading") {
70
69
  return false;
71
- } else if (imgEl.currentSrc.endsWith('.svg') || imgEl.currentSrc.startsWith('data:image/svg+xml')) {
70
+ } else if (imgEl.currentSrc.endsWith(".svg") || imgEl.currentSrc.startsWith("data:image/svg+xml")) {
72
71
  naturalWidth.value = 1;
73
72
  naturalHeight.value = 1;
74
73
  }
@@ -82,7 +81,7 @@ export const YImg = defineComponent({
82
81
  return _createVNode(PolyTransition, _mergeProps(polyTransitionBindProps.value, {
83
82
  "appear": true
84
83
  }), {
85
- default: () => [(status.value === 'idle' || status.value === 'error') && _createVNode("div", {
84
+ default: () => [(status.value === "idle" || status.value === "error") && _createVNode("div", {
86
85
  "class": "y-img__placeholder"
87
86
  }, [slots.placeholder?.({
88
87
  status: status.value
@@ -91,12 +90,12 @@ export const YImg = defineComponent({
91
90
  };
92
91
  function onLoad() {
93
92
  if (vm.isUnmounted) return;
94
- status.value = 'loaded';
93
+ status.value = "loaded";
95
94
  }
96
95
  function onError(event) {
97
96
  if (vm.isUnmounted) return;
98
- status.value = 'error';
99
- emit('error', event);
97
+ status.value = "error";
98
+ emit("error", event);
100
99
  }
101
100
  const _Image = () => {
102
101
  const Img = _createVNode("img", {
@@ -106,22 +105,22 @@ export const YImg = defineComponent({
106
105
  "referrerpolicy": props.referrerpolicy,
107
106
  "draggable": attrs.draggable,
108
107
  "alt": attrs.alt,
109
- "class": ['y-img__img', imgClasses.value],
108
+ "class": ["y-img__img", imgClasses.value],
110
109
  "onLoad": onLoad,
111
110
  "onError": onError
112
111
  }, null);
113
112
  return _createVNode(PolyTransition, _mergeProps(polyTransitionBindProps.value, {
114
113
  "appear": true
115
114
  }), {
116
- default: () => [withDirectives(Img, [[vShow, status.value === 'loaded']])]
115
+ default: () => [withDirectives(Img, [[vShow, status.value === "loaded"]])]
117
116
  });
118
117
  };
119
118
  let requestTimer = -1;
120
119
 
121
- /**
122
- *
123
- * @param imgEl
124
- * @param timeout null: once
120
+ /**
121
+ *
122
+ * @param imgEl
123
+ * @param timeout null: once
125
124
  */
126
125
  function requestInspectImage(imgEl) {
127
126
  let timeout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;
@@ -137,19 +136,19 @@ export const YImg = defineComponent({
137
136
  function initIntersect(isIntersection) {
138
137
  if (props.eager && isIntersection) return;
139
138
  if (Environments.canUseIntersectionObserver && !isIntersection && !props.eager) return;
140
- status.value = 'loading';
139
+ status.value = "loading";
141
140
  if (!srcMeta.value.src) return;
142
141
  nextTick(() => {
143
- emit('load', image$.value?.currentSrc || srcMeta.value.src);
142
+ emit("load", image$.value?.currentSrc || srcMeta.value.src);
144
143
  setTimeout(() => {
145
144
  if (vm.isUnmounted) return;
146
145
  if (image$.value?.complete) {
147
146
  if (!image$.value?.naturalWidth) {
148
147
  onError();
149
148
  }
150
- if (status.value === 'error') return;
149
+ if (status.value === "error") return;
151
150
  requestInspectImage(image$.value, null);
152
- if (status.value === 'loading') onLoad();
151
+ if (status.value === "loading") onLoad();
153
152
  } else if (image$.value) {
154
153
  requestInspectImage(image$.value);
155
154
  getImgSrc();
@@ -165,7 +164,7 @@ export const YImg = defineComponent({
165
164
  });
166
165
  useRender(() => {
167
166
  return _createVNode("div", {
168
- "class": ['y-img']
167
+ "class": ["y-img"]
169
168
  }, [_createVNode(_Placeholder, null, null), _createVNode(_Image, null, null)]);
170
169
  });
171
170
  }