yuyeon 0.3.1-rc.6 → 0.3.2-rc.1

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 (951) hide show
  1. package/dist/yuyeon.js +459 -458
  2. package/dist/yuyeon.umd.cjs +2 -2
  3. package/lib/abstract/items.js +20 -0
  4. package/lib/abstract/items.js.map +1 -0
  5. package/lib/components/alert/YAlert.js +83 -0
  6. package/lib/components/alert/YAlert.js.map +1 -0
  7. package/lib/components/alert/index.js +2 -0
  8. package/lib/components/alert/index.js.map +1 -0
  9. package/lib/components/app/YApp.js +21 -0
  10. package/lib/components/app/YApp.js.map +1 -0
  11. package/lib/components/app/index.js +2 -0
  12. package/lib/components/app/index.js.map +1 -0
  13. package/lib/components/badge/YBadge.js +83 -0
  14. package/lib/components/badge/YBadge.js.map +1 -0
  15. package/lib/components/badge/index.js +2 -0
  16. package/lib/components/badge/index.js.map +1 -0
  17. package/lib/components/bench/YBench.js +43 -0
  18. package/lib/components/bench/YBench.js.map +1 -0
  19. package/lib/components/bench/index.js +2 -0
  20. package/lib/components/bench/index.js.map +1 -0
  21. package/lib/components/button/YButton.js +169 -0
  22. package/lib/components/button/YButton.js.map +1 -0
  23. package/lib/components/button/index.js +2 -0
  24. package/lib/components/button/index.js.map +1 -0
  25. package/lib/components/card/YCard.js +28 -0
  26. package/lib/components/card/YCard.js.map +1 -0
  27. package/lib/components/card/YCardBody.js +11 -0
  28. package/lib/components/card/YCardBody.js.map +1 -0
  29. package/lib/components/card/YCardFooter.js +11 -0
  30. package/lib/components/card/YCardFooter.js.map +1 -0
  31. package/lib/components/card/YCardHeader.js +11 -0
  32. package/lib/components/card/YCardHeader.js.map +1 -0
  33. package/lib/components/card/index.js +5 -0
  34. package/lib/components/card/index.js.map +1 -0
  35. package/lib/components/checkbox/YCheckbox.js +160 -0
  36. package/lib/components/checkbox/YCheckbox.js.map +1 -0
  37. package/lib/components/checkbox/YInputCheckbox.js +114 -0
  38. package/lib/components/checkbox/YInputCheckbox.js.map +1 -0
  39. package/lib/components/checkbox/index.js +4 -0
  40. package/lib/components/checkbox/index.js.map +1 -0
  41. package/lib/components/chip/YChip.js +39 -0
  42. package/lib/components/chip/YChip.js.map +1 -0
  43. package/lib/components/chip/index.js +2 -0
  44. package/lib/components/chip/index.js.map +1 -0
  45. package/lib/components/date-picker/YDateCalendar.js +243 -0
  46. package/lib/components/date-picker/YDateCalendar.js.map +1 -0
  47. package/lib/components/date-picker/YDatePicker.js +132 -0
  48. package/lib/components/date-picker/YDatePicker.js.map +1 -0
  49. package/lib/components/date-picker/YDatePickerControl.js +107 -0
  50. package/lib/components/date-picker/YDatePickerControl.js.map +1 -0
  51. package/lib/components/date-picker/YMonthPicker.js +64 -0
  52. package/lib/components/date-picker/YMonthPicker.js.map +1 -0
  53. package/lib/components/date-picker/YYearPicker.js +87 -0
  54. package/lib/components/date-picker/YYearPicker.js.map +1 -0
  55. package/lib/components/date-picker/index.js +4 -0
  56. package/lib/components/date-picker/index.js.map +1 -0
  57. package/lib/components/default-provider/YDefaultProvider.js +2 -0
  58. package/lib/components/default-provider/YDefaultProvider.js.map +1 -0
  59. package/lib/components/default-provider/index.js +2 -0
  60. package/lib/components/default-provider/index.js.map +1 -0
  61. package/lib/components/dialog/YDialog.js +213 -0
  62. package/lib/components/dialog/YDialog.js.map +1 -0
  63. package/lib/components/dialog/index.js +2 -0
  64. package/lib/components/dialog/index.js.map +1 -0
  65. package/lib/components/divider/YDivider.js +20 -0
  66. package/lib/components/divider/YDivider.js.map +1 -0
  67. package/lib/components/divider/index.js +2 -0
  68. package/lib/components/divider/index.js.map +1 -0
  69. package/lib/components/draggable/YDraggable.js +95 -0
  70. package/lib/components/draggable/YDraggable.js.map +1 -0
  71. package/lib/components/dropdown/YDropdown.js +109 -0
  72. package/lib/components/dropdown/YDropdown.js.map +1 -0
  73. package/lib/components/dropdown/index.js +2 -0
  74. package/lib/components/dropdown/index.js.map +1 -0
  75. package/lib/components/field-input/YFieldInput.js +229 -0
  76. package/lib/components/field-input/YFieldInput.js.map +1 -0
  77. package/lib/components/field-input/index.js +2 -0
  78. package/lib/components/field-input/index.js.map +1 -0
  79. package/lib/components/form/YForm.js +65 -0
  80. package/lib/components/form/YForm.js.map +1 -0
  81. package/lib/components/form/index.js +2 -0
  82. package/lib/components/form/index.js.map +1 -0
  83. package/lib/components/hover/YHover.js +54 -0
  84. package/lib/components/hover/YHover.js.map +1 -0
  85. package/lib/components/hover/index.js +2 -0
  86. package/lib/components/hover/index.js.map +1 -0
  87. package/lib/components/icon/YIcon.js +63 -0
  88. package/lib/components/icon/YIcon.js.map +1 -0
  89. package/lib/components/icon/index.js +2 -0
  90. package/lib/components/icon/index.js.map +1 -0
  91. package/lib/components/icons/YIconCheckbox.js +32 -0
  92. package/lib/components/icons/YIconCheckbox.js.map +1 -0
  93. package/lib/components/icons/YIconClear.js +16 -0
  94. package/lib/components/icons/YIconClear.js.map +1 -0
  95. package/lib/components/icons/YIconDropdown.js +16 -0
  96. package/lib/components/icons/YIconDropdown.js.map +1 -0
  97. package/lib/components/icons/YIconExpand.js +20 -0
  98. package/lib/components/icons/YIconExpand.js.map +1 -0
  99. package/lib/components/icons/YIconPageControl.js +32 -0
  100. package/lib/components/icons/YIconPageControl.js.map +1 -0
  101. package/lib/components/icons/YIconSort.js +45 -0
  102. package/lib/components/icons/YIconSort.js.map +1 -0
  103. package/lib/components/icons/index.js +32 -0
  104. package/lib/components/icons/index.js.map +1 -0
  105. package/lib/components/img/YImg.js +173 -0
  106. package/lib/components/img/YImg.js.map +1 -0
  107. package/lib/components/img/index.js +2 -0
  108. package/lib/components/img/index.js.map +1 -0
  109. package/lib/components/index.js +39 -0
  110. package/lib/components/index.js.map +1 -0
  111. package/lib/components/input/YInput.js +258 -0
  112. package/lib/components/input/YInput.js.map +1 -0
  113. package/lib/components/input/index.js +2 -0
  114. package/lib/components/input/index.js.map +1 -0
  115. package/lib/components/ip-field/YIpv4Field.js +297 -0
  116. package/lib/components/ip-field/YIpv4Field.js.map +1 -0
  117. package/lib/components/ip-field/index.js +2 -0
  118. package/lib/components/ip-field/index.js.map +1 -0
  119. package/lib/components/layer/YLayer.js +326 -0
  120. package/lib/components/layer/YLayer.js.map +1 -0
  121. package/lib/components/layer/active-delay.js +28 -0
  122. package/lib/components/layer/active-delay.js.map +1 -0
  123. package/lib/components/layer/active-stack.js +52 -0
  124. package/lib/components/layer/active-stack.js.map +1 -0
  125. package/lib/components/layer/base.js +87 -0
  126. package/lib/components/layer/base.js.map +1 -0
  127. package/lib/components/layer/content.js +22 -0
  128. package/lib/components/layer/content.js.map +1 -0
  129. package/lib/components/layer/index.js +2 -0
  130. package/lib/components/layer/index.js.map +1 -0
  131. package/lib/components/layer/scroll-strategies.js +132 -0
  132. package/lib/components/layer/scroll-strategies.js.map +1 -0
  133. package/lib/components/list/YList.js +55 -0
  134. package/lib/components/list/YList.js.map +1 -0
  135. package/lib/components/list/YListItem.js +59 -0
  136. package/lib/components/list/YListItem.js.map +1 -0
  137. package/lib/components/list/index.js +3 -0
  138. package/lib/components/list/index.js.map +1 -0
  139. package/lib/components/loading/YSpinnerRing.js +25 -0
  140. package/lib/components/loading/YSpinnerRing.js.map +1 -0
  141. package/lib/components/loading/index.js +2 -0
  142. package/lib/components/loading/index.js.map +1 -0
  143. package/lib/components/menu/YMenu.js +211 -0
  144. package/lib/components/menu/YMenu.js.map +1 -0
  145. package/lib/components/menu/index.js +2 -0
  146. package/lib/components/menu/index.js.map +1 -0
  147. package/lib/components/navigation/YNavigation.js +18 -0
  148. package/lib/components/navigation/YNavigation.js.map +1 -0
  149. package/lib/components/navigation/index.js +2 -0
  150. package/lib/components/navigation/index.js.map +1 -0
  151. package/lib/components/pagination/YPagination.js +288 -0
  152. package/lib/components/pagination/YPagination.js.map +1 -0
  153. package/lib/components/pagination/index.js +2 -0
  154. package/lib/components/pagination/index.js.map +1 -0
  155. package/lib/components/panel/YDividePanel.js +90 -0
  156. package/lib/components/panel/YDividePanel.js.map +1 -0
  157. package/lib/components/panel/index.js +2 -0
  158. package/lib/components/panel/index.js.map +1 -0
  159. package/lib/components/plate/YPlate.js +28 -0
  160. package/lib/components/plate/YPlate.js.map +1 -0
  161. package/lib/components/plate/index.js +2 -0
  162. package/lib/components/plate/index.js.map +1 -0
  163. package/lib/components/progress-bar/YProgressBar.js +117 -0
  164. package/lib/components/progress-bar/YProgressBar.js.map +1 -0
  165. package/lib/components/progress-bar/index.js +2 -0
  166. package/lib/components/progress-bar/index.js.map +1 -0
  167. package/lib/components/progress-ring/YProgressRing.js +128 -0
  168. package/lib/components/progress-ring/YProgressRing.js.map +1 -0
  169. package/lib/components/progress-ring/index.js +2 -0
  170. package/lib/components/progress-ring/index.js.map +1 -0
  171. package/lib/components/select/YSelect.js +344 -0
  172. package/lib/components/select/YSelect.js.map +1 -0
  173. package/lib/components/select/index.js +2 -0
  174. package/lib/components/select/index.js.map +1 -0
  175. package/lib/components/slider/YSlider.js +26 -0
  176. package/lib/components/slider/YSlider.js.map +1 -0
  177. package/lib/components/slider/index.js +2 -0
  178. package/lib/components/slider/index.js.map +1 -0
  179. package/lib/components/snackbar/YSnackbar.js +209 -0
  180. package/lib/components/snackbar/YSnackbar.js.map +1 -0
  181. package/lib/components/snackbar/index.js +2 -0
  182. package/lib/components/snackbar/index.js.map +1 -0
  183. package/lib/components/switch/YSwitch.js +184 -0
  184. package/lib/components/switch/YSwitch.js.map +1 -0
  185. package/lib/components/switch/index.js +2 -0
  186. package/lib/components/switch/index.js.map +1 -0
  187. package/lib/components/tab/YTab.js +64 -0
  188. package/lib/components/tab/YTab.js.map +1 -0
  189. package/lib/components/tab/YTabs.js +86 -0
  190. package/lib/components/tab/YTabs.js.map +1 -0
  191. package/lib/components/tab/index.js +4 -0
  192. package/lib/components/tab/index.js.map +1 -0
  193. package/lib/components/tab/shared.js +2 -0
  194. package/lib/components/tab/shared.js.map +1 -0
  195. package/lib/components/tab/types.js +2 -0
  196. package/lib/components/tab/types.js.map +1 -0
  197. package/lib/components/table/YDataTable.js +182 -0
  198. package/lib/components/table/YDataTable.js.map +1 -0
  199. package/lib/components/table/YDataTableBody.js +131 -0
  200. package/lib/components/table/YDataTableBody.js.map +1 -0
  201. package/lib/components/table/YDataTableCell.js +78 -0
  202. package/lib/components/table/YDataTableCell.js.map +1 -0
  203. package/lib/components/table/YDataTableControl.js +46 -0
  204. package/lib/components/table/YDataTableControl.js.map +1 -0
  205. package/lib/components/table/YDataTableHead.js +172 -0
  206. package/lib/components/table/YDataTableHead.js.map +1 -0
  207. package/lib/components/table/YDataTableLayer.js +29 -0
  208. package/lib/components/table/YDataTableLayer.js.map +1 -0
  209. package/lib/components/table/YDataTableRow.js +150 -0
  210. package/lib/components/table/YDataTableRow.js.map +1 -0
  211. package/lib/components/table/YDataTableServer.js +173 -0
  212. package/lib/components/table/YDataTableServer.js.map +1 -0
  213. package/lib/components/table/YTable.js +77 -0
  214. package/lib/components/table/YTable.js.map +1 -0
  215. package/lib/components/table/composibles/header.js +127 -0
  216. package/lib/components/table/composibles/header.js.map +1 -0
  217. package/lib/components/table/composibles/items.js +52 -0
  218. package/lib/components/table/composibles/items.js.map +1 -0
  219. package/lib/components/table/composibles/measure.js +39 -0
  220. package/lib/components/table/composibles/measure.js.map +1 -0
  221. package/lib/components/table/composibles/options.js +33 -0
  222. package/lib/components/table/composibles/options.js.map +1 -0
  223. package/lib/components/table/composibles/pagination.js +99 -0
  224. package/lib/components/table/composibles/pagination.js.map +1 -0
  225. package/lib/components/table/composibles/selection.js +196 -0
  226. package/lib/components/table/composibles/selection.js.map +1 -0
  227. package/lib/components/table/composibles/sorted-items.js +50 -0
  228. package/lib/components/table/composibles/sorted-items.js.map +1 -0
  229. package/lib/components/table/composibles/sorting.js +73 -0
  230. package/lib/components/table/composibles/sorting.js.map +1 -0
  231. package/lib/components/table/index.js +9 -0
  232. package/lib/components/table/index.js.map +1 -0
  233. package/lib/components/table/types/common.js +2 -0
  234. package/lib/components/table/types/common.js.map +1 -0
  235. package/lib/components/table/types/header.js +2 -0
  236. package/lib/components/table/types/header.js.map +1 -0
  237. package/lib/components/table/types/index.js +2 -0
  238. package/lib/components/table/types/index.js.map +1 -0
  239. package/lib/components/table/types/item.js +2 -0
  240. package/lib/components/table/types/item.js.map +1 -0
  241. package/lib/components/table/types/row.js +2 -0
  242. package/lib/components/table/types/row.js.map +1 -0
  243. package/lib/components/text-ellipsis/YTextEllipsis.js +66 -0
  244. package/lib/components/text-ellipsis/YTextEllipsis.js.map +1 -0
  245. package/lib/components/text-ellipsis/index.js +2 -0
  246. package/lib/components/text-ellipsis/index.js.map +1 -0
  247. package/lib/components/text-highlighter/YTextHighlighter.js +95 -0
  248. package/lib/components/text-highlighter/YTextHighlighter.js.map +1 -0
  249. package/lib/components/text-highlighter/index.js +2 -0
  250. package/lib/components/text-highlighter/index.js.map +1 -0
  251. package/lib/components/text-interpolation/YTi.js +47 -0
  252. package/lib/components/text-interpolation/YTi.js.map +1 -0
  253. package/lib/components/text-interpolation/index.js +2 -0
  254. package/lib/components/text-interpolation/index.js.map +1 -0
  255. package/lib/components/textarea/YTextarea.js +157 -0
  256. package/lib/components/textarea/YTextarea.js.map +1 -0
  257. package/lib/components/textarea/index.js +2 -0
  258. package/lib/components/textarea/index.js.map +1 -0
  259. package/lib/components/toggle-button/YToggleButton.js +2 -0
  260. package/lib/components/toggle-button/YToggleButton.js.map +1 -0
  261. package/lib/components/toggle-button/index.js +2 -0
  262. package/lib/components/toggle-button/index.js.map +1 -0
  263. package/lib/components/tooltip/YTooltip.js +157 -0
  264. package/lib/components/tooltip/YTooltip.js.map +1 -0
  265. package/lib/components/tooltip/index.js +2 -0
  266. package/lib/components/tooltip/index.js.map +1 -0
  267. package/lib/components/transitions/expand-transition.js +109 -0
  268. package/lib/components/transitions/expand-transition.js.map +1 -0
  269. package/lib/components/transitions/index.js +4 -0
  270. package/lib/components/transitions/index.js.map +1 -0
  271. package/lib/components/tree-view/YTreeView.js +290 -0
  272. package/lib/components/tree-view/YTreeView.js.map +1 -0
  273. package/lib/components/tree-view/YTreeViewNode.js +250 -0
  274. package/lib/components/tree-view/YTreeViewNode.js.map +1 -0
  275. package/lib/components/tree-view/index.js +3 -0
  276. package/lib/components/tree-view/index.js.map +1 -0
  277. package/lib/components/tree-view/tree-view.js +179 -0
  278. package/lib/components/tree-view/tree-view.js.map +1 -0
  279. package/lib/components/tree-view/types.js +2 -0
  280. package/lib/components/tree-view/types.js.map +1 -0
  281. package/lib/components/tree-view/util.js +40 -0
  282. package/lib/components/tree-view/util.js.map +1 -0
  283. package/lib/composables/choice-link.js +13 -0
  284. package/lib/composables/choice-link.js.map +1 -0
  285. package/lib/composables/choice.js +187 -0
  286. package/lib/composables/choice.js.map +1 -0
  287. package/lib/composables/communication.js +55 -0
  288. package/lib/composables/communication.js.map +1 -0
  289. package/lib/composables/component.js +8 -0
  290. package/lib/composables/component.js.map +1 -0
  291. package/lib/composables/coordinate/arrangement.js +14 -0
  292. package/lib/composables/coordinate/arrangement.js.map +1 -0
  293. package/lib/composables/coordinate/index.js +67 -0
  294. package/lib/composables/coordinate/index.js.map +1 -0
  295. package/lib/composables/coordinate/levitation.js +315 -0
  296. package/lib/composables/coordinate/levitation.js.map +1 -0
  297. package/lib/composables/coordinate/types.js +2 -0
  298. package/lib/composables/coordinate/types.js.map +1 -0
  299. package/lib/composables/coordinate/utils/point.js +55 -0
  300. package/lib/composables/coordinate/utils/point.js.map +1 -0
  301. package/lib/composables/date/factory.js +12 -0
  302. package/lib/composables/date/factory.js.map +1 -0
  303. package/lib/composables/date/index.js +20 -0
  304. package/lib/composables/date/index.js.map +1 -0
  305. package/lib/composables/date/setting.js +11 -0
  306. package/lib/composables/date/setting.js.map +1 -0
  307. package/lib/composables/date/types.js +2 -0
  308. package/lib/composables/date/types.js.map +1 -0
  309. package/lib/composables/defaults/index.js +99 -0
  310. package/lib/composables/defaults/index.js.map +1 -0
  311. package/lib/composables/defaults/share.js +2 -0
  312. package/lib/composables/defaults/share.js.map +1 -0
  313. package/lib/composables/defaults/types.js +2 -0
  314. package/lib/composables/defaults/types.js.map +1 -0
  315. package/lib/composables/dimension.js +26 -0
  316. package/lib/composables/dimension.js.map +1 -0
  317. package/lib/composables/focus.js +29 -0
  318. package/lib/composables/focus.js.map +1 -0
  319. package/lib/composables/form.js +100 -0
  320. package/lib/composables/form.js.map +1 -0
  321. package/lib/composables/i18n/index.js +30 -0
  322. package/lib/composables/i18n/index.js.map +1 -0
  323. package/lib/composables/i18n/locale.js +5 -0
  324. package/lib/composables/i18n/locale.js.map +1 -0
  325. package/lib/composables/i18n/rtl.js +34 -0
  326. package/lib/composables/i18n/rtl.js.map +1 -0
  327. package/lib/composables/i18n/share.js +2 -0
  328. package/lib/composables/i18n/share.js.map +1 -0
  329. package/lib/composables/icon.js +164 -0
  330. package/lib/composables/icon.js.map +1 -0
  331. package/lib/composables/index.js +11 -0
  332. package/lib/composables/index.js.map +1 -0
  333. package/lib/composables/layer-group.js +66 -0
  334. package/lib/composables/layer-group.js.map +1 -0
  335. package/lib/composables/layout.js +13 -0
  336. package/lib/composables/layout.js.map +1 -0
  337. package/lib/composables/list-items.js +66 -0
  338. package/lib/composables/list-items.js.map +1 -0
  339. package/lib/composables/progress.js +26 -0
  340. package/lib/composables/progress.js.map +1 -0
  341. package/lib/composables/ref.js +13 -0
  342. package/lib/composables/ref.js.map +1 -0
  343. package/lib/composables/resize-observer.js +33 -0
  344. package/lib/composables/resize-observer.js.map +1 -0
  345. package/lib/composables/scope.js +26 -0
  346. package/lib/composables/scope.js.map +1 -0
  347. package/lib/composables/style-color.js +37 -0
  348. package/lib/composables/style-color.js.map +1 -0
  349. package/lib/composables/theme/factory.js +47 -0
  350. package/lib/composables/theme/factory.js.map +1 -0
  351. package/lib/composables/theme/helper.js +14 -0
  352. package/lib/composables/theme/helper.js.map +1 -0
  353. package/lib/composables/theme/index.js +187 -0
  354. package/lib/composables/theme/index.js.map +1 -0
  355. package/lib/composables/theme/setting.js +113 -0
  356. package/lib/composables/theme/setting.js.map +1 -0
  357. package/lib/composables/theme/types.js +2 -0
  358. package/lib/composables/theme/types.js.map +1 -0
  359. package/lib/composables/timing.js +102 -0
  360. package/lib/composables/timing.js.map +1 -0
  361. package/lib/composables/transition.js +51 -0
  362. package/lib/composables/transition.js.map +1 -0
  363. package/lib/composables/validation.js +126 -0
  364. package/lib/composables/validation.js.map +1 -0
  365. package/lib/composables/vue-router.js +32 -0
  366. package/lib/composables/vue-router.js.map +1 -0
  367. package/lib/directives/complement-click/index.js +78 -0
  368. package/lib/directives/complement-click/index.js.map +1 -0
  369. package/lib/directives/plate-wave/index.js +100 -0
  370. package/lib/directives/plate-wave/index.js.map +1 -0
  371. package/lib/directives/theme-class.js +24 -0
  372. package/lib/directives/theme-class.js.map +1 -0
  373. package/lib/etc/index.js +6 -0
  374. package/lib/etc/index.js.map +1 -0
  375. package/lib/i18n/built-in.js +77 -0
  376. package/lib/i18n/built-in.js.map +1 -0
  377. package/lib/i18n/config.js +82 -0
  378. package/lib/i18n/config.js.map +1 -0
  379. package/lib/i18n/types.js +2 -0
  380. package/lib/i18n/types.js.map +1 -0
  381. package/lib/index.js +103 -0
  382. package/lib/index.js.map +1 -0
  383. package/lib/locales/en.js +6 -0
  384. package/lib/locales/en.js.map +1 -0
  385. package/lib/locales/index.js +3 -0
  386. package/lib/locales/index.js.map +1 -0
  387. package/lib/locales/ko.js +6 -0
  388. package/lib/locales/ko.js.map +1 -0
  389. package/lib/mixins/di.js +19 -0
  390. package/lib/mixins/di.js.map +1 -0
  391. package/lib/mixins/rebind-attrs.js +37 -0
  392. package/lib/mixins/rebind-attrs.js.map +1 -0
  393. package/lib/types/index.js +2 -0
  394. package/lib/types/index.js.map +1 -0
  395. package/lib/util/anchor.js +53 -0
  396. package/lib/util/anchor.js.map +1 -0
  397. package/lib/util/array.js +13 -0
  398. package/lib/util/array.js.map +1 -0
  399. package/lib/util/collection.js +10 -0
  400. package/lib/util/collection.js.map +1 -0
  401. package/lib/util/color/apca.js +201 -0
  402. package/lib/util/color/apca.js.map +1 -0
  403. package/lib/util/color/const.js +6 -0
  404. package/lib/util/color/const.js.map +1 -0
  405. package/lib/util/color/contrast/contrast.js +149 -0
  406. package/lib/util/color/contrast/contrast.js.map +1 -0
  407. package/lib/util/color/conversion.js +310 -0
  408. package/lib/util/color/conversion.js.map +1 -0
  409. package/lib/util/color/hct/cam16.js +349 -0
  410. package/lib/util/color/hct/cam16.js.map +1 -0
  411. package/lib/util/color/hct/hct-solver.js +389 -0
  412. package/lib/util/color/hct/hct-solver.js.map +1 -0
  413. package/lib/util/color/hct/hct.js +153 -0
  414. package/lib/util/color/hct/hct.js.map +1 -0
  415. package/lib/util/color/hct/viewing-conditions.js +110 -0
  416. package/lib/util/color/hct/viewing-conditions.js.map +1 -0
  417. package/lib/util/color/index.js +40 -0
  418. package/lib/util/color/index.js.map +1 -0
  419. package/lib/util/color/palettes/core-palette.js +99 -0
  420. package/lib/util/color/palettes/core-palette.js.map +1 -0
  421. package/lib/util/color/palettes/tonal-palette.js +112 -0
  422. package/lib/util/color/palettes/tonal-palette.js.map +1 -0
  423. package/lib/util/color/types.js +2 -0
  424. package/lib/util/color/types.js.map +1 -0
  425. package/lib/util/color/utils/math-utils.js +139 -0
  426. package/lib/util/color/utils/math-utils.js.map +1 -0
  427. package/lib/util/common.js +107 -0
  428. package/lib/util/common.js.map +1 -0
  429. package/lib/util/component/component.js +26 -0
  430. package/lib/util/component/component.js.map +1 -0
  431. package/lib/util/component/index.js +65 -0
  432. package/lib/util/component/index.js.map +1 -0
  433. package/lib/util/component/inject-self.js +10 -0
  434. package/lib/util/component/inject-self.js.map +1 -0
  435. package/lib/util/component/props.js +41 -0
  436. package/lib/util/component/props.js.map +1 -0
  437. package/lib/util/component/types.js +2 -0
  438. package/lib/util/component/types.js.map +1 -0
  439. package/lib/util/date/adapters/yuyeon-date-adapter.js +111 -0
  440. package/lib/util/date/adapters/yuyeon-date-adapter.js.map +1 -0
  441. package/lib/util/date/built-in.js +416 -0
  442. package/lib/util/date/built-in.js.map +1 -0
  443. package/lib/util/date/index.js +4 -0
  444. package/lib/util/date/index.js.map +1 -0
  445. package/lib/util/date/types.js +2 -0
  446. package/lib/util/date/types.js.map +1 -0
  447. package/lib/util/debounce.js +114 -0
  448. package/lib/util/debounce.js.map +1 -0
  449. package/lib/util/dom.js +23 -0
  450. package/lib/util/dom.js.map +1 -0
  451. package/lib/util/environments.js +8 -0
  452. package/lib/util/environments.js.map +1 -0
  453. package/lib/util/frame-scheduler.js +29 -0
  454. package/lib/util/frame-scheduler.js.map +1 -0
  455. package/lib/util/index.js +17 -0
  456. package/lib/util/index.js.map +1 -0
  457. package/lib/util/reactivity.js +19 -0
  458. package/lib/util/reactivity.js.map +1 -0
  459. package/lib/util/rect.js +39 -0
  460. package/lib/util/rect.js.map +1 -0
  461. package/lib/util/scroll.js +28 -0
  462. package/lib/util/scroll.js.map +1 -0
  463. package/lib/util/string.js +69 -0
  464. package/lib/util/string.js.map +1 -0
  465. package/lib/util/ui.js +60 -0
  466. package/lib/util/ui.js.map +1 -0
  467. package/lib/util/validation.js +5 -0
  468. package/lib/util/validation.js.map +1 -0
  469. package/package.json +12 -12
  470. package/types/components/tree-view/YTreeView.d.ts +1 -0
  471. package/types/composables/theme/setting.d.ts +1 -0
  472. package/lib/abstract/items.mjs +0 -20
  473. package/lib/abstract/items.mjs.map +0 -1
  474. package/lib/components/alert/YAlert.mjs +0 -83
  475. package/lib/components/alert/YAlert.mjs.map +0 -1
  476. package/lib/components/alert/index.mjs +0 -2
  477. package/lib/components/alert/index.mjs.map +0 -1
  478. package/lib/components/app/YApp.mjs +0 -21
  479. package/lib/components/app/YApp.mjs.map +0 -1
  480. package/lib/components/app/index.mjs +0 -2
  481. package/lib/components/app/index.mjs.map +0 -1
  482. package/lib/components/badge/YBadge.mjs +0 -83
  483. package/lib/components/badge/YBadge.mjs.map +0 -1
  484. package/lib/components/badge/index.mjs +0 -2
  485. package/lib/components/badge/index.mjs.map +0 -1
  486. package/lib/components/bench/YBench.mjs +0 -43
  487. package/lib/components/bench/YBench.mjs.map +0 -1
  488. package/lib/components/bench/index.mjs +0 -2
  489. package/lib/components/bench/index.mjs.map +0 -1
  490. package/lib/components/button/YButton.mjs +0 -169
  491. package/lib/components/button/YButton.mjs.map +0 -1
  492. package/lib/components/button/index.mjs +0 -2
  493. package/lib/components/button/index.mjs.map +0 -1
  494. package/lib/components/card/YCard.mjs +0 -28
  495. package/lib/components/card/YCard.mjs.map +0 -1
  496. package/lib/components/card/YCardBody.mjs +0 -11
  497. package/lib/components/card/YCardBody.mjs.map +0 -1
  498. package/lib/components/card/YCardFooter.mjs +0 -11
  499. package/lib/components/card/YCardFooter.mjs.map +0 -1
  500. package/lib/components/card/YCardHeader.mjs +0 -11
  501. package/lib/components/card/YCardHeader.mjs.map +0 -1
  502. package/lib/components/card/index.mjs +0 -5
  503. package/lib/components/card/index.mjs.map +0 -1
  504. package/lib/components/checkbox/YCheckbox.mjs +0 -160
  505. package/lib/components/checkbox/YCheckbox.mjs.map +0 -1
  506. package/lib/components/checkbox/YInputCheckbox.mjs +0 -114
  507. package/lib/components/checkbox/YInputCheckbox.mjs.map +0 -1
  508. package/lib/components/checkbox/index.mjs +0 -4
  509. package/lib/components/checkbox/index.mjs.map +0 -1
  510. package/lib/components/chip/YChip.mjs +0 -39
  511. package/lib/components/chip/YChip.mjs.map +0 -1
  512. package/lib/components/chip/index.mjs +0 -2
  513. package/lib/components/chip/index.mjs.map +0 -1
  514. package/lib/components/date-picker/YDateCalendar.mjs +0 -243
  515. package/lib/components/date-picker/YDateCalendar.mjs.map +0 -1
  516. package/lib/components/date-picker/YDatePicker.mjs +0 -132
  517. package/lib/components/date-picker/YDatePicker.mjs.map +0 -1
  518. package/lib/components/date-picker/YDatePickerControl.mjs +0 -107
  519. package/lib/components/date-picker/YDatePickerControl.mjs.map +0 -1
  520. package/lib/components/date-picker/YMonthPicker.mjs +0 -64
  521. package/lib/components/date-picker/YMonthPicker.mjs.map +0 -1
  522. package/lib/components/date-picker/YYearPicker.mjs +0 -87
  523. package/lib/components/date-picker/YYearPicker.mjs.map +0 -1
  524. package/lib/components/date-picker/index.mjs +0 -4
  525. package/lib/components/date-picker/index.mjs.map +0 -1
  526. package/lib/components/default-provider/YDefaultProvider.mjs +0 -2
  527. package/lib/components/default-provider/YDefaultProvider.mjs.map +0 -1
  528. package/lib/components/default-provider/index.mjs +0 -2
  529. package/lib/components/default-provider/index.mjs.map +0 -1
  530. package/lib/components/dialog/YDialog.mjs +0 -213
  531. package/lib/components/dialog/YDialog.mjs.map +0 -1
  532. package/lib/components/dialog/index.mjs +0 -2
  533. package/lib/components/dialog/index.mjs.map +0 -1
  534. package/lib/components/divider/YDivider.mjs +0 -20
  535. package/lib/components/divider/YDivider.mjs.map +0 -1
  536. package/lib/components/divider/index.mjs +0 -2
  537. package/lib/components/divider/index.mjs.map +0 -1
  538. package/lib/components/draggable/YDraggable.mjs +0 -95
  539. package/lib/components/draggable/YDraggable.mjs.map +0 -1
  540. package/lib/components/dropdown/YDropdown.mjs +0 -109
  541. package/lib/components/dropdown/YDropdown.mjs.map +0 -1
  542. package/lib/components/dropdown/index.mjs +0 -2
  543. package/lib/components/dropdown/index.mjs.map +0 -1
  544. package/lib/components/field-input/YFieldInput.mjs +0 -229
  545. package/lib/components/field-input/YFieldInput.mjs.map +0 -1
  546. package/lib/components/field-input/index.mjs +0 -2
  547. package/lib/components/field-input/index.mjs.map +0 -1
  548. package/lib/components/form/YForm.mjs +0 -65
  549. package/lib/components/form/YForm.mjs.map +0 -1
  550. package/lib/components/form/index.mjs +0 -2
  551. package/lib/components/form/index.mjs.map +0 -1
  552. package/lib/components/hover/YHover.mjs +0 -54
  553. package/lib/components/hover/YHover.mjs.map +0 -1
  554. package/lib/components/hover/index.mjs +0 -2
  555. package/lib/components/hover/index.mjs.map +0 -1
  556. package/lib/components/icon/YIcon.mjs +0 -63
  557. package/lib/components/icon/YIcon.mjs.map +0 -1
  558. package/lib/components/icon/index.mjs +0 -2
  559. package/lib/components/icon/index.mjs.map +0 -1
  560. package/lib/components/icon/poly.mjs +0 -57
  561. package/lib/components/icon/poly.mjs.map +0 -1
  562. package/lib/components/icons/YIconCheckbox.mjs +0 -32
  563. package/lib/components/icons/YIconCheckbox.mjs.map +0 -1
  564. package/lib/components/icons/YIconClear.mjs +0 -16
  565. package/lib/components/icons/YIconClear.mjs.map +0 -1
  566. package/lib/components/icons/YIconDropdown.mjs +0 -16
  567. package/lib/components/icons/YIconDropdown.mjs.map +0 -1
  568. package/lib/components/icons/YIconExpand.mjs +0 -20
  569. package/lib/components/icons/YIconExpand.mjs.map +0 -1
  570. package/lib/components/icons/YIconPageControl.mjs +0 -32
  571. package/lib/components/icons/YIconPageControl.mjs.map +0 -1
  572. package/lib/components/icons/YIconSort.mjs +0 -45
  573. package/lib/components/icons/YIconSort.mjs.map +0 -1
  574. package/lib/components/icons/index.mjs +0 -32
  575. package/lib/components/icons/index.mjs.map +0 -1
  576. package/lib/components/img/YImg.mjs +0 -173
  577. package/lib/components/img/YImg.mjs.map +0 -1
  578. package/lib/components/img/index.mjs +0 -2
  579. package/lib/components/img/index.mjs.map +0 -1
  580. package/lib/components/index.mjs +0 -39
  581. package/lib/components/index.mjs.map +0 -1
  582. package/lib/components/input/YInput.mjs +0 -258
  583. package/lib/components/input/YInput.mjs.map +0 -1
  584. package/lib/components/input/index.mjs +0 -2
  585. package/lib/components/input/index.mjs.map +0 -1
  586. package/lib/components/ip-field/YIpv4Field.mjs +0 -297
  587. package/lib/components/ip-field/YIpv4Field.mjs.map +0 -1
  588. package/lib/components/ip-field/index.mjs +0 -2
  589. package/lib/components/ip-field/index.mjs.map +0 -1
  590. package/lib/components/layer/YLayer.mjs +0 -326
  591. package/lib/components/layer/YLayer.mjs.map +0 -1
  592. package/lib/components/layer/active-delay.mjs +0 -28
  593. package/lib/components/layer/active-delay.mjs.map +0 -1
  594. package/lib/components/layer/active-stack.mjs +0 -52
  595. package/lib/components/layer/active-stack.mjs.map +0 -1
  596. package/lib/components/layer/base.mjs +0 -87
  597. package/lib/components/layer/base.mjs.map +0 -1
  598. package/lib/components/layer/content.mjs +0 -22
  599. package/lib/components/layer/content.mjs.map +0 -1
  600. package/lib/components/layer/index.mjs +0 -2
  601. package/lib/components/layer/index.mjs.map +0 -1
  602. package/lib/components/layer/scroll-strategies.mjs +0 -132
  603. package/lib/components/layer/scroll-strategies.mjs.map +0 -1
  604. package/lib/components/list/YList.mjs +0 -55
  605. package/lib/components/list/YList.mjs.map +0 -1
  606. package/lib/components/list/YListItem.mjs +0 -59
  607. package/lib/components/list/YListItem.mjs.map +0 -1
  608. package/lib/components/list/index.mjs +0 -3
  609. package/lib/components/list/index.mjs.map +0 -1
  610. package/lib/components/loading/YSpinnerRing.mjs +0 -25
  611. package/lib/components/loading/YSpinnerRing.mjs.map +0 -1
  612. package/lib/components/loading/index.mjs +0 -2
  613. package/lib/components/loading/index.mjs.map +0 -1
  614. package/lib/components/menu/YMenu.mjs +0 -211
  615. package/lib/components/menu/YMenu.mjs.map +0 -1
  616. package/lib/components/menu/index.mjs +0 -2
  617. package/lib/components/menu/index.mjs.map +0 -1
  618. package/lib/components/navigation/YNavigation.mjs +0 -18
  619. package/lib/components/navigation/YNavigation.mjs.map +0 -1
  620. package/lib/components/navigation/index.mjs +0 -2
  621. package/lib/components/navigation/index.mjs.map +0 -1
  622. package/lib/components/pagination/YPagination.mjs +0 -288
  623. package/lib/components/pagination/YPagination.mjs.map +0 -1
  624. package/lib/components/pagination/index.mjs +0 -2
  625. package/lib/components/pagination/index.mjs.map +0 -1
  626. package/lib/components/panel/YDividePanel.mjs +0 -90
  627. package/lib/components/panel/YDividePanel.mjs.map +0 -1
  628. package/lib/components/panel/index.mjs +0 -2
  629. package/lib/components/panel/index.mjs.map +0 -1
  630. package/lib/components/plate/YPlate.mjs +0 -28
  631. package/lib/components/plate/YPlate.mjs.map +0 -1
  632. package/lib/components/plate/index.mjs +0 -2
  633. package/lib/components/plate/index.mjs.map +0 -1
  634. package/lib/components/progress-bar/YProgressBar.mjs +0 -117
  635. package/lib/components/progress-bar/YProgressBar.mjs.map +0 -1
  636. package/lib/components/progress-bar/index.mjs +0 -2
  637. package/lib/components/progress-bar/index.mjs.map +0 -1
  638. package/lib/components/progress-ring/YProgressRing.mjs +0 -128
  639. package/lib/components/progress-ring/YProgressRing.mjs.map +0 -1
  640. package/lib/components/progress-ring/index.mjs +0 -2
  641. package/lib/components/progress-ring/index.mjs.map +0 -1
  642. package/lib/components/select/YSelect.mjs +0 -344
  643. package/lib/components/select/YSelect.mjs.map +0 -1
  644. package/lib/components/select/index.mjs +0 -2
  645. package/lib/components/select/index.mjs.map +0 -1
  646. package/lib/components/slider/YSlider.mjs +0 -26
  647. package/lib/components/slider/YSlider.mjs.map +0 -1
  648. package/lib/components/slider/index.mjs +0 -2
  649. package/lib/components/slider/index.mjs.map +0 -1
  650. package/lib/components/snackbar/YSnackbar.mjs +0 -209
  651. package/lib/components/snackbar/YSnackbar.mjs.map +0 -1
  652. package/lib/components/snackbar/index.mjs +0 -2
  653. package/lib/components/snackbar/index.mjs.map +0 -1
  654. package/lib/components/switch/YSwitch.mjs +0 -184
  655. package/lib/components/switch/YSwitch.mjs.map +0 -1
  656. package/lib/components/switch/index.mjs +0 -2
  657. package/lib/components/switch/index.mjs.map +0 -1
  658. package/lib/components/tab/YTab.mjs +0 -64
  659. package/lib/components/tab/YTab.mjs.map +0 -1
  660. package/lib/components/tab/YTabs.mjs +0 -86
  661. package/lib/components/tab/YTabs.mjs.map +0 -1
  662. package/lib/components/tab/index.mjs +0 -4
  663. package/lib/components/tab/index.mjs.map +0 -1
  664. package/lib/components/tab/shared.mjs +0 -2
  665. package/lib/components/tab/shared.mjs.map +0 -1
  666. package/lib/components/tab/types.mjs +0 -2
  667. package/lib/components/tab/types.mjs.map +0 -1
  668. package/lib/components/table/YDataTable.mjs +0 -182
  669. package/lib/components/table/YDataTable.mjs.map +0 -1
  670. package/lib/components/table/YDataTableBody.mjs +0 -131
  671. package/lib/components/table/YDataTableBody.mjs.map +0 -1
  672. package/lib/components/table/YDataTableCell.mjs +0 -78
  673. package/lib/components/table/YDataTableCell.mjs.map +0 -1
  674. package/lib/components/table/YDataTableControl.mjs +0 -46
  675. package/lib/components/table/YDataTableControl.mjs.map +0 -1
  676. package/lib/components/table/YDataTableHead.mjs +0 -172
  677. package/lib/components/table/YDataTableHead.mjs.map +0 -1
  678. package/lib/components/table/YDataTableLayer.mjs +0 -29
  679. package/lib/components/table/YDataTableLayer.mjs.map +0 -1
  680. package/lib/components/table/YDataTableRow.mjs +0 -150
  681. package/lib/components/table/YDataTableRow.mjs.map +0 -1
  682. package/lib/components/table/YDataTableServer.mjs +0 -173
  683. package/lib/components/table/YDataTableServer.mjs.map +0 -1
  684. package/lib/components/table/YTable.mjs +0 -77
  685. package/lib/components/table/YTable.mjs.map +0 -1
  686. package/lib/components/table/composibles/header.mjs +0 -127
  687. package/lib/components/table/composibles/header.mjs.map +0 -1
  688. package/lib/components/table/composibles/items.mjs +0 -52
  689. package/lib/components/table/composibles/items.mjs.map +0 -1
  690. package/lib/components/table/composibles/measure.mjs +0 -39
  691. package/lib/components/table/composibles/measure.mjs.map +0 -1
  692. package/lib/components/table/composibles/options.mjs +0 -33
  693. package/lib/components/table/composibles/options.mjs.map +0 -1
  694. package/lib/components/table/composibles/pagination.mjs +0 -99
  695. package/lib/components/table/composibles/pagination.mjs.map +0 -1
  696. package/lib/components/table/composibles/selection.mjs +0 -196
  697. package/lib/components/table/composibles/selection.mjs.map +0 -1
  698. package/lib/components/table/composibles/sorted-items.mjs +0 -50
  699. package/lib/components/table/composibles/sorted-items.mjs.map +0 -1
  700. package/lib/components/table/composibles/sorting.mjs +0 -73
  701. package/lib/components/table/composibles/sorting.mjs.map +0 -1
  702. package/lib/components/table/index.mjs +0 -9
  703. package/lib/components/table/index.mjs.map +0 -1
  704. package/lib/components/table/types/common.mjs +0 -2
  705. package/lib/components/table/types/common.mjs.map +0 -1
  706. package/lib/components/table/types/header.mjs +0 -2
  707. package/lib/components/table/types/header.mjs.map +0 -1
  708. package/lib/components/table/types/index.mjs +0 -2
  709. package/lib/components/table/types/index.mjs.map +0 -1
  710. package/lib/components/table/types/item.mjs +0 -2
  711. package/lib/components/table/types/item.mjs.map +0 -1
  712. package/lib/components/table/types/row.mjs +0 -2
  713. package/lib/components/table/types/row.mjs.map +0 -1
  714. package/lib/components/text-ellipsis/YTextEllipsis.mjs +0 -66
  715. package/lib/components/text-ellipsis/YTextEllipsis.mjs.map +0 -1
  716. package/lib/components/text-ellipsis/index.mjs +0 -2
  717. package/lib/components/text-ellipsis/index.mjs.map +0 -1
  718. package/lib/components/text-highlighter/YTextHighlighter.mjs +0 -95
  719. package/lib/components/text-highlighter/YTextHighlighter.mjs.map +0 -1
  720. package/lib/components/text-highlighter/index.mjs +0 -2
  721. package/lib/components/text-highlighter/index.mjs.map +0 -1
  722. package/lib/components/text-interpolation/YTi.mjs +0 -47
  723. package/lib/components/text-interpolation/YTi.mjs.map +0 -1
  724. package/lib/components/text-interpolation/index.mjs +0 -2
  725. package/lib/components/text-interpolation/index.mjs.map +0 -1
  726. package/lib/components/textarea/YTextarea.mjs +0 -157
  727. package/lib/components/textarea/YTextarea.mjs.map +0 -1
  728. package/lib/components/textarea/index.mjs +0 -2
  729. package/lib/components/textarea/index.mjs.map +0 -1
  730. package/lib/components/toggle-button/YToggleButton.mjs +0 -2
  731. package/lib/components/toggle-button/YToggleButton.mjs.map +0 -1
  732. package/lib/components/toggle-button/index.mjs +0 -2
  733. package/lib/components/toggle-button/index.mjs.map +0 -1
  734. package/lib/components/tooltip/YTooltip.mjs +0 -157
  735. package/lib/components/tooltip/YTooltip.mjs.map +0 -1
  736. package/lib/components/tooltip/index.mjs +0 -2
  737. package/lib/components/tooltip/index.mjs.map +0 -1
  738. package/lib/components/transitions/expand-transition.mjs +0 -109
  739. package/lib/components/transitions/expand-transition.mjs.map +0 -1
  740. package/lib/components/transitions/index.mjs +0 -4
  741. package/lib/components/transitions/index.mjs.map +0 -1
  742. package/lib/components/tree-view/YTreeView.mjs +0 -289
  743. package/lib/components/tree-view/YTreeView.mjs.map +0 -1
  744. package/lib/components/tree-view/YTreeViewNode.mjs +0 -250
  745. package/lib/components/tree-view/YTreeViewNode.mjs.map +0 -1
  746. package/lib/components/tree-view/index.mjs +0 -3
  747. package/lib/components/tree-view/index.mjs.map +0 -1
  748. package/lib/components/tree-view/tree-view.mjs +0 -179
  749. package/lib/components/tree-view/tree-view.mjs.map +0 -1
  750. package/lib/components/tree-view/types.mjs +0 -2
  751. package/lib/components/tree-view/types.mjs.map +0 -1
  752. package/lib/components/tree-view/util.mjs +0 -40
  753. package/lib/components/tree-view/util.mjs.map +0 -1
  754. package/lib/composables/choice-link.mjs +0 -13
  755. package/lib/composables/choice-link.mjs.map +0 -1
  756. package/lib/composables/choice.mjs +0 -187
  757. package/lib/composables/choice.mjs.map +0 -1
  758. package/lib/composables/communication.mjs +0 -55
  759. package/lib/composables/communication.mjs.map +0 -1
  760. package/lib/composables/component.mjs +0 -8
  761. package/lib/composables/component.mjs.map +0 -1
  762. package/lib/composables/coordinate/arrangement.mjs +0 -14
  763. package/lib/composables/coordinate/arrangement.mjs.map +0 -1
  764. package/lib/composables/coordinate/index.mjs +0 -67
  765. package/lib/composables/coordinate/index.mjs.map +0 -1
  766. package/lib/composables/coordinate/levitation.mjs +0 -315
  767. package/lib/composables/coordinate/levitation.mjs.map +0 -1
  768. package/lib/composables/coordinate/types.mjs +0 -2
  769. package/lib/composables/coordinate/types.mjs.map +0 -1
  770. package/lib/composables/coordinate/utils/point.mjs +0 -55
  771. package/lib/composables/coordinate/utils/point.mjs.map +0 -1
  772. package/lib/composables/date/factory.mjs +0 -12
  773. package/lib/composables/date/factory.mjs.map +0 -1
  774. package/lib/composables/date/index.mjs +0 -20
  775. package/lib/composables/date/index.mjs.map +0 -1
  776. package/lib/composables/date/setting.mjs +0 -11
  777. package/lib/composables/date/setting.mjs.map +0 -1
  778. package/lib/composables/date/types.mjs +0 -2
  779. package/lib/composables/date/types.mjs.map +0 -1
  780. package/lib/composables/defaults/index.mjs +0 -99
  781. package/lib/composables/defaults/index.mjs.map +0 -1
  782. package/lib/composables/defaults/share.mjs +0 -2
  783. package/lib/composables/defaults/share.mjs.map +0 -1
  784. package/lib/composables/defaults/types.mjs +0 -2
  785. package/lib/composables/defaults/types.mjs.map +0 -1
  786. package/lib/composables/dimension.mjs +0 -26
  787. package/lib/composables/dimension.mjs.map +0 -1
  788. package/lib/composables/focus.mjs +0 -29
  789. package/lib/composables/focus.mjs.map +0 -1
  790. package/lib/composables/form.mjs +0 -100
  791. package/lib/composables/form.mjs.map +0 -1
  792. package/lib/composables/group.mjs +0 -194
  793. package/lib/composables/group.mjs.map +0 -1
  794. package/lib/composables/i18n/index.mjs +0 -30
  795. package/lib/composables/i18n/index.mjs.map +0 -1
  796. package/lib/composables/i18n/locale.mjs +0 -5
  797. package/lib/composables/i18n/locale.mjs.map +0 -1
  798. package/lib/composables/i18n/rtl.mjs +0 -34
  799. package/lib/composables/i18n/rtl.mjs.map +0 -1
  800. package/lib/composables/i18n/share.mjs +0 -2
  801. package/lib/composables/i18n/share.mjs.map +0 -1
  802. package/lib/composables/icon.mjs +0 -164
  803. package/lib/composables/icon.mjs.map +0 -1
  804. package/lib/composables/index.mjs +0 -11
  805. package/lib/composables/index.mjs.map +0 -1
  806. package/lib/composables/layer-group.mjs +0 -66
  807. package/lib/composables/layer-group.mjs.map +0 -1
  808. package/lib/composables/layout.mjs +0 -13
  809. package/lib/composables/layout.mjs.map +0 -1
  810. package/lib/composables/list-items.mjs +0 -66
  811. package/lib/composables/list-items.mjs.map +0 -1
  812. package/lib/composables/progress.mjs +0 -26
  813. package/lib/composables/progress.mjs.map +0 -1
  814. package/lib/composables/ref.mjs +0 -13
  815. package/lib/composables/ref.mjs.map +0 -1
  816. package/lib/composables/resize-observer.mjs +0 -33
  817. package/lib/composables/resize-observer.mjs.map +0 -1
  818. package/lib/composables/scope.mjs +0 -26
  819. package/lib/composables/scope.mjs.map +0 -1
  820. package/lib/composables/style-color.mjs +0 -37
  821. package/lib/composables/style-color.mjs.map +0 -1
  822. package/lib/composables/theme/factory.mjs +0 -47
  823. package/lib/composables/theme/factory.mjs.map +0 -1
  824. package/lib/composables/theme/helper.mjs +0 -14
  825. package/lib/composables/theme/helper.mjs.map +0 -1
  826. package/lib/composables/theme/index.mjs +0 -187
  827. package/lib/composables/theme/index.mjs.map +0 -1
  828. package/lib/composables/theme/setting.mjs +0 -112
  829. package/lib/composables/theme/setting.mjs.map +0 -1
  830. package/lib/composables/theme/types.mjs +0 -2
  831. package/lib/composables/theme/types.mjs.map +0 -1
  832. package/lib/composables/timing.mjs +0 -102
  833. package/lib/composables/timing.mjs.map +0 -1
  834. package/lib/composables/transition.mjs +0 -51
  835. package/lib/composables/transition.mjs.map +0 -1
  836. package/lib/composables/validation.mjs +0 -126
  837. package/lib/composables/validation.mjs.map +0 -1
  838. package/lib/composables/vue-router.mjs +0 -32
  839. package/lib/composables/vue-router.mjs.map +0 -1
  840. package/lib/directives/complement-click/index.mjs +0 -78
  841. package/lib/directives/complement-click/index.mjs.map +0 -1
  842. package/lib/directives/plate-wave/index.mjs +0 -100
  843. package/lib/directives/plate-wave/index.mjs.map +0 -1
  844. package/lib/directives/theme-class.mjs +0 -24
  845. package/lib/directives/theme-class.mjs.map +0 -1
  846. package/lib/etc/index.mjs +0 -6
  847. package/lib/etc/index.mjs.map +0 -1
  848. package/lib/i18n/built-in.mjs +0 -77
  849. package/lib/i18n/built-in.mjs.map +0 -1
  850. package/lib/i18n/config.mjs +0 -82
  851. package/lib/i18n/config.mjs.map +0 -1
  852. package/lib/i18n/types.mjs +0 -2
  853. package/lib/i18n/types.mjs.map +0 -1
  854. package/lib/index.mjs +0 -103
  855. package/lib/index.mjs.map +0 -1
  856. package/lib/locales/en.mjs +0 -6
  857. package/lib/locales/en.mjs.map +0 -1
  858. package/lib/locales/index.mjs +0 -3
  859. package/lib/locales/index.mjs.map +0 -1
  860. package/lib/locales/ko.mjs +0 -6
  861. package/lib/locales/ko.mjs.map +0 -1
  862. package/lib/mixins/di.mjs +0 -19
  863. package/lib/mixins/di.mjs.map +0 -1
  864. package/lib/mixins/rebind-attrs.mjs +0 -37
  865. package/lib/mixins/rebind-attrs.mjs.map +0 -1
  866. package/lib/types/index.mjs +0 -2
  867. package/lib/types/index.mjs.map +0 -1
  868. package/lib/util/anchor.mjs +0 -53
  869. package/lib/util/anchor.mjs.map +0 -1
  870. package/lib/util/array.mjs +0 -13
  871. package/lib/util/array.mjs.map +0 -1
  872. package/lib/util/collection.mjs +0 -10
  873. package/lib/util/collection.mjs.map +0 -1
  874. package/lib/util/color/apca.mjs +0 -201
  875. package/lib/util/color/apca.mjs.map +0 -1
  876. package/lib/util/color/const.mjs +0 -6
  877. package/lib/util/color/const.mjs.map +0 -1
  878. package/lib/util/color/contrast/contrast.mjs +0 -149
  879. package/lib/util/color/contrast/contrast.mjs.map +0 -1
  880. package/lib/util/color/conversion.mjs +0 -310
  881. package/lib/util/color/conversion.mjs.map +0 -1
  882. package/lib/util/color/hct/cam16.mjs +0 -349
  883. package/lib/util/color/hct/cam16.mjs.map +0 -1
  884. package/lib/util/color/hct/hct-solver.mjs +0 -389
  885. package/lib/util/color/hct/hct-solver.mjs.map +0 -1
  886. package/lib/util/color/hct/hct.mjs +0 -153
  887. package/lib/util/color/hct/hct.mjs.map +0 -1
  888. package/lib/util/color/hct/viewing-conditions.mjs +0 -110
  889. package/lib/util/color/hct/viewing-conditions.mjs.map +0 -1
  890. package/lib/util/color/index.mjs +0 -40
  891. package/lib/util/color/index.mjs.map +0 -1
  892. package/lib/util/color/palettes/core-palette.mjs +0 -99
  893. package/lib/util/color/palettes/core-palette.mjs.map +0 -1
  894. package/lib/util/color/palettes/tonal-palette.mjs +0 -112
  895. package/lib/util/color/palettes/tonal-palette.mjs.map +0 -1
  896. package/lib/util/color/types.mjs +0 -2
  897. package/lib/util/color/types.mjs.map +0 -1
  898. package/lib/util/color/utils/math-utils.mjs +0 -139
  899. package/lib/util/color/utils/math-utils.mjs.map +0 -1
  900. package/lib/util/common.mjs +0 -107
  901. package/lib/util/common.mjs.map +0 -1
  902. package/lib/util/component/component.mjs +0 -26
  903. package/lib/util/component/component.mjs.map +0 -1
  904. package/lib/util/component/index.mjs +0 -65
  905. package/lib/util/component/index.mjs.map +0 -1
  906. package/lib/util/component/inject-self.mjs +0 -10
  907. package/lib/util/component/inject-self.mjs.map +0 -1
  908. package/lib/util/component/props.mjs +0 -41
  909. package/lib/util/component/props.mjs.map +0 -1
  910. package/lib/util/component/types.mjs +0 -2
  911. package/lib/util/component/types.mjs.map +0 -1
  912. package/lib/util/date/adapters/yuyeon-date-adapter.mjs +0 -111
  913. package/lib/util/date/adapters/yuyeon-date-adapter.mjs.map +0 -1
  914. package/lib/util/date/built-in.mjs +0 -416
  915. package/lib/util/date/built-in.mjs.map +0 -1
  916. package/lib/util/date/index.mjs +0 -4
  917. package/lib/util/date/index.mjs.map +0 -1
  918. package/lib/util/date/types.mjs +0 -2
  919. package/lib/util/date/types.mjs.map +0 -1
  920. package/lib/util/debounce.mjs +0 -114
  921. package/lib/util/debounce.mjs.map +0 -1
  922. package/lib/util/dom.mjs +0 -23
  923. package/lib/util/dom.mjs.map +0 -1
  924. package/lib/util/environments.mjs +0 -8
  925. package/lib/util/environments.mjs.map +0 -1
  926. package/lib/util/frame-scheduler.mjs +0 -29
  927. package/lib/util/frame-scheduler.mjs.map +0 -1
  928. package/lib/util/index.mjs +0 -17
  929. package/lib/util/index.mjs.map +0 -1
  930. package/lib/util/parser.mjs +0 -31
  931. package/lib/util/parser.mjs.map +0 -1
  932. package/lib/util/reactivity.mjs +0 -19
  933. package/lib/util/reactivity.mjs.map +0 -1
  934. package/lib/util/rect.mjs +0 -39
  935. package/lib/util/rect.mjs.map +0 -1
  936. package/lib/util/scroll.mjs +0 -28
  937. package/lib/util/scroll.mjs.map +0 -1
  938. package/lib/util/string.mjs +0 -69
  939. package/lib/util/string.mjs.map +0 -1
  940. package/lib/util/ui.mjs +0 -60
  941. package/lib/util/ui.mjs.map +0 -1
  942. package/lib/util/validation.mjs +0 -5
  943. package/lib/util/validation.mjs.map +0 -1
  944. package/lib/util/vue-component/index.mjs +0 -63
  945. package/lib/util/vue-component/index.mjs.map +0 -1
  946. package/lib/util/vue-component/props.mjs +0 -37
  947. package/lib/util/vue-component/props.mjs.map +0 -1
  948. package/lib/util/vue-component/types.mjs +0 -2
  949. package/lib/util/vue-component/types.mjs.map +0 -1
  950. package/lib/util/vue-component.mjs +0 -102
  951. package/lib/util/vue-component.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"validation.mjs","names":["computed","getCurrentInstance","onBeforeMount","ref","watch","getUid","propsFactory","useModelDuplex","useForm","useToggleScope","pressValidationPropsOptions","readonly","Boolean","disabled","status","type","String","validator","value","includes","helperText","validators","Array","validateOn","validationValue","maxErrors","Number","default","useValidation","props","name","uid","arguments","length","undefined","cid","model","validationModel","vm","form","validating","onSet","Set","split","blur","has","input","lazy","submit","errorResult","errors","isReadonly","isDisabled","isLoading","loading","isError","isSuccess","invokeValidators","focused","unwatch","val","results","isArray","handler","result","console","warn","push","resetError","resetValidation","register","id","vnode","validate"],"sources":["../../src/composables/validation.ts"],"sourcesContent":["import {\r\n type PropType,\r\n computed,\r\n getCurrentInstance,\r\n onBeforeMount,\r\n ref,\r\n watch,\r\n} from 'vue';\r\n\r\nimport { getUid, propsFactory } from '@/util/component';\r\n\r\nimport { useModelDuplex } from './communication';\r\nimport { useForm } from './form';\r\nimport { useToggleScope } from './scope';\r\n\r\nexport interface ValidationProps {\r\n validateOn: 'input' | 'blur' | 'lazy' | 'submit' | string;\r\n}\r\n\r\nexport const pressValidationPropsOptions = propsFactory(\r\n {\r\n readonly: Boolean as PropType<boolean>,\r\n disabled: Boolean as PropType<boolean>,\r\n status: {\r\n type: String as PropType<'success' | 'warning' | 'error' | undefined>,\r\n validator(value: string) {\r\n return ['success', 'warning', 'error'].includes(value);\r\n },\r\n },\r\n helperText: String,\r\n validators: Array as PropType<((v: any) => boolean | string)[] | string[]>,\r\n validateOn: {\r\n type: String as PropType<ValidationProps['validateOn']>,\r\n },\r\n validationValue: null,\r\n maxErrors: {\r\n type: [Number, String] as PropType<number | string>,\r\n default: 1,\r\n },\r\n },\r\n 'validation',\r\n);\r\n\r\nexport function useValidation(props: any, name: string, uid = getUid()) {\r\n const cid = computed(() => props.name ?? uid);\r\n const model = useModelDuplex(props, 'modelValue');\r\n const validationModel = computed(() =>\r\n props.validationValue === undefined ? model.value : props.validationValue,\r\n );\r\n const vm = getCurrentInstance()!;\r\n const form = useForm();\r\n const validating = ref(false);\r\n const validateOn = computed(() => {\r\n let value = props.validateOn || 'input';\r\n if (value === 'lazy') value = 'input,lazy';\r\n const onSet = new Set(value?.split(',') ?? []);\r\n\r\n return {\r\n blur: onSet.has('blur') || onSet.has('input'),\r\n input: onSet.has('input'),\r\n lazy: onSet.has('lazy'),\r\n submit: onSet.has('submit'),\r\n };\r\n });\r\n\r\n const errorResult = ref();\r\n const errors = ref<any[]>([]);\r\n\r\n const isReadonly = computed(() => props.readonly ?? form?.isReadonly.value);\r\n\r\n const isDisabled = computed(() => props.disabled ?? form?.isDisabled.value);\r\n\r\n const isLoading = computed(() => props.loading ?? form?.isLoading.value);\r\n\r\n const isError = computed(() => {\r\n return props.status === 'error' || errors.value.length > 0;\r\n });\r\n\r\n const isSuccess = computed(() => {\r\n return !isError.value && props.status === 'success';\r\n });\r\n\r\n useToggleScope(\r\n () => validateOn.value.input,\r\n () => {\r\n watch(validationModel, () => {\r\n if (validationModel.value != null) {\r\n invokeValidators();\r\n } else if (props.focused) {\r\n const unwatch = watch(\r\n () => props.focused,\r\n (val) => {\r\n if (!val) invokeValidators();\r\n\r\n unwatch();\r\n },\r\n );\r\n }\r\n });\r\n },\r\n );\r\n\r\n async function invokeValidators() {\r\n const results: any[] = [];\r\n validating.value = true;\r\n\r\n if (Array.isArray(props.validators)) {\r\n for (const validator of props.validators) {\r\n if (results.length >= +(props.maxErrors ?? 1)) {\r\n break;\r\n }\r\n\r\n const handler =\r\n typeof validator === 'function' ? validator : () => validator;\r\n const result = await handler(validationModel.value);\r\n\r\n if (result === true) {\r\n continue;\r\n }\r\n\r\n if (result !== false && typeof result !== 'string') {\r\n console.warn('Wrong validator return type');\r\n continue;\r\n }\r\n results.push(result || '');\r\n }\r\n }\r\n validating.value = false;\r\n errors.value = results;\r\n errorResult.value = results?.[0];\r\n\r\n return results;\r\n }\r\n\r\n function resetError() {\r\n errors.value = [];\r\n errorResult.value = undefined;\r\n }\r\n\r\n async function resetValidation() {\r\n if (!validateOn.value.lazy) {\r\n await invokeValidators();\r\n } else {\r\n resetError();\r\n }\r\n }\r\n\r\n onBeforeMount(() => {\r\n form?.register({\r\n id: cid.value,\r\n vnode: vm.vnode,\r\n resetValidation,\r\n validate: invokeValidators,\r\n });\r\n });\r\n\r\n return {\r\n invokeValidators,\r\n resetError,\r\n validating,\r\n validateOn,\r\n errorResult,\r\n errors,\r\n isReadonly,\r\n isDisabled,\r\n isLoading,\r\n isError,\r\n isSuccess,\r\n };\r\n}\r\n"],"mappings":"AAAA,SAEEA,QAAQ,EACRC,kBAAkB,EAClBC,aAAa,EACbC,GAAG,EACHC,KAAK,QACA,KAAK;AAAC,SAEJC,MAAM,EAAEC,YAAY;AAAA,SAEpBC,cAAc;AAAA,SACdC,OAAO;AAAA,SACPC,cAAc;AAMvB,OAAO,MAAMC,2BAA2B,GAAGJ,YAAY,CACrD;EACEK,QAAQ,EAAEC,OAA4B;EACtCC,QAAQ,EAAED,OAA4B;EACtCE,MAAM,EAAE;IACNC,IAAI,EAAEC,MAA+D;IACrEC,SAASA,CAACC,KAAa,EAAE;MACvB,OAAO,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAACC,QAAQ,CAACD,KAAK,CAAC;IACxD;EACF,CAAC;EACDE,UAAU,EAAEJ,M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CAAA,EAAG;IAC/B,IAAI,CAAC9C,UAAU,CAACL,KAAK,CAAC6B,IAAI,EAAE;MAC1B,MAAMU,gBAAgB,CAAC,CAAC;IAC1B,CAAC,MAAM;MACLW,UAAU,CAAC,CAAC;IACd;EACF;EAEAlE,aAAa,CAAC,MAAM;IAClBqC,IAAI,EAAE+B,QAAQ,CAAC;MACbC,EAAE,EAAEpC,GAAG,CAACjB,KAAK;MACbsD,KAAK,EAAElC,EAAE,CAACkC,KAAK;MACfH,eAAe;MACfI,QAAQ,EAAEhB;IACZ,CAAC,CAAC;EACJ,CAAC,CAAC;EAEF,OAAO;IACLA,gBAAgB;IAChBW,UAAU;IACV5B,UAAU;IACVjB,UAAU;IACV0B,WAAW;IACXC,MAAM;IACNC,UAAU;IACVC,UAAU;IACVC,SAAS;IACTE,OAAO;IACPC;EACF,CAAC;AACH"}
