yuyeon 0.3.1-rc.6 → 0.3.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 (949) hide show
  1. package/dist/yuyeon.js +1 -1
  2. package/dist/yuyeon.umd.cjs +1 -1
  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 +289 -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 +112 -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/lib/abstract/items.mjs +0 -20
  471. package/lib/abstract/items.mjs.map +0 -1
  472. package/lib/components/alert/YAlert.mjs +0 -83
  473. package/lib/components/alert/YAlert.mjs.map +0 -1
  474. package/lib/components/alert/index.mjs +0 -2
  475. package/lib/components/alert/index.mjs.map +0 -1
  476. package/lib/components/app/YApp.mjs +0 -21
  477. package/lib/components/app/YApp.mjs.map +0 -1
  478. package/lib/components/app/index.mjs +0 -2
  479. package/lib/components/app/index.mjs.map +0 -1
  480. package/lib/components/badge/YBadge.mjs +0 -83
  481. package/lib/components/badge/YBadge.mjs.map +0 -1
  482. package/lib/components/badge/index.mjs +0 -2
  483. package/lib/components/badge/index.mjs.map +0 -1
  484. package/lib/components/bench/YBench.mjs +0 -43
  485. package/lib/components/bench/YBench.mjs.map +0 -1
  486. package/lib/components/bench/index.mjs +0 -2
  487. package/lib/components/bench/index.mjs.map +0 -1
  488. package/lib/components/button/YButton.mjs +0 -169
  489. package/lib/components/button/YButton.mjs.map +0 -1
  490. package/lib/components/button/index.mjs +0 -2
  491. package/lib/components/button/index.mjs.map +0 -1
  492. package/lib/components/card/YCard.mjs +0 -28
  493. package/lib/components/card/YCard.mjs.map +0 -1
  494. package/lib/components/card/YCardBody.mjs +0 -11
  495. package/lib/components/card/YCardBody.mjs.map +0 -1
  496. package/lib/components/card/YCardFooter.mjs +0 -11
  497. package/lib/components/card/YCardFooter.mjs.map +0 -1
  498. package/lib/components/card/YCardHeader.mjs +0 -11
  499. package/lib/components/card/YCardHeader.mjs.map +0 -1
  500. package/lib/components/card/index.mjs +0 -5
  501. package/lib/components/card/index.mjs.map +0 -1
  502. package/lib/components/checkbox/YCheckbox.mjs +0 -160
  503. package/lib/components/checkbox/YCheckbox.mjs.map +0 -1
  504. package/lib/components/checkbox/YInputCheckbox.mjs +0 -114
  505. package/lib/components/checkbox/YInputCheckbox.mjs.map +0 -1
  506. package/lib/components/checkbox/index.mjs +0 -4
  507. package/lib/components/checkbox/index.mjs.map +0 -1
  508. package/lib/components/chip/YChip.mjs +0 -39
  509. package/lib/components/chip/YChip.mjs.map +0 -1
  510. package/lib/components/chip/index.mjs +0 -2
  511. package/lib/components/chip/index.mjs.map +0 -1
  512. package/lib/components/date-picker/YDateCalendar.mjs +0 -243
  513. package/lib/components/date-picker/YDateCalendar.mjs.map +0 -1
  514. package/lib/components/date-picker/YDatePicker.mjs +0 -132
  515. package/lib/components/date-picker/YDatePicker.mjs.map +0 -1
  516. package/lib/components/date-picker/YDatePickerControl.mjs +0 -107
  517. package/lib/components/date-picker/YDatePickerControl.mjs.map +0 -1
  518. package/lib/components/date-picker/YMonthPicker.mjs +0 -64
  519. package/lib/components/date-picker/YMonthPicker.mjs.map +0 -1
  520. package/lib/components/date-picker/YYearPicker.mjs +0 -87
  521. package/lib/components/date-picker/YYearPicker.mjs.map +0 -1
  522. package/lib/components/date-picker/index.mjs +0 -4
  523. package/lib/components/date-picker/index.mjs.map +0 -1
  524. package/lib/components/default-provider/YDefaultProvider.mjs +0 -2
  525. package/lib/components/default-provider/YDefaultProvider.mjs.map +0 -1
  526. package/lib/components/default-provider/index.mjs +0 -2
  527. package/lib/components/default-provider/index.mjs.map +0 -1
  528. package/lib/components/dialog/YDialog.mjs +0 -213
  529. package/lib/components/dialog/YDialog.mjs.map +0 -1
  530. package/lib/components/dialog/index.mjs +0 -2
  531. package/lib/components/dialog/index.mjs.map +0 -1
  532. package/lib/components/divider/YDivider.mjs +0 -20
  533. package/lib/components/divider/YDivider.mjs.map +0 -1
  534. package/lib/components/divider/index.mjs +0 -2
  535. package/lib/components/divider/index.mjs.map +0 -1
  536. package/lib/components/draggable/YDraggable.mjs +0 -95
  537. package/lib/components/draggable/YDraggable.mjs.map +0 -1
  538. package/lib/components/dropdown/YDropdown.mjs +0 -109
  539. package/lib/components/dropdown/YDropdown.mjs.map +0 -1
  540. package/lib/components/dropdown/index.mjs +0 -2
  541. package/lib/components/dropdown/index.mjs.map +0 -1
  542. package/lib/components/field-input/YFieldInput.mjs +0 -229
  543. package/lib/components/field-input/YFieldInput.mjs.map +0 -1
  544. package/lib/components/field-input/index.mjs +0 -2
  545. package/lib/components/field-input/index.mjs.map +0 -1
  546. package/lib/components/form/YForm.mjs +0 -65
  547. package/lib/components/form/YForm.mjs.map +0 -1
  548. package/lib/components/form/index.mjs +0 -2
  549. package/lib/components/form/index.mjs.map +0 -1
  550. package/lib/components/hover/YHover.mjs +0 -54
  551. package/lib/components/hover/YHover.mjs.map +0 -1
  552. package/lib/components/hover/index.mjs +0 -2
  553. package/lib/components/hover/index.mjs.map +0 -1
  554. package/lib/components/icon/YIcon.mjs +0 -63
  555. package/lib/components/icon/YIcon.mjs.map +0 -1
  556. package/lib/components/icon/index.mjs +0 -2
  557. package/lib/components/icon/index.mjs.map +0 -1
  558. package/lib/components/icon/poly.mjs +0 -57
  559. package/lib/components/icon/poly.mjs.map +0 -1
  560. package/lib/components/icons/YIconCheckbox.mjs +0 -32
  561. package/lib/components/icons/YIconCheckbox.mjs.map +0 -1
  562. package/lib/components/icons/YIconClear.mjs +0 -16
  563. package/lib/components/icons/YIconClear.mjs.map +0 -1
  564. package/lib/components/icons/YIconDropdown.mjs +0 -16
  565. package/lib/components/icons/YIconDropdown.mjs.map +0 -1
  566. package/lib/components/icons/YIconExpand.mjs +0 -20
  567. package/lib/components/icons/YIconExpand.mjs.map +0 -1
  568. package/lib/components/icons/YIconPageControl.mjs +0 -32
  569. package/lib/components/icons/YIconPageControl.mjs.map +0 -1
  570. package/lib/components/icons/YIconSort.mjs +0 -45
  571. package/lib/components/icons/YIconSort.mjs.map +0 -1
  572. package/lib/components/icons/index.mjs +0 -32
  573. package/lib/components/icons/index.mjs.map +0 -1
  574. package/lib/components/img/YImg.mjs +0 -173
  575. package/lib/components/img/YImg.mjs.map +0 -1
  576. package/lib/components/img/index.mjs +0 -2
  577. package/lib/components/img/index.mjs.map +0 -1
  578. package/lib/components/index.mjs +0 -39
  579. package/lib/components/index.mjs.map +0 -1
  580. package/lib/components/input/YInput.mjs +0 -258
  581. package/lib/components/input/YInput.mjs.map +0 -1
  582. package/lib/components/input/index.mjs +0 -2
  583. package/lib/components/input/index.mjs.map +0 -1
  584. package/lib/components/ip-field/YIpv4Field.mjs +0 -297
  585. package/lib/components/ip-field/YIpv4Field.mjs.map +0 -1
  586. package/lib/components/ip-field/index.mjs +0 -2
  587. package/lib/components/ip-field/index.mjs.map +0 -1
  588. package/lib/components/layer/YLayer.mjs +0 -326
  589. package/lib/components/layer/YLayer.mjs.map +0 -1
  590. package/lib/components/layer/active-delay.mjs +0 -28
  591. package/lib/components/layer/active-delay.mjs.map +0 -1
  592. package/lib/components/layer/active-stack.mjs +0 -52
  593. package/lib/components/layer/active-stack.mjs.map +0 -1
  594. package/lib/components/layer/base.mjs +0 -87
  595. package/lib/components/layer/base.mjs.map +0 -1
  596. package/lib/components/layer/content.mjs +0 -22
  597. package/lib/components/layer/content.mjs.map +0 -1
  598. package/lib/components/layer/index.mjs +0 -2
  599. package/lib/components/layer/index.mjs.map +0 -1
  600. package/lib/components/layer/scroll-strategies.mjs +0 -132
  601. package/lib/components/layer/scroll-strategies.mjs.map +0 -1
  602. package/lib/components/list/YList.mjs +0 -55
  603. package/lib/components/list/YList.mjs.map +0 -1
  604. package/lib/components/list/YListItem.mjs +0 -59
  605. package/lib/components/list/YListItem.mjs.map +0 -1
  606. package/lib/components/list/index.mjs +0 -3
  607. package/lib/components/list/index.mjs.map +0 -1
  608. package/lib/components/loading/YSpinnerRing.mjs +0 -25
  609. package/lib/components/loading/YSpinnerRing.mjs.map +0 -1
  610. package/lib/components/loading/index.mjs +0 -2
  611. package/lib/components/loading/index.mjs.map +0 -1
  612. package/lib/components/menu/YMenu.mjs +0 -211
  613. package/lib/components/menu/YMenu.mjs.map +0 -1
  614. package/lib/components/menu/index.mjs +0 -2
  615. package/lib/components/menu/index.mjs.map +0 -1
  616. package/lib/components/navigation/YNavigation.mjs +0 -18
  617. package/lib/components/navigation/YNavigation.mjs.map +0 -1
  618. package/lib/components/navigation/index.mjs +0 -2
  619. package/lib/components/navigation/index.mjs.map +0 -1
  620. package/lib/components/pagination/YPagination.mjs +0 -288
  621. package/lib/components/pagination/YPagination.mjs.map +0 -1
  622. package/lib/components/pagination/index.mjs +0 -2
  623. package/lib/components/pagination/index.mjs.map +0 -1
  624. package/lib/components/panel/YDividePanel.mjs +0 -90
  625. package/lib/components/panel/YDividePanel.mjs.map +0 -1
  626. package/lib/components/panel/index.mjs +0 -2
  627. package/lib/components/panel/index.mjs.map +0 -1
  628. package/lib/components/plate/YPlate.mjs +0 -28
  629. package/lib/components/plate/YPlate.mjs.map +0 -1
  630. package/lib/components/plate/index.mjs +0 -2
  631. package/lib/components/plate/index.mjs.map +0 -1
  632. package/lib/components/progress-bar/YProgressBar.mjs +0 -117
  633. package/lib/components/progress-bar/YProgressBar.mjs.map +0 -1
  634. package/lib/components/progress-bar/index.mjs +0 -2
  635. package/lib/components/progress-bar/index.mjs.map +0 -1
  636. package/lib/components/progress-ring/YProgressRing.mjs +0 -128
  637. package/lib/components/progress-ring/YProgressRing.mjs.map +0 -1
  638. package/lib/components/progress-ring/index.mjs +0 -2
  639. package/lib/components/progress-ring/index.mjs.map +0 -1
  640. package/lib/components/select/YSelect.mjs +0 -344
  641. package/lib/components/select/YSelect.mjs.map +0 -1
  642. package/lib/components/select/index.mjs +0 -2
  643. package/lib/components/select/index.mjs.map +0 -1
  644. package/lib/components/slider/YSlider.mjs +0 -26
  645. package/lib/components/slider/YSlider.mjs.map +0 -1
  646. package/lib/components/slider/index.mjs +0 -2
  647. package/lib/components/slider/index.mjs.map +0 -1
  648. package/lib/components/snackbar/YSnackbar.mjs +0 -209
  649. package/lib/components/snackbar/YSnackbar.mjs.map +0 -1
  650. package/lib/components/snackbar/index.mjs +0 -2
  651. package/lib/components/snackbar/index.mjs.map +0 -1
  652. package/lib/components/switch/YSwitch.mjs +0 -184
  653. package/lib/components/switch/YSwitch.mjs.map +0 -1
  654. package/lib/components/switch/index.mjs +0 -2
  655. package/lib/components/switch/index.mjs.map +0 -1
  656. package/lib/components/tab/YTab.mjs +0 -64
  657. package/lib/components/tab/YTab.mjs.map +0 -1
  658. package/lib/components/tab/YTabs.mjs +0 -86
  659. package/lib/components/tab/YTabs.mjs.map +0 -1
  660. package/lib/components/tab/index.mjs +0 -4
  661. package/lib/components/tab/index.mjs.map +0 -1
  662. package/lib/components/tab/shared.mjs +0 -2
  663. package/lib/components/tab/shared.mjs.map +0 -1
  664. package/lib/components/tab/types.mjs +0 -2
  665. package/lib/components/tab/types.mjs.map +0 -1
  666. package/lib/components/table/YDataTable.mjs +0 -182
  667. package/lib/components/table/YDataTable.mjs.map +0 -1
  668. package/lib/components/table/YDataTableBody.mjs +0 -131
  669. package/lib/components/table/YDataTableBody.mjs.map +0 -1
  670. package/lib/components/table/YDataTableCell.mjs +0 -78
  671. package/lib/components/table/YDataTableCell.mjs.map +0 -1
  672. package/lib/components/table/YDataTableControl.mjs +0 -46
  673. package/lib/components/table/YDataTableControl.mjs.map +0 -1
  674. package/lib/components/table/YDataTableHead.mjs +0 -172
  675. package/lib/components/table/YDataTableHead.mjs.map +0 -1
  676. package/lib/components/table/YDataTableLayer.mjs +0 -29
  677. package/lib/components/table/YDataTableLayer.mjs.map +0 -1
  678. package/lib/components/table/YDataTableRow.mjs +0 -150
  679. package/lib/components/table/YDataTableRow.mjs.map +0 -1
  680. package/lib/components/table/YDataTableServer.mjs +0 -173
  681. package/lib/components/table/YDataTableServer.mjs.map +0 -1
  682. package/lib/components/table/YTable.mjs +0 -77
  683. package/lib/components/table/YTable.mjs.map +0 -1
  684. package/lib/components/table/composibles/header.mjs +0 -127
  685. package/lib/components/table/composibles/header.mjs.map +0 -1
  686. package/lib/components/table/composibles/items.mjs +0 -52
  687. package/lib/components/table/composibles/items.mjs.map +0 -1
  688. package/lib/components/table/composibles/measure.mjs +0 -39
  689. package/lib/components/table/composibles/measure.mjs.map +0 -1
  690. package/lib/components/table/composibles/options.mjs +0 -33
  691. package/lib/components/table/composibles/options.mjs.map +0 -1
  692. package/lib/components/table/composibles/pagination.mjs +0 -99
  693. package/lib/components/table/composibles/pagination.mjs.map +0 -1
  694. package/lib/components/table/composibles/selection.mjs +0 -196
  695. package/lib/components/table/composibles/selection.mjs.map +0 -1
  696. package/lib/components/table/composibles/sorted-items.mjs +0 -50
  697. package/lib/components/table/composibles/sorted-items.mjs.map +0 -1
  698. package/lib/components/table/composibles/sorting.mjs +0 -73
  699. package/lib/components/table/composibles/sorting.mjs.map +0 -1
  700. package/lib/components/table/index.mjs +0 -9
  701. package/lib/components/table/index.mjs.map +0 -1
  702. package/lib/components/table/types/common.mjs +0 -2
  703. package/lib/components/table/types/common.mjs.map +0 -1
  704. package/lib/components/table/types/header.mjs +0 -2
  705. package/lib/components/table/types/header.mjs.map +0 -1
  706. package/lib/components/table/types/index.mjs +0 -2
  707. package/lib/components/table/types/index.mjs.map +0 -1
  708. package/lib/components/table/types/item.mjs +0 -2
  709. package/lib/components/table/types/item.mjs.map +0 -1
  710. package/lib/components/table/types/row.mjs +0 -2
  711. package/lib/components/table/types/row.mjs.map +0 -1
  712. package/lib/components/text-ellipsis/YTextEllipsis.mjs +0 -66
  713. package/lib/components/text-ellipsis/YTextEllipsis.mjs.map +0 -1
  714. package/lib/components/text-ellipsis/index.mjs +0 -2
  715. package/lib/components/text-ellipsis/index.mjs.map +0 -1
  716. package/lib/components/text-highlighter/YTextHighlighter.mjs +0 -95
  717. package/lib/components/text-highlighter/YTextHighlighter.mjs.map +0 -1
  718. package/lib/components/text-highlighter/index.mjs +0 -2
  719. package/lib/components/text-highlighter/index.mjs.map +0 -1
  720. package/lib/components/text-interpolation/YTi.mjs +0 -47
  721. package/lib/components/text-interpolation/YTi.mjs.map +0 -1
  722. package/lib/components/text-interpolation/index.mjs +0 -2
  723. package/lib/components/text-interpolation/index.mjs.map +0 -1
  724. package/lib/components/textarea/YTextarea.mjs +0 -157
  725. package/lib/components/textarea/YTextarea.mjs.map +0 -1
  726. package/lib/components/textarea/index.mjs +0 -2
  727. package/lib/components/textarea/index.mjs.map +0 -1
  728. package/lib/components/toggle-button/YToggleButton.mjs +0 -2
  729. package/lib/components/toggle-button/YToggleButton.mjs.map +0 -1
  730. package/lib/components/toggle-button/index.mjs +0 -2
  731. package/lib/components/toggle-button/index.mjs.map +0 -1
  732. package/lib/components/tooltip/YTooltip.mjs +0 -157
  733. package/lib/components/tooltip/YTooltip.mjs.map +0 -1
  734. package/lib/components/tooltip/index.mjs +0 -2
  735. package/lib/components/tooltip/index.mjs.map +0 -1
  736. package/lib/components/transitions/expand-transition.mjs +0 -109
  737. package/lib/components/transitions/expand-transition.mjs.map +0 -1
  738. package/lib/components/transitions/index.mjs +0 -4
  739. package/lib/components/transitions/index.mjs.map +0 -1
  740. package/lib/components/tree-view/YTreeView.mjs +0 -289
  741. package/lib/components/tree-view/YTreeView.mjs.map +0 -1
  742. package/lib/components/tree-view/YTreeViewNode.mjs +0 -250
  743. package/lib/components/tree-view/YTreeViewNode.mjs.map +0 -1
  744. package/lib/components/tree-view/index.mjs +0 -3
  745. package/lib/components/tree-view/index.mjs.map +0 -1
  746. package/lib/components/tree-view/tree-view.mjs +0 -179
  747. package/lib/components/tree-view/tree-view.mjs.map +0 -1
  748. package/lib/components/tree-view/types.mjs +0 -2
  749. package/lib/components/tree-view/types.mjs.map +0 -1
  750. package/lib/components/tree-view/util.mjs +0 -40
  751. package/lib/components/tree-view/util.mjs.map +0 -1
  752. package/lib/composables/choice-link.mjs +0 -13
  753. package/lib/composables/choice-link.mjs.map +0 -1
  754. package/lib/composables/choice.mjs +0 -187
  755. package/lib/composables/choice.mjs.map +0 -1
  756. package/lib/composables/communication.mjs +0 -55
  757. package/lib/composables/communication.mjs.map +0 -1
  758. package/lib/composables/component.mjs +0 -8
  759. package/lib/composables/component.mjs.map +0 -1
  760. package/lib/composables/coordinate/arrangement.mjs +0 -14
  761. package/lib/composables/coordinate/arrangement.mjs.map +0 -1
  762. package/lib/composables/coordinate/index.mjs +0 -67
  763. package/lib/composables/coordinate/index.mjs.map +0 -1
  764. package/lib/composables/coordinate/levitation.mjs +0 -315
  765. package/lib/composables/coordinate/levitation.mjs.map +0 -1
  766. package/lib/composables/coordinate/types.mjs +0 -2
  767. package/lib/composables/coordinate/types.mjs.map +0 -1
  768. package/lib/composables/coordinate/utils/point.mjs +0 -55
  769. package/lib/composables/coordinate/utils/point.mjs.map +0 -1
  770. package/lib/composables/date/factory.mjs +0 -12
  771. package/lib/composables/date/factory.mjs.map +0 -1
  772. package/lib/composables/date/index.mjs +0 -20
  773. package/lib/composables/date/index.mjs.map +0 -1
  774. package/lib/composables/date/setting.mjs +0 -11
  775. package/lib/composables/date/setting.mjs.map +0 -1
  776. package/lib/composables/date/types.mjs +0 -2
  777. package/lib/composables/date/types.mjs.map +0 -1
  778. package/lib/composables/defaults/index.mjs +0 -99
  779. package/lib/composables/defaults/index.mjs.map +0 -1
  780. package/lib/composables/defaults/share.mjs +0 -2
  781. package/lib/composables/defaults/share.mjs.map +0 -1
  782. package/lib/composables/defaults/types.mjs +0 -2
  783. package/lib/composables/defaults/types.mjs.map +0 -1
  784. package/lib/composables/dimension.mjs +0 -26
  785. package/lib/composables/dimension.mjs.map +0 -1
  786. package/lib/composables/focus.mjs +0 -29
  787. package/lib/composables/focus.mjs.map +0 -1
  788. package/lib/composables/form.mjs +0 -100
  789. package/lib/composables/form.mjs.map +0 -1
  790. package/lib/composables/group.mjs +0 -194
  791. package/lib/composables/group.mjs.map +0 -1
  792. package/lib/composables/i18n/index.mjs +0 -30
  793. package/lib/composables/i18n/index.mjs.map +0 -1
  794. package/lib/composables/i18n/locale.mjs +0 -5
  795. package/lib/composables/i18n/locale.mjs.map +0 -1
  796. package/lib/composables/i18n/rtl.mjs +0 -34
  797. package/lib/composables/i18n/rtl.mjs.map +0 -1
  798. package/lib/composables/i18n/share.mjs +0 -2
  799. package/lib/composables/i18n/share.mjs.map +0 -1
  800. package/lib/composables/icon.mjs +0 -164
  801. package/lib/composables/icon.mjs.map +0 -1
  802. package/lib/composables/index.mjs +0 -11
  803. package/lib/composables/index.mjs.map +0 -1
  804. package/lib/composables/layer-group.mjs +0 -66
  805. package/lib/composables/layer-group.mjs.map +0 -1
  806. package/lib/composables/layout.mjs +0 -13
  807. package/lib/composables/layout.mjs.map +0 -1
  808. package/lib/composables/list-items.mjs +0 -66
  809. package/lib/composables/list-items.mjs.map +0 -1
  810. package/lib/composables/progress.mjs +0 -26
  811. package/lib/composables/progress.mjs.map +0 -1
  812. package/lib/composables/ref.mjs +0 -13
  813. package/lib/composables/ref.mjs.map +0 -1
  814. package/lib/composables/resize-observer.mjs +0 -33
  815. package/lib/composables/resize-observer.mjs.map +0 -1
  816. package/lib/composables/scope.mjs +0 -26
  817. package/lib/composables/scope.mjs.map +0 -1
  818. package/lib/composables/style-color.mjs +0 -37
  819. package/lib/composables/style-color.mjs.map +0 -1
  820. package/lib/composables/theme/factory.mjs +0 -47
  821. package/lib/composables/theme/factory.mjs.map +0 -1
  822. package/lib/composables/theme/helper.mjs +0 -14
  823. package/lib/composables/theme/helper.mjs.map +0 -1
  824. package/lib/composables/theme/index.mjs +0 -187
  825. package/lib/composables/theme/index.mjs.map +0 -1
  826. package/lib/composables/theme/setting.mjs +0 -112
  827. package/lib/composables/theme/setting.mjs.map +0 -1
  828. package/lib/composables/theme/types.mjs +0 -2
  829. package/lib/composables/theme/types.mjs.map +0 -1
  830. package/lib/composables/timing.mjs +0 -102
  831. package/lib/composables/timing.mjs.map +0 -1
  832. package/lib/composables/transition.mjs +0 -51
  833. package/lib/composables/transition.mjs.map +0 -1
  834. package/lib/composables/validation.mjs +0 -126
  835. package/lib/composables/validation.mjs.map +0 -1
  836. package/lib/composables/vue-router.mjs +0 -32
  837. package/lib/composables/vue-router.mjs.map +0 -1
  838. package/lib/directives/complement-click/index.mjs +0 -78
  839. package/lib/directives/complement-click/index.mjs.map +0 -1
  840. package/lib/directives/plate-wave/index.mjs +0 -100
  841. package/lib/directives/plate-wave/index.mjs.map +0 -1
  842. package/lib/directives/theme-class.mjs +0 -24
  843. package/lib/directives/theme-class.mjs.map +0 -1
  844. package/lib/etc/index.mjs +0 -6
  845. package/lib/etc/index.mjs.map +0 -1
  846. package/lib/i18n/built-in.mjs +0 -77
  847. package/lib/i18n/built-in.mjs.map +0 -1
  848. package/lib/i18n/config.mjs +0 -82
  849. package/lib/i18n/config.mjs.map +0 -1
  850. package/lib/i18n/types.mjs +0 -2
  851. package/lib/i18n/types.mjs.map +0 -1
  852. package/lib/index.mjs +0 -103
  853. package/lib/index.mjs.map +0 -1
  854. package/lib/locales/en.mjs +0 -6
  855. package/lib/locales/en.mjs.map +0 -1
  856. package/lib/locales/index.mjs +0 -3
  857. package/lib/locales/index.mjs.map +0 -1
  858. package/lib/locales/ko.mjs +0 -6
  859. package/lib/locales/ko.mjs.map +0 -1
  860. package/lib/mixins/di.mjs +0 -19
  861. package/lib/mixins/di.mjs.map +0 -1
  862. package/lib/mixins/rebind-attrs.mjs +0 -37
  863. package/lib/mixins/rebind-attrs.mjs.map +0 -1
  864. package/lib/types/index.mjs +0 -2
  865. package/lib/types/index.mjs.map +0 -1
  866. package/lib/util/anchor.mjs +0 -53
  867. package/lib/util/anchor.mjs.map +0 -1
  868. package/lib/util/array.mjs +0 -13
  869. package/lib/util/array.mjs.map +0 -1
  870. package/lib/util/collection.mjs +0 -10
  871. package/lib/util/collection.mjs.map +0 -1
  872. package/lib/util/color/apca.mjs +0 -201
  873. package/lib/util/color/apca.mjs.map +0 -1
  874. package/lib/util/color/const.mjs +0 -6
  875. package/lib/util/color/const.mjs.map +0 -1
  876. package/lib/util/color/contrast/contrast.mjs +0 -149
  877. package/lib/util/color/contrast/contrast.mjs.map +0 -1
  878. package/lib/util/color/conversion.mjs +0 -310
  879. package/lib/util/color/conversion.mjs.map +0 -1
  880. package/lib/util/color/hct/cam16.mjs +0 -349
  881. package/lib/util/color/hct/cam16.mjs.map +0 -1
  882. package/lib/util/color/hct/hct-solver.mjs +0 -389
  883. package/lib/util/color/hct/hct-solver.mjs.map +0 -1
  884. package/lib/util/color/hct/hct.mjs +0 -153
  885. package/lib/util/color/hct/hct.mjs.map +0 -1
  886. package/lib/util/color/hct/viewing-conditions.mjs +0 -110
  887. package/lib/util/color/hct/viewing-conditions.mjs.map +0 -1
  888. package/lib/util/color/index.mjs +0 -40
  889. package/lib/util/color/index.mjs.map +0 -1
  890. package/lib/util/color/palettes/core-palette.mjs +0 -99
  891. package/lib/util/color/palettes/core-palette.mjs.map +0 -1
  892. package/lib/util/color/palettes/tonal-palette.mjs +0 -112
  893. package/lib/util/color/palettes/tonal-palette.mjs.map +0 -1
  894. package/lib/util/color/types.mjs +0 -2
  895. package/lib/util/color/types.mjs.map +0 -1
  896. package/lib/util/color/utils/math-utils.mjs +0 -139
  897. package/lib/util/color/utils/math-utils.mjs.map +0 -1
  898. package/lib/util/common.mjs +0 -107
  899. package/lib/util/common.mjs.map +0 -1
  900. package/lib/util/component/component.mjs +0 -26
  901. package/lib/util/component/component.mjs.map +0 -1
  902. package/lib/util/component/index.mjs +0 -65
  903. package/lib/util/component/index.mjs.map +0 -1
  904. package/lib/util/component/inject-self.mjs +0 -10
  905. package/lib/util/component/inject-self.mjs.map +0 -1
  906. package/lib/util/component/props.mjs +0 -41
  907. package/lib/util/component/props.mjs.map +0 -1
  908. package/lib/util/component/types.mjs +0 -2
  909. package/lib/util/component/types.mjs.map +0 -1
  910. package/lib/util/date/adapters/yuyeon-date-adapter.mjs +0 -111
  911. package/lib/util/date/adapters/yuyeon-date-adapter.mjs.map +0 -1
  912. package/lib/util/date/built-in.mjs +0 -416
  913. package/lib/util/date/built-in.mjs.map +0 -1
  914. package/lib/util/date/index.mjs +0 -4
  915. package/lib/util/date/index.mjs.map +0 -1
  916. package/lib/util/date/types.mjs +0 -2
  917. package/lib/util/date/types.mjs.map +0 -1
  918. package/lib/util/debounce.mjs +0 -114
  919. package/lib/util/debounce.mjs.map +0 -1
  920. package/lib/util/dom.mjs +0 -23
  921. package/lib/util/dom.mjs.map +0 -1
  922. package/lib/util/environments.mjs +0 -8
  923. package/lib/util/environments.mjs.map +0 -1
  924. package/lib/util/frame-scheduler.mjs +0 -29
  925. package/lib/util/frame-scheduler.mjs.map +0 -1
  926. package/lib/util/index.mjs +0 -17
  927. package/lib/util/index.mjs.map +0 -1
  928. package/lib/util/parser.mjs +0 -31
  929. package/lib/util/parser.mjs.map +0 -1
  930. package/lib/util/reactivity.mjs +0 -19
  931. package/lib/util/reactivity.mjs.map +0 -1
  932. package/lib/util/rect.mjs +0 -39
  933. package/lib/util/rect.mjs.map +0 -1
  934. package/lib/util/scroll.mjs +0 -28
  935. package/lib/util/scroll.mjs.map +0 -1
  936. package/lib/util/string.mjs +0 -69
  937. package/lib/util/string.mjs.map +0 -1
  938. package/lib/util/ui.mjs +0 -60
  939. package/lib/util/ui.mjs.map +0 -1
  940. package/lib/util/validation.mjs +0 -5
  941. package/lib/util/validation.mjs.map +0 -1
  942. package/lib/util/vue-component/index.mjs +0 -63
  943. package/lib/util/vue-component/index.mjs.map +0 -1
  944. package/lib/util/vue-component/props.mjs +0 -37
  945. package/lib/util/vue-component/props.mjs.map +0 -1
  946. package/lib/util/vue-component/types.mjs +0 -2
  947. package/lib/util/vue-component/types.mjs.map +0 -1
  948. package/lib/util/vue-component.mjs +0 -102
  949. package/lib/util/vue-component.mjs.map +0 -1
