linear-react-components-ui 1.1.24-beta.2 → 1.1.24-beta.4
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/BaseMask-0c14ef51.d.ts +24 -0
- package/lib/Cnpj-bde01dd0.d.ts +18 -0
- package/lib/Cpf-3fa496ad.d.ts +18 -0
- package/lib/Phone-2bb0b397.d.ts +18 -0
- package/lib/ZipCode-09460e18.d.ts +13 -0
- package/lib/assets/styles/numberfield.scss +18 -0
- package/lib/buttons/DefaultButton.js +17 -7
- package/lib/dialog/base/index.js +2 -2
- package/lib/form2/index.d.ts +1 -1
- package/lib/form2/useForm/index.js +3 -4
- package/lib/icons/helper.d.ts +20 -0
- package/lib/icons/helper.js +20 -0
- package/lib/index-3b70931d.d.ts +44 -0
- package/lib/index-789dd9a5.d.ts +41 -0
- package/lib/index-7ad68789.d.ts +15 -0
- package/lib/index-9e576346.d.ts +23 -0
- package/lib/index-c512803d.d.ts +23 -0
- package/lib/index-ecafc8c6.d.ts +30 -0
- package/lib/inputs/base/InputTextBase.js +4 -2
- package/lib/inputs/base/types.d.ts +1 -1
- package/lib/inputs/color/types.d.ts +1 -1
- package/lib/inputs/date/types.d.ts +1 -1
- package/lib/inputs/file/DefaultFile.js +1 -1
- package/lib/inputs/mask/types.d.ts +1 -1
- package/lib/inputs/multiSelect/types.d.ts +1 -1
- package/lib/inputs/number/types.d.ts +2 -2
- package/lib/inputs2/checkboxfield/index.d.ts +1 -1
- package/lib/inputs2/checkboxfield/index.js +6 -2
- package/lib/inputs2/colorfield/index.d.ts +2 -2
- package/lib/inputs2/date/base/index.js +6 -2
- package/lib/inputs2/date/datefield/calendarbox.d.ts +1 -1
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +1 -1
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +0 -28
- package/lib/inputs2/index.d.ts +15 -15
- package/lib/inputs2/index.js +7 -13
- package/lib/inputs2/mask/BaseMask.d.ts +2 -2
- package/lib/inputs2/mask/Cnpj.d.ts +3 -3
- package/lib/inputs2/mask/Cpf.d.ts +3 -3
- package/lib/inputs2/mask/Phone.d.ts +3 -3
- package/lib/inputs2/mask/ZipCode.d.ts +3 -3
- package/lib/inputs2/numberfield/currency.d.ts +13 -0
- package/lib/inputs2/{number/BaseNumber.js → numberfield/currency.js} +63 -58
- package/lib/inputs2/numberfield/decimal.d.ts +13 -0
- package/lib/inputs2/numberfield/decimal.js +85 -0
- package/lib/inputs2/numberfield/helpers.d.ts +30 -0
- package/lib/inputs2/numberfield/helpers.js +53 -0
- package/lib/inputs2/numberfield/index.d.ts +12 -0
- package/lib/inputs2/numberfield/index.js +104 -0
- package/lib/inputs2/numberfield/types.d.ts +36 -0
- package/lib/inputs2/numberfield/types.js +5 -0
- package/lib/inputs2/radiofield/index.d.ts +1 -1
- package/lib/inputs2/selectfield/index.d.ts +1 -1
- package/lib/inputs2/selectfield/index.js +7 -5
- package/lib/inputs2/selectfield/item.d.ts +1 -1
- package/lib/inputs2/selectfield/listbox.d.ts +1 -1
- package/lib/inputs2/selectfield/search.d.ts +1 -1
- package/lib/inputs2/selectfield/selections.d.ts +1 -1
- package/lib/inputs2/selectfield/types.d.ts +1 -1
- package/lib/inputs2/slot/index.d.ts +2 -2
- package/lib/inputs2/textfield/index.d.ts +1 -1
- package/lib/inputs2/textfield/index.js +12 -9
- package/lib/popover/PopoverText.js +11 -2
- package/lib/popover/index.js +1 -0
- package/lib/popover/types.d.ts +1 -0
- package/package.json +1 -1
- package/lib/BaseMask-4885b7c4.d.ts +0 -24
- package/lib/BaseNumber-ba047ec3.d.ts +0 -23
- package/lib/Cnpj-501f8fed.d.ts +0 -18
- package/lib/Cpf-0e03d85a.d.ts +0 -18
- package/lib/Currency-d8dae30c.d.ts +0 -18
- package/lib/Decimal-deda637f.d.ts +0 -13
- package/lib/Number-4783f0de.d.ts +0 -20
- package/lib/Phone-99e92c22.d.ts +0 -18
- package/lib/ZipCode-3d092264.d.ts +0 -13
- package/lib/index-6f287e6c.d.ts +0 -23
- package/lib/index-a0c1207e.d.ts +0 -15
- package/lib/index-a68cfaf7.d.ts +0 -23
- package/lib/index-f6f0d3a8.d.ts +0 -44
- package/lib/index-f9981b49.d.ts +0 -41
- package/lib/inputs2/number/BaseNumber.d.ts +0 -10
- package/lib/inputs2/number/Currency.d.ts +0 -11
- package/lib/inputs2/number/Currency.js +0 -47
- package/lib/inputs2/number/Decimal.d.ts +0 -11
- package/lib/inputs2/number/Decimal.js +0 -36
- package/lib/inputs2/number/Number.d.ts +0 -9
- package/lib/inputs2/number/Number.js +0 -49
- package/lib/inputs2/number/format_number.d.ts +0 -5
- package/lib/inputs2/number/format_number.js +0 -29
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Decimal = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _lodash = _interopRequireDefault(require("lodash"));
|
|
9
|
+
var _reactImask = require("react-imask");
|
|
10
|
+
var _2 = require("..");
|
|
11
|
+
var _helpers = require("../../form2/helpers");
|
|
12
|
+
const _excluded = ["min", "max", "to", "from", "enum", "onChange", "allowNegative", "textAlign", "children", "scale", "normalizeZeros", "padFractionalZeros"];
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
21
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
22
|
+
const Decimal = exports.Decimal = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
23
|
+
const {
|
|
24
|
+
min = undefined,
|
|
25
|
+
max = undefined,
|
|
26
|
+
to = undefined,
|
|
27
|
+
from = undefined,
|
|
28
|
+
enum: interval = undefined,
|
|
29
|
+
onChange = null,
|
|
30
|
+
allowNegative = true,
|
|
31
|
+
textAlign = 'right',
|
|
32
|
+
children = null,
|
|
33
|
+
scale = 2,
|
|
34
|
+
normalizeZeros = false,
|
|
35
|
+
padFractionalZeros = true
|
|
36
|
+
} = props,
|
|
37
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
38
|
+
const numberInputRef = _react.default.useRef(null);
|
|
39
|
+
const {
|
|
40
|
+
value: maskedValue,
|
|
41
|
+
setValue: setMaskedValue,
|
|
42
|
+
unmaskedValue
|
|
43
|
+
} = (0, _reactImask.useIMask)({
|
|
44
|
+
mask: Number,
|
|
45
|
+
unmask: true,
|
|
46
|
+
min: !_lodash.default.isNil(min) ? min : allowNegative ? undefined : 0,
|
|
47
|
+
enum: interval,
|
|
48
|
+
radix: ',',
|
|
49
|
+
mapToRadix: ['.'],
|
|
50
|
+
thousandsSeparator: '.',
|
|
51
|
+
max,
|
|
52
|
+
to,
|
|
53
|
+
from,
|
|
54
|
+
scale,
|
|
55
|
+
normalizeZeros,
|
|
56
|
+
padFractionalZeros
|
|
57
|
+
}, {
|
|
58
|
+
ref: numberInputRef,
|
|
59
|
+
onAccept: (__, options, event) => {
|
|
60
|
+
const parsedValueToFloat = parseFloat(options.unmaskedValue);
|
|
61
|
+
const valueToReturn = !_lodash.default.isNaN(parsedValueToFloat) ? parsedValueToFloat : 0;
|
|
62
|
+
onChange?.(_objectSpread(_objectSpread({}, event), {}, {
|
|
63
|
+
target: _objectSpread(_objectSpread({}, event?.target), {}, {
|
|
64
|
+
name: props?.name,
|
|
65
|
+
value: valueToReturn
|
|
66
|
+
})
|
|
67
|
+
}));
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
_react.default.useEffect(() => {
|
|
71
|
+
const valueToString = _lodash.default.toString(props?.value);
|
|
72
|
+
if (!_lodash.default.isNil(props?.value) && !_lodash.default.isEqual(parseFloat(valueToString), parseFloat(unmaskedValue))) {
|
|
73
|
+
setMaskedValue(parseFloat(valueToString).toLocaleString('pt-BR'));
|
|
74
|
+
}
|
|
75
|
+
}, [props?.value]);
|
|
76
|
+
return /*#__PURE__*/_react.default.createElement(_2.TextField.Input, _extends({}, rest, {
|
|
77
|
+
ref: (0, _helpers.mergeRefs)(ref, numberInputRef),
|
|
78
|
+
type: "text",
|
|
79
|
+
inputMode: "numeric",
|
|
80
|
+
value: maskedValue,
|
|
81
|
+
textAlign: textAlign,
|
|
82
|
+
onChange: () => {}
|
|
83
|
+
}), children);
|
|
84
|
+
});
|
|
85
|
+
Decimal.displayName = 'DecimalFieldInput';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converte um valor string para um número seguro ou retorna como string limpa.
|
|
3
|
+
*
|
|
4
|
+
* Esta função sanitiza a entrada removendo todos os caracteres não-dígitos exceto hífens,
|
|
5
|
+
* e então converte para número se estiver dentro do intervalo seguro de inteiros do JavaScript.
|
|
6
|
+
* Se o valor exceder o intervalo seguro ou a conversão falhar, retorna a string limpa.
|
|
7
|
+
*
|
|
8
|
+
* @param stringValue - A string de entrada a ser convertida. Pode conter qualquer caractere.
|
|
9
|
+
* @param returnAsString - Se true, retorna a string limpa sem tentar conversão para número. Se false,
|
|
10
|
+
* tenta converter para número dentro dos limites seguros de inteiros.
|
|
11
|
+
*
|
|
12
|
+
* @returns {number | string} Retorna:
|
|
13
|
+
* - String vazia ('') ou 0 se a entrada estiver vazia/nula (baseado na prop "returnAsString")
|
|
14
|
+
* - String limpa se "returnAsString" for true
|
|
15
|
+
* - Número se a conversão for bem-sucedida e dentro do intervalo seguro de inteiros
|
|
16
|
+
* - String limpa se o número exceder o intervalo seguro ou a conversão falhar
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* convertToSafeNumber("123abc", false); // Retorna: 123
|
|
21
|
+
* convertToSafeNumber("123abc", true); // Retorna: "123"
|
|
22
|
+
* convertToSafeNumber("-456def", false); // Retorna: -456
|
|
23
|
+
* convertToSafeNumber("999999999999999999999", false); // Retorna: "999999999999999999999" (excede intervalo seguro)
|
|
24
|
+
* convertToSafeNumber("", false); // Retorna: 0
|
|
25
|
+
* convertToSafeNumber("", true); // Retorna: ""
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
declare const convertToSafeNumber: (stringValue: string, returnAsString: boolean) => number | string;
|
|
29
|
+
|
|
30
|
+
export { convertToSafeNumber };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.convertToSafeNumber = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Converte um valor string para um número seguro ou retorna como string limpa.
|
|
9
|
+
*
|
|
10
|
+
* Esta função sanitiza a entrada removendo todos os caracteres não-dígitos exceto hífens,
|
|
11
|
+
* e então converte para número se estiver dentro do intervalo seguro de inteiros do JavaScript.
|
|
12
|
+
* Se o valor exceder o intervalo seguro ou a conversão falhar, retorna a string limpa.
|
|
13
|
+
*
|
|
14
|
+
* @param stringValue - A string de entrada a ser convertida. Pode conter qualquer caractere.
|
|
15
|
+
* @param returnAsString - Se true, retorna a string limpa sem tentar conversão para número. Se false,
|
|
16
|
+
* tenta converter para número dentro dos limites seguros de inteiros.
|
|
17
|
+
*
|
|
18
|
+
* @returns {number | string} Retorna:
|
|
19
|
+
* - String vazia ('') ou 0 se a entrada estiver vazia/nula (baseado na prop "returnAsString")
|
|
20
|
+
* - String limpa se "returnAsString" for true
|
|
21
|
+
* - Número se a conversão for bem-sucedida e dentro do intervalo seguro de inteiros
|
|
22
|
+
* - String limpa se o número exceder o intervalo seguro ou a conversão falhar
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* convertToSafeNumber("123abc", false); // Retorna: 123
|
|
27
|
+
* convertToSafeNumber("123abc", true); // Retorna: "123"
|
|
28
|
+
* convertToSafeNumber("-456def", false); // Retorna: -456
|
|
29
|
+
* convertToSafeNumber("999999999999999999999", false); // Retorna: "999999999999999999999" (excede intervalo seguro)
|
|
30
|
+
* convertToSafeNumber("", false); // Retorna: 0
|
|
31
|
+
* convertToSafeNumber("", true); // Retorna: ""
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
const convertToSafeNumber = (stringValue, returnAsString) => {
|
|
35
|
+
if (!stringValue || stringValue === '') return returnAsString ? '' : 0;
|
|
36
|
+
const cleanValue = stringValue.replace(/[^\d-]/g, '');
|
|
37
|
+
if (returnAsString) {
|
|
38
|
+
return cleanValue;
|
|
39
|
+
}
|
|
40
|
+
const {
|
|
41
|
+
MAX_SAFE_INTEGER
|
|
42
|
+
} = Number;
|
|
43
|
+
try {
|
|
44
|
+
const numValue = BigInt(cleanValue);
|
|
45
|
+
if (numValue > BigInt(MAX_SAFE_INTEGER) || numValue < BigInt(-MAX_SAFE_INTEGER)) {
|
|
46
|
+
return cleanValue;
|
|
47
|
+
}
|
|
48
|
+
return Number(cleanValue);
|
|
49
|
+
} catch (error) {
|
|
50
|
+
return cleanValue;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
exports.convertToSafeNumber = convertToSafeNumber;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
export { LeftSlot, RightSlot } from '../slot/index.js';
|
|
3
|
+
export { Decimal } from './decimal.js';
|
|
4
|
+
export { Currency } from './currency.js';
|
|
5
|
+
export { CurrencyFieldInputProps, DecimalFieldInputProps, NumberFieldInputProps } from './types.js';
|
|
6
|
+
export { I as Input } from '../../index-ecafc8c6.js';
|
|
7
|
+
import '../../index-3b70931d.js';
|
|
8
|
+
import '../../@types/Align.js';
|
|
9
|
+
import '../../@types/ColorStyles.js';
|
|
10
|
+
import '../../@types/Position.js';
|
|
11
|
+
import '../../@types/PermissionAttr.js';
|
|
12
|
+
import '../../tooltip/types.js';
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Currency", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _currency.Currency;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "Decimal", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _decimal.Decimal;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
exports.Input = void 0;
|
|
19
|
+
Object.defineProperty(exports, "LeftSlot", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return _slot.LeftSlot;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "RightSlot", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return _slot.RightSlot;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
var _react = _interopRequireDefault(require("react"));
|
|
32
|
+
var _lodash = _interopRequireDefault(require("lodash"));
|
|
33
|
+
var _reactImask = require("react-imask");
|
|
34
|
+
var _2 = require("..");
|
|
35
|
+
var _helpers = require("../../form2/helpers");
|
|
36
|
+
var _slot = require("../slot");
|
|
37
|
+
var _decimal = require("./decimal");
|
|
38
|
+
var _currency = require("./currency");
|
|
39
|
+
var _helpers2 = require("./helpers");
|
|
40
|
+
const _excluded = ["min", "max", "to", "from", "enum", "onChange", "allowNegative", "returnAsString", "textAlign", "children"];
|
|
41
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
42
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
43
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
44
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
45
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
46
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
47
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
48
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
49
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
50
|
+
const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
51
|
+
const {
|
|
52
|
+
min = undefined,
|
|
53
|
+
max = undefined,
|
|
54
|
+
to = undefined,
|
|
55
|
+
from = undefined,
|
|
56
|
+
enum: interval = undefined,
|
|
57
|
+
onChange = null,
|
|
58
|
+
allowNegative = true,
|
|
59
|
+
returnAsString = false,
|
|
60
|
+
textAlign = 'right',
|
|
61
|
+
children = null
|
|
62
|
+
} = props,
|
|
63
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
64
|
+
const numberInputRef = _react.default.useRef(null);
|
|
65
|
+
const {
|
|
66
|
+
value: maskedValue,
|
|
67
|
+
setValue: setMaskedValue,
|
|
68
|
+
unmaskedValue
|
|
69
|
+
} = (0, _reactImask.useIMask)({
|
|
70
|
+
mask: Number,
|
|
71
|
+
scale: 0,
|
|
72
|
+
min: !_lodash.default.isNil(min) ? min : allowNegative ? undefined : 0,
|
|
73
|
+
enum: interval,
|
|
74
|
+
max,
|
|
75
|
+
to,
|
|
76
|
+
from
|
|
77
|
+
}, {
|
|
78
|
+
ref: numberInputRef,
|
|
79
|
+
onAccept: (value, __, event) => {
|
|
80
|
+
const parsedValue = (0, _helpers2.convertToSafeNumber)(value, returnAsString);
|
|
81
|
+
onChange?.(_objectSpread(_objectSpread({}, event), {}, {
|
|
82
|
+
target: _objectSpread(_objectSpread({}, event?.target), {}, {
|
|
83
|
+
name: props?.name,
|
|
84
|
+
value: parsedValue
|
|
85
|
+
})
|
|
86
|
+
}));
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
_react.default.useEffect(() => {
|
|
90
|
+
const floatUnmaskedValue = Number(unmaskedValue || '0');
|
|
91
|
+
if (!_lodash.default.isNil(props?.value) && (!_lodash.default.isEqual(props?.value, floatUnmaskedValue) || _lodash.default.isEqual(props?.value, 0))) {
|
|
92
|
+
setMaskedValue(_lodash.default.toString(props?.value));
|
|
93
|
+
}
|
|
94
|
+
}, [props?.value]);
|
|
95
|
+
return /*#__PURE__*/_react.default.createElement(_2.TextField.Input, _extends({}, rest, {
|
|
96
|
+
ref: (0, _helpers.mergeRefs)(ref, numberInputRef),
|
|
97
|
+
type: "text",
|
|
98
|
+
inputMode: "numeric",
|
|
99
|
+
value: maskedValue,
|
|
100
|
+
textAlign: textAlign,
|
|
101
|
+
onChange: () => {}
|
|
102
|
+
}), children);
|
|
103
|
+
});
|
|
104
|
+
Input.displayName = 'NumberFieldInput';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { T as TextFieldInputProps } from '../../index-3b70931d.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '../../@types/Align.js';
|
|
4
|
+
import '../../@types/ColorStyles.js';
|
|
5
|
+
import '../../@types/Position.js';
|
|
6
|
+
import '../../@types/PermissionAttr.js';
|
|
7
|
+
import '../slot/index.js';
|
|
8
|
+
import '../../tooltip/types.js';
|
|
9
|
+
|
|
10
|
+
type BaseInputProps = Omit<TextFieldInputProps, 'type' | 'max' | 'min' | 'enum'>;
|
|
11
|
+
type BaseMaskNumberInputProps = {
|
|
12
|
+
min?: number;
|
|
13
|
+
max?: number;
|
|
14
|
+
to?: number;
|
|
15
|
+
from?: number;
|
|
16
|
+
enum?: string[];
|
|
17
|
+
};
|
|
18
|
+
interface NumberFieldInputProps extends BaseInputProps, BaseMaskNumberInputProps {
|
|
19
|
+
allowNegative?: boolean;
|
|
20
|
+
returnAsString?: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface DecimalFieldInputProps extends BaseInputProps, BaseMaskNumberInputProps {
|
|
23
|
+
scale?: number;
|
|
24
|
+
allowNegative?: boolean;
|
|
25
|
+
normalizeZeros?: boolean;
|
|
26
|
+
padFractionalZeros?: boolean;
|
|
27
|
+
}
|
|
28
|
+
interface CurrencyFieldInputProps extends BaseInputProps, BaseMaskNumberInputProps {
|
|
29
|
+
currencySymbol?: string;
|
|
30
|
+
scale?: number;
|
|
31
|
+
allowNegative?: boolean;
|
|
32
|
+
normalizeZeros?: boolean;
|
|
33
|
+
padFractionalZeros?: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { BaseInputProps, BaseMaskNumberInputProps, CurrencyFieldInputProps, DecimalFieldInputProps, NumberFieldInputProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
export { RadioFieldInputProps } from './types.js';
|
|
3
|
-
export { I as Input } from '../../index-
|
|
3
|
+
export { I as Input } from '../../index-7ad68789.js';
|
|
4
4
|
import '../../@types/Size.js';
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/ColorStyles.js';
|
|
@@ -2,7 +2,7 @@ import 'react';
|
|
|
2
2
|
export { LeftSlot, RightSlot } from '../slot/index.js';
|
|
3
3
|
export { Item } from './item.js';
|
|
4
4
|
export { SelectFieldInputProps } from './types.js';
|
|
5
|
-
export { I as Input } from '../../index-
|
|
5
|
+
export { I as Input } from '../../index-c512803d.js';
|
|
6
6
|
import '../../@types/Align.js';
|
|
7
7
|
import '../../@types/ColorStyles.js';
|
|
8
8
|
import '../../tooltip/types.js';
|
|
@@ -29,7 +29,7 @@ var _uuid = require("uuid");
|
|
|
29
29
|
var _reactDom = require("react-dom");
|
|
30
30
|
var _hint = _interopRequireDefault(require("../../hint"));
|
|
31
31
|
var _gridlayout = _interopRequireDefault(require("../../gridlayout"));
|
|
32
|
-
var _popover =
|
|
32
|
+
var _popover = _interopRequireWildcard(require("../../popover"));
|
|
33
33
|
var _tooltip = require("../../tooltip");
|
|
34
34
|
var _helpers = require("../../form2/helpers");
|
|
35
35
|
var _permissionValidations = require("../../permissionValidations");
|
|
@@ -159,8 +159,8 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref
|
|
|
159
159
|
if (/*#__PURE__*/_react.default.isValidElement(childElement)) {
|
|
160
160
|
const clonedChild = /*#__PURE__*/_react.default.cloneElement(childElement, {
|
|
161
161
|
key: childElement.key ?? `slot-${index}`,
|
|
162
|
-
disabled: isDisabled
|
|
163
|
-
'aria-disabled': isDisabled
|
|
162
|
+
disabled: isDisabled,
|
|
163
|
+
'aria-disabled': isDisabled
|
|
164
164
|
});
|
|
165
165
|
if (childElement.type === _slot.LeftSlot) left.push(clonedChild);
|
|
166
166
|
if (childElement.type === _slot.RightSlot) right.push(clonedChild);
|
|
@@ -170,7 +170,7 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref
|
|
|
170
170
|
leftSlotElements: left,
|
|
171
171
|
rightSlotElements: right
|
|
172
172
|
};
|
|
173
|
-
}, [children, isDisabled
|
|
173
|
+
}, [children, isDisabled]);
|
|
174
174
|
const hasLeftSlotElements = Boolean(leftSlotElements?.length);
|
|
175
175
|
const hasRightSlotElements = Boolean(rightSlotElements?.length);
|
|
176
176
|
const handleCloseListBox = () => {
|
|
@@ -418,7 +418,9 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref
|
|
|
418
418
|
theme: themePopover,
|
|
419
419
|
align: popoverAlign,
|
|
420
420
|
iconColor: "#03bde2"
|
|
421
|
-
},
|
|
421
|
+
}, /*#__PURE__*/_react.default.createElement(_popover.PopoverText, {
|
|
422
|
+
text: props?.hint ?? ''
|
|
423
|
+
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
422
424
|
ref: selectContainerRef,
|
|
423
425
|
className: `container ${customClassInputContainer}`,
|
|
424
426
|
"aria-expanded": listBoxOpen,
|
|
@@ -6,6 +6,6 @@ interface SelectFieldItemProps extends React__default.ComponentProps<'li'> {
|
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
children: React__default.ReactNode;
|
|
8
8
|
}
|
|
9
|
-
declare const Item: React__default.ForwardRefExoticComponent<Pick<SelectFieldItemProps, "
|
|
9
|
+
declare const Item: React__default.ForwardRefExoticComponent<Pick<SelectFieldItemProps, "className" | "disabled" | "onClick" | "color" | "children" | "label" | "style" | "id" | "key" | "slot" | "title" | "hidden" | "onKeyPress" | "role" | "tabIndex" | "align" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React__default.RefAttributes<HTMLLIElement>>;
|
|
10
10
|
|
|
11
11
|
export { Item, SelectFieldItemProps };
|
|
@@ -2,6 +2,6 @@ import React__default from 'react';
|
|
|
2
2
|
|
|
3
3
|
interface SelectFieldListBoxProps extends React__default.ComponentProps<'div'> {
|
|
4
4
|
}
|
|
5
|
-
declare const ListBox: React__default.ForwardRefExoticComponent<Pick<SelectFieldListBoxProps, "
|
|
5
|
+
declare const ListBox: React__default.ForwardRefExoticComponent<Pick<SelectFieldListBoxProps, "className" | "onClick" | "color" | "children" | "style" | "id" | "key" | "slot" | "title" | "hidden" | "onKeyPress" | "role" | "tabIndex" | "align" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
|
|
7
7
|
export { ListBox, SelectFieldListBoxProps };
|
|
@@ -2,6 +2,6 @@ import React__default from 'react';
|
|
|
2
2
|
|
|
3
3
|
interface SelectFieldSearchProps extends React__default.ComponentProps<'div'> {
|
|
4
4
|
}
|
|
5
|
-
declare const Search: React__default.ForwardRefExoticComponent<Pick<SelectFieldSearchProps, "
|
|
5
|
+
declare const Search: React__default.ForwardRefExoticComponent<Pick<SelectFieldSearchProps, "className" | "onClick" | "color" | "children" | "style" | "id" | "key" | "slot" | "title" | "hidden" | "onKeyPress" | "role" | "tabIndex" | "align" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
|
|
7
7
|
export { Search, SelectFieldSearchProps };
|
|
@@ -5,6 +5,6 @@ interface SelectFieldSelectionsProps extends React__default.ComponentProps<'div'
|
|
|
5
5
|
isReadOnly: boolean;
|
|
6
6
|
listOfOptionsToSelect: Map<string, string>;
|
|
7
7
|
}
|
|
8
|
-
declare const Selections: React__default.ForwardRefExoticComponent<Pick<SelectFieldSelectionsProps, "
|
|
8
|
+
declare const Selections: React__default.ForwardRefExoticComponent<Pick<SelectFieldSelectionsProps, "className" | "onClick" | "color" | "children" | "style" | "id" | "key" | "slot" | "title" | "hidden" | "onKeyPress" | "role" | "tabIndex" | "align" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "isDisabled" | "isReadOnly" | "listOfOptionsToSelect"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
|
|
10
10
|
export { SelectFieldSelectionsProps, Selections };
|
|
@@ -30,7 +30,7 @@ interface SelectFieldInputProps extends InputHTMLProps, ITooltipCommonProps {
|
|
|
30
30
|
label?: string;
|
|
31
31
|
errors?: string[];
|
|
32
32
|
striped?: boolean;
|
|
33
|
-
hint?: string
|
|
33
|
+
hint?: string;
|
|
34
34
|
gridLayout?: string;
|
|
35
35
|
notFoundFilterLabel?: string;
|
|
36
36
|
customClass?: string;
|