@@ -1,32 +0,0 @@
1
- import { computed, resolveDynamicComponent, toRef } from 'vue';
2
- import { hasEventProp, propsFactory } from "../util/component/index.mjs";
3
- export const pressVueRouterPropsOptions = propsFactory({
4
- href: String,
5
- replace: Boolean,
6
- to: [String, Object],
7
- exact: Boolean
8
- }, 'VueRouter');
9
- export function useLink(props, attrs) {
10
- const RouterLink = resolveDynamicComponent('RouterLink');
11
- const isLink = computed(() => !!(props.href || props.to));
12
- const isClickable = computed(() => {
13
- return isLink?.value || hasEventProp(attrs, 'click') || hasEventProp(props, 'click');
14
- });
15
- if (typeof RouterLink === 'string') {
16
- return {
17
- isLink,
18
- isClickable,
19
- href: toRef(props, 'href')
20
- };
21
- }
22
- const link = props.to ? RouterLink.useLink(props) : undefined;
23
- return {
24
- isLink,
25
- isClickable,
26
- route: link?.route,
27
- navigate: link?.navigate,
28
- isActive: link && computed(() => props.exact ? link.isExactActive?.value : link.isActive?.value),
29
- href: computed(() => props.to ? link?.route.value.href : props.href)
30
- };
31
- }
32
- //# sourceMappingURL=vue-router.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vue-router.mjs","names":["computed","resolveDynamicComponent","toRef","hasEventProp","propsFactory","pressVueRouterPropsOptions","href","String","replace","Boolean","to","Object","exact","useLink","props","attrs","RouterLink","isLink","isClickable","value","link","undefined","route","navigate","isActive","isExactActive"],"sources":["../../src/composables/vue-router.ts"],"sourcesContent":["import type { ComputedRef, PropType, Ref, SetupContext } from 'vue';\r\nimport { computed, resolveDynamicComponent, toRef } from 'vue';\r\nimport type {\r\n RouteLocationRaw,\r\n UseLinkOptions,\r\n RouterLink as VueRouterLink,\r\n} from 'vue-router';\r\nimport { useLink as _useLink } from 'vue-router';\r\n\r\nimport { type EventProp, hasEventProp, propsFactory } from '@/util/component';\r\n\r\nexport interface LinkProps {\r\n href: string | undefined;\r\n replace: boolean | undefined;\r\n to: RouteLocationRaw | undefined;\r\n exact: boolean | undefined;\r\n}\r\n\r\nexport interface LinkListeners {\r\n onClick?: EventProp | undefined;\r\n onClickOnce?: EventProp | undefined;\r\n}\r\n\r\nexport const pressVueRouterPropsOptions = propsFactory(\r\n {\r\n href: String,\r\n replace: Boolean,\r\n to: [String, Object] as PropType<RouteLocationRaw>,\r\n exact: Boolean,\r\n },\r\n 'VueRouter',\r\n);\r\n\r\nexport interface UseLink\r\n extends Omit<Partial<ReturnType<typeof _useLink>>, 'href'> {\r\n isLink: ComputedRef<boolean>;\r\n isClickable: ComputedRef<boolean>;\r\n href: Ref<string | undefined>;\r\n}\r\n\r\nexport function useLink(\r\n props: LinkProps & LinkListeners,\r\n attrs: SetupContext['attrs'],\r\n): UseLink {\r\n const RouterLink = resolveDynamicComponent('RouterLink') as\r\n | typeof VueRouterLink\r\n | string;\r\n\r\n const isLink = computed(() => !!(props.href || props.to));\r\n const isClickable = computed(() => {\r\n return (\r\n isLink?.value ||\r\n hasEventProp(attrs, 'click') ||\r\n hasEventProp(props, 'click')\r\n );\r\n });\r\n if (typeof RouterLink === 'string') {\r\n return {\r\n isLink,\r\n isClickable,\r\n href: toRef(props, 'href'),\r\n };\r\n }\r\n const link = props.to\r\n ? RouterLink.useLink(props as UseLinkOptions)\r\n : undefined;\r\n return {\r\n isLink,\r\n isClickable,\r\n route: link?.route,\r\n navigate: link?.navigate,\r\n isActive:\r\n link &&\r\n computed(() =>\r\n props.exact ? link.isExactActive?.value : link.isActive?.value,\r\n ),\r\n href: computed(() => (props.to ? link?.route.value.href : props.href)),\r\n };\r\n}\r\n"],"mappings":"AACA,SAASA,QAAQ,EAAEC,uBAAuB,EAAEC,KAAK,QAAQ,KAAK;AAAC,SAQtCC,YAAY,EAAEC,YAAY;AAcnD,OAAO,MAAMC,0BAA0B,GAAGD,YAAY,CACpD;EACEE,IAAI,EAAEC,MAAM;EACZC,OAAO,EAAEC,OAAO;EAChBC,EAAE,EAAE,CAACH,MAAM,EAAEI,MAAM,CAA+B;EAClDC,KAAK,EAAEH;AACT,CAAC,EACD,WACF,CAAC;AASD,OAAO,SAASI,OAAOA,CACrBC,KAAgC,EAChCC,KAA4B,EACnB;EACT,MAAMC,UAAU,GAAGf,uBAAuB,CAAC,YAAY,CAE7C;EAEV,MAAMgB,MAAM,GAAGjB,QAAQ,CAAC,MAAM,CAAC,EAAEc,KAAK,CAACR,IAAI,IAAIQ,KAAK,CAACJ,EAAE,CAAC,CAAC;EACzD,MAAMQ,WAAW,GAAGlB,QAAQ,CAAC,MAAM;IACjC,OACEiB,MAAM,EAAEE,KAAK,IACbhB,YAAY,CAACY,KAAK,EAAE,OAAO,CAAC,IAC5BZ,YAAY,CAACW,KAAK,EAAE,OAAO,CAAC;EAEhC,CAAC,CAAC;EACF,IAAI,OAAOE,UAAU,KAAK,QAAQ,EAAE;IAClC,OAAO;MACLC,MAAM;MACNC,WAAW;MACXZ,IAAI,EAAEJ,KAAK,CAACY,KAAK,EAAE,MAAM;IAC3B,CAAC;EACH;EACA,MAAMM,IAAI,GAAGN,KAAK,CAACJ,EAAE,GACjBM,UAAU,CAACH,OAAO,CAACC,KAAuB,CAAC,GAC3CO,SAAS;EACb,OAAO;IACLJ,MAAM;IACNC,WAAW;IACXI,KAAK,EAAEF,IAAI,EAAEE,KAAK;IAClBC,QAAQ,EAAEH,IAAI,EAAEG,QAAQ;IACxBC,QAAQ,EACNJ,IAAI,IACJpB,QAAQ,CAAC,MACPc,KAAK,CAACF,KAAK,GAAGQ,IAAI,CAACK,aAAa,EAAEN,KAAK,GAAGC,IAAI,CAACI,QAAQ,EAAEL,KAC3D,CAAC;IACHb,IAAI,EAAEN,QAAQ,CAAC,MAAOc,KAAK,CAACJ,EAAE,GAAGU,IAAI,EAAEE,KAAK,CAACH,KAAK,CAACb,IAAI,GAAGQ,KAAK,CAACR,IAAK;EACvE,CAAC;AACH"}
@@ -1,78 +0,0 @@
1
- import { documentRoot } from "../../util/dom.mjs";
2
- function defaultDetermine() {
3
- return true;
4
- }
5
- function directive(mouseEvent, element, binding) {
6
- const {
7
- value
8
- } = binding;
9
- const handler = typeof value === 'function' ? value : value.handler;
10
- element._complementClick.lastMousedownWasOutside && checkEvent(mouseEvent, element, binding) && setTimeout(() => {
11
- determine(mouseEvent, binding) && handler && handler(mouseEvent);
12
- }, 0);
13
- }
14
- function checkEvent(mouseEvent, element, binding) {
15
- if (!mouseEvent || determine(mouseEvent, binding) === false) {
16
- return false;
17
- }
18
- const root = documentRoot(element);
19
- if (typeof ShadowRoot !== 'undefined' && root instanceof ShadowRoot && root.host === mouseEvent.target) {
20
- return false;
21
- }
22
- const elements = (typeof binding.value === 'object' && binding.value.include || (() => []))();
23
- elements.push(element);
24
- return !elements.some(el => el?.contains(mouseEvent.target));
25
- }
26
- function determine(event, binding) {
27
- const {
28
- value
29
- } = binding;
30
- const determineFn = typeof value === 'object' && value.determine || defaultDetermine;
31
- return determineFn && determineFn?.(event);
32
- }
33
- function implant(element, callback) {
34
- const root = documentRoot(element);
35
- callback(document);
36
- if (typeof ShadowRoot !== 'undefined' && root instanceof ShadowRoot) {
37
- callback(root);
38
- }
39
- }
40
- export const ComplementClick = {
41
- mounted(element, binding) {
42
- const onClick = event => directive(event, element, binding);
43
- const onMousedown = event => {
44
- element._complementClick.lastMousedownWasOutside = checkEvent(event, element, binding);
45
- };
46
- implant(element, app => {
47
- app?.addEventListener('click', onClick, true);
48
- app?.addEventListener('mousedown', onMousedown, true);
49
- });
50
- if (!element._complementClick) {
51
- element._complementClick = {
52
- lastMousedownWasOutside: true
53
- };
54
- }
55
- const _uid = binding.instance.$.uid;
56
- element._complementClick[_uid] = {
57
- onClick,
58
- onMousedown
59
- };
60
- },
61
- unmounted(element, binding) {
62
- if (!element._complementClick) return;
63
- const _uid = binding.instance.$.uid;
64
- implant(element, app => {
65
- const old = element._complementClick?.[_uid];
66
- if (old) {
67
- const {
68
- onClick,
69
- onMousedown
70
- } = old;
71
- app?.removeEventListener('click', onClick, true);
72
- app?.removeEventListener('mousedown', onMousedown, true);
73
- }
74
- });
75
- delete element._complementClick[_uid];
76
- }
77
- };
78
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":["documentRoot","defaultDetermine","directive","mouseEvent","element","binding","value","handler","_complementClick","lastMousedownWasOutside","checkEvent","setTimeout","determine","root","ShadowRoot","host","target","elements","include","push","some","el","contains","event","determineFn","implant","callback","document","ComplementClick","mounted","onClick","onMousedown","app","addEventListener","_uid","instance","$","uid","unmounted","old","removeEventListener"],"sources":["../../../src/directives/complement-click/index.ts"],"sourcesContent":["import { DirectiveBinding } from 'vue';\n\nimport { documentRoot } from '../../util/dom';\n\ninterface ComplementClickDirectiveElementImplanted {\n onClick: EventListener;\n onMousedown: EventListener;\n}\n\ndeclare global {\n interface Element {\n _complementClick?: Record<\n number,\n ComplementClickDirectiveElementImplanted | undefined\n > & { lastMousedownWasOutside: boolean };\n }\n}\n\nexport interface ComplementClickBindingOptions {\n handler: (mouseEvent: MouseEvent) => void;\n determine?: (event: Event) => boolean;\n include?: () => (HTMLElement | undefined)[];\n}\n\nexport interface ComplementClickBinding extends DirectiveBinding {\n value: ((mouseEvent: MouseEvent) => void) | ComplementClickBindingOptions;\n}\n\nfunction defaultDetermine() {\n return true;\n}\n\nfunction directive(\n mouseEvent: MouseEvent,\n element: HTMLElement,\n binding: ComplementClickBinding,\n) {\n const { value } = binding;\n const handler = typeof value === 'function' ? value : value.handler;\n element._complementClick!.lastMousedownWasOutside &&\n checkEvent(mouseEvent, element, binding) &&\n setTimeout(() => {\n determine(mouseEvent, binding) && handler && handler(mouseEvent);\n }, 0);\n}\n\nfunction checkEvent(\n mouseEvent: MouseEvent,\n element: HTMLElement,\n binding: ComplementClickBinding,\n): boolean {\n if (!mouseEvent || determine(mouseEvent, binding) === false) {\n return false;\n }\n const root = documentRoot(element);\n if (\n typeof ShadowRoot !== 'undefined' &&\n root instanceof ShadowRoot &&\n root.host === mouseEvent.target\n ) {\n return false;\n }\n const elements = (\n (typeof binding.value === 'object' && binding.value.include) ||\n (() => [])\n )();\n elements.push(element);\n return !elements.some((el) => el?.contains(mouseEvent.target as Node));\n}\n\nfunction determine(\n event: MouseEvent,\n binding: ComplementClickBinding,\n): boolean {\n const { value } = binding;\n const determineFn =\n (typeof value === 'object' && value.determine) || defaultDetermine;\n return determineFn && determineFn?.(event);\n}\n\nfunction implant(\n element: HTMLElement,\n callback: (app: HTMLDocument | ShadowRoot | null) => void,\n) {\n const root = documentRoot(element);\n callback(document);\n if (typeof ShadowRoot !== 'undefined' && root instanceof ShadowRoot) {\n callback(root);\n }\n}\n\nexport const ComplementClick = {\n mounted(element: HTMLElement, binding: ComplementClickBinding) {\n const onClick = (event: Event) =>\n directive(event as MouseEvent, element, binding);\n const onMousedown = (event: Event) => {\n element._complementClick!.lastMousedownWasOutside = checkEvent(\n event as MouseEvent,\n element,\n binding,\n );\n };\n implant(element, (app) => {\n app?.addEventListener('click', onClick, true);\n app?.addEventListener('mousedown', onMousedown, true);\n });\n if (!element._complementClick) {\n element._complementClick = {\n lastMousedownWasOutside: true,\n };\n }\n const _uid = binding.instance!.$.uid;\n element._complementClick[_uid] = {\n onClick,\n onMousedown,\n };\n },\n unmounted(element: HTMLElement, binding: ComplementClickBinding) {\n if (!element._complementClick) return;\n const _uid = binding.instance!.$.uid;\n implant(element, (app) => {\n const old = element._complementClick?.[_uid];\n if (old) {\n const { onClick, onMousedown } = old;\n app?.removeEventListener('click', onClick, true);\n app?.removeEventListener('mousedown', onMousedown, true);\n }\n });\n delete element._complementClick[_uid];\n },\n};\n"],"mappings":"SAESA,YAAY;AA0BrB,SAASC,gBAAgBA,CAAA,EAAG;EAC1B,OAAO,IAAI;AACb;AAEA,SAASC,SAASA,CAChBC,UAAsB,EACtBC,OAAoB,EACpBC,OAA+B,EAC/B;EACA,MAAM;IAAEC;EAAM,CAAC,GAAGD,OAAO;EACzB,MAAME,OAAO,GAAG,OAAOD,KAAK,KAAK,UAAU,GAAGA,KAAK,GAAGA,KAAK,CAACC,OAAO;EACnEH,OAAO,CAACI,gBAAgB,CAAEC,uBAAuB,IAC/CC,UAAU,CAACP,UAAU,EAAEC,OAAO,EAAEC,OAAO,CAAC,IACxCM,UAAU,CAAC,MAAM;IACfC,SAAS,CAACT,UAAU,EAAEE,OAAO,CAAC,IAAIE,OAAO,IAAIA,OAAO,CAACJ,UAAU,CAAC;EAClE,CAAC,EAAE,CAAC,CAAC;AACT;AAEA,SAASO,UAAUA,CACjBP,UAAsB,EACtBC,OAAoB,EACpBC,OAA+B,EACtB;EACT,IAAI,CAACF,UAAU,IAAIS,SAAS,CAACT,UAAU,EAAEE,OAAO,CAAC,KAAK,KAAK,EAAE;IAC3D,OAAO,KAAK;EACd;EACA,MAAMQ,IAAI,GAAGb,YAAY,CAACI,OAAO,CAAC;EAClC,IACE,OAAOU,UAAU,KAAK,WAAW,IACjCD,IAAI,YAAYC,UAAU,IAC1BD,IAAI,CAACE,IAAI,KAAKZ,UAAU,CAACa,MAAM,EAC/B;IACA,OAAO,KAAK;EACd;EACA,MAAMC,QAAQ,GAAG,CACd,OAAOZ,OAAO,CAACC,KAAK,KAAK,QAAQ,IAAID,OAAO,CAACC,KAAK,CAACY,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AAC;IACvD,CAAC,CAAC;IACF,IAAI,CAAC3B,OAAO,CAACI,gBAAgB,EAAE;MAC7BJ,OAAO,CAACI,gBAAgB,GAAG;QACzBC,uBAAuB,EAAE;MAC3B,CAAC;IACH;IACA,MAAMyB,IAAI,GAAG7B,OAAO,CAAC8B,QAAQ,CAAEC,CAAC,CAACC,GAAG;IACpCjC,OAAO,CAACI,gBAAgB,CAAC0B,IAAI,CAAC,GAAG;MAC/BJ,OAAO;MACPC;IACF,CAAC;EACH,CAAC;EACDO,SAASA,CAAClC,OAAoB,EAAEC,OAA+B,EAAE;IAC/D,IAAI,CAACD,OAAO,CAACI,gBAAgB,EAAE;IAC/B,MAAM0B,IAAI,GAAG7B,OAAO,CAAC8B,QAAQ,CAAEC,CAAC,CAACC,GAAG;IACpCZ,OAAO,CAACrB,OAAO,EAAG4B,GAAG,IAAK;MACxB,MAAMO,GAAG,GAAGnC,OAAO,CAACI,gBAAgB,GAAG0B,IAAI,CAAC;MAC5C,IAAIK,GAAG,EAAE;QACP,MAAM;UAAET,OAAO;UAAEC;QAAY,CAAC,GAAGQ,GAAG;QACpCP,GAAG,EAAEQ,mBAAmB,CAAC,OAAO,EAAEV,OAAO,EAAE,IAAI,CAAC;QAChDE,GAAG,EAAEQ,mBAAmB,CAAC,WAAW,EAAET,WAAW,EAAE,IAAI,CAAC;MAC1D;IACF,CAAC,CAAC;IACF,OAAO3B,OAAO,CAACI,gBAAgB,CAAC0B,IAAI,CAAC;EACvC;AACF,CAAC"}
@@ -1,100 +0,0 @@
1
- import "./plate-wave.scss";
2
- const CLASS_NAME = 'y-plate-wave__animation';
3
- function showAnimation(el) {
4
- if (!el) return;
5
- const animation = document.createElement('span');
6
- animation.className = CLASS_NAME;
7
- el.appendChild(animation);
8
- animation.dataset.activated = String(performance.now());
9
- }
10
- function hideAnimation(el) {
11
- if (!el) {
12
- return;
13
- }
14
- const animations = el.getElementsByClassName(CLASS_NAME);
15
- if (animations.length === 0) return;
16
- const animation = animations[animations.length - 1];
17
- if (animation.dataset.isHiding) return;
18
- animation.dataset.isHiding = 'true';
19
- const diff = performance.now() - Number(animation.dataset.activated);
20
- const delay = Math.max(250 - diff, 0);
21
- setTimeout(() => {
22
- if (animation) {
23
- el.removeChild(animation);
24
- }
25
- }, delay + 300);
26
- }
27
-
28
- /*
29
- * Event
30
- * */
31
-
32
- let keyboardEventFlag = false;
33
- function spawn(event) {
34
- showAnimation(event.currentTarget);
35
- }
36
- function clean(event) {
37
- hideAnimation(event.currentTarget);
38
- }
39
- function stop(event) {
40
- //
41
- }
42
- function keyboardSpawn(event) {
43
- if (!keyboardEventFlag && (event.key === 'Enter' || event.key === 'Space')) {
44
- keyboardEventFlag = true;
45
- showAnimation(event.currentTarget);
46
- }
47
- }
48
- function keyboardClean(event) {
49
- keyboardEventFlag = false;
50
- hideAnimation(event.currentTarget);
51
- }
52
- function destroyListeners(el) {
53
- el.removeEventListener('mousedown', spawn);
54
- el.removeEventListener('mouseup', clean);
55
- el.removeEventListener('mouseleave', clean);
56
- el.removeEventListener('keydown', keyboardSpawn);
57
- el.removeEventListener('keyup', keyboardClean);
58
- }
59
- function attachWave(el, binding) {
60
- let init = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
61
- const {
62
- value,
63
- modifiers
64
- } = binding;
65
- let enabled = value ?? true;
66
- if (typeof value === 'boolean') {
67
- enabled = value;
68
- }
69
- if (!enabled) hideAnimation(el);
70
- if (enabled && init) {
71
- if (modifiers.stop) {
72
- el.addEventListener('mousedown', stop);
73
- return;
74
- }
75
- el.addEventListener('mousedown', spawn);
76
- el.addEventListener('mouseup', clean);
77
- el.addEventListener('mouseleave', clean);
78
- el.addEventListener('keydown', keyboardSpawn);
79
- el.addEventListener('keyup', keyboardClean);
80
- el.addEventListener('blur', clean);
81
- } else if (!enabled && !init) {
82
- destroyListeners(el);
83
- }
84
- }
85
- export const PlateWave = {
86
- mounted(el, binding) {
87
- attachWave(el, binding, true);
88
- },
89
- updated(el, binding) {
90
- if (binding.value === binding.oldValue) {
91
- return;
92
- }
93
- attachWave(el, binding);
94
- },
95
- unmount(el) {
96
- destroyListeners(el);
97
- }
98
- };
99
- export default PlateWave;
100
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":["CLASS_NAME","showAnimation","el","animation","document","createElement","className","appendChild","dataset","activated","String","performance","now","hideAnimation","animations","getElementsByClassName","length","isHiding","diff","Number","delay","Math","max","setTimeout","removeChild","keyboardEventFlag","spawn","event","currentTarget","clean","stop","keyboardSpawn","key","keyboardClean","destroyListeners","removeEventListener","attachWave","binding","init","arguments","undefined","value","modifiers","enabled","addEventListener","PlateWave","mounted","updated","oldValue","unmount"],"sources":["../../../src/directives/plate-wave/index.ts"],"sourcesContent":["import type { DirectiveBinding } from 'vue';\r\n\r\nimport './plate-wave.scss';\r\n\r\nexport interface PlateWaveBinding\r\n extends Omit<DirectiveBinding, 'modifiers' | 'value'> {\r\n value?: boolean;\r\n modifiers: { stop?: boolean };\r\n}\r\n\r\nconst CLASS_NAME = 'y-plate-wave__animation';\r\n\r\nfunction showAnimation(el: HTMLElement | null) {\r\n if (!el) return;\r\n const animation = document.createElement('span');\r\n animation.className = CLASS_NAME;\r\n el.appendChild(animation);\r\n animation.dataset.activated = String(performance.now());\r\n}\r\n\r\nfunction hideAnimation(el: HTMLElement | null) {\r\n if (!el) {\r\n return;\r\n }\r\n const animations = el.getElementsByClassName(CLASS_NAME);\r\n if (animations.length === 0) return;\r\n const animation = animations[animations.length - 1] as HTMLElement;\r\n if (animation.dataset.isHiding) return;\r\n animation.dataset.isHiding = 'true';\r\n const diff = performance.now() - Number(animation.dataset.activated);\r\n const delay = Math.max(250 - diff, 0);\r\n setTimeout(() => {\r\n if (animation) {\r\n el.removeChild(animation);\r\n }\r\n }, delay + 300);\r\n}\r\n\r\n/*\r\n * Event\r\n * */\r\n\r\nlet keyboardEventFlag = false;\r\n\r\nfunction spawn(event: Event) {\r\n showAnimation(event.currentTarget as HTMLElement);\r\n}\r\n\r\nfunction clean(event: Event) {\r\n hideAnimation(event.currentTarget as HTMLElement);\r\n}\r\n\r\nfunction stop(event: Event) {\r\n //\r\n}\r\n\r\nfunction keyboardSpawn(event: KeyboardEvent) {\r\n if (!keyboardEventFlag && (event.key === 'Enter' || event.key === 'Space')) {\r\n keyboardEventFlag = true;\r\n showAnimation(event.currentTarget as HTMLElement);\r\n }\r\n}\r\n\r\nfunction keyboardClean(event: KeyboardEvent) {\r\n keyboardEventFlag = false;\r\n hideAnimation(event.currentTarget as HTMLElement);\r\n}\r\n\r\nfunction destroyListeners(el: HTMLElement) {\r\n el.removeEventListener('mousedown', spawn);\r\n el.removeEventListener('mouseup', clean);\r\n el.removeEventListener('mouseleave', clean);\r\n el.removeEventListener('keydown', keyboardSpawn);\r\n el.removeEventListener('keyup', keyboardClean);\r\n}\r\n\r\nfunction attachWave(el: HTMLElement, binding: PlateWaveBinding, init = false) {\r\n const { value, modifiers } = binding;\r\n let enabled = value ?? true;\r\n if (typeof value === 'boolean') {\r\n enabled = value;\r\n }\r\n if (!enabled) hideAnimation(el);\r\n\r\n if (enabled && init) {\r\n if (modifiers.stop) {\r\n el.addEventListener('mousedown', stop);\r\n return;\r\n }\r\n\r\n el.addEventListener('mousedown', spawn);\r\n el.addEventListener('mouseup', clean);\r\n el.addEventListener('mouseleave', clean);\r\n el.addEventListener('keydown', keyboardSpawn);\r\n el.addEventListener('keyup', keyboardClean);\r\n el.addEventListener('blur', clean);\r\n } else if (!enabled && !init) {\r\n destroyListeners(el);\r\n }\r\n}\r\n\r\nexport const PlateWave = {\r\n mounted(el: HTMLElement, binding: PlateWaveBinding) {\r\n attachWave(el, binding, true);\r\n },\r\n updated(el: HTMLElement, binding: PlateWaveBinding) {\r\n if (binding.value === binding.oldValue) {\r\n return;\r\n }\r\n attachWave(el, binding);\r\n },\r\n unmount(el: HTMLElement) {\r\n destroyListeners(el);\r\n },\r\n};\r\n\r\nexport default PlateWave;\r\n"],"mappings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,EAAE,CAAC;EAE/B,IAAIyC,OAAO,IAAIL,IAAI,EAAE;IACnB,IAAII,SAAS,CAACZ,IAAI,EAAE;MAClB5B,EAAE,CAAC0C,gBAAgB,CAAC,WAAW,EAAEd,IAAI,CAAC;MACtC;IACF;IAEA5B,EAAE,CAAC0C,gBAAgB,CAAC,WAAW,EAAElB,KAAK,CAAC;IACvCxB,EAAE,CAAC0C,gBAAgB,CAAC,SAAS,EAAEf,KAAK,CAAC;IACrC3B,EAAE,CAAC0C,gBAAgB,CAAC,YAAY,EAAEf,KAAK,CAAC;IACxC3B,EAAE,CAAC0C,gBAAgB,CAAC,SAAS,EAAEb,aAAa,CAAC;IAC7C7B,EAAE,CAAC0C,gBAAgB,CAAC,OAAO,EAAEX,aAAa,CAAC;IAC3C/B,EAAE,CAAC0C,gBAAgB,CAAC,MAAM,EAAEf,KAAK,CAAC;EACpC,CAAC,MAAM,IAAI,CAACc,OAAO,IAAI,CAACL,IAAI,EAAE;IAC5BJ,gBAAgB,CAAChC,EAAE,CAAC;EACtB;AACF;AAEA,OAAO,MAAM2C,SAAS,GAAG;EACvBC,OAAOA,CAAC5C,EAAe,EAAEmC,OAAyB,EAAE;IAClDD,UAAU,CAAClC,EAAE,EAAEmC,OAAO,EAAE,IAAI,CAAC;EAC/B,CAAC;EACDU,OAAOA,CAAC7C,EAAe,EAAEmC,OAAyB,EAAE;IAClD,IAAIA,OAAO,CAACI,KAAK,KAAKJ,OAAO,CAACW,QAAQ,EAAE;MACtC;IACF;IACAZ,UAAU,CAAClC,EAAE,EAAEmC,OAAO,CAAC;EACzB,CAAC;EACDY,OAAOA,CAAC/C,EAAe,EAAE;IACvBgC,gBAAgB,CAAChC,EAAE,CAAC;EACtB;AACF,CAAC;AAED,eAAe2C,SAAS"}
@@ -1,24 +0,0 @@
1
- import { unref, watchEffect } from 'vue';
2
- const bindThemeClass = (el, binding, vnode) => {
3
- function bindingClass(themeClass) {
4
- el.classList.forEach(classToken => {
5
- if (classToken.startsWith('y-theme--') && classToken !== themeClass) {
6
- el.classList.remove(classToken);
7
- }
8
- });
9
- el.classList.add(themeClass);
10
- }
11
- watchEffect(() => {
12
- const theme = binding.instance?.$yuyeon?.theme ?? vnode?.ctx?.root.appContext.config.globalProperties?.$yuyeon?.theme;
13
- const themeName = binding.value ?? unref(theme.currentThemeKey) ?? '';
14
- if (!themeName) {
15
- return;
16
- }
17
- const themeClass = `y-theme--${themeName}`;
18
- bindingClass(themeClass);
19
- }, {
20
- flush: 'post'
21
- });
22
- };
23
- export default bindThemeClass;
24
- //# sourceMappingURL=theme-class.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme-class.mjs","names":["unref","watchEffect","bindThemeClass","el","binding","vnode","bindingClass","themeClass","classList","forEach","classToken","startsWith","remove","add","theme","instance","$yuyeon","ctx","root","appContext","config","globalProperties","themeName","value","currentThemeKey","flush"],"sources":["../../src/directives/theme-class.ts"],"sourcesContent":["import { FunctionDirective, unref, watchEffect } from 'vue';\n\nconst bindThemeClass: FunctionDirective = (el, binding, vnode) => {\n function bindingClass(themeClass: string) {\n el.classList.forEach((classToken: string) => {\n if (classToken.startsWith('y-theme--') && classToken !== themeClass) {\n el.classList.remove(classToken);\n }\n });\n el.classList.add(themeClass);\n }\n\n watchEffect(\n () => {\n const theme =\n (binding.instance as any)?.$yuyeon?.theme ??\n (vnode as any)?.ctx?.root.appContext.config.globalProperties?.$yuyeon\n ?.theme;\n const themeName = binding.value ?? unref(theme.currentThemeKey) ?? '';\n if (!themeName) {\n return;\n }\n const themeClass = `y-theme--${themeName}`;\n bindingClass(themeClass);\n },\n { flush: 'post' },\n );\n};\n\nexport default bindThemeClass;\n"],"mappings":"AAAA,SAA4BA,KAAK,EAAEC,WAAW,QAAQ,KAAK;AAE3D,MAAMC,cAAiC,GAAGA,CAACC,EAAE,EAAEC,OAAO,EAAEC,KAAK,KAAK;EAChE,SAASC,YAAYA,CAACC,UAAkB,EAAE;IACxCJ,EAAE,CAACK,SAAS,CAACC,OAAO,CAAEC,UAAkB,IAAK;MAC3C,IAAIA,UAAU,CAACC,UAAU,CAAC,WAAW,CAAC,IAAID,UAAU,KAAKH,UAAU,EAAE;QACnEJ,EAAE,CAACK,SAAS,CAACI,MAAM,CAACF,UAAU,CAAC;MACjC;IACF,CAAC,CAAC;IACFP,EAAE,CAACK,SAAS,CAACK,GAAG,CAACN,UAAU,CAAC;EAC9B;EAEAN,WAAW,CACT,MAAM;IACJ,MAAMa,KAAK,GACRV,OAAO,CAACW,QAAQ,EAAUC,OAAO,EAAEF,KAAK,IACxCT,KAAK,EAAUY,GAAG,EAAEC,IAAI,CAACC,UAAU,CAACC,MAAM,CAACC,gBAAgB,EAAEL,OAAO,EACjEF,KAAK;IACX,MAAMQ,SAAS,GAAGlB,OAAO,CAACmB,KAAK,IAAIvB,KAAK,CAACc,KAAK,CAACU,eAAe,CAAC,IAAI,EAAE;IACrE,IAAI,CAACF,SAAS,EAAE;MACd;IACF;IACA,MAAMf,UAAU,GAAI,YAAWe,SAAU,EAAC;IAC1ChB,YAAY,CAACC,UAAU,CAAC;EAC1B,CAAC,EACD;IAAEkB,KAAK,EAAE;EAAO,CAClB,CAAC;AACH,CAAC;AAED,eAAevB,cAAc"}
package/lib/etc/index.mjs DELETED
@@ -1,6 +0,0 @@
1
- export const YUYEON_LOGO = `,--. ,--.,--.,--.,--. ,--.,---. ,---. ,--,--,
2
- \\ ' / | || | \\ ' /| .-. :| .-. || \\
3
- \\ ' ' '' ' \\ ' \\ --.' '-' '| || |
4
- .-' / \`----' .-' / \`----' \`---' \`--''--'
5
- \`---' \`---' `;
6
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":["YUYEON_LOGO"],"sources":["../../src/etc/index.ts"],"sourcesContent":["export const YUYEON_LOGO =`,--. ,--.,--.,--.,--. ,--.,---. ,---. ,--,--, \r\n \\\\ ' / | || | \\\\ ' /| .-. :| .-. || \\\\ \r\n \\\\ ' ' '' ' \\\\ ' \\\\ --.' '-' '| || | \r\n.-' / \\`----' .-' / \\`----' \\`---' \\`--''--' \r\n\\`---' \\`---' `;\r\n"],"mappings":"AAAA,OAAO,MAAMA,WAAW,GAAG;AAC3B;AACA;AACA;AACA,mDAAmD"}
@@ -1,77 +0,0 @@
1
- import { ref, shallowRef } from 'vue';
2
- import { useProvided } from "../composables/communication.mjs";
3
- import en from "../locales/en.mjs";
4
- import { getObjectValueByPath } from "../util/common.mjs";
5
- const LOCALE_PREFIX = '$yuyeon';
6
- function replaceParams(str, params) {
7
- return str.replace(/\{(\d+)\}/g, (item, index) => {
8
- return String(params[+index]);
9
- });
10
- }
11
- function generateContext(locale, fallbackLocale, messages) {
12
- function translate(key) {
13
- for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
14
- params[_key - 1] = arguments[_key];
15
- }
16
- if (!key.startsWith(LOCALE_PREFIX)) {
17
- return replaceParams(key, params);
18
- }
19
- const path = key.replace(LOCALE_PREFIX, '');
20
- const localeMessages = locale.value && messages.value[locale.value];
21
- const fallbackMessages = fallbackLocale.value && messages.value[fallbackLocale.value];
22
- let msg = getObjectValueByPath(localeMessages, path, null);
23
- if (!msg) {
24
- msg = getObjectValueByPath(fallbackMessages, path, null);
25
- }
26
- if (!msg) {
27
- msg = key;
28
- }
29
- if (typeof msg !== 'string') {
30
- msg = key;
31
- }
32
- return replaceParams(msg, params);
33
- }
34
- function number(value, options) {
35
- const numberFormat = new Intl.NumberFormat([locale.value, fallbackLocale.value], options);
36
- return numberFormat.format(value);
37
- }
38
- function getContext(props) {
39
- const localLocale = useProvided(props, 'locale', locale);
40
- const localFallbackLocale = useProvided(props, 'fallbackLocale', fallbackLocale);
41
- const localMessages = useProvided(props, 'messages', messages);
42
- const ctx = generateContext(localLocale, localFallbackLocale, localMessages);
43
- return {
44
- name: 'yuyeon',
45
- locale,
46
- fallbackLocale,
47
- messages,
48
- t: ctx.translate,
49
- n: ctx.number,
50
- getContext: ctx.getContext
51
- };
52
- }
53
- return {
54
- translate,
55
- number,
56
- getContext
57
- };
58
- }
59
- export function constructYuyeonI18nAdapter(options) {
60
- const locale = shallowRef(options?.locale ?? 'en');
61
- const fallbackLocale = shallowRef(options?.fallbackLocale ?? 'en');
62
- const messages = ref({
63
- en,
64
- ...options?.messages
65
- });
66
- const ctx = generateContext(locale, fallbackLocale, messages);
67
- return {
68
- name: 'yuyeon',
69
- locale,
70
- fallbackLocale,
71
- messages,
72
- t: ctx.translate,
73
- n: ctx.number,
74
- getContext: ctx.getContext
75
- };
76
- }
77
- //# sourceMappingURL=built-in.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"built-in.mjs","names":["ref","shallowRef","useProvided","en","getObjectValueByPath","LOCALE_PREFIX","replaceParams","str","params","replace","item","index","String","generateContext","locale","fallbackLocale","messages","translate","key","_len","arguments","length","Array","_key","startsWith","path","localeMessages","value","fallbackMessages","msg","number","options","numberFormat","Intl","NumberFormat","format","getContext","props","localLocale","localFallbackLocale","localMessages","ctx","name","t","n","constructYuyeonI18nAdapter"],"sources":["../../src/i18n/built-in.ts"],"sourcesContent":["import { ref, shallowRef } from 'vue';\r\nimport type { Ref } from 'vue';\r\n\r\nimport { useProvided } from '@/composables/communication';\r\nimport en from '@/locales/en';\r\nimport { getObjectValueByPath } from '@/util/common';\r\n\r\nimport type { LocaleMessages, LocaleModule, LocaleOptions } from './types';\r\n\r\nconst LOCALE_PREFIX = '$yuyeon';\r\n\r\nfunction replaceParams(str: string, params: unknown[]) {\r\n return str.replace(/\\{(\\d+)\\}/g, (item, index) => {\r\n return String(params[+index]);\r\n });\r\n}\r\n\r\nfunction generateContext(\r\n locale: Ref<string>,\r\n fallbackLocale: Ref<string>,\r\n messages: Ref<LocaleMessages>,\r\n) {\r\n function translate(key: string, ...params: unknown[]) {\r\n if (!key.startsWith(LOCALE_PREFIX)) {\r\n return replaceParams(key, params);\r\n }\r\n const path = key.replace(LOCALE_PREFIX, '');\r\n const localeMessages = locale.value && messages.value[locale.value];\r\n const fallbackMessages =\r\n fallbackLocale.value && messages.value[fallbackLocale.value];\r\n\r\n let msg: string = getObjectValueByPath(localeMessages, path, null);\r\n if (!msg) {\r\n msg = getObjectValueByPath(fallbackMessages, path, null);\r\n }\r\n if (!msg) {\r\n msg = key;\r\n }\r\n if (typeof msg !== 'string') {\r\n msg = key;\r\n }\r\n return replaceParams(msg, params);\r\n }\r\n\r\n function number(value: number, options?: Intl.NumberFormatOptions) {\r\n const numberFormat = new Intl.NumberFormat(\r\n [locale.value, fallbackLocale.value],\r\n options,\r\n );\r\n return numberFormat.format(value);\r\n }\r\n\r\n function getContext(props: LocaleOptions) {\r\n const localLocale = useProvided(props, 'locale', locale);\r\n const localFallbackLocale = useProvided(\r\n props,\r\n 'fallbackLocale',\r\n fallbackLocale,\r\n );\r\n const localMessages = useProvided(props, 'messages', messages);\r\n const ctx = generateContext(\r\n localLocale,\r\n localFallbackLocale,\r\n localMessages,\r\n );\r\n return {\r\n name: 'yuyeon',\r\n locale,\r\n fallbackLocale,\r\n messages,\r\n t: ctx.translate,\r\n n: ctx.number,\r\n getContext: ctx.getContext,\r\n };\r\n }\r\n\r\n return {\r\n translate,\r\n number,\r\n getContext,\r\n };\r\n}\r\n\r\nexport function constructYuyeonI18nAdapter(\r\n options?: LocaleOptions,\r\n): LocaleModule {\r\n const locale = shallowRef(options?.locale ?? 'en');\r\n const fallbackLocale = shallowRef(options?.fallbackLocale ?? 'en');\r\n const messages = ref({\r\n en,\r\n ...options?.messages,\r\n });\r\n\r\n const ctx = generateContext(locale, fallbackLocale, messages);\r\n\r\n return {\r\n name: 'yuyeon',\r\n locale,\r\n fallbackLocale,\r\n messages,\r\n t: ctx.translate,\r\n n: ctx.number,\r\n getContext: ctx.getContext,\r\n };\r\n}\r\n"],"mappings":"AAAA,SAASA,GAAG,EAAEC,UAAU,QAAQ,KAAK;AAAC,SAG7BC,WAAW;AAAA,OACbC,EAAE;AAAA,SACAC,oBAAoB;AAI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CAAC;IACnBG,EAAE;IACF,GAAG4B,OAAO,EAAEf;EACd,CAAC,CAAC;EAEF,MAAMyB,GAAG,GAAG5B,eAAe,CAACC,MAAM,EAAEC,cAAc,EAAEC,QAAQ,CAAC;EAE7D,OAAO;IACL0B,IAAI,EAAE,QAAQ;IACd5B,MAAM;IACNC,cAAc;IACdC,QAAQ;IACR2B,CAAC,EAAEF,GAAG,CAACxB,SAAS;IAChB2B,CAAC,EAAEH,GAAG,CAACX,MAAM;IACbM,UAAU,EAAEK,GAAG,CAACL;EAClB,CAAC;AACH"}
@@ -1,82 +0,0 @@
1
- export const localeCodesMap = {
2
- af: 'af-ZA',
3
- bg: 'bg-BG',
4
- ca: 'ca-ES',
5
- cs: 'cs-CZ',
6
- de: 'de-DE',
7
- el: 'el-GR',
8
- en: 'en-US',
9
- et: 'et-EE',
10
- fa: 'fa-IR',
11
- fi: 'fi-FI',
12
- hr: 'hr-HR',
13
- hu: 'hu-HU',
14
- he: 'he-IL',
15
- id: 'id-ID',
16
- it: 'it-IT',
17
- ja: 'ja-JP',
18
- ko: 'ko-KR',
19
- lv: 'lv-LV',
20
- lt: 'lt-LT',
21
- nl: 'nl-NL',
22
- no: 'no-NO',
23
- pl: 'pl-PL',
24
- pt: 'pt-PT',
25
- ro: 'ro-RO',
26
- ru: 'ru-RU',
27
- sk: 'sk-SK',
28
- sl: 'sl-SI',
29
- srCyrl: 'sr-SP',
30
- srLatn: 'sr-SP',
31
- sv: 'sv-SE',
32
- th: 'th-TH',
33
- tr: 'tr-TR',
34
- az: 'az-AZ',
35
- uk: 'uk-UA',
36
- vi: 'vi-VN',
37
- zhHans: 'zh-CN',
38
- zhHant: 'zh-TW'
39
- };
40
- export const defaultRtl = {
41
- af: false,
42
- ar: true,
43
- bg: false,
44
- ca: false,
45
- cs: false,
46
- de: false,
47
- el: false,
48
- en: false,
49
- es: false,
50
- et: false,
51
- fa: true,
52
- fi: false,
53
- fr: false,
54
- hr: false,
55
- hu: false,
56
- he: true,
57
- id: false,
58
- it: false,
59
- ja: false,
60
- ko: false,
61
- lv: false,
62
- lt: false,
63
- nl: false,
64
- no: false,
65
- pl: false,
66
- pt: false,
67
- ro: false,
68
- ru: false,
69
- sk: false,
70
- sl: false,
71
- srCyrl: false,
72
- srLatn: false,
73
- sv: false,
74
- th: false,
75
- tr: false,
76
- az: false,
77
- uk: false,
78
- vi: false,
79
- zhHans: false,
80
- zhHant: false
81
- };
82
- //# sourceMappingURL=config.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.mjs","names":["localeCodesMap","af","bg","ca","cs","de","el","en","et","fa","fi","hr","hu","he","id","it","ja","ko","lv","lt","nl","no","pl","pt","ro","ru","sk","sl","srCyrl","srLatn","sv","th","tr","az","uk","vi","zhHans","zhHant","defaultRtl","ar","es","fr"],"sources":["../../src/i18n/config.ts"],"sourcesContent":["export const localeCodesMap = {\r\n af: 'af-ZA',\r\n bg: 'bg-BG',\r\n ca: 'ca-ES',\r\n cs: 'cs-CZ',\r\n de: 'de-DE',\r\n el: 'el-GR',\r\n en: 'en-US',\r\n et: 'et-EE',\r\n fa: 'fa-IR',\r\n fi: 'fi-FI',\r\n hr: 'hr-HR',\r\n hu: 'hu-HU',\r\n he: 'he-IL',\r\n id: 'id-ID',\r\n it: 'it-IT',\r\n ja: 'ja-JP',\r\n ko: 'ko-KR',\r\n lv: 'lv-LV',\r\n lt: 'lt-LT',\r\n nl: 'nl-NL',\r\n no: 'no-NO',\r\n pl: 'pl-PL',\r\n pt: 'pt-PT',\r\n ro: 'ro-RO',\r\n ru: 'ru-RU',\r\n sk: 'sk-SK',\r\n sl: 'sl-SI',\r\n srCyrl: 'sr-SP',\r\n srLatn: 'sr-SP',\r\n sv: 'sv-SE',\r\n th: 'th-TH',\r\n tr: 'tr-TR',\r\n az: 'az-AZ',\r\n uk: 'uk-UA',\r\n vi: 'vi-VN',\r\n zhHans: 'zh-CN',\r\n zhHant: 'zh-TW',\r\n};\r\n\r\nexport const defaultRtl = {\r\n af: false,\r\n ar: true,\r\n bg: false,\r\n ca: false,\r\n cs: false,\r\n de: false,\r\n el: false,\r\n en: false,\r\n es: false,\r\n et: false,\r\n fa: true,\r\n fi: false,\r\n fr: false,\r\n hr: false,\r\n hu: false,\r\n he: true,\r\n id: false,\r\n it: false,\r\n ja: false,\r\n ko: false,\r\n lv: false,\r\n lt: false,\r\n nl: false,\r\n no: false,\r\n pl: false,\r\n pt: false,\r\n ro: false,\r\n ru: false,\r\n sk: false,\r\n sl: false,\r\n srCyrl: false,\r\n srLatn: false,\r\n sv: false,\r\n th: false,\r\n tr: false,\r\n az: false,\r\n uk: false,\r\n vi: false,\r\n zhHans: false,\r\n zhHant: false,\r\n}\r\n"],"mappings":"AAAA,OAAO,MAAMA,cAAc,GAAG;EAC1BC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,MAAM,EAAE,OAAO;EACfC,MAAM,EAAE,OAAO;EACfC,EAAE,EAAE,OAAO;EACXC,EAAE,EAAE,OAAO;EACXC,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":3,"file":"types.mjs","names":[],"sources":["../../src/i18n/types.ts"],"sourcesContent":["import type { Ref } from 'vue';\r\n\r\nexport type LocaleMessages = {\r\n [key: string]: LocaleMessages | string;\r\n};\r\n\r\nexport interface LocaleOptions {\r\n messages?: LocaleMessages;\r\n locale?: string;\r\n fallbackLocale?: string;\r\n adapter?: LocaleModule;\r\n}\r\n\r\nexport interface LocaleModule {\r\n name: string;\r\n locale: Ref<string>;\r\n fallbackLocale: Ref<string>;\r\n messages: Ref<LocaleMessages>;\r\n t: (key: string, ...args: unknown[]) => string;\r\n n: (value: number) => string;\r\n getContext: (props: LocaleOptions) => LocaleModule\r\n}\r\n"],"mappings":""}
package/lib/index.mjs DELETED
@@ -1,103 +0,0 @@
1
- import { getCurrentInstance, nextTick, reactive } from 'vue';
2
- import * as allComponents from "./components/index.mjs";
3
- import { YUYEON_DATE_KEY, YUYEON_DATE_OPTIONS_KEY, createDateModule } from "./composables/date/index.mjs";
4
- import { createDefaultsModule } from "./composables/defaults/index.mjs";
5
- import { YUYEON_DEFAULTS_KEY } from "./composables/defaults/share.mjs";
6
- import { createI18nModule } from "./composables/i18n/index.mjs";
7
- import { YUYEON_I18N_KEY } from "./composables/i18n/share.mjs";
8
- import { YUYEON_ICON_KEY, createIconModule } from "./composables/icon.mjs";
9
- import { YUYEON_THEME_KEY, createThemeModule, useTheme } from "./composables/theme/index.mjs";
10
- import PlateWave from "./directives/plate-wave/index.mjs";
11
- import { YUYEON_LOGO } from "./etc/index.mjs";
12
- import "./styles/base.scss";
13
- const defaultOptions = {
14
- credit: true
15
- };
16
- export function init() {
17
- let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultOptions;
18
- const defaultsModule = createDefaultsModule(options?.defaults);
19
- const themeModule = createThemeModule(options?.theme);
20
- const i18nModule = createI18nModule(options?.i18n);
21
- const dateModule = createDateModule(options?.date, i18nModule.localeModule);
22
- const iconModule = createIconModule(options?.icon);
23
- const components = options?.components ?? allComponents;
24
- const install = app => {
25
- themeModule.install(app);
26
- const yuyeon = reactive({
27
- app: null,
28
- root: null,
29
- theme: themeModule.instance,
30
- i18n: {
31
- ...i18nModule.localeModule,
32
- ...i18nModule.rtlModule
33
- },
34
- date: dateModule,
35
- defaults: defaultsModule,
36
- icon: iconModule
37
- });
38
- Object.keys(components).forEach(componentName => {
39
- const comp = components[componentName];
40
- if (typeof comp === 'object' && 'name' in comp) app.component(componentName, comp);
41
- });
42
- app.directive('plate-wave', PlateWave);
43
- app.provide(YUYEON_DEFAULTS_KEY, defaultsModule);
44
- app.provide(YUYEON_THEME_KEY, themeModule.instance);
45
- app.provide(YUYEON_ICON_KEY, iconModule);
46
- app.provide(YUYEON_I18N_KEY, {
47
- ...i18nModule.localeModule,
48
- ...i18nModule.rtlModule
49
- });
50
- app.provide(YUYEON_DATE_OPTIONS_KEY, dateModule.options);
51
- app.provide(YUYEON_DATE_KEY, dateModule.instance);
52
- app.config.globalProperties.$yuyeon = yuyeon;
53
- nextTick(() => {
54
- yuyeon.root = app._container;
55
- yuyeon.app = app._instance;
56
- if (yuyeon.root) {
57
- yuyeon.root.classList.add('y-root');
58
- yuyeon.root.setAttribute('data-y-root', '');
59
- themeModule.init(yuyeon);
60
- }
61
- });
62
- if (options?.credit) {
63
- console.log(YUYEON_LOGO);
64
- }
65
- const {
66
- unmount,
67
- mount
68
- } = app;
69
- app.mount = function () {
70
- const vm = mount(...arguments);
71
- if (!yuyeon.app) {
72
- yuyeon.app = app._instance;
73
- }
74
- if (!yuyeon.root) {
75
- nextTick(() => {
76
- yuyeon.root = app._container;
77
- if (yuyeon.root) {
78
- yuyeon.root.classList.add('y-root');
79
- yuyeon.root.setAttribute('data-y-root', '');
80
- themeModule.init(yuyeon);
81
- }
82
- });
83
- }
84
- app.mount = mount;
85
- return vm;
86
- };
87
- app.unmount = () => {
88
- unmount();
89
- themeModule.scope.stop();
90
- app.unmount = unmount;
91
- };
92
- };
93
- return {
94
- install
95
- };
96
- }
97
- export function useYuyeon() {
98
- const vm = getCurrentInstance();
99
- if (!vm) throw new Error('[yuyeon] Called outside of setup context');
100
- return vm.appContext.config.globalProperties.$yuyeon;
101
- }
102
- export { useTheme };
103
- //# sourceMappingURL=index.mjs.map