@@ -1,349 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2021 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { ViewingConditions } from "./viewing-conditions.mjs";
18
- import { argbFromXyz, linearized } from "../conversion.mjs";
19
- import * as math from "../utils/math-utils.mjs";
20
- /**
21
- * CAM16, a color appearance model. Colors are not just defined by their hex
22
- * code, but rather, a hex code and viewing conditions.
23
- *
24
- * CAM16 instances also have coordinates in the CAM16-UCS space, called J*, a*,
25
- * b*, or jstar, astar, bstar in code. CAM16-UCS is included in the CAM16
26
- * specification, and should be used when measuring distances between colors.
27
- *
28
- * In traditional color spaces, a color can be identified solely by the
29
- * observer's measurement of the color. Color appearance models such as CAM16
30
- * also use information about the environment where the color was
31
- * observed, known as the viewing conditions.
32
- *
33
- * For example, white under the traditional assumption of a midday sun white
34
- * point is accurately measured as a slightly chromatic blue by CAM16. (roughly,
35
- * hue 203, chroma 3, lightness 100)
36
- */
37
- export class Cam16 {
38
- /**
39
- * All of the CAM16 dimensions can be calculated from 3 of the dimensions, in
40
- * the following combinations:
41
- * - {j or q} and {c, m, or s} and hue
42
- * - jstar, astar, bstar
43
- * Prefer using a static method that constructs from 3 of those dimensions.
44
- * This constructor is intended for those methods to use to return all
45
- * possible dimensions.
46
- *
47
- * @param hue
48
- * @param chroma informally, colorfulness / color intensity. like saturation
49
- * in HSL, except perceptually accurate.
50
- * @param j lightness
51
- * @param q brightness; ratio of lightness to white point's lightness
52
- * @param m colorfulness
53
- * @param s saturation; ratio of chroma to white point's chroma
54
- * @param jstar CAM16-UCS J coordinate
55
- * @param astar CAM16-UCS a coordinate
56
- * @param bstar CAM16-UCS b coordinate
57
- */
58
- constructor(hue, chroma, j, q, m, s, jstar, astar, bstar) {
59
- this.hue = hue;
60
- this.chroma = chroma;
61
- this.j = j;
62
- this.q = q;
63
- this.m = m;
64
- this.s = s;
65
- this.jstar = jstar;
66
- this.astar = astar;
67
- this.bstar = bstar;
68
- }
69
-
70
- /**
71
- * CAM16 instances also have coordinates in the CAM16-UCS space, called J*,
72
- * a*, b*, or jstar, astar, bstar in code. CAM16-UCS is included in the CAM16
73
- * specification, and is used to measure distances between colors.
74
- */
75
- distance(other) {
76
- const dJ = this.jstar - other.jstar;
77
- const dA = this.astar - other.astar;
78
- const dB = this.bstar - other.bstar;
79
- const dEPrime = Math.sqrt(dJ * dJ + dA * dA + dB * dB);
80
- const dE = 1.41 * Math.pow(dEPrime, 0.63);
81
- return dE;
82
- }
83
-
84
- /**
85
- * @param argb ARGB representation of a color.
86
- * @return CAM16 color, assuming the color was viewed in default viewing
87
- * conditions.
88
- */
89
- static fromInt(argb) {
90
- return Cam16.fromIntInViewingConditions(argb, ViewingConditions.DEFAULT);
91
- }
92
-
93
- /**
94
- * @param argb ARGB representation of a color.
95
- * @param viewingConditions Information about the environment where the color
96
- * was observed.
97
- * @return CAM16 color.
98
- */
99
- static fromIntInViewingConditions(argb, viewingConditions) {
100
- const red = (argb & 0x00ff0000) >> 16;
101
- const green = (argb & 0x0000ff00) >> 8;
102
- const blue = argb & 0x000000ff;
103
- const redL = linearized(red);
104
- const greenL = linearized(green);
105
- const blueL = linearized(blue);
106
- const x = 0.41233895 * redL + 0.35762064 * greenL + 0.18051042 * blueL;
107
- const y = 0.2126 * redL + 0.7152 * greenL + 0.0722 * blueL;
108
- const z = 0.01932141 * redL + 0.11916382 * greenL + 0.95034478 * blueL;
109
- const rC = 0.401288 * x + 0.650173 * y - 0.051461 * z;
110
- const gC = -0.250268 * x + 1.204414 * y + 0.045854 * z;
111
- const bC = -0.002079 * x + 0.048952 * y + 0.953127 * z;
112
- const rD = viewingConditions.rgbD[0] * rC;
113
- const gD = viewingConditions.rgbD[1] * gC;
114
- const bD = viewingConditions.rgbD[2] * bC;
115
- const rAF = Math.pow(viewingConditions.fl * Math.abs(rD) / 100.0, 0.42);
116
- const gAF = Math.pow(viewingConditions.fl * Math.abs(gD) / 100.0, 0.42);
117
- const bAF = Math.pow(viewingConditions.fl * Math.abs(bD) / 100.0, 0.42);
118
- const rA = math.signum(rD) * 400.0 * rAF / (rAF + 27.13);
119
- const gA = math.signum(gD) * 400.0 * gAF / (gAF + 27.13);
120
- const bA = math.signum(bD) * 400.0 * bAF / (bAF + 27.13);
121
- const a = (11.0 * rA + -12.0 * gA + bA) / 11.0;
122
- const b = (rA + gA - 2.0 * bA) / 9.0;
123
- const u = (20.0 * rA + 20.0 * gA + 21.0 * bA) / 20.0;
124
- const p2 = (40.0 * rA + 20.0 * gA + bA) / 20.0;
125
- const atan2 = Math.atan2(b, a);
126
- const atanDegrees = atan2 * 180.0 / Math.PI;
127
- const hue = atanDegrees < 0 ? atanDegrees + 360.0 : atanDegrees >= 360 ? atanDegrees - 360.0 : atanDegrees;
128
- const hueRadians = hue * Math.PI / 180.0;
129
- const ac = p2 * viewingConditions.nbb;
130
- const j = 100.0 * Math.pow(ac / viewingConditions.aw, viewingConditions.c * viewingConditions.z);
131
- const q = 4.0 / viewingConditions.c * Math.sqrt(j / 100.0) * (viewingConditions.aw + 4.0) * viewingConditions.fLRoot;
132
- const huePrime = hue < 20.14 ? hue + 360 : hue;
133
- const eHue = 0.25 * (Math.cos(huePrime * Math.PI / 180.0 + 2.0) + 3.8);
134
- const p1 = 50000.0 / 13.0 * eHue * viewingConditions.nc * viewingConditions.ncb;
135
- const t = p1 * Math.sqrt(a * a + b * b) / (u + 0.305);
136
- const alpha = Math.pow(t, 0.9) * Math.pow(1.64 - Math.pow(0.29, viewingConditions.n), 0.73);
137
- const c = alpha * Math.sqrt(j / 100.0);
138
- const m = c * viewingConditions.fLRoot;
139
- const s = 50.0 * Math.sqrt(alpha * viewingConditions.c / (viewingConditions.aw + 4.0));
140
- const jstar = (1.0 + 100.0 * 0.007) * j / (1.0 + 0.007 * j);
141
- const mstar = 1.0 / 0.0228 * Math.log(1.0 + 0.0228 * m);
142
- const astar = mstar * Math.cos(hueRadians);
143
- const bstar = mstar * Math.sin(hueRadians);
144
- return new Cam16(hue, c, j, q, m, s, jstar, astar, bstar);
145
- }
146
-
147
- /**
148
- * @param j CAM16 lightness
149
- * @param c CAM16 chroma
150
- * @param h CAM16 hue
151
- */
152
- static fromJch(j, c, h) {
153
- return Cam16.fromJchInViewingConditions(j, c, h, ViewingConditions.DEFAULT);
154
- }
155
-
156
- /**
157
- * @param j CAM16 lightness
158
- * @param c CAM16 chroma
159
- * @param h CAM16 hue
160
- * @param viewingConditions Information about the environment where the color
161
- * was observed.
162
- */
163
- static fromJchInViewingConditions(j, c, h, viewingConditions) {
164
- const q = 4.0 / viewingConditions.c * Math.sqrt(j / 100.0) * (viewingConditions.aw + 4.0) * viewingConditions.fLRoot;
165
- const m = c * viewingConditions.fLRoot;
166
- const alpha = c / Math.sqrt(j / 100.0);
167
- const s = 50.0 * Math.sqrt(alpha * viewingConditions.c / (viewingConditions.aw + 4.0));
168
- const hueRadians = h * Math.PI / 180.0;
169
- const jstar = (1.0 + 100.0 * 0.007) * j / (1.0 + 0.007 * j);
170
- const mstar = 1.0 / 0.0228 * Math.log(1.0 + 0.0228 * m);
171
- const astar = mstar * Math.cos(hueRadians);
172
- const bstar = mstar * Math.sin(hueRadians);
173
- return new Cam16(h, c, j, q, m, s, jstar, astar, bstar);
174
- }
175
-
176
- /**
177
- * @param jstar CAM16-UCS lightness.
178
- * @param astar CAM16-UCS a dimension. Like a* in L*a*b*, it is a Cartesian
179
- * coordinate on the Y axis.
180
- * @param bstar CAM16-UCS b dimension. Like a* in L*a*b*, it is a Cartesian
181
- * coordinate on the X axis.
182
- */
183
- static fromUcs(jstar, astar, bstar) {
184
- return Cam16.fromUcsInViewingConditions(jstar, astar, bstar, ViewingConditions.DEFAULT);
185
- }
186
-
187
- /**
188
- * @param jstar CAM16-UCS lightness.
189
- * @param astar CAM16-UCS a dimension. Like a* in L*a*b*, it is a Cartesian
190
- * coordinate on the Y axis.
191
- * @param bstar CAM16-UCS b dimension. Like a* in L*a*b*, it is a Cartesian
192
- * coordinate on the X axis.
193
- * @param viewingConditions Information about the environment where the color
194
- * was observed.
195
- */
196
- static fromUcsInViewingConditions(jstar, astar, bstar, viewingConditions) {
197
- const a = astar;
198
- const b = bstar;
199
- const m = Math.sqrt(a * a + b * b);
200
- const M = (Math.exp(m * 0.0228) - 1.0) / 0.0228;
201
- const c = M / viewingConditions.fLRoot;
202
- let h = Math.atan2(b, a) * (180.0 / Math.PI);
203
- if (h < 0.0) {
204
- h += 360.0;
205
- }
206
- const j = jstar / (1 - (jstar - 100) * 0.007);
207
- return Cam16.fromJchInViewingConditions(j, c, h, viewingConditions);
208
- }
209
-
210
- /**
211
- * @return ARGB representation of color, assuming the color was viewed in
212
- * default viewing conditions, which are near-identical to the default
213
- * viewing conditions for sRGB.
214
- */
215
- toInt() {
216
- return this.viewed(ViewingConditions.DEFAULT);
217
- }
218
-
219
- /**
220
- * @param viewingConditions Information about the environment where the color
221
- * will be viewed.
222
- * @return ARGB representation of color
223
- */
224
- viewed(viewingConditions) {
225
- const alpha = this.chroma === 0.0 || this.j === 0.0 ? 0.0 : this.chroma / Math.sqrt(this.j / 100.0);
226
- const t = Math.pow(alpha / Math.pow(1.64 - Math.pow(0.29, viewingConditions.n), 0.73), 1.0 / 0.9);
227
- const hRad = this.hue * Math.PI / 180.0;
228
- const eHue = 0.25 * (Math.cos(hRad + 2.0) + 3.8);
229
- const ac = viewingConditions.aw * Math.pow(this.j / 100.0, 1.0 / viewingConditions.c / viewingConditions.z);
230
- const p1 = eHue * (50000.0 / 13.0) * viewingConditions.nc * viewingConditions.ncb;
231
- const p2 = ac / viewingConditions.nbb;
232
- const hSin = Math.sin(hRad);
233
- const hCos = Math.cos(hRad);
234
- const gamma = 23.0 * (p2 + 0.305) * t / (23.0 * p1 + 11.0 * t * hCos + 108.0 * t * hSin);
235
- const a = gamma * hCos;
236
- const b = gamma * hSin;
237
- const rA = (460.0 * p2 + 451.0 * a + 288.0 * b) / 1403.0;
238
- const gA = (460.0 * p2 - 891.0 * a - 261.0 * b) / 1403.0;
239
- const bA = (460.0 * p2 - 220.0 * a - 6300.0 * b) / 1403.0;
240
- const rCBase = Math.max(0, 27.13 * Math.abs(rA) / (400.0 - Math.abs(rA)));
241
- const rC = math.signum(rA) * (100.0 / viewingConditions.fl) * Math.pow(rCBase, 1.0 / 0.42);
242
- const gCBase = Math.max(0, 27.13 * Math.abs(gA) / (400.0 - Math.abs(gA)));
243
- const gC = math.signum(gA) * (100.0 / viewingConditions.fl) * Math.pow(gCBase, 1.0 / 0.42);
244
- const bCBase = Math.max(0, 27.13 * Math.abs(bA) / (400.0 - Math.abs(bA)));
245
- const bC = math.signum(bA) * (100.0 / viewingConditions.fl) * Math.pow(bCBase, 1.0 / 0.42);
246
- const rF = rC / viewingConditions.rgbD[0];
247
- const gF = gC / viewingConditions.rgbD[1];
248
- const bF = bC / viewingConditions.rgbD[2];
249
- const x = 1.86206786 * rF - 1.01125463 * gF + 0.14918677 * bF;
250
- const y = 0.38752654 * rF + 0.62144744 * gF - 0.00897398 * bF;
251
- const z = -0.0158415 * rF - 0.03412294 * gF + 1.04996444 * bF;
252
- const argb = argbFromXyz(x, y, z);
253
- return argb;
254
- }
255
-
256
- /// Given color expressed in XYZ and viewed in [viewingConditions], convert to
257
- /// CAM16.
258
- static fromXyzInViewingConditions(x, y, z, viewingConditions) {
259
- // Transform XYZ to 'cone'/'rgb' responses
260
-
261
- const rC = 0.401288 * x + 0.650173 * y - 0.051461 * z;
262
- const gC = -0.250268 * x + 1.204414 * y + 0.045854 * z;
263
- const bC = -0.002079 * x + 0.048952 * y + 0.953127 * z;
264
-
265
- // Discount illuminant
266
- const rD = viewingConditions.rgbD[0] * rC;
267
- const gD = viewingConditions.rgbD[1] * gC;
268
- const bD = viewingConditions.rgbD[2] * bC;
269
-
270
- // chromatic adaptation
271
- const rAF = Math.pow(viewingConditions.fl * Math.abs(rD) / 100.0, 0.42);
272
- const gAF = Math.pow(viewingConditions.fl * Math.abs(gD) / 100.0, 0.42);
273
- const bAF = Math.pow(viewingConditions.fl * Math.abs(bD) / 100.0, 0.42);
274
- const rA = math.signum(rD) * 400.0 * rAF / (rAF + 27.13);
275
- const gA = math.signum(gD) * 400.0 * gAF / (gAF + 27.13);
276
- const bA = math.signum(bD) * 400.0 * bAF / (bAF + 27.13);
277
-
278
- // redness-greenness
279
- const a = (11.0 * rA + -12.0 * gA + bA) / 11.0;
280
- // yellowness-blueness
281
- const b = (rA + gA - 2.0 * bA) / 9.0;
282
-
283
- // auxiliary components
284
- const u = (20.0 * rA + 20.0 * gA + 21.0 * bA) / 20.0;
285
- const p2 = (40.0 * rA + 20.0 * gA + bA) / 20.0;
286
-
287
- // hue
288
- const atan2 = Math.atan2(b, a);
289
- const atanDegrees = atan2 * 180.0 / Math.PI;
290
- const hue = atanDegrees < 0 ? atanDegrees + 360.0 : atanDegrees >= 360 ? atanDegrees - 360 : atanDegrees;
291
- const hueRadians = hue * Math.PI / 180.0;
292
-
293
- // achromatic response to color
294
- const ac = p2 * viewingConditions.nbb;
295
-
296
- // CAM16 lightness and brightness
297
- const J = 100.0 * Math.pow(ac / viewingConditions.aw, viewingConditions.c * viewingConditions.z);
298
- const Q = 4.0 / viewingConditions.c * Math.sqrt(J / 100.0) * (viewingConditions.aw + 4.0) * viewingConditions.fLRoot;
299
- const huePrime = hue < 20.14 ? hue + 360 : hue;
300
- const eHue = 1.0 / 4.0 * (Math.cos(huePrime * Math.PI / 180.0 + 2.0) + 3.8);
301
- const p1 = 50000.0 / 13.0 * eHue * viewingConditions.nc * viewingConditions.ncb;
302
- const t = p1 * Math.sqrt(a * a + b * b) / (u + 0.305);
303
- const alpha = Math.pow(t, 0.9) * Math.pow(1.64 - Math.pow(0.29, viewingConditions.n), 0.73);
304
- // CAM16 chroma, colorfulness, chroma
305
- const C = alpha * Math.sqrt(J / 100.0);
306
- const M = C * viewingConditions.fLRoot;
307
- const s = 50.0 * Math.sqrt(alpha * viewingConditions.c / (viewingConditions.aw + 4.0));
308
-
309
- // CAM16-UCS components
310
- const jstar = (1.0 + 100.0 * 0.007) * J / (1.0 + 0.007 * J);
311
- const mstar = Math.log(1.0 + 0.0228 * M) / 0.0228;
312
- const astar = mstar * Math.cos(hueRadians);
313
- const bstar = mstar * Math.sin(hueRadians);
314
- return new Cam16(hue, C, J, Q, M, s, jstar, astar, bstar);
315
- }
316
-
317
- /// XYZ representation of CAM16 seen in [viewingConditions].
318
- xyzInViewingConditions(viewingConditions) {
319
- const alpha = this.chroma === 0.0 || this.j === 0.0 ? 0.0 : this.chroma / Math.sqrt(this.j / 100.0);
320
- const t = Math.pow(alpha / Math.pow(1.64 - Math.pow(0.29, viewingConditions.n), 0.73), 1.0 / 0.9);
321
- const hRad = this.hue * Math.PI / 180.0;
322
- const eHue = 0.25 * (Math.cos(hRad + 2.0) + 3.8);
323
- const ac = viewingConditions.aw * Math.pow(this.j / 100.0, 1.0 / viewingConditions.c / viewingConditions.z);
324
- const p1 = eHue * (50000.0 / 13.0) * viewingConditions.nc * viewingConditions.ncb;
325
- const p2 = ac / viewingConditions.nbb;
326
- const hSin = Math.sin(hRad);
327
- const hCos = Math.cos(hRad);
328
- const gamma = 23.0 * (p2 + 0.305) * t / (23.0 * p1 + 11 * t * hCos + 108.0 * t * hSin);
329
- const a = gamma * hCos;
330
- const b = gamma * hSin;
331
- const rA = (460.0 * p2 + 451.0 * a + 288.0 * b) / 1403.0;
332
- const gA = (460.0 * p2 - 891.0 * a - 261.0 * b) / 1403.0;
333
- const bA = (460.0 * p2 - 220.0 * a - 6300.0 * b) / 1403.0;
334
- const rCBase = Math.max(0, 27.13 * Math.abs(rA) / (400.0 - Math.abs(rA)));
335
- const rC = math.signum(rA) * (100.0 / viewingConditions.fl) * Math.pow(rCBase, 1.0 / 0.42);
336
- const gCBase = Math.max(0, 27.13 * Math.abs(gA) / (400.0 - Math.abs(gA)));
337
- const gC = math.signum(gA) * (100.0 / viewingConditions.fl) * Math.pow(gCBase, 1.0 / 0.42);
338
- const bCBase = Math.max(0, 27.13 * Math.abs(bA) / (400.0 - Math.abs(bA)));
339
- const bC = math.signum(bA) * (100.0 / viewingConditions.fl) * Math.pow(bCBase, 1.0 / 0.42);
340
- const rF = rC / viewingConditions.rgbD[0];
341
- const gF = gC / viewingConditions.rgbD[1];
342
- const bF = bC / viewingConditions.rgbD[2];
343
- const x = 1.86206786 * rF - 1.01125463 * gF + 0.14918677 * bF;
344
- const y = 0.38752654 * rF + 0.62144744 * gF - 0.00897398 * bF;
345
- const z = -0.0158415 * rF - 0.03412294 * gF + 1.04996444 * bF;
346
- return [x, y, z];
347
- }
348
- }
349
- //# sourceMappingURL=cam16.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cam16.mjs","names":["ViewingConditions","argbFromXyz","linearized","math","Cam16","constructor","hue","chroma","j","q","m","s","jstar","astar","bstar","distance","other","dJ","dA","dB","dEPrime","Math","sqrt","dE","pow","fromInt","argb","fromIntInViewingConditions","DEFAULT","viewingConditions","red","green","blue","redL","greenL","blueL","x","y","z","rC","gC","bC","rD","rgbD","gD","bD","rAF","fl","abs","gAF","bAF","rA","signum","gA","bA","a","b","u","p2","atan2","atanDegrees","PI","hueRadians","ac","nbb","aw","c","fLRoot","huePrime","eHue","cos","p1","nc","ncb","t","alpha","n","mstar","log","sin","fromJch","h","fromJchInViewingConditions","fromUcs","fromUcsInViewingConditions","M","exp","toInt","viewed","hRad","hSin","hCos","gamma","rCBase","max","gCBase","bCBase","rF","gF","bF","fromXyzInViewingConditions","J","Q","C","xyzInViewingConditions"],"sources":["../../../../src/util/color/hct/cam16.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { ViewingConditions } from './viewing-conditions';\n\nimport { argbFromXyz, linearized } from '../conversion';\nimport * as math from '../utils/math-utils';\n\n/**\n * CAM16, a color appearance model. Colors are not just defined by their hex\n * code, but rather, a hex code and viewing conditions.\n *\n * CAM16 instances also have coordinates in the CAM16-UCS space, called J*, a*,\n * b*, or jstar, astar, bstar in code. CAM16-UCS is included in the CAM16\n * specification, and should be used when measuring distances between colors.\n *\n * In traditional color spaces, a color can be identified solely by the\n * observer's measurement of the color. Color appearance models such as CAM16\n * also use information about the environment where the color was\n * observed, known as the viewing conditions.\n *\n * For example, white under the traditional assumption of a midday sun white\n * point is accurately measured as a slightly chromatic blue by CAM16. (roughly,\n * hue 203, chroma 3, lightness 100)\n */\nexport class Cam16 {\n /**\n * All of the CAM16 dimensions can be calculated from 3 of the dimensions, in\n * the following combinations:\n * - {j or q} and {c, m, or s} and hue\n * - jstar, astar, bstar\n * Prefer using a static method that constructs from 3 of those dimensions.\n * This constructor is intended for those methods to use to return all\n * possible dimensions.\n *\n * @param hue\n * @param chroma informally, colorfulness / color intensity. like saturation\n * in HSL, except perceptually accurate.\n * @param j lightness\n * @param q brightness; ratio of lightness to white point's lightness\n * @param m colorfulness\n * @param s saturation; ratio of chroma to white point's chroma\n * @param jstar CAM16-UCS J coordinate\n * @param astar CAM16-UCS a coordinate\n * @param bstar CAM16-UCS b coordinate\n */\n constructor(\n readonly hue: number,\n readonly chroma: number,\n readonly j: number,\n readonly q: number,\n readonly m: number,\n readonly s: number,\n readonly jstar: number,\n readonly astar: number,\n readonly bstar: number,\n ) {}\n\n /**\n * CAM16 instances also have coordinates in the CAM16-UCS space, called J*,\n * a*, b*, or jstar, astar, bstar in code. CAM16-UCS is included in the CAM16\n * specification, and is used to measure distances between colors.\n */\n distance(other: Cam16): number {\n const dJ = this.jstar - other.jstar;\n const dA = this.astar - other.astar;\n const dB = this.bstar - other.bstar;\n const dEPrime = Math.sqrt(dJ * dJ + dA * dA + dB * dB);\n const dE = 1.41 * Math.pow(dEPrime, 0.63);\n return dE;\n }\n\n /**\n * @param argb ARGB representation of a color.\n * @return CAM16 color, assuming the color was viewed in default viewing\n * conditions.\n */\n static fromInt(argb: number): Cam16 {\n return Cam16.fromIntInViewingConditions(argb, ViewingConditions.DEFAULT);\n }\n\n /**\n * @param argb ARGB representation of a color.\n * @param viewingConditions Information about the environment where the color\n * was observed.\n * @return CAM16 color.\n */\n static fromIntInViewingConditions(\n argb: number,\n viewingConditions: ViewingConditions,\n ): Cam16 {\n const red = (argb & 0x00ff0000) >> 16;\n const green = (argb & 0x0000ff00) >> 8;\n const blue = argb & 0x000000ff;\n const redL = linearized(red);\n const greenL = linearized(green);\n const blueL = linearized(blue);\n const x = 0.41233895 * redL + 0.35762064 * greenL + 0.18051042 * blueL;\n const y = 0.2126 * redL + 0.7152 * greenL + 0.0722 * blueL;\n const z = 0.01932141 * redL + 0.11916382 * greenL + 0.95034478 * blueL;\n\n const rC = 0.401288 * x + 0.650173 * y - 0.051461 * z;\n const gC = -0.250268 * x + 1.204414 * y + 0.045854 * z;\n const bC = -0.002079 * x + 0.048952 * y + 0.953127 * z;\n\n const rD = viewingConditions.rgbD[0] * rC;\n const gD = viewingConditions.rgbD[1] * gC;\n const bD = viewingConditions.rgbD[2] * bC;\n\n const rAF = Math.pow((viewingConditions.fl * Math.abs(rD)) / 100.0, 0.42);\n const gAF = Math.pow((viewingConditions.fl * Math.abs(gD)) / 100.0, 0.42);\n const bAF = Math.pow((viewingConditions.fl * Math.abs(bD)) / 100.0, 0.42);\n\n const rA = (math.signum(rD) * 400.0 * rAF) / (rAF + 27.13);\n const gA = (math.signum(gD) * 400.0 * gAF) / (gAF + 27.13);\n const bA = (math.signum(bD) * 400.0 * bAF) / (bAF + 27.13);\n\n const a = (11.0 * rA + -12.0 * gA + bA) / 11.0;\n const b = (rA + gA - 2.0 * bA) / 9.0;\n const u = (20.0 * rA + 20.0 * gA + 21.0 * bA) / 20.0;\n const p2 = (40.0 * rA + 20.0 * gA + bA) / 20.0;\n const atan2 = Math.atan2(b, a);\n const atanDegrees = (atan2 * 180.0) / Math.PI;\n const hue =\n atanDegrees < 0\n ? atanDegrees + 360.0\n : atanDegrees >= 360\n ? atanDegrees - 360.0\n : atanDegrees;\n const hueRadians = (hue * Math.PI) / 180.0;\n\n const ac = p2 * viewingConditions.nbb;\n const j =\n 100.0 *\n Math.pow(\n ac / viewingConditions.aw,\n viewingConditions.c * viewingConditions.z,\n );\n const q =\n (4.0 / viewingConditions.c) *\n Math.sqrt(j / 100.0) *\n (viewingConditions.aw + 4.0) *\n viewingConditions.fLRoot;\n const huePrime = hue < 20.14 ? hue + 360 : hue;\n const eHue = 0.25 * (Math.cos((huePrime * Math.PI) / 180.0 + 2.0) + 3.8);\n const p1 =\n (50000.0 / 13.0) * eHue * viewingConditions.nc * viewingConditions.ncb;\n const t = (p1 * Math.sqrt(a * a + b * b)) / (u + 0.305);\n const alpha =\n Math.pow(t, 0.9) *\n Math.pow(1.64 - Math.pow(0.29, viewingConditions.n), 0.73);\n const c = alpha * Math.sqrt(j / 100.0);\n const m = c * viewingConditions.fLRoot;\n const s =\n 50.0 *\n Math.sqrt((alpha * viewingConditions.c) / (viewingConditions.aw + 4.0));\n const jstar = ((1.0 + 100.0 * 0.007) * j) / (1.0 + 0.007 * j);\n const mstar = (1.0 / 0.0228) * Math.log(1.0 + 0.0228 * m);\n const astar = mstar * Math.cos(hueRadians);\n const bstar = mstar * Math.sin(hueRadians);\n\n return new Cam16(hue, c, j, q, m, s, jstar, astar, bstar);\n }\n\n /**\n * @param j CAM16 lightness\n * @param c CAM16 chroma\n * @param h CAM16 hue\n */\n static fromJch(j: number, c: number, h: number): Cam16 {\n return Cam16.fromJchInViewingConditions(j, c, h, ViewingConditions.DEFAULT);\n }\n\n /**\n * @param j CAM16 lightness\n * @param c CAM16 chroma\n * @param h CAM16 hue\n * @param viewingConditions Information about the environment where the color\n * was observed.\n */\n static fromJchInViewingConditions(\n j: number,\n c: number,\n h: number,\n viewingConditions: ViewingConditions,\n ): Cam16 {\n const q =\n (4.0 / viewingConditions.c) *\n Math.sqrt(j / 100.0) *\n (viewingConditions.aw + 4.0) *\n viewingConditions.fLRoot;\n const m = c * viewingConditions.fLRoot;\n const alpha = c / Math.sqrt(j / 100.0);\n const s =\n 50.0 *\n Math.sqrt((alpha * viewingConditions.c) / (viewingConditions.aw + 4.0));\n const hueRadians = (h * Math.PI) / 180.0;\n const jstar = ((1.0 + 100.0 * 0.007) * j) / (1.0 + 0.007 * j);\n const mstar = (1.0 / 0.0228) * Math.log(1.0 + 0.0228 * m);\n const astar = mstar * Math.cos(hueRadians);\n const bstar = mstar * Math.sin(hueRadians);\n return new Cam16(h, c, j, q, m, s, jstar, astar, bstar);\n }\n\n /**\n * @param jstar CAM16-UCS lightness.\n * @param astar CAM16-UCS a dimension. Like a* in L*a*b*, it is a Cartesian\n * coordinate on the Y axis.\n * @param bstar CAM16-UCS b dimension. Like a* in L*a*b*, it is a Cartesian\n * coordinate on the X axis.\n */\n static fromUcs(jstar: number, astar: number, bstar: number): Cam16 {\n return Cam16.fromUcsInViewingConditions(\n jstar,\n astar,\n bstar,\n ViewingConditions.DEFAULT,\n );\n }\n\n /**\n * @param jstar CAM16-UCS lightness.\n * @param astar CAM16-UCS a dimension. Like a* in L*a*b*, it is a Cartesian\n * coordinate on the Y axis.\n * @param bstar CAM16-UCS b dimension. Like a* in L*a*b*, it is a Cartesian\n * coordinate on the X axis.\n * @param viewingConditions Information about the environment where the color\n * was observed.\n */\n static fromUcsInViewingConditions(\n jstar: number,\n astar: number,\n bstar: number,\n viewingConditions: ViewingConditions,\n ): Cam16 {\n const a = astar;\n const b = bstar;\n const m = Math.sqrt(a * a + b * b);\n const M = (Math.exp(m * 0.0228) - 1.0) / 0.0228;\n const c = M / viewingConditions.fLRoot;\n let h = Math.atan2(b, a) * (180.0 / Math.PI);\n if (h < 0.0) {\n h += 360.0;\n }\n const j = jstar / (1 - (jstar - 100) * 0.007);\n return Cam16.fromJchInViewingConditions(j, c, h, viewingConditions);\n }\n\n /**\n * @return ARGB representation of color, assuming the color was viewed in\n * default viewing conditions, which are near-identical to the default\n * viewing conditions for sRGB.\n */\n toInt(): number {\n return this.viewed(ViewingConditions.DEFAULT);\n }\n\n /**\n * @param viewingConditions Information about the environment where the color\n * will be viewed.\n * @return ARGB representation of color\n */\n viewed(viewingConditions: ViewingConditions): number {\n const alpha =\n this.chroma === 0.0 || this.j === 0.0\n ? 0.0\n : this.chroma / Math.sqrt(this.j / 100.0);\n\n const t = Math.pow(\n alpha / Math.pow(1.64 - Math.pow(0.29, viewingConditions.n), 0.73),\n 1.0 / 0.9,\n );\n const hRad = (this.hue * Math.PI) / 180.0;\n\n const eHue = 0.25 * (Math.cos(hRad + 2.0) + 3.8);\n const ac =\n viewingConditions.aw *\n Math.pow(this.j / 100.0, 1.0 / viewingConditions.c / viewingConditions.z);\n const p1 =\n eHue * (50000.0 / 13.0) * viewingConditions.nc * viewingConditions.ncb;\n const p2 = ac / viewingConditions.nbb;\n\n const hSin = Math.sin(hRad);\n const hCos = Math.cos(hRad);\n\n const gamma =\n (23.0 * (p2 + 0.305) * t) /\n (23.0 * p1 + 11.0 * t * hCos + 108.0 * t * hSin);\n const a = gamma * hCos;\n const b = gamma * hSin;\n const rA = (460.0 * p2 + 451.0 * a + 288.0 * b) / 1403.0;\n const gA = (460.0 * p2 - 891.0 * a - 261.0 * b) / 1403.0;\n const bA = (460.0 * p2 - 220.0 * a - 6300.0 * b) / 1403.0;\n\n const rCBase = Math.max(0, (27.13 * Math.abs(rA)) / (400.0 - Math.abs(rA)));\n const rC =\n math.signum(rA) *\n (100.0 / viewingConditions.fl) *\n Math.pow(rCBase, 1.0 / 0.42);\n const gCBase = Math.max(0, (27.13 * Math.abs(gA)) / (400.0 - Math.abs(gA)));\n const gC =\n math.signum(gA) *\n (100.0 / viewingConditions.fl) *\n Math.pow(gCBase, 1.0 / 0.42);\n const bCBase = Math.max(0, (27.13 * Math.abs(bA)) / (400.0 - Math.abs(bA)));\n const bC =\n math.signum(bA) *\n (100.0 / viewingConditions.fl) *\n Math.pow(bCBase, 1.0 / 0.42);\n const rF = rC / viewingConditions.rgbD[0];\n const gF = gC / viewingConditions.rgbD[1];\n const bF = bC / viewingConditions.rgbD[2];\n\n const x = 1.86206786 * rF - 1.01125463 * gF + 0.14918677 * bF;\n const y = 0.38752654 * rF + 0.62144744 * gF - 0.00897398 * bF;\n const z = -0.0158415 * rF - 0.03412294 * gF + 1.04996444 * bF;\n\n const argb = argbFromXyz(x, y, z);\n return argb;\n }\n\n /// Given color expressed in XYZ and viewed in [viewingConditions], convert to\n /// CAM16.\n static fromXyzInViewingConditions(\n x: number,\n y: number,\n z: number,\n viewingConditions: ViewingConditions,\n ): Cam16 {\n // Transform XYZ to 'cone'/'rgb' responses\n\n const rC = 0.401288 * x + 0.650173 * y - 0.051461 * z;\n const gC = -0.250268 * x + 1.204414 * y + 0.045854 * z;\n const bC = -0.002079 * x + 0.048952 * y + 0.953127 * z;\n\n // Discount illuminant\n const rD = viewingConditions.rgbD[0] * rC;\n const gD = viewingConditions.rgbD[1] * gC;\n const bD = viewingConditions.rgbD[2] * bC;\n\n // chromatic adaptation\n const rAF = Math.pow((viewingConditions.fl * Math.abs(rD)) / 100.0, 0.42);\n const gAF = Math.pow((viewingConditions.fl * Math.abs(gD)) / 100.0, 0.42);\n const bAF = Math.pow((viewingConditions.fl * Math.abs(bD)) / 100.0, 0.42);\n const rA = (math.signum(rD) * 400.0 * rAF) / (rAF + 27.13);\n const gA = (math.signum(gD) * 400.0 * gAF) / (gAF + 27.13);\n const bA = (math.signum(bD) * 400.0 * bAF) / (bAF + 27.13);\n\n // redness-greenness\n const a = (11.0 * rA + -12.0 * gA + bA) / 11.0;\n // yellowness-blueness\n const b = (rA + gA - 2.0 * bA) / 9.0;\n\n // auxiliary components\n const u = (20.0 * rA + 20.0 * gA + 21.0 * bA) / 20.0;\n const p2 = (40.0 * rA + 20.0 * gA + bA) / 20.0;\n\n // hue\n const atan2 = Math.atan2(b, a);\n const atanDegrees = (atan2 * 180.0) / Math.PI;\n const hue =\n atanDegrees < 0\n ? atanDegrees + 360.0\n : atanDegrees >= 360\n ? atanDegrees - 360\n : atanDegrees;\n const hueRadians = (hue * Math.PI) / 180.0;\n\n // achromatic response to color\n const ac = p2 * viewingConditions.nbb;\n\n // CAM16 lightness and brightness\n const J =\n 100.0 *\n Math.pow(\n ac / viewingConditions.aw,\n viewingConditions.c * viewingConditions.z,\n );\n const Q =\n (4.0 / viewingConditions.c) *\n Math.sqrt(J / 100.0) *\n (viewingConditions.aw + 4.0) *\n viewingConditions.fLRoot;\n\n const huePrime = hue < 20.14 ? hue + 360 : hue;\n const eHue =\n (1.0 / 4.0) * (Math.cos((huePrime * Math.PI) / 180.0 + 2.0) + 3.8);\n const p1 =\n (50000.0 / 13.0) * eHue * viewingConditions.nc * viewingConditions.ncb;\n const t = (p1 * Math.sqrt(a * a + b * b)) / (u + 0.305);\n const alpha =\n Math.pow(t, 0.9) *\n Math.pow(1.64 - Math.pow(0.29, viewingConditions.n), 0.73);\n // CAM16 chroma, colorfulness, chroma\n const C = alpha * Math.sqrt(J / 100.0);\n const M = C * viewingConditions.fLRoot;\n const s =\n 50.0 *\n Math.sqrt((alpha * viewingConditions.c) / (viewingConditions.aw + 4.0));\n\n // CAM16-UCS components\n const jstar = ((1.0 + 100.0 * 0.007) * J) / (1.0 + 0.007 * J);\n const mstar = Math.log(1.0 + 0.0228 * M) / 0.0228;\n const astar = mstar * Math.cos(hueRadians);\n const bstar = mstar * Math.sin(hueRadians);\n return new Cam16(hue, C, J, Q, M, s, jstar, astar, bstar);\n }\n\n /// XYZ representation of CAM16 seen in [viewingConditions].\n xyzInViewingConditions(viewingConditions: ViewingConditions): number[] {\n const alpha =\n this.chroma === 0.0 || this.j === 0.0\n ? 0.0\n : this.chroma / Math.sqrt(this.j / 100.0);\n\n const t = Math.pow(\n alpha / Math.pow(1.64 - Math.pow(0.29, viewingConditions.n), 0.73),\n 1.0 / 0.9,\n );\n const hRad = (this.hue * Math.PI) / 180.0;\n\n const eHue = 0.25 * (Math.cos(hRad + 2.0) + 3.8);\n const ac =\n viewingConditions.aw *\n Math.pow(this.j / 100.0, 1.0 / viewingConditions.c / viewingConditions.z);\n const p1 =\n eHue * (50000.0 / 13.0) * viewingConditions.nc * viewingConditions.ncb;\n\n const p2 = ac / viewingConditions.nbb;\n\n const hSin = Math.sin(hRad);\n const hCos = Math.cos(hRad);\n\n const gamma =\n (23.0 * (p2 + 0.305) * t) /\n (23.0 * p1 + 11 * t * hCos + 108.0 * t * hSin);\n const a = gamma * hCos;\n const b = gamma * hSin;\n const rA = (460.0 * p2 + 451.0 * a + 288.0 * b) / 1403.0;\n const gA = (460.0 * p2 - 891.0 * a - 261.0 * b) / 1403.0;\n const bA = (460.0 * p2 - 220.0 * a - 6300.0 * b) / 1403.0;\n\n const rCBase = Math.max(0, (27.13 * Math.abs(rA)) / (400.0 - Math.abs(rA)));\n const rC =\n math.signum(rA) *\n (100.0 / viewingConditions.fl) *\n Math.pow(rCBase, 1.0 / 0.42);\n const gCBase = Math.max(0, (27.13 * Math.abs(gA)) / (400.0 - Math.abs(gA)));\n const gC =\n math.signum(gA) *\n (100.0 / viewingConditions.fl) *\n Math.pow(gCBase, 1.0 / 0.42);\n const bCBase = Math.max(0, (27.13 * Math.abs(bA)) / (400.0 - Math.abs(bA)));\n const bC =\n math.signum(bA) *\n (100.0 / viewingConditions.fl) *\n Math.pow(bCBase, 1.0 / 0.42);\n const rF = rC / viewingConditions.rgbD[0];\n const gF = gC / viewingConditions.rgbD[1];\n const bF = bC / viewingConditions.rgbD[2];\n\n const x = 1.86206786 * rF - 1.01125463 * gF + 0.14918677 * bF;\n const y = 0.38752654 * rF + 0.62144744 * gF - 0.00897398 * bF;\n const z = -0.0158415 * rF - 0.03412294 * gF + 1.04996444 * bF;\n\n return [x, y, z];\n }\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAfA,SAgBSA,iBAAiB;AAAA,SAEjBC,WAAW,EAAEC,UAAU;AAAA,OACzB,KAAKC,IAAI;AAEhB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,KAAK,CAAC;EACjB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,WAAWA,CACAC,GAAW,EACXC,MAAc,EACdC,CAAS,EACTC,CAAS,EACTC,CAAS,EACTC,CAAS,EACTC,KAAa,EACbC,KAAa,EACbC,KAAa,EACtB;IAAA,KATSR,GAAW,GAAXA,GAAW;IAAA,KACXC,MAAc,GAAdA,MAAc;IAAA,KACdC,CAAS,GAATA,CAAS;IAAA,KACTC,CAAS,GAATA,CAAS;IAAA,KACTC,CAAS,GAATA,CAAS;IAAA,KACTC,CAAS,GAATA,C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