linear-react-components-ui 1.1.24-beta.0 → 1.1.24-beta.2
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-4885b7c4.d.ts +24 -0
- package/lib/BaseNumber-ba047ec3.d.ts +23 -0
- package/lib/Cnpj-501f8fed.d.ts +18 -0
- package/lib/Cpf-0e03d85a.d.ts +18 -0
- package/lib/Currency-d8dae30c.d.ts +18 -0
- package/lib/Decimal-deda637f.d.ts +13 -0
- package/lib/Number-4783f0de.d.ts +20 -0
- package/lib/Phone-99e92c22.d.ts +18 -0
- package/lib/ZipCode-3d092264.d.ts +13 -0
- package/lib/assets/styles/radiofield.scss +185 -0
- package/lib/assets/styles/textfield.scss +0 -1
- package/lib/dialog/base/index.js +1 -1
- package/lib/form2/index.d.ts +1 -1
- package/lib/icons/helper.d.ts +0 -4
- package/lib/icons/helper.js +0 -4
- package/lib/index-6f287e6c.d.ts +23 -0
- package/lib/index-a0c1207e.d.ts +15 -0
- package/lib/index-a68cfaf7.d.ts +23 -0
- package/lib/index-f6f0d3a8.d.ts +44 -0
- package/lib/index-f9981b49.d.ts +41 -0
- package/lib/inputs/base/InputTextBase.js +2 -4
- 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 +2 -6
- package/lib/inputs2/colorfield/index.d.ts +2 -2
- package/lib/inputs2/date/base/index.js +2 -6
- package/lib/inputs2/date/datefield/calendarbox.d.ts +1 -1
- package/lib/inputs2/date/datefield/context.d.ts +1 -0
- package/lib/inputs2/date/datefield/index.d.ts +1 -0
- package/lib/inputs2/date/datefield/index.js +6 -4
- package/lib/inputs2/date/datefield/types.d.ts +2 -0
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +1 -1
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +28 -0
- package/lib/inputs2/date/dateperiodfield/context.d.ts +1 -0
- package/lib/inputs2/date/dateperiodfield/index.d.ts +1 -0
- package/lib/inputs2/date/dateperiodfield/index.js +8 -7
- package/lib/inputs2/date/dateperiodfield/types.d.ts +2 -0
- package/lib/inputs2/date/helpers.d.ts +1 -0
- package/lib/inputs2/date/types.d.ts +2 -1
- package/lib/inputs2/index.d.ts +18 -15
- package/lib/inputs2/index.js +7 -5
- 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/number/BaseNumber.d.ts +2 -2
- package/lib/inputs2/number/Currency.d.ts +3 -3
- package/lib/inputs2/number/Decimal.d.ts +3 -3
- package/lib/inputs2/number/Number.d.ts +2 -2
- package/lib/inputs2/radiofield/index.d.ts +9 -0
- package/lib/inputs2/radiofield/index.js +143 -0
- package/lib/inputs2/radiofield/types.d.ts +33 -0
- package/lib/inputs2/radiofield/types.js +5 -0
- package/lib/inputs2/selectfield/index.d.ts +1 -1
- package/lib/inputs2/selectfield/index.js +5 -7
- 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 -2
- package/lib/inputs2/slot/index.d.ts +2 -2
- package/lib/inputs2/textfield/index.d.ts +1 -1
- package/lib/inputs2/textfield/index.js +6 -9
- package/lib/popover/PopoverText.js +2 -11
- package/lib/popover/types.d.ts +0 -1
- package/package.json +1 -1
- package/lib/BaseMask-3d5d581d.d.ts +0 -24
- package/lib/BaseNumber-797088d7.d.ts +0 -23
- package/lib/Cnpj-1602be21.d.ts +0 -18
- package/lib/Cpf-4d6b9079.d.ts +0 -18
- package/lib/Currency-b33d3a22.d.ts +0 -18
- package/lib/Decimal-55e836d5.d.ts +0 -13
- package/lib/Number-9c6aceff.d.ts +0 -20
- package/lib/Phone-79e5e3b4.d.ts +0 -18
- package/lib/ZipCode-8c2e9d8b.d.ts +0 -13
- package/lib/index-18a64236.d.ts +0 -23
- package/lib/index-43ad8140.d.ts +0 -41
- package/lib/index-772f9f1a.d.ts +0 -44
- package/lib/index-8a59cf4b.d.ts +0 -23
|
@@ -27,6 +27,7 @@ const CalendarBox = exports.CalendarBox = /*#__PURE__*/_react.default.forwardRef
|
|
|
27
27
|
handleChangeUpdateDateState,
|
|
28
28
|
handleChangeActiveDescendant
|
|
29
29
|
} = (0, _context.useDatePeriodFieldContext)();
|
|
30
|
+
// const [calendarBoxStyles, setCalendarBoxStyles] = React.useState<React.CSSProperties>({});
|
|
30
31
|
const {
|
|
31
32
|
calendarBoxStyles
|
|
32
33
|
} = (0, _constants.useCalendarPosition)(calendarBoxOpen, dateContainerRef);
|
|
@@ -49,6 +50,33 @@ const CalendarBox = exports.CalendarBox = /*#__PURE__*/_react.default.forwardRef
|
|
|
49
50
|
handleChangeActiveDescendant(daySelected.format(_helpers.TOKEN_ISO_FORMAT));
|
|
50
51
|
}
|
|
51
52
|
};
|
|
53
|
+
|
|
54
|
+
// React.useEffect(() => {
|
|
55
|
+
// const updatePosition = () => {
|
|
56
|
+
// const selectPositionOnScreen = dateContainerRef.current?.getBoundingClientRect();
|
|
57
|
+
// if (selectPositionOnScreen) {
|
|
58
|
+
// const { top, left, width, height } = selectPositionOnScreen;
|
|
59
|
+
// setCalendarBoxStyles({
|
|
60
|
+
// top: top + height + window.scrollY,
|
|
61
|
+
// left: left + window.scrollX,
|
|
62
|
+
// width: width,
|
|
63
|
+
// position: 'absolute',
|
|
64
|
+
// });
|
|
65
|
+
// }
|
|
66
|
+
// };
|
|
67
|
+
|
|
68
|
+
// if (calendarBoxOpen) {
|
|
69
|
+
// updatePosition();
|
|
70
|
+
// window.addEventListener('resize', updatePosition);
|
|
71
|
+
// window.addEventListener('scroll', updatePosition, true);
|
|
72
|
+
// }
|
|
73
|
+
|
|
74
|
+
// return () => {
|
|
75
|
+
// window.removeEventListener('resize', updatePosition);
|
|
76
|
+
// window.removeEventListener('scroll', updatePosition, true);
|
|
77
|
+
// };
|
|
78
|
+
// }, [calendarBoxOpen, dateContainerRef]);
|
|
79
|
+
|
|
52
80
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
53
81
|
ref: ref,
|
|
54
82
|
style: calendarBoxStyles,
|
|
@@ -6,6 +6,7 @@ import '../../../@types/ColorStyles.js';
|
|
|
6
6
|
import '../../../tooltip/types.js';
|
|
7
7
|
import '../../../@types/Position.js';
|
|
8
8
|
import '../../../@types/PermissionAttr.js';
|
|
9
|
+
import '../types.js';
|
|
9
10
|
|
|
10
11
|
declare const DatePeriodFieldContext: React__default.Context<DatePeriodContextProps>;
|
|
11
12
|
declare const useDatePeriodFieldContext: () => DatePeriodContextProps;
|
|
@@ -21,7 +21,7 @@ var _helpers2 = require("../helpers");
|
|
|
21
21
|
var _triggers = require("./triggers");
|
|
22
22
|
var _calendarbox = require("./calendarbox");
|
|
23
23
|
var _context = require("./context");
|
|
24
|
-
const _excluded = ["label", "errors", "initialName", "finalName", "onDeniedActions", "permissionAttr", "customClass", "customClassLabel", "customClassWrapper", "customClassInputContainer", "labelUppercase", "undigitable", "skeletonize", "hintPosition", "gridLayout", "themePopover", "popoverAlign", "showCalendarButton", "textAlign", "openCalendarOnFocus", "shouldCloseOnSelect", "showPredefinedPeriodsButton", "showClearDateButton", "placeholder", "tooltip", "tooltipPosition", "tooltipWidth"];
|
|
24
|
+
const _excluded = ["label", "errors", "initialName", "finalName", "onDeniedActions", "permissionAttr", "customClass", "customClassLabel", "customClassWrapper", "customClassInputContainer", "labelUppercase", "undigitable", "skeletonize", "hintPosition", "gridLayout", "themePopover", "popoverAlign", "showCalendarButton", "textAlign", "openCalendarOnFocus", "shouldCloseOnSelect", "showPredefinedPeriodsButton", "showClearDateButton", "placeholder", "returnValueType", "tooltip", "tooltipPosition", "tooltipWidth"];
|
|
25
25
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
26
26
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
27
27
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -55,6 +55,7 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, __)
|
|
|
55
55
|
showPredefinedPeriodsButton = true,
|
|
56
56
|
showClearDateButton = true,
|
|
57
57
|
placeholder = _helpers2.TOKEN_PTBR_FORMAT,
|
|
58
|
+
returnValueType = 'default',
|
|
58
59
|
tooltip,
|
|
59
60
|
tooltipPosition,
|
|
60
61
|
tooltipWidth
|
|
@@ -213,8 +214,8 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, __)
|
|
|
213
214
|
target: {
|
|
214
215
|
name: props.name,
|
|
215
216
|
value: {
|
|
216
|
-
[initialName]: inicial?.format(_helpers2.TOKEN_ISO_FORMAT),
|
|
217
|
-
[finalName]: final?.format(_helpers2.TOKEN_ISO_FORMAT)
|
|
217
|
+
[initialName]: returnValueType === 'default' ? inicial?.format(_helpers2.TOKEN_ISO_FORMAT) : inicial?.toISOString(),
|
|
218
|
+
[finalName]: returnValueType === 'default' ? final?.format(_helpers2.TOKEN_ISO_FORMAT) : final?.toISOString()
|
|
218
219
|
}
|
|
219
220
|
}
|
|
220
221
|
});
|
|
@@ -244,8 +245,8 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, __)
|
|
|
244
245
|
target: {
|
|
245
246
|
name: props.name,
|
|
246
247
|
value: {
|
|
247
|
-
[initialName]: inicial?.format(_helpers2.TOKEN_ISO_FORMAT),
|
|
248
|
-
[finalName]: final?.format(_helpers2.TOKEN_ISO_FORMAT)
|
|
248
|
+
[initialName]: returnValueType === 'default' ? inicial?.format(_helpers2.TOKEN_ISO_FORMAT) : inicial?.toISOString(),
|
|
249
|
+
[finalName]: returnValueType === 'default' ? final?.format(_helpers2.TOKEN_ISO_FORMAT) : final?.toISOString()
|
|
249
250
|
}
|
|
250
251
|
}
|
|
251
252
|
});
|
|
@@ -260,8 +261,8 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, __)
|
|
|
260
261
|
const handleChangeUpdateDateStateWithPredefinedPeriod = _react.default.useCallback(period => {
|
|
261
262
|
const localOnChange = (initialDate, finalDate) => {
|
|
262
263
|
const valueToUpdate = {
|
|
263
|
-
[initialName]: initialDate.format(_helpers2.TOKEN_ISO_FORMAT),
|
|
264
|
-
[finalName]: finalDate.format(_helpers2.TOKEN_ISO_FORMAT)
|
|
264
|
+
[initialName]: returnValueType === 'default' ? initialDate.format(_helpers2.TOKEN_ISO_FORMAT) : initialDate.toISOString(),
|
|
265
|
+
[finalName]: returnValueType === 'default' ? finalDate.format(_helpers2.TOKEN_ISO_FORMAT) : finalDate.toISOString()
|
|
265
266
|
};
|
|
266
267
|
setSelectedDate(() => {
|
|
267
268
|
const updatedState = {
|
|
@@ -5,6 +5,7 @@ import { ColorTheme } from '../../../@types/ColorStyles.js';
|
|
|
5
5
|
import { ITooltipCommonProps } from '../../../tooltip/types.js';
|
|
6
6
|
import { HintPosition, Position } from '../../../@types/Position.js';
|
|
7
7
|
import { PermissionAttr, OnDenied } from '../../../@types/PermissionAttr.js';
|
|
8
|
+
import { DateValueReturnType } from '../types.js';
|
|
8
9
|
|
|
9
10
|
type DatePeriodTypes = 'today' | 'week' | 'lastweek' | 'last15' | 'month' | 'lastmonth';
|
|
10
11
|
type PeriodOptions = {
|
|
@@ -47,6 +48,7 @@ interface DatePeriodFieldProps extends InputHTMLProps, ITooltipCommonProps {
|
|
|
47
48
|
shouldCloseOnSelect?: boolean;
|
|
48
49
|
showClearDateButton?: boolean;
|
|
49
50
|
showPredefinedPeriodsButton?: boolean;
|
|
51
|
+
returnValueType?: DateValueReturnType;
|
|
50
52
|
textAlign?: TextAlign;
|
|
51
53
|
hintPosition?: HintPosition;
|
|
52
54
|
themePopover?: ColorTheme;
|
|
@@ -7,6 +7,7 @@ import '../../@types/ColorStyles.js';
|
|
|
7
7
|
import '../../tooltip/types.js';
|
|
8
8
|
import '../../@types/Position.js';
|
|
9
9
|
import '../../@types/PermissionAttr.js';
|
|
10
|
+
import './types.js';
|
|
10
11
|
|
|
11
12
|
declare const TOKEN_MASK = "00/00/0000";
|
|
12
13
|
declare const TOKEN_ISO_FORMAT = "YYYY-MM-DD";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ColorTheme } from '../../@types/ColorStyles.js';
|
|
2
2
|
import { HintPosition, Position } from '../../@types/Position.js';
|
|
3
3
|
|
|
4
|
+
type DateValueReturnType = 'default' | 'iso';
|
|
4
5
|
declare enum Keys {
|
|
5
6
|
arrowLeft = "ArrowLeft",
|
|
6
7
|
arrowRight = "ArrowRight",
|
|
@@ -56,4 +57,4 @@ interface BaseDateInputTriggersProps extends React.ComponentPropsWithoutRef<'div
|
|
|
56
57
|
onClickTriggerCalendar: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
export { BaseDateInputContainerProps, BaseDateInputLabelProps, BaseDateInputProps, BaseDateInputRootProps, BaseDateInputTriggersProps, Keys };
|
|
60
|
+
export { BaseDateInputContainerProps, BaseDateInputLabelProps, BaseDateInputProps, BaseDateInputRootProps, BaseDateInputTriggersProps, DateValueReturnType, Keys };
|
package/lib/inputs2/index.d.ts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
export { i as TextField } from '../index-
|
|
1
|
+
export { i as TextField } from '../index-f6f0d3a8.js';
|
|
2
2
|
export { i as DateField } from '../index-368f781f.js';
|
|
3
|
-
export { i as
|
|
4
|
-
export { i as
|
|
5
|
-
export {
|
|
6
|
-
export { N as NumberField } from '../Number-9c6aceff.js';
|
|
7
|
-
export { D as DecimalField } from '../Decimal-55e836d5.js';
|
|
8
|
-
export { C as CurrencyField } from '../Currency-b33d3a22.js';
|
|
9
|
-
export { B as MaskField } from '../BaseMask-3d5d581d.js';
|
|
10
|
-
export { C as CpfField } from '../Cpf-4d6b9079.js';
|
|
11
|
-
export { C as CnpjField } from '../Cnpj-1602be21.js';
|
|
12
|
-
export { P as PhoneField } from '../Phone-79e5e3b4.js';
|
|
13
|
-
export { Z as ZipCodeField } from '../ZipCode-8c2e9d8b.js';
|
|
14
|
-
export { i as CheckboxField } from '../index-43ad8140.js';
|
|
3
|
+
export { i as RadioField } from '../index-a0c1207e.js';
|
|
4
|
+
export { i as SelectField } from '../index-a68cfaf7.js';
|
|
5
|
+
export { i as CheckboxField } from '../index-f9981b49.js';
|
|
15
6
|
export { i as DatePeriodField } from '../index-c9247c1f.js';
|
|
7
|
+
export { i as ColorField } from '../index-6f287e6c.js';
|
|
8
|
+
export { B as BaseMaskNumber } from '../BaseNumber-ba047ec3.js';
|
|
9
|
+
export { N as NumberField } from '../Number-4783f0de.js';
|
|
10
|
+
export { D as DecimalField } from '../Decimal-deda637f.js';
|
|
11
|
+
export { C as CurrencyField } from '../Currency-d8dae30c.js';
|
|
12
|
+
export { B as MaskField } from '../BaseMask-4885b7c4.js';
|
|
13
|
+
export { C as CpfField } from '../Cpf-0e03d85a.js';
|
|
14
|
+
export { C as CnpjField } from '../Cnpj-501f8fed.js';
|
|
15
|
+
export { P as PhoneField } from '../Phone-99e92c22.js';
|
|
16
|
+
export { Z as ZipCodeField } from '../ZipCode-3d092264.js';
|
|
16
17
|
import 'react';
|
|
17
18
|
import '../@types/Align.js';
|
|
18
19
|
import '../@types/ColorStyles.js';
|
|
@@ -22,8 +23,10 @@ import './slot/index.js';
|
|
|
22
23
|
import '../tooltip/types.js';
|
|
23
24
|
import './date/datefield/types.js';
|
|
24
25
|
import 'moment';
|
|
26
|
+
import './date/types.js';
|
|
27
|
+
import './radiofield/types.js';
|
|
28
|
+
import '../@types/Size.js';
|
|
25
29
|
import './selectfield/item.js';
|
|
26
30
|
import './selectfield/types.js';
|
|
27
|
-
import 'imask';
|
|
28
|
-
import '../@types/Size.js';
|
|
29
31
|
import './date/dateperiodfield/types.js';
|
|
32
|
+
import 'imask';
|
package/lib/inputs2/index.js
CHANGED
|
@@ -3,13 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.ZipCodeField = exports.TextField = exports.SelectField = exports.PhoneField = exports.NumberField = exports.MaskField = exports.DecimalField = exports.DatePeriodField = exports.DateField = exports.CurrencyField = exports.CpfField = exports.ColorField = exports.CnpjField = exports.CheckboxField = exports.BaseMaskNumber = void 0;
|
|
6
|
+
exports.ZipCodeField = exports.TextField = exports.SelectField = exports.RadioField = exports.PhoneField = exports.NumberField = exports.MaskField = exports.DecimalField = exports.DatePeriodField = exports.DateField = exports.CurrencyField = exports.CpfField = exports.ColorField = exports.CnpjField = exports.CheckboxField = exports.BaseMaskNumber = void 0;
|
|
7
7
|
var TextField = _interopRequireWildcard(require("./textfield"));
|
|
8
8
|
exports.TextField = TextField;
|
|
9
9
|
var DateField = _interopRequireWildcard(require("./date/datefield"));
|
|
10
10
|
exports.DateField = DateField;
|
|
11
|
+
var RadioField = _interopRequireWildcard(require("./radiofield"));
|
|
12
|
+
exports.RadioField = RadioField;
|
|
11
13
|
var SelectField = _interopRequireWildcard(require("./selectfield"));
|
|
12
14
|
exports.SelectField = SelectField;
|
|
15
|
+
var CheckboxField = _interopRequireWildcard(require("./checkboxfield"));
|
|
16
|
+
exports.CheckboxField = CheckboxField;
|
|
17
|
+
var DatePeriodField = _interopRequireWildcard(require("./date/dateperiodfield"));
|
|
18
|
+
exports.DatePeriodField = DatePeriodField;
|
|
13
19
|
var ColorField = _interopRequireWildcard(require("./colorfield"));
|
|
14
20
|
exports.ColorField = ColorField;
|
|
15
21
|
var BaseMaskNumber = _interopRequireWildcard(require("./number/BaseNumber"));
|
|
@@ -30,9 +36,5 @@ var PhoneField = _interopRequireWildcard(require("./mask/Phone"));
|
|
|
30
36
|
exports.PhoneField = PhoneField;
|
|
31
37
|
var ZipCodeField = _interopRequireWildcard(require("./mask/ZipCode"));
|
|
32
38
|
exports.ZipCodeField = ZipCodeField;
|
|
33
|
-
var CheckboxField = _interopRequireWildcard(require("./checkboxfield"));
|
|
34
|
-
exports.CheckboxField = CheckboxField;
|
|
35
|
-
var DatePeriodField = _interopRequireWildcard(require("./date/dateperiodfield"));
|
|
36
|
-
exports.DatePeriodField = DatePeriodField;
|
|
37
39
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
38
40
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
import '../../index-
|
|
2
|
+
import '../../index-f6f0d3a8.js';
|
|
3
3
|
import 'imask';
|
|
4
|
-
export { I as Input, M as MaskFieldProps } from '../../BaseMask-
|
|
4
|
+
export { I as Input, M as MaskFieldProps } from '../../BaseMask-4885b7c4.js';
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/ColorStyles.js';
|
|
7
7
|
import '../../@types/Position.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
import '../../BaseMask-
|
|
3
|
-
export { a as CnpjFieldProps, I as Input } from '../../Cnpj-
|
|
4
|
-
import '../../index-
|
|
2
|
+
import '../../BaseMask-4885b7c4.js';
|
|
3
|
+
export { a as CnpjFieldProps, I as Input } from '../../Cnpj-501f8fed.js';
|
|
4
|
+
import '../../index-f6f0d3a8.js';
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/ColorStyles.js';
|
|
7
7
|
import '../../@types/Position.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
import '../../BaseMask-
|
|
3
|
-
export { a as CpfFieldProps, I as Input } from '../../Cpf-
|
|
4
|
-
import '../../index-
|
|
2
|
+
import '../../BaseMask-4885b7c4.js';
|
|
3
|
+
export { a as CpfFieldProps, I as Input } from '../../Cpf-0e03d85a.js';
|
|
4
|
+
import '../../index-f6f0d3a8.js';
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/ColorStyles.js';
|
|
7
7
|
import '../../@types/Position.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
import '../../BaseMask-
|
|
3
|
-
export { I as Input, a as PhoneFieldProps } from '../../Phone-
|
|
4
|
-
import '../../index-
|
|
2
|
+
import '../../BaseMask-4885b7c4.js';
|
|
3
|
+
export { I as Input, a as PhoneFieldProps } from '../../Phone-99e92c22.js';
|
|
4
|
+
import '../../index-f6f0d3a8.js';
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/ColorStyles.js';
|
|
7
7
|
import '../../@types/Position.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
import '../../BaseMask-
|
|
3
|
-
export { I as Input } from '../../ZipCode-
|
|
4
|
-
import '../../index-
|
|
2
|
+
import '../../BaseMask-4885b7c4.js';
|
|
3
|
+
export { I as Input } from '../../ZipCode-3d092264.js';
|
|
4
|
+
import '../../index-f6f0d3a8.js';
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/ColorStyles.js';
|
|
7
7
|
import '../../@types/Position.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'imask';
|
|
3
|
-
import '../../index-
|
|
4
|
-
export { a as BaseNumberFieldProps, I as Input } from '../../BaseNumber-
|
|
3
|
+
import '../../index-f6f0d3a8.js';
|
|
4
|
+
export { a as BaseNumberFieldProps, I as Input } from '../../BaseNumber-ba047ec3.js';
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/ColorStyles.js';
|
|
7
7
|
import '../../@types/Position.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
import '../../BaseNumber-
|
|
3
|
-
export { I as Input } from '../../Currency-
|
|
2
|
+
import '../../BaseNumber-ba047ec3.js';
|
|
3
|
+
export { I as Input } from '../../Currency-d8dae30c.js';
|
|
4
4
|
import 'imask';
|
|
5
|
-
import '../../index-
|
|
5
|
+
import '../../index-f6f0d3a8.js';
|
|
6
6
|
import '../../@types/Align.js';
|
|
7
7
|
import '../../@types/ColorStyles.js';
|
|
8
8
|
import '../../@types/Position.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
import '../../BaseNumber-
|
|
3
|
-
export { I as Input } from '../../Decimal-
|
|
2
|
+
import '../../BaseNumber-ba047ec3.js';
|
|
3
|
+
export { I as Input } from '../../Decimal-deda637f.js';
|
|
4
4
|
import 'imask';
|
|
5
|
-
import '../../index-
|
|
5
|
+
import '../../index-f6f0d3a8.js';
|
|
6
6
|
import '../../@types/Align.js';
|
|
7
7
|
import '../../@types/ColorStyles.js';
|
|
8
8
|
import '../../@types/Position.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
import '../../index-
|
|
3
|
-
export { I as Input, a as NumberFieldProps } from '../../Number-
|
|
2
|
+
import '../../index-f6f0d3a8.js';
|
|
3
|
+
export { I as Input, a as NumberFieldProps } from '../../Number-4783f0de.js';
|
|
4
4
|
import '../../@types/Align.js';
|
|
5
5
|
import '../../@types/ColorStyles.js';
|
|
6
6
|
import '../../@types/Position.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
export { RadioFieldInputProps } from './types.js';
|
|
3
|
+
export { I as Input } from '../../index-a0c1207e.js';
|
|
4
|
+
import '../../@types/Size.js';
|
|
5
|
+
import '../../@types/Align.js';
|
|
6
|
+
import '../../@types/ColorStyles.js';
|
|
7
|
+
import '../../tooltip/types.js';
|
|
8
|
+
import '../../@types/Position.js';
|
|
9
|
+
import '../../@types/PermissionAttr.js';
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Input = void 0;
|
|
7
|
+
require("../../assets/styles/radiofield.scss");
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _lodash = _interopRequireDefault(require("lodash"));
|
|
10
|
+
var _uuid = require("uuid");
|
|
11
|
+
var _hint = _interopRequireDefault(require("../../hint"));
|
|
12
|
+
var _popover = _interopRequireDefault(require("../../popover"));
|
|
13
|
+
var _gridlayout = _interopRequireDefault(require("../../gridlayout"));
|
|
14
|
+
var Tooltip = _interopRequireWildcard(require("../../tooltip"));
|
|
15
|
+
var _permissionValidations = require("../../permissionValidations");
|
|
16
|
+
const _excluded = ["label", "errors", "tooltip", "tooltipPosition", "tooltipWidth", "hint", "gridLayout", "size", "onDeniedActions", "permissionAttr", "labelUppercase", "customClassLabel", "customClassInputContainer", "customClass", "customClassWrapper", "textAlign", "skeletonize", "hintPosition", "themePopover", "popoverAlign"];
|
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
|
+
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); }
|
|
21
|
+
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; }
|
|
22
|
+
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; }
|
|
23
|
+
const options = [_permissionValidations.OPTIONS_ON_DENIED.disabled, _permissionValidations.OPTIONS_ON_DENIED.unvisible, _permissionValidations.OPTIONS_ON_DENIED.readOnly, _permissionValidations.OPTIONS_ON_DENIED.hideContent];
|
|
24
|
+
const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
25
|
+
const {
|
|
26
|
+
label,
|
|
27
|
+
errors,
|
|
28
|
+
tooltip,
|
|
29
|
+
tooltipPosition,
|
|
30
|
+
tooltipWidth,
|
|
31
|
+
hint,
|
|
32
|
+
gridLayout,
|
|
33
|
+
size = 'medium',
|
|
34
|
+
onDeniedActions = undefined,
|
|
35
|
+
permissionAttr = undefined,
|
|
36
|
+
labelUppercase = false,
|
|
37
|
+
customClassLabel = '',
|
|
38
|
+
customClassInputContainer = '',
|
|
39
|
+
customClass = '',
|
|
40
|
+
customClassWrapper = '',
|
|
41
|
+
textAlign = 'left',
|
|
42
|
+
skeletonize = false,
|
|
43
|
+
hintPosition = 'below',
|
|
44
|
+
themePopover = 'light',
|
|
45
|
+
popoverAlign = 'left'
|
|
46
|
+
} = props,
|
|
47
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
48
|
+
const onDenied = _react.default.useMemo(() => {
|
|
49
|
+
return onDeniedActions || (0, _permissionValidations.actionsOnPermissionDenied)(options, permissionAttr);
|
|
50
|
+
}, [onDeniedActions, permissionAttr]);
|
|
51
|
+
const {
|
|
52
|
+
hideContent,
|
|
53
|
+
unvisible
|
|
54
|
+
} = onDenied;
|
|
55
|
+
const inputContainerRef = _react.default.useRef(null);
|
|
56
|
+
const inputId = _react.default.useMemo(() => props.id || props.name || (0, _uuid.v1)(), [props.id, props.name]);
|
|
57
|
+
const hasLabel = !_lodash.default.isEmpty(props?.label);
|
|
58
|
+
const isReadOnly = Boolean(props.readOnly || onDenied.readOnly);
|
|
59
|
+
const isDisabled = Boolean(props.disabled || onDenied.disabled);
|
|
60
|
+
const hasHintMessages = Boolean(hint?.length);
|
|
61
|
+
const hasValidationErrors = Boolean(errors?.length);
|
|
62
|
+
const handleOnChange = event => {
|
|
63
|
+
if (isReadOnly) {
|
|
64
|
+
event.preventDefault();
|
|
65
|
+
event.stopPropagation();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
rest.onChange?.(event);
|
|
69
|
+
};
|
|
70
|
+
const handleOnClick = event => {
|
|
71
|
+
if (isReadOnly) {
|
|
72
|
+
event.preventDefault();
|
|
73
|
+
event.stopPropagation();
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
rest.onClick?.(event);
|
|
77
|
+
};
|
|
78
|
+
if (unvisible || hideContent) return null;
|
|
79
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_gridlayout.default, {
|
|
80
|
+
cols: gridLayout
|
|
81
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
82
|
+
"data-testid": "test-radio-field-root",
|
|
83
|
+
"data-state-error": hasValidationErrors,
|
|
84
|
+
className: `radio-field-root ${customClassWrapper}`
|
|
85
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
86
|
+
ref: inputContainerRef,
|
|
87
|
+
"data-state-skeletonize": skeletonize,
|
|
88
|
+
className: `container ${customClassInputContainer}`
|
|
89
|
+
}, /*#__PURE__*/_react.default.createElement("input", _extends({
|
|
90
|
+
"data-testid": "test-radio-field-input"
|
|
91
|
+
}, rest, {
|
|
92
|
+
ref: ref,
|
|
93
|
+
id: inputId,
|
|
94
|
+
type: "radio",
|
|
95
|
+
readOnly: isReadOnly,
|
|
96
|
+
disabled: isDisabled || isReadOnly,
|
|
97
|
+
className: `input ${customClass}`,
|
|
98
|
+
tabIndex: !isReadOnly ? 0 : -1,
|
|
99
|
+
placeholder: rest.placeholder,
|
|
100
|
+
"data-state-size": size,
|
|
101
|
+
"data-state-error": hasValidationErrors,
|
|
102
|
+
"data-state-read-only": isReadOnly,
|
|
103
|
+
"data-state-text-align": textAlign,
|
|
104
|
+
"data-state-skeletonize": skeletonize,
|
|
105
|
+
onClick: handleOnClick,
|
|
106
|
+
onChange: handleOnChange
|
|
107
|
+
})), hasLabel && /*#__PURE__*/_react.default.createElement("span", {
|
|
108
|
+
className: `root-label ${customClassLabel}`,
|
|
109
|
+
"data-state-skeletonize": skeletonize
|
|
110
|
+
}, /*#__PURE__*/_react.default.createElement("label", {
|
|
111
|
+
className: "label",
|
|
112
|
+
title: label,
|
|
113
|
+
htmlFor: inputId,
|
|
114
|
+
"data-state-disabled": isDisabled,
|
|
115
|
+
"data-state-read-only": isReadOnly,
|
|
116
|
+
"data-state-input-required": props.required,
|
|
117
|
+
"data-state-label-uppercase": labelUppercase
|
|
118
|
+
}, label), hasHintMessages && hintPosition === 'onLabelRight' && !skeletonize && /*#__PURE__*/_react.default.createElement(_popover.default, {
|
|
119
|
+
customClass: "label-popover",
|
|
120
|
+
theme: themePopover,
|
|
121
|
+
align: popoverAlign,
|
|
122
|
+
iconColor: "#03bde2"
|
|
123
|
+
}, hint))), hintPosition === 'below' && /*#__PURE__*/_react.default.createElement(_hint.default, {
|
|
124
|
+
customClass: "hint",
|
|
125
|
+
description: hint,
|
|
126
|
+
disabled: isDisabled,
|
|
127
|
+
skeletonize: skeletonize,
|
|
128
|
+
visible: hasHintMessages
|
|
129
|
+
}), hasValidationErrors && /*#__PURE__*/_react.default.createElement("span", {
|
|
130
|
+
"data-testid": "test-radio-field-list-errors",
|
|
131
|
+
className: "error",
|
|
132
|
+
"data-state-skeletonize": skeletonize,
|
|
133
|
+
"aria-describedby": String(props.name).concat('-errors')
|
|
134
|
+
}, errors?.map((error, index) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
135
|
+
key: `${index + 1}-${error}`
|
|
136
|
+
}, error, "\xA0"))))), /*#__PURE__*/_react.default.createElement(Tooltip.Tooltip, {
|
|
137
|
+
targetRef: inputContainerRef,
|
|
138
|
+
text: tooltip,
|
|
139
|
+
width: tooltipWidth,
|
|
140
|
+
position: tooltipPosition
|
|
141
|
+
}));
|
|
142
|
+
});
|
|
143
|
+
Input.displayName = 'RadioFieldInput';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Size } from '../../@types/Size.js';
|
|
3
|
+
import { TextAlign } from '../../@types/Align.js';
|
|
4
|
+
import { ColorTheme } from '../../@types/ColorStyles.js';
|
|
5
|
+
import { ITooltipCommonProps } from '../../tooltip/types.js';
|
|
6
|
+
import { HintPosition, Position } from '../../@types/Position.js';
|
|
7
|
+
import { PermissionAttr, OnDenied } from '../../@types/PermissionAttr.js';
|
|
8
|
+
|
|
9
|
+
type RadioValue = string | number | boolean | null;
|
|
10
|
+
type InputHTMLProps = Omit<React__default.ComponentPropsWithRef<'input'>, 'multiple' | 'type' | 'size'>;
|
|
11
|
+
interface RadioFieldInputProps extends InputHTMLProps, ITooltipCommonProps {
|
|
12
|
+
hint?: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
errors?: string[];
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
customClass?: string;
|
|
17
|
+
skeletonize?: boolean;
|
|
18
|
+
labelUppercase?: boolean;
|
|
19
|
+
customClassLabel?: string;
|
|
20
|
+
customClassWrapper?: string;
|
|
21
|
+
gridLayout?: string;
|
|
22
|
+
customClassInputContainer?: string;
|
|
23
|
+
getFieldValue?: (name: string) => any;
|
|
24
|
+
size?: Extract<Size, 'small' | 'medium' | 'large'>;
|
|
25
|
+
textAlign?: TextAlign;
|
|
26
|
+
hintPosition?: HintPosition;
|
|
27
|
+
themePopover?: ColorTheme;
|
|
28
|
+
popoverAlign?: Extract<Position, 'left' | 'right'>;
|
|
29
|
+
permissionAttr?: PermissionAttr;
|
|
30
|
+
onDeniedActions?: OnDenied;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { RadioFieldInputProps, RadioValue };
|
|
@@ -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-a68cfaf7.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 = _interopRequireDefault(require("../../popover"));
|
|
33
33
|
var _tooltip = require("../../tooltip");
|
|
34
34
|
var _helpers = require("../../form2/helpers");
|
|
35
35
|
var _permissionValidations = require("../../permissionValidations");
|
|
@@ -41,7 +41,7 @@ var _context = require("./context");
|
|
|
41
41
|
var _item = require("./item");
|
|
42
42
|
var _types = require("./types");
|
|
43
43
|
var _helpers2 = require("./helpers");
|
|
44
|
-
const _excluded = ["name", "label", "errors", "children", "gridLayout", "onChange", "tooltip", "tooltipPosition", "tooltipWidth", "hintPosition", "themePopover", "popoverAlign", "skeletonize", "striped", "undigitable", "externalSearch", "openDropdownOnFocus", "showClearButton", "textAlign", "searchOnDropdown", "onSearch", "permissionAttr", "customClass", "customClassLabel", "customClassWrapper", "customClassInputContainer", "onDeniedActions", "notFoundFilterLabel", "multipleInputLabelEmpty", "
|
|
44
|
+
const _excluded = ["name", "label", "errors", "children", "gridLayout", "onChange", "tooltip", "tooltipPosition", "tooltipWidth", "hintPosition", "themePopover", "popoverAlign", "skeletonize", "striped", "undigitable", "externalSearch", "openDropdownOnFocus", "showClearButton", "textAlign", "searchOnDropdown", "onSearch", "permissionAttr", "customClass", "customClassLabel", "customClassWrapper", "customClassInputContainer", "onDeniedActions", "notFoundFilterLabel", "multipleInputLabelEmpty", "multipleInputLabelManySelection", "searchInputPlaceholder", "dropdownAlignButton"];
|
|
45
45
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
46
46
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
47
47
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -80,7 +80,6 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref
|
|
|
80
80
|
onDeniedActions = undefined,
|
|
81
81
|
notFoundFilterLabel = 'Nenhuma opção encontrada.',
|
|
82
82
|
multipleInputLabelEmpty = 'Nenhum registro selecionado',
|
|
83
|
-
multipleInputLabelOneSelection = 'Um registro selecionado',
|
|
84
83
|
multipleInputLabelManySelection = 'Múltiplos registros selecionados',
|
|
85
84
|
searchInputPlaceholder = 'Pesquisar registros',
|
|
86
85
|
dropdownAlignButton = 'left'
|
|
@@ -134,11 +133,12 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref
|
|
|
134
133
|
const lazyInputValue = listOptionsMap.get(rest.value);
|
|
135
134
|
if (!isMultipleWithCheckboxes) setInputValue(lazyInputValue ?? '');
|
|
136
135
|
if (isMultipleWithCheckboxes) {
|
|
136
|
+
const firstSelectionLabel = listOptionsMap.get(props?.value[0]);
|
|
137
137
|
switch (_lodash.default.size(props?.value)) {
|
|
138
138
|
case 0:
|
|
139
139
|
return setInputValue(multipleInputLabelEmpty);
|
|
140
140
|
case 1:
|
|
141
|
-
return setInputValue(
|
|
141
|
+
return setInputValue(firstSelectionLabel ?? '');
|
|
142
142
|
default:
|
|
143
143
|
return setInputValue(multipleInputLabelManySelection);
|
|
144
144
|
}
|
|
@@ -418,9 +418,7 @@ const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref
|
|
|
418
418
|
theme: themePopover,
|
|
419
419
|
align: popoverAlign,
|
|
420
420
|
iconColor: "#03bde2"
|
|
421
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
422
|
-
text: props?.hint ?? ''
|
|
423
|
-
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
421
|
+
}, props?.hint)), /*#__PURE__*/_react.default.createElement("div", {
|
|
424
422
|
ref: selectContainerRef,
|
|
425
423
|
className: `container ${customClassInputContainer}`,
|
|
426
424
|
"aria-expanded": listBoxOpen,
|