@thx/controls 16.6.1-alpha.0 → 16.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import React, { useState } from 'react';
1
+ import React, { useState, 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';
@@ -74,6 +74,9 @@ function LocalDatePicker(props) {
74
74
  };
75
75
  const [isOpen, setIsOpen] = useState(false);
76
76
  const [selected, setSelected] = useState(value ? toDate(value) : null);
77
+ useEffect(() => {
78
+ setSelected(value ? toDate(value) : null);
79
+ }, [value]);
77
80
  const handleDateChange = (date) => {
78
81
  setSelected(date);
79
82
  onChange && onChange(date ? toLocalDate(date) : null);
@@ -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 {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\ticonPosition,\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\ticonPosition,\n\t};\n\n\tconst [isOpen, setIsOpen] = useState(false);\n\tconst [selected, setSelected] = useState(value ? toDate(value) : null);\n\n\tconst handleDateChange = (date: Date) => {\n\t\tsetSelected(date);\n\t\tonChange && onChange(date ? toLocalDate(date) : null);\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\t\tsetSelected(date);\n\t\tonChange && onChange(date ? toLocalDate(date) : null);\n\t};\n\n\tconst handleDatePickerBlur = (e: React.FocusEvent<HTMLInputElement>) => {\n\t\tsetIsOpen(false);\n\t\tonBlur && onBlur(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\tvalue={selected ? toDate(selected) : ''}\n\t\t\t\t\t\tonChange={handleInputChange}\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/>\n\t);\n}\n"],"names":[],"mappings":";;;;;;;;AAUU,MAAM,mCAAmC,EAAA;AAgB5C,SAAA,eAAA,CAAyB,KAA0C,EAAA;AACzE,EAAM,MAAA;AAAA,IACL,OAAA;AAAA,IACA,OAAA;AAAA,IACA,KAAA;AAAA,IACA,QAAA;AAAA,IACA,MAAA;AAAA,IACA,EAAA;AAAA,IACA,MAAA;AAAA,IACA,cAAA;AAAA,IACA,SAAA;AAAA,IACA,KAAA;AAAA,IACA,KAAA;AAAA,IACA,KAAA;AAAA,IACA,I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T,KAAA,CAAA,aAAA,CAAA,eAAA,EAAA;AAAA,MACI,GAAA,gBAAA;AAAA,MACJ,KAAO,EAAA,QAAA,GAAW,MAAO,CAAA,QAAQ,CAAI,GAAA,EAAA;AAAA,MACrC,QAAU,EAAA,iBAAA;AAAA,MACV,OAAA,EAAS,CAAC,EAAC,MAAyC,EAAA,KAAA,WAAA,GAAc,UAAU,CAAC,MAAM,CAAI,GAAA,MAAA,CAAO,MAAO,EAAA;AAAA,MACrG,SAAW,EAAA,eAAA;AAAA,KACZ,CAAA,EACC,wBAAS,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA;AAAA,MAAS,GAAA,SAAA;AAAA,MAAW,OAAS,EAAA,gBAAA;AAAA,MAAkB,QAAU,EAAA,CAAA,CAAA;AAAA,MAAI,IAAK,EAAA,oBAAA;AAAA,MAAqB,IAAI,EAAA,IAAA;AAAA,KAAC,CACvG,CAAA;AAAA,IAED,OAAS,EAAA,OAAA,GAAU,MAAO,CAAA,OAAO,CAAI,GAAA,IAAA;AAAA,IACrC,OAAS,EAAA,OAAA,GAAU,MAAO,CAAA,OAAO,CAAI,GAAA,IAAA;AAAA,IACrC,IAAM,EAAA,MAAA;AAAA,IACN,aAAe,EAAA,WAAA;AAAA,IACf,kBAAoB,EAAA,WAAA;AAAA,IACpB,MAAQ,EAAA,oBAAA;AAAA,GACT,CAAA,CAAA;AAEF;;;;"}
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\ticonPosition,\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\ticonPosition,\n\t};\n\n\tconst [isOpen, setIsOpen] = useState(false);\n\tconst [selected, setSelected] = useState(value ? toDate(value) : null);\n\n\tuseEffect(() => {\n\t\tsetSelected(value ? toDate(value) : null);\n\t}, [value]);\n\n\tconst handleDateChange = (date: Date) => {\n\t\tsetSelected(date);\n\t\tonChange && onChange(date ? toLocalDate(date) : null);\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\t\tsetSelected(date);\n\t\tonChange && onChange(date ? toLocalDate(date) : null);\n\t};\n\n\tconst handleDatePickerBlur = (e: React.FocusEvent<HTMLInputElement>) => {\n\t\tsetIsOpen(false);\n\t\tonBlur && onBlur(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\tvalue={selected ? toDate(selected) : ''}\n\t\t\t\t\t\tonChange={handleInputChange}\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={openOnF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AAA,GAAU,MAAO,CAAA,OAAO,CAAI,GAAA,IAAA;AAAA,IACrC,IAAM,EAAA,MAAA;AAAA,IACN,aAAe,EAAA,WAAA;AAAA,IACf,kBAAoB,EAAA,WAAA;AAAA,IACpB,MAAQ,EAAA,oBAAA;AAAA,GACT,CAAA,CAAA;AAEF;;;;"}
@@ -4,7 +4,7 @@ import { MoneyInput } from '../../money/MoneyInput/MoneyInput.js';
4
4
  import { addRowOnTab } from './addRowOnTab.js';
5
5
 
6
6
  debug("thx.controls.inputs.TableInput.MoneyEditCell");
7
- function MoneyEditCell(opts) {
7
+ function MoneyEditCell(moneyEditCellProps) {
8
8
  return function MoneyEditCellFn(props) {
9
9
  const {
10
10
  value: initialValue,
@@ -13,7 +13,9 @@ function MoneyEditCell(opts) {
13
13
  updateData
14
14
  } = props;
15
15
  const [value, setValue] = useState(initialValue);
16
+ const { addRowOnTabIf, ...rest } = moneyEditCellProps || {};
16
17
  return /* @__PURE__ */ React.createElement(MoneyInput, {
18
+ ...rest,
17
19
  fluid: true,
18
20
  transparent: true,
19
21
  value,
@@ -21,7 +23,7 @@ function MoneyEditCell(opts) {
21
23
  onBlur: () => {
22
24
  updateData(rowIndex, id, value);
23
25
  },
24
- onKeyDown: (event) => addRowOnTab(event, value, props, opts?.addRowOnTabIf)
26
+ onKeyDown: (event) => addRowOnTab(event, value, props, addRowOnTabIf)
25
27
  });
26
28
  };
27
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"MoneyEditCell.js","sources":["../../../../src/inputs/TableInput/MoneyEditCell.tsx"],"sourcesContent":["import debug from 'debug';\nimport type Money from 'js-money';\nimport {useState} from 'react';\nimport {MoneyInput} from '../../money/MoneyInput';\nimport type {TableCellProps} from './TableInput';\nimport type {AddRowOnTabIf} from './addRowOnTab';\nimport {addRowOnTab} from './addRowOnTab';\n\nconst d = debug('thx.controls.inputs.TableInput.MoneyEditCell');\n\ninterface MoneyEditCellOptions<D extends Record<string, unknown>> {\n\t/** If function is present, and returns true, will add a new row if tab is pressed on the last row */\n\taddRowOnTabIf?: AddRowOnTabIf<D, Money>;\n}\n\nexport function MoneyEditCell<D extends Record<string, unknown>>(opts?: MoneyEditCellOptions<D>) {\n\treturn function MoneyEditCellFn(props: TableCellProps<D, Money>) {\n\t\tconst {\n\t\t\tvalue: initialValue,\n\t\t\trow: {index: rowIndex},\n\t\t\tcolumn: {id},\n\t\t\tupdateData,\n\t\t} = props;\n\n\t\tconst [value, setValue] = useState(initialValue);\n\n\t\treturn (\n\t\t\t<MoneyInput\n\t\t\t\tfluid\n\t\t\t\ttransparent\n\t\t\t\tvalue={value}\n\t\t\t\tonChange={setValue}\n\t\t\t\tonBlur={() => {\n\t\t\t\t\tupdateData(rowIndex, id, value);\n\t\t\t\t}}\n\t\t\t\tonKeyDown={(event: KeyboardEvent) => addRowOnTab(event, value, props, opts?.addRowOnTabIf)}\n\t\t\t/>\n\t\t);\n\t};\n}\n"],"names":[],"mappings":";;;;;AAQU,MAAM,8CAA8C,EAAA;AAOvD,SAAA,aAAA,CAA0D,IAAgC,EAAA;AAChG,EAAA,OAAO,yBAAyB,KAAiC,EAAA;AAChE,IAAM,MAAA;AAAA,MACL,KAAO,EAAA,YAAA;AAAA,MACP,GAAA,EAAK,EAAC,KAAO,EAAA,QAAA,EAAA;AAAA,MACb,QAAQ,EAAC,EAAA,EAAA;AAAA,MACT,UAAA;AAAA,KACG,GAAA,KAAA,CAAA;AAEJ,IAAA,MAAM,CAAC,KAAA,EAAO,QAAY,CAAA,GAAA,QAAA,CAAS,YAAY,CAAA,CAAA;AAE/C,IAAA,uBACE,KAAA,CAAA,aAAA,CAAA,UAAA,EAAA;AAAA,MACA,KAAK,EAAA,IAAA;AAAA,MACL,WAAW,EAAA,IAAA;AAAA,MACX,KAAA;AAAA,MACA,QAAU,EAAA,QAAA;AAAA,MACV,QAAQ,MAAM;AACb,QAAW,UAAA,CAAA,QAAA,EAAU,IAAI,KAAK,CAAA,CAAA;AAAA,OAC/B;AAAA,MACA,SAAA,EAAW,CAAC,KAAyB,KAAA,WAAA,CAAY,OAAO,KAAO,EAAA,KAAA,EAAO,MAAM,aAAa,CAAA;AAAA,KAC1F,CAAA,CAAA;AAAA,GAEF,CAAA;AACD;;;;"}
1
+ {"version":3,"file":"MoneyEditCell.js","sources":["../../../../src/inputs/TableInput/MoneyEditCell.tsx"],"sourcesContent":["import debug from 'debug';\nimport type Money from 'js-money';\nimport {useState} from 'react';\nimport {MoneyInput} from '../../money/MoneyInput';\nimport type {TableCellProps} from './TableInput';\nimport type {AddRowOnTabIf} from './addRowOnTab';\nimport {addRowOnTab} from './addRowOnTab';\n\nconst d = debug('thx.controls.inputs.TableInput.MoneyEditCell');\n\ninterface MoneyEditCellOptions<D extends Record<string, unknown>> {\n\t/** If function is present, and returns true, will add a new row if tab is pressed on the last row */\n\taddRowOnTabIf?: AddRowOnTabIf<D, Money | undefined>;\n\ttabIndex?: number;\n}\n\nexport function MoneyEditCell<D extends Record<string, unknown>>(moneyEditCellProps?: MoneyEditCellOptions<D>) {\n\treturn function MoneyEditCellFn(props: TableCellProps<D, Money | undefined>) {\n\t\tconst {\n\t\t\tvalue: initialValue,\n\t\t\trow: {index: rowIndex},\n\t\t\tcolumn: {id},\n\t\t\tupdateData,\n\t\t} = props;\n\n\t\tconst [value, setValue] = useState(initialValue);\n\t\tconst {addRowOnTabIf, ...rest} = moneyEditCellProps || {};\n\n\t\treturn (\n\t\t\t<MoneyInput\n\t\t\t\t{...rest}\n\t\t\t\tfluid\n\t\t\t\ttransparent\n\t\t\t\tvalue={value}\n\t\t\t\tonChange={setValue}\n\t\t\t\tonBlur={() => {\n\t\t\t\t\tupdateData(rowIndex, id, value);\n\t\t\t\t}}\n\t\t\t\tonKeyDown={(event: KeyboardEvent) => addRowOnTab(event, value, props, addRowOnTabIf)}\n\t\t\t/>\n\t\t);\n\t};\n}\n"],"names":[],"mappings":";;;;;AAQU,MAAM,8CAA8C,EAAA;AAQvD,SAAA,aAAA,CAA0D,kBAA8C,EAAA;AAC9G,EAAA,OAAO,yBAAyB,KAA6C,EAAA;AAC5E,IAAM,MAAA;AAAA,MACL,KAAO,EAAA,YAAA;AAAA,MACP,GAAA,EAAK,EAAC,KAAO,EAAA,QAAA,EAAA;AAAA,MACb,QAAQ,EAAC,EAAA,EAAA;AAAA,MACT,UAAA;AAAA,KACG,GAAA,KAAA,CAAA;AAEJ,IAAA,MAAM,CAAC,KAAA,EAAO,QAAY,CAAA,GAAA,QAAA,CAAS,YAAY,CAAA,CAAA;AAC/C,IAAA,MAAM,EAAC,aAAA,EAAA,GAAkB,IAAQ,EAAA,GAAA,kBAAA,IAAsB,EAAC,CAAA;AAExD,IAAA,uBACE,KAAA,CAAA,aAAA,CAAA,UAAA,EAAA;AAAA,MACI,GAAA,IAAA;AAAA,MACJ,KAAK,EAAA,IAAA;AAAA,MACL,WAAW,EAAA,IAAA;AAAA,MACX,KAAA;AAAA,MACA,QAAU,EAAA,QAAA;AAAA,MACV,QAAQ,MAAM;AACb,QAAW,UAAA,CAAA,QAAA,EAAU,IAAI,KAAK,CAAA,CAAA;AAAA,OAC/B;AAAA,MACA,WAAW,CAAC,KAAA,KAAyB,YAAY,KAAO,EAAA,KAAA,EAAO,OAAO,aAAa,CAAA;AAAA,KACpF,CAAA,CAAA;AAAA,GAEF,CAAA;AACD;;;;"}
@@ -13,12 +13,10 @@ function MoneyCurrencyInput(props) {
13
13
  { key: "USD", text: "USD", value: "USD" }
14
14
  ];
15
15
  const handleChange = useCallback((v) => {
16
- if (!v) {
17
- onChange && onChange(toMoney(0, defaultCurrency));
18
- } else {
16
+ if (v && onChange) {
19
17
  onChange && onChange(v);
20
18
  }
21
- }, [defaultCurrency, onChange]);
19
+ }, [onChange]);
22
20
  const val = !(value instanceof Money) && value !== void 0 ? toMoney(value) : value;
23
21
  const [inputElement] = useMoneyInput({ onChange: handleChange, prefix, showPrefix, value: val, wholeNumber });
24
22
  const handleDropdownChange = useCallback((e, v) => {
@@ -1 +1 @@
1
- {"version":3,"file":"MoneyCurrencyInput.js","sources":["../../../../src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx"],"sourcesContent":["import {toMoney} from '@thx/money';\n/* eslint-disable jsx-a11y/no-static-element-interactions */\nimport debug from 'debug';\nimport Money, {CurrencyString} from 'js-money';\nimport {SyntheticEvent, useCallback} from 'react';\nimport {Dropdown, DropdownProps, Input, InputProps, Label} from 'semantic-ui-react';\nimport type {MoneyInputProps} from '../MoneyInput';\nimport {useMoneyInput} from '../useMoneyInput';\n\nconst d = debug('thx.controls.money.MoneyCurrencyInput');\n\nexport interface MoneyCurrencyInputProps extends MoneyInputProps {\n\tcurrencies?: {key: string; value: string; text: string}[];\n}\n\nexport function MoneyCurrencyInput(props: MoneyCurrencyInputProps & Omit<InputProps, 'onChange'>) {\n\tconst {name, onBlur, prefix, defaultCurrency, onChange, showPrefix, value, wholeNumber, currencies, locked, ...rest} = props;\n\n\tconst options = currencies || [\n\t\t{key: 'CAD', text: 'CAD', value: 'CAD'},\n\t\t{key: 'USD', text: 'USD', value: 'USD'},\n\t];\n\n\tconst handleChange = useCallback(\n\t\t(v?: Money) => {\n\t\t\tif (!v) {\n\t\t\t\tonChange && onChange(toMoney(0, defaultCurrency));\n\t\t\t} else {\n\t\t\t\tonChange && onChange(v);\n\t\t\t}\n\t\t},\n\t\t[defaultCurrency, onChange],\n\t);\n\n\tconst val = !(value instanceof Money) && value !== undefined ? toMoney(value) : value;\n\n\tconst [inputElement] = useMoneyInput({onChange: handleChange, prefix, showPrefix, value: val, wholeNumber});\n\n\tconst handleDropdownChange = useCallback(\n\t\t(e: SyntheticEvent<HTMLElement, Event>, v: DropdownProps) => {\n\t\t\tconst newCurrencyCode = v.value as CurrencyString;\n\t\t\tconst newMoney = new Money(value?.amount || 0, newCurrencyCode);\n\n\t\t\td('Change', value, newCurrencyCode, newMoney);\n\t\t\t// setInputValue(newMoney);\n\t\t\tonChange && onChange(newMoney);\n\t\t\t// forceUpdate();\n\t\t},\n\t\t[onChange, value],\n\t);\n\n\tconst currencyCode = value?.currency || defaultCurrency?.code || 'CAD';\n\td('Render', value, currencyCode);\n\n\treturn (\n\t\t<Input {...rest} labelPosition=\"right\">\n\t\t\t<input name={name} ref={inputElement} onBlur={onBlur} readOnly={locked} />\n\t\t\t<Label basic>\n\t\t\t\t<Dropdown disabled={locked} options={options} value={currencyCode} onChange={handleDropdownChange} />\n\t\t\t</Label>\n\t\t</Input>\n\t);\n}\n"],"names":[],"mappings":";;;;;;;AASA,MAAM,CAAA,GAAI,MAAM,uCAAuC,CAAA,CAAA;AAMhD,SAAA,kBAAA,CAA4B,KAA+D,EAAA;AACjG,EAAM,MAAA,EAAC,IAAM,EAAA,MAAA,EAAQ,MAAQ,EAAA,eAAA,EAAiB,QAAU,EAAA,UAAA,EAAY,KAAO,EAAA,WAAA,EAAa,UAAY,EAAA,MAAA,EAAA,GAAW,IAAQ,EAAA,GAAA,KAAA,CAAA;AAEvH,EAAA,MAAM,UAAU,UAAc,IAAA;AAAA,IAC7B,EAAC,GAAK,EAAA,KAAA,EAAO,IAAM,EAAA,KAAA,EAAO,OAAO,KAAK,EAAA;AAAA,IACtC,EAAC,GAAK,EAAA,KAAA,EAAO,IAAM,EAAA,KAAA,EAAO,OAAO,KAAK,EAAA;AAAA,GACvC,CAAA;AAEA,EAAM,MAAA,YAAA,GAAe,WACpB,CAAA,CAAC,CAAc,KAAA;AACd,IAAA,IAAI,CAAC,CAAG,EAAA;AACP,MAAA,QAAA,IAAY,QAAS,CAAA,OAAA,CAAQ,CAAG,EAAA,eAAe,CAAC,CAAA,CAAA;AAAA,KAC1C,MAAA;AACN,MAAA,QAAA,IAAY,SAAS,CAAC,CAAA,CAAA;AAAA,KACvB;AAAA,GAED,EAAA,CAAC,eAAiB,EAAA,QAAQ,CAC3B,CAAA,CAAA;AAEA,EAAM,MAAA,GAAA,GAAM,EAAmB,KAAA,YAAA,KAAA,CAAA,IAAU,UAAU,KAAY,CAAA,GAAA,OAAA,CAAQ,KAAK,CA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AA;AAAA,IAAc,QAAU,EAAA,oBAAA;AAAA,GAAsB,CACpG,CACD,CAAA,CAAA;AAEF;;;;"}
1
+ {"version":3,"file":"MoneyCurrencyInput.js","sources":["../../../../src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx"],"sourcesContent":["import {toMoney} from '@thx/money';\n/* eslint-disable jsx-a11y/no-static-element-interactions */\nimport debug from 'debug';\nimport Money, {CurrencyString} from 'js-money';\nimport {SyntheticEvent, useCallback} from 'react';\nimport {Dropdown, DropdownProps, Input, InputProps, Label} from 'semantic-ui-react';\nimport type {MoneyInputProps} from '../MoneyInput';\nimport {useMoneyInput} from '../useMoneyInput';\n\nconst d = debug('thx.controls.money.MoneyCurrencyInput');\n\nexport interface MoneyCurrencyInputProps extends MoneyInputProps {\n\tcurrencies?: {key: string; value: string; text: string}[];\n}\n\nexport function MoneyCurrencyInput(props: MoneyCurrencyInputProps & Omit<InputProps, 'onChange'>) {\n\tconst {name, onBlur, prefix, defaultCurrency, onChange, showPrefix, value, wholeNumber, currencies, locked, ...rest} = props;\n\n\tconst options = currencies || [\n\t\t{key: 'CAD', text: 'CAD', value: 'CAD'},\n\t\t{key: 'USD', text: 'USD', value: 'USD'},\n\t];\n\n\tconst handleChange = useCallback(\n\t\t(v?: Money) => {\n\t\t\tif (v && onChange) {\n\t\t\t\tonChange && onChange(v);\n\t\t\t}\n\t\t},\n\t\t[onChange],\n\t);\n\n\tconst val = !(value instanceof Money) && value !== undefined ? toMoney(value) : value;\n\n\tconst [inputElement] = useMoneyInput({onChange: handleChange, prefix, showPrefix, value: val, wholeNumber});\n\n\tconst handleDropdownChange = useCallback(\n\t\t(e: SyntheticEvent<HTMLElement, Event>, v: DropdownProps) => {\n\t\t\tconst newCurrencyCode = v.value as CurrencyString;\n\t\t\tconst newMoney = new Money(value?.amount || 0, newCurrencyCode);\n\n\t\t\td('Change', value, newCurrencyCode, newMoney);\n\t\t\t// setInputValue(newMoney);\n\t\t\tonChange && onChange(newMoney);\n\t\t\t// forceUpdate();\n\t\t},\n\t\t[onChange, value],\n\t);\n\n\tconst currencyCode = value?.currency || defaultCurrency?.code || 'CAD';\n\td('Render', value, currencyCode);\n\n\treturn (\n\t\t<Input {...rest} labelPosition=\"right\">\n\t\t\t<input name={name} ref={inputElement} onBlur={onBlur} readOnly={locked} />\n\t\t\t<Label basic>\n\t\t\t\t<Dropdown disabled={locked} options={options} value={currencyCode} onChange={handleDropdownChange} />\n\t\t\t</Label>\n\t\t</Input>\n\t);\n}\n"],"names":[],"mappings":";;;;;;;AASA,MAAM,CAAA,GAAI,MAAM,uCAAuC,CAAA,CAAA;AAMhD,SAAA,kBAAA,CAA4B,KAA+D,EAAA;AACjG,EAAM,MAAA,EAAC,IAAM,EAAA,MAAA,EAAQ,MAAQ,EAAA,eAAA,EAAiB,QAAU,EAAA,UAAA,EAAY,KAAO,EAAA,WAAA,EAAa,UAAY,EAAA,MAAA,EAAA,GAAW,IAAQ,EAAA,GAAA,KAAA,CAAA;AAEvH,EAAA,MAAM,UAAU,UAAc,IAAA;AAAA,IAC7B,EAAC,GAAK,EAAA,KAAA,EAAO,IAAM,EAAA,KAAA,EAAO,OAAO,KAAK,EAAA;AAAA,IACtC,EAAC,GAAK,EAAA,KAAA,EAAO,IAAM,EAAA,KAAA,EAAO,OAAO,KAAK,EAAA;AAAA,GACvC,CAAA;AAEA,EAAM,MAAA,YAAA,GAAe,WACpB,CAAA,CAAC,CAAc,KAAA;AACd,IAAA,IAAI,KAAK,QAAU,EAAA;AAClB,MAAA,QAAA,IAAY,SAAS,CAAC,CAAA,CAAA;AAAA,KACvB;AAAA,GACD,EACA,CAAC,QAAQ,CACV,CAAA,CAAA;AAEA,EAAM,MAAA,GAAA,GAAM,EAAmB,KAAA,YAAA,KAAA,CAAA,IAAU,UAAU,KAAY,CAAA,GAAA,OAAA,CAAQ,KAAK,CAAI,GAAA,KAAA,CAAA;AAEhF,EAAM,MAAA,CAAC,YAAgB,CAAA,GAAA,aAAA,CAAc,EAAC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
@@ -9,12 +9,10 @@ debug("thx.controls.money.MoneyInput");
9
9
  function MoneyInput(props) {
10
10
  const { name, onBlur, locked, prefix, defaultCurrency, onChange, showPrefix, value, wholeNumber, ...rest } = props;
11
11
  const handleChange = useCallback((v) => {
12
- if (!v) {
13
- onChange && onChange(toMoney(0, defaultCurrency));
14
- } else {
15
- onChange && onChange(v);
12
+ if (v && onChange) {
13
+ onChange(v);
16
14
  }
17
- }, [defaultCurrency, onChange]);
15
+ }, [onChange]);
18
16
  const val = !(value instanceof Money) && value !== void 0 ? toMoney(value) : value;
19
17
  const [inputElement] = useMoneyInput({ onChange: handleChange, prefix, showPrefix, value: val, wholeNumber });
20
18
  return /* @__PURE__ */ React.createElement(Input, {
@@ -1 +1 @@
1
- {"version":3,"file":"MoneyInput.js","sources":["../../../../src/money/MoneyInput/MoneyInput.tsx"],"sourcesContent":["import {toMoney} from '@thx/money';\n/* eslint-disable jsx-a11y/no-static-element-interactions */\nimport debug from 'debug';\nimport Money, {Currency, MoneyObject} from 'js-money';\nimport {useCallback} from 'react';\nimport {Input, InputProps} from 'semantic-ui-react';\nimport {useMoneyInput} from '../useMoneyInput';\n\nconst d = debug('thx.controls.money.MoneyInput');\n\nexport interface MoneyInputProps {\n\tname?: string;\n\tonChange?: (value: Money) => void;\n\tvalue?: Money | MoneyObject;\n\tdefaultCurrency?: Currency; // Defaults to Money.CAD\n\tonBlur?: (ev: any) => void;\n\tprefix?: string; // Defaults to currency symbol\n\tshowPrefix?: boolean; // Defaults to false\n\tlocked?: boolean; // Defaults to false\n\twholeNumber?: boolean; // Defaults to false\n}\n\nexport function MoneyInput(props: MoneyInputProps & Omit<InputProps, 'onChange'>) {\n\tconst {name, onBlur, locked, prefix, defaultCurrency, onChange, showPrefix, value, wholeNumber, ...rest} = props;\n\n\tconst handleChange = useCallback(\n\t\t(v?: Money) => {\n\t\t\tif (!v) {\n\t\t\t\tonChange && onChange(toMoney(0, defaultCurrency));\n\t\t\t} else {\n\t\t\t\tonChange && onChange(v);\n\t\t\t}\n\t\t},\n\t\t[defaultCurrency, onChange],\n\t);\n\n\tconst val = !(value instanceof Money) && value !== undefined ? toMoney(value) : value;\n\n\tconst [inputElement] = useMoneyInput({onChange: handleChange, prefix, showPrefix, value: val, wholeNumber});\n\n\treturn (\n\t\t<Input {...rest}>\n\t\t\t<input name={name} ref={inputElement} onBlur={onBlur} readOnly={locked} />\n\t\t</Input>\n\t);\n}\n"],"names":[],"mappings":";;;;;;;AAQU,MAAM,+BAA+B,EAAA;AAcxC,SAAA,UAAA,CAAoB,KAAuD,EAAA;AACjF,EAAM,MAAA,EAAC,IAAM,EAAA,MAAA,EAAQ,MAAQ,EAAA,MAAA,EAAQ,iBAAiB,QAAU,EAAA,UAAA,EAAY,KAAO,EAAA,WAAA,EAAA,GAAgB,IAAQ,EAAA,GAAA,KAAA,CAAA;AAE3G,EAAM,MAAA,YAAA,GAAe,WACpB,CAAA,CAAC,CAAc,KAAA;AACd,IAAA,IAAI,CAAC,CAAG,EAAA;AACP,MAAA,QAAA,IAAY,QAAS,CAAA,OAAA,CAAQ,CAAG,EAAA,eAAe,CAAC,CAAA,CAAA;AAAA,KAC1C,MAAA;AACN,MAAA,QAAA,IAAY,SAAS,CAAC,CAAA,CAAA;AAAA,KACvB;AAAA,GAED,EAAA,CAAC,eAAiB,EAAA,QAAQ,CAC3B,CAAA,CAAA;AAEA,EAAM,MAAA,GAAA,GAAM,EAAmB,KAAA,YAAA,KAAA,CAAA,IAAU,UAAU,KAAY,CAAA,GAAA,OAAA,CAAQ,KAAK,CAAI,GAAA,KAAA,CAAA;AAEhF,EAAM,MAAA,CAAC,YAAgB,CAAA,GAAA,aAAA,CAAc,EAAC,QAAA,EAAU,YAAc,EAAA,MAAA,EAAQ,UAAY,EAAA,KAAA,EAAO,GAAK,EAAA,WAAA,EAAY,CAAA,CAAA;AAE1G,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAU,GAAA,IAAA;AAAA,GAAA,kBACT,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA;AAAA,IAAM,IAAA;AAAA,IAAY,GAAK,EAAA,YAAA;AAAA,IAAc,MAAA;AAAA,IAAgB,QAAU,EAAA,MAAA;AAAA,GAAQ,CACzE,CAAA,CAAA;AAEF;;;;"}
1
+ {"version":3,"file":"MoneyInput.js","sources":["../../../../src/money/MoneyInput/MoneyInput.tsx"],"sourcesContent":["import {toMoney} from '@thx/money';\n/* eslint-disable jsx-a11y/no-static-element-interactions */\nimport debug from 'debug';\nimport Money, {Currency, MoneyObject} from 'js-money';\nimport {useCallback} from 'react';\nimport {Input, InputProps} from 'semantic-ui-react';\nimport {useMoneyInput} from '../useMoneyInput';\n\nconst d = debug('thx.controls.money.MoneyInput');\n\nexport interface MoneyInputProps {\n\tname?: string;\n\tonChange?: (value?: Money) => void;\n\tvalue?: Money | MoneyObject | undefined;\n\tdefaultCurrency?: Currency; // Defaults to Money.CAD\n\tonBlur?: (ev: any) => void;\n\tprefix?: string; // Defaults to currency symbol\n\tshowPrefix?: boolean; // Defaults to false\n\tlocked?: boolean; // Defaults to false\n\twholeNumber?: boolean; // Defaults to false\n}\n\nexport function MoneyInput(props: MoneyInputProps & Omit<InputProps, 'onChange'>) {\n\tconst {name, onBlur, locked, prefix, defaultCurrency, onChange, showPrefix, value, wholeNumber, ...rest} = props;\n\n\tconst handleChange = useCallback(\n\t\t(v?: Money) => {\n\t\t\tif (v && onChange) {\n\t\t\t\tonChange(v);\n\t\t\t}\n\t\t},\n\t\t[onChange],\n\t);\n\n\tconst val = !(value instanceof Money) && value !== undefined ? toMoney(value) : value;\n\n\tconst [inputElement] = useMoneyInput({onChange: handleChange, prefix, showPrefix, value: val, wholeNumber});\n\n\treturn (\n\t\t<Input {...rest}>\n\t\t\t<input name={name} ref={inputElement} onBlur={onBlur} readOnly={locked} />\n\t\t</Input>\n\t);\n}\n"],"names":[],"mappings":";;;;;;;AAQU,MAAM,+BAA+B,EAAA;AAcxC,SAAA,UAAA,CAAoB,KAAuD,EAAA;AACjF,EAAM,MAAA,EAAC,IAAM,EAAA,MAAA,EAAQ,MAAQ,EAAA,MAAA,EAAQ,iBAAiB,QAAU,EAAA,UAAA,EAAY,KAAO,EAAA,WAAA,EAAA,GAAgB,IAAQ,EAAA,GAAA,KAAA,CAAA;AAE3G,EAAM,MAAA,YAAA,GAAe,WACpB,CAAA,CAAC,CAAc,KAAA;AACd,IAAA,IAAI,KAAK,QAAU,EAAA;AAClB,MAAA,QAAA,CAAS,CAAC,CAAA,CAAA;AAAA,KACX;AAAA,GACD,EACA,CAAC,QAAQ,CACV,CAAA,CAAA;AAEA,EAAM,MAAA,GAAA,GAAM,EAAmB,KAAA,YAAA,KAAA,CAAA,IAAU,UAAU,KAAY,CAAA,GAAA,OAAA,CAAQ,KAAK,CAAI,GAAA,KAAA,CAAA;AAEhF,EAAM,MAAA,CAAC,YAAgB,CAAA,GAAA,aAAA,CAAc,EAAC,QAAA,EAAU,YAAc,EAAA,MAAA,EAAQ,UAAY,EAAA,KAAA,EAAO,GAAK,EAAA,WAAA,EAAY,CAAA,CAAA;AAE1G,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAU,GAAA,IAAA;AAAA,GAAA,kBACT,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA;AAAA,IAAM,IAAA;AAAA,IAAY,GAAK,EAAA,YAAA;AAAA,IAAc,MAAA;AAAA,IAAgB,QAAU,EAAA,MAAA;AAAA,GAAQ,CACzE,CAAA,CAAA;AAEF;;;;"}
@@ -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}\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,EA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Input.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 | undefined) => {\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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AAA,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":"8e08-1"}]},{"name":"money/useMoneyInput.js","children":[{"name":"src/money/useMoneyInput.ts","uid":"8e08-3"}]},{"name":"step/useStep.js","children":[{"name":"src/step/useStep.ts","uid":"8e08-5"}]},{"name":"step/Step.js","children":[{"name":"src/step/Step.tsx","uid":"8e08-7"}]},{"name":"step/FormStep.js","children":[{"name":"src/step/FormStep.tsx","uid":"8e08-9"}]},{"name":"step/StepProvider.js","children":[{"name":"src/step/StepProvider.tsx","uid":"8e08-11"}]},{"name":"inputs/MaskedInput/useMaskedInput.js","children":[{"name":"src/inputs/MaskedInput/useMaskedInput.ts","uid":"8e08-13"}]},{"name":"inputs/TableInput/addRowOnTab.js","children":[{"name":"src/inputs/TableInput/addRowOnTab.ts","uid":"8e08-15"}]},{"name":"date/LocalDatePicker/LocalDatePicker.js","children":[{"name":"src/date/LocalDatePicker/LocalDatePicker.tsx","uid":"8e08-17"}]},{"name":"date/LocalMonthSelect/LocalMonthSelect.js","children":[{"name":"src/date/LocalMonthSelect/LocalMonthSelect.tsx","uid":"8e08-19"}]},{"name":"date/LocalTimePicker/LocalTimePicker.js","children":[{"name":"src/date/LocalTimePicker/LocalTimePicker.tsx","uid":"8e08-21"}]},{"name":"date/MonthDayPicker/MonthDayPicker.js","children":[{"name":"src/date/MonthDayPicker/MonthDayPicker.tsx","uid":"8e08-23"}]},{"name":"date/MonthYearPicker/MonthYearPicker.js","children":[{"name":"src/date/MonthYearPicker/MonthYearPicker.tsx","uid":"8e08-25"}]},{"name":"date/YearSelect/YearSelect.js","children":[{"name":"src/date/YearSelect/YearSelect.tsx","uid":"8e08-27"}]},{"name":"form/TForm/TForm.js","children":[{"name":"src/form/TForm/TForm.tsx","uid":"8e08-29"}]},{"name":"form/TForm/useTForm.js","children":[{"name":"src/form/TForm/useTForm.tsx","uid":"8e08-31"}]},{"name":"inputs/MaskedInput/MaskedInput.js","children":[{"name":"src/inputs/MaskedInput/MaskedInput.tsx","uid":"8e08-33"}]},{"name":"inputs/RadioGroup/RadioGroup.js","children":[{"name":"src/inputs/RadioGroup/RadioGroup.tsx","uid":"8e08-35"}]},{"name":"inputs/Scriptel/Scriptel.js","children":[{"name":"src/inputs/Scriptel/Scriptel.tsx","uid":"8e08-37"}]},{"name":"inputs/Scriptel/withScriptel.js","children":[{"name":"src/inputs/Scriptel/withScriptel.tsx","uid":"8e08-39"}]},{"name":"inputs/ScriptelInput/ScriptelInput.js","children":[{"name":"src/inputs/ScriptelInput/ScriptelInput.tsx","uid":"8e08-41"}]},{"name":"inputs/PhoneInput/PhoneInput.js","children":[{"name":"src/inputs/PhoneInput/PhoneInput.tsx","uid":"8e08-43"}]},{"name":"inputs/CreditCardInput/CreditCardInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardInput.tsx","uid":"8e08-45"}]},{"name":"inputs/SinInput/SinInput.js","children":[{"name":"src/inputs/SinInput/SinInput.tsx","uid":"8e08-47"}]},{"name":"inputs/TableInput/TableInput.js","children":[{"name":"src/inputs/TableInput/TableInput.tsx","uid":"8e08-49"}]},{"name":"inputs/TableInput/MoneyCell.js","children":[{"name":"src/inputs/TableInput/MoneyCell.tsx","uid":"8e08-51"}]},{"name":"inputs/TableInput/MoneyEditCell.js","children":[{"name":"src/inputs/TableInput/MoneyEditCell.tsx","uid":"8e08-53"}]},{"name":"inputs/TableInput/LocalDateCell.js","children":[{"name":"src/inputs/TableInput/LocalDateCell.tsx","uid":"8e08-55"}]},{"name":"inputs/TableInput/CheckboxEditCell.js","children":[{"name":"src/inputs/TableInput/CheckboxEditCell.tsx","uid":"8e08-57"}]},{"name":"inputs/TableInput/LocalDateEditCell.js","children":[{"name":"src/inputs/TableInput/LocalDateEditCell.tsx","uid":"8e08-59"}]},{"name":"inputs/TableInput/MoneySumFooter.js","children":[{"name":"src/inputs/TableInput/MoneySumFooter.tsx","uid":"8e08-61"}]},{"name":"inputs/TableInput/StringEditCell.js","children":[{"name":"src/inputs/TableInput/StringEditCell.tsx","uid":"8e08-63"}]},{"name":"inputs/TableInput/DropdownCell.js","children":[{"name":"src/inputs/TableInput/DropdownCell.tsx","uid":"8e08-65"}]},{"name":"inputs/TableInput/HoverCell.js","children":[{"name":"src/inputs/TableInput/HoverCell.tsx","uid":"8e08-67"}]},{"name":"money/MoneyInput/MoneyInput.js","children":[{"name":"src/money/MoneyInput/MoneyInput.tsx","uid":"8e08-69"}]},{"name":"money/MoneyCurrencyInput/MoneyCurrencyInput.js","children":[{"name":"src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","uid":"8e08-71"}]},{"name":"inputs/Scriptel/scriptel/enums.js","children":[{"name":"src/inputs/Scriptel/scriptel/enums.ts","uid":"8e08-73"}]},{"name":"step/stepContext.js","children":[{"name":"src/step/stepContext.ts","uid":"8e08-75"}]},{"name":"inputs/CreditCardInput/styles.css.js","children":[{"name":"src/inputs/CreditCardInput/styles.css","uid":"8e08-77"}]},{"name":"date/DatePicker/styles.css.js","children":[{"name":"src/date/DatePicker/styles.css","uid":"8e08-79"}]},{"name":"inputs/Scriptel/ScriptelContext.js","children":[{"name":"src/inputs/Scriptel/ScriptelContext.ts","uid":"8e08-81"}]},{"name":"date/LocalDatePicker/MaskedDateInput.js","children":[{"name":"src/date/LocalDatePicker/MaskedDateInput.tsx","uid":"8e08-83"}]},{"name":"date/LocalTimePicker/MaskedTimeInput.js","children":[{"name":"src/date/LocalTimePicker/MaskedTimeInput.tsx","uid":"8e08-85"}]},{"name":"inputs/CreditCardInput/CreditCardNumberInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardNumberInput.tsx","uid":"8e08-87"}]},{"name":"inputs/Scriptel/scriptel/index.js","children":[{"name":"src/inputs/Scriptel/scriptel/index.ts","uid":"8e08-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":"8e08-91"}]}],"isRoot":true},"nodeParts":{"8e08-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"8e08-0"},"8e08-3":{"renderedLength":2155,"gzipLength":770,"brotliLength":660,"mainUid":"8e08-2"},"8e08-5":{"renderedLength":113,"gzipLength":106,"brotliLength":82,"mainUid":"8e08-4"},"8e08-7":{"renderedLength":203,"gzipLength":157,"brotliLength":111,"mainUid":"8e08-6"},"8e08-9":{"renderedLength":440,"gzipLength":270,"brotliLength":214,"mainUid":"8e08-8"},"8e08-11":{"renderedLength":3529,"gzipLength":1021,"brotliLength":861,"mainUid":"8e08-10"},"8e08-13":{"renderedLength":1487,"gzipLength":502,"brotliLength":423,"mainUid":"8e08-12"},"8e08-15":{"renderedLength":312,"gzipLength":199,"brotliLength":173,"mainUid":"8e08-14"},"8e08-17":{"renderedLength":2660,"gzipLength":800,"brotliLength":706,"mainUid":"8e08-16"},"8e08-19":{"renderedLength":1135,"gzipLength":503,"brotliLength":415,"mainUid":"8e08-18"},"8e08-21":{"renderedLength":1205,"gzipLength":488,"brotliLength":402,"mainUid":"8e08-20"},"8e08-23":{"renderedLength":1965,"gzipLength":657,"brotliLength":544,"mainUid":"8e08-22"},"8e08-25":{"renderedLength":1229,"gzipLength":491,"brotliLength":424,"mainUid":"8e08-24"},"8e08-27":{"renderedLength":1553,"gzipLength":580,"brotliLength":461,"mainUid":"8e08-26"},"8e08-29":{"renderedLength":600,"gzipLength":307,"brotliLength":267,"mainUid":"8e08-28"},"8e08-31":{"renderedLength":2930,"gzipLength":959,"brotliLength":816,"mainUid":"8e08-30"},"8e08-33":{"renderedLength":390,"gzipLength":237,"brotliLength":203,"mainUid":"8e08-32"},"8e08-35":{"renderedLength":561,"gzipLength":301,"brotliLength":259,"mainUid":"8e08-34"},"8e08-37":{"renderedLength":1275,"gzipLength":476,"brotliLength":406,"mainUid":"8e08-36"},"8e08-39":{"renderedLength":275,"gzipLength":163,"brotliLength":130,"mainUid":"8e08-38"},"8e08-41":{"renderedLength":1963,"gzipLength":648,"brotliLength":547,"mainUid":"8e08-40"},"8e08-43":{"renderedLength":381,"gzipLength":248,"brotliLength":218,"mainUid":"8e08-42"},"8e08-45":{"renderedLength":2324,"gzipLength":586,"brotliLength":495,"mainUid":"8e08-44"},"8e08-47":{"renderedLength":1144,"gzipLength":530,"brotliLength":462,"mainUid":"8e08-46"},"8e08-49":{"renderedLength":2788,"gzipLength":828,"brotliLength":734,"mainUid":"8e08-48"},"8e08-51":{"renderedLength":257,"gzipLength":187,"brotliLength":149,"mainUid":"8e08-50"},"8e08-53":{"renderedLength":620,"gzipLength":346,"brotliLength":310,"mainUid":"8e08-52"},"8e08-55":{"renderedLength":264,"gzipLength":191,"brotliLength":154,"mainUid":"8e08-54"},"8e08-57":{"renderedLength":746,"gzipLength":384,"brotliLength":333,"mainUid":"8e08-56"},"8e08-59":{"renderedLength":695,"gzipLength":350,"brotliLength":295,"mainUid":"8e08-58"},"8e08-61":{"renderedLength":414,"gzipLength":261,"brotliLength":219,"mainUid":"8e08-60"},"8e08-63":{"renderedLength":717,"gzipLength":369,"brotliLength":319,"mainUid":"8e08-62"},"8e08-65":{"renderedLength":493,"gzipLength":255,"brotliLength":211,"mainUid":"8e08-64"},"8e08-67":{"renderedLength":403,"gzipLength":245,"brotliLength":195,"mainUid":"8e08-66"},"8e08-69":{"renderedLength":778,"gzipLength":392,"brotliLength":329,"mainUid":"8e08-68"},"8e08-71":{"renderedLength":1575,"gzipLength":642,"brotliLength":536,"mainUid":"8e08-70"},"8e08-73":{"renderedLength":937,"gzipLength":292,"brotliLength":231,"mainUid":"8e08-72"},"8e08-75":{"renderedLength":80,"gzipLength":90,"brotliLength":72,"mainUid":"8e08-74"},"8e08-77":{"renderedLength":78,"gzipLength":92,"brotliLength":79,"mainUid":"8e08-76"},"8e08-79":{"renderedLength":538,"gzipLength":263,"brotliLength":211,"mainUid":"8e08-78"},"8e08-81":{"renderedLength":46,"gzipLength":60,"brotliLength":45,"mainUid":"8e08-80"},"8e08-83":{"renderedLength":464,"gzipLength":299,"brotliLength":256,"mainUid":"8e08-82"},"8e08-85":{"renderedLength":446,"gzipLength":290,"brotliLength":241,"mainUid":"8e08-84"},"8e08-87":{"renderedLength":1713,"gzipLength":687,"brotliLength":585,"mainUid":"8e08-86"},"8e08-89":{"renderedLength":2530,"gzipLength":860,"brotliLength":739,"mainUid":"8e08-88"},"8e08-91":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"8e08-90"}},"nodeMetas":{"8e08-0":{"id":"/src/index.ts","moduleParts":{"index.js":"8e08-1"},"imported":[{"uid":"8e08-92"},{"uid":"8e08-93"},{"uid":"8e08-94"},{"uid":"8e08-95"},{"uid":"8e08-96"},{"uid":"8e08-97"},{"uid":"8e08-98"},{"uid":"8e08-99"},{"uid":"8e08-100"},{"uid":"8e08-101"},{"uid":"8e08-102"},{"uid":"8e08-103"},{"uid":"8e08-104"},{"uid":"8e08-105"},{"uid":"8e08-106"},{"uid":"8e08-2"},{"uid":"8e08-107"},{"uid":"8e08-108"},{"uid":"8e08-109"}],"importedBy":[],"isEntry":true},"8e08-2":{"id":"/src/money/useMoneyInput.ts","moduleParts":{"money/useMoneyInput.js":"8e08-3"},"imported":[{"uid":"8e08-110"},{"uid":"8e08-111"},{"uid":"8e08-112"},{"uid":"8e08-113"},{"uid":"8e08-114"}],"importedBy":[{"uid":"8e08-0"},{"uid":"8e08-68"},{"uid":"8e08-70"}]},"8e08-4":{"id":"/src/step/useStep.ts","moduleParts":{"step/useStep.js":"8e08-5"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-74"}],"importedBy":[{"uid":"8e08-109"},{"uid":"8e08-8"}]},"8e08-6":{"id":"/src/step/Step.tsx","moduleParts":{"step/Step.js":"8e08-7"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"}],"importedBy":[{"uid":"8e08-109"},{"uid":"8e08-10"}]},"8e08-8":{"id":"/src/step/FormStep.tsx","moduleParts":{"step/FormStep.js":"8e08-9"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"},{"uid":"8e08-4"}],"importedBy":[{"uid":"8e08-109"},{"uid":"8e08-10"}]},"8e08-10":{"id":"/src/step/StepProvider.tsx","moduleParts":{"step/StepProvider.js":"8e08-11"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"},{"uid":"8e08-127"},{"uid":"8e08-116"},{"uid":"8e08-8"},{"uid":"8e08-6"},{"uid":"8e08-74"}],"importedBy":[{"uid":"8e08-109"}]},"8e08-12":{"id":"/src/inputs/MaskedInput/useMaskedInput.ts","moduleParts":{"inputs/MaskedInput/useMaskedInput.js":"8e08-13"},"imported":[{"uid":"8e08-111"},{"uid":"8e08-112"},{"uid":"8e08-114"},{"uid":"8e08-122"}],"importedBy":[{"uid":"8e08-99"},{"uid":"8e08-32"},{"uid":"8e08-46"},{"uid":"8e08-86"}]},"8e08-14":{"id":"/src/inputs/TableInput/addRowOnTab.ts","moduleParts":{"inputs/TableInput/addRowOnTab.js":"8e08-15"},"imported":[],"importedBy":[{"uid":"8e08-106"},{"uid":"8e08-52"},{"uid":"8e08-56"},{"uid":"8e08-62"}]},"8e08-16":{"id":"/src/date/LocalDatePicker/LocalDatePicker.tsx","moduleParts":{"date/LocalDatePicker/LocalDatePicker.js":"8e08-17"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-115"},{"uid":"8e08-111"},{"uid":"8e08-116"},{"uid":"8e08-117"},{"uid":"8e08-78"},{"uid":"8e08-82"}],"importedBy":[{"uid":"8e08-92"}]},"8e08-18":{"id":"/src/date/LocalMonthSelect/LocalMonthSelect.tsx","moduleParts":{"date/LocalMonthSelect/LocalMonthSelect.js":"8e08-19"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-118"},{"uid":"8e08-111"},{"uid":"8e08-116"}],"importedBy":[{"uid":"8e08-93"}]},"8e08-20":{"id":"/src/date/LocalTimePicker/LocalTimePicker.tsx","moduleParts":{"date/LocalTimePicker/LocalTimePicker.js":"8e08-21"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-118"},{"uid":"8e08-115"},{"uid":"8e08-111"},{"uid":"8e08-117"},{"uid":"8e08-84"}],"importedBy":[{"uid":"8e08-94"}]},"8e08-22":{"id":"/src/date/MonthDayPicker/MonthDayPicker.tsx","moduleParts":{"date/MonthDayPicker/MonthDayPicker.js":"8e08-23"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-115"},{"uid":"8e08-111"},{"uid":"8e08-116"},{"uid":"8e08-117"}],"importedBy":[{"uid":"8e08-95"}]},"8e08-24":{"id":"/src/date/MonthYearPicker/MonthYearPicker.tsx","moduleParts":{"date/MonthYearPicker/MonthYearPicker.js":"8e08-25"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-118"},{"uid":"8e08-115"},{"uid":"8e08-111"},{"uid":"8e08-116"},{"uid":"8e08-117"}],"importedBy":[{"uid":"8e08-96"}]},"8e08-26":{"id":"/src/date/YearSelect/YearSelect.tsx","moduleParts":{"date/YearSelect/YearSelect.js":"8e08-27"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"},{"uid":"8e08-116"}],"importedBy":[{"uid":"8e08-97"}]},"8e08-28":{"id":"/src/form/TForm/TForm.tsx","moduleParts":{"form/TForm/TForm.js":"8e08-29"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"},{"uid":"8e08-119"},{"uid":"8e08-30"}],"importedBy":[{"uid":"8e08-98"}]},"8e08-30":{"id":"/src/form/TForm/useTForm.tsx","moduleParts":{"form/TForm/useTForm.js":"8e08-31"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-120"},{"uid":"8e08-119"},{"uid":"8e08-121"},{"uid":"8e08-116"}],"importedBy":[{"uid":"8e08-98"},{"uid":"8e08-28"}]},"8e08-32":{"id":"/src/inputs/MaskedInput/MaskedInput.tsx","moduleParts":{"inputs/MaskedInput/MaskedInput.js":"8e08-33"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"},{"uid":"8e08-116"},{"uid":"8e08-12"}],"importedBy":[{"uid":"8e08-99"}]},"8e08-34":{"id":"/src/inputs/RadioGroup/RadioGroup.tsx","moduleParts":{"inputs/RadioGroup/RadioGroup.js":"8e08-35"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"},{"uid":"8e08-116"}],"importedBy":[{"uid":"8e08-100"}]},"8e08-36":{"id":"/src/inputs/Scriptel/Scriptel.tsx","moduleParts":{"inputs/Scriptel/Scriptel.js":"8e08-37"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"},{"uid":"8e08-80"},{"uid":"8e08-88"}],"importedBy":[{"uid":"8e08-101"},{"uid":"8e08-38"}]},"8e08-38":{"id":"/src/inputs/Scriptel/withScriptel.tsx","moduleParts":{"inputs/Scriptel/withScriptel.js":"8e08-39"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-36"}],"importedBy":[{"uid":"8e08-101"}]},"8e08-40":{"id":"/src/inputs/ScriptelInput/ScriptelInput.tsx","moduleParts":{"inputs/ScriptelInput/ScriptelInput.js":"8e08-41"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"},{"uid":"8e08-116"},{"uid":"8e08-80"}],"importedBy":[{"uid":"8e08-102"}]},"8e08-42":{"id":"/src/inputs/PhoneInput/PhoneInput.tsx","moduleParts":{"inputs/PhoneInput/PhoneInput.js":"8e08-43"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"},{"uid":"8e08-99"}],"importedBy":[{"uid":"8e08-103"}]},"8e08-44":{"id":"/src/inputs/CreditCardInput/CreditCardInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardInput.js":"8e08-45"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-115"},{"uid":"8e08-111"},{"uid":"8e08-123"},{"uid":"8e08-124"},{"uid":"8e08-116"},{"uid":"8e08-96"},{"uid":"8e08-86"},{"uid":"8e08-76"}],"importedBy":[{"uid":"8e08-104"}]},"8e08-46":{"id":"/src/inputs/SinInput/SinInput.tsx","moduleParts":{"inputs/SinInput/SinInput.js":"8e08-47"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"},{"uid":"8e08-116"},{"uid":"8e08-125"},{"uid":"8e08-12"}],"importedBy":[{"uid":"8e08-105"}]},"8e08-48":{"id":"/src/inputs/TableInput/TableInput.tsx","moduleParts":{"inputs/TableInput/TableInput.js":"8e08-49"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"},{"uid":"8e08-119"},{"uid":"8e08-126"},{"uid":"8e08-116"}],"importedBy":[{"uid":"8e08-106"}]},"8e08-50":{"id":"/src/inputs/TableInput/MoneyCell.tsx","moduleParts":{"inputs/TableInput/MoneyCell.js":"8e08-51"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-110"}],"importedBy":[{"uid":"8e08-106"}]},"8e08-52":{"id":"/src/inputs/TableInput/MoneyEditCell.tsx","moduleParts":{"inputs/TableInput/MoneyEditCell.js":"8e08-53"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"},{"uid":"8e08-107"},{"uid":"8e08-14"}],"importedBy":[{"uid":"8e08-106"}]},"8e08-54":{"id":"/src/inputs/TableInput/LocalDateCell.tsx","moduleParts":{"inputs/TableInput/LocalDateCell.js":"8e08-55"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-115"}],"importedBy":[{"uid":"8e08-106"}]},"8e08-56":{"id":"/src/inputs/TableInput/CheckboxEditCell.tsx","moduleParts":{"inputs/TableInput/CheckboxEditCell.js":"8e08-57"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"},{"uid":"8e08-116"},{"uid":"8e08-14"}],"importedBy":[{"uid":"8e08-106"}]},"8e08-58":{"id":"/src/inputs/TableInput/LocalDateEditCell.tsx","moduleParts":{"inputs/TableInput/LocalDateEditCell.js":"8e08-59"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"},{"uid":"8e08-92"}],"importedBy":[{"uid":"8e08-106"}]},"8e08-60":{"id":"/src/inputs/TableInput/MoneySumFooter.tsx","moduleParts":{"inputs/TableInput/MoneySumFooter.js":"8e08-61"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-110"}],"importedBy":[{"uid":"8e08-106"}]},"8e08-62":{"id":"/src/inputs/TableInput/StringEditCell.tsx","moduleParts":{"inputs/TableInput/StringEditCell.js":"8e08-63"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"},{"uid":"8e08-116"},{"uid":"8e08-14"}],"importedBy":[{"uid":"8e08-106"}]},"8e08-64":{"id":"/src/inputs/TableInput/DropdownCell.tsx","moduleParts":{"inputs/TableInput/DropdownCell.js":"8e08-65"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-116"}],"importedBy":[{"uid":"8e08-106"}]},"8e08-66":{"id":"/src/inputs/TableInput/HoverCell.tsx","moduleParts":{"inputs/TableInput/HoverCell.js":"8e08-67"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"}],"importedBy":[{"uid":"8e08-106"}]},"8e08-68":{"id":"/src/money/MoneyInput/MoneyInput.tsx","moduleParts":{"money/MoneyInput/MoneyInput.js":"8e08-69"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-110"},{"uid":"8e08-111"},{"uid":"8e08-113"},{"uid":"8e08-116"},{"uid":"8e08-2"}],"importedBy":[{"uid":"8e08-107"}]},"8e08-70":{"id":"/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","moduleParts":{"money/MoneyCurrencyInput/MoneyCurrencyInput.js":"8e08-71"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-110"},{"uid":"8e08-111"},{"uid":"8e08-113"},{"uid":"8e08-116"},{"uid":"8e08-2"}],"importedBy":[{"uid":"8e08-108"}]},"8e08-72":{"id":"/src/inputs/Scriptel/scriptel/enums.ts","moduleParts":{"inputs/Scriptel/scriptel/enums.js":"8e08-73"},"imported":[],"importedBy":[{"uid":"8e08-101"},{"uid":"8e08-88"}]},"8e08-74":{"id":"/src/step/stepContext.ts","moduleParts":{"step/stepContext.js":"8e08-75"},"imported":[{"uid":"8e08-114"}],"importedBy":[{"uid":"8e08-4"},{"uid":"8e08-10"}]},"8e08-76":{"id":"/src/inputs/CreditCardInput/styles.css","moduleParts":{"inputs/CreditCardInput/styles.css.js":"8e08-77"},"imported":[{"uid":"8e08-90"}],"importedBy":[{"uid":"8e08-44"}]},"8e08-78":{"id":"/src/date/DatePicker/styles.css","moduleParts":{"date/DatePicker/styles.css.js":"8e08-79"},"imported":[{"uid":"8e08-90"}],"importedBy":[{"uid":"8e08-16"},{"uid":"8e08-117"}]},"8e08-80":{"id":"/src/inputs/Scriptel/ScriptelContext.ts","moduleParts":{"inputs/Scriptel/ScriptelContext.js":"8e08-81"},"imported":[{"uid":"8e08-114"}],"importedBy":[{"uid":"8e08-36"},{"uid":"8e08-40"}]},"8e08-82":{"id":"/src/date/LocalDatePicker/MaskedDateInput.tsx","moduleParts":{"date/LocalDatePicker/MaskedDateInput.js":"8e08-83"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"},{"uid":"8e08-99"}],"importedBy":[{"uid":"8e08-16"}]},"8e08-84":{"id":"/src/date/LocalTimePicker/MaskedTimeInput.tsx","moduleParts":{"date/LocalTimePicker/MaskedTimeInput.js":"8e08-85"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-111"},{"uid":"8e08-99"}],"importedBy":[{"uid":"8e08-20"}]},"8e08-86":{"id":"/src/inputs/CreditCardInput/CreditCardNumberInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardNumberInput.js":"8e08-87"},"imported":[{"uid":"8e08-114"},{"uid":"8e08-130"},{"uid":"8e08-111"},{"uid":"8e08-131"},{"uid":"8e08-116"},{"uid":"8e08-12"}],"importedBy":[{"uid":"8e08-44"}]},"8e08-88":{"id":"/src/inputs/Scriptel/scriptel/index.ts","moduleParts":{"inputs/Scriptel/scriptel/index.js":"8e08-89"},"imported":[{"uid":"8e08-111"},{"uid":"8e08-129"},{"uid":"8e08-72"}],"importedBy":[{"uid":"8e08-36"}]},"8e08-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":"8e08-91"},"imported":[],"importedBy":[{"uid":"8e08-78"},{"uid":"8e08-76"}]},"8e08-92":{"id":"/src/date/LocalDatePicker/index.ts","moduleParts":{},"imported":[{"uid":"8e08-16"}],"importedBy":[{"uid":"8e08-0"},{"uid":"8e08-58"}]},"8e08-93":{"id":"/src/date/LocalMonthSelect/index.ts","moduleParts":{},"imported":[{"uid":"8e08-18"}],"importedBy":[{"uid":"8e08-0"}]},"8e08-94":{"id":"/src/date/LocalTimePicker/index.ts","moduleParts":{},"imported":[{"uid":"8e08-20"}],"importedBy":[{"uid":"8e08-0"}]},"8e08-95":{"id":"/src/date/MonthDayPicker/index.ts","moduleParts":{},"imported":[{"uid":"8e08-22"}],"importedBy":[{"uid":"8e08-0"}]},"8e08-96":{"id":"/src/date/MonthYearPicker/index.ts","moduleParts":{},"imported":[{"uid":"8e08-24"}],"importedBy":[{"uid":"8e08-0"},{"uid":"8e08-44"}]},"8e08-97":{"id":"/src/date/YearSelect/index.ts","moduleParts":{},"imported":[{"uid":"8e08-26"}],"importedBy":[{"uid":"8e08-0"}]},"8e08-98":{"id":"/src/form/TForm/index.ts","moduleParts":{},"imported":[{"uid":"8e08-28"},{"uid":"8e08-30"}],"importedBy":[{"uid":"8e08-0"}]},"8e08-99":{"id":"/src/inputs/MaskedInput/index.ts","moduleParts":{},"imported":[{"uid":"8e08-32"},{"uid":"8e08-12"}],"importedBy":[{"uid":"8e08-0"},{"uid":"8e08-42"},{"uid":"8e08-82"},{"uid":"8e08-84"}]},"8e08-100":{"id":"/src/inputs/RadioGroup/index.ts","moduleParts":{},"imported":[{"uid":"8e08-34"}],"importedBy":[{"uid":"8e08-0"}]},"8e08-101":{"id":"/src/inputs/Scriptel/index.ts","moduleParts":{},"imported":[{"uid":"8e08-36"},{"uid":"8e08-38"},{"uid":"8e08-72"}],"importedBy":[{"uid":"8e08-0"}]},"8e08-102":{"id":"/src/inputs/ScriptelInput/index.ts","moduleParts":{},"imported":[{"uid":"8e08-40"}],"importedBy":[{"uid":"8e08-0"}]},"8e08-103":{"id":"/src/inputs/PhoneInput/index.ts","moduleParts":{},"imported":[{"uid":"8e08-42"}],"importedBy":[{"uid":"8e08-0"}]},"8e08-104":{"id":"/src/inputs/CreditCardInput/index.ts","moduleParts":{},"imported":[{"uid":"8e08-44"}],"importedBy":[{"uid":"8e08-0"}]},"8e08-105":{"id":"/src/inputs/SinInput/index.ts","moduleParts":{},"imported":[{"uid":"8e08-46"}],"importedBy":[{"uid":"8e08-0"}]},"8e08-106":{"id":"/src/inputs/TableInput/index.ts","moduleParts":{},"imported":[{"uid":"8e08-48"},{"uid":"8e08-50"},{"uid":"8e08-52"},{"uid":"8e08-54"},{"uid":"8e08-56"},{"uid":"8e08-58"},{"uid":"8e08-60"},{"uid":"8e08-62"},{"uid":"8e08-64"},{"uid":"8e08-66"},{"uid":"8e08-14"}],"importedBy":[{"uid":"8e08-0"}]},"8e08-107":{"id":"/src/money/MoneyInput/index.ts","moduleParts":{},"imported":[{"uid":"8e08-68"}],"importedBy":[{"uid":"8e08-0"},{"uid":"8e08-52"}]},"8e08-108":{"id":"/src/money/MoneyCurrencyInput/index.ts","moduleParts":{},"imported":[{"uid":"8e08-70"}],"importedBy":[{"uid":"8e08-0"}]},"8e08-109":{"id":"/src/step/index.ts","moduleParts":{},"imported":[{"uid":"8e08-6"},{"uid":"8e08-4"},{"uid":"8e08-8"},{"uid":"8e08-10"}],"importedBy":[{"uid":"8e08-0"}]},"8e08-110":{"id":"@thx/money","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-2"},{"uid":"8e08-50"},{"uid":"8e08-60"},{"uid":"8e08-68"},{"uid":"8e08-70"}],"isExternal":true},"8e08-111":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-2"},{"uid":"8e08-16"},{"uid":"8e08-18"},{"uid":"8e08-20"},{"uid":"8e08-22"},{"uid":"8e08-24"},{"uid":"8e08-26"},{"uid":"8e08-28"},{"uid":"8e08-32"},{"uid":"8e08-12"},{"uid":"8e08-34"},{"uid":"8e08-36"},{"uid":"8e08-40"},{"uid":"8e08-42"},{"uid":"8e08-44"},{"uid":"8e08-46"},{"uid":"8e08-48"},{"uid":"8e08-52"},{"uid":"8e08-56"},{"uid":"8e08-58"},{"uid":"8e08-62"},{"uid":"8e08-66"},{"uid":"8e08-68"},{"uid":"8e08-70"},{"uid":"8e08-6"},{"uid":"8e08-8"},{"uid":"8e08-10"},{"uid":"8e08-82"},{"uid":"8e08-84"},{"uid":"8e08-88"},{"uid":"8e08-86"}],"isExternal":true},"8e08-112":{"id":"inputmask","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-2"},{"uid":"8e08-12"}],"isExternal":true},"8e08-113":{"id":"js-money","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-2"},{"uid":"8e08-68"},{"uid":"8e08-70"}],"isExternal":true},"8e08-114":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-2"},{"uid":"8e08-16"},{"uid":"8e08-18"},{"uid":"8e08-20"},{"uid":"8e08-22"},{"uid":"8e08-24"},{"uid":"8e08-26"},{"uid":"8e08-28"},{"uid":"8e08-30"},{"uid":"8e08-32"},{"uid":"8e08-12"},{"uid":"8e08-34"},{"uid":"8e08-36"},{"uid":"8e08-38"},{"uid":"8e08-40"},{"uid":"8e08-42"},{"uid":"8e08-44"},{"uid":"8e08-46"},{"uid":"8e08-48"},{"uid":"8e08-50"},{"uid":"8e08-52"},{"uid":"8e08-54"},{"uid":"8e08-56"},{"uid":"8e08-58"},{"uid":"8e08-60"},{"uid":"8e08-62"},{"uid":"8e08-64"},{"uid":"8e08-66"},{"uid":"8e08-68"},{"uid":"8e08-70"},{"uid":"8e08-6"},{"uid":"8e08-4"},{"uid":"8e08-8"},{"uid":"8e08-10"},{"uid":"8e08-82"},{"uid":"8e08-84"},{"uid":"8e08-80"},{"uid":"8e08-86"},{"uid":"8e08-74"}],"isExternal":true},"8e08-115":{"id":"@thx/date","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-16"},{"uid":"8e08-20"},{"uid":"8e08-22"},{"uid":"8e08-24"},{"uid":"8e08-44"},{"uid":"8e08-54"}],"isExternal":true},"8e08-116":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-16"},{"uid":"8e08-18"},{"uid":"8e08-22"},{"uid":"8e08-24"},{"uid":"8e08-26"},{"uid":"8e08-30"},{"uid":"8e08-32"},{"uid":"8e08-34"},{"uid":"8e08-40"},{"uid":"8e08-44"},{"uid":"8e08-46"},{"uid":"8e08-48"},{"uid":"8e08-56"},{"uid":"8e08-62"},{"uid":"8e08-64"},{"uid":"8e08-68"},{"uid":"8e08-70"},{"uid":"8e08-10"},{"uid":"8e08-86"}],"isExternal":true},"8e08-117":{"id":"/src/date/DatePicker/index.ts","moduleParts":{},"imported":[{"uid":"8e08-128"},{"uid":"8e08-78"}],"importedBy":[{"uid":"8e08-16"},{"uid":"8e08-20"},{"uid":"8e08-22"},{"uid":"8e08-24"}]},"8e08-118":{"id":"@js-joda/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-18"},{"uid":"8e08-20"},{"uid":"8e08-24"}],"isExternal":true},"8e08-119":{"id":"formik","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-28"},{"uid":"8e08-30"},{"uid":"8e08-48"}],"isExternal":true},"8e08-120":{"id":"flat","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-30"}],"isExternal":true},"8e08-121":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-30"}],"isExternal":true},"8e08-122":{"id":"use-deep-compare-effect","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-12"}],"isExternal":true},"8e08-123":{"id":"react-credit-cards","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-44"}],"isExternal":true},"8e08-124":{"id":"react-credit-cards/es/styles-compiled.css","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-44"}],"isExternal":true},"8e08-125":{"id":"social-insurance-number","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-46"}],"isExternal":true},"8e08-126":{"id":"react-table","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-48"}],"isExternal":true},"8e08-127":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-10"}],"isExternal":true},"8e08-128":{"id":"react-datepicker","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-117"}],"isExternal":true},"8e08-129":{"id":"eventemitter3","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-88"}],"isExternal":true},"8e08-130":{"id":"credit-card-type","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-86"}],"isExternal":true},"8e08-131":{"id":"luhn","moduleParts":{},"imported":[],"importedBy":[{"uid":"8e08-86"}],"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":"23ea-1"}]},{"name":"money/useMoneyInput.js","children":[{"name":"src/money/useMoneyInput.ts","uid":"23ea-3"}]},{"name":"step/useStep.js","children":[{"name":"src/step/useStep.ts","uid":"23ea-5"}]},{"name":"step/Step.js","children":[{"name":"src/step/Step.tsx","uid":"23ea-7"}]},{"name":"step/FormStep.js","children":[{"name":"src/step/FormStep.tsx","uid":"23ea-9"}]},{"name":"step/StepProvider.js","children":[{"name":"src/step/StepProvider.tsx","uid":"23ea-11"}]},{"name":"inputs/MaskedInput/useMaskedInput.js","children":[{"name":"src/inputs/MaskedInput/useMaskedInput.ts","uid":"23ea-13"}]},{"name":"date/LocalDatePicker/LocalDatePicker.js","children":[{"name":"src/date/LocalDatePicker/LocalDatePicker.tsx","uid":"23ea-15"}]},{"name":"date/MonthDayPicker/MonthDayPicker.js","children":[{"name":"src/date/MonthDayPicker/MonthDayPicker.tsx","uid":"23ea-17"}]},{"name":"date/LocalTimePicker/LocalTimePicker.js","children":[{"name":"src/date/LocalTimePicker/LocalTimePicker.tsx","uid":"23ea-19"}]},{"name":"form/TForm/TForm.js","children":[{"name":"src/form/TForm/TForm.tsx","uid":"23ea-21"}]},{"name":"date/MonthYearPicker/MonthYearPicker.js","children":[{"name":"src/date/MonthYearPicker/MonthYearPicker.tsx","uid":"23ea-23"}]},{"name":"form/TForm/useTForm.js","children":[{"name":"src/form/TForm/useTForm.tsx","uid":"23ea-25"}]},{"name":"date/YearSelect/YearSelect.js","children":[{"name":"src/date/YearSelect/YearSelect.tsx","uid":"23ea-27"}]},{"name":"inputs/MaskedInput/MaskedInput.js","children":[{"name":"src/inputs/MaskedInput/MaskedInput.tsx","uid":"23ea-29"}]},{"name":"inputs/Scriptel/Scriptel.js","children":[{"name":"src/inputs/Scriptel/Scriptel.tsx","uid":"23ea-31"}]},{"name":"inputs/Scriptel/withScriptel.js","children":[{"name":"src/inputs/Scriptel/withScriptel.tsx","uid":"23ea-33"}]},{"name":"inputs/RadioGroup/RadioGroup.js","children":[{"name":"src/inputs/RadioGroup/RadioGroup.tsx","uid":"23ea-35"}]},{"name":"inputs/TableInput/addRowOnTab.js","children":[{"name":"src/inputs/TableInput/addRowOnTab.ts","uid":"23ea-37"}]},{"name":"inputs/PhoneInput/PhoneInput.js","children":[{"name":"src/inputs/PhoneInput/PhoneInput.tsx","uid":"23ea-39"}]},{"name":"inputs/CreditCardInput/CreditCardInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardInput.tsx","uid":"23ea-41"}]},{"name":"money/MoneyCurrencyInput/MoneyCurrencyInput.js","children":[{"name":"src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","uid":"23ea-43"}]},{"name":"date/LocalMonthSelect/LocalMonthSelect.js","children":[{"name":"src/date/LocalMonthSelect/LocalMonthSelect.tsx","uid":"23ea-45"}]},{"name":"inputs/SinInput/SinInput.js","children":[{"name":"src/inputs/SinInput/SinInput.tsx","uid":"23ea-47"}]},{"name":"money/MoneyInput/MoneyInput.js","children":[{"name":"src/money/MoneyInput/MoneyInput.tsx","uid":"23ea-49"}]},{"name":"inputs/TableInput/TableInput.js","children":[{"name":"src/inputs/TableInput/TableInput.tsx","uid":"23ea-51"}]},{"name":"inputs/ScriptelInput/ScriptelInput.js","children":[{"name":"src/inputs/ScriptelInput/ScriptelInput.tsx","uid":"23ea-53"}]},{"name":"inputs/TableInput/MoneyEditCell.js","children":[{"name":"src/inputs/TableInput/MoneyEditCell.tsx","uid":"23ea-55"}]},{"name":"inputs/TableInput/MoneyCell.js","children":[{"name":"src/inputs/TableInput/MoneyCell.tsx","uid":"23ea-57"}]},{"name":"inputs/TableInput/CheckboxEditCell.js","children":[{"name":"src/inputs/TableInput/CheckboxEditCell.tsx","uid":"23ea-59"}]},{"name":"inputs/TableInput/LocalDateCell.js","children":[{"name":"src/inputs/TableInput/LocalDateCell.tsx","uid":"23ea-61"}]},{"name":"inputs/TableInput/MoneySumFooter.js","children":[{"name":"src/inputs/TableInput/MoneySumFooter.tsx","uid":"23ea-63"}]},{"name":"inputs/TableInput/LocalDateEditCell.js","children":[{"name":"src/inputs/TableInput/LocalDateEditCell.tsx","uid":"23ea-65"}]},{"name":"inputs/TableInput/StringEditCell.js","children":[{"name":"src/inputs/TableInput/StringEditCell.tsx","uid":"23ea-67"}]},{"name":"inputs/TableInput/HoverCell.js","children":[{"name":"src/inputs/TableInput/HoverCell.tsx","uid":"23ea-69"}]},{"name":"inputs/TableInput/DropdownCell.js","children":[{"name":"src/inputs/TableInput/DropdownCell.tsx","uid":"23ea-71"}]},{"name":"inputs/Scriptel/scriptel/enums.js","children":[{"name":"src/inputs/Scriptel/scriptel/enums.ts","uid":"23ea-73"}]},{"name":"step/stepContext.js","children":[{"name":"src/step/stepContext.ts","uid":"23ea-75"}]},{"name":"inputs/CreditCardInput/styles.css.js","children":[{"name":"src/inputs/CreditCardInput/styles.css","uid":"23ea-77"}]},{"name":"date/DatePicker/styles.css.js","children":[{"name":"src/date/DatePicker/styles.css","uid":"23ea-79"}]},{"name":"inputs/Scriptel/ScriptelContext.js","children":[{"name":"src/inputs/Scriptel/ScriptelContext.ts","uid":"23ea-81"}]},{"name":"date/LocalTimePicker/MaskedTimeInput.js","children":[{"name":"src/date/LocalTimePicker/MaskedTimeInput.tsx","uid":"23ea-83"}]},{"name":"date/LocalDatePicker/MaskedDateInput.js","children":[{"name":"src/date/LocalDatePicker/MaskedDateInput.tsx","uid":"23ea-85"}]},{"name":"inputs/CreditCardInput/CreditCardNumberInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardNumberInput.tsx","uid":"23ea-87"}]},{"name":"inputs/Scriptel/scriptel/index.js","children":[{"name":"src/inputs/Scriptel/scriptel/index.ts","uid":"23ea-89"}]},{"name":"external/style-inject/dist/style-inject.es.js","children":[{"name":"home/darkadept/dev/thx/node_modules/style-inject/dist/style-inject.es.js","uid":"23ea-91"}]}],"isRoot":true},"nodeParts":{"23ea-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"23ea-0"},"23ea-3":{"renderedLength":2155,"gzipLength":770,"brotliLength":660,"mainUid":"23ea-2"},"23ea-5":{"renderedLength":113,"gzipLength":106,"brotliLength":82,"mainUid":"23ea-4"},"23ea-7":{"renderedLength":203,"gzipLength":157,"brotliLength":111,"mainUid":"23ea-6"},"23ea-9":{"renderedLength":440,"gzipLength":270,"brotliLength":214,"mainUid":"23ea-8"},"23ea-11":{"renderedLength":3529,"gzipLength":1021,"brotliLength":861,"mainUid":"23ea-10"},"23ea-13":{"renderedLength":1487,"gzipLength":502,"brotliLength":423,"mainUid":"23ea-12"},"23ea-15":{"renderedLength":2742,"gzipLength":822,"brotliLength":721,"mainUid":"23ea-14"},"23ea-17":{"renderedLength":1965,"gzipLength":657,"brotliLength":544,"mainUid":"23ea-16"},"23ea-19":{"renderedLength":1205,"gzipLength":488,"brotliLength":402,"mainUid":"23ea-18"},"23ea-21":{"renderedLength":600,"gzipLength":307,"brotliLength":267,"mainUid":"23ea-20"},"23ea-23":{"renderedLength":1229,"gzipLength":491,"brotliLength":424,"mainUid":"23ea-22"},"23ea-25":{"renderedLength":2930,"gzipLength":959,"brotliLength":816,"mainUid":"23ea-24"},"23ea-27":{"renderedLength":1553,"gzipLength":580,"brotliLength":461,"mainUid":"23ea-26"},"23ea-29":{"renderedLength":390,"gzipLength":237,"brotliLength":203,"mainUid":"23ea-28"},"23ea-31":{"renderedLength":1275,"gzipLength":476,"brotliLength":406,"mainUid":"23ea-30"},"23ea-33":{"renderedLength":275,"gzipLength":163,"brotliLength":130,"mainUid":"23ea-32"},"23ea-35":{"renderedLength":561,"gzipLength":301,"brotliLength":259,"mainUid":"23ea-34"},"23ea-37":{"renderedLength":312,"gzipLength":199,"brotliLength":173,"mainUid":"23ea-36"},"23ea-39":{"renderedLength":381,"gzipLength":248,"brotliLength":218,"mainUid":"23ea-38"},"23ea-41":{"renderedLength":2324,"gzipLength":586,"brotliLength":495,"mainUid":"23ea-40"},"23ea-43":{"renderedLength":1499,"gzipLength":621,"brotliLength":518,"mainUid":"23ea-42"},"23ea-45":{"renderedLength":1135,"gzipLength":503,"brotliLength":415,"mainUid":"23ea-44"},"23ea-47":{"renderedLength":1144,"gzipLength":530,"brotliLength":462,"mainUid":"23ea-46"},"23ea-49":{"renderedLength":690,"gzipLength":375,"brotliLength":294,"mainUid":"23ea-48"},"23ea-51":{"renderedLength":2788,"gzipLength":828,"brotliLength":734,"mainUid":"23ea-50"},"23ea-53":{"renderedLength":1963,"gzipLength":648,"brotliLength":547,"mainUid":"23ea-52"},"23ea-55":{"renderedLength":708,"gzipLength":368,"brotliLength":313,"mainUid":"23ea-54"},"23ea-57":{"renderedLength":257,"gzipLength":187,"brotliLength":149,"mainUid":"23ea-56"},"23ea-59":{"renderedLength":746,"gzipLength":384,"brotliLength":333,"mainUid":"23ea-58"},"23ea-61":{"renderedLength":264,"gzipLength":191,"brotliLength":154,"mainUid":"23ea-60"},"23ea-63":{"renderedLength":414,"gzipLength":261,"brotliLength":219,"mainUid":"23ea-62"},"23ea-65":{"renderedLength":695,"gzipLength":350,"brotliLength":295,"mainUid":"23ea-64"},"23ea-67":{"renderedLength":717,"gzipLength":369,"brotliLength":319,"mainUid":"23ea-66"},"23ea-69":{"renderedLength":403,"gzipLength":245,"brotliLength":195,"mainUid":"23ea-68"},"23ea-71":{"renderedLength":493,"gzipLength":255,"brotliLength":211,"mainUid":"23ea-70"},"23ea-73":{"renderedLength":937,"gzipLength":292,"brotliLength":231,"mainUid":"23ea-72"},"23ea-75":{"renderedLength":80,"gzipLength":90,"brotliLength":72,"mainUid":"23ea-74"},"23ea-77":{"renderedLength":78,"gzipLength":92,"brotliLength":79,"mainUid":"23ea-76"},"23ea-79":{"renderedLength":538,"gzipLength":263,"brotliLength":211,"mainUid":"23ea-78"},"23ea-81":{"renderedLength":46,"gzipLength":60,"brotliLength":45,"mainUid":"23ea-80"},"23ea-83":{"renderedLength":446,"gzipLength":290,"brotliLength":241,"mainUid":"23ea-82"},"23ea-85":{"renderedLength":464,"gzipLength":299,"brotliLength":256,"mainUid":"23ea-84"},"23ea-87":{"renderedLength":1713,"gzipLength":687,"brotliLength":585,"mainUid":"23ea-86"},"23ea-89":{"renderedLength":2530,"gzipLength":860,"brotliLength":739,"mainUid":"23ea-88"},"23ea-91":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"23ea-90"}},"nodeMetas":{"23ea-0":{"id":"/src/index.ts","moduleParts":{"index.js":"23ea-1"},"imported":[{"uid":"23ea-92"},{"uid":"23ea-93"},{"uid":"23ea-94"},{"uid":"23ea-95"},{"uid":"23ea-96"},{"uid":"23ea-97"},{"uid":"23ea-98"},{"uid":"23ea-99"},{"uid":"23ea-100"},{"uid":"23ea-101"},{"uid":"23ea-102"},{"uid":"23ea-103"},{"uid":"23ea-104"},{"uid":"23ea-105"},{"uid":"23ea-106"},{"uid":"23ea-2"},{"uid":"23ea-107"},{"uid":"23ea-108"},{"uid":"23ea-109"}],"importedBy":[],"isEntry":true},"23ea-2":{"id":"/src/money/useMoneyInput.ts","moduleParts":{"money/useMoneyInput.js":"23ea-3"},"imported":[{"uid":"23ea-110"},{"uid":"23ea-111"},{"uid":"23ea-112"},{"uid":"23ea-113"},{"uid":"23ea-114"}],"importedBy":[{"uid":"23ea-0"},{"uid":"23ea-48"},{"uid":"23ea-42"}]},"23ea-4":{"id":"/src/step/useStep.ts","moduleParts":{"step/useStep.js":"23ea-5"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-74"}],"importedBy":[{"uid":"23ea-109"},{"uid":"23ea-8"}]},"23ea-6":{"id":"/src/step/Step.tsx","moduleParts":{"step/Step.js":"23ea-7"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"}],"importedBy":[{"uid":"23ea-109"},{"uid":"23ea-10"}]},"23ea-8":{"id":"/src/step/FormStep.tsx","moduleParts":{"step/FormStep.js":"23ea-9"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"},{"uid":"23ea-4"}],"importedBy":[{"uid":"23ea-109"},{"uid":"23ea-10"}]},"23ea-10":{"id":"/src/step/StepProvider.tsx","moduleParts":{"step/StepProvider.js":"23ea-11"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"},{"uid":"23ea-127"},{"uid":"23ea-116"},{"uid":"23ea-8"},{"uid":"23ea-6"},{"uid":"23ea-74"}],"importedBy":[{"uid":"23ea-109"}]},"23ea-12":{"id":"/src/inputs/MaskedInput/useMaskedInput.ts","moduleParts":{"inputs/MaskedInput/useMaskedInput.js":"23ea-13"},"imported":[{"uid":"23ea-111"},{"uid":"23ea-112"},{"uid":"23ea-114"},{"uid":"23ea-122"}],"importedBy":[{"uid":"23ea-99"},{"uid":"23ea-28"},{"uid":"23ea-46"},{"uid":"23ea-86"}]},"23ea-14":{"id":"/src/date/LocalDatePicker/LocalDatePicker.tsx","moduleParts":{"date/LocalDatePicker/LocalDatePicker.js":"23ea-15"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-115"},{"uid":"23ea-111"},{"uid":"23ea-116"},{"uid":"23ea-117"},{"uid":"23ea-78"},{"uid":"23ea-84"}],"importedBy":[{"uid":"23ea-92"}]},"23ea-16":{"id":"/src/date/MonthDayPicker/MonthDayPicker.tsx","moduleParts":{"date/MonthDayPicker/MonthDayPicker.js":"23ea-17"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-115"},{"uid":"23ea-111"},{"uid":"23ea-116"},{"uid":"23ea-117"}],"importedBy":[{"uid":"23ea-95"}]},"23ea-18":{"id":"/src/date/LocalTimePicker/LocalTimePicker.tsx","moduleParts":{"date/LocalTimePicker/LocalTimePicker.js":"23ea-19"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-118"},{"uid":"23ea-115"},{"uid":"23ea-111"},{"uid":"23ea-117"},{"uid":"23ea-82"}],"importedBy":[{"uid":"23ea-94"}]},"23ea-20":{"id":"/src/form/TForm/TForm.tsx","moduleParts":{"form/TForm/TForm.js":"23ea-21"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"},{"uid":"23ea-119"},{"uid":"23ea-24"}],"importedBy":[{"uid":"23ea-98"}]},"23ea-22":{"id":"/src/date/MonthYearPicker/MonthYearPicker.tsx","moduleParts":{"date/MonthYearPicker/MonthYearPicker.js":"23ea-23"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-118"},{"uid":"23ea-115"},{"uid":"23ea-111"},{"uid":"23ea-116"},{"uid":"23ea-117"}],"importedBy":[{"uid":"23ea-96"}]},"23ea-24":{"id":"/src/form/TForm/useTForm.tsx","moduleParts":{"form/TForm/useTForm.js":"23ea-25"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-120"},{"uid":"23ea-119"},{"uid":"23ea-121"},{"uid":"23ea-116"}],"importedBy":[{"uid":"23ea-98"},{"uid":"23ea-20"}]},"23ea-26":{"id":"/src/date/YearSelect/YearSelect.tsx","moduleParts":{"date/YearSelect/YearSelect.js":"23ea-27"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"},{"uid":"23ea-116"}],"importedBy":[{"uid":"23ea-97"}]},"23ea-28":{"id":"/src/inputs/MaskedInput/MaskedInput.tsx","moduleParts":{"inputs/MaskedInput/MaskedInput.js":"23ea-29"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"},{"uid":"23ea-116"},{"uid":"23ea-12"}],"importedBy":[{"uid":"23ea-99"}]},"23ea-30":{"id":"/src/inputs/Scriptel/Scriptel.tsx","moduleParts":{"inputs/Scriptel/Scriptel.js":"23ea-31"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"},{"uid":"23ea-80"},{"uid":"23ea-88"}],"importedBy":[{"uid":"23ea-101"},{"uid":"23ea-32"}]},"23ea-32":{"id":"/src/inputs/Scriptel/withScriptel.tsx","moduleParts":{"inputs/Scriptel/withScriptel.js":"23ea-33"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-30"}],"importedBy":[{"uid":"23ea-101"}]},"23ea-34":{"id":"/src/inputs/RadioGroup/RadioGroup.tsx","moduleParts":{"inputs/RadioGroup/RadioGroup.js":"23ea-35"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"},{"uid":"23ea-116"}],"importedBy":[{"uid":"23ea-100"}]},"23ea-36":{"id":"/src/inputs/TableInput/addRowOnTab.ts","moduleParts":{"inputs/TableInput/addRowOnTab.js":"23ea-37"},"imported":[],"importedBy":[{"uid":"23ea-106"},{"uid":"23ea-54"},{"uid":"23ea-58"},{"uid":"23ea-66"}]},"23ea-38":{"id":"/src/inputs/PhoneInput/PhoneInput.tsx","moduleParts":{"inputs/PhoneInput/PhoneInput.js":"23ea-39"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"},{"uid":"23ea-99"}],"importedBy":[{"uid":"23ea-103"}]},"23ea-40":{"id":"/src/inputs/CreditCardInput/CreditCardInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardInput.js":"23ea-41"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-115"},{"uid":"23ea-111"},{"uid":"23ea-123"},{"uid":"23ea-124"},{"uid":"23ea-116"},{"uid":"23ea-96"},{"uid":"23ea-86"},{"uid":"23ea-76"}],"importedBy":[{"uid":"23ea-104"}]},"23ea-42":{"id":"/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","moduleParts":{"money/MoneyCurrencyInput/MoneyCurrencyInput.js":"23ea-43"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-110"},{"uid":"23ea-111"},{"uid":"23ea-113"},{"uid":"23ea-116"},{"uid":"23ea-2"}],"importedBy":[{"uid":"23ea-108"}]},"23ea-44":{"id":"/src/date/LocalMonthSelect/LocalMonthSelect.tsx","moduleParts":{"date/LocalMonthSelect/LocalMonthSelect.js":"23ea-45"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-118"},{"uid":"23ea-111"},{"uid":"23ea-116"}],"importedBy":[{"uid":"23ea-93"}]},"23ea-46":{"id":"/src/inputs/SinInput/SinInput.tsx","moduleParts":{"inputs/SinInput/SinInput.js":"23ea-47"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"},{"uid":"23ea-116"},{"uid":"23ea-125"},{"uid":"23ea-12"}],"importedBy":[{"uid":"23ea-105"}]},"23ea-48":{"id":"/src/money/MoneyInput/MoneyInput.tsx","moduleParts":{"money/MoneyInput/MoneyInput.js":"23ea-49"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-110"},{"uid":"23ea-111"},{"uid":"23ea-113"},{"uid":"23ea-116"},{"uid":"23ea-2"}],"importedBy":[{"uid":"23ea-107"}]},"23ea-50":{"id":"/src/inputs/TableInput/TableInput.tsx","moduleParts":{"inputs/TableInput/TableInput.js":"23ea-51"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"},{"uid":"23ea-119"},{"uid":"23ea-126"},{"uid":"23ea-116"}],"importedBy":[{"uid":"23ea-106"}]},"23ea-52":{"id":"/src/inputs/ScriptelInput/ScriptelInput.tsx","moduleParts":{"inputs/ScriptelInput/ScriptelInput.js":"23ea-53"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"},{"uid":"23ea-116"},{"uid":"23ea-80"}],"importedBy":[{"uid":"23ea-102"}]},"23ea-54":{"id":"/src/inputs/TableInput/MoneyEditCell.tsx","moduleParts":{"inputs/TableInput/MoneyEditCell.js":"23ea-55"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"},{"uid":"23ea-107"},{"uid":"23ea-36"}],"importedBy":[{"uid":"23ea-106"}]},"23ea-56":{"id":"/src/inputs/TableInput/MoneyCell.tsx","moduleParts":{"inputs/TableInput/MoneyCell.js":"23ea-57"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-110"}],"importedBy":[{"uid":"23ea-106"}]},"23ea-58":{"id":"/src/inputs/TableInput/CheckboxEditCell.tsx","moduleParts":{"inputs/TableInput/CheckboxEditCell.js":"23ea-59"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"},{"uid":"23ea-116"},{"uid":"23ea-36"}],"importedBy":[{"uid":"23ea-106"}]},"23ea-60":{"id":"/src/inputs/TableInput/LocalDateCell.tsx","moduleParts":{"inputs/TableInput/LocalDateCell.js":"23ea-61"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-115"}],"importedBy":[{"uid":"23ea-106"}]},"23ea-62":{"id":"/src/inputs/TableInput/MoneySumFooter.tsx","moduleParts":{"inputs/TableInput/MoneySumFooter.js":"23ea-63"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-110"}],"importedBy":[{"uid":"23ea-106"}]},"23ea-64":{"id":"/src/inputs/TableInput/LocalDateEditCell.tsx","moduleParts":{"inputs/TableInput/LocalDateEditCell.js":"23ea-65"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"},{"uid":"23ea-92"}],"importedBy":[{"uid":"23ea-106"}]},"23ea-66":{"id":"/src/inputs/TableInput/StringEditCell.tsx","moduleParts":{"inputs/TableInput/StringEditCell.js":"23ea-67"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"},{"uid":"23ea-116"},{"uid":"23ea-36"}],"importedBy":[{"uid":"23ea-106"}]},"23ea-68":{"id":"/src/inputs/TableInput/HoverCell.tsx","moduleParts":{"inputs/TableInput/HoverCell.js":"23ea-69"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"}],"importedBy":[{"uid":"23ea-106"}]},"23ea-70":{"id":"/src/inputs/TableInput/DropdownCell.tsx","moduleParts":{"inputs/TableInput/DropdownCell.js":"23ea-71"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-116"}],"importedBy":[{"uid":"23ea-106"}]},"23ea-72":{"id":"/src/inputs/Scriptel/scriptel/enums.ts","moduleParts":{"inputs/Scriptel/scriptel/enums.js":"23ea-73"},"imported":[],"importedBy":[{"uid":"23ea-101"},{"uid":"23ea-88"}]},"23ea-74":{"id":"/src/step/stepContext.ts","moduleParts":{"step/stepContext.js":"23ea-75"},"imported":[{"uid":"23ea-114"}],"importedBy":[{"uid":"23ea-4"},{"uid":"23ea-10"}]},"23ea-76":{"id":"/src/inputs/CreditCardInput/styles.css","moduleParts":{"inputs/CreditCardInput/styles.css.js":"23ea-77"},"imported":[{"uid":"23ea-90"}],"importedBy":[{"uid":"23ea-40"}]},"23ea-78":{"id":"/src/date/DatePicker/styles.css","moduleParts":{"date/DatePicker/styles.css.js":"23ea-79"},"imported":[{"uid":"23ea-90"}],"importedBy":[{"uid":"23ea-14"},{"uid":"23ea-117"}]},"23ea-80":{"id":"/src/inputs/Scriptel/ScriptelContext.ts","moduleParts":{"inputs/Scriptel/ScriptelContext.js":"23ea-81"},"imported":[{"uid":"23ea-114"}],"importedBy":[{"uid":"23ea-30"},{"uid":"23ea-52"}]},"23ea-82":{"id":"/src/date/LocalTimePicker/MaskedTimeInput.tsx","moduleParts":{"date/LocalTimePicker/MaskedTimeInput.js":"23ea-83"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"},{"uid":"23ea-99"}],"importedBy":[{"uid":"23ea-18"}]},"23ea-84":{"id":"/src/date/LocalDatePicker/MaskedDateInput.tsx","moduleParts":{"date/LocalDatePicker/MaskedDateInput.js":"23ea-85"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-111"},{"uid":"23ea-99"}],"importedBy":[{"uid":"23ea-14"}]},"23ea-86":{"id":"/src/inputs/CreditCardInput/CreditCardNumberInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardNumberInput.js":"23ea-87"},"imported":[{"uid":"23ea-114"},{"uid":"23ea-130"},{"uid":"23ea-111"},{"uid":"23ea-131"},{"uid":"23ea-116"},{"uid":"23ea-12"}],"importedBy":[{"uid":"23ea-40"}]},"23ea-88":{"id":"/src/inputs/Scriptel/scriptel/index.ts","moduleParts":{"inputs/Scriptel/scriptel/index.js":"23ea-89"},"imported":[{"uid":"23ea-111"},{"uid":"23ea-129"},{"uid":"23ea-72"}],"importedBy":[{"uid":"23ea-30"}]},"23ea-90":{"id":"/home/darkadept/dev/thx/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"23ea-91"},"imported":[],"importedBy":[{"uid":"23ea-78"},{"uid":"23ea-76"}]},"23ea-92":{"id":"/src/date/LocalDatePicker/index.ts","moduleParts":{},"imported":[{"uid":"23ea-14"}],"importedBy":[{"uid":"23ea-0"},{"uid":"23ea-64"}]},"23ea-93":{"id":"/src/date/LocalMonthSelect/index.ts","moduleParts":{},"imported":[{"uid":"23ea-44"}],"importedBy":[{"uid":"23ea-0"}]},"23ea-94":{"id":"/src/date/LocalTimePicker/index.ts","moduleParts":{},"imported":[{"uid":"23ea-18"}],"importedBy":[{"uid":"23ea-0"}]},"23ea-95":{"id":"/src/date/MonthDayPicker/index.ts","moduleParts":{},"imported":[{"uid":"23ea-16"}],"importedBy":[{"uid":"23ea-0"}]},"23ea-96":{"id":"/src/date/MonthYearPicker/index.ts","moduleParts":{},"imported":[{"uid":"23ea-22"}],"importedBy":[{"uid":"23ea-0"},{"uid":"23ea-40"}]},"23ea-97":{"id":"/src/date/YearSelect/index.ts","moduleParts":{},"imported":[{"uid":"23ea-26"}],"importedBy":[{"uid":"23ea-0"}]},"23ea-98":{"id":"/src/form/TForm/index.ts","moduleParts":{},"imported":[{"uid":"23ea-20"},{"uid":"23ea-24"}],"importedBy":[{"uid":"23ea-0"}]},"23ea-99":{"id":"/src/inputs/MaskedInput/index.ts","moduleParts":{},"imported":[{"uid":"23ea-28"},{"uid":"23ea-12"}],"importedBy":[{"uid":"23ea-0"},{"uid":"23ea-38"},{"uid":"23ea-84"},{"uid":"23ea-82"}]},"23ea-100":{"id":"/src/inputs/RadioGroup/index.ts","moduleParts":{},"imported":[{"uid":"23ea-34"}],"importedBy":[{"uid":"23ea-0"}]},"23ea-101":{"id":"/src/inputs/Scriptel/index.ts","moduleParts":{},"imported":[{"uid":"23ea-30"},{"uid":"23ea-32"},{"uid":"23ea-72"}],"importedBy":[{"uid":"23ea-0"}]},"23ea-102":{"id":"/src/inputs/ScriptelInput/index.ts","moduleParts":{},"imported":[{"uid":"23ea-52"}],"importedBy":[{"uid":"23ea-0"}]},"23ea-103":{"id":"/src/inputs/PhoneInput/index.ts","moduleParts":{},"imported":[{"uid":"23ea-38"}],"importedBy":[{"uid":"23ea-0"}]},"23ea-104":{"id":"/src/inputs/CreditCardInput/index.ts","moduleParts":{},"imported":[{"uid":"23ea-40"}],"importedBy":[{"uid":"23ea-0"}]},"23ea-105":{"id":"/src/inputs/SinInput/index.ts","moduleParts":{},"imported":[{"uid":"23ea-46"}],"importedBy":[{"uid":"23ea-0"}]},"23ea-106":{"id":"/src/inputs/TableInput/index.ts","moduleParts":{},"imported":[{"uid":"23ea-50"},{"uid":"23ea-56"},{"uid":"23ea-54"},{"uid":"23ea-60"},{"uid":"23ea-58"},{"uid":"23ea-64"},{"uid":"23ea-62"},{"uid":"23ea-66"},{"uid":"23ea-70"},{"uid":"23ea-68"},{"uid":"23ea-36"}],"importedBy":[{"uid":"23ea-0"}]},"23ea-107":{"id":"/src/money/MoneyInput/index.ts","moduleParts":{},"imported":[{"uid":"23ea-48"}],"importedBy":[{"uid":"23ea-0"},{"uid":"23ea-54"}]},"23ea-108":{"id":"/src/money/MoneyCurrencyInput/index.ts","moduleParts":{},"imported":[{"uid":"23ea-42"}],"importedBy":[{"uid":"23ea-0"}]},"23ea-109":{"id":"/src/step/index.ts","moduleParts":{},"imported":[{"uid":"23ea-6"},{"uid":"23ea-4"},{"uid":"23ea-8"},{"uid":"23ea-10"}],"importedBy":[{"uid":"23ea-0"}]},"23ea-110":{"id":"@thx/money","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-2"},{"uid":"23ea-56"},{"uid":"23ea-62"},{"uid":"23ea-48"},{"uid":"23ea-42"}],"isExternal":true},"23ea-111":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-2"},{"uid":"23ea-14"},{"uid":"23ea-44"},{"uid":"23ea-18"},{"uid":"23ea-16"},{"uid":"23ea-22"},{"uid":"23ea-26"},{"uid":"23ea-20"},{"uid":"23ea-28"},{"uid":"23ea-12"},{"uid":"23ea-34"},{"uid":"23ea-30"},{"uid":"23ea-52"},{"uid":"23ea-38"},{"uid":"23ea-40"},{"uid":"23ea-46"},{"uid":"23ea-50"},{"uid":"23ea-54"},{"uid":"23ea-58"},{"uid":"23ea-64"},{"uid":"23ea-66"},{"uid":"23ea-68"},{"uid":"23ea-48"},{"uid":"23ea-42"},{"uid":"23ea-6"},{"uid":"23ea-8"},{"uid":"23ea-10"},{"uid":"23ea-84"},{"uid":"23ea-82"},{"uid":"23ea-88"},{"uid":"23ea-86"}],"isExternal":true},"23ea-112":{"id":"inputmask","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-2"},{"uid":"23ea-12"}],"isExternal":true},"23ea-113":{"id":"js-money","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-2"},{"uid":"23ea-48"},{"uid":"23ea-42"}],"isExternal":true},"23ea-114":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-2"},{"uid":"23ea-14"},{"uid":"23ea-44"},{"uid":"23ea-18"},{"uid":"23ea-16"},{"uid":"23ea-22"},{"uid":"23ea-26"},{"uid":"23ea-20"},{"uid":"23ea-24"},{"uid":"23ea-28"},{"uid":"23ea-12"},{"uid":"23ea-34"},{"uid":"23ea-30"},{"uid":"23ea-32"},{"uid":"23ea-52"},{"uid":"23ea-38"},{"uid":"23ea-40"},{"uid":"23ea-46"},{"uid":"23ea-50"},{"uid":"23ea-56"},{"uid":"23ea-54"},{"uid":"23ea-60"},{"uid":"23ea-58"},{"uid":"23ea-64"},{"uid":"23ea-62"},{"uid":"23ea-66"},{"uid":"23ea-70"},{"uid":"23ea-68"},{"uid":"23ea-48"},{"uid":"23ea-42"},{"uid":"23ea-6"},{"uid":"23ea-4"},{"uid":"23ea-8"},{"uid":"23ea-10"},{"uid":"23ea-84"},{"uid":"23ea-82"},{"uid":"23ea-80"},{"uid":"23ea-86"},{"uid":"23ea-74"}],"isExternal":true},"23ea-115":{"id":"@thx/date","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-14"},{"uid":"23ea-18"},{"uid":"23ea-16"},{"uid":"23ea-22"},{"uid":"23ea-40"},{"uid":"23ea-60"}],"isExternal":true},"23ea-116":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-14"},{"uid":"23ea-44"},{"uid":"23ea-16"},{"uid":"23ea-22"},{"uid":"23ea-26"},{"uid":"23ea-24"},{"uid":"23ea-28"},{"uid":"23ea-34"},{"uid":"23ea-52"},{"uid":"23ea-40"},{"uid":"23ea-46"},{"uid":"23ea-50"},{"uid":"23ea-58"},{"uid":"23ea-66"},{"uid":"23ea-70"},{"uid":"23ea-48"},{"uid":"23ea-42"},{"uid":"23ea-10"},{"uid":"23ea-86"}],"isExternal":true},"23ea-117":{"id":"/src/date/DatePicker/index.ts","moduleParts":{},"imported":[{"uid":"23ea-128"},{"uid":"23ea-78"}],"importedBy":[{"uid":"23ea-14"},{"uid":"23ea-18"},{"uid":"23ea-16"},{"uid":"23ea-22"}]},"23ea-118":{"id":"@js-joda/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-44"},{"uid":"23ea-18"},{"uid":"23ea-22"}],"isExternal":true},"23ea-119":{"id":"formik","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-20"},{"uid":"23ea-24"},{"uid":"23ea-50"}],"isExternal":true},"23ea-120":{"id":"flat","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-24"}],"isExternal":true},"23ea-121":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-24"}],"isExternal":true},"23ea-122":{"id":"use-deep-compare-effect","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-12"}],"isExternal":true},"23ea-123":{"id":"react-credit-cards","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-40"}],"isExternal":true},"23ea-124":{"id":"react-credit-cards/es/styles-compiled.css","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-40"}],"isExternal":true},"23ea-125":{"id":"social-insurance-number","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-46"}],"isExternal":true},"23ea-126":{"id":"react-table","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-50"}],"isExternal":true},"23ea-127":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-10"}],"isExternal":true},"23ea-128":{"id":"react-datepicker","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-117"}],"isExternal":true},"23ea-129":{"id":"eventemitter3","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-88"}],"isExternal":true},"23ea-130":{"id":"credit-card-type","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-86"}],"isExternal":true},"23ea-131":{"id":"luhn","moduleParts":{},"imported":[],"importedBy":[{"uid":"23ea-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.053 KB
5
+ original size: 68.259 KB
6
+ code reduction: 31.07 %
7
+ module count: 46
8
+
9
+ /src/step/StepProvider.tsx
10
+ ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.5 % (3.529 KB)
11
+ /src/form/TForm/useTForm.tsx
12
+ ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.23 % (2.93 KB)
13
+ /src/inputs/TableInput/TableInput.tsx
14
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.93 % (2.788 KB)
15
+ /src/date/LocalDatePicker/LocalDatePicker.tsx
16
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.83 % (2.742 KB)
17
+ /src/inputs/Scriptel/scriptel/index.ts
18
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.38 % (2.53 KB)
19
+ /src/inputs/CreditCardInput/CreditCardInput.tsx
20
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.94 % (2.324 KB)
21
+ /src/money/useMoneyInput.ts
22
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.58 % (2.155 KB)
23
+ /src/date/MonthDayPicker/MonthDayPicker.tsx
24
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.18 % (1.965 KB)
25
+ /src/inputs/ScriptelInput/ScriptelInput.tsx
26
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.17 % (1.963 KB)
27
+ /src/inputs/CreditCardInput/CreditCardNumberInput.tsx
28
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.64 % (1.713 KB)
29
+ /src/date/YearSelect/YearSelect.tsx
30
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.3 % (1.553 KB)
31
+ /src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx
32
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.19 % (1.499 KB)
33
+ /src/inputs/MaskedInput/useMaskedInput.ts
34
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.16 % (1.487 KB)
35
+ /src/inputs/Scriptel/Scriptel.tsx
36
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.71 % (1.275 KB)
37
+ /src/date/MonthYearPicker/MonthYearPicker.tsx
38
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.61 % (1.229 KB)
39
+ /src/date/LocalTimePicker/LocalTimePicker.tsx
40
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.56 % (1.205 KB)
41
+ /src/inputs/SinInput/SinInput.tsx
42
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.43 % (1.144 KB)
43
+ /src/date/LocalMonthSelect/LocalMonthSelect.tsx
44
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.41 % (1.135 KB)
45
+ /src/inputs/Scriptel/scriptel/enums.ts
46
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.99 % (937 Bytes)
47
+ /src/inputs/TableInput/CheckboxEditCell.tsx
48
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.59 % (746 Bytes)
49
+ /src/inputs/TableInput/StringEditCell.tsx
50
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.52 % (717 Bytes)
51
+ /src/inputs/TableInput/MoneyEditCell.tsx
52
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.5 % (708 Bytes)
53
+ /src/inputs/TableInput/LocalDateEditCell.tsx
54
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.48 % (695 Bytes)
55
+ /src/money/MoneyInput/MoneyInput.tsx
56
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.47 % (690 Bytes)
57
+ /home/darkadept/dev/thx/node_modules/style-inject/dist/style-inject.es.js
58
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.35 % (636 Bytes)
59
+ /src/form/TForm/TForm.tsx
60
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.28 % (600 Bytes)
61
+ /src/inputs/RadioGroup/RadioGroup.tsx
62
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.19 % (561 Bytes)
63
+ /src/date/DatePicker/styles.css
64
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.14 % (538 Bytes)
65
+ /src/inputs/TableInput/DropdownCell.tsx
66
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.05 % (493 Bytes)
67
+ /src/date/LocalDatePicker/MaskedDateInput.tsx
68
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.99 % (464 Bytes)
69
+ /src/date/LocalTimePicker/MaskedTimeInput.tsx
70
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.95 % (446 Bytes)
71
+ /src/step/FormStep.tsx
72
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.94 % (440 Bytes)
73
+ /src/inputs/TableInput/MoneySumFooter.tsx
74
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.88 % (414 Bytes)
75
+ /src/inputs/TableInput/HoverCell.tsx
76
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.86 % (403 Bytes)
77
+ /src/inputs/MaskedInput/MaskedInput.tsx
78
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.83 % (390 Bytes)
79
+ /src/inputs/PhoneInput/PhoneInput.tsx
80
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.81 % (381 Bytes)
81
+ /src/inputs/TableInput/addRowOnTab.ts
82
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.66 % (312 Bytes)
83
+ /src/inputs/Scriptel/withScriptel.tsx
84
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.58 % (275 Bytes)
85
+ /src/inputs/TableInput/LocalDateCell.tsx
86
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.56 % (264 Bytes)
87
+ /src/inputs/TableInput/MoneyCell.tsx
88
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.55 % (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.17 % (78 Bytes)
97
+ /src/inputs/Scriptel/ScriptelContext.ts
98
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.1 % (46 Bytes)
99
+ /src/index.ts
100
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0 % (0 Byte)
@@ -4,7 +4,8 @@ import type { TableCellProps } from './TableInput';
4
4
  import type { AddRowOnTabIf } from './addRowOnTab';
5
5
  interface MoneyEditCellOptions<D extends Record<string, unknown>> {
6
6
  /** If function is present, and returns true, will add a new row if tab is pressed on the last row */
7
- addRowOnTabIf?: AddRowOnTabIf<D, Money>;
7
+ addRowOnTabIf?: AddRowOnTabIf<D, Money | undefined>;
8
+ tabIndex?: number;
8
9
  }
9
- export declare function MoneyEditCell<D extends Record<string, unknown>>(opts?: MoneyEditCellOptions<D>): (props: TableCellProps<D, Money>) => JSX.Element;
10
+ export declare function MoneyEditCell<D extends Record<string, unknown>>(moneyEditCellProps?: MoneyEditCellOptions<D>): (props: TableCellProps<D, Money | undefined>) => JSX.Element;
10
11
  export {};
@@ -3,8 +3,8 @@ import Money, { Currency, MoneyObject } from 'js-money';
3
3
  import { InputProps } from 'semantic-ui-react';
4
4
  export interface MoneyInputProps {
5
5
  name?: string;
6
- onChange?: (value: Money) => void;
7
- value?: Money | MoneyObject;
6
+ onChange?: (value?: Money) => void;
7
+ value?: Money | MoneyObject | undefined;
8
8
  defaultCurrency?: Currency;
9
9
  onBlur?: (ev: any) => void;
10
10
  prefix?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thx/controls",
3
- "version": "16.6.1-alpha.0+f4dbe78",
3
+ "version": "16.6.1",
4
4
  "description": "A collection of components designed with SemanticUI.",
5
5
  "bugs": {
6
6
  "url": "https://github.com/thr-consulting/thr-addons/issues"
@@ -64,5 +64,5 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "f4dbe788f68c74f1afa1208be86b012d6c435270"
67
+ "gitHead": "dec4a66b66daeeeeeb900909564c7c42da847203"
68
68
  }