linear-react-components-ui 2.0.0-beta.4 → 2.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/styles/radio.css +1 -1
- package/lib/assets/styles/selectfield.css +1 -1
- package/lib/assets/styles/split.css +1 -1
- package/lib/form2/useForm/index.js +74 -63
- package/lib/form2/useForm/index.js.map +1 -1
- package/lib/inputs/base/types.d.ts +2 -2
- package/lib/inputs/date/helpers.js +11 -22
- package/lib/inputs/date/helpers.js.map +1 -1
- package/lib/inputs/mask/BaseMask.js +55 -65
- package/lib/inputs/mask/BaseMask.js.map +1 -1
- package/lib/inputs/mask/types.d.ts +2 -1
- package/lib/inputs/number/Currency.js +35 -45
- package/lib/inputs/number/Currency.js.map +1 -1
- package/lib/inputs/number/Decimal.js +38 -48
- package/lib/inputs/number/Decimal.js.map +1 -1
- package/lib/inputs/number/index.js +38 -48
- package/lib/inputs/number/index.js.map +1 -1
- package/lib/inputs/period/helper.d.ts +1 -0
- package/lib/inputs/period/helper.js +27 -19
- package/lib/inputs/period/helper.js.map +1 -1
- package/lib/inputs/period/index.js +143 -139
- package/lib/inputs/period/index.js.map +1 -1
- package/lib/inputs2/date/datefield/base.js +60 -70
- package/lib/inputs2/date/datefield/base.js.map +1 -1
- package/lib/inputs2/date/dateperiodfield/base.js +79 -89
- package/lib/inputs2/date/dateperiodfield/base.js.map +1 -1
- package/lib/inputs2/mask/Cnpj.js +58 -68
- package/lib/inputs2/mask/Cnpj.js.map +1 -1
- package/lib/inputs2/mask/Cpf.js +38 -48
- package/lib/inputs2/mask/Cpf.js.map +1 -1
- package/lib/inputs2/mask/index.js +50 -60
- package/lib/inputs2/mask/index.js.map +1 -1
- package/lib/inputs2/numberfield/currency.js +51 -61
- package/lib/inputs2/numberfield/currency.js.map +1 -1
- package/lib/inputs2/numberfield/decimal.js +25 -35
- package/lib/inputs2/numberfield/decimal.js.map +1 -1
- package/lib/inputs2/numberfield/index.js +46 -56
- package/lib/inputs2/numberfield/index.js.map +1 -1
- package/lib/inputs2/selectfield/base.d.ts +1 -2
- package/lib/inputs2/selectfield/base.js +260 -382
- package/lib/inputs2/selectfield/base.js.map +1 -1
- package/lib/inputs2/selectfield/context.d.ts +1 -1
- package/lib/inputs2/selectfield/context.js.map +1 -1
- package/lib/inputs2/selectfield/helpers.d.ts +5 -0
- package/lib/inputs2/selectfield/helpers.js +22 -13
- package/lib/inputs2/selectfield/helpers.js.map +1 -1
- package/lib/inputs2/selectfield/index.js.map +1 -1
- package/lib/inputs2/selectfield/listbox.js +17 -18
- package/lib/inputs2/selectfield/listbox.js.map +1 -1
- package/lib/inputs2/selectfield/selections.d.ts +1 -1
- package/lib/inputs2/selectfield/selections.js +11 -11
- package/lib/inputs2/selectfield/selections.js.map +1 -1
- package/lib/inputs2/selectfield/triggers.js +15 -15
- package/lib/inputs2/selectfield/triggers.js.map +1 -1
- package/lib/radio/index.js +74 -84
- package/lib/radio/index.js.map +1 -1
- package/lib/table/Row.js +57 -46
- package/lib/table/Row.js.map +1 -1
- package/lib/table/types.d.ts +2 -1
- package/package.json +9 -6
- package/lib/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +0 -35
- package/lib/node_modules/imask/esm/controls/html-contenteditable-mask-element.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/html-input-mask-element.js +0 -32
- package/lib/node_modules/imask/esm/controls/html-input-mask-element.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/html-mask-element.js +0 -49
- package/lib/node_modules/imask/esm/controls/html-mask-element.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/input-history.js +0 -31
- package/lib/node_modules/imask/esm/controls/input-history.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/input.js +0 -223
- package/lib/node_modules/imask/esm/controls/input.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/mask-element.js +0 -44
- package/lib/node_modules/imask/esm/controls/mask-element.js.map +0 -1
- package/lib/node_modules/imask/esm/core/action-details.js +0 -52
- package/lib/node_modules/imask/esm/core/action-details.js.map +0 -1
- package/lib/node_modules/imask/esm/core/change-details.js +0 -37
- package/lib/node_modules/imask/esm/core/change-details.js.map +0 -1
- package/lib/node_modules/imask/esm/core/continuous-tail-details.js +0 -43
- package/lib/node_modules/imask/esm/core/continuous-tail-details.js.map +0 -1
- package/lib/node_modules/imask/esm/core/holder.js +0 -7
- package/lib/node_modules/imask/esm/core/holder.js.map +0 -1
- package/lib/node_modules/imask/esm/core/utils.js +0 -68
- package/lib/node_modules/imask/esm/core/utils.js.map +0 -1
- package/lib/node_modules/imask/esm/index.js +0 -51
- package/lib/node_modules/imask/esm/index.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/base.js +0 -253
- package/lib/node_modules/imask/esm/masked/base.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/date.js +0 -118
- package/lib/node_modules/imask/esm/masked/date.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/dynamic.js +0 -223
- package/lib/node_modules/imask/esm/masked/dynamic.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/enum.js +0 -70
- package/lib/node_modules/imask/esm/masked/enum.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/factory.js +0 -47
- package/lib/node_modules/imask/esm/masked/factory.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/function.js +0 -24
- package/lib/node_modules/imask/esm/masked/function.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/number.js +0 -213
- package/lib/node_modules/imask/esm/masked/number.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +0 -104
- package/lib/node_modules/imask/esm/masked/pattern/chunk-tail-details.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern/cursor.js +0 -101
- package/lib/node_modules/imask/esm/masked/pattern/cursor.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern/fixed-definition.js +0 -103
- package/lib/node_modules/imask/esm/masked/pattern/fixed-definition.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern/input-definition.js +0 -134
- package/lib/node_modules/imask/esm/masked/pattern/input-definition.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern.js +0 -323
- package/lib/node_modules/imask/esm/masked/pattern.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pipe.js +0 -24
- package/lib/node_modules/imask/esm/masked/pipe.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/range.js +0 -79
- package/lib/node_modules/imask/esm/masked/range.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/regexp.js +0 -22
- package/lib/node_modules/imask/esm/masked/regexp.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/repeat.js +0 -105
- package/lib/node_modules/imask/esm/masked/repeat.js.map +0 -1
- package/lib/node_modules/react-imask/esm/hook.js +0 -76
- package/lib/node_modules/react-imask/esm/hook.js.map +0 -1
- package/lib/node_modules/react-imask/esm/input.js +0 -24
- package/lib/node_modules/react-imask/esm/input.js.map +0 -1
- package/lib/node_modules/react-imask/esm/mixin.js +0 -132
- package/lib/node_modules/react-imask/esm/mixin.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decimal.js","sources":["../../../src/lib/inputs2/numberfield/decimal.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useEffect, useRef, ChangeEvent} from 'react';\nimport _ from 'lodash';\nimport { useIMask } from 'react-imask';\nimport { TextField } from '..';\nimport { mergeRefs } from '../../form2/helpers';\nimport type { DecimalFieldInputProps } from './types';\n\nconst Decimal = forwardRef<HTMLInputElement, DecimalFieldInputProps>((props, ref) => {\n const {\n min = undefined, max = undefined, to = undefined, from = undefined, enum: interval = undefined,\n onChange = null, onBlur = null, allowNegative = true, textAlign = 'right', children = null, \n scale = 2, normalizeZeros = false, padFractionalZeros = true, ...rest\n } = props;\n const numberInputRef = useRef<HTMLInputElement | null>(null);\n\n const { value: maskedValue, setValue: setMaskedValue, unmaskedValue } = useIMask({\n mask: Number,\n unmask: true,\n min: !_.isNil(min) ? min : (allowNegative ? undefined : 0),\n enum: interval,\n radix: ',',\n mapToRadix: ['.'],\n thousandsSeparator: '.',\n max,\n to,\n from,\n scale,\n normalizeZeros,\n padFractionalZeros,\n }, {\n ref: numberInputRef,\n onAccept: (__, options, event) => {\n const parsedValueToFloat = parseFloat(options.unmaskedValue);\n const valueToReturn = !_.isNaN(parsedValueToFloat) ? parsedValueToFloat : 0;\n onChange?.({\n ...event,\n target: {\n ...event?.target,\n name: props?.name,\n value: valueToReturn as unknown,\n },\n } as ChangeEvent<HTMLInputElement>);\n },\n });\n\n /**\n * Função sobrescrevendo o evento onBlur para tratar o valor mínimo ao sair do campo, \n * garantindo que o valor não seja menor que o mínimo definido.\n */\n const handleBlur = useCallback((event: React.FocusEvent<HTMLInputElement>) => {\n if (!_.isNil(min)) {\n const parsedCurrentValueToFloat = parseFloat(unmaskedValue) as number;\n if (_.isNaN(parsedCurrentValueToFloat) || parsedCurrentValueToFloat < min) {\n setMaskedValue(_.toString(min));\n onChange?.({\n ...event,\n target: {\n ...event?.target,\n name: props?.name,\n value: min as any,\n },\n } as React.ChangeEvent<HTMLInputElement>);\n }\n }\n onBlur?.(event);\n }, [min, unmaskedValue, onChange, onBlur, setMaskedValue, props.name]);\n\n useEffect(() => {\n const valueToString = _.toString(props?.value);\n if (!_.isNil(props?.value) && \n !_.isEqual(parseFloat(valueToString), parseFloat(unmaskedValue))) {\n setMaskedValue(parseFloat(valueToString).toLocaleString('pt-BR'));\n }\n }, [props?.value]);\n\n return (\n <TextField.Input\n {...rest}\n ref={mergeRefs(ref, numberInputRef)}\n type=\"text\"\n inputMode=\"decimal\"\n value={maskedValue}\n textAlign={textAlign}\n onBlur={handleBlur}\n onChange={() => { }}>\n {children}\n </TextField.Input>\n );\n});\n\nDecimal.displayName = 'DecimalFieldInput';\n\nexport { Decimal };\n"],"names":["Decimal","forwardRef","props","ref","$","_c","rest","t0","t1","t10","t11","t12","t2","t3","t4","t5","t6","t7","t8","t9","min","max","to","from","enum","onChange","onBlur","allowNegative","textAlign","children","scale","normalizeZeros","padFractionalZeros","undefined","interval","numberInputRef","useRef","t13","_","isNil","t14","Symbol","for","t15","mask","Number","unmask","radix","mapToRadix","thousandsSeparator","t16","name","onAccept","__","options","event","parsedValueToFloat","parseFloat","unmaskedValue","valueToReturn","isNaN","target","value","maskedValue","setValue","setMaskedValue","useIMask","t17","event_0","parsedCurrentValueToFloat","toString","handleBlur","t18","valueToString","isEqual","toLocaleString","t19","t20","useEffect","t21","mergeRefs","t22","_temp","displayName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"decimal.js","sources":["../../../src/lib/inputs2/numberfield/decimal.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useEffect, useRef, ChangeEvent} from 'react';\nimport _ from 'lodash';\nimport { useIMask } from 'react-imask';\nimport { TextField } from '..';\nimport { mergeRefs } from '../../form2/helpers';\nimport type { DecimalFieldInputProps } from './types';\n\nconst Decimal = forwardRef<HTMLInputElement, DecimalFieldInputProps>((props, ref) => {\n const {\n min = undefined, max = undefined, to = undefined, from = undefined, enum: interval = undefined,\n onChange = null, onBlur = null, allowNegative = true, textAlign = 'right', children = null, \n scale = 2, normalizeZeros = false, padFractionalZeros = true, ...rest\n } = props;\n const numberInputRef = useRef<HTMLInputElement | null>(null);\n\n const { value: maskedValue, setValue: setMaskedValue, unmaskedValue } = useIMask({\n mask: Number,\n unmask: true,\n min: !_.isNil(min) ? min : (allowNegative ? undefined : 0),\n enum: interval,\n radix: ',',\n mapToRadix: ['.'],\n thousandsSeparator: '.',\n max,\n to,\n from,\n scale,\n normalizeZeros,\n padFractionalZeros,\n }, {\n ref: numberInputRef,\n onAccept: (__, options, event) => {\n const parsedValueToFloat = parseFloat(options.unmaskedValue);\n const valueToReturn = !_.isNaN(parsedValueToFloat) ? parsedValueToFloat : 0;\n onChange?.({\n ...event,\n target: {\n ...event?.target,\n name: props?.name,\n value: valueToReturn as unknown,\n },\n } as ChangeEvent<HTMLInputElement>);\n },\n });\n\n /**\n * Função sobrescrevendo o evento onBlur para tratar o valor mínimo ao sair do campo, \n * garantindo que o valor não seja menor que o mínimo definido.\n */\n const handleBlur = useCallback((event: React.FocusEvent<HTMLInputElement>) => {\n if (!_.isNil(min)) {\n const parsedCurrentValueToFloat = parseFloat(unmaskedValue) as number;\n if (_.isNaN(parsedCurrentValueToFloat) || parsedCurrentValueToFloat < min) {\n setMaskedValue(_.toString(min));\n onChange?.({\n ...event,\n target: {\n ...event?.target,\n name: props?.name,\n value: min as any,\n },\n } as React.ChangeEvent<HTMLInputElement>);\n }\n }\n onBlur?.(event);\n }, [min, unmaskedValue, onChange, onBlur, setMaskedValue, props.name]);\n\n useEffect(() => {\n const valueToString = _.toString(props?.value);\n if (!_.isNil(props?.value) && \n !_.isEqual(parseFloat(valueToString), parseFloat(unmaskedValue))) {\n setMaskedValue(parseFloat(valueToString).toLocaleString('pt-BR'));\n }\n }, [props?.value]);\n\n return (\n <TextField.Input\n {...rest}\n ref={mergeRefs(ref, numberInputRef)}\n type=\"text\"\n inputMode=\"decimal\"\n value={maskedValue}\n textAlign={textAlign}\n onBlur={handleBlur}\n onChange={() => { }}>\n {children}\n </TextField.Input>\n );\n});\n\nDecimal.displayName = 'DecimalFieldInput';\n\nexport { Decimal };\n"],"names":["Decimal","forwardRef","props","ref","$","_c","rest","t0","t1","t10","t11","t12","t2","t3","t4","t5","t6","t7","t8","t9","min","max","to","from","enum","onChange","onBlur","allowNegative","textAlign","children","scale","normalizeZeros","padFractionalZeros","undefined","interval","numberInputRef","useRef","t13","_","isNil","t14","Symbol","for","t15","mask","Number","unmask","radix","mapToRadix","thousandsSeparator","t16","name","onAccept","__","options","event","parsedValueToFloat","parseFloat","unmaskedValue","valueToReturn","isNaN","target","value","maskedValue","setValue","setMaskedValue","useIMask","t17","event_0","parsedCurrentValueToFloat","toString","handleBlur","t18","valueToString","isEqual","toLocaleString","t19","t20","useEffect","t21","mergeRefs","t22","_temp","displayName"],"mappings":";;;;;;;;;;;;;;;;;;AAO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KAAAnE,EAAA,EAAA,MAAA2D,KAAA3D,EAAA,EAAA,MAAAE,KAAAF,UAAA2E,KAAA3E,EAAA,EAAA,MAAAwB,KAFrCqD,+BACM3E,GACC,KAAAyE,GACA,MAAA,QACK,WAAA,WACHhB,OAAAA,GACInC,WAAAA,GACH2C,QAAAA,GACE,UAAAW,IACTrD,UAAAA,GACH,GAAkBzB,QAAAyB,GAAAzB,QAAAmE,GAAAnE,QAAA2D,GAAA3D,QAAAE,GAAAF,QAAA2E,GAAA3E,QAAAwB,GAAAxB,QAAA6E,KAAAA,IAAA7E,EAAA,EAAA,GAVlB6E;AAUkB,CAErB;AAEDjF,GAAQmF,cAAc;AAnF+C,SAAAD,KAAA;AAAA;"}
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import { jsx as K } from "react/jsx-runtime";
|
|
2
2
|
import { c as O } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import { forwardRef as P, useRef as Q, useEffect as W } from "react";
|
|
4
|
-
import
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "../../node_modules/imask/esm/controls/mask-element.js";
|
|
9
|
-
import "../../node_modules/imask/esm/controls/html-input-mask-element.js";
|
|
10
|
-
import "../../node_modules/imask/esm/controls/html-mask-element.js";
|
|
11
|
-
import "../../node_modules/imask/esm/controls/html-contenteditable-mask-element.js";
|
|
12
|
-
import "../../node_modules/imask/esm/controls/input-history.js";
|
|
13
|
-
import "../../node_modules/react-imask/esm/input.js";
|
|
14
|
-
import X from "../../node_modules/react-imask/esm/hook.js";
|
|
15
|
-
import "../../node_modules/react-imask/esm/mixin.js";
|
|
16
|
-
import { Decimal as yt } from "./decimal.js";
|
|
17
|
-
import { Currency as qt } from "./currency.js";
|
|
4
|
+
import o from "../../_virtual/lodash.js";
|
|
5
|
+
import { useIMask as X } from "react-imask";
|
|
6
|
+
import { Decimal as kt } from "./decimal.js";
|
|
7
|
+
import { Currency as Rt } from "./currency.js";
|
|
18
8
|
import { convertToSafeNumber as G } from "./helpers.js";
|
|
19
9
|
import { Input as Y } from "../textfield/index.js";
|
|
20
10
|
import "../textareafield/index.js";
|
|
@@ -26,28 +16,28 @@ import "../mask/index.js";
|
|
|
26
16
|
import "../checkboxfield/index.js";
|
|
27
17
|
import "../date/dateperiodfield/index.js";
|
|
28
18
|
import "../filefield/index.js";
|
|
29
|
-
import { LeftSlot as
|
|
19
|
+
import { LeftSlot as At, RightSlot as pt } from "../slot/index.js";
|
|
30
20
|
import { mergeRefs as Z } from "../../form2/helpers.js";
|
|
31
21
|
const tt = P((e, C) => {
|
|
32
22
|
const t = O.c(46);
|
|
33
|
-
let n, f, c, d, v, g,
|
|
23
|
+
let n, f, c, d, v, g, N, x, h, S, V, k;
|
|
34
24
|
t[0] !== e ? ({
|
|
35
25
|
min: f,
|
|
36
26
|
max: c,
|
|
37
27
|
to: v,
|
|
38
28
|
from: g,
|
|
39
|
-
enum:
|
|
40
|
-
onChange:
|
|
41
|
-
onBlur:
|
|
42
|
-
allowNegative:
|
|
43
|
-
returnAsString:
|
|
44
|
-
textAlign:
|
|
29
|
+
enum: N,
|
|
30
|
+
onChange: x,
|
|
31
|
+
onBlur: h,
|
|
32
|
+
allowNegative: S,
|
|
33
|
+
returnAsString: V,
|
|
34
|
+
textAlign: k,
|
|
45
35
|
children: d,
|
|
46
36
|
...n
|
|
47
|
-
} = e, t[0] = e, t[1] = n, t[2] = f, t[3] = c, t[4] = d, t[5] = v, t[6] = g, t[7] =
|
|
48
|
-
const
|
|
49
|
-
let
|
|
50
|
-
t[13] !== y || t[14] !== M || t[15] !== E || t[16] !== j || t[17] !== w ? (
|
|
37
|
+
} = e, t[0] = e, t[1] = n, t[2] = f, t[3] = c, t[4] = d, t[5] = v, t[6] = g, t[7] = N, t[8] = x, t[9] = h, t[10] = S, t[11] = V, t[12] = k) : (n = t[1], f = t[2], c = t[3], d = t[4], v = t[5], g = t[6], N = t[7], x = t[8], h = t[9], S = t[10], V = t[11], k = t[12]);
|
|
38
|
+
const l = f === void 0 ? void 0 : f, E = c === void 0 ? void 0 : c, w = v === void 0 ? void 0 : v, y = g === void 0 ? void 0 : g, M = N === void 0 ? void 0 : N, a = x === void 0 ? null : x, q = h === void 0 ? null : h, H = S === void 0 ? !0 : S, m = V === void 0 ? !1 : V, _ = k === void 0 ? "right" : k, $ = d === void 0 ? null : d, U = Q(null), j = o.isNil(l) ? H ? void 0 : 0 : l;
|
|
39
|
+
let I;
|
|
40
|
+
t[13] !== y || t[14] !== M || t[15] !== E || t[16] !== j || t[17] !== w ? (I = {
|
|
51
41
|
mask: Number,
|
|
52
42
|
scale: 0,
|
|
53
43
|
enum: M,
|
|
@@ -55,13 +45,13 @@ const tt = P((e, C) => {
|
|
|
55
45
|
max: E,
|
|
56
46
|
to: w,
|
|
57
47
|
from: y
|
|
58
|
-
}, t[13] = y, t[14] = M, t[15] = E, t[16] = j, t[17] = w, t[18] =
|
|
59
|
-
let
|
|
60
|
-
t[19] !==
|
|
48
|
+
}, t[13] = y, t[14] = M, t[15] = E, t[16] = j, t[17] = w, t[18] = I) : I = t[18];
|
|
49
|
+
let R;
|
|
50
|
+
t[19] !== a || t[20] !== e.name || t[21] !== m ? (R = {
|
|
61
51
|
ref: U,
|
|
62
|
-
onAccept: (
|
|
63
|
-
const J = G(
|
|
64
|
-
|
|
52
|
+
onAccept: (i, T, z) => {
|
|
53
|
+
const J = G(i, m);
|
|
54
|
+
a?.({
|
|
65
55
|
...z,
|
|
66
56
|
target: {
|
|
67
57
|
...z?.target,
|
|
@@ -70,36 +60,36 @@ const tt = P((e, C) => {
|
|
|
70
60
|
}
|
|
71
61
|
});
|
|
72
62
|
}
|
|
73
|
-
}, t[19] =
|
|
63
|
+
}, t[19] = a, t[20] = e.name, t[21] = m, t[22] = R) : R = t[22];
|
|
74
64
|
const {
|
|
75
65
|
value: D,
|
|
76
|
-
setValue:
|
|
66
|
+
setValue: r,
|
|
77
67
|
unmaskedValue: u
|
|
78
|
-
} = X(
|
|
79
|
-
let
|
|
80
|
-
t[23] !==
|
|
81
|
-
if (!
|
|
68
|
+
} = X(I, R);
|
|
69
|
+
let b;
|
|
70
|
+
t[23] !== l || t[24] !== q || t[25] !== a || t[26] !== e.name || t[27] !== m || t[28] !== r || t[29] !== u ? (b = (i) => {
|
|
71
|
+
if (!o.isNil(l)) {
|
|
82
72
|
const T = G(u, !1);
|
|
83
|
-
(
|
|
84
|
-
...
|
|
73
|
+
(o.isNaN(T) || T < l) && (r(o.toString(l)), a?.({
|
|
74
|
+
...i,
|
|
85
75
|
target: {
|
|
86
|
-
...
|
|
76
|
+
...i?.target,
|
|
87
77
|
name: e?.name,
|
|
88
|
-
value:
|
|
78
|
+
value: m ? o.toString(l) : l
|
|
89
79
|
}
|
|
90
80
|
}));
|
|
91
81
|
}
|
|
92
|
-
q?.(
|
|
93
|
-
}, t[23] =
|
|
94
|
-
const F =
|
|
95
|
-
let b;
|
|
96
|
-
t[31] !== e.value || t[32] !== a || t[33] !== u ? (b = () => {
|
|
97
|
-
const l = Number(u || "0");
|
|
98
|
-
!i.isNil(e?.value) && (!i.isEqual(e?.value, l) || i.isEqual(e?.value, 0)) && a(i.toString(e?.value));
|
|
99
|
-
}, t[31] = e.value, t[32] = a, t[33] = u, t[34] = b) : b = t[34];
|
|
100
|
-
const L = e?.value;
|
|
82
|
+
q?.(i);
|
|
83
|
+
}, t[23] = l, t[24] = q, t[25] = a, t[26] = e.name, t[27] = m, t[28] = r, t[29] = u, t[30] = b) : b = t[30];
|
|
84
|
+
const F = b;
|
|
101
85
|
let A;
|
|
102
|
-
t[
|
|
86
|
+
t[31] !== e.value || t[32] !== r || t[33] !== u ? (A = () => {
|
|
87
|
+
const i = Number(u || "0");
|
|
88
|
+
!o.isNil(e?.value) && (!o.isEqual(e?.value, i) || o.isEqual(e?.value, 0)) && r(o.toString(e?.value));
|
|
89
|
+
}, t[31] = e.value, t[32] = r, t[33] = u, t[34] = A) : A = t[34];
|
|
90
|
+
const L = e?.value;
|
|
91
|
+
let p;
|
|
92
|
+
t[35] !== L ? (p = [L], t[35] = L, t[36] = p) : p = t[36], W(A, p);
|
|
103
93
|
let s;
|
|
104
94
|
t[37] !== C ? (s = Z(C, U), t[37] = C, t[38] = s) : s = t[38];
|
|
105
95
|
let B;
|
|
@@ -109,10 +99,10 @@ tt.displayName = "NumberFieldInput";
|
|
|
109
99
|
function et() {
|
|
110
100
|
}
|
|
111
101
|
export {
|
|
112
|
-
|
|
113
|
-
|
|
102
|
+
Rt as Currency,
|
|
103
|
+
kt as Decimal,
|
|
114
104
|
tt as Input,
|
|
115
|
-
|
|
116
|
-
|
|
105
|
+
At as LeftSlot,
|
|
106
|
+
pt as RightSlot
|
|
117
107
|
};
|
|
118
108
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/lib/inputs2/numberfield/index.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useEffect, useRef, type ChangeEvent } from 'react';\nimport _ from 'lodash';\nimport { useIMask } from 'react-imask';\nimport { Decimal } from './decimal';\nimport { Currency } from './currency';\nimport { convertToSafeNumber } from './helpers';\nimport { TextField } from '..';\nimport { LeftSlot, RightSlot } from '../slot';\nimport { mergeRefs } from '../../form2/helpers';\nimport type { NumberFieldInputProps, DecimalFieldInputProps, CurrencyFieldInputProps } from './types';\n\nconst Input = forwardRef<HTMLInputElement, NumberFieldInputProps>((props, ref) => {\n const {\n min = undefined, max = undefined, to = undefined, from = undefined, enum: interval = undefined,\n onChange = null, onBlur = null, allowNegative = true, returnAsString = false, textAlign = 'right', \n children = null, ...rest\n } = props;\n const numberInputRef = useRef<HTMLInputElement | null>(null);\n\n const { value: maskedValue, setValue: setMaskedValue, unmaskedValue } = useIMask({\n mask: Number,\n scale: 0,\n enum: interval,\n min: !_.isNil(min) ? min : (allowNegative ? undefined : 0),\n max,\n to,\n from,\n }, {\n ref: numberInputRef,\n onAccept: (value, __, event) => {\n const parsedValue = convertToSafeNumber(value, returnAsString);\n onChange?.({\n ...event,\n target: {\n ...event?.target,\n name: props?.name,\n value: parsedValue as any,\n },\n } as ChangeEvent<HTMLInputElement>);\n },\n });\n\n /**\n * Função sobrescrevendo o evento onBlur para tratar o valor mínimo ao sair do campo, \n * garantindo que o valor não seja menor que o mínimo definido.\n */\n const handleBlur = useCallback((event: React.FocusEvent<HTMLInputElement>) => {\n if (!_.isNil(min)) {\n const currentValue = convertToSafeNumber(unmaskedValue, false) as number;\n if (_.isNaN(currentValue) || currentValue < min) {\n setMaskedValue(_.toString(min));\n onChange?.({\n ...event,\n target: {\n ...event?.target,\n name: props?.name,\n value: (returnAsString ? _.toString(min) : min) as any,\n },\n } as React.ChangeEvent<HTMLInputElement>);\n }\n }\n onBlur?.(event);\n }, [min, unmaskedValue, onChange, onBlur, setMaskedValue, props.name, returnAsString]);\n\n useEffect(() => {\n const floatUnmaskedValue = Number(unmaskedValue || '0');\n if (!_.isNil(props?.value) && (!_.isEqual(props?.value,\n floatUnmaskedValue) || _.isEqual(props?.value, 0))) {\n setMaskedValue(_.toString(props?.value));\n }\n }, [props?.value]);\n\n return (\n <TextField.Input\n {...rest}\n ref={mergeRefs(ref, numberInputRef)}\n type=\"text\"\n inputMode=\"numeric\"\n value={maskedValue}\n textAlign={textAlign}\n onBlur={handleBlur}\n onChange={() => { }}>\n {children}\n </TextField.Input>\n );\n});\n\nInput.displayName = 'NumberFieldInput';\n\nexport { Input, Decimal, Currency, LeftSlot, RightSlot };\nexport type { \n NumberFieldInputProps, \n DecimalFieldInputProps, \n CurrencyFieldInputProps, \n};\n"],"names":["Input","forwardRef","props","ref","$","_c","rest","t0","t1","t10","t2","t3","t4","t5","t6","t7","t8","t9","min","max","to","from","enum","onChange","onBlur","allowNegative","returnAsString","textAlign","children","undefined","interval","numberInputRef","useRef","t11","_","isNil","t12","mask","Number","scale","t13","name","onAccept","value","__","event","parsedValue","convertToSafeNumber","target","maskedValue","setValue","setMaskedValue","unmaskedValue","useIMask","t14","event_0","currentValue","isNaN","toString","handleBlur","t15","floatUnmaskedValue","isEqual","t16","t17","useEffect","t18","mergeRefs","t19","_temp","displayName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/lib/inputs2/numberfield/index.tsx"],"sourcesContent":["import React, { forwardRef, useCallback, useEffect, useRef, type ChangeEvent } from 'react';\nimport _ from 'lodash';\nimport { useIMask } from 'react-imask';\nimport { Decimal } from './decimal';\nimport { Currency } from './currency';\nimport { convertToSafeNumber } from './helpers';\nimport { TextField } from '..';\nimport { LeftSlot, RightSlot } from '../slot';\nimport { mergeRefs } from '../../form2/helpers';\nimport type { NumberFieldInputProps, DecimalFieldInputProps, CurrencyFieldInputProps } from './types';\n\nconst Input = forwardRef<HTMLInputElement, NumberFieldInputProps>((props, ref) => {\n const {\n min = undefined, max = undefined, to = undefined, from = undefined, enum: interval = undefined,\n onChange = null, onBlur = null, allowNegative = true, returnAsString = false, textAlign = 'right', \n children = null, ...rest\n } = props;\n const numberInputRef = useRef<HTMLInputElement | null>(null);\n\n const { value: maskedValue, setValue: setMaskedValue, unmaskedValue } = useIMask({\n mask: Number,\n scale: 0,\n enum: interval,\n min: !_.isNil(min) ? min : (allowNegative ? undefined : 0),\n max,\n to,\n from,\n }, {\n ref: numberInputRef,\n onAccept: (value, __, event) => {\n const parsedValue = convertToSafeNumber(value, returnAsString);\n onChange?.({\n ...event,\n target: {\n ...event?.target,\n name: props?.name,\n value: parsedValue as any,\n },\n } as ChangeEvent<HTMLInputElement>);\n },\n });\n\n /**\n * Função sobrescrevendo o evento onBlur para tratar o valor mínimo ao sair do campo, \n * garantindo que o valor não seja menor que o mínimo definido.\n */\n const handleBlur = useCallback((event: React.FocusEvent<HTMLInputElement>) => {\n if (!_.isNil(min)) {\n const currentValue = convertToSafeNumber(unmaskedValue, false) as number;\n if (_.isNaN(currentValue) || currentValue < min) {\n setMaskedValue(_.toString(min));\n onChange?.({\n ...event,\n target: {\n ...event?.target,\n name: props?.name,\n value: (returnAsString ? _.toString(min) : min) as any,\n },\n } as React.ChangeEvent<HTMLInputElement>);\n }\n }\n onBlur?.(event);\n }, [min, unmaskedValue, onChange, onBlur, setMaskedValue, props.name, returnAsString]);\n\n useEffect(() => {\n const floatUnmaskedValue = Number(unmaskedValue || '0');\n if (!_.isNil(props?.value) && (!_.isEqual(props?.value,\n floatUnmaskedValue) || _.isEqual(props?.value, 0))) {\n setMaskedValue(_.toString(props?.value));\n }\n }, [props?.value]);\n\n return (\n <TextField.Input\n {...rest}\n ref={mergeRefs(ref, numberInputRef)}\n type=\"text\"\n inputMode=\"numeric\"\n value={maskedValue}\n textAlign={textAlign}\n onBlur={handleBlur}\n onChange={() => { }}>\n {children}\n </TextField.Input>\n );\n});\n\nInput.displayName = 'NumberFieldInput';\n\nexport { Input, Decimal, Currency, LeftSlot, RightSlot };\nexport type { \n NumberFieldInputProps, \n DecimalFieldInputProps, \n CurrencyFieldInputProps, \n};\n"],"names":["Input","forwardRef","props","ref","$","_c","rest","t0","t1","t10","t2","t3","t4","t5","t6","t7","t8","t9","min","max","to","from","enum","onChange","onBlur","allowNegative","returnAsString","textAlign","children","undefined","interval","numberInputRef","useRef","t11","_","isNil","t12","mask","Number","scale","t13","name","onAccept","value","__","event","parsedValue","convertToSafeNumber","target","maskedValue","setValue","setMaskedValue","unmaskedValue","useIMask","t14","event_0","currentValue","isNaN","toString","handleBlur","t15","floatUnmaskedValue","isEqual","t16","t17","useEffect","t18","mergeRefs","t19","_temp","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;AAWA,MAAMA,KAAQC,EAAoD,CAAAC,GAAAC,MAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA;AAAA,MAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC;AAAA,EAAAb,SAAAF,KAChE;AAAA,IAAAgB,KAAAX;AAAAA,IAAAY,KAAAX;AAAAA,IAAAY,IAAAV;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vC,QAAA+C,GAAA/C,QAAAgD,GAAAhD,QAAAwD,KAAAA,IAAAxD,EAAA,EAAA;AAAG,QAAA2D,IAAA7D,GAAKyC;AAAO,MAAAqB;AAAA,EAAA5D,UAAA2D,KAAbC,IAAA,CAACD,CAAY,GAAC3D,QAAA2D,GAAA3D,QAAA4D,KAAAA,IAAA5D,EAAA,EAAA,GANjB6D,EAAUL,GAMPI,CAAc;AAAC,MAAAE;AAAA,EAAA9D,UAAAD,KAKT+D,IAAAC,EAAUhE,GAAK4B,CAAc,GAAC3B,QAAAD,GAAAC,QAAA8D,KAAAA,IAAA9D,EAAA,EAAA;AAAA,MAAAgE;AAAA,SAAAhE,UAAAwB,KAAAxB,EAAA,EAAA,MAAAuD,KAAAvD,EAAA,EAAA,MAAA6C,KAAA7C,EAAA,EAAA,MAAAE,KAAAF,UAAA8D,KAAA9D,EAAA,EAAA,MAAAuB,KAFrCyC,8BACM9D,GACC,KAAA4D,GACA,MAAA,QACK,WAAA,WACHjB,OAAAA,GACItB,WAAAA,GACHgC,QAAAA,GACE,UAAAU,IACTzC,UAAAA,GACH,GAAkBxB,QAAAwB,GAAAxB,QAAAuD,GAAAvD,QAAA6C,GAAA7C,QAAAE,GAAAF,QAAA8D,GAAA9D,QAAAuB,GAAAvB,QAAAgE,KAAAA,IAAAhE,EAAA,EAAA,GAVlBgE;AAUkB,CAErB;AAEDpE,GAAMsE,cAAc;AA5E8C,SAAAD,KAAA;AAAA;"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { SelectFieldInputBaseProps } from './types';
|
|
3
|
-
export declare const InputBase:
|
|
2
|
+
export declare const InputBase: import('react').ForwardRefExoticComponent<SelectFieldInputBaseProps & import('react').RefAttributes<HTMLInputElement>>;
|