@thx/controls 19.6.5 → 19.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/date/LocalDatePicker/LocalDatePicker.js +6 -1
- package/dist/esm/date/LocalDatePicker/LocalDatePicker.js.map +1 -1
- 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/inputs/MaskedInput/MaskedInput.js +4 -1
- package/dist/esm/inputs/MaskedInput/MaskedInput.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/stats.txt +42 -42
- 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
|
@@ -102,7 +102,12 @@ function LocalDatePicker(props) {
|
|
|
102
102
|
};
|
|
103
103
|
const handleInputChange = (e) => {
|
|
104
104
|
const inputValue = e.target.value;
|
|
105
|
-
|
|
105
|
+
if (!inputValue) {
|
|
106
|
+
onChange?.(null);
|
|
107
|
+
setSelected(null);
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
const date = toDate(inputValue);
|
|
106
111
|
date && handleDateChange(date);
|
|
107
112
|
};
|
|
108
113
|
const handleDatePickerBlur = (e) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalDatePicker.js","sources":["../../../../src/date/LocalDatePicker/LocalDatePicker.tsx"],"sourcesContent":["import type {LocalDate} from '@js-joda/core';\nimport {toDate, toLocalDate} from '@thx/date';\nimport debug from 'debug';\nimport {type ReactElement, useEffect, useRef, useState} from 'react';\nimport type {ReactDatePickerProps} from 'react-datepicker';\nimport {Icon, Input, type InputProps} from 'semantic-ui-react';\nimport {DatePicker} from '../DatePicker/index';\nimport '../DatePicker/styles.css';\nimport {MaskedDateInput, type MaskedDateInputRef} from './MaskedDateInput';\n\nconst d = debug('thx.controls.date.LocalDatePicker');\n\ninterface ILocalDatePicker {\n\tvalue?: LocalDate | number | null;\n\tonChange?: (value: LocalDate | null) => void;\n\tonChangeRaw?: () => void;\n\tminDate?: LocalDate;\n\tmaxDate?: LocalDate;\n\ticon?: boolean;\n\topenOnFocus?: boolean;\n\tstartFocused?: boolean;\n\tstartSelected?: boolean;\n}\n\ntype InputPropsOmitted = Omit<InputProps, 'onChange'>;\ntype ReactDatePickerPropsOmitted = Omit<Omit<ReactDatePickerProps, 'value'>, 'onChange' | 'minDate' | 'maxDate' | 'icon'>;\nexport type LocalDatePickerProps = ILocalDatePicker & InputPropsOmitted & ReactDatePickerPropsOmitted;\n\nexport function LocalDatePicker(props: LocalDatePickerProps): ReactElement {\n\tconst {\n\t\tminDate,\n\t\tmaxDate,\n\t\tvalue,\n\t\tonChange,\n\t\tonBlur,\n\t\tas,\n\t\taction,\n\t\tactionPosition,\n\t\tclassName,\n\t\terror,\n\t\tfluid,\n\t\tfocus,\n\t\ticon = true,\n\t\tinverted,\n\t\tlabel,\n\t\tlabelPosition,\n\t\tloading,\n\t\tsize,\n\t\ttabIndex,\n\t\ttransparent,\n\t\topenOnFocus = false,\n\t\tstartFocused,\n\t\tstartSelected,\n\t\t...rest\n\t} = props;\n\n\tconst inputProps = {\n\t\tas,\n\t\taction,\n\t\tactionPosition,\n\t\tclassName: `${className || ''} icon`,\n\t\terror,\n\t\tfocus,\n\t\tfluid,\n\t\tinverted,\n\t\tlabel,\n\t\tlabelPosition,\n\t\tloading,\n\t\tsize,\n\t\ttabIndex,\n\t\ttransparent,\n\t};\n\n\tconst maskedInputProps = {\n\t\tas,\n\t\taction,\n\t\tactionPosition,\n\t\tclassName,\n\t\terror,\n\t\tfocus,\n\t\tinverted,\n\t\tlabel,\n\t\tlabelPosition,\n\t\tloading,\n\t\tsize,\n\t\ttabIndex,\n\t\ttransparent,\n\t};\n\n\tconst iconProps = {\n\t\tclassName,\n\t\tinverted,\n\t\tloading,\n\t\tsize,\n\t\ttransparent,\n\t};\n\n\tconst [isOpen, setIsOpen] = useState(false);\n\tconst [selected, setSelected] = useState<Date | null>();\n\tconst ref = useRef<MaskedDateInputRef>(null);\n\n\tuseEffect(() => {\n\t\tsetSelected(value ? toDate(value) : null);\n\t}, [value]);\n\n\tuseEffect(() => {\n\t\tif (startFocused) {\n\t\t\tref.current?.focus();\n\t\t}\n\t}, [startFocused]);\n\n\tuseEffect(() => {\n\t\tif (startSelected) {\n\t\t\tref.current?.select();\n\t\t}\n\t}, [startSelected]);\n\n\tconst handleDateChange = (date: Date) => {\n\t\tlet allowedDate = toLocalDate(date);\n\n\t\tif (minDate?.isAfter(allowedDate)) {\n\t\t\tallowedDate = minDate;\n\t\t}\n\t\tif (maxDate?.isBefore(allowedDate)) {\n\t\t\tallowedDate = maxDate;\n\t\t}\n\t\tonChange && onChange(date ? allowedDate : null);\n\t\tsetSelected(toDate(allowedDate));\n\t\tsetIsOpen(false);\n\t};\n\n\tconst handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n\t\tconst inputValue = e.target.value;\n\t\tconst date =
|
|
1
|
+
{"version":3,"file":"LocalDatePicker.js","sources":["../../../../src/date/LocalDatePicker/LocalDatePicker.tsx"],"sourcesContent":["import type {LocalDate} from '@js-joda/core';\nimport {toDate, toLocalDate} from '@thx/date';\nimport debug from 'debug';\nimport {type ReactElement, useEffect, useRef, useState} from 'react';\nimport type {ReactDatePickerProps} from 'react-datepicker';\nimport {Icon, Input, type InputProps} from 'semantic-ui-react';\nimport {DatePicker} from '../DatePicker/index';\nimport '../DatePicker/styles.css';\nimport {MaskedDateInput, type MaskedDateInputRef} from './MaskedDateInput';\n\nconst d = debug('thx.controls.date.LocalDatePicker');\n\ninterface ILocalDatePicker {\n\tvalue?: LocalDate | number | null;\n\tonChange?: (value: LocalDate | null) => void;\n\tonChangeRaw?: () => void;\n\tminDate?: LocalDate;\n\tmaxDate?: LocalDate;\n\ticon?: boolean;\n\topenOnFocus?: boolean;\n\tstartFocused?: boolean;\n\tstartSelected?: boolean;\n}\n\ntype InputPropsOmitted = Omit<InputProps, 'onChange'>;\ntype ReactDatePickerPropsOmitted = Omit<Omit<ReactDatePickerProps, 'value'>, 'onChange' | 'minDate' | 'maxDate' | 'icon'>;\nexport type LocalDatePickerProps = ILocalDatePicker & InputPropsOmitted & ReactDatePickerPropsOmitted;\n\nexport function LocalDatePicker(props: LocalDatePickerProps): ReactElement {\n\tconst {\n\t\tminDate,\n\t\tmaxDate,\n\t\tvalue,\n\t\tonChange,\n\t\tonBlur,\n\t\tas,\n\t\taction,\n\t\tactionPosition,\n\t\tclassName,\n\t\terror,\n\t\tfluid,\n\t\tfocus,\n\t\ticon = true,\n\t\tinverted,\n\t\tlabel,\n\t\tlabelPosition,\n\t\tloading,\n\t\tsize,\n\t\ttabIndex,\n\t\ttransparent,\n\t\topenOnFocus = false,\n\t\tstartFocused,\n\t\tstartSelected,\n\t\t...rest\n\t} = props;\n\n\tconst inputProps = {\n\t\tas,\n\t\taction,\n\t\tactionPosition,\n\t\tclassName: `${className || ''} icon`,\n\t\terror,\n\t\tfocus,\n\t\tfluid,\n\t\tinverted,\n\t\tlabel,\n\t\tlabelPosition,\n\t\tloading,\n\t\tsize,\n\t\ttabIndex,\n\t\ttransparent,\n\t};\n\n\tconst maskedInputProps = {\n\t\tas,\n\t\taction,\n\t\tactionPosition,\n\t\tclassName,\n\t\terror,\n\t\tfocus,\n\t\tinverted,\n\t\tlabel,\n\t\tlabelPosition,\n\t\tloading,\n\t\tsize,\n\t\ttabIndex,\n\t\ttransparent,\n\t};\n\n\tconst iconProps = {\n\t\tclassName,\n\t\tinverted,\n\t\tloading,\n\t\tsize,\n\t\ttransparent,\n\t};\n\n\tconst [isOpen, setIsOpen] = useState(false);\n\tconst [selected, setSelected] = useState<Date | null>();\n\tconst ref = useRef<MaskedDateInputRef>(null);\n\n\tuseEffect(() => {\n\t\tsetSelected(value ? toDate(value) : null);\n\t}, [value]);\n\n\tuseEffect(() => {\n\t\tif (startFocused) {\n\t\t\tref.current?.focus();\n\t\t}\n\t}, [startFocused]);\n\n\tuseEffect(() => {\n\t\tif (startSelected) {\n\t\t\tref.current?.select();\n\t\t}\n\t}, [startSelected]);\n\n\tconst handleDateChange = (date: Date) => {\n\t\tlet allowedDate = toLocalDate(date);\n\n\t\tif (minDate?.isAfter(allowedDate)) {\n\t\t\tallowedDate = minDate;\n\t\t}\n\t\tif (maxDate?.isBefore(allowedDate)) {\n\t\t\tallowedDate = maxDate;\n\t\t}\n\t\tonChange && onChange(date ? allowedDate : null);\n\t\tsetSelected(toDate(allowedDate));\n\t\tsetIsOpen(false);\n\t};\n\n\tconst handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n\t\tconst inputValue = e.target.value;\n\n\t\tif (!inputValue) {\n\t\t\tonChange?.(null);\n\t\t\tsetSelected(null);\n\t\t\treturn;\n\t\t}\n\n\t\tconst date = toDate(inputValue);\n\t\tdate && handleDateChange(date);\n\t};\n\n\tconst handleDatePickerBlur = (e: React.FocusEvent<HTMLInputElement>) => {\n\t\tsetIsOpen(false);\n\t\tonBlur && onBlur(e);\n\t\thandleInputChange(e);\n\t};\n\n\tconst toggleDatePicker = () => {\n\t\tsetIsOpen(!isOpen);\n\t};\n\n\tconst handleOnKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n\t\t// toggle on enter\n\t\te?.key === 'Enter' && toggleDatePicker();\n\t\t// hide on escape\n\t\te?.key === 'Escape' && setIsOpen(false);\n\t};\n\n\treturn (\n\t\t<DatePicker\n\t\t\t{...rest}\n\t\t\tselected={selected}\n\t\t\tonChange={handleDateChange}\n\t\t\tcustomInput={\n\t\t\t\t<Input {...inputProps}>\n\t\t\t\t\t<MaskedDateInput\n\t\t\t\t\t\t{...maskedInputProps}\n\t\t\t\t\t\tonBlur={handleDatePickerBlur}\n\t\t\t\t\t\tvalue={selected}\n\t\t\t\t\t\tonClick={({target}: {target: HTMLInputElement}) => (openOnFocus ? setIsOpen(!isOpen) : target.select())}\n\t\t\t\t\t\tonKeyDown={handleOnKeyDown}\n\t\t\t\t\t\tref={ref}\n\t\t\t\t\t/>\n\t\t\t\t\t{icon && <Icon {...iconProps} onClick={toggleDatePicker} tabIndex={-1} name=\"calendar alternate\" link />}\n\t\t\t\t</Input>\n\t\t\t}\n\t\t\tminDate={minDate ? toDate(minDate) : null}\n\t\t\tmaxDate={maxDate ? toDate(maxDate) : null}\n\t\t\topen={isOpen}\n\t\t\tenableTabLoop={openOnFocus}\n\t\t\tpreventOpenOnFocus={openOnFocus}\n\t\t\tonBlur={handleDatePickerBlur}\n\t\t\tonClickOutside={() => setIsOpen(false)}\n\t\t/>\n\t);\n}\n"],"names":[],"mappings":";;;;;;;;AAUU,MAAM,mCAAmC,EAAA;AAkB5C,SAAS,gBAAgB,KAA2C,EAAA;AAC1E,EAAM,MAAA;AAAA,IACL,OAAA;AAAA,IACA,OAAA;AAAA,IACA,KAAA;AAAA,IACA,QAAA;AAAA,IACA,MAAA;AAAA,IACA,EAAA;AAAA,IACA,MAAA;AAAA,IACA,cAAA;AAAA,IACA,SAAA;AAAA,IACA,KAAA;AAAA,IACA,KAAA;AAAA,IACA,KAAA;AAAA,IACA,IAAO,GAAA,IAAA;AAAA,IACP,QAAA;AAAA,IACA,KAAA;AAAA,IACA,aAAA;AAAA,IACA,OAAA;AAAA,IACA,IAAA;AAAA,IACA,QAAA;AAAA,IACA,WAAA;AAAA,IACA,WAAc,GAAA,KAAA;AAAA,IACd,YAAA;AAAA,IACA,aAAA;AAAA,IACG,GAAA,IAAA;AAAA,GACA,GAAA,KAAA,CAAA;AAEJ,EAAA,MAAM,UAAa,GAAA;AAAA,IAClB,EAAA;AAAA,IACA,MAAA;AAAA,IACA,cAAA;AAAA,IACA,SAAA,EAAW,GAAG,SAAa,IAAA,EAAA,CAAA,KAAA,CAAA;AAAA,IAC3B,KAAA;AAAA,IACA,KAAA;AAAA,IACA,KAAA;AAAA,IAC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A,EAAgB,MAAM,SAAA,CAAU,KAAK,CAAA;AAAA,GACtC,CAAA,CAAA;AAEF;;;;"}
|
|
@@ -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":[],"mappings":";;;;;;AAOU,MAAM,mCAAmC,EAAA;AAwBnD,SAAS,KAAA,CAAM,CAAW,EAAA,EAAA,EAAY,EAAoB,EAAA;AACzD,EAAA,OAAO,KAAK,GAAI,CAAA,EAAA,EAAI,KAAK,GAAI,CAAA,EAAA,EAAI,CAAC,CAAC,CAAA,CAAA;AACpC,CAAA;AAEO,SAAS,gBAAgB,SAA8B,EAAA;AAC7D,EAAM,MAAA,KAAA,GAAQ,UAAU,IAAK,EAAA,CAAA;AAC7B,EAAM,MAAA,OAAA,GAAU,UAAU,MAAO,EAAA,CAAA;AACjC,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AI,GAAA,IAAA,CAAA;AACtC,MAAA,QAAA,GAAW,EAAE,CAAA,CAAA;AAAA,KACd;AAAA,IACA,MAAA,EAAQ,CAAC,CAA0C,KAAA;AAGlD,MAAM,MAAA,GAAA,GAAO,EAAE,MAA4B,CAAA,KAAA,CAAA;AAC3C,MAAM,MAAA,MAAA,GAAS,2BAA2B,GAAG,CAAA,CAAA;AAE7C,MAAA,IAAI,MAAQ,EAAA;AACX,QAAA,QAAA,GAAW,MAAM,CAAA,CAAA;AACjB,QAAA,UAAA,CAAW,MAAM;AAChB,UAAA,MAAM,YAAiB,EAAC,MAAA,EAAQ,EAAC,IAAM,EAAA,KAAA,EAAO,QAAO,EAAA,CAAA;AACrD,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,UAAC,CAAA,CAAE,OAA4B,KAAQ,GAAA,aAAA,CAAA;AAAA,SACtC,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;;;;"}
|
|
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}}\n\t\t/>\n\t);\n}\n"],"names":[],"mappings":";;;;;;AAOU,MAAM,mCAAmC,EAAA;AAwBnD,SAAS,KAAA,CAAM,CAAW,EAAA,EAAA,EAAY,EAAoB,EAAA;AACzD,EAAA,OAAO,KAAK,GAAI,CAAA,EAAA,EAAI,KAAK,GAAI,CAAA,EAAA,EAAI,CAAC,CAAC,CAAA,CAAA;AACpC,CAAA;AAEO,SAAS,gBAAgB,SAA8B,EAAA;AAC7D,EAAM,MAAA,KAAA,GAAQ,UAAU,IAAK,EAAA,CAAA;AAC7B,EAAM,MAAA,OAAA,GA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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';
|
|
@@ -19,10 +19,13 @@ const MaskedInput = forwardRef((props, ref) => {
|
|
|
19
19
|
[inputRef]
|
|
20
20
|
);
|
|
21
21
|
return /* @__PURE__ */ React.createElement("input", {
|
|
22
|
+
autoComplete: "on",
|
|
22
23
|
disabled,
|
|
23
24
|
name,
|
|
24
25
|
ref: inputRef,
|
|
25
|
-
onBlur
|
|
26
|
+
onBlur,
|
|
27
|
+
defaultValue: value,
|
|
28
|
+
onInput: (e) => onChange?.(e.target.value)
|
|
26
29
|
});
|
|
27
30
|
});
|
|
28
31
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MaskedInput.js","sources":["../../../../src/inputs/MaskedInput/MaskedInput.tsx"],"sourcesContent":["import debug from 'debug';\nimport {forwardRef, useImperativeHandle} from 'react';\nimport type {InputProps} from 'semantic-ui-react';\nimport {useMaskedInput, type UseMaskedInputProps} from './useMaskedInput';\n\nconst d = debug('thx.controls.inputs.MaskedInput');\n\nexport interface MaskedInputRef {\n\tfocus: () => void;\n\tselect: () => void;\n}\n\nexport type MaskedInputProps = {\n\tname?: string;\n\tonBlur?: (event: any) => void;\n} & UseMaskedInputProps &\n\tOmit<InputProps, 'onChange'>;\n\nexport const MaskedInput = forwardRef<MaskedInputRef, MaskedInputProps>((props, ref) => {\n\tconst {name, onBlur, disabled, onChange, mask, value} = props;\n\n\tconst inputRef = useMaskedInput({mask, value, onChange});\n\n\tuseImperativeHandle(\n\t\tref,\n\t\t() => ({\n\t\t\tfocus: () => {\n\t\t\t\tinputRef.current?.focus();\n\t\t\t},\n\t\t\tselect: () => {\n\t\t\t\tinputRef.current?.select();\n\t\t\t},\n\t\t}),\n\t\t[inputRef],\n\t);\n\n\treturn <input
|
|
1
|
+
{"version":3,"file":"MaskedInput.js","sources":["../../../../src/inputs/MaskedInput/MaskedInput.tsx"],"sourcesContent":["import debug from 'debug';\nimport {forwardRef, useImperativeHandle} from 'react';\nimport type {InputProps} from 'semantic-ui-react';\nimport {useMaskedInput, type UseMaskedInputProps} from './useMaskedInput';\n\nconst d = debug('thx.controls.inputs.MaskedInput');\n\nexport interface MaskedInputRef {\n\tfocus: () => void;\n\tselect: () => void;\n}\n\nexport type MaskedInputProps = {\n\tname?: string;\n\tonBlur?: (event: any) => void;\n} & UseMaskedInputProps &\n\tOmit<InputProps, 'onChange'>;\n\nexport const MaskedInput = forwardRef<MaskedInputRef, MaskedInputProps>((props, ref) => {\n\tconst {name, onBlur, disabled, onChange, mask, value} = props;\n\n\tconst inputRef = useMaskedInput({mask, value, onChange});\n\n\tuseImperativeHandle(\n\t\tref,\n\t\t() => ({\n\t\t\tfocus: () => {\n\t\t\t\tinputRef.current?.focus();\n\t\t\t},\n\t\t\tselect: () => {\n\t\t\t\tinputRef.current?.select();\n\t\t\t},\n\t\t}),\n\t\t[inputRef],\n\t);\n\n\treturn (\n\t\t<input\n\t\t\tautoComplete=\"on\"\n\t\t\tdisabled={disabled}\n\t\t\tname={name}\n\t\t\tref={inputRef}\n\t\t\tonBlur={onBlur}\n\t\t\tdefaultValue={value}\n\t\t\tonInput={e => onChange?.((e.target as HTMLInputElement).value)}\n\t\t/>\n\t);\n});\n"],"names":[],"mappings":";;;;AAKU,MAAM,iCAAiC,EAAA;AAa1C,MAAM,WAAc,GAAA,UAAA,CAA6C,CAAC,KAAA,EAAO,GAAQ,KAAA;AACvF,EAAA,MAAM,EAAC,IAAM,EAAA,MAAA,EAAQ,UAAU,QAAU,EAAA,IAAA,EAAM,OAAS,GAAA,KAAA,CAAA;AAExD,EAAA,MAAM,WAAW,cAAe,CAAA,EAAC,IAAM,EAAA,KAAA,EAAO,UAAS,CAAA,CAAA;AAEvD,EAAA,mBAAA;AAAA,IACC,GAAA;AAAA,IACA,OAAO;AAAA,MACN,OAAO,MAAM;AACZ,QAAA,QAAA,CAAS,SAAS,KAAM,EAAA,CAAA;AAAA,OACzB;AAAA,MACA,QAAQ,MAAM;AACb,QAAA,QAAA,CAAS,SAAS,MAAO,EAAA,CAAA;AAAA,OAC1B;AAAA,KACD,CAAA;AAAA,IACA,CAAC,QAAQ,CAAA;AAAA,GACV,CAAA;AAEA,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA;AAAA,IACA,YAAa,EAAA,IAAA;AAAA,IACb,QAAA;AAAA,IACA,IAAA;AAAA,IACA,GAAK,EAAA,QAAA;AAAA,IACL,MAAA;AAAA,IACA,YAAc,EAAA,KAAA;AAAA,IACd,OAAS,EAAA,CAAA,CAAA,KAAK,QAAY,GAAA,CAAA,CAAE,OAA4B,KAAK,CAAA;AAAA,GAC9D,CAAA,CAAA;AAEF,CAAC;;;;"}
|
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":"f6ff0719-1"}]},{"name":"step/useStep.js","children":[{"name":"src/step/useStep.ts","uid":"f6ff0719-3"}]},{"name":"step/Step.js","children":[{"name":"src/step/Step.tsx","uid":"f6ff0719-5"}]},{"name":"step/FormStep.js","children":[{"name":"src/step/FormStep.tsx","uid":"f6ff0719-7"}]},{"name":"step/StepProvider.js","children":[{"name":"src/step/StepProvider.tsx","uid":"f6ff0719-9"}]},{"name":"date/LocalDatePicker/LocalDatePicker.js","children":[{"name":"src/date/LocalDatePicker/LocalDatePicker.tsx","uid":"f6ff0719-11"}]},{"name":"date/LocalMonthSelect/LocalMonthSelect.js","children":[{"name":"src/date/LocalMonthSelect/LocalMonthSelect.tsx","uid":"f6ff0719-13"}]},{"name":"date/LocalTimePicker/LocalTimePicker.js","children":[{"name":"src/date/LocalTimePicker/LocalTimePicker.tsx","uid":"f6ff0719-15"}]},{"name":"date/MonthYearPicker/MonthYearPicker.js","children":[{"name":"src/date/MonthYearPicker/MonthYearPicker.tsx","uid":"f6ff0719-17"}]},{"name":"date/MonthDayPicker/MonthDayPicker.js","children":[{"name":"src/date/MonthDayPicker/MonthDayPicker.tsx","uid":"f6ff0719-19"}]},{"name":"money/MoneyCurrencyInput/MoneyCurrencyInput.js","children":[{"name":"src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","uid":"f6ff0719-21"}]},{"name":"money/MoneyInput/MoneyInput.js","children":[{"name":"src/money/MoneyInput/MoneyInput.tsx","uid":"f6ff0719-23"}]},{"name":"inputs/MaskedInput/useMaskedInput.js","children":[{"name":"src/inputs/MaskedInput/useMaskedInput.ts","uid":"f6ff0719-25"}]},{"name":"inputs/CreditCardInput/CreditCardInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardInput.tsx","uid":"f6ff0719-27"}]},{"name":"inputs/RadioGroup/RadioGroup.js","children":[{"name":"src/inputs/RadioGroup/RadioGroup.tsx","uid":"f6ff0719-29"}]},{"name":"form/TForm/TForm.js","children":[{"name":"src/form/TForm/TForm.tsx","uid":"f6ff0719-31"}]},{"name":"date/YearSelect/YearSelect.js","children":[{"name":"src/date/YearSelect/YearSelect.tsx","uid":"f6ff0719-33"}]},{"name":"inputs/MaskedInput/MaskedInput.js","children":[{"name":"src/inputs/MaskedInput/MaskedInput.tsx","uid":"f6ff0719-35"}]},{"name":"inputs/PhoneInput/PhoneInput.js","children":[{"name":"src/inputs/PhoneInput/PhoneInput.tsx","uid":"f6ff0719-37"}]},{"name":"inputs/SinInput/SinInput.js","children":[{"name":"src/inputs/SinInput/SinInput.tsx","uid":"f6ff0719-39"}]},{"name":"form/TForm/useTForm.js","children":[{"name":"src/form/TForm/useTForm.tsx","uid":"f6ff0719-41"}]},{"name":"inputs/TableInput/addRowOnTab.js","children":[{"name":"src/inputs/TableInput/addRowOnTab.ts","uid":"f6ff0719-43"}]},{"name":"inputs/TableInput/MoneyCell.js","children":[{"name":"src/inputs/TableInput/MoneyCell.tsx","uid":"f6ff0719-45"}]},{"name":"inputs/TableInput/TableInput.js","children":[{"name":"src/inputs/TableInput/TableInput.tsx","uid":"f6ff0719-47"}]},{"name":"inputs/TableInput/MoneyEditCell.js","children":[{"name":"src/inputs/TableInput/MoneyEditCell.tsx","uid":"f6ff0719-49"}]},{"name":"inputs/TableInput/LocalDateCell.js","children":[{"name":"src/inputs/TableInput/LocalDateCell.tsx","uid":"f6ff0719-51"}]},{"name":"inputs/TableInput/CheckboxEditCell.js","children":[{"name":"src/inputs/TableInput/CheckboxEditCell.tsx","uid":"f6ff0719-53"}]},{"name":"inputs/TableInput/LocalDateEditCell.js","children":[{"name":"src/inputs/TableInput/LocalDateEditCell.tsx","uid":"f6ff0719-55"}]},{"name":"inputs/TableInput/LocalTimeEditCell.js","children":[{"name":"src/inputs/TableInput/LocalTimeEditCell.tsx","uid":"f6ff0719-57"}]},{"name":"inputs/TableInput/NumberEditCell.js","children":[{"name":"src/inputs/TableInput/NumberEditCell.tsx","uid":"f6ff0719-59"}]},{"name":"inputs/TableInput/MoneySumFooter.js","children":[{"name":"src/inputs/TableInput/MoneySumFooter.tsx","uid":"f6ff0719-61"}]},{"name":"inputs/TableInput/DropdownCell.js","children":[{"name":"src/inputs/TableInput/DropdownCell.tsx","uid":"f6ff0719-63"}]},{"name":"inputs/TableInput/StringEditCell.js","children":[{"name":"src/inputs/TableInput/StringEditCell.tsx","uid":"f6ff0719-65"}]},{"name":"inputs/TableInput/HoverCell.js","children":[{"name":"src/inputs/TableInput/HoverCell.tsx","uid":"f6ff0719-67"}]},{"name":"step/stepContext.js","children":[{"name":"src/step/stepContext.ts","uid":"f6ff0719-69"}]},{"name":"date/DatePicker/styles.css.js","children":[{"name":"src/date/DatePicker/styles.css","uid":"f6ff0719-71"}]},{"name":"money/useMoneyInput.js","children":[{"name":"src/money/useMoneyInput.ts","uid":"f6ff0719-73"}]},{"name":"date/LocalDatePicker/MaskedDateInput.js","children":[{"name":"src/date/LocalDatePicker/MaskedDateInput.tsx","uid":"f6ff0719-75"}]},{"name":"inputs/CreditCardInput/styles.css.js","children":[{"name":"src/inputs/CreditCardInput/styles.css","uid":"f6ff0719-77"}]},{"name":"inputs/CreditCardInput/CreditCardNumberInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardNumberInput.tsx","uid":"f6ff0719-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":"f6ff0719-81"}]}],"isRoot":true},"nodeParts":{"f6ff0719-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"f6ff0719-0"},"f6ff0719-3":{"renderedLength":113,"gzipLength":107,"brotliLength":82,"metaUid":"f6ff0719-2"},"f6ff0719-5":{"renderedLength":203,"gzipLength":155,"brotliLength":111,"metaUid":"f6ff0719-4"},"f6ff0719-7":{"renderedLength":440,"gzipLength":270,"brotliLength":214,"metaUid":"f6ff0719-6"},"f6ff0719-9":{"renderedLength":3529,"gzipLength":1015,"brotliLength":861,"metaUid":"f6ff0719-8"},"f6ff0719-11":{"renderedLength":3161,"gzipLength":952,"brotliLength":853,"metaUid":"f6ff0719-10"},"f6ff0719-13":{"renderedLength":1135,"gzipLength":505,"brotliLength":415,"metaUid":"f6ff0719-12"},"f6ff0719-15":{"renderedLength":4196,"gzipLength":1261,"brotliLength":1126,"metaUid":"f6ff0719-14"},"f6ff0719-17":{"renderedLength":1229,"gzipLength":496,"brotliLength":424,"metaUid":"f6ff0719-16"},"f6ff0719-19":{"renderedLength":1965,"gzipLength":655,"brotliLength":544,"metaUid":"f6ff0719-18"},"f6ff0719-21":{"renderedLength":1621,"gzipLength":646,"brotliLength":553,"metaUid":"f6ff0719-20"},"f6ff0719-23":{"renderedLength":802,"gzipLength":399,"brotliLength":317,"metaUid":"f6ff0719-22"},"f6ff0719-25":{"renderedLength":1487,"gzipLength":501,"brotliLength":423,"metaUid":"f6ff0719-24"},"f6ff0719-27":{"renderedLength":2324,"gzipLength":584,"brotliLength":495,"metaUid":"f6ff0719-26"},"f6ff0719-29":{"renderedLength":692,"gzipLength":342,"brotliLength":289,"metaUid":"f6ff0719-28"},"f6ff0719-31":{"renderedLength":600,"gzipLength":308,"brotliLength":267,"metaUid":"f6ff0719-30"},"f6ff0719-33":{"renderedLength":1553,"gzipLength":579,"brotliLength":461,"metaUid":"f6ff0719-32"},"f6ff0719-35":{"renderedLength":543,"gzipLength":305,"brotliLength":252,"metaUid":"f6ff0719-34"},"f6ff0719-37":{"renderedLength":908,"gzipLength":382,"brotliLength":319,"metaUid":"f6ff0719-36"},"f6ff0719-39":{"renderedLength":1166,"gzipLength":540,"brotliLength":469,"metaUid":"f6ff0719-38"},"f6ff0719-41":{"renderedLength":2950,"gzipLength":958,"brotliLength":830,"metaUid":"f6ff0719-40"},"f6ff0719-43":{"renderedLength":312,"gzipLength":199,"brotliLength":173,"metaUid":"f6ff0719-42"},"f6ff0719-45":{"renderedLength":257,"gzipLength":185,"brotliLength":149,"metaUid":"f6ff0719-44"},"f6ff0719-47":{"renderedLength":2891,"gzipLength":854,"brotliLength":780,"metaUid":"f6ff0719-46"},"f6ff0719-49":{"renderedLength":820,"gzipLength":397,"brotliLength":349,"metaUid":"f6ff0719-48"},"f6ff0719-51":{"renderedLength":285,"gzipLength":198,"brotliLength":170,"metaUid":"f6ff0719-50"},"f6ff0719-53":{"renderedLength":702,"gzipLength":369,"brotliLength":330,"metaUid":"f6ff0719-52"},"f6ff0719-55":{"renderedLength":695,"gzipLength":349,"brotliLength":295,"metaUid":"f6ff0719-54"},"f6ff0719-57":{"renderedLength":622,"gzipLength":322,"brotliLength":269,"metaUid":"f6ff0719-56"},"f6ff0719-59":{"renderedLength":782,"gzipLength":409,"brotliLength":345,"metaUid":"f6ff0719-58"},"f6ff0719-61":{"renderedLength":414,"gzipLength":259,"brotliLength":219,"metaUid":"f6ff0719-60"},"f6ff0719-63":{"renderedLength":483,"gzipLength":251,"brotliLength":208,"metaUid":"f6ff0719-62"},"f6ff0719-65":{"renderedLength":717,"gzipLength":372,"brotliLength":319,"metaUid":"f6ff0719-64"},"f6ff0719-67":{"renderedLength":403,"gzipLength":244,"brotliLength":195,"metaUid":"f6ff0719-66"},"f6ff0719-69":{"renderedLength":80,"gzipLength":92,"brotliLength":72,"metaUid":"f6ff0719-68"},"f6ff0719-71":{"renderedLength":538,"gzipLength":261,"brotliLength":211,"metaUid":"f6ff0719-70"},"f6ff0719-73":{"renderedLength":2187,"gzipLength":771,"brotliLength":658,"metaUid":"f6ff0719-72"},"f6ff0719-75":{"renderedLength":426,"gzipLength":286,"brotliLength":244,"metaUid":"f6ff0719-74"},"f6ff0719-77":{"renderedLength":78,"gzipLength":92,"brotliLength":79,"metaUid":"f6ff0719-76"},"f6ff0719-79":{"renderedLength":1733,"gzipLength":697,"brotliLength":623,"metaUid":"f6ff0719-78"},"f6ff0719-81":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"metaUid":"f6ff0719-80"}},"nodeMetas":{"f6ff0719-0":{"id":"/src/index.ts","moduleParts":{"index.js":"f6ff0719-1"},"imported":[{"uid":"f6ff0719-82"},{"uid":"f6ff0719-83"},{"uid":"f6ff0719-84"},{"uid":"f6ff0719-85"},{"uid":"f6ff0719-86"},{"uid":"f6ff0719-87"},{"uid":"f6ff0719-88"},{"uid":"f6ff0719-89"},{"uid":"f6ff0719-90"},{"uid":"f6ff0719-91"},{"uid":"f6ff0719-92"},{"uid":"f6ff0719-93"},{"uid":"f6ff0719-94"},{"uid":"f6ff0719-95"},{"uid":"f6ff0719-96"},{"uid":"f6ff0719-97"}],"importedBy":[],"isEntry":true},"f6ff0719-2":{"id":"/src/step/useStep.ts","moduleParts":{"step/useStep.js":"f6ff0719-3"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-68"}],"importedBy":[{"uid":"f6ff0719-97"},{"uid":"f6ff0719-6"}]},"f6ff0719-4":{"id":"/src/step/Step.tsx","moduleParts":{"step/Step.js":"f6ff0719-5"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"}],"importedBy":[{"uid":"f6ff0719-97"},{"uid":"f6ff0719-8"}]},"f6ff0719-6":{"id":"/src/step/FormStep.tsx","moduleParts":{"step/FormStep.js":"f6ff0719-7"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-2"}],"importedBy":[{"uid":"f6ff0719-97"},{"uid":"f6ff0719-8"}]},"f6ff0719-8":{"id":"/src/step/StepProvider.tsx","moduleParts":{"step/StepProvider.js":"f6ff0719-9"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-116"},{"uid":"f6ff0719-101"},{"uid":"f6ff0719-6"},{"uid":"f6ff0719-4"},{"uid":"f6ff0719-68"}],"importedBy":[{"uid":"f6ff0719-97"}]},"f6ff0719-10":{"id":"/src/date/LocalDatePicker/LocalDatePicker.tsx","moduleParts":{"date/LocalDatePicker/LocalDatePicker.js":"f6ff0719-11"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-99"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-101"},{"uid":"f6ff0719-102"},{"uid":"f6ff0719-70"},{"uid":"f6ff0719-74"}],"importedBy":[{"uid":"f6ff0719-82"}]},"f6ff0719-12":{"id":"/src/date/LocalMonthSelect/LocalMonthSelect.tsx","moduleParts":{"date/LocalMonthSelect/LocalMonthSelect.js":"f6ff0719-13"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-103"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-101"}],"importedBy":[{"uid":"f6ff0719-83"}]},"f6ff0719-14":{"id":"/src/date/LocalTimePicker/LocalTimePicker.tsx","moduleParts":{"date/LocalTimePicker/LocalTimePicker.js":"f6ff0719-15"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-103"},{"uid":"f6ff0719-99"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-104"}],"importedBy":[{"uid":"f6ff0719-84"}]},"f6ff0719-16":{"id":"/src/date/MonthYearPicker/MonthYearPicker.tsx","moduleParts":{"date/MonthYearPicker/MonthYearPicker.js":"f6ff0719-17"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-103"},{"uid":"f6ff0719-99"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-101"},{"uid":"f6ff0719-102"}],"importedBy":[{"uid":"f6ff0719-86"}]},"f6ff0719-18":{"id":"/src/date/MonthDayPicker/MonthDayPicker.tsx","moduleParts":{"date/MonthDayPicker/MonthDayPicker.js":"f6ff0719-19"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-99"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-101"},{"uid":"f6ff0719-102"}],"importedBy":[{"uid":"f6ff0719-85"}]},"f6ff0719-20":{"id":"/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","moduleParts":{"money/MoneyCurrencyInput/MoneyCurrencyInput.js":"f6ff0719-21"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-114"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-115"},{"uid":"f6ff0719-101"},{"uid":"f6ff0719-72"}],"importedBy":[{"uid":"f6ff0719-96"}]},"f6ff0719-22":{"id":"/src/money/MoneyInput/MoneyInput.tsx","moduleParts":{"money/MoneyInput/MoneyInput.js":"f6ff0719-23"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-114"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-115"},{"uid":"f6ff0719-101"},{"uid":"f6ff0719-72"}],"importedBy":[{"uid":"f6ff0719-95"}]},"f6ff0719-24":{"id":"/src/inputs/MaskedInput/useMaskedInput.ts","moduleParts":{"inputs/MaskedInput/useMaskedInput.js":"f6ff0719-25"},"imported":[{"uid":"f6ff0719-100"},{"uid":"f6ff0719-108"},{"uid":"f6ff0719-98"},{"uid":"f6ff0719-109"}],"importedBy":[{"uid":"f6ff0719-89"},{"uid":"f6ff0719-34"},{"uid":"f6ff0719-38"},{"uid":"f6ff0719-78"}]},"f6ff0719-26":{"id":"/src/inputs/CreditCardInput/CreditCardInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardInput.js":"f6ff0719-27"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-99"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-110"},{"uid":"f6ff0719-111"},{"uid":"f6ff0719-101"},{"uid":"f6ff0719-86"},{"uid":"f6ff0719-78"},{"uid":"f6ff0719-76"}],"importedBy":[{"uid":"f6ff0719-92"}]},"f6ff0719-28":{"id":"/src/inputs/RadioGroup/RadioGroup.tsx","moduleParts":{"inputs/RadioGroup/RadioGroup.js":"f6ff0719-29"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-101"}],"importedBy":[{"uid":"f6ff0719-90"}]},"f6ff0719-30":{"id":"/src/form/TForm/TForm.tsx","moduleParts":{"form/TForm/TForm.js":"f6ff0719-31"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-105"},{"uid":"f6ff0719-40"}],"importedBy":[{"uid":"f6ff0719-88"}]},"f6ff0719-32":{"id":"/src/date/YearSelect/YearSelect.tsx","moduleParts":{"date/YearSelect/YearSelect.js":"f6ff0719-33"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-101"}],"importedBy":[{"uid":"f6ff0719-87"}]},"f6ff0719-34":{"id":"/src/inputs/MaskedInput/MaskedInput.tsx","moduleParts":{"inputs/MaskedInput/MaskedInput.js":"f6ff0719-35"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-24"}],"importedBy":[{"uid":"f6ff0719-89"}]},"f6ff0719-36":{"id":"/src/inputs/PhoneInput/PhoneInput.tsx","moduleParts":{"inputs/PhoneInput/PhoneInput.js":"f6ff0719-37"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-101"},{"uid":"f6ff0719-89"}],"importedBy":[{"uid":"f6ff0719-91"}]},"f6ff0719-38":{"id":"/src/inputs/SinInput/SinInput.tsx","moduleParts":{"inputs/SinInput/SinInput.js":"f6ff0719-39"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-101"},{"uid":"f6ff0719-112"},{"uid":"f6ff0719-24"}],"importedBy":[{"uid":"f6ff0719-93"}]},"f6ff0719-40":{"id":"/src/form/TForm/useTForm.tsx","moduleParts":{"form/TForm/useTForm.js":"f6ff0719-41"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-106"},{"uid":"f6ff0719-105"},{"uid":"f6ff0719-107"},{"uid":"f6ff0719-101"}],"importedBy":[{"uid":"f6ff0719-88"},{"uid":"f6ff0719-30"}]},"f6ff0719-42":{"id":"/src/inputs/TableInput/addRowOnTab.ts","moduleParts":{"inputs/TableInput/addRowOnTab.js":"f6ff0719-43"},"imported":[],"importedBy":[{"uid":"f6ff0719-94"},{"uid":"f6ff0719-48"},{"uid":"f6ff0719-52"},{"uid":"f6ff0719-58"},{"uid":"f6ff0719-64"}]},"f6ff0719-44":{"id":"/src/inputs/TableInput/MoneyCell.tsx","moduleParts":{"inputs/TableInput/MoneyCell.js":"f6ff0719-45"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-114"}],"importedBy":[{"uid":"f6ff0719-94"}]},"f6ff0719-46":{"id":"/src/inputs/TableInput/TableInput.tsx","moduleParts":{"inputs/TableInput/TableInput.js":"f6ff0719-47"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-105"},{"uid":"f6ff0719-113"},{"uid":"f6ff0719-101"}],"importedBy":[{"uid":"f6ff0719-94"}]},"f6ff0719-48":{"id":"/src/inputs/TableInput/MoneyEditCell.tsx","moduleParts":{"inputs/TableInput/MoneyEditCell.js":"f6ff0719-49"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-95"},{"uid":"f6ff0719-42"}],"importedBy":[{"uid":"f6ff0719-94"}]},"f6ff0719-50":{"id":"/src/inputs/TableInput/LocalDateCell.tsx","moduleParts":{"inputs/TableInput/LocalDateCell.js":"f6ff0719-51"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-99"}],"importedBy":[{"uid":"f6ff0719-94"}]},"f6ff0719-52":{"id":"/src/inputs/TableInput/CheckboxEditCell.tsx","moduleParts":{"inputs/TableInput/CheckboxEditCell.js":"f6ff0719-53"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-101"},{"uid":"f6ff0719-42"}],"importedBy":[{"uid":"f6ff0719-94"}]},"f6ff0719-54":{"id":"/src/inputs/TableInput/LocalDateEditCell.tsx","moduleParts":{"inputs/TableInput/LocalDateEditCell.js":"f6ff0719-55"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-82"}],"importedBy":[{"uid":"f6ff0719-94"}]},"f6ff0719-56":{"id":"/src/inputs/TableInput/LocalTimeEditCell.tsx","moduleParts":{"inputs/TableInput/LocalTimeEditCell.js":"f6ff0719-57"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-84"}],"importedBy":[{"uid":"f6ff0719-94"}]},"f6ff0719-58":{"id":"/src/inputs/TableInput/NumberEditCell.tsx","moduleParts":{"inputs/TableInput/NumberEditCell.js":"f6ff0719-59"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-101"},{"uid":"f6ff0719-42"}],"importedBy":[{"uid":"f6ff0719-94"}]},"f6ff0719-60":{"id":"/src/inputs/TableInput/MoneySumFooter.tsx","moduleParts":{"inputs/TableInput/MoneySumFooter.js":"f6ff0719-61"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-114"}],"importedBy":[{"uid":"f6ff0719-94"}]},"f6ff0719-62":{"id":"/src/inputs/TableInput/DropdownCell.tsx","moduleParts":{"inputs/TableInput/DropdownCell.js":"f6ff0719-63"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-101"}],"importedBy":[{"uid":"f6ff0719-94"}]},"f6ff0719-64":{"id":"/src/inputs/TableInput/StringEditCell.tsx","moduleParts":{"inputs/TableInput/StringEditCell.js":"f6ff0719-65"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-101"},{"uid":"f6ff0719-42"}],"importedBy":[{"uid":"f6ff0719-94"}]},"f6ff0719-66":{"id":"/src/inputs/TableInput/HoverCell.tsx","moduleParts":{"inputs/TableInput/HoverCell.js":"f6ff0719-67"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"}],"importedBy":[{"uid":"f6ff0719-94"}]},"f6ff0719-68":{"id":"/src/step/stepContext.ts","moduleParts":{"step/stepContext.js":"f6ff0719-69"},"imported":[{"uid":"f6ff0719-98"}],"importedBy":[{"uid":"f6ff0719-2"},{"uid":"f6ff0719-8"}]},"f6ff0719-70":{"id":"/src/date/DatePicker/styles.css","moduleParts":{"date/DatePicker/styles.css.js":"f6ff0719-71"},"imported":[{"uid":"f6ff0719-80"}],"importedBy":[{"uid":"f6ff0719-10"},{"uid":"f6ff0719-102"}]},"f6ff0719-72":{"id":"/src/money/useMoneyInput.ts","moduleParts":{"money/useMoneyInput.js":"f6ff0719-73"},"imported":[{"uid":"f6ff0719-114"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-108"},{"uid":"f6ff0719-115"},{"uid":"f6ff0719-98"}],"importedBy":[{"uid":"f6ff0719-22"},{"uid":"f6ff0719-20"}]},"f6ff0719-74":{"id":"/src/date/LocalDatePicker/MaskedDateInput.tsx","moduleParts":{"date/LocalDatePicker/MaskedDateInput.js":"f6ff0719-75"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-89"}],"importedBy":[{"uid":"f6ff0719-10"}]},"f6ff0719-76":{"id":"/src/inputs/CreditCardInput/styles.css","moduleParts":{"inputs/CreditCardInput/styles.css.js":"f6ff0719-77"},"imported":[{"uid":"f6ff0719-80"}],"importedBy":[{"uid":"f6ff0719-26"}]},"f6ff0719-78":{"id":"/src/inputs/CreditCardInput/CreditCardNumberInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardNumberInput.js":"f6ff0719-79"},"imported":[{"uid":"f6ff0719-98"},{"uid":"f6ff0719-117"},{"uid":"f6ff0719-100"},{"uid":"f6ff0719-118"},{"uid":"f6ff0719-101"},{"uid":"f6ff0719-24"}],"importedBy":[{"uid":"f6ff0719-26"}]},"f6ff0719-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":"f6ff0719-81"},"imported":[],"importedBy":[{"uid":"f6ff0719-70"},{"uid":"f6ff0719-76"}]},"f6ff0719-82":{"id":"/src/date/LocalDatePicker/index.ts","moduleParts":{},"imported":[{"uid":"f6ff0719-10"}],"importedBy":[{"uid":"f6ff0719-0"},{"uid":"f6ff0719-54"}]},"f6ff0719-83":{"id":"/src/date/LocalMonthSelect/index.ts","moduleParts":{},"imported":[{"uid":"f6ff0719-12"}],"importedBy":[{"uid":"f6ff0719-0"}]},"f6ff0719-84":{"id":"/src/date/LocalTimePicker/index.ts","moduleParts":{},"imported":[{"uid":"f6ff0719-14"}],"importedBy":[{"uid":"f6ff0719-0"},{"uid":"f6ff0719-56"}]},"f6ff0719-85":{"id":"/src/date/MonthDayPicker/index.ts","moduleParts":{},"imported":[{"uid":"f6ff0719-18"}],"importedBy":[{"uid":"f6ff0719-0"}]},"f6ff0719-86":{"id":"/src/date/MonthYearPicker/index.ts","moduleParts":{},"imported":[{"uid":"f6ff0719-16"}],"importedBy":[{"uid":"f6ff0719-0"},{"uid":"f6ff0719-26"}]},"f6ff0719-87":{"id":"/src/date/YearSelect/index.ts","moduleParts":{},"imported":[{"uid":"f6ff0719-32"}],"importedBy":[{"uid":"f6ff0719-0"}]},"f6ff0719-88":{"id":"/src/form/TForm/index.ts","moduleParts":{},"imported":[{"uid":"f6ff0719-30"},{"uid":"f6ff0719-40"}],"importedBy":[{"uid":"f6ff0719-0"}]},"f6ff0719-89":{"id":"/src/inputs/MaskedInput/index.ts","moduleParts":{},"imported":[{"uid":"f6ff0719-34"},{"uid":"f6ff0719-24"}],"importedBy":[{"uid":"f6ff0719-0"},{"uid":"f6ff0719-36"},{"uid":"f6ff0719-74"}]},"f6ff0719-90":{"id":"/src/inputs/RadioGroup/index.ts","moduleParts":{},"imported":[{"uid":"f6ff0719-28"}],"importedBy":[{"uid":"f6ff0719-0"}]},"f6ff0719-91":{"id":"/src/inputs/PhoneInput/index.ts","moduleParts":{},"imported":[{"uid":"f6ff0719-36"}],"importedBy":[{"uid":"f6ff0719-0"}]},"f6ff0719-92":{"id":"/src/inputs/CreditCardInput/index.ts","moduleParts":{},"imported":[{"uid":"f6ff0719-26"}],"importedBy":[{"uid":"f6ff0719-0"}]},"f6ff0719-93":{"id":"/src/inputs/SinInput/index.ts","moduleParts":{},"imported":[{"uid":"f6ff0719-38"}],"importedBy":[{"uid":"f6ff0719-0"}]},"f6ff0719-94":{"id":"/src/inputs/TableInput/index.ts","moduleParts":{},"imported":[{"uid":"f6ff0719-46"},{"uid":"f6ff0719-44"},{"uid":"f6ff0719-48"},{"uid":"f6ff0719-50"},{"uid":"f6ff0719-52"},{"uid":"f6ff0719-54"},{"uid":"f6ff0719-56"},{"uid":"f6ff0719-60"},{"uid":"f6ff0719-58"},{"uid":"f6ff0719-64"},{"uid":"f6ff0719-62"},{"uid":"f6ff0719-66"},{"uid":"f6ff0719-42"}],"importedBy":[{"uid":"f6ff0719-0"}]},"f6ff0719-95":{"id":"/src/money/MoneyInput/index.ts","moduleParts":{},"imported":[{"uid":"f6ff0719-22"}],"importedBy":[{"uid":"f6ff0719-0"},{"uid":"f6ff0719-48"}]},"f6ff0719-96":{"id":"/src/money/MoneyCurrencyInput/index.ts","moduleParts":{},"imported":[{"uid":"f6ff0719-20"}],"importedBy":[{"uid":"f6ff0719-0"}]},"f6ff0719-97":{"id":"/src/step/index.ts","moduleParts":{},"imported":[{"uid":"f6ff0719-4"},{"uid":"f6ff0719-2"},{"uid":"f6ff0719-6"},{"uid":"f6ff0719-8"}],"importedBy":[{"uid":"f6ff0719-0"}]},"f6ff0719-98":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-10"},{"uid":"f6ff0719-12"},{"uid":"f6ff0719-14"},{"uid":"f6ff0719-18"},{"uid":"f6ff0719-16"},{"uid":"f6ff0719-32"},{"uid":"f6ff0719-30"},{"uid":"f6ff0719-40"},{"uid":"f6ff0719-34"},{"uid":"f6ff0719-24"},{"uid":"f6ff0719-28"},{"uid":"f6ff0719-36"},{"uid":"f6ff0719-26"},{"uid":"f6ff0719-38"},{"uid":"f6ff0719-46"},{"uid":"f6ff0719-44"},{"uid":"f6ff0719-48"},{"uid":"f6ff0719-50"},{"uid":"f6ff0719-52"},{"uid":"f6ff0719-54"},{"uid":"f6ff0719-56"},{"uid":"f6ff0719-60"},{"uid":"f6ff0719-58"},{"uid":"f6ff0719-64"},{"uid":"f6ff0719-62"},{"uid":"f6ff0719-66"},{"uid":"f6ff0719-22"},{"uid":"f6ff0719-20"},{"uid":"f6ff0719-4"},{"uid":"f6ff0719-2"},{"uid":"f6ff0719-6"},{"uid":"f6ff0719-8"},{"uid":"f6ff0719-74"},{"uid":"f6ff0719-78"},{"uid":"f6ff0719-72"},{"uid":"f6ff0719-68"}],"isExternal":true},"f6ff0719-99":{"id":"@thx/date","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-10"},{"uid":"f6ff0719-14"},{"uid":"f6ff0719-18"},{"uid":"f6ff0719-16"},{"uid":"f6ff0719-26"},{"uid":"f6ff0719-50"}],"isExternal":true},"f6ff0719-100":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-10"},{"uid":"f6ff0719-12"},{"uid":"f6ff0719-14"},{"uid":"f6ff0719-18"},{"uid":"f6ff0719-16"},{"uid":"f6ff0719-32"},{"uid":"f6ff0719-30"},{"uid":"f6ff0719-34"},{"uid":"f6ff0719-24"},{"uid":"f6ff0719-28"},{"uid":"f6ff0719-36"},{"uid":"f6ff0719-26"},{"uid":"f6ff0719-38"},{"uid":"f6ff0719-46"},{"uid":"f6ff0719-48"},{"uid":"f6ff0719-52"},{"uid":"f6ff0719-54"},{"uid":"f6ff0719-56"},{"uid":"f6ff0719-58"},{"uid":"f6ff0719-64"},{"uid":"f6ff0719-66"},{"uid":"f6ff0719-22"},{"uid":"f6ff0719-20"},{"uid":"f6ff0719-4"},{"uid":"f6ff0719-6"},{"uid":"f6ff0719-8"},{"uid":"f6ff0719-74"},{"uid":"f6ff0719-78"},{"uid":"f6ff0719-72"}],"isExternal":true},"f6ff0719-101":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-10"},{"uid":"f6ff0719-12"},{"uid":"f6ff0719-18"},{"uid":"f6ff0719-16"},{"uid":"f6ff0719-32"},{"uid":"f6ff0719-40"},{"uid":"f6ff0719-28"},{"uid":"f6ff0719-36"},{"uid":"f6ff0719-26"},{"uid":"f6ff0719-38"},{"uid":"f6ff0719-46"},{"uid":"f6ff0719-52"},{"uid":"f6ff0719-58"},{"uid":"f6ff0719-64"},{"uid":"f6ff0719-62"},{"uid":"f6ff0719-22"},{"uid":"f6ff0719-20"},{"uid":"f6ff0719-8"},{"uid":"f6ff0719-78"}],"isExternal":true},"f6ff0719-102":{"id":"/src/date/DatePicker/index.ts","moduleParts":{},"imported":[{"uid":"f6ff0719-104"},{"uid":"f6ff0719-70"}],"importedBy":[{"uid":"f6ff0719-10"},{"uid":"f6ff0719-18"},{"uid":"f6ff0719-16"}]},"f6ff0719-103":{"id":"@js-joda/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-12"},{"uid":"f6ff0719-14"},{"uid":"f6ff0719-16"}],"isExternal":true},"f6ff0719-104":{"id":"react-datepicker","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-14"},{"uid":"f6ff0719-102"}],"isExternal":true},"f6ff0719-105":{"id":"formik","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-30"},{"uid":"f6ff0719-40"},{"uid":"f6ff0719-46"}],"isExternal":true},"f6ff0719-106":{"id":"flat","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-40"}],"isExternal":true},"f6ff0719-107":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-40"}],"isExternal":true},"f6ff0719-108":{"id":"inputmask","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-24"},{"uid":"f6ff0719-72"}],"isExternal":true},"f6ff0719-109":{"id":"use-deep-compare-effect","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-24"}],"isExternal":true},"f6ff0719-110":{"id":"react-credit-cards","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-26"}],"isExternal":true},"f6ff0719-111":{"id":"react-credit-cards/es/styles-compiled.css","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-26"}],"isExternal":true},"f6ff0719-112":{"id":"social-insurance-number","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-38"}],"isExternal":true},"f6ff0719-113":{"id":"react-table","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-46"}],"isExternal":true},"f6ff0719-114":{"id":"@thx/money","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-44"},{"uid":"f6ff0719-60"},{"uid":"f6ff0719-22"},{"uid":"f6ff0719-20"},{"uid":"f6ff0719-72"}],"isExternal":true},"f6ff0719-115":{"id":"js-money","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-22"},{"uid":"f6ff0719-20"},{"uid":"f6ff0719-72"}],"isExternal":true},"f6ff0719-116":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-8"}],"isExternal":true},"f6ff0719-117":{"id":"credit-card-type","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-78"}],"isExternal":true},"f6ff0719-118":{"id":"luhn","moduleParts":{},"imported":[],"importedBy":[{"uid":"f6ff0719-78"}],"isExternal":true}},"env":{"rollup":"2.79.2"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4932
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"5a90a871-1"}]},{"name":"step/useStep.js","children":[{"name":"src/step/useStep.ts","uid":"5a90a871-3"}]},{"name":"step/Step.js","children":[{"name":"src/step/Step.tsx","uid":"5a90a871-5"}]},{"name":"step/StepProvider.js","children":[{"name":"src/step/StepProvider.tsx","uid":"5a90a871-7"}]},{"name":"step/FormStep.js","children":[{"name":"src/step/FormStep.tsx","uid":"5a90a871-9"}]},{"name":"date/LocalMonthSelect/LocalMonthSelect.js","children":[{"name":"src/date/LocalMonthSelect/LocalMonthSelect.tsx","uid":"5a90a871-11"}]},{"name":"date/LocalDatePicker/LocalDatePicker.js","children":[{"name":"src/date/LocalDatePicker/LocalDatePicker.tsx","uid":"5a90a871-13"}]},{"name":"date/LocalTimePicker/LocalTimePicker.js","children":[{"name":"src/date/LocalTimePicker/LocalTimePicker.tsx","uid":"5a90a871-15"}]},{"name":"date/MonthYearPicker/MonthYearPicker.js","children":[{"name":"src/date/MonthYearPicker/MonthYearPicker.tsx","uid":"5a90a871-17"}]},{"name":"inputs/CreditCardInput/CreditCardInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardInput.tsx","uid":"5a90a871-19"}]},{"name":"date/MonthDayPicker/MonthDayPicker.js","children":[{"name":"src/date/MonthDayPicker/MonthDayPicker.tsx","uid":"5a90a871-21"}]},{"name":"inputs/TableInput/addRowOnTab.js","children":[{"name":"src/inputs/TableInput/addRowOnTab.ts","uid":"5a90a871-23"}]},{"name":"inputs/MaskedInput/useMaskedInput.js","children":[{"name":"src/inputs/MaskedInput/useMaskedInput.ts","uid":"5a90a871-25"}]},{"name":"money/MoneyCurrencyInput/MoneyCurrencyInput.js","children":[{"name":"src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","uid":"5a90a871-27"}]},{"name":"inputs/TableInput/TableInput.js","children":[{"name":"src/inputs/TableInput/TableInput.tsx","uid":"5a90a871-29"}]},{"name":"inputs/TableInput/MoneyCell.js","children":[{"name":"src/inputs/TableInput/MoneyCell.tsx","uid":"5a90a871-31"}]},{"name":"inputs/TableInput/CheckboxEditCell.js","children":[{"name":"src/inputs/TableInput/CheckboxEditCell.tsx","uid":"5a90a871-33"}]},{"name":"inputs/TableInput/MoneyEditCell.js","children":[{"name":"src/inputs/TableInput/MoneyEditCell.tsx","uid":"5a90a871-35"}]},{"name":"inputs/TableInput/LocalTimeEditCell.js","children":[{"name":"src/inputs/TableInput/LocalTimeEditCell.tsx","uid":"5a90a871-37"}]},{"name":"inputs/TableInput/LocalDateCell.js","children":[{"name":"src/inputs/TableInput/LocalDateCell.tsx","uid":"5a90a871-39"}]},{"name":"inputs/TableInput/LocalDateEditCell.js","children":[{"name":"src/inputs/TableInput/LocalDateEditCell.tsx","uid":"5a90a871-41"}]},{"name":"inputs/TableInput/NumberEditCell.js","children":[{"name":"src/inputs/TableInput/NumberEditCell.tsx","uid":"5a90a871-43"}]},{"name":"inputs/TableInput/MoneySumFooter.js","children":[{"name":"src/inputs/TableInput/MoneySumFooter.tsx","uid":"5a90a871-45"}]},{"name":"inputs/TableInput/StringEditCell.js","children":[{"name":"src/inputs/TableInput/StringEditCell.tsx","uid":"5a90a871-47"}]},{"name":"inputs/TableInput/DropdownCell.js","children":[{"name":"src/inputs/TableInput/DropdownCell.tsx","uid":"5a90a871-49"}]},{"name":"inputs/TableInput/HoverCell.js","children":[{"name":"src/inputs/TableInput/HoverCell.tsx","uid":"5a90a871-51"}]},{"name":"inputs/MaskedInput/MaskedInput.js","children":[{"name":"src/inputs/MaskedInput/MaskedInput.tsx","uid":"5a90a871-53"}]},{"name":"inputs/RadioGroup/RadioGroup.js","children":[{"name":"src/inputs/RadioGroup/RadioGroup.tsx","uid":"5a90a871-55"}]},{"name":"money/MoneyInput/MoneyInput.js","children":[{"name":"src/money/MoneyInput/MoneyInput.tsx","uid":"5a90a871-57"}]},{"name":"form/TForm/useTForm.js","children":[{"name":"src/form/TForm/useTForm.tsx","uid":"5a90a871-59"}]},{"name":"form/TForm/TForm.js","children":[{"name":"src/form/TForm/TForm.tsx","uid":"5a90a871-61"}]},{"name":"inputs/PhoneInput/PhoneInput.js","children":[{"name":"src/inputs/PhoneInput/PhoneInput.tsx","uid":"5a90a871-63"}]},{"name":"date/YearSelect/YearSelect.js","children":[{"name":"src/date/YearSelect/YearSelect.tsx","uid":"5a90a871-65"}]},{"name":"inputs/SinInput/SinInput.js","children":[{"name":"src/inputs/SinInput/SinInput.tsx","uid":"5a90a871-67"}]},{"name":"step/stepContext.js","children":[{"name":"src/step/stepContext.ts","uid":"5a90a871-69"}]},{"name":"date/DatePicker/styles.css.js","children":[{"name":"src/date/DatePicker/styles.css","uid":"5a90a871-71"}]},{"name":"date/LocalDatePicker/MaskedDateInput.js","children":[{"name":"src/date/LocalDatePicker/MaskedDateInput.tsx","uid":"5a90a871-73"}]},{"name":"money/useMoneyInput.js","children":[{"name":"src/money/useMoneyInput.ts","uid":"5a90a871-75"}]},{"name":"inputs/CreditCardInput/styles.css.js","children":[{"name":"src/inputs/CreditCardInput/styles.css","uid":"5a90a871-77"}]},{"name":"inputs/CreditCardInput/CreditCardNumberInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardNumberInput.tsx","uid":"5a90a871-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":"5a90a871-81"}]}],"isRoot":true},"nodeParts":{"5a90a871-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"5a90a871-0"},"5a90a871-3":{"renderedLength":113,"gzipLength":107,"brotliLength":82,"metaUid":"5a90a871-2"},"5a90a871-5":{"renderedLength":203,"gzipLength":155,"brotliLength":111,"metaUid":"5a90a871-4"},"5a90a871-7":{"renderedLength":3529,"gzipLength":1015,"brotliLength":861,"metaUid":"5a90a871-6"},"5a90a871-9":{"renderedLength":440,"gzipLength":270,"brotliLength":214,"metaUid":"5a90a871-8"},"5a90a871-11":{"renderedLength":1135,"gzipLength":505,"brotliLength":415,"metaUid":"5a90a871-10"},"5a90a871-13":{"renderedLength":3233,"gzipLength":970,"brotliLength":866,"metaUid":"5a90a871-12"},"5a90a871-15":{"renderedLength":4757,"gzipLength":1403,"brotliLength":1260,"metaUid":"5a90a871-14"},"5a90a871-17":{"renderedLength":1229,"gzipLength":496,"brotliLength":424,"metaUid":"5a90a871-16"},"5a90a871-19":{"renderedLength":2324,"gzipLength":584,"brotliLength":495,"metaUid":"5a90a871-18"},"5a90a871-21":{"renderedLength":1965,"gzipLength":655,"brotliLength":544,"metaUid":"5a90a871-20"},"5a90a871-23":{"renderedLength":312,"gzipLength":199,"brotliLength":173,"metaUid":"5a90a871-22"},"5a90a871-25":{"renderedLength":1487,"gzipLength":501,"brotliLength":423,"metaUid":"5a90a871-24"},"5a90a871-27":{"renderedLength":1621,"gzipLength":646,"brotliLength":553,"metaUid":"5a90a871-26"},"5a90a871-29":{"renderedLength":2891,"gzipLength":854,"brotliLength":780,"metaUid":"5a90a871-28"},"5a90a871-31":{"renderedLength":257,"gzipLength":185,"brotliLength":149,"metaUid":"5a90a871-30"},"5a90a871-33":{"renderedLength":702,"gzipLength":369,"brotliLength":330,"metaUid":"5a90a871-32"},"5a90a871-35":{"renderedLength":820,"gzipLength":397,"brotliLength":349,"metaUid":"5a90a871-34"},"5a90a871-37":{"renderedLength":622,"gzipLength":322,"brotliLength":269,"metaUid":"5a90a871-36"},"5a90a871-39":{"renderedLength":285,"gzipLength":198,"brotliLength":170,"metaUid":"5a90a871-38"},"5a90a871-41":{"renderedLength":695,"gzipLength":349,"brotliLength":295,"metaUid":"5a90a871-40"},"5a90a871-43":{"renderedLength":782,"gzipLength":409,"brotliLength":345,"metaUid":"5a90a871-42"},"5a90a871-45":{"renderedLength":414,"gzipLength":259,"brotliLength":219,"metaUid":"5a90a871-44"},"5a90a871-47":{"renderedLength":717,"gzipLength":372,"brotliLength":319,"metaUid":"5a90a871-46"},"5a90a871-49":{"renderedLength":483,"gzipLength":251,"brotliLength":208,"metaUid":"5a90a871-48"},"5a90a871-51":{"renderedLength":403,"gzipLength":244,"brotliLength":195,"metaUid":"5a90a871-50"},"5a90a871-53":{"renderedLength":640,"gzipLength":353,"brotliLength":294,"metaUid":"5a90a871-52"},"5a90a871-55":{"renderedLength":692,"gzipLength":342,"brotliLength":289,"metaUid":"5a90a871-54"},"5a90a871-57":{"renderedLength":802,"gzipLength":399,"brotliLength":317,"metaUid":"5a90a871-56"},"5a90a871-59":{"renderedLength":2950,"gzipLength":958,"brotliLength":830,"metaUid":"5a90a871-58"},"5a90a871-61":{"renderedLength":600,"gzipLength":308,"brotliLength":267,"metaUid":"5a90a871-60"},"5a90a871-63":{"renderedLength":908,"gzipLength":382,"brotliLength":319,"metaUid":"5a90a871-62"},"5a90a871-65":{"renderedLength":1553,"gzipLength":579,"brotliLength":461,"metaUid":"5a90a871-64"},"5a90a871-67":{"renderedLength":1166,"gzipLength":540,"brotliLength":469,"metaUid":"5a90a871-66"},"5a90a871-69":{"renderedLength":80,"gzipLength":92,"brotliLength":72,"metaUid":"5a90a871-68"},"5a90a871-71":{"renderedLength":538,"gzipLength":261,"brotliLength":211,"metaUid":"5a90a871-70"},"5a90a871-73":{"renderedLength":426,"gzipLength":286,"brotliLength":244,"metaUid":"5a90a871-72"},"5a90a871-75":{"renderedLength":2187,"gzipLength":771,"brotliLength":658,"metaUid":"5a90a871-74"},"5a90a871-77":{"renderedLength":78,"gzipLength":92,"brotliLength":79,"metaUid":"5a90a871-76"},"5a90a871-79":{"renderedLength":1733,"gzipLength":697,"brotliLength":623,"metaUid":"5a90a871-78"},"5a90a871-81":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"metaUid":"5a90a871-80"}},"nodeMetas":{"5a90a871-0":{"id":"/src/index.ts","moduleParts":{"index.js":"5a90a871-1"},"imported":[{"uid":"5a90a871-82"},{"uid":"5a90a871-83"},{"uid":"5a90a871-84"},{"uid":"5a90a871-85"},{"uid":"5a90a871-86"},{"uid":"5a90a871-87"},{"uid":"5a90a871-88"},{"uid":"5a90a871-89"},{"uid":"5a90a871-90"},{"uid":"5a90a871-91"},{"uid":"5a90a871-92"},{"uid":"5a90a871-93"},{"uid":"5a90a871-94"},{"uid":"5a90a871-95"},{"uid":"5a90a871-96"},{"uid":"5a90a871-97"}],"importedBy":[],"isEntry":true},"5a90a871-2":{"id":"/src/step/useStep.ts","moduleParts":{"step/useStep.js":"5a90a871-3"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-68"}],"importedBy":[{"uid":"5a90a871-97"},{"uid":"5a90a871-8"}]},"5a90a871-4":{"id":"/src/step/Step.tsx","moduleParts":{"step/Step.js":"5a90a871-5"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"}],"importedBy":[{"uid":"5a90a871-97"},{"uid":"5a90a871-6"}]},"5a90a871-6":{"id":"/src/step/StepProvider.tsx","moduleParts":{"step/StepProvider.js":"5a90a871-7"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"},{"uid":"5a90a871-116"},{"uid":"5a90a871-101"},{"uid":"5a90a871-8"},{"uid":"5a90a871-4"},{"uid":"5a90a871-68"}],"importedBy":[{"uid":"5a90a871-97"}]},"5a90a871-8":{"id":"/src/step/FormStep.tsx","moduleParts":{"step/FormStep.js":"5a90a871-9"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"},{"uid":"5a90a871-2"}],"importedBy":[{"uid":"5a90a871-97"},{"uid":"5a90a871-6"}]},"5a90a871-10":{"id":"/src/date/LocalMonthSelect/LocalMonthSelect.tsx","moduleParts":{"date/LocalMonthSelect/LocalMonthSelect.js":"5a90a871-11"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-103"},{"uid":"5a90a871-100"},{"uid":"5a90a871-101"}],"importedBy":[{"uid":"5a90a871-83"}]},"5a90a871-12":{"id":"/src/date/LocalDatePicker/LocalDatePicker.tsx","moduleParts":{"date/LocalDatePicker/LocalDatePicker.js":"5a90a871-13"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-99"},{"uid":"5a90a871-100"},{"uid":"5a90a871-101"},{"uid":"5a90a871-102"},{"uid":"5a90a871-70"},{"uid":"5a90a871-72"}],"importedBy":[{"uid":"5a90a871-82"}]},"5a90a871-14":{"id":"/src/date/LocalTimePicker/LocalTimePicker.tsx","moduleParts":{"date/LocalTimePicker/LocalTimePicker.js":"5a90a871-15"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-103"},{"uid":"5a90a871-99"},{"uid":"5a90a871-100"},{"uid":"5a90a871-104"}],"importedBy":[{"uid":"5a90a871-84"}]},"5a90a871-16":{"id":"/src/date/MonthYearPicker/MonthYearPicker.tsx","moduleParts":{"date/MonthYearPicker/MonthYearPicker.js":"5a90a871-17"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-103"},{"uid":"5a90a871-99"},{"uid":"5a90a871-100"},{"uid":"5a90a871-101"},{"uid":"5a90a871-102"}],"importedBy":[{"uid":"5a90a871-86"}]},"5a90a871-18":{"id":"/src/inputs/CreditCardInput/CreditCardInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardInput.js":"5a90a871-19"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-99"},{"uid":"5a90a871-100"},{"uid":"5a90a871-110"},{"uid":"5a90a871-111"},{"uid":"5a90a871-101"},{"uid":"5a90a871-86"},{"uid":"5a90a871-78"},{"uid":"5a90a871-76"}],"importedBy":[{"uid":"5a90a871-92"}]},"5a90a871-20":{"id":"/src/date/MonthDayPicker/MonthDayPicker.tsx","moduleParts":{"date/MonthDayPicker/MonthDayPicker.js":"5a90a871-21"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-99"},{"uid":"5a90a871-100"},{"uid":"5a90a871-101"},{"uid":"5a90a871-102"}],"importedBy":[{"uid":"5a90a871-85"}]},"5a90a871-22":{"id":"/src/inputs/TableInput/addRowOnTab.ts","moduleParts":{"inputs/TableInput/addRowOnTab.js":"5a90a871-23"},"imported":[],"importedBy":[{"uid":"5a90a871-94"},{"uid":"5a90a871-34"},{"uid":"5a90a871-32"},{"uid":"5a90a871-42"},{"uid":"5a90a871-46"}]},"5a90a871-24":{"id":"/src/inputs/MaskedInput/useMaskedInput.ts","moduleParts":{"inputs/MaskedInput/useMaskedInput.js":"5a90a871-25"},"imported":[{"uid":"5a90a871-100"},{"uid":"5a90a871-108"},{"uid":"5a90a871-98"},{"uid":"5a90a871-109"}],"importedBy":[{"uid":"5a90a871-89"},{"uid":"5a90a871-52"},{"uid":"5a90a871-66"},{"uid":"5a90a871-78"}]},"5a90a871-26":{"id":"/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","moduleParts":{"money/MoneyCurrencyInput/MoneyCurrencyInput.js":"5a90a871-27"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-114"},{"uid":"5a90a871-100"},{"uid":"5a90a871-115"},{"uid":"5a90a871-101"},{"uid":"5a90a871-74"}],"importedBy":[{"uid":"5a90a871-96"}]},"5a90a871-28":{"id":"/src/inputs/TableInput/TableInput.tsx","moduleParts":{"inputs/TableInput/TableInput.js":"5a90a871-29"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"},{"uid":"5a90a871-105"},{"uid":"5a90a871-113"},{"uid":"5a90a871-101"}],"importedBy":[{"uid":"5a90a871-94"}]},"5a90a871-30":{"id":"/src/inputs/TableInput/MoneyCell.tsx","moduleParts":{"inputs/TableInput/MoneyCell.js":"5a90a871-31"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-114"}],"importedBy":[{"uid":"5a90a871-94"}]},"5a90a871-32":{"id":"/src/inputs/TableInput/CheckboxEditCell.tsx","moduleParts":{"inputs/TableInput/CheckboxEditCell.js":"5a90a871-33"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"},{"uid":"5a90a871-101"},{"uid":"5a90a871-22"}],"importedBy":[{"uid":"5a90a871-94"}]},"5a90a871-34":{"id":"/src/inputs/TableInput/MoneyEditCell.tsx","moduleParts":{"inputs/TableInput/MoneyEditCell.js":"5a90a871-35"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"},{"uid":"5a90a871-95"},{"uid":"5a90a871-22"}],"importedBy":[{"uid":"5a90a871-94"}]},"5a90a871-36":{"id":"/src/inputs/TableInput/LocalTimeEditCell.tsx","moduleParts":{"inputs/TableInput/LocalTimeEditCell.js":"5a90a871-37"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"},{"uid":"5a90a871-84"}],"importedBy":[{"uid":"5a90a871-94"}]},"5a90a871-38":{"id":"/src/inputs/TableInput/LocalDateCell.tsx","moduleParts":{"inputs/TableInput/LocalDateCell.js":"5a90a871-39"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-99"}],"importedBy":[{"uid":"5a90a871-94"}]},"5a90a871-40":{"id":"/src/inputs/TableInput/LocalDateEditCell.tsx","moduleParts":{"inputs/TableInput/LocalDateEditCell.js":"5a90a871-41"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"},{"uid":"5a90a871-82"}],"importedBy":[{"uid":"5a90a871-94"}]},"5a90a871-42":{"id":"/src/inputs/TableInput/NumberEditCell.tsx","moduleParts":{"inputs/TableInput/NumberEditCell.js":"5a90a871-43"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"},{"uid":"5a90a871-101"},{"uid":"5a90a871-22"}],"importedBy":[{"uid":"5a90a871-94"}]},"5a90a871-44":{"id":"/src/inputs/TableInput/MoneySumFooter.tsx","moduleParts":{"inputs/TableInput/MoneySumFooter.js":"5a90a871-45"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-114"}],"importedBy":[{"uid":"5a90a871-94"}]},"5a90a871-46":{"id":"/src/inputs/TableInput/StringEditCell.tsx","moduleParts":{"inputs/TableInput/StringEditCell.js":"5a90a871-47"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"},{"uid":"5a90a871-101"},{"uid":"5a90a871-22"}],"importedBy":[{"uid":"5a90a871-94"}]},"5a90a871-48":{"id":"/src/inputs/TableInput/DropdownCell.tsx","moduleParts":{"inputs/TableInput/DropdownCell.js":"5a90a871-49"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-101"}],"importedBy":[{"uid":"5a90a871-94"}]},"5a90a871-50":{"id":"/src/inputs/TableInput/HoverCell.tsx","moduleParts":{"inputs/TableInput/HoverCell.js":"5a90a871-51"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"}],"importedBy":[{"uid":"5a90a871-94"}]},"5a90a871-52":{"id":"/src/inputs/MaskedInput/MaskedInput.tsx","moduleParts":{"inputs/MaskedInput/MaskedInput.js":"5a90a871-53"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"},{"uid":"5a90a871-24"}],"importedBy":[{"uid":"5a90a871-89"}]},"5a90a871-54":{"id":"/src/inputs/RadioGroup/RadioGroup.tsx","moduleParts":{"inputs/RadioGroup/RadioGroup.js":"5a90a871-55"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"},{"uid":"5a90a871-101"}],"importedBy":[{"uid":"5a90a871-90"}]},"5a90a871-56":{"id":"/src/money/MoneyInput/MoneyInput.tsx","moduleParts":{"money/MoneyInput/MoneyInput.js":"5a90a871-57"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-114"},{"uid":"5a90a871-100"},{"uid":"5a90a871-115"},{"uid":"5a90a871-101"},{"uid":"5a90a871-74"}],"importedBy":[{"uid":"5a90a871-95"}]},"5a90a871-58":{"id":"/src/form/TForm/useTForm.tsx","moduleParts":{"form/TForm/useTForm.js":"5a90a871-59"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-106"},{"uid":"5a90a871-105"},{"uid":"5a90a871-107"},{"uid":"5a90a871-101"}],"importedBy":[{"uid":"5a90a871-88"},{"uid":"5a90a871-60"}]},"5a90a871-60":{"id":"/src/form/TForm/TForm.tsx","moduleParts":{"form/TForm/TForm.js":"5a90a871-61"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"},{"uid":"5a90a871-105"},{"uid":"5a90a871-58"}],"importedBy":[{"uid":"5a90a871-88"}]},"5a90a871-62":{"id":"/src/inputs/PhoneInput/PhoneInput.tsx","moduleParts":{"inputs/PhoneInput/PhoneInput.js":"5a90a871-63"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"},{"uid":"5a90a871-101"},{"uid":"5a90a871-89"}],"importedBy":[{"uid":"5a90a871-91"}]},"5a90a871-64":{"id":"/src/date/YearSelect/YearSelect.tsx","moduleParts":{"date/YearSelect/YearSelect.js":"5a90a871-65"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"},{"uid":"5a90a871-101"}],"importedBy":[{"uid":"5a90a871-87"}]},"5a90a871-66":{"id":"/src/inputs/SinInput/SinInput.tsx","moduleParts":{"inputs/SinInput/SinInput.js":"5a90a871-67"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"},{"uid":"5a90a871-101"},{"uid":"5a90a871-112"},{"uid":"5a90a871-24"}],"importedBy":[{"uid":"5a90a871-93"}]},"5a90a871-68":{"id":"/src/step/stepContext.ts","moduleParts":{"step/stepContext.js":"5a90a871-69"},"imported":[{"uid":"5a90a871-98"}],"importedBy":[{"uid":"5a90a871-2"},{"uid":"5a90a871-6"}]},"5a90a871-70":{"id":"/src/date/DatePicker/styles.css","moduleParts":{"date/DatePicker/styles.css.js":"5a90a871-71"},"imported":[{"uid":"5a90a871-80"}],"importedBy":[{"uid":"5a90a871-12"},{"uid":"5a90a871-102"}]},"5a90a871-72":{"id":"/src/date/LocalDatePicker/MaskedDateInput.tsx","moduleParts":{"date/LocalDatePicker/MaskedDateInput.js":"5a90a871-73"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-100"},{"uid":"5a90a871-89"}],"importedBy":[{"uid":"5a90a871-12"}]},"5a90a871-74":{"id":"/src/money/useMoneyInput.ts","moduleParts":{"money/useMoneyInput.js":"5a90a871-75"},"imported":[{"uid":"5a90a871-114"},{"uid":"5a90a871-100"},{"uid":"5a90a871-108"},{"uid":"5a90a871-115"},{"uid":"5a90a871-98"}],"importedBy":[{"uid":"5a90a871-56"},{"uid":"5a90a871-26"}]},"5a90a871-76":{"id":"/src/inputs/CreditCardInput/styles.css","moduleParts":{"inputs/CreditCardInput/styles.css.js":"5a90a871-77"},"imported":[{"uid":"5a90a871-80"}],"importedBy":[{"uid":"5a90a871-18"}]},"5a90a871-78":{"id":"/src/inputs/CreditCardInput/CreditCardNumberInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardNumberInput.js":"5a90a871-79"},"imported":[{"uid":"5a90a871-98"},{"uid":"5a90a871-117"},{"uid":"5a90a871-100"},{"uid":"5a90a871-118"},{"uid":"5a90a871-101"},{"uid":"5a90a871-24"}],"importedBy":[{"uid":"5a90a871-18"}]},"5a90a871-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":"5a90a871-81"},"imported":[],"importedBy":[{"uid":"5a90a871-70"},{"uid":"5a90a871-76"}]},"5a90a871-82":{"id":"/src/date/LocalDatePicker/index.ts","moduleParts":{},"imported":[{"uid":"5a90a871-12"}],"importedBy":[{"uid":"5a90a871-0"},{"uid":"5a90a871-40"}]},"5a90a871-83":{"id":"/src/date/LocalMonthSelect/index.ts","moduleParts":{},"imported":[{"uid":"5a90a871-10"}],"importedBy":[{"uid":"5a90a871-0"}]},"5a90a871-84":{"id":"/src/date/LocalTimePicker/index.ts","moduleParts":{},"imported":[{"uid":"5a90a871-14"}],"importedBy":[{"uid":"5a90a871-0"},{"uid":"5a90a871-36"}]},"5a90a871-85":{"id":"/src/date/MonthDayPicker/index.ts","moduleParts":{},"imported":[{"uid":"5a90a871-20"}],"importedBy":[{"uid":"5a90a871-0"}]},"5a90a871-86":{"id":"/src/date/MonthYearPicker/index.ts","moduleParts":{},"imported":[{"uid":"5a90a871-16"}],"importedBy":[{"uid":"5a90a871-0"},{"uid":"5a90a871-18"}]},"5a90a871-87":{"id":"/src/date/YearSelect/index.ts","moduleParts":{},"imported":[{"uid":"5a90a871-64"}],"importedBy":[{"uid":"5a90a871-0"}]},"5a90a871-88":{"id":"/src/form/TForm/index.ts","moduleParts":{},"imported":[{"uid":"5a90a871-60"},{"uid":"5a90a871-58"}],"importedBy":[{"uid":"5a90a871-0"}]},"5a90a871-89":{"id":"/src/inputs/MaskedInput/index.ts","moduleParts":{},"imported":[{"uid":"5a90a871-52"},{"uid":"5a90a871-24"}],"importedBy":[{"uid":"5a90a871-0"},{"uid":"5a90a871-62"},{"uid":"5a90a871-72"}]},"5a90a871-90":{"id":"/src/inputs/RadioGroup/index.ts","moduleParts":{},"imported":[{"uid":"5a90a871-54"}],"importedBy":[{"uid":"5a90a871-0"}]},"5a90a871-91":{"id":"/src/inputs/PhoneInput/index.ts","moduleParts":{},"imported":[{"uid":"5a90a871-62"}],"importedBy":[{"uid":"5a90a871-0"}]},"5a90a871-92":{"id":"/src/inputs/CreditCardInput/index.ts","moduleParts":{},"imported":[{"uid":"5a90a871-18"}],"importedBy":[{"uid":"5a90a871-0"}]},"5a90a871-93":{"id":"/src/inputs/SinInput/index.ts","moduleParts":{},"imported":[{"uid":"5a90a871-66"}],"importedBy":[{"uid":"5a90a871-0"}]},"5a90a871-94":{"id":"/src/inputs/TableInput/index.ts","moduleParts":{},"imported":[{"uid":"5a90a871-28"},{"uid":"5a90a871-30"},{"uid":"5a90a871-34"},{"uid":"5a90a871-38"},{"uid":"5a90a871-32"},{"uid":"5a90a871-40"},{"uid":"5a90a871-36"},{"uid":"5a90a871-44"},{"uid":"5a90a871-42"},{"uid":"5a90a871-46"},{"uid":"5a90a871-48"},{"uid":"5a90a871-50"},{"uid":"5a90a871-22"}],"importedBy":[{"uid":"5a90a871-0"}]},"5a90a871-95":{"id":"/src/money/MoneyInput/index.ts","moduleParts":{},"imported":[{"uid":"5a90a871-56"}],"importedBy":[{"uid":"5a90a871-0"},{"uid":"5a90a871-34"}]},"5a90a871-96":{"id":"/src/money/MoneyCurrencyInput/index.ts","moduleParts":{},"imported":[{"uid":"5a90a871-26"}],"importedBy":[{"uid":"5a90a871-0"}]},"5a90a871-97":{"id":"/src/step/index.ts","moduleParts":{},"imported":[{"uid":"5a90a871-4"},{"uid":"5a90a871-2"},{"uid":"5a90a871-8"},{"uid":"5a90a871-6"}],"importedBy":[{"uid":"5a90a871-0"}]},"5a90a871-98":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-12"},{"uid":"5a90a871-10"},{"uid":"5a90a871-14"},{"uid":"5a90a871-20"},{"uid":"5a90a871-16"},{"uid":"5a90a871-64"},{"uid":"5a90a871-60"},{"uid":"5a90a871-58"},{"uid":"5a90a871-52"},{"uid":"5a90a871-24"},{"uid":"5a90a871-54"},{"uid":"5a90a871-62"},{"uid":"5a90a871-18"},{"uid":"5a90a871-66"},{"uid":"5a90a871-28"},{"uid":"5a90a871-30"},{"uid":"5a90a871-34"},{"uid":"5a90a871-38"},{"uid":"5a90a871-32"},{"uid":"5a90a871-40"},{"uid":"5a90a871-36"},{"uid":"5a90a871-44"},{"uid":"5a90a871-42"},{"uid":"5a90a871-46"},{"uid":"5a90a871-48"},{"uid":"5a90a871-50"},{"uid":"5a90a871-56"},{"uid":"5a90a871-26"},{"uid":"5a90a871-4"},{"uid":"5a90a871-2"},{"uid":"5a90a871-8"},{"uid":"5a90a871-6"},{"uid":"5a90a871-72"},{"uid":"5a90a871-78"},{"uid":"5a90a871-74"},{"uid":"5a90a871-68"}],"isExternal":true},"5a90a871-99":{"id":"@thx/date","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-12"},{"uid":"5a90a871-14"},{"uid":"5a90a871-20"},{"uid":"5a90a871-16"},{"uid":"5a90a871-18"},{"uid":"5a90a871-38"}],"isExternal":true},"5a90a871-100":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-12"},{"uid":"5a90a871-10"},{"uid":"5a90a871-14"},{"uid":"5a90a871-20"},{"uid":"5a90a871-16"},{"uid":"5a90a871-64"},{"uid":"5a90a871-60"},{"uid":"5a90a871-52"},{"uid":"5a90a871-24"},{"uid":"5a90a871-54"},{"uid":"5a90a871-62"},{"uid":"5a90a871-18"},{"uid":"5a90a871-66"},{"uid":"5a90a871-28"},{"uid":"5a90a871-34"},{"uid":"5a90a871-32"},{"uid":"5a90a871-40"},{"uid":"5a90a871-36"},{"uid":"5a90a871-42"},{"uid":"5a90a871-46"},{"uid":"5a90a871-50"},{"uid":"5a90a871-56"},{"uid":"5a90a871-26"},{"uid":"5a90a871-4"},{"uid":"5a90a871-8"},{"uid":"5a90a871-6"},{"uid":"5a90a871-72"},{"uid":"5a90a871-78"},{"uid":"5a90a871-74"}],"isExternal":true},"5a90a871-101":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-12"},{"uid":"5a90a871-10"},{"uid":"5a90a871-20"},{"uid":"5a90a871-16"},{"uid":"5a90a871-64"},{"uid":"5a90a871-58"},{"uid":"5a90a871-54"},{"uid":"5a90a871-62"},{"uid":"5a90a871-18"},{"uid":"5a90a871-66"},{"uid":"5a90a871-28"},{"uid":"5a90a871-32"},{"uid":"5a90a871-42"},{"uid":"5a90a871-46"},{"uid":"5a90a871-48"},{"uid":"5a90a871-56"},{"uid":"5a90a871-26"},{"uid":"5a90a871-6"},{"uid":"5a90a871-78"}],"isExternal":true},"5a90a871-102":{"id":"/src/date/DatePicker/index.ts","moduleParts":{},"imported":[{"uid":"5a90a871-104"},{"uid":"5a90a871-70"}],"importedBy":[{"uid":"5a90a871-12"},{"uid":"5a90a871-20"},{"uid":"5a90a871-16"}]},"5a90a871-103":{"id":"@js-joda/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-10"},{"uid":"5a90a871-14"},{"uid":"5a90a871-16"}],"isExternal":true},"5a90a871-104":{"id":"react-datepicker","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-14"},{"uid":"5a90a871-102"}],"isExternal":true},"5a90a871-105":{"id":"formik","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-60"},{"uid":"5a90a871-58"},{"uid":"5a90a871-28"}],"isExternal":true},"5a90a871-106":{"id":"flat","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-58"}],"isExternal":true},"5a90a871-107":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-58"}],"isExternal":true},"5a90a871-108":{"id":"inputmask","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-24"},{"uid":"5a90a871-74"}],"isExternal":true},"5a90a871-109":{"id":"use-deep-compare-effect","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-24"}],"isExternal":true},"5a90a871-110":{"id":"react-credit-cards","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-18"}],"isExternal":true},"5a90a871-111":{"id":"react-credit-cards/es/styles-compiled.css","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-18"}],"isExternal":true},"5a90a871-112":{"id":"social-insurance-number","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-66"}],"isExternal":true},"5a90a871-113":{"id":"react-table","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-28"}],"isExternal":true},"5a90a871-114":{"id":"@thx/money","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-30"},{"uid":"5a90a871-44"},{"uid":"5a90a871-56"},{"uid":"5a90a871-26"},{"uid":"5a90a871-74"}],"isExternal":true},"5a90a871-115":{"id":"js-money","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-56"},{"uid":"5a90a871-26"},{"uid":"5a90a871-74"}],"isExternal":true},"5a90a871-116":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-6"}],"isExternal":true},"5a90a871-117":{"id":"credit-card-type","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-78"}],"isExternal":true},"5a90a871-118":{"id":"luhn","moduleParts":{},"imported":[],"importedBy":[{"uid":"5a90a871-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;
|
package/dist/stats.txt
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
-----------------------------
|
|
2
2
|
Rollup File Analysis
|
|
3
3
|
-----------------------------
|
|
4
|
-
bundle size:
|
|
5
|
-
original size:
|
|
6
|
-
code reduction: 33.
|
|
4
|
+
bundle size: 46.408 KB
|
|
5
|
+
original size: 69.452 KB
|
|
6
|
+
code reduction: 33.18 %
|
|
7
7
|
module count: 41
|
|
8
8
|
|
|
9
9
|
/src/date/LocalTimePicker/LocalTimePicker.tsx
|
|
10
|
-
|
|
10
|
+
█████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 10.25 % (4.757 KB)
|
|
11
11
|
/src/step/StepProvider.tsx
|
|
12
|
-
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.
|
|
12
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.6 % (3.529 KB)
|
|
13
13
|
/src/date/LocalDatePicker/LocalDatePicker.tsx
|
|
14
|
-
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.
|
|
14
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.97 % (3.233 KB)
|
|
15
15
|
/src/form/TForm/useTForm.tsx
|
|
16
|
-
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.
|
|
16
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.36 % (2.95 KB)
|
|
17
17
|
/src/inputs/TableInput/TableInput.tsx
|
|
18
|
-
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.
|
|
18
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.23 % (2.891 KB)
|
|
19
19
|
/src/inputs/CreditCardInput/CreditCardInput.tsx
|
|
20
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.
|
|
20
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.01 % (2.324 KB)
|
|
21
21
|
/src/money/useMoneyInput.ts
|
|
22
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.
|
|
22
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.71 % (2.187 KB)
|
|
23
23
|
/src/date/MonthDayPicker/MonthDayPicker.tsx
|
|
24
|
-
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.
|
|
24
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.23 % (1.965 KB)
|
|
25
25
|
/src/inputs/CreditCardInput/CreditCardNumberInput.tsx
|
|
26
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.
|
|
26
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.73 % (1.733 KB)
|
|
27
27
|
/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx
|
|
28
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.
|
|
28
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.49 % (1.621 KB)
|
|
29
29
|
/src/date/YearSelect/YearSelect.tsx
|
|
30
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.
|
|
30
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.35 % (1.553 KB)
|
|
31
31
|
/src/inputs/MaskedInput/useMaskedInput.ts
|
|
32
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.
|
|
32
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.2 % (1.487 KB)
|
|
33
33
|
/src/date/MonthYearPicker/MonthYearPicker.tsx
|
|
34
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.
|
|
34
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.65 % (1.229 KB)
|
|
35
35
|
/src/inputs/SinInput/SinInput.tsx
|
|
36
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.
|
|
36
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.51 % (1.166 KB)
|
|
37
37
|
/src/date/LocalMonthSelect/LocalMonthSelect.tsx
|
|
38
|
-
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.
|
|
38
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.45 % (1.135 KB)
|
|
39
39
|
/src/inputs/PhoneInput/PhoneInput.tsx
|
|
40
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
40
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.96 % (908 Bytes)
|
|
41
41
|
/src/inputs/TableInput/MoneyEditCell.tsx
|
|
42
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
42
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.77 % (820 Bytes)
|
|
43
43
|
/src/money/MoneyInput/MoneyInput.tsx
|
|
44
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
44
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.73 % (802 Bytes)
|
|
45
45
|
/src/inputs/TableInput/NumberEditCell.tsx
|
|
46
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
46
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.69 % (782 Bytes)
|
|
47
47
|
/src/inputs/TableInput/StringEditCell.tsx
|
|
48
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
48
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.54 % (717 Bytes)
|
|
49
49
|
/src/inputs/TableInput/CheckboxEditCell.tsx
|
|
50
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
50
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.51 % (702 Bytes)
|
|
51
51
|
/src/inputs/TableInput/LocalDateEditCell.tsx
|
|
52
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
52
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.5 % (695 Bytes)
|
|
53
53
|
/src/inputs/RadioGroup/RadioGroup.tsx
|
|
54
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
54
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.49 % (692 Bytes)
|
|
55
|
+
/src/inputs/MaskedInput/MaskedInput.tsx
|
|
56
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.38 % (640 Bytes)
|
|
55
57
|
/home/artemis/Github/thr-addons/node_modules/style-inject/dist/style-inject.es.js
|
|
56
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
58
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.37 % (636 Bytes)
|
|
57
59
|
/src/inputs/TableInput/LocalTimeEditCell.tsx
|
|
58
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
60
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.34 % (622 Bytes)
|
|
59
61
|
/src/form/TForm/TForm.tsx
|
|
60
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
61
|
-
/src/inputs/MaskedInput/MaskedInput.tsx
|
|
62
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.19 % (543 Bytes)
|
|
62
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.29 % (600 Bytes)
|
|
63
63
|
/src/date/DatePicker/styles.css
|
|
64
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
64
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.16 % (538 Bytes)
|
|
65
65
|
/src/inputs/TableInput/DropdownCell.tsx
|
|
66
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.
|
|
66
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.04 % (483 Bytes)
|
|
67
67
|
/src/step/FormStep.tsx
|
|
68
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
68
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.95 % (440 Bytes)
|
|
69
69
|
/src/date/LocalDatePicker/MaskedDateInput.tsx
|
|
70
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
70
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.92 % (426 Bytes)
|
|
71
71
|
/src/inputs/TableInput/MoneySumFooter.tsx
|
|
72
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
72
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.89 % (414 Bytes)
|
|
73
73
|
/src/inputs/TableInput/HoverCell.tsx
|
|
74
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
74
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.87 % (403 Bytes)
|
|
75
75
|
/src/inputs/TableInput/addRowOnTab.ts
|
|
76
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
76
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.67 % (312 Bytes)
|
|
77
77
|
/src/inputs/TableInput/LocalDateCell.tsx
|
|
78
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
78
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.61 % (285 Bytes)
|
|
79
79
|
/src/inputs/TableInput/MoneyCell.tsx
|
|
80
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
80
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.55 % (257 Bytes)
|
|
81
81
|
/src/step/Step.tsx
|
|
82
82
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.44 % (203 Bytes)
|
|
83
83
|
/src/step/useStep.ts
|
|
84
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
84
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.24 % (113 Bytes)
|
|
85
85
|
/src/step/stepContext.ts
|
|
86
|
-
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.
|
|
86
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.17 % (80 Bytes)
|
|
87
87
|
/src/inputs/CreditCardInput/styles.css
|
|
88
88
|
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.17 % (78 Bytes)
|
|
89
89
|
/src/index.ts
|
|
@@ -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.
|
|
3
|
+
"version": "19.9.1",
|
|
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": "763acfda795505e62d0ad324ee91a740ad7d7cd0"
|
|
69
69
|
}
|