linear-react-components-ui 1.1.24-rc.2 → 1.1.25-beta.10

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.
Files changed (100) hide show
  1. package/lib/{BaseMask-0c14ef51.d.ts → BaseMask-78847f45.d.ts} +1 -1
  2. package/lib/{Cnpj-bde01dd0.d.ts → Cnpj-8366781f.d.ts} +1 -1
  3. package/lib/{Cpf-3fa496ad.d.ts → Cpf-3dfd54eb.d.ts} +1 -1
  4. package/lib/{Phone-2bb0b397.d.ts → Phone-1962c0f2.d.ts} +1 -1
  5. package/lib/{ZipCode-09460e18.d.ts → ZipCode-be9c5b3b.d.ts} +1 -1
  6. package/lib/assets/styles/button.scss +1 -1
  7. package/lib/assets/styles/calendar.scss +3 -3
  8. package/lib/assets/styles/datepicker2.scss +7 -3
  9. package/lib/assets/styles/dialog.scss +1 -1
  10. package/lib/assets/styles/drawers.scss +1 -2
  11. package/lib/assets/styles/fieldset.scss +1 -1
  12. package/lib/assets/styles/gridlayout.scss +20 -19
  13. package/lib/assets/styles/multiSelect.scss +6 -6
  14. package/lib/assets/styles/periodpicker.scss +1 -1
  15. package/lib/assets/styles/radio.scss +114 -87
  16. package/lib/assets/styles/selectfield.scss +7 -3
  17. package/lib/assets/styles/split.scss +1 -1
  18. package/lib/assets/styles/table.scss +6 -0
  19. package/lib/assets/styles/tabs.scss +6 -2
  20. package/lib/assets/styles/textfield.scss +7 -3
  21. package/lib/assets/styles/tooltip.scss +5 -4
  22. package/lib/buttons/DefaultButton.js +1 -1
  23. package/lib/checkbox/index.js +3 -1
  24. package/lib/checkbox/types.d.ts +1 -0
  25. package/lib/dialog/base/index.js +20 -22
  26. package/lib/dialog/form/index.js +6 -4
  27. package/lib/drawer/Drawer.js +2 -3
  28. package/lib/drawer/index.js +1 -1
  29. package/lib/icons/helper.d.ts +12 -0
  30. package/lib/icons/helper.js +12 -0
  31. package/lib/{index-3b70931d.d.ts → index-02a27c19.d.ts} +2 -20
  32. package/lib/index-053f615b.d.ts +26 -0
  33. package/lib/{index-7dfa8924.d.ts → index-25b80f32.d.ts} +1 -1
  34. package/lib/{index-9e576346.d.ts → index-6f5c772d.d.ts} +1 -1
  35. package/lib/{index-208e7f62.d.ts → index-6fcf446c.d.ts} +2 -20
  36. package/lib/index-7159df18.d.ts +21 -0
  37. package/lib/{index-e71434f9.d.ts → index-afb7b5a9.d.ts} +1 -1
  38. package/lib/inputs/date/index.js +3 -6
  39. package/lib/inputs/multiSelect/Dropdown.js +4 -3
  40. package/lib/inputs/multiSelect/index.js +23 -5
  41. package/lib/inputs/multiSelect/types.d.ts +2 -0
  42. package/lib/inputs/period/PeriodList.js +3 -12
  43. package/lib/inputs/period/index.js +97 -124
  44. package/lib/inputs/search/index.js +6 -2
  45. package/lib/inputs/select/multiple/index.js +3 -2
  46. package/lib/inputs/select/simple/index.js +4 -3
  47. package/lib/inputs/select/types.d.ts +1 -0
  48. package/lib/inputs/types.d.ts +1 -0
  49. package/lib/inputs2/checkboxfield/base.d.ts +29 -0
  50. package/lib/inputs2/checkboxfield/base.js +134 -0
  51. package/lib/inputs2/checkboxfield/index.d.ts +3 -2
  52. package/lib/inputs2/checkboxfield/index.js +32 -124
  53. package/lib/inputs2/colorfield/index.d.ts +6 -5
  54. package/lib/inputs2/date/datefield/base.d.ts +13 -0
  55. package/lib/inputs2/date/datefield/base.js +330 -0
  56. package/lib/inputs2/date/datefield/index.js +34 -322
  57. package/lib/inputs2/date/datefield/types.d.ts +5 -3
  58. package/lib/inputs2/date/dateperiodfield/base.d.ts +13 -0
  59. package/lib/inputs2/date/dateperiodfield/base.js +595 -0
  60. package/lib/inputs2/date/dateperiodfield/index.js +34 -587
  61. package/lib/inputs2/date/dateperiodfield/types.d.ts +5 -3
  62. package/lib/inputs2/filefield/index.d.ts +6 -5
  63. package/lib/inputs2/index.d.ts +18 -15
  64. package/lib/inputs2/mask/BaseMask.d.ts +6 -5
  65. package/lib/inputs2/mask/Cnpj.d.ts +7 -6
  66. package/lib/inputs2/mask/Cpf.d.ts +7 -6
  67. package/lib/inputs2/mask/Phone.d.ts +7 -6
  68. package/lib/inputs2/mask/ZipCode.d.ts +7 -6
  69. package/lib/inputs2/numberfield/currency.d.ts +5 -4
  70. package/lib/inputs2/numberfield/decimal.d.ts +5 -4
  71. package/lib/inputs2/numberfield/index.d.ts +5 -4
  72. package/lib/inputs2/numberfield/index.js +19 -2
  73. package/lib/inputs2/numberfield/types.d.ts +5 -4
  74. package/lib/inputs2/radiofield/base.d.ts +12 -0
  75. package/lib/inputs2/radiofield/base.js +156 -0
  76. package/lib/inputs2/radiofield/index.d.ts +1 -1
  77. package/lib/inputs2/radiofield/index.js +30 -119
  78. package/lib/inputs2/radiofield/types.d.ts +6 -3
  79. package/lib/inputs2/selectfield/base.d.ts +11 -0
  80. package/lib/inputs2/selectfield/base.js +513 -0
  81. package/lib/inputs2/selectfield/index.d.ts +1 -1
  82. package/lib/inputs2/selectfield/index.js +35 -502
  83. package/lib/inputs2/selectfield/types.d.ts +8 -6
  84. package/lib/inputs2/textareafield/base.d.ts +26 -0
  85. package/lib/inputs2/textareafield/base.js +166 -0
  86. package/lib/inputs2/textareafield/index.d.ts +4 -3
  87. package/lib/inputs2/textareafield/index.js +30 -154
  88. package/lib/inputs2/textfield/base.d.ts +26 -0
  89. package/lib/inputs2/textfield/base.js +131 -0
  90. package/lib/inputs2/textfield/index.d.ts +5 -4
  91. package/lib/inputs2/textfield/index.js +30 -120
  92. package/lib/radio/index.js +8 -7
  93. package/lib/table/index.js +18 -8
  94. package/lib/table/types.d.ts +1 -0
  95. package/lib/tabs/index.js +2 -2
  96. package/lib/tooltip/TooltipContent.js +1 -1
  97. package/lib/tooltip/useTooltip.js +25 -0
  98. package/package.json +1 -1
  99. package/lib/index-299f841a.d.ts +0 -41
  100. package/lib/index-cd005ed1.d.ts +0 -26
