@indielayer/ui 1.5.2 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/README.md +1 -1
  2. package/docs/components/common/DocumentPage.vue +0 -30
  3. package/docs/components/menu/DocsMenu.vue +2 -0
  4. package/docs/pages/component/datepicker/index.vue +35 -0
  5. package/docs/pages/component/datepicker/usage.vue +22 -0
  6. package/docs/pages/component/form/usage.vue +13 -0
  7. package/docs/pages/component/menu/usage.vue +7 -3
  8. package/docs/pages/component/qrCode/index.vue +25 -0
  9. package/docs/pages/component/qrCode/usage.vue +20 -0
  10. package/docs/pages/component/slider/usage.vue +8 -10
  11. package/docs/pages/index.vue +9 -19
  12. package/lib/components/button/Button.vue.d.ts +3 -3
  13. package/lib/components/button/Button.vue.js +2 -2
  14. package/lib/components/button/Button.vue2.js +10 -10
  15. package/lib/components/carousel/Carousel.vue.d.ts +8 -2
  16. package/lib/components/carousel/Carousel.vue.js +51 -48
  17. package/lib/components/checkbox/theme/Checkbox.base.theme.js +1 -1
  18. package/lib/components/datepicker/Datepicker.vue.d.ts +1886 -0
  19. package/lib/components/datepicker/Datepicker.vue.js +328 -0
  20. package/lib/components/datepicker/Datepicker.vue2.js +4 -0
  21. package/lib/components/datepicker/Datepicker.vue3.js +5 -0
  22. package/lib/components/datepicker/__tests__/Datepicker.spec.d.ts +1 -0
  23. package/lib/components/datepicker/index.d.ts +2 -0
  24. package/lib/components/datepicker/theme/Datepicker.base.theme.d.ts +3 -0
  25. package/lib/components/datepicker/theme/Datepicker.base.theme.js +65 -0
  26. package/lib/components/datepicker/theme/Datepicker.carbon.theme.d.ts +3 -0
  27. package/lib/components/datepicker/theme/Datepicker.carbon.theme.js +5 -0
  28. package/lib/components/drawer/Drawer.vue.js +1 -1
  29. package/lib/components/drawer/theme/Drawer.base.theme.js +1 -1
  30. package/lib/components/formGroup/FormGroup.vue.js +42 -36
  31. package/lib/components/index.d.ts +2 -0
  32. package/lib/components/index.js +99 -94
  33. package/lib/components/menu/Menu.vue.d.ts +4 -0
  34. package/lib/components/menu/Menu.vue.js +40 -34
  35. package/lib/components/menu/MenuItem.vue.d.ts +4 -0
  36. package/lib/components/menu/MenuItem.vue.js +1 -1
  37. package/lib/components/menu/MenuItem.vue2.js +43 -39
  38. package/lib/components/menu/theme/MenuItem.base.theme.js +1 -1
  39. package/lib/components/qrCode/QrCode.vue.d.ts +68 -0
  40. package/lib/components/qrCode/QrCode.vue.js +93 -0
  41. package/lib/components/qrCode/QrCode.vue2.js +4 -0
  42. package/lib/components/qrCode/__tests__/QrCode.spec.d.ts +1 -0
  43. package/lib/components/qrCode/index.d.ts +2 -0
  44. package/lib/components/qrCode/qrcodegen.d.ts +94 -0
  45. package/lib/components/qrCode/qrcodegen.js +571 -0
  46. package/lib/components/qrCode/theme/QrCode.base.theme.d.ts +3 -0
  47. package/lib/components/qrCode/theme/QrCode.base.theme.js +8 -0
  48. package/lib/components/qrCode/theme/QrCode.carbon.theme.d.ts +3 -0
  49. package/lib/components/qrCode/theme/QrCode.carbon.theme.js +5 -0
  50. package/lib/components/slider/Slider.vue.d.ts +31 -31
  51. package/lib/components/slider/Slider.vue.js +5 -146
  52. package/lib/components/slider/Slider.vue2.js +101 -2
  53. package/lib/components/slider/Slider.vue3.js +4 -0
  54. package/lib/components/slider/theme/Slider.base.theme.js +14 -10
  55. package/lib/components/slider/theme/Slider.carbon.theme.js +3 -14
  56. package/lib/index.js +117 -113
  57. package/lib/index.umd.js +39 -3
  58. package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@8.0.0_vue@3.3.9/node_modules/@vuepic/vue-datepicker/dist/main.css.js +4 -0
  59. package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@8.0.0_vue@3.3.9/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +5011 -0
  60. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
  61. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/defaultOptions.js +7 -0
  62. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/format/formatters.js +518 -0
  63. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
  64. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
  65. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  66. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/_lib/protectedTokens.js +21 -0
  67. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/add.js +20 -0
  68. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/addDays.js +10 -0
  69. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/addMonths.js +21 -0
  70. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/addQuarters.js +9 -0
  71. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/addYears.js +8 -0
  72. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/constants.js +8 -0
  73. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/constructFrom.js +7 -0
  74. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/differenceInCalendarDays.js +11 -0
  75. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/eachDayOfInterval.js +19 -0
  76. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/eachQuarterOfInterval.js +20 -0
  77. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/endOfQuarter.js +9 -0
  78. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/endOfWeek.js +11 -0
  79. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/endOfYear.js +9 -0
  80. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/format.js +60 -0
  81. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getDay.js +8 -0
  82. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getDayOfYear.js +11 -0
  83. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getDaysInMonth.js +10 -0
  84. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getDefaultOptions.js +8 -0
  85. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getHours.js +8 -0
  86. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getISODay.js +9 -0
  87. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getISOWeek.js +12 -0
  88. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getISOWeekYear.js +15 -0
  89. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getMinutes.js +8 -0
  90. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getMonth.js +8 -0
  91. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getQuarter.js +9 -0
  92. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getSeconds.js +8 -0
  93. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getWeek.js +12 -0
  94. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getWeekYear.js +17 -0
  95. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/getYear.js +8 -0
  96. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isAfter.js +9 -0
  97. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isBefore.js +9 -0
  98. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isDate.js +7 -0
  99. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isEqual.js +9 -0
  100. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isSameQuarter.js +9 -0
  101. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/isValid.js +12 -0
  102. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  103. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  104. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
  105. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +17 -0
  106. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  107. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  108. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  109. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
  110. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
  111. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/locale/en-US.js +21 -0
  112. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/Parser.js +22 -0
  113. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/Setter.js +40 -0
  114. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/constants.js +49 -0
  115. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +49 -0
  116. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +49 -0
  117. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/DateParser.js +61 -0
  118. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +51 -0
  119. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/DayParser.js +45 -0
  120. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +49 -0
  121. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/EraParser.js +30 -0
  122. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +21 -0
  123. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +22 -0
  124. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
  125. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +32 -0
  126. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +33 -0
  127. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +33 -0
  128. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +99 -0
  129. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +48 -0
  130. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +48 -0
  131. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +49 -0
  132. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +40 -0
  133. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +74 -0
  134. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +48 -0
  135. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +69 -0
  136. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +32 -0
  137. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +71 -0
  138. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +70 -0
  139. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +32 -0
  140. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +74 -0
  141. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +71 -0
  142. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +70 -0
  143. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +22 -0
  144. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +22 -0
  145. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers/YearParser.js +49 -0
  146. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/parsers.js +67 -0
  147. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse/_lib/utils.js +103 -0
  148. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parse.js +90 -0
  149. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/parseISO.js +128 -0
  150. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/set.js +11 -0
  151. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setDay.js +12 -0
  152. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setHours.js +9 -0
  153. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setISODay.js +11 -0
  154. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setISOWeek.js +10 -0
  155. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setMilliseconds.js +9 -0
  156. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setMinutes.js +9 -0
  157. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setMonth.js +13 -0
  158. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setSeconds.js +9 -0
  159. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setWeek.js +10 -0
  160. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/setYear.js +10 -0
  161. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfDay.js +9 -0
  162. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfISOWeek.js +8 -0
  163. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfISOWeekYear.js +11 -0
  164. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfQuarter.js +9 -0
  165. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfWeek.js +11 -0
  166. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfWeekYear.js +13 -0
  167. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/startOfYear.js +10 -0
  168. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/sub.js +19 -0
  169. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/subDays.js +8 -0
  170. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/subMonths.js +8 -0
  171. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/subYears.js +8 -0
  172. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/toDate.js +8 -0
  173. package/lib/node_modules/.pnpm/date-fns@3.3.1/node_modules/date-fns/transpose.js +18 -0
  174. package/lib/theme.d.ts +3 -1
  175. package/lib/themes/base/components.d.ts +2 -0
  176. package/lib/themes/base/components.js +82 -78
  177. package/lib/themes/carbon/components.d.ts +2 -0
  178. package/lib/themes/carbon/components.js +82 -78
  179. package/lib/version.d.ts +1 -1
  180. package/lib/version.js +1 -1
  181. package/package.json +2 -1
  182. package/src/components/button/Button.vue +1 -1
  183. package/src/components/carousel/Carousel.vue +8 -3
  184. package/src/components/checkbox/theme/Checkbox.base.theme.ts +1 -1
  185. package/src/components/datepicker/Datepicker.vue +414 -0
  186. package/src/components/datepicker/__tests__/Datepicker.spec.ts +11 -0
  187. package/src/components/datepicker/index.ts +2 -0
  188. package/src/components/datepicker/theme/Datepicker.base.theme.ts +72 -0
  189. package/src/components/datepicker/theme/Datepicker.carbon.theme.ts +7 -0
  190. package/src/components/drawer/Drawer.vue +1 -1
  191. package/src/components/drawer/theme/Drawer.base.theme.ts +1 -1
  192. package/src/components/formGroup/FormGroup.vue +5 -0
  193. package/src/components/index.ts +2 -0
  194. package/src/components/menu/Menu.vue +6 -0
  195. package/src/components/menu/MenuItem.vue +2 -1
  196. package/src/components/menu/theme/MenuItem.base.theme.ts +1 -1
  197. package/src/components/qrCode/QrCode.vue +120 -0
  198. package/src/components/qrCode/__tests__/QrCode.spec.ts +14 -0
  199. package/src/components/qrCode/index.ts +2 -0
  200. package/src/components/qrCode/qrcodegen.ts +991 -0
  201. package/src/components/qrCode/theme/QrCode.base.theme.ts +9 -0
  202. package/src/components/qrCode/theme/QrCode.carbon.theme.ts +7 -0
  203. package/src/components/slider/Slider.vue +63 -137
  204. package/src/components/slider/theme/Slider.base.theme.ts +10 -5
  205. package/src/components/slider/theme/Slider.carbon.theme.ts +2 -16
  206. package/src/theme.ts +4 -0
  207. package/src/themes/base/components.ts +2 -0
  208. package/src/themes/carbon/components.ts +2 -0
  209. package/src/version.ts +1 -1
  210. package/volar.d.ts +2 -0
