linear-react-components-ui 1.1.2-beta.8 → 1.1.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintcache +1 -0
- package/.gitlab-ci.yml +1 -0
- package/.vscode/settings.json +10 -1
- package/lib/@types/SizePixels.d.ts +1 -1
- package/lib/assets/styles/button.scss +11 -9
- package/lib/assets/styles/checkbox.scss +37 -38
- package/lib/assets/styles/colors.scss +2 -0
- package/lib/assets/styles/commons.scss +1 -0
- package/lib/assets/styles/error.scss +9 -0
- package/lib/assets/styles/fieldset.scss +3 -0
- package/lib/assets/styles/gridlayout.scss +0 -2
- package/lib/assets/styles/hint.scss +21 -0
- package/lib/assets/styles/input.scss +7 -7
- package/lib/assets/styles/table.scss +2 -1
- package/lib/buttons/DefaultButton.js +29 -12
- package/lib/buttons/types.d.ts +1 -0
- package/lib/checkbox/Label.js +13 -4
- package/lib/checkbox/index.js +15 -11
- package/lib/dialog/Custom.js +4 -2
- package/lib/dialog/base/index.js +3 -2
- package/lib/dialog/form/index.js +3 -3
- package/lib/drawer/Drawer.js +1 -1
- package/lib/fieldset/index.js +4 -2
- package/lib/fieldset/types.d.ts +2 -0
- package/lib/form/Field.d.ts +2 -0
- package/lib/form/FieldArray.d.ts +2 -0
- package/lib/form/FieldArray.js +12 -26
- package/lib/form/FieldNumber.d.ts +2 -0
- package/lib/form/FieldPeriod.d.ts +2 -0
- package/lib/form/helpers.d.ts +2 -0
- package/lib/form/index.d.ts +2 -0
- package/lib/form/index.js +6 -7
- package/lib/form/types.d.ts +5 -2
- package/lib/form/withFieldHOC.d.ts +2 -0
- package/lib/form/withFormSecurity.d.ts +2 -0
- package/lib/gridlayout/GridRow.js +10 -2
- package/lib/gridlayout/types.d.ts +1 -1
- package/lib/hint/helpers.d.ts +3 -0
- package/lib/hint/helpers.js +21 -0
- package/lib/hint/index.d.ts +2 -1
- package/lib/hint/index.js +9 -15
- package/lib/hint/types.d.ts +3 -0
- package/lib/icons/helper.d.ts +4 -0
- package/lib/icons/helper.js +4 -0
- package/lib/inputs/base/InputTextBase.d.ts +2 -0
- package/lib/inputs/base/InputTextBase.js +51 -7
- package/lib/inputs/base/Label.d.ts +14 -0
- package/lib/inputs/base/Label.js +35 -0
- package/lib/inputs/base/helpers.d.ts +3 -2
- package/lib/inputs/base/helpers.js +1 -8
- package/lib/inputs/base/types.d.ts +14 -2
- package/lib/inputs/date/Dialog.d.ts +2 -0
- package/lib/inputs/date/Dropdown.d.ts +2 -0
- package/lib/inputs/date/helpers.d.ts +2 -0
- package/lib/inputs/date/index.d.ts +2 -0
- package/lib/inputs/date/index.js +2 -0
- package/lib/inputs/date/types.d.ts +3 -0
- package/lib/inputs/errorMessage/index.d.ts +17 -0
- package/lib/inputs/errorMessage/index.js +26 -0
- package/lib/inputs/file/DefaultFile.d.ts +2 -0
- package/lib/inputs/file/DefaultFile.js +4 -2
- package/lib/inputs/file/DragDropFile.d.ts +2 -0
- package/lib/inputs/file/DragDropFile.js +4 -2
- package/lib/inputs/file/File.d.ts +2 -0
- package/lib/inputs/file/FileButtonSettings.d.ts +2 -0
- package/lib/inputs/file/helpers.d.ts +2 -0
- package/lib/inputs/file/index.d.ts +2 -0
- package/lib/inputs/file/types.d.ts +2 -0
- package/lib/inputs/inputHOC.d.ts +3 -1
- package/lib/inputs/mask/BaseMask.d.ts +3 -0
- package/lib/inputs/mask/Cnpj.d.ts +3 -0
- package/lib/inputs/mask/Cpf.d.ts +3 -0
- package/lib/inputs/mask/Cpf.js +0 -1
- package/lib/inputs/mask/Phone.d.ts +3 -0
- package/lib/inputs/mask/ZipCode.d.ts +3 -0
- package/lib/inputs/mask/helpers.d.ts +2 -1
- package/lib/inputs/mask/imaskHOC.d.ts +3 -1
- package/lib/inputs/mask/index.d.ts +3 -0
- package/lib/inputs/mask/types.d.ts +5 -1
- package/lib/inputs/multiSelect/ActionButtons.d.ts +2 -0
- package/lib/inputs/multiSelect/Dropdown.d.ts +2 -0
- package/lib/inputs/multiSelect/helper.d.ts +2 -0
- package/lib/inputs/multiSelect/index.d.ts +2 -0
- package/lib/inputs/multiSelect/index.js +2 -2
- package/lib/inputs/multiSelect/types.d.ts +2 -0
- package/lib/inputs/number/BaseNumber.d.ts +3 -1
- package/lib/inputs/number/Currency.d.ts +3 -1
- package/lib/inputs/number/Decimal.d.ts +3 -1
- package/lib/inputs/number/index.d.ts +3 -1
- package/lib/inputs/number/types.d.ts +3 -1
- package/lib/inputs/period/Dialog.d.ts +2 -0
- package/lib/inputs/period/Dropdown.d.ts +2 -0
- package/lib/inputs/period/PeriodList.d.ts +2 -0
- package/lib/inputs/period/helper.d.ts +2 -0
- package/lib/inputs/period/index.d.ts +2 -0
- package/lib/inputs/period/index.js +4 -1
- package/lib/inputs/period/types.d.ts +2 -0
- package/lib/inputs/search/index.d.ts +3 -1
- package/lib/inputs/select/ActionButtons.d.ts +3 -1
- package/lib/inputs/select/Dropdown.d.ts +3 -1
- package/lib/inputs/select/helper.d.ts +3 -1
- package/lib/inputs/select/index.d.ts +2 -0
- package/lib/inputs/select/multiple/Selecteds.d.ts +2 -0
- package/lib/inputs/select/multiple/index.d.ts +2 -0
- package/lib/inputs/select/multiple/index.js +9 -3
- package/lib/inputs/select/simple/index.d.ts +2 -0
- package/lib/inputs/select/simple/index.js +9 -3
- package/lib/inputs/select/types.d.ts +4 -2
- package/lib/inputs/textarea/index.d.ts +2 -0
- package/lib/inputs/textarea/types.d.ts +2 -0
- package/lib/inputs/types.d.ts +10 -3
- package/lib/internals/types.d.ts +5 -2
- package/lib/internals/withTooltip.d.ts +3 -2
- package/lib/internals/withTooltip.js +25 -10
- package/lib/list/Item.js +19 -6
- package/lib/menus/sidenav/index.js +3 -3
- package/lib/menus/sidenav/popup_menu_search/index.js +1 -1
- package/lib/table/RowColumn.js +6 -8
- package/lib/toolbar/types.d.ts +1 -0
- package/lib/tooltip/index.js +2 -2
- package/lib/treeview/Node.js +2 -2
- package/lib/uitour/index.d.ts +2 -1
- package/lib/uitour/index.js +57 -4
- package/lib/uitour/types.d.ts +9 -1
- package/package.json +5 -5
- package/.tool-versions +0 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { KeyboardEvent, DragEvent,
|
|
1
|
+
import { MutableRefObject, 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 { WithTooltipProps } from '../../internals/types.js';
|
|
6
|
+
import '../../@types/Position.js';
|
|
5
7
|
|
|
6
8
|
interface CustomInputEvent {
|
|
7
9
|
preventDefault?: () => void;
|
|
@@ -15,6 +17,16 @@ interface CustomInputEvent {
|
|
|
15
17
|
files?: FileList | null;
|
|
16
18
|
};
|
|
17
19
|
}
|
|
20
|
+
interface InputLabelProps extends WithTooltipProps {
|
|
21
|
+
label?: string | string[];
|
|
22
|
+
customClassForLabel?: string;
|
|
23
|
+
styleForLabel?: object;
|
|
24
|
+
labelUppercase?: boolean;
|
|
25
|
+
required?: boolean;
|
|
26
|
+
targetRef?: (ref: HTMLSpanElement | null) => void;
|
|
27
|
+
labelRef?: MutableRefObject<HTMLSpanElement | null>;
|
|
28
|
+
onHoverLabel?: (e: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
|
|
29
|
+
}
|
|
18
30
|
interface IBaseProps {
|
|
19
31
|
inputHasFocus?: boolean;
|
|
20
32
|
onInputReceiveFocus?: () => void;
|
|
@@ -79,4 +91,4 @@ interface IBaseProps {
|
|
|
79
91
|
autoComplete?: 'on' | 'off';
|
|
80
92
|
}
|
|
81
93
|
|
|
82
|
-
export type { CustomInputEvent, IBaseProps };
|
|
94
|
+
export type { CustomInputEvent, IBaseProps, InputLabelProps };
|
|
@@ -5,6 +5,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
5
5
|
import '../base/types.js';
|
|
6
6
|
import '../../@types/Align.js';
|
|
7
7
|
import '../../@types/Period.js';
|
|
8
|
+
import '../../internals/types.js';
|
|
9
|
+
import '../../@types/Position.js';
|
|
8
10
|
|
|
9
11
|
declare const Dialog: ({ handlerClose, children, dialogSize }: IDateDialogProps) => JSX.Element;
|
|
10
12
|
|
|
@@ -5,6 +5,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
5
5
|
import '../base/types.js';
|
|
6
6
|
import '../../@types/Align.js';
|
|
7
7
|
import '../../@types/Period.js';
|
|
8
|
+
import '../../internals/types.js';
|
|
9
|
+
import '../../@types/Position.js';
|
|
8
10
|
|
|
9
11
|
declare const Dropdown: (props: IDateDropdownProps) => React.ReactPortal;
|
|
10
12
|
|
|
@@ -6,6 +6,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
6
6
|
import '../base/types.js';
|
|
7
7
|
import '../../@types/Align.js';
|
|
8
8
|
import '../../@types/Period.js';
|
|
9
|
+
import '../../internals/types.js';
|
|
10
|
+
import '../../@types/Position.js';
|
|
9
11
|
|
|
10
12
|
declare const PT_BR_FORMAT = "DD/MM/YYYY";
|
|
11
13
|
declare const EN_US_FORMAT = "YYYY-MM-DD";
|
|
@@ -5,6 +5,8 @@ import '../../@types/PermissionAttr.js';
|
|
|
5
5
|
import '../base/types.js';
|
|
6
6
|
import '../../@types/Align.js';
|
|
7
7
|
import '../../@types/Period.js';
|
|
8
|
+
import '../../internals/types.js';
|
|
9
|
+
import '../../@types/Position.js';
|
|
8
10
|
|
|
9
11
|
declare const DatePicker: (props: IDatePickerProps) => JSX.Element | null;
|
|
10
12
|
|
package/lib/inputs/date/index.js
CHANGED
|
@@ -32,6 +32,7 @@ const DatePicker = props => {
|
|
|
32
32
|
required = false,
|
|
33
33
|
value = '',
|
|
34
34
|
name = '',
|
|
35
|
+
inputRef: inputRefProp,
|
|
35
36
|
dialogSize = {
|
|
36
37
|
width: '350px',
|
|
37
38
|
height: '350px'
|
|
@@ -233,6 +234,7 @@ const DatePicker = props => {
|
|
|
233
234
|
},
|
|
234
235
|
inputRef: el => {
|
|
235
236
|
inputRef.current = el;
|
|
237
|
+
if (inputRefProp) inputRefProp.current = el;
|
|
236
238
|
},
|
|
237
239
|
rightElements: getButtonOpen(),
|
|
238
240
|
required: required,
|
|
@@ -4,6 +4,8 @@ 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 '../../internals/types.js';
|
|
8
|
+
import '../../@types/Position.js';
|
|
7
9
|
|
|
8
10
|
interface IDatePickerProps {
|
|
9
11
|
value?: string;
|
|
@@ -12,6 +14,7 @@ interface IDatePickerProps {
|
|
|
12
14
|
setFocusOnSelect?: boolean;
|
|
13
15
|
openOnFocus?: boolean;
|
|
14
16
|
showCalendarInDialog?: boolean;
|
|
17
|
+
inputRef?: React.MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null>;
|
|
15
18
|
dialogSize?: {
|
|
16
19
|
width: string;
|
|
17
20
|
height: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { ErrorProps } from '../types.js';
|
|
3
|
+
import 'imask';
|
|
4
|
+
import '../../@types/PermissionAttr.js';
|
|
5
|
+
import '../../@types/DataCombo.js';
|
|
6
|
+
import '../base/types.js';
|
|
7
|
+
import '../../@types/Align.js';
|
|
8
|
+
import '../../@types/Period.js';
|
|
9
|
+
import '../../internals/types.js';
|
|
10
|
+
import '../../@types/Position.js';
|
|
11
|
+
import '../../drawer/types.js';
|
|
12
|
+
import '../../@types/Icon.js';
|
|
13
|
+
import '../../icons/helper.js';
|
|
14
|
+
|
|
15
|
+
declare const ErrorMessage: React__default.ForwardRefExoticComponent<ErrorProps & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
16
|
+
|
|
17
|
+
export { ErrorMessage, ErrorMessage as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.ErrorMessage = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
require("../../assets/styles/error.scss");
|
|
9
|
+
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); }
|
|
10
|
+
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; }
|
|
11
|
+
const ErrorMessage = exports.ErrorMessage = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
12
|
+
let {
|
|
13
|
+
customClass = '',
|
|
14
|
+
messages: messagesProp,
|
|
15
|
+
style
|
|
16
|
+
} = _ref;
|
|
17
|
+
if (!messagesProp || messagesProp.length === 0) return null;
|
|
18
|
+
const messages = Array.isArray(messagesProp) ? messagesProp : [messagesProp];
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement("p", {
|
|
20
|
+
ref: ref,
|
|
21
|
+
style: style,
|
|
22
|
+
className: "errormessages-component ".concat(customClass)
|
|
23
|
+
}, messages.join(', '));
|
|
24
|
+
});
|
|
25
|
+
ErrorMessage.displayName = 'ErrorMessage';
|
|
26
|
+
var _default = exports.default = ErrorMessage;
|
|
@@ -5,6 +5,8 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
+
import '../../internals/types.js';
|
|
9
|
+
import '../../@types/Position.js';
|
|
8
10
|
|
|
9
11
|
declare const DefaultFile: (props: IDefaultFileProps) => JSX.Element;
|
|
10
12
|
|
|
@@ -12,7 +12,7 @@ require("../../assets/styles/file.scss");
|
|
|
12
12
|
var _buttons = _interopRequireDefault(require("../../buttons"));
|
|
13
13
|
var _icons = _interopRequireDefault(require("../../icons"));
|
|
14
14
|
var _popover = _interopRequireWildcard(require("../../popover"));
|
|
15
|
-
var
|
|
15
|
+
var _errorMessage = require("../errorMessage");
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
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
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; }
|
|
@@ -78,6 +78,8 @@ const DefaultFile = props => {
|
|
|
78
78
|
id: id,
|
|
79
79
|
onBtnClickInsert: () => onBtnClickInsert()
|
|
80
80
|
})
|
|
81
|
-
}), popUpDescription(), buttonRemoveFile()),
|
|
81
|
+
}), popUpDescription(), buttonRemoveFile()), /*#__PURE__*/_react.default.createElement(_errorMessage.ErrorMessage, {
|
|
82
|
+
messages: errorMessages
|
|
83
|
+
}));
|
|
82
84
|
};
|
|
83
85
|
var _default = exports.default = DefaultFile;
|
|
@@ -5,6 +5,8 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
+
import '../../internals/types.js';
|
|
9
|
+
import '../../@types/Position.js';
|
|
8
10
|
|
|
9
11
|
declare const DragDropFile: (props: IDragDropFileProps) => JSX.Element;
|
|
10
12
|
|
|
@@ -9,8 +9,8 @@ var _lodash = _interopRequireDefault(require("lodash"));
|
|
|
9
9
|
var _buttons = require("../../buttons");
|
|
10
10
|
var _icons = _interopRequireDefault(require("../../icons"));
|
|
11
11
|
var _InputTextBase = _interopRequireDefault(require("../base/InputTextBase"));
|
|
12
|
-
var helperBase = _interopRequireWildcard(require("../base/helpers"));
|
|
13
12
|
var _hint = _interopRequireDefault(require("../../hint"));
|
|
13
|
+
var _errorMessage = require("../errorMessage");
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
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); }
|
|
16
16
|
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; }
|
|
@@ -262,7 +262,9 @@ const DragDropFile = props => {
|
|
|
262
262
|
onDragLeave: handleDragLeave,
|
|
263
263
|
onDragOver: handleDragOver,
|
|
264
264
|
onDrop: handleDrop
|
|
265
|
-
})),
|
|
265
|
+
})), /*#__PURE__*/_react.default.createElement(_errorMessage.ErrorMessage, {
|
|
266
|
+
messages: errorMessages
|
|
267
|
+
}), /*#__PURE__*/_react.default.createElement(_hint.default, {
|
|
266
268
|
visible: !!hint,
|
|
267
269
|
customClass: "hint",
|
|
268
270
|
description: hint
|
|
@@ -5,6 +5,8 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
+
import '../../internals/types.js';
|
|
9
|
+
import '../../@types/Position.js';
|
|
8
10
|
|
|
9
11
|
declare const File: ({ applyDragDrop, defaultFiles, gridLayout, ...rest }: IFileProps) => JSX.Element;
|
|
10
12
|
|
|
@@ -5,6 +5,8 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
+
import '../../internals/types.js';
|
|
9
|
+
import '../../@types/Position.js';
|
|
8
10
|
|
|
9
11
|
declare const FileButtonSettings: (props: IFileButtonSettingsProps) => JSX.Element;
|
|
10
12
|
|
|
@@ -5,6 +5,8 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
+
import '../../internals/types.js';
|
|
9
|
+
import '../../@types/Position.js';
|
|
8
10
|
|
|
9
11
|
declare const transformFilesToFileList: (files: CustomFile) => FileList;
|
|
10
12
|
|
|
@@ -4,6 +4,8 @@ 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 '../../internals/types.js';
|
|
8
|
+
import '../../@types/Position.js';
|
|
7
9
|
|
|
8
10
|
type CustomFile = FileList | File | File[];
|
|
9
11
|
interface IFileProps {
|
package/lib/inputs/inputHOC.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { IInputHOCProps } from './types.js';
|
|
3
|
+
import 'imask';
|
|
3
4
|
import '../@types/PermissionAttr.js';
|
|
4
5
|
import '../@types/DataCombo.js';
|
|
5
6
|
import './base/types.js';
|
|
6
7
|
import '../@types/Align.js';
|
|
7
8
|
import '../@types/Period.js';
|
|
8
|
-
import '../
|
|
9
|
+
import '../internals/types.js';
|
|
9
10
|
import '../@types/Position.js';
|
|
11
|
+
import '../drawer/types.js';
|
|
10
12
|
import '../@types/Icon.js';
|
|
11
13
|
import '../icons/helper.js';
|
|
12
14
|
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { IBaseMaskProps } from './types.js';
|
|
2
2
|
import 'react';
|
|
3
|
+
import 'imask';
|
|
3
4
|
import '../../@types/Align.js';
|
|
4
5
|
import '../../@types/PermissionAttr.js';
|
|
5
6
|
import '../base/types.js';
|
|
6
7
|
import '../../@types/Period.js';
|
|
8
|
+
import '../../internals/types.js';
|
|
9
|
+
import '../../@types/Position.js';
|
|
7
10
|
|
|
8
11
|
declare const _default: {
|
|
9
12
|
(props: IBaseMaskProps): JSX.Element;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { ICnpjFieldProps } from './types.js';
|
|
2
2
|
import 'react';
|
|
3
|
+
import 'imask';
|
|
3
4
|
import '../../@types/Align.js';
|
|
4
5
|
import '../../@types/PermissionAttr.js';
|
|
5
6
|
import '../base/types.js';
|
|
6
7
|
import '../../@types/Period.js';
|
|
8
|
+
import '../../internals/types.js';
|
|
9
|
+
import '../../@types/Position.js';
|
|
7
10
|
|
|
8
11
|
declare const CnpjField: {
|
|
9
12
|
(props: ICnpjFieldProps): JSX.Element;
|
package/lib/inputs/mask/Cpf.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { ICpfProps } from './types.js';
|
|
2
2
|
import 'react';
|
|
3
|
+
import 'imask';
|
|
3
4
|
import '../../@types/Align.js';
|
|
4
5
|
import '../../@types/PermissionAttr.js';
|
|
5
6
|
import '../base/types.js';
|
|
6
7
|
import '../../@types/Period.js';
|
|
8
|
+
import '../../internals/types.js';
|
|
9
|
+
import '../../@types/Position.js';
|
|
7
10
|
|
|
8
11
|
declare const CpfField: {
|
|
9
12
|
(props: ICpfProps): JSX.Element;
|
package/lib/inputs/mask/Cpf.js
CHANGED
|
@@ -30,7 +30,6 @@ const CpfField = props => {
|
|
|
30
30
|
}, 300), [handlerSetComponentValidator]);
|
|
31
31
|
(0, _react.useEffect)(() => debouncedOnChange.cancel, []);
|
|
32
32
|
const onChange = e => {
|
|
33
|
-
// console.log('onChange >>>', props.onChange);
|
|
34
33
|
if (enableValidation && e) {
|
|
35
34
|
debouncedOnChange(e.target.value);
|
|
36
35
|
if (props.onChange) props.onChange(e);
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { IPhoneFieldProps } from './types.js';
|
|
2
2
|
import 'react';
|
|
3
|
+
import 'imask';
|
|
3
4
|
import '../../@types/Align.js';
|
|
4
5
|
import '../../@types/PermissionAttr.js';
|
|
5
6
|
import '../base/types.js';
|
|
6
7
|
import '../../@types/Period.js';
|
|
8
|
+
import '../../internals/types.js';
|
|
9
|
+
import '../../@types/Position.js';
|
|
7
10
|
|
|
8
11
|
declare const PhoneField: (props: IPhoneFieldProps) => JSX.Element;
|
|
9
12
|
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { IZipCode } from './types.js';
|
|
2
2
|
import 'react';
|
|
3
|
+
import 'imask';
|
|
3
4
|
import '../../@types/Align.js';
|
|
4
5
|
import '../../@types/PermissionAttr.js';
|
|
5
6
|
import '../base/types.js';
|
|
6
7
|
import '../../@types/Period.js';
|
|
8
|
+
import '../../internals/types.js';
|
|
9
|
+
import '../../@types/Position.js';
|
|
7
10
|
|
|
8
11
|
declare const ZipCodeField: (props: IZipCode) => JSX.Element;
|
|
9
12
|
|
|
@@ -6,8 +6,9 @@ import '../../@types/DataCombo.js';
|
|
|
6
6
|
import '../base/types.js';
|
|
7
7
|
import '../../@types/Align.js';
|
|
8
8
|
import '../../@types/Period.js';
|
|
9
|
-
import '../../
|
|
9
|
+
import '../../internals/types.js';
|
|
10
10
|
import '../../@types/Position.js';
|
|
11
|
+
import '../../drawer/types.js';
|
|
11
12
|
import '../../@types/Icon.js';
|
|
12
13
|
import '../../icons/helper.js';
|
|
13
14
|
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { IMaskHOCProps } from '../types.js';
|
|
3
|
+
import 'imask';
|
|
3
4
|
import '../../@types/PermissionAttr.js';
|
|
4
5
|
import '../../@types/DataCombo.js';
|
|
5
6
|
import '../base/types.js';
|
|
6
7
|
import '../../@types/Align.js';
|
|
7
8
|
import '../../@types/Period.js';
|
|
8
|
-
import '../../
|
|
9
|
+
import '../../internals/types.js';
|
|
9
10
|
import '../../@types/Position.js';
|
|
11
|
+
import '../../drawer/types.js';
|
|
10
12
|
import '../../@types/Icon.js';
|
|
11
13
|
import '../../icons/helper.js';
|
|
12
14
|
|
|
@@ -5,10 +5,13 @@ export { default as PhoneField } from './Phone.js';
|
|
|
5
5
|
export { default as ZipCodeField } from './ZipCode.js';
|
|
6
6
|
import './types.js';
|
|
7
7
|
import 'react';
|
|
8
|
+
import 'imask';
|
|
8
9
|
import '../../@types/Align.js';
|
|
9
10
|
import '../../@types/PermissionAttr.js';
|
|
10
11
|
import '../base/types.js';
|
|
11
12
|
import '../../@types/Period.js';
|
|
13
|
+
import '../../internals/types.js';
|
|
14
|
+
import '../../@types/Position.js';
|
|
12
15
|
|
|
13
16
|
|
|
14
17
|
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { KeyboardEvent, MutableRefObject } from 'react';
|
|
2
|
+
import IMask from 'imask';
|
|
2
3
|
import { TextAlign } from '../../@types/Align.js';
|
|
3
4
|
import { OnDenied, PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
4
5
|
import { CustomInputEvent } from '../base/types.js';
|
|
5
6
|
import '../../@types/Period.js';
|
|
7
|
+
import '../../internals/types.js';
|
|
8
|
+
import '../../@types/Position.js';
|
|
6
9
|
|
|
7
10
|
interface IBaseMaskProps {
|
|
8
11
|
value?: string;
|
|
9
12
|
onBlur?: (e: CustomInputEvent) => void;
|
|
10
13
|
onKeyDown?: (e: CustomInputEvent | KeyboardEvent<Element>) => void;
|
|
11
14
|
defaultValue?: string;
|
|
12
|
-
mask?:
|
|
15
|
+
mask?: IMask.AnyMask;
|
|
13
16
|
isNumeric?: boolean;
|
|
14
17
|
scale?: number;
|
|
15
18
|
radix?: string;
|
|
@@ -47,6 +50,7 @@ interface IBaseMaskProps {
|
|
|
47
50
|
returnFormattedValueOnKeyDown?: boolean;
|
|
48
51
|
isDateField?: boolean;
|
|
49
52
|
autoCompleteMask?: 'left' | 'right';
|
|
53
|
+
definitions?: IMask.AllMaskedOptions['definitions'];
|
|
50
54
|
}
|
|
51
55
|
interface ICnpjFieldProps extends IBaseMaskProps {
|
|
52
56
|
value?: string;
|
|
@@ -5,6 +5,8 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
+
import '../../internals/types.js';
|
|
9
|
+
import '../../@types/Position.js';
|
|
8
10
|
|
|
9
11
|
declare const ActionButtons: ({ disabled, dropdownOpened, handleOpenClose, handleCheckAll, handleUncheckAll, dropdownAlignButton, }: IActionButtonsProps) => JSX.Element;
|
|
10
12
|
|
|
@@ -5,6 +5,8 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
+
import '../../internals/types.js';
|
|
9
|
+
import '../../@types/Position.js';
|
|
8
10
|
|
|
9
11
|
declare const Dropdown: (props: IDropdownMultiSelectProps) => JSX.Element;
|
|
10
12
|
|
|
@@ -5,6 +5,8 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
+
import '../../internals/types.js';
|
|
9
|
+
import '../../@types/Position.js';
|
|
8
10
|
|
|
9
11
|
declare const getFilteredDataCombo: ({ dataSource, descriptionKey, inputText, }: GetFilteredParams) => any[];
|
|
10
12
|
|
|
@@ -5,6 +5,8 @@ import '../base/types.js';
|
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
7
|
import '../../@types/PermissionAttr.js';
|
|
8
|
+
import '../../internals/types.js';
|
|
9
|
+
import '../../@types/Position.js';
|
|
8
10
|
|
|
9
11
|
declare const MultiSelectField: (props: IMultiSelectProps) => JSX.Element;
|
|
10
12
|
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var uuid = _interopRequireWildcard(require("uuid"));
|
|
10
10
|
var _InputTextBase = _interopRequireDefault(require("../base/InputTextBase"));
|
|
11
11
|
var _ActionButtons = _interopRequireDefault(require("./ActionButtons"));
|
|
12
12
|
var _Dropdown = _interopRequireDefault(require("./Dropdown"));
|
|
@@ -33,7 +33,7 @@ const MultiSelectField = props => {
|
|
|
33
33
|
gridLayout,
|
|
34
34
|
dropdownAlignButton = 'left'
|
|
35
35
|
} = props;
|
|
36
|
-
const componentId = "multiSelect-component".concat(
|
|
36
|
+
const componentId = "multiSelect-component".concat(uuid.v1());
|
|
37
37
|
const [dataCombo, setDataCombo] = (0, _react.useState)(dataSource);
|
|
38
38
|
const [selecteds, setSelecteds] = (0, _react.useState)();
|
|
39
39
|
const [inputValue, setInputValue] = (0, _react.useState)('');
|
|
@@ -4,6 +4,8 @@ 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 '../../internals/types.js';
|
|
8
|
+
import '../../@types/Position.js';
|
|
7
9
|
|
|
8
10
|
type DescriptionKey = string | ((dataSelected: DataCombo) => string);
|
|
9
11
|
interface GetFilteredParams {
|
|
@@ -4,10 +4,12 @@ import '../base/types.js';
|
|
|
4
4
|
import 'react';
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
|
+
import '../../internals/types.js';
|
|
8
|
+
import '../../@types/Position.js';
|
|
7
9
|
import '../types.js';
|
|
10
|
+
import 'imask';
|
|
8
11
|
import '../../@types/DataCombo.js';
|
|
9
12
|
import '../../drawer/types.js';
|
|
10
|
-
import '../../@types/Position.js';
|
|
11
13
|
import '../../@types/Icon.js';
|
|
12
14
|
import '../../icons/helper.js';
|
|
13
15
|
|
|
@@ -4,10 +4,12 @@ import '../base/types.js';
|
|
|
4
4
|
import 'react';
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
|
+
import '../../internals/types.js';
|
|
8
|
+
import '../../@types/Position.js';
|
|
7
9
|
import '../types.js';
|
|
10
|
+
import 'imask';
|
|
8
11
|
import '../../@types/DataCombo.js';
|
|
9
12
|
import '../../drawer/types.js';
|
|
10
|
-
import '../../@types/Position.js';
|
|
11
13
|
import '../../@types/Icon.js';
|
|
12
14
|
import '../../icons/helper.js';
|
|
13
15
|
|
|
@@ -4,10 +4,12 @@ import '../base/types.js';
|
|
|
4
4
|
import 'react';
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
|
+
import '../../internals/types.js';
|
|
8
|
+
import '../../@types/Position.js';
|
|
7
9
|
import '../types.js';
|
|
10
|
+
import 'imask';
|
|
8
11
|
import '../../@types/DataCombo.js';
|
|
9
12
|
import '../../drawer/types.js';
|
|
10
|
-
import '../../@types/Position.js';
|
|
11
13
|
import '../../@types/Icon.js';
|
|
12
14
|
import '../../icons/helper.js';
|
|
13
15
|
|
|
@@ -6,10 +6,12 @@ import '../base/types.js';
|
|
|
6
6
|
import 'react';
|
|
7
7
|
import '../../@types/Align.js';
|
|
8
8
|
import '../../@types/Period.js';
|
|
9
|
+
import '../../internals/types.js';
|
|
10
|
+
import '../../@types/Position.js';
|
|
9
11
|
import '../types.js';
|
|
12
|
+
import 'imask';
|
|
10
13
|
import '../../@types/DataCombo.js';
|
|
11
14
|
import '../../drawer/types.js';
|
|
12
|
-
import '../../@types/Position.js';
|
|
13
15
|
import '../../@types/Icon.js';
|
|
14
16
|
import '../../icons/helper.js';
|
|
15
17
|
|
|
@@ -4,9 +4,11 @@ import { IMaskHOCProps } from '../types.js';
|
|
|
4
4
|
import 'react';
|
|
5
5
|
import '../../@types/Align.js';
|
|
6
6
|
import '../../@types/Period.js';
|
|
7
|
+
import '../../internals/types.js';
|
|
8
|
+
import '../../@types/Position.js';
|
|
9
|
+
import 'imask';
|
|
7
10
|
import '../../@types/DataCombo.js';
|
|
8
11
|
import '../../drawer/types.js';
|
|
9
|
-
import '../../@types/Position.js';
|
|
10
12
|
import '../../@types/Icon.js';
|
|
11
13
|
import '../../icons/helper.js';
|
|
12
14
|
|
|
@@ -6,6 +6,8 @@ import '../../@types/Period.js';
|
|
|
6
6
|
import '../../@types/PermissionAttr.js';
|
|
7
7
|
import '../base/types.js';
|
|
8
8
|
import '../../@types/Align.js';
|
|
9
|
+
import '../../internals/types.js';
|
|
10
|
+
import '../../@types/Position.js';
|
|
9
11
|
|
|
10
12
|
declare const Dialog: ({ onOpenChange, children, dialogSize }: IDialogProps) => JSX.Element;
|
|
11
13
|
|
|
@@ -6,6 +6,8 @@ import '../../@types/Period.js';
|
|
|
6
6
|
import '../../@types/PermissionAttr.js';
|
|
7
7
|
import '../base/types.js';
|
|
8
8
|
import '../../@types/Align.js';
|
|
9
|
+
import '../../internals/types.js';
|
|
10
|
+
import '../../@types/Position.js';
|
|
9
11
|
|
|
10
12
|
declare const Dropdown: (props: IPeriodDropdownProps) => React.ReactPortal;
|
|
11
13
|
|
|
@@ -6,6 +6,8 @@ import '../../@types/Period.js';
|
|
|
6
6
|
import '../../@types/PermissionAttr.js';
|
|
7
7
|
import '../base/types.js';
|
|
8
8
|
import '../../@types/Align.js';
|
|
9
|
+
import '../../internals/types.js';
|
|
10
|
+
import '../../@types/Position.js';
|
|
9
11
|
|
|
10
12
|
declare const PeriodList: ({ selected, handleOnSelect }: IPeriodListProps) => JSX.Element;
|
|
11
13
|
|
|
@@ -6,6 +6,8 @@ import '../../@types/Period.js';
|
|
|
6
6
|
import '../../@types/PermissionAttr.js';
|
|
7
7
|
import '../base/types.js';
|
|
8
8
|
import '../../@types/Align.js';
|
|
9
|
+
import '../../internals/types.js';
|
|
10
|
+
import '../../@types/Position.js';
|
|
9
11
|
|
|
10
12
|
declare const getCalendarDropdownStyle: ({ topPosition, leftPosition, width }: {
|
|
11
13
|
topPosition: number | string;
|
|
@@ -6,6 +6,8 @@ import '../../@types/Period.js';
|
|
|
6
6
|
import '../../@types/PermissionAttr.js';
|
|
7
7
|
import '../base/types.js';
|
|
8
8
|
import '../../@types/Align.js';
|
|
9
|
+
import '../../internals/types.js';
|
|
10
|
+
import '../../@types/Position.js';
|
|
9
11
|
|
|
10
12
|
declare const PeriodPicker: (props: IPeriodPickerProps) => JSX.Element | null;
|
|
11
13
|
|