@@ -40,6 +40,7 @@ interface ICheckBoxProps {
40
40
  targetSpanRef?: (ref: HTMLSpanElement | null) => void;
41
41
  errorMessages?: string[] | undefined;
42
42
  customClassForLabel?: string;
43
+ tabIndex?: number;
43
44
  themePopover?: 'light' | 'dark';
44
45
  popoverAlign?: 'right' | 'left';
45
46
  }
@@ -4,15 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = exports.DialogContext = void 0;
7
- var _react = _interopRequireWildcard(require("react"));
7
+ require("../../assets/styles/dialog.scss");
8
+ var _react = _interopRequireDefault(require("react"));
8
9
  var _reactDom = _interopRequireDefault(require("react-dom"));
9
10
  var uuid = _interopRequireWildcard(require("uuid"));
10
11
  var _style = _interopRequireDefault(require("./style"));
11
- require("../../assets/styles/dialog.scss");
12
12
  var _form = require("../form");
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
13
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
15
- const DialogContext = exports.DialogContext = /*#__PURE__*/(0, _react.createContext)({});
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
+ const DialogContext = exports.DialogContext = /*#__PURE__*/_react.default.createContext({});
16
16
  const {
17
17
  body
18
18
  } = document;
@@ -33,23 +33,23 @@ const BaseDialog = props => {
33
33
  } = props;
34
34
  const {
35
35
  headerRef
36
- } = (0, _react.useContext)(_form.FormDialogContext);
37
- const [isDragging, setIsDragging] = (0, _react.useState)(false);
38
- const [open = true, setOpen] = (0, _react.useState)(openProp);
39
- const wrapperEl = (0, _react.useRef)(null);
40
- const modalContainerRef = (0, _react.useRef)(null);
41
- const focusableElementsRef = (0, _react.useRef)([]);
36
+ } = _react.default.useContext(_form.FormDialogContext);
37
+ const [open = true, setOpen] = _react.default.useState(openProp);
38
+ const [isDragging, setIsDragging] = _react.default.useState(false);
39
+ const wrapperEl = _react.default.useRef(null);
40
+ const modalContainerRef = _react.default.useRef(null);
41
+ const focusableElementsRef = _react.default.useRef([]);
42
42
  if (openProp !== undefined && openProp !== open) {
43
43
  setOpen(openProp);
44
44
  }