@@ -0,0 +1,10 @@
1
+ import { toDate as o } from "./toDate.js";
2
+ import { constructFrom as a } from "./constructFrom.js";
3
+ function s(e, r) {
4
+ const t = o(e);
5
+ return isNaN(r) ? a(e, NaN) : (r && t.setDate(t.getDate() + r), t);
6
+ }
7
+ export {
8
+ s as addDays,
9
+ s as default
10
+ };
@@ -0,0 +1,21 @@
1
+ import { toDate as f } from "./toDate.js";
2
+ import { constructFrom as s } from "./constructFrom.js";
3
+ function h(n, o) {
4
+ const t = f(n);
5
+ if (isNaN(o))
6
+ return s(n, NaN);
7
+ if (!o)
8
+ return t;
9
+ const r = t.getDate(), e = s(n, t.getTime());
10
+ e.setMonth(t.getMonth() + o + 1, 0);
11
+ const a = e.getDate();
12
+ return r >= a ? e : (t.setFullYear(
13
+ e.getFullYear(),
14
+ e.getMonth(),
15
+ r
16
+ ), t);
17
+ }
18
+ export {
19
+ h as addMonths,
20
+ h as default
21
+ };
@@ -0,0 +1,9 @@
1
+ import { addMonths as n } from "./addMonths.js";
2
+ function d(t, o) {
3
+ const r = o * 3;
4
+ return n(t, r);
5
+ }
6
+ export {
7
+ d as addQuarters,
8
+ d as default
9
+ };
@@ -0,0 +1,8 @@
1
+ import { addMonths as a } from "./addMonths.js";
2
+ function o(r, t) {
3
+ return a(r, t * 12);
4
+ }
5
+ export {
6
+ o as addYears,
7
+ o as default
8
+ };
@@ -0,0 +1,8 @@
1
+ const n = 6048e5, s = 864e5, o = 6e4, c = 36e5, i = 1e3;
2
+ export {
3
+ s as millisecondsInDay,
4
+ c as millisecondsInHour,
5
+ o as millisecondsInMinute,
6
+ i as millisecondsInSecond,
7
+ n as millisecondsInWeek
8
+ };
@@ -0,0 +1,7 @@
1
+ function e(t, n) {
2
+ return t instanceof Date ? new t.constructor(n) : new Date(n);
3
+ }
4
+ export {
5
+ e as constructFrom,
6
+ e as default
7
+ };
@@ -0,0 +1,11 @@
1
+ import { millisecondsInDay as i } from "./constants.js";
2
+ import { startOfDay as n } from "./startOfDay.js";
3
+ import { getTimezoneOffsetInMilliseconds as o } from "./_lib/getTimezoneOffsetInMilliseconds.js";
4
+ function l(s, a) {
5
+ const t = n(s), e = n(a), r = +t - o(t), f = +e - o(e);
6
+ return Math.round((r - f) / i);
7
+ }
8
+ export {
9
+ l as default,
10
+ l as differenceInCalendarDays
11
+ };
@@ -0,0 +1,19 @@
1
+ import { toDate as u } from "./toDate.js";
2
+ function l(D, s) {
3
+ const a = u(D.start), n = u(D.end);
4
+ let t = +a > +n;
5
+ const d = t ? +a : +n, e = t ? n : a;
6
+ e.setHours(0, 0, 0, 0);
7
+ let r = (s == null ? void 0 : s.step) ?? 1;
8
+ if (!r)
9
+ return [];
10
+ r < 0 && (r = -r, t = !t);
11
+ const c = [];
12
+ for (; +e <= d; )
13
+ c.push(u(e)), e.setDate(e.getDate() + r), e.setHours(0, 0, 0, 0);
14
+ return t ? c.reverse() : c;
15
+ }
16
+ export {
17
+ l as default,
18
+ l as eachDayOfInterval
19
+ };
@@ -0,0 +1,20 @@
1
+ import { addQuarters as l } from "./addQuarters.js";
2
+ import { startOfQuarter as a } from "./startOfQuarter.js";
3
+ import { toDate as n } from "./toDate.js";
4
+ function i(c, s) {
5
+ const f = n(c.start), u = n(c.end);
6
+ let e = +f > +u;
7
+ const m = e ? +a(f) : +a(u);
8
+ let r = e ? a(u) : a(f), t = (s == null ? void 0 : s.step) ?? 1;
9
+ if (!t)
10
+ return [];
11
+ t < 0 && (t = -t, e = !e);
12
+ const d = [];
13
+ for (; +r <= m; )
14
+ d.push(n(r)), r = l(r, t);
15
+ return e ? d.reverse() : d;
16
+ }
17
+ export {
18
+ i as default,
19
+ i as eachQuarterOfInterval
20
+ };
@@ -0,0 +1,9 @@
1
+ import { toDate as r } from "./toDate.js";
2
+ function u(n) {
3
+ const t = r(n), o = t.getMonth(), e = o - o % 3 + 3;
4
+ return t.setMonth(e, 0), t.setHours(23, 59, 59, 999), t;
5
+ }
6
+ export {
7
+ u as default,
8
+ u as endOfQuarter
9
+ };
@@ -0,0 +1,11 @@
1
+ import { toDate as k } from "./toDate.js";
2
+ import { getDefaultOptions as u } from "./_lib/defaultOptions.js";
3
+ function S(l, e) {
4
+ var n, s, c, O;
5
+ const a = u(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((s = (n = e == null ? void 0 : e.locale) == null ? void 0 : n.options) == null ? void 0 : s.weekStartsOn) ?? a.weekStartsOn ?? ((O = (c = a.locale) == null ? void 0 : c.options) == null ? void 0 : O.weekStartsOn) ?? 0, t = k(l), f = t.getDay(), d = (f < r ? -7 : 0) + 6 - (f - r);
6
+ return t.setDate(t.getDate() + d), t.setHours(23, 59, 59, 999), t;
7
+ }
8
+ export {
9
+ S as default,
10
+ S as endOfWeek
11
+ };
@@ -0,0 +1,9 @@
1
+ import { toDate as a } from "./toDate.js";
2
+ function n(t) {
3
+ const e = a(t), r = e.getFullYear();
4
+ return e.setFullYear(r + 1, 0, 0), e.setHours(23, 59, 59, 999), e;
5
+ }
6
+ export {
7
+ n as default,
8
+ n as endOfYear
9
+ };
@@ -0,0 +1,60 @@
1
+ import { getDefaultOptions as v } from "./_lib/defaultOptions.js";
2
+ import { formatters as D } from "./_lib/format/formatters.js";
3
+ import { longFormatters as C } from "./_lib/format/longFormatters.js";
4
+ import { isProtectedWeekYearToken as S, isProtectedDayOfYearToken as R, warnOrThrowProtectedError as W } from "./_lib/protectedTokens.js";
5
+ import { isValid as x } from "./isValid.js";
6
+ import { toDate as P } from "./toDate.js";
7
+ import { enUS as Y } from "./locale/en-US.js";
8
+ const z = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, F = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, y = /^'([^]*?)'?$/, A = /''/g, L = /[a-zA-Z]/;
9
+ function U(t, n, e) {
10
+ var i, s, k, u, d, g, h, w;
11
+ const c = v(), l = (e == null ? void 0 : e.locale) ?? c.locale ?? Y, T = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((s = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : s.firstWeekContainsDate) ?? c.firstWeekContainsDate ?? ((u = (k = c.locale) == null ? void 0 : k.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, O = (e == null ? void 0 : e.weekStartsOn) ?? ((g = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : g.weekStartsOn) ?? c.weekStartsOn ?? ((w = (h = c.locale) == null ? void 0 : h.options) == null ? void 0 : w.weekStartsOn) ?? 0, o = P(t);
12
+ if (!x(o))
13
+ throw new RangeError("Invalid time value");
14
+ let f = n.match(F).map((a) => {
15
+ const r = a[0];
16
+ if (r === "p" || r === "P") {
17
+ const m = C[r];
18
+ return m(a, l.formatLong);
19
+ }
20
+ return a;
21
+ }).join("").match(z).map((a) => {
22
+ if (a === "''")
23
+ return { isToken: !1, value: "'" };
24
+ const r = a[0];
25
+ if (r === "'")
26
+ return { isToken: !1, value: $(a) };
27
+ if (D[r])
28
+ return { isToken: !0, value: a };
29
+ if (r.match(L))
30
+ throw new RangeError(
31
+ "Format string contains an unescaped latin alphabet character `" + r + "`"
32
+ );
33
+ return { isToken: !1, value: a };
34
+ });
35
+ l.localize.preprocessor && (f = l.localize.preprocessor(o, f));
36
+ const E = {
37
+ firstWeekContainsDate: T,
38
+ weekStartsOn: O,
39
+ locale: l
40
+ };
41
+ return f.map((a) => {
42
+ if (!a.isToken)
43
+ return a.value;
44
+ const r = a.value;
45
+ (!(e != null && e.useAdditionalWeekYearTokens) && S(r) || !(e != null && e.useAdditionalDayOfYearTokens) && R(r)) && W(r, n, String(t));
46
+ const m = D[r[0]];
47
+ return m(o, r, l.localize, E);
48
+ }).join("");
49
+ }
50
+ function $(t) {
51
+ const n = t.match(y);
52
+ return n ? n[1].replace(A, "'") : t;
53
+ }
54
+ export {
55
+ U as default,
56
+ U as format,
57
+ U as formatDate,
58
+ D as formatters,
59
+ C as longFormatters
60
+ };
@@ -0,0 +1,8 @@
1
+ import { toDate as a } from "./toDate.js";
2
+ function n(t) {
3
+ return a(t).getDay();
4
+ }
5
+ export {
6
+ n as default,
7
+ n as getDay
8
+ };
@@ -0,0 +1,11 @@
1
+ import { differenceInCalendarDays as a } from "./differenceInCalendarDays.js";
2
+ import { startOfYear as f } from "./startOfYear.js";
3
+ import { toDate as e } from "./toDate.js";
4
+ function s(t) {
5
+ const r = e(t);
6
+ return a(r, f(r)) + 1;
7
+ }
8
+ export {
9
+ s as default,
10
+ s as getDayOfYear
11
+ };
@@ -0,0 +1,10 @@
1
+ import { toDate as s } from "./toDate.js";
2
+ import { constructFrom as a } from "./constructFrom.js";
3
+ function l(o) {
4
+ const e = s(o), n = e.getFullYear(), r = e.getMonth(), t = a(o, 0);
5
+ return t.setFullYear(n, r + 1, 0), t.setHours(0, 0, 0, 0), t.getDate();
6
+ }
7
+ export {
8
+ l as default,
9
+ l as getDaysInMonth
10
+ };
@@ -0,0 +1,8 @@
1
+ import { getDefaultOptions as t } from "./_lib/defaultOptions.js";
2
+ function a() {
3
+ return Object.assign({}, t());
4
+ }
5
+ export {
6
+ a as default,
7
+ a as getDefaultOptions
8
+ };
@@ -0,0 +1,8 @@
1
+ import { toDate as o } from "./toDate.js";
2
+ function u(t) {
3
+ return o(t).getHours();
4
+ }
5
+ export {
6
+ u as default,
7
+ u as getHours
8
+ };
@@ -0,0 +1,9 @@
1
+ import { toDate as a } from "./toDate.js";
2
+ function d(e) {
3
+ let t = a(e).getDay();
4
+ return t === 0 && (t = 7), t;
5
+ }
6
+ export {
7
+ d as default,
8
+ d as getISODay
9
+ };
@@ -0,0 +1,12 @@
1
+ import { millisecondsInWeek as r } from "./constants.js";
2
+ import { startOfISOWeek as f } from "./startOfISOWeek.js";
3
+ import { startOfISOWeekYear as m } from "./startOfISOWeekYear.js";
4
+ import { toDate as a } from "./toDate.js";
5
+ function p(e) {
6
+ const t = a(e), o = +f(t) - +m(t);
7
+ return Math.round(o / r) + 1;
8
+ }
9
+ export {
10
+ p as default,
11
+ p as getISOWeek
12
+ };
@@ -0,0 +1,15 @@
1
+ import { constructFrom as a } from "./constructFrom.js";
2
+ import { startOfISOWeek as f } from "./startOfISOWeek.js";
3
+ import { toDate as i } from "./toDate.js";
4
+ function O(t) {
5
+ const r = i(t), e = r.getFullYear(), o = a(t, 0);
6
+ o.setFullYear(e + 1, 0, 4), o.setHours(0, 0, 0, 0);
7
+ const u = f(o), s = a(t, 0);
8
+ s.setFullYear(e, 0, 4), s.setHours(0, 0, 0, 0);
9
+ const n = f(s);
10
+ return r.getTime() >= u.getTime() ? e + 1 : r.getTime() >= n.getTime() ? e : e - 1;
11
+ }
12
+ export {
13
+ O as default,
14
+ O as getISOWeekYear
15
+ };
@@ -0,0 +1,8 @@
1
+ import { toDate as e } from "./toDate.js";
2
+ function u(t) {
3
+ return e(t).getMinutes();
4
+ }
5
+ export {
6
+ u as default,
7
+ u as getMinutes
8
+ };
@@ -0,0 +1,8 @@
1
+ import { toDate as o } from "./toDate.js";
2
+ function r(t) {
3
+ return o(t).getMonth();
4
+ }
5
+ export {
6
+ r as default,
7
+ r as getMonth
8
+ };
@@ -0,0 +1,9 @@
1
+ import { toDate as e } from "./toDate.js";
2
+ function n(t) {
3
+ const r = e(t);
4
+ return Math.trunc(r.getMonth() / 3) + 1;
5
+ }
6
+ export {
7
+ n as default,
8
+ n as getQuarter
9
+ };
@@ -0,0 +1,8 @@
1
+ import { toDate as e } from "./toDate.js";
2
+ function c(t) {
3
+ return e(t).getSeconds();
4
+ }
5
+ export {
6
+ c as default,
7
+ c as getSeconds
8
+ };
@@ -0,0 +1,12 @@
1
+ import { millisecondsInWeek as f } from "./constants.js";
2
+ import { startOfWeek as m } from "./startOfWeek.js";
3
+ import { startOfWeekYear as a } from "./startOfWeekYear.js";
4
+ import { toDate as i } from "./toDate.js";
5
+ function k(r, t) {
6
+ const e = i(r), o = +m(e, t) - +a(e, t);
7
+ return Math.round(o / f) + 1;
8
+ }
9
+ export {
10
+ k as default,
11
+ k as getWeek
12
+ };
@@ -0,0 +1,17 @@
1
+ import { constructFrom as u } from "./constructFrom.js";
2
+ import { startOfWeek as k } from "./startOfWeek.js";
3
+ import { toDate as g } from "./toDate.js";
4
+ import { getDefaultOptions as D } from "./_lib/defaultOptions.js";
5
+ function x(r, e) {
6
+ var l, o, c, m;
7
+ const a = g(r), t = a.getFullYear(), i = D(), n = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((o = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : o.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((m = (c = i.locale) == null ? void 0 : c.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, s = u(r, 0);
8
+ s.setFullYear(t + 1, 0, n), s.setHours(0, 0, 0, 0);
9
+ const W = k(s, e), f = u(r, 0);
10
+ f.setFullYear(t, 0, n), f.setHours(0, 0, 0, 0);
11
+ const Y = k(f, e);
12
+ return a.getTime() >= W.getTime() ? t + 1 : a.getTime() >= Y.getTime() ? t : t - 1;
13
+ }
14
+ export {
15
+ x as default,
16
+ x as getWeekYear
17
+ };
@@ -0,0 +1,8 @@
1
+ import { toDate as e } from "./toDate.js";
2
+ function a(t) {
3
+ return e(t).getFullYear();
4
+ }
5
+ export {
6
+ a as default,
7
+ a as getYear
8
+ };
@@ -0,0 +1,9 @@
1
+ import { toDate as t } from "./toDate.js";
2
+ function m(e, o) {
3
+ const r = t(e), a = t(o);
4
+ return r.getTime() > a.getTime();
5
+ }
6
+ export {
7
+ m as default,
8
+ m as isAfter
9
+ };
@@ -0,0 +1,9 @@
1
+ import { toDate as t } from "./toDate.js";
2
+ function f(o, e) {
3
+ const r = t(o), a = t(e);
4
+ return +r < +a;
5
+ }
6
+ export {
7
+ f as default,
8
+ f as isBefore
9
+ };
@@ -0,0 +1,7 @@
1
+ function e(t) {
2
+ return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
3
+ }
4
+ export {
5
+ e as default,
6
+ e as isDate
7
+ };
@@ -0,0 +1,9 @@
1
+ import { toDate as t } from "./toDate.js";
2
+ function f(e, o) {
3
+ const a = t(e), n = t(o);
4
+ return +a == +n;
5
+ }
6
+ export {
7
+ f as default,
8
+ f as isEqual
9
+ };
@@ -0,0 +1,9 @@
1
+ import { startOfQuarter as t } from "./startOfQuarter.js";
2
+ function o(r, a) {
3
+ const e = t(r), f = t(a);
4
+ return +e == +f;
5
+ }
6
+ export {
7
+ o as default,
8
+ o as isSameQuarter
9
+ };
@@ -0,0 +1,12 @@
1
+ import { isDate as e } from "./isDate.js";
2
+ import { toDate as o } from "./toDate.js";
3
+ function a(r) {
4
+ if (!e(r) && typeof r != "number")
5
+ return !1;
6
+ const t = o(r);
7
+ return !isNaN(Number(t));
8
+ }
9
+ export {
10
+ a as default,
11
+ a as isValid
12
+ };
@@ -0,0 +1,9 @@
1
+ function r(t) {
2
+ return (d = {}) => {
3
+ const n = d.width ? String(d.width) : t.defaultWidth;
4
+ return t.formats[n] || t.formats[t.defaultWidth];
5
+ };
6
+ }
7
+ export {
8
+ r as buildFormatLongFn
9
+ };
@@ -0,0 +1,18 @@
1
+ function h(e) {
2
+ return (a, t) => {
3
+ const c = t != null && t.context ? String(t.context) : "standalone";
4
+ let l;
5
+ if (c === "formatting" && e.formattingValues) {
6
+ const d = e.defaultFormattingWidth || e.defaultWidth, u = t != null && t.width ? String(t.width) : d;
7
+ l = e.formattingValues[u] || e.formattingValues[d];
8
+ } else {
9
+ const d = e.defaultWidth, u = t != null && t.width ? String(t.width) : e.defaultWidth;
10
+ l = e.values[u] || e.values[d];
11
+ }
12
+ const f = e.argumentCallback ? e.argumentCallback(a) : a;
13
+ return l[f];
14
+ };
15
+ }
16
+ export {
17
+ h as buildLocalizeFn
18
+ };
@@ -0,0 +1,31 @@
1
+ function P(t) {
2
+ return (n, e = {}) => {
3
+ const l = e.width, h = l && t.matchPatterns[l] || t.matchPatterns[t.defaultMatchWidth], i = n.match(h);
4
+ if (!i)
5
+ return null;
6
+ const r = i[0], c = l && t.parsePatterns[l] || t.parsePatterns[t.defaultParseWidth], d = Array.isArray(c) ? o(c, (u) => u.test(r)) : (
7
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
8
+ s(c, (u) => u.test(r))
9
+ );
10
+ let a;
11
+ a = t.valueCallback ? t.valueCallback(d) : d, a = e.valueCallback ? (
12
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
13
+ e.valueCallback(a)
14
+ ) : a;
15
+ const f = n.slice(r.length);
16
+ return { value: a, rest: f };
17
+ };
18
+ }
19
+ function s(t, n) {
20
+ for (const e in t)
21
+ if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
22
+ return e;
23
+ }
24
+ function o(t, n) {
25
+ for (let e = 0; e < t.length; e++)
26
+ if (n(t[e]))
27
+ return e;
28
+ }
29
+ export {
30
+ P as buildMatchFn
31
+ };
@@ -0,0 +1,17 @@
1
+ function h(t) {
2
+ return (e, c = {}) => {
3
+ const n = e.match(t.matchPattern);
4
+ if (!n)
5
+ return null;
6
+ const u = n[0], a = e.match(t.parsePattern);
7
+ if (!a)
8
+ return null;
9
+ let l = t.valueCallback ? t.valueCallback(a[0]) : a[0];
10
+ l = c.valueCallback ? c.valueCallback(l) : l;
11
+ const r = e.slice(u.length);
12
+ return { value: l, rest: r };
13
+ };
14
+ }
15
+ export {
16
+ h as buildMatchPatternFn
17
+ };
@@ -0,0 +1,70 @@
1
+ const a = {
2
+ lessThanXSeconds: {
3
+ one: "less than a second",
4
+ other: "less than {{count}} seconds"
5
+ },
6
+ xSeconds: {
7
+ one: "1 second",
8
+ other: "{{count}} seconds"
9
+ },
10
+ halfAMinute: "half a minute",
11
+ lessThanXMinutes: {
12
+ one: "less than a minute",
13
+ other: "less than {{count}} minutes"
14
+ },
15
+ xMinutes: {
16
+ one: "1 minute",
17
+ other: "{{count}} minutes"
18
+ },
19
+ aboutXHours: {
20
+ one: "about 1 hour",
21
+ other: "about {{count}} hours"
22
+ },
23
+ xHours: {
24
+ one: "1 hour",
25
+ other: "{{count}} hours"
26
+ },
27
+ xDays: {
28
+ one: "1 day",
29
+ other: "{{count}} days"
30
+ },
31
+ aboutXWeeks: {
32
+ one: "about 1 week",
33
+ other: "about {{count}} weeks"
34
+ },
35
+ xWeeks: {
36
+ one: "1 week",
37
+ other: "{{count}} weeks"
38
+ },
39
+ aboutXMonths: {
40
+ one: "about 1 month",
41
+ other: "about {{count}} months"
42
+ },
43
+ xMonths: {
44
+ one: "1 month",
45
+ other: "{{count}} months"
46
+ },
47
+ aboutXYears: {
48
+ one: "about 1 year",
49
+ other: "about {{count}} years"
50
+ },
51
+ xYears: {
52
+ one: "1 year",
53
+ other: "{{count}} years"
54
+ },
55
+ overXYears: {
56
+ one: "over 1 year",
57
+ other: "over {{count}} years"
58
+ },
59
+ almostXYears: {
60
+ one: "almost 1 year",
61
+ other: "almost {{count}} years"
62
+ }
63
+ }, r = (s, n, o) => {
64
+ let e;
65
+ const t = a[s];
66
+ return typeof t == "string" ? e = t : n === 1 ? e = t.one : e = t.other.replace("{{count}}", n.toString()), o != null && o.addSuffix ? o.comparison && o.comparison > 0 ? "in " + e : e + " ago" : e;
67
+ };
68
+ export {
69
+ r as formatDistance
70
+ };
@@ -0,0 +1,33 @@
1
+ import { buildFormatLongFn as t } from "../../_lib/buildFormatLongFn.js";
2
+ const m = {
3
+ full: "EEEE, MMMM do, y",
4
+ long: "MMMM do, y",
5
+ medium: "MMM d, y",
6
+ short: "MM/dd/yyyy"
7
+ }, a = {
8
+ full: "h:mm:ss a zzzz",
9
+ long: "h:mm:ss a z",
10
+ medium: "h:mm:ss a",
11
+ short: "h:mm a"
12
+ }, o = {
13
+ full: "{{date}} 'at' {{time}}",
14
+ long: "{{date}} 'at' {{time}}",
15
+ medium: "{{date}}, {{time}}",
16
+ short: "{{date}}, {{time}}"
17
+ }, e = {
18
+ date: t({
19
+ formats: m,
20
+ defaultWidth: "full"
21
+ }),
22
+ time: t({
23
+ formats: a,
24
+ defaultWidth: "full"
25
+ }),
26
+ dateTime: t({
27
+ formats: o,
28
+ defaultWidth: "full"
29
+ })
30
+ };
31
+ export {
32
+ e as formatLong
33
+ };
@@ -0,0 +1,11 @@
1
+ const t = {
2
+ lastWeek: "'last' eeee 'at' p",
3
+ yesterday: "'yesterday at' p",
4
+ today: "'today at' p",
5
+ tomorrow: "'tomorrow at' p",
6
+ nextWeek: "eeee 'at' p",
7
+ other: "P"
8
+ }, s = (e, a, o, r) => t[e];
9
+ export {
10
+ s as formatRelative
11
+ };