@thx/controls 19.6.4 → 19.6.6
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 +29 -4
- package/dist/esm/date/LocalTimePicker/LocalTimePicker.js.map +1 -1
- package/dist/esm/index.js +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/types/date/LocalTimePicker/LocalTimePicker.d.ts +2 -2
- package/dist/types/date/LocalTimePicker/index.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/stats.txt +0 -90
|
@@ -104,10 +104,29 @@ function parseTimeStringToLocalTime(str) {
|
|
|
104
104
|
return null;
|
|
105
105
|
}
|
|
106
106
|
function LocalTimePicker(props) {
|
|
107
|
-
const { value, onChange, onBlur, placeholder, name, ...rest } = props;
|
|
107
|
+
const { value, onChange, onBlur, placeholder, name, minTime, maxTime, ...rest } = props;
|
|
108
108
|
const selected = value ? toDate(value) : null;
|
|
109
|
+
function clampToRange(lt) {
|
|
110
|
+
let out = lt;
|
|
111
|
+
try {
|
|
112
|
+
if (minTime) {
|
|
113
|
+
const minLt = toLocalTime(minTime);
|
|
114
|
+
if (out.isBefore(minLt))
|
|
115
|
+
out = minLt;
|
|
116
|
+
}
|
|
117
|
+
if (maxTime) {
|
|
118
|
+
const maxLt = toLocalTime(maxTime);
|
|
119
|
+
if (out.isAfter(maxLt))
|
|
120
|
+
out = maxLt;
|
|
121
|
+
}
|
|
122
|
+
} catch {
|
|
123
|
+
}
|
|
124
|
+
return out;
|
|
125
|
+
}
|
|
109
126
|
return /* @__PURE__ */ React.createElement(DatePicker, {
|
|
110
127
|
...rest,
|
|
128
|
+
minTime,
|
|
129
|
+
maxTime,
|
|
111
130
|
selected,
|
|
112
131
|
showTimeSelect: true,
|
|
113
132
|
showTimeSelectOnly: true,
|
|
@@ -118,15 +137,21 @@ function LocalTimePicker(props) {
|
|
|
118
137
|
placeholderText: placeholder ?? "...9:45AM",
|
|
119
138
|
onChange: (date) => {
|
|
120
139
|
const lt = date ? toLocalTime(date) : null;
|
|
121
|
-
|
|
140
|
+
if (lt) {
|
|
141
|
+
const clamped = clampToRange(lt);
|
|
142
|
+
onChange?.(clamped);
|
|
143
|
+
} else {
|
|
144
|
+
onChange?.(null);
|
|
145
|
+
}
|
|
122
146
|
},
|
|
123
147
|
onBlur: (e) => {
|
|
124
148
|
const raw = e.target.value;
|
|
125
149
|
const parsed = parseTimeStringToLocalTime(raw);
|
|
126
150
|
if (parsed) {
|
|
127
|
-
|
|
151
|
+
const clamped = clampToRange(parsed);
|
|
152
|
+
onChange?.(clamped);
|
|
128
153
|
setTimeout(() => {
|
|
129
|
-
const synthetic = { target: { name, value:
|
|
154
|
+
const synthetic = { target: { name, value: clamped } };
|
|
130
155
|
onBlur?.(synthetic);
|
|
131
156
|
}, 0);
|
|
132
157
|
} else {
|
|
@@ -1 +1 @@
|
|
|
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":[],"mapp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,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\ntype InputPropsOmitted = Omit<InputProps, 'onChange' | 'value'>;\ntype ReactDatePickerPropsOmitted = Omit<Omit<ReactDatePickerProps, 'value'>, 'onChange' | 'onBlur'>;\n\nexport type LocalTimePickerProps = ILocalTimePicker & InputPropsOmitted & ReactDatePickerPropsOmitted;\n\nexport function LocalTimePicker(props: LocalTimePickerProps): ReactElement {\n\t// extract minTime/maxTime so we can validate/clamp typed input\n\tconst {value, onChange, onBlur, placeholder, name, minTime, maxTime, ...rest} = props;\n\n\tconst selected = value ? toDate(value) : null;\n\n\t// helper to clamp a LocalTime to min/max Date props (if provided)\n\tfunction clampToRange(lt: LocalTime): LocalTime {\n\t\tlet out = lt;\n\t\ttry {\n\t\t\tif (minTime) {\n\t\t\t\tconst minLt = toLocalTime(minTime);\n\t\t\t\tif (out.isBefore(minLt)) out = minLt;\n\t\t\t}\n\t\t\tif (maxTime) {\n\t\t\t\tconst maxLt = toLocalTime(maxTime);\n\t\t\t\tif (out.isAfter(maxLt)) out = maxLt;\n\t\t\t}\n\t\t} catch {\n\t\t\t// if conversion fails for any reason, just return original\n\t\t}\n\t\treturn out;\n\t}\n\n\treturn (\n\t\t<DatePicker\n\t\t\t{...rest}\n\t\t\tminTime={minTime}\n\t\t\tmaxTime={maxTime}\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\tif (lt) {\n\t\t\t\t\tconst clamped = clampToRange(lt);\n\t\t\t\t\tonChange?.(clamped);\n\t\t\t\t} else {\n\t\t\t\t\tonChange?.(null);\n\t\t\t\t}\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.value;\n\t\t\t\tconst parsed = parseTimeStringToLocalTime(raw);\n\n\t\t\t\tif (parsed) {\n\t\t\t\t\tconst clamped = clampToRange(parsed);\n\t\t\t\t\tonChange?.(clamped);\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tconst synthetic: any = {target: {name, value: clamped}};\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\te.target.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}}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,MAAA,EAAQ,CAAC,CAA0C,KAAA;AAGlD,MAAM,MAAA,GAAA,GAAM,EAAE,MAAO,CAAA,KAAA,CAAA;AACrB,MAAM,MAAA,MAAA,GAAS,2BAA2B,GAAG,CAAA,CAAA;AAE7C,MAAA,IAAI,MAAQ,EAAA;AACX,QAAM,MAAA,OAAA,GAAU,aAAa,MAAM,CAAA,CAAA;AACnC,QAAA,QAAA,GAAW,OAAO,CAAA,CAAA;AAClB,QAAA,UAAA,CAAW,MAAM;AAChB,UAAA,MAAM,YAAiB,EAAC,MAAA,EAAQ,EAAC,IAAM,EAAA,KAAA,EAAO,SAAQ,EAAA,CAAA;AACtD,UAAA,MAAA,GAAS,SAAS,CAAA,CAAA;AAAA,WAChB,CAAC,CAAA,CAAA;AAAA,OACE,MAAA;AAGN,QAAA,MAAM,aAAgB,GAAA,KAAA,GAAQ,eAAgB,CAAA,KAAK,CAAI,GAAA,EAAA,CAAA;AACvD,QAAI,IAAA;AACH,UAAA,CAAA,CAAE,OAAO,KAAQ,GAAA,aAAA,CAAA;AAAA,SAChB,CAAA,MAAA;AAAA,SAEF;AACA,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;;;;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LocalDatePicker } from './date/LocalDatePicker/LocalDatePicker.js';
|
|
2
2
|
export { LocalMonthSelect } from './date/LocalMonthSelect/LocalMonthSelect.js';
|
|
3
|
-
export { LocalTimePicker } from './date/LocalTimePicker/LocalTimePicker.js';
|
|
3
|
+
export { LocalTimePicker, formatLocalTime, parseTimeStringToLocalTime } from './date/LocalTimePicker/LocalTimePicker.js';
|
|
4
4
|
export { MonthDayPicker } from './date/MonthDayPicker/MonthDayPicker.js';
|
|
5
5
|
export { MonthYearPicker } from './date/MonthYearPicker/MonthYearPicker.js';
|
|
6
6
|
export { YearSelect } from './date/YearSelect/YearSelect.js';
|
|
@@ -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) {
|
|
56
56
|
d("Value is being set:", v);
|
|
57
57
|
if (v) {
|
|
58
|
-
|
|
58
|
+
inputElement.current.value = v.toDecimal().toString();
|
|
59
59
|
} else {
|
|
60
|
-
|
|
60
|
+
inputElement.current.value = "";
|
|
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
|
|
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\tinputElement.current.value = v.toDecimal().toString();\n\t\t\t\t} else {\n\t\t\t\t\tinputElement.current.value = '';\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,E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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":"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}};
|
|
4932
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"85b0bbee-1"}]},{"name":"step/useStep.js","children":[{"name":"src/step/useStep.ts","uid":"85b0bbee-3"}]},{"name":"step/Step.js","children":[{"name":"src/step/Step.tsx","uid":"85b0bbee-5"}]},{"name":"step/FormStep.js","children":[{"name":"src/step/FormStep.tsx","uid":"85b0bbee-7"}]},{"name":"step/StepProvider.js","children":[{"name":"src/step/StepProvider.tsx","uid":"85b0bbee-9"}]},{"name":"date/LocalTimePicker/LocalTimePicker.js","children":[{"name":"src/date/LocalTimePicker/LocalTimePicker.tsx","uid":"85b0bbee-11"}]},{"name":"date/LocalMonthSelect/LocalMonthSelect.js","children":[{"name":"src/date/LocalMonthSelect/LocalMonthSelect.tsx","uid":"85b0bbee-13"}]},{"name":"date/MonthYearPicker/MonthYearPicker.js","children":[{"name":"src/date/MonthYearPicker/MonthYearPicker.tsx","uid":"85b0bbee-15"}]},{"name":"inputs/MaskedInput/useMaskedInput.js","children":[{"name":"src/inputs/MaskedInput/useMaskedInput.ts","uid":"85b0bbee-17"}]},{"name":"date/YearSelect/YearSelect.js","children":[{"name":"src/date/YearSelect/YearSelect.tsx","uid":"85b0bbee-19"}]},{"name":"date/MonthDayPicker/MonthDayPicker.js","children":[{"name":"src/date/MonthDayPicker/MonthDayPicker.tsx","uid":"85b0bbee-21"}]},{"name":"date/LocalDatePicker/LocalDatePicker.js","children":[{"name":"src/date/LocalDatePicker/LocalDatePicker.tsx","uid":"85b0bbee-23"}]},{"name":"form/TForm/TForm.js","children":[{"name":"src/form/TForm/TForm.tsx","uid":"85b0bbee-25"}]},{"name":"form/TForm/useTForm.js","children":[{"name":"src/form/TForm/useTForm.tsx","uid":"85b0bbee-27"}]},{"name":"money/MoneyInput/MoneyInput.js","children":[{"name":"src/money/MoneyInput/MoneyInput.tsx","uid":"85b0bbee-29"}]},{"name":"inputs/MaskedInput/MaskedInput.js","children":[{"name":"src/inputs/MaskedInput/MaskedInput.tsx","uid":"85b0bbee-31"}]},{"name":"inputs/RadioGroup/RadioGroup.js","children":[{"name":"src/inputs/RadioGroup/RadioGroup.tsx","uid":"85b0bbee-33"}]},{"name":"inputs/SinInput/SinInput.js","children":[{"name":"src/inputs/SinInput/SinInput.tsx","uid":"85b0bbee-35"}]},{"name":"inputs/PhoneInput/PhoneInput.js","children":[{"name":"src/inputs/PhoneInput/PhoneInput.tsx","uid":"85b0bbee-37"}]},{"name":"inputs/TableInput/addRowOnTab.js","children":[{"name":"src/inputs/TableInput/addRowOnTab.ts","uid":"85b0bbee-39"}]},{"name":"money/MoneyCurrencyInput/MoneyCurrencyInput.js","children":[{"name":"src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","uid":"85b0bbee-41"}]},{"name":"inputs/TableInput/TableInput.js","children":[{"name":"src/inputs/TableInput/TableInput.tsx","uid":"85b0bbee-43"}]},{"name":"inputs/TableInput/MoneyCell.js","children":[{"name":"src/inputs/TableInput/MoneyCell.tsx","uid":"85b0bbee-45"}]},{"name":"inputs/TableInput/MoneyEditCell.js","children":[{"name":"src/inputs/TableInput/MoneyEditCell.tsx","uid":"85b0bbee-47"}]},{"name":"inputs/TableInput/LocalDateCell.js","children":[{"name":"src/inputs/TableInput/LocalDateCell.tsx","uid":"85b0bbee-49"}]},{"name":"inputs/TableInput/CheckboxEditCell.js","children":[{"name":"src/inputs/TableInput/CheckboxEditCell.tsx","uid":"85b0bbee-51"}]},{"name":"inputs/TableInput/LocalDateEditCell.js","children":[{"name":"src/inputs/TableInput/LocalDateEditCell.tsx","uid":"85b0bbee-53"}]},{"name":"inputs/TableInput/LocalTimeEditCell.js","children":[{"name":"src/inputs/TableInput/LocalTimeEditCell.tsx","uid":"85b0bbee-55"}]},{"name":"inputs/TableInput/MoneySumFooter.js","children":[{"name":"src/inputs/TableInput/MoneySumFooter.tsx","uid":"85b0bbee-57"}]},{"name":"inputs/TableInput/NumberEditCell.js","children":[{"name":"src/inputs/TableInput/NumberEditCell.tsx","uid":"85b0bbee-59"}]},{"name":"inputs/TableInput/StringEditCell.js","children":[{"name":"src/inputs/TableInput/StringEditCell.tsx","uid":"85b0bbee-61"}]},{"name":"inputs/TableInput/DropdownCell.js","children":[{"name":"src/inputs/TableInput/DropdownCell.tsx","uid":"85b0bbee-63"}]},{"name":"inputs/TableInput/HoverCell.js","children":[{"name":"src/inputs/TableInput/HoverCell.tsx","uid":"85b0bbee-65"}]},{"name":"inputs/CreditCardInput/CreditCardInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardInput.tsx","uid":"85b0bbee-67"}]},{"name":"step/stepContext.js","children":[{"name":"src/step/stepContext.ts","uid":"85b0bbee-69"}]},{"name":"money/useMoneyInput.js","children":[{"name":"src/money/useMoneyInput.ts","uid":"85b0bbee-71"}]},{"name":"date/DatePicker/styles.css.js","children":[{"name":"src/date/DatePicker/styles.css","uid":"85b0bbee-73"}]},{"name":"inputs/CreditCardInput/styles.css.js","children":[{"name":"src/inputs/CreditCardInput/styles.css","uid":"85b0bbee-75"}]},{"name":"date/LocalDatePicker/MaskedDateInput.js","children":[{"name":"src/date/LocalDatePicker/MaskedDateInput.tsx","uid":"85b0bbee-77"}]},{"name":"inputs/CreditCardInput/CreditCardNumberInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardNumberInput.tsx","uid":"85b0bbee-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":"85b0bbee-81"}]}],"isRoot":true},"nodeParts":{"85b0bbee-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"85b0bbee-0"},"85b0bbee-3":{"renderedLength":113,"gzipLength":107,"brotliLength":82,"metaUid":"85b0bbee-2"},"85b0bbee-5":{"renderedLength":203,"gzipLength":155,"brotliLength":111,"metaUid":"85b0bbee-4"},"85b0bbee-7":{"renderedLength":440,"gzipLength":270,"brotliLength":214,"metaUid":"85b0bbee-6"},"85b0bbee-9":{"renderedLength":3529,"gzipLength":1015,"brotliLength":861,"metaUid":"85b0bbee-8"},"85b0bbee-11":{"renderedLength":4757,"gzipLength":1403,"brotliLength":1260,"metaUid":"85b0bbee-10"},"85b0bbee-13":{"renderedLength":1135,"gzipLength":505,"brotliLength":415,"metaUid":"85b0bbee-12"},"85b0bbee-15":{"renderedLength":1229,"gzipLength":496,"brotliLength":424,"metaUid":"85b0bbee-14"},"85b0bbee-17":{"renderedLength":1487,"gzipLength":501,"brotliLength":423,"metaUid":"85b0bbee-16"},"85b0bbee-19":{"renderedLength":1553,"gzipLength":579,"brotliLength":461,"metaUid":"85b0bbee-18"},"85b0bbee-21":{"renderedLength":1965,"gzipLength":655,"brotliLength":544,"metaUid":"85b0bbee-20"},"85b0bbee-23":{"renderedLength":3161,"gzipLength":952,"brotliLength":853,"metaUid":"85b0bbee-22"},"85b0bbee-25":{"renderedLength":600,"gzipLength":308,"brotliLength":267,"metaUid":"85b0bbee-24"},"85b0bbee-27":{"renderedLength":2950,"gzipLength":958,"brotliLength":830,"metaUid":"85b0bbee-26"},"85b0bbee-29":{"renderedLength":802,"gzipLength":399,"brotliLength":317,"metaUid":"85b0bbee-28"},"85b0bbee-31":{"renderedLength":543,"gzipLength":305,"brotliLength":252,"metaUid":"85b0bbee-30"},"85b0bbee-33":{"renderedLength":692,"gzipLength":342,"brotliLength":289,"metaUid":"85b0bbee-32"},"85b0bbee-35":{"renderedLength":1166,"gzipLength":540,"brotliLength":469,"metaUid":"85b0bbee-34"},"85b0bbee-37":{"renderedLength":908,"gzipLength":382,"brotliLength":319,"metaUid":"85b0bbee-36"},"85b0bbee-39":{"renderedLength":312,"gzipLength":199,"brotliLength":173,"metaUid":"85b0bbee-38"},"85b0bbee-41":{"renderedLength":1621,"gzipLength":646,"brotliLength":553,"metaUid":"85b0bbee-40"},"85b0bbee-43":{"renderedLength":2891,"gzipLength":854,"brotliLength":780,"metaUid":"85b0bbee-42"},"85b0bbee-45":{"renderedLength":257,"gzipLength":185,"brotliLength":149,"metaUid":"85b0bbee-44"},"85b0bbee-47":{"renderedLength":820,"gzipLength":397,"brotliLength":349,"metaUid":"85b0bbee-46"},"85b0bbee-49":{"renderedLength":285,"gzipLength":198,"brotliLength":170,"metaUid":"85b0bbee-48"},"85b0bbee-51":{"renderedLength":702,"gzipLength":369,"brotliLength":330,"metaUid":"85b0bbee-50"},"85b0bbee-53":{"renderedLength":695,"gzipLength":349,"brotliLength":295,"metaUid":"85b0bbee-52"},"85b0bbee-55":{"renderedLength":622,"gzipLength":322,"brotliLength":269,"metaUid":"85b0bbee-54"},"85b0bbee-57":{"renderedLength":414,"gzipLength":259,"brotliLength":219,"metaUid":"85b0bbee-56"},"85b0bbee-59":{"renderedLength":782,"gzipLength":409,"brotliLength":345,"metaUid":"85b0bbee-58"},"85b0bbee-61":{"renderedLength":717,"gzipLength":372,"brotliLength":319,"metaUid":"85b0bbee-60"},"85b0bbee-63":{"renderedLength":483,"gzipLength":251,"brotliLength":208,"metaUid":"85b0bbee-62"},"85b0bbee-65":{"renderedLength":403,"gzipLength":244,"brotliLength":195,"metaUid":"85b0bbee-64"},"85b0bbee-67":{"renderedLength":2324,"gzipLength":584,"brotliLength":495,"metaUid":"85b0bbee-66"},"85b0bbee-69":{"renderedLength":80,"gzipLength":92,"brotliLength":72,"metaUid":"85b0bbee-68"},"85b0bbee-71":{"renderedLength":2187,"gzipLength":771,"brotliLength":658,"metaUid":"85b0bbee-70"},"85b0bbee-73":{"renderedLength":538,"gzipLength":261,"brotliLength":211,"metaUid":"85b0bbee-72"},"85b0bbee-75":{"renderedLength":78,"gzipLength":92,"brotliLength":79,"metaUid":"85b0bbee-74"},"85b0bbee-77":{"renderedLength":426,"gzipLength":286,"brotliLength":244,"metaUid":"85b0bbee-76"},"85b0bbee-79":{"renderedLength":1733,"gzipLength":697,"brotliLength":623,"metaUid":"85b0bbee-78"},"85b0bbee-81":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"metaUid":"85b0bbee-80"}},"nodeMetas":{"85b0bbee-0":{"id":"/src/index.ts","moduleParts":{"index.js":"85b0bbee-1"},"imported":[{"uid":"85b0bbee-82"},{"uid":"85b0bbee-83"},{"uid":"85b0bbee-84"},{"uid":"85b0bbee-85"},{"uid":"85b0bbee-86"},{"uid":"85b0bbee-87"},{"uid":"85b0bbee-88"},{"uid":"85b0bbee-89"},{"uid":"85b0bbee-90"},{"uid":"85b0bbee-91"},{"uid":"85b0bbee-92"},{"uid":"85b0bbee-93"},{"uid":"85b0bbee-94"},{"uid":"85b0bbee-95"},{"uid":"85b0bbee-96"},{"uid":"85b0bbee-97"}],"importedBy":[],"isEntry":true},"85b0bbee-2":{"id":"/src/step/useStep.ts","moduleParts":{"step/useStep.js":"85b0bbee-3"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-68"}],"importedBy":[{"uid":"85b0bbee-97"},{"uid":"85b0bbee-6"}]},"85b0bbee-4":{"id":"/src/step/Step.tsx","moduleParts":{"step/Step.js":"85b0bbee-5"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"}],"importedBy":[{"uid":"85b0bbee-97"},{"uid":"85b0bbee-8"}]},"85b0bbee-6":{"id":"/src/step/FormStep.tsx","moduleParts":{"step/FormStep.js":"85b0bbee-7"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-2"}],"importedBy":[{"uid":"85b0bbee-97"},{"uid":"85b0bbee-8"}]},"85b0bbee-8":{"id":"/src/step/StepProvider.tsx","moduleParts":{"step/StepProvider.js":"85b0bbee-9"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-116"},{"uid":"85b0bbee-101"},{"uid":"85b0bbee-6"},{"uid":"85b0bbee-4"},{"uid":"85b0bbee-68"}],"importedBy":[{"uid":"85b0bbee-97"}]},"85b0bbee-10":{"id":"/src/date/LocalTimePicker/LocalTimePicker.tsx","moduleParts":{"date/LocalTimePicker/LocalTimePicker.js":"85b0bbee-11"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-103"},{"uid":"85b0bbee-99"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-104"}],"importedBy":[{"uid":"85b0bbee-84"}]},"85b0bbee-12":{"id":"/src/date/LocalMonthSelect/LocalMonthSelect.tsx","moduleParts":{"date/LocalMonthSelect/LocalMonthSelect.js":"85b0bbee-13"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-103"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-101"}],"importedBy":[{"uid":"85b0bbee-83"}]},"85b0bbee-14":{"id":"/src/date/MonthYearPicker/MonthYearPicker.tsx","moduleParts":{"date/MonthYearPicker/MonthYearPicker.js":"85b0bbee-15"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-103"},{"uid":"85b0bbee-99"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-101"},{"uid":"85b0bbee-102"}],"importedBy":[{"uid":"85b0bbee-86"}]},"85b0bbee-16":{"id":"/src/inputs/MaskedInput/useMaskedInput.ts","moduleParts":{"inputs/MaskedInput/useMaskedInput.js":"85b0bbee-17"},"imported":[{"uid":"85b0bbee-100"},{"uid":"85b0bbee-108"},{"uid":"85b0bbee-98"},{"uid":"85b0bbee-109"}],"importedBy":[{"uid":"85b0bbee-89"},{"uid":"85b0bbee-30"},{"uid":"85b0bbee-34"},{"uid":"85b0bbee-78"}]},"85b0bbee-18":{"id":"/src/date/YearSelect/YearSelect.tsx","moduleParts":{"date/YearSelect/YearSelect.js":"85b0bbee-19"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-101"}],"importedBy":[{"uid":"85b0bbee-87"}]},"85b0bbee-20":{"id":"/src/date/MonthDayPicker/MonthDayPicker.tsx","moduleParts":{"date/MonthDayPicker/MonthDayPicker.js":"85b0bbee-21"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-99"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-101"},{"uid":"85b0bbee-102"}],"importedBy":[{"uid":"85b0bbee-85"}]},"85b0bbee-22":{"id":"/src/date/LocalDatePicker/LocalDatePicker.tsx","moduleParts":{"date/LocalDatePicker/LocalDatePicker.js":"85b0bbee-23"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-99"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-101"},{"uid":"85b0bbee-102"},{"uid":"85b0bbee-72"},{"uid":"85b0bbee-76"}],"importedBy":[{"uid":"85b0bbee-82"}]},"85b0bbee-24":{"id":"/src/form/TForm/TForm.tsx","moduleParts":{"form/TForm/TForm.js":"85b0bbee-25"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-105"},{"uid":"85b0bbee-26"}],"importedBy":[{"uid":"85b0bbee-88"}]},"85b0bbee-26":{"id":"/src/form/TForm/useTForm.tsx","moduleParts":{"form/TForm/useTForm.js":"85b0bbee-27"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-106"},{"uid":"85b0bbee-105"},{"uid":"85b0bbee-107"},{"uid":"85b0bbee-101"}],"importedBy":[{"uid":"85b0bbee-88"},{"uid":"85b0bbee-24"}]},"85b0bbee-28":{"id":"/src/money/MoneyInput/MoneyInput.tsx","moduleParts":{"money/MoneyInput/MoneyInput.js":"85b0bbee-29"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-114"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-115"},{"uid":"85b0bbee-101"},{"uid":"85b0bbee-70"}],"importedBy":[{"uid":"85b0bbee-95"}]},"85b0bbee-30":{"id":"/src/inputs/MaskedInput/MaskedInput.tsx","moduleParts":{"inputs/MaskedInput/MaskedInput.js":"85b0bbee-31"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-16"}],"importedBy":[{"uid":"85b0bbee-89"}]},"85b0bbee-32":{"id":"/src/inputs/RadioGroup/RadioGroup.tsx","moduleParts":{"inputs/RadioGroup/RadioGroup.js":"85b0bbee-33"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-101"}],"importedBy":[{"uid":"85b0bbee-90"}]},"85b0bbee-34":{"id":"/src/inputs/SinInput/SinInput.tsx","moduleParts":{"inputs/SinInput/SinInput.js":"85b0bbee-35"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-101"},{"uid":"85b0bbee-112"},{"uid":"85b0bbee-16"}],"importedBy":[{"uid":"85b0bbee-93"}]},"85b0bbee-36":{"id":"/src/inputs/PhoneInput/PhoneInput.tsx","moduleParts":{"inputs/PhoneInput/PhoneInput.js":"85b0bbee-37"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-101"},{"uid":"85b0bbee-89"}],"importedBy":[{"uid":"85b0bbee-91"}]},"85b0bbee-38":{"id":"/src/inputs/TableInput/addRowOnTab.ts","moduleParts":{"inputs/TableInput/addRowOnTab.js":"85b0bbee-39"},"imported":[],"importedBy":[{"uid":"85b0bbee-94"},{"uid":"85b0bbee-46"},{"uid":"85b0bbee-50"},{"uid":"85b0bbee-58"},{"uid":"85b0bbee-60"}]},"85b0bbee-40":{"id":"/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","moduleParts":{"money/MoneyCurrencyInput/MoneyCurrencyInput.js":"85b0bbee-41"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-114"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-115"},{"uid":"85b0bbee-101"},{"uid":"85b0bbee-70"}],"importedBy":[{"uid":"85b0bbee-96"}]},"85b0bbee-42":{"id":"/src/inputs/TableInput/TableInput.tsx","moduleParts":{"inputs/TableInput/TableInput.js":"85b0bbee-43"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-105"},{"uid":"85b0bbee-113"},{"uid":"85b0bbee-101"}],"importedBy":[{"uid":"85b0bbee-94"}]},"85b0bbee-44":{"id":"/src/inputs/TableInput/MoneyCell.tsx","moduleParts":{"inputs/TableInput/MoneyCell.js":"85b0bbee-45"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-114"}],"importedBy":[{"uid":"85b0bbee-94"}]},"85b0bbee-46":{"id":"/src/inputs/TableInput/MoneyEditCell.tsx","moduleParts":{"inputs/TableInput/MoneyEditCell.js":"85b0bbee-47"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-95"},{"uid":"85b0bbee-38"}],"importedBy":[{"uid":"85b0bbee-94"}]},"85b0bbee-48":{"id":"/src/inputs/TableInput/LocalDateCell.tsx","moduleParts":{"inputs/TableInput/LocalDateCell.js":"85b0bbee-49"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-99"}],"importedBy":[{"uid":"85b0bbee-94"}]},"85b0bbee-50":{"id":"/src/inputs/TableInput/CheckboxEditCell.tsx","moduleParts":{"inputs/TableInput/CheckboxEditCell.js":"85b0bbee-51"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-101"},{"uid":"85b0bbee-38"}],"importedBy":[{"uid":"85b0bbee-94"}]},"85b0bbee-52":{"id":"/src/inputs/TableInput/LocalDateEditCell.tsx","moduleParts":{"inputs/TableInput/LocalDateEditCell.js":"85b0bbee-53"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-82"}],"importedBy":[{"uid":"85b0bbee-94"}]},"85b0bbee-54":{"id":"/src/inputs/TableInput/LocalTimeEditCell.tsx","moduleParts":{"inputs/TableInput/LocalTimeEditCell.js":"85b0bbee-55"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-84"}],"importedBy":[{"uid":"85b0bbee-94"}]},"85b0bbee-56":{"id":"/src/inputs/TableInput/MoneySumFooter.tsx","moduleParts":{"inputs/TableInput/MoneySumFooter.js":"85b0bbee-57"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-114"}],"importedBy":[{"uid":"85b0bbee-94"}]},"85b0bbee-58":{"id":"/src/inputs/TableInput/NumberEditCell.tsx","moduleParts":{"inputs/TableInput/NumberEditCell.js":"85b0bbee-59"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-101"},{"uid":"85b0bbee-38"}],"importedBy":[{"uid":"85b0bbee-94"}]},"85b0bbee-60":{"id":"/src/inputs/TableInput/StringEditCell.tsx","moduleParts":{"inputs/TableInput/StringEditCell.js":"85b0bbee-61"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-101"},{"uid":"85b0bbee-38"}],"importedBy":[{"uid":"85b0bbee-94"}]},"85b0bbee-62":{"id":"/src/inputs/TableInput/DropdownCell.tsx","moduleParts":{"inputs/TableInput/DropdownCell.js":"85b0bbee-63"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-101"}],"importedBy":[{"uid":"85b0bbee-94"}]},"85b0bbee-64":{"id":"/src/inputs/TableInput/HoverCell.tsx","moduleParts":{"inputs/TableInput/HoverCell.js":"85b0bbee-65"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"}],"importedBy":[{"uid":"85b0bbee-94"}]},"85b0bbee-66":{"id":"/src/inputs/CreditCardInput/CreditCardInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardInput.js":"85b0bbee-67"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-99"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-110"},{"uid":"85b0bbee-111"},{"uid":"85b0bbee-101"},{"uid":"85b0bbee-86"},{"uid":"85b0bbee-78"},{"uid":"85b0bbee-74"}],"importedBy":[{"uid":"85b0bbee-92"}]},"85b0bbee-68":{"id":"/src/step/stepContext.ts","moduleParts":{"step/stepContext.js":"85b0bbee-69"},"imported":[{"uid":"85b0bbee-98"}],"importedBy":[{"uid":"85b0bbee-2"},{"uid":"85b0bbee-8"}]},"85b0bbee-70":{"id":"/src/money/useMoneyInput.ts","moduleParts":{"money/useMoneyInput.js":"85b0bbee-71"},"imported":[{"uid":"85b0bbee-114"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-108"},{"uid":"85b0bbee-115"},{"uid":"85b0bbee-98"}],"importedBy":[{"uid":"85b0bbee-28"},{"uid":"85b0bbee-40"}]},"85b0bbee-72":{"id":"/src/date/DatePicker/styles.css","moduleParts":{"date/DatePicker/styles.css.js":"85b0bbee-73"},"imported":[{"uid":"85b0bbee-80"}],"importedBy":[{"uid":"85b0bbee-22"},{"uid":"85b0bbee-102"}]},"85b0bbee-74":{"id":"/src/inputs/CreditCardInput/styles.css","moduleParts":{"inputs/CreditCardInput/styles.css.js":"85b0bbee-75"},"imported":[{"uid":"85b0bbee-80"}],"importedBy":[{"uid":"85b0bbee-66"}]},"85b0bbee-76":{"id":"/src/date/LocalDatePicker/MaskedDateInput.tsx","moduleParts":{"date/LocalDatePicker/MaskedDateInput.js":"85b0bbee-77"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-89"}],"importedBy":[{"uid":"85b0bbee-22"}]},"85b0bbee-78":{"id":"/src/inputs/CreditCardInput/CreditCardNumberInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardNumberInput.js":"85b0bbee-79"},"imported":[{"uid":"85b0bbee-98"},{"uid":"85b0bbee-117"},{"uid":"85b0bbee-100"},{"uid":"85b0bbee-118"},{"uid":"85b0bbee-101"},{"uid":"85b0bbee-16"}],"importedBy":[{"uid":"85b0bbee-66"}]},"85b0bbee-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":"85b0bbee-81"},"imported":[],"importedBy":[{"uid":"85b0bbee-72"},{"uid":"85b0bbee-74"}]},"85b0bbee-82":{"id":"/src/date/LocalDatePicker/index.ts","moduleParts":{},"imported":[{"uid":"85b0bbee-22"}],"importedBy":[{"uid":"85b0bbee-0"},{"uid":"85b0bbee-52"}]},"85b0bbee-83":{"id":"/src/date/LocalMonthSelect/index.ts","moduleParts":{},"imported":[{"uid":"85b0bbee-12"}],"importedBy":[{"uid":"85b0bbee-0"}]},"85b0bbee-84":{"id":"/src/date/LocalTimePicker/index.ts","moduleParts":{},"imported":[{"uid":"85b0bbee-10"}],"importedBy":[{"uid":"85b0bbee-0"},{"uid":"85b0bbee-54"}]},"85b0bbee-85":{"id":"/src/date/MonthDayPicker/index.ts","moduleParts":{},"imported":[{"uid":"85b0bbee-20"}],"importedBy":[{"uid":"85b0bbee-0"}]},"85b0bbee-86":{"id":"/src/date/MonthYearPicker/index.ts","moduleParts":{},"imported":[{"uid":"85b0bbee-14"}],"importedBy":[{"uid":"85b0bbee-0"},{"uid":"85b0bbee-66"}]},"85b0bbee-87":{"id":"/src/date/YearSelect/index.ts","moduleParts":{},"imported":[{"uid":"85b0bbee-18"}],"importedBy":[{"uid":"85b0bbee-0"}]},"85b0bbee-88":{"id":"/src/form/TForm/index.ts","moduleParts":{},"imported":[{"uid":"85b0bbee-24"},{"uid":"85b0bbee-26"}],"importedBy":[{"uid":"85b0bbee-0"}]},"85b0bbee-89":{"id":"/src/inputs/MaskedInput/index.ts","moduleParts":{},"imported":[{"uid":"85b0bbee-30"},{"uid":"85b0bbee-16"}],"importedBy":[{"uid":"85b0bbee-0"},{"uid":"85b0bbee-36"},{"uid":"85b0bbee-76"}]},"85b0bbee-90":{"id":"/src/inputs/RadioGroup/index.ts","moduleParts":{},"imported":[{"uid":"85b0bbee-32"}],"importedBy":[{"uid":"85b0bbee-0"}]},"85b0bbee-91":{"id":"/src/inputs/PhoneInput/index.ts","moduleParts":{},"imported":[{"uid":"85b0bbee-36"}],"importedBy":[{"uid":"85b0bbee-0"}]},"85b0bbee-92":{"id":"/src/inputs/CreditCardInput/index.ts","moduleParts":{},"imported":[{"uid":"85b0bbee-66"}],"importedBy":[{"uid":"85b0bbee-0"}]},"85b0bbee-93":{"id":"/src/inputs/SinInput/index.ts","moduleParts":{},"imported":[{"uid":"85b0bbee-34"}],"importedBy":[{"uid":"85b0bbee-0"}]},"85b0bbee-94":{"id":"/src/inputs/TableInput/index.ts","moduleParts":{},"imported":[{"uid":"85b0bbee-42"},{"uid":"85b0bbee-44"},{"uid":"85b0bbee-46"},{"uid":"85b0bbee-48"},{"uid":"85b0bbee-50"},{"uid":"85b0bbee-52"},{"uid":"85b0bbee-54"},{"uid":"85b0bbee-56"},{"uid":"85b0bbee-58"},{"uid":"85b0bbee-60"},{"uid":"85b0bbee-62"},{"uid":"85b0bbee-64"},{"uid":"85b0bbee-38"}],"importedBy":[{"uid":"85b0bbee-0"}]},"85b0bbee-95":{"id":"/src/money/MoneyInput/index.ts","moduleParts":{},"imported":[{"uid":"85b0bbee-28"}],"importedBy":[{"uid":"85b0bbee-0"},{"uid":"85b0bbee-46"}]},"85b0bbee-96":{"id":"/src/money/MoneyCurrencyInput/index.ts","moduleParts":{},"imported":[{"uid":"85b0bbee-40"}],"importedBy":[{"uid":"85b0bbee-0"}]},"85b0bbee-97":{"id":"/src/step/index.ts","moduleParts":{},"imported":[{"uid":"85b0bbee-4"},{"uid":"85b0bbee-2"},{"uid":"85b0bbee-6"},{"uid":"85b0bbee-8"}],"importedBy":[{"uid":"85b0bbee-0"}]},"85b0bbee-98":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-22"},{"uid":"85b0bbee-12"},{"uid":"85b0bbee-10"},{"uid":"85b0bbee-20"},{"uid":"85b0bbee-14"},{"uid":"85b0bbee-18"},{"uid":"85b0bbee-24"},{"uid":"85b0bbee-26"},{"uid":"85b0bbee-30"},{"uid":"85b0bbee-16"},{"uid":"85b0bbee-32"},{"uid":"85b0bbee-36"},{"uid":"85b0bbee-66"},{"uid":"85b0bbee-34"},{"uid":"85b0bbee-42"},{"uid":"85b0bbee-44"},{"uid":"85b0bbee-46"},{"uid":"85b0bbee-48"},{"uid":"85b0bbee-50"},{"uid":"85b0bbee-52"},{"uid":"85b0bbee-54"},{"uid":"85b0bbee-56"},{"uid":"85b0bbee-58"},{"uid":"85b0bbee-60"},{"uid":"85b0bbee-62"},{"uid":"85b0bbee-64"},{"uid":"85b0bbee-28"},{"uid":"85b0bbee-40"},{"uid":"85b0bbee-4"},{"uid":"85b0bbee-2"},{"uid":"85b0bbee-6"},{"uid":"85b0bbee-8"},{"uid":"85b0bbee-76"},{"uid":"85b0bbee-78"},{"uid":"85b0bbee-70"},{"uid":"85b0bbee-68"}],"isExternal":true},"85b0bbee-99":{"id":"@thx/date","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-22"},{"uid":"85b0bbee-10"},{"uid":"85b0bbee-20"},{"uid":"85b0bbee-14"},{"uid":"85b0bbee-66"},{"uid":"85b0bbee-48"}],"isExternal":true},"85b0bbee-100":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-22"},{"uid":"85b0bbee-12"},{"uid":"85b0bbee-10"},{"uid":"85b0bbee-20"},{"uid":"85b0bbee-14"},{"uid":"85b0bbee-18"},{"uid":"85b0bbee-24"},{"uid":"85b0bbee-30"},{"uid":"85b0bbee-16"},{"uid":"85b0bbee-32"},{"uid":"85b0bbee-36"},{"uid":"85b0bbee-66"},{"uid":"85b0bbee-34"},{"uid":"85b0bbee-42"},{"uid":"85b0bbee-46"},{"uid":"85b0bbee-50"},{"uid":"85b0bbee-52"},{"uid":"85b0bbee-54"},{"uid":"85b0bbee-58"},{"uid":"85b0bbee-60"},{"uid":"85b0bbee-64"},{"uid":"85b0bbee-28"},{"uid":"85b0bbee-40"},{"uid":"85b0bbee-4"},{"uid":"85b0bbee-6"},{"uid":"85b0bbee-8"},{"uid":"85b0bbee-76"},{"uid":"85b0bbee-78"},{"uid":"85b0bbee-70"}],"isExternal":true},"85b0bbee-101":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-22"},{"uid":"85b0bbee-12"},{"uid":"85b0bbee-20"},{"uid":"85b0bbee-14"},{"uid":"85b0bbee-18"},{"uid":"85b0bbee-26"},{"uid":"85b0bbee-32"},{"uid":"85b0bbee-36"},{"uid":"85b0bbee-66"},{"uid":"85b0bbee-34"},{"uid":"85b0bbee-42"},{"uid":"85b0bbee-50"},{"uid":"85b0bbee-58"},{"uid":"85b0bbee-60"},{"uid":"85b0bbee-62"},{"uid":"85b0bbee-28"},{"uid":"85b0bbee-40"},{"uid":"85b0bbee-8"},{"uid":"85b0bbee-78"}],"isExternal":true},"85b0bbee-102":{"id":"/src/date/DatePicker/index.ts","moduleParts":{},"imported":[{"uid":"85b0bbee-104"},{"uid":"85b0bbee-72"}],"importedBy":[{"uid":"85b0bbee-22"},{"uid":"85b0bbee-20"},{"uid":"85b0bbee-14"}]},"85b0bbee-103":{"id":"@js-joda/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-12"},{"uid":"85b0bbee-10"},{"uid":"85b0bbee-14"}],"isExternal":true},"85b0bbee-104":{"id":"react-datepicker","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-10"},{"uid":"85b0bbee-102"}],"isExternal":true},"85b0bbee-105":{"id":"formik","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-24"},{"uid":"85b0bbee-26"},{"uid":"85b0bbee-42"}],"isExternal":true},"85b0bbee-106":{"id":"flat","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-26"}],"isExternal":true},"85b0bbee-107":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-26"}],"isExternal":true},"85b0bbee-108":{"id":"inputmask","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-16"},{"uid":"85b0bbee-70"}],"isExternal":true},"85b0bbee-109":{"id":"use-deep-compare-effect","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-16"}],"isExternal":true},"85b0bbee-110":{"id":"react-credit-cards","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-66"}],"isExternal":true},"85b0bbee-111":{"id":"react-credit-cards/es/styles-compiled.css","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-66"}],"isExternal":true},"85b0bbee-112":{"id":"social-insurance-number","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-34"}],"isExternal":true},"85b0bbee-113":{"id":"react-table","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-42"}],"isExternal":true},"85b0bbee-114":{"id":"@thx/money","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-44"},{"uid":"85b0bbee-56"},{"uid":"85b0bbee-28"},{"uid":"85b0bbee-40"},{"uid":"85b0bbee-70"}],"isExternal":true},"85b0bbee-115":{"id":"js-money","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-28"},{"uid":"85b0bbee-40"},{"uid":"85b0bbee-70"}],"isExternal":true},"85b0bbee-116":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-8"}],"isExternal":true},"85b0bbee-117":{"id":"credit-card-type","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-78"}],"isExternal":true},"85b0bbee-118":{"id":"luhn","moduleParts":{},"imported":[],"importedBy":[{"uid":"85b0bbee-78"}],"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;
|
|
@@ -21,8 +21,8 @@ interface ILocalTimePicker {
|
|
|
21
21
|
onChange?: (value: LocalTime | null) => void;
|
|
22
22
|
onBlur?: (e: React.FocusEvent<HTMLInputElement> | any) => void;
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
type InputPropsOmitted = Omit<InputProps, 'onChange' | 'value'>;
|
|
25
|
+
type ReactDatePickerPropsOmitted = Omit<Omit<ReactDatePickerProps, 'value'>, 'onChange' | 'onBlur'>;
|
|
26
26
|
export type LocalTimePickerProps = ILocalTimePicker & InputPropsOmitted & ReactDatePickerPropsOmitted;
|
|
27
27
|
export declare function LocalTimePicker(props: LocalTimePickerProps): ReactElement;
|
|
28
28
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { LocalTimePicker } from './LocalTimePicker';
|
|
1
|
+
export { LocalTimePicker, formatLocalTime, parseTimeStringToLocalTime } from './LocalTimePicker';
|
|
2
2
|
export type { LocalTimePickerProps } from './LocalTimePicker';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { LocalDatePicker } from './date/LocalDatePicker';
|
|
|
3
3
|
export type { LocalDatePickerProps } from './date/LocalDatePicker';
|
|
4
4
|
export { LocalMonthSelect } from './date/LocalMonthSelect';
|
|
5
5
|
export type { LocalMonthSelectProps } from './date/LocalMonthSelect';
|
|
6
|
-
export { LocalTimePicker } from './date/LocalTimePicker';
|
|
6
|
+
export { LocalTimePicker, formatLocalTime, parseTimeStringToLocalTime } from './date/LocalTimePicker';
|
|
7
7
|
export type { LocalTimePickerProps } from './date/LocalTimePicker';
|
|
8
8
|
export { MonthDayPicker } from './date/MonthDayPicker';
|
|
9
9
|
export type { MonthDayPickerProps } from './date/MonthDayPicker';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thx/controls",
|
|
3
|
-
"version": "19.6.
|
|
3
|
+
"version": "19.6.6",
|
|
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": "c2a034e4380cf1c1001935ccf129612bc5943f77"
|
|
69
69
|
}
|
package/dist/stats.txt
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
-----------------------------
|
|
2
|
-
Rollup File Analysis
|
|
3
|
-
-----------------------------
|
|
4
|
-
bundle size: 45.706 KB
|
|
5
|
-
original size: 68.581 KB
|
|
6
|
-
code reduction: 33.35 %
|
|
7
|
-
module count: 41
|
|
8
|
-
|
|
9
|
-
/src/date/LocalTimePicker/LocalTimePicker.tsx
|
|
10
|
-
████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 9.18 % (4.196 KB)
|
|
11
|
-
/src/step/StepProvider.tsx
|
|
12
|
-
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.72 % (3.529 KB)
|
|
13
|
-
/src/date/LocalDatePicker/LocalDatePicker.tsx
|
|
14
|
-
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.92 % (3.161 KB)
|
|
15
|
-
/src/form/TForm/useTForm.tsx
|
|
16
|
-
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.45 % (2.95 KB)
|
|
17
|
-
/src/inputs/TableInput/TableInput.tsx
|
|
18
|
-
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.33 % (2.891 KB)
|
|
19
|
-
/src/inputs/CreditCardInput/CreditCardInput.tsx
|
|
20
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.08 % (2.324 KB)
|
|
21
|
-
/src/money/useMoneyInput.ts
|
|
22
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.85 % (2.215 KB)
|
|
23
|
-
/src/date/MonthDayPicker/MonthDayPicker.tsx
|
|
24
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.3 % (1.965 KB)
|
|
25
|
-
/src/inputs/CreditCardInput/CreditCardNumberInput.tsx
|
|
26
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.79 % (1.733 KB)
|
|
27
|
-
/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx
|
|
28
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.55 % (1.621 KB)
|
|
29
|
-
/src/date/YearSelect/YearSelect.tsx
|
|
30
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.4 % (1.553 KB)
|
|
31
|
-
/src/inputs/MaskedInput/useMaskedInput.ts
|
|
32
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.25 % (1.487 KB)
|
|
33
|
-
/src/date/MonthYearPicker/MonthYearPicker.tsx
|
|
34
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.69 % (1.229 KB)
|
|
35
|
-
/src/inputs/SinInput/SinInput.tsx
|
|
36
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.55 % (1.166 KB)
|
|
37
|
-
/src/date/LocalMonthSelect/LocalMonthSelect.tsx
|
|
38
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.48 % (1.135 KB)
|
|
39
|
-
/src/inputs/PhoneInput/PhoneInput.tsx
|
|
40
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.99 % (908 Bytes)
|
|
41
|
-
/src/inputs/TableInput/MoneyEditCell.tsx
|
|
42
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.79 % (820 Bytes)
|
|
43
|
-
/src/money/MoneyInput/MoneyInput.tsx
|
|
44
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.75 % (802 Bytes)
|
|
45
|
-
/src/inputs/TableInput/NumberEditCell.tsx
|
|
46
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.71 % (782 Bytes)
|
|
47
|
-
/src/inputs/TableInput/StringEditCell.tsx
|
|
48
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.57 % (717 Bytes)
|
|
49
|
-
/src/inputs/TableInput/CheckboxEditCell.tsx
|
|
50
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.54 % (702 Bytes)
|
|
51
|
-
/src/inputs/TableInput/LocalDateEditCell.tsx
|
|
52
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.52 % (695 Bytes)
|
|
53
|
-
/src/inputs/RadioGroup/RadioGroup.tsx
|
|
54
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.51 % (692 Bytes)
|
|
55
|
-
/home/artemis/Github/thr-addons/node_modules/style-inject/dist/style-inject.es.js
|
|
56
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.39 % (636 Bytes)
|
|
57
|
-
/src/inputs/TableInput/LocalTimeEditCell.tsx
|
|
58
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.36 % (622 Bytes)
|
|
59
|
-
/src/form/TForm/TForm.tsx
|
|
60
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.31 % (600 Bytes)
|
|
61
|
-
/src/inputs/MaskedInput/MaskedInput.tsx
|
|
62
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.19 % (543 Bytes)
|
|
63
|
-
/src/date/DatePicker/styles.css
|
|
64
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.18 % (538 Bytes)
|
|
65
|
-
/src/inputs/TableInput/DropdownCell.tsx
|
|
66
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.06 % (483 Bytes)
|
|
67
|
-
/src/step/FormStep.tsx
|
|
68
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.96 % (440 Bytes)
|
|
69
|
-
/src/date/LocalDatePicker/MaskedDateInput.tsx
|
|
70
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.93 % (426 Bytes)
|
|
71
|
-
/src/inputs/TableInput/MoneySumFooter.tsx
|
|
72
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.91 % (414 Bytes)
|
|
73
|
-
/src/inputs/TableInput/HoverCell.tsx
|
|
74
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.88 % (403 Bytes)
|
|
75
|
-
/src/inputs/TableInput/addRowOnTab.ts
|
|
76
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.68 % (312 Bytes)
|
|
77
|
-
/src/inputs/TableInput/LocalDateCell.tsx
|
|
78
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.62 % (285 Bytes)
|
|
79
|
-
/src/inputs/TableInput/MoneyCell.tsx
|
|
80
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.56 % (257 Bytes)
|
|
81
|
-
/src/step/Step.tsx
|
|
82
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.44 % (203 Bytes)
|
|
83
|
-
/src/step/useStep.ts
|
|
84
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.25 % (113 Bytes)
|
|
85
|
-
/src/step/stepContext.ts
|
|
86
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.18 % (80 Bytes)
|
|
87
|
-
/src/inputs/CreditCardInput/styles.css
|
|
88
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.17 % (78 Bytes)
|
|
89
|
-
/src/index.ts
|
|
90
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0 % (0 Byte)
|