@quidgest/ui 0.14.12 → 0.14.13

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 (206) hide show
  1. package/dist/manifest/components.json +3 -0
  2. package/dist/ui.css +1647 -124
  3. package/dist/ui.esm.js +11101 -1899
  4. package/dist/ui.js +29 -29
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +1210 -255
  7. package/dist/ui.scss +208 -7
  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/QTextField/QTextField.d.ts +3 -0
  50. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  51. package/esm/components/QTextField/QTextField.vue.js +51 -39
  52. package/esm/components/QTextField/index.d.ts +7 -0
  53. package/esm/components/QTextField/index.d.ts.map +1 -1
  54. package/esm/components/QTextField/types.d.ts +11 -0
  55. package/esm/components/QTextField/types.d.ts.map +1 -1
  56. package/esm/components/index.d.ts +3 -0
  57. package/esm/components/index.d.ts.map +1 -1
  58. package/esm/components/index.js +62 -56
  59. package/esm/composables/maska.d.ts +28 -0
  60. package/esm/composables/maska.d.ts.map +1 -0
  61. package/esm/composables/maska.js +26 -0
  62. package/esm/composables/useDropZone/index.d.ts +38 -0
  63. package/esm/composables/useDropZone/index.d.ts.map +1 -0
  64. package/esm/composables/useDropZone/index.js +62 -0
  65. package/esm/index.d.ts +3 -0
  66. package/esm/utils/color.js +57 -27
  67. package/esm/utils/date/date.d.ts +9 -0
  68. package/esm/utils/date/date.d.ts.map +1 -0
  69. package/esm/utils/date/date.js +91 -0
  70. package/esm/utils/date/index.d.ts +4 -0
  71. package/esm/utils/date/index.d.ts.map +1 -0
  72. package/esm/utils/date/tokens.d.ts +49 -0
  73. package/esm/utils/date/tokens.d.ts.map +1 -0
  74. package/esm/utils/date/tokens.js +243 -0
  75. package/esm/utils/download.d.ts +7 -0
  76. package/esm/utils/download.d.ts.map +1 -0
  77. package/esm/utils/download.js +16 -0
  78. package/esm/utils/string.d.ts.map +1 -1
  79. package/esm/utils/string.js +5 -2
  80. package/esm/utils/time.d.ts +36 -0
  81. package/esm/utils/time.d.ts.map +1 -0
  82. package/esm/utils/time.js +14 -0
  83. package/esm/vendors/@vuepic/vue-datepicker/dist/vue-datepicker.js +5148 -0
  84. package/esm/vendors/date-fns/_lib/addLeadingZeros.js +7 -0
  85. package/esm/vendors/date-fns/_lib/defaultOptions.js +7 -0
  86. package/esm/vendors/date-fns/_lib/format/formatters.js +583 -0
  87. package/esm/vendors/date-fns/_lib/format/lightFormatters.js +59 -0
  88. package/esm/vendors/date-fns/_lib/format/longFormatters.js +52 -0
  89. package/esm/vendors/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
  90. package/esm/vendors/date-fns/_lib/normalizeDates.js +11 -0
  91. package/esm/vendors/date-fns/_lib/normalizeInterval.js +8 -0
  92. package/esm/vendors/date-fns/_lib/protectedTokens.js +20 -0
  93. package/esm/vendors/date-fns/add.js +20 -0
  94. package/esm/vendors/date-fns/addDays.js +10 -0
  95. package/esm/vendors/date-fns/addHours.js +9 -0
  96. package/esm/vendors/date-fns/addMilliseconds.js +9 -0
  97. package/esm/vendors/date-fns/addMonths.js +20 -0
  98. package/esm/vendors/date-fns/addQuarters.js +8 -0
  99. package/esm/vendors/date-fns/addYears.js +8 -0
  100. package/esm/vendors/date-fns/compareAsc.js +9 -0
  101. package/esm/vendors/date-fns/constants.js +9 -0
  102. package/esm/vendors/date-fns/constructFrom.js +8 -0
  103. package/esm/vendors/date-fns/differenceInCalendarDays.js +16 -0
  104. package/esm/vendors/date-fns/differenceInCalendarYears.js +13 -0
  105. package/esm/vendors/date-fns/differenceInYears.js +17 -0
  106. package/esm/vendors/date-fns/eachDayOfInterval.js +17 -0
  107. package/esm/vendors/date-fns/eachQuarterOfInterval.js +18 -0
  108. package/esm/vendors/date-fns/endOfQuarter.js +9 -0
  109. package/esm/vendors/date-fns/endOfWeek.js +11 -0
  110. package/esm/vendors/date-fns/endOfYear.js +9 -0
  111. package/esm/vendors/date-fns/format.js +59 -0
  112. package/esm/vendors/date-fns/getDay.js +8 -0
  113. package/esm/vendors/date-fns/getDayOfYear.js +11 -0
  114. package/esm/vendors/date-fns/getDaysInMonth.js +10 -0
  115. package/esm/vendors/date-fns/getDefaultOptions.js +8 -0
  116. package/esm/vendors/date-fns/getHours.js +8 -0
  117. package/esm/vendors/date-fns/getISODay.js +9 -0
  118. package/esm/vendors/date-fns/getISOWeek.js +12 -0
  119. package/esm/vendors/date-fns/getISOWeekYear.js +15 -0
  120. package/esm/vendors/date-fns/getMinutes.js +8 -0
  121. package/esm/vendors/date-fns/getMonth.js +8 -0
  122. package/esm/vendors/date-fns/getQuarter.js +9 -0
  123. package/esm/vendors/date-fns/getSeconds.js +8 -0
  124. package/esm/vendors/date-fns/getWeek.js +12 -0
  125. package/esm/vendors/date-fns/getWeekYear.js +17 -0
  126. package/esm/vendors/date-fns/getYear.js +8 -0
  127. package/esm/vendors/date-fns/isAfter.js +8 -0
  128. package/esm/vendors/date-fns/isBefore.js +8 -0
  129. package/esm/vendors/date-fns/isDate.js +7 -0
  130. package/esm/vendors/date-fns/isEqual.js +8 -0
  131. package/esm/vendors/date-fns/isSameQuarter.js +14 -0
  132. package/esm/vendors/date-fns/isValid.js +9 -0
  133. package/esm/vendors/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
  134. package/esm/vendors/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
  135. package/esm/vendors/date-fns/locale/_lib/buildMatchFn.js +31 -0
  136. package/esm/vendors/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
  137. package/esm/vendors/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
  138. package/esm/vendors/date-fns/locale/en-US/_lib/formatLong.js +33 -0
  139. package/esm/vendors/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
  140. package/esm/vendors/date-fns/locale/en-US/_lib/localize.js +155 -0
  141. package/esm/vendors/date-fns/locale/en-US/_lib/match.js +110 -0
  142. package/esm/vendors/date-fns/locale/en-US.js +21 -0
  143. package/esm/vendors/date-fns/parse/_lib/Parser.js +22 -0
  144. package/esm/vendors/date-fns/parse/_lib/Setter.js +41 -0
  145. package/esm/vendors/date-fns/parse/_lib/constants.js +49 -0
  146. package/esm/vendors/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +49 -0
  147. package/esm/vendors/date-fns/parse/_lib/parsers/AMPMParser.js +49 -0
  148. package/esm/vendors/date-fns/parse/_lib/parsers/DateParser.js +61 -0
  149. package/esm/vendors/date-fns/parse/_lib/parsers/DayOfYearParser.js +51 -0
  150. package/esm/vendors/date-fns/parse/_lib/parsers/DayParser.js +49 -0
  151. package/esm/vendors/date-fns/parse/_lib/parsers/DayPeriodParser.js +49 -0
  152. package/esm/vendors/date-fns/parse/_lib/parsers/EraParser.js +33 -0
  153. package/esm/vendors/date-fns/parse/_lib/parsers/ExtendedYearParser.js +21 -0
  154. package/esm/vendors/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +22 -0
  155. package/esm/vendors/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
  156. package/esm/vendors/date-fns/parse/_lib/parsers/Hour0to23Parser.js +32 -0
  157. package/esm/vendors/date-fns/parse/_lib/parsers/Hour1To24Parser.js +33 -0
  158. package/esm/vendors/date-fns/parse/_lib/parsers/Hour1to12Parser.js +33 -0
  159. package/esm/vendors/date-fns/parse/_lib/parsers/ISODayParser.js +105 -0
  160. package/esm/vendors/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +48 -0
  161. package/esm/vendors/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +48 -0
  162. package/esm/vendors/date-fns/parse/_lib/parsers/ISOWeekParser.js +49 -0
  163. package/esm/vendors/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +40 -0
  164. package/esm/vendors/date-fns/parse/_lib/parsers/LocalDayParser.js +80 -0
  165. package/esm/vendors/date-fns/parse/_lib/parsers/LocalWeekParser.js +48 -0
  166. package/esm/vendors/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +69 -0
  167. package/esm/vendors/date-fns/parse/_lib/parsers/MinuteParser.js +32 -0
  168. package/esm/vendors/date-fns/parse/_lib/parsers/MonthParser.js +77 -0
  169. package/esm/vendors/date-fns/parse/_lib/parsers/QuarterParser.js +75 -0
  170. package/esm/vendors/date-fns/parse/_lib/parsers/SecondParser.js +32 -0
  171. package/esm/vendors/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +80 -0
  172. package/esm/vendors/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +77 -0
  173. package/esm/vendors/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +75 -0
  174. package/esm/vendors/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +22 -0
  175. package/esm/vendors/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +22 -0
  176. package/esm/vendors/date-fns/parse/_lib/parsers/YearParser.js +49 -0
  177. package/esm/vendors/date-fns/parse/_lib/parsers.js +67 -0
  178. package/esm/vendors/date-fns/parse/_lib/utils.js +103 -0
  179. package/esm/vendors/date-fns/parse.js +89 -0
  180. package/esm/vendors/date-fns/set.js +11 -0
  181. package/esm/vendors/date-fns/setDay.js +12 -0
  182. package/esm/vendors/date-fns/setHours.js +9 -0
  183. package/esm/vendors/date-fns/setISODay.js +11 -0
  184. package/esm/vendors/date-fns/setISOWeek.js +10 -0
  185. package/esm/vendors/date-fns/setMilliseconds.js +9 -0
  186. package/esm/vendors/date-fns/setMinutes.js +9 -0
  187. package/esm/vendors/date-fns/setMonth.js +13 -0
  188. package/esm/vendors/date-fns/setSeconds.js +9 -0
  189. package/esm/vendors/date-fns/setWeek.js +10 -0
  190. package/esm/vendors/date-fns/setYear.js +10 -0
  191. package/esm/vendors/date-fns/startOfDay.js +9 -0
  192. package/esm/vendors/date-fns/startOfISOWeek.js +8 -0
  193. package/esm/vendors/date-fns/startOfISOWeekYear.js +11 -0
  194. package/esm/vendors/date-fns/startOfMonth.js +9 -0
  195. package/esm/vendors/date-fns/startOfQuarter.js +9 -0
  196. package/esm/vendors/date-fns/startOfWeek.js +11 -0
  197. package/esm/vendors/date-fns/startOfWeekYear.js +13 -0
  198. package/esm/vendors/date-fns/startOfYear.js +9 -0
  199. package/esm/vendors/date-fns/sub.js +19 -0
  200. package/esm/vendors/date-fns/subDays.js +8 -0
  201. package/esm/vendors/date-fns/subMonths.js +8 -0
  202. package/esm/vendors/date-fns/subYears.js +8 -0
  203. package/esm/vendors/date-fns/toDate.js +8 -0
  204. package/esm/vendors/date-fns/transpose.js +18 -0
  205. package/esm/vendors/maska/dist/maska.js +179 -0
  206. package/package.json +5 -1
