@thx/controls 19.6.3 → 19.6.4
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/dist/esm/date/LocalTimePicker/LocalTimePicker.js +43 -40
- package/dist/esm/date/LocalTimePicker/LocalTimePicker.js.map +1 -1
- package/dist/esm/money/useMoneyInput.js +3 -3
- package/dist/esm/money/useMoneyInput.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/stats.txt +39 -39
- package/dist/types/date/LocalTimePicker/LocalTimePicker.d.ts +15 -3
- package/package.json +2 -2
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import DatePicker from 'react-datepicker';
|
|
3
2
|
import { LocalTime } from '@js-joda/core';
|
|
4
3
|
import { toDate, toLocalTime } from '@thx/date';
|
|
4
|
+
import { debug } from 'debug';
|
|
5
|
+
import DatePicker from 'react-datepicker';
|
|
5
6
|
|
|
7
|
+
debug("thx.controls.date.LocalTimePicker");
|
|
8
|
+
function clamp(v, lo, hi) {
|
|
9
|
+
return Math.max(lo, Math.min(hi, v));
|
|
10
|
+
}
|
|
6
11
|
function formatLocalTime(localTime) {
|
|
7
12
|
const hours = localTime.hour();
|
|
8
13
|
const minutes = localTime.minute();
|
|
@@ -16,24 +21,43 @@ function parseTimeStringToLocalTime(str) {
|
|
|
16
21
|
let m = str.match(/^\s*(\d{1,2}):(\d{2})\s*(AM|PM)\s*$/i);
|
|
17
22
|
if (m) {
|
|
18
23
|
let hh = parseInt(m[1], 10);
|
|
19
|
-
const mm = parseInt(m[2], 10);
|
|
20
|
-
const period = m[3].toUpperCase();
|
|
24
|
+
const mm = clamp(parseInt(m[2], 10), 0, 59);
|
|
25
|
+
const period = (m[3] || "").toUpperCase();
|
|
21
26
|
if (period === "PM" && hh < 12)
|
|
22
27
|
hh += 12;
|
|
23
28
|
if (period === "AM" && hh === 12)
|
|
24
29
|
hh = 0;
|
|
30
|
+
return LocalTime.of(clamp(hh, 0, 23), mm);
|
|
31
|
+
}
|
|
32
|
+
const raw = str.trim();
|
|
33
|
+
const dec = raw.match(/^\s*([0-9]{1,2})([.,]([0-9]+))\s*(am|pm)?\s*$/i);
|
|
34
|
+
if (dec) {
|
|
35
|
+
let hh = parseInt(dec[1], 10);
|
|
36
|
+
const fracDigits = dec[3] || "";
|
|
37
|
+
const suffix = (dec[4] || "").toUpperCase();
|
|
38
|
+
const fraction = fracDigits ? parseFloat(`0.${fracDigits}`) : 0;
|
|
39
|
+
let mm = Math.round(fraction * 60);
|
|
40
|
+
if (mm === 60) {
|
|
41
|
+
mm = 0;
|
|
42
|
+
hh += 1;
|
|
43
|
+
}
|
|
44
|
+
if (suffix === "PM" && hh < 12)
|
|
45
|
+
hh += 12;
|
|
46
|
+
if (suffix === "AM" && hh === 12)
|
|
47
|
+
hh = 0;
|
|
48
|
+
hh = clamp(hh, 0, 23);
|
|
49
|
+
mm = clamp(mm, 0, 59);
|
|
25
50
|
return LocalTime.of(hh, mm);
|
|
26
51
|
}
|
|
27
|
-
const s =
|
|
52
|
+
const s = raw.toLowerCase().replace(/[.\-_\s]+/g, "");
|
|
28
53
|
m = s.match(/^([0-9]{1,4})(am|pm)$/i);
|
|
29
54
|
if (m) {
|
|
30
55
|
const digits = m[1];
|
|
31
|
-
const suffix = m[2].toUpperCase();
|
|
56
|
+
const suffix = (m[2] || "").toUpperCase();
|
|
32
57
|
let hh = 0;
|
|
33
58
|
let mm = 0;
|
|
34
59
|
if (digits.length <= 2) {
|
|
35
60
|
hh = parseInt(digits, 10);
|
|
36
|
-
mm = 0;
|
|
37
61
|
} else if (digits.length === 3) {
|
|
38
62
|
hh = parseInt(digits.slice(0, 1), 10);
|
|
39
63
|
mm = parseInt(digits.slice(1), 10);
|
|
@@ -41,77 +65,56 @@ function parseTimeStringToLocalTime(str) {
|
|
|
41
65
|
hh = parseInt(digits.slice(0, 2), 10);
|
|
42
66
|
mm = parseInt(digits.slice(2), 10);
|
|
43
67
|
}
|
|
44
|
-
|
|
45
|
-
mm = 59;
|
|
46
|
-
if (hh > 23)
|
|
47
|
-
hh = 23;
|
|
68
|
+
mm = clamp(mm, 0, 59);
|
|
48
69
|
if (suffix === "PM" && hh < 12)
|
|
49
70
|
hh += 12;
|
|
50
71
|
if (suffix === "AM" && hh === 12)
|
|
51
72
|
hh = 0;
|
|
52
|
-
return LocalTime.of(hh, mm);
|
|
73
|
+
return LocalTime.of(clamp(hh, 0, 23), mm);
|
|
53
74
|
}
|
|
54
75
|
m = s.match(/^([0-9]{1,2})(?::?([0-9]{1,2}))?(am|pm)$/i);
|
|
55
76
|
if (m) {
|
|
56
77
|
let hh = parseInt(m[1], 10);
|
|
57
|
-
|
|
58
|
-
const suffix = m[3].toUpperCase();
|
|
59
|
-
if (mm > 59)
|
|
60
|
-
mm = 59;
|
|
61
|
-
if (hh > 23)
|
|
62
|
-
hh = 23;
|
|
78
|
+
const mm = clamp(parseInt(m[2] || "0", 10), 0, 59);
|
|
79
|
+
const suffix = (m[3] || "").toUpperCase();
|
|
63
80
|
if (suffix === "PM" && hh < 12)
|
|
64
81
|
hh += 12;
|
|
65
82
|
if (suffix === "AM" && hh === 12)
|
|
66
83
|
hh = 0;
|
|
67
|
-
return LocalTime.of(hh, mm);
|
|
84
|
+
return LocalTime.of(clamp(hh, 0, 23), mm);
|
|
68
85
|
}
|
|
69
86
|
m = s.match(/^([01]?\d|2[0-3]):([0-5]\d)$/);
|
|
70
87
|
if (m) {
|
|
71
|
-
|
|
72
|
-
const mm = parseInt(m[2], 10);
|
|
73
|
-
return LocalTime.of(hh, mm);
|
|
88
|
+
return LocalTime.of(parseInt(m[1], 10), parseInt(m[2], 10));
|
|
74
89
|
}
|
|
75
90
|
m = s.match(/^([01]?\d|2[0-3])([0-5]\d)$/);
|
|
76
91
|
if (m)
|
|
77
92
|
return LocalTime.of(parseInt(m[1], 10), parseInt(m[2], 10));
|
|
78
93
|
m = s.match(/^(\d)(\d{2})$/);
|
|
79
94
|
if (m) {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
if (hh > 23)
|
|
83
|
-
hh = 23;
|
|
84
|
-
if (mm > 59)
|
|
85
|
-
mm = 59;
|
|
95
|
+
const hh = clamp(parseInt(m[1], 10), 0, 23);
|
|
96
|
+
const mm = clamp(parseInt(m[2], 10), 0, 59);
|
|
86
97
|
return LocalTime.of(hh, mm);
|
|
87
98
|
}
|
|
88
99
|
m = s.match(/^([0-9]{1,2})$/);
|
|
89
100
|
if (m) {
|
|
90
|
-
|
|
91
|
-
if (hh > 23)
|
|
92
|
-
hh = 23;
|
|
101
|
+
const hh = clamp(parseInt(m[1], 10), 0, 23);
|
|
93
102
|
return LocalTime.of(hh, 0);
|
|
94
103
|
}
|
|
95
104
|
return null;
|
|
96
105
|
}
|
|
97
106
|
function LocalTimePicker(props) {
|
|
98
|
-
const { value, onChange, onBlur, placeholder, name,
|
|
99
|
-
const extraClass = error ? `${className ?? ""} error`.trim() : className;
|
|
100
|
-
const datepickerProps = {
|
|
101
|
-
...rest,
|
|
102
|
-
className: extraClass || void 0,
|
|
103
|
-
"aria-invalid": error ? true : void 0,
|
|
104
|
-
name
|
|
105
|
-
};
|
|
107
|
+
const { value, onChange, onBlur, placeholder, name, ...rest } = props;
|
|
106
108
|
const selected = value ? toDate(value) : null;
|
|
107
109
|
return /* @__PURE__ */ React.createElement(DatePicker, {
|
|
108
|
-
...
|
|
110
|
+
...rest,
|
|
109
111
|
selected,
|
|
110
112
|
showTimeSelect: true,
|
|
111
113
|
showTimeSelectOnly: true,
|
|
112
114
|
timeIntervals: 15,
|
|
113
115
|
timeCaption: "Time",
|
|
114
116
|
dateFormat: "hh:mm aa",
|
|
117
|
+
name,
|
|
115
118
|
placeholderText: placeholder ?? "...9:45AM",
|
|
116
119
|
onChange: (date) => {
|
|
117
120
|
const lt = date ? toLocalTime(date) : null;
|
|
@@ -141,5 +144,5 @@ function LocalTimePicker(props) {
|
|
|
141
144
|
});
|
|
142
145
|
}
|
|
143
146
|
|
|
144
|
-
export { LocalTimePicker, parseTimeStringToLocalTime };
|
|
147
|
+
export { LocalTimePicker, formatLocalTime, parseTimeStringToLocalTime };
|
|
145
148
|
//# sourceMappingURL=LocalTimePicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalTimePicker.js","sources":["../../../../src/date/LocalTimePicker/LocalTimePicker.tsx"],"sourcesContent":["import {type ReactElement} from 'react';\nimport DatePicker, {type ReactDatePickerProps} from 'react-datepicker';\nimport {type InputProps} from 'semantic-ui-react';\nimport {LocalTime} from '@js-joda/core';\nimport {toDate, toLocalTime} from '@thx/date';\n\nfunction formatLocalTime(localTime: LocalTime): string {\n\tconst hours = localTime.hour();\n\tconst minutes = localTime.minute();\n\tconst period = hours >= 12 ? 'PM' : 'AM';\n\tconst displayHour = hours % 12 || 12;\n\treturn `${displayHour}:${minutes.toString().padStart(2, '0')} ${period}`;\n}\n\n/** Parse tolerant strings into LocalTime (supports shorthands, compact am/pm like \"334pm\", and 24h forms). */\nexport function parseTimeStringToLocalTime(str: string): LocalTime | null {\n\tif (!str) return null;\n\n\t// 1) already-normalized with AM/PM like \"9:34 PM\" or \"09:34 AM\"\n\tlet m = str.match(/^\\s*(\\d{1,2}):(\\d{2})\\s*(AM|PM)\\s*$/i);\n\tif (m) {\n\t\tlet hh = parseInt(m[1], 10);\n\t\tconst mm = parseInt(m[2], 10);\n\t\tconst period = m[3].toUpperCase();\n\t\tif (period === 'PM' && hh < 12) hh += 12;\n\t\tif (period === 'AM' && hh === 12) hh = 0;\n\t\treturn LocalTime.of(hh, mm);\n\t}\n\n\tconst s = str\n\t\t.trim()\n\t\t.toLowerCase()\n\t\t.replace(/[.\\-_,]/g, '')\n\t\t.replace(/\\s+/g, '');\n\n\t// 2) compact suffix forms: digits + am|pm, supporting 1-4 digit prefixes:\n\t// - \"5pm\" => 5:00 PM\n\t// - \"334pm\" => 3:34 PM\n\t// - \"1234am\" => 12:34 AM\n\tm = s.match(/^([0-9]{1,4})(am|pm)$/i);\n\tif (m) {\n\t\tconst digits = m[1];\n\t\tconst suffix = m[2].toUpperCase();\n\t\tlet hh = 0;\n\t\tlet mm = 0;\n\n\t\tif (digits.length <= 2) {\n\t\t\t// \"5pm\" or \"05pm\" => hour only\n\t\t\thh = parseInt(digits, 10);\n\t\t\tmm = 0;\n\t\t} else if (digits.length === 3) {\n\t\t\t// \"734pm\" => 7:34\n\t\t\thh = parseInt(digits.slice(0, 1), 10);\n\t\t\tmm = parseInt(digits.slice(1), 10);\n\t\t} else {\n\t\t\t// length === 4, \"1234pm\" => 12:34\n\t\t\thh = parseInt(digits.slice(0, 2), 10);\n\t\t\tmm = parseInt(digits.slice(2), 10);\n\t\t}\n\n\t\tif (mm > 59) mm = 59;\n\t\tif (hh > 23) hh = 23;\n\t\tif (suffix === 'PM' && hh < 12) hh += 12;\n\t\tif (suffix === 'AM' && hh === 12) hh = 0;\n\t\treturn LocalTime.of(hh, mm);\n\t}\n\n\t// 3) hh[:mm][am|pm] (e.g. \"5pm\", \"05:30am\") - fallback for colon + suffix\n\tm = s.match(/^([0-9]{1,2})(?::?([0-9]{1,2}))?(am|pm)$/i);\n\tif (m) {\n\t\tlet hh = parseInt(m[1], 10);\n\t\tlet mm = parseInt(m[2] || '0', 10);\n\t\tconst suffix = m[3].toUpperCase();\n\t\tif (mm > 59) mm = 59;\n\t\tif (hh > 23) hh = 23;\n\t\tif (suffix === 'PM' && hh < 12) hh += 12;\n\t\tif (suffix === 'AM' && hh === 12) hh = 0;\n\t\treturn LocalTime.of(hh, mm);\n\t}\n\n\t// 4) colon-separated 24h \"HH:MM\" (e.g. \"21:34\", \"09:05\")\n\tm = s.match(/^([01]?\\d|2[0-3]):([0-5]\\d)$/);\n\tif (m) {\n\t\tconst hh = parseInt(m[1], 10);\n\t\tconst mm = parseInt(m[2], 10);\n\t\treturn LocalTime.of(hh, mm);\n\t}\n\n\t// 5) Four-digit compact \"HHMM\" (e.g. \"2145\", \"0945\")\n\tm = s.match(/^([01]?\\d|2[0-3])([0-5]\\d)$/);\n\tif (m) return LocalTime.of(parseInt(m[1], 10), parseInt(m[2], 10));\n\n\t// 6) Three-digit compact like \"734\" -> 7:34\n\tm = s.match(/^(\\d)(\\d{2})$/);\n\tif (m) {\n\t\tlet hh = parseInt(m[1], 10);\n\t\tlet mm = parseInt(m[2], 10);\n\t\tif (hh > 23) hh = 23;\n\t\tif (mm > 59) mm = 59;\n\t\treturn LocalTime.of(hh, mm);\n\t}\n\n\t// 7) hour-only \"5\" -> 05:00\n\tm = s.match(/^([0-9]{1,2})$/);\n\tif (m) {\n\t\tlet hh = parseInt(m[1], 10);\n\t\tif (hh > 23) hh = 23;\n\t\treturn LocalTime.of(hh, 0);\n\t}\n\n\treturn null;\n}\n\ninterface ILocalTimePicker {\n\tvalue?: LocalTime | null;\n\tonChange?: (value: LocalTime | null) => void;\n\tonBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;\n}\n\nexport type InputPropsOmitted = Omit<InputProps, 'onChange' | 'value'>;\nexport type ReactDatePickerPropsOmitted = Omit<Omit<ReactDatePickerProps, 'value'>, 'onChange' | 'onBlur'>;\n\nexport type LocalTimePickerProps = ILocalTimePicker & InputPropsOmitted & ReactDatePickerPropsOmitted;\n\nexport function LocalTimePicker(props: LocalTimePickerProps): ReactElement {\n\tconst {value, onChange, onBlur, placeholder, name, className, error, ...rest} = props;\n\n\t// Map Semantic-UI error boolean to className + aria-invalid (avoid boolean prop on DOM)\n\tconst extraClass = error ? `${className ?? ''} error`.trim() : className;\n\tconst datepickerProps: Record<string, any> = {\n\t\t...rest,\n\t\tclassName: extraClass || undefined,\n\t\t'aria-invalid': error ? true : undefined,\n\t\tname,\n\t};\n\n\tconst selected = value ? toDate(value) : null;\n\n\treturn (\n\t\t<DatePicker\n\t\t\t{...datepickerProps}\n\t\t\tselected={selected}\n\t\t\tshowTimeSelect\n\t\t\tshowTimeSelectOnly\n\t\t\ttimeIntervals={15}\n\t\t\ttimeCaption=\"Time\"\n\t\t\tdateFormat=\"hh:mm aa\"\n\t\t\tplaceholderText={placeholder ?? '...9:45AM'}\n\t\t\tonChange={date => {\n\t\t\t\tconst lt = date ? toLocalTime(date) : null;\n\t\t\t\tonChange?.(lt);\n\t\t\t}}\n\t\t\tonBlur={(e: React.FocusEvent<HTMLInputElement>) => {\n\t\t\t\t// read raw text\n\t\t\t\tconst raw = (e.target as HTMLInputElement).value;\n\t\t\t\tconst parsed = parseTimeStringToLocalTime(raw);\n\n\t\t\t\tif (parsed) {\n\t\t\t\t\t// 1) tell parent about the parsed value (parent will call setFieldValue)\n\t\t\t\t\tonChange?.(parsed);\n\n\t\t\t\t\t// 2) call the parent's onBlur (likely Formik.handleBlur) after the current call stack,\n\t\t\t\t\t// so setFieldValue has an opportunity to update Formik state before validation runs.\n\t\t\t\t\t// Pass a small synthetic event with name and value so Formik marks touched correctly.\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tconst synthetic: any = {target: {name, value: parsed}};\n\t\t\t\t\t\tonBlur?.(synthetic);\n\t\t\t\t\t}, 0);\n\t\t\t\t} else {\n\t\t\t\t\t// If parsing failed, revert the visible input to the last parent value immediately\n\t\t\t\t\tconst parentDisplay = value ? formatLocalTime(value) : '';\n\t\t\t\t\ttry {\n\t\t\t\t\t\t(e.target as HTMLInputElement).value = parentDisplay;\n\t\t\t\t\t} catch {\n\t\t\t\t\t\t/* ignore */\n\t\t\t\t\t}\n\n\t\t\t\t\t// Then notify parent via onBlur after a tick so validation sees the (unchanged) parent value.\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tconst synthetic: any = {target: {name, value: value ?? null}};\n\t\t\t\t\t\tonBlur?.(synthetic);\n\t\t\t\t\t}, 0);\n\t\t\t\t}\n\t\t\t}}\n\t\t/>\n\t);\n}\n"],"names":[],"mappings":";;;;;AAMA,SAAS,gBAAgB,SAA8B,EAAA;AACtD,EAAM,MAAA,KAAA,GAAQ,UAAU,IAAK,EAAA,CAAA;AAC7B,EAAM,MAAA,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,IAAM,EAAA,KAAA,EAAO,QAAO,EAAA,CAAA;AACrD,UAAA,MAAA,GAAS,SAAS,CAAA,CAAA;AAAA,WAChB,CAAC,CAAA,CAAA;AAAA,OACE,MAAA;AAEN,QAAA,MAAM,aAAgB,GAAA,KAAA,GAAQ,eAAgB,CAAA,KAAK,CAAI,GAAA,EAAA,CAAA;AACvD,QAAI,IAAA;AACH,UAAC,CAAA,CAAE,OAA4B,KAAQ,GAAA,aAAA,CAAA;AAAA,SACtC,CAAA,MAAA;AAAA,SAEF;AAGA,QAAA,UAAA,CAAW,MAAM;AAChB,UAAM,MAAA,SAAA,GAAiB,EAAC,MAAQ,EAAA,EAAC,MAAM,KAAO,EAAA,KAAA,IAAS,MAAK,EAAA,CAAA;AAC5D,UAAA,MAAA,GAAS,SAAS,CAAA,CAAA;AAAA,WAChB,CAAC,CAAA,CAAA;AAAA,OACL;AAAA,KACD;AAAA,GACD,CAAA,CAAA;AAEF;;;;"}
|
|
1
|
+
{"version":3,"file":"LocalTimePicker.js","sources":["../../../../src/date/LocalTimePicker/LocalTimePicker.tsx"],"sourcesContent":["import {LocalTime} from '@js-joda/core';\nimport {toDate, toLocalTime} from '@thx/date';\nimport {debug} from 'debug';\nimport {type ReactElement} from 'react';\nimport DatePicker, {type ReactDatePickerProps} from 'react-datepicker';\nimport {type InputProps} from 'semantic-ui-react';\n\nconst d = debug('thx.controls.date.LocalTimePicker');\n\n/**\n * LocalTimePicker\n *\n * Goals / decisions\n * - Use react-datepicker's built-in input to avoid clone/ref races.\n * - Provide a single robust parser that accepts a wide variety of user input styles:\n * - explicit \"h:mm AM/PM\" (preferred)\n * - compact with suffix: \"334pm\", \"1234AM\", \"5pm\"\n * - decimal hours: \"5.5\", \"5,5\", \"5.5pm\", \"17.25\" (fraction -> minutes; rounded)\n * - 24h colon \"21:34\"\n * - HHMM \"2145\"\n * - 3-digit compact \"734\" -> 7:34\n * - hour-only \"5\" -> 05:00\n * - On blur: parse raw text; if parsed -> call onChange(parsed) and then call onBlur (deferred)\n * so parent setFieldValue can finish before validation runs. If parse fails -> leave parent value,\n * optionally revert visible text to the parent's display.\n *\n * - Minimal, readable logic; helper functions for rounding/clamping.\n */\n\n/* ----------------------------- helpers ---------------------------------- */\n\nfunction clamp(v: number, lo: number, hi: number): number {\n\treturn Math.max(lo, Math.min(hi, v));\n}\n\nexport function formatLocalTime(localTime: LocalTime): string {\n\tconst hours = localTime.hour();\n\tconst minutes = localTime.minute();\n\tconst period = hours >= 12 ? 'PM' : 'AM';\n\tconst displayHour = hours % 12 || 12;\n\treturn `${displayHour}:${minutes.toString().padStart(2, '0')} ${period}`;\n}\n\n/**\n * Parse tolerant strings into LocalTime.\n *\n * Behavior details:\n * - Decimal hours: fraction -> minutes by rounding (Math.round). If mm === 60 after rounding,\n * hour increments and minutes = 0.\n * - If decimal form includes am/pm suffix, interpret as 12-hour with suffix.\n * - If decimal form has no suffix, treat as 24-hour decimal when hours < 24.\n * - After computing, clamp hour to 0..23 and minutes to 0..59.\n *\n * Returns LocalTime or null if input cannot be parsed.\n */\nexport function parseTimeStringToLocalTime(str: string): LocalTime | null {\n\tif (!str) return null;\n\n\t// 1) explicit \"h:mm AM/PM\"\n\tlet m = str.match(/^\\s*(\\d{1,2}):(\\d{2})\\s*(AM|PM)\\s*$/i);\n\tif (m) {\n\t\tlet hh = parseInt(m[1], 10);\n\t\tconst mm = clamp(parseInt(m[2], 10), 0, 59);\n\t\tconst period = (m[3] || '').toUpperCase();\n\t\tif (period === 'PM' && hh < 12) hh += 12;\n\t\tif (period === 'AM' && hh === 12) hh = 0;\n\t\treturn LocalTime.of(clamp(hh, 0, 23), mm);\n\t}\n\n\tconst raw = str.trim();\n\n\t// 2) decimal-hour with fraction (accept '.' or ','), optional am/pm\n\t// e.g. \"5.5\", \"5,5\", \"5.5pm\", \"17.25\"\n\tconst dec = raw.match(/^\\s*([0-9]{1,2})([.,]([0-9]+))\\s*(am|pm)?\\s*$/i);\n\tif (dec) {\n\t\tlet hh = parseInt(dec[1], 10);\n\t\tconst fracDigits = dec[3] || '';\n\t\tconst suffix = (dec[4] || '').toUpperCase();\n\t\tconst fraction = fracDigits ? parseFloat(`0.${fracDigits}`) : 0;\n\t\tlet mm = Math.round(fraction * 60); // rounding preferred\n\n\t\t// handle rounding overflow (e.g. .999 -> 60 minutes)\n\t\tif (mm === 60) {\n\t\t\tmm = 0;\n\t\t\thh += 1;\n\t\t}\n\n\t\tif (suffix === 'PM' && hh < 12) hh += 12;\n\t\tif (suffix === 'AM' && hh === 12) hh = 0;\n\n\t\thh = clamp(hh, 0, 23);\n\t\tmm = clamp(mm, 0, 59);\n\t\treturn LocalTime.of(hh, mm);\n\t}\n\n\t// For the remaining checks normalize a compact form (remove dots/dashes/underscores/spaces)\n\t// but keep colon and letters.\n\tconst s = raw.toLowerCase().replace(/[.\\-_\\s]+/g, '');\n\n\t// 3) compact suffix forms (digits + am/pm), support 1-4 digits:\n\t// \"5pm\", \"334pm\", \"1234am\"\n\tm = s.match(/^([0-9]{1,4})(am|pm)$/i);\n\tif (m) {\n\t\tconst digits = m[1];\n\t\tconst suffix = (m[2] || '').toUpperCase();\n\t\tlet hh = 0;\n\t\tlet mm = 0;\n\n\t\tif (digits.length <= 2) {\n\t\t\thh = parseInt(digits, 10);\n\t\t} else if (digits.length === 3) {\n\t\t\thh = parseInt(digits.slice(0, 1), 10);\n\t\t\tmm = parseInt(digits.slice(1), 10);\n\t\t} else {\n\t\t\thh = parseInt(digits.slice(0, 2), 10);\n\t\t\tmm = parseInt(digits.slice(2), 10);\n\t\t}\n\n\t\tmm = clamp(mm, 0, 59);\n\t\tif (suffix === 'PM' && hh < 12) hh += 12;\n\t\tif (suffix === 'AM' && hh === 12) hh = 0;\n\t\treturn LocalTime.of(clamp(hh, 0, 23), mm);\n\t}\n\n\t// 4) hh[:mm][am|pm] (allow missing colon) - fallback\n\tm = s.match(/^([0-9]{1,2})(?::?([0-9]{1,2}))?(am|pm)$/i);\n\tif (m) {\n\t\tlet hh = parseInt(m[1], 10);\n\t\tconst mm = clamp(parseInt(m[2] || '0', 10), 0, 59);\n\t\tconst suffix = (m[3] || '').toUpperCase();\n\t\tif (suffix === 'PM' && hh < 12) hh += 12;\n\t\tif (suffix === 'AM' && hh === 12) hh = 0;\n\t\treturn LocalTime.of(clamp(hh, 0, 23), mm);\n\t}\n\n\t// 5) 24h colon \"HH:MM\"\n\tm = s.match(/^([01]?\\d|2[0-3]):([0-5]\\d)$/);\n\tif (m) {\n\t\treturn LocalTime.of(parseInt(m[1], 10), parseInt(m[2], 10));\n\t}\n\n\t// 6) four-digit compact \"HHMM\"\n\tm = s.match(/^([01]?\\d|2[0-3])([0-5]\\d)$/);\n\tif (m) return LocalTime.of(parseInt(m[1], 10), parseInt(m[2], 10));\n\n\t// 7) three-digit compact \"734\" -> 7:34\n\tm = s.match(/^(\\d)(\\d{2})$/);\n\tif (m) {\n\t\tconst hh = clamp(parseInt(m[1], 10), 0, 23);\n\t\tconst mm = clamp(parseInt(m[2], 10), 0, 59);\n\t\treturn LocalTime.of(hh, mm);\n\t}\n\n\t// 8) hour-only \"5\" -> 05:00\n\tm = s.match(/^([0-9]{1,2})$/);\n\tif (m) {\n\t\tconst hh = clamp(parseInt(m[1], 10), 0, 23);\n\t\treturn LocalTime.of(hh, 0);\n\t}\n\n\treturn null;\n}\n\n/* ----------------------------- component -------------------------------- */\n\ninterface ILocalTimePicker {\n\tvalue?: LocalTime | null;\n\tonChange?: (value: LocalTime | null) => void;\n\tonBlur?: (e: React.FocusEvent<HTMLInputElement> | any) => void;\n}\n\nexport type InputPropsOmitted = Omit<InputProps, 'onChange' | 'value'>;\nexport type ReactDatePickerPropsOmitted = Omit<Omit<ReactDatePickerProps, 'value'>, 'onChange' | 'onBlur'>;\n\nexport type LocalTimePickerProps = ILocalTimePicker & InputPropsOmitted & ReactDatePickerPropsOmitted;\n\nexport function LocalTimePicker(props: LocalTimePickerProps): ReactElement {\n\tconst {value, onChange, onBlur, placeholder, name, ...rest} = props;\n\n\tconst selected = value ? toDate(value) : null;\n\n\treturn (\n\t\t<DatePicker\n\t\t\t{...rest}\n\t\t\tselected={selected}\n\t\t\tshowTimeSelect\n\t\t\tshowTimeSelectOnly\n\t\t\ttimeIntervals={15}\n\t\t\ttimeCaption=\"Time\"\n\t\t\tdateFormat=\"hh:mm aa\"\n\t\t\tname={name}\n\t\t\tplaceholderText={placeholder ?? '...9:45AM'}\n\t\t\tonChange={date => {\n\t\t\t\tconst lt = date ? toLocalTime(date) : null;\n\t\t\t\tonChange?.(lt);\n\t\t\t}}\n\t\t\tonBlur={(e: React.FocusEvent<HTMLInputElement>) => {\n\t\t\t\t// Parse raw input and commit parsed value, then defer blur so parent validation\n\t\t\t\t// (e.g. Formik) sees the new value after setFieldValue completes.\n\t\t\t\tconst raw = (e.target as HTMLInputElement).value;\n\t\t\t\tconst parsed = parseTimeStringToLocalTime(raw);\n\n\t\t\t\tif (parsed) {\n\t\t\t\t\tonChange?.(parsed);\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tconst synthetic: any = {target: {name, value: parsed}};\n\t\t\t\t\t\tonBlur?.(synthetic);\n\t\t\t\t\t}, 0);\n\t\t\t\t} else {\n\t\t\t\t\t// If parsing fails, leave parent value unchanged. Optionally revert the visible\n\t\t\t\t\t// text to the parent's display to avoid garbage staying in the field.\n\t\t\t\t\tconst parentDisplay = value ? formatLocalTime(value) : '';\n\t\t\t\t\ttry {\n\t\t\t\t\t\t(e.target as HTMLInputElement).value = parentDisplay;\n\t\t\t\t\t} catch {\n\t\t\t\t\t\t/* ignore DOM quirks */\n\t\t\t\t\t}\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tconst synthetic: any = {target: {name, value: value ?? null}};\n\t\t\t\t\t\tonBlur?.(synthetic);\n\t\t\t\t\t}, 0);\n\t\t\t\t}\n\t\t\t}}\n\t\t/>\n\t);\n}\n"],"names":[],"mappings":";;;;;;AAOU,MAAM,mCAAmC,EAAA;AAwBnD,SAAS,KAA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,CAAA;AAAA,OACL;AAAA,KACD;AAAA,GACD,CAAA,CAAA;AAEF;;;;"}
|
|
@@ -52,12 +52,12 @@ function useMoneyInput(props) {
|
|
|
52
52
|
}, [currencyCode, prefix, showPrefix, wholeNumber]);
|
|
53
53
|
const setVal = useCallback(
|
|
54
54
|
(v) => {
|
|
55
|
-
if (inputElement.current) {
|
|
55
|
+
if (inputElement.current && maskInstance.current) {
|
|
56
56
|
d("Value is being set:", v);
|
|
57
57
|
if (v) {
|
|
58
|
-
|
|
58
|
+
maskInstance.current.setValue(v.toDecimal().toString());
|
|
59
59
|
} else {
|
|
60
|
-
|
|
60
|
+
maskInstance.current.setValue("");
|
|
61
61
|
}
|
|
62
62
|
onSet && onSet(v);
|
|
63
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMoneyInput.js","sources":["../../../src/money/useMoneyInput.ts"],"sourcesContent":["import {toMoney} from '@thx/money';\nimport debug from 'debug';\nimport Inputmask from 'inputmask';\nimport Money from 'js-money';\nimport {type MutableRefObject, useCallback, useEffect, useRef} from 'react';\n\nconst d = debug('thx.controls.money.useMoneyInput');\n\n// @ts-ignore inputmask .d.ts file is correct, but ESM causes some difficulty. -mk\nconst InputmaskClass = Inputmask.default || Inputmask;\n\ninterface UseMoneyInputProps {\n\tvalue?: Money;\n\tonChange?: (value?: Money) => void;\n\tonSet?: (value?: Money) => void;\n\t// defaultCurrency?: Currency; // Defaults to Money.CAD\n\tprefix?: string; // Defaults to currency symbol\n\tshowPrefix?: boolean; // Defaults to false\n\twholeNumber?: boolean; // Defaults to false\n}\n\ntype SetValueFn = (value?: Money) => void;\n\nexport function useMoneyInput(props: UseMoneyInputProps): [MutableRefObject<HTMLInputElement | null>, SetValueFn] {\n\tconst {value, onChange, onSet, showPrefix, prefix, wholeNumber} = props;\n\n\tconst inputElement = useRef<HTMLInputElement | null>(null);\n\tconst maskInstance = useRef<Inputmask.Instance | null>(null);\n\n\t// set the adjCurrency\n\t// let adjCurrency = Money.CAD;\n\t// if (value?.currency && Money[value?.currency]) adjCurrency = Money[value?.currency];\n\t// if (defaultCurrency) adjCurrency = defaultCurrency;\n\tconst currencyCode = value?.currency || 'CAD';\n\n\tuseEffect(() => {\n\t\tif (!inputElement.current) throw new Error('Could not get input element');\n\n\t\td('Creating input mask instance');\n\t\tmaskInstance.current = new InputmaskClass({\n\t\t\talias: 'numeric',\n\t\t\tgroupSeparator: ',',\n\t\t\tdigits: wholeNumber ? '0' : Money[currencyCode].decimal_digits.toString(),\n\t\t\tdigitsOptional: false,\n\t\t\tprefix: showPrefix ? prefix || Money[currencyCode].symbol : undefined,\n\t\t\tplaceholder: '0',\n\t\t\tautoUnmask: true,\n\t\t\toncomplete() {\n\t\t\t\tif (onChange) {\n\t\t\t\t\tif (inputElement.current?.value) {\n\t\t\t\t\t\tonChange(toMoney(inputElement.current?.value, currencyCode));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tonChange();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\toncleared() {\n\t\t\t\tif (onChange) onChange();\n\t\t\t},\n\t\t\tonincomplete() {\n\t\t\t\tif (onChange) onChange(toMoney(inputElement.current?.value, currencyCode));\n\t\t\t},\n\t\t});\n\t\t// @ts-ignore We just created the instance but typescript can't figure it out. -mk\n\t\tmaskInstance.current.mask(inputElement.current);\n\n\t\treturn () => {\n\t\t\tif (maskInstance.current) {\n\t\t\t\td('Cleaning up input mask instance');\n\t\t\t\tmaskInstance.current.remove();\n\t\t\t\tmaskInstance.current = null;\n\t\t\t}\n\t\t};\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [currencyCode, prefix, showPrefix, wholeNumber]);\n\n\tconst setVal = useCallback<SetValueFn>(\n\t\t(v?: Money) => {\n\t\t\tif (inputElement.current) {\n\t\t\t\td('Value is being set:', v);\n\t\t\t\tif (v) {\n\t\t\t\t\
|
|
1
|
+
{"version":3,"file":"useMoneyInput.js","sources":["../../../src/money/useMoneyInput.ts"],"sourcesContent":["import {toMoney} from '@thx/money';\nimport debug from 'debug';\nimport Inputmask from 'inputmask';\nimport Money from 'js-money';\nimport {type MutableRefObject, useCallback, useEffect, useRef} from 'react';\n\nconst d = debug('thx.controls.money.useMoneyInput');\n\n// @ts-ignore inputmask .d.ts file is correct, but ESM causes some difficulty. -mk\nconst InputmaskClass = Inputmask.default || Inputmask;\n\ninterface UseMoneyInputProps {\n\tvalue?: Money;\n\tonChange?: (value?: Money) => void;\n\tonSet?: (value?: Money) => void;\n\t// defaultCurrency?: Currency; // Defaults to Money.CAD\n\tprefix?: string; // Defaults to currency symbol\n\tshowPrefix?: boolean; // Defaults to false\n\twholeNumber?: boolean; // Defaults to false\n}\n\ntype SetValueFn = (value?: Money) => void;\n\nexport function useMoneyInput(props: UseMoneyInputProps): [MutableRefObject<HTMLInputElement | null>, SetValueFn] {\n\tconst {value, onChange, onSet, showPrefix, prefix, wholeNumber} = props;\n\n\tconst inputElement = useRef<HTMLInputElement | null>(null);\n\tconst maskInstance = useRef<Inputmask.Instance | null>(null);\n\n\t// set the adjCurrency\n\t// let adjCurrency = Money.CAD;\n\t// if (value?.currency && Money[value?.currency]) adjCurrency = Money[value?.currency];\n\t// if (defaultCurrency) adjCurrency = defaultCurrency;\n\tconst currencyCode = value?.currency || 'CAD';\n\n\tuseEffect(() => {\n\t\tif (!inputElement.current) throw new Error('Could not get input element');\n\n\t\td('Creating input mask instance');\n\t\tmaskInstance.current = new InputmaskClass({\n\t\t\talias: 'numeric',\n\t\t\tgroupSeparator: ',',\n\t\t\tdigits: wholeNumber ? '0' : Money[currencyCode].decimal_digits.toString(),\n\t\t\tdigitsOptional: false,\n\t\t\tprefix: showPrefix ? prefix || Money[currencyCode].symbol : undefined,\n\t\t\tplaceholder: '0',\n\t\t\tautoUnmask: true,\n\t\t\toncomplete() {\n\t\t\t\tif (onChange) {\n\t\t\t\t\tif (inputElement.current?.value) {\n\t\t\t\t\t\tonChange(toMoney(inputElement.current?.value, currencyCode));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tonChange();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\toncleared() {\n\t\t\t\tif (onChange) onChange();\n\t\t\t},\n\t\t\tonincomplete() {\n\t\t\t\tif (onChange) onChange(toMoney(inputElement.current?.value, currencyCode));\n\t\t\t},\n\t\t});\n\t\t// @ts-ignore We just created the instance but typescript can't figure it out. -mk\n\t\tmaskInstance.current.mask(inputElement.current);\n\n\t\treturn () => {\n\t\t\tif (maskInstance.current) {\n\t\t\t\td('Cleaning up input mask instance');\n\t\t\t\tmaskInstance.current.remove();\n\t\t\t\tmaskInstance.current = null;\n\t\t\t}\n\t\t};\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [currencyCode, prefix, showPrefix, wholeNumber]);\n\n\tconst setVal = useCallback<SetValueFn>(\n\t\t(v?: Money) => {\n\t\t\tif (inputElement.current && maskInstance.current) {\n\t\t\t\td('Value is being set:', v);\n\t\t\t\tif (v) {\n\t\t\t\t\tmaskInstance.current.setValue(v.toDecimal().toString());\n\t\t\t\t} else {\n\t\t\t\t\tmaskInstance.current.setValue('');\n\t\t\t\t}\n\t\t\t\tonSet && onSet(v);\n\t\t\t}\n\t\t},\n\t\t[onSet],\n\t);\n\n\t// If we change the value prop we need to sync the DOM value to display the new value\n\tuseEffect(() => {\n\t\tconst whatCurrentlyIsDisplayed = inputElement.current?.value || ''; // string | undef\n\t\tconst whatWeAreSetting = value ? value.toString() : ''; // money | undef\n\n\t\tif (whatCurrentlyIsDisplayed !== whatWeAreSetting) {\n\t\t\tsetVal(value);\n\t\t}\n\t}, [setVal, value]);\n\n\treturn [inputElement, setVal];\n}\n"],"names":["Inputmask"],"mappings":";;;;;;AAMA,MAAM,CAAA,GAAI,MAAM,kCAAkC,CAAA,CAAA;AAGlD,MAAM,cAAA,GAAiBA,gBAAU,OAAW,IAAAA,eAAA,CAAA;AAcrC,SAAS,cAAc,KAAoF,EAAA;AACjH,EAAA,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D,IAAA,IAAI,6BAA6B,gBAAkB,EAAA;AAClD,MAAA,MAAA,CAAO,KAAK,CAAA,CAAA;AAAA,KACb;AAAA,GACE,EAAA,CAAC,MAAQ,EAAA,KAAK,CAAC,CAAA,CAAA;AAElB,EAAO,OAAA,CAAC,cAAc,MAAM,CAAA,CAAA;AAC7B;;;;"}
|
package/dist/stats.html
CHANGED
|
@@ -4929,7 +4929,7 @@ var drawChart = (function (exports) {
|
|
|
4929
4929
|
</script>
|
|
4930
4930
|
<script>
|
|
4931
4931
|
/*<!--*/
|
|
4932
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"d0e00955-1"}]},{"name":"step/useStep.js","children":[{"name":"src/step/useStep.ts","uid":"d0e00955-3"}]},{"name":"step/Step.js","children":[{"name":"src/step/Step.tsx","uid":"d0e00955-5"}]},{"name":"step/FormStep.js","children":[{"name":"src/step/FormStep.tsx","uid":"d0e00955-7"}]},{"name":"step/StepProvider.js","children":[{"name":"src/step/StepProvider.tsx","uid":"d0e00955-9"}]},{"name":"date/LocalMonthSelect/LocalMonthSelect.js","children":[{"name":"src/date/LocalMonthSelect/LocalMonthSelect.tsx","uid":"d0e00955-11"}]},{"name":"date/LocalDatePicker/LocalDatePicker.js","children":[{"name":"src/date/LocalDatePicker/LocalDatePicker.tsx","uid":"d0e00955-13"}]},{"name":"date/LocalTimePicker/LocalTimePicker.js","children":[{"name":"src/date/LocalTimePicker/LocalTimePicker.tsx","uid":"d0e00955-15"}]},{"name":"date/YearSelect/YearSelect.js","children":[{"name":"src/date/YearSelect/YearSelect.tsx","uid":"d0e00955-17"}]},{"name":"inputs/MaskedInput/useMaskedInput.js","children":[{"name":"src/inputs/MaskedInput/useMaskedInput.ts","uid":"d0e00955-19"}]},{"name":"date/MonthYearPicker/MonthYearPicker.js","children":[{"name":"src/date/MonthYearPicker/MonthYearPicker.tsx","uid":"d0e00955-21"}]},{"name":"form/TForm/TForm.js","children":[{"name":"src/form/TForm/TForm.tsx","uid":"d0e00955-23"}]},{"name":"form/TForm/useTForm.js","children":[{"name":"src/form/TForm/useTForm.tsx","uid":"d0e00955-25"}]},{"name":"inputs/PhoneInput/PhoneInput.js","children":[{"name":"src/inputs/PhoneInput/PhoneInput.tsx","uid":"d0e00955-27"}]},{"name":"date/MonthDayPicker/MonthDayPicker.js","children":[{"name":"src/date/MonthDayPicker/MonthDayPicker.tsx","uid":"d0e00955-29"}]},{"name":"money/MoneyCurrencyInput/MoneyCurrencyInput.js","children":[{"name":"src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","uid":"d0e00955-31"}]},{"name":"inputs/SinInput/SinInput.js","children":[{"name":"src/inputs/SinInput/SinInput.tsx","uid":"d0e00955-33"}]},{"name":"inputs/MaskedInput/MaskedInput.js","children":[{"name":"src/inputs/MaskedInput/MaskedInput.tsx","uid":"d0e00955-35"}]},{"name":"inputs/RadioGroup/RadioGroup.js","children":[{"name":"src/inputs/RadioGroup/RadioGroup.tsx","uid":"d0e00955-37"}]},{"name":"inputs/TableInput/addRowOnTab.js","children":[{"name":"src/inputs/TableInput/addRowOnTab.ts","uid":"d0e00955-39"}]},{"name":"inputs/TableInput/TableInput.js","children":[{"name":"src/inputs/TableInput/TableInput.tsx","uid":"d0e00955-41"}]},{"name":"inputs/TableInput/MoneyCell.js","children":[{"name":"src/inputs/TableInput/MoneyCell.tsx","uid":"d0e00955-43"}]},{"name":"inputs/TableInput/MoneyEditCell.js","children":[{"name":"src/inputs/TableInput/MoneyEditCell.tsx","uid":"d0e00955-45"}]},{"name":"inputs/TableInput/LocalDateCell.js","children":[{"name":"src/inputs/TableInput/LocalDateCell.tsx","uid":"d0e00955-47"}]},{"name":"inputs/TableInput/CheckboxEditCell.js","children":[{"name":"src/inputs/TableInput/CheckboxEditCell.tsx","uid":"d0e00955-49"}]},{"name":"inputs/TableInput/LocalDateEditCell.js","children":[{"name":"src/inputs/TableInput/LocalDateEditCell.tsx","uid":"d0e00955-51"}]},{"name":"inputs/TableInput/LocalTimeEditCell.js","children":[{"name":"src/inputs/TableInput/LocalTimeEditCell.tsx","uid":"d0e00955-53"}]},{"name":"inputs/TableInput/MoneySumFooter.js","children":[{"name":"src/inputs/TableInput/MoneySumFooter.tsx","uid":"d0e00955-55"}]},{"name":"inputs/TableInput/NumberEditCell.js","children":[{"name":"src/inputs/TableInput/NumberEditCell.tsx","uid":"d0e00955-57"}]},{"name":"inputs/TableInput/StringEditCell.js","children":[{"name":"src/inputs/TableInput/StringEditCell.tsx","uid":"d0e00955-59"}]},{"name":"inputs/TableInput/DropdownCell.js","children":[{"name":"src/inputs/TableInput/DropdownCell.tsx","uid":"d0e00955-61"}]},{"name":"inputs/TableInput/HoverCell.js","children":[{"name":"src/inputs/TableInput/HoverCell.tsx","uid":"d0e00955-63"}]},{"name":"inputs/CreditCardInput/CreditCardInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardInput.tsx","uid":"d0e00955-65"}]},{"name":"money/MoneyInput/MoneyInput.js","children":[{"name":"src/money/MoneyInput/MoneyInput.tsx","uid":"d0e00955-67"}]},{"name":"step/stepContext.js","children":[{"name":"src/step/stepContext.ts","uid":"d0e00955-69"}]},{"name":"money/useMoneyInput.js","children":[{"name":"src/money/useMoneyInput.ts","uid":"d0e00955-71"}]},{"name":"date/DatePicker/styles.css.js","children":[{"name":"src/date/DatePicker/styles.css","uid":"d0e00955-73"}]},{"name":"date/LocalDatePicker/MaskedDateInput.js","children":[{"name":"src/date/LocalDatePicker/MaskedDateInput.tsx","uid":"d0e00955-75"}]},{"name":"inputs/CreditCardInput/styles.css.js","children":[{"name":"src/inputs/CreditCardInput/styles.css","uid":"d0e00955-77"}]},{"name":"inputs/CreditCardInput/CreditCardNumberInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardNumberInput.tsx","uid":"d0e00955-79"}]},{"name":"external/style-inject/dist/style-inject.es.js","children":[{"name":"home/artemis/Github/thr-addons/node_modules/style-inject/dist/style-inject.es.js","uid":"d0e00955-81"}]}],"isRoot":true},"nodeParts":{"d0e00955-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"d0e00955-0"},"d0e00955-3":{"renderedLength":113,"gzipLength":107,"brotliLength":82,"metaUid":"d0e00955-2"},"d0e00955-5":{"renderedLength":203,"gzipLength":155,"brotliLength":111,"metaUid":"d0e00955-4"},"d0e00955-7":{"renderedLength":440,"gzipLength":270,"brotliLength":214,"metaUid":"d0e00955-6"},"d0e00955-9":{"renderedLength":3529,"gzipLength":1015,"brotliLength":861,"metaUid":"d0e00955-8"},"d0e00955-11":{"renderedLength":1135,"gzipLength":505,"brotliLength":415,"metaUid":"d0e00955-10"},"d0e00955-13":{"renderedLength":3161,"gzipLength":952,"brotliLength":853,"metaUid":"d0e00955-12"},"d0e00955-15":{"renderedLength":3847,"gzipLength":1160,"brotliLength":1032,"metaUid":"d0e00955-14"},"d0e00955-17":{"renderedLength":1553,"gzipLength":579,"brotliLength":461,"metaUid":"d0e00955-16"},"d0e00955-19":{"renderedLength":1487,"gzipLength":501,"brotliLength":423,"metaUid":"d0e00955-18"},"d0e00955-21":{"renderedLength":1229,"gzipLength":496,"brotliLength":424,"metaUid":"d0e00955-20"},"d0e00955-23":{"renderedLength":600,"gzipLength":308,"brotliLength":267,"metaUid":"d0e00955-22"},"d0e00955-25":{"renderedLength":2950,"gzipLength":958,"brotliLength":830,"metaUid":"d0e00955-24"},"d0e00955-27":{"renderedLength":908,"gzipLength":382,"brotliLength":319,"metaUid":"d0e00955-26"},"d0e00955-29":{"renderedLength":1965,"gzipLength":655,"brotliLength":544,"metaUid":"d0e00955-28"},"d0e00955-31":{"renderedLength":1621,"gzipLength":646,"brotliLength":553,"metaUid":"d0e00955-30"},"d0e00955-33":{"renderedLength":1166,"gzipLength":540,"brotliLength":469,"metaUid":"d0e00955-32"},"d0e00955-35":{"renderedLength":543,"gzipLength":305,"brotliLength":252,"metaUid":"d0e00955-34"},"d0e00955-37":{"renderedLength":692,"gzipLength":342,"brotliLength":289,"metaUid":"d0e00955-36"},"d0e00955-39":{"renderedLength":312,"gzipLength":199,"brotliLength":173,"metaUid":"d0e00955-38"},"d0e00955-41":{"renderedLength":2891,"gzipLength":854,"brotliLength":780,"metaUid":"d0e00955-40"},"d0e00955-43":{"renderedLength":257,"gzipLength":185,"brotliLength":149,"metaUid":"d0e00955-42"},"d0e00955-45":{"renderedLength":820,"gzipLength":397,"brotliLength":349,"metaUid":"d0e00955-44"},"d0e00955-47":{"renderedLength":285,"gzipLength":198,"brotliLength":170,"metaUid":"d0e00955-46"},"d0e00955-49":{"renderedLength":702,"gzipLength":369,"brotliLength":330,"metaUid":"d0e00955-48"},"d0e00955-51":{"renderedLength":695,"gzipLength":349,"brotliLength":295,"metaUid":"d0e00955-50"},"d0e00955-53":{"renderedLength":622,"gzipLength":322,"brotliLength":269,"metaUid":"d0e00955-52"},"d0e00955-55":{"renderedLength":414,"gzipLength":259,"brotliLength":219,"metaUid":"d0e00955-54"},"d0e00955-57":{"renderedLength":782,"gzipLength":409,"brotliLength":345,"metaUid":"d0e00955-56"},"d0e00955-59":{"renderedLength":717,"gzipLength":372,"brotliLength":319,"metaUid":"d0e00955-58"},"d0e00955-61":{"renderedLength":483,"gzipLength":251,"brotliLength":208,"metaUid":"d0e00955-60"},"d0e00955-63":{"renderedLength":403,"gzipLength":244,"brotliLength":195,"metaUid":"d0e00955-62"},"d0e00955-65":{"renderedLength":2324,"gzipLength":584,"brotliLength":495,"metaUid":"d0e00955-64"},"d0e00955-67":{"renderedLength":802,"gzipLength":399,"brotliLength":317,"metaUid":"d0e00955-66"},"d0e00955-69":{"renderedLength":80,"gzipLength":92,"brotliLength":72,"metaUid":"d0e00955-68"},"d0e00955-71":{"renderedLength":2187,"gzipLength":771,"brotliLength":658,"metaUid":"d0e00955-70"},"d0e00955-73":{"renderedLength":538,"gzipLength":261,"brotliLength":211,"metaUid":"d0e00955-72"},"d0e00955-75":{"renderedLength":426,"gzipLength":286,"brotliLength":244,"metaUid":"d0e00955-74"},"d0e00955-77":{"renderedLength":78,"gzipLength":92,"brotliLength":79,"metaUid":"d0e00955-76"},"d0e00955-79":{"renderedLength":1733,"gzipLength":697,"brotliLength":623,"metaUid":"d0e00955-78"},"d0e00955-81":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"metaUid":"d0e00955-80"}},"nodeMetas":{"d0e00955-0":{"id":"/src/index.ts","moduleParts":{"index.js":"d0e00955-1"},"imported":[{"uid":"d0e00955-82"},{"uid":"d0e00955-83"},{"uid":"d0e00955-84"},{"uid":"d0e00955-85"},{"uid":"d0e00955-86"},{"uid":"d0e00955-87"},{"uid":"d0e00955-88"},{"uid":"d0e00955-89"},{"uid":"d0e00955-90"},{"uid":"d0e00955-91"},{"uid":"d0e00955-92"},{"uid":"d0e00955-93"},{"uid":"d0e00955-94"},{"uid":"d0e00955-95"},{"uid":"d0e00955-96"},{"uid":"d0e00955-97"}],"importedBy":[],"isEntry":true},"d0e00955-2":{"id":"/src/step/useStep.ts","moduleParts":{"step/useStep.js":"d0e00955-3"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-68"}],"importedBy":[{"uid":"d0e00955-97"},{"uid":"d0e00955-6"}]},"d0e00955-4":{"id":"/src/step/Step.tsx","moduleParts":{"step/Step.js":"d0e00955-5"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"}],"importedBy":[{"uid":"d0e00955-97"},{"uid":"d0e00955-8"}]},"d0e00955-6":{"id":"/src/step/FormStep.tsx","moduleParts":{"step/FormStep.js":"d0e00955-7"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"},{"uid":"d0e00955-2"}],"importedBy":[{"uid":"d0e00955-97"},{"uid":"d0e00955-8"}]},"d0e00955-8":{"id":"/src/step/StepProvider.tsx","moduleParts":{"step/StepProvider.js":"d0e00955-9"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"},{"uid":"d0e00955-116"},{"uid":"d0e00955-101"},{"uid":"d0e00955-6"},{"uid":"d0e00955-4"},{"uid":"d0e00955-68"}],"importedBy":[{"uid":"d0e00955-97"}]},"d0e00955-10":{"id":"/src/date/LocalMonthSelect/LocalMonthSelect.tsx","moduleParts":{"date/LocalMonthSelect/LocalMonthSelect.js":"d0e00955-11"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-103"},{"uid":"d0e00955-100"},{"uid":"d0e00955-101"}],"importedBy":[{"uid":"d0e00955-83"}]},"d0e00955-12":{"id":"/src/date/LocalDatePicker/LocalDatePicker.tsx","moduleParts":{"date/LocalDatePicker/LocalDatePicker.js":"d0e00955-13"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-99"},{"uid":"d0e00955-100"},{"uid":"d0e00955-101"},{"uid":"d0e00955-102"},{"uid":"d0e00955-72"},{"uid":"d0e00955-74"}],"importedBy":[{"uid":"d0e00955-82"}]},"d0e00955-14":{"id":"/src/date/LocalTimePicker/LocalTimePicker.tsx","moduleParts":{"date/LocalTimePicker/LocalTimePicker.js":"d0e00955-15"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-104"},{"uid":"d0e00955-103"},{"uid":"d0e00955-99"}],"importedBy":[{"uid":"d0e00955-84"}]},"d0e00955-16":{"id":"/src/date/YearSelect/YearSelect.tsx","moduleParts":{"date/YearSelect/YearSelect.js":"d0e00955-17"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"},{"uid":"d0e00955-101"}],"importedBy":[{"uid":"d0e00955-87"}]},"d0e00955-18":{"id":"/src/inputs/MaskedInput/useMaskedInput.ts","moduleParts":{"inputs/MaskedInput/useMaskedInput.js":"d0e00955-19"},"imported":[{"uid":"d0e00955-100"},{"uid":"d0e00955-108"},{"uid":"d0e00955-98"},{"uid":"d0e00955-109"}],"importedBy":[{"uid":"d0e00955-89"},{"uid":"d0e00955-34"},{"uid":"d0e00955-32"},{"uid":"d0e00955-78"}]},"d0e00955-20":{"id":"/src/date/MonthYearPicker/MonthYearPicker.tsx","moduleParts":{"date/MonthYearPicker/MonthYearPicker.js":"d0e00955-21"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-103"},{"uid":"d0e00955-99"},{"uid":"d0e00955-100"},{"uid":"d0e00955-101"},{"uid":"d0e00955-102"}],"importedBy":[{"uid":"d0e00955-86"}]},"d0e00955-22":{"id":"/src/form/TForm/TForm.tsx","moduleParts":{"form/TForm/TForm.js":"d0e00955-23"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"},{"uid":"d0e00955-105"},{"uid":"d0e00955-24"}],"importedBy":[{"uid":"d0e00955-88"}]},"d0e00955-24":{"id":"/src/form/TForm/useTForm.tsx","moduleParts":{"form/TForm/useTForm.js":"d0e00955-25"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-106"},{"uid":"d0e00955-105"},{"uid":"d0e00955-107"},{"uid":"d0e00955-101"}],"importedBy":[{"uid":"d0e00955-88"},{"uid":"d0e00955-22"}]},"d0e00955-26":{"id":"/src/inputs/PhoneInput/PhoneInput.tsx","moduleParts":{"inputs/PhoneInput/PhoneInput.js":"d0e00955-27"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"},{"uid":"d0e00955-101"},{"uid":"d0e00955-89"}],"importedBy":[{"uid":"d0e00955-91"}]},"d0e00955-28":{"id":"/src/date/MonthDayPicker/MonthDayPicker.tsx","moduleParts":{"date/MonthDayPicker/MonthDayPicker.js":"d0e00955-29"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-99"},{"uid":"d0e00955-100"},{"uid":"d0e00955-101"},{"uid":"d0e00955-102"}],"importedBy":[{"uid":"d0e00955-85"}]},"d0e00955-30":{"id":"/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","moduleParts":{"money/MoneyCurrencyInput/MoneyCurrencyInput.js":"d0e00955-31"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-114"},{"uid":"d0e00955-100"},{"uid":"d0e00955-115"},{"uid":"d0e00955-101"},{"uid":"d0e00955-70"}],"importedBy":[{"uid":"d0e00955-96"}]},"d0e00955-32":{"id":"/src/inputs/SinInput/SinInput.tsx","moduleParts":{"inputs/SinInput/SinInput.js":"d0e00955-33"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"},{"uid":"d0e00955-101"},{"uid":"d0e00955-112"},{"uid":"d0e00955-18"}],"importedBy":[{"uid":"d0e00955-93"}]},"d0e00955-34":{"id":"/src/inputs/MaskedInput/MaskedInput.tsx","moduleParts":{"inputs/MaskedInput/MaskedInput.js":"d0e00955-35"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"},{"uid":"d0e00955-18"}],"importedBy":[{"uid":"d0e00955-89"}]},"d0e00955-36":{"id":"/src/inputs/RadioGroup/RadioGroup.tsx","moduleParts":{"inputs/RadioGroup/RadioGroup.js":"d0e00955-37"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"},{"uid":"d0e00955-101"}],"importedBy":[{"uid":"d0e00955-90"}]},"d0e00955-38":{"id":"/src/inputs/TableInput/addRowOnTab.ts","moduleParts":{"inputs/TableInput/addRowOnTab.js":"d0e00955-39"},"imported":[],"importedBy":[{"uid":"d0e00955-94"},{"uid":"d0e00955-44"},{"uid":"d0e00955-48"},{"uid":"d0e00955-56"},{"uid":"d0e00955-58"}]},"d0e00955-40":{"id":"/src/inputs/TableInput/TableInput.tsx","moduleParts":{"inputs/TableInput/TableInput.js":"d0e00955-41"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"},{"uid":"d0e00955-105"},{"uid":"d0e00955-113"},{"uid":"d0e00955-101"}],"importedBy":[{"uid":"d0e00955-94"}]},"d0e00955-42":{"id":"/src/inputs/TableInput/MoneyCell.tsx","moduleParts":{"inputs/TableInput/MoneyCell.js":"d0e00955-43"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-114"}],"importedBy":[{"uid":"d0e00955-94"}]},"d0e00955-44":{"id":"/src/inputs/TableInput/MoneyEditCell.tsx","moduleParts":{"inputs/TableInput/MoneyEditCell.js":"d0e00955-45"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"},{"uid":"d0e00955-95"},{"uid":"d0e00955-38"}],"importedBy":[{"uid":"d0e00955-94"}]},"d0e00955-46":{"id":"/src/inputs/TableInput/LocalDateCell.tsx","moduleParts":{"inputs/TableInput/LocalDateCell.js":"d0e00955-47"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-99"}],"importedBy":[{"uid":"d0e00955-94"}]},"d0e00955-48":{"id":"/src/inputs/TableInput/CheckboxEditCell.tsx","moduleParts":{"inputs/TableInput/CheckboxEditCell.js":"d0e00955-49"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"},{"uid":"d0e00955-101"},{"uid":"d0e00955-38"}],"importedBy":[{"uid":"d0e00955-94"}]},"d0e00955-50":{"id":"/src/inputs/TableInput/LocalDateEditCell.tsx","moduleParts":{"inputs/TableInput/LocalDateEditCell.js":"d0e00955-51"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"},{"uid":"d0e00955-82"}],"importedBy":[{"uid":"d0e00955-94"}]},"d0e00955-52":{"id":"/src/inputs/TableInput/LocalTimeEditCell.tsx","moduleParts":{"inputs/TableInput/LocalTimeEditCell.js":"d0e00955-53"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"},{"uid":"d0e00955-84"}],"importedBy":[{"uid":"d0e00955-94"}]},"d0e00955-54":{"id":"/src/inputs/TableInput/MoneySumFooter.tsx","moduleParts":{"inputs/TableInput/MoneySumFooter.js":"d0e00955-55"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-114"}],"importedBy":[{"uid":"d0e00955-94"}]},"d0e00955-56":{"id":"/src/inputs/TableInput/NumberEditCell.tsx","moduleParts":{"inputs/TableInput/NumberEditCell.js":"d0e00955-57"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"},{"uid":"d0e00955-101"},{"uid":"d0e00955-38"}],"importedBy":[{"uid":"d0e00955-94"}]},"d0e00955-58":{"id":"/src/inputs/TableInput/StringEditCell.tsx","moduleParts":{"inputs/TableInput/StringEditCell.js":"d0e00955-59"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"},{"uid":"d0e00955-101"},{"uid":"d0e00955-38"}],"importedBy":[{"uid":"d0e00955-94"}]},"d0e00955-60":{"id":"/src/inputs/TableInput/DropdownCell.tsx","moduleParts":{"inputs/TableInput/DropdownCell.js":"d0e00955-61"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-101"}],"importedBy":[{"uid":"d0e00955-94"}]},"d0e00955-62":{"id":"/src/inputs/TableInput/HoverCell.tsx","moduleParts":{"inputs/TableInput/HoverCell.js":"d0e00955-63"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"}],"importedBy":[{"uid":"d0e00955-94"}]},"d0e00955-64":{"id":"/src/inputs/CreditCardInput/CreditCardInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardInput.js":"d0e00955-65"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-99"},{"uid":"d0e00955-100"},{"uid":"d0e00955-110"},{"uid":"d0e00955-111"},{"uid":"d0e00955-101"},{"uid":"d0e00955-86"},{"uid":"d0e00955-78"},{"uid":"d0e00955-76"}],"importedBy":[{"uid":"d0e00955-92"}]},"d0e00955-66":{"id":"/src/money/MoneyInput/MoneyInput.tsx","moduleParts":{"money/MoneyInput/MoneyInput.js":"d0e00955-67"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-114"},{"uid":"d0e00955-100"},{"uid":"d0e00955-115"},{"uid":"d0e00955-101"},{"uid":"d0e00955-70"}],"importedBy":[{"uid":"d0e00955-95"}]},"d0e00955-68":{"id":"/src/step/stepContext.ts","moduleParts":{"step/stepContext.js":"d0e00955-69"},"imported":[{"uid":"d0e00955-98"}],"importedBy":[{"uid":"d0e00955-2"},{"uid":"d0e00955-8"}]},"d0e00955-70":{"id":"/src/money/useMoneyInput.ts","moduleParts":{"money/useMoneyInput.js":"d0e00955-71"},"imported":[{"uid":"d0e00955-114"},{"uid":"d0e00955-100"},{"uid":"d0e00955-108"},{"uid":"d0e00955-115"},{"uid":"d0e00955-98"}],"importedBy":[{"uid":"d0e00955-66"},{"uid":"d0e00955-30"}]},"d0e00955-72":{"id":"/src/date/DatePicker/styles.css","moduleParts":{"date/DatePicker/styles.css.js":"d0e00955-73"},"imported":[{"uid":"d0e00955-80"}],"importedBy":[{"uid":"d0e00955-12"},{"uid":"d0e00955-102"}]},"d0e00955-74":{"id":"/src/date/LocalDatePicker/MaskedDateInput.tsx","moduleParts":{"date/LocalDatePicker/MaskedDateInput.js":"d0e00955-75"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-100"},{"uid":"d0e00955-89"}],"importedBy":[{"uid":"d0e00955-12"}]},"d0e00955-76":{"id":"/src/inputs/CreditCardInput/styles.css","moduleParts":{"inputs/CreditCardInput/styles.css.js":"d0e00955-77"},"imported":[{"uid":"d0e00955-80"}],"importedBy":[{"uid":"d0e00955-64"}]},"d0e00955-78":{"id":"/src/inputs/CreditCardInput/CreditCardNumberInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardNumberInput.js":"d0e00955-79"},"imported":[{"uid":"d0e00955-98"},{"uid":"d0e00955-117"},{"uid":"d0e00955-100"},{"uid":"d0e00955-118"},{"uid":"d0e00955-101"},{"uid":"d0e00955-18"}],"importedBy":[{"uid":"d0e00955-64"}]},"d0e00955-80":{"id":"/home/artemis/Github/thr-addons/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"d0e00955-81"},"imported":[],"importedBy":[{"uid":"d0e00955-72"},{"uid":"d0e00955-76"}]},"d0e00955-82":{"id":"/src/date/LocalDatePicker/index.ts","moduleParts":{},"imported":[{"uid":"d0e00955-12"}],"importedBy":[{"uid":"d0e00955-0"},{"uid":"d0e00955-50"}]},"d0e00955-83":{"id":"/src/date/LocalMonthSelect/index.ts","moduleParts":{},"imported":[{"uid":"d0e00955-10"}],"importedBy":[{"uid":"d0e00955-0"}]},"d0e00955-84":{"id":"/src/date/LocalTimePicker/index.ts","moduleParts":{},"imported":[{"uid":"d0e00955-14"}],"importedBy":[{"uid":"d0e00955-0"},{"uid":"d0e00955-52"}]},"d0e00955-85":{"id":"/src/date/MonthDayPicker/index.ts","moduleParts":{},"imported":[{"uid":"d0e00955-28"}],"importedBy":[{"uid":"d0e00955-0"}]},"d0e00955-86":{"id":"/src/date/MonthYearPicker/index.ts","moduleParts":{},"imported":[{"uid":"d0e00955-20"}],"importedBy":[{"uid":"d0e00955-0"},{"uid":"d0e00955-64"}]},"d0e00955-87":{"id":"/src/date/YearSelect/index.ts","moduleParts":{},"imported":[{"uid":"d0e00955-16"}],"importedBy":[{"uid":"d0e00955-0"}]},"d0e00955-88":{"id":"/src/form/TForm/index.ts","moduleParts":{},"imported":[{"uid":"d0e00955-22"},{"uid":"d0e00955-24"}],"importedBy":[{"uid":"d0e00955-0"}]},"d0e00955-89":{"id":"/src/inputs/MaskedInput/index.ts","moduleParts":{},"imported":[{"uid":"d0e00955-34"},{"uid":"d0e00955-18"}],"importedBy":[{"uid":"d0e00955-0"},{"uid":"d0e00955-26"},{"uid":"d0e00955-74"}]},"d0e00955-90":{"id":"/src/inputs/RadioGroup/index.ts","moduleParts":{},"imported":[{"uid":"d0e00955-36"}],"importedBy":[{"uid":"d0e00955-0"}]},"d0e00955-91":{"id":"/src/inputs/PhoneInput/index.ts","moduleParts":{},"imported":[{"uid":"d0e00955-26"}],"importedBy":[{"uid":"d0e00955-0"}]},"d0e00955-92":{"id":"/src/inputs/CreditCardInput/index.ts","moduleParts":{},"imported":[{"uid":"d0e00955-64"}],"importedBy":[{"uid":"d0e00955-0"}]},"d0e00955-93":{"id":"/src/inputs/SinInput/index.ts","moduleParts":{},"imported":[{"uid":"d0e00955-32"}],"importedBy":[{"uid":"d0e00955-0"}]},"d0e00955-94":{"id":"/src/inputs/TableInput/index.ts","moduleParts":{},"imported":[{"uid":"d0e00955-40"},{"uid":"d0e00955-42"},{"uid":"d0e00955-44"},{"uid":"d0e00955-46"},{"uid":"d0e00955-48"},{"uid":"d0e00955-50"},{"uid":"d0e00955-52"},{"uid":"d0e00955-54"},{"uid":"d0e00955-56"},{"uid":"d0e00955-58"},{"uid":"d0e00955-60"},{"uid":"d0e00955-62"},{"uid":"d0e00955-38"}],"importedBy":[{"uid":"d0e00955-0"}]},"d0e00955-95":{"id":"/src/money/MoneyInput/index.ts","moduleParts":{},"imported":[{"uid":"d0e00955-66"}],"importedBy":[{"uid":"d0e00955-0"},{"uid":"d0e00955-44"}]},"d0e00955-96":{"id":"/src/money/MoneyCurrencyInput/index.ts","moduleParts":{},"imported":[{"uid":"d0e00955-30"}],"importedBy":[{"uid":"d0e00955-0"}]},"d0e00955-97":{"id":"/src/step/index.ts","moduleParts":{},"imported":[{"uid":"d0e00955-4"},{"uid":"d0e00955-2"},{"uid":"d0e00955-6"},{"uid":"d0e00955-8"}],"importedBy":[{"uid":"d0e00955-0"}]},"d0e00955-98":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-12"},{"uid":"d0e00955-10"},{"uid":"d0e00955-14"},{"uid":"d0e00955-28"},{"uid":"d0e00955-20"},{"uid":"d0e00955-16"},{"uid":"d0e00955-22"},{"uid":"d0e00955-24"},{"uid":"d0e00955-34"},{"uid":"d0e00955-18"},{"uid":"d0e00955-36"},{"uid":"d0e00955-26"},{"uid":"d0e00955-64"},{"uid":"d0e00955-32"},{"uid":"d0e00955-40"},{"uid":"d0e00955-42"},{"uid":"d0e00955-44"},{"uid":"d0e00955-46"},{"uid":"d0e00955-48"},{"uid":"d0e00955-50"},{"uid":"d0e00955-52"},{"uid":"d0e00955-54"},{"uid":"d0e00955-56"},{"uid":"d0e00955-58"},{"uid":"d0e00955-60"},{"uid":"d0e00955-62"},{"uid":"d0e00955-66"},{"uid":"d0e00955-30"},{"uid":"d0e00955-4"},{"uid":"d0e00955-2"},{"uid":"d0e00955-6"},{"uid":"d0e00955-8"},{"uid":"d0e00955-74"},{"uid":"d0e00955-78"},{"uid":"d0e00955-70"},{"uid":"d0e00955-68"}],"isExternal":true},"d0e00955-99":{"id":"@thx/date","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-12"},{"uid":"d0e00955-14"},{"uid":"d0e00955-28"},{"uid":"d0e00955-20"},{"uid":"d0e00955-64"},{"uid":"d0e00955-46"}],"isExternal":true},"d0e00955-100":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-12"},{"uid":"d0e00955-10"},{"uid":"d0e00955-28"},{"uid":"d0e00955-20"},{"uid":"d0e00955-16"},{"uid":"d0e00955-22"},{"uid":"d0e00955-34"},{"uid":"d0e00955-18"},{"uid":"d0e00955-36"},{"uid":"d0e00955-26"},{"uid":"d0e00955-64"},{"uid":"d0e00955-32"},{"uid":"d0e00955-40"},{"uid":"d0e00955-44"},{"uid":"d0e00955-48"},{"uid":"d0e00955-50"},{"uid":"d0e00955-52"},{"uid":"d0e00955-56"},{"uid":"d0e00955-58"},{"uid":"d0e00955-62"},{"uid":"d0e00955-66"},{"uid":"d0e00955-30"},{"uid":"d0e00955-4"},{"uid":"d0e00955-6"},{"uid":"d0e00955-8"},{"uid":"d0e00955-74"},{"uid":"d0e00955-78"},{"uid":"d0e00955-70"}],"isExternal":true},"d0e00955-101":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-12"},{"uid":"d0e00955-10"},{"uid":"d0e00955-28"},{"uid":"d0e00955-20"},{"uid":"d0e00955-16"},{"uid":"d0e00955-24"},{"uid":"d0e00955-36"},{"uid":"d0e00955-26"},{"uid":"d0e00955-64"},{"uid":"d0e00955-32"},{"uid":"d0e00955-40"},{"uid":"d0e00955-48"},{"uid":"d0e00955-56"},{"uid":"d0e00955-58"},{"uid":"d0e00955-60"},{"uid":"d0e00955-66"},{"uid":"d0e00955-30"},{"uid":"d0e00955-8"},{"uid":"d0e00955-78"}],"isExternal":true},"d0e00955-102":{"id":"/src/date/DatePicker/index.ts","moduleParts":{},"imported":[{"uid":"d0e00955-104"},{"uid":"d0e00955-72"}],"importedBy":[{"uid":"d0e00955-12"},{"uid":"d0e00955-28"},{"uid":"d0e00955-20"}]},"d0e00955-103":{"id":"@js-joda/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-10"},{"uid":"d0e00955-14"},{"uid":"d0e00955-20"}],"isExternal":true},"d0e00955-104":{"id":"react-datepicker","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-14"},{"uid":"d0e00955-102"}],"isExternal":true},"d0e00955-105":{"id":"formik","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-22"},{"uid":"d0e00955-24"},{"uid":"d0e00955-40"}],"isExternal":true},"d0e00955-106":{"id":"flat","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-24"}],"isExternal":true},"d0e00955-107":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-24"}],"isExternal":true},"d0e00955-108":{"id":"inputmask","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-18"},{"uid":"d0e00955-70"}],"isExternal":true},"d0e00955-109":{"id":"use-deep-compare-effect","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-18"}],"isExternal":true},"d0e00955-110":{"id":"react-credit-cards","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-64"}],"isExternal":true},"d0e00955-111":{"id":"react-credit-cards/es/styles-compiled.css","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-64"}],"isExternal":true},"d0e00955-112":{"id":"social-insurance-number","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-32"}],"isExternal":true},"d0e00955-113":{"id":"react-table","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-40"}],"isExternal":true},"d0e00955-114":{"id":"@thx/money","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-42"},{"uid":"d0e00955-54"},{"uid":"d0e00955-66"},{"uid":"d0e00955-30"},{"uid":"d0e00955-70"}],"isExternal":true},"d0e00955-115":{"id":"js-money","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-66"},{"uid":"d0e00955-30"},{"uid":"d0e00955-70"}],"isExternal":true},"d0e00955-116":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-8"}],"isExternal":true},"d0e00955-117":{"id":"credit-card-type","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-78"}],"isExternal":true},"d0e00955-118":{"id":"luhn","moduleParts":{},"imported":[],"importedBy":[{"uid":"d0e00955-78"}],"isExternal":true}},"env":{"rollup":"2.79.2"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4932
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"058214a3-1"}]},{"name":"step/useStep.js","children":[{"name":"src/step/useStep.ts","uid":"058214a3-3"}]},{"name":"step/Step.js","children":[{"name":"src/step/Step.tsx","uid":"058214a3-5"}]},{"name":"step/StepProvider.js","children":[{"name":"src/step/StepProvider.tsx","uid":"058214a3-7"}]},{"name":"step/FormStep.js","children":[{"name":"src/step/FormStep.tsx","uid":"058214a3-9"}]},{"name":"date/MonthYearPicker/MonthYearPicker.js","children":[{"name":"src/date/MonthYearPicker/MonthYearPicker.tsx","uid":"058214a3-11"}]},{"name":"date/LocalTimePicker/LocalTimePicker.js","children":[{"name":"src/date/LocalTimePicker/LocalTimePicker.tsx","uid":"058214a3-13"}]},{"name":"inputs/CreditCardInput/CreditCardInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardInput.tsx","uid":"058214a3-15"}]},{"name":"date/LocalDatePicker/LocalDatePicker.js","children":[{"name":"src/date/LocalDatePicker/LocalDatePicker.tsx","uid":"058214a3-17"}]},{"name":"money/MoneyInput/MoneyInput.js","children":[{"name":"src/money/MoneyInput/MoneyInput.tsx","uid":"058214a3-19"}]},{"name":"date/MonthDayPicker/MonthDayPicker.js","children":[{"name":"src/date/MonthDayPicker/MonthDayPicker.tsx","uid":"058214a3-21"}]},{"name":"date/LocalMonthSelect/LocalMonthSelect.js","children":[{"name":"src/date/LocalMonthSelect/LocalMonthSelect.tsx","uid":"058214a3-23"}]},{"name":"date/YearSelect/YearSelect.js","children":[{"name":"src/date/YearSelect/YearSelect.tsx","uid":"058214a3-25"}]},{"name":"inputs/MaskedInput/useMaskedInput.js","children":[{"name":"src/inputs/MaskedInput/useMaskedInput.ts","uid":"058214a3-27"}]},{"name":"inputs/TableInput/addRowOnTab.js","children":[{"name":"src/inputs/TableInput/addRowOnTab.ts","uid":"058214a3-29"}]},{"name":"inputs/PhoneInput/PhoneInput.js","children":[{"name":"src/inputs/PhoneInput/PhoneInput.tsx","uid":"058214a3-31"}]},{"name":"inputs/MaskedInput/MaskedInput.js","children":[{"name":"src/inputs/MaskedInput/MaskedInput.tsx","uid":"058214a3-33"}]},{"name":"form/TForm/TForm.js","children":[{"name":"src/form/TForm/TForm.tsx","uid":"058214a3-35"}]},{"name":"money/MoneyCurrencyInput/MoneyCurrencyInput.js","children":[{"name":"src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","uid":"058214a3-37"}]},{"name":"form/TForm/useTForm.js","children":[{"name":"src/form/TForm/useTForm.tsx","uid":"058214a3-39"}]},{"name":"inputs/TableInput/MoneyCell.js","children":[{"name":"src/inputs/TableInput/MoneyCell.tsx","uid":"058214a3-41"}]},{"name":"inputs/TableInput/TableInput.js","children":[{"name":"src/inputs/TableInput/TableInput.tsx","uid":"058214a3-43"}]},{"name":"inputs/TableInput/LocalDateCell.js","children":[{"name":"src/inputs/TableInput/LocalDateCell.tsx","uid":"058214a3-45"}]},{"name":"inputs/TableInput/MoneyEditCell.js","children":[{"name":"src/inputs/TableInput/MoneyEditCell.tsx","uid":"058214a3-47"}]},{"name":"inputs/TableInput/CheckboxEditCell.js","children":[{"name":"src/inputs/TableInput/CheckboxEditCell.tsx","uid":"058214a3-49"}]},{"name":"inputs/TableInput/LocalTimeEditCell.js","children":[{"name":"src/inputs/TableInput/LocalTimeEditCell.tsx","uid":"058214a3-51"}]},{"name":"inputs/TableInput/LocalDateEditCell.js","children":[{"name":"src/inputs/TableInput/LocalDateEditCell.tsx","uid":"058214a3-53"}]},{"name":"inputs/TableInput/MoneySumFooter.js","children":[{"name":"src/inputs/TableInput/MoneySumFooter.tsx","uid":"058214a3-55"}]},{"name":"inputs/TableInput/StringEditCell.js","children":[{"name":"src/inputs/TableInput/StringEditCell.tsx","uid":"058214a3-57"}]},{"name":"inputs/TableInput/NumberEditCell.js","children":[{"name":"src/inputs/TableInput/NumberEditCell.tsx","uid":"058214a3-59"}]},{"name":"inputs/TableInput/HoverCell.js","children":[{"name":"src/inputs/TableInput/HoverCell.tsx","uid":"058214a3-61"}]},{"name":"inputs/TableInput/DropdownCell.js","children":[{"name":"src/inputs/TableInput/DropdownCell.tsx","uid":"058214a3-63"}]},{"name":"inputs/RadioGroup/RadioGroup.js","children":[{"name":"src/inputs/RadioGroup/RadioGroup.tsx","uid":"058214a3-65"}]},{"name":"inputs/SinInput/SinInput.js","children":[{"name":"src/inputs/SinInput/SinInput.tsx","uid":"058214a3-67"}]},{"name":"step/stepContext.js","children":[{"name":"src/step/stepContext.ts","uid":"058214a3-69"}]},{"name":"money/useMoneyInput.js","children":[{"name":"src/money/useMoneyInput.ts","uid":"058214a3-71"}]},{"name":"inputs/CreditCardInput/styles.css.js","children":[{"name":"src/inputs/CreditCardInput/styles.css","uid":"058214a3-73"}]},{"name":"date/DatePicker/styles.css.js","children":[{"name":"src/date/DatePicker/styles.css","uid":"058214a3-75"}]},{"name":"inputs/CreditCardInput/CreditCardNumberInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardNumberInput.tsx","uid":"058214a3-77"}]},{"name":"date/LocalDatePicker/MaskedDateInput.js","children":[{"name":"src/date/LocalDatePicker/MaskedDateInput.tsx","uid":"058214a3-79"}]},{"name":"external/style-inject/dist/style-inject.es.js","children":[{"name":"home/artemis/Github/thr-addons/node_modules/style-inject/dist/style-inject.es.js","uid":"058214a3-81"}]}],"isRoot":true},"nodeParts":{"058214a3-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"058214a3-0"},"058214a3-3":{"renderedLength":113,"gzipLength":107,"brotliLength":82,"metaUid":"058214a3-2"},"058214a3-5":{"renderedLength":203,"gzipLength":155,"brotliLength":111,"metaUid":"058214a3-4"},"058214a3-7":{"renderedLength":3529,"gzipLength":1015,"brotliLength":861,"metaUid":"058214a3-6"},"058214a3-9":{"renderedLength":440,"gzipLength":270,"brotliLength":214,"metaUid":"058214a3-8"},"058214a3-11":{"renderedLength":1229,"gzipLength":496,"brotliLength":424,"metaUid":"058214a3-10"},"058214a3-13":{"renderedLength":4196,"gzipLength":1261,"brotliLength":1126,"metaUid":"058214a3-12"},"058214a3-15":{"renderedLength":2324,"gzipLength":584,"brotliLength":495,"metaUid":"058214a3-14"},"058214a3-17":{"renderedLength":3161,"gzipLength":952,"brotliLength":853,"metaUid":"058214a3-16"},"058214a3-19":{"renderedLength":802,"gzipLength":399,"brotliLength":317,"metaUid":"058214a3-18"},"058214a3-21":{"renderedLength":1965,"gzipLength":655,"brotliLength":544,"metaUid":"058214a3-20"},"058214a3-23":{"renderedLength":1135,"gzipLength":505,"brotliLength":415,"metaUid":"058214a3-22"},"058214a3-25":{"renderedLength":1553,"gzipLength":579,"brotliLength":461,"metaUid":"058214a3-24"},"058214a3-27":{"renderedLength":1487,"gzipLength":501,"brotliLength":423,"metaUid":"058214a3-26"},"058214a3-29":{"renderedLength":312,"gzipLength":199,"brotliLength":173,"metaUid":"058214a3-28"},"058214a3-31":{"renderedLength":908,"gzipLength":382,"brotliLength":319,"metaUid":"058214a3-30"},"058214a3-33":{"renderedLength":543,"gzipLength":305,"brotliLength":252,"metaUid":"058214a3-32"},"058214a3-35":{"renderedLength":600,"gzipLength":308,"brotliLength":267,"metaUid":"058214a3-34"},"058214a3-37":{"renderedLength":1621,"gzipLength":646,"brotliLength":553,"metaUid":"058214a3-36"},"058214a3-39":{"renderedLength":2950,"gzipLength":958,"brotliLength":830,"metaUid":"058214a3-38"},"058214a3-41":{"renderedLength":257,"gzipLength":185,"brotliLength":149,"metaUid":"058214a3-40"},"058214a3-43":{"renderedLength":2891,"gzipLength":854,"brotliLength":780,"metaUid":"058214a3-42"},"058214a3-45":{"renderedLength":285,"gzipLength":198,"brotliLength":170,"metaUid":"058214a3-44"},"058214a3-47":{"renderedLength":820,"gzipLength":397,"brotliLength":349,"metaUid":"058214a3-46"},"058214a3-49":{"renderedLength":702,"gzipLength":369,"brotliLength":330,"metaUid":"058214a3-48"},"058214a3-51":{"renderedLength":622,"gzipLength":322,"brotliLength":269,"metaUid":"058214a3-50"},"058214a3-53":{"renderedLength":695,"gzipLength":349,"brotliLength":295,"metaUid":"058214a3-52"},"058214a3-55":{"renderedLength":414,"gzipLength":259,"brotliLength":219,"metaUid":"058214a3-54"},"058214a3-57":{"renderedLength":717,"gzipLength":372,"brotliLength":319,"metaUid":"058214a3-56"},"058214a3-59":{"renderedLength":782,"gzipLength":409,"brotliLength":345,"metaUid":"058214a3-58"},"058214a3-61":{"renderedLength":403,"gzipLength":244,"brotliLength":195,"metaUid":"058214a3-60"},"058214a3-63":{"renderedLength":483,"gzipLength":251,"brotliLength":208,"metaUid":"058214a3-62"},"058214a3-65":{"renderedLength":692,"gzipLength":342,"brotliLength":289,"metaUid":"058214a3-64"},"058214a3-67":{"renderedLength":1166,"gzipLength":540,"brotliLength":469,"metaUid":"058214a3-66"},"058214a3-69":{"renderedLength":80,"gzipLength":92,"brotliLength":72,"metaUid":"058214a3-68"},"058214a3-71":{"renderedLength":2215,"gzipLength":773,"brotliLength":675,"metaUid":"058214a3-70"},"058214a3-73":{"renderedLength":78,"gzipLength":92,"brotliLength":79,"metaUid":"058214a3-72"},"058214a3-75":{"renderedLength":538,"gzipLength":261,"brotliLength":211,"metaUid":"058214a3-74"},"058214a3-77":{"renderedLength":1733,"gzipLength":697,"brotliLength":623,"metaUid":"058214a3-76"},"058214a3-79":{"renderedLength":426,"gzipLength":286,"brotliLength":244,"metaUid":"058214a3-78"},"058214a3-81":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"metaUid":"058214a3-80"}},"nodeMetas":{"058214a3-0":{"id":"/src/index.ts","moduleParts":{"index.js":"058214a3-1"},"imported":[{"uid":"058214a3-82"},{"uid":"058214a3-83"},{"uid":"058214a3-84"},{"uid":"058214a3-85"},{"uid":"058214a3-86"},{"uid":"058214a3-87"},{"uid":"058214a3-88"},{"uid":"058214a3-89"},{"uid":"058214a3-90"},{"uid":"058214a3-91"},{"uid":"058214a3-92"},{"uid":"058214a3-93"},{"uid":"058214a3-94"},{"uid":"058214a3-95"},{"uid":"058214a3-96"},{"uid":"058214a3-97"}],"importedBy":[],"isEntry":true},"058214a3-2":{"id":"/src/step/useStep.ts","moduleParts":{"step/useStep.js":"058214a3-3"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-68"}],"importedBy":[{"uid":"058214a3-97"},{"uid":"058214a3-8"}]},"058214a3-4":{"id":"/src/step/Step.tsx","moduleParts":{"step/Step.js":"058214a3-5"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"}],"importedBy":[{"uid":"058214a3-97"},{"uid":"058214a3-6"}]},"058214a3-6":{"id":"/src/step/StepProvider.tsx","moduleParts":{"step/StepProvider.js":"058214a3-7"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"},{"uid":"058214a3-116"},{"uid":"058214a3-101"},{"uid":"058214a3-8"},{"uid":"058214a3-4"},{"uid":"058214a3-68"}],"importedBy":[{"uid":"058214a3-97"}]},"058214a3-8":{"id":"/src/step/FormStep.tsx","moduleParts":{"step/FormStep.js":"058214a3-9"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"},{"uid":"058214a3-2"}],"importedBy":[{"uid":"058214a3-97"},{"uid":"058214a3-6"}]},"058214a3-10":{"id":"/src/date/MonthYearPicker/MonthYearPicker.tsx","moduleParts":{"date/MonthYearPicker/MonthYearPicker.js":"058214a3-11"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-103"},{"uid":"058214a3-99"},{"uid":"058214a3-100"},{"uid":"058214a3-101"},{"uid":"058214a3-102"}],"importedBy":[{"uid":"058214a3-86"}]},"058214a3-12":{"id":"/src/date/LocalTimePicker/LocalTimePicker.tsx","moduleParts":{"date/LocalTimePicker/LocalTimePicker.js":"058214a3-13"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-103"},{"uid":"058214a3-99"},{"uid":"058214a3-100"},{"uid":"058214a3-104"}],"importedBy":[{"uid":"058214a3-84"}]},"058214a3-14":{"id":"/src/inputs/CreditCardInput/CreditCardInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardInput.js":"058214a3-15"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-99"},{"uid":"058214a3-100"},{"uid":"058214a3-110"},{"uid":"058214a3-111"},{"uid":"058214a3-101"},{"uid":"058214a3-86"},{"uid":"058214a3-76"},{"uid":"058214a3-72"}],"importedBy":[{"uid":"058214a3-92"}]},"058214a3-16":{"id":"/src/date/LocalDatePicker/LocalDatePicker.tsx","moduleParts":{"date/LocalDatePicker/LocalDatePicker.js":"058214a3-17"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-99"},{"uid":"058214a3-100"},{"uid":"058214a3-101"},{"uid":"058214a3-102"},{"uid":"058214a3-74"},{"uid":"058214a3-78"}],"importedBy":[{"uid":"058214a3-82"}]},"058214a3-18":{"id":"/src/money/MoneyInput/MoneyInput.tsx","moduleParts":{"money/MoneyInput/MoneyInput.js":"058214a3-19"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-114"},{"uid":"058214a3-100"},{"uid":"058214a3-115"},{"uid":"058214a3-101"},{"uid":"058214a3-70"}],"importedBy":[{"uid":"058214a3-95"}]},"058214a3-20":{"id":"/src/date/MonthDayPicker/MonthDayPicker.tsx","moduleParts":{"date/MonthDayPicker/MonthDayPicker.js":"058214a3-21"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-99"},{"uid":"058214a3-100"},{"uid":"058214a3-101"},{"uid":"058214a3-102"}],"importedBy":[{"uid":"058214a3-85"}]},"058214a3-22":{"id":"/src/date/LocalMonthSelect/LocalMonthSelect.tsx","moduleParts":{"date/LocalMonthSelect/LocalMonthSelect.js":"058214a3-23"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-103"},{"uid":"058214a3-100"},{"uid":"058214a3-101"}],"importedBy":[{"uid":"058214a3-83"}]},"058214a3-24":{"id":"/src/date/YearSelect/YearSelect.tsx","moduleParts":{"date/YearSelect/YearSelect.js":"058214a3-25"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"},{"uid":"058214a3-101"}],"importedBy":[{"uid":"058214a3-87"}]},"058214a3-26":{"id":"/src/inputs/MaskedInput/useMaskedInput.ts","moduleParts":{"inputs/MaskedInput/useMaskedInput.js":"058214a3-27"},"imported":[{"uid":"058214a3-100"},{"uid":"058214a3-108"},{"uid":"058214a3-98"},{"uid":"058214a3-109"}],"importedBy":[{"uid":"058214a3-89"},{"uid":"058214a3-32"},{"uid":"058214a3-66"},{"uid":"058214a3-76"}]},"058214a3-28":{"id":"/src/inputs/TableInput/addRowOnTab.ts","moduleParts":{"inputs/TableInput/addRowOnTab.js":"058214a3-29"},"imported":[],"importedBy":[{"uid":"058214a3-94"},{"uid":"058214a3-46"},{"uid":"058214a3-48"},{"uid":"058214a3-58"},{"uid":"058214a3-56"}]},"058214a3-30":{"id":"/src/inputs/PhoneInput/PhoneInput.tsx","moduleParts":{"inputs/PhoneInput/PhoneInput.js":"058214a3-31"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"},{"uid":"058214a3-101"},{"uid":"058214a3-89"}],"importedBy":[{"uid":"058214a3-91"}]},"058214a3-32":{"id":"/src/inputs/MaskedInput/MaskedInput.tsx","moduleParts":{"inputs/MaskedInput/MaskedInput.js":"058214a3-33"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"},{"uid":"058214a3-26"}],"importedBy":[{"uid":"058214a3-89"}]},"058214a3-34":{"id":"/src/form/TForm/TForm.tsx","moduleParts":{"form/TForm/TForm.js":"058214a3-35"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"},{"uid":"058214a3-105"},{"uid":"058214a3-38"}],"importedBy":[{"uid":"058214a3-88"}]},"058214a3-36":{"id":"/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","moduleParts":{"money/MoneyCurrencyInput/MoneyCurrencyInput.js":"058214a3-37"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-114"},{"uid":"058214a3-100"},{"uid":"058214a3-115"},{"uid":"058214a3-101"},{"uid":"058214a3-70"}],"importedBy":[{"uid":"058214a3-96"}]},"058214a3-38":{"id":"/src/form/TForm/useTForm.tsx","moduleParts":{"form/TForm/useTForm.js":"058214a3-39"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-106"},{"uid":"058214a3-105"},{"uid":"058214a3-107"},{"uid":"058214a3-101"}],"importedBy":[{"uid":"058214a3-88"},{"uid":"058214a3-34"}]},"058214a3-40":{"id":"/src/inputs/TableInput/MoneyCell.tsx","moduleParts":{"inputs/TableInput/MoneyCell.js":"058214a3-41"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-114"}],"importedBy":[{"uid":"058214a3-94"}]},"058214a3-42":{"id":"/src/inputs/TableInput/TableInput.tsx","moduleParts":{"inputs/TableInput/TableInput.js":"058214a3-43"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"},{"uid":"058214a3-105"},{"uid":"058214a3-113"},{"uid":"058214a3-101"}],"importedBy":[{"uid":"058214a3-94"}]},"058214a3-44":{"id":"/src/inputs/TableInput/LocalDateCell.tsx","moduleParts":{"inputs/TableInput/LocalDateCell.js":"058214a3-45"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-99"}],"importedBy":[{"uid":"058214a3-94"}]},"058214a3-46":{"id":"/src/inputs/TableInput/MoneyEditCell.tsx","moduleParts":{"inputs/TableInput/MoneyEditCell.js":"058214a3-47"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"},{"uid":"058214a3-95"},{"uid":"058214a3-28"}],"importedBy":[{"uid":"058214a3-94"}]},"058214a3-48":{"id":"/src/inputs/TableInput/CheckboxEditCell.tsx","moduleParts":{"inputs/TableInput/CheckboxEditCell.js":"058214a3-49"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"},{"uid":"058214a3-101"},{"uid":"058214a3-28"}],"importedBy":[{"uid":"058214a3-94"}]},"058214a3-50":{"id":"/src/inputs/TableInput/LocalTimeEditCell.tsx","moduleParts":{"inputs/TableInput/LocalTimeEditCell.js":"058214a3-51"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"},{"uid":"058214a3-84"}],"importedBy":[{"uid":"058214a3-94"}]},"058214a3-52":{"id":"/src/inputs/TableInput/LocalDateEditCell.tsx","moduleParts":{"inputs/TableInput/LocalDateEditCell.js":"058214a3-53"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"},{"uid":"058214a3-82"}],"importedBy":[{"uid":"058214a3-94"}]},"058214a3-54":{"id":"/src/inputs/TableInput/MoneySumFooter.tsx","moduleParts":{"inputs/TableInput/MoneySumFooter.js":"058214a3-55"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-114"}],"importedBy":[{"uid":"058214a3-94"}]},"058214a3-56":{"id":"/src/inputs/TableInput/StringEditCell.tsx","moduleParts":{"inputs/TableInput/StringEditCell.js":"058214a3-57"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"},{"uid":"058214a3-101"},{"uid":"058214a3-28"}],"importedBy":[{"uid":"058214a3-94"}]},"058214a3-58":{"id":"/src/inputs/TableInput/NumberEditCell.tsx","moduleParts":{"inputs/TableInput/NumberEditCell.js":"058214a3-59"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"},{"uid":"058214a3-101"},{"uid":"058214a3-28"}],"importedBy":[{"uid":"058214a3-94"}]},"058214a3-60":{"id":"/src/inputs/TableInput/HoverCell.tsx","moduleParts":{"inputs/TableInput/HoverCell.js":"058214a3-61"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"}],"importedBy":[{"uid":"058214a3-94"}]},"058214a3-62":{"id":"/src/inputs/TableInput/DropdownCell.tsx","moduleParts":{"inputs/TableInput/DropdownCell.js":"058214a3-63"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-101"}],"importedBy":[{"uid":"058214a3-94"}]},"058214a3-64":{"id":"/src/inputs/RadioGroup/RadioGroup.tsx","moduleParts":{"inputs/RadioGroup/RadioGroup.js":"058214a3-65"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"},{"uid":"058214a3-101"}],"importedBy":[{"uid":"058214a3-90"}]},"058214a3-66":{"id":"/src/inputs/SinInput/SinInput.tsx","moduleParts":{"inputs/SinInput/SinInput.js":"058214a3-67"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"},{"uid":"058214a3-101"},{"uid":"058214a3-112"},{"uid":"058214a3-26"}],"importedBy":[{"uid":"058214a3-93"}]},"058214a3-68":{"id":"/src/step/stepContext.ts","moduleParts":{"step/stepContext.js":"058214a3-69"},"imported":[{"uid":"058214a3-98"}],"importedBy":[{"uid":"058214a3-2"},{"uid":"058214a3-6"}]},"058214a3-70":{"id":"/src/money/useMoneyInput.ts","moduleParts":{"money/useMoneyInput.js":"058214a3-71"},"imported":[{"uid":"058214a3-114"},{"uid":"058214a3-100"},{"uid":"058214a3-108"},{"uid":"058214a3-115"},{"uid":"058214a3-98"}],"importedBy":[{"uid":"058214a3-18"},{"uid":"058214a3-36"}]},"058214a3-72":{"id":"/src/inputs/CreditCardInput/styles.css","moduleParts":{"inputs/CreditCardInput/styles.css.js":"058214a3-73"},"imported":[{"uid":"058214a3-80"}],"importedBy":[{"uid":"058214a3-14"}]},"058214a3-74":{"id":"/src/date/DatePicker/styles.css","moduleParts":{"date/DatePicker/styles.css.js":"058214a3-75"},"imported":[{"uid":"058214a3-80"}],"importedBy":[{"uid":"058214a3-16"},{"uid":"058214a3-102"}]},"058214a3-76":{"id":"/src/inputs/CreditCardInput/CreditCardNumberInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardNumberInput.js":"058214a3-77"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-117"},{"uid":"058214a3-100"},{"uid":"058214a3-118"},{"uid":"058214a3-101"},{"uid":"058214a3-26"}],"importedBy":[{"uid":"058214a3-14"}]},"058214a3-78":{"id":"/src/date/LocalDatePicker/MaskedDateInput.tsx","moduleParts":{"date/LocalDatePicker/MaskedDateInput.js":"058214a3-79"},"imported":[{"uid":"058214a3-98"},{"uid":"058214a3-100"},{"uid":"058214a3-89"}],"importedBy":[{"uid":"058214a3-16"}]},"058214a3-80":{"id":"/home/artemis/Github/thr-addons/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"058214a3-81"},"imported":[],"importedBy":[{"uid":"058214a3-74"},{"uid":"058214a3-72"}]},"058214a3-82":{"id":"/src/date/LocalDatePicker/index.ts","moduleParts":{},"imported":[{"uid":"058214a3-16"}],"importedBy":[{"uid":"058214a3-0"},{"uid":"058214a3-52"}]},"058214a3-83":{"id":"/src/date/LocalMonthSelect/index.ts","moduleParts":{},"imported":[{"uid":"058214a3-22"}],"importedBy":[{"uid":"058214a3-0"}]},"058214a3-84":{"id":"/src/date/LocalTimePicker/index.ts","moduleParts":{},"imported":[{"uid":"058214a3-12"}],"importedBy":[{"uid":"058214a3-0"},{"uid":"058214a3-50"}]},"058214a3-85":{"id":"/src/date/MonthDayPicker/index.ts","moduleParts":{},"imported":[{"uid":"058214a3-20"}],"importedBy":[{"uid":"058214a3-0"}]},"058214a3-86":{"id":"/src/date/MonthYearPicker/index.ts","moduleParts":{},"imported":[{"uid":"058214a3-10"}],"importedBy":[{"uid":"058214a3-0"},{"uid":"058214a3-14"}]},"058214a3-87":{"id":"/src/date/YearSelect/index.ts","moduleParts":{},"imported":[{"uid":"058214a3-24"}],"importedBy":[{"uid":"058214a3-0"}]},"058214a3-88":{"id":"/src/form/TForm/index.ts","moduleParts":{},"imported":[{"uid":"058214a3-34"},{"uid":"058214a3-38"}],"importedBy":[{"uid":"058214a3-0"}]},"058214a3-89":{"id":"/src/inputs/MaskedInput/index.ts","moduleParts":{},"imported":[{"uid":"058214a3-32"},{"uid":"058214a3-26"}],"importedBy":[{"uid":"058214a3-0"},{"uid":"058214a3-30"},{"uid":"058214a3-78"}]},"058214a3-90":{"id":"/src/inputs/RadioGroup/index.ts","moduleParts":{},"imported":[{"uid":"058214a3-64"}],"importedBy":[{"uid":"058214a3-0"}]},"058214a3-91":{"id":"/src/inputs/PhoneInput/index.ts","moduleParts":{},"imported":[{"uid":"058214a3-30"}],"importedBy":[{"uid":"058214a3-0"}]},"058214a3-92":{"id":"/src/inputs/CreditCardInput/index.ts","moduleParts":{},"imported":[{"uid":"058214a3-14"}],"importedBy":[{"uid":"058214a3-0"}]},"058214a3-93":{"id":"/src/inputs/SinInput/index.ts","moduleParts":{},"imported":[{"uid":"058214a3-66"}],"importedBy":[{"uid":"058214a3-0"}]},"058214a3-94":{"id":"/src/inputs/TableInput/index.ts","moduleParts":{},"imported":[{"uid":"058214a3-42"},{"uid":"058214a3-40"},{"uid":"058214a3-46"},{"uid":"058214a3-44"},{"uid":"058214a3-48"},{"uid":"058214a3-52"},{"uid":"058214a3-50"},{"uid":"058214a3-54"},{"uid":"058214a3-58"},{"uid":"058214a3-56"},{"uid":"058214a3-62"},{"uid":"058214a3-60"},{"uid":"058214a3-28"}],"importedBy":[{"uid":"058214a3-0"}]},"058214a3-95":{"id":"/src/money/MoneyInput/index.ts","moduleParts":{},"imported":[{"uid":"058214a3-18"}],"importedBy":[{"uid":"058214a3-0"},{"uid":"058214a3-46"}]},"058214a3-96":{"id":"/src/money/MoneyCurrencyInput/index.ts","moduleParts":{},"imported":[{"uid":"058214a3-36"}],"importedBy":[{"uid":"058214a3-0"}]},"058214a3-97":{"id":"/src/step/index.ts","moduleParts":{},"imported":[{"uid":"058214a3-4"},{"uid":"058214a3-2"},{"uid":"058214a3-8"},{"uid":"058214a3-6"}],"importedBy":[{"uid":"058214a3-0"}]},"058214a3-98":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-16"},{"uid":"058214a3-22"},{"uid":"058214a3-12"},{"uid":"058214a3-20"},{"uid":"058214a3-10"},{"uid":"058214a3-24"},{"uid":"058214a3-34"},{"uid":"058214a3-38"},{"uid":"058214a3-32"},{"uid":"058214a3-26"},{"uid":"058214a3-64"},{"uid":"058214a3-30"},{"uid":"058214a3-14"},{"uid":"058214a3-66"},{"uid":"058214a3-42"},{"uid":"058214a3-40"},{"uid":"058214a3-46"},{"uid":"058214a3-44"},{"uid":"058214a3-48"},{"uid":"058214a3-52"},{"uid":"058214a3-50"},{"uid":"058214a3-54"},{"uid":"058214a3-58"},{"uid":"058214a3-56"},{"uid":"058214a3-62"},{"uid":"058214a3-60"},{"uid":"058214a3-18"},{"uid":"058214a3-36"},{"uid":"058214a3-4"},{"uid":"058214a3-2"},{"uid":"058214a3-8"},{"uid":"058214a3-6"},{"uid":"058214a3-78"},{"uid":"058214a3-76"},{"uid":"058214a3-70"},{"uid":"058214a3-68"}],"isExternal":true},"058214a3-99":{"id":"@thx/date","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-16"},{"uid":"058214a3-12"},{"uid":"058214a3-20"},{"uid":"058214a3-10"},{"uid":"058214a3-14"},{"uid":"058214a3-44"}],"isExternal":true},"058214a3-100":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-16"},{"uid":"058214a3-22"},{"uid":"058214a3-12"},{"uid":"058214a3-20"},{"uid":"058214a3-10"},{"uid":"058214a3-24"},{"uid":"058214a3-34"},{"uid":"058214a3-32"},{"uid":"058214a3-26"},{"uid":"058214a3-64"},{"uid":"058214a3-30"},{"uid":"058214a3-14"},{"uid":"058214a3-66"},{"uid":"058214a3-42"},{"uid":"058214a3-46"},{"uid":"058214a3-48"},{"uid":"058214a3-52"},{"uid":"058214a3-50"},{"uid":"058214a3-58"},{"uid":"058214a3-56"},{"uid":"058214a3-60"},{"uid":"058214a3-18"},{"uid":"058214a3-36"},{"uid":"058214a3-4"},{"uid":"058214a3-8"},{"uid":"058214a3-6"},{"uid":"058214a3-78"},{"uid":"058214a3-76"},{"uid":"058214a3-70"}],"isExternal":true},"058214a3-101":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-16"},{"uid":"058214a3-22"},{"uid":"058214a3-20"},{"uid":"058214a3-10"},{"uid":"058214a3-24"},{"uid":"058214a3-38"},{"uid":"058214a3-64"},{"uid":"058214a3-30"},{"uid":"058214a3-14"},{"uid":"058214a3-66"},{"uid":"058214a3-42"},{"uid":"058214a3-48"},{"uid":"058214a3-58"},{"uid":"058214a3-56"},{"uid":"058214a3-62"},{"uid":"058214a3-18"},{"uid":"058214a3-36"},{"uid":"058214a3-6"},{"uid":"058214a3-76"}],"isExternal":true},"058214a3-102":{"id":"/src/date/DatePicker/index.ts","moduleParts":{},"imported":[{"uid":"058214a3-104"},{"uid":"058214a3-74"}],"importedBy":[{"uid":"058214a3-16"},{"uid":"058214a3-20"},{"uid":"058214a3-10"}]},"058214a3-103":{"id":"@js-joda/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-22"},{"uid":"058214a3-12"},{"uid":"058214a3-10"}],"isExternal":true},"058214a3-104":{"id":"react-datepicker","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-12"},{"uid":"058214a3-102"}],"isExternal":true},"058214a3-105":{"id":"formik","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-34"},{"uid":"058214a3-38"},{"uid":"058214a3-42"}],"isExternal":true},"058214a3-106":{"id":"flat","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-38"}],"isExternal":true},"058214a3-107":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-38"}],"isExternal":true},"058214a3-108":{"id":"inputmask","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-26"},{"uid":"058214a3-70"}],"isExternal":true},"058214a3-109":{"id":"use-deep-compare-effect","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-26"}],"isExternal":true},"058214a3-110":{"id":"react-credit-cards","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-14"}],"isExternal":true},"058214a3-111":{"id":"react-credit-cards/es/styles-compiled.css","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-14"}],"isExternal":true},"058214a3-112":{"id":"social-insurance-number","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-66"}],"isExternal":true},"058214a3-113":{"id":"react-table","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-42"}],"isExternal":true},"058214a3-114":{"id":"@thx/money","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-40"},{"uid":"058214a3-54"},{"uid":"058214a3-18"},{"uid":"058214a3-36"},{"uid":"058214a3-70"}],"isExternal":true},"058214a3-115":{"id":"js-money","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-18"},{"uid":"058214a3-36"},{"uid":"058214a3-70"}],"isExternal":true},"058214a3-116":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-6"}],"isExternal":true},"058214a3-117":{"id":"credit-card-type","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-76"}],"isExternal":true},"058214a3-118":{"id":"luhn","moduleParts":{},"imported":[],"importedBy":[{"uid":"058214a3-76"}],"isExternal":true}},"env":{"rollup":"2.79.2"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4933
4933
|
|
|
4934
4934
|
const run = () => {
|
|
4935
4935
|
const width = window.innerWidth;
|
package/dist/stats.txt
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
1
|
-----------------------------
|
|
2
2
|
Rollup File Analysis
|
|
3
3
|
-----------------------------
|
|
4
|
-
bundle size: 45.
|
|
5
|
-
original size:
|
|
6
|
-
code reduction:
|
|
4
|
+
bundle size: 45.706 KB
|
|
5
|
+
original size: 68.581 KB
|
|
6
|
+
code reduction: 33.35 %
|
|
7
7
|
module count: 41
|
|
8
8
|
|
|
9
9
|
/src/date/LocalTimePicker/LocalTimePicker.tsx
|
|
10
|
-
████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
10
|
+
████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9.18 % (4.196 KB)
|
|
11
11
|
/src/step/StepProvider.tsx
|
|
12
|
-
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.
|
|
12
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.72 % (3.529 KB)
|
|
13
13
|
/src/date/LocalDatePicker/LocalDatePicker.tsx
|
|
14
|
-
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.
|
|
14
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.92 % (3.161 KB)
|
|
15
15
|
/src/form/TForm/useTForm.tsx
|
|
16
|
-
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.
|
|
16
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.45 % (2.95 KB)
|
|
17
17
|
/src/inputs/TableInput/TableInput.tsx
|
|
18
|
-
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.
|
|
18
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.33 % (2.891 KB)
|
|
19
19
|
/src/inputs/CreditCardInput/CreditCardInput.tsx
|
|
20
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.
|
|
20
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.08 % (2.324 KB)
|
|
21
21
|
/src/money/useMoneyInput.ts
|
|
22
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.
|
|
22
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.85 % (2.215 KB)
|
|
23
23
|
/src/date/MonthDayPicker/MonthDayPicker.tsx
|
|
24
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.
|
|
24
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.3 % (1.965 KB)
|
|
25
25
|
/src/inputs/CreditCardInput/CreditCardNumberInput.tsx
|
|
26
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.
|
|
26
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.79 % (1.733 KB)
|
|
27
27
|
/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx
|
|
28
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.
|
|
28
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.55 % (1.621 KB)
|
|
29
29
|
/src/date/YearSelect/YearSelect.tsx
|
|
30
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.
|
|
30
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.4 % (1.553 KB)
|
|
31
31
|
/src/inputs/MaskedInput/useMaskedInput.ts
|
|
32
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.
|
|
32
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.25 % (1.487 KB)
|
|
33
33
|
/src/date/MonthYearPicker/MonthYearPicker.tsx
|
|
34
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.
|
|
34
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.69 % (1.229 KB)
|
|
35
35
|
/src/inputs/SinInput/SinInput.tsx
|
|
36
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.
|
|
36
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.55 % (1.166 KB)
|
|
37
37
|
/src/date/LocalMonthSelect/LocalMonthSelect.tsx
|
|
38
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.
|
|
38
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.48 % (1.135 KB)
|
|
39
39
|
/src/inputs/PhoneInput/PhoneInput.tsx
|
|
40
|
-
|
|
40
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.99 % (908 Bytes)
|
|
41
41
|
/src/inputs/TableInput/MoneyEditCell.tsx
|
|
42
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
42
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.79 % (820 Bytes)
|
|
43
43
|
/src/money/MoneyInput/MoneyInput.tsx
|
|
44
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
44
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.75 % (802 Bytes)
|
|
45
45
|
/src/inputs/TableInput/NumberEditCell.tsx
|
|
46
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
46
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.71 % (782 Bytes)
|
|
47
47
|
/src/inputs/TableInput/StringEditCell.tsx
|
|
48
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
48
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.57 % (717 Bytes)
|
|
49
49
|
/src/inputs/TableInput/CheckboxEditCell.tsx
|
|
50
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
50
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.54 % (702 Bytes)
|
|
51
51
|
/src/inputs/TableInput/LocalDateEditCell.tsx
|
|
52
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
52
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.52 % (695 Bytes)
|
|
53
53
|
/src/inputs/RadioGroup/RadioGroup.tsx
|
|
54
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
54
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.51 % (692 Bytes)
|
|
55
55
|
/home/artemis/Github/thr-addons/node_modules/style-inject/dist/style-inject.es.js
|
|
56
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
56
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.39 % (636 Bytes)
|
|
57
57
|
/src/inputs/TableInput/LocalTimeEditCell.tsx
|
|
58
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
58
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.36 % (622 Bytes)
|
|
59
59
|
/src/form/TForm/TForm.tsx
|
|
60
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
60
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.31 % (600 Bytes)
|
|
61
61
|
/src/inputs/MaskedInput/MaskedInput.tsx
|
|
62
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
62
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.19 % (543 Bytes)
|
|
63
63
|
/src/date/DatePicker/styles.css
|
|
64
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
64
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.18 % (538 Bytes)
|
|
65
65
|
/src/inputs/TableInput/DropdownCell.tsx
|
|
66
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
66
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.06 % (483 Bytes)
|
|
67
67
|
/src/step/FormStep.tsx
|
|
68
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
68
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.96 % (440 Bytes)
|
|
69
69
|
/src/date/LocalDatePicker/MaskedDateInput.tsx
|
|
70
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
70
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.93 % (426 Bytes)
|
|
71
71
|
/src/inputs/TableInput/MoneySumFooter.tsx
|
|
72
72
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.91 % (414 Bytes)
|
|
73
73
|
/src/inputs/TableInput/HoverCell.tsx
|
|
74
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
74
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.88 % (403 Bytes)
|
|
75
75
|
/src/inputs/TableInput/addRowOnTab.ts
|
|
76
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
76
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.68 % (312 Bytes)
|
|
77
77
|
/src/inputs/TableInput/LocalDateCell.tsx
|
|
78
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
78
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.62 % (285 Bytes)
|
|
79
79
|
/src/inputs/TableInput/MoneyCell.tsx
|
|
80
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
80
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.56 % (257 Bytes)
|
|
81
81
|
/src/step/Step.tsx
|
|
82
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
82
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.44 % (203 Bytes)
|
|
83
83
|
/src/step/useStep.ts
|
|
84
84
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.25 % (113 Bytes)
|
|
85
85
|
/src/step/stepContext.ts
|
|
@@ -1,13 +1,25 @@
|
|
|
1
|
+
import { LocalTime } from '@js-joda/core';
|
|
1
2
|
import { type ReactElement } from 'react';
|
|
2
3
|
import { type ReactDatePickerProps } from 'react-datepicker';
|
|
3
4
|
import { type InputProps } from 'semantic-ui-react';
|
|
4
|
-
|
|
5
|
-
/**
|
|
5
|
+
export declare function formatLocalTime(localTime: LocalTime): string;
|
|
6
|
+
/**
|
|
7
|
+
* Parse tolerant strings into LocalTime.
|
|
8
|
+
*
|
|
9
|
+
* Behavior details:
|
|
10
|
+
* - Decimal hours: fraction -> minutes by rounding (Math.round). If mm === 60 after rounding,
|
|
11
|
+
* hour increments and minutes = 0.
|
|
12
|
+
* - If decimal form includes am/pm suffix, interpret as 12-hour with suffix.
|
|
13
|
+
* - If decimal form has no suffix, treat as 24-hour decimal when hours < 24.
|
|
14
|
+
* - After computing, clamp hour to 0..23 and minutes to 0..59.
|
|
15
|
+
*
|
|
16
|
+
* Returns LocalTime or null if input cannot be parsed.
|
|
17
|
+
*/
|
|
6
18
|
export declare function parseTimeStringToLocalTime(str: string): LocalTime | null;
|
|
7
19
|
interface ILocalTimePicker {
|
|
8
20
|
value?: LocalTime | null;
|
|
9
21
|
onChange?: (value: LocalTime | null) => void;
|
|
10
|
-
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
22
|
+
onBlur?: (e: React.FocusEvent<HTMLInputElement> | any) => void;
|
|
11
23
|
}
|
|
12
24
|
export type InputPropsOmitted = Omit<InputProps, 'onChange' | 'value'>;
|
|
13
25
|
export type ReactDatePickerPropsOmitted = Omit<Omit<ReactDatePickerProps, 'value'>, 'onChange' | 'onBlur'>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thx/controls",
|
|
3
|
-
"version": "19.6.
|
|
3
|
+
"version": "19.6.4",
|
|
4
4
|
"description": "A collection of components designed with SemanticUI.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/thr-consulting/thr-addons/issues"
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "419b8c06fe244f6711cb1ed330f5581bc651716c"
|
|
69
69
|
}
|