45
- const handleClose = () => {
45
+ const handleClose = _react.default.useCallback(() => {
46
46
  if (openProp !== undefined && onOpenChange) {
47
47
  onOpenChange(false);
48
48
  } else {
49
49
  if (handlerClose) handlerClose();
50
50
  if (onOpenChange) onOpenChange(false);
51
51
  }
52
- };
52
+ }, [openProp, onOpenChange, handlerClose]);
53
53
  const handleClickOutside = event => {
54
54
  if (!closeOnOutsideClick) return;
55
55
  const target = event.target;
@@ -58,17 +58,15 @@ const BaseDialog = props => {
58
58
  handleClose();
59
59
  }
60
60
  };
61
- const onKeyDownPress = event => {
61
+ const onKeyDownPress = _react.default.useCallback(event => {
62
62
  if ((event === null || event === void 0 ? void 0 : event.key) === 'Escape') {
63
63
  event.stopPropagation();
64
64
  handleClose();
65
65
  }
66
- };
67
- (0, _react.useEffect)(() => {
66
+ }, [handleClose]);
67
+ _react.default.useEffect(() => {
68
68
  if (open && modalContainerRef.current) {
69
- var _focusableElementsRef;
70
69
  focusableElementsRef.current = Array.from(modalContainerRef.current.querySelectorAll("button, a, input, select, textarea, [tabindex]:not([tabindex='-1'])"));
71
- (_focusableElementsRef = focusableElementsRef.current[0]) === null || _focusableElementsRef === void 0 ? void 0 : _focusableElementsRef.focus();
72
70
  }
73
71
  }, [open]);
74
72
  const onDialogPositionChange = _ref => {
@@ -151,7 +149,7 @@ const BaseDialog = props => {
151
149
  style: (0, _style.default)(props),
152
150
  ref: wrapperEl
153
151
  }, children)));
