yuyeon 0.1.0-rc.19 → 0.1.0-rc.20

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 (374) hide show
  1. package/dist/yuyeon.js +3507 -3246
  2. package/dist/yuyeon.umd.cjs +11 -11
  3. package/lib/components/card/YCard.mjs +16 -9
  4. package/lib/components/card/YCard.mjs.map +1 -1
  5. package/lib/components/hover/YHover.mjs +11 -4
  6. package/lib/components/hover/YHover.mjs.map +1 -1
  7. package/lib/components/hover/index.mjs +2 -0
  8. package/lib/components/hover/index.mjs.map +1 -0
  9. package/lib/components/index.mjs +1 -0
  10. package/lib/components/index.mjs.map +1 -1
  11. package/lib/components/layer/YLayer.mjs +17 -5
  12. package/lib/components/layer/YLayer.mjs.map +1 -1
  13. package/lib/components/layer/base.mjs +1 -1
  14. package/lib/components/layer/base.mjs.map +1 -1
  15. package/lib/components/layer/scroll-strategies.mjs +1 -1
  16. package/lib/components/layer/scroll-strategies.mjs.map +1 -1
  17. package/lib/components/menu/YMenu.mjs +2 -1
  18. package/lib/components/menu/YMenu.mjs.map +1 -1
  19. package/lib/composables/coordinate/levitation.mjs.map +1 -1
  20. package/lib/composables/index.mjs +1 -0
  21. package/lib/composables/index.mjs.map +1 -1
  22. package/lib/composables/theme/index.mjs +6 -3
  23. package/lib/composables/theme/index.mjs.map +1 -1
  24. package/package.json +1 -1
  25. package/types/abstract/items.d.ts +5 -4
  26. package/types/components/alert/YAlert.d.ts +3 -2
  27. package/types/components/app/YApp.d.ts +3 -2
  28. package/types/components/badge/YBadge.d.ts +9 -8
  29. package/types/components/button/YButton.d.ts +27 -29
  30. package/types/components/card/YCard.d.ts +6 -3
  31. package/types/components/card/YCardBody.d.ts +1 -1
  32. package/types/components/card/YCardFooter.d.ts +1 -1
  33. package/types/components/card/YCardHeader.d.ts +1 -1
  34. package/types/components/checkbox/YCheckbox.d.ts +4 -3
  35. package/types/components/checkbox/YInputCheckbox.d.ts +7 -6
  36. package/types/components/checkbox/index.d.ts +1 -1
  37. package/types/components/chip/YChip.d.ts +3 -2
  38. package/types/components/date-picker/YDateCalendar.d.ts +16 -15
  39. package/types/components/date-picker/YDatePicker.d.ts +41 -40
  40. package/types/components/date-picker/YDatePickerControl.d.ts +29 -28
  41. package/types/components/date-picker/YMonthPicker.d.ts +6 -5
  42. package/types/components/date-picker/YYearPicker.d.ts +3 -2
  43. package/types/components/dialog/YDialog.d.ts +414 -333
  44. package/types/components/divider/YDivider.d.ts +4 -3
  45. package/types/components/dropdown/YDropdown.d.ts +268 -220
  46. package/types/components/field-input/YFieldInput.d.ts +27 -26
  47. package/types/components/form/YForm.d.ts +9 -8
  48. package/{dist → types}/components/hover/YHover.d.ts +6 -2
  49. package/types/components/hover/index.d.ts +1 -0
  50. package/types/components/icon/YIcon.d.ts +5 -4
  51. package/types/components/icons/YIconCheckbox.d.ts +5 -4
  52. package/types/components/icons/YIconClear.d.ts +1 -1
  53. package/types/components/icons/YIconDropdown.d.ts +1 -1
  54. package/types/components/icons/YIconExpand.d.ts +1 -1
  55. package/types/components/icons/YIconPageControl.d.ts +6 -5
  56. package/types/components/icons/YIconSort.d.ts +5 -4
  57. package/types/components/icons/index.d.ts +26 -26
  58. package/types/components/index.d.ts +2 -0
  59. package/types/components/input/YInput.d.ts +21 -20
  60. package/types/components/layer/YLayer.d.ts +148 -100
  61. package/types/components/layer/active-stack.d.ts +3 -2
  62. package/types/components/layer/base.d.ts +8 -7
  63. package/{dist → types}/components/layer/scroll-strategies.d.ts +1 -1
  64. package/types/components/list/YList.d.ts +8 -7
  65. package/types/components/list/YListItem.d.ts +19 -13
  66. package/types/components/loading/YSpinnerRing.d.ts +2 -1
  67. package/types/components/menu/YMenu.d.ts +161 -120
  68. package/types/components/pagination/YPagination.d.ts +20 -19
  69. package/types/components/panel/YDividePanel.d.ts +4 -3
  70. package/types/components/plate/YPlate.d.ts +3 -2
  71. package/types/components/progress-bar/YProgressBar.d.ts +5 -4
  72. package/types/components/select/YSelect.d.ts +1232 -923
  73. package/types/components/snackbar/YSnackbar.d.ts +12 -11
  74. package/types/components/switch/YSwitch.d.ts +4 -3
  75. package/types/components/tab/YTab.d.ts +30 -29
  76. package/types/components/tab/YTabs.d.ts +12 -11
  77. package/types/components/tab/index.d.ts +1 -1
  78. package/types/components/tab/shared.d.ts +1 -0
  79. package/types/components/table/YDataTable.d.ts +63 -62
  80. package/types/components/table/YDataTableBody.d.ts +10 -9
  81. package/types/components/table/YDataTableCell.d.ts +6 -5
  82. package/types/components/table/YDataTableControl.d.ts +5 -4
  83. package/types/components/table/YDataTableHead.d.ts +10 -10
  84. package/types/components/table/YDataTableLayer.d.ts +4 -3
  85. package/types/components/table/YDataTableRow.d.ts +3 -2
  86. package/types/components/table/YDataTableServer.d.ts +63 -62
  87. package/types/components/table/YTable.d.ts +7 -6
  88. package/types/components/table/composibles/header.d.ts +10 -9
  89. package/types/components/table/composibles/items.d.ts +5 -4
  90. package/types/components/table/composibles/options.d.ts +2 -1
  91. package/types/components/table/composibles/pagination.d.ts +6 -5
  92. package/types/components/table/composibles/selection.d.ts +6 -5
  93. package/types/components/table/composibles/sorting.d.ts +4 -3
  94. package/types/components/table/types/header.d.ts +2 -1
  95. package/types/components/table/types/index.d.ts +5 -4
  96. package/types/components/table/types/item.d.ts +1 -0
  97. package/types/components/table/types/row.d.ts +1 -0
  98. package/types/components/text-ellipsis/YTextEllipsis.d.ts +3 -2
  99. package/types/components/text-highlighter/YTextHighlighter.d.ts +3 -2
  100. package/types/components/textarea/YTextarea.d.ts +39 -39
  101. package/types/components/toggle-button/YToggleButton.d.ts +1 -0
  102. package/types/components/tooltip/YTooltip.d.ts +201 -140
  103. package/types/components/transitions/expand-transition.d.ts +4 -3
  104. package/types/components/transitions/index.d.ts +10 -10
  105. package/types/components/tree-view/YTreeView.d.ts +20 -13
  106. package/types/components/tree-view/YTreeViewNode.d.ts +42 -20
  107. package/types/components/tree-view/types.d.ts +2 -1
  108. package/types/components/tree-view/util.d.ts +1 -0
  109. package/types/composables/choice-link.d.ts +2 -1
  110. package/types/composables/choice.d.ts +3 -2
  111. package/types/composables/communication.d.ts +2 -1
  112. package/types/composables/component.d.ts +1 -0
  113. package/types/composables/coordinate/arrangement.d.ts +2 -1
  114. package/types/composables/coordinate/index.d.ts +19 -18
  115. package/types/composables/coordinate/levitation.d.ts +2 -1
  116. package/types/composables/coordinate/types.d.ts +2 -1
  117. package/types/composables/coordinate/utils/point.d.ts +1 -0
  118. package/types/composables/date/factory.d.ts +1 -0
  119. package/types/composables/date/index.d.ts +1 -0
  120. package/types/composables/date/setting.d.ts +2 -1
  121. package/types/composables/date/types.d.ts +2 -1
  122. package/types/composables/dimension.d.ts +4 -3
  123. package/types/composables/focus.d.ts +4 -3
  124. package/types/composables/form.d.ts +7 -6
  125. package/types/composables/i18n/index.d.ts +1 -0
  126. package/types/composables/i18n/locale.d.ts +2 -1
  127. package/types/composables/i18n/rtl.d.ts +2 -1
  128. package/types/composables/icon.d.ts +9 -10
  129. package/types/composables/index.d.ts +1 -0
  130. package/types/composables/layer-group.d.ts +3 -2
  131. package/types/composables/list-items.d.ts +36 -35
  132. package/types/composables/progress.d.ts +1 -1
  133. package/types/composables/ref.d.ts +2 -1
  134. package/types/composables/resize-observer.d.ts +2 -2
  135. package/types/composables/scope.d.ts +2 -1
  136. package/types/composables/theme/factory.d.ts +1 -0
  137. package/types/composables/theme/index.d.ts +5 -4
  138. package/types/composables/theme/setting.d.ts +1 -0
  139. package/types/composables/timing.d.ts +2 -1
  140. package/types/composables/transition.d.ts +2 -1
  141. package/types/composables/validation.d.ts +19 -18
  142. package/types/composables/vue-router.d.ts +3 -3
  143. package/types/directives/complement-click/index.d.ts +1 -0
  144. package/types/directives/plate-wave/index.d.ts +2 -1
  145. package/types/directives/theme-class.d.ts +1 -0
  146. package/types/globals.d.ts +1 -1
  147. package/types/i18n/built-in.d.ts +2 -1
  148. package/types/i18n/types.d.ts +2 -1
  149. package/types/index.d.ts +2 -1
  150. package/types/mixins/di.d.ts +1 -1
  151. package/types/mixins/rebind-attrs.d.ts +2 -2
  152. package/types/shims.d.ts +4 -45
  153. package/types/types/index.d.ts +2 -1
  154. package/types/util/anchor.d.ts +1 -1
  155. package/types/util/color/conversion.d.ts +1 -0
  156. package/types/util/color/hct/cam16.d.ts +2 -17
  157. package/types/util/color/hct/hct.d.ts +2 -17
  158. package/types/util/color/index.d.ts +1 -1
  159. package/types/util/date/adapters/yuyeon-date-adapter.d.ts +1 -0
  160. package/types/util/date/built-in.d.ts +2 -1
  161. package/types/util/date/index.d.ts +1 -1
  162. package/types/util/reactivity.d.ts +3 -2
  163. package/types/util/vue-component.d.ts +4 -3
  164. package/dist/abstract/items.d.ts +0 -49
  165. package/dist/components/alert/YAlert.d.ts +0 -24
  166. package/dist/components/alert/index.d.ts +0 -1
  167. package/dist/components/app/YApp.d.ts +0 -8
  168. package/dist/components/app/index.d.ts +0 -1
  169. package/dist/components/badge/YBadge.d.ts +0 -142
  170. package/dist/components/badge/index.d.ts +0 -1
  171. package/dist/components/button/YButton.d.ts +0 -248
  172. package/dist/components/button/index.d.ts +0 -1
  173. package/dist/components/card/YCard.d.ts +0 -12
  174. package/dist/components/card/YCardBody.d.ts +0 -2
  175. package/dist/components/card/YCardFooter.d.ts +0 -2
  176. package/dist/components/card/YCardHeader.d.ts +0 -2
  177. package/dist/components/card/index.d.ts +0 -4
  178. package/dist/components/checkbox/YCheckbox.d.ts +0 -48
  179. package/dist/components/checkbox/YInputCheckbox.d.ts +0 -55
  180. package/dist/components/checkbox/index.d.ts +0 -3
  181. package/dist/components/chip/YChip.d.ts +0 -36
  182. package/dist/components/chip/index.d.ts +0 -1
  183. package/dist/components/date-picker/YDateCalendar.d.ts +0 -143
  184. package/dist/components/date-picker/YDatePicker.d.ts +0 -123
  185. package/dist/components/date-picker/YDatePickerControl.d.ts +0 -129
  186. package/dist/components/date-picker/YMonthPicker.d.ts +0 -29
  187. package/dist/components/date-picker/YYearPicker.d.ts +0 -44
  188. package/dist/components/date-picker/index.d.ts +0 -3
  189. package/dist/components/dialog/YDialog.d.ts +0 -2346
  190. package/dist/components/dialog/index.d.ts +0 -1
  191. package/dist/components/divider/YDivider.d.ts +0 -16
  192. package/dist/components/divider/index.d.ts +0 -1
  193. package/dist/components/dropdown/YDropdown.d.ts +0 -651
  194. package/dist/components/dropdown/index.d.ts +0 -1
  195. package/dist/components/field-input/YFieldInput.d.ts +0 -416
  196. package/dist/components/field-input/index.d.ts +0 -1
  197. package/dist/components/form/YForm.d.ts +0 -42
  198. package/dist/components/form/index.d.ts +0 -1
  199. package/dist/components/icon/YIcon.d.ts +0 -82
  200. package/dist/components/icon/index.d.ts +0 -1
  201. package/dist/components/icons/YIconCheckbox.d.ts +0 -14
  202. package/dist/components/icons/YIconClear.d.ts +0 -1
  203. package/dist/components/icons/YIconDropdown.d.ts +0 -1
  204. package/dist/components/icons/YIconExpand.d.ts +0 -1
  205. package/dist/components/icons/YIconPageControl.d.ts +0 -21
  206. package/dist/components/icons/YIconSort.d.ts +0 -19
  207. package/dist/components/icons/index.d.ts +0 -89
  208. package/dist/components/index.d.ts +0 -34
  209. package/dist/components/input/YInput.d.ts +0 -336
  210. package/dist/components/input/index.d.ts +0 -1
  211. package/dist/components/layer/YLayer.d.ts +0 -2089
  212. package/dist/components/layer/active-delay.d.ts +0 -4
  213. package/dist/components/layer/active-stack.d.ts +0 -16
  214. package/dist/components/layer/base.d.ts +0 -22
  215. package/dist/components/layer/index.d.ts +0 -1
  216. package/dist/components/list/YList.d.ts +0 -24
  217. package/dist/components/list/YListItem.d.ts +0 -60
  218. package/dist/components/list/index.d.ts +0 -2
  219. package/dist/components/loading/YSpinnerRing.d.ts +0 -3
  220. package/dist/components/loading/index.d.ts +0 -1
  221. package/dist/components/menu/YMenu.d.ts +0 -2176
  222. package/dist/components/menu/index.d.ts +0 -1
  223. package/dist/components/pagination/YPagination.d.ts +0 -177
  224. package/dist/components/pagination/index.d.ts +0 -1
  225. package/dist/components/panel/YDividePanel.d.ts +0 -5
  226. package/dist/components/panel/index.d.ts +0 -1
  227. package/dist/components/plate/YPlate.d.ts +0 -11
  228. package/dist/components/plate/index.d.ts +0 -1
  229. package/dist/components/progress-bar/YProgressBar.d.ts +0 -78
  230. package/dist/components/progress-bar/index.d.ts +0 -1
  231. package/dist/components/select/YSelect.d.ts +0 -7244
  232. package/dist/components/select/index.d.ts +0 -1
  233. package/dist/components/snackbar/YSnackbar.d.ts +0 -90
  234. package/dist/components/snackbar/index.d.ts +0 -1
  235. package/dist/components/switch/YSwitch.d.ts +0 -108
  236. package/dist/components/switch/index.d.ts +0 -1
  237. package/dist/components/tab/YTab.d.ts +0 -284
  238. package/dist/components/tab/YTabs.d.ts +0 -131
  239. package/dist/components/tab/index.d.ts +0 -3
  240. package/dist/components/tab/shared.d.ts +0 -4
  241. package/dist/components/tab/types.d.ts +0 -5
  242. package/dist/components/table/YDataTable.d.ts +0 -453
  243. package/dist/components/table/YDataTableBody.d.ts +0 -110
  244. package/dist/components/table/YDataTableCell.d.ts +0 -57
  245. package/dist/components/table/YDataTableControl.d.ts +0 -71
  246. package/dist/components/table/YDataTableHead.d.ts +0 -72
  247. package/dist/components/table/YDataTableLayer.d.ts +0 -12
  248. package/dist/components/table/YDataTableRow.d.ts +0 -49
  249. package/dist/components/table/YDataTableServer.d.ts +0 -490
  250. package/dist/components/table/YTable.d.ts +0 -84
  251. package/dist/components/table/composibles/header.d.ts +0 -69
  252. package/dist/components/table/composibles/items.d.ts +0 -55
  253. package/dist/components/table/composibles/options.d.ts +0 -11
  254. package/dist/components/table/composibles/pagination.d.ts +0 -81
  255. package/dist/components/table/composibles/selection.d.ts +0 -82
  256. package/dist/components/table/composibles/sorting.d.ts +0 -44
  257. package/dist/components/table/index.d.ts +0 -3
  258. package/dist/components/table/types/common.d.ts +0 -2
  259. package/dist/components/table/types/header.d.ts +0 -23
  260. package/dist/components/table/types/index.d.ts +0 -57
  261. package/dist/components/table/types/item.d.ts +0 -21
  262. package/dist/components/table/types/row.d.ts +0 -4
  263. package/dist/components/text-ellipsis/YTextEllipsis.d.ts +0 -15
  264. package/dist/components/text-ellipsis/index.d.ts +0 -1
  265. package/dist/components/text-highlighter/YTextHighlighter.d.ts +0 -41
  266. package/dist/components/textarea/YTextarea.d.ts +0 -589
  267. package/dist/components/textarea/index.d.ts +0 -1
  268. package/dist/components/toggle-button/YToggleButton.d.ts +0 -4
  269. package/dist/components/toggle-button/index.d.ts +0 -1
  270. package/dist/components/tooltip/YTooltip.d.ts +0 -3875
  271. package/dist/components/tooltip/index.d.ts +0 -1
  272. package/dist/components/transitions/expand-transition.d.ts +0 -17
  273. package/dist/components/transitions/index.d.ts +0 -32
  274. package/dist/components/tree-view/YTreeView.d.ts +0 -160
  275. package/dist/components/tree-view/YTreeViewNode.d.ts +0 -223
  276. package/dist/components/tree-view/index.d.ts +0 -2
  277. package/dist/components/tree-view/types.d.ts +0 -15
  278. package/dist/components/tree-view/util.d.ts +0 -6
  279. package/dist/composables/choice-link.d.ts +0 -3
  280. package/dist/composables/choice.d.ts +0 -113
  281. package/dist/composables/communication.d.ts +0 -8
  282. package/dist/composables/component.d.ts +0 -3
  283. package/dist/composables/coordinate/arrangement.d.ts +0 -7
  284. package/dist/composables/coordinate/index.d.ts +0 -1672
  285. package/dist/composables/coordinate/levitation.d.ts +0 -7
  286. package/dist/composables/coordinate/types.d.ts +0 -7
  287. package/dist/composables/coordinate/utils/point.d.ts +0 -22
  288. package/dist/composables/date/factory.d.ts +0 -3
  289. package/dist/composables/date/index.d.ts +0 -12
  290. package/dist/composables/date/setting.d.ts +0 -5
  291. package/dist/composables/date/types.d.ts +0 -13
  292. package/dist/composables/dimension.d.ts +0 -54
  293. package/dist/composables/focus.d.ts +0 -30
  294. package/dist/composables/form.d.ts +0 -127
  295. package/dist/composables/i18n/index.d.ts +0 -9
  296. package/dist/composables/i18n/locale.d.ts +0 -3
  297. package/dist/composables/i18n/rtl.d.ts +0 -21
  298. package/dist/composables/i18n/share.d.ts +0 -1
  299. package/dist/composables/icon.d.ts +0 -95
  300. package/dist/composables/index.d.ts +0 -9
  301. package/dist/composables/layer-group.d.ts +0 -8
  302. package/dist/composables/list-items.d.ts +0 -111
  303. package/dist/composables/progress.d.ts +0 -3
  304. package/dist/composables/ref.d.ts +0 -6
  305. package/dist/composables/resize-observer.d.ts +0 -14
  306. package/dist/composables/scope.d.ts +0 -3
  307. package/dist/composables/theme/factory.d.ts +0 -4
  308. package/dist/composables/theme/helper.d.ts +0 -3
  309. package/dist/composables/theme/index.d.ts +0 -56
  310. package/dist/composables/theme/setting.d.ts +0 -10
  311. package/dist/composables/theme/types.d.ts +0 -28
  312. package/dist/composables/timing.d.ts +0 -20
  313. package/dist/composables/transition.d.ts +0 -22
  314. package/dist/composables/validation.d.ts +0 -82
  315. package/dist/composables/vue-router.d.ts +0 -43
  316. package/dist/directives/complement-click/index.d.ts +0 -26
  317. package/dist/directives/plate-wave/index.d.ts +0 -14
  318. package/dist/directives/theme-class.d.ts +0 -4
  319. package/dist/etc/index.d.ts +0 -1
  320. package/dist/globals.d.ts +0 -20
  321. package/dist/i18n/built-in.d.ts +0 -3
  322. package/dist/i18n/config.d.ts +0 -81
  323. package/dist/i18n/types.d.ts +0 -20
  324. package/dist/index.d.ts +0 -13
  325. package/dist/locales/en.d.ts +0 -6
  326. package/dist/mixins/di.d.ts +0 -2
  327. package/dist/mixins/rebind-attrs.d.ts +0 -5
  328. package/dist/shims.d.ts +0 -52
  329. package/dist/types/index.d.ts +0 -7
  330. package/dist/util/anchor.d.ts +0 -23
  331. package/dist/util/array.d.ts +0 -2
  332. package/dist/util/collection.d.ts +0 -1
  333. package/dist/util/color/apca.d.ts +0 -29
  334. package/dist/util/color/const.d.ts +0 -5
  335. package/dist/util/color/conversion.d.ts +0 -131
  336. package/dist/util/color/hct/cam16.d.ts +0 -116
  337. package/dist/util/color/hct/hct.d.ts +0 -71
  338. package/dist/util/color/index.d.ts +0 -4
  339. package/dist/util/color/types.d.ts +0 -14
  340. package/dist/util/color/utils/math-utils.d.ts +0 -82
  341. package/dist/util/common.d.ts +0 -13
  342. package/dist/util/date/adapters/yuyeon-date-adapter.d.ts +0 -43
  343. package/dist/util/date/built-in.d.ts +0 -41
  344. package/dist/util/date/index.d.ts +0 -3
  345. package/dist/util/date/types.d.ts +0 -167
  346. package/dist/util/debounce.d.ts +0 -11
  347. package/dist/util/dom.d.ts +0 -3
  348. package/dist/util/frame-scheduler.d.ts +0 -7
  349. package/dist/util/index.d.ts +0 -16
  350. package/dist/util/reactivity.d.ts +0 -7
  351. package/dist/util/rect.d.ts +0 -36
  352. package/dist/util/scroll.d.ts +0 -3
  353. package/dist/util/string.d.ts +0 -4
  354. package/dist/util/ui.d.ts +0 -4
  355. package/dist/util/validation.d.ts +0 -3
  356. package/dist/util/vue-component.d.ts +0 -39
  357. /package/{dist → types}/components/bench/YBench.d.ts +0 -0
  358. /package/{dist → types}/components/bench/index.d.ts +0 -0
  359. /package/{dist → types}/components/default-provider/YDefaultProvider.d.ts +0 -0
  360. /package/{dist → types}/components/default-provider/index.d.ts +0 -0
  361. /package/{dist → types}/components/ip-field/YIpv4Field.d.ts +0 -0
  362. /package/{dist → types}/components/ip-field/index.d.ts +0 -0
  363. /package/{dist → types}/components/layer/content.d.ts +0 -0
  364. /package/{dist → types}/components/navigation/YNavigation.d.ts +0 -0
  365. /package/{dist → types}/components/navigation/index.d.ts +0 -0
  366. /package/{dist → types}/components/text-highlighter/index.d.ts +0 -0
  367. /package/{dist → types}/composables/layout.d.ts +0 -0
  368. /package/{dist → types}/locales/index.d.ts +0 -0
  369. /package/{dist → types}/locales/ko.d.ts +0 -0
  370. /package/{dist → types}/util/color/contrast/contrast.d.ts +0 -0
  371. /package/{dist → types}/util/color/hct/hct-solver.d.ts +0 -0
  372. /package/{dist → types}/util/color/hct/viewing-conditions.d.ts +0 -0
  373. /package/{dist → types}/util/color/palettes/core-palette.d.ts +0 -0
  374. /package/{dist → types}/util/color/palettes/tonal-palette.d.ts +0 -0
