linear-react-components-ui 1.1.24-beta.4 → 1.1.25-rc.1
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/@types/ColorStyles.d.ts +1 -2
- package/lib/@types/Position.d.ts +1 -2
- package/lib/assets/styles/calendar.scss +137 -32
- package/lib/assets/styles/colorpicker.scss +6 -1
- package/lib/assets/styles/colors.scss +12 -48
- package/lib/assets/styles/file.scss +8 -0
- package/lib/assets/styles/table.scss +6 -0
- package/lib/buttons/ActivateButton.d.ts +0 -1
- package/lib/buttons/AddButton.d.ts +0 -1
- package/lib/buttons/Button.d.ts +0 -1
- package/lib/buttons/CancelButton.d.ts +0 -1
- package/lib/buttons/DangerButton.d.ts +0 -1
- package/lib/buttons/DefaultButton.d.ts +0 -1
- package/lib/buttons/DefaultButton.js +17 -32
- package/lib/buttons/DestroyButton.d.ts +0 -1
- package/lib/buttons/EditButton.d.ts +0 -1
- package/lib/buttons/InactivateButton.d.ts +0 -1
- package/lib/buttons/InfoButton.d.ts +0 -1
- package/lib/buttons/PrimaryButton.d.ts +0 -1
- package/lib/buttons/RestoreButton.d.ts +0 -1
- package/lib/buttons/SaveButton.d.ts +0 -1
- package/lib/buttons/SuccessButton.d.ts +0 -1
- package/lib/buttons/WarningButton.d.ts +0 -1
- package/lib/buttons/index.d.ts +0 -1
- package/lib/buttons/split_button/index.d.ts +0 -1
- package/lib/buttons/types.d.ts +5 -2
- package/lib/calendar/base/index.js +113 -40
- package/lib/dialog/base/index.js +2 -2
- package/lib/form/Field.d.ts +1 -1
- package/lib/form/FieldArray.d.ts +1 -1
- package/lib/form/FieldNumber.d.ts +1 -1
- package/lib/form/FieldPeriod.d.ts +1 -1
- package/lib/form/helpers.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/form/types.d.ts +1 -1
- package/lib/form/withFieldHOC.d.ts +1 -1
- package/lib/form/withFormSecurity.d.ts +1 -1
- package/lib/icons/helper.d.ts +0 -20
- package/lib/icons/helper.js +0 -20
- package/lib/icons/index.d.ts +6 -4
- package/lib/icons/index.js +9 -14
- package/lib/icons/types.d.ts +6 -3
- package/lib/index.d.ts +0 -1
- package/lib/inputs/base/InputTextBase.d.ts +1 -1
- package/lib/inputs/base/InputTextBase.js +8 -18
- package/lib/inputs/base/Label.d.ts +14 -0
- package/lib/inputs/base/Label.js +35 -0
- package/lib/inputs/base/helpers.d.ts +1 -1
- package/lib/inputs/base/types.d.ts +17 -6
- package/lib/inputs/color/index.js +1 -1
- package/lib/inputs/color/types.d.ts +1 -1
- package/lib/inputs/date/Dialog.d.ts +1 -1
- package/lib/inputs/date/Dropdown.d.ts +1 -1
- package/lib/inputs/date/index.d.ts +1 -1
- package/lib/inputs/date/types.d.ts +2 -2
- package/lib/inputs/errorMessage/index.d.ts +1 -1
- package/lib/inputs/file/DefaultFile.d.ts +1 -1
- package/lib/inputs/file/DefaultFile.js +27 -27
- package/lib/inputs/file/DragDropFile.d.ts +1 -1
- package/lib/inputs/file/File.d.ts +1 -1
- package/lib/inputs/file/File.js +1 -0
- package/lib/inputs/file/FileButtonSettings.d.ts +1 -1
- package/lib/inputs/file/FileButtonSettings.js +0 -1
- package/lib/inputs/file/helpers.d.ts +1 -1
- package/lib/inputs/file/index.d.ts +1 -1
- package/lib/inputs/file/types.d.ts +1 -1
- package/lib/inputs/inputHOC.d.ts +1 -1
- package/lib/inputs/mask/BaseMask.d.ts +1 -1
- package/lib/inputs/mask/Cnpj.d.ts +1 -1
- package/lib/inputs/mask/Cpf.d.ts +1 -1
- package/lib/inputs/mask/Phone.d.ts +1 -1
- package/lib/inputs/mask/ZipCode.d.ts +1 -1
- package/lib/inputs/mask/helpers.d.ts +1 -1
- package/lib/inputs/mask/index.d.ts +1 -1
- package/lib/inputs/mask/types.d.ts +2 -2
- package/lib/inputs/multiSelect/ActionButtons.d.ts +1 -1
- package/lib/inputs/multiSelect/Dropdown.d.ts +1 -1
- package/lib/inputs/multiSelect/helper.d.ts +1 -1
- package/lib/inputs/multiSelect/index.d.ts +1 -1
- package/lib/inputs/multiSelect/types.d.ts +2 -2
- package/lib/inputs/number/BaseNumber.d.ts +1 -1
- package/lib/inputs/number/Currency.d.ts +1 -1
- package/lib/inputs/number/Decimal.d.ts +1 -1
- package/lib/inputs/number/index.d.ts +1 -1
- package/lib/inputs/number/types.d.ts +3 -3
- package/lib/inputs/period/Dialog.d.ts +1 -1
- package/lib/inputs/period/Dropdown.d.ts +1 -1
- package/lib/inputs/period/PeriodList.d.ts +1 -1
- package/lib/inputs/period/helper.d.ts +1 -1
- package/lib/inputs/period/index.d.ts +1 -1
- package/lib/inputs/period/index.js +10 -8
- package/lib/inputs/period/types.d.ts +5 -2
- package/lib/inputs/search/index.d.ts +1 -1
- package/lib/inputs/search/index.js +6 -2
- package/lib/inputs/select/ActionButtons.d.ts +1 -1
- package/lib/inputs/select/Dropdown.d.ts +1 -1
- package/lib/inputs/select/helper.d.ts +1 -1
- package/lib/inputs/select/index.d.ts +1 -1
- package/lib/inputs/select/multiple/Selecteds.d.ts +1 -1
- package/lib/inputs/select/multiple/index.d.ts +1 -1
- package/lib/inputs/select/simple/index.d.ts +1 -1
- package/lib/inputs/select/types.d.ts +1 -1
- package/lib/inputs/text/index.d.ts +1 -1
- package/lib/inputs/text/types.d.ts +3 -2
- package/lib/inputs/textarea/index.d.ts +1 -1
- package/lib/inputs/textarea/types.d.ts +1 -1
- package/lib/inputs/types.d.ts +2 -1
- package/lib/internals/types.d.ts +17 -1
- package/lib/internals/withTooltip.d.ts +12 -0
- package/lib/internals/withTooltip.js +172 -0
- package/lib/labels/DangerLabel.d.ts +0 -1
- package/lib/labels/DefaultLabel.d.ts +5 -3
- package/lib/labels/DefaultLabel.js +7 -15
- package/lib/labels/InfoLabel.d.ts +0 -1
- package/lib/labels/PrimaryLabel.d.ts +0 -1
- package/lib/labels/SuccessLabel.d.ts +0 -1
- package/lib/labels/WarningLabel.d.ts +0 -1
- package/lib/labels/index.d.ts +2 -3
- package/lib/labels/types.d.ts +5 -2
- package/lib/list/Header.d.ts +0 -1
- package/lib/list/Item.d.ts +5 -3
- package/lib/list/Item.js +12 -17
- package/lib/list/helpers.d.ts +0 -1
- package/lib/list/index.d.ts +0 -1
- package/lib/list/types.d.ts +6 -4
- package/lib/menus/sidenav/ExpandMenu.d.ts +2 -2
- package/lib/menus/sidenav/MenuLink.d.ts +7 -4
- package/lib/menus/sidenav/MenuLink.js +11 -20
- package/lib/menus/sidenav/NavMenuGroup.d.ts +2 -2
- package/lib/menus/sidenav/NavMenuItem.d.ts +7 -4
- package/lib/menus/sidenav/NavMenuItem.js +12 -16
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +2 -2
- package/lib/menus/sidenav/helpers.d.ts +2 -2
- package/lib/menus/sidenav/index.d.ts +2 -2
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +2 -2
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +2 -2
- package/lib/menus/sidenav/types.d.ts +6 -6
- package/lib/popover/PopoverText.js +2 -11
- package/lib/popover/index.js +0 -1
- package/lib/popover/types.d.ts +0 -1
- package/lib/table/index.js +18 -8
- package/lib/table/types.d.ts +1 -0
- package/lib/textContent/index.d.ts +11 -6
- package/lib/textContent/index.js +11 -20
- package/lib/tooltip/index.d.ts +3 -4
- package/lib/tooltip/index.js +53 -36
- package/lib/tooltip/types.d.ts +3 -25
- package/package.json +2 -3
- package/lib/BaseMask-0c14ef51.d.ts +0 -24
- package/lib/Cnpj-bde01dd0.d.ts +0 -18
- package/lib/Cpf-3fa496ad.d.ts +0 -18
- package/lib/Phone-2bb0b397.d.ts +0 -18
- package/lib/ZipCode-09460e18.d.ts +0 -13
- package/lib/assets/styles/checkbox2.scss +0 -199
- package/lib/assets/styles/datepicker2.scss +0 -338
- package/lib/assets/styles/numberfield.scss +0 -18
- package/lib/assets/styles/radiofield.scss +0 -185
- package/lib/assets/styles/selectfield.scss +0 -409
- package/lib/assets/styles/slot.scss +0 -34
- package/lib/assets/styles/textfield.scss +0 -147
- package/lib/calendar/base/Day.d.ts +0 -8
- package/lib/calendar/base/Day.js +0 -36
- package/lib/calendar/base/Month.d.ts +0 -8
- package/lib/calendar/base/Month.js +0 -39
- package/lib/calendar/base/Week.d.ts +0 -8
- package/lib/calendar/base/Week.js +0 -35
- package/lib/form2/helpers.d.ts +0 -8
- package/lib/form2/helpers.js +0 -41
- package/lib/form2/index.d.ts +0 -9
- package/lib/form2/index.js +0 -36
- package/lib/form2/types.d.ts +0 -125
- package/lib/form2/types.js +0 -5
- package/lib/form2/useForm/index.d.ts +0 -5
- package/lib/form2/useForm/index.js +0 -202
- package/lib/index-368f781f.d.ts +0 -15
- package/lib/index-3b70931d.d.ts +0 -44
- package/lib/index-789dd9a5.d.ts +0 -41
- package/lib/index-7ad68789.d.ts +0 -15
- package/lib/index-9e576346.d.ts +0 -23
- package/lib/index-c512803d.d.ts +0 -23
- package/lib/index-c9247c1f.d.ts +0 -15
- package/lib/index-ecafc8c6.d.ts +0 -30
- package/lib/inputs2/checkboxfield/index.d.ts +0 -7
- package/lib/inputs2/checkboxfield/index.js +0 -146
- package/lib/inputs2/colorfield/index.d.ts +0 -9
- package/lib/inputs2/colorfield/index.js +0 -119
- package/lib/inputs2/date/base/constants.d.ts +0 -7
- package/lib/inputs2/date/base/constants.js +0 -43
- package/lib/inputs2/date/base/index.d.ts +0 -12
- package/lib/inputs2/date/base/index.js +0 -179
- package/lib/inputs2/date/datefield/calendarbox.d.ts +0 -7
- package/lib/inputs2/date/datefield/calendarbox.js +0 -115
- package/lib/inputs2/date/datefield/context.d.ts +0 -14
- package/lib/inputs2/date/datefield/context.js +0 -15
- package/lib/inputs2/date/datefield/index.d.ts +0 -10
- package/lib/inputs2/date/datefield/index.js +0 -336
- package/lib/inputs2/date/datefield/triggers.d.ts +0 -8
- package/lib/inputs2/date/datefield/triggers.js +0 -47
- package/lib/inputs2/date/datefield/types.d.ts +0 -63
- package/lib/inputs2/date/datefield/types.js +0 -5
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +0 -7
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +0 -136
- package/lib/inputs2/date/dateperiodfield/context.d.ts +0 -14
- package/lib/inputs2/date/dateperiodfield/context.js +0 -17
- package/lib/inputs2/date/dateperiodfield/index.d.ts +0 -10
- package/lib/inputs2/date/dateperiodfield/index.js +0 -593
- package/lib/inputs2/date/dateperiodfield/triggers.d.ts +0 -6
- package/lib/inputs2/date/dateperiodfield/triggers.js +0 -120
- package/lib/inputs2/date/dateperiodfield/types.d.ts +0 -101
- package/lib/inputs2/date/dateperiodfield/types.js +0 -19
- package/lib/inputs2/date/helpers.d.ts +0 -21
- package/lib/inputs2/date/helpers.js +0 -62
- package/lib/inputs2/date/types.d.ts +0 -60
- package/lib/inputs2/date/types.js +0 -19
- package/lib/inputs2/index.d.ts +0 -32
- package/lib/inputs2/index.js +0 -34
- package/lib/inputs2/mask/BaseMask.d.ts +0 -10
- package/lib/inputs2/mask/BaseMask.js +0 -95
- package/lib/inputs2/mask/Cnpj.d.ts +0 -11
- package/lib/inputs2/mask/Cnpj.js +0 -57
- package/lib/inputs2/mask/Cpf.d.ts +0 -11
- package/lib/inputs2/mask/Cpf.js +0 -53
- package/lib/inputs2/mask/Phone.d.ts +0 -11
- package/lib/inputs2/mask/Phone.js +0 -26
- package/lib/inputs2/mask/ZipCode.d.ts +0 -11
- package/lib/inputs2/mask/ZipCode.js +0 -23
- package/lib/inputs2/mask/helpers.d.ts +0 -4
- package/lib/inputs2/mask/helpers.js +0 -57
- package/lib/inputs2/numberfield/currency.d.ts +0 -13
- package/lib/inputs2/numberfield/currency.js +0 -91
- package/lib/inputs2/numberfield/decimal.d.ts +0 -13
- package/lib/inputs2/numberfield/decimal.js +0 -85
- package/lib/inputs2/numberfield/helpers.d.ts +0 -30
- package/lib/inputs2/numberfield/helpers.js +0 -53
- package/lib/inputs2/numberfield/index.d.ts +0 -12
- package/lib/inputs2/numberfield/index.js +0 -104
- package/lib/inputs2/numberfield/types.d.ts +0 -36
- package/lib/inputs2/numberfield/types.js +0 -5
- package/lib/inputs2/radiofield/index.d.ts +0 -9
- package/lib/inputs2/radiofield/index.js +0 -143
- package/lib/inputs2/radiofield/types.d.ts +0 -33
- package/lib/inputs2/radiofield/types.js +0 -5
- package/lib/inputs2/selectfield/context.d.ts +0 -38
- package/lib/inputs2/selectfield/context.js +0 -15
- package/lib/inputs2/selectfield/helpers.d.ts +0 -6
- package/lib/inputs2/selectfield/helpers.js +0 -25
- package/lib/inputs2/selectfield/index.d.ts +0 -10
- package/lib/inputs2/selectfield/index.js +0 -491
- package/lib/inputs2/selectfield/item.d.ts +0 -11
- package/lib/inputs2/selectfield/item.js +0 -85
- package/lib/inputs2/selectfield/listbox.d.ts +0 -7
- package/lib/inputs2/selectfield/listbox.js +0 -103
- package/lib/inputs2/selectfield/search.d.ts +0 -7
- package/lib/inputs2/selectfield/search.js +0 -71
- package/lib/inputs2/selectfield/selections.d.ts +0 -10
- package/lib/inputs2/selectfield/selections.js +0 -86
- package/lib/inputs2/selectfield/triggers.d.ts +0 -8
- package/lib/inputs2/selectfield/triggers.js +0 -100
- package/lib/inputs2/selectfield/types.d.ts +0 -54
- package/lib/inputs2/selectfield/types.js +0 -21
- package/lib/inputs2/slot/index.d.ts +0 -14
- package/lib/inputs2/slot/index.js +0 -47
- package/lib/inputs2/textfield/index.d.ts +0 -8
- package/lib/inputs2/textfield/index.js +0 -159
- package/lib/tooltip/TooltipContent.d.ts +0 -7
- package/lib/tooltip/TooltipContent.js +0 -65
- package/lib/tooltip/useTooltip.d.ts +0 -30
- package/lib/tooltip/useTooltip.js +0 -128
|
@@ -9,12 +9,12 @@ var _lodash = _interopRequireDefault(require("lodash"));
|
|
|
9
9
|
var _inputHOC = _interopRequireDefault(require("../inputHOC"));
|
|
10
10
|
require("../../assets/styles/input.scss");
|
|
11
11
|
var helpers = _interopRequireWildcard(require("./helpers"));
|
|
12
|
+
var _withTooltip = _interopRequireDefault(require("../../internals/withTooltip"));
|
|
12
13
|
var _permissionValidations = require("../../permissionValidations");
|
|
13
14
|
var _hint = _interopRequireDefault(require("../../hint"));
|
|
14
15
|
var _errorMessage = require("../errorMessage");
|
|
15
16
|
var _textContent = _interopRequireDefault(require("../../textContent"));
|
|
16
|
-
var _popover =
|
|
17
|
-
var _tooltip = require("../../tooltip");
|
|
17
|
+
var _popover = _interopRequireDefault(require("../../popover"));
|
|
18
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
19
|
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); }
|
|
20
20
|
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; }
|
|
@@ -51,6 +51,7 @@ const InputTextBase = props => {
|
|
|
51
51
|
permissionAttr,
|
|
52
52
|
onDeniedActions,
|
|
53
53
|
handlerSetOnDenied,
|
|
54
|
+
targetRef,
|
|
54
55
|
skeletonize = false,
|
|
55
56
|
style,
|
|
56
57
|
styleForInputContent,
|
|
@@ -72,10 +73,7 @@ const InputTextBase = props => {
|
|
|
72
73
|
autoComplete = 'on',
|
|
73
74
|
themePopover = 'light',
|
|
74
75
|
popoverAlign = 'left',
|
|
75
|
-
tabIndex
|
|
76
|
-
tooltip,
|
|
77
|
-
tooltipPosition,
|
|
78
|
-
tooltipWidth
|
|
76
|
+
tabIndex
|
|
79
77
|
} = props;
|
|
80
78
|
let propsInput;
|
|
81
79
|
const options = [_permissionValidations.OPTIONS_ON_DENIED.disabled, _permissionValidations.OPTIONS_ON_DENIED.unvisible, _permissionValidations.OPTIONS_ON_DENIED.readOnly, _permissionValidations.OPTIONS_ON_DENIED.hideContent];
|
|
@@ -86,7 +84,6 @@ const InputTextBase = props => {
|
|
|
86
84
|
unvisible
|
|
87
85
|
} = onDenied;
|
|
88
86
|
const [showTooltip, setShowTooltip] = (0, _react.useState)(false);
|
|
89
|
-
const inputElementRef = (0, _react.useRef)(null);
|
|
90
87
|
(0, _react.useEffect)(() => {
|
|
91
88
|
if (handlerSetOnDenied) handlerSetOnDenied(onDenied);
|
|
92
89
|
}, []);
|
|
@@ -125,7 +122,7 @@ const InputTextBase = props => {
|
|
|
125
122
|
inputRef(r);
|
|
126
123
|
}
|
|
127
124
|
}
|
|
128
|
-
|
|
125
|
+
if (targetRef) targetRef(r);
|
|
129
126
|
}
|
|
130
127
|
};
|
|
131
128
|
if (!disableCallbacks) {
|
|
@@ -207,7 +204,7 @@ const InputTextBase = props => {
|
|
|
207
204
|
textAlign: textAlign === 'center' ? 'left' : textAlign
|
|
208
205
|
}
|
|
209
206
|
}, /*#__PURE__*/_react.default.createElement(_textContent.default, {
|
|
210
|
-
|
|
207
|
+
labelRef: labelRef,
|
|
211
208
|
required: required,
|
|
212
209
|
label: label,
|
|
213
210
|
onHoverLabel: onHoverLabel,
|
|
@@ -237,9 +234,7 @@ const InputTextBase = props => {
|
|
|
237
234
|
height: 'auto',
|
|
238
235
|
width: 20
|
|
239
236
|
}
|
|
240
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
241
|
-
text: hint
|
|
242
|
-
})))), /*#__PURE__*/_react.default.createElement(_textContent.default, null)), /*#__PURE__*/_react.default.createElement("div", {
|
|
237
|
+
}, hint))), /*#__PURE__*/_react.default.createElement(_textContent.default, null)), /*#__PURE__*/_react.default.createElement("div", {
|
|
243
238
|
"data-testid": "testInputWrapper",
|
|
244
239
|
style: styleForWrapper,
|
|
245
240
|
className: helpers.getInputWrapperClass(_objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -267,11 +262,6 @@ const InputTextBase = props => {
|
|
|
267
262
|
description: hint
|
|
268
263
|
}), /*#__PURE__*/_react.default.createElement(_errorMessage.ErrorMessage, {
|
|
269
264
|
messages: errorMessages
|
|
270
|
-
}), /*#__PURE__*/_react.default.createElement(_tooltip.Tooltip, {
|
|
271
|
-
targetRef: inputElementRef,
|
|
272
|
-
text: tooltip,
|
|
273
|
-
width: tooltipWidth,
|
|
274
|
-
position: tooltipPosition
|
|
275
265
|
}));
|
|
276
266
|
};
|
|
277
|
-
var _default = exports.default = (0, _inputHOC.default)(InputTextBase);
|
|
267
|
+
var _default = exports.default = (0, _inputHOC.default)((0, _withTooltip.default)(InputTextBase));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InputLabelProps } from './types.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '../../@types/Align.js';
|
|
4
|
+
import '../../@types/Period.js';
|
|
5
|
+
import '../../@types/PermissionAttr.js';
|
|
6
|
+
import '../../internals/types.js';
|
|
7
|
+
import '../../@types/Position.js';
|
|
8
|
+
|
|
9
|
+
declare const _default: {
|
|
10
|
+
(props: InputLabelProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { _default as default };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _withTooltip = _interopRequireDefault(require("../../internals/withTooltip"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
const Label = props => {
|
|
11
|
+
const {
|
|
12
|
+
label,
|
|
13
|
+
styleForLabel,
|
|
14
|
+
customClassForLabel,
|
|
15
|
+
labelUppercase,
|
|
16
|
+
required,
|
|
17
|
+
targetRef,
|
|
18
|
+
labelRef,
|
|
19
|
+
onHoverLabel
|
|
20
|
+
} = props;
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement("span", {
|
|
22
|
+
style: styleForLabel,
|
|
23
|
+
ref: ref => {
|
|
24
|
+
if (ref) {
|
|
25
|
+
if (labelRef) labelRef.current = ref;
|
|
26
|
+
if (targetRef) targetRef(ref);
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
onMouseEnter: onHoverLabel,
|
|
30
|
+
className: `label ${customClassForLabel} ${labelUppercase && ' -uppercase'}`
|
|
31
|
+
}, label, required && /*#__PURE__*/_react.default.createElement("span", {
|
|
32
|
+
className: "-requiredlabel"
|
|
33
|
+
}, "*"));
|
|
34
|
+
};
|
|
35
|
+
var _default = exports.default = (0, _withTooltip.default)(Label);
|
|
@@ -3,7 +3,7 @@ import { TextAlign } from '../../@types/Align.js';
|
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../../@types/Period.js';
|
|
5
5
|
import '../../@types/PermissionAttr.js';
|
|
6
|
-
import '../../
|
|
6
|
+
import '../../internals/types.js';
|
|
7
7
|
import '../../@types/Position.js';
|
|
8
8
|
|
|
9
9
|
declare const getInputClass: ({ textAlign, readOnly, readOnlyClass, }: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { MouseEvent, KeyboardEvent, DragEvent,
|
|
1
|
+
import { MutableRefObject, MouseEvent, KeyboardEvent, DragEvent, RefObject, CSSProperties } from 'react';
|
|
2
2
|
import { TextAlign } from '../../@types/Align.js';
|
|
3
3
|
import { Period } from '../../@types/Period.js';
|
|
4
4
|
import { PermissionAttr, OnDenied } from '../../@types/PermissionAttr.js';
|
|
5
|
-
import {
|
|
5
|
+
import { WithTooltipProps } from '../../internals/types.js';
|
|
6
6
|
import '../../@types/Position.js';
|
|
7
7
|
|
|
8
8
|
interface CustomInputEvent {
|
|
@@ -20,7 +20,17 @@ interface CustomInputEvent {
|
|
|
20
20
|
files?: FileList | null;
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
interface
|
|
23
|
+
interface InputLabelProps extends WithTooltipProps {
|
|
24
|
+
label?: string | string[];
|
|
25
|
+
customClassForLabel?: string;
|
|
26
|
+
styleForLabel?: object;
|
|
27
|
+
labelUppercase?: boolean;
|
|
28
|
+
required?: boolean;
|
|
29
|
+
targetRef?: (ref: HTMLSpanElement | null) => void;
|
|
30
|
+
labelRef?: MutableRefObject<HTMLSpanElement | null>;
|
|
31
|
+
onHoverLabel?: React.MouseEventHandler<HTMLSpanElement>;
|
|
32
|
+
}
|
|
33
|
+
interface IBaseProps {
|
|
24
34
|
inputHasFocus?: boolean;
|
|
25
35
|
onInputReceiveFocus?: () => void;
|
|
26
36
|
onInputLostFocus?: () => void;
|
|
@@ -54,7 +64,7 @@ interface IBaseProps extends ITooltipCommonProps {
|
|
|
54
64
|
onDragLeave?: (e: DragEvent) => void;
|
|
55
65
|
leftElements?: JSX.Element | JSX.Element[];
|
|
56
66
|
rightElements?: JSX.Element | JSX.Element[];
|
|
57
|
-
children?:
|
|
67
|
+
children?: React.ReactNode;
|
|
58
68
|
customClass?: string;
|
|
59
69
|
customClassForWrapper?: string;
|
|
60
70
|
customClassForInputContent?: string;
|
|
@@ -63,7 +73,7 @@ interface IBaseProps extends ITooltipCommonProps {
|
|
|
63
73
|
requiredError?: boolean;
|
|
64
74
|
inputRef?: MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
|
|
65
75
|
inputBaseRef?: RefObject<HTMLDivElement> | ((ref: HTMLDivElement) => void);
|
|
66
|
-
hint?: string;
|
|
76
|
+
hint?: string | string[];
|
|
67
77
|
hintPosition?: 'below' | 'onLabelRight';
|
|
68
78
|
textAlign?: TextAlign;
|
|
69
79
|
rounded?: boolean;
|
|
@@ -72,6 +82,7 @@ interface IBaseProps extends ITooltipCommonProps {
|
|
|
72
82
|
permissionAttr?: PermissionAttr;
|
|
73
83
|
onDeniedActions?: OnDenied;
|
|
74
84
|
handlerSetOnDenied?: (onDenied: OnDenied) => void;
|
|
85
|
+
targetRef?: (ref: HTMLDivElement | HTMLInputElement | HTMLTextAreaElement | null) => void;
|
|
75
86
|
gridLayout?: string;
|
|
76
87
|
skeletonize?: boolean;
|
|
77
88
|
style?: CSSProperties;
|
|
@@ -89,4 +100,4 @@ interface IBaseProps extends ITooltipCommonProps {
|
|
|
89
100
|
defaultValue?: string | string[];
|
|
90
101
|
}
|
|
91
102
|
|
|
92
|
-
export { CustomInputEvent, IBaseProps };
|
|
103
|
+
export { CustomInputEvent, IBaseProps, InputLabelProps };
|
|
@@ -10,7 +10,7 @@ interface IColorProps {
|
|
|
10
10
|
permissionAttr?: PermissionAttr;
|
|
11
11
|
visible?: boolean;
|
|
12
12
|
label?: string;
|
|
13
|
-
hint?: string;
|
|
13
|
+
hint?: string | string[];
|
|
14
14
|
hintPosition?: 'below' | 'onLabelRight';
|
|
15
15
|
themePopover?: 'light' | 'dark';
|
|
16
16
|
popoverAlign?: 'right' | 'left';
|
|
@@ -5,7 +5,7 @@ import '../../@types/PermissionAttr.js';
|
|
|
5
5
|
import '../base/types.js';
|
|
6
6
|
import '../../@types/Align.js';
|
|
7
7
|
import '../../@types/Period.js';
|
|
8
|
-
import '../../
|
|
8
|
+
import '../../internals/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
10
|
|
|
11
11
|
declare const Dialog: ({ handlerClose, children, dialogSize }: IDateDialogProps) => JSX.Element;
|
|
@@ -5,7 +5,7 @@ import '../../@types/PermissionAttr.js';
|
|
|
5
5
|
import '../base/types.js';
|
|
6
6
|
import '../../@types/Align.js';
|
|
7
7
|
import '../../@types/Period.js';
|
|
8
|
-
import '../../
|
|
8
|
+
import '../../internals/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
10
|
|
|
11
11
|
declare const Dropdown: (props: IDateDropdownProps) => React.ReactPortal;
|
|
@@ -5,7 +5,7 @@ import '../../@types/PermissionAttr.js';
|
|
|
5
5
|
import '../base/types.js';
|
|
6
6
|
import '../../@types/Align.js';
|
|
7
7
|
import '../../@types/Period.js';
|
|
8
|
-
import '../../
|
|
8
|
+
import '../../internals/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
10
|
|
|
11
11
|
declare const DatePicker: (props: IDatePickerProps) => JSX.Element | null;
|
|
@@ -4,7 +4,7 @@ import { PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
|
4
4
|
import { CustomInputEvent } from '../base/types.js';
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
|
-
import '../../
|
|
7
|
+
import '../../internals/types.js';
|
|
8
8
|
import '../../@types/Position.js';
|
|
9
9
|
|
|
10
10
|
interface IDatePickerProps {
|
|
@@ -39,7 +39,7 @@ interface IDatePickerProps {
|
|
|
39
39
|
permissionAttr?: PermissionAttr;
|
|
40
40
|
label?: string;
|
|
41
41
|
gridLayout?: string;
|
|
42
|
-
hint?: string;
|
|
42
|
+
hint?: string | string[];
|
|
43
43
|
hintPosition?: 'below' | 'onLabelRight';
|
|
44
44
|
themePopover?: 'light' | 'dark';
|
|
45
45
|
popoverAlign?: 'right' | 'left';
|
|
@@ -5,7 +5,7 @@ import '../../@types/DataCombo.js';
|
|
|
5
5
|
import '../base/types.js';
|
|
6
6
|
import '../../@types/Align.js';
|
|
7
7
|
import '../../@types/Period.js';
|
|
8
|
-
import '../../
|
|
8
|
+
import '../../internals/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
10
|
import '../../drawer/types.js';
|
|
11
11
|
import '../../@types/Icon.js';
|
|
@@ -5,7 +5,7 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
-
import '../../
|
|
8
|
+
import '../../internals/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
10
|
|
|
11
11
|
declare const DefaultFile: (props: IDefaultFileProps) => JSX.Element;
|
|
@@ -24,13 +24,36 @@ const DefaultFile = props => {
|
|
|
24
24
|
onBtnClickRemove,
|
|
25
25
|
inputRef,
|
|
26
26
|
defaultFiles,
|
|
27
|
-
hint =
|
|
27
|
+
hint = [],
|
|
28
|
+
multiple,
|
|
28
29
|
onChange
|
|
29
30
|
} = props;
|
|
30
31
|
const getFilesList = files => !files?.length ? [] : _lodash.default.map(files, file => file);
|
|
31
32
|
const [fileList, setFileList] = (0, _react.useState)(defaultFiles);
|
|
32
33
|
const ifExistFiles = fileList instanceof Array && fileList.length > 0;
|
|
33
|
-
const
|
|
34
|
+
const handleChange = e => {
|
|
35
|
+
e.preventDefault?.();
|
|
36
|
+
const files = getFilesList(e.target.files);
|
|
37
|
+
setFileList(files);
|
|
38
|
+
onChange?.(files, e);
|
|
39
|
+
};
|
|
40
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
41
|
+
className: "input-simple-file-container"
|
|
42
|
+
}, /*#__PURE__*/_react.default.createElement(_InputTextBase.default, _extends({}, props, {
|
|
43
|
+
hint: hint,
|
|
44
|
+
readOnlyClass: "-disabledVisualApply",
|
|
45
|
+
customClassForWrapper: "file-wrapper",
|
|
46
|
+
customClassForInputContent: "file-content -absolute -pointEventDisabled -disabledVisualApply",
|
|
47
|
+
type: "file",
|
|
48
|
+
id: id,
|
|
49
|
+
accept: accept,
|
|
50
|
+
inputRef: inputRef,
|
|
51
|
+
onChange: handleChange,
|
|
52
|
+
rightElements: /*#__PURE__*/_react.default.createElement(_FileButtonSettings.default, {
|
|
53
|
+
id: id,
|
|
54
|
+
onBtnClickInsert: () => onBtnClickInsert()
|
|
55
|
+
})
|
|
56
|
+
}), multiple && /*#__PURE__*/_react.default.createElement("div", {
|
|
34
57
|
className: `size-position-icon ${!ifExistFiles ? '-disabled-popover' : ''}`
|
|
35
58
|
}, /*#__PURE__*/_react.default.createElement(_popover.default, {
|
|
36
59
|
iconSize: 16
|
|
@@ -39,8 +62,7 @@ const DefaultFile = props => {
|
|
|
39
62
|
key: `${file.name}${file.size}`
|
|
40
63
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
41
64
|
className: "file-name"
|
|
42
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, file.name)))))))
|
|
43
|
-
const buttonRemoveFile = () => /*#__PURE__*/_react.default.createElement(_buttons.default, {
|
|
65
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, file.name))))))), /*#__PURE__*/_react.default.createElement(_buttons.default, {
|
|
44
66
|
disabled: !ifExistFiles,
|
|
45
67
|
className: "-pointerEventsRemove",
|
|
46
68
|
transparent: true,
|
|
@@ -53,28 +75,6 @@ const DefaultFile = props => {
|
|
|
53
75
|
customClass: "colorIconUpload",
|
|
54
76
|
name: "close"
|
|
55
77
|
})
|
|
56
|
-
});
|
|
57
|
-
const handleChange = e => {
|
|
58
|
-
e.preventDefault?.();
|
|
59
|
-
const files = getFilesList(e.target.files);
|
|
60
|
-
setFileList(files);
|
|
61
|
-
onChange?.(files, e);
|
|
62
|
-
};
|
|
63
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
64
|
-
className: "input-simple-file-container"
|
|
65
|
-
}, /*#__PURE__*/_react.default.createElement(_InputTextBase.default, _extends({}, props, {
|
|
66
|
-
hint: hint,
|
|
67
|
-
readOnlyClass: "-disabledVisualApply",
|
|
68
|
-
customClassForInputContent: "-absolute -pointEventDisabled -disabledVisualApply",
|
|
69
|
-
type: "file",
|
|
70
|
-
id: id,
|
|
71
|
-
accept: accept,
|
|
72
|
-
inputRef: inputRef,
|
|
73
|
-
onChange: handleChange,
|
|
74
|
-
rightElements: /*#__PURE__*/_react.default.createElement(_FileButtonSettings.default, {
|
|
75
|
-
id: id,
|
|
76
|
-
onBtnClickInsert: onBtnClickInsert
|
|
77
|
-
})
|
|
78
|
-
}), popUpDescription(), buttonRemoveFile()));
|
|
78
|
+
})));
|
|
79
79
|
};
|
|
80
80
|
var _default = exports.default = DefaultFile;
|
|
@@ -5,7 +5,7 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
-
import '../../
|
|
8
|
+
import '../../internals/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
10
|
|
|
11
11
|
declare const DragDropFile: (props: IDragDropFileProps) => JSX.Element;
|
|
@@ -5,7 +5,7 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
-
import '../../
|
|
8
|
+
import '../../internals/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
10
|
|
|
11
11
|
declare const File: ({ applyDragDrop, defaultFiles, gridLayout, onBtnClickRemove: onBtnClickRemoveProp, ...rest }: Omit<IFileProps, 'onBtnClickInsert'>) => JSX.Element;
|
package/lib/inputs/file/File.js
CHANGED
|
@@ -5,7 +5,7 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
-
import '../../
|
|
8
|
+
import '../../internals/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
10
|
|
|
11
11
|
declare const FileButtonSettings: (props: IFileButtonSettingsProps) => JSX.Element;
|
|
@@ -16,7 +16,6 @@ const FileButtonSettings = props => {
|
|
|
16
16
|
onBtnClickInsert
|
|
17
17
|
} = props;
|
|
18
18
|
return /*#__PURE__*/_react.default.createElement("label", {
|
|
19
|
-
id: "",
|
|
20
19
|
htmlFor: id
|
|
21
20
|
}, /*#__PURE__*/_react.default.createElement(_buttons.default, {
|
|
22
21
|
className: "uploadButton simple-search-file-button -shadowsdisabled -transparent",
|
|
@@ -5,7 +5,7 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
-
import '../../
|
|
8
|
+
import '../../internals/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
10
|
|
|
11
11
|
declare const transformFilesToFileList: (files: CustomFile) => FileList;
|
|
@@ -4,7 +4,7 @@ import { CustomInputEvent } from '../base/types.js';
|
|
|
4
4
|
import '../../@types/Align.js';
|
|
5
5
|
import '../../@types/Period.js';
|
|
6
6
|
import '../../@types/PermissionAttr.js';
|
|
7
|
-
import '../../
|
|
7
|
+
import '../../internals/types.js';
|
|
8
8
|
import '../../@types/Position.js';
|
|
9
9
|
|
|
10
10
|
type CustomFile = FileList | File | File[];
|
package/lib/inputs/inputHOC.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import '../@types/DataCombo.js';
|
|
|
5
5
|
import './base/types.js';
|
|
6
6
|
import '../@types/Align.js';
|
|
7
7
|
import '../@types/Period.js';
|
|
8
|
-
import '../
|
|
8
|
+
import '../internals/types.js';
|
|
9
9
|
import '../@types/Position.js';
|
|
10
10
|
import '../drawer/types.js';
|
|
11
11
|
import '../@types/Icon.js';
|
|
@@ -4,7 +4,7 @@ import '../../@types/Align.js';
|
|
|
4
4
|
import '../../@types/PermissionAttr.js';
|
|
5
5
|
import '../base/types.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
|
-
import '../../
|
|
7
|
+
import '../../internals/types.js';
|
|
8
8
|
import '../../@types/Position.js';
|
|
9
9
|
|
|
10
10
|
declare const BaseMask: ({ value: valueProp, defaultValue, inputRef, onChange, onComplete, permissionAttr, mask, isDateTimeField, ...rest }: IBaseMaskProps) => JSX.Element;
|
|
@@ -4,7 +4,7 @@ import '../../@types/Align.js';
|
|
|
4
4
|
import '../../@types/PermissionAttr.js';
|
|
5
5
|
import '../base/types.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
|
-
import '../../
|
|
7
|
+
import '../../internals/types.js';
|
|
8
8
|
import '../../@types/Position.js';
|
|
9
9
|
|
|
10
10
|
declare const CnpjField: {
|
package/lib/inputs/mask/Cpf.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import '../../@types/Align.js';
|
|
|
4
4
|
import '../../@types/PermissionAttr.js';
|
|
5
5
|
import '../base/types.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
|
-
import '../../
|
|
7
|
+
import '../../internals/types.js';
|
|
8
8
|
import '../../@types/Position.js';
|
|
9
9
|
|
|
10
10
|
declare const CpfField: {
|
|
@@ -4,7 +4,7 @@ import '../../@types/Align.js';
|
|
|
4
4
|
import '../../@types/PermissionAttr.js';
|
|
5
5
|
import '../base/types.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
|
-
import '../../
|
|
7
|
+
import '../../internals/types.js';
|
|
8
8
|
import '../../@types/Position.js';
|
|
9
9
|
|
|
10
10
|
declare const PhoneField: (props: IPhoneFieldProps) => JSX.Element;
|
|
@@ -4,7 +4,7 @@ import '../../@types/Align.js';
|
|
|
4
4
|
import '../../@types/PermissionAttr.js';
|
|
5
5
|
import '../base/types.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
|
-
import '../../
|
|
7
|
+
import '../../internals/types.js';
|
|
8
8
|
import '../../@types/Position.js';
|
|
9
9
|
|
|
10
10
|
declare const ZipCodeField: (props: IZipCode) => JSX.Element;
|
|
@@ -5,7 +5,7 @@ import '../../@types/Align.js';
|
|
|
5
5
|
import '../../@types/PermissionAttr.js';
|
|
6
6
|
import '../base/types.js';
|
|
7
7
|
import '../../@types/Period.js';
|
|
8
|
-
import '../../
|
|
8
|
+
import '../../internals/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
10
|
|
|
11
11
|
declare const getMaskOptions: ({ isDateField, placeholderChar, min, max, lazy, pattern, radix, thousandsSeparator, mapToRadix, scale, normalizeZeros, padFractionalZeros, rightElements, leftElements, isDateTimeField, ...rest }: IBaseMaskProps) => ReactMaskOpts;
|
|
@@ -3,7 +3,7 @@ import { TextAlign } from '../../@types/Align.js';
|
|
|
3
3
|
import { OnDenied, PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
4
4
|
import { CustomInputEvent } from '../base/types.js';
|
|
5
5
|
import '../../@types/Period.js';
|
|
6
|
-
import '../../
|
|
6
|
+
import '../../internals/types.js';
|
|
7
7
|
import '../../@types/Position.js';
|
|
8
8
|
|
|
9
9
|
type IBaseMaskProps = {
|
|
@@ -50,7 +50,7 @@ type IBaseMaskProps = {
|
|
|
50
50
|
mask?: any;
|
|
51
51
|
min?: any;
|
|
52
52
|
max?: any;
|
|
53
|
-
hint?: string;
|
|
53
|
+
hint?: string | string[];
|
|
54
54
|
hintPosition?: 'below' | 'onLabelRight';
|
|
55
55
|
themePopover?: 'light' | 'dark';
|
|
56
56
|
popoverAlign?: 'right' | 'left';
|
|
@@ -5,7 +5,7 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
-
import '../../
|
|
8
|
+
import '../../internals/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
10
|
|
|
11
11
|
declare const ActionButtons: ({ disabled, dropdownOpened, handleOpenClose, handleCheckAll, handleUncheckAll, dropdownAlignButton, }: IActionButtonsProps) => JSX.Element;
|
|
@@ -5,7 +5,7 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
-
import '../../
|
|
8
|
+
import '../../internals/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
10
|
|
|
11
11
|
declare const Dropdown: (props: IDropdownMultiSelectProps) => JSX.Element;
|
|
@@ -5,7 +5,7 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
-
import '../../
|
|
8
|
+
import '../../internals/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
10
|
|
|
11
11
|
declare const getFilteredDataCombo: ({ dataSource, descriptionKey, inputText, }: GetFilteredParams) => any[];
|
|
@@ -5,7 +5,7 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
-
import '../../
|
|
8
|
+
import '../../internals/types.js';
|
|
9
9
|
import '../../@types/Position.js';
|
|
10
10
|
|
|
11
11
|
declare const MultiSelectField: (props: IMultiSelectProps) => JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { CustomInputEvent } from '../base/types.js';
|
|
|
4
4
|
import '../../@types/Align.js';
|
|
5
5
|
import '../../@types/Period.js';
|
|
6
6
|
import '../../@types/PermissionAttr.js';
|
|
7
|
-
import '../../
|
|
7
|
+
import '../../internals/types.js';
|
|
8
8
|
import '../../@types/Position.js';
|
|
9
9
|
|
|
10
10
|
type DescriptionKey = string | ((dataSelected: DataCombo) => string);
|
|
@@ -56,7 +56,7 @@ interface IMultiSelectProps {
|
|
|
56
56
|
disabled?: boolean;
|
|
57
57
|
dropdownAlignButton?: 'left' | 'right';
|
|
58
58
|
label?: string;
|
|
59
|
-
hint?: string;
|
|
59
|
+
hint?: string | string[];
|
|
60
60
|
hintPosition?: 'below' | 'onLabelRight';
|
|
61
61
|
themePopover?: 'light' | 'dark';
|
|
62
62
|
popoverAlign?: 'right' | 'left';
|
|
@@ -4,7 +4,7 @@ import '../base/types.js';
|
|
|
4
4
|
import 'react';
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
|
-
import '../../
|
|
7
|
+
import '../../internals/types.js';
|
|
8
8
|
import '../../@types/Position.js';
|
|
9
9
|
import '../types.js';
|
|
10
10
|
import '../../@types/DataCombo.js';
|
|
@@ -4,7 +4,7 @@ import '../base/types.js';
|
|
|
4
4
|
import 'react';
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
|
-
import '../../
|
|
7
|
+
import '../../internals/types.js';
|
|
8
8
|
import '../../@types/Position.js';
|
|
9
9
|
import '../types.js';
|
|
10
10
|
import '../../@types/DataCombo.js';
|