@thx/controls 16.8.6-alpha.0 → 16.9.0
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 +16 -2
- package/dist/esm/date/LocalDatePicker/LocalDatePicker.js.map +1 -1
- package/dist/esm/date/LocalDatePicker/MaskedDateInput.js +3 -3
- package/dist/esm/date/LocalDatePicker/MaskedDateInput.js.map +1 -1
- package/dist/esm/date/LocalTimePicker/MaskedTimeInput.js.map +1 -1
- package/dist/esm/inputs/MaskedInput/MaskedInput.js +11 -3
- package/dist/esm/inputs/MaskedInput/MaskedInput.js.map +1 -1
- package/dist/esm/money/useMoneyInput.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/stats.txt +100 -0
- package/dist/types/date/LocalDatePicker/LocalDatePicker.d.ts +2 -0
- package/dist/types/date/LocalDatePicker/MaskedDateInput.d.ts +3 -1
- package/dist/types/inputs/MaskedInput/MaskedInput.d.ts +5 -1
- package/dist/types/inputs/TableInput/CheckboxEditCell.d.ts +0 -1
- package/dist/types/inputs/TableInput/LocalDateCell.d.ts +0 -1
- package/dist/types/inputs/TableInput/LocalDateEditCell.d.ts +0 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState, useEffect } from 'react';
|
|
1
|
+
import React, { useState, useRef, useEffect } from 'react';
|
|
2
2
|
import { toDate, toLocalDate } from '@thx/date';
|
|
3
3
|
import debug from 'debug';
|
|
4
4
|
import { Input, Icon } from 'semantic-ui-react';
|
|
@@ -30,6 +30,8 @@ function LocalDatePicker(props) {
|
|
|
30
30
|
tabIndex,
|
|
31
31
|
transparent,
|
|
32
32
|
openOnFocus = false,
|
|
33
|
+
startFocused,
|
|
34
|
+
startSelected,
|
|
33
35
|
...rest
|
|
34
36
|
} = props;
|
|
35
37
|
const inputProps = {
|
|
@@ -72,9 +74,20 @@ function LocalDatePicker(props) {
|
|
|
72
74
|
};
|
|
73
75
|
const [isOpen, setIsOpen] = useState(false);
|
|
74
76
|
const [selected, setSelected] = useState();
|
|
77
|
+
const ref = useRef(null);
|
|
75
78
|
useEffect(() => {
|
|
76
79
|
setSelected(value ? toDate(value) : null);
|
|
77
80
|
}, [value]);
|
|
81
|
+
useEffect(() => {
|
|
82
|
+
if (startFocused) {
|
|
83
|
+
ref.current?.focus();
|
|
84
|
+
}
|
|
85
|
+
}, [startFocused]);
|
|
86
|
+
useEffect(() => {
|
|
87
|
+
if (startSelected) {
|
|
88
|
+
ref.current?.select();
|
|
89
|
+
}
|
|
90
|
+
}, [startSelected]);
|
|
78
91
|
const handleDateChange = (date) => {
|
|
79
92
|
let allowedDate = toLocalDate(date);
|
|
80
93
|
if (minDate?.isAfter(allowedDate)) {
|
|
@@ -115,7 +128,8 @@ function LocalDatePicker(props) {
|
|
|
115
128
|
onBlur: handleDatePickerBlur,
|
|
116
129
|
value: selected,
|
|
117
130
|
onClick: ({ target }) => openOnFocus ? setIsOpen(!isOpen) : target.select(),
|
|
118
|
-
onKeyDown: handleOnKeyDown
|
|
131
|
+
onKeyDown: handleOnKeyDown,
|
|
132
|
+
ref
|
|
119
133
|
}), icon && /* @__PURE__ */ React.createElement(Icon, {
|
|
120
134
|
...iconProps,
|
|
121
135
|
onClick: toggleDatePicker,
|
|
@@ -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 {useEffect, useState} from 'react';\nimport type {ReactDatePickerProps} from 'react-datepicker';\nimport {Icon, Input, InputProps} from 'semantic-ui-react';\nimport {DatePicker} from '../DatePicker/index';\nimport '../DatePicker/styles.css';\nimport {MaskedDateInput} 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}\n\ntype InputPropsOmitted = Omit<InputProps, 'onChange'>;\ntype ReactDatePickerPropsOmitted = Omit<Omit<ReactDatePickerProps, 'value'>, 'onChange' | 'minDate' | 'maxDate'>;\nexport type LocalDatePickerProps = ILocalDatePicker & InputPropsOmitted & ReactDatePickerPropsOmitted;\n\nexport function LocalDatePicker(props: LocalDatePickerProps): JSX.Element {\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\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\n\tuseEffect(() => {\n\t\tsetSelected(value ? toDate(value) : null);\n\t}, [value]);\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 = inputValue ? toDate(inputValue) : null;\n\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/>\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;
|
|
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 {useEffect, useRef, useState} from 'react';\nimport type {ReactDatePickerProps} from 'react-datepicker';\nimport {Icon, Input, InputProps} from 'semantic-ui-react';\nimport {DatePicker} from '../DatePicker/index';\nimport '../DatePicker/styles.css';\nimport {MaskedDateInput, 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\tselect?: boolean;\n}\n\ntype InputPropsOmitted = Omit<InputProps, 'onChange'>;\ntype ReactDatePickerPropsOmitted = Omit<Omit<ReactDatePickerProps, 'value'>, 'onChange' | 'minDate' | 'maxDate'>;\nexport type LocalDatePickerProps = ILocalDatePicker & InputPropsOmitted & ReactDatePickerPropsOmitted;\n\nexport function LocalDatePicker(props: LocalDatePickerProps): JSX.Element {\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 = inputValue ? toDate(inputValue) : null;\n\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":"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"}
|
|
@@ -4,10 +4,11 @@ import { MaskedInput } from '../../inputs/MaskedInput/MaskedInput.js';
|
|
|
4
4
|
import '../../inputs/MaskedInput/useMaskedInput.js';
|
|
5
5
|
|
|
6
6
|
debug("thx.controls.date.LocalDatePicker.MaskedDateInput");
|
|
7
|
-
|
|
7
|
+
const MaskedDateInput = forwardRef((props, ref) => {
|
|
8
8
|
const { onChange, name, ...rest } = props;
|
|
9
9
|
return /* @__PURE__ */ React.createElement(MaskedInput, {
|
|
10
10
|
...rest,
|
|
11
|
+
ref,
|
|
11
12
|
name,
|
|
12
13
|
mask: { alias: "datetime", inputFormat: "mm/dd/yyyy" },
|
|
13
14
|
onChange: (value) => {
|
|
@@ -15,8 +16,7 @@ function MaskedDateInputInner(props, ref) {
|
|
|
15
16
|
onChange({ target: { value: value || "" } });
|
|
16
17
|
}
|
|
17
18
|
});
|
|
18
|
-
}
|
|
19
|
-
const MaskedDateInput = forwardRef(MaskedDateInputInner);
|
|
19
|
+
});
|
|
20
20
|
|
|
21
21
|
export { MaskedDateInput };
|
|
22
22
|
//# sourceMappingURL=MaskedDateInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MaskedDateInput.js","sources":["../../../../src/date/LocalDatePicker/MaskedDateInput.tsx"],"sourcesContent":["import debug from 'debug';\nimport {forwardRef} from 'react';\nimport {MaskedInput, MaskedInputProps} from '../../inputs/MaskedInput';\n\nconst d = debug('thx.controls.date.LocalDatePicker.MaskedDateInput');\n\nexport interface MaskedDateInputValue {\n\ttarget: {\n\t\tvalue: string;\n\t};\n}\n\nexport interface MaskedDateInputProps {\n\tname?: string;\n\tonChange?: (value: MaskedDateInputValue) => void;\n}\n\
|
|
1
|
+
{"version":3,"file":"MaskedDateInput.js","sources":["../../../../src/date/LocalDatePicker/MaskedDateInput.tsx"],"sourcesContent":["import debug from 'debug';\nimport {forwardRef} from 'react';\nimport {MaskedInput, MaskedInputProps} from '../../inputs/MaskedInput';\nimport type {MaskedInputRef} from '../../inputs/MaskedInput/MaskedInput';\n\nconst d = debug('thx.controls.date.LocalDatePicker.MaskedDateInput');\n\nexport type MaskedDateInputRef = MaskedInputRef;\n\nexport interface MaskedDateInputValue {\n\ttarget: {\n\t\tvalue: string;\n\t};\n}\n\nexport interface MaskedDateInputProps {\n\tname?: string;\n\tonChange?: (value: MaskedDateInputValue) => void;\n}\n\nexport const MaskedDateInput = forwardRef<MaskedDateInputRef, MaskedDateInputProps & Omit<MaskedInputProps, 'onChange'>>((props, ref) => {\n\tconst {onChange, name, ...rest} = props;\n\n\treturn (\n\t\t<MaskedInput\n\t\t\t{...rest}\n\t\t\tref={ref}\n\t\t\tname={name}\n\t\t\tmask={{alias: 'datetime', inputFormat: 'mm/dd/yyyy'}}\n\t\t\tonChange={(value: string) => {\n\t\t\t\tif (onChange) onChange({target: {value: value || ''}});\n\t\t\t}}\n\t\t/>\n\t);\n});\n"],"names":[],"mappings":";;;;;AAKU,MAAM,mDAAmD,EAAA;AAe5D,MAAM,eAAkB,GAAA,UAAA,CAA0F,CAAC,KAAA,EAAO,GAAQ,KAAA;AACxI,EAAM,MAAA,EAAC,QAAU,EAAA,IAAA,EAAA,GAAS,IAAQ,EAAA,GAAA,KAAA,CAAA;AAElC,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,WAAA,EAAA;AAAA,IACI,GAAA,IAAA;AAAA,IACJ,GAAA;AAAA,IACA,IAAA;AAAA,IACA,IAAM,EAAA,EAAC,KAAO,EAAA,UAAA,EAAY,aAAa,YAAY,EAAA;AAAA,IACnD,QAAA,EAAU,CAAC,KAAkB,KAAA;AAC5B,MAAI,IAAA,QAAA;AAAU,QAAA,QAAA,CAAS,EAAC,MAAQ,EAAA,EAAC,OAAO,KAAS,IAAA,EAAA,IAAI,CAAA,CAAA;AAAA,KACtD;AAAA,GACD,CAAA,CAAA;AAEF,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MaskedTimeInput.js","sources":["../../../../src/date/LocalTimePicker/MaskedTimeInput.tsx"],"sourcesContent":["import debug from 'debug';\nimport {forwardRef} from 'react';\nimport {MaskedInput, MaskedInputProps} from '../../inputs/MaskedInput';\n\nconst d = debug('thx.controls.date.LocalTimePicker.MaskedTimeInput');\n\nexport interface MaskedTimeInputValue {\n\ttarget: {\n\t\tvalue: string;\n\t};\n}\n\nexport interface MaskedTimeInputProps {\n\tonChange?: (value: MaskedTimeInputValue) => void;\n}\n\n// eslint-disable-next-line no-unused-vars,@typescript-eslint/no-unused-vars\nfunction MaskedTimeInputInner(props: MaskedTimeInputProps & Omit<MaskedInputProps, 'onChange'>, ref: any) {\n\tconst {onChange, ...rest} = props;\n\n\treturn (\n\t\t<MaskedInput\n\t\t\tmask={{alias: 'datetime', inputFormat: 'hh:MM TT'}}\n\t\t\tonChange={value => {\n\t\t\t\tif (onChange) onChange({target: {value: value || ''}});\n\t\t\t}}\n\t\t\t{...rest}\n\t\t/>\n\t);\n}\n\nexport const MaskedTimeInput = forwardRef(MaskedTimeInputInner);\n"],"names":[],"mappings":";;;;;AAIU,MAAM,mDAAmD,EAAA;AAanE,SAAA,oBAAA,CAA8B,OAAkE,GAAU,EAAA;AACzG,EAAM,MAAA,EAAC,aAAa,IAAQ,EAAA,GAAA,KAAA,CAAA;AAE5B,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,WAAA,EAAA;AAAA,IACA,IAAM,EAAA,EAAC,KAAO,EAAA,UAAA,EAAY,aAAa,UAAU,EAAA;AAAA,IACjD,
|
|
1
|
+
{"version":3,"file":"MaskedTimeInput.js","sources":["../../../../src/date/LocalTimePicker/MaskedTimeInput.tsx"],"sourcesContent":["import debug from 'debug';\nimport {forwardRef} from 'react';\nimport {MaskedInput, MaskedInputProps} from '../../inputs/MaskedInput';\n\nconst d = debug('thx.controls.date.LocalTimePicker.MaskedTimeInput');\n\nexport interface MaskedTimeInputValue {\n\ttarget: {\n\t\tvalue: string;\n\t};\n}\n\nexport interface MaskedTimeInputProps {\n\tonChange?: (value: MaskedTimeInputValue) => void;\n}\n\n// eslint-disable-next-line no-unused-vars,@typescript-eslint/no-unused-vars\nfunction MaskedTimeInputInner(props: MaskedTimeInputProps & Omit<MaskedInputProps, 'onChange'>, ref: any) {\n\tconst {onChange, ...rest} = props;\n\n\treturn (\n\t\t<MaskedInput\n\t\t\tmask={{alias: 'datetime', inputFormat: 'hh:MM TT'}}\n\t\t\tonChange={(value: string) => {\n\t\t\t\tif (onChange) onChange({target: {value: value || ''}});\n\t\t\t}}\n\t\t\t{...rest}\n\t\t/>\n\t);\n}\n\nexport const MaskedTimeInput = forwardRef(MaskedTimeInputInner);\n"],"names":[],"mappings":";;;;;AAIU,MAAM,mDAAmD,EAAA;AAanE,SAAA,oBAAA,CAA8B,OAAkE,GAAU,EAAA;AACzG,EAAM,MAAA,EAAC,aAAa,IAAQ,EAAA,GAAA,KAAA,CAAA;AAE5B,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,WAAA,EAAA;AAAA,IACA,IAAM,EAAA,EAAC,KAAO,EAAA,UAAA,EAAY,aAAa,UAAU,EAAA;AAAA,IACjD,QAAA,EAAU,CAAC,KAAkB,KAAA;AAC5B,MAAI,IAAA,QAAA;AAAU,QAAA,QAAA,CAAS,EAAC,MAAQ,EAAA,EAAC,OAAO,KAAS,IAAA,EAAA,IAAI,CAAA,CAAA;AAAA,KACtD;AAAA,IACI,GAAA,IAAA;AAAA,GACL,CAAA,CAAA;AAEF,CAAA;AAEa,MAAA,eAAA,GAAkB,WAAW,oBAAoB;;;;"}
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { forwardRef, useImperativeHandle } from 'react';
|
|
2
2
|
import debug from 'debug';
|
|
3
3
|
import { Input } from 'semantic-ui-react';
|
|
4
4
|
import { useMaskedInput } from './useMaskedInput.js';
|
|
5
5
|
|
|
6
6
|
debug("thx.controls.inputs.MaskedInput");
|
|
7
|
-
|
|
7
|
+
const MaskedInput = forwardRef((props, ref) => {
|
|
8
8
|
const { name, onBlur, disabled, onChange, mask, value, ...rest } = props;
|
|
9
9
|
const inputRef = useMaskedInput({ mask, value, onChange });
|
|
10
|
+
useImperativeHandle(ref, () => ({
|
|
11
|
+
focus: () => {
|
|
12
|
+
inputRef.current?.focus();
|
|
13
|
+
},
|
|
14
|
+
select: () => {
|
|
15
|
+
inputRef.current?.select();
|
|
16
|
+
}
|
|
17
|
+
}), [inputRef]);
|
|
10
18
|
return /* @__PURE__ */ React.createElement(Input, {
|
|
11
19
|
...rest
|
|
12
20
|
}, /* @__PURE__ */ React.createElement("input", {
|
|
@@ -15,7 +23,7 @@ function MaskedInput(props) {
|
|
|
15
23
|
ref: inputRef,
|
|
16
24
|
onBlur
|
|
17
25
|
}));
|
|
18
|
-
}
|
|
26
|
+
});
|
|
19
27
|
|
|
20
28
|
export { MaskedInput };
|
|
21
29
|
//# sourceMappingURL=MaskedInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MaskedInput.js","sources":["../../../../src/inputs/MaskedInput/MaskedInput.tsx"],"sourcesContent":["import debug from 'debug';\nimport {Input, InputProps} from 'semantic-ui-react';\nimport {useMaskedInput, UseMaskedInputProps} from './useMaskedInput';\n\nconst d = debug('thx.controls.inputs.MaskedInput');\n\nexport type MaskedInputProps = {\n\tname?: string;\n\tonBlur?: (event: any) => void;\n} & UseMaskedInputProps &\n\tOmit<InputProps, 'onChange'>;\n\nexport
|
|
1
|
+
{"version":3,"file":"MaskedInput.js","sources":["../../../../src/inputs/MaskedInput/MaskedInput.tsx"],"sourcesContent":["import debug from 'debug';\nimport {forwardRef, useImperativeHandle} from 'react';\nimport {Input, InputProps} from 'semantic-ui-react';\nimport {useMaskedInput, 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, ...rest} = 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 {...rest}>\n\t\t\t<input disabled={disabled} name={name} ref={inputRef} onBlur={onBlur} />\n\t\t</Input>\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,UAAU,IAAQ,EAAA,GAAA,KAAA,CAAA;AAEjE,EAAA,MAAM,WAAW,cAAe,CAAA,EAAC,IAAM,EAAA,KAAA,EAAO,UAAS,CAAA,CAAA;AAEvD,EAAA,mBAAA,CACC,KACA,OAAO;AAAA,IACN,OAAO,MAAM;AACZ,MAAA,QAAA,CAAS,SAAS,KAAM,EAAA,CAAA;AAAA,KACzB;AAAA,IACA,QAAQ,MAAM;AACb,MAAA,QAAA,CAAS,SAAS,MAAO,EAAA,CAAA;AAAA,KAC1B;AAAA,GACD,CAAA,EACA,CAAC,QAAQ,CACV,CAAA,CAAA;AAEA,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAU,GAAA,IAAA;AAAA,GAAA,kBACT,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA;AAAA,IAAM,QAAA;AAAA,IAAoB,IAAA;AAAA,IAAY,GAAK,EAAA,QAAA;AAAA,IAAU,MAAA;AAAA,GAAgB,CACvE,CAAA,CAAA;AAEF,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMoneyInput.js","sources":["../../../src/money/useMoneyInput.ts"],"sourcesContent":["import {toMoney} from '@thx/money';\nimport debug from 'debug';\nimport Inputmask from 'inputmask';\nimport Money from 'js-money';\nimport {MutableRefObject, useCallback, useEffect, useRef} from 'react';\n\nconst d = debug('thx.controls.money.useMoneyInput');\n\n// @ts-ignore inputmask .d.ts file is correct, but ESM causes some difficulty. -mk\nconst InputmaskClass = Inputmask.default || Inputmask;\n\ninterface UseMoneyInputProps {\n\tvalue?: Money;\n\tonChange?: (value?: Money) => void;\n\tonSet?: (value?: Money) => void;\n\t// defaultCurrency?: Currency; // Defaults to Money.CAD\n\tprefix?: string; // Defaults to currency symbol\n\tshowPrefix?: boolean; // Defaults to false\n\twholeNumber?: boolean; // Defaults to false\n}\n\ntype SetValueFn = (value?: Money) => void;\n\nexport function useMoneyInput(props: UseMoneyInputProps): [MutableRefObject<HTMLInputElement | null>, SetValueFn] {\n\tconst {value, onChange, onSet, showPrefix, prefix, wholeNumber} = props;\n\n\tconst inputElement = useRef<HTMLInputElement | null>(null);\n\tconst maskInstance = useRef<Inputmask.Instance | null>(null);\n\n\t// set the adjCurrency\n\t// let adjCurrency = Money.CAD;\n\t// if (value?.currency && Money[value?.currency]) adjCurrency = Money[value?.currency];\n\t// if (defaultCurrency) adjCurrency = defaultCurrency;\n\tconst currencyCode = value?.currency || 'CAD';\n\n\tuseEffect(() => {\n\t\tif (!inputElement.current) throw new Error('Could not get input element');\n\n\t\td('Creating input mask instance');\n\t\tmaskInstance.current = new InputmaskClass({\n\t\t\talias: 'numeric',\n\t\t\tgroupSeparator: ',',\n\t\t\tdigits: wholeNumber ? '0' : Money[currencyCode].decimal_digits.toString(),\n\t\t\tdigitsOptional: false,\n\t\t\tprefix: showPrefix ? prefix || Money[currencyCode].symbol : undefined,\n\t\t\tplaceholder: '0',\n\t\t\tautoUnmask: true,\n\t\t\toncomplete() {\n\t\t\t\tif (onChange) {\n\t\t\t\t\tif (inputElement.current?.value) {\n\t\t\t\t\t\tonChange(toMoney(inputElement.current?.value, currencyCode));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tonChange();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\toncleared() {\n\t\t\t\tif (onChange) onChange();\n\t\t\t},\n\t\t\tonincomplete() {\n\t\t\t\tif (onChange) onChange(toMoney(inputElement.current?.value, currencyCode));\n\t\t\t},\n\t\t});\n\t\t// @ts-ignore We just created the instance but typescript can't figure it out. -mk\n\t\tmaskInstance.current.mask(inputElement.current);\n\n\t\treturn () => {\n\t\t\tif (maskInstance.current) {\n\t\t\t\td('Cleaning up input mask instance');\n\t\t\t\tmaskInstance.current.remove();\n\t\t\t\tmaskInstance.current = null;\n\t\t\t}\n\t\t};\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [currencyCode, prefix, showPrefix, wholeNumber]);\n\n\tconst setVal = useCallback<SetValueFn>(\n\t\t(v?: Money) => {\n\t\t\tif (inputElement.current) {\n\t\t\t\td('Value is being set:', v);\n\t\t\t\tif (v) {\n\t\t\t\t\tinputElement.current.value = v.toDecimal().toString();\n\t\t\t\t} else {\n\t\t\t\t\tinputElement.current.value = '';\n\t\t\t\t}\n\t\t\t\tonSet && onSet(v);\n\t\t\t}\n\t\t},\n\t\t[onSet],\n\t);\n\n\t// If we change the value prop we need to sync the DOM value to display the new value\n\tuseEffect(() => {\n\t\tconst whatCurrentlyIsDisplayed = inputElement.current?.value || ''; // string | undef\n\t\tconst whatWeAreSetting = value ? value.toString() : ''; // money | undef\n\n\t\tif (whatCurrentlyIsDisplayed !== whatWeAreSetting) {\n\t\t\tsetVal(value);\n\t\t}\n\t}, [setVal, value]);\n\n\treturn [inputElement, setVal];\n}"],"names":["Inputmask"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"useMoneyInput.js","sources":["../../../src/money/useMoneyInput.ts"],"sourcesContent":["import {toMoney} from '@thx/money';\nimport debug from 'debug';\nimport Inputmask from 'inputmask';\nimport Money from 'js-money';\nimport {MutableRefObject, useCallback, useEffect, useRef} from 'react';\n\nconst d = debug('thx.controls.money.useMoneyInput');\n\n// @ts-ignore inputmask .d.ts file is correct, but ESM causes some difficulty. -mk\nconst InputmaskClass = Inputmask.default || Inputmask;\n\ninterface UseMoneyInputProps {\n\tvalue?: Money;\n\tonChange?: (value?: Money) => void;\n\tonSet?: (value?: Money) => void;\n\t// defaultCurrency?: Currency; // Defaults to Money.CAD\n\tprefix?: string; // Defaults to currency symbol\n\tshowPrefix?: boolean; // Defaults to false\n\twholeNumber?: boolean; // Defaults to false\n}\n\ntype SetValueFn = (value?: Money) => void;\n\nexport function useMoneyInput(props: UseMoneyInputProps): [MutableRefObject<HTMLInputElement | null>, SetValueFn] {\n\tconst {value, onChange, onSet, showPrefix, prefix, wholeNumber} = props;\n\n\tconst inputElement = useRef<HTMLInputElement | null>(null);\n\tconst maskInstance = useRef<Inputmask.Instance | null>(null);\n\n\t// set the adjCurrency\n\t// let adjCurrency = Money.CAD;\n\t// if (value?.currency && Money[value?.currency]) adjCurrency = Money[value?.currency];\n\t// if (defaultCurrency) adjCurrency = defaultCurrency;\n\tconst currencyCode = value?.currency || 'CAD';\n\n\tuseEffect(() => {\n\t\tif (!inputElement.current) throw new Error('Could not get input element');\n\n\t\td('Creating input mask instance');\n\t\tmaskInstance.current = new InputmaskClass({\n\t\t\talias: 'numeric',\n\t\t\tgroupSeparator: ',',\n\t\t\tdigits: wholeNumber ? '0' : Money[currencyCode].decimal_digits.toString(),\n\t\t\tdigitsOptional: false,\n\t\t\tprefix: showPrefix ? prefix || Money[currencyCode].symbol : undefined,\n\t\t\tplaceholder: '0',\n\t\t\tautoUnmask: true,\n\t\t\toncomplete() {\n\t\t\t\tif (onChange) {\n\t\t\t\t\tif (inputElement.current?.value) {\n\t\t\t\t\t\tonChange(toMoney(inputElement.current?.value, currencyCode));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tonChange();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\toncleared() {\n\t\t\t\tif (onChange) onChange();\n\t\t\t},\n\t\t\tonincomplete() {\n\t\t\t\tif (onChange) onChange(toMoney(inputElement.current?.value, currencyCode));\n\t\t\t},\n\t\t});\n\t\t// @ts-ignore We just created the instance but typescript can't figure it out. -mk\n\t\tmaskInstance.current.mask(inputElement.current);\n\n\t\treturn () => {\n\t\t\tif (maskInstance.current) {\n\t\t\t\td('Cleaning up input mask instance');\n\t\t\t\tmaskInstance.current.remove();\n\t\t\t\tmaskInstance.current = null;\n\t\t\t}\n\t\t};\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [currencyCode, prefix, showPrefix, wholeNumber]);\n\n\tconst setVal = useCallback<SetValueFn>(\n\t\t(v?: Money) => {\n\t\t\tif (inputElement.current) {\n\t\t\t\td('Value is being set:', v);\n\t\t\t\tif (v) {\n\t\t\t\t\tinputElement.current.value = v.toDecimal().toString();\n\t\t\t\t} else {\n\t\t\t\t\tinputElement.current.value = '';\n\t\t\t\t}\n\t\t\t\tonSet && onSet(v);\n\t\t\t}\n\t\t},\n\t\t[onSet],\n\t);\n\n\t// If we change the value prop we need to sync the DOM value to display the new value\n\tuseEffect(() => {\n\t\tconst whatCurrentlyIsDisplayed = inputElement.current?.value || ''; // string | undef\n\t\tconst whatWeAreSetting = value ? value.toString() : ''; // money | undef\n\n\t\tif (whatCurrentlyIsDisplayed !== whatWeAreSetting) {\n\t\t\tsetVal(value);\n\t\t}\n\t}, [setVal, value]);\n\n\treturn [inputElement, setVal];\n}\n"],"names":["Inputmask"],"mappings":";;;;;;AAMA,MAAM,CAAA,GAAI,MAAM,kCAAkC,CAAA,CAAA;AAGlD,MAAM,cAAA,GAAiBA,gBAAU,OAAW,IAAAA,eAAA,CAAA;AAcrC,SAAA,aAAA,CAAuB,KAAoF,EAAA;AACjH,EAAA,MAAM,EAAC,KAAO,EAAA,QAAA,EAAU,KAAO,EAAA,UAAA,EAAY,QAAQ,WAAe,EAAA,GAAA,KAAA,CAAA;AAElE,EAAM,MAAA,YAAA,GAAe,OAAgC,IAAI,CAAA,CAAA;AACzD,EAAM,MAAA,YAAA,GAAe,OAAkC,IAAI,CAAA,CAAA;AAM3D,EAAM,MAAA,YAAA,GAAe,OAAO,QAAY,IAAA,KAAA,CAAA;AAExC,EAAA,SAAA,CAAU,MAAM;AACf,IAAA,IAAI,CAAC,YAAa,CAAA,OAAA;AAAS,MAAM,MAAA,IAAI,MAAM,6BAA6B,CAAA,CAAA;AAExE,IAAA,CAAA,CAAE,8BAA8B,CAAA,CAAA;AAChC,IAAa,YAAA,CAAA,OAAA,GAAU,IAAI,cAAe,CAAA;AAAA,MACzC,KAAO,EAAA,SAAA;AAAA,MACP,cAAgB,EAAA,GAAA;AAAA,MAChB,QAAQ,WAAc,GAAA,GAAA,GAAM,KAAM,CAAA,YAAA,CAAA,CAAc,eAAe,QAAS,EAAA;AAAA,MACxE,cAAgB,EAAA,KAAA;AAAA,MAChB,MAAQ,EAAA,UAAA,GAAa,MAAU,IAAA,KAAA,CAAM,cAAc,MAAS,GAAA,KAAA,CAAA;AAAA,MAC5D,WAAa,EAAA,GAAA;AAAA,MACb,UAAY,EAAA,IAAA;AAAA,MACZ,UAAa,GAAA;AACZ,QAAA,IAAI,QAAU,EAAA;AACb,UAAI,IAAA,YAAA,CAAa,SAAS,KAAO,EAAA;AAChC,YAAA,QAAA,CAAS,OAAQ,CAAA,YAAA,CAAa,OAAS,EAAA,KAAA,EAAO,YAAY,CAAC,CAAA,CAAA;AAAA,WACrD,MAAA;AACN,YAAS,QAAA,EAAA,CAAA;AAAA,WACV;AAAA,SACD;AAAA,OACD;AAAA,MACA,SAAY,GAAA;AACX,QAAI,IAAA,QAAA;AAAU,UAAS,QAAA,EAAA,CAAA;AAAA,OACxB;AAAA,MACA,YAAe,GAAA;AACd,QAAI,IAAA,QAAA;AAAU,UAAA,QAAA,CAAS,OAAQ,CAAA,YAAA,CAAa,OAAS,EAAA,KAAA,EAAO,YAAY,CAAC,CAAA,CAAA;AAAA,OAC1E;AAAA,KACA,CAAA,CAAA;AAED,IAAa,YAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,YAAA,CAAa,OAAO,CAAA,CAAA;AAE9C,IAAA,OAAO,MAAM;AACZ,MAAA,IAAI,aAAa,OAAS,EAAA;AACzB,QAAA,CAAA,CAAE,iCAAiC,CAAA,CAAA;AACnC,QAAA,YAAA,CAAa,QAAQ,MAAO,EAAA,CAAA;AAC5B,QAAA,YAAA,CAAa,OAAU,GAAA,IAAA,CAAA;AAAA,OACxB;AAAA,KACD,CAAA;AAAA,KAEE,CAAC,YAAA,EAAc,MAAQ,EAAA,UAAA,EAAY,WAAW,CAAC,CAAA,CAAA;AAElD,EAAM,MAAA,MAAA,GAAS,WACd,CAAA,CAAC,CAAc,KAAA;AACd,IAAA,IAAI,aAAa,OAAS,EAAA;AACzB,MAAA,CAAA,CAAE,uBAAuB,CAAC,CAAA,CAAA;AAC1B,MAAA,IAAI,CAAG,EAAA;AACN,QAAA,YAAA,CAAa,OAAQ,CAAA,KAAA,GAAQ,CAAE,CAAA,SAAA,GAAY,QAAS,EAAA,CAAA;AAAA,OAC9C,MAAA;AACN,QAAA,YAAA,CAAa,QAAQ,KAAQ,GAAA,EAAA,CAAA;AAAA,OAC9B;AACA,MAAA,KAAA,IAAS,MAAM,CAAC,CAAA,CAAA;AAAA,KACjB;AAAA,GACD,EACA,CAAC,KAAK,CACP,CAAA,CAAA;AAGA,EAAA,SAAA,CAAU,MAAM;AACf,IAAM,MAAA,wBAAA,GAA2B,YAAa,CAAA,OAAA,EAAS,KAAS,IAAA,EAAA,CAAA;AAChE,IAAA,MAAM,gBAAmB,GAAA,KAAA,GAAQ,KAAM,CAAA,QAAA,EAAa,GAAA,EAAA,CAAA;AAEpD,IAAA,IAAI,6BAA6B,gBAAkB,EAAA;AAClD,MAAA,MAAA,CAAO,KAAK,CAAA,CAAA;AAAA,KACb;AAAA,GACE,EAAA,CAAC,MAAQ,EAAA,KAAK,CAAC,CAAA,CAAA;AAElB,EAAO,OAAA,CAAC,cAAc,MAAM,CAAA,CAAA;AAC7B;;;;"}
|
package/dist/stats.html
CHANGED
|
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
|
|
|
2669
2669
|
</script>
|
|
2670
2670
|
<script>
|
|
2671
2671
|
/*<!--*/
|
|
2672
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"9b80-1"}]},{"name":"step/useStep.js","children":[{"name":"src/step/useStep.ts","uid":"9b80-3"}]},{"name":"step/Step.js","children":[{"name":"src/step/Step.tsx","uid":"9b80-5"}]},{"name":"step/FormStep.js","children":[{"name":"src/step/FormStep.tsx","uid":"9b80-7"}]},{"name":"step/StepProvider.js","children":[{"name":"src/step/StepProvider.tsx","uid":"9b80-9"}]},{"name":"inputs/MaskedInput/useMaskedInput.js","children":[{"name":"src/inputs/MaskedInput/useMaskedInput.ts","uid":"9b80-11"}]},{"name":"inputs/TableInput/addRowOnTab.js","children":[{"name":"src/inputs/TableInput/addRowOnTab.ts","uid":"9b80-13"}]},{"name":"date/LocalMonthSelect/LocalMonthSelect.js","children":[{"name":"src/date/LocalMonthSelect/LocalMonthSelect.tsx","uid":"9b80-15"}]},{"name":"date/LocalDatePicker/LocalDatePicker.js","children":[{"name":"src/date/LocalDatePicker/LocalDatePicker.tsx","uid":"9b80-17"}]},{"name":"date/LocalTimePicker/LocalTimePicker.js","children":[{"name":"src/date/LocalTimePicker/LocalTimePicker.tsx","uid":"9b80-19"}]},{"name":"date/MonthDayPicker/MonthDayPicker.js","children":[{"name":"src/date/MonthDayPicker/MonthDayPicker.tsx","uid":"9b80-21"}]},{"name":"date/MonthYearPicker/MonthYearPicker.js","children":[{"name":"src/date/MonthYearPicker/MonthYearPicker.tsx","uid":"9b80-23"}]},{"name":"date/YearSelect/YearSelect.js","children":[{"name":"src/date/YearSelect/YearSelect.tsx","uid":"9b80-25"}]},{"name":"form/TForm/TForm.js","children":[{"name":"src/form/TForm/TForm.tsx","uid":"9b80-27"}]},{"name":"inputs/MaskedInput/MaskedInput.js","children":[{"name":"src/inputs/MaskedInput/MaskedInput.tsx","uid":"9b80-29"}]},{"name":"form/TForm/useTForm.js","children":[{"name":"src/form/TForm/useTForm.tsx","uid":"9b80-31"}]},{"name":"inputs/RadioGroup/RadioGroup.js","children":[{"name":"src/inputs/RadioGroup/RadioGroup.tsx","uid":"9b80-33"}]},{"name":"inputs/Scriptel/Scriptel.js","children":[{"name":"src/inputs/Scriptel/Scriptel.tsx","uid":"9b80-35"}]},{"name":"inputs/Scriptel/withScriptel.js","children":[{"name":"src/inputs/Scriptel/withScriptel.tsx","uid":"9b80-37"}]},{"name":"inputs/ScriptelInput/ScriptelInput.js","children":[{"name":"src/inputs/ScriptelInput/ScriptelInput.tsx","uid":"9b80-39"}]},{"name":"inputs/CreditCardInput/CreditCardInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardInput.tsx","uid":"9b80-41"}]},{"name":"inputs/SinInput/SinInput.js","children":[{"name":"src/inputs/SinInput/SinInput.tsx","uid":"9b80-43"}]},{"name":"inputs/PhoneInput/PhoneInput.js","children":[{"name":"src/inputs/PhoneInput/PhoneInput.tsx","uid":"9b80-45"}]},{"name":"inputs/TableInput/TableInput.js","children":[{"name":"src/inputs/TableInput/TableInput.tsx","uid":"9b80-47"}]},{"name":"inputs/TableInput/MoneyCell.js","children":[{"name":"src/inputs/TableInput/MoneyCell.tsx","uid":"9b80-49"}]},{"name":"inputs/TableInput/MoneyEditCell.js","children":[{"name":"src/inputs/TableInput/MoneyEditCell.tsx","uid":"9b80-51"}]},{"name":"inputs/TableInput/LocalDateCell.js","children":[{"name":"src/inputs/TableInput/LocalDateCell.tsx","uid":"9b80-53"}]},{"name":"inputs/TableInput/CheckboxEditCell.js","children":[{"name":"src/inputs/TableInput/CheckboxEditCell.tsx","uid":"9b80-55"}]},{"name":"inputs/TableInput/MoneySumFooter.js","children":[{"name":"src/inputs/TableInput/MoneySumFooter.tsx","uid":"9b80-57"}]},{"name":"inputs/TableInput/LocalDateEditCell.js","children":[{"name":"src/inputs/TableInput/LocalDateEditCell.tsx","uid":"9b80-59"}]},{"name":"inputs/TableInput/StringEditCell.js","children":[{"name":"src/inputs/TableInput/StringEditCell.tsx","uid":"9b80-61"}]},{"name":"inputs/TableInput/DropdownCell.js","children":[{"name":"src/inputs/TableInput/DropdownCell.tsx","uid":"9b80-63"}]},{"name":"inputs/TableInput/HoverCell.js","children":[{"name":"src/inputs/TableInput/HoverCell.tsx","uid":"9b80-65"}]},{"name":"money/MoneyInput/MoneyInput.js","children":[{"name":"src/money/MoneyInput/MoneyInput.tsx","uid":"9b80-67"}]},{"name":"money/MoneyCurrencyInput/MoneyCurrencyInput.js","children":[{"name":"src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","uid":"9b80-69"}]},{"name":"inputs/Scriptel/scriptel/enums.js","children":[{"name":"src/inputs/Scriptel/scriptel/enums.ts","uid":"9b80-71"}]},{"name":"step/stepContext.js","children":[{"name":"src/step/stepContext.ts","uid":"9b80-73"}]},{"name":"date/DatePicker/styles.css.js","children":[{"name":"src/date/DatePicker/styles.css","uid":"9b80-75"}]},{"name":"inputs/CreditCardInput/styles.css.js","children":[{"name":"src/inputs/CreditCardInput/styles.css","uid":"9b80-77"}]},{"name":"date/LocalDatePicker/MaskedDateInput.js","children":[{"name":"src/date/LocalDatePicker/MaskedDateInput.tsx","uid":"9b80-79"}]},{"name":"date/LocalTimePicker/MaskedTimeInput.js","children":[{"name":"src/date/LocalTimePicker/MaskedTimeInput.tsx","uid":"9b80-81"}]},{"name":"inputs/Scriptel/ScriptelContext.js","children":[{"name":"src/inputs/Scriptel/ScriptelContext.ts","uid":"9b80-83"}]},{"name":"inputs/CreditCardInput/CreditCardNumberInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardNumberInput.tsx","uid":"9b80-85"}]},{"name":"money/useMoneyInput.js","children":[{"name":"src/money/useMoneyInput.ts","uid":"9b80-87"}]},{"name":"inputs/Scriptel/scriptel/index.js","children":[{"name":"src/inputs/Scriptel/scriptel/index.ts","uid":"9b80-89"}]},{"name":"external/style-inject/dist/style-inject.es.js","children":[{"name":"home/runner/work/thr-addons/thr-addons/node_modules/style-inject/dist/style-inject.es.js","uid":"9b80-91"}]}],"isRoot":true},"nodeParts":{"9b80-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"9b80-0"},"9b80-3":{"renderedLength":113,"gzipLength":106,"brotliLength":82,"mainUid":"9b80-2"},"9b80-5":{"renderedLength":203,"gzipLength":157,"brotliLength":111,"mainUid":"9b80-4"},"9b80-7":{"renderedLength":440,"gzipLength":270,"brotliLength":214,"mainUid":"9b80-6"},"9b80-9":{"renderedLength":3529,"gzipLength":1021,"brotliLength":861,"mainUid":"9b80-8"},"9b80-11":{"renderedLength":1487,"gzipLength":502,"brotliLength":423,"mainUid":"9b80-10"},"9b80-13":{"renderedLength":312,"gzipLength":199,"brotliLength":173,"mainUid":"9b80-12"},"9b80-15":{"renderedLength":1135,"gzipLength":503,"brotliLength":415,"mainUid":"9b80-14"},"9b80-17":{"renderedLength":2882,"gzipLength":891,"brotliLength":787,"mainUid":"9b80-16"},"9b80-19":{"renderedLength":1205,"gzipLength":488,"brotliLength":402,"mainUid":"9b80-18"},"9b80-21":{"renderedLength":1965,"gzipLength":657,"brotliLength":544,"mainUid":"9b80-20"},"9b80-23":{"renderedLength":1229,"gzipLength":491,"brotliLength":424,"mainUid":"9b80-22"},"9b80-25":{"renderedLength":1553,"gzipLength":580,"brotliLength":461,"mainUid":"9b80-24"},"9b80-27":{"renderedLength":600,"gzipLength":307,"brotliLength":267,"mainUid":"9b80-26"},"9b80-29":{"renderedLength":390,"gzipLength":237,"brotliLength":203,"mainUid":"9b80-28"},"9b80-31":{"renderedLength":2930,"gzipLength":959,"brotliLength":816,"mainUid":"9b80-30"},"9b80-33":{"renderedLength":561,"gzipLength":301,"brotliLength":259,"mainUid":"9b80-32"},"9b80-35":{"renderedLength":1275,"gzipLength":476,"brotliLength":406,"mainUid":"9b80-34"},"9b80-37":{"renderedLength":275,"gzipLength":163,"brotliLength":130,"mainUid":"9b80-36"},"9b80-39":{"renderedLength":1963,"gzipLength":648,"brotliLength":547,"mainUid":"9b80-38"},"9b80-41":{"renderedLength":2324,"gzipLength":586,"brotliLength":495,"mainUid":"9b80-40"},"9b80-43":{"renderedLength":1144,"gzipLength":530,"brotliLength":462,"mainUid":"9b80-42"},"9b80-45":{"renderedLength":381,"gzipLength":248,"brotliLength":218,"mainUid":"9b80-44"},"9b80-47":{"renderedLength":2788,"gzipLength":828,"brotliLength":734,"mainUid":"9b80-46"},"9b80-49":{"renderedLength":257,"gzipLength":187,"brotliLength":149,"mainUid":"9b80-48"},"9b80-51":{"renderedLength":708,"gzipLength":368,"brotliLength":313,"mainUid":"9b80-50"},"9b80-53":{"renderedLength":264,"gzipLength":191,"brotliLength":154,"mainUid":"9b80-52"},"9b80-55":{"renderedLength":702,"gzipLength":367,"brotliLength":330,"mainUid":"9b80-54"},"9b80-57":{"renderedLength":414,"gzipLength":261,"brotliLength":219,"mainUid":"9b80-56"},"9b80-59":{"renderedLength":695,"gzipLength":350,"brotliLength":295,"mainUid":"9b80-58"},"9b80-61":{"renderedLength":717,"gzipLength":369,"brotliLength":319,"mainUid":"9b80-60"},"9b80-63":{"renderedLength":493,"gzipLength":255,"brotliLength":211,"mainUid":"9b80-62"},"9b80-65":{"renderedLength":403,"gzipLength":245,"brotliLength":195,"mainUid":"9b80-64"},"9b80-67":{"renderedLength":778,"gzipLength":392,"brotliLength":329,"mainUid":"9b80-66"},"9b80-69":{"renderedLength":1575,"gzipLength":642,"brotliLength":536,"mainUid":"9b80-68"},"9b80-71":{"renderedLength":937,"gzipLength":292,"brotliLength":231,"mainUid":"9b80-70"},"9b80-73":{"renderedLength":80,"gzipLength":90,"brotliLength":72,"mainUid":"9b80-72"},"9b80-75":{"renderedLength":538,"gzipLength":263,"brotliLength":211,"mainUid":"9b80-74"},"9b80-77":{"renderedLength":78,"gzipLength":92,"brotliLength":79,"mainUid":"9b80-76"},"9b80-79":{"renderedLength":464,"gzipLength":299,"brotliLength":256,"mainUid":"9b80-78"},"9b80-81":{"renderedLength":446,"gzipLength":290,"brotliLength":241,"mainUid":"9b80-80"},"9b80-83":{"renderedLength":46,"gzipLength":60,"brotliLength":45,"mainUid":"9b80-82"},"9b80-85":{"renderedLength":1713,"gzipLength":687,"brotliLength":585,"mainUid":"9b80-84"},"9b80-87":{"renderedLength":2155,"gzipLength":770,"brotliLength":660,"mainUid":"9b80-86"},"9b80-89":{"renderedLength":2530,"gzipLength":860,"brotliLength":739,"mainUid":"9b80-88"},"9b80-91":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"9b80-90"}},"nodeMetas":{"9b80-0":{"id":"/src/index.ts","moduleParts":{"index.js":"9b80-1"},"imported":[{"uid":"9b80-92"},{"uid":"9b80-93"},{"uid":"9b80-94"},{"uid":"9b80-95"},{"uid":"9b80-96"},{"uid":"9b80-97"},{"uid":"9b80-98"},{"uid":"9b80-99"},{"uid":"9b80-100"},{"uid":"9b80-101"},{"uid":"9b80-102"},{"uid":"9b80-103"},{"uid":"9b80-104"},{"uid":"9b80-105"},{"uid":"9b80-106"},{"uid":"9b80-107"},{"uid":"9b80-108"},{"uid":"9b80-109"}],"importedBy":[],"isEntry":true},"9b80-2":{"id":"/src/step/useStep.ts","moduleParts":{"step/useStep.js":"9b80-3"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-72"}],"importedBy":[{"uid":"9b80-109"},{"uid":"9b80-6"}]},"9b80-4":{"id":"/src/step/Step.tsx","moduleParts":{"step/Step.js":"9b80-5"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"}],"importedBy":[{"uid":"9b80-109"},{"uid":"9b80-8"}]},"9b80-6":{"id":"/src/step/FormStep.tsx","moduleParts":{"step/FormStep.js":"9b80-7"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"},{"uid":"9b80-2"}],"importedBy":[{"uid":"9b80-109"},{"uid":"9b80-8"}]},"9b80-8":{"id":"/src/step/StepProvider.tsx","moduleParts":{"step/StepProvider.js":"9b80-9"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"},{"uid":"9b80-127"},{"uid":"9b80-113"},{"uid":"9b80-6"},{"uid":"9b80-4"},{"uid":"9b80-72"}],"importedBy":[{"uid":"9b80-109"}]},"9b80-10":{"id":"/src/inputs/MaskedInput/useMaskedInput.ts","moduleParts":{"inputs/MaskedInput/useMaskedInput.js":"9b80-11"},"imported":[{"uid":"9b80-112"},{"uid":"9b80-119"},{"uid":"9b80-110"},{"uid":"9b80-120"}],"importedBy":[{"uid":"9b80-99"},{"uid":"9b80-28"},{"uid":"9b80-42"},{"uid":"9b80-84"}]},"9b80-12":{"id":"/src/inputs/TableInput/addRowOnTab.ts","moduleParts":{"inputs/TableInput/addRowOnTab.js":"9b80-13"},"imported":[],"importedBy":[{"uid":"9b80-106"},{"uid":"9b80-50"},{"uid":"9b80-54"},{"uid":"9b80-60"}]},"9b80-14":{"id":"/src/date/LocalMonthSelect/LocalMonthSelect.tsx","moduleParts":{"date/LocalMonthSelect/LocalMonthSelect.js":"9b80-15"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-115"},{"uid":"9b80-112"},{"uid":"9b80-113"}],"importedBy":[{"uid":"9b80-93"}]},"9b80-16":{"id":"/src/date/LocalDatePicker/LocalDatePicker.tsx","moduleParts":{"date/LocalDatePicker/LocalDatePicker.js":"9b80-17"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-111"},{"uid":"9b80-112"},{"uid":"9b80-113"},{"uid":"9b80-114"},{"uid":"9b80-74"},{"uid":"9b80-78"}],"importedBy":[{"uid":"9b80-92"}]},"9b80-18":{"id":"/src/date/LocalTimePicker/LocalTimePicker.tsx","moduleParts":{"date/LocalTimePicker/LocalTimePicker.js":"9b80-19"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-115"},{"uid":"9b80-111"},{"uid":"9b80-112"},{"uid":"9b80-114"},{"uid":"9b80-80"}],"importedBy":[{"uid":"9b80-94"}]},"9b80-20":{"id":"/src/date/MonthDayPicker/MonthDayPicker.tsx","moduleParts":{"date/MonthDayPicker/MonthDayPicker.js":"9b80-21"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-111"},{"uid":"9b80-112"},{"uid":"9b80-113"},{"uid":"9b80-114"}],"importedBy":[{"uid":"9b80-95"}]},"9b80-22":{"id":"/src/date/MonthYearPicker/MonthYearPicker.tsx","moduleParts":{"date/MonthYearPicker/MonthYearPicker.js":"9b80-23"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-115"},{"uid":"9b80-111"},{"uid":"9b80-112"},{"uid":"9b80-113"},{"uid":"9b80-114"}],"importedBy":[{"uid":"9b80-96"}]},"9b80-24":{"id":"/src/date/YearSelect/YearSelect.tsx","moduleParts":{"date/YearSelect/YearSelect.js":"9b80-25"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"},{"uid":"9b80-113"}],"importedBy":[{"uid":"9b80-97"}]},"9b80-26":{"id":"/src/form/TForm/TForm.tsx","moduleParts":{"form/TForm/TForm.js":"9b80-27"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"},{"uid":"9b80-116"},{"uid":"9b80-30"}],"importedBy":[{"uid":"9b80-98"}]},"9b80-28":{"id":"/src/inputs/MaskedInput/MaskedInput.tsx","moduleParts":{"inputs/MaskedInput/MaskedInput.js":"9b80-29"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"},{"uid":"9b80-113"},{"uid":"9b80-10"}],"importedBy":[{"uid":"9b80-99"}]},"9b80-30":{"id":"/src/form/TForm/useTForm.tsx","moduleParts":{"form/TForm/useTForm.js":"9b80-31"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-117"},{"uid":"9b80-116"},{"uid":"9b80-118"},{"uid":"9b80-113"}],"importedBy":[{"uid":"9b80-98"},{"uid":"9b80-26"}]},"9b80-32":{"id":"/src/inputs/RadioGroup/RadioGroup.tsx","moduleParts":{"inputs/RadioGroup/RadioGroup.js":"9b80-33"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"},{"uid":"9b80-113"}],"importedBy":[{"uid":"9b80-100"}]},"9b80-34":{"id":"/src/inputs/Scriptel/Scriptel.tsx","moduleParts":{"inputs/Scriptel/Scriptel.js":"9b80-35"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"},{"uid":"9b80-82"},{"uid":"9b80-88"}],"importedBy":[{"uid":"9b80-101"},{"uid":"9b80-36"}]},"9b80-36":{"id":"/src/inputs/Scriptel/withScriptel.tsx","moduleParts":{"inputs/Scriptel/withScriptel.js":"9b80-37"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-34"}],"importedBy":[{"uid":"9b80-101"}]},"9b80-38":{"id":"/src/inputs/ScriptelInput/ScriptelInput.tsx","moduleParts":{"inputs/ScriptelInput/ScriptelInput.js":"9b80-39"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"},{"uid":"9b80-113"},{"uid":"9b80-82"}],"importedBy":[{"uid":"9b80-102"}]},"9b80-40":{"id":"/src/inputs/CreditCardInput/CreditCardInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardInput.js":"9b80-41"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-111"},{"uid":"9b80-112"},{"uid":"9b80-121"},{"uid":"9b80-122"},{"uid":"9b80-113"},{"uid":"9b80-96"},{"uid":"9b80-84"},{"uid":"9b80-76"}],"importedBy":[{"uid":"9b80-104"}]},"9b80-42":{"id":"/src/inputs/SinInput/SinInput.tsx","moduleParts":{"inputs/SinInput/SinInput.js":"9b80-43"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"},{"uid":"9b80-113"},{"uid":"9b80-123"},{"uid":"9b80-10"}],"importedBy":[{"uid":"9b80-105"}]},"9b80-44":{"id":"/src/inputs/PhoneInput/PhoneInput.tsx","moduleParts":{"inputs/PhoneInput/PhoneInput.js":"9b80-45"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"},{"uid":"9b80-99"}],"importedBy":[{"uid":"9b80-103"}]},"9b80-46":{"id":"/src/inputs/TableInput/TableInput.tsx","moduleParts":{"inputs/TableInput/TableInput.js":"9b80-47"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"},{"uid":"9b80-116"},{"uid":"9b80-124"},{"uid":"9b80-113"}],"importedBy":[{"uid":"9b80-106"}]},"9b80-48":{"id":"/src/inputs/TableInput/MoneyCell.tsx","moduleParts":{"inputs/TableInput/MoneyCell.js":"9b80-49"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-125"}],"importedBy":[{"uid":"9b80-106"}]},"9b80-50":{"id":"/src/inputs/TableInput/MoneyEditCell.tsx","moduleParts":{"inputs/TableInput/MoneyEditCell.js":"9b80-51"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"},{"uid":"9b80-107"},{"uid":"9b80-12"}],"importedBy":[{"uid":"9b80-106"}]},"9b80-52":{"id":"/src/inputs/TableInput/LocalDateCell.tsx","moduleParts":{"inputs/TableInput/LocalDateCell.js":"9b80-53"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-111"}],"importedBy":[{"uid":"9b80-106"}]},"9b80-54":{"id":"/src/inputs/TableInput/CheckboxEditCell.tsx","moduleParts":{"inputs/TableInput/CheckboxEditCell.js":"9b80-55"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"},{"uid":"9b80-113"},{"uid":"9b80-12"}],"importedBy":[{"uid":"9b80-106"}]},"9b80-56":{"id":"/src/inputs/TableInput/MoneySumFooter.tsx","moduleParts":{"inputs/TableInput/MoneySumFooter.js":"9b80-57"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-125"}],"importedBy":[{"uid":"9b80-106"}]},"9b80-58":{"id":"/src/inputs/TableInput/LocalDateEditCell.tsx","moduleParts":{"inputs/TableInput/LocalDateEditCell.js":"9b80-59"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"},{"uid":"9b80-92"}],"importedBy":[{"uid":"9b80-106"}]},"9b80-60":{"id":"/src/inputs/TableInput/StringEditCell.tsx","moduleParts":{"inputs/TableInput/StringEditCell.js":"9b80-61"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"},{"uid":"9b80-113"},{"uid":"9b80-12"}],"importedBy":[{"uid":"9b80-106"}]},"9b80-62":{"id":"/src/inputs/TableInput/DropdownCell.tsx","moduleParts":{"inputs/TableInput/DropdownCell.js":"9b80-63"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-113"}],"importedBy":[{"uid":"9b80-106"}]},"9b80-64":{"id":"/src/inputs/TableInput/HoverCell.tsx","moduleParts":{"inputs/TableInput/HoverCell.js":"9b80-65"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"}],"importedBy":[{"uid":"9b80-106"}]},"9b80-66":{"id":"/src/money/MoneyInput/MoneyInput.tsx","moduleParts":{"money/MoneyInput/MoneyInput.js":"9b80-67"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-125"},{"uid":"9b80-112"},{"uid":"9b80-126"},{"uid":"9b80-113"},{"uid":"9b80-86"}],"importedBy":[{"uid":"9b80-107"}]},"9b80-68":{"id":"/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","moduleParts":{"money/MoneyCurrencyInput/MoneyCurrencyInput.js":"9b80-69"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-125"},{"uid":"9b80-112"},{"uid":"9b80-126"},{"uid":"9b80-113"},{"uid":"9b80-86"}],"importedBy":[{"uid":"9b80-108"}]},"9b80-70":{"id":"/src/inputs/Scriptel/scriptel/enums.ts","moduleParts":{"inputs/Scriptel/scriptel/enums.js":"9b80-71"},"imported":[],"importedBy":[{"uid":"9b80-101"},{"uid":"9b80-88"}]},"9b80-72":{"id":"/src/step/stepContext.ts","moduleParts":{"step/stepContext.js":"9b80-73"},"imported":[{"uid":"9b80-110"}],"importedBy":[{"uid":"9b80-2"},{"uid":"9b80-8"}]},"9b80-74":{"id":"/src/date/DatePicker/styles.css","moduleParts":{"date/DatePicker/styles.css.js":"9b80-75"},"imported":[{"uid":"9b80-90"}],"importedBy":[{"uid":"9b80-16"},{"uid":"9b80-114"}]},"9b80-76":{"id":"/src/inputs/CreditCardInput/styles.css","moduleParts":{"inputs/CreditCardInput/styles.css.js":"9b80-77"},"imported":[{"uid":"9b80-90"}],"importedBy":[{"uid":"9b80-40"}]},"9b80-78":{"id":"/src/date/LocalDatePicker/MaskedDateInput.tsx","moduleParts":{"date/LocalDatePicker/MaskedDateInput.js":"9b80-79"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"},{"uid":"9b80-99"}],"importedBy":[{"uid":"9b80-16"}]},"9b80-80":{"id":"/src/date/LocalTimePicker/MaskedTimeInput.tsx","moduleParts":{"date/LocalTimePicker/MaskedTimeInput.js":"9b80-81"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-112"},{"uid":"9b80-99"}],"importedBy":[{"uid":"9b80-18"}]},"9b80-82":{"id":"/src/inputs/Scriptel/ScriptelContext.ts","moduleParts":{"inputs/Scriptel/ScriptelContext.js":"9b80-83"},"imported":[{"uid":"9b80-110"}],"importedBy":[{"uid":"9b80-34"},{"uid":"9b80-38"}]},"9b80-84":{"id":"/src/inputs/CreditCardInput/CreditCardNumberInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardNumberInput.js":"9b80-85"},"imported":[{"uid":"9b80-110"},{"uid":"9b80-130"},{"uid":"9b80-112"},{"uid":"9b80-131"},{"uid":"9b80-113"},{"uid":"9b80-10"}],"importedBy":[{"uid":"9b80-40"}]},"9b80-86":{"id":"/src/money/useMoneyInput.ts","moduleParts":{"money/useMoneyInput.js":"9b80-87"},"imported":[{"uid":"9b80-125"},{"uid":"9b80-112"},{"uid":"9b80-119"},{"uid":"9b80-126"},{"uid":"9b80-110"}],"importedBy":[{"uid":"9b80-66"},{"uid":"9b80-68"}]},"9b80-88":{"id":"/src/inputs/Scriptel/scriptel/index.ts","moduleParts":{"inputs/Scriptel/scriptel/index.js":"9b80-89"},"imported":[{"uid":"9b80-112"},{"uid":"9b80-129"},{"uid":"9b80-70"}],"importedBy":[{"uid":"9b80-34"}]},"9b80-90":{"id":"/home/runner/work/thr-addons/thr-addons/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"9b80-91"},"imported":[],"importedBy":[{"uid":"9b80-74"},{"uid":"9b80-76"}]},"9b80-92":{"id":"/src/date/LocalDatePicker/index.ts","moduleParts":{},"imported":[{"uid":"9b80-16"}],"importedBy":[{"uid":"9b80-0"},{"uid":"9b80-58"}]},"9b80-93":{"id":"/src/date/LocalMonthSelect/index.ts","moduleParts":{},"imported":[{"uid":"9b80-14"}],"importedBy":[{"uid":"9b80-0"}]},"9b80-94":{"id":"/src/date/LocalTimePicker/index.ts","moduleParts":{},"imported":[{"uid":"9b80-18"}],"importedBy":[{"uid":"9b80-0"}]},"9b80-95":{"id":"/src/date/MonthDayPicker/index.ts","moduleParts":{},"imported":[{"uid":"9b80-20"}],"importedBy":[{"uid":"9b80-0"}]},"9b80-96":{"id":"/src/date/MonthYearPicker/index.ts","moduleParts":{},"imported":[{"uid":"9b80-22"}],"importedBy":[{"uid":"9b80-0"},{"uid":"9b80-40"}]},"9b80-97":{"id":"/src/date/YearSelect/index.ts","moduleParts":{},"imported":[{"uid":"9b80-24"}],"importedBy":[{"uid":"9b80-0"}]},"9b80-98":{"id":"/src/form/TForm/index.ts","moduleParts":{},"imported":[{"uid":"9b80-26"},{"uid":"9b80-30"}],"importedBy":[{"uid":"9b80-0"}]},"9b80-99":{"id":"/src/inputs/MaskedInput/index.ts","moduleParts":{},"imported":[{"uid":"9b80-28"},{"uid":"9b80-10"}],"importedBy":[{"uid":"9b80-0"},{"uid":"9b80-44"},{"uid":"9b80-78"},{"uid":"9b80-80"}]},"9b80-100":{"id":"/src/inputs/RadioGroup/index.ts","moduleParts":{},"imported":[{"uid":"9b80-32"}],"importedBy":[{"uid":"9b80-0"}]},"9b80-101":{"id":"/src/inputs/Scriptel/index.ts","moduleParts":{},"imported":[{"uid":"9b80-34"},{"uid":"9b80-36"},{"uid":"9b80-70"}],"importedBy":[{"uid":"9b80-0"}]},"9b80-102":{"id":"/src/inputs/ScriptelInput/index.ts","moduleParts":{},"imported":[{"uid":"9b80-38"}],"importedBy":[{"uid":"9b80-0"}]},"9b80-103":{"id":"/src/inputs/PhoneInput/index.ts","moduleParts":{},"imported":[{"uid":"9b80-44"}],"importedBy":[{"uid":"9b80-0"}]},"9b80-104":{"id":"/src/inputs/CreditCardInput/index.ts","moduleParts":{},"imported":[{"uid":"9b80-40"}],"importedBy":[{"uid":"9b80-0"}]},"9b80-105":{"id":"/src/inputs/SinInput/index.ts","moduleParts":{},"imported":[{"uid":"9b80-42"}],"importedBy":[{"uid":"9b80-0"}]},"9b80-106":{"id":"/src/inputs/TableInput/index.ts","moduleParts":{},"imported":[{"uid":"9b80-46"},{"uid":"9b80-48"},{"uid":"9b80-50"},{"uid":"9b80-52"},{"uid":"9b80-54"},{"uid":"9b80-58"},{"uid":"9b80-56"},{"uid":"9b80-60"},{"uid":"9b80-62"},{"uid":"9b80-64"},{"uid":"9b80-12"}],"importedBy":[{"uid":"9b80-0"}]},"9b80-107":{"id":"/src/money/MoneyInput/index.ts","moduleParts":{},"imported":[{"uid":"9b80-66"}],"importedBy":[{"uid":"9b80-0"},{"uid":"9b80-50"}]},"9b80-108":{"id":"/src/money/MoneyCurrencyInput/index.ts","moduleParts":{},"imported":[{"uid":"9b80-68"}],"importedBy":[{"uid":"9b80-0"}]},"9b80-109":{"id":"/src/step/index.ts","moduleParts":{},"imported":[{"uid":"9b80-4"},{"uid":"9b80-2"},{"uid":"9b80-6"},{"uid":"9b80-8"}],"importedBy":[{"uid":"9b80-0"}]},"9b80-110":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-16"},{"uid":"9b80-14"},{"uid":"9b80-18"},{"uid":"9b80-20"},{"uid":"9b80-22"},{"uid":"9b80-24"},{"uid":"9b80-26"},{"uid":"9b80-30"},{"uid":"9b80-28"},{"uid":"9b80-10"},{"uid":"9b80-32"},{"uid":"9b80-34"},{"uid":"9b80-36"},{"uid":"9b80-38"},{"uid":"9b80-44"},{"uid":"9b80-40"},{"uid":"9b80-42"},{"uid":"9b80-46"},{"uid":"9b80-48"},{"uid":"9b80-50"},{"uid":"9b80-52"},{"uid":"9b80-54"},{"uid":"9b80-58"},{"uid":"9b80-56"},{"uid":"9b80-60"},{"uid":"9b80-62"},{"uid":"9b80-64"},{"uid":"9b80-66"},{"uid":"9b80-68"},{"uid":"9b80-4"},{"uid":"9b80-2"},{"uid":"9b80-6"},{"uid":"9b80-8"},{"uid":"9b80-78"},{"uid":"9b80-80"},{"uid":"9b80-82"},{"uid":"9b80-84"},{"uid":"9b80-86"},{"uid":"9b80-72"}],"isExternal":true},"9b80-111":{"id":"@thx/date","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-16"},{"uid":"9b80-18"},{"uid":"9b80-20"},{"uid":"9b80-22"},{"uid":"9b80-40"},{"uid":"9b80-52"}],"isExternal":true},"9b80-112":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-16"},{"uid":"9b80-14"},{"uid":"9b80-18"},{"uid":"9b80-20"},{"uid":"9b80-22"},{"uid":"9b80-24"},{"uid":"9b80-26"},{"uid":"9b80-28"},{"uid":"9b80-10"},{"uid":"9b80-32"},{"uid":"9b80-34"},{"uid":"9b80-38"},{"uid":"9b80-44"},{"uid":"9b80-40"},{"uid":"9b80-42"},{"uid":"9b80-46"},{"uid":"9b80-50"},{"uid":"9b80-54"},{"uid":"9b80-58"},{"uid":"9b80-60"},{"uid":"9b80-64"},{"uid":"9b80-66"},{"uid":"9b80-68"},{"uid":"9b80-4"},{"uid":"9b80-6"},{"uid":"9b80-8"},{"uid":"9b80-78"},{"uid":"9b80-80"},{"uid":"9b80-88"},{"uid":"9b80-84"},{"uid":"9b80-86"}],"isExternal":true},"9b80-113":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-16"},{"uid":"9b80-14"},{"uid":"9b80-20"},{"uid":"9b80-22"},{"uid":"9b80-24"},{"uid":"9b80-30"},{"uid":"9b80-28"},{"uid":"9b80-32"},{"uid":"9b80-38"},{"uid":"9b80-40"},{"uid":"9b80-42"},{"uid":"9b80-46"},{"uid":"9b80-54"},{"uid":"9b80-60"},{"uid":"9b80-62"},{"uid":"9b80-66"},{"uid":"9b80-68"},{"uid":"9b80-8"},{"uid":"9b80-84"}],"isExternal":true},"9b80-114":{"id":"/src/date/DatePicker/index.ts","moduleParts":{},"imported":[{"uid":"9b80-128"},{"uid":"9b80-74"}],"importedBy":[{"uid":"9b80-16"},{"uid":"9b80-18"},{"uid":"9b80-20"},{"uid":"9b80-22"}]},"9b80-115":{"id":"@js-joda/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-14"},{"uid":"9b80-18"},{"uid":"9b80-22"}],"isExternal":true},"9b80-116":{"id":"formik","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-26"},{"uid":"9b80-30"},{"uid":"9b80-46"}],"isExternal":true},"9b80-117":{"id":"flat","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-30"}],"isExternal":true},"9b80-118":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-30"}],"isExternal":true},"9b80-119":{"id":"inputmask","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-10"},{"uid":"9b80-86"}],"isExternal":true},"9b80-120":{"id":"use-deep-compare-effect","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-10"}],"isExternal":true},"9b80-121":{"id":"react-credit-cards","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-40"}],"isExternal":true},"9b80-122":{"id":"react-credit-cards/es/styles-compiled.css","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-40"}],"isExternal":true},"9b80-123":{"id":"social-insurance-number","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-42"}],"isExternal":true},"9b80-124":{"id":"react-table","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-46"}],"isExternal":true},"9b80-125":{"id":"@thx/money","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-48"},{"uid":"9b80-56"},{"uid":"9b80-66"},{"uid":"9b80-68"},{"uid":"9b80-86"}],"isExternal":true},"9b80-126":{"id":"js-money","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-66"},{"uid":"9b80-68"},{"uid":"9b80-86"}],"isExternal":true},"9b80-127":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-8"}],"isExternal":true},"9b80-128":{"id":"react-datepicker","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-114"}],"isExternal":true},"9b80-129":{"id":"eventemitter3","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-88"}],"isExternal":true},"9b80-130":{"id":"credit-card-type","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-84"}],"isExternal":true},"9b80-131":{"id":"luhn","moduleParts":{},"imported":[],"importedBy":[{"uid":"9b80-84"}],"isExternal":true}},"env":{"rollup":"2.70.1"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
2672
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"75af-1"}]},{"name":"step/useStep.js","children":[{"name":"src/step/useStep.ts","uid":"75af-3"}]},{"name":"step/FormStep.js","children":[{"name":"src/step/FormStep.tsx","uid":"75af-5"}]},{"name":"step/Step.js","children":[{"name":"src/step/Step.tsx","uid":"75af-7"}]},{"name":"step/StepProvider.js","children":[{"name":"src/step/StepProvider.tsx","uid":"75af-9"}]},{"name":"inputs/MaskedInput/useMaskedInput.js","children":[{"name":"src/inputs/MaskedInput/useMaskedInput.ts","uid":"75af-11"}]},{"name":"date/LocalDatePicker/LocalDatePicker.js","children":[{"name":"src/date/LocalDatePicker/LocalDatePicker.tsx","uid":"75af-13"}]},{"name":"date/LocalMonthSelect/LocalMonthSelect.js","children":[{"name":"src/date/LocalMonthSelect/LocalMonthSelect.tsx","uid":"75af-15"}]},{"name":"date/LocalTimePicker/LocalTimePicker.js","children":[{"name":"src/date/LocalTimePicker/LocalTimePicker.tsx","uid":"75af-17"}]},{"name":"date/MonthDayPicker/MonthDayPicker.js","children":[{"name":"src/date/MonthDayPicker/MonthDayPicker.tsx","uid":"75af-19"}]},{"name":"date/MonthYearPicker/MonthYearPicker.js","children":[{"name":"src/date/MonthYearPicker/MonthYearPicker.tsx","uid":"75af-21"}]},{"name":"date/YearSelect/YearSelect.js","children":[{"name":"src/date/YearSelect/YearSelect.tsx","uid":"75af-23"}]},{"name":"inputs/MaskedInput/MaskedInput.js","children":[{"name":"src/inputs/MaskedInput/MaskedInput.tsx","uid":"75af-25"}]},{"name":"form/TForm/TForm.js","children":[{"name":"src/form/TForm/TForm.tsx","uid":"75af-27"}]},{"name":"form/TForm/useTForm.js","children":[{"name":"src/form/TForm/useTForm.tsx","uid":"75af-29"}]},{"name":"inputs/RadioGroup/RadioGroup.js","children":[{"name":"src/inputs/RadioGroup/RadioGroup.tsx","uid":"75af-31"}]},{"name":"inputs/Scriptel/Scriptel.js","children":[{"name":"src/inputs/Scriptel/Scriptel.tsx","uid":"75af-33"}]},{"name":"inputs/Scriptel/withScriptel.js","children":[{"name":"src/inputs/Scriptel/withScriptel.tsx","uid":"75af-35"}]},{"name":"inputs/ScriptelInput/ScriptelInput.js","children":[{"name":"src/inputs/ScriptelInput/ScriptelInput.tsx","uid":"75af-37"}]},{"name":"inputs/PhoneInput/PhoneInput.js","children":[{"name":"src/inputs/PhoneInput/PhoneInput.tsx","uid":"75af-39"}]},{"name":"inputs/CreditCardInput/CreditCardInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardInput.tsx","uid":"75af-41"}]},{"name":"inputs/SinInput/SinInput.js","children":[{"name":"src/inputs/SinInput/SinInput.tsx","uid":"75af-43"}]},{"name":"inputs/TableInput/addRowOnTab.js","children":[{"name":"src/inputs/TableInput/addRowOnTab.ts","uid":"75af-45"}]},{"name":"inputs/TableInput/TableInput.js","children":[{"name":"src/inputs/TableInput/TableInput.tsx","uid":"75af-47"}]},{"name":"inputs/TableInput/MoneyCell.js","children":[{"name":"src/inputs/TableInput/MoneyCell.tsx","uid":"75af-49"}]},{"name":"inputs/TableInput/MoneyEditCell.js","children":[{"name":"src/inputs/TableInput/MoneyEditCell.tsx","uid":"75af-51"}]},{"name":"inputs/TableInput/LocalDateCell.js","children":[{"name":"src/inputs/TableInput/LocalDateCell.tsx","uid":"75af-53"}]},{"name":"inputs/TableInput/CheckboxEditCell.js","children":[{"name":"src/inputs/TableInput/CheckboxEditCell.tsx","uid":"75af-55"}]},{"name":"inputs/TableInput/LocalDateEditCell.js","children":[{"name":"src/inputs/TableInput/LocalDateEditCell.tsx","uid":"75af-57"}]},{"name":"inputs/TableInput/MoneySumFooter.js","children":[{"name":"src/inputs/TableInput/MoneySumFooter.tsx","uid":"75af-59"}]},{"name":"inputs/TableInput/StringEditCell.js","children":[{"name":"src/inputs/TableInput/StringEditCell.tsx","uid":"75af-61"}]},{"name":"inputs/TableInput/DropdownCell.js","children":[{"name":"src/inputs/TableInput/DropdownCell.tsx","uid":"75af-63"}]},{"name":"inputs/TableInput/HoverCell.js","children":[{"name":"src/inputs/TableInput/HoverCell.tsx","uid":"75af-65"}]},{"name":"money/MoneyInput/MoneyInput.js","children":[{"name":"src/money/MoneyInput/MoneyInput.tsx","uid":"75af-67"}]},{"name":"money/MoneyCurrencyInput/MoneyCurrencyInput.js","children":[{"name":"src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","uid":"75af-69"}]},{"name":"inputs/Scriptel/scriptel/enums.js","children":[{"name":"src/inputs/Scriptel/scriptel/enums.ts","uid":"75af-71"}]},{"name":"step/stepContext.js","children":[{"name":"src/step/stepContext.ts","uid":"75af-73"}]},{"name":"date/DatePicker/styles.css.js","children":[{"name":"src/date/DatePicker/styles.css","uid":"75af-75"}]},{"name":"inputs/CreditCardInput/styles.css.js","children":[{"name":"src/inputs/CreditCardInput/styles.css","uid":"75af-77"}]},{"name":"date/LocalDatePicker/MaskedDateInput.js","children":[{"name":"src/date/LocalDatePicker/MaskedDateInput.tsx","uid":"75af-79"}]},{"name":"date/LocalTimePicker/MaskedTimeInput.js","children":[{"name":"src/date/LocalTimePicker/MaskedTimeInput.tsx","uid":"75af-81"}]},{"name":"inputs/Scriptel/ScriptelContext.js","children":[{"name":"src/inputs/Scriptel/ScriptelContext.ts","uid":"75af-83"}]},{"name":"money/useMoneyInput.js","children":[{"name":"src/money/useMoneyInput.ts","uid":"75af-85"}]},{"name":"inputs/CreditCardInput/CreditCardNumberInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardNumberInput.tsx","uid":"75af-87"}]},{"name":"inputs/Scriptel/scriptel/index.js","children":[{"name":"src/inputs/Scriptel/scriptel/index.ts","uid":"75af-89"}]},{"name":"external/style-inject/dist/style-inject.es.js","children":[{"name":"home/mike/dev/thx/node_modules/style-inject/dist/style-inject.es.js","uid":"75af-91"}]}],"isRoot":true},"nodeParts":{"75af-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"75af-0"},"75af-3":{"renderedLength":113,"gzipLength":106,"brotliLength":82,"mainUid":"75af-2"},"75af-5":{"renderedLength":440,"gzipLength":270,"brotliLength":214,"mainUid":"75af-4"},"75af-7":{"renderedLength":203,"gzipLength":157,"brotliLength":111,"mainUid":"75af-6"},"75af-9":{"renderedLength":3529,"gzipLength":1021,"brotliLength":861,"mainUid":"75af-8"},"75af-11":{"renderedLength":1487,"gzipLength":502,"brotliLength":423,"mainUid":"75af-10"},"75af-13":{"renderedLength":3161,"gzipLength":956,"brotliLength":853,"mainUid":"75af-12"},"75af-15":{"renderedLength":1135,"gzipLength":503,"brotliLength":415,"mainUid":"75af-14"},"75af-17":{"renderedLength":1205,"gzipLength":488,"brotliLength":402,"mainUid":"75af-16"},"75af-19":{"renderedLength":1965,"gzipLength":657,"brotliLength":544,"mainUid":"75af-18"},"75af-21":{"renderedLength":1229,"gzipLength":491,"brotliLength":424,"mainUid":"75af-20"},"75af-23":{"renderedLength":1553,"gzipLength":580,"brotliLength":461,"mainUid":"75af-22"},"75af-25":{"renderedLength":585,"gzipLength":317,"brotliLength":280,"mainUid":"75af-24"},"75af-27":{"renderedLength":600,"gzipLength":307,"brotliLength":267,"mainUid":"75af-26"},"75af-29":{"renderedLength":2930,"gzipLength":959,"brotliLength":816,"mainUid":"75af-28"},"75af-31":{"renderedLength":561,"gzipLength":301,"brotliLength":259,"mainUid":"75af-30"},"75af-33":{"renderedLength":1275,"gzipLength":476,"brotliLength":406,"mainUid":"75af-32"},"75af-35":{"renderedLength":275,"gzipLength":163,"brotliLength":130,"mainUid":"75af-34"},"75af-37":{"renderedLength":1963,"gzipLength":648,"brotliLength":547,"mainUid":"75af-36"},"75af-39":{"renderedLength":381,"gzipLength":248,"brotliLength":218,"mainUid":"75af-38"},"75af-41":{"renderedLength":2324,"gzipLength":586,"brotliLength":495,"mainUid":"75af-40"},"75af-43":{"renderedLength":1144,"gzipLength":530,"brotliLength":462,"mainUid":"75af-42"},"75af-45":{"renderedLength":312,"gzipLength":199,"brotliLength":173,"mainUid":"75af-44"},"75af-47":{"renderedLength":2788,"gzipLength":828,"brotliLength":734,"mainUid":"75af-46"},"75af-49":{"renderedLength":257,"gzipLength":187,"brotliLength":149,"mainUid":"75af-48"},"75af-51":{"renderedLength":708,"gzipLength":368,"brotliLength":313,"mainUid":"75af-50"},"75af-53":{"renderedLength":264,"gzipLength":191,"brotliLength":154,"mainUid":"75af-52"},"75af-55":{"renderedLength":702,"gzipLength":367,"brotliLength":330,"mainUid":"75af-54"},"75af-57":{"renderedLength":695,"gzipLength":350,"brotliLength":295,"mainUid":"75af-56"},"75af-59":{"renderedLength":414,"gzipLength":261,"brotliLength":219,"mainUid":"75af-58"},"75af-61":{"renderedLength":717,"gzipLength":369,"brotliLength":319,"mainUid":"75af-60"},"75af-63":{"renderedLength":493,"gzipLength":255,"brotliLength":211,"mainUid":"75af-62"},"75af-65":{"renderedLength":403,"gzipLength":245,"brotliLength":195,"mainUid":"75af-64"},"75af-67":{"renderedLength":778,"gzipLength":392,"brotliLength":329,"mainUid":"75af-66"},"75af-69":{"renderedLength":1575,"gzipLength":642,"brotliLength":536,"mainUid":"75af-68"},"75af-71":{"renderedLength":937,"gzipLength":292,"brotliLength":231,"mainUid":"75af-70"},"75af-73":{"renderedLength":80,"gzipLength":90,"brotliLength":72,"mainUid":"75af-72"},"75af-75":{"renderedLength":538,"gzipLength":263,"brotliLength":211,"mainUid":"75af-74"},"75af-77":{"renderedLength":78,"gzipLength":92,"brotliLength":79,"mainUid":"75af-76"},"75af-79":{"renderedLength":426,"gzipLength":283,"brotliLength":244,"mainUid":"75af-78"},"75af-81":{"renderedLength":446,"gzipLength":290,"brotliLength":241,"mainUid":"75af-80"},"75af-83":{"renderedLength":46,"gzipLength":60,"brotliLength":45,"mainUid":"75af-82"},"75af-85":{"renderedLength":2155,"gzipLength":770,"brotliLength":660,"mainUid":"75af-84"},"75af-87":{"renderedLength":1713,"gzipLength":687,"brotliLength":585,"mainUid":"75af-86"},"75af-89":{"renderedLength":2530,"gzipLength":860,"brotliLength":739,"mainUid":"75af-88"},"75af-91":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"75af-90"}},"nodeMetas":{"75af-0":{"id":"/src/index.ts","moduleParts":{"index.js":"75af-1"},"imported":[{"uid":"75af-92"},{"uid":"75af-93"},{"uid":"75af-94"},{"uid":"75af-95"},{"uid":"75af-96"},{"uid":"75af-97"},{"uid":"75af-98"},{"uid":"75af-99"},{"uid":"75af-100"},{"uid":"75af-101"},{"uid":"75af-102"},{"uid":"75af-103"},{"uid":"75af-104"},{"uid":"75af-105"},{"uid":"75af-106"},{"uid":"75af-107"},{"uid":"75af-108"},{"uid":"75af-109"}],"importedBy":[],"isEntry":true},"75af-2":{"id":"/src/step/useStep.ts","moduleParts":{"step/useStep.js":"75af-3"},"imported":[{"uid":"75af-110"},{"uid":"75af-72"}],"importedBy":[{"uid":"75af-109"},{"uid":"75af-4"}]},"75af-4":{"id":"/src/step/FormStep.tsx","moduleParts":{"step/FormStep.js":"75af-5"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"},{"uid":"75af-2"}],"importedBy":[{"uid":"75af-109"},{"uid":"75af-8"}]},"75af-6":{"id":"/src/step/Step.tsx","moduleParts":{"step/Step.js":"75af-7"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"}],"importedBy":[{"uid":"75af-109"},{"uid":"75af-8"}]},"75af-8":{"id":"/src/step/StepProvider.tsx","moduleParts":{"step/StepProvider.js":"75af-9"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"},{"uid":"75af-127"},{"uid":"75af-113"},{"uid":"75af-4"},{"uid":"75af-6"},{"uid":"75af-72"}],"importedBy":[{"uid":"75af-109"}]},"75af-10":{"id":"/src/inputs/MaskedInput/useMaskedInput.ts","moduleParts":{"inputs/MaskedInput/useMaskedInput.js":"75af-11"},"imported":[{"uid":"75af-112"},{"uid":"75af-119"},{"uid":"75af-110"},{"uid":"75af-120"}],"importedBy":[{"uid":"75af-99"},{"uid":"75af-24"},{"uid":"75af-42"},{"uid":"75af-86"}]},"75af-12":{"id":"/src/date/LocalDatePicker/LocalDatePicker.tsx","moduleParts":{"date/LocalDatePicker/LocalDatePicker.js":"75af-13"},"imported":[{"uid":"75af-110"},{"uid":"75af-111"},{"uid":"75af-112"},{"uid":"75af-113"},{"uid":"75af-114"},{"uid":"75af-74"},{"uid":"75af-78"}],"importedBy":[{"uid":"75af-92"}]},"75af-14":{"id":"/src/date/LocalMonthSelect/LocalMonthSelect.tsx","moduleParts":{"date/LocalMonthSelect/LocalMonthSelect.js":"75af-15"},"imported":[{"uid":"75af-110"},{"uid":"75af-115"},{"uid":"75af-112"},{"uid":"75af-113"}],"importedBy":[{"uid":"75af-93"}]},"75af-16":{"id":"/src/date/LocalTimePicker/LocalTimePicker.tsx","moduleParts":{"date/LocalTimePicker/LocalTimePicker.js":"75af-17"},"imported":[{"uid":"75af-110"},{"uid":"75af-115"},{"uid":"75af-111"},{"uid":"75af-112"},{"uid":"75af-114"},{"uid":"75af-80"}],"importedBy":[{"uid":"75af-94"}]},"75af-18":{"id":"/src/date/MonthDayPicker/MonthDayPicker.tsx","moduleParts":{"date/MonthDayPicker/MonthDayPicker.js":"75af-19"},"imported":[{"uid":"75af-110"},{"uid":"75af-111"},{"uid":"75af-112"},{"uid":"75af-113"},{"uid":"75af-114"}],"importedBy":[{"uid":"75af-95"}]},"75af-20":{"id":"/src/date/MonthYearPicker/MonthYearPicker.tsx","moduleParts":{"date/MonthYearPicker/MonthYearPicker.js":"75af-21"},"imported":[{"uid":"75af-110"},{"uid":"75af-115"},{"uid":"75af-111"},{"uid":"75af-112"},{"uid":"75af-113"},{"uid":"75af-114"}],"importedBy":[{"uid":"75af-96"}]},"75af-22":{"id":"/src/date/YearSelect/YearSelect.tsx","moduleParts":{"date/YearSelect/YearSelect.js":"75af-23"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"},{"uid":"75af-113"}],"importedBy":[{"uid":"75af-97"}]},"75af-24":{"id":"/src/inputs/MaskedInput/MaskedInput.tsx","moduleParts":{"inputs/MaskedInput/MaskedInput.js":"75af-25"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"},{"uid":"75af-113"},{"uid":"75af-10"}],"importedBy":[{"uid":"75af-99"}]},"75af-26":{"id":"/src/form/TForm/TForm.tsx","moduleParts":{"form/TForm/TForm.js":"75af-27"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"},{"uid":"75af-116"},{"uid":"75af-28"}],"importedBy":[{"uid":"75af-98"}]},"75af-28":{"id":"/src/form/TForm/useTForm.tsx","moduleParts":{"form/TForm/useTForm.js":"75af-29"},"imported":[{"uid":"75af-110"},{"uid":"75af-117"},{"uid":"75af-116"},{"uid":"75af-118"},{"uid":"75af-113"}],"importedBy":[{"uid":"75af-98"},{"uid":"75af-26"}]},"75af-30":{"id":"/src/inputs/RadioGroup/RadioGroup.tsx","moduleParts":{"inputs/RadioGroup/RadioGroup.js":"75af-31"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"},{"uid":"75af-113"}],"importedBy":[{"uid":"75af-100"}]},"75af-32":{"id":"/src/inputs/Scriptel/Scriptel.tsx","moduleParts":{"inputs/Scriptel/Scriptel.js":"75af-33"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"},{"uid":"75af-82"},{"uid":"75af-88"}],"importedBy":[{"uid":"75af-101"},{"uid":"75af-34"}]},"75af-34":{"id":"/src/inputs/Scriptel/withScriptel.tsx","moduleParts":{"inputs/Scriptel/withScriptel.js":"75af-35"},"imported":[{"uid":"75af-110"},{"uid":"75af-32"}],"importedBy":[{"uid":"75af-101"}]},"75af-36":{"id":"/src/inputs/ScriptelInput/ScriptelInput.tsx","moduleParts":{"inputs/ScriptelInput/ScriptelInput.js":"75af-37"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"},{"uid":"75af-113"},{"uid":"75af-82"}],"importedBy":[{"uid":"75af-102"}]},"75af-38":{"id":"/src/inputs/PhoneInput/PhoneInput.tsx","moduleParts":{"inputs/PhoneInput/PhoneInput.js":"75af-39"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"},{"uid":"75af-99"}],"importedBy":[{"uid":"75af-103"}]},"75af-40":{"id":"/src/inputs/CreditCardInput/CreditCardInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardInput.js":"75af-41"},"imported":[{"uid":"75af-110"},{"uid":"75af-111"},{"uid":"75af-112"},{"uid":"75af-121"},{"uid":"75af-122"},{"uid":"75af-113"},{"uid":"75af-96"},{"uid":"75af-86"},{"uid":"75af-76"}],"importedBy":[{"uid":"75af-104"}]},"75af-42":{"id":"/src/inputs/SinInput/SinInput.tsx","moduleParts":{"inputs/SinInput/SinInput.js":"75af-43"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"},{"uid":"75af-113"},{"uid":"75af-123"},{"uid":"75af-10"}],"importedBy":[{"uid":"75af-105"}]},"75af-44":{"id":"/src/inputs/TableInput/addRowOnTab.ts","moduleParts":{"inputs/TableInput/addRowOnTab.js":"75af-45"},"imported":[],"importedBy":[{"uid":"75af-106"},{"uid":"75af-50"},{"uid":"75af-54"},{"uid":"75af-60"}]},"75af-46":{"id":"/src/inputs/TableInput/TableInput.tsx","moduleParts":{"inputs/TableInput/TableInput.js":"75af-47"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"},{"uid":"75af-116"},{"uid":"75af-124"},{"uid":"75af-113"}],"importedBy":[{"uid":"75af-106"}]},"75af-48":{"id":"/src/inputs/TableInput/MoneyCell.tsx","moduleParts":{"inputs/TableInput/MoneyCell.js":"75af-49"},"imported":[{"uid":"75af-110"},{"uid":"75af-125"}],"importedBy":[{"uid":"75af-106"}]},"75af-50":{"id":"/src/inputs/TableInput/MoneyEditCell.tsx","moduleParts":{"inputs/TableInput/MoneyEditCell.js":"75af-51"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"},{"uid":"75af-107"},{"uid":"75af-44"}],"importedBy":[{"uid":"75af-106"}]},"75af-52":{"id":"/src/inputs/TableInput/LocalDateCell.tsx","moduleParts":{"inputs/TableInput/LocalDateCell.js":"75af-53"},"imported":[{"uid":"75af-110"},{"uid":"75af-111"}],"importedBy":[{"uid":"75af-106"}]},"75af-54":{"id":"/src/inputs/TableInput/CheckboxEditCell.tsx","moduleParts":{"inputs/TableInput/CheckboxEditCell.js":"75af-55"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"},{"uid":"75af-113"},{"uid":"75af-44"}],"importedBy":[{"uid":"75af-106"}]},"75af-56":{"id":"/src/inputs/TableInput/LocalDateEditCell.tsx","moduleParts":{"inputs/TableInput/LocalDateEditCell.js":"75af-57"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"},{"uid":"75af-92"}],"importedBy":[{"uid":"75af-106"}]},"75af-58":{"id":"/src/inputs/TableInput/MoneySumFooter.tsx","moduleParts":{"inputs/TableInput/MoneySumFooter.js":"75af-59"},"imported":[{"uid":"75af-110"},{"uid":"75af-125"}],"importedBy":[{"uid":"75af-106"}]},"75af-60":{"id":"/src/inputs/TableInput/StringEditCell.tsx","moduleParts":{"inputs/TableInput/StringEditCell.js":"75af-61"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"},{"uid":"75af-113"},{"uid":"75af-44"}],"importedBy":[{"uid":"75af-106"}]},"75af-62":{"id":"/src/inputs/TableInput/DropdownCell.tsx","moduleParts":{"inputs/TableInput/DropdownCell.js":"75af-63"},"imported":[{"uid":"75af-110"},{"uid":"75af-113"}],"importedBy":[{"uid":"75af-106"}]},"75af-64":{"id":"/src/inputs/TableInput/HoverCell.tsx","moduleParts":{"inputs/TableInput/HoverCell.js":"75af-65"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"}],"importedBy":[{"uid":"75af-106"}]},"75af-66":{"id":"/src/money/MoneyInput/MoneyInput.tsx","moduleParts":{"money/MoneyInput/MoneyInput.js":"75af-67"},"imported":[{"uid":"75af-110"},{"uid":"75af-125"},{"uid":"75af-112"},{"uid":"75af-126"},{"uid":"75af-113"},{"uid":"75af-84"}],"importedBy":[{"uid":"75af-107"}]},"75af-68":{"id":"/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","moduleParts":{"money/MoneyCurrencyInput/MoneyCurrencyInput.js":"75af-69"},"imported":[{"uid":"75af-110"},{"uid":"75af-125"},{"uid":"75af-112"},{"uid":"75af-126"},{"uid":"75af-113"},{"uid":"75af-84"}],"importedBy":[{"uid":"75af-108"}]},"75af-70":{"id":"/src/inputs/Scriptel/scriptel/enums.ts","moduleParts":{"inputs/Scriptel/scriptel/enums.js":"75af-71"},"imported":[],"importedBy":[{"uid":"75af-101"},{"uid":"75af-88"}]},"75af-72":{"id":"/src/step/stepContext.ts","moduleParts":{"step/stepContext.js":"75af-73"},"imported":[{"uid":"75af-110"}],"importedBy":[{"uid":"75af-2"},{"uid":"75af-8"}]},"75af-74":{"id":"/src/date/DatePicker/styles.css","moduleParts":{"date/DatePicker/styles.css.js":"75af-75"},"imported":[{"uid":"75af-90"}],"importedBy":[{"uid":"75af-12"},{"uid":"75af-114"}]},"75af-76":{"id":"/src/inputs/CreditCardInput/styles.css","moduleParts":{"inputs/CreditCardInput/styles.css.js":"75af-77"},"imported":[{"uid":"75af-90"}],"importedBy":[{"uid":"75af-40"}]},"75af-78":{"id":"/src/date/LocalDatePicker/MaskedDateInput.tsx","moduleParts":{"date/LocalDatePicker/MaskedDateInput.js":"75af-79"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"},{"uid":"75af-99"}],"importedBy":[{"uid":"75af-12"}]},"75af-80":{"id":"/src/date/LocalTimePicker/MaskedTimeInput.tsx","moduleParts":{"date/LocalTimePicker/MaskedTimeInput.js":"75af-81"},"imported":[{"uid":"75af-110"},{"uid":"75af-112"},{"uid":"75af-99"}],"importedBy":[{"uid":"75af-16"}]},"75af-82":{"id":"/src/inputs/Scriptel/ScriptelContext.ts","moduleParts":{"inputs/Scriptel/ScriptelContext.js":"75af-83"},"imported":[{"uid":"75af-110"}],"importedBy":[{"uid":"75af-32"},{"uid":"75af-36"}]},"75af-84":{"id":"/src/money/useMoneyInput.ts","moduleParts":{"money/useMoneyInput.js":"75af-85"},"imported":[{"uid":"75af-125"},{"uid":"75af-112"},{"uid":"75af-119"},{"uid":"75af-126"},{"uid":"75af-110"}],"importedBy":[{"uid":"75af-66"},{"uid":"75af-68"}]},"75af-86":{"id":"/src/inputs/CreditCardInput/CreditCardNumberInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardNumberInput.js":"75af-87"},"imported":[{"uid":"75af-110"},{"uid":"75af-130"},{"uid":"75af-112"},{"uid":"75af-131"},{"uid":"75af-113"},{"uid":"75af-10"}],"importedBy":[{"uid":"75af-40"}]},"75af-88":{"id":"/src/inputs/Scriptel/scriptel/index.ts","moduleParts":{"inputs/Scriptel/scriptel/index.js":"75af-89"},"imported":[{"uid":"75af-112"},{"uid":"75af-129"},{"uid":"75af-70"}],"importedBy":[{"uid":"75af-32"}]},"75af-90":{"id":"/home/mike/dev/thx/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"75af-91"},"imported":[],"importedBy":[{"uid":"75af-74"},{"uid":"75af-76"}]},"75af-92":{"id":"/src/date/LocalDatePicker/index.ts","moduleParts":{},"imported":[{"uid":"75af-12"}],"importedBy":[{"uid":"75af-0"},{"uid":"75af-56"}]},"75af-93":{"id":"/src/date/LocalMonthSelect/index.ts","moduleParts":{},"imported":[{"uid":"75af-14"}],"importedBy":[{"uid":"75af-0"}]},"75af-94":{"id":"/src/date/LocalTimePicker/index.ts","moduleParts":{},"imported":[{"uid":"75af-16"}],"importedBy":[{"uid":"75af-0"}]},"75af-95":{"id":"/src/date/MonthDayPicker/index.ts","moduleParts":{},"imported":[{"uid":"75af-18"}],"importedBy":[{"uid":"75af-0"}]},"75af-96":{"id":"/src/date/MonthYearPicker/index.ts","moduleParts":{},"imported":[{"uid":"75af-20"}],"importedBy":[{"uid":"75af-0"},{"uid":"75af-40"}]},"75af-97":{"id":"/src/date/YearSelect/index.ts","moduleParts":{},"imported":[{"uid":"75af-22"}],"importedBy":[{"uid":"75af-0"}]},"75af-98":{"id":"/src/form/TForm/index.ts","moduleParts":{},"imported":[{"uid":"75af-26"},{"uid":"75af-28"}],"importedBy":[{"uid":"75af-0"}]},"75af-99":{"id":"/src/inputs/MaskedInput/index.ts","moduleParts":{},"imported":[{"uid":"75af-24"},{"uid":"75af-10"}],"importedBy":[{"uid":"75af-0"},{"uid":"75af-38"},{"uid":"75af-78"},{"uid":"75af-80"}]},"75af-100":{"id":"/src/inputs/RadioGroup/index.ts","moduleParts":{},"imported":[{"uid":"75af-30"}],"importedBy":[{"uid":"75af-0"}]},"75af-101":{"id":"/src/inputs/Scriptel/index.ts","moduleParts":{},"imported":[{"uid":"75af-32"},{"uid":"75af-34"},{"uid":"75af-70"}],"importedBy":[{"uid":"75af-0"}]},"75af-102":{"id":"/src/inputs/ScriptelInput/index.ts","moduleParts":{},"imported":[{"uid":"75af-36"}],"importedBy":[{"uid":"75af-0"}]},"75af-103":{"id":"/src/inputs/PhoneInput/index.ts","moduleParts":{},"imported":[{"uid":"75af-38"}],"importedBy":[{"uid":"75af-0"}]},"75af-104":{"id":"/src/inputs/CreditCardInput/index.ts","moduleParts":{},"imported":[{"uid":"75af-40"}],"importedBy":[{"uid":"75af-0"}]},"75af-105":{"id":"/src/inputs/SinInput/index.ts","moduleParts":{},"imported":[{"uid":"75af-42"}],"importedBy":[{"uid":"75af-0"}]},"75af-106":{"id":"/src/inputs/TableInput/index.ts","moduleParts":{},"imported":[{"uid":"75af-46"},{"uid":"75af-48"},{"uid":"75af-50"},{"uid":"75af-52"},{"uid":"75af-54"},{"uid":"75af-56"},{"uid":"75af-58"},{"uid":"75af-60"},{"uid":"75af-62"},{"uid":"75af-64"},{"uid":"75af-44"}],"importedBy":[{"uid":"75af-0"}]},"75af-107":{"id":"/src/money/MoneyInput/index.ts","moduleParts":{},"imported":[{"uid":"75af-66"}],"importedBy":[{"uid":"75af-0"},{"uid":"75af-50"}]},"75af-108":{"id":"/src/money/MoneyCurrencyInput/index.ts","moduleParts":{},"imported":[{"uid":"75af-68"}],"importedBy":[{"uid":"75af-0"}]},"75af-109":{"id":"/src/step/index.ts","moduleParts":{},"imported":[{"uid":"75af-6"},{"uid":"75af-2"},{"uid":"75af-4"},{"uid":"75af-8"}],"importedBy":[{"uid":"75af-0"}]},"75af-110":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-12"},{"uid":"75af-14"},{"uid":"75af-16"},{"uid":"75af-18"},{"uid":"75af-20"},{"uid":"75af-22"},{"uid":"75af-26"},{"uid":"75af-28"},{"uid":"75af-24"},{"uid":"75af-10"},{"uid":"75af-30"},{"uid":"75af-32"},{"uid":"75af-34"},{"uid":"75af-36"},{"uid":"75af-38"},{"uid":"75af-40"},{"uid":"75af-42"},{"uid":"75af-46"},{"uid":"75af-48"},{"uid":"75af-50"},{"uid":"75af-52"},{"uid":"75af-54"},{"uid":"75af-56"},{"uid":"75af-58"},{"uid":"75af-60"},{"uid":"75af-62"},{"uid":"75af-64"},{"uid":"75af-66"},{"uid":"75af-68"},{"uid":"75af-6"},{"uid":"75af-2"},{"uid":"75af-4"},{"uid":"75af-8"},{"uid":"75af-78"},{"uid":"75af-80"},{"uid":"75af-82"},{"uid":"75af-86"},{"uid":"75af-84"},{"uid":"75af-72"}],"isExternal":true},"75af-111":{"id":"@thx/date","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-12"},{"uid":"75af-16"},{"uid":"75af-18"},{"uid":"75af-20"},{"uid":"75af-40"},{"uid":"75af-52"}],"isExternal":true},"75af-112":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-12"},{"uid":"75af-14"},{"uid":"75af-16"},{"uid":"75af-18"},{"uid":"75af-20"},{"uid":"75af-22"},{"uid":"75af-26"},{"uid":"75af-24"},{"uid":"75af-10"},{"uid":"75af-30"},{"uid":"75af-32"},{"uid":"75af-36"},{"uid":"75af-38"},{"uid":"75af-40"},{"uid":"75af-42"},{"uid":"75af-46"},{"uid":"75af-50"},{"uid":"75af-54"},{"uid":"75af-56"},{"uid":"75af-60"},{"uid":"75af-64"},{"uid":"75af-66"},{"uid":"75af-68"},{"uid":"75af-6"},{"uid":"75af-4"},{"uid":"75af-8"},{"uid":"75af-78"},{"uid":"75af-80"},{"uid":"75af-88"},{"uid":"75af-86"},{"uid":"75af-84"}],"isExternal":true},"75af-113":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-12"},{"uid":"75af-14"},{"uid":"75af-18"},{"uid":"75af-20"},{"uid":"75af-22"},{"uid":"75af-28"},{"uid":"75af-24"},{"uid":"75af-30"},{"uid":"75af-36"},{"uid":"75af-40"},{"uid":"75af-42"},{"uid":"75af-46"},{"uid":"75af-54"},{"uid":"75af-60"},{"uid":"75af-62"},{"uid":"75af-66"},{"uid":"75af-68"},{"uid":"75af-8"},{"uid":"75af-86"}],"isExternal":true},"75af-114":{"id":"/src/date/DatePicker/index.ts","moduleParts":{},"imported":[{"uid":"75af-128"},{"uid":"75af-74"}],"importedBy":[{"uid":"75af-12"},{"uid":"75af-16"},{"uid":"75af-18"},{"uid":"75af-20"}]},"75af-115":{"id":"@js-joda/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-14"},{"uid":"75af-16"},{"uid":"75af-20"}],"isExternal":true},"75af-116":{"id":"formik","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-26"},{"uid":"75af-28"},{"uid":"75af-46"}],"isExternal":true},"75af-117":{"id":"flat","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-28"}],"isExternal":true},"75af-118":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-28"}],"isExternal":true},"75af-119":{"id":"inputmask","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-10"},{"uid":"75af-84"}],"isExternal":true},"75af-120":{"id":"use-deep-compare-effect","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-10"}],"isExternal":true},"75af-121":{"id":"react-credit-cards","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-40"}],"isExternal":true},"75af-122":{"id":"react-credit-cards/es/styles-compiled.css","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-40"}],"isExternal":true},"75af-123":{"id":"social-insurance-number","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-42"}],"isExternal":true},"75af-124":{"id":"react-table","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-46"}],"isExternal":true},"75af-125":{"id":"@thx/money","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-48"},{"uid":"75af-58"},{"uid":"75af-66"},{"uid":"75af-68"},{"uid":"75af-84"}],"isExternal":true},"75af-126":{"id":"js-money","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-66"},{"uid":"75af-68"},{"uid":"75af-84"}],"isExternal":true},"75af-127":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-8"}],"isExternal":true},"75af-128":{"id":"react-datepicker","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-114"}],"isExternal":true},"75af-129":{"id":"eventemitter3","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-88"}],"isExternal":true},"75af-130":{"id":"credit-card-type","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-86"}],"isExternal":true},"75af-131":{"id":"luhn","moduleParts":{},"imported":[],"importedBy":[{"uid":"75af-86"}],"isExternal":true}},"env":{"rollup":"2.70.1"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
2673
2673
|
|
|
2674
2674
|
const run = () => {
|
|
2675
2675
|
const width = window.innerWidth;
|
package/dist/stats.txt
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
-----------------------------
|
|
2
|
+
Rollup File Analysis
|
|
3
|
+
-----------------------------
|
|
4
|
+
bundle size: 47.749 KB
|
|
5
|
+
original size: 69.143 KB
|
|
6
|
+
code reduction: 30.94 %
|
|
7
|
+
module count: 46
|
|
8
|
+
|
|
9
|
+
/src/step/StepProvider.tsx
|
|
10
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.39 % (3.529 KB)
|
|
11
|
+
/src/date/LocalDatePicker/LocalDatePicker.tsx
|
|
12
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.62 % (3.161 KB)
|
|
13
|
+
/src/form/TForm/useTForm.tsx
|
|
14
|
+
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.14 % (2.93 KB)
|
|
15
|
+
/src/inputs/TableInput/TableInput.tsx
|
|
16
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.84 % (2.788 KB)
|
|
17
|
+
/src/inputs/Scriptel/scriptel/index.ts
|
|
18
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.3 % (2.53 KB)
|
|
19
|
+
/src/inputs/CreditCardInput/CreditCardInput.tsx
|
|
20
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.87 % (2.324 KB)
|
|
21
|
+
/src/money/useMoneyInput.ts
|
|
22
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.51 % (2.155 KB)
|
|
23
|
+
/src/date/MonthDayPicker/MonthDayPicker.tsx
|
|
24
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.12 % (1.965 KB)
|
|
25
|
+
/src/inputs/ScriptelInput/ScriptelInput.tsx
|
|
26
|
+
██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.11 % (1.963 KB)
|
|
27
|
+
/src/inputs/CreditCardInput/CreditCardNumberInput.tsx
|
|
28
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.59 % (1.713 KB)
|
|
29
|
+
/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx
|
|
30
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.3 % (1.575 KB)
|
|
31
|
+
/src/date/YearSelect/YearSelect.tsx
|
|
32
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.25 % (1.553 KB)
|
|
33
|
+
/src/inputs/MaskedInput/useMaskedInput.ts
|
|
34
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.11 % (1.487 KB)
|
|
35
|
+
/src/inputs/Scriptel/Scriptel.tsx
|
|
36
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.67 % (1.275 KB)
|
|
37
|
+
/src/date/MonthYearPicker/MonthYearPicker.tsx
|
|
38
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.57 % (1.229 KB)
|
|
39
|
+
/src/date/LocalTimePicker/LocalTimePicker.tsx
|
|
40
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.52 % (1.205 KB)
|
|
41
|
+
/src/inputs/SinInput/SinInput.tsx
|
|
42
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.4 % (1.144 KB)
|
|
43
|
+
/src/date/LocalMonthSelect/LocalMonthSelect.tsx
|
|
44
|
+
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.38 % (1.135 KB)
|
|
45
|
+
/src/inputs/Scriptel/scriptel/enums.ts
|
|
46
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.96 % (937 Bytes)
|
|
47
|
+
/src/money/MoneyInput/MoneyInput.tsx
|
|
48
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.63 % (778 Bytes)
|
|
49
|
+
/src/inputs/TableInput/StringEditCell.tsx
|
|
50
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.5 % (717 Bytes)
|
|
51
|
+
/src/inputs/TableInput/MoneyEditCell.tsx
|
|
52
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.48 % (708 Bytes)
|
|
53
|
+
/src/inputs/TableInput/CheckboxEditCell.tsx
|
|
54
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.47 % (702 Bytes)
|
|
55
|
+
/src/inputs/TableInput/LocalDateEditCell.tsx
|
|
56
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.46 % (695 Bytes)
|
|
57
|
+
/home/mike/dev/thx/node_modules/style-inject/dist/style-inject.es.js
|
|
58
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.33 % (636 Bytes)
|
|
59
|
+
/src/form/TForm/TForm.tsx
|
|
60
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.26 % (600 Bytes)
|
|
61
|
+
/src/inputs/MaskedInput/MaskedInput.tsx
|
|
62
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.23 % (585 Bytes)
|
|
63
|
+
/src/inputs/RadioGroup/RadioGroup.tsx
|
|
64
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.17 % (561 Bytes)
|
|
65
|
+
/src/date/DatePicker/styles.css
|
|
66
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.13 % (538 Bytes)
|
|
67
|
+
/src/inputs/TableInput/DropdownCell.tsx
|
|
68
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.03 % (493 Bytes)
|
|
69
|
+
/src/date/LocalTimePicker/MaskedTimeInput.tsx
|
|
70
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.93 % (446 Bytes)
|
|
71
|
+
/src/step/FormStep.tsx
|
|
72
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.92 % (440 Bytes)
|
|
73
|
+
/src/date/LocalDatePicker/MaskedDateInput.tsx
|
|
74
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.89 % (426 Bytes)
|
|
75
|
+
/src/inputs/TableInput/MoneySumFooter.tsx
|
|
76
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.87 % (414 Bytes)
|
|
77
|
+
/src/inputs/TableInput/HoverCell.tsx
|
|
78
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.84 % (403 Bytes)
|
|
79
|
+
/src/inputs/PhoneInput/PhoneInput.tsx
|
|
80
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.8 % (381 Bytes)
|
|
81
|
+
/src/inputs/TableInput/addRowOnTab.ts
|
|
82
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.65 % (312 Bytes)
|
|
83
|
+
/src/inputs/Scriptel/withScriptel.tsx
|
|
84
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.58 % (275 Bytes)
|
|
85
|
+
/src/inputs/TableInput/LocalDateCell.tsx
|
|
86
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.55 % (264 Bytes)
|
|
87
|
+
/src/inputs/TableInput/MoneyCell.tsx
|
|
88
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.54 % (257 Bytes)
|
|
89
|
+
/src/step/Step.tsx
|
|
90
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.43 % (203 Bytes)
|
|
91
|
+
/src/step/useStep.ts
|
|
92
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.24 % (113 Bytes)
|
|
93
|
+
/src/step/stepContext.ts
|
|
94
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.17 % (80 Bytes)
|
|
95
|
+
/src/inputs/CreditCardInput/styles.css
|
|
96
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.16 % (78 Bytes)
|
|
97
|
+
/src/inputs/Scriptel/ScriptelContext.ts
|
|
98
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.1 % (46 Bytes)
|
|
99
|
+
/src/index.ts
|
|
100
|
+
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0 % (0 Byte)
|
|
@@ -11,6 +11,8 @@ interface ILocalDatePicker {
|
|
|
11
11
|
maxDate?: LocalDate;
|
|
12
12
|
icon?: boolean;
|
|
13
13
|
openOnFocus?: boolean;
|
|
14
|
+
startFocused?: boolean;
|
|
15
|
+
select?: boolean;
|
|
14
16
|
}
|
|
15
17
|
declare type InputPropsOmitted = Omit<InputProps, 'onChange'>;
|
|
16
18
|
declare type ReactDatePickerPropsOmitted = Omit<Omit<ReactDatePickerProps, 'value'>, 'onChange' | 'minDate' | 'maxDate'>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MaskedInputProps } from '../../inputs/MaskedInput';
|
|
3
|
+
import type { MaskedInputRef } from '../../inputs/MaskedInput/MaskedInput';
|
|
4
|
+
export declare type MaskedDateInputRef = MaskedInputRef;
|
|
3
5
|
export interface MaskedDateInputValue {
|
|
4
6
|
target: {
|
|
5
7
|
value: string;
|
|
@@ -9,4 +11,4 @@ export interface MaskedDateInputProps {
|
|
|
9
11
|
name?: string;
|
|
10
12
|
onChange?: (value: MaskedDateInputValue) => void;
|
|
11
13
|
}
|
|
12
|
-
export declare const MaskedDateInput: import("react").ForwardRefExoticComponent<Pick<MaskedDateInputProps & Omit<MaskedInputProps, "onChange">, string | number> & import("react").RefAttributes<
|
|
14
|
+
export declare const MaskedDateInput: import("react").ForwardRefExoticComponent<Pick<MaskedDateInputProps & Omit<MaskedInputProps, "onChange">, string | number> & import("react").RefAttributes<MaskedInputRef>>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { InputProps } from 'semantic-ui-react';
|
|
3
3
|
import { UseMaskedInputProps } from './useMaskedInput';
|
|
4
|
+
export interface MaskedInputRef {
|
|
5
|
+
focus: () => void;
|
|
6
|
+
select: () => void;
|
|
7
|
+
}
|
|
4
8
|
export declare type MaskedInputProps = {
|
|
5
9
|
name?: string;
|
|
6
10
|
onBlur?: (event: any) => void;
|
|
7
11
|
} & UseMaskedInputProps & Omit<InputProps, 'onChange'>;
|
|
8
|
-
export declare
|
|
12
|
+
export declare const MaskedInput: import("react").ForwardRefExoticComponent<Pick<MaskedInputProps, string | number> & import("react").RefAttributes<MaskedInputRef>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { LocalDate } from '@js-joda/core';
|
|
3
2
|
import type { TableCellProps } from './TableInput';
|
|
4
3
|
export declare function LocalDateEditCell<D extends Record<string, unknown>>(): (props: TableCellProps<D, LocalDate | null>) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thx/controls",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.9.0",
|
|
4
4
|
"description": "A collection of components designed with SemanticUI.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/thr-consulting/thr-addons/issues"
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "e48859efc7383cc9ccf934b70fae8ec163b0109a"
|
|
68
68
|
}
|