@@ -0,0 +1,61 @@
1
+ var c = Object.defineProperty;
2
+ var m = (s, e, r) => e in s ? c(s, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : s[e] = r;
3
+ var o = (s, e, r) => m(s, typeof e != "symbol" ? e + "" : e, r);
4
+ import { numericPatterns as p } from "../constants.js";
5
+ import { Parser as u } from "../Parser.js";
6
+ import { parseNDigits as l, parseNumericPattern as N, isLeapYearIndex as Y } from "../utils.js";
7
+ const _ = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], f = [
8
+ 31,
9
+ 29,
10
+ 31,
11
+ 30,
12
+ 31,
13
+ 30,
14
+ 31,
15
+ 31,
16
+ 30,
17
+ 31,
18
+ 30,
19
+ 31
20
+ ];
21
+ class A extends u {
22
+ constructor() {
23
+ super(...arguments);
24
+ o(this, "priority", 90);
25
+ o(this, "subPriority", 1);
26
+ o(this, "incompatibleTokens", [
27
+ "Y",
28
+ "R",
29
+ "q",
30
+ "Q",
31
+ "w",
32
+ "I",
33
+ "D",
34
+ "i",
35
+ "e",
36
+ "c",
37
+ "t",
38
+ "T"
39
+ ]);
40
+ }
41
+ parse(r, t, n) {
42
+ switch (t) {
43
+ case "d":
44
+ return N(p.date, r);
45
+ case "do":
46
+ return n.ordinalNumber(r, { unit: "date" });
47
+ default:
48
+ return l(t.length, r);
49
+ }
50
+ }
51
+ validate(r, t) {
52
+ const n = r.getFullYear(), a = Y(n), i = r.getMonth();
53
+ return a ? t >= 1 && t <= f[i] : t >= 1 && t <= _[i];
54
+ }
55
+ set(r, t, n) {
56
+ return r.setDate(n), r.setHours(0, 0, 0, 0), r;
57
+ }
58
+ }
59
+ export {
60
+ A as DateParser
61
+ };
@@ -0,0 +1,51 @@
1
+ var n = Object.defineProperty;
2
+ var o = (t, e, r) => e in t ? n(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var i = (t, e, r) => o(t, typeof e != "symbol" ? e + "" : e, r);
4
+ import { numericPatterns as p } from "../constants.js";
5
+ import { Parser as c } from "../Parser.js";
6
+ import { parseNDigits as u, parseNumericPattern as m, isLeapYearIndex as f } from "../utils.js";
7
+ class L extends c {
8
+ constructor() {
9
+ super(...arguments);
10
+ i(this, "priority", 90);
11
+ i(this, "subpriority", 1);
12
+ i(this, "incompatibleTokens", [
13
+ "Y",
14
+ "R",
15
+ "q",
16
+ "Q",
17
+ "M",
18
+ "L",
19
+ "w",
20
+ "I",
21
+ "d",
22
+ "E",
23
+ "i",
24
+ "e",
25
+ "c",
26
+ "t",
27
+ "T"
28
+ ]);
29
+ }
30
+ parse(r, s, a) {
31
+ switch (s) {
32
+ case "D":
33
+ case "DD":
34
+ return m(p.dayOfYear, r);
35
+ case "Do":
36
+ return a.ordinalNumber(r, { unit: "date" });
37
+ default:
38
+ return u(s.length, r);
39
+ }
40
+ }
41
+ validate(r, s) {
42
+ const a = r.getFullYear();
43
+ return f(a) ? s >= 1 && s <= 366 : s >= 1 && s <= 365;
44
+ }
45
+ set(r, s, a) {
46
+ return r.setMonth(0, a), r.setHours(0, 0, 0, 0), r;
47
+ }
48
+ }
49
+ export {
50
+ L as DayOfYearParser
51
+ };
@@ -0,0 +1,49 @@
1
+ var s = Object.defineProperty;
2
+ var E = (e, o, t) => o in e ? s(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t;
3
+ var n = (e, o, t) => E(e, typeof o != "symbol" ? o + "" : o, t);
4
+ import { setDay as w } from "../../../setDay.js";
5
+ import { Parser as d } from "../Parser.js";
6
+ class c extends d {
7
+ constructor() {
8
+ super(...arguments);
9
+ n(this, "priority", 90);
10
+ n(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
11
+ }
12
+ parse(t, a, r) {
13
+ switch (a) {
14
+ // Tue
15
+ case "E":
16
+ case "EE":
17
+ case "EEE":
18
+ return r.day(t, {
19
+ width: "abbreviated",
20
+ context: "formatting"
21
+ }) || r.day(t, { width: "short", context: "formatting" }) || r.day(t, { width: "narrow", context: "formatting" });
22
+ // T
23
+ case "EEEEE":
24
+ return r.day(t, {
25
+ width: "narrow",
26
+ context: "formatting"
27
+ });
28
+ // Tu
29
+ case "EEEEEE":
30
+ return r.day(t, { width: "short", context: "formatting" }) || r.day(t, { width: "narrow", context: "formatting" });
31
+ // Tuesday
32
+ case "EEEE":
33
+ default:
34
+ return r.day(t, { width: "wide", context: "formatting" }) || r.day(t, {
35
+ width: "abbreviated",
36
+ context: "formatting"
37
+ }) || r.day(t, { width: "short", context: "formatting" }) || r.day(t, { width: "narrow", context: "formatting" });
38
+ }
39
+ }
40
+ validate(t, a) {
41
+ return a >= 0 && a <= 6;
42
+ }
43
+ set(t, a, r, i) {
44
+ return t = w(t, r, i), t.setHours(0, 0, 0, 0), t;
45
+ }
46
+ }
47
+ export {
48
+ c as DayParser
49
+ };
@@ -0,0 +1,49 @@
1
+ var d = Object.defineProperty;
2
+ var n = (t, o, r) => o in t ? d(t, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[o] = r;
3
+ var i = (t, o, r) => n(t, typeof o != "symbol" ? o + "" : o, r);
4
+ import { Parser as s } from "../Parser.js";
5
+ import { dayPeriodEnumToHours as B } from "../utils.js";
6
+ class c extends s {
7
+ constructor() {
8
+ super(...arguments);
9
+ i(this, "priority", 80);
10
+ i(this, "incompatibleTokens", ["a", "b", "t", "T"]);
11
+ }
12
+ parse(r, a, e) {
13
+ switch (a) {
14
+ case "B":
15
+ case "BB":
16
+ case "BBB":
17
+ return e.dayPeriod(r, {
18
+ width: "abbreviated",
19
+ context: "formatting"
20
+ }) || e.dayPeriod(r, {
21
+ width: "narrow",
22
+ context: "formatting"
23
+ });
24
+ case "BBBBB":
25
+ return e.dayPeriod(r, {
26
+ width: "narrow",
27
+ context: "formatting"
28
+ });
29
+ case "BBBB":
30
+ default:
31
+ return e.dayPeriod(r, {
32
+ width: "wide",
33
+ context: "formatting"
34
+ }) || e.dayPeriod(r, {
35
+ width: "abbreviated",
36
+ context: "formatting"
37
+ }) || e.dayPeriod(r, {
38
+ width: "narrow",
39
+ context: "formatting"
40
+ });
41
+ }
42
+ }
43
+ set(r, a, e) {
44
+ return r.setHours(B(e), 0, 0, 0), r;
45
+ }
46
+ }
47
+ export {
48
+ c as DayPeriodParser
49
+ };
@@ -0,0 +1,33 @@
1
+ var i = Object.defineProperty;
2
+ var o = (G, s, r) => s in G ? i(G, s, { enumerable: !0, configurable: !0, writable: !0, value: r }) : G[s] = r;
3
+ var w = (G, s, r) => o(G, typeof s != "symbol" ? s + "" : s, r);
4
+ import { Parser as u } from "../Parser.js";
5
+ class n extends u {
6
+ constructor() {
7
+ super(...arguments);
8
+ w(this, "priority", 140);
9
+ w(this, "incompatibleTokens", ["R", "u", "t", "T"]);
10
+ }
11
+ parse(r, a, e) {
12
+ switch (a) {
13
+ // AD, BC
14
+ case "G":
15
+ case "GG":
16
+ case "GGG":
17
+ return e.era(r, { width: "abbreviated" }) || e.era(r, { width: "narrow" });
18
+ // A, B
19
+ case "GGGGG":
20
+ return e.era(r, { width: "narrow" });
21
+ // Anno Domini, Before Christ
22
+ case "GGGG":
23
+ default:
24
+ return e.era(r, { width: "wide" }) || e.era(r, { width: "abbreviated" }) || e.era(r, { width: "narrow" });
25
+ }
26
+ }
27
+ set(r, a, e) {
28
+ return a.era = e, r.setFullYear(e, 0, 1), r.setHours(0, 0, 0, 0), r;
29
+ }
30
+ }
31
+ export {
32
+ n as EraParser
33
+ };
@@ -0,0 +1,21 @@
1
+ var p = Object.defineProperty;
2
+ var a = (s, e, r) => e in s ? p(s, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : s[e] = r;
3
+ var i = (s, e, r) => a(s, typeof e != "symbol" ? e + "" : e, r);
4
+ import { Parser as l } from "../Parser.js";
5
+ import { parseNDigitsSigned as o } from "../utils.js";
6
+ class c extends l {
7
+ constructor() {
8
+ super(...arguments);
9
+ i(this, "priority", 130);
10
+ i(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
11
+ }
12
+ parse(r, t) {
13
+ return t === "u" ? o(4, r) : o(t.length, r);
14
+ }
15
+ set(r, t, n) {
16
+ return r.setFullYear(n, 0, 1), r.setHours(0, 0, 0, 0), r;
17
+ }
18
+ }
19
+ export {
20
+ c as ExtendedYearParser
21
+ };
@@ -0,0 +1,22 @@
1
+ var l = Object.defineProperty;
2
+ var n = (t, e, r) => e in t ? l(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var o = (t, e, r) => n(t, typeof e != "symbol" ? e + "" : e, r);
4
+ import { Parser as p } from "../Parser.js";
5
+ import { mapValue as c, parseNDigits as m } from "../utils.js";
6
+ class h extends p {
7
+ constructor() {
8
+ super(...arguments);
9
+ o(this, "priority", 30);
10
+ o(this, "incompatibleTokens", ["t", "T"]);
11
+ }
12
+ parse(r, s) {
13
+ const a = (i) => Math.trunc(i * Math.pow(10, -s.length + 3));
14
+ return c(m(s.length, r), a);
15
+ }
16
+ set(r, s, a) {
17
+ return r.setMilliseconds(a), r;
18
+ }
19
+ }
20
+ export {
21
+ h as FractionOfSecondParser
22
+ };
@@ -0,0 +1,32 @@
1
+ var u = Object.defineProperty;
2
+ var n = (e, s, r) => s in e ? u(e, s, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[s] = r;
3
+ var i = (e, s, r) => n(e, typeof s != "symbol" ? s + "" : s, r);
4
+ import { numericPatterns as m } from "../constants.js";
5
+ import { Parser as a } from "../Parser.js";
6
+ import { parseNDigits as p, parseNumericPattern as c } from "../utils.js";
7
+ class N extends a {
8
+ constructor() {
9
+ super(...arguments);
10
+ i(this, "priority", 70);
11
+ i(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
12
+ }
13
+ parse(r, t, o) {
14
+ switch (t) {
15
+ case "K":
16
+ return c(m.hour11h, r);
17
+ case "Ko":
18
+ return o.ordinalNumber(r, { unit: "hour" });
19
+ default:
20
+ return p(t.length, r);
21
+ }
22
+ }
23
+ validate(r, t) {
24
+ return t >= 0 && t <= 11;
25
+ }
26
+ set(r, t, o) {
27
+ return r.getHours() >= 12 && o < 12 ? r.setHours(o + 12, 0, 0, 0) : r.setHours(o, 0, 0, 0), r;
28
+ }
29
+ }
30
+ export {
31
+ N as Hour0To11Parser
32
+ };
@@ -0,0 +1,32 @@
1
+ var i = Object.defineProperty;
2
+ var u = (t, e, r) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var a = (t, e, r) => u(t, typeof e != "symbol" ? e + "" : e, r);
4
+ import { numericPatterns as n } from "../constants.js";
5
+ import { Parser as m } from "../Parser.js";
6
+ import { parseNDigits as p, parseNumericPattern as c } from "../utils.js";
7
+ class P extends m {
8
+ constructor() {
9
+ super(...arguments);
10
+ a(this, "priority", 70);
11
+ a(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
12
+ }
13
+ parse(r, s, o) {
14
+ switch (s) {
15
+ case "H":
16
+ return c(n.hour23h, r);
17
+ case "Ho":
18
+ return o.ordinalNumber(r, { unit: "hour" });
19
+ default:
20
+ return p(s.length, r);
21
+ }
22
+ }
23
+ validate(r, s) {
24
+ return s >= 0 && s <= 23;
25
+ }
26
+ set(r, s, o) {
27
+ return r.setHours(o, 0, 0, 0), r;
28
+ }
29
+ }
30
+ export {
31
+ P as Hour0to23Parser
32
+ };
@@ -0,0 +1,33 @@
1
+ var n = Object.defineProperty;
2
+ var u = (t, e, r) => e in t ? n(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var i = (t, e, r) => u(t, typeof e != "symbol" ? e + "" : e, r);
4
+ import { numericPatterns as m } from "../constants.js";
5
+ import { Parser as p } from "../Parser.js";
6
+ import { parseNDigits as c, parseNumericPattern as h } from "../utils.js";
7
+ class H extends p {
8
+ constructor() {
9
+ super(...arguments);
10
+ i(this, "priority", 70);
11
+ i(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
12
+ }
13
+ parse(r, s, o) {
14
+ switch (s) {
15
+ case "k":
16
+ return h(m.hour24h, r);
17
+ case "ko":
18
+ return o.ordinalNumber(r, { unit: "hour" });
19
+ default:
20
+ return c(s.length, r);
21
+ }
22
+ }
23
+ validate(r, s) {
24
+ return s >= 1 && s <= 24;
25
+ }
26
+ set(r, s, o) {
27
+ const a = o <= 24 ? o % 24 : o;
28
+ return r.setHours(a, 0, 0, 0), r;
29
+ }
30
+ }
31
+ export {
32
+ H as Hour1To24Parser
33
+ };
@@ -0,0 +1,33 @@
1
+ var n = Object.defineProperty;
2
+ var m = (e, s, r) => s in e ? n(e, s, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[s] = r;
3
+ var i = (e, s, r) => m(e, typeof s != "symbol" ? s + "" : s, r);
4
+ import { numericPatterns as p } from "../constants.js";
5
+ import { Parser as c } from "../Parser.js";
6
+ import { parseNDigits as a, parseNumericPattern as f } from "../utils.js";
7
+ class N extends c {
8
+ constructor() {
9
+ super(...arguments);
10
+ i(this, "priority", 70);
11
+ i(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
12
+ }
13
+ parse(r, t, o) {
14
+ switch (t) {
15
+ case "h":
16
+ return f(p.hour12h, r);
17
+ case "ho":
18
+ return o.ordinalNumber(r, { unit: "hour" });
19
+ default:
20
+ return a(t.length, r);
21
+ }
22
+ }
23
+ validate(r, t) {
24
+ return t >= 1 && t <= 12;
25
+ }
26
+ set(r, t, o) {
27
+ const u = r.getHours() >= 12;
28
+ return u && o < 12 ? r.setHours(o + 12, 0, 0, 0) : !u && o === 12 ? r.setHours(0, 0, 0, 0) : r.setHours(o, 0, 0, 0), r;
29
+ }
30
+ }
31
+ export {
32
+ N as Hour1to12Parser
33
+ };
@@ -0,0 +1,105 @@
1
+ var d = Object.defineProperty;
2
+ var f = (o, t, r) => t in o ? d(o, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[t] = r;
3
+ var s = (o, t, r) => f(o, typeof t != "symbol" ? t + "" : t, r);
4
+ import { setISODay as u } from "../../../setISODay.js";
5
+ import { Parser as y } from "../Parser.js";
6
+ import { mapValue as n, parseNDigits as c } from "../utils.js";
7
+ class b extends y {
8
+ constructor() {
9
+ super(...arguments);
10
+ s(this, "priority", 90);
11
+ s(this, "incompatibleTokens", [
12
+ "y",
13
+ "Y",
14
+ "u",
15
+ "q",
16
+ "Q",
17
+ "M",
18
+ "L",
19
+ "w",
20
+ "d",
21
+ "D",
22
+ "E",
23
+ "e",
24
+ "c",
25
+ "t",
26
+ "T"
27
+ ]);
28
+ }
29
+ parse(r, e, i) {
30
+ const a = (w) => w === 0 ? 7 : w;
31
+ switch (e) {
32
+ // 2
33
+ case "i":
34
+ case "ii":
35
+ return c(e.length, r);
36
+ // 2nd
37
+ case "io":
38
+ return i.ordinalNumber(r, { unit: "day" });
39
+ // Tue
40
+ case "iii":
41
+ return n(
42
+ i.day(r, {
43
+ width: "abbreviated",
44
+ context: "formatting"
45
+ }) || i.day(r, {
46
+ width: "short",
47
+ context: "formatting"
48
+ }) || i.day(r, {
49
+ width: "narrow",
50
+ context: "formatting"
51
+ }),
52
+ a
53
+ );
54
+ // T
55
+ case "iiiii":
56
+ return n(
57
+ i.day(r, {
58
+ width: "narrow",
59
+ context: "formatting"
60
+ }),
61
+ a
62
+ );
63
+ // Tu
64
+ case "iiiiii":
65
+ return n(
66
+ i.day(r, {
67
+ width: "short",
68
+ context: "formatting"
69
+ }) || i.day(r, {
70
+ width: "narrow",
71
+ context: "formatting"
72
+ }),
73
+ a
74
+ );
75
+ // Tuesday
76
+ case "iiii":
77
+ default:
78
+ return n(
79
+ i.day(r, {
80
+ width: "wide",
81
+ context: "formatting"
82
+ }) || i.day(r, {
83
+ width: "abbreviated",
84
+ context: "formatting"
85
+ }) || i.day(r, {
86
+ width: "short",
87
+ context: "formatting"
88
+ }) || i.day(r, {
89
+ width: "narrow",
90
+ context: "formatting"
91
+ }),
92
+ a
93
+ );
94
+ }
95
+ }
96
+ validate(r, e) {
97
+ return e >= 1 && e <= 7;
98
+ }
99
+ set(r, e, i) {
100
+ return r = u(r, i), r.setHours(0, 0, 0, 0), r;
101
+ }
102
+ }
103
+ export {
104
+ b as ISODayParser
105
+ };
@@ -0,0 +1,48 @@
1
+ var x = Object.defineProperty;
2
+ var c = (s, r, e) => r in s ? x(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
3
+ var i = (s, r, e) => c(s, typeof r != "symbol" ? r + "" : r, e);
4
+ import { constructFrom as a } from "../../../constructFrom.js";
5
+ import { getTimezoneOffsetInMilliseconds as p } from "../../../_lib/getTimezoneOffsetInMilliseconds.js";
6
+ import { timezonePatterns as t } from "../constants.js";
7
+ import { Parser as u } from "../Parser.js";
8
+ import { parseTimezonePattern as o } from "../utils.js";
9
+ class P extends u {
10
+ constructor() {
11
+ super(...arguments);
12
+ i(this, "priority", 10);
13
+ i(this, "incompatibleTokens", ["t", "T", "X"]);
14
+ }
15
+ parse(e, n) {
16
+ switch (n) {
17
+ case "x":
18
+ return o(
19
+ t.basicOptionalMinutes,
20
+ e
21
+ );
22
+ case "xx":
23
+ return o(t.basic, e);
24
+ case "xxxx":
25
+ return o(
26
+ t.basicOptionalSeconds,
27
+ e
28
+ );
29
+ case "xxxxx":
30
+ return o(
31
+ t.extendedOptionalSeconds,
32
+ e
33
+ );
34
+ case "xxx":
35
+ default:
36
+ return o(t.extended, e);
37
+ }
38
+ }
39
+ set(e, n, m) {
40
+ return n.timestampIsSet ? e : a(
41
+ e,
42
+ e.getTime() - p(e) - m
43
+ );
44
+ }
45
+ }
46
+ export {
47
+ P as ISOTimezoneParser
48
+ };
@@ -0,0 +1,48 @@
1
+ var c = Object.defineProperty;
2
+ var X = (t, r, e) => r in t ? c(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
+ var n = (t, r, e) => X(t, typeof r != "symbol" ? r + "" : r, e);
4
+ import { constructFrom as a } from "../../../constructFrom.js";
5
+ import { getTimezoneOffsetInMilliseconds as p } from "../../../_lib/getTimezoneOffsetInMilliseconds.js";
6
+ import { timezonePatterns as s } from "../constants.js";
7
+ import { Parser as u } from "../Parser.js";
8
+ import { parseTimezonePattern as o } from "../utils.js";
9
+ class z extends u {
10
+ constructor() {
11
+ super(...arguments);
12
+ n(this, "priority", 10);
13
+ n(this, "incompatibleTokens", ["t", "T", "x"]);
14
+ }
15
+ parse(e, i) {
16
+ switch (i) {
17
+ case "X":
18
+ return o(
19
+ s.basicOptionalMinutes,
20
+ e
21
+ );
22
+ case "XX":
23
+ return o(s.basic, e);
24
+ case "XXXX":
25
+ return o(
26
+ s.basicOptionalSeconds,
27
+ e
28
+ );
29
+ case "XXXXX":
30
+ return o(
31
+ s.extendedOptionalSeconds,
32
+ e
33
+ );
34
+ case "XXX":
35
+ default:
36
+ return o(s.extended, e);
37
+ }
38
+ }
39
+ set(e, i, m) {
40
+ return i.timestampIsSet ? e : a(
41
+ e,
42
+ e.getTime() - p(e) - m
43
+ );
44
+ }
45
+ }
46
+ export {
47
+ z as ISOTimezoneWithZParser
48
+ };
@@ -0,0 +1,49 @@
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 i = (t, r, e) => m(t, typeof r != "symbol" ? r + "" : r, e);
4
+ import { setISOWeek as n } from "../../../setISOWeek.js";
5
+ import { startOfISOWeek as p } from "../../../startOfISOWeek.js";
6
+ import { numericPatterns as u } from "../constants.js";
7
+ import { Parser as c } from "../Parser.js";
8
+ import { parseNDigits as f, parseNumericPattern as l } from "../utils.js";
9
+ class N extends c {
10
+ constructor() {
11
+ super(...arguments);
12
+ i(this, "priority", 100);
13
+ i(this, "incompatibleTokens", [
14
+ "y",
15
+ "Y",
16
+ "u",
17
+ "q",
18
+ "Q",
19
+ "M",
20
+ "L",
21
+ "w",
22
+ "d",
23
+ "D",
24
+ "e",
25
+ "c",
26
+ "t",
27
+ "T"
28
+ ]);
29
+ }
30
+ parse(e, s, a) {
31
+ switch (s) {
32
+ case "I":
33
+ return l(u.week, e);
34
+ case "Io":
35
+ return a.ordinalNumber(e, { unit: "week" });
36
+ default:
37
+ return f(s.length, e);
38
+ }
39
+ }
40
+ validate(e, s) {
41
+ return s >= 1 && s <= 53;
42
+ }
43
+ set(e, s, a) {
44
+ return p(n(e, a));
45
+ }
46
+ }
47
+ export {
48
+ N as ISOWeekParser
49
+ };