@quidgest/ui 0.14.12 → 0.14.14

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/dist/manifest/components.json +3 -0
  2. package/dist/ui.css +1726 -211
  3. package/dist/ui.esm.js +11110 -1888
  4. package/dist/ui.js +21 -21
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +1212 -255
  7. package/dist/ui.scss +278 -85
  8. package/esm/components/QBadge/QBadge.d.ts +2 -1
  9. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  10. package/esm/components/QBadge/QBadge.vue.js +75 -66
  11. package/esm/components/QBadge/index.d.ts +3 -0
  12. package/esm/components/QBadge/index.d.ts.map +1 -1
  13. package/esm/components/QBadge/types.d.ts +7 -0
  14. package/esm/components/QBadge/types.d.ts.map +1 -1
  15. package/esm/components/QBadge/types.js +5 -2
  16. package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts +22 -0
  17. package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -0
  18. package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +43 -0
  19. package/esm/components/QBadgeIndicator/QBadgeIndicator.vue2.js +4 -0
  20. package/esm/components/QBadgeIndicator/index.d.ts +28 -0
  21. package/esm/components/QBadgeIndicator/index.d.ts.map +1 -0
  22. package/esm/components/QBadgeIndicator/index.js +6 -0
  23. package/esm/components/QBadgeIndicator/types.d.ts +19 -0
  24. package/esm/components/QBadgeIndicator/types.d.ts.map +1 -0
  25. package/esm/components/QCombobox/QCombobox.d.ts +32 -4
  26. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  27. package/esm/components/QCombobox/index.d.ts +56 -7
  28. package/esm/components/QCombobox/index.d.ts.map +1 -1
  29. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +36 -0
  30. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -0
  31. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +168 -0
  32. package/esm/components/QDateTimePicker/QDateTimePicker.vue2.js +4 -0
  33. package/esm/components/QDateTimePicker/index.d.ts +54 -0
  34. package/esm/components/QDateTimePicker/index.d.ts.map +1 -0
  35. package/esm/components/QDateTimePicker/index.js +6 -0
  36. package/esm/components/QDateTimePicker/types.d.ts +93 -0
  37. package/esm/components/QDateTimePicker/types.d.ts.map +1 -0
  38. package/esm/components/QDateTimePicker/types.js +15 -0
  39. package/esm/components/QFileUpload/QFileUpload.d.ts +37 -0
  40. package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -0
  41. package/esm/components/QFileUpload/QFileUpload.vue.js +238 -0
  42. package/esm/components/QFileUpload/QFileUpload.vue2.js +4 -0
  43. package/esm/components/QFileUpload/index.d.ts +52 -0
  44. package/esm/components/QFileUpload/index.d.ts.map +1 -0
  45. package/esm/components/QFileUpload/index.js +6 -0
  46. package/esm/components/QFileUpload/types.d.ts +69 -0
  47. package/esm/components/QFileUpload/types.d.ts.map +1 -0
  48. package/esm/components/QFileUpload/types.js +28 -0
  49. package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
  50. package/esm/components/QOverlay/QOverlay.vue.js +64 -64
  51. package/esm/components/QTextField/QTextField.d.ts +3 -0
  52. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  53. package/esm/components/QTextField/QTextField.vue.js +51 -39
  54. package/esm/components/QTextField/index.d.ts +7 -0
  55. package/esm/components/QTextField/index.d.ts.map +1 -1
  56. package/esm/components/QTextField/types.d.ts +11 -0
  57. package/esm/components/QTextField/types.d.ts.map +1 -1
  58. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  59. package/esm/components/QTooltip/QTooltip.vue.js +50 -29
  60. package/esm/components/index.d.ts +3 -0
  61. package/esm/components/index.d.ts.map +1 -1
  62. package/esm/components/index.js +62 -56
  63. package/esm/composables/maska.d.ts +28 -0
  64. package/esm/composables/maska.d.ts.map +1 -0
  65. package/esm/composables/maska.js +26 -0
  66. package/esm/composables/useDropZone/index.d.ts +38 -0
  67. package/esm/composables/useDropZone/index.d.ts.map +1 -0
  68. package/esm/composables/useDropZone/index.js +62 -0
  69. package/esm/index.d.ts +3 -0
  70. package/esm/utils/color.js +57 -27
  71. package/esm/utils/date/date.d.ts +9 -0
  72. package/esm/utils/date/date.d.ts.map +1 -0
  73. package/esm/utils/date/date.js +91 -0
  74. package/esm/utils/date/index.d.ts +4 -0
  75. package/esm/utils/date/index.d.ts.map +1 -0
  76. package/esm/utils/date/tokens.d.ts +49 -0
  77. package/esm/utils/date/tokens.d.ts.map +1 -0
  78. package/esm/utils/date/tokens.js +243 -0
  79. package/esm/utils/download.d.ts +7 -0
  80. package/esm/utils/download.d.ts.map +1 -0
  81. package/esm/utils/download.js +16 -0
  82. package/esm/utils/string.d.ts.map +1 -1
  83. package/esm/utils/string.js +5 -2
  84. package/esm/utils/time.d.ts +36 -0
  85. package/esm/utils/time.d.ts.map +1 -0
  86. package/esm/utils/time.js +14 -0
  87. package/esm/vendors/@vuepic/vue-datepicker/dist/vue-datepicker.js +5148 -0
  88. package/esm/vendors/date-fns/_lib/addLeadingZeros.js +7 -0
  89. package/esm/vendors/date-fns/_lib/defaultOptions.js +7 -0
  90. package/esm/vendors/date-fns/_lib/format/formatters.js +583 -0
  91. package/esm/vendors/date-fns/_lib/format/lightFormatters.js +59 -0
  92. package/esm/vendors/date-fns/_lib/format/longFormatters.js +52 -0
  93. package/esm/vendors/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  94. package/esm/vendors/date-fns/_lib/normalizeDates.js +11 -0
  95. package/esm/vendors/date-fns/_lib/normalizeInterval.js +8 -0
  96. package/esm/vendors/date-fns/_lib/protectedTokens.js +20 -0
  97. package/esm/vendors/date-fns/add.js +20 -0
  98. package/esm/vendors/date-fns/addDays.js +10 -0
  99. package/esm/vendors/date-fns/addHours.js +9 -0
  100. package/esm/vendors/date-fns/addMilliseconds.js +9 -0
  101. package/esm/vendors/date-fns/addMonths.js +20 -0
  102. package/esm/vendors/date-fns/addQuarters.js +8 -0
  103. package/esm/vendors/date-fns/addYears.js +8 -0
  104. package/esm/vendors/date-fns/compareAsc.js +9 -0
  105. package/esm/vendors/date-fns/constants.js +9 -0
  106. package/esm/vendors/date-fns/constructFrom.js +8 -0
  107. package/esm/vendors/date-fns/differenceInCalendarDays.js +16 -0
  108. package/esm/vendors/date-fns/differenceInCalendarYears.js +13 -0
  109. package/esm/vendors/date-fns/differenceInYears.js +17 -0
  110. package/esm/vendors/date-fns/eachDayOfInterval.js +17 -0
  111. package/esm/vendors/date-fns/eachQuarterOfInterval.js +18 -0
  112. package/esm/vendors/date-fns/endOfQuarter.js +9 -0
  113. package/esm/vendors/date-fns/endOfWeek.js +11 -0
  114. package/esm/vendors/date-fns/endOfYear.js +9 -0
  115. package/esm/vendors/date-fns/format.js +59 -0
  116. package/esm/vendors/date-fns/getDay.js +8 -0
  117. package/esm/vendors/date-fns/getDayOfYear.js +11 -0
  118. package/esm/vendors/date-fns/getDaysInMonth.js +10 -0
  119. package/esm/vendors/date-fns/getDefaultOptions.js +8 -0
  120. package/esm/vendors/date-fns/getHours.js +8 -0
  121. package/esm/vendors/date-fns/getISODay.js +9 -0
  122. package/esm/vendors/date-fns/getISOWeek.js +12 -0
  123. package/esm/vendors/date-fns/getISOWeekYear.js +15 -0
  124. package/esm/vendors/date-fns/getMinutes.js +8 -0
  125. package/esm/vendors/date-fns/getMonth.js +8 -0
  126. package/esm/vendors/date-fns/getQuarter.js +9 -0
  127. package/esm/vendors/date-fns/getSeconds.js +8 -0
  128. package/esm/vendors/date-fns/getWeek.js +12 -0
  129. package/esm/vendors/date-fns/getWeekYear.js +17 -0
  130. package/esm/vendors/date-fns/getYear.js +8 -0
  131. package/esm/vendors/date-fns/isAfter.js +8 -0
  132. package/esm/vendors/date-fns/isBefore.js +8 -0
  133. package/esm/vendors/date-fns/isDate.js +7 -0
  134. package/esm/vendors/date-fns/isEqual.js +8 -0
  135. package/esm/vendors/date-fns/isSameQuarter.js +14 -0
  136. package/esm/vendors/date-fns/isValid.js +9 -0
  137. package/esm/vendors/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  138. package/esm/vendors/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  139. package/esm/vendors/date-fns/locale/_lib/buildMatchFn.js +31 -0
  140. package/esm/vendors/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
  141. package/esm/vendors/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  142. package/esm/vendors/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  143. package/esm/vendors/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  144. package/esm/vendors/date-fns/locale/en-US/_lib/localize.js +155 -0
  145. package/esm/vendors/date-fns/locale/en-US/_lib/match.js +110 -0
  146. package/esm/vendors/date-fns/locale/en-US.js +21 -0
  147. package/esm/vendors/date-fns/parse/_lib/Parser.js +22 -0
  148. package/esm/vendors/date-fns/parse/_lib/Setter.js +41 -0
  149. package/esm/vendors/date-fns/parse/_lib/constants.js +49 -0
  150. package/esm/vendors/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +49 -0
  151. package/esm/vendors/date-fns/parse/_lib/parsers/AMPMParser.js +49 -0
  152. package/esm/vendors/date-fns/parse/_lib/parsers/DateParser.js +61 -0
  153. package/esm/vendors/date-fns/parse/_lib/parsers/DayOfYearParser.js +51 -0
  154. package/esm/vendors/date-fns/parse/_lib/parsers/DayParser.js +49 -0
  155. package/esm/vendors/date-fns/parse/_lib/parsers/DayPeriodParser.js +49 -0
  156. package/esm/vendors/date-fns/parse/_lib/parsers/EraParser.js +33 -0
  157. package/esm/vendors/date-fns/parse/_lib/parsers/ExtendedYearParser.js +21 -0
  158. package/esm/vendors/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +22 -0
  159. package/esm/vendors/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
  160. package/esm/vendors/date-fns/parse/_lib/parsers/Hour0to23Parser.js +32 -0
  161. package/esm/vendors/date-fns/parse/_lib/parsers/Hour1To24Parser.js +33 -0
  162. package/esm/vendors/date-fns/parse/_lib/parsers/Hour1to12Parser.js +33 -0
  163. package/esm/vendors/date-fns/parse/_lib/parsers/ISODayParser.js +105 -0
  164. package/esm/vendors/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +48 -0
  165. package/esm/vendors/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +48 -0
  166. package/esm/vendors/date-fns/parse/_lib/parsers/ISOWeekParser.js +49 -0
  167. package/esm/vendors/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +40 -0
  168. package/esm/vendors/date-fns/parse/_lib/parsers/LocalDayParser.js +80 -0
  169. package/esm/vendors/date-fns/parse/_lib/parsers/LocalWeekParser.js +48 -0
  170. package/esm/vendors/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +69 -0
  171. package/esm/vendors/date-fns/parse/_lib/parsers/MinuteParser.js +32 -0
  172. package/esm/vendors/date-fns/parse/_lib/parsers/MonthParser.js +77 -0
  173. package/esm/vendors/date-fns/parse/_lib/parsers/QuarterParser.js +75 -0
  174. package/esm/vendors/date-fns/parse/_lib/parsers/SecondParser.js +32 -0
  175. package/esm/vendors/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +80 -0
  176. package/esm/vendors/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +77 -0
  177. package/esm/vendors/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +75 -0
  178. package/esm/vendors/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +22 -0
  179. package/esm/vendors/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +22 -0
  180. package/esm/vendors/date-fns/parse/_lib/parsers/YearParser.js +49 -0
  181. package/esm/vendors/date-fns/parse/_lib/parsers.js +67 -0
  182. package/esm/vendors/date-fns/parse/_lib/utils.js +103 -0
  183. package/esm/vendors/date-fns/parse.js +89 -0
  184. package/esm/vendors/date-fns/set.js +11 -0
  185. package/esm/vendors/date-fns/setDay.js +12 -0
  186. package/esm/vendors/date-fns/setHours.js +9 -0
  187. package/esm/vendors/date-fns/setISODay.js +11 -0
  188. package/esm/vendors/date-fns/setISOWeek.js +10 -0
  189. package/esm/vendors/date-fns/setMilliseconds.js +9 -0
  190. package/esm/vendors/date-fns/setMinutes.js +9 -0
  191. package/esm/vendors/date-fns/setMonth.js +13 -0
  192. package/esm/vendors/date-fns/setSeconds.js +9 -0
  193. package/esm/vendors/date-fns/setWeek.js +10 -0
  194. package/esm/vendors/date-fns/setYear.js +10 -0
  195. package/esm/vendors/date-fns/startOfDay.js +9 -0
  196. package/esm/vendors/date-fns/startOfISOWeek.js +8 -0
  197. package/esm/vendors/date-fns/startOfISOWeekYear.js +11 -0
  198. package/esm/vendors/date-fns/startOfMonth.js +9 -0
  199. package/esm/vendors/date-fns/startOfQuarter.js +9 -0
  200. package/esm/vendors/date-fns/startOfWeek.js +11 -0
  201. package/esm/vendors/date-fns/startOfWeekYear.js +13 -0
  202. package/esm/vendors/date-fns/startOfYear.js +9 -0
  203. package/esm/vendors/date-fns/sub.js +19 -0
  204. package/esm/vendors/date-fns/subDays.js +8 -0
  205. package/esm/vendors/date-fns/subMonths.js +8 -0
  206. package/esm/vendors/date-fns/subYears.js +8 -0
  207. package/esm/vendors/date-fns/toDate.js +8 -0
  208. package/esm/vendors/date-fns/transpose.js +18 -0
  209. package/esm/vendors/maska/dist/maska.js +179 -0
  210. package/package.json +5 -1