@@ -1,131 +0,0 @@
1
- import { Rgba } from './types';
2
-
3
- export declare function rgbFromHex(color: string): number[] | undefined;
4
- export declare function hexFromRgb(red: number, green: number, blue: number): string;
5
- export declare function hexFromArgb(argb: number): string;
6
- /**
7
- * Converts a color from RGB components to ARGB format.
8
- */
9
- export declare function argbFromRgb(red: number, green: number, blue: number): number;
10
- /**
11
- * Converts a color from linear RGB components to ARGB format.
12
- */
13
- export declare function argbFromLinrgb(linrgb: number[]): number;
14
- /**
15
- * Returns the alpha component of a color in ARGB format.
16
- */
17
- export declare function alphaFromArgb(argb: number): number;
18
- /**
19
- * Returns the red component of a color in ARGB format.
20
- */
21
- export declare function redFromArgb(argb: number): number;
22
- /**
23
- * Returns the green component of a color in ARGB format.
24
- */
25
- export declare function greenFromArgb(argb: number): number;
26
- /**
27
- * Returns the blue component of a color in ARGB format.
28
- */
29
- export declare function blueFromArgb(argb: number): number;
30
- /**
31
- * Returns whether a color in ARGB format is opaque.
32
- */
33
- export declare function isOpaque(argb: number): boolean;
34
- /**
35
- * Converts a color from ARGB to XYZ.
36
- */
37
- export declare function argbFromXyz(x: number, y: number, z: number): number;
38
- /**
39
- * Converts a color from XYZ to ARGB.
40
- */
41
- export declare function xyzFromArgb(argb: number): number[];
42
- /**
43
- * Converts a color represented in Lab color space into an ARGB
44
- * integer.
45
- */
46
- export declare function argbFromLab(l: number, a: number, b: number): number;
47
- /**
48
- * Converts a color from ARGB representation to L*a*b*
49
- * representation.
50
- *
51
- * @param argb the ARGB representation of a color
52
- * @return a Lab object representing the color
53
- */
54
- export declare function labFromArgb(argb: number): number[];
55
- /**
56
- * Converts an L* value to an ARGB representation.
57
- *
58
- * @param lstar L* in L*a*b*
59
- * @return ARGB representation of grayscale color with lightness
60
- * matching L*
61
- */
62
- export declare function argbFromLstar(lstar: number): number;
63
- /**
64
- * Computes the L* value of a color in ARGB representation.
65
- *
66
- * @param argb ARGB representation of a color
67
- * @return L*, from L*a*b*, coordinate of the color
68
- */
69
- export declare function lstarFromArgb(argb: number): number;
70
- /**
71
- * Converts an L* value to a Y value.
72
- *
73
- * L* in L*a*b* and Y in XYZ measure the same quantity, luminance.
74
- *
75
- * L* measures perceptual luminance, a linear scale. Y in XYZ
76
- * measures relative luminance, a logarithmic scale.
77
- *
78
- * @param lstar L* in L*a*b*
79
- * @return Y in XYZ
80
- */
81
- export declare function yFromLstar(lstar: number): number;
82
- /**
83
- * Converts a Y value to an L* value.
84
- *
85
- * L* in L*a*b* and Y in XYZ measure the same quantity, luminance.
86
- *
87
- * L* measures perceptual luminance, a linear scale. Y in XYZ
88
- * measures relative luminance, a logarithmic scale.
89
- *
90
- * @param y Y in XYZ
91
- * @return L* in L*a*b*
92
- */
93
- export declare function lstarFromY(y: number): number;
94
- /**
95
- * Linearizes an RGB component.
96
- *
97
- * @param rgbComponent 0 <= rgb_component <= 255, represents R/G/B
98
- * channel
99
- * @return 0.0 <= output <= 100.0, color channel converted to
100
- * linear RGB space
101
- */
102
- export declare function linearized(rgbComponent: number): number;
103
- /**
104
- * Delinearizes an RGB component.
105
- *
106
- * @param rgbComponent 0.0 <= rgb_component <= 100.0, represents
107
- * linear R/G/B channel
108
- * @return 0 <= output <= 255, color channel converted to regular
109
- * RGB space
110
- */
111
- export declare function delinearized(rgbComponent: number): number;
112
- /**
113
- * Returns the standard white point; white on a sunny day.
114
- *
115
- * @return The white point
116
- */
117
- export declare function whitePointD65(): number[];
118
- /**
119
- * Return RGBA from a given int32 color
120
- *
121
- * @param argb ARGB representation of a int32 color.
122
- * @return RGBA representation of a int32 color.
123
- */
124
- export declare function rgbaFromArgb(argb: number): Rgba;
125
- /**
126
- * Return int32 color from a given RGBA component
127
- *
128
- * @param rgba RGBA representation of a int32 color.
129
- * @returns ARGB representation of a int32 color.
130
- */
131
- export declare function argbFromRgba({ r, g, b, a }: Rgba): number;
@@ -1,116 +0,0 @@
1
- import { ViewingConditions } from './viewing-conditions';
2
-
3
- /**
4
- * CAM16, a color appearance model. Colors are not just defined by their hex
5
- * code, but rather, a hex code and viewing conditions.
6
- *
7
- * CAM16 instances also have coordinates in the CAM16-UCS space, called J*, a*,
8
- * b*, or jstar, astar, bstar in code. CAM16-UCS is included in the CAM16
9
- * specification, and should be used when measuring distances between colors.
10
- *
11
- * In traditional color spaces, a color can be identified solely by the
12
- * observer's measurement of the color. Color appearance models such as CAM16
13
- * also use information about the environment where the color was
14
- * observed, known as the viewing conditions.
15
- *
16
- * For example, white under the traditional assumption of a midday sun white
17
- * point is accurately measured as a slightly chromatic blue by CAM16. (roughly,
18
- * hue 203, chroma 3, lightness 100)
19
- */
20
- export declare class Cam16 {
21
- readonly hue: number;
22
- readonly chroma: number;
23
- readonly j: number;
24
- readonly q: number;
25
- readonly m: number;
26
- readonly s: number;
27
- readonly jstar: number;
28
- readonly astar: number;
29
- readonly bstar: number;
30
- /**
31
- * All of the CAM16 dimensions can be calculated from 3 of the dimensions, in
32
- * the following combinations:
33
- * - {j or q} and {c, m, or s} and hue
34
- * - jstar, astar, bstar
35
- * Prefer using a static method that constructs from 3 of those dimensions.
36
- * This constructor is intended for those methods to use to return all
37
- * possible dimensions.
38
- *
39
- * @param hue
40
- * @param chroma informally, colorfulness / color intensity. like saturation
41
- * in HSL, except perceptually accurate.
42
- * @param j lightness
43
- * @param q brightness; ratio of lightness to white point's lightness
44
- * @param m colorfulness
45
- * @param s saturation; ratio of chroma to white point's chroma
46
- * @param jstar CAM16-UCS J coordinate
47
- * @param astar CAM16-UCS a coordinate
48
- * @param bstar CAM16-UCS b coordinate
49
- */
50
- constructor(hue: number, chroma: number, j: number, q: number, m: number, s: number, jstar: number, astar: number, bstar: number);
51
- /**
52
- * CAM16 instances also have coordinates in the CAM16-UCS space, called J*,
53
- * a*, b*, or jstar, astar, bstar in code. CAM16-UCS is included in the CAM16
54
- * specification, and is used to measure distances between colors.
55
- */
56
- distance(other: Cam16): number;
57
- /**
58
- * @param argb ARGB representation of a color.
59
- * @return CAM16 color, assuming the color was viewed in default viewing
60
- * conditions.
61
- */
62
- static fromInt(argb: number): Cam16;
63
- /**
64
- * @param argb ARGB representation of a color.
65
- * @param viewingConditions Information about the environment where the color
66
- * was observed.
67
- * @return CAM16 color.
68
- */
69
- static fromIntInViewingConditions(argb: number, viewingConditions: ViewingConditions): Cam16;
70
- /**
71
- * @param j CAM16 lightness
72
- * @param c CAM16 chroma
73
- * @param h CAM16 hue
74
- */
75
- static fromJch(j: number, c: number, h: number): Cam16;
76
- /**
77
- * @param j CAM16 lightness
78
- * @param c CAM16 chroma
79
- * @param h CAM16 hue
80
- * @param viewingConditions Information about the environment where the color
81
- * was observed.
82
- */
83
- static fromJchInViewingConditions(j: number, c: number, h: number, viewingConditions: ViewingConditions): Cam16;
84
- /**
85
- * @param jstar CAM16-UCS lightness.
86
- * @param astar CAM16-UCS a dimension. Like a* in L*a*b*, it is a Cartesian
87
- * coordinate on the Y axis.
88
- * @param bstar CAM16-UCS b dimension. Like a* in L*a*b*, it is a Cartesian
89
- * coordinate on the X axis.
90
- */
91
- static fromUcs(jstar: number, astar: number, bstar: number): Cam16;
92
- /**
93
- * @param jstar CAM16-UCS lightness.
94
- * @param astar CAM16-UCS a dimension. Like a* in L*a*b*, it is a Cartesian
95
- * coordinate on the Y axis.
96
- * @param bstar CAM16-UCS b dimension. Like a* in L*a*b*, it is a Cartesian
97
- * coordinate on the X axis.
98
- * @param viewingConditions Information about the environment where the color
99
- * was observed.
100
- */
101
- static fromUcsInViewingConditions(jstar: number, astar: number, bstar: number, viewingConditions: ViewingConditions): Cam16;
102
- /**
103
- * @return ARGB representation of color, assuming the color was viewed in
104
- * default viewing conditions, which are near-identical to the default
105
- * viewing conditions for sRGB.
106
- */
107
- toInt(): number;
108
- /**
109
- * @param viewingConditions Information about the environment where the color
110
- * will be viewed.
111
- * @return ARGB representation of color
112
- */
113
- viewed(viewingConditions: ViewingConditions): number;
114
- static fromXyzInViewingConditions(x: number, y: number, z: number, viewingConditions: ViewingConditions): Cam16;
115
- xyzInViewingConditions(viewingConditions: ViewingConditions): number[];
116
- }
@@ -1,71 +0,0 @@
1
- import { ViewingConditions } from './viewing-conditions';
2
-
3
- /**
4
- * HCT, hue, chroma, and tone. A color system that provides a perceptually
5
- * accurate color measurement system that can also accurately render what colors
6
- * will appear as in different lighting environments.
7
- */
8
- export declare class Hct {
9
- private argb;
10
- /**
11
- * @param hue 0 <= hue < 360; invalid values are corrected.
12
- * @param chroma 0 <= chroma < ?; Informally, colorfulness. The color
13
- * returned may be lower than the requested chroma. Chroma has a different
14
- * maximum for any given hue and tone.
15
- * @param tone 0 <= tone <= 100; invalid values are corrected.
16
- * @return HCT representation of a color in default viewing conditions.
17
- */
18
- internalHue: number;
19
- internalChroma: number;
20
- internalTone: number;
21
- static from(hue: number, chroma: number, tone: number): Hct;
22
- /**
23
- * @param argb ARGB representation of a color.
24
- * @return HCT representation of a color in default viewing conditions
25
- */
26
- static fromInt(argb: number): Hct;
27
- toInt(): number;
28
- /**
29
- * A number, in degrees, representing ex. red, orange, yellow, etc.
30
- * Ranges from 0 <= hue < 360.
31
- */
32
- get hue(): number;
33
- /**
34
- * @param newHue 0 <= newHue < 360; invalid values are corrected.
35
- * Chroma may decrease because chroma has a different maximum for any given
36
- * hue and tone.
37
- */
38
- set hue(newHue: number);
39
- get chroma(): number;
40
- /**
41
- * @param newChroma 0 <= newChroma < ?
42
- * Chroma may decrease because chroma has a different maximum for any given
43
- * hue and tone.
44
- */
45
- set chroma(newChroma: number);
46
- /** Lightness. Ranges from 0 to 100. */
47
- get tone(): number;
48
- /**
49
- * @param newTone 0 <= newTone <= 100; invalid valids are corrected.
50
- * Chroma may decrease because chroma has a different maximum for any given
51
- * hue and tone.
52
- */
53
- set tone(newTone: number);
54
- private constructor();
55
- private setInternalState;
56
- /**
57
- * Translates a color into different [ViewingConditions].
58
- *
59
- * Colors change appearance. They look different with lights on versus off,
60
- * the same color, as in hex code, on white looks different when on black.
61
- * This is called color relativity, most famously explicated by Josef Albers
62
- * in Interaction of Color.
63
- *
64
- * In color science, color appearance models can account for this and
65
- * calculate the appearance of a color in different settings. HCT is based on
66
- * CAM16, a color appearance model, and uses it to make these calculations.
67
- *
68
- * See [ViewingConditions.make] for parameters affecting color appearance.
69
- */
70
- inViewingConditions(vc: ViewingConditions): Hct;
71
- }
@@ -1,4 +0,0 @@
1
- export declare function isColorValue(value: string): boolean;
2
- export declare function isTextColorIsLight(r: number, g: number, b: number): boolean;
3
- export * from './const';
4
- export * from './conversion';
@@ -1,14 +0,0 @@
1
- /**
2
- * RGBA component
3
- *
4
- * @param r Red value should be between 0-255
5
- * @param g Green value should be between 0-255
6
- * @param b Blue value should be between 0-255
7
- * @param a Alpha value should be between 0-255
8
- */
9
- export interface Rgba {
10
- r: number;
11
- g: number;
12
- b: number;
13
- a: number;
14
- }
@@ -1,82 +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
- /**
18
- * Utility methods for mathematical operations.
19
- */
20
- /**
21
- * The signum function.
22
- *
23
- * @return 1 if num > 0, -1 if num < 0, and 0 if num = 0
24
- */
25
- export declare function signum(num: number): number;
26
- /**
27
- * The linear interpolation function.
28
- *
29
- * @return start if amount = 0 and stop if amount = 1
30
- */
31
- export declare function lerp(start: number, stop: number, amount: number): number;
32
- /**
33
- * Clamps an integer between two integers.
34
- *
35
- * @return input when min <= input <= max, and either min or max
36
- * otherwise.
37
- */
38
- export declare function clampInt(min: number, max: number, input: number): number;
39
- /**
40
- * Clamps an integer between two floating-point numbers.
41
- *
42
- * @return input when min <= input <= max, and either min or max
43
- * otherwise.
44
- */
45
- export declare function clampDouble(min: number, max: number, input: number): number;
46
- /**
47
- * Sanitizes a degree measure as an integer.
48
- *
49
- * @return a degree measure between 0 (inclusive) and 360
50
- * (exclusive).
51
- */
52
- export declare function sanitizeDegreesInt(degrees: number): number;
53
- /**
54
- * Sanitizes a degree measure as a floating-point number.
55
- *
56
- * @return a degree measure between 0.0 (inclusive) and 360.0
57
- * (exclusive).
58
- */
59
- export declare function sanitizeDegreesDouble(degrees: number): number;
60
- /**
61
- * Sign of direction change needed to travel from one angle to
62
- * another.
63
- *
64
- * For angles that are 180 degrees apart from each other, both
65
- * directions have the same travel distance, so either direction is
66
- * shortest. The value 1.0 is returned in this case.
67
- *
68
- * @param from The angle travel starts from, in degrees.
69
- * @param to The angle travel ends at, in degrees.
70
- * @return -1 if decreasing from leads to the shortest travel
71
- * distance, 1 if increasing from leads to the shortest travel
72
- * distance.
73
- */
74
- export declare function rotationDirection(from: number, to: number): number;
75
- /**
76
- * Distance of two points on a circle, represented using degrees.
77
- */
78
- export declare function differenceDegrees(a: number, b: number): number;
79
- /**
80
- * Multiplies a 1x3 row vector with a 3x3 matrix.
81
- */
82
- export declare function matrixMultiply(row: number[], matrix: number[][]): number[];
@@ -1,13 +0,0 @@
1
- export declare function hasOwnProperty(object: any, property: string): boolean;
2
- export declare function getNestedValue(obj: any, path: (string | number)[], fallback?: any): any;
3
- export declare function mergeDeep(source?: Record<string, any>, overwrite?: Record<string, any>, arrayFn?: (source: unknown[], overwrite: unknown[]) => unknown[]): {
4
- [x: string]: any;
5
- };
6
- export declare function getObjectValueByPath(obj: any, path: string, fallback?: any): any;
7
- export type SelectItemKey = boolean | string | (string | number)[] | ((item: Record<string, any>, fallback?: any) => any);
8
- export declare function getPropertyFromItem(item: any, property: SelectItemKey, fallback?: any): any;
9
- export declare function clamp(value: number, min?: number, max?: number): number;
10
- export declare function getRangeArr(length: number, start?: number): number[];
11
- export declare function deepEqual(a: any, b: any): boolean;
12
- export declare function isObject(obj: unknown): boolean;
13
- export declare function omit<T extends object, U extends Extract<keyof T, string>>(obj: T, excludes: U[]): Omit<T, U>;
@@ -1,43 +0,0 @@
1
- import { DateAdapter, DateFormatOptions } from '../types';
2
-
3
- export declare class YuyeonDateAdapter implements DateAdapter<Date> {
4
- locale: string;
5
- formats?: Record<string, DateFormatOptions>;
6
- constructor(options: {
7
- locale: string;
8
- formats?: Record<string, DateFormatOptions>;
9
- });
10
- getWeekArray(date: Date): Date[][];
11
- startOfMonth(date: Date): Date;
12
- endOfMonth(date: Date): Date;
13
- addDays(date: Date, amount: number): Date;
14
- addMonths(date: Date, amount: number): Date;
15
- date(value?: any): Date | null;
16
- endOfDay(date: Date): Date;
17
- endOfYear(date: Date): Date;
18
- format(date: Date, formatString: string): string;
19
- getDiff(date: Date, comparing: string | Date, unit?: string): number;
20
- getYear(date: Date): number;
21
- getMonth(date: Date): number;
22
- getDay(date: Date): number;
23
- getNextMonth(date: Date): Date;
24
- getWeekdays(): string[];
25
- isAfter(date: Date, comparing: Date): boolean;
26
- isBefore(date: Date, comparing: Date): boolean;
27
- isEqual(date: Date, comparing: Date): boolean;
28
- isSameDay(date: Date, comparing: Date): boolean;
29
- isSameMonth(date: Date, comparing: Date): boolean;
30
- isValid(date: any): boolean;
31
- isWithinRange(date: Date, range: [Date, Date]): boolean;
32
- parseISO(date: string): Date;
33
- setMonth(date: Date, month: number): Date;
34
- setYear(date: Date, year: number): Date;
35
- startOfDay(date: Date): Date;
36
- startOfYear(date: Date): Date;
37
- toISO(date: Date): string;
38
- toJsDate(date: Date): Date;
39
- getHour(date: Date): number;
40
- getMinute(date: Date): number;
41
- setHour(date: Date, hour: number): Date;
42
- setMinute(date: Date, minute: number): Date;
43
- }
@@ -1,41 +0,0 @@
1
- import { DateAdapter, DateFormatOptions } from './types';
2
-
3
- export declare const ONE_DAY: number;
4
- export declare const YYYY_MM_DD_REGEX: RegExp;
5
- export declare const FIRST_SUNDAY: Date;
6
- export declare class DateUtil {
7
- static date(value?: any): Date | null;
8
- static format(value: Date, formatString: string, locale: string, formats?: Record<string, DateFormatOptions>): string;
9
- static parseLocalDate(value: string): Date;
10
- static parseISO(value: string): Date;
11
- static toISO(adapter: DateAdapter<any>, value: Date): string;
12
- static getWeekArray(date: Date, locale: string): Date[][];
13
- static startOfMonth(date: Date): Date;
14
- static endOfMonth(date: Date): Date;
15
- static startOfDay(date: Date): Date;
16
- static startOfYear(date: Date): Date;
17
- static endOfDay(date: Date): Date;
18
- static endOfYear(date: Date): Date;
19
- static getYear(date: Date): number;
20
- static getMonth(date: Date): number;
21
- static getDay(date: Date): number;
22
- static getNextMonth(date: Date): Date;
23
- static getWeekdays(locale: string): string[];
24
- static getMeridians(locale: string): string[];
25
- static isAfter(date: Date, comparing: Date): boolean;
26
- static isBefore(date: Date, comparing: Date): boolean;
27
- static isEqual(date: Date, comparing: Date): boolean;
28
- static isSameDay(date: Date, comparing: Date): boolean;
29
- static isSameMonth(date: Date, comparing: Date): boolean;
30
- static isValid(date: any): boolean;
31
- static isWithinRange(date: Date, range: [Date, Date]): boolean;
32
- static addDays(date: Date, amount: number): Date;
33
- static addMonths(date: Date, amount: number): Date;
34
- static getDiff(date: Date, comparing: string | Date, unit?: 'month' | string): number;
35
- static setMonth(date: Date, month: number): Date;
36
- static setYear(date: Date, year: number): Date;
37
- static getHour(date: Date): number;
38
- static setHour(date: Date, hour: number): Date;
39
- static getMinute(date: Date): number;
40
- static setMinute(date: Date, minute: number): Date;
41
- }
@@ -1,3 +0,0 @@
1
- export * from './built-in';
2
- export { YuyeonDateAdapter } from './adapters/yuyeon-date-adapter';
3
- export declare function createDateAdapter(): void;
@@ -1,167 +0,0 @@
1
- export interface DateAdapter<T = unknown> {
2
- /**
3
- *
4
- * @param value
5
- */
6
- date(value?: any): T | null;
7
- /**
8
- *
9
- * @param date
10
- * @param formatString
11
- */
12
- format(date: T, formatString: string): string;
13
- /**
14
- *
15
- * @param value
16
- */
17
- toJsDate(value: T): Date;
18
- /**
19
- *
20
- * @param date
21
- */
22
- parseISO(date: string): T;
23
- /**
24
- *
25
- * @param date
26
- */
27
- toISO(date: T): string;
28
- /**
29
- *
30
- * @param date
31
- */
32
- startOfDay(date: T): T;
33
- /**
34
- *
35
- * @param date
36
- */
37
- endOfDay(date: T): T;
38
- /**
39
- *
40
- * @param date
41
- */
42
- startOfMonth(date: T): T;
43
- /**
44
- *
45
- * @param date
46
- */
47
- endOfMonth(date: T): T;
48
- /**
49
- *
50
- * @param date
51
- */
52
- startOfYear(date: T): T;
53
- /**
54
- *
55
- * @param date
56
- */
57
- endOfYear(date: T): T;
58
- /**
59
- *
60
- * @param date
61
- * @param comparing
62
- */
63
- isBefore(date: T, comparing: T): boolean;
64
- /**
65
- *
66
- * @param date
67
- * @param comparing
68
- */
69
- isAfter(date: T, comparing: T): boolean;
70
- /**
71
- *
72
- * @param date
73
- * @param comparing
74
- */
75
- isEqual(date: T, comparing: T): boolean;
76
- /**
77
- *
78
- * @param date
79
- * @param comparing
80
- */
81
- isSameDay(date: T, comparing: T): boolean;
82
- /**
83
- *
84
- * @param date
85
- * @param comparing
86
- */
87
- isSameMonth(date: T, comparing: T): boolean;
88
- /**
89
- *
90
- * @param date
91
- */
92
- isValid(date: any): boolean;
93
- /**
94
- *
95
- * @param date
96
- * @param range
97
- */
98
- isWithinRange(date: T, range: [T, T]): boolean;
99
- /**
100
- *
101
- * @param date
102
- * @param amount
103
- */
104
- addDays(date: T, amount: number): T;
105
- /**
106
- *
107
- * @param date
108
- * @param amount
109
- */
110
- addMonths(date: T, amount: number): T;
111
- /**
112
- *
113
- * @param date
114
- */
115
- getYear(date: T): number;
116
- /**
117
- *
118
- * @param date
119
- * @param year
120
- */
121
- setYear(date: T, year: number): T;
122
- /**
123
- *
124
- * @param date
125
- * @param comparing
126
- * @param unit
127
- */
128
- getDiff(date: T, comparing: T | string, unit?: string): number;
129
- /**
130
- *
131
- *
132
- * @param date
133
- */
134
- getWeekArray(date: T): T[][];
135
- /**
136
- *
137
- */
138
- getWeekdays(): string[];
139
- /**
140
- * 0 ~ 11
141
- * @param date
142
- */
143
- getMonth(date: T): number;
144
- /**
145
- *
146
- * @param date
147
- * @param month
148
- */
149
- setMonth(date: T, month: number): T;
150
- /**
151
- *
152
- * get day (1-31) number
153
- *
154
- * @param date
155
- */
156
- getDay(date: T): number;
157
- /**
158
- *
159
- * @param date
160
- */
161
- getNextMonth(date: T): T;
162
- getHour(date: T): number;
163
- setHour(date: T, hour: number): T;
164
- getMinute(date: T): number;
165
- setMinute(date: T, minute: number): T;
166
- }
167
- export type DateFormatOptions = Intl.DateTimeFormatOptions | ((date: Date, formatString: string, locale: string) => string);