@a-ui/react 7.13.0-beta.0 → 7.13.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/constants/settings.d.ts +1 -1
- package/constants/stories.settings.d.ts +11 -0
- package/index.js +1 -62
- package/index.mjs +98 -9098
- package/index10.js +1 -0
- package/index10.mjs +60 -0
- package/index100.js +1 -0
- package/index100.mjs +4 -0
- package/index101.js +1 -0
- package/index101.mjs +400 -0
- package/index102.js +5 -0
- package/index102.mjs +42 -0
- package/index103.js +1 -0
- package/index103.mjs +4 -0
- package/index104.js +1 -0
- package/index104.mjs +10 -0
- package/index105.js +2 -0
- package/index105.mjs +329 -0
- package/index106.js +1 -0
- package/index106.mjs +52 -0
- package/index107.js +1 -0
- package/index107.mjs +4 -0
- package/index108.js +1 -0
- package/index108.mjs +67 -0
- package/index109.js +1 -0
- package/index109.mjs +45 -0
- package/index11.js +1 -0
- package/index11.mjs +12 -0
- package/index110.js +10 -0
- package/index110.mjs +62 -0
- package/index111.js +1 -0
- package/index111.mjs +46 -0
- package/index112.js +1 -0
- package/index112.mjs +42 -0
- package/index113.js +1 -0
- package/index113.mjs +4 -0
- package/index114.js +1 -0
- package/index114.mjs +4 -0
- package/index115.js +1 -0
- package/index115.mjs +4 -0
- package/index116.js +1 -0
- package/index116.mjs +33 -0
- package/index117.js +5 -0
- package/index117.mjs +21 -0
- package/index118.js +9 -0
- package/index118.mjs +63 -0
- package/index119.js +1 -0
- package/index119.mjs +65 -0
- package/index12.js +1 -0
- package/index12.mjs +215 -0
- package/index120.js +1 -0
- package/index120.mjs +16 -0
- package/index121.js +1 -0
- package/index121.mjs +9 -0
- package/index122.js +1 -0
- package/index122.mjs +9 -0
- package/index123.js +1 -0
- package/index123.mjs +8 -0
- package/index124.js +1 -0
- package/index124.mjs +8 -0
- package/index125.js +1 -0
- package/index125.mjs +7 -0
- package/index126.js +1 -0
- package/index126.mjs +7 -0
- package/index127.js +1 -0
- package/index127.mjs +9 -0
- package/index128.js +1 -0
- package/index128.mjs +7 -0
- package/index129.js +1 -0
- package/index129.mjs +69 -0
- package/index13.js +1 -0
- package/index13.mjs +29 -0
- package/index130.js +1 -0
- package/index130.mjs +5 -0
- package/index131.js +1 -0
- package/index131.mjs +7 -0
- package/index132.js +1 -0
- package/index132.mjs +13 -0
- package/index133.js +1 -0
- package/index133.mjs +4 -0
- package/index134.js +1 -0
- package/index134.mjs +393 -0
- package/index135.js +1 -0
- package/index135.mjs +127 -0
- package/index136.js +1 -0
- package/index136.mjs +136 -0
- package/index137.js +1 -0
- package/index137.mjs +4 -0
- package/index138.js +1 -0
- package/index138.mjs +4 -0
- package/index139.js +8 -0
- package/index139.mjs +78 -0
- package/index14.js +1 -0
- package/index14.mjs +44 -0
- package/index140.js +8 -0
- package/index140.mjs +95 -0
- package/index141.js +5 -0
- package/index141.mjs +54 -0
- package/index142.js +1 -0
- package/index142.mjs +10 -0
- package/index143.js +1 -0
- package/index143.mjs +7 -0
- package/index144.js +1 -0
- package/index144.mjs +54 -0
- package/index145.js +11 -0
- package/index145.mjs +60 -0
- package/index146.js +1 -0
- package/index146.mjs +4 -0
- package/index147.js +1 -0
- package/index147.mjs +4 -0
- package/index148.js +1 -0
- package/index148.mjs +7 -0
- package/index149.js +1 -0
- package/index149.mjs +7 -0
- package/index15.js +1 -0
- package/index15.mjs +8 -0
- package/index150.js +1 -0
- package/index150.mjs +9 -0
- package/index151.js +1 -0
- package/index151.mjs +15 -0
- package/index152.js +1 -0
- package/index152.mjs +18 -0
- package/index153.js +1 -0
- package/index153.mjs +11 -0
- package/index154.js +1 -0
- package/index154.mjs +8 -0
- package/index155.js +1 -0
- package/index155.mjs +8 -0
- package/index156.js +1 -0
- package/index156.mjs +7 -0
- package/index157.js +1 -0
- package/index157.mjs +515 -0
- package/index158.js +1 -0
- package/index158.mjs +52 -0
- package/index159.js +1 -0
- package/index159.mjs +20 -0
- package/index16.js +1 -0
- package/index16.mjs +15 -0
- package/index160.js +1 -0
- package/index160.mjs +20 -0
- package/index161.js +1 -0
- package/index161.mjs +7 -0
- package/index162.js +1 -0
- package/index162.mjs +10 -0
- package/index163.js +1 -0
- package/index163.mjs +8 -0
- package/index164.js +1 -0
- package/index164.mjs +7 -0
- package/index165.js +1 -0
- package/index165.mjs +8 -0
- package/index166.js +1 -0
- package/index166.mjs +11 -0
- package/index167.js +1 -0
- package/index167.mjs +7 -0
- package/index168.js +1 -0
- package/index168.mjs +10 -0
- package/index169.js +1 -0
- package/index169.mjs +14 -0
- package/index17.js +1 -0
- package/index17.mjs +108 -0
- package/index170.js +1 -0
- package/index170.mjs +11 -0
- package/index171.js +1 -0
- package/index171.mjs +11 -0
- package/index172.js +1 -0
- package/index172.mjs +15 -0
- package/index173.js +1 -0
- package/index173.mjs +6 -0
- package/index174.js +1 -0
- package/index174.mjs +35 -0
- package/index175.js +1 -0
- package/index175.mjs +67 -0
- package/index176.js +1 -0
- package/index176.mjs +10 -0
- package/index177.js +1 -0
- package/index177.mjs +10 -0
- package/index178.js +1 -0
- package/index178.mjs +9 -0
- package/index179.js +1 -0
- package/index179.mjs +9 -0
- package/index18.js +1 -0
- package/index18.mjs +136 -0
- package/index180.js +1 -0
- package/index180.mjs +16 -0
- package/index181.js +1 -0
- package/index181.mjs +4 -0
- package/index182.js +1 -0
- package/index182.mjs +4 -0
- package/index183.js +1 -0
- package/index183.mjs +4 -0
- package/index184.js +1 -0
- package/index184.mjs +59 -0
- package/index185.js +1 -0
- package/index185.mjs +24 -0
- package/index186.js +1 -0
- package/index186.mjs +43 -0
- package/index187.js +1 -0
- package/index187.mjs +63 -0
- package/index188.js +1 -0
- package/index188.mjs +34 -0
- package/index189.js +1 -0
- package/index189.mjs +15 -0
- package/index19.js +1 -0
- package/index19.mjs +11 -0
- package/index190.js +1 -0
- package/index190.mjs +64 -0
- package/index191.js +1 -0
- package/index191.mjs +64 -0
- package/index192.js +1 -0
- package/index192.mjs +65 -0
- package/index193.js +1 -0
- package/index193.mjs +65 -0
- package/index194.js +1 -0
- package/index194.mjs +42 -0
- package/index195.js +1 -0
- package/index195.mjs +43 -0
- package/index196.js +1 -0
- package/index196.mjs +55 -0
- package/index197.js +1 -0
- package/index197.mjs +45 -0
- package/index198.js +1 -0
- package/index198.mjs +39 -0
- package/index199.js +1 -0
- package/index199.mjs +68 -0
- package/index2.js +1 -0
- package/index2.mjs +12 -0
- package/index20.js +1 -0
- package/index20.mjs +54 -0
- package/index200.js +1 -0
- package/index200.mjs +68 -0
- package/index201.js +1 -0
- package/index201.mjs +93 -0
- package/index202.js +1 -0
- package/index202.mjs +43 -0
- package/index203.js +1 -0
- package/index203.mjs +43 -0
- package/index204.js +1 -0
- package/index204.mjs +43 -0
- package/index205.js +1 -0
- package/index205.mjs +27 -0
- package/index206.js +1 -0
- package/index206.mjs +26 -0
- package/index207.js +1 -0
- package/index207.mjs +26 -0
- package/index208.js +1 -0
- package/index208.mjs +27 -0
- package/index209.js +1 -0
- package/index209.mjs +26 -0
- package/index21.js +1 -0
- package/index21.mjs +33 -0
- package/index210.js +1 -0
- package/index210.mjs +26 -0
- package/index211.js +1 -0
- package/index211.mjs +16 -0
- package/index212.js +1 -0
- package/index212.mjs +42 -0
- package/index213.js +1 -0
- package/index213.mjs +42 -0
- package/index214.js +1 -0
- package/index214.mjs +16 -0
- package/index215.js +1 -0
- package/index215.mjs +16 -0
- package/index216.js +1 -0
- package/index216.mjs +70 -0
- package/index217.js +1 -0
- package/index217.mjs +33 -0
- package/index218.js +1 -0
- package/index218.mjs +11 -0
- package/index219.js +1 -0
- package/index219.mjs +155 -0
- package/index22.js +1 -0
- package/index22.mjs +22 -0
- package/index220.js +1 -0
- package/index220.mjs +110 -0
- package/index221.js +1 -0
- package/index221.mjs +22 -0
- package/index222.js +1 -0
- package/index222.mjs +103 -0
- package/index223.js +1 -0
- package/index223.mjs +49 -0
- package/index224.js +1 -0
- package/index224.mjs +70 -0
- package/index225.js +1 -0
- package/index225.mjs +33 -0
- package/index226.js +1 -0
- package/index226.mjs +11 -0
- package/index227.js +1 -0
- package/index227.mjs +110 -0
- package/index228.js +1 -0
- package/index228.mjs +109 -0
- package/index229.js +1 -0
- package/index229.mjs +9 -0
- package/index23.js +1 -0
- package/index23.mjs +32 -0
- package/index230.js +1 -0
- package/index230.mjs +18 -0
- package/index231.js +1 -0
- package/index231.mjs +31 -0
- package/index232.js +1 -0
- package/index232.mjs +15 -0
- package/index233.js +1 -0
- package/index233.mjs +61 -0
- package/index234.js +1 -0
- package/index234.mjs +11 -0
- package/index235.js +1 -0
- package/index235.mjs +22 -0
- package/index24.js +2 -0
- package/index24.mjs +62 -0
- package/index25.js +1 -0
- package/index25.mjs +15 -0
- package/index26.js +1 -0
- package/index26.mjs +12 -0
- package/index27.js +1 -0
- package/index27.mjs +43 -0
- package/index28.js +1 -0
- package/index28.mjs +34 -0
- package/index29.js +1 -0
- package/index29.mjs +10 -0
- package/index3.js +1 -0
- package/index3.mjs +15 -0
- package/index30.js +1 -0
- package/index30.mjs +72 -0
- package/index31.js +1 -0
- package/index31.mjs +40 -0
- package/index32.js +1 -0
- package/index32.mjs +48 -0
- package/index33.js +1 -0
- package/index33.mjs +90 -0
- package/index34.js +1 -0
- package/index34.mjs +36 -0
- package/index35.js +1 -0
- package/index35.mjs +25 -0
- package/index36.js +1 -0
- package/index36.mjs +27 -0
- package/index37.js +1 -0
- package/index37.mjs +110 -0
- package/index38.js +1 -0
- package/index38.mjs +57 -0
- package/index39.js +1 -0
- package/index39.mjs +21 -0
- package/index4.js +1 -0
- package/index4.mjs +58 -0
- package/index40.js +1 -0
- package/index40.mjs +40 -0
- package/index41.js +1 -0
- package/index41.mjs +54 -0
- package/index42.js +1 -0
- package/index42.mjs +73 -0
- package/index43.js +1 -0
- package/index43.mjs +49 -0
- package/index44.js +1 -0
- package/index44.mjs +13 -0
- package/index45.js +1 -0
- package/index45.mjs +73 -0
- package/index46.js +1 -0
- package/index46.mjs +99 -0
- package/index47.js +1 -0
- package/index47.mjs +45 -0
- package/index48.js +1 -0
- package/index48.mjs +26 -0
- package/index49.js +1 -0
- package/index49.mjs +83 -0
- package/index5.js +1 -0
- package/index5.mjs +136 -0
- package/index50.js +1 -0
- package/index50.mjs +35 -0
- package/index51.js +1 -0
- package/index51.mjs +10 -0
- package/index52.js +1 -0
- package/index52.mjs +13 -0
- package/index53.js +1 -0
- package/index53.mjs +30 -0
- package/index54.js +1 -0
- package/index54.mjs +51 -0
- package/index55.js +1 -0
- package/index55.mjs +10 -0
- package/index56.js +1 -0
- package/index56.mjs +49 -0
- package/index58.js +1 -0
- package/index58.mjs +64 -0
- package/index59.js +1 -0
- package/index59.mjs +62 -0
- package/index6.js +1 -0
- package/index6.mjs +29 -0
- package/index60.js +1 -0
- package/index60.mjs +31 -0
- package/index61.js +1 -0
- package/index61.mjs +23 -0
- package/index62.js +1 -0
- package/index62.mjs +32 -0
- package/index63.js +1 -0
- package/index63.mjs +16 -0
- package/index64.js +1 -0
- package/index64.mjs +61 -0
- package/index65.js +1 -0
- package/index65.mjs +19 -0
- package/index66.js +7 -0
- package/index66.mjs +411 -0
- package/index7.js +1 -0
- package/index7.mjs +8 -0
- package/index70.js +1 -0
- package/index70.mjs +4 -0
- package/index71.js +1 -0
- package/index71.mjs +76 -0
- package/index72.js +1 -0
- package/index72.mjs +31 -0
- package/index73.js +1 -0
- package/index73.mjs +38 -0
- package/index74.js +1 -0
- package/index74.mjs +6 -0
- package/index75.js +1 -0
- package/index75.mjs +37 -0
- package/index76.js +1 -0
- package/index76.mjs +7 -0
- package/index77.js +1 -0
- package/index77.mjs +7 -0
- package/index78.js +1 -0
- package/index78.mjs +7 -0
- package/index79.js +1 -0
- package/index79.mjs +7 -0
- package/index8.js +1 -0
- package/index8.mjs +18 -0
- package/index80.js +1 -0
- package/index80.mjs +7 -0
- package/index81.js +1 -0
- package/index81.mjs +19 -0
- package/index82.js +1 -0
- package/index82.mjs +87 -0
- package/index83.js +1 -0
- package/index83.mjs +8 -0
- package/index84.js +1 -0
- package/index84.mjs +27 -0
- package/index85.js +1 -0
- package/index85.mjs +57 -0
- package/index87.js +1 -0
- package/index87.mjs +7 -0
- package/index88.js +1 -0
- package/index88.mjs +121 -0
- package/index89.js +1 -0
- package/index89.mjs +20 -0
- package/index9.js +1 -0
- package/index9.mjs +18 -0
- package/index90.js +1 -0
- package/index90.mjs +26 -0
- package/index91.js +1 -0
- package/index91.mjs +4 -0
- package/index92.js +1 -0
- package/index92.mjs +237 -0
- package/index93.js +1 -0
- package/index93.mjs +4 -0
- package/index94.js +1 -0
- package/index94.mjs +13 -0
- package/index95.js +1 -0
- package/index95.mjs +249 -0
- package/index96.js +1 -0
- package/index96.mjs +91 -0
- package/index97.js +1 -0
- package/index97.mjs +15 -0
- package/index98.js +1 -0
- package/index98.mjs +6 -0
- package/index99.js +1 -0
- package/index99.mjs +4 -0
- package/lib/atoms/input/text-field/TextField.d.ts +1 -1
- package/lib/atoms/select/Select.types.d.ts +1 -1
- package/lib/base/icon/Icon.d.ts +1 -1
- package/lib/molecules/datepicker/Calendar.d.ts +1 -1
- package/lib/molecules/flyout/Flyout.d.ts +1 -1
- package/lib/molecules/tag/Tag.d.ts +1 -1
- package/package.json +4 -1
- package/packages/antwerp-ui/react-components/src/lib/atoms/input/text-field/TextField.css +1 -0
- package/packages/antwerp-ui/react-components/src/lib/atoms/tooltip/Tooltip.css +1 -0
- package/packages/antwerp-ui/react-components/src/lib/molecules/autocomplete/Autocomplete.css +1 -0
- package/packages/antwerp-ui/react-components/src/lib/molecules/datepicker/DateRangePicker.css +1 -0
- package/utils/math.utils.d.ts +1 -1
- package/index.css +0 -1
package/index196.mjs
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { numericPatterns as o } from "./index223.mjs";
|
|
2
|
+
import { Parser as i } from "./index221.mjs";
|
|
3
|
+
import { parseNDigits as a, parseNumericPattern as c, isLeapYearIndex as m } from "./index222.mjs";
|
|
4
|
+
const p = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], u = [
|
|
5
|
+
31,
|
|
6
|
+
29,
|
|
7
|
+
31,
|
|
8
|
+
30,
|
|
9
|
+
31,
|
|
10
|
+
30,
|
|
11
|
+
31,
|
|
12
|
+
31,
|
|
13
|
+
30,
|
|
14
|
+
31,
|
|
15
|
+
30,
|
|
16
|
+
31
|
|
17
|
+
];
|
|
18
|
+
class f extends i {
|
|
19
|
+
priority = 90;
|
|
20
|
+
subPriority = 1;
|
|
21
|
+
parse(r, e, t) {
|
|
22
|
+
switch (e) {
|
|
23
|
+
case "d":
|
|
24
|
+
return c(o.date, r);
|
|
25
|
+
case "do":
|
|
26
|
+
return t.ordinalNumber(r, { unit: "date" });
|
|
27
|
+
default:
|
|
28
|
+
return a(e.length, r);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
validate(r, e) {
|
|
32
|
+
const t = r.getFullYear(), n = m(t), s = r.getMonth();
|
|
33
|
+
return n ? e >= 1 && e <= u[s] : e >= 1 && e <= p[s];
|
|
34
|
+
}
|
|
35
|
+
set(r, e, t) {
|
|
36
|
+
return r.setDate(t), r.setHours(0, 0, 0, 0), r;
|
|
37
|
+
}
|
|
38
|
+
incompatibleTokens = [
|
|
39
|
+
"Y",
|
|
40
|
+
"R",
|
|
41
|
+
"q",
|
|
42
|
+
"Q",
|
|
43
|
+
"w",
|
|
44
|
+
"I",
|
|
45
|
+
"D",
|
|
46
|
+
"i",
|
|
47
|
+
"e",
|
|
48
|
+
"c",
|
|
49
|
+
"t",
|
|
50
|
+
"T"
|
|
51
|
+
];
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
f as DateParser
|
|
55
|
+
};
|
package/index197.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index223.js"),i=require("./index221.js"),t=require("./index222.js");class n extends i.Parser{priority=90;subpriority=1;parse(e,r,s){switch(r){case"D":case"DD":return t.parseNumericPattern(a.numericPatterns.dayOfYear,e);case"Do":return s.ordinalNumber(e,{unit:"date"});default:return t.parseNDigits(r.length,e)}}validate(e,r){const s=e.getFullYear();return t.isLeapYearIndex(s)?r>=1&&r<=366:r>=1&&r<=365}set(e,r,s){return e.setMonth(0,s),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}exports.DayOfYearParser=n;
|
package/index197.mjs
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { numericPatterns as t } from "./index223.mjs";
|
|
2
|
+
import { Parser as a } from "./index221.mjs";
|
|
3
|
+
import { parseNDigits as i, parseNumericPattern as n, isLeapYearIndex as o } from "./index222.mjs";
|
|
4
|
+
class l extends a {
|
|
5
|
+
priority = 90;
|
|
6
|
+
subpriority = 1;
|
|
7
|
+
parse(r, e, s) {
|
|
8
|
+
switch (e) {
|
|
9
|
+
case "D":
|
|
10
|
+
case "DD":
|
|
11
|
+
return n(t.dayOfYear, r);
|
|
12
|
+
case "Do":
|
|
13
|
+
return s.ordinalNumber(r, { unit: "date" });
|
|
14
|
+
default:
|
|
15
|
+
return i(e.length, r);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
validate(r, e) {
|
|
19
|
+
const s = r.getFullYear();
|
|
20
|
+
return o(s) ? e >= 1 && e <= 366 : e >= 1 && e <= 365;
|
|
21
|
+
}
|
|
22
|
+
set(r, e, s) {
|
|
23
|
+
return r.setMonth(0, s), r.setHours(0, 0, 0, 0), r;
|
|
24
|
+
}
|
|
25
|
+
incompatibleTokens = [
|
|
26
|
+
"Y",
|
|
27
|
+
"R",
|
|
28
|
+
"q",
|
|
29
|
+
"Q",
|
|
30
|
+
"M",
|
|
31
|
+
"L",
|
|
32
|
+
"w",
|
|
33
|
+
"I",
|
|
34
|
+
"d",
|
|
35
|
+
"E",
|
|
36
|
+
"i",
|
|
37
|
+
"e",
|
|
38
|
+
"c",
|
|
39
|
+
"t",
|
|
40
|
+
"T"
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
l as DayOfYearParser
|
|
45
|
+
};
|
package/index198.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index176.js"),s=require("./index221.js");class n extends s.Parser{priority=90;parse(t,e,r){switch(e){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,r,o){return t=a.setDay(t,r,o),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]}exports.DayParser=n;
|
package/index198.mjs
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { setDay as a } from "./index176.mjs";
|
|
2
|
+
import { Parser as n } from "./index221.mjs";
|
|
3
|
+
class w extends n {
|
|
4
|
+
priority = 90;
|
|
5
|
+
parse(t, o, r) {
|
|
6
|
+
switch (o) {
|
|
7
|
+
case "E":
|
|
8
|
+
case "EE":
|
|
9
|
+
case "EEE":
|
|
10
|
+
return r.day(t, {
|
|
11
|
+
width: "abbreviated",
|
|
12
|
+
context: "formatting"
|
|
13
|
+
}) || r.day(t, { width: "short", context: "formatting" }) || r.day(t, { width: "narrow", context: "formatting" });
|
|
14
|
+
case "EEEEE":
|
|
15
|
+
return r.day(t, {
|
|
16
|
+
width: "narrow",
|
|
17
|
+
context: "formatting"
|
|
18
|
+
});
|
|
19
|
+
case "EEEEEE":
|
|
20
|
+
return r.day(t, { width: "short", context: "formatting" }) || r.day(t, { width: "narrow", context: "formatting" });
|
|
21
|
+
case "EEEE":
|
|
22
|
+
default:
|
|
23
|
+
return r.day(t, { width: "wide", context: "formatting" }) || r.day(t, {
|
|
24
|
+
width: "abbreviated",
|
|
25
|
+
context: "formatting"
|
|
26
|
+
}) || r.day(t, { width: "short", context: "formatting" }) || r.day(t, { width: "narrow", context: "formatting" });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
validate(t, o) {
|
|
30
|
+
return o >= 0 && o <= 6;
|
|
31
|
+
}
|
|
32
|
+
set(t, o, r, e) {
|
|
33
|
+
return t = a(t, r, e), t.setHours(0, 0, 0, 0), t;
|
|
34
|
+
}
|
|
35
|
+
incompatibleTokens = ["D", "i", "e", "c", "t", "T"];
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
w as DayParser
|
|
39
|
+
};
|
package/index199.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index176.js"),c=require("./index221.js"),a=require("./index222.js");class y extends c.Parser{priority=90;parse(e,r,t,o){const s=n=>{const i=Math.floor((n-1)/7)*7;return(n+o.weekStartsOn+6)%7+i};switch(r){case"e":case"ee":return a.mapValue(a.parseNDigits(r.length,e),s);case"eo":return a.mapValue(t.ordinalNumber(e,{unit:"day"}),s);case"eee":return t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});case"eeeee":return t.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return t.day(e,{width:"wide",context:"formatting"})||t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,t,o){return e=u.setDay(e,t,o),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}exports.LocalDayParser=y;
|
package/index199.mjs
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { setDay as w } from "./index176.mjs";
|
|
2
|
+
import { Parser as d } from "./index221.mjs";
|
|
3
|
+
import { mapValue as s, parseNDigits as f } from "./index222.mjs";
|
|
4
|
+
class x extends d {
|
|
5
|
+
priority = 90;
|
|
6
|
+
parse(e, r, t, o) {
|
|
7
|
+
const a = (n) => {
|
|
8
|
+
const i = Math.floor((n - 1) / 7) * 7;
|
|
9
|
+
return (n + o.weekStartsOn + 6) % 7 + i;
|
|
10
|
+
};
|
|
11
|
+
switch (r) {
|
|
12
|
+
case "e":
|
|
13
|
+
case "ee":
|
|
14
|
+
return s(f(r.length, e), a);
|
|
15
|
+
case "eo":
|
|
16
|
+
return s(
|
|
17
|
+
t.ordinalNumber(e, {
|
|
18
|
+
unit: "day"
|
|
19
|
+
}),
|
|
20
|
+
a
|
|
21
|
+
);
|
|
22
|
+
case "eee":
|
|
23
|
+
return t.day(e, {
|
|
24
|
+
width: "abbreviated",
|
|
25
|
+
context: "formatting"
|
|
26
|
+
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
27
|
+
case "eeeee":
|
|
28
|
+
return t.day(e, {
|
|
29
|
+
width: "narrow",
|
|
30
|
+
context: "formatting"
|
|
31
|
+
});
|
|
32
|
+
case "eeeeee":
|
|
33
|
+
return t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
34
|
+
case "eeee":
|
|
35
|
+
default:
|
|
36
|
+
return t.day(e, { width: "wide", context: "formatting" }) || t.day(e, {
|
|
37
|
+
width: "abbreviated",
|
|
38
|
+
context: "formatting"
|
|
39
|
+
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
validate(e, r) {
|
|
43
|
+
return r >= 0 && r <= 6;
|
|
44
|
+
}
|
|
45
|
+
set(e, r, t, o) {
|
|
46
|
+
return e = w(e, t, o), e.setHours(0, 0, 0, 0), e;
|
|
47
|
+
}
|
|
48
|
+
incompatibleTokens = [
|
|
49
|
+
"y",
|
|
50
|
+
"R",
|
|
51
|
+
"u",
|
|
52
|
+
"q",
|
|
53
|
+
"Q",
|
|
54
|
+
"M",
|
|
55
|
+
"L",
|
|
56
|
+
"I",
|
|
57
|
+
"d",
|
|
58
|
+
"D",
|
|
59
|
+
"E",
|
|
60
|
+
"i",
|
|
61
|
+
"c",
|
|
62
|
+
"t",
|
|
63
|
+
"T"
|
|
64
|
+
];
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
x as LocalDayParser
|
|
68
|
+
};
|
package/index2.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),s=require("./index51.js");function t({children:o=[],type:c,qa:e}){const n=s.classNames({"m-accordion":!0,"m-accordion--open":c==="open"});return r.jsx("div",{className:n,"data-qa":e,children:o})}exports.Accordion=t;
|
package/index2.mjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { classNames as s } from "./index51.mjs";
|
|
3
|
+
function t({ children: o = [], type: c, qa: r }) {
|
|
4
|
+
const a = s({
|
|
5
|
+
"m-accordion": !0,
|
|
6
|
+
"m-accordion--open": c === "open"
|
|
7
|
+
});
|
|
8
|
+
return /* @__PURE__ */ n("div", { className: a, "data-qa": r, children: o });
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
t as Accordion
|
|
12
|
+
};
|
package/index20.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),e=require("react"),p=require("./index53.js"),v=require("./index51.js"),w=e.forwardRef(function({trigger:c,open:u,hasPadding:_=!0,className:f="",orientation:l="bottom-left",size:i,children:E,scrollable:d=!1,onStateChange:n,qa:g},h){const[x,m]=e.useState(!!u),s=u===!1||u===!0?u:x,o=e.useRef(null);e.useImperativeHandle(h,()=>o.current);const a=e.useCallback(t=>{const r=o.current;r&&(t.target===r.lastChild&&t.preventDefault(),r.contains(t.target)||(m(!1),n?.(!1)))},[n]);e.useEffect(()=>{if(s)return document.addEventListener("mousedown",a,!1),()=>{document.removeEventListener("mousedown",a,!1)}},[s,a]);const I=()=>{const t=!s;m(t),n?.(t)},b=v.classNames({"m-flyout":!0,[f]:!!f,"is-open":!!s,"u-text-right":!!l?.includes("right"),[`m-flyout--${l}`]:!!l,[`m-flyout--${p.SIZE_MAP[i||p.DEFAULT_SIZE]}`]:!!i,"m-flyout--scrollable":!!d}),q=v.classNames({"m-flyout__content":!0,"has-padding":!!_});return c?y.jsxs("div",{className:b,ref:o,"data-qa":g,children:[e.cloneElement(c,{onClick:I,"aria-haspopup":!0,"aria-expanded":s}),y.jsx("div",{className:q,...d?{tabIndex:0}:{},children:E})]}):null});exports.Flyout=w;
|
package/index20.mjs
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsxs as w, jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as F, useState as O, useRef as b, useImperativeHandle as g, useCallback as k, useEffect as L, cloneElement as R } from "react";
|
|
3
|
+
import { SIZE_MAP as j, DEFAULT_SIZE as A } from "./index53.mjs";
|
|
4
|
+
import { classNames as d } from "./index51.mjs";
|
|
5
|
+
const q = F(function({
|
|
6
|
+
trigger: a,
|
|
7
|
+
open: s,
|
|
8
|
+
hasPadding: p = !0,
|
|
9
|
+
className: f = "",
|
|
10
|
+
orientation: o = "bottom-left",
|
|
11
|
+
size: c,
|
|
12
|
+
children: y,
|
|
13
|
+
scrollable: m = !1,
|
|
14
|
+
onStateChange: l,
|
|
15
|
+
qa: v
|
|
16
|
+
}, E) {
|
|
17
|
+
const [h, i] = O(!!s), e = s === !1 || s === !0 ? s : h, n = b(null);
|
|
18
|
+
g(E, () => n.current);
|
|
19
|
+
const u = k(
|
|
20
|
+
(t) => {
|
|
21
|
+
const r = n.current;
|
|
22
|
+
r && (t.target === r.lastChild && t.preventDefault(), r.contains(t.target) || (i(!1), l?.(!1)));
|
|
23
|
+
},
|
|
24
|
+
[l]
|
|
25
|
+
);
|
|
26
|
+
L(() => {
|
|
27
|
+
if (e)
|
|
28
|
+
return document.addEventListener("mousedown", u, !1), () => {
|
|
29
|
+
document.removeEventListener("mousedown", u, !1);
|
|
30
|
+
};
|
|
31
|
+
}, [e, u]);
|
|
32
|
+
const x = () => {
|
|
33
|
+
const t = !e;
|
|
34
|
+
i(t), l?.(t);
|
|
35
|
+
}, I = d({
|
|
36
|
+
"m-flyout": !0,
|
|
37
|
+
[f]: !!f,
|
|
38
|
+
"is-open": !!e,
|
|
39
|
+
"u-text-right": !!o?.includes("right"),
|
|
40
|
+
[`m-flyout--${o}`]: !!o,
|
|
41
|
+
[`m-flyout--${j[c || A]}`]: !!c,
|
|
42
|
+
"m-flyout--scrollable": !!m
|
|
43
|
+
}), _ = d({
|
|
44
|
+
"m-flyout__content": !0,
|
|
45
|
+
"has-padding": !!p
|
|
46
|
+
});
|
|
47
|
+
return a ? /* @__PURE__ */ w("div", { className: I, ref: n, "data-qa": v, children: [
|
|
48
|
+
R(a, { onClick: x, "aria-haspopup": !0, "aria-expanded": e }),
|
|
49
|
+
/* @__PURE__ */ C("div", { className: _, ...m ? { tabIndex: 0 } : {}, children: y })
|
|
50
|
+
] }) : null;
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
q as Flyout
|
|
54
|
+
};
|
package/index200.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index176.js"),l=require("./index221.js"),o=require("./index222.js");class u extends l.Parser{priority=90;parse(e,t,a,n){const s=r=>{const c=Math.floor((r-1)/7)*7;return(r+n.weekStartsOn+6)%7+c};switch(t){case"c":case"cc":return o.mapValue(o.parseNDigits(t.length,e),s);case"co":return o.mapValue(a.ordinalNumber(e,{unit:"day"}),s);case"ccc":return a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"ccccc":return a.day(e,{width:"narrow",context:"standalone"});case"cccccc":return a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(e,{width:"wide",context:"standalone"})||a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,a,n){return e=d.setDay(e,a,n),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}exports.StandAloneLocalDayParser=u;
|
package/index200.mjs
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { setDay as d } from "./index176.mjs";
|
|
2
|
+
import { Parser as l } from "./index221.mjs";
|
|
3
|
+
import { mapValue as s, parseNDigits as w } from "./index222.mjs";
|
|
4
|
+
class p extends l {
|
|
5
|
+
priority = 90;
|
|
6
|
+
parse(e, a, o, n) {
|
|
7
|
+
const t = (r) => {
|
|
8
|
+
const c = Math.floor((r - 1) / 7) * 7;
|
|
9
|
+
return (r + n.weekStartsOn + 6) % 7 + c;
|
|
10
|
+
};
|
|
11
|
+
switch (a) {
|
|
12
|
+
case "c":
|
|
13
|
+
case "cc":
|
|
14
|
+
return s(w(a.length, e), t);
|
|
15
|
+
case "co":
|
|
16
|
+
return s(
|
|
17
|
+
o.ordinalNumber(e, {
|
|
18
|
+
unit: "day"
|
|
19
|
+
}),
|
|
20
|
+
t
|
|
21
|
+
);
|
|
22
|
+
case "ccc":
|
|
23
|
+
return o.day(e, {
|
|
24
|
+
width: "abbreviated",
|
|
25
|
+
context: "standalone"
|
|
26
|
+
}) || o.day(e, { width: "short", context: "standalone" }) || o.day(e, { width: "narrow", context: "standalone" });
|
|
27
|
+
case "ccccc":
|
|
28
|
+
return o.day(e, {
|
|
29
|
+
width: "narrow",
|
|
30
|
+
context: "standalone"
|
|
31
|
+
});
|
|
32
|
+
case "cccccc":
|
|
33
|
+
return o.day(e, { width: "short", context: "standalone" }) || o.day(e, { width: "narrow", context: "standalone" });
|
|
34
|
+
case "cccc":
|
|
35
|
+
default:
|
|
36
|
+
return o.day(e, { width: "wide", context: "standalone" }) || o.day(e, {
|
|
37
|
+
width: "abbreviated",
|
|
38
|
+
context: "standalone"
|
|
39
|
+
}) || o.day(e, { width: "short", context: "standalone" }) || o.day(e, { width: "narrow", context: "standalone" });
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
validate(e, a) {
|
|
43
|
+
return a >= 0 && a <= 6;
|
|
44
|
+
}
|
|
45
|
+
set(e, a, o, n) {
|
|
46
|
+
return e = d(e, o, n), e.setHours(0, 0, 0, 0), e;
|
|
47
|
+
}
|
|
48
|
+
incompatibleTokens = [
|
|
49
|
+
"y",
|
|
50
|
+
"R",
|
|
51
|
+
"u",
|
|
52
|
+
"q",
|
|
53
|
+
"Q",
|
|
54
|
+
"M",
|
|
55
|
+
"L",
|
|
56
|
+
"I",
|
|
57
|
+
"d",
|
|
58
|
+
"D",
|
|
59
|
+
"E",
|
|
60
|
+
"i",
|
|
61
|
+
"e",
|
|
62
|
+
"t",
|
|
63
|
+
"T"
|
|
64
|
+
];
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
p as StandAloneLocalDayParser
|
|
68
|
+
};
|
package/index201.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index177.js"),n=require("./index221.js"),i=require("./index222.js");class u extends n.Parser{priority=90;parse(r,e,t){const a=o=>o===0?7:o;switch(e){case"i":case"ii":return i.parseNDigits(e.length,r);case"io":return t.ordinalNumber(r,{unit:"day"});case"iii":return i.mapValue(t.day(r,{width:"abbreviated",context:"formatting"})||t.day(r,{width:"short",context:"formatting"})||t.day(r,{width:"narrow",context:"formatting"}),a);case"iiiii":return i.mapValue(t.day(r,{width:"narrow",context:"formatting"}),a);case"iiiiii":return i.mapValue(t.day(r,{width:"short",context:"formatting"})||t.day(r,{width:"narrow",context:"formatting"}),a);case"iiii":default:return i.mapValue(t.day(r,{width:"wide",context:"formatting"})||t.day(r,{width:"abbreviated",context:"formatting"})||t.day(r,{width:"short",context:"formatting"})||t.day(r,{width:"narrow",context:"formatting"}),a)}}validate(r,e){return e>=1&&e<=7}set(r,e,t){return r=s.setISODay(r,t),r.setHours(0,0,0,0),r}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}exports.ISODayParser=u;
|
package/index201.mjs
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { setISODay as n } from "./index177.mjs";
|
|
2
|
+
import { Parser as s } from "./index221.mjs";
|
|
3
|
+
import { mapValue as e, parseNDigits as w } from "./index222.mjs";
|
|
4
|
+
class c extends s {
|
|
5
|
+
priority = 90;
|
|
6
|
+
parse(r, t, i) {
|
|
7
|
+
const o = (a) => a === 0 ? 7 : a;
|
|
8
|
+
switch (t) {
|
|
9
|
+
case "i":
|
|
10
|
+
case "ii":
|
|
11
|
+
return w(t.length, r);
|
|
12
|
+
case "io":
|
|
13
|
+
return i.ordinalNumber(r, { unit: "day" });
|
|
14
|
+
case "iii":
|
|
15
|
+
return e(
|
|
16
|
+
i.day(r, {
|
|
17
|
+
width: "abbreviated",
|
|
18
|
+
context: "formatting"
|
|
19
|
+
}) || i.day(r, {
|
|
20
|
+
width: "short",
|
|
21
|
+
context: "formatting"
|
|
22
|
+
}) || i.day(r, {
|
|
23
|
+
width: "narrow",
|
|
24
|
+
context: "formatting"
|
|
25
|
+
}),
|
|
26
|
+
o
|
|
27
|
+
);
|
|
28
|
+
case "iiiii":
|
|
29
|
+
return e(
|
|
30
|
+
i.day(r, {
|
|
31
|
+
width: "narrow",
|
|
32
|
+
context: "formatting"
|
|
33
|
+
}),
|
|
34
|
+
o
|
|
35
|
+
);
|
|
36
|
+
case "iiiiii":
|
|
37
|
+
return e(
|
|
38
|
+
i.day(r, {
|
|
39
|
+
width: "short",
|
|
40
|
+
context: "formatting"
|
|
41
|
+
}) || i.day(r, {
|
|
42
|
+
width: "narrow",
|
|
43
|
+
context: "formatting"
|
|
44
|
+
}),
|
|
45
|
+
o
|
|
46
|
+
);
|
|
47
|
+
case "iiii":
|
|
48
|
+
default:
|
|
49
|
+
return e(
|
|
50
|
+
i.day(r, {
|
|
51
|
+
width: "wide",
|
|
52
|
+
context: "formatting"
|
|
53
|
+
}) || i.day(r, {
|
|
54
|
+
width: "abbreviated",
|
|
55
|
+
context: "formatting"
|
|
56
|
+
}) || i.day(r, {
|
|
57
|
+
width: "short",
|
|
58
|
+
context: "formatting"
|
|
59
|
+
}) || i.day(r, {
|
|
60
|
+
width: "narrow",
|
|
61
|
+
context: "formatting"
|
|
62
|
+
}),
|
|
63
|
+
o
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
validate(r, t) {
|
|
68
|
+
return t >= 1 && t <= 7;
|
|
69
|
+
}
|
|
70
|
+
set(r, t, i) {
|
|
71
|
+
return r = n(r, i), r.setHours(0, 0, 0, 0), r;
|
|
72
|
+
}
|
|
73
|
+
incompatibleTokens = [
|
|
74
|
+
"y",
|
|
75
|
+
"Y",
|
|
76
|
+
"u",
|
|
77
|
+
"q",
|
|
78
|
+
"Q",
|
|
79
|
+
"M",
|
|
80
|
+
"L",
|
|
81
|
+
"w",
|
|
82
|
+
"d",
|
|
83
|
+
"D",
|
|
84
|
+
"E",
|
|
85
|
+
"e",
|
|
86
|
+
"c",
|
|
87
|
+
"t",
|
|
88
|
+
"T"
|
|
89
|
+
];
|
|
90
|
+
}
|
|
91
|
+
export {
|
|
92
|
+
c as ISODayParser
|
|
93
|
+
};
|
package/index202.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index221.js"),o=require("./index222.js");class i extends t.Parser{priority=80;parse(r,a,e){switch(a){case"a":case"aa":case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})||e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"})}}set(r,a,e){return r.setHours(o.dayPeriodEnumToHours(e),0,0,0),r}incompatibleTokens=["b","B","H","k","t","T"]}exports.AMPMParser=i;
|
package/index202.mjs
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Parser as e } from "./index221.mjs";
|
|
2
|
+
import { dayPeriodEnumToHours as t } from "./index222.mjs";
|
|
3
|
+
class s extends e {
|
|
4
|
+
priority = 80;
|
|
5
|
+
parse(r, o, a) {
|
|
6
|
+
switch (o) {
|
|
7
|
+
case "a":
|
|
8
|
+
case "aa":
|
|
9
|
+
case "aaa":
|
|
10
|
+
return a.dayPeriod(r, {
|
|
11
|
+
width: "abbreviated",
|
|
12
|
+
context: "formatting"
|
|
13
|
+
}) || a.dayPeriod(r, {
|
|
14
|
+
width: "narrow",
|
|
15
|
+
context: "formatting"
|
|
16
|
+
});
|
|
17
|
+
case "aaaaa":
|
|
18
|
+
return a.dayPeriod(r, {
|
|
19
|
+
width: "narrow",
|
|
20
|
+
context: "formatting"
|
|
21
|
+
});
|
|
22
|
+
case "aaaa":
|
|
23
|
+
default:
|
|
24
|
+
return a.dayPeriod(r, {
|
|
25
|
+
width: "wide",
|
|
26
|
+
context: "formatting"
|
|
27
|
+
}) || a.dayPeriod(r, {
|
|
28
|
+
width: "abbreviated",
|
|
29
|
+
context: "formatting"
|
|
30
|
+
}) || a.dayPeriod(r, {
|
|
31
|
+
width: "narrow",
|
|
32
|
+
context: "formatting"
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
set(r, o, a) {
|
|
37
|
+
return r.setHours(t(a), 0, 0, 0), r;
|
|
38
|
+
}
|
|
39
|
+
incompatibleTokens = ["b", "B", "H", "k", "t", "T"];
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
s as AMPMParser
|
|
43
|
+
};
|
package/index203.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index221.js"),i=require("./index222.js");class a extends o.Parser{priority=80;parse(r,t,e){switch(t){case"b":case"bb":case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})||e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"})}}set(r,t,e){return r.setHours(i.dayPeriodEnumToHours(e),0,0,0),r}incompatibleTokens=["a","B","H","k","t","T"]}exports.AMPMMidnightParser=a;
|
package/index203.mjs
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Parser as t } from "./index221.mjs";
|
|
2
|
+
import { dayPeriodEnumToHours as i } from "./index222.mjs";
|
|
3
|
+
class n extends t {
|
|
4
|
+
priority = 80;
|
|
5
|
+
parse(r, e, o) {
|
|
6
|
+
switch (e) {
|
|
7
|
+
case "b":
|
|
8
|
+
case "bb":
|
|
9
|
+
case "bbb":
|
|
10
|
+
return o.dayPeriod(r, {
|
|
11
|
+
width: "abbreviated",
|
|
12
|
+
context: "formatting"
|
|
13
|
+
}) || o.dayPeriod(r, {
|
|
14
|
+
width: "narrow",
|
|
15
|
+
context: "formatting"
|
|
16
|
+
});
|
|
17
|
+
case "bbbbb":
|
|
18
|
+
return o.dayPeriod(r, {
|
|
19
|
+
width: "narrow",
|
|
20
|
+
context: "formatting"
|
|
21
|
+
});
|
|
22
|
+
case "bbbb":
|
|
23
|
+
default:
|
|
24
|
+
return o.dayPeriod(r, {
|
|
25
|
+
width: "wide",
|
|
26
|
+
context: "formatting"
|
|
27
|
+
}) || o.dayPeriod(r, {
|
|
28
|
+
width: "abbreviated",
|
|
29
|
+
context: "formatting"
|
|
30
|
+
}) || o.dayPeriod(r, {
|
|
31
|
+
width: "narrow",
|
|
32
|
+
context: "formatting"
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
set(r, e, o) {
|
|
37
|
+
return r.setHours(i(o), 0, 0, 0), r;
|
|
38
|
+
}
|
|
39
|
+
incompatibleTokens = ["a", "B", "H", "k", "t", "T"];
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
n as AMPMMidnightParser
|
|
43
|
+
};
|
package/index204.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index221.js"),i=require("./index222.js");class a extends o.Parser{priority=80;parse(r,t,e){switch(t){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})||e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"})}}set(r,t,e){return r.setHours(i.dayPeriodEnumToHours(e),0,0,0),r}incompatibleTokens=["a","b","t","T"]}exports.DayPeriodParser=a;
|
package/index204.mjs
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Parser as t } from "./index221.mjs";
|
|
2
|
+
import { dayPeriodEnumToHours as i } from "./index222.mjs";
|
|
3
|
+
class s extends t {
|
|
4
|
+
priority = 80;
|
|
5
|
+
parse(r, e, o) {
|
|
6
|
+
switch (e) {
|
|
7
|
+
case "B":
|
|
8
|
+
case "BB":
|
|
9
|
+
case "BBB":
|
|
10
|
+
return o.dayPeriod(r, {
|
|
11
|
+
width: "abbreviated",
|
|
12
|
+
context: "formatting"
|
|
13
|
+
}) || o.dayPeriod(r, {
|
|
14
|
+
width: "narrow",
|
|
15
|
+
context: "formatting"
|
|
16
|
+
});
|
|
17
|
+
case "BBBBB":
|
|
18
|
+
return o.dayPeriod(r, {
|
|
19
|
+
width: "narrow",
|
|
20
|
+
context: "formatting"
|
|
21
|
+
});
|
|
22
|
+
case "BBBB":
|
|
23
|
+
default:
|
|
24
|
+
return o.dayPeriod(r, {
|
|
25
|
+
width: "wide",
|
|
26
|
+
context: "formatting"
|
|
27
|
+
}) || o.dayPeriod(r, {
|
|
28
|
+
width: "abbreviated",
|
|
29
|
+
context: "formatting"
|
|
30
|
+
}) || o.dayPeriod(r, {
|
|
31
|
+
width: "narrow",
|
|
32
|
+
context: "formatting"
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
set(r, e, o) {
|
|
37
|
+
return r.setHours(i(o), 0, 0, 0), r;
|
|
38
|
+
}
|
|
39
|
+
incompatibleTokens = ["a", "b", "t", "T"];
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
s as DayPeriodParser
|
|
43
|
+
};
|
package/index205.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index223.js"),i=require("./index221.js"),o=require("./index222.js");class n extends i.Parser{priority=70;parse(r,e,s){switch(e){case"h":return o.parseNumericPattern(u.numericPatterns.hour12h,r);case"ho":return s.ordinalNumber(r,{unit:"hour"});default:return o.parseNDigits(e.length,r)}}validate(r,e){return e>=1&&e<=12}set(r,e,s){const t=r.getHours()>=12;return t&&s<12?r.setHours(s+12,0,0,0):!t&&s===12?r.setHours(0,0,0,0):r.setHours(s,0,0,0),r}incompatibleTokens=["H","K","k","t","T"]}exports.Hour1to12Parser=n;
|
package/index205.mjs
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { numericPatterns as o } from "./index223.mjs";
|
|
2
|
+
import { Parser as i } from "./index221.mjs";
|
|
3
|
+
import { parseNDigits as u, parseNumericPattern as n } from "./index222.mjs";
|
|
4
|
+
class f extends i {
|
|
5
|
+
priority = 70;
|
|
6
|
+
parse(r, s, e) {
|
|
7
|
+
switch (s) {
|
|
8
|
+
case "h":
|
|
9
|
+
return n(o.hour12h, r);
|
|
10
|
+
case "ho":
|
|
11
|
+
return e.ordinalNumber(r, { unit: "hour" });
|
|
12
|
+
default:
|
|
13
|
+
return u(s.length, r);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
validate(r, s) {
|
|
17
|
+
return s >= 1 && s <= 12;
|
|
18
|
+
}
|
|
19
|
+
set(r, s, e) {
|
|
20
|
+
const t = r.getHours() >= 12;
|
|
21
|
+
return t && e < 12 ? r.setHours(e + 12, 0, 0, 0) : !t && e === 12 ? r.setHours(0, 0, 0, 0) : r.setHours(e, 0, 0, 0), r;
|
|
22
|
+
}
|
|
23
|
+
incompatibleTokens = ["H", "K", "k", "t", "T"];
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
f as Hour1to12Parser
|
|
27
|
+
};
|
package/index206.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index223.js"),a=require("./index221.js"),s=require("./index222.js");class o extends a.Parser{priority=70;parse(r,e,t){switch(e){case"H":return s.parseNumericPattern(u.numericPatterns.hour23h,r);case"Ho":return t.ordinalNumber(r,{unit:"hour"});default:return s.parseNDigits(e.length,r)}}validate(r,e){return e>=0&&e<=23}set(r,e,t){return r.setHours(t,0,0,0),r}incompatibleTokens=["a","b","h","K","k","t","T"]}exports.Hour0to23Parser=o;
|