154
- (0, _react.useLayoutEffect)(() => {
152
+ _react.default.useLayoutEffect(() => {
155
153
  const {
156
154
  activeElement
157
155
  } = document;
@@ -160,7 +158,7 @@ const BaseDialog = props => {
160
158
  lastElementActiveBeforeOpen === null || lastElementActiveBeforeOpen === void 0 ? void 0 : lastElementActiveBeforeOpen.focus();
161
159
  };
162
160
  }, []);
163
- (0, _react.useEffect)(() => {
161
+ _react.default.useEffect(() => {
164
162
  if (open) {
165
163
  if (closeOnEsc) {
166
164
  document.addEventListener('keydown', onKeyDownPress);
@@ -169,8 +167,8 @@ const BaseDialog = props => {
169
167
  return () => {
170
168
  document.removeEventListener('keydown', onKeyDownPress);
171
169
  };
172
- }, [open, closeOnEsc]);
173
- (0, _react.useEffect)(() => {
170
+ }, [open, closeOnEsc, onKeyDownPress]);
171
+ _react.default.useEffect(() => {
174
172
  if (open) {
175
173
  document.addEventListener('mousedown', onMouseDown);
176
174
  document.addEventListener('mouseup', onMouseUp);
@@ -182,7 +180,7 @@ const BaseDialog = props => {
182
180
  document.removeEventListener('mousemove', onMouseMove);
183
181
  };
184
182
  }, [isDragging, open]);
185
- (0, _react.useEffect)(() => {
183
+ _react.default.useEffect(() => {
186
184
  const scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
187
185
  const originalOverflow = document.body.style.overflow;
188
186
  const originalPaddingRight = document.body.style.paddingRight;
@@ -34,6 +34,7 @@ const ModalForm = props => {
34
34
  wrapperClassName = '',
35
35
  contentClassName = '',
36
36
  headerClassName = '',
37
+ closeOnEsc = true,
37
38
  securityBeforeUnload = false,
38
39
  securityTitle = 'Dados Alterados',
39
40
  securityText = 'Você possui dados alterados, confirma o fechamento?'
@@ -45,7 +46,7 @@ const ModalForm = props => {
45
46
  opacity: 0.4,
46
47
  pointerEvent: 'none'
47
48
  } : {};
48
- const handlerClose = () => {
49
+ const handlerClose = (0, _react.useCallback)(() => {
49
50
  if (securityBeforeUnload) {
50
51
  setShowSecurityDialog(true);
51
52
  return;
@@ -53,7 +54,7 @@ const ModalForm = props => {
53
54
  if (props.handlerClose) {
54
55
  props.handlerClose();
55
56
  }
56
- };
57
+ }, [securityBeforeUnload, props.handlerClose]);
57
58
  const onConfirmSecurity = () => {
58
59
  var _props$handlerClose;
59
60
  (_props$handlerClose = props.handlerClose) === null || _props$handlerClose === void 0 ? void 0 : _props$handlerClose.call(props);
@@ -93,8 +94,9 @@ const ModalForm = props => {
93
94
  height: height,
94
95
  className: className,
95
96
  wrapperClassName: "dialog-form-wrapper ".concat(wrapperClassName),
96
- securityBeforeUnload: securityBeforeUnload,
97
- handlerClose: handlerClose
97
+ handlerClose: handlerClose,
98
+ closeOnEsc: closeOnEsc,
99
+ securityBeforeUnload: securityBeforeUnload
98
100
  }), props.title && /*#__PURE__*/_react.default.createElement("div", {
99
101
  className: "header-form ".concat(headerClassName)
100
102
  }, /*#__PURE__*/_react.default.createElement(_Header.default, {
@@ -82,6 +82,7 @@ const BaseDrawer = _ref => {
82
82
  const drawerOverlay = document.createElement('div');
83
83
  drawerOverlay.className = 'drawer-overlay';
84
84
  drawerOverlay.id = id;
85
+ drawerOverlay.inert = false;
85
86
  drawerOverlay.dataset.testid = 'drawer-overlay';
86
87
  body.appendChild(drawerOverlay);
87
88
  };
@@ -100,10 +101,8 @@ const BaseDrawer = _ref => {
100
101
  } else {
101
102
  body = document.getElementById(targetId);
102
103
  }
104
+ if (overlay && body) setDrawerOverlay(body, overlayId);
103
105
  if (body) setDrawerComponent(body, randomId);
104
- if (overlay && body) {
105
- setDrawerOverlay(body, overlayId);
106
- }
107
106
  return () => {
108
107
  const drawerOverlay = document.getElementById(overlayId);
109
108
  if (closeOnEsc) document.body.removeEventListener('keydown', closeDrawerOnEsc);
@@ -16,10 +16,10 @@ Object.defineProperty(exports, "DrawerHeader", {
16
16
  }
17
17
  });
18
18
  exports.default = void 0;
19
+ require("../assets/styles/drawers.scss");
19
20
  var _Drawer = _interopRequireDefault(require("./Drawer"));
20
21
  var _Header = _interopRequireDefault(require("./Header"));
21
22
  var _Content = _interopRequireDefault(require("./Content"));
22
- require("../assets/styles/drawers.scss");
23
23
  var _withFormSecurity = _interopRequireDefault(require("../form/withFormSecurity"));
24
24
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
25
25
  var _default = exports.default = (0, _withFormSecurity.default)(_Drawer.default);
@@ -651,6 +651,18 @@ declare const _default: {
651
651
  viewbox: string;
652
652
  paths: string[];
653
653
  };
654
+ perdaConsumoInterno: {
655
+ viewbox: string;
656
+ paths: string[];
657
+ };
658
+ inventario: {
659
+ viewbox: string;
660
+ paths: string[];
661
+ };
662
+ trocaFornecedor: {
663
+ viewbox: string;
664
+ paths: string[];
665
+ };
654
666
  };
655
667
 
656
668
  export { _default as default };
@@ -656,5 +656,17 @@ var _default = exports.default = {
656
656
  minus: {
657
657
  viewbox: '0 0 16 16',
658
658
  paths: ['M0 5h16v6h-16z']
659
+ },
660
+ perdaConsumoInterno: {
661
+ viewbox: '0 0 16 16',
662
+ paths: ['M6 7.25c0 0.412-0.338 0.75-0.75 0.75h-1.5c-0.413 0-0.75-0.338-0.75-0.75v-1.5c0-0.412 0.337-0.75 0.75-0.75h1.5c0.412 0 0.75 0.338 0.75 0.75v1.5z', 'M11 7.25c0 0.412-0.338 0.75-0.75 0.75h-1.5c-0.412 0-0.75-0.338-0.75-0.75v-1.5c0-0.412 0.338-0.75 0.75-0.75h1.5c0.412 0 0.75 0.338 0.75 0.75v1.5z', 'M6 12.25c0 0.412-0.338 0.75-0.75 0.75h-1.5c-0.413 0-0.75-0.338-0.75-0.75v-1.5c0-0.412 0.337-0.75 0.75-0.75h1.5c0.412 0 0.75 0.338 0.75 0.75v1.5z', 'M14.251 2.5l1.749-1.749v-0.751h-0.751l-1.749 1.749-1.749-1.749h-0.751v0.751l1.749 1.749-1.749 1.749v0.751h0.751l1.749-1.749 1.749 1.749h0.751v-0.751z', 'M0 12h1v2h-1v-2z', 'M0 9h1v2h-1v-2z', 'M13 7h1v2h-1v-2z', 'M13 13h1v2h-1v-2z', 'M13 10h1v2h-1v-2z', 'M0 6h1v2h-1v-2z', 'M0 3h1v2h-1v-2z', 'M8 2h2v1h-2v-1z', 'M5 2h2v1h-2v-1z', 'M2 2h2v1h-2v-1z', 'M7 15h2v1h-2v-1z', 'M10 15h2v1h-2v-1z', 'M4 15h2v1h-2v-1z', 'M1 15h2v1h-2v-1z']
663
+ },
664
+ inventario: {
665
+ viewbox: '0 0 16 16',
666
+ paths: ['M11 4v-4h-11v11h4v5h12v-12h-5zM10 6.125h-4v-0.125h4v0.125zM10 10h-4v-0.125h4v0.125zM10 9.625h-4v-0.25h4v0.25zM10 9.125h-4v-0.25h4v0.25zM10 8.625h-4v-0.25h4v0.25zM10 8.125h-4v-0.25h4v0.25zM10 7.625h-4v-0.25h4v0.25zM10 7.125h-4v-0.25h4v0.25zM10 6.625h-4v-0.25h4v0.25zM4 10h-3v-9h9v3h-6v6zM15 15h-10v-3h7v-7h3v10z']
667
+ },
668
+ trocaFornecedor: {
669
+ viewbox: '0 0 16 16',
670
+ paths: ['M11 8v6h1v-6h2.5l-3-3-3 3z', 'M1 3h1.5v1h-1.5v-1z', 'M3 3h1.5v1h-1.5v-1z', 'M5 3h1v1.5h-1v-1.5z', 'M1 6.5h1v1.5h-1v-1.5z', 'M2.5 7h1.5v1h-1.5v-1z', 'M4.5 7h1.5v1h-1.5v-1z', 'M1 4.5h1v1.5h-1v-1.5z', 'M5 5h1v1.5h-1v-1.5z', 'M5 11v3h-3v-3h3zM6 10h-5v5h5v-5z']
659
671
  }
660
672
  };
@@ -1,28 +1,10 @@
1
1
  import React__default from 'react';
2
- import { TextAlign } from './@types/Align.js';
3
- import { ColorTheme } from './@types/ColorStyles.js';
4
- import { HintPosition, Position } from './@types/Position.js';
5
2
  import { PermissionAttr, OnDenied } from './@types/PermissionAttr.js';
6
3
  import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
7
- import { ITooltipCommonProps } from './tooltip/types.js';
4
+ import { TextFieldInputBaseProps } from './inputs2/textfield/base.js';
8
5
 
9
- interface TextFieldInputProps extends React__default.ComponentPropsWithoutRef<'input'>, ITooltipCommonProps {
10
- hint?: string;
11
- label?: string;
12
- errors?: string[];
6
+ interface TextFieldInputProps extends TextFieldInputBaseProps {
13
7
  gridLayout?: string;
14
- customClass?: string;
15
- customClassLabel?: string;
16
- customClassWrapper?: string;
17
- customClassInputContainer?: string;
18
- rounded?: boolean;
19
- readOnly?: boolean;
20
- skeletonize?: boolean;
21
- labelUppercase?: boolean;
22
- textAlign?: TextAlign;
23
- hintPosition?: HintPosition;
24
- themePopover?: ColorTheme;
25
- popoverAlign?: Extract<Position, 'left' | 'right'>;
26
8
  permissionAttr?: PermissionAttr;
27
9
  onDeniedActions?: OnDenied;
28
10
  }
@@ -0,0 +1,26 @@
1
+ import React__default from 'react';
2
+ import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
3
+ import { Options } from './inputs2/selectfield/options.js';
4
+ import { Item } from './inputs2/selectfield/item.js';
5
+ import { SelectFieldInputProps } from './inputs2/selectfield/types.js';
6
+
7
+ declare const Input: React__default.ForwardRefExoticComponent<SelectFieldInputProps & React__default.RefAttributes<HTMLInputElement>>;
8
+
9
+ declare const index_Input: typeof Input;
10
+ declare const index_Item: typeof Item;
11
+ declare const index_LeftSlot: typeof LeftSlot;
12
+ declare const index_Options: typeof Options;
13
+ declare const index_RightSlot: typeof RightSlot;
14
+ declare const index_SelectFieldInputProps: typeof SelectFieldInputProps;
15
+ declare namespace index {
16
+ export {
17
+ index_Input as Input,
18
+ index_Item as Item,
19
+ index_LeftSlot as LeftSlot,
20
+ index_Options as Options,
21
+ index_RightSlot as RightSlot,
22
+ index_SelectFieldInputProps as SelectFieldInputProps,
23
+ };
24
+ }
25
+
26
+ export { Input as I, index as i };
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import { T as TextFieldInputProps } from './index-3b70931d.js';
2
+ import { T as TextFieldInputProps } from './index-02a27c19.js';
3
3
 
4
4
  interface FileFieldInputProps extends Omit<TextFieldInputProps, 'type'> {
5
5
  multiple?: boolean;
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
3
- import { T as TextFieldInputProps } from './index-3b70931d.js';
3
+ import { T as TextFieldInputProps } from './index-02a27c19.js';
4
4
 
5
5
  interface ColorFieldInputProps extends TextFieldInputProps {
6
6
  isTypeText?: boolean;
@@ -1,28 +1,10 @@
1
1
  import React__default from 'react';
2
- import { TextAlign } from './@types/Align.js';
3
- import { ColorTheme } from './@types/ColorStyles.js';
4
- import { HintPosition, Position } from './@types/Position.js';
5
2
  import { PermissionAttr, OnDenied } from './@types/PermissionAttr.js';
6
3
  import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
7
- import { ITooltipCommonProps } from './tooltip/types.js';
4
+ import { TextAreaFieldInputBaseProps } from './inputs2/textareafield/base.js';
8
5
 
9
- interface TextAreaFieldInputProps extends React__default.ComponentPropsWithoutRef<'textarea'>, ITooltipCommonProps {
10
- hint?: string;
11
- label?: string;
12
- errors?: string[];
6
+ interface TextAreaFieldInputProps extends TextAreaFieldInputBaseProps {
13
7
  gridLayout?: string;
14
- customClass?: string;
15
- customClassLabel?: string;
16
- customClassWrapper?: string;
17
- customClassInputContainer?: string;
18
- rounded?: boolean;
19
- readOnly?: boolean;
20
- skeletonize?: boolean;
21
- labelUppercase?: boolean;
22
- textAlign?: TextAlign;
23
- hintPosition?: HintPosition;
24
- themePopover?: ColorTheme;
25
- popoverAlign?: Extract<Position, 'left' | 'right'>;
26
8
  permissionAttr?: PermissionAttr;
27
9
  onDeniedActions?: OnDenied;
28
10
  }
@@ -0,0 +1,21 @@
1
+ import React__default from 'react';
2
+ import { PermissionAttr, OnDenied } from './@types/PermissionAttr.js';
3
+ import { CheckboxFieldInputBaseProps } from './inputs2/checkboxfield/base.js';
4
+
5
+ interface CheckboxFieldInputProps extends CheckboxFieldInputBaseProps {
6
+ gridLayout?: string;
7
+ permissionAttr?: PermissionAttr;
8
+ onDeniedActions?: OnDenied;
9
+ }
10
+ declare const Input: React__default.ForwardRefExoticComponent<CheckboxFieldInputProps & React__default.RefAttributes<HTMLInputElement>>;
11
+
12
+ type index_CheckboxFieldInputProps = CheckboxFieldInputProps;
13
+ declare const index_Input: typeof Input;
14
+ declare namespace index {
15
+ export {
16
+ index_CheckboxFieldInputProps as CheckboxFieldInputProps,
17
+ index_Input as Input,
18
+ };
19
+ }
20
+
21
+ export { CheckboxFieldInputProps as C, Input as I, index as i };
@@ -1,7 +1,7 @@
1
1
  import React__default from 'react';
2
2
  import { RadioFieldInputProps } from './inputs2/radiofield/types.js';
3
3
 
4
- declare const Input: React__default.ForwardRefExoticComponent<Pick<RadioFieldInputProps, "form" | "label" | "slot" | "style" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "align" | "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" | "children" | "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" | "onKeyPress" | "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" | "onClick" | "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" | "customClass" | "permissionAttr" | "size" | "skeletonize" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "tooltip" | "tooltipWidth" | "tooltipPosition" | "checked" | "required" | "labelUppercase" | "hint" | "hintPosition" | "themePopover" | "popoverAlign" | "width" | "height" | "readOnly" | "list" | "step" | "maxLength" | "textAlign" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "src" | "alt" | "max" | "min" | "errors" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "getFieldValue"> & React__default.RefAttributes<HTMLInputElement>>;
4
+ declare const Input: React__default.ForwardRefExoticComponent<Pick<RadioFieldInputProps, "form" | "label" | "slot" | "style" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "align" | "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" | "children" | "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" | "onKeyPress" | "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" | "onClick" | "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" | "customClass" | "permissionAttr" | "size" | "skeletonize" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "tooltip" | "tooltipWidth" | "tooltipPosition" | "checked" | "required" | "labelUppercase" | "hint" | "hintPosition" | "themePopover" | "popoverAlign" | "width" | "height" | "readOnly" | "list" | "step" | "maxLength" | "textAlign" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "max" | "min" | "src" | "alt" | "fieldId" | "errors" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "getFieldValue"> & React__default.RefAttributes<HTMLInputElement>>;
5
5
 
6
6
  declare const index_Input: typeof Input;
7
7
  declare const index_RadioFieldInputProps: typeof RadioFieldInputProps;
@@ -4,16 +4,16 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
+ require("../../assets/styles/datepicker.scss");
7
8
  var _react = _interopRequireWildcard(require("react"));
8
9
  var _moment = _interopRequireDefault(require("moment"));
9
10
  var _gridlayout = _interopRequireDefault(require("../../gridlayout"));
10
11
  var _buttons = _interopRequireDefault(require("../../buttons"));
11
12
  var _calendar = _interopRequireDefault(require("../../calendar"));
13
+ var _BaseMask = _interopRequireDefault(require("../mask/BaseMask"));
12
14
  var _Dialog = _interopRequireDefault(require("./Dialog"));
13
15
  var _Dropdown = _interopRequireDefault(require("./Dropdown"));
14
16
  var _helpers = require("./helpers");
15
- require("../../assets/styles/datepicker.scss");
16
- var _BaseMask = _interopRequireDefault(require("../mask/BaseMask"));
17
17
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
18
18
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
19
19
  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); }
@@ -287,10 +287,7 @@ const DatePicker = props => {
287
287
  onChange: (e, date) => {
288
288
  if (date) onInputChange(e, date);
289
289
  },
290
- inputRef: el => {
291
- inputDateRef.current = el;
292
- if (inputRefProp) inputRefProp.current = el;
293
- },
290
+ inputRef: inputRefProp,
294
291
  rightElements: getButtonOpen(),
295
292
  required: required,
296
293
  handlerSetOnDenied: () => setOnDenied(onDenied)
@@ -60,13 +60,14 @@ const Dropdown = props => {
60
60
  onUncheckAll,
61
61
  onCheckAll,
62
62
  selecteds,
63
- onSelect
63
+ onSelect,
64
+ dropdownMaxWidth
64
65
  } = props;
65
66
  const [dropdownDynamicStyles] = (0, _react.useState)(returnDropdownDynamicStyles(selectFieldRef, dropdownMaxHeight || 0));
66
67
  return /*#__PURE__*/_react.default.createElement("div", {
67
68
  className: "dropdown",
68
69
  style: _objectSpread({
69
- width: dropdownWidth,
70
+ width: dropdownMaxWidth || dropdownWidth,
70
71
  marginLeft: gridWrapperStyle ? gridWrapperStyle.paddingLeft : '0'
71
72
  }, dropdownDynamicStyles)
72
73
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -88,7 +89,7 @@ const Dropdown = props => {
88
89
  }), /*#__PURE__*/_react.default.createElement(_icons.default, {
89
90
  customClass: "filtericon",
90
91
  name: "search",
91
- viewBox: "0 0 32 32"
92
+ size: 14
92
93
  })), /*#__PURE__*/_react.default.createElement("div", {
93
94
  className: "listcontainer"
94
95
  }, dataCombo && dataCombo.length > 0 && /*#__PURE__*/_react.default.createElement("div", {
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _lodash = _interopRequireDefault(require("lodash"));
8
- var _react = _interopRequireWildcard(require("react"));
9
8
  var uuid = _interopRequireWildcard(require("uuid"));
9
+ var _react = _interopRequireWildcard(require("react"));
10
10
  var _InputTextBase = _interopRequireDefault(require("../base/InputTextBase"));
11
11
  var _ActionButtons = _interopRequireDefault(require("./ActionButtons"));
12
12
  var _Dropdown = _interopRequireDefault(require("./Dropdown"));
@@ -30,7 +30,8 @@ const MultiSelectField = props => {
30
30
  value,
31
31
  onBlur,
32
32
  gridLayout,
33
- dropdownAlignButton = 'left'
33
+ dropdownAlignButton = 'left',
34
+ dropdownMaxWidth = undefined
34
35
  } = props;
35
36
  const componentId = "multiSelect-component".concat(uuid.v1());
36
37
  const [dataCombo, setDataCombo] = (0, _react.useState)(dataSource);
@@ -43,6 +44,7 @@ const MultiSelectField = props => {
43
44
  const [onDenied, setOnDenied] = (0, _react.useState)();
44
45
  const [insideComponent, setInsideComponent] = (0, _react.useState)(false);
45
46
  const [elementStyles, setElementStyles] = (0, _react.useState)();
47
+ const inputRef = (0, _react.useRef)(null);
46
48
  const componentRef = (0, _react.useRef)(null);
47
49
  const selectWrapper = (0, _react.useRef)();
48
50
  const handleOnSelect = itemSelected => {
@@ -91,8 +93,9 @@ const MultiSelectField = props => {
91
93
  setInputValue(currentValue);
92
94
  };
93
95
  const onOpenClose = () => {
94
- setOpened(!opened);
96
+ setOpened(prevState => !prevState);
95
97
  if (selectWrapper.current) setDropdownWidth(selectWrapper.current.clientWidth);
98
+ setDataCombo(dataSource);
96
99
  };
97
100
  const onCheckAll = function () {
98
101
  let fromFilter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
@@ -118,6 +121,17 @@ const MultiSelectField = props => {
118
121
  setInputValue('');
119
122
  }
120
123
  };
124
+ const onBlurOutSide = event => {
125
+ var _componentRef$current2;
126
+ const {
127
+ relatedTarget
128
+ } = event;
129
+ if (relatedTarget !== componentRef.current && !((_componentRef$current2 = componentRef.current) !== null && _componentRef$current2 !== void 0 && _componentRef$current2.contains(relatedTarget))) {
130
+ setOpened(false);
131
+ setDataCombo(dataSource);
132
+ setInputValue('');
133
+ }
134
+ };
121
135
  const setOnDeniedValue = onDeniedValue => {
122
136
  setOnDenied(onDeniedValue);
123
137
  };
@@ -144,10 +158,12 @@ const MultiSelectField = props => {
144
158
  }
145
159
  window.addEventListener('resize', onScreenResize);
146
160
  document.addEventListener('click', onClickOutSide);
161
+ document.addEventListener('focusout', onBlurOutSide);
147
162
  document.addEventListener('mousemove', onMouseMove);
148
163
  return () => {
149
164
  window.removeEventListener('resize', onScreenResize);
150
165
  document.removeEventListener('click', onClickOutSide);
166
+ document.removeEventListener('focusout', onBlurOutSide);
151
167
  document.removeEventListener('mousemove', onMouseMove);
152
168
  };
153
169
  }, []);
@@ -175,8 +191,9 @@ const MultiSelectField = props => {
175
191
  id: componentId,
176
192
  ref: componentRef,
177
193
  className: "multiSelect-component"
178
- }, /*#__PURE__*/_react.default.createElement(_InputTextBase.default, _extends({}, props, {
194
+ }, /*#__PURE__*/_react.default.createElement(_InputTextBase.default, _extends({}, _lodash.default.omit(props, ['dropdownMaxWidth']), {
179
195
  value: label,
196
+ inputRef: inputRef,
180
197
  onFocus: () => {
181
198
  onFocus();
182
199
  },
@@ -213,7 +230,8 @@ const MultiSelectField = props => {
213
230
  onFilter: handleOnFilter,
214
231
  onFocus: onFocus,
215
232
  onBlur: onBlurComponent,
216
- gridWrapperStyle: elementStyles
233
+ gridWrapperStyle: elementStyles,
234
+ dropdownMaxWidth: dropdownMaxWidth
217
235
  })));
218
236
  };
219
237
  var _default = exports.default = MultiSelectField;
@@ -44,6 +44,7 @@ interface IDropdownMultiSelectProps {
44
44
  };
45
45
  selectFieldRef?: RefObject<HTMLDivElement>;
46
46
  dropdownMaxHeight?: number;
47
+ dropdownMaxWidth?: number;
47
48
  }
48
49
  interface IMultiSelectProps {
49
50
  dataSource?: DataCombo[];
@@ -60,6 +61,7 @@ interface IMultiSelectProps {
60
61
  hintPosition?: 'below' | 'onLabelRight';
61
62
  themePopover?: 'light' | 'dark';
62
63
  popoverAlign?: 'right' | 'left';
64
+ dropdownMaxWidth?: number;
63
65
  }
64
66
 
65
67
  export { DescriptionKey, GetFilteredParams, IActionButtonsProps, IDropdownMultiSelectProps, IMultiSelectProps };
@@ -38,24 +38,15 @@ const PeriodList = _ref => {
38
38
  className: "dropdown-period"
39
39
  }, periodOptions.map(item => {
40
40
  const itemSelected = selected === item.id;
41
- return /*#__PURE__*/_react.default.createElement("div", {
42
- role: "button",
41
+ return /*#__PURE__*/_react.default.createElement("button", {
42
+ key: String('item-').concat(item.id),
43
43
  tabIndex: -1,
44
- onKeyDown: () => {},
45
- key: "item-".concat(item.id),
46
44
  className: (0, _helper.getDropdownItemCssClass)(itemSelected),
47
45
  onClick: () => {
48
46
  const dates = item.id !== 'custom' ? (0, _helper.CalcDatesByPeriod)(item.id) : null;
49
47
  handleOnSelect(item.id, dates);
50
48
  }
51
- }, /*#__PURE__*/_react.default.createElement("span", {
52
- role: "button",
53
- className: "menubutton",
54
- tabIndex: -1,
55
- onKeyPress: () => {}
56
- }, /*#__PURE__*/_react.default.createElement("span", {
57
- className: "label"
58
- }, item.label)));
49
+ }, item.label);
59
50
  }));
60
51
  };
61
52
  var _default = exports.default = PeriodList;