linear-react-components-ui 1.1.2-beta.9 → 1.1.3-beta.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/.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 +45 -38
- package/lib/assets/styles/colors.scss +3 -1
- package/lib/assets/styles/commons.scss +1 -0
- package/lib/assets/styles/dialog.scss +27 -10
- 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/icon.scss +4 -31
- package/lib/assets/styles/input.scss +7 -7
- package/lib/assets/styles/multiSelect.scss +6 -1
- package/lib/assets/styles/radio.scss +37 -35
- package/lib/assets/styles/select.scss +13 -7
- package/lib/assets/styles/table.scss +2 -1
- package/lib/assets/styles/tabs.scss +3 -0
- package/lib/buttons/DefaultButton.js +30 -11
- package/lib/buttons/types.d.ts +1 -0
- package/lib/checkbox/Label.js +13 -4
- package/lib/checkbox/index.d.ts +2 -2
- package/lib/checkbox/index.js +23 -18
- package/lib/checkbox/types.d.ts +2 -1
- package/lib/dialog/base/Content.js +1 -0
- package/lib/dialog/base/Header.js +4 -4
- package/lib/dialog/base/index.js +9 -6
- package/lib/drawer/Drawer.js +5 -4
- package/lib/drawer/Header.js +1 -1
- package/lib/dropdown/Popup.d.ts +1 -1
- package/lib/dropdown/Popup.js +5 -2
- package/lib/dropdown/types.d.ts +1 -0
- 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 +5 -1
- package/lib/icons/index.d.ts +2 -3
- package/lib/icons/index.js +3 -10
- package/lib/icons/types.d.ts +9 -22
- package/lib/index.d.ts +0 -1
- package/lib/inputs/base/InputTextBase.d.ts +2 -0
- package/lib/inputs/base/InputTextBase.js +54 -8
- 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 +15 -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/ActionButtons.js +10 -8
- package/lib/inputs/multiSelect/Dropdown.d.ts +2 -0
- package/lib/inputs/multiSelect/Dropdown.js +2 -6
- package/lib/inputs/multiSelect/helper.d.ts +2 -0
- package/lib/inputs/multiSelect/index.d.ts +2 -0
- 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/ActionButtons.js +18 -27
- package/lib/inputs/select/Dropdown.d.ts +3 -1
- package/lib/inputs/select/Dropdown.js +2 -6
- 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 +3 -1
- package/lib/inputs/select/multiple/Selecteds.js +3 -5
- package/lib/inputs/select/multiple/index.d.ts +2 -0
- package/lib/inputs/select/multiple/index.js +38 -19
- package/lib/inputs/select/simple/index.d.ts +2 -0
- package/lib/inputs/select/simple/index.js +60 -31
- package/lib/inputs/select/types.d.ts +5 -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 +12 -5
- 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/float/types.d.ts +1 -1
- package/lib/menus/sidenav/popup_menu_search/index.js +4 -3
- package/lib/menus/sidenav/types.d.ts +1 -1
- package/lib/table/HeaderColumn.d.ts +1 -1
- package/lib/table/HeaderColumn.js +5 -1
- package/lib/table/RowColumn.js +6 -8
- package/lib/table/types.d.ts +2 -0
- package/lib/tabs/context.js +1 -1
- package/lib/tabs/types.d.ts +3 -3
- package/lib/toolbar/types.d.ts +1 -0
- 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 +4 -4
- package/.tool-versions +0 -1
- package/lib/assets/styles/textContent.scss +0 -9
- package/lib/menus/sidenav/popup_menu_help/index.js +0 -78
- package/lib/textContent/index.d.ts +0 -8
- package/lib/textContent/index.js +0 -30
|
@@ -7,11 +7,11 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
9
9
|
var _icons = _interopRequireDefault(require("../../lib/icons"));
|
|
10
|
-
var _withTooltip =
|
|
10
|
+
var _withTooltip = _interopRequireWildcard(require("../internals/withTooltip"));
|
|
11
11
|
var _spinner = _interopRequireDefault(require("../spinner"));
|
|
12
12
|
var _withDropdown = _interopRequireDefault(require("../dropdown/withDropdown"));
|
|
13
13
|
var _permissionValidations = require("../permissionValidations");
|
|
14
|
-
const _excluded = ["dropdown", "onClick", "disabled", "iconName", "icon", "targetRef", "tabIndex", "isLoading", "label", "showDropdown", "getDropdownPopup", "isDropdownOpened", "showIconDropdown", "content", "style", "toggleable", "activeIconColor", "iconStyle", "visible", "customClass", "className", "size", "iconAlign", "boxShadow", "transparent", "round", "permissionAttr", "skeletonize", "
|
|
14
|
+
const _excluded = ["dropdown", "onClick", "disabled", "iconName", "icon", "targetRef", "tabIndex", "isLoading", "label", "showDropdown", "getDropdownPopup", "isDropdownOpened", "showIconDropdown", "content", "style", "toggleable", "activeIconColor", "iconStyle", "visible", "customClass", "className", "size", "iconAlign", "boxShadow", "transparent", "round", "permissionAttr", "skeletonize", "errorMessage", "tooltipWidth", "isFloatMenu", "dropdownAlign", "customClassForDropdown", "buttonRef", "onDeniedText"];
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
16
|
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); }
|
|
17
17
|
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; }
|
|
@@ -53,13 +53,13 @@ const DefaultButton = _ref => {
|
|
|
53
53
|
round,
|
|
54
54
|
permissionAttr,
|
|
55
55
|
skeletonize,
|
|
56
|
-
tooltipPosition,
|
|
57
56
|
errorMessage,
|
|
58
57
|
tooltipWidth,
|
|
59
58
|
isFloatMenu,
|
|
60
59
|
dropdownAlign,
|
|
61
60
|
customClassForDropdown,
|
|
62
|
-
buttonRef
|
|
61
|
+
buttonRef,
|
|
62
|
+
onDeniedText = 'Permissão Negada! Consulte o Administrador do sistema.'
|
|
63
63
|
} = _ref,
|
|
64
64
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
65
65
|
const options = [_permissionValidations.OPTIONS_ON_DENIED.disabled, _permissionValidations.OPTIONS_ON_DENIED.unvisible];
|
|
@@ -67,18 +67,30 @@ const DefaultButton = _ref => {
|
|
|
67
67
|
const [onDenied] = (0, _react.useState)((0, _permissionValidations.actionsOnPermissionDenied)(options, permissionAttr));
|
|
68
68
|
const refButton = (0, _react.useRef)(null);
|
|
69
69
|
const disabledIconColor = 'rgb(193, 193, 193)';
|
|
70
|
-
const
|
|
71
|
-
const
|
|
70
|
+
const disabledByPermission = onDenied.disabled;
|
|
71
|
+
const isDisabled = !!onDenied.disabled || disabled;
|
|
72
|
+
const {
|
|
73
|
+
handlerSetOnDeniedText
|
|
74
|
+
} = (0, _react.useContext)(_withTooltip.TooltipContext);
|
|
75
|
+
const getClass = () => "button-component ".concat(className, "\n ").concat(customClass, "\n ").concat(transparent && '-transparent', "\n ").concat(isDisabled && '-disabled', "\n ").concat(size && "-".concat(size), "\n ").concat(dropdown && !round && 'icon-right', "\n ").concat(dropdown && round && 'icon-center', "\n ").concat(iconAlign && !dropdown && "icon-".concat(iconAlign), "\n ").concat(boxShadow ? '' : '-shadowsdisabled', "\n ").concat(round && '-round');
|
|
76
|
+
const returnPadlockIcon = resultantStyle => /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
77
|
+
name: "padlock",
|
|
78
|
+
size: 16,
|
|
79
|
+
pointerEvents: "none",
|
|
80
|
+
color: disabledIconColor,
|
|
81
|
+
style: resultantStyle
|
|
82
|
+
});
|
|
72
83
|
const getIcon = () => {
|
|
73
84
|
let resultantStyle = iconStyle;
|
|
74
|
-
if (
|
|
85
|
+
if (isDisabled) {
|
|
75
86
|
resultantStyle = _objectSpread(_objectSpread({}, resultantStyle), {}, {
|
|
76
87
|
fill: disabledIconColor
|
|
77
88
|
});
|
|
78
89
|
}
|
|
79
90
|
if (dropdown && showIconDropdown) {
|
|
91
|
+
const openDropDownRule = isDropdownOpened ? 'mini_up' : 'mini_down';
|
|
80
92
|
return /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
81
|
-
name:
|
|
93
|
+
name: openDropDownRule,
|
|
82
94
|
size: 16,
|
|
83
95
|
customClass: "dropdown-icon",
|
|
84
96
|
pointerEvents: "none",
|
|
@@ -86,7 +98,9 @@ const DefaultButton = _ref => {
|
|
|
86
98
|
});
|
|
87
99
|
}
|
|
88
100
|
if (icon) {
|
|
89
|
-
if (
|
|
101
|
+
if (disabledByPermission) {
|
|
102
|
+
return returnPadlockIcon(resultantStyle);
|
|
103
|
+
} else if (disabled) {
|
|
90
104
|
return /*#__PURE__*/_react.default.createElement(_icons.default, _extends({}, icon.props, {
|
|
91
105
|
color: disabledIconColor
|
|
92
106
|
}));
|
|
@@ -100,19 +114,24 @@ const DefaultButton = _ref => {
|
|
|
100
114
|
pointerEvents: "none",
|
|
101
115
|
style: resultantStyle
|
|
102
116
|
});
|
|
117
|
+
} else if (!icon && disabledByPermission) {
|
|
118
|
+
return returnPadlockIcon(resultantStyle);
|
|
103
119
|
}
|
|
104
120
|
return null;
|
|
105
121
|
};
|
|
122
|
+
(0, _react.useEffect)(() => {
|
|
123
|
+
if (disabledByPermission) handlerSetOnDeniedText(onDeniedText);
|
|
124
|
+
}, [disabledByPermission]);
|
|
106
125
|
if (!visible || onDenied.unvisible) return null;
|
|
107
126
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("button", _extends({}, rest, {
|
|
108
127
|
style: style,
|
|
109
128
|
onClick: e => {
|
|
110
|
-
if (
|
|
129
|
+
if (isDisabled) return;
|
|
111
130
|
if (onClick) onClick(e);
|
|
112
131
|
if (dropdown && showDropdown) showDropdown();
|
|
113
132
|
if (onClick && toggleable) setActiveButton(!activeButton);
|
|
114
133
|
},
|
|
115
|
-
disabled:
|
|
134
|
+
disabled: isDisabled,
|
|
116
135
|
className: "".concat(getClass(), " ").concat(activeButton ? '-toggleable' : '', " ").concat(skeletonize ? '-skeletonized' : ''),
|
|
117
136
|
ref: r => {
|
|
118
137
|
if (buttonRef) {
|
package/lib/buttons/types.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ interface IButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
43
43
|
onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
44
44
|
closeDropdownOnClickOutside?: boolean;
|
|
45
45
|
errorMessage?: string;
|
|
46
|
+
onDeniedText?: string;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
export type { IButtonProps };
|
package/lib/checkbox/Label.js
CHANGED
|
@@ -6,17 +6,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _withTooltip = _interopRequireDefault(require("../internals/withTooltip"));
|
|
9
|
+
var _hint = _interopRequireDefault(require("../hint"));
|
|
9
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
11
|
const Label = _ref => {
|
|
11
12
|
let {
|
|
12
13
|
label,
|
|
13
|
-
targetSpanRef
|
|
14
|
+
targetSpanRef,
|
|
15
|
+
disabled,
|
|
16
|
+
hint
|
|
14
17
|
} = _ref;
|
|
15
|
-
return /*#__PURE__*/_react.default.createElement("
|
|
16
|
-
className: "description"
|
|
18
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
19
|
+
className: "description"
|
|
20
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
17
21
|
ref: r => {
|
|
18
22
|
if (targetSpanRef) targetSpanRef(r);
|
|
19
23
|
}
|
|
20
|
-
}, label)
|
|
24
|
+
}, label), /*#__PURE__*/_react.default.createElement(_hint.default, {
|
|
25
|
+
disabled: disabled,
|
|
26
|
+
visible: !!hint,
|
|
27
|
+
description: hint,
|
|
28
|
+
customClass: "hint"
|
|
29
|
+
}));
|
|
21
30
|
};
|
|
22
31
|
var _default = exports.default = (0, _withTooltip.default)(Label);
|
package/lib/checkbox/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
1
|
import { ICheckBoxProps } from './types.js';
|
|
2
|
+
import 'react';
|
|
3
3
|
import '../@types/PermissionAttr.js';
|
|
4
4
|
import '../@types/Position.js';
|
|
5
5
|
|
|
@@ -8,6 +8,6 @@ import '../@types/Position.js';
|
|
|
8
8
|
* o componente Field dentro do componente Form, pois o mesmo leva em consideração o tipo do
|
|
9
9
|
* componente para gerar propriedades customizadas.
|
|
10
10
|
*/
|
|
11
|
-
declare const CheckBox:
|
|
11
|
+
declare const CheckBox: ({ name, required, value, label, onChange, autofocus, hint, id, gridLayout, checked, disabled, permissionAttr, tooltip, tooltipPosition, tooltipWidth, skeletonize, targetRef, errorMessages, }: ICheckBoxProps) => JSX.Element | null;
|
|
12
12
|
|
|
13
13
|
export { CheckBox as default };
|
package/lib/checkbox/index.js
CHANGED
|
@@ -5,11 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _gridlayout = _interopRequireDefault(require("../gridlayout"));
|
|
9
8
|
var _Label = _interopRequireDefault(require("./Label"));
|
|
10
|
-
require("../
|
|
9
|
+
var _gridlayout = _interopRequireDefault(require("../gridlayout"));
|
|
11
10
|
var _permissionValidations = require("../permissionValidations");
|
|
12
|
-
|
|
11
|
+
require("../assets/styles/checkbox.scss");
|
|
12
|
+
var _errorMessage = require("../inputs/errorMessage");
|
|
13
|
+
var _ = require("..");
|
|
13
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
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); }
|
|
15
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; }
|
|
@@ -20,7 +21,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
20
21
|
* componente para gerar propriedades customizadas.
|
|
21
22
|
*/
|
|
22
23
|
|
|
23
|
-
const CheckBox =
|
|
24
|
+
const CheckBox = _ref => {
|
|
24
25
|
let {
|
|
25
26
|
name,
|
|
26
27
|
required,
|
|
@@ -29,7 +30,7 @@ const CheckBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
29
30
|
onChange,
|
|
30
31
|
autofocus,
|
|
31
32
|
hint,
|
|
32
|
-
id =
|
|
33
|
+
id = '',
|
|
33
34
|
gridLayout,
|
|
34
35
|
checked = false,
|
|
35
36
|
disabled,
|
|
@@ -38,13 +39,13 @@ const CheckBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
38
39
|
tooltipPosition = 'top',
|
|
39
40
|
tooltipWidth = 'auto',
|
|
40
41
|
skeletonize,
|
|
41
|
-
targetRef
|
|
42
|
+
targetRef,
|
|
43
|
+
errorMessages
|
|
42
44
|
} = _ref;
|
|
43
45
|
const [isChecked, setIsChecked] = (0, _react.useState)(checked);
|
|
44
46
|
const options = [_permissionValidations.OPTIONS_ON_DENIED.disabled, _permissionValidations.OPTIONS_ON_DENIED.unvisible];
|
|
45
47
|
const [onDenied] = (0, _react.useState)((0, _permissionValidations.actionsOnPermissionDenied)(options, permissionAttr));
|
|
46
48
|
const inputRef = (0, _react.useRef)(null);
|
|
47
|
-
(0, _react.useImperativeHandle)(ref, () => inputRef.current, [inputRef.current]);
|
|
48
49
|
(0, _react.useEffect)(() => {
|
|
49
50
|
setIsChecked(checked);
|
|
50
51
|
}, [checked]);
|
|
@@ -69,15 +70,18 @@ const CheckBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
69
70
|
};
|
|
70
71
|
};
|
|
71
72
|
const renderInput = () => /*#__PURE__*/_react.default.createElement("div", _extends({}, getProps(), {
|
|
72
|
-
className: "checkbox-component
|
|
73
|
+
className: "checkbox-component",
|
|
74
|
+
"data-skeletonized": skeletonize
|
|
73
75
|
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
74
76
|
"data-testid": "checkbox-container",
|
|
75
77
|
className: "inputcontent",
|
|
76
78
|
onClick: !shouldDisable() && !skeletonize ? () => setIsChecked(!isChecked) : undefined,
|
|
77
79
|
tabIndex: -1,
|
|
78
80
|
role: "checkbox",
|
|
79
|
-
"aria-checked": "false"
|
|
81
|
+
"aria-checked": "false",
|
|
82
|
+
onKeyPress: undefined
|
|
80
83
|
}, /*#__PURE__*/_react.default.createElement("input", {
|
|
84
|
+
id: id || undefined,
|
|
81
85
|
ref: r => {
|
|
82
86
|
if (targetRef) targetRef(r);
|
|
83
87
|
inputRef.current = r;
|
|
@@ -90,23 +94,24 @@ const CheckBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
90
94
|
name: name,
|
|
91
95
|
required: required,
|
|
92
96
|
value: value,
|
|
93
|
-
id: id,
|
|
94
97
|
onChange: () => {}
|
|
95
|
-
}), /*#__PURE__*/_react.default.createElement("span", null
|
|
98
|
+
}), /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(_.Icon, {
|
|
99
|
+
size: 12,
|
|
100
|
+
name: "checkmark"
|
|
101
|
+
})), label && /*#__PURE__*/_react.default.createElement(_Label.default, {
|
|
96
102
|
label: label,
|
|
97
103
|
tooltip: tooltip,
|
|
98
104
|
tooltipWidth: tooltipWidth,
|
|
99
|
-
tooltipPosition: tooltipPosition
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
105
|
+
tooltipPosition: tooltipPosition,
|
|
106
|
+
disabled: disabled,
|
|
107
|
+
hint: hint
|
|
108
|
+
})), /*#__PURE__*/_react.default.createElement(_errorMessage.ErrorMessage, {
|
|
109
|
+
messages: errorMessages
|
|
104
110
|
}));
|
|
105
111
|
if (onDenied.unvisible) return null;
|
|
106
112
|
return gridLayout ? /*#__PURE__*/_react.default.createElement(_gridlayout.default, {
|
|
107
113
|
customClass: "-withinput",
|
|
108
114
|
cols: gridLayout
|
|
109
115
|
}, renderInput()) : renderInput();
|
|
110
|
-
}
|
|
111
|
-
CheckBox.displayName = 'CheckBox';
|
|
116
|
+
};
|
|
112
117
|
var _default = exports.default = CheckBox;
|
package/lib/checkbox/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Position } from '../@types/Position.js';
|
|
|
4
4
|
|
|
5
5
|
type ChangeEvent = {
|
|
6
6
|
checked: boolean;
|
|
7
|
-
id
|
|
7
|
+
id: string;
|
|
8
8
|
name?: string;
|
|
9
9
|
value: boolean;
|
|
10
10
|
};
|
|
@@ -37,6 +37,7 @@ interface ICheckBoxProps {
|
|
|
37
37
|
skeletonize?: boolean;
|
|
38
38
|
targetRef?: (ref: HTMLInputElement | null) => void;
|
|
39
39
|
targetSpanRef?: (ref: HTMLSpanElement | null) => void;
|
|
40
|
+
errorMessages?: string[] | undefined;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
export type { ChangeEvent, ICheckBoxProps };
|
|
@@ -11,11 +11,11 @@ var _base = require("../base");
|
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
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); }
|
|
13
13
|
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; }
|
|
14
|
-
const getCloseButton = handleClose => /*#__PURE__*/_react.default.createElement("
|
|
14
|
+
const getCloseButton = handleClose => /*#__PURE__*/_react.default.createElement("button", {
|
|
15
|
+
id: "botao-fechar-modal-cabecalho",
|
|
15
16
|
className: "close-button",
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
tabIndex: 0
|
|
17
|
+
tabIndex: 0,
|
|
18
|
+
onClick: handleClose
|
|
19
19
|
}, /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
20
20
|
name: "cancel2"
|
|
21
21
|
}));
|
package/lib/dialog/base/index.js
CHANGED
|
@@ -42,8 +42,9 @@ const BaseDialog = props => {
|
|
|
42
42
|
onOpenChange(false);
|
|
43
43
|
} else {
|
|
44
44
|
if (handlerClose) handlerClose();
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
if (onOpenChange) {
|
|
46
|
+
onOpenChange(false);
|
|
47
|
+
}
|
|
47
48
|
}
|
|
48
49
|
};
|
|
49
50
|
const handleClickOutside = event => {
|
|
@@ -103,10 +104,10 @@ const BaseDialog = props => {
|
|
|
103
104
|
};
|
|
104
105
|
const createdModal = /*#__PURE__*/_react.default.createElement("div", {
|
|
105
106
|
className: "modalcontainer",
|
|
107
|
+
onMouseDown: handleClickOutside,
|
|
106
108
|
style: {
|
|
107
109
|
zIndex: 99999 + Number(zIndex)
|
|
108
|
-
}
|
|
109
|
-
onMouseDown: handleClickOutside
|
|
110
|
+
}
|
|
110
111
|
}, overlay && /*#__PURE__*/_react.default.createElement("div", {
|
|
111
112
|
className: "modal-overlay",
|
|
112
113
|
"data-testid": "modal-overlay"
|
|
@@ -120,8 +121,10 @@ const BaseDialog = props => {
|
|
|
120
121
|
ref: wrapperEl
|
|
121
122
|
}, children)));
|
|
122
123
|
(0, _react.useEffect)(() => {
|
|
123
|
-
if (open
|
|
124
|
-
|
|
124
|
+
if (open) {
|
|
125
|
+
if (closeOnEsc) {
|
|
126
|
+
document.addEventListener('keydown', handleCloseOnEsc);
|
|
127
|
+
}
|
|
125
128
|
}
|
|
126
129
|
return () => {
|
|
127
130
|
document.removeEventListener('keydown', handleCloseOnEsc);
|
package/lib/drawer/Drawer.js
CHANGED
|
@@ -82,8 +82,9 @@ const BaseDrawer = _ref => {
|
|
|
82
82
|
body.appendChild(drawerOverlay);
|
|
83
83
|
};
|
|
84
84
|
const closeDrawerOnEsc = e => {
|
|
85
|
-
if (closeOnEsc &&
|
|
85
|
+
if (closeOnEsc && e.key === 'Escape') {
|
|
86
86
|
handlerClose === null || handlerClose === void 0 ? void 0 : handlerClose();
|
|
87
|
+
e.stopPropagation();
|
|
87
88
|
}
|
|
88
89
|
};
|
|
89
90
|
(0, _react.useEffect)(() => {
|
|
@@ -98,7 +99,7 @@ const BaseDrawer = _ref => {
|
|
|
98
99
|
if (overlay && !targetId && body) setDrawerOverlay(body);
|
|
99
100
|
return () => {
|
|
100
101
|
const drawerOverlay = document.getElementsByClassName('drawer-overlay')[0];
|
|
101
|
-
if (closeOnEsc) document.body.removeEventListener('
|
|
102
|
+
if (closeOnEsc) document.body.removeEventListener('keydown', closeDrawerOnEsc);
|
|
102
103
|
if (targetId) {
|
|
103
104
|
const drawerComponentTarget = document.getElementById(targetId);
|
|
104
105
|
if (drawerComponentTarget && drawerComponentEl.current) {
|
|
@@ -110,9 +111,9 @@ const BaseDrawer = _ref => {
|
|
|
110
111
|
}, []);
|
|
111
112
|
(0, _react.useEffect)(() => {
|
|
112
113
|
if (closeOnEsc) {
|
|
113
|
-
document.body.addEventListener('
|
|
114
|
+
document.body.addEventListener('keydown', closeDrawerOnEsc);
|
|
114
115
|
}
|
|
115
|
-
return () => document.body.removeEventListener('
|
|
116
|
+
return () => document.body.removeEventListener('keydown', closeDrawerOnEsc);
|
|
116
117
|
}, [closeOnEsc]);
|
|
117
118
|
const contextValues = {
|
|
118
119
|
handlerClose,
|
package/lib/drawer/Header.js
CHANGED
|
@@ -24,7 +24,7 @@ const getIcon = (titleIcon, icon) => {
|
|
|
24
24
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
25
25
|
"data-testid": "icon-header",
|
|
26
26
|
className: "icon-header"
|
|
27
|
-
}, icon ||
|
|
27
|
+
}, icon || /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
28
28
|
name: titleIcon,
|
|
29
29
|
color: "#000",
|
|
30
30
|
size: 24
|
package/lib/dropdown/Popup.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IPopUpProps } from './types.js';
|
|
3
3
|
|
|
4
|
-
declare const DropdownPopup: ({ customClassForDropdown, align, isFloatMenu, topPosition, leftPosition, rightPosition, minWidth, ...props }: IPopUpProps) => React.ReactPortal;
|
|
4
|
+
declare const DropdownPopup: ({ id, customClassForDropdown, align, isFloatMenu, topPosition, leftPosition, rightPosition, minWidth, ...props }: IPopUpProps) => React.ReactPortal;
|
|
5
5
|
|
|
6
6
|
export { DropdownPopup as default };
|
package/lib/dropdown/Popup.js
CHANGED
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
9
|
-
|
|
9
|
+
var _uuid = require("uuid");
|
|
10
|
+
const _excluded = ["id", "customClassForDropdown", "align", "isFloatMenu", "topPosition", "leftPosition", "rightPosition", "minWidth"];
|
|
10
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
12
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
12
13
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -30,6 +31,7 @@ const getCalendarDropdownStyle = _ref => {
|
|
|
30
31
|
const body = document.getElementsByTagName('body')[0];
|
|
31
32
|
const DropdownPopup = _ref2 => {
|
|
32
33
|
let {
|
|
34
|
+
id,
|
|
33
35
|
customClassForDropdown = '',
|
|
34
36
|
align = 'left',
|
|
35
37
|
isFloatMenu = false,
|
|
@@ -53,10 +55,11 @@ const DropdownPopup = _ref2 => {
|
|
|
53
55
|
if (popup && popup.current) {
|
|
54
56
|
const modalContainers = document.body.getElementsByClassName('modalcontainer');
|
|
55
57
|
const lastModalContainer = modalContainers[modalContainers.length - 1];
|
|
56
|
-
popup.current.style.zIndex = "".concat(modalContainers.length ? lastModalContainer.style.zIndex : 99999);
|
|
58
|
+
popup.current.style.zIndex = "".concat(modalContainers.length ? Number(lastModalContainer.style.zIndex) + 1 : 99999);
|
|
57
59
|
}
|
|
58
60
|
(0, _react.useEffect)(() => {
|
|
59
61
|
body.appendChild(popup.current);
|
|
62
|
+
popup.current.id = id || "dropdown-component-".concat((0, _uuid.v1)());
|
|
60
63
|
return () => {
|
|
61
64
|
body.removeChild(popup.current);
|
|
62
65
|
};
|
package/lib/dropdown/types.d.ts
CHANGED
package/lib/fieldset/index.js
CHANGED
|
@@ -28,7 +28,9 @@ const Fieldset = props => {
|
|
|
28
28
|
styleTitle,
|
|
29
29
|
template = 'none',
|
|
30
30
|
titleCustomClass,
|
|
31
|
-
permissionAttr
|
|
31
|
+
permissionAttr,
|
|
32
|
+
leftElements = null,
|
|
33
|
+
rightElements = null
|
|
32
34
|
} = props;
|
|
33
35
|
const {
|
|
34
36
|
hideContent,
|
|
@@ -69,7 +71,7 @@ const Fieldset = props => {
|
|
|
69
71
|
style: styleTitle,
|
|
70
72
|
align: titleAlign,
|
|
71
73
|
className: "legend ".concat(titleCustomClass)
|
|
72
|
-
}, title), /*#__PURE__*/_react.default.createElement("div", {
|
|
74
|
+
}, leftElements, title, rightElements), /*#__PURE__*/_react.default.createElement("div", {
|
|
73
75
|
className: "contentfieldset -template".concat(template, " "),
|
|
74
76
|
style: Object.assign(getContentStyle(props), styleContent)
|
|
75
77
|
}, children)));
|
package/lib/fieldset/types.d.ts
CHANGED
package/lib/form/Field.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import '../@types/DataCombo.js';
|
|
|
6
6
|
import '../@types/PermissionAttr.js';
|
|
7
7
|
import '../inputs/base/types.js';
|
|
8
8
|
import '../@types/Period.js';
|
|
9
|
+
import '../internals/types.js';
|
|
10
|
+
import '../@types/Position.js';
|
|
9
11
|
|
|
10
12
|
declare const _default: React__default.ForwardRefExoticComponent<Pick<IFieldProps & React__default.RefAttributes<unknown>, keyof IFieldProps | "key"> & React__default.RefAttributes<HTMLElement>>;
|
|
11
13
|
|
package/lib/form/FieldArray.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import '../@types/DataCombo.js';
|
|
|
6
6
|
import '../@types/PermissionAttr.js';
|
|
7
7
|
import '../inputs/base/types.js';
|
|
8
8
|
import '../@types/Period.js';
|
|
9
|
+
import '../internals/types.js';
|
|
10
|
+
import '../@types/Position.js';
|
|
9
11
|
|
|
10
12
|
declare const _default: React__default.ForwardRefExoticComponent<IFieldArrayProps & React__default.RefAttributes<HTMLElement>>;
|
|
11
13
|
|
package/lib/form/FieldArray.js
CHANGED
|
@@ -10,7 +10,8 @@ var _withFieldHOC = _interopRequireDefault(require("./withFieldHOC"));
|
|
|
10
10
|
var _gridlayout = _interopRequireDefault(require("../gridlayout"));
|
|
11
11
|
var _fieldset = _interopRequireDefault(require("../fieldset"));
|
|
12
12
|
var _helpers = require("./helpers");
|
|
13
|
-
const _excluded = ["cols", "label", "bordered", "labelContainerStyle", "skipLabel", "data", "name", "handlerStoreValidators", "component", "handlerFieldChange", "handlerFieldValidade", "changePropName", "fieldErrors", "externalMessagesErrors", "handlerRemoveValidators", "validators", "valuePropName", "originalData"];
|
|
13
|
+
const _excluded = ["cols", "label", "bordered", "labelContainerStyle", "skipLabel", "data", "name", "handlerStoreValidators", "component", "handlerFieldChange", "handlerFieldValidade", "changePropName", "fieldErrors", "externalMessagesErrors", "handlerRemoveValidators", "validators", "valuePropName", "originalData", "handlerSelecionados"];
|
|
14
|
+
/* eslint-disable react-hooks/rules-of-hooks */
|
|
14
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
16
|
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
17
|
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; }
|
|
@@ -33,12 +34,12 @@ const getDefaultProps = (props, handleShowValidateMessages) => {
|
|
|
33
34
|
onBlur
|
|
34
35
|
} = props;
|
|
35
36
|
return {
|
|
36
|
-
onBlur: e => {
|
|
37
|
+
onBlur: (0, _react.useCallback)(e => {
|
|
37
38
|
if (handleShowValidateMessages) handleShowValidateMessages(true);
|
|
38
39
|
if (onBlur) onBlur(e);
|
|
39
|
-
},
|
|
40
|
+
}, [handleShowValidateMessages, onBlur]),
|
|
40
41
|
[valuePropName]: _lodash.default.get(data, name),
|
|
41
|
-
[changePropName]: ids => {
|
|
42
|
+
[changePropName]: (0, _react.useCallback)(ids => {
|
|
42
43
|
if (handlerFieldChange) handlerFieldChange({
|
|
43
44
|
target: {
|
|
44
45
|
value: ids,
|
|
@@ -47,19 +48,7 @@ const getDefaultProps = (props, handleShowValidateMessages) => {
|
|
|
47
48
|
});
|
|
48
49
|
if (handlerSelecionados) handlerSelecionados(ids);
|
|
49
50
|
if (handleShowValidateMessages) handleShowValidateMessages(true);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
const getEvents = _ref => {
|
|
54
|
-
let {
|
|
55
|
-
onBlur,
|
|
56
|
-
handleShowValidateMessages
|
|
57
|
-
} = _ref;
|
|
58
|
-
return {
|
|
59
|
-
onBlur: e => {
|
|
60
|
-
handleShowValidateMessages(true);
|
|
61
|
-
if (onBlur) onBlur(e);
|
|
62
|
-
}
|
|
51
|
+
}, [handlerFieldChange, handlerSelecionados, handleShowValidateMessages, changePropName])
|
|
63
52
|
};
|
|
64
53
|
};
|
|
65
54
|
const FieldArray = props => {
|
|
@@ -81,15 +70,16 @@ const FieldArray = props => {
|
|
|
81
70
|
handlerRemoveValidators,
|
|
82
71
|
validators,
|
|
83
72
|
valuePropName,
|
|
84
|
-
originalData
|
|
73
|
+
originalData,
|
|
74
|
+
handlerSelecionados
|
|
85
75
|
} = props,
|
|
86
76
|
rest = _objectWithoutProperties(props, _excluded);
|
|
87
77
|
const [showValidateMessages, setShowValidateMessages] = (0, _react.useState)(false);
|
|
88
78
|
const currentValue = _lodash.default.get(data, name);
|
|
89
79
|
const originalValue = _lodash.default.get(originalData, name);
|
|
90
|
-
const handleShowValidateMessages = value => {
|
|
80
|
+
const handleShowValidateMessages = (0, _react.useCallback)(value => {
|
|
91
81
|
setShowValidateMessages(value);
|
|
92
|
-
};
|
|
82
|
+
}, []);
|
|
93
83
|
(0, _react.useEffect)(() => {
|
|
94
84
|
if (!_lodash.default.isEqual(currentValue, originalValue) && Array.isArray(currentValue) && currentValue.length > 0) {
|
|
95
85
|
setShowValidateMessages(true);
|
|
@@ -105,9 +95,7 @@ const FieldArray = props => {
|
|
|
105
95
|
customClass: "arraycontainer ".concat(bordered && '-bordered'),
|
|
106
96
|
style: labelContainerStyle,
|
|
107
97
|
titleCustomClass: "label"
|
|
108
|
-
}, /*#__PURE__*/_react.default.createElement(Component, _extends({}, rest, getDefaultProps(props, handleShowValidateMessages),
|
|
109
|
-
handleShowValidateMessages: value => setShowValidateMessages(value)
|
|
110
|
-
})), {
|
|
98
|
+
}, /*#__PURE__*/_react.default.createElement(Component, _extends({}, rest, getDefaultProps(props, handleShowValidateMessages), {
|
|
111
99
|
label: label,
|
|
112
100
|
name: name,
|
|
113
101
|
errorMessages: (0, _helpers.getErrorMessages)(_objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -115,9 +103,7 @@ const FieldArray = props => {
|
|
|
115
103
|
}))
|
|
116
104
|
})));
|
|
117
105
|
} else {
|
|
118
|
-
content = /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(Component, _extends({}, rest, getDefaultProps(props, handleShowValidateMessages),
|
|
119
|
-
handleShowValidateMessages: value => setShowValidateMessages(value)
|
|
120
|
-
})), {
|
|
106
|
+
content = /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(Component, _extends({}, rest, getDefaultProps(props, handleShowValidateMessages), {
|
|
121
107
|
label: label,
|
|
122
108
|
name: name,
|
|
123
109
|
errorMessages: (0, _helpers.getErrorMessages)(_objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -6,6 +6,8 @@ import '../@types/DataCombo.js';
|
|
|
6
6
|
import '../@types/PermissionAttr.js';
|
|
7
7
|
import '../inputs/base/types.js';
|
|
8
8
|
import '../@types/Period.js';
|
|
9
|
+
import '../internals/types.js';
|
|
10
|
+
import '../@types/Position.js';
|
|
9
11
|
|
|
10
12
|
declare const _default: React__default.ForwardRefExoticComponent<IFieldProps & React__default.RefAttributes<HTMLElement>>;
|
|
11
13
|
|
|
@@ -6,6 +6,8 @@ import '../@types/DataCombo.js';
|
|
|
6
6
|
import '../@types/PermissionAttr.js';
|
|
7
7
|
import '../inputs/base/types.js';
|
|
8
8
|
import '../@types/Period.js';
|
|
9
|
+
import '../internals/types.js';
|
|
10
|
+
import '../@types/Position.js';
|
|
9
11
|
|
|
10
12
|
declare const _default: React__default.ForwardRefExoticComponent<IFieldPeriodProps & React__default.RefAttributes<HTMLElement>>;
|
|
11
13
|
|
package/lib/form/helpers.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import '../@types/DataCombo.js';
|
|
|
6
6
|
import '../@types/PermissionAttr.js';
|
|
7
7
|
import '../inputs/base/types.js';
|
|
8
8
|
import '../@types/Period.js';
|
|
9
|
+
import '../internals/types.js';
|
|
10
|
+
import '../@types/Position.js';
|
|
9
11
|
|
|
10
12
|
declare const securityBeforeUnload = "securityBeforeUnload";
|
|
11
13
|
declare const FormContext: React__default.Context<FormContextProps>;
|
package/lib/form/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ import '../@types/DataCombo.js';
|
|
|
10
10
|
import '../@types/PermissionAttr.js';
|
|
11
11
|
import '../inputs/base/types.js';
|
|
12
12
|
import '../@types/Period.js';
|
|
13
|
+
import '../internals/types.js';
|
|
14
|
+
import '../@types/Position.js';
|
|
13
15
|
|
|
14
16
|
declare const Form: ({ submitOnPressEnterKey, dataSource, securityBeforeUnload, handlerReset, handlerSubmit, handlerValidates, style, customClass, securityTitle, securityText, securityData, onDataChange, onValidateForm, externalFieldErrors, onSubmit, skeletonize, disabled, children, useInternalState, }: FormProps) => JSX.Element;
|
|
15
17
|
|