@@ -0,0 +1,22 @@
1
+ var o = Object.defineProperty;
2
+ var m = (t, r, e) => r in t ? o(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
+ var s = (t, r, e) => m(t, typeof r != "symbol" ? r + "" : r, e);
4
+ import { constructFrom as p } from "../../../constructFrom.js";
5
+ import { Parser as a } from "../Parser.js";
6
+ import { parseAnyDigitsSigned as n } from "../utils.js";
7
+ class g extends a {
8
+ constructor() {
9
+ super(...arguments);
10
+ s(this, "priority", 20);
11
+ s(this, "incompatibleTokens", "*");
12
+ }
13
+ parse(e) {
14
+ return n(e);
15
+ }
16
+ set(e, c, i) {
17
+ return [p(e, i), { timestampIsSet: !0 }];
18
+ }
19
+ }
20
+ export {
21
+ g as TimestampMillisecondsParser
22
+ };
@@ -0,0 +1,22 @@
1
+ var i = Object.defineProperty;
2
+ var m = (t, r, e) => r in t ? i(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
+ var s = (t, r, e) => m(t, typeof r != "symbol" ? r + "" : r, e);
4
+ import { constructFrom as p } from "../../../constructFrom.js";
5
+ import { Parser as a } from "../Parser.js";
6
+ import { parseAnyDigitsSigned as n } from "../utils.js";
7
+ class l extends a {
8
+ constructor() {
9
+ super(...arguments);
10
+ s(this, "priority", 40);
11
+ s(this, "incompatibleTokens", "*");
12
+ }
13
+ parse(e) {
14
+ return n(e);
15
+ }
16
+ set(e, c, o) {
17
+ return [p(e, o * 1e3), { timestampIsSet: !0 }];
18
+ }
19
+ }
20
+ export {
21
+ l as TimestampSecondsParser
22
+ };
@@ -0,0 +1,49 @@
1
+ var y = Object.defineProperty;
2
+ var Y = (a, i, r) => i in a ? y(a, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[i] = r;
3
+ var n = (a, i, r) => Y(a, typeof i != "symbol" ? i + "" : i, r);
4
+ import { Parser as m } from "../Parser.js";
5
+ import { mapValue as u, parseNDigits as l, normalizeTwoDigitYear as p } from "../utils.js";
6
+ class g extends m {
7
+ constructor() {
8
+ super(...arguments);
9
+ n(this, "priority", 130);
10
+ n(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
11
+ }
12
+ parse(r, e, s) {
13
+ const t = (o) => ({
14
+ year: o,
15
+ isTwoDigitYear: e === "yy"
16
+ });
17
+ switch (e) {
18
+ case "y":
19
+ return u(l(4, r), t);
20
+ case "yo":
21
+ return u(
22
+ s.ordinalNumber(r, {
23
+ unit: "year"
24
+ }),
25
+ t
26
+ );
27
+ default:
28
+ return u(l(e.length, r), t);
29
+ }
30
+ }
31
+ validate(r, e) {
32
+ return e.isTwoDigitYear || e.year > 0;
33
+ }
34
+ set(r, e, s) {
35
+ const t = r.getFullYear();
36
+ if (s.isTwoDigitYear) {
37
+ const c = p(
38
+ s.year,
39
+ t
40
+ );
41
+ return r.setFullYear(c, 0, 1), r.setHours(0, 0, 0, 0), r;
42
+ }
43
+ const o = !("era" in e) || e.era === 1 ? s.year : 1 - s.year;
44
+ return r.setFullYear(o, 0, 1), r.setHours(0, 0, 0, 0), r;
45
+ }
46
+ }
47
+ export {
48
+ g as YearParser
49
+ };
@@ -0,0 +1,67 @@
1
+ import { EraParser as r } from "./parsers/EraParser.js";
2
+ import { YearParser as e } from "./parsers/YearParser.js";
3
+ import { LocalWeekYearParser as o } from "./parsers/LocalWeekYearParser.js";
4
+ import { ISOWeekYearParser as m } from "./parsers/ISOWeekYearParser.js";
5
+ import { ExtendedYearParser as a } from "./parsers/ExtendedYearParser.js";
6
+ import { QuarterParser as t } from "./parsers/QuarterParser.js";
7
+ import { StandAloneQuarterParser as n } from "./parsers/StandAloneQuarterParser.js";
8
+ import { MonthParser as i } from "./parsers/MonthParser.js";
9
+ import { StandAloneMonthParser as s } from "./parsers/StandAloneMonthParser.js";
10
+ import { LocalWeekParser as p } from "./parsers/LocalWeekParser.js";
11
+ import { ISOWeekParser as P } from "./parsers/ISOWeekParser.js";
12
+ import { DateParser as f } from "./parsers/DateParser.js";
13
+ import { DayOfYearParser as w } from "./parsers/DayOfYearParser.js";
14
+ import { DayParser as d } from "./parsers/DayParser.js";
15
+ import { LocalDayParser as S } from "./parsers/LocalDayParser.js";
16
+ import { StandAloneLocalDayParser as c } from "./parsers/StandAloneLocalDayParser.js";
17
+ import { ISODayParser as M } from "./parsers/ISODayParser.js";
18
+ import { AMPMParser as l } from "./parsers/AMPMParser.js";
19
+ import { AMPMMidnightParser as u } from "./parsers/AMPMMidnightParser.js";
20
+ import { DayPeriodParser as D } from "./parsers/DayPeriodParser.js";
21
+ import { Hour1to12Parser as y } from "./parsers/Hour1to12Parser.js";
22
+ import { Hour0to23Parser as O } from "./parsers/Hour0to23Parser.js";
23
+ import { Hour0To11Parser as T } from "./parsers/Hour0To11Parser.js";
24
+ import { Hour1To24Parser as I } from "./parsers/Hour1To24Parser.js";
25
+ import { MinuteParser as Y } from "./parsers/MinuteParser.js";
26
+ import { SecondParser as h } from "./parsers/SecondParser.js";
27
+ import { FractionOfSecondParser as k } from "./parsers/FractionOfSecondParser.js";
28
+ import { ISOTimezoneWithZParser as A } from "./parsers/ISOTimezoneWithZParser.js";
29
+ import { ISOTimezoneParser as H } from "./parsers/ISOTimezoneParser.js";
30
+ import { TimestampSecondsParser as L } from "./parsers/TimestampSecondsParser.js";
31
+ import { TimestampMillisecondsParser as W } from "./parsers/TimestampMillisecondsParser.js";
32
+ const sr = {
33
+ G: new r(),
34
+ y: new e(),
35
+ Y: new o(),
36
+ R: new m(),
37
+ u: new a(),
38
+ Q: new t(),
39
+ q: new n(),
40
+ M: new i(),
41
+ L: new s(),
42
+ w: new p(),
43
+ I: new P(),
44
+ d: new f(),
45
+ D: new w(),
46
+ E: new d(),
47
+ e: new S(),
48
+ c: new c(),
49
+ i: new M(),
50
+ a: new l(),
51
+ b: new u(),
52
+ B: new D(),
53
+ h: new y(),
54
+ H: new O(),
55
+ K: new T(),
56
+ k: new I(),
57
+ m: new Y(),
58
+ s: new h(),
59
+ S: new k(),
60
+ X: new A(),
61
+ x: new H(),
62
+ t: new L(),
63
+ T: new W()
64
+ };
65
+ export {
66
+ sr as parsers
67
+ };
@@ -0,0 +1,103 @@
1
+ import { millisecondsInHour as l, millisecondsInMinute as m, millisecondsInSecond as f } from "../../constants.js";
2
+ import { numericPatterns as r } from "./constants.js";
3
+ function p(e, n) {
4
+ return e && {
5
+ value: n(e.value),
6
+ rest: e.rest
7
+ };
8
+ }
9
+ function t(e, n) {
10
+ const s = n.match(e);
11
+ return s ? {
12
+ value: parseInt(s[0], 10),
13
+ rest: n.slice(s[0].length)
14
+ } : null;
15
+ }
16
+ function d(e, n) {
17
+ const s = n.match(e);
18
+ if (!s)
19
+ return null;
20
+ if (s[0] === "Z")
21
+ return {
22
+ value: 0,
23
+ rest: n.slice(1)
24
+ };
25
+ const u = s[1] === "+" ? 1 : -1, i = s[2] ? parseInt(s[2], 10) : 0, c = s[3] ? parseInt(s[3], 10) : 0, o = s[5] ? parseInt(s[5], 10) : 0;
26
+ return {
27
+ value: u * (i * l + c * m + o * f),
28
+ rest: n.slice(s[0].length)
29
+ };
30
+ }
31
+ function D(e) {
32
+ return t(r.anyDigitsSigned, e);
33
+ }
34
+ function I(e, n) {
35
+ switch (e) {
36
+ case 1:
37
+ return t(r.singleDigit, n);
38
+ case 2:
39
+ return t(r.twoDigits, n);
40
+ case 3:
41
+ return t(r.threeDigits, n);
42
+ case 4:
43
+ return t(r.fourDigits, n);
44
+ default:
45
+ return t(new RegExp("^\\d{1," + e + "}"), n);
46
+ }
47
+ }
48
+ function v(e, n) {
49
+ switch (e) {
50
+ case 1:
51
+ return t(r.singleDigitSigned, n);
52
+ case 2:
53
+ return t(r.twoDigitsSigned, n);
54
+ case 3:
55
+ return t(r.threeDigitsSigned, n);
56
+ case 4:
57
+ return t(r.fourDigitsSigned, n);
58
+ default:
59
+ return t(new RegExp("^-?\\d{1," + e + "}"), n);
60
+ }
61
+ }
62
+ function w(e) {
63
+ switch (e) {
64
+ case "morning":
65
+ return 4;
66
+ case "evening":
67
+ return 17;
68
+ case "pm":
69
+ case "noon":
70
+ case "afternoon":
71
+ return 12;
72
+ case "am":
73
+ case "midnight":
74
+ case "night":
75
+ default:
76
+ return 0;
77
+ }
78
+ }
79
+ function E(e, n) {
80
+ const s = n > 0, u = s ? n : 1 - n;
81
+ let i;
82
+ if (u <= 50)
83
+ i = e || 100;
84
+ else {
85
+ const c = u + 50, o = Math.trunc(c / 100) * 100, a = e >= c % 100;
86
+ i = e + o - (a ? 100 : 0);
87
+ }
88
+ return s ? i : 1 - i;
89
+ }
90
+ function P(e) {
91
+ return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
92
+ }
93
+ export {
94
+ w as dayPeriodEnumToHours,
95
+ P as isLeapYearIndex,
96
+ p as mapValue,
97
+ E as normalizeTwoDigitYear,
98
+ D as parseAnyDigitsSigned,
99
+ I as parseNDigits,
100
+ v as parseNDigitsSigned,
101
+ t as parseNumericPattern,
102
+ d as parseTimezonePattern
103
+ };
@@ -0,0 +1,89 @@
1
+ import { longFormatters as W } from "./_lib/format/longFormatters.js";
2
+ import { isProtectedWeekYearToken as L, warnOrThrowProtectedError as b, isProtectedDayOfYearToken as j } from "./_lib/protectedTokens.js";
3
+ import { constructFrom as q } from "./constructFrom.js";
4
+ import { getDefaultOptions as v } from "./getDefaultOptions.js";
5
+ import { toDate as A } from "./toDate.js";
6
+ import { DateTimezoneSetter as z } from "./parse/_lib/Setter.js";
7
+ import { parsers as Q } from "./parse/_lib/parsers.js";
8
+ import { enUS as H } from "./locale/en-US.js";
9
+ const I = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, K = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, M = /^'([^]*?)'?$/, U = /''/g, Z = /\S/, B = /[a-zA-Z]/;
10
+ function te(a, i, f, e) {
11
+ var w, d, T, O, y, E, R, x;
12
+ const c = () => q((e == null ? void 0 : e.in) || f, NaN), l = v(), m = (e == null ? void 0 : e.locale) ?? l.locale ?? H, F = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((d = (w = e == null ? void 0 : e.locale) == null ? void 0 : w.options) == null ? void 0 : d.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((O = (T = l.locale) == null ? void 0 : T.options) == null ? void 0 : O.firstWeekContainsDate) ?? 1, $ = (e == null ? void 0 : e.weekStartsOn) ?? ((E = (y = e == null ? void 0 : e.locale) == null ? void 0 : y.options) == null ? void 0 : E.weekStartsOn) ?? l.weekStartsOn ?? ((x = (R = l.locale) == null ? void 0 : R.options) == null ? void 0 : x.weekStartsOn) ?? 0;
13
+ if (!i)
14
+ return a ? c() : A(f, e == null ? void 0 : e.in);
15
+ const u = {
16
+ firstWeekContainsDate: F,
17
+ weekStartsOn: $,
18
+ locale: m
19
+ }, k = [new z(e == null ? void 0 : e.in, f)], Y = i.match(K).map((r) => {
20
+ const t = r[0];
21
+ if (t in W) {
22
+ const n = W[t];
23
+ return n(r, m.formatLong);
24
+ }
25
+ return r;
26
+ }).join("").match(I), g = [];
27
+ for (let r of Y) {
28
+ !(e != null && e.useAdditionalWeekYearTokens) && L(r) && b(r, i, a), !(e != null && e.useAdditionalDayOfYearTokens) && j(r) && b(r, i, a);
29
+ const t = r[0], n = Q[t];
30
+ if (n) {
31
+ const { incompatibleTokens: D } = n;
32
+ if (Array.isArray(D)) {
33
+ const C = g.find(
34
+ (P) => D.includes(P.token) || P.token === t
35
+ );
36
+ if (C)
37
+ throw new RangeError(
38
+ `The format string mustn't contain \`${C.fullToken}\` and \`${r}\` at the same time`
39
+ );
40
+ } else if (n.incompatibleTokens === "*" && g.length > 0)
41
+ throw new RangeError(
42
+ `The format string mustn't contain \`${r}\` and any other token at the same time`
43
+ );
44
+ g.push({ token: t, fullToken: r });
45
+ const h = n.run(
46
+ a,
47
+ r,
48
+ m.match,
49
+ u
50
+ );
51
+ if (!h)
52
+ return c();
53
+ k.push(h.setter), a = h.rest;
54
+ } else {
55
+ if (t.match(B))
56
+ throw new RangeError(
57
+ "Format string contains an unescaped latin alphabet character `" + t + "`"
58
+ );
59
+ if (r === "''" ? r = "'" : t === "'" && (r = G(r)), a.indexOf(r) === 0)
60
+ a = a.slice(r.length);
61
+ else
62
+ return c();
63
+ }
64
+ }
65
+ if (a.length > 0 && Z.test(a))
66
+ return c();
67
+ const N = k.map((r) => r.priority).sort((r, t) => t - r).filter((r, t, n) => n.indexOf(r) === t).map(
68
+ (r) => k.filter((t) => t.priority === r).sort((t, n) => n.subPriority - t.subPriority)
69
+ ).map((r) => r[0]);
70
+ let s = A(f, e == null ? void 0 : e.in);
71
+ if (isNaN(+s)) return c();
72
+ const o = {};
73
+ for (const r of N) {
74
+ if (!r.validate(s, u))
75
+ return c();
76
+ const t = r.set(s, o, u);
77
+ Array.isArray(t) ? (s = t[0], Object.assign(o, t[1])) : s = t;
78
+ }
79
+ return s;
80
+ }
81
+ function G(a) {
82
+ return a.match(M)[1].replace(U, "'");
83
+ }
84
+ export {
85
+ te as default,
86
+ W as longFormatters,
87
+ te as parse,
88
+ Q as parsers
89
+ };
@@ -0,0 +1,11 @@
1
+ import { constructFrom as e } from "./constructFrom.js";
2
+ import { setMonth as o } from "./setMonth.js";
3
+ import { toDate as f } from "./toDate.js";
4
+ function c(r, t, i) {
5
+ let n = f(r, i == null ? void 0 : i.in);
6
+ return isNaN(+n) ? e(r, NaN) : (t.year != null && n.setFullYear(t.year), t.month != null && (n = o(n, t.month)), t.date != null && n.setDate(t.date), t.hours != null && n.setHours(t.hours), t.minutes != null && n.setMinutes(t.minutes), t.seconds != null && n.setSeconds(t.seconds), t.milliseconds != null && n.setMilliseconds(t.milliseconds), n);
7
+ }
8
+ export {
9
+ c as default,
10
+ c as set
11
+ };
@@ -0,0 +1,12 @@
1
+ import { getDefaultOptions as s } from "./_lib/defaultOptions.js";
2
+ import { addDays as w } from "./addDays.js";
3
+ import { toDate as S } from "./toDate.js";
4
+ function _(O, t, e) {
5
+ var f, d, l, m;
6
+ const a = s(), u = (e == null ? void 0 : e.weekStartsOn) ?? ((d = (f = e == null ? void 0 : e.locale) == null ? void 0 : f.options) == null ? void 0 : d.weekStartsOn) ?? a.weekStartsOn ?? ((m = (l = a.locale) == null ? void 0 : l.options) == null ? void 0 : m.weekStartsOn) ?? 0, c = S(O, e == null ? void 0 : e.in), n = c.getDay(), D = (t % 7 + 7) % 7, r = 7 - u, k = t < 0 || t > 6 ? t - (n + r) % 7 : (D + r) % 7 - (n + r) % 7;
7
+ return w(c, k, e);
8
+ }
9
+ export {
10
+ _ as default,
11
+ _ as setDay
12
+ };
@@ -0,0 +1,9 @@
1
+ import { toDate as a } from "./toDate.js";
2
+ function c(t, u, e) {
3
+ const r = a(t, e == null ? void 0 : e.in);
4
+ return r.setHours(u), r;
5
+ }
6
+ export {
7
+ c as default,
8
+ c as setHours
9
+ };
@@ -0,0 +1,11 @@
1
+ import { addDays as c } from "./addDays.js";
2
+ import { getISODay as d } from "./getISODay.js";
3
+ import { toDate as D } from "./toDate.js";
4
+ function I(a, e, r) {
5
+ const t = D(a, r == null ? void 0 : r.in), f = d(t, r), m = e - f;
6
+ return c(t, m, r);
7
+ }
8
+ export {
9
+ I as default,
10
+ I as setISODay
11
+ };
@@ -0,0 +1,10 @@
1
+ import { getISOWeek as m } from "./getISOWeek.js";
2
+ import { toDate as c } from "./toDate.js";
3
+ function D(r, a, e) {
4
+ const t = c(r, e == null ? void 0 : e.in), f = m(t, e) - a;
5
+ return t.setDate(t.getDate() - f * 7), t;
6
+ }
7
+ export {
8
+ D as default,
9
+ D as setISOWeek
10
+ };
@@ -0,0 +1,9 @@
1
+ import { toDate as a } from "./toDate.js";
2
+ function d(l, r, e) {
3
+ const t = a(l, e == null ? void 0 : e.in);
4
+ return t.setMilliseconds(r), t;
5
+ }
6
+ export {
7
+ d as default,
8
+ d as setMilliseconds
9
+ };
@@ -0,0 +1,9 @@
1
+ import { toDate as a } from "./toDate.js";
2
+ function n(r, u, e) {
3
+ const t = a(r, e == null ? void 0 : e.in);
4
+ return t.setMinutes(u), t;
5
+ }
6
+ export {
7
+ n as default,
8
+ n as setMinutes
9
+ };
@@ -0,0 +1,13 @@
1
+ import { constructFrom as m } from "./constructFrom.js";
2
+ import { getDaysInMonth as u } from "./getDaysInMonth.js";
3
+ import { toDate as M } from "./toDate.js";
4
+ function d(n, o, e) {
5
+ const t = M(n, e == null ? void 0 : e.in), a = t.getFullYear(), s = t.getDate(), r = m(n, 0);
6
+ r.setFullYear(a, o, 15), r.setHours(0, 0, 0, 0);
7
+ const c = u(r);
8
+ return t.setMonth(o, Math.min(s, c)), t;
9
+ }
10
+ export {
11
+ d as default,
12
+ d as setMonth
13
+ };
@@ -0,0 +1,9 @@
1
+ import { toDate as c } from "./toDate.js";
2
+ function f(r, a, e) {
3
+ const t = c(r, e == null ? void 0 : e.in);
4
+ return t.setSeconds(a), t;
5
+ }
6
+ export {
7
+ f as default,
8
+ f as setSeconds
9
+ };
@@ -0,0 +1,10 @@
1
+ import { getWeek as c } from "./getWeek.js";
2
+ import { toDate as t } from "./toDate.js";
3
+ function D(a, f, e) {
4
+ const r = t(a, e == null ? void 0 : e.in), m = c(r, e) - f;
5
+ return r.setDate(r.getDate() - m * 7), t(r, e == null ? void 0 : e.in);
6
+ }
7
+ export {
8
+ D as default,
9
+ D as setWeek
10
+ };
@@ -0,0 +1,10 @@
1
+ import { constructFrom as u } from "./constructFrom.js";
2
+ import { toDate as f } from "./toDate.js";
3
+ function N(e, a, r) {
4
+ const t = f(e, r == null ? void 0 : r.in);
5
+ return isNaN(+t) ? u(e, NaN) : (t.setFullYear(a), t);
6
+ }
7
+ export {
8
+ N as default,
9
+ N as setYear
10
+ };
@@ -0,0 +1,9 @@
1
+ import { toDate as e } from "./toDate.js";
2
+ function u(a, t) {
3
+ const r = e(a, t == null ? void 0 : t.in);
4
+ return r.setHours(0, 0, 0, 0), r;
5
+ }
6
+ export {
7
+ u as default,
8
+ u as startOfDay
9
+ };
@@ -0,0 +1,8 @@
1
+ import { startOfWeek as r } from "./startOfWeek.js";
2
+ function f(t, e) {
3
+ return r(t, { ...e, weekStartsOn: 1 });
4
+ }
5
+ export {
6
+ f as default,
7
+ f as startOfISOWeek
8
+ };
@@ -0,0 +1,11 @@
1
+ import { constructFrom as a } from "./constructFrom.js";
2
+ import { getISOWeekYear as f } from "./getISOWeekYear.js";
3
+ import { startOfISOWeek as s } from "./startOfISOWeek.js";
4
+ function O(t, e) {
5
+ const o = f(t, e), r = a(t, 0);
6
+ return r.setFullYear(o, 0, 4), r.setHours(0, 0, 0, 0), s(r);
7
+ }
8
+ export {
9
+ O as default,
10
+ O as startOfISOWeekYear
11
+ };
@@ -0,0 +1,9 @@
1
+ import { toDate as a } from "./toDate.js";
2
+ function u(r, t) {
3
+ const e = a(r, t == null ? void 0 : t.in);
4
+ return e.setDate(1), e.setHours(0, 0, 0, 0), e;
5
+ }
6
+ export {
7
+ u as default,
8
+ u as startOfMonth
9
+ };
@@ -0,0 +1,9 @@
1
+ import { toDate as u } from "./toDate.js";
2
+ function o(n, r) {
3
+ const t = u(n, r == null ? void 0 : r.in), e = t.getMonth(), a = e - e % 3;
4
+ return t.setMonth(a, 1), t.setHours(0, 0, 0, 0), t;
5
+ }
6
+ export {
7
+ o as default,
8
+ o as startOfQuarter
9
+ };
@@ -0,0 +1,11 @@
1
+ import { getDefaultOptions as s } from "./_lib/defaultOptions.js";
2
+ import { toDate as w } from "./toDate.js";
3
+ function m(u, e) {
4
+ var c, O, l, k;
5
+ const a = s(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((O = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : O.weekStartsOn) ?? a.weekStartsOn ?? ((k = (l = a.locale) == null ? void 0 : l.options) == null ? void 0 : k.weekStartsOn) ?? 0, t = w(u, e == null ? void 0 : e.in), f = t.getDay(), d = (f < r ? 7 : 0) + f - r;
6
+ return t.setDate(t.getDate() - d), t.setHours(0, 0, 0, 0), t;
7
+ }
8
+ export {
9
+ m as default,
10
+ m as startOfWeek
11
+ };
@@ -0,0 +1,13 @@
1
+ import { getDefaultOptions as W } from "./_lib/defaultOptions.js";
2
+ import { constructFrom as n } from "./constructFrom.js";
3
+ import { getWeekYear as u } from "./getWeekYear.js";
4
+ import { startOfWeek as D } from "./startOfWeek.js";
5
+ function g(r, e) {
6
+ var f, s, c, k;
7
+ const a = W(), l = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((s = (f = e == null ? void 0 : e.locale) == null ? void 0 : f.options) == null ? void 0 : s.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((k = (c = a.locale) == null ? void 0 : c.options) == null ? void 0 : k.firstWeekContainsDate) ?? 1, m = u(r, e), t = n((e == null ? void 0 : e.in) || r, 0);
8
+ return t.setFullYear(m, 0, l), t.setHours(0, 0, 0, 0), D(t, e);
9
+ }
10
+ export {
11
+ g as default,
12
+ g as startOfWeekYear
13
+ };
@@ -0,0 +1,9 @@
1
+ import { toDate as a } from "./toDate.js";
2
+ function l(t, r) {
3
+ const e = a(t, r == null ? void 0 : r.in);
4
+ return e.setFullYear(e.getFullYear(), 0, 1), e.setHours(0, 0, 0, 0), e;
5
+ }
6
+ export {
7
+ l as default,
8
+ l as startOfYear
9
+ };
@@ -0,0 +1,19 @@
1
+ import { constructFrom as d } from "./constructFrom.js";
2
+ import { subDays as y } from "./subDays.js";
3
+ import { subMonths as S } from "./subMonths.js";
4
+ function M(s, t, o) {
5
+ const {
6
+ years: n = 0,
7
+ months: u = 0,
8
+ weeks: r = 0,
9
+ days: c = 0,
10
+ hours: m = 0,
11
+ minutes: e = 0,
12
+ seconds: b = 0
13
+ } = t, i = S(s, u + n * 12, o), h = y(i, c + r * 7, o), a = e + m * 60, f = (b + a * 60) * 1e3;
14
+ return d(s, +h - f);
15
+ }
16
+ export {
17
+ M as default,
18
+ M as sub
19
+ };
@@ -0,0 +1,8 @@
1
+ import { addDays as o } from "./addDays.js";
2
+ function u(a, r, t) {
3
+ return o(a, -r, t);
4
+ }
5
+ export {
6
+ u as default,
7
+ u as subDays
8
+ };
@@ -0,0 +1,8 @@
1
+ import { addMonths as r } from "./addMonths.js";
2
+ function u(t, o, n) {
3
+ return r(t, -o, n);
4
+ }
5
+ export {
6
+ u as default,
7
+ u as subMonths
8
+ };
@@ -0,0 +1,8 @@
1
+ import { addYears as t } from "./addYears.js";
2
+ function s(r, a, e) {
3
+ return t(r, -a, e);
4
+ }
5
+ export {
6
+ s as default,
7
+ s as subYears
8
+ };
@@ -0,0 +1,8 @@
1
+ import { constructFrom as r } from "./constructFrom.js";
2
+ function e(t, o) {
3
+ return r(o || t, t);
4
+ }
5
+ export {
6
+ e as default,
7
+ e as toDate
8
+ };
@@ -0,0 +1,18 @@
1
+ import { constructFrom as o } from "./constructFrom.js";
2
+ function u(e, t) {
3
+ const n = s(t) ? new t(0) : o(t, 0);
4
+ return n.setFullYear(e.getFullYear(), e.getMonth(), e.getDate()), n.setHours(
5
+ e.getHours(),
6
+ e.getMinutes(),
7
+ e.getSeconds(),
8
+ e.getMilliseconds()
9
+ ), n;
10
+ }
11
+ function s(e) {
12
+ var t;
13
+ return typeof e == "function" && ((t = e.prototype) == null ? void 0 : t.constructor) === e;
14
+ }
15
+ export {
16
+ u as default,
17
+ u as transpose
18
+ };