@thx/controls 16.8.4 → 16.8.5-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,48 +2,49 @@ import React, { useCallback } from 'react';
2
2
  import { toMoney } from '@thx/money';
3
3
  import debug from 'debug';
4
4
  import Money from 'js-money';
5
- import CurrencyInput from 'react-currency-input-field';
6
- import { Input, Dropdown } from 'semantic-ui-react';
5
+ import { Input, Label, Dropdown } from 'semantic-ui-react';
6
+ import { useMoneyInput } from '../useMoneyInput.js';
7
7
 
8
8
  const d = debug("thx.controls.money.MoneyCurrencyInput");
9
9
  function MoneyCurrencyInput(props) {
10
- const { name, onBlur, prefix, defaultCurrency, onChange, showPrefix, value, wholeNumber, currencies, locked, lockCurrency, ...rest } = props;
10
+ const { name, onBlur, prefix, defaultCurrency, onChange, showPrefix, value, wholeNumber, currencies, locked, ...rest } = props;
11
11
  const options = currencies || [
12
12
  { key: "CAD", text: "CAD", value: "CAD" },
13
13
  { key: "USD", text: "USD", value: "USD" }
14
14
  ];
15
- const currencyCode = value?.currency || defaultCurrency?.code || "CAD";
16
15
  const handleChange = useCallback((v) => {
17
- if (onChange) {
18
- onChange(toMoney(v || 0, currencyCode || "CAD"));
16
+ if (!v) {
17
+ onChange && onChange(toMoney(0, defaultCurrency));
18
+ } else {
19
+ onChange && onChange(v);
19
20
  }
20
- }, [currencyCode, onChange]);
21
+ }, [defaultCurrency, onChange]);
22
+ const val = !(value instanceof Money) && value !== void 0 ? toMoney(value) : value;
23
+ const [inputElement] = useMoneyInput({ onChange: handleChange, prefix, showPrefix, value: val, wholeNumber });
21
24
  const handleDropdownChange = useCallback((e, v) => {
22
25
  const newCurrencyCode = v.value;
23
26
  const newMoney = new Money(value?.amount || 0, newCurrencyCode);
24
27
  d("Change", value, newCurrencyCode, newMoney);
25
28
  onChange && onChange(newMoney);
26
29
  }, [onChange, value]);
30
+ const currencyCode = value?.currency || defaultCurrency?.code || "CAD";
31
+ d("Render", value, currencyCode);
27
32
  return /* @__PURE__ */ React.createElement(Input, {
28
- ...rest
29
- }, /* @__PURE__ */ React.createElement(CurrencyInput, {
33
+ ...rest,
34
+ labelPosition: "right"
35
+ }, /* @__PURE__ */ React.createElement("input", {
30
36
  name,
31
- disabled: locked,
32
- placeholder: "0.00",
33
- decimalsLimit: wholeNumber ? -1 : 2,
34
- prefix: showPrefix ? prefix || "$" : void 0,
35
- onValueChange: handleChange,
36
- style: { textAlign: "right" },
37
+ ref: inputElement,
37
38
  onBlur,
38
- value: value?.toDecimal() || 0,
39
- className: "ui right labeled input"
40
- }), /* @__PURE__ */ React.createElement(Dropdown, {
41
- disabled: locked || lockCurrency,
39
+ readOnly: locked
40
+ }), /* @__PURE__ */ React.createElement(Label, {
41
+ basic: true
42
+ }, /* @__PURE__ */ React.createElement(Dropdown, {
43
+ disabled: locked,
42
44
  options,
43
45
  value: currencyCode,
44
- onChange: handleDropdownChange,
45
- className: "ui basic label dropdown"
46
- }));
46
+ onChange: handleDropdownChange
47
+ })));
47
48
  }
48
49
 
49
50
  export { MoneyCurrencyInput };
@@ -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 CurrencyInput, {CurrencyInputProps} from 'react-currency-input-field';\nimport {Dropdown, DropdownProps, Input, InputProps} from 'semantic-ui-react';\nimport type {MoneyInputProps} from '../MoneyInput';\n\nconst d = debug('thx.controls.money.MoneyCurrencyInput');\n\nexport interface MoneyCurrencyInputProps extends MoneyInputProps {\n\tcurrencies?: {key: string; value: string; text: string}[];\n\tlockCurrency?: boolean;\n}\n\nexport function MoneyCurrencyInput(props: MoneyCurrencyInputProps & Omit<InputProps, 'onChange'>) {\n\tconst {name, onBlur, prefix, defaultCurrency, onChange, showPrefix, value, wholeNumber, currencies, locked, lockCurrency, ...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 currencyCode = value?.currency || defaultCurrency?.code || 'CAD';\n\n\tconst handleChange: CurrencyInputProps['onValueChange'] = useCallback(\n\t\t(v): void => {\n\t\t\tif (onChange) {\n\t\t\t\tonChange(toMoney(v || 0, currencyCode || 'CAD'));\n\t\t\t}\n\t\t},\n\t\t[currencyCode, onChange],\n\t);\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\treturn (\n\t\t<Input {...rest}>\n\t\t\t<CurrencyInput\n\t\t\t\tname={name}\n\t\t\t\tdisabled={locked}\n\t\t\t\tplaceholder=\"0.00\"\n\t\t\t\tdecimalsLimit={wholeNumber ? -1 : 2}\n\t\t\t\tprefix={showPrefix ? prefix || '$' : undefined}\n\t\t\t\tonValueChange={handleChange}\n\t\t\t\tstyle={{textAlign: 'right'}}\n\t\t\t\tonBlur={onBlur}\n\t\t\t\tvalue={value?.toDecimal() || 0}\n\t\t\t\tclassName=\"ui right labeled input\"\n\t\t\t/>\n\t\t\t<Dropdown\n\t\t\t\tdisabled={locked || lockCurrency}\n\t\t\t\toptions={options}\n\t\t\t\tvalue={currencyCode}\n\t\t\t\tonChange={handleDropdownChange}\n\t\t\t\tclassName=\"ui basic label dropdown\"\n\t\t\t/>\n\t\t</Input>\n\t);\n}\n"],"names":[],"mappings":";;;;;;;AASA,MAAM,CAAA,GAAI,MAAM,uCAAuC,CAAA,CAAA;AAOhD,SAAA,kBAAA,CAA4B,KAA+D,EAAA;AACjG,EAAA,MAAM,EAAC,IAAA,EAAM,MAAQ,EAAA,MAAA,EAAQ,eAAiB,EAAA,QAAA,EAAU,UAAY,EAAA,KAAA,EAAO,WAAa,EAAA,UAAA,EAAY,MAAQ,EAAA,YAAA,EAAA,GAAiB,IAAQ,EAAA,GAAA,KAAA,CAAA;AAErI,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,EAAA,MAAM,YAAe,GAAA,KAAA,EAAO,QAAY,IAAA,eAAA,EAAiB,IAAQ,IAAA,KAAA,CAAA;AAEjE,EAAM,MAAA,YAAA,GAAoD,WACzD,CAAA,CAAC,CAAY,KAAA;AACZ,IAAA,IAAI,QAAU,EAAA;AACb,MAAA,QAAA,CAAS,OAAQ,CAAA,CAAA,IAAK,CAAG,EAAA,YAAA,IAAgB,KAAK,CAAC,CAAA,CAAA;AAAA,KAChD;AAAA,GAED,EAAA,CAAC,YAAc,EAAA,QAAQ,CACxB,CAAA,CAAA;AAEA,EAAA,MAAM,oBAAuB,GAAA,WAAA,CAC5B,CAAC,CAAA,EAAuC,CAAqB,KAAA;AAC5D,IAAA,MAAM,kBAAkB,CAAE,CAAA,KAAA,CAAA;AAC1B,IAAA,MAAM,WAAW,IAAI,KAAA,CAAM,KAAO,EAAA,MAAA,IAAU,GAAG,eAAe,CAAA,CAAA;AAE9D,IAAE,CAAA,CAAA,QAAA,EAAU,KAAO,EAAA,eAAA,EAAiB,QAAQ,CAAA,CAAA;AAE5C,IAAA,QAAA,IAAY,SAAS,QAAQ,CAAA,CAAA;AAAA,GAG9B,EAAA,CAAC,QAAU,EAAA,KAAK,CACjB,CAAA,CAAA;AAEA,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAU,GAAA,IAAA;AAAA,GAAA,kBACT,KAAA,CAAA,aAAA,CAAA,aAAA,EAAA;AAAA,IACA,IAAA;AAAA,IACA,QAAU,EAAA,MAAA;AAAA,IACV,WAAY,EAAA,MAAA;AAAA,IACZ,aAAA,EAAe,cAAc,CAAK,CAAA,GAAA,CAAA;AAAA,IAClC,MAAA,EAAQ,UAAa,GAAA,MAAA,IAAU,GAAM,GAAA,KAAA,CAAA;AAAA,IACrC,aAAe,EAAA,YAAA;AAAA,IACf,KAAA,EAAO,EAAC,SAAA,EAAW,OAAO,EAAA;AAAA,IAC1B,MAAA;AAAA,IACA,KAAA,EAAO,KAAO,EAAA,SAAA,EAAe,IAAA,CAAA;AAAA,IAC7B,SAAU,EAAA,wBAAA;AAAA,GACX,mBACC,KAAA,CAAA,aAAA,CAAA,QAAA,EAAA;AAAA,IACA,UAAU,MAAU,IAAA,YAAA;AAAA,IACpB,OAAA;AAAA,IACA,KAAO,EAAA,YAAA;AAAA,IACP,QAAU,EAAA,oBAAA;AAAA,IACV,SAAU,EAAA,yBAAA;AAAA,GACX,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) {\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,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,MAAM,oBAAuB,GAAA,WAAA,CAC5B,CAAC,CAAA,EAAuC,CAAqB,KAAA;AAC5D,IAAA,MAAM,kBAAkB,CAAE,CAAA,KAAA,CAAA;AAC1B,IAAA,MAAM,WAAW,IAAI,KAAA,CAAM,KAAO,EAAA,MAAA,IAAU,GAAG,eAAe,CAAA,CAAA;AAE9D,IAAE,CAAA,CAAA,QAAA,EAAU,KAAO,EAAA,eAAA,EAAiB,QAAQ,CAAA,CAAA;AAE5C,IAAA,QAAA,IAAY,SAAS,QAAQ,CAAA,CAAA;AAAA,GAG9B,EAAA,CAAC,QAAU,EAAA,KAAK,CACjB,CAAA,CAAA;AAEA,EAAA,MAAM,YAAe,GAAA,KAAA,EAAO,QAAY,IAAA,eAAA,EAAiB,IAAQ,IAAA,KAAA,CAAA;AACjE,EAAE,CAAA,CAAA,QAAA,EAAU,OAAO,YAAY,CAAA,CAAA;AAE/B,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAU,GAAA,IAAA;AAAA,IAAM,aAAc,EAAA,OAAA;AAAA,GAAA,kBAC7B,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA;AAAA,IAAM,IAAA;AAAA,IAAY,GAAK,EAAA,YAAA;AAAA,IAAc,MAAA;AAAA,IAAgB,QAAU,EAAA,MAAA;AAAA,GAAQ,mBACvE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAM,KAAK,EAAA,IAAA;AAAA,GAAA,kBACV,KAAA,CAAA,aAAA,CAAA,QAAA,EAAA;AAAA,IAAS,QAAU,EAAA,MAAA;AAAA,IAAQ,OAAA;AAAA,IAAkB,KAAO,EAAA,YAAA;AAAA,IAAc,QAAU,EAAA,oBAAA;AAAA,GAAsB,CACpG,CACD,CAAA,CAAA;AAEF;;;;"}
@@ -1,29 +1,29 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import { toMoney } from '@thx/money';
3
3
  import debug from 'debug';
4
- import CurrencyInput from 'react-currency-input-field';
4
+ import Money from 'js-money';
5
5
  import { Input } from 'semantic-ui-react';
6
+ import { useMoneyInput } from '../useMoneyInput.js';
6
7
 
7
8
  debug("thx.controls.money.MoneyInput");
8
9
  function MoneyInput(props) {
9
10
  const { name, onBlur, locked, prefix, defaultCurrency, onChange, showPrefix, value, wholeNumber, ...rest } = props;
10
11
  const handleChange = useCallback((v) => {
11
- if (onChange) {
12
- onChange(toMoney(v || 0, defaultCurrency || "CAD"));
12
+ if (!v) {
13
+ onChange && onChange(toMoney(0, defaultCurrency));
14
+ } else {
15
+ onChange && onChange(v);
13
16
  }
14
17
  }, [defaultCurrency, onChange]);
18
+ const val = !(value instanceof Money) && value !== void 0 ? toMoney(value) : value;
19
+ const [inputElement] = useMoneyInput({ onChange: handleChange, prefix, showPrefix, value: val, wholeNumber });
15
20
  return /* @__PURE__ */ React.createElement(Input, {
16
21
  ...rest
17
- }, /* @__PURE__ */ React.createElement(CurrencyInput, {
22
+ }, /* @__PURE__ */ React.createElement("input", {
18
23
  name,
19
- disabled: locked,
20
- placeholder: "0.00",
21
- decimalsLimit: wholeNumber ? -1 : 2,
22
- prefix: showPrefix ? prefix || "$" : void 0,
23
- onValueChange: handleChange,
24
- style: { textAlign: "right" },
24
+ ref: inputElement,
25
25
  onBlur,
26
- value: value?.toDecimal() || 0
26
+ readOnly: locked
27
27
  }));
28
28
  }
29
29
 
@@ -1 +1 @@
1
- {"version":3,"file":"MoneyInput.js","sources":["../../../../src/money/MoneyInput/MoneyInput.tsx"],"sourcesContent":["import {toMoney} from '@thx/money';\nimport debug from 'debug';\nimport type {Currency} from 'js-money';\nimport type Money from 'js-money';\nimport {useCallback} from 'react';\nimport CurrencyInput, {CurrencyInputProps} from 'react-currency-input-field';\nimport {Input, InputProps} from 'semantic-ui-react';\n\nconst d = debug('thx.controls.money.MoneyInput');\n\nexport interface MoneyInputProps {\n\tname?: string;\n\tonChange?: (value?: Money) => void;\n\tvalue?: Money | 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: CurrencyInputProps['onValueChange'] = useCallback(\n\t\t(v): void => {\n\t\t\tif (onChange) {\n\t\t\t\tonChange(toMoney(v || 0, defaultCurrency || 'CAD'));\n\t\t\t}\n\t\t},\n\t\t[defaultCurrency, onChange],\n\t);\n\n\treturn (\n\t\t<Input {...rest}>\n\t\t\t<CurrencyInput\n\t\t\t\tname={name}\n\t\t\t\tdisabled={locked}\n\t\t\t\tplaceholder=\"0.00\"\n\t\t\t\tdecimalsLimit={wholeNumber ? -1 : 2}\n\t\t\t\tprefix={showPrefix ? prefix || '$' : undefined}\n\t\t\t\tonValueChange={handleChange}\n\t\t\t\tstyle={{textAlign: 'right'}}\n\t\t\t\tonBlur={onBlur}\n\t\t\t\tvalue={value?.toDecimal() || 0}\n\t\t\t/>\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,GAAoD,WACzD,CAAA,CAAC,CAAY,KAAA;AACZ,IAAA,IAAI,QAAU,EAAA;AACb,MAAA,QAAA,CAAS,OAAQ,CAAA,CAAA,IAAK,CAAG,EAAA,eAAA,IAAmB,KAAK,CAAC,CAAA,CAAA;AAAA,KACnD;AAAA,GAED,EAAA,CAAC,eAAiB,EAAA,QAAQ,CAC3B,CAAA,CAAA;AAEA,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAU,GAAA,IAAA;AAAA,GAAA,kBACT,KAAA,CAAA,aAAA,CAAA,aAAA,EAAA;AAAA,IACA,IAAA;AAAA,IACA,QAAU,EAAA,MAAA;AAAA,IACV,WAAY,EAAA,MAAA;AAAA,IACZ,aAAA,EAAe,cAAc,CAAK,CAAA,GAAA,CAAA;AAAA,IAClC,MAAA,EAAQ,UAAa,GAAA,MAAA,IAAU,GAAM,GAAA,KAAA,CAAA;AAAA,IACrC,aAAe,EAAA,YAAA;AAAA,IACf,KAAA,EAAO,EAAC,SAAA,EAAW,OAAO,EAAA;AAAA,IAC1B,MAAA;AAAA,IACA,KAAA,EAAO,KAAO,EAAA,SAAA,EAAe,IAAA,CAAA;AAAA,GAC9B,CACD,CAAA,CAAA;AAEF;;;;"}
1
+ {"version":3,"file":"MoneyInput.js","sources":["../../../../src/money/MoneyInput/MoneyInput.tsx"],"sourcesContent":["import {toMoney} from '@thx/money';\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":";;;;;;;AAOU,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;;;;"}
@@ -0,0 +1,74 @@
1
+ import { toMoney } from '@thx/money';
2
+ import debug from 'debug';
3
+ import InputmaskImport from 'inputmask';
4
+ import Money from 'js-money';
5
+ import { useRef, useEffect, useCallback } from 'react';
6
+
7
+ const d = debug("thx.controls.money.useMoneyInput");
8
+ function useMoneyInput(props) {
9
+ const { value, onChange, onSet, showPrefix, prefix, wholeNumber } = props;
10
+ const inputElement = useRef(null);
11
+ const maskInstance = useRef(null);
12
+ const currencyCode = value?.currency || "CAD";
13
+ useEffect(() => {
14
+ if (!inputElement.current)
15
+ throw new Error("Could not get input element");
16
+ d("Creating input mask instance");
17
+ maskInstance.current = new InputmaskImport({
18
+ alias: "numeric",
19
+ groupSeparator: ",",
20
+ digits: wholeNumber ? "0" : Money[currencyCode].decimal_digits.toString(),
21
+ digitsOptional: false,
22
+ prefix: showPrefix ? prefix || Money[currencyCode].symbol : void 0,
23
+ placeholder: "0",
24
+ autoUnmask: true,
25
+ oncomplete() {
26
+ if (onChange) {
27
+ if (inputElement.current?.value) {
28
+ onChange(toMoney(inputElement.current?.value, currencyCode));
29
+ } else {
30
+ onChange();
31
+ }
32
+ }
33
+ },
34
+ oncleared() {
35
+ if (onChange)
36
+ onChange();
37
+ },
38
+ onincomplete() {
39
+ if (onChange)
40
+ onChange(toMoney(inputElement.current?.value, currencyCode));
41
+ }
42
+ });
43
+ maskInstance.current.mask(inputElement.current);
44
+ return () => {
45
+ if (maskInstance.current) {
46
+ d("Cleaning up input mask instance");
47
+ maskInstance.current.remove();
48
+ maskInstance.current = null;
49
+ }
50
+ };
51
+ }, [currencyCode, prefix, showPrefix, wholeNumber]);
52
+ const setVal = useCallback((v) => {
53
+ if (inputElement.current) {
54
+ d("Value is being set:", v);
55
+ if (v) {
56
+ inputElement.current.value = v.toDecimal().toString();
57
+ } else {
58
+ inputElement.current.value = "";
59
+ }
60
+ onSet && onSet(v);
61
+ }
62
+ }, [onSet]);
63
+ useEffect(() => {
64
+ const whatCurrentlyIsDisplayed = inputElement.current?.value || "";
65
+ const whatWeAreSetting = value ? value.toString() : "";
66
+ if (whatCurrentlyIsDisplayed !== whatWeAreSetting) {
67
+ setVal(value);
68
+ }
69
+ }, [setVal, value]);
70
+ return [inputElement, setVal];
71
+ }
72
+
73
+ export { useMoneyInput };
74
+ //# sourceMappingURL=useMoneyInput.js.map
@@ -0,0 +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\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 Inputmask({\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\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;AAc3C,SAAA,aAAA,CAAuB,KAAoF,EAAA;AACjH,EAAA,MAAM,EAAC,KAAO,EAAA,QAAA,EAAU,KAAO,EAAA,UAAA,EAAY,QAAQ,WAAe,EAAA,GAAA,KAAA,CAAA;AAElE,EAAM,MAAA,YAAA,GAAe,OAAgC,IAAI,CAAA,CAAA;AACzD,EAAM,MAAA,YAAA,GAAe,OAAkC,IAAI,CAAA,CAAA;AAM3D,EAAM,MAAA,YAAA,GAAe,OAAO,QAAY,IAAA,KAAA,CAAA;AAExC,EAAA,SAAA,CAAU,MAAM;AACf,IAAA,IAAI,CAAC,YAAa,CAAA,OAAA;AAAS,MAAM,MAAA,IAAI,MAAM,6BAA6B,CAAA,CAAA;AAExE,IAAA,CAAA,CAAE,8BAA8B,CAAA,CAAA;AAChC,IAAa,YAAA,CAAA,OAAA,GAAU,IAAIA,eAAU,CAAA;AAAA,MACpC,KAAO,EAAA,SAAA;AAAA,MACP,cAAgB,EAAA,GAAA;AAAA,MAChB,QAAQ,WAAc,GAAA,GAAA,GAAM,KAAM,CAAA,YAAA,CAAA,CAAc,eAAe,QAAS,EAAA;AAAA,MACxE,cAAgB,EAAA,KAAA;AAAA,MAChB,MAAQ,EAAA,UAAA,GAAa,MAAU,IAAA,KAAA,CAAM,cAAc,MAAS,GAAA,KAAA,CAAA;AAAA,MAC5D,WAAa,EAAA,GAAA;AAAA,MACb,UAAY,EAAA,IAAA;AAAA,MACZ,UAAa,GAAA;AACZ,QAAA,IAAI,QAAU,EAAA;AACb,UAAI,IAAA,YAAA,CAAa,SAAS,KAAO,EAAA;AAChC,YAAA,QAAA,CAAS,OAAQ,CAAA,YAAA,CAAa,OAAS,EAAA,KAAA,EAAO,YAAY,CAAC,CAAA,CAAA;AAAA,WACrD,MAAA;AACN,YAAS,QAAA,EAAA,CAAA;AAAA,WACV;AAAA,SACD;AAAA,OACD;AAAA,MACA,SAAY,GAAA;AACX,QAAI,IAAA,QAAA;AAAU,UAAS,QAAA,EAAA,CAAA;AAAA,OACxB;AAAA,MACA,YAAe,GAAA;AACd,QAAI,IAAA,QAAA;AAAU,UAAA,QAAA,CAAS,OAAQ,CAAA,YAAA,CAAa,OAAS,EAAA,KAAA,EAAO,YAAY,CAAC,CAAA,CAAA;AAAA,OAC1E;AAAA,KACA,CAAA,CAAA;AACD,IAAa,YAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,YAAA,CAAa,OAAO,CAAA,CAAA;AAE9C,IAAA,OAAO,MAAM;AACZ,MAAA,IAAI,aAAa,OAAS,EAAA;AACzB,QAAA,CAAA,CAAE,iCAAiC,CAAA,CAAA;AACnC,QAAA,YAAA,CAAa,QAAQ,MAAO,EAAA,CAAA;AAC5B,QAAA,YAAA,CAAa,OAAU,GAAA,IAAA,CAAA;AAAA,OACxB;AAAA,KACD,CAAA;AAAA,KAEE,CAAC,YAAA,EAAc,MAAQ,EAAA,UAAA,EAAY,WAAW,CAAC,CAAA,CAAA;AAElD,EAAM,MAAA,MAAA,GAAS,WACd,CAAA,CAAC,CAAc,KAAA;AACd,IAAA,IAAI,aAAa,OAAS,EAAA;AACzB,MAAA,CAAA,CAAE,uBAAuB,CAAC,CAAA,CAAA;AAC1B,MAAA,IAAI,CAAG,EAAA;AACN,QAAA,YAAA,CAAa,OAAQ,CAAA,KAAA,GAAQ,CAAE,CAAA,SAAA,GAAY,QAAS,EAAA,CAAA;AAAA,OAC9C,MAAA;AACN,QAAA,YAAA,CAAa,QAAQ,KAAQ,GAAA,EAAA,CAAA;AAAA,OAC9B;AACA,MAAA,KAAA,IAAS,MAAM,CAAC,CAAA,CAAA;AAAA,KACjB;AAAA,GACD,EACA,CAAC,KAAK,CACP,CAAA,CAAA;AAGA,EAAA,SAAA,CAAU,MAAM;AACf,IAAM,MAAA,wBAAA,GAA2B,YAAa,CAAA,OAAA,EAAS,KAAS,IAAA,EAAA,CAAA;AAChE,IAAA,MAAM,gBAAmB,GAAA,KAAA,GAAQ,KAAM,CAAA,QAAA,EAAa,GAAA,EAAA,CAAA;AAEpD,IAAA,IAAI,6BAA6B,gBAAkB,EAAA;AAClD,MAAA,MAAA,CAAO,KAAK,CAAA,CAAA;AAAA,KACb;AAAA,GACE,EAAA,CAAC,MAAQ,EAAA,KAAK,CAAC,CAAA,CAAA;AAElB,EAAO,OAAA,CAAC,cAAc,MAAM,CAAA,CAAA;AAC7B;;;;"}
package/dist/stats.html CHANGED
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
2669
2669
  </script>
2670
2670
  <script>
2671
2671
  /*<!--*/
2672
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"651c-1"}]},{"name":"step/useStep.js","children":[{"name":"src/step/useStep.ts","uid":"651c-3"}]},{"name":"step/Step.js","children":[{"name":"src/step/Step.tsx","uid":"651c-5"}]},{"name":"step/FormStep.js","children":[{"name":"src/step/FormStep.tsx","uid":"651c-7"}]},{"name":"step/StepProvider.js","children":[{"name":"src/step/StepProvider.tsx","uid":"651c-9"}]},{"name":"inputs/MaskedInput/useMaskedInput.js","children":[{"name":"src/inputs/MaskedInput/useMaskedInput.ts","uid":"651c-11"}]},{"name":"inputs/TableInput/addRowOnTab.js","children":[{"name":"src/inputs/TableInput/addRowOnTab.ts","uid":"651c-13"}]},{"name":"date/LocalDatePicker/LocalDatePicker.js","children":[{"name":"src/date/LocalDatePicker/LocalDatePicker.tsx","uid":"651c-15"}]},{"name":"date/LocalMonthSelect/LocalMonthSelect.js","children":[{"name":"src/date/LocalMonthSelect/LocalMonthSelect.tsx","uid":"651c-17"}]},{"name":"date/LocalTimePicker/LocalTimePicker.js","children":[{"name":"src/date/LocalTimePicker/LocalTimePicker.tsx","uid":"651c-19"}]},{"name":"date/MonthYearPicker/MonthYearPicker.js","children":[{"name":"src/date/MonthYearPicker/MonthYearPicker.tsx","uid":"651c-21"}]},{"name":"date/MonthDayPicker/MonthDayPicker.js","children":[{"name":"src/date/MonthDayPicker/MonthDayPicker.tsx","uid":"651c-23"}]},{"name":"form/TForm/TForm.js","children":[{"name":"src/form/TForm/TForm.tsx","uid":"651c-25"}]},{"name":"form/TForm/useTForm.js","children":[{"name":"src/form/TForm/useTForm.tsx","uid":"651c-27"}]},{"name":"inputs/Scriptel/Scriptel.js","children":[{"name":"src/inputs/Scriptel/Scriptel.tsx","uid":"651c-29"}]},{"name":"inputs/Scriptel/withScriptel.js","children":[{"name":"src/inputs/Scriptel/withScriptel.tsx","uid":"651c-31"}]},{"name":"inputs/PhoneInput/PhoneInput.js","children":[{"name":"src/inputs/PhoneInput/PhoneInput.tsx","uid":"651c-33"}]},{"name":"inputs/MaskedInput/MaskedInput.js","children":[{"name":"src/inputs/MaskedInput/MaskedInput.tsx","uid":"651c-35"}]},{"name":"date/YearSelect/YearSelect.js","children":[{"name":"src/date/YearSelect/YearSelect.tsx","uid":"651c-37"}]},{"name":"inputs/ScriptelInput/ScriptelInput.js","children":[{"name":"src/inputs/ScriptelInput/ScriptelInput.tsx","uid":"651c-39"}]},{"name":"inputs/TableInput/TableInput.js","children":[{"name":"src/inputs/TableInput/TableInput.tsx","uid":"651c-41"}]},{"name":"inputs/TableInput/MoneyCell.js","children":[{"name":"src/inputs/TableInput/MoneyCell.tsx","uid":"651c-43"}]},{"name":"inputs/TableInput/MoneyEditCell.js","children":[{"name":"src/inputs/TableInput/MoneyEditCell.tsx","uid":"651c-45"}]},{"name":"inputs/TableInput/LocalDateCell.js","children":[{"name":"src/inputs/TableInput/LocalDateCell.tsx","uid":"651c-47"}]},{"name":"inputs/TableInput/CheckboxEditCell.js","children":[{"name":"src/inputs/TableInput/CheckboxEditCell.tsx","uid":"651c-49"}]},{"name":"inputs/TableInput/LocalDateEditCell.js","children":[{"name":"src/inputs/TableInput/LocalDateEditCell.tsx","uid":"651c-51"}]},{"name":"inputs/TableInput/MoneySumFooter.js","children":[{"name":"src/inputs/TableInput/MoneySumFooter.tsx","uid":"651c-53"}]},{"name":"inputs/TableInput/StringEditCell.js","children":[{"name":"src/inputs/TableInput/StringEditCell.tsx","uid":"651c-55"}]},{"name":"inputs/TableInput/DropdownCell.js","children":[{"name":"src/inputs/TableInput/DropdownCell.tsx","uid":"651c-57"}]},{"name":"inputs/TableInput/HoverCell.js","children":[{"name":"src/inputs/TableInput/HoverCell.tsx","uid":"651c-59"}]},{"name":"inputs/SinInput/SinInput.js","children":[{"name":"src/inputs/SinInput/SinInput.tsx","uid":"651c-61"}]},{"name":"money/MoneyInput/MoneyInput.js","children":[{"name":"src/money/MoneyInput/MoneyInput.tsx","uid":"651c-63"}]},{"name":"money/MoneyCurrencyInput/MoneyCurrencyInput.js","children":[{"name":"src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","uid":"651c-65"}]},{"name":"inputs/CreditCardInput/CreditCardInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardInput.tsx","uid":"651c-67"}]},{"name":"inputs/RadioGroup/RadioGroup.js","children":[{"name":"src/inputs/RadioGroup/RadioGroup.tsx","uid":"651c-69"}]},{"name":"inputs/Scriptel/scriptel/enums.js","children":[{"name":"src/inputs/Scriptel/scriptel/enums.ts","uid":"651c-71"}]},{"name":"step/stepContext.js","children":[{"name":"src/step/stepContext.ts","uid":"651c-73"}]},{"name":"date/DatePicker/styles.css.js","children":[{"name":"src/date/DatePicker/styles.css","uid":"651c-75"}]},{"name":"inputs/Scriptel/ScriptelContext.js","children":[{"name":"src/inputs/Scriptel/ScriptelContext.ts","uid":"651c-77"}]},{"name":"date/LocalDatePicker/MaskedDateInput.js","children":[{"name":"src/date/LocalDatePicker/MaskedDateInput.tsx","uid":"651c-79"}]},{"name":"date/LocalTimePicker/MaskedTimeInput.js","children":[{"name":"src/date/LocalTimePicker/MaskedTimeInput.tsx","uid":"651c-81"}]},{"name":"inputs/CreditCardInput/styles.css.js","children":[{"name":"src/inputs/CreditCardInput/styles.css","uid":"651c-83"}]},{"name":"inputs/CreditCardInput/CreditCardNumberInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardNumberInput.tsx","uid":"651c-85"}]},{"name":"inputs/Scriptel/scriptel/index.js","children":[{"name":"src/inputs/Scriptel/scriptel/index.ts","uid":"651c-87"}]},{"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":"651c-89"}]}],"isRoot":true},"nodeParts":{"651c-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"651c-0"},"651c-3":{"renderedLength":113,"gzipLength":106,"brotliLength":82,"mainUid":"651c-2"},"651c-5":{"renderedLength":203,"gzipLength":157,"brotliLength":111,"mainUid":"651c-4"},"651c-7":{"renderedLength":440,"gzipLength":270,"brotliLength":214,"mainUid":"651c-6"},"651c-9":{"renderedLength":3529,"gzipLength":1021,"brotliLength":861,"mainUid":"651c-8"},"651c-11":{"renderedLength":1487,"gzipLength":502,"brotliLength":423,"mainUid":"651c-10"},"651c-13":{"renderedLength":312,"gzipLength":199,"brotliLength":173,"mainUid":"651c-12"},"651c-15":{"renderedLength":2882,"gzipLength":891,"brotliLength":787,"mainUid":"651c-14"},"651c-17":{"renderedLength":1135,"gzipLength":503,"brotliLength":415,"mainUid":"651c-16"},"651c-19":{"renderedLength":1205,"gzipLength":488,"brotliLength":402,"mainUid":"651c-18"},"651c-21":{"renderedLength":1229,"gzipLength":491,"brotliLength":424,"mainUid":"651c-20"},"651c-23":{"renderedLength":1965,"gzipLength":657,"brotliLength":544,"mainUid":"651c-22"},"651c-25":{"renderedLength":600,"gzipLength":307,"brotliLength":267,"mainUid":"651c-24"},"651c-27":{"renderedLength":2930,"gzipLength":959,"brotliLength":816,"mainUid":"651c-26"},"651c-29":{"renderedLength":1275,"gzipLength":476,"brotliLength":406,"mainUid":"651c-28"},"651c-31":{"renderedLength":275,"gzipLength":163,"brotliLength":130,"mainUid":"651c-30"},"651c-33":{"renderedLength":381,"gzipLength":248,"brotliLength":218,"mainUid":"651c-32"},"651c-35":{"renderedLength":390,"gzipLength":237,"brotliLength":203,"mainUid":"651c-34"},"651c-37":{"renderedLength":1553,"gzipLength":580,"brotliLength":461,"mainUid":"651c-36"},"651c-39":{"renderedLength":1963,"gzipLength":648,"brotliLength":547,"mainUid":"651c-38"},"651c-41":{"renderedLength":2788,"gzipLength":828,"brotliLength":734,"mainUid":"651c-40"},"651c-43":{"renderedLength":257,"gzipLength":187,"brotliLength":149,"mainUid":"651c-42"},"651c-45":{"renderedLength":708,"gzipLength":368,"brotliLength":313,"mainUid":"651c-44"},"651c-47":{"renderedLength":264,"gzipLength":191,"brotliLength":154,"mainUid":"651c-46"},"651c-49":{"renderedLength":702,"gzipLength":367,"brotliLength":330,"mainUid":"651c-48"},"651c-51":{"renderedLength":695,"gzipLength":350,"brotliLength":295,"mainUid":"651c-50"},"651c-53":{"renderedLength":414,"gzipLength":261,"brotliLength":219,"mainUid":"651c-52"},"651c-55":{"renderedLength":717,"gzipLength":369,"brotliLength":319,"mainUid":"651c-54"},"651c-57":{"renderedLength":493,"gzipLength":255,"brotliLength":211,"mainUid":"651c-56"},"651c-59":{"renderedLength":403,"gzipLength":245,"brotliLength":195,"mainUid":"651c-58"},"651c-61":{"renderedLength":1144,"gzipLength":530,"brotliLength":462,"mainUid":"651c-60"},"651c-63":{"renderedLength":745,"gzipLength":419,"brotliLength":329,"mainUid":"651c-62"},"651c-65":{"renderedLength":1518,"gzipLength":648,"brotliLength":541,"mainUid":"651c-64"},"651c-67":{"renderedLength":2324,"gzipLength":586,"brotliLength":495,"mainUid":"651c-66"},"651c-69":{"renderedLength":561,"gzipLength":301,"brotliLength":259,"mainUid":"651c-68"},"651c-71":{"renderedLength":937,"gzipLength":292,"brotliLength":231,"mainUid":"651c-70"},"651c-73":{"renderedLength":80,"gzipLength":90,"brotliLength":72,"mainUid":"651c-72"},"651c-75":{"renderedLength":538,"gzipLength":263,"brotliLength":211,"mainUid":"651c-74"},"651c-77":{"renderedLength":46,"gzipLength":60,"brotliLength":45,"mainUid":"651c-76"},"651c-79":{"renderedLength":464,"gzipLength":299,"brotliLength":256,"mainUid":"651c-78"},"651c-81":{"renderedLength":446,"gzipLength":290,"brotliLength":241,"mainUid":"651c-80"},"651c-83":{"renderedLength":78,"gzipLength":92,"brotliLength":79,"mainUid":"651c-82"},"651c-85":{"renderedLength":1713,"gzipLength":687,"brotliLength":585,"mainUid":"651c-84"},"651c-87":{"renderedLength":2530,"gzipLength":860,"brotliLength":739,"mainUid":"651c-86"},"651c-89":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"651c-88"}},"nodeMetas":{"651c-0":{"id":"/src/index.ts","moduleParts":{"index.js":"651c-1"},"imported":[{"uid":"651c-90"},{"uid":"651c-91"},{"uid":"651c-92"},{"uid":"651c-93"},{"uid":"651c-94"},{"uid":"651c-95"},{"uid":"651c-96"},{"uid":"651c-97"},{"uid":"651c-98"},{"uid":"651c-99"},{"uid":"651c-100"},{"uid":"651c-101"},{"uid":"651c-102"},{"uid":"651c-103"},{"uid":"651c-104"},{"uid":"651c-105"},{"uid":"651c-106"},{"uid":"651c-107"}],"importedBy":[],"isEntry":true},"651c-2":{"id":"/src/step/useStep.ts","moduleParts":{"step/useStep.js":"651c-3"},"imported":[{"uid":"651c-108"},{"uid":"651c-72"}],"importedBy":[{"uid":"651c-107"},{"uid":"651c-6"}]},"651c-4":{"id":"/src/step/Step.tsx","moduleParts":{"step/Step.js":"651c-5"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"}],"importedBy":[{"uid":"651c-107"},{"uid":"651c-8"}]},"651c-6":{"id":"/src/step/FormStep.tsx","moduleParts":{"step/FormStep.js":"651c-7"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-2"}],"importedBy":[{"uid":"651c-107"},{"uid":"651c-8"}]},"651c-8":{"id":"/src/step/StepProvider.tsx","moduleParts":{"step/StepProvider.js":"651c-9"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-126"},{"uid":"651c-111"},{"uid":"651c-6"},{"uid":"651c-4"},{"uid":"651c-72"}],"importedBy":[{"uid":"651c-107"}]},"651c-10":{"id":"/src/inputs/MaskedInput/useMaskedInput.ts","moduleParts":{"inputs/MaskedInput/useMaskedInput.js":"651c-11"},"imported":[{"uid":"651c-110"},{"uid":"651c-117"},{"uid":"651c-108"},{"uid":"651c-118"}],"importedBy":[{"uid":"651c-97"},{"uid":"651c-34"},{"uid":"651c-60"},{"uid":"651c-84"}]},"651c-12":{"id":"/src/inputs/TableInput/addRowOnTab.ts","moduleParts":{"inputs/TableInput/addRowOnTab.js":"651c-13"},"imported":[],"importedBy":[{"uid":"651c-104"},{"uid":"651c-44"},{"uid":"651c-48"},{"uid":"651c-54"}]},"651c-14":{"id":"/src/date/LocalDatePicker/LocalDatePicker.tsx","moduleParts":{"date/LocalDatePicker/LocalDatePicker.js":"651c-15"},"imported":[{"uid":"651c-108"},{"uid":"651c-109"},{"uid":"651c-110"},{"uid":"651c-111"},{"uid":"651c-112"},{"uid":"651c-74"},{"uid":"651c-78"}],"importedBy":[{"uid":"651c-90"}]},"651c-16":{"id":"/src/date/LocalMonthSelect/LocalMonthSelect.tsx","moduleParts":{"date/LocalMonthSelect/LocalMonthSelect.js":"651c-17"},"imported":[{"uid":"651c-108"},{"uid":"651c-113"},{"uid":"651c-110"},{"uid":"651c-111"}],"importedBy":[{"uid":"651c-91"}]},"651c-18":{"id":"/src/date/LocalTimePicker/LocalTimePicker.tsx","moduleParts":{"date/LocalTimePicker/LocalTimePicker.js":"651c-19"},"imported":[{"uid":"651c-108"},{"uid":"651c-113"},{"uid":"651c-109"},{"uid":"651c-110"},{"uid":"651c-112"},{"uid":"651c-80"}],"importedBy":[{"uid":"651c-92"}]},"651c-20":{"id":"/src/date/MonthYearPicker/MonthYearPicker.tsx","moduleParts":{"date/MonthYearPicker/MonthYearPicker.js":"651c-21"},"imported":[{"uid":"651c-108"},{"uid":"651c-113"},{"uid":"651c-109"},{"uid":"651c-110"},{"uid":"651c-111"},{"uid":"651c-112"}],"importedBy":[{"uid":"651c-94"}]},"651c-22":{"id":"/src/date/MonthDayPicker/MonthDayPicker.tsx","moduleParts":{"date/MonthDayPicker/MonthDayPicker.js":"651c-23"},"imported":[{"uid":"651c-108"},{"uid":"651c-109"},{"uid":"651c-110"},{"uid":"651c-111"},{"uid":"651c-112"}],"importedBy":[{"uid":"651c-93"}]},"651c-24":{"id":"/src/form/TForm/TForm.tsx","moduleParts":{"form/TForm/TForm.js":"651c-25"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-114"},{"uid":"651c-26"}],"importedBy":[{"uid":"651c-96"}]},"651c-26":{"id":"/src/form/TForm/useTForm.tsx","moduleParts":{"form/TForm/useTForm.js":"651c-27"},"imported":[{"uid":"651c-108"},{"uid":"651c-115"},{"uid":"651c-114"},{"uid":"651c-116"},{"uid":"651c-111"}],"importedBy":[{"uid":"651c-96"},{"uid":"651c-24"}]},"651c-28":{"id":"/src/inputs/Scriptel/Scriptel.tsx","moduleParts":{"inputs/Scriptel/Scriptel.js":"651c-29"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-76"},{"uid":"651c-86"}],"importedBy":[{"uid":"651c-99"},{"uid":"651c-30"}]},"651c-30":{"id":"/src/inputs/Scriptel/withScriptel.tsx","moduleParts":{"inputs/Scriptel/withScriptel.js":"651c-31"},"imported":[{"uid":"651c-108"},{"uid":"651c-28"}],"importedBy":[{"uid":"651c-99"}]},"651c-32":{"id":"/src/inputs/PhoneInput/PhoneInput.tsx","moduleParts":{"inputs/PhoneInput/PhoneInput.js":"651c-33"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-97"}],"importedBy":[{"uid":"651c-101"}]},"651c-34":{"id":"/src/inputs/MaskedInput/MaskedInput.tsx","moduleParts":{"inputs/MaskedInput/MaskedInput.js":"651c-35"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-111"},{"uid":"651c-10"}],"importedBy":[{"uid":"651c-97"}]},"651c-36":{"id":"/src/date/YearSelect/YearSelect.tsx","moduleParts":{"date/YearSelect/YearSelect.js":"651c-37"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-111"}],"importedBy":[{"uid":"651c-95"}]},"651c-38":{"id":"/src/inputs/ScriptelInput/ScriptelInput.tsx","moduleParts":{"inputs/ScriptelInput/ScriptelInput.js":"651c-39"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-111"},{"uid":"651c-76"}],"importedBy":[{"uid":"651c-100"}]},"651c-40":{"id":"/src/inputs/TableInput/TableInput.tsx","moduleParts":{"inputs/TableInput/TableInput.js":"651c-41"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-114"},{"uid":"651c-122"},{"uid":"651c-111"}],"importedBy":[{"uid":"651c-104"}]},"651c-42":{"id":"/src/inputs/TableInput/MoneyCell.tsx","moduleParts":{"inputs/TableInput/MoneyCell.js":"651c-43"},"imported":[{"uid":"651c-108"},{"uid":"651c-123"}],"importedBy":[{"uid":"651c-104"}]},"651c-44":{"id":"/src/inputs/TableInput/MoneyEditCell.tsx","moduleParts":{"inputs/TableInput/MoneyEditCell.js":"651c-45"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-105"},{"uid":"651c-12"}],"importedBy":[{"uid":"651c-104"}]},"651c-46":{"id":"/src/inputs/TableInput/LocalDateCell.tsx","moduleParts":{"inputs/TableInput/LocalDateCell.js":"651c-47"},"imported":[{"uid":"651c-108"},{"uid":"651c-109"}],"importedBy":[{"uid":"651c-104"}]},"651c-48":{"id":"/src/inputs/TableInput/CheckboxEditCell.tsx","moduleParts":{"inputs/TableInput/CheckboxEditCell.js":"651c-49"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-111"},{"uid":"651c-12"}],"importedBy":[{"uid":"651c-104"}]},"651c-50":{"id":"/src/inputs/TableInput/LocalDateEditCell.tsx","moduleParts":{"inputs/TableInput/LocalDateEditCell.js":"651c-51"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-90"}],"importedBy":[{"uid":"651c-104"}]},"651c-52":{"id":"/src/inputs/TableInput/MoneySumFooter.tsx","moduleParts":{"inputs/TableInput/MoneySumFooter.js":"651c-53"},"imported":[{"uid":"651c-108"},{"uid":"651c-123"}],"importedBy":[{"uid":"651c-104"}]},"651c-54":{"id":"/src/inputs/TableInput/StringEditCell.tsx","moduleParts":{"inputs/TableInput/StringEditCell.js":"651c-55"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-111"},{"uid":"651c-12"}],"importedBy":[{"uid":"651c-104"}]},"651c-56":{"id":"/src/inputs/TableInput/DropdownCell.tsx","moduleParts":{"inputs/TableInput/DropdownCell.js":"651c-57"},"imported":[{"uid":"651c-108"},{"uid":"651c-111"}],"importedBy":[{"uid":"651c-104"}]},"651c-58":{"id":"/src/inputs/TableInput/HoverCell.tsx","moduleParts":{"inputs/TableInput/HoverCell.js":"651c-59"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"}],"importedBy":[{"uid":"651c-104"}]},"651c-60":{"id":"/src/inputs/SinInput/SinInput.tsx","moduleParts":{"inputs/SinInput/SinInput.js":"651c-61"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-111"},{"uid":"651c-121"},{"uid":"651c-10"}],"importedBy":[{"uid":"651c-103"}]},"651c-62":{"id":"/src/money/MoneyInput/MoneyInput.tsx","moduleParts":{"money/MoneyInput/MoneyInput.js":"651c-63"},"imported":[{"uid":"651c-108"},{"uid":"651c-123"},{"uid":"651c-110"},{"uid":"651c-124"},{"uid":"651c-111"}],"importedBy":[{"uid":"651c-105"}]},"651c-64":{"id":"/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","moduleParts":{"money/MoneyCurrencyInput/MoneyCurrencyInput.js":"651c-65"},"imported":[{"uid":"651c-108"},{"uid":"651c-123"},{"uid":"651c-110"},{"uid":"651c-125"},{"uid":"651c-124"},{"uid":"651c-111"}],"importedBy":[{"uid":"651c-106"}]},"651c-66":{"id":"/src/inputs/CreditCardInput/CreditCardInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardInput.js":"651c-67"},"imported":[{"uid":"651c-108"},{"uid":"651c-109"},{"uid":"651c-110"},{"uid":"651c-119"},{"uid":"651c-120"},{"uid":"651c-111"},{"uid":"651c-94"},{"uid":"651c-84"},{"uid":"651c-82"}],"importedBy":[{"uid":"651c-102"}]},"651c-68":{"id":"/src/inputs/RadioGroup/RadioGroup.tsx","moduleParts":{"inputs/RadioGroup/RadioGroup.js":"651c-69"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-111"}],"importedBy":[{"uid":"651c-98"}]},"651c-70":{"id":"/src/inputs/Scriptel/scriptel/enums.ts","moduleParts":{"inputs/Scriptel/scriptel/enums.js":"651c-71"},"imported":[],"importedBy":[{"uid":"651c-99"},{"uid":"651c-86"}]},"651c-72":{"id":"/src/step/stepContext.ts","moduleParts":{"step/stepContext.js":"651c-73"},"imported":[{"uid":"651c-108"}],"importedBy":[{"uid":"651c-2"},{"uid":"651c-8"}]},"651c-74":{"id":"/src/date/DatePicker/styles.css","moduleParts":{"date/DatePicker/styles.css.js":"651c-75"},"imported":[{"uid":"651c-88"}],"importedBy":[{"uid":"651c-14"},{"uid":"651c-112"}]},"651c-76":{"id":"/src/inputs/Scriptel/ScriptelContext.ts","moduleParts":{"inputs/Scriptel/ScriptelContext.js":"651c-77"},"imported":[{"uid":"651c-108"}],"importedBy":[{"uid":"651c-28"},{"uid":"651c-38"}]},"651c-78":{"id":"/src/date/LocalDatePicker/MaskedDateInput.tsx","moduleParts":{"date/LocalDatePicker/MaskedDateInput.js":"651c-79"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-97"}],"importedBy":[{"uid":"651c-14"}]},"651c-80":{"id":"/src/date/LocalTimePicker/MaskedTimeInput.tsx","moduleParts":{"date/LocalTimePicker/MaskedTimeInput.js":"651c-81"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-97"}],"importedBy":[{"uid":"651c-18"}]},"651c-82":{"id":"/src/inputs/CreditCardInput/styles.css","moduleParts":{"inputs/CreditCardInput/styles.css.js":"651c-83"},"imported":[{"uid":"651c-88"}],"importedBy":[{"uid":"651c-66"}]},"651c-84":{"id":"/src/inputs/CreditCardInput/CreditCardNumberInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardNumberInput.js":"651c-85"},"imported":[{"uid":"651c-108"},{"uid":"651c-129"},{"uid":"651c-110"},{"uid":"651c-130"},{"uid":"651c-111"},{"uid":"651c-10"}],"importedBy":[{"uid":"651c-66"}]},"651c-86":{"id":"/src/inputs/Scriptel/scriptel/index.ts","moduleParts":{"inputs/Scriptel/scriptel/index.js":"651c-87"},"imported":[{"uid":"651c-110"},{"uid":"651c-128"},{"uid":"651c-70"}],"importedBy":[{"uid":"651c-28"}]},"651c-88":{"id":"/home/darkadept/dev/thx/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"651c-89"},"imported":[],"importedBy":[{"uid":"651c-74"},{"uid":"651c-82"}]},"651c-90":{"id":"/src/date/LocalDatePicker/index.ts","moduleParts":{},"imported":[{"uid":"651c-14"}],"importedBy":[{"uid":"651c-0"},{"uid":"651c-50"}]},"651c-91":{"id":"/src/date/LocalMonthSelect/index.ts","moduleParts":{},"imported":[{"uid":"651c-16"}],"importedBy":[{"uid":"651c-0"}]},"651c-92":{"id":"/src/date/LocalTimePicker/index.ts","moduleParts":{},"imported":[{"uid":"651c-18"}],"importedBy":[{"uid":"651c-0"}]},"651c-93":{"id":"/src/date/MonthDayPicker/index.ts","moduleParts":{},"imported":[{"uid":"651c-22"}],"importedBy":[{"uid":"651c-0"}]},"651c-94":{"id":"/src/date/MonthYearPicker/index.ts","moduleParts":{},"imported":[{"uid":"651c-20"}],"importedBy":[{"uid":"651c-0"},{"uid":"651c-66"}]},"651c-95":{"id":"/src/date/YearSelect/index.ts","moduleParts":{},"imported":[{"uid":"651c-36"}],"importedBy":[{"uid":"651c-0"}]},"651c-96":{"id":"/src/form/TForm/index.ts","moduleParts":{},"imported":[{"uid":"651c-24"},{"uid":"651c-26"}],"importedBy":[{"uid":"651c-0"}]},"651c-97":{"id":"/src/inputs/MaskedInput/index.ts","moduleParts":{},"imported":[{"uid":"651c-34"},{"uid":"651c-10"}],"importedBy":[{"uid":"651c-0"},{"uid":"651c-32"},{"uid":"651c-78"},{"uid":"651c-80"}]},"651c-98":{"id":"/src/inputs/RadioGroup/index.ts","moduleParts":{},"imported":[{"uid":"651c-68"}],"importedBy":[{"uid":"651c-0"}]},"651c-99":{"id":"/src/inputs/Scriptel/index.ts","moduleParts":{},"imported":[{"uid":"651c-28"},{"uid":"651c-30"},{"uid":"651c-70"}],"importedBy":[{"uid":"651c-0"}]},"651c-100":{"id":"/src/inputs/ScriptelInput/index.ts","moduleParts":{},"imported":[{"uid":"651c-38"}],"importedBy":[{"uid":"651c-0"}]},"651c-101":{"id":"/src/inputs/PhoneInput/index.ts","moduleParts":{},"imported":[{"uid":"651c-32"}],"importedBy":[{"uid":"651c-0"}]},"651c-102":{"id":"/src/inputs/CreditCardInput/index.ts","moduleParts":{},"imported":[{"uid":"651c-66"}],"importedBy":[{"uid":"651c-0"}]},"651c-103":{"id":"/src/inputs/SinInput/index.ts","moduleParts":{},"imported":[{"uid":"651c-60"}],"importedBy":[{"uid":"651c-0"}]},"651c-104":{"id":"/src/inputs/TableInput/index.ts","moduleParts":{},"imported":[{"uid":"651c-40"},{"uid":"651c-42"},{"uid":"651c-44"},{"uid":"651c-46"},{"uid":"651c-48"},{"uid":"651c-50"},{"uid":"651c-52"},{"uid":"651c-54"},{"uid":"651c-56"},{"uid":"651c-58"},{"uid":"651c-12"}],"importedBy":[{"uid":"651c-0"}]},"651c-105":{"id":"/src/money/MoneyInput/index.ts","moduleParts":{},"imported":[{"uid":"651c-62"}],"importedBy":[{"uid":"651c-0"},{"uid":"651c-44"}]},"651c-106":{"id":"/src/money/MoneyCurrencyInput/index.ts","moduleParts":{},"imported":[{"uid":"651c-64"}],"importedBy":[{"uid":"651c-0"}]},"651c-107":{"id":"/src/step/index.ts","moduleParts":{},"imported":[{"uid":"651c-4"},{"uid":"651c-2"},{"uid":"651c-6"},{"uid":"651c-8"}],"importedBy":[{"uid":"651c-0"}]},"651c-108":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-14"},{"uid":"651c-16"},{"uid":"651c-18"},{"uid":"651c-22"},{"uid":"651c-20"},{"uid":"651c-36"},{"uid":"651c-24"},{"uid":"651c-26"},{"uid":"651c-34"},{"uid":"651c-10"},{"uid":"651c-68"},{"uid":"651c-28"},{"uid":"651c-30"},{"uid":"651c-38"},{"uid":"651c-32"},{"uid":"651c-66"},{"uid":"651c-60"},{"uid":"651c-40"},{"uid":"651c-42"},{"uid":"651c-44"},{"uid":"651c-46"},{"uid":"651c-48"},{"uid":"651c-50"},{"uid":"651c-52"},{"uid":"651c-54"},{"uid":"651c-56"},{"uid":"651c-58"},{"uid":"651c-62"},{"uid":"651c-64"},{"uid":"651c-4"},{"uid":"651c-2"},{"uid":"651c-6"},{"uid":"651c-8"},{"uid":"651c-78"},{"uid":"651c-80"},{"uid":"651c-76"},{"uid":"651c-84"},{"uid":"651c-72"}],"isExternal":true},"651c-109":{"id":"@thx/date","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-14"},{"uid":"651c-18"},{"uid":"651c-22"},{"uid":"651c-20"},{"uid":"651c-66"},{"uid":"651c-46"}],"isExternal":true},"651c-110":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-14"},{"uid":"651c-16"},{"uid":"651c-18"},{"uid":"651c-22"},{"uid":"651c-20"},{"uid":"651c-36"},{"uid":"651c-24"},{"uid":"651c-34"},{"uid":"651c-10"},{"uid":"651c-68"},{"uid":"651c-28"},{"uid":"651c-38"},{"uid":"651c-32"},{"uid":"651c-66"},{"uid":"651c-60"},{"uid":"651c-40"},{"uid":"651c-44"},{"uid":"651c-48"},{"uid":"651c-50"},{"uid":"651c-54"},{"uid":"651c-58"},{"uid":"651c-62"},{"uid":"651c-64"},{"uid":"651c-4"},{"uid":"651c-6"},{"uid":"651c-8"},{"uid":"651c-78"},{"uid":"651c-80"},{"uid":"651c-86"},{"uid":"651c-84"}],"isExternal":true},"651c-111":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-14"},{"uid":"651c-16"},{"uid":"651c-22"},{"uid":"651c-20"},{"uid":"651c-36"},{"uid":"651c-26"},{"uid":"651c-34"},{"uid":"651c-68"},{"uid":"651c-38"},{"uid":"651c-66"},{"uid":"651c-60"},{"uid":"651c-40"},{"uid":"651c-48"},{"uid":"651c-54"},{"uid":"651c-56"},{"uid":"651c-62"},{"uid":"651c-64"},{"uid":"651c-8"},{"uid":"651c-84"}],"isExternal":true},"651c-112":{"id":"/src/date/DatePicker/index.ts","moduleParts":{},"imported":[{"uid":"651c-127"},{"uid":"651c-74"}],"importedBy":[{"uid":"651c-14"},{"uid":"651c-18"},{"uid":"651c-22"},{"uid":"651c-20"}]},"651c-113":{"id":"@js-joda/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-16"},{"uid":"651c-18"},{"uid":"651c-20"}],"isExternal":true},"651c-114":{"id":"formik","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-24"},{"uid":"651c-26"},{"uid":"651c-40"}],"isExternal":true},"651c-115":{"id":"flat","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-26"}],"isExternal":true},"651c-116":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-26"}],"isExternal":true},"651c-117":{"id":"inputmask","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-10"}],"isExternal":true},"651c-118":{"id":"use-deep-compare-effect","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-10"}],"isExternal":true},"651c-119":{"id":"react-credit-cards","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-66"}],"isExternal":true},"651c-120":{"id":"react-credit-cards/es/styles-compiled.css","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-66"}],"isExternal":true},"651c-121":{"id":"social-insurance-number","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-60"}],"isExternal":true},"651c-122":{"id":"react-table","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-40"}],"isExternal":true},"651c-123":{"id":"@thx/money","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-42"},{"uid":"651c-52"},{"uid":"651c-62"},{"uid":"651c-64"}],"isExternal":true},"651c-124":{"id":"react-currency-input-field","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-62"},{"uid":"651c-64"}],"isExternal":true},"651c-125":{"id":"js-money","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-64"}],"isExternal":true},"651c-126":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-8"}],"isExternal":true},"651c-127":{"id":"react-datepicker","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-112"}],"isExternal":true},"651c-128":{"id":"eventemitter3","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-86"}],"isExternal":true},"651c-129":{"id":"credit-card-type","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-84"}],"isExternal":true},"651c-130":{"id":"luhn","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-84"}],"isExternal":true}},"env":{"rollup":"2.70.1"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
2672
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"c4a5-1"}]},{"name":"step/useStep.js","children":[{"name":"src/step/useStep.ts","uid":"c4a5-3"}]},{"name":"step/Step.js","children":[{"name":"src/step/Step.tsx","uid":"c4a5-5"}]},{"name":"step/FormStep.js","children":[{"name":"src/step/FormStep.tsx","uid":"c4a5-7"}]},{"name":"step/StepProvider.js","children":[{"name":"src/step/StepProvider.tsx","uid":"c4a5-9"}]},{"name":"inputs/MaskedInput/useMaskedInput.js","children":[{"name":"src/inputs/MaskedInput/useMaskedInput.ts","uid":"c4a5-11"}]},{"name":"date/LocalDatePicker/LocalDatePicker.js","children":[{"name":"src/date/LocalDatePicker/LocalDatePicker.tsx","uid":"c4a5-13"}]},{"name":"date/LocalTimePicker/LocalTimePicker.js","children":[{"name":"src/date/LocalTimePicker/LocalTimePicker.tsx","uid":"c4a5-15"}]},{"name":"date/LocalMonthSelect/LocalMonthSelect.js","children":[{"name":"src/date/LocalMonthSelect/LocalMonthSelect.tsx","uid":"c4a5-17"}]},{"name":"date/MonthDayPicker/MonthDayPicker.js","children":[{"name":"src/date/MonthDayPicker/MonthDayPicker.tsx","uid":"c4a5-19"}]},{"name":"date/MonthYearPicker/MonthYearPicker.js","children":[{"name":"src/date/MonthYearPicker/MonthYearPicker.tsx","uid":"c4a5-21"}]},{"name":"inputs/MaskedInput/MaskedInput.js","children":[{"name":"src/inputs/MaskedInput/MaskedInput.tsx","uid":"c4a5-23"}]},{"name":"date/YearSelect/YearSelect.js","children":[{"name":"src/date/YearSelect/YearSelect.tsx","uid":"c4a5-25"}]},{"name":"form/TForm/TForm.js","children":[{"name":"src/form/TForm/TForm.tsx","uid":"c4a5-27"}]},{"name":"form/TForm/useTForm.js","children":[{"name":"src/form/TForm/useTForm.tsx","uid":"c4a5-29"}]},{"name":"inputs/TableInput/addRowOnTab.js","children":[{"name":"src/inputs/TableInput/addRowOnTab.ts","uid":"c4a5-31"}]},{"name":"inputs/RadioGroup/RadioGroup.js","children":[{"name":"src/inputs/RadioGroup/RadioGroup.tsx","uid":"c4a5-33"}]},{"name":"inputs/Scriptel/Scriptel.js","children":[{"name":"src/inputs/Scriptel/Scriptel.tsx","uid":"c4a5-35"}]},{"name":"inputs/Scriptel/withScriptel.js","children":[{"name":"src/inputs/Scriptel/withScriptel.tsx","uid":"c4a5-37"}]},{"name":"inputs/TableInput/TableInput.js","children":[{"name":"src/inputs/TableInput/TableInput.tsx","uid":"c4a5-39"}]},{"name":"inputs/TableInput/MoneyCell.js","children":[{"name":"src/inputs/TableInput/MoneyCell.tsx","uid":"c4a5-41"}]},{"name":"inputs/TableInput/MoneyEditCell.js","children":[{"name":"src/inputs/TableInput/MoneyEditCell.tsx","uid":"c4a5-43"}]},{"name":"inputs/TableInput/LocalDateCell.js","children":[{"name":"src/inputs/TableInput/LocalDateCell.tsx","uid":"c4a5-45"}]},{"name":"inputs/TableInput/LocalDateEditCell.js","children":[{"name":"src/inputs/TableInput/LocalDateEditCell.tsx","uid":"c4a5-47"}]},{"name":"inputs/TableInput/CheckboxEditCell.js","children":[{"name":"src/inputs/TableInput/CheckboxEditCell.tsx","uid":"c4a5-49"}]},{"name":"inputs/TableInput/MoneySumFooter.js","children":[{"name":"src/inputs/TableInput/MoneySumFooter.tsx","uid":"c4a5-51"}]},{"name":"inputs/TableInput/StringEditCell.js","children":[{"name":"src/inputs/TableInput/StringEditCell.tsx","uid":"c4a5-53"}]},{"name":"inputs/TableInput/DropdownCell.js","children":[{"name":"src/inputs/TableInput/DropdownCell.tsx","uid":"c4a5-55"}]},{"name":"inputs/TableInput/HoverCell.js","children":[{"name":"src/inputs/TableInput/HoverCell.tsx","uid":"c4a5-57"}]},{"name":"inputs/PhoneInput/PhoneInput.js","children":[{"name":"src/inputs/PhoneInput/PhoneInput.tsx","uid":"c4a5-59"}]},{"name":"inputs/ScriptelInput/ScriptelInput.js","children":[{"name":"src/inputs/ScriptelInput/ScriptelInput.tsx","uid":"c4a5-61"}]},{"name":"inputs/CreditCardInput/CreditCardInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardInput.tsx","uid":"c4a5-63"}]},{"name":"money/MoneyCurrencyInput/MoneyCurrencyInput.js","children":[{"name":"src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","uid":"c4a5-65"}]},{"name":"inputs/SinInput/SinInput.js","children":[{"name":"src/inputs/SinInput/SinInput.tsx","uid":"c4a5-67"}]},{"name":"money/MoneyInput/MoneyInput.js","children":[{"name":"src/money/MoneyInput/MoneyInput.tsx","uid":"c4a5-69"}]},{"name":"inputs/Scriptel/scriptel/enums.js","children":[{"name":"src/inputs/Scriptel/scriptel/enums.ts","uid":"c4a5-71"}]},{"name":"step/stepContext.js","children":[{"name":"src/step/stepContext.ts","uid":"c4a5-73"}]},{"name":"date/DatePicker/styles.css.js","children":[{"name":"src/date/DatePicker/styles.css","uid":"c4a5-75"}]},{"name":"date/LocalTimePicker/MaskedTimeInput.js","children":[{"name":"src/date/LocalTimePicker/MaskedTimeInput.tsx","uid":"c4a5-77"}]},{"name":"date/LocalDatePicker/MaskedDateInput.js","children":[{"name":"src/date/LocalDatePicker/MaskedDateInput.tsx","uid":"c4a5-79"}]},{"name":"inputs/Scriptel/ScriptelContext.js","children":[{"name":"src/inputs/Scriptel/ScriptelContext.ts","uid":"c4a5-81"}]},{"name":"inputs/CreditCardInput/styles.css.js","children":[{"name":"src/inputs/CreditCardInput/styles.css","uid":"c4a5-83"}]},{"name":"money/useMoneyInput.js","children":[{"name":"src/money/useMoneyInput.ts","uid":"c4a5-85"}]},{"name":"inputs/CreditCardInput/CreditCardNumberInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardNumberInput.tsx","uid":"c4a5-87"}]},{"name":"inputs/Scriptel/scriptel/index.js","children":[{"name":"src/inputs/Scriptel/scriptel/index.ts","uid":"c4a5-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":"c4a5-91"}]}],"isRoot":true},"nodeParts":{"c4a5-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"c4a5-0"},"c4a5-3":{"renderedLength":113,"gzipLength":106,"brotliLength":82,"mainUid":"c4a5-2"},"c4a5-5":{"renderedLength":203,"gzipLength":157,"brotliLength":111,"mainUid":"c4a5-4"},"c4a5-7":{"renderedLength":440,"gzipLength":270,"brotliLength":214,"mainUid":"c4a5-6"},"c4a5-9":{"renderedLength":3529,"gzipLength":1021,"brotliLength":861,"mainUid":"c4a5-8"},"c4a5-11":{"renderedLength":1487,"gzipLength":502,"brotliLength":423,"mainUid":"c4a5-10"},"c4a5-13":{"renderedLength":2882,"gzipLength":891,"brotliLength":787,"mainUid":"c4a5-12"},"c4a5-15":{"renderedLength":1205,"gzipLength":488,"brotliLength":402,"mainUid":"c4a5-14"},"c4a5-17":{"renderedLength":1135,"gzipLength":503,"brotliLength":415,"mainUid":"c4a5-16"},"c4a5-19":{"renderedLength":1965,"gzipLength":657,"brotliLength":544,"mainUid":"c4a5-18"},"c4a5-21":{"renderedLength":1229,"gzipLength":491,"brotliLength":424,"mainUid":"c4a5-20"},"c4a5-23":{"renderedLength":390,"gzipLength":237,"brotliLength":203,"mainUid":"c4a5-22"},"c4a5-25":{"renderedLength":1553,"gzipLength":580,"brotliLength":461,"mainUid":"c4a5-24"},"c4a5-27":{"renderedLength":600,"gzipLength":307,"brotliLength":267,"mainUid":"c4a5-26"},"c4a5-29":{"renderedLength":2930,"gzipLength":959,"brotliLength":816,"mainUid":"c4a5-28"},"c4a5-31":{"renderedLength":312,"gzipLength":199,"brotliLength":173,"mainUid":"c4a5-30"},"c4a5-33":{"renderedLength":561,"gzipLength":301,"brotliLength":259,"mainUid":"c4a5-32"},"c4a5-35":{"renderedLength":1275,"gzipLength":476,"brotliLength":406,"mainUid":"c4a5-34"},"c4a5-37":{"renderedLength":275,"gzipLength":163,"brotliLength":130,"mainUid":"c4a5-36"},"c4a5-39":{"renderedLength":2788,"gzipLength":828,"brotliLength":734,"mainUid":"c4a5-38"},"c4a5-41":{"renderedLength":257,"gzipLength":187,"brotliLength":149,"mainUid":"c4a5-40"},"c4a5-43":{"renderedLength":708,"gzipLength":368,"brotliLength":313,"mainUid":"c4a5-42"},"c4a5-45":{"renderedLength":264,"gzipLength":191,"brotliLength":154,"mainUid":"c4a5-44"},"c4a5-47":{"renderedLength":695,"gzipLength":350,"brotliLength":295,"mainUid":"c4a5-46"},"c4a5-49":{"renderedLength":702,"gzipLength":367,"brotliLength":330,"mainUid":"c4a5-48"},"c4a5-51":{"renderedLength":414,"gzipLength":261,"brotliLength":219,"mainUid":"c4a5-50"},"c4a5-53":{"renderedLength":717,"gzipLength":369,"brotliLength":319,"mainUid":"c4a5-52"},"c4a5-55":{"renderedLength":493,"gzipLength":255,"brotliLength":211,"mainUid":"c4a5-54"},"c4a5-57":{"renderedLength":403,"gzipLength":245,"brotliLength":195,"mainUid":"c4a5-56"},"c4a5-59":{"renderedLength":381,"gzipLength":248,"brotliLength":218,"mainUid":"c4a5-58"},"c4a5-61":{"renderedLength":1963,"gzipLength":648,"brotliLength":547,"mainUid":"c4a5-60"},"c4a5-63":{"renderedLength":2324,"gzipLength":586,"brotliLength":495,"mainUid":"c4a5-62"},"c4a5-65":{"renderedLength":1575,"gzipLength":642,"brotliLength":536,"mainUid":"c4a5-64"},"c4a5-67":{"renderedLength":1144,"gzipLength":530,"brotliLength":462,"mainUid":"c4a5-66"},"c4a5-69":{"renderedLength":778,"gzipLength":392,"brotliLength":329,"mainUid":"c4a5-68"},"c4a5-71":{"renderedLength":937,"gzipLength":292,"brotliLength":231,"mainUid":"c4a5-70"},"c4a5-73":{"renderedLength":80,"gzipLength":90,"brotliLength":72,"mainUid":"c4a5-72"},"c4a5-75":{"renderedLength":538,"gzipLength":263,"brotliLength":211,"mainUid":"c4a5-74"},"c4a5-77":{"renderedLength":446,"gzipLength":290,"brotliLength":241,"mainUid":"c4a5-76"},"c4a5-79":{"renderedLength":464,"gzipLength":299,"brotliLength":256,"mainUid":"c4a5-78"},"c4a5-81":{"renderedLength":46,"gzipLength":60,"brotliLength":45,"mainUid":"c4a5-80"},"c4a5-83":{"renderedLength":78,"gzipLength":92,"brotliLength":79,"mainUid":"c4a5-82"},"c4a5-85":{"renderedLength":2089,"gzipLength":749,"brotliLength":637,"mainUid":"c4a5-84"},"c4a5-87":{"renderedLength":1713,"gzipLength":687,"brotliLength":585,"mainUid":"c4a5-86"},"c4a5-89":{"renderedLength":2530,"gzipLength":860,"brotliLength":739,"mainUid":"c4a5-88"},"c4a5-91":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"c4a5-90"}},"nodeMetas":{"c4a5-0":{"id":"/src/index.ts","moduleParts":{"index.js":"c4a5-1"},"imported":[{"uid":"c4a5-92"},{"uid":"c4a5-93"},{"uid":"c4a5-94"},{"uid":"c4a5-95"},{"uid":"c4a5-96"},{"uid":"c4a5-97"},{"uid":"c4a5-98"},{"uid":"c4a5-99"},{"uid":"c4a5-100"},{"uid":"c4a5-101"},{"uid":"c4a5-102"},{"uid":"c4a5-103"},{"uid":"c4a5-104"},{"uid":"c4a5-105"},{"uid":"c4a5-106"},{"uid":"c4a5-107"},{"uid":"c4a5-108"},{"uid":"c4a5-109"}],"importedBy":[],"isEntry":true},"c4a5-2":{"id":"/src/step/useStep.ts","moduleParts":{"step/useStep.js":"c4a5-3"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-72"}],"importedBy":[{"uid":"c4a5-109"},{"uid":"c4a5-6"}]},"c4a5-4":{"id":"/src/step/Step.tsx","moduleParts":{"step/Step.js":"c4a5-5"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"}],"importedBy":[{"uid":"c4a5-109"},{"uid":"c4a5-8"}]},"c4a5-6":{"id":"/src/step/FormStep.tsx","moduleParts":{"step/FormStep.js":"c4a5-7"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"},{"uid":"c4a5-2"}],"importedBy":[{"uid":"c4a5-109"},{"uid":"c4a5-8"}]},"c4a5-8":{"id":"/src/step/StepProvider.tsx","moduleParts":{"step/StepProvider.js":"c4a5-9"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"},{"uid":"c4a5-127"},{"uid":"c4a5-113"},{"uid":"c4a5-6"},{"uid":"c4a5-4"},{"uid":"c4a5-72"}],"importedBy":[{"uid":"c4a5-109"}]},"c4a5-10":{"id":"/src/inputs/MaskedInput/useMaskedInput.ts","moduleParts":{"inputs/MaskedInput/useMaskedInput.js":"c4a5-11"},"imported":[{"uid":"c4a5-112"},{"uid":"c4a5-119"},{"uid":"c4a5-110"},{"uid":"c4a5-120"}],"importedBy":[{"uid":"c4a5-99"},{"uid":"c4a5-22"},{"uid":"c4a5-66"},{"uid":"c4a5-86"}]},"c4a5-12":{"id":"/src/date/LocalDatePicker/LocalDatePicker.tsx","moduleParts":{"date/LocalDatePicker/LocalDatePicker.js":"c4a5-13"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-111"},{"uid":"c4a5-112"},{"uid":"c4a5-113"},{"uid":"c4a5-114"},{"uid":"c4a5-74"},{"uid":"c4a5-78"}],"importedBy":[{"uid":"c4a5-92"}]},"c4a5-14":{"id":"/src/date/LocalTimePicker/LocalTimePicker.tsx","moduleParts":{"date/LocalTimePicker/LocalTimePicker.js":"c4a5-15"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-115"},{"uid":"c4a5-111"},{"uid":"c4a5-112"},{"uid":"c4a5-114"},{"uid":"c4a5-76"}],"importedBy":[{"uid":"c4a5-94"}]},"c4a5-16":{"id":"/src/date/LocalMonthSelect/LocalMonthSelect.tsx","moduleParts":{"date/LocalMonthSelect/LocalMonthSelect.js":"c4a5-17"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-115"},{"uid":"c4a5-112"},{"uid":"c4a5-113"}],"importedBy":[{"uid":"c4a5-93"}]},"c4a5-18":{"id":"/src/date/MonthDayPicker/MonthDayPicker.tsx","moduleParts":{"date/MonthDayPicker/MonthDayPicker.js":"c4a5-19"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-111"},{"uid":"c4a5-112"},{"uid":"c4a5-113"},{"uid":"c4a5-114"}],"importedBy":[{"uid":"c4a5-95"}]},"c4a5-20":{"id":"/src/date/MonthYearPicker/MonthYearPicker.tsx","moduleParts":{"date/MonthYearPicker/MonthYearPicker.js":"c4a5-21"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-115"},{"uid":"c4a5-111"},{"uid":"c4a5-112"},{"uid":"c4a5-113"},{"uid":"c4a5-114"}],"importedBy":[{"uid":"c4a5-96"}]},"c4a5-22":{"id":"/src/inputs/MaskedInput/MaskedInput.tsx","moduleParts":{"inputs/MaskedInput/MaskedInput.js":"c4a5-23"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"},{"uid":"c4a5-113"},{"uid":"c4a5-10"}],"importedBy":[{"uid":"c4a5-99"}]},"c4a5-24":{"id":"/src/date/YearSelect/YearSelect.tsx","moduleParts":{"date/YearSelect/YearSelect.js":"c4a5-25"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"},{"uid":"c4a5-113"}],"importedBy":[{"uid":"c4a5-97"}]},"c4a5-26":{"id":"/src/form/TForm/TForm.tsx","moduleParts":{"form/TForm/TForm.js":"c4a5-27"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"},{"uid":"c4a5-116"},{"uid":"c4a5-28"}],"importedBy":[{"uid":"c4a5-98"}]},"c4a5-28":{"id":"/src/form/TForm/useTForm.tsx","moduleParts":{"form/TForm/useTForm.js":"c4a5-29"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-117"},{"uid":"c4a5-116"},{"uid":"c4a5-118"},{"uid":"c4a5-113"}],"importedBy":[{"uid":"c4a5-98"},{"uid":"c4a5-26"}]},"c4a5-30":{"id":"/src/inputs/TableInput/addRowOnTab.ts","moduleParts":{"inputs/TableInput/addRowOnTab.js":"c4a5-31"},"imported":[],"importedBy":[{"uid":"c4a5-106"},{"uid":"c4a5-42"},{"uid":"c4a5-48"},{"uid":"c4a5-52"}]},"c4a5-32":{"id":"/src/inputs/RadioGroup/RadioGroup.tsx","moduleParts":{"inputs/RadioGroup/RadioGroup.js":"c4a5-33"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"},{"uid":"c4a5-113"}],"importedBy":[{"uid":"c4a5-100"}]},"c4a5-34":{"id":"/src/inputs/Scriptel/Scriptel.tsx","moduleParts":{"inputs/Scriptel/Scriptel.js":"c4a5-35"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"},{"uid":"c4a5-80"},{"uid":"c4a5-88"}],"importedBy":[{"uid":"c4a5-101"},{"uid":"c4a5-36"}]},"c4a5-36":{"id":"/src/inputs/Scriptel/withScriptel.tsx","moduleParts":{"inputs/Scriptel/withScriptel.js":"c4a5-37"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-34"}],"importedBy":[{"uid":"c4a5-101"}]},"c4a5-38":{"id":"/src/inputs/TableInput/TableInput.tsx","moduleParts":{"inputs/TableInput/TableInput.js":"c4a5-39"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"},{"uid":"c4a5-116"},{"uid":"c4a5-124"},{"uid":"c4a5-113"}],"importedBy":[{"uid":"c4a5-106"}]},"c4a5-40":{"id":"/src/inputs/TableInput/MoneyCell.tsx","moduleParts":{"inputs/TableInput/MoneyCell.js":"c4a5-41"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-125"}],"importedBy":[{"uid":"c4a5-106"}]},"c4a5-42":{"id":"/src/inputs/TableInput/MoneyEditCell.tsx","moduleParts":{"inputs/TableInput/MoneyEditCell.js":"c4a5-43"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"},{"uid":"c4a5-107"},{"uid":"c4a5-30"}],"importedBy":[{"uid":"c4a5-106"}]},"c4a5-44":{"id":"/src/inputs/TableInput/LocalDateCell.tsx","moduleParts":{"inputs/TableInput/LocalDateCell.js":"c4a5-45"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-111"}],"importedBy":[{"uid":"c4a5-106"}]},"c4a5-46":{"id":"/src/inputs/TableInput/LocalDateEditCell.tsx","moduleParts":{"inputs/TableInput/LocalDateEditCell.js":"c4a5-47"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"},{"uid":"c4a5-92"}],"importedBy":[{"uid":"c4a5-106"}]},"c4a5-48":{"id":"/src/inputs/TableInput/CheckboxEditCell.tsx","moduleParts":{"inputs/TableInput/CheckboxEditCell.js":"c4a5-49"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"},{"uid":"c4a5-113"},{"uid":"c4a5-30"}],"importedBy":[{"uid":"c4a5-106"}]},"c4a5-50":{"id":"/src/inputs/TableInput/MoneySumFooter.tsx","moduleParts":{"inputs/TableInput/MoneySumFooter.js":"c4a5-51"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-125"}],"importedBy":[{"uid":"c4a5-106"}]},"c4a5-52":{"id":"/src/inputs/TableInput/StringEditCell.tsx","moduleParts":{"inputs/TableInput/StringEditCell.js":"c4a5-53"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"},{"uid":"c4a5-113"},{"uid":"c4a5-30"}],"importedBy":[{"uid":"c4a5-106"}]},"c4a5-54":{"id":"/src/inputs/TableInput/DropdownCell.tsx","moduleParts":{"inputs/TableInput/DropdownCell.js":"c4a5-55"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-113"}],"importedBy":[{"uid":"c4a5-106"}]},"c4a5-56":{"id":"/src/inputs/TableInput/HoverCell.tsx","moduleParts":{"inputs/TableInput/HoverCell.js":"c4a5-57"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"}],"importedBy":[{"uid":"c4a5-106"}]},"c4a5-58":{"id":"/src/inputs/PhoneInput/PhoneInput.tsx","moduleParts":{"inputs/PhoneInput/PhoneInput.js":"c4a5-59"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"},{"uid":"c4a5-99"}],"importedBy":[{"uid":"c4a5-103"}]},"c4a5-60":{"id":"/src/inputs/ScriptelInput/ScriptelInput.tsx","moduleParts":{"inputs/ScriptelInput/ScriptelInput.js":"c4a5-61"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"},{"uid":"c4a5-113"},{"uid":"c4a5-80"}],"importedBy":[{"uid":"c4a5-102"}]},"c4a5-62":{"id":"/src/inputs/CreditCardInput/CreditCardInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardInput.js":"c4a5-63"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-111"},{"uid":"c4a5-112"},{"uid":"c4a5-121"},{"uid":"c4a5-122"},{"uid":"c4a5-113"},{"uid":"c4a5-96"},{"uid":"c4a5-86"},{"uid":"c4a5-82"}],"importedBy":[{"uid":"c4a5-104"}]},"c4a5-64":{"id":"/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","moduleParts":{"money/MoneyCurrencyInput/MoneyCurrencyInput.js":"c4a5-65"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-125"},{"uid":"c4a5-112"},{"uid":"c4a5-126"},{"uid":"c4a5-113"},{"uid":"c4a5-84"}],"importedBy":[{"uid":"c4a5-108"}]},"c4a5-66":{"id":"/src/inputs/SinInput/SinInput.tsx","moduleParts":{"inputs/SinInput/SinInput.js":"c4a5-67"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"},{"uid":"c4a5-113"},{"uid":"c4a5-123"},{"uid":"c4a5-10"}],"importedBy":[{"uid":"c4a5-105"}]},"c4a5-68":{"id":"/src/money/MoneyInput/MoneyInput.tsx","moduleParts":{"money/MoneyInput/MoneyInput.js":"c4a5-69"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-125"},{"uid":"c4a5-112"},{"uid":"c4a5-126"},{"uid":"c4a5-113"},{"uid":"c4a5-84"}],"importedBy":[{"uid":"c4a5-107"}]},"c4a5-70":{"id":"/src/inputs/Scriptel/scriptel/enums.ts","moduleParts":{"inputs/Scriptel/scriptel/enums.js":"c4a5-71"},"imported":[],"importedBy":[{"uid":"c4a5-101"},{"uid":"c4a5-88"}]},"c4a5-72":{"id":"/src/step/stepContext.ts","moduleParts":{"step/stepContext.js":"c4a5-73"},"imported":[{"uid":"c4a5-110"}],"importedBy":[{"uid":"c4a5-2"},{"uid":"c4a5-8"}]},"c4a5-74":{"id":"/src/date/DatePicker/styles.css","moduleParts":{"date/DatePicker/styles.css.js":"c4a5-75"},"imported":[{"uid":"c4a5-90"}],"importedBy":[{"uid":"c4a5-12"},{"uid":"c4a5-114"}]},"c4a5-76":{"id":"/src/date/LocalTimePicker/MaskedTimeInput.tsx","moduleParts":{"date/LocalTimePicker/MaskedTimeInput.js":"c4a5-77"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"},{"uid":"c4a5-99"}],"importedBy":[{"uid":"c4a5-14"}]},"c4a5-78":{"id":"/src/date/LocalDatePicker/MaskedDateInput.tsx","moduleParts":{"date/LocalDatePicker/MaskedDateInput.js":"c4a5-79"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-112"},{"uid":"c4a5-99"}],"importedBy":[{"uid":"c4a5-12"}]},"c4a5-80":{"id":"/src/inputs/Scriptel/ScriptelContext.ts","moduleParts":{"inputs/Scriptel/ScriptelContext.js":"c4a5-81"},"imported":[{"uid":"c4a5-110"}],"importedBy":[{"uid":"c4a5-34"},{"uid":"c4a5-60"}]},"c4a5-82":{"id":"/src/inputs/CreditCardInput/styles.css","moduleParts":{"inputs/CreditCardInput/styles.css.js":"c4a5-83"},"imported":[{"uid":"c4a5-90"}],"importedBy":[{"uid":"c4a5-62"}]},"c4a5-84":{"id":"/src/money/useMoneyInput.ts","moduleParts":{"money/useMoneyInput.js":"c4a5-85"},"imported":[{"uid":"c4a5-125"},{"uid":"c4a5-112"},{"uid":"c4a5-119"},{"uid":"c4a5-126"},{"uid":"c4a5-110"}],"importedBy":[{"uid":"c4a5-68"},{"uid":"c4a5-64"}]},"c4a5-86":{"id":"/src/inputs/CreditCardInput/CreditCardNumberInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardNumberInput.js":"c4a5-87"},"imported":[{"uid":"c4a5-110"},{"uid":"c4a5-130"},{"uid":"c4a5-112"},{"uid":"c4a5-131"},{"uid":"c4a5-113"},{"uid":"c4a5-10"}],"importedBy":[{"uid":"c4a5-62"}]},"c4a5-88":{"id":"/src/inputs/Scriptel/scriptel/index.ts","moduleParts":{"inputs/Scriptel/scriptel/index.js":"c4a5-89"},"imported":[{"uid":"c4a5-112"},{"uid":"c4a5-129"},{"uid":"c4a5-70"}],"importedBy":[{"uid":"c4a5-34"}]},"c4a5-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":"c4a5-91"},"imported":[],"importedBy":[{"uid":"c4a5-74"},{"uid":"c4a5-82"}]},"c4a5-92":{"id":"/src/date/LocalDatePicker/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-12"}],"importedBy":[{"uid":"c4a5-0"},{"uid":"c4a5-46"}]},"c4a5-93":{"id":"/src/date/LocalMonthSelect/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-16"}],"importedBy":[{"uid":"c4a5-0"}]},"c4a5-94":{"id":"/src/date/LocalTimePicker/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-14"}],"importedBy":[{"uid":"c4a5-0"}]},"c4a5-95":{"id":"/src/date/MonthDayPicker/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-18"}],"importedBy":[{"uid":"c4a5-0"}]},"c4a5-96":{"id":"/src/date/MonthYearPicker/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-20"}],"importedBy":[{"uid":"c4a5-0"},{"uid":"c4a5-62"}]},"c4a5-97":{"id":"/src/date/YearSelect/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-24"}],"importedBy":[{"uid":"c4a5-0"}]},"c4a5-98":{"id":"/src/form/TForm/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-26"},{"uid":"c4a5-28"}],"importedBy":[{"uid":"c4a5-0"}]},"c4a5-99":{"id":"/src/inputs/MaskedInput/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-22"},{"uid":"c4a5-10"}],"importedBy":[{"uid":"c4a5-0"},{"uid":"c4a5-58"},{"uid":"c4a5-78"},{"uid":"c4a5-76"}]},"c4a5-100":{"id":"/src/inputs/RadioGroup/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-32"}],"importedBy":[{"uid":"c4a5-0"}]},"c4a5-101":{"id":"/src/inputs/Scriptel/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-34"},{"uid":"c4a5-36"},{"uid":"c4a5-70"}],"importedBy":[{"uid":"c4a5-0"}]},"c4a5-102":{"id":"/src/inputs/ScriptelInput/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-60"}],"importedBy":[{"uid":"c4a5-0"}]},"c4a5-103":{"id":"/src/inputs/PhoneInput/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-58"}],"importedBy":[{"uid":"c4a5-0"}]},"c4a5-104":{"id":"/src/inputs/CreditCardInput/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-62"}],"importedBy":[{"uid":"c4a5-0"}]},"c4a5-105":{"id":"/src/inputs/SinInput/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-66"}],"importedBy":[{"uid":"c4a5-0"}]},"c4a5-106":{"id":"/src/inputs/TableInput/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-38"},{"uid":"c4a5-40"},{"uid":"c4a5-42"},{"uid":"c4a5-44"},{"uid":"c4a5-48"},{"uid":"c4a5-46"},{"uid":"c4a5-50"},{"uid":"c4a5-52"},{"uid":"c4a5-54"},{"uid":"c4a5-56"},{"uid":"c4a5-30"}],"importedBy":[{"uid":"c4a5-0"}]},"c4a5-107":{"id":"/src/money/MoneyInput/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-68"}],"importedBy":[{"uid":"c4a5-0"},{"uid":"c4a5-42"}]},"c4a5-108":{"id":"/src/money/MoneyCurrencyInput/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-64"}],"importedBy":[{"uid":"c4a5-0"}]},"c4a5-109":{"id":"/src/step/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-4"},{"uid":"c4a5-2"},{"uid":"c4a5-6"},{"uid":"c4a5-8"}],"importedBy":[{"uid":"c4a5-0"}]},"c4a5-110":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-12"},{"uid":"c4a5-16"},{"uid":"c4a5-14"},{"uid":"c4a5-18"},{"uid":"c4a5-20"},{"uid":"c4a5-24"},{"uid":"c4a5-26"},{"uid":"c4a5-28"},{"uid":"c4a5-22"},{"uid":"c4a5-10"},{"uid":"c4a5-32"},{"uid":"c4a5-34"},{"uid":"c4a5-36"},{"uid":"c4a5-60"},{"uid":"c4a5-58"},{"uid":"c4a5-62"},{"uid":"c4a5-66"},{"uid":"c4a5-38"},{"uid":"c4a5-40"},{"uid":"c4a5-42"},{"uid":"c4a5-44"},{"uid":"c4a5-48"},{"uid":"c4a5-46"},{"uid":"c4a5-50"},{"uid":"c4a5-52"},{"uid":"c4a5-54"},{"uid":"c4a5-56"},{"uid":"c4a5-68"},{"uid":"c4a5-64"},{"uid":"c4a5-4"},{"uid":"c4a5-2"},{"uid":"c4a5-6"},{"uid":"c4a5-8"},{"uid":"c4a5-78"},{"uid":"c4a5-76"},{"uid":"c4a5-80"},{"uid":"c4a5-86"},{"uid":"c4a5-84"},{"uid":"c4a5-72"}],"isExternal":true},"c4a5-111":{"id":"@thx/date","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-12"},{"uid":"c4a5-14"},{"uid":"c4a5-18"},{"uid":"c4a5-20"},{"uid":"c4a5-62"},{"uid":"c4a5-44"}],"isExternal":true},"c4a5-112":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-12"},{"uid":"c4a5-16"},{"uid":"c4a5-14"},{"uid":"c4a5-18"},{"uid":"c4a5-20"},{"uid":"c4a5-24"},{"uid":"c4a5-26"},{"uid":"c4a5-22"},{"uid":"c4a5-10"},{"uid":"c4a5-32"},{"uid":"c4a5-34"},{"uid":"c4a5-60"},{"uid":"c4a5-58"},{"uid":"c4a5-62"},{"uid":"c4a5-66"},{"uid":"c4a5-38"},{"uid":"c4a5-42"},{"uid":"c4a5-48"},{"uid":"c4a5-46"},{"uid":"c4a5-52"},{"uid":"c4a5-56"},{"uid":"c4a5-68"},{"uid":"c4a5-64"},{"uid":"c4a5-4"},{"uid":"c4a5-6"},{"uid":"c4a5-8"},{"uid":"c4a5-78"},{"uid":"c4a5-76"},{"uid":"c4a5-88"},{"uid":"c4a5-86"},{"uid":"c4a5-84"}],"isExternal":true},"c4a5-113":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-12"},{"uid":"c4a5-16"},{"uid":"c4a5-18"},{"uid":"c4a5-20"},{"uid":"c4a5-24"},{"uid":"c4a5-28"},{"uid":"c4a5-22"},{"uid":"c4a5-32"},{"uid":"c4a5-60"},{"uid":"c4a5-62"},{"uid":"c4a5-66"},{"uid":"c4a5-38"},{"uid":"c4a5-48"},{"uid":"c4a5-52"},{"uid":"c4a5-54"},{"uid":"c4a5-68"},{"uid":"c4a5-64"},{"uid":"c4a5-8"},{"uid":"c4a5-86"}],"isExternal":true},"c4a5-114":{"id":"/src/date/DatePicker/index.ts","moduleParts":{},"imported":[{"uid":"c4a5-128"},{"uid":"c4a5-74"}],"importedBy":[{"uid":"c4a5-12"},{"uid":"c4a5-14"},{"uid":"c4a5-18"},{"uid":"c4a5-20"}]},"c4a5-115":{"id":"@js-joda/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-16"},{"uid":"c4a5-14"},{"uid":"c4a5-20"}],"isExternal":true},"c4a5-116":{"id":"formik","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-26"},{"uid":"c4a5-28"},{"uid":"c4a5-38"}],"isExternal":true},"c4a5-117":{"id":"flat","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-28"}],"isExternal":true},"c4a5-118":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-28"}],"isExternal":true},"c4a5-119":{"id":"inputmask","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-10"},{"uid":"c4a5-84"}],"isExternal":true},"c4a5-120":{"id":"use-deep-compare-effect","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-10"}],"isExternal":true},"c4a5-121":{"id":"react-credit-cards","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-62"}],"isExternal":true},"c4a5-122":{"id":"react-credit-cards/es/styles-compiled.css","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-62"}],"isExternal":true},"c4a5-123":{"id":"social-insurance-number","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-66"}],"isExternal":true},"c4a5-124":{"id":"react-table","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-38"}],"isExternal":true},"c4a5-125":{"id":"@thx/money","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-40"},{"uid":"c4a5-50"},{"uid":"c4a5-68"},{"uid":"c4a5-64"},{"uid":"c4a5-84"}],"isExternal":true},"c4a5-126":{"id":"js-money","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-68"},{"uid":"c4a5-64"},{"uid":"c4a5-84"}],"isExternal":true},"c4a5-127":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-8"}],"isExternal":true},"c4a5-128":{"id":"react-datepicker","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-114"}],"isExternal":true},"c4a5-129":{"id":"eventemitter3","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-88"}],"isExternal":true},"c4a5-130":{"id":"credit-card-type","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-86"}],"isExternal":true},"c4a5-131":{"id":"luhn","moduleParts":{},"imported":[],"importedBy":[{"uid":"c4a5-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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CheckboxProps } from 'semantic-ui-react';
2
3
  import type { TableCellProps } from './TableInput';
3
4
  import type { AddRowOnTabIf } from './addRowOnTab';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { LocalDate } from '@js-joda/core';
2
3
  import type { CellProps } from 'react-table';
3
4
  interface LocalDateCellOptions<D extends Record<string, unknown>> {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { LocalDate } from '@js-joda/core';
2
3
  import type { TableCellProps } from './TableInput';
3
4
  export declare function LocalDateEditCell<D extends Record<string, unknown>>(): (props: TableCellProps<D, LocalDate | null>) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type Money from 'js-money';
2
3
  import type { TableCellProps } from './TableInput';
3
4
  import type { AddRowOnTabIf } from './addRowOnTab';
@@ -7,6 +7,5 @@ export interface MoneyCurrencyInputProps extends MoneyInputProps {
7
7
  value: string;
8
8
  text: string;
9
9
  }[];
10
- lockCurrency?: boolean;
11
10
  }
12
11
  export declare function MoneyCurrencyInput(props: MoneyCurrencyInputProps & Omit<InputProps, 'onChange'>): JSX.Element;
@@ -1,11 +1,10 @@
1
1
  /// <reference types="react" />
2
- import type { Currency } from 'js-money';
3
- import type Money from 'js-money';
2
+ import Money, { Currency, MoneyObject } from 'js-money';
4
3
  import { InputProps } from 'semantic-ui-react';
5
4
  export interface MoneyInputProps {
6
5
  name?: string;
7
- onChange?: (value?: Money) => void;
8
- value?: Money | undefined;
6
+ onChange?: (value: Money) => void;
7
+ value?: Money | MoneyObject;
9
8
  defaultCurrency?: Currency;
10
9
  onBlur?: (ev: any) => void;
11
10
  prefix?: string;
@@ -0,0 +1,13 @@
1
+ import Money from 'js-money';
2
+ import { MutableRefObject } from 'react';
3
+ interface UseMoneyInputProps {
4
+ value?: Money;
5
+ onChange?: (value?: Money) => void;
6
+ onSet?: (value?: Money) => void;
7
+ prefix?: string;
8
+ showPrefix?: boolean;
9
+ wholeNumber?: boolean;
10
+ }
11
+ declare type SetValueFn = (value?: Money) => void;
12
+ export declare function useMoneyInput(props: UseMoneyInputProps): [MutableRefObject<HTMLInputElement | null>, SetValueFn];
13
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thx/controls",
3
- "version": "16.8.4",
3
+ "version": "16.8.5-alpha.0+dfc3dda",
4
4
  "description": "A collection of components designed with SemanticUI.",
5
5
  "bugs": {
6
6
  "url": "https://github.com/thr-consulting/thr-addons/issues"
@@ -46,7 +46,6 @@
46
46
  "lodash-es": "^4.17.15",
47
47
  "luhn": "^2.4.1",
48
48
  "react-credit-cards": "^0.8.3",
49
- "react-currency-input-field": "^3.6.14",
50
49
  "react-datepicker": "^4.25.0",
51
50
  "react-table": "^7.6.3",
52
51
  "social-insurance-number": "^0.2.2",
@@ -65,5 +64,5 @@
65
64
  "publishConfig": {
66
65
  "access": "public"
67
66
  },
68
- "gitHead": "913bd90c7d7ff3a78bf2173d8344771fa85f1e6b"
67
+ "gitHead": "dfc3dda9908e4cee3dfca33ec0fdc67ac2fbd8ce"
69
68
  }
package/dist/stats.txt DELETED
@@ -1,98 +0,0 @@
1
- -----------------------------
2
- Rollup File Analysis
3
- -----------------------------
4
- bundle size: 45.068 KB
5
- original size: 65.321 KB
6
- code reduction: 31.01 %
7
- module count: 45
8
-
9
- /src/step/StepProvider.tsx
10
- ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.83 % (3.529 KB)
11
- /src/form/TForm/useTForm.tsx
12
- ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.5 % (2.93 KB)
13
- /src/date/LocalDatePicker/LocalDatePicker.tsx
14
- ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.39 % (2.882 KB)
15
- /src/inputs/TableInput/TableInput.tsx
16
- ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.19 % (2.788 KB)
17
- /src/inputs/Scriptel/scriptel/index.ts
18
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.61 % (2.53 KB)
19
- /src/inputs/CreditCardInput/CreditCardInput.tsx
20
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.16 % (2.324 KB)
21
- /src/date/MonthDayPicker/MonthDayPicker.tsx
22
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.36 % (1.965 KB)
23
- /src/inputs/ScriptelInput/ScriptelInput.tsx
24
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.36 % (1.963 KB)
25
- /src/inputs/CreditCardInput/CreditCardNumberInput.tsx
26
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.8 % (1.713 KB)
27
- /src/date/YearSelect/YearSelect.tsx
28
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.45 % (1.553 KB)
29
- /src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx
30
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.37 % (1.518 KB)
31
- /src/inputs/MaskedInput/useMaskedInput.ts
32
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.3 % (1.487 KB)
33
- /src/inputs/Scriptel/Scriptel.tsx
34
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.83 % (1.275 KB)
35
- /src/date/MonthYearPicker/MonthYearPicker.tsx
36
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.73 % (1.229 KB)
37
- /src/date/LocalTimePicker/LocalTimePicker.tsx
38
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.67 % (1.205 KB)
39
- /src/inputs/SinInput/SinInput.tsx
40
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.54 % (1.144 KB)
41
- /src/date/LocalMonthSelect/LocalMonthSelect.tsx
42
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.52 % (1.135 KB)
43
- /src/inputs/Scriptel/scriptel/enums.ts
44
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.08 % (937 Bytes)
45
- /src/money/MoneyInput/MoneyInput.tsx
46
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.65 % (745 Bytes)
47
- /src/inputs/TableInput/StringEditCell.tsx
48
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.59 % (717 Bytes)
49
- /src/inputs/TableInput/MoneyEditCell.tsx
50
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.57 % (708 Bytes)
51
- /src/inputs/TableInput/CheckboxEditCell.tsx
52
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.56 % (702 Bytes)
53
- /src/inputs/TableInput/LocalDateEditCell.tsx
54
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.54 % (695 Bytes)
55
- /home/darkadept/dev/thx/node_modules/style-inject/dist/style-inject.es.js
56
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.41 % (636 Bytes)
57
- /src/form/TForm/TForm.tsx
58
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.33 % (600 Bytes)
59
- /src/inputs/RadioGroup/RadioGroup.tsx
60
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.24 % (561 Bytes)
61
- /src/date/DatePicker/styles.css
62
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.19 % (538 Bytes)
63
- /src/inputs/TableInput/DropdownCell.tsx
64
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.09 % (493 Bytes)
65
- /src/date/LocalDatePicker/MaskedDateInput.tsx
66
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.03 % (464 Bytes)
67
- /src/date/LocalTimePicker/MaskedTimeInput.tsx
68
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.99 % (446 Bytes)
69
- /src/step/FormStep.tsx
70
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.98 % (440 Bytes)
71
- /src/inputs/TableInput/MoneySumFooter.tsx
72
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.92 % (414 Bytes)
73
- /src/inputs/TableInput/HoverCell.tsx
74
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.89 % (403 Bytes)
75
- /src/inputs/MaskedInput/MaskedInput.tsx
76
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.87 % (390 Bytes)
77
- /src/inputs/PhoneInput/PhoneInput.tsx
78
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.85 % (381 Bytes)
79
- /src/inputs/TableInput/addRowOnTab.ts
80
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.69 % (312 Bytes)
81
- /src/inputs/Scriptel/withScriptel.tsx
82
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.61 % (275 Bytes)
83
- /src/inputs/TableInput/LocalDateCell.tsx
84
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.59 % (264 Bytes)
85
- /src/inputs/TableInput/MoneyCell.tsx
86
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.57 % (257 Bytes)
87
- /src/step/Step.tsx
88
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.45 % (203 Bytes)
89
- /src/step/useStep.ts
90
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.25 % (113 Bytes)
91
- /src/step/stepContext.ts
92
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.18 % (80 Bytes)
93
- /src/inputs/CreditCardInput/styles.css
94
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.17 % (78 Bytes)
95
- /src/inputs/Scriptel/ScriptelContext.ts
96
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.1 % (46 Bytes)
97
- /src/index.ts
98
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0 % (0 Byte)