linear-react-components-ui 1.1.24-beta.8 → 1.1.24-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/alerts/AlertProvider.js +1 -2
- package/lib/alerts/BaseAlert.js +1 -1
- package/lib/alerts/Message.js +2 -3
- package/lib/alerts/withAlert.js +1 -2
- package/lib/assets/styles/calendar.scss +137 -32
- package/lib/assets/styles/datepicker2.scss +4 -1
- package/lib/assets/styles/file.scss +8 -0
- package/lib/avatar/index.js +9 -11
- package/lib/badge/index.js +4 -4
- package/lib/buttons/Button.js +1 -2
- package/lib/buttons/DangerButton.js +1 -1
- package/lib/buttons/DefaultButton.js +5 -14
- package/lib/buttons/InfoButton.js +1 -1
- package/lib/buttons/PrimaryButton.js +1 -1
- package/lib/buttons/SuccessButton.js +1 -1
- package/lib/buttons/WarningButton.js +1 -1
- package/lib/buttons/button_container/index.js +1 -1
- package/lib/buttons/split_button/index.js +2 -2
- package/lib/calendar/base/helpers.js +2 -2
- package/lib/calendar/base/index.js +123 -44
- package/lib/checkbox/index.js +2 -3
- package/lib/dialog/Custom.js +2 -3
- package/lib/dialog/Question.js +5 -4
- package/lib/dialog/base/Content.js +2 -3
- package/lib/dialog/base/Header.js +3 -4
- package/lib/dialog/base/index.js +10 -9
- package/lib/dialog/form/index.js +6 -6
- package/lib/dialog/wizard/index.js +1 -2
- package/lib/dialog/wizard/progressbar.js +1 -1
- package/lib/dialog/wizard/step.js +1 -1
- package/lib/dialog/wizard/useWizard.js +1 -2
- package/lib/drawer/Content.js +1 -2
- package/lib/drawer/Drawer.js +5 -6
- package/lib/drawer/Header.js +2 -3
- package/lib/dropdown/Popup.js +7 -7
- package/lib/dropdown/helper.js +1 -1
- package/lib/dropdown/withDropdown.js +3 -4
- package/lib/fieldset/index.js +8 -9
- package/lib/form/Field.js +2 -3
- package/lib/form/FieldArray.js +2 -3
- package/lib/form/FieldNumber.js +4 -5
- package/lib/form/FieldPeriod.js +3 -4
- package/lib/form/index.js +3 -4
- package/lib/form/withFieldHOC.js +1 -2
- package/lib/form/withFormSecurity.js +1 -2
- package/lib/form2/helpers.js +1 -1
- package/lib/form2/index.d.ts +1 -1
- package/lib/form2/types.d.ts +0 -4
- package/lib/form2/useForm/index.js +17 -13
- package/lib/gridlayout/GridCol.js +5 -5
- package/lib/gridlayout/GridRow.js +1 -4
- package/lib/hint/index.js +1 -7
- package/lib/icons/index.js +9 -9
- package/lib/index-4b31b471.d.ts +15 -0
- package/lib/index-8a0c7463.d.ts +41 -0
- package/lib/index-9203efed.d.ts +26 -0
- package/lib/inputs/base/InputTextBase.js +9 -8
- package/lib/inputs/base/helpers.js +3 -7
- package/lib/inputs/base/types.d.ts +1 -1
- package/lib/inputs/color/index.js +2 -3
- package/lib/inputs/date/Dropdown.js +6 -4
- package/lib/inputs/date/index.js +31 -19
- package/lib/inputs/errorMessage/index.js +2 -3
- package/lib/inputs/file/DefaultFile.js +31 -31
- package/lib/inputs/file/DragDropFile.js +18 -17
- package/lib/inputs/file/File.js +6 -5
- package/lib/inputs/file/FileButtonSettings.js +0 -1
- package/lib/inputs/inputHOC.js +1 -2
- package/lib/inputs/mask/BaseMask.js +1 -2
- package/lib/inputs/mask/Cnpj.js +1 -2
- package/lib/inputs/mask/Cpf.js +1 -2
- package/lib/inputs/multiSelect/ActionButtons.js +1 -2
- package/lib/inputs/multiSelect/Dropdown.js +11 -11
- package/lib/inputs/multiSelect/helper.js +2 -1
- package/lib/inputs/multiSelect/index.js +10 -9
- package/lib/inputs/number/BaseNumber.js +1 -1
- package/lib/inputs/number/index.js +3 -3
- package/lib/inputs/period/Dropdown.js +7 -4
- package/lib/inputs/period/PeriodList.js +1 -1
- package/lib/inputs/period/helper.js +1 -3
- package/lib/inputs/period/index.js +66 -40
- package/lib/inputs/period/types.d.ts +4 -1
- package/lib/inputs/search/index.js +2 -3
- package/lib/inputs/select/ActionButtons.js +1 -1
- package/lib/inputs/select/Dropdown.js +3 -4
- package/lib/inputs/select/helper.js +13 -10
- package/lib/inputs/select/multiple/Selecteds.js +2 -2
- package/lib/inputs/select/multiple/index.js +14 -11
- package/lib/inputs/select/simple/index.js +19 -13
- package/lib/inputs/textarea/index.js +1 -1
- package/lib/inputs2/checkboxfield/index.d.ts +1 -1
- package/lib/inputs2/checkboxfield/index.js +15 -15
- package/lib/inputs2/colorfield/index.js +5 -5
- package/lib/inputs2/date/base/constants.js +2 -1
- package/lib/inputs2/date/base/index.js +7 -7
- package/lib/inputs2/date/datefield/calendarbox.d.ts +1 -1
- package/lib/inputs2/date/datefield/calendarbox.js +3 -2
- package/lib/inputs2/date/datefield/index.js +37 -28
- package/lib/inputs2/date/datefield/triggers.js +1 -2
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +1 -1
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +8 -6
- package/lib/inputs2/date/dateperiodfield/index.js +61 -44
- package/lib/inputs2/date/dateperiodfield/triggers.js +19 -14
- package/lib/inputs2/filefield/index.js +33 -27
- package/lib/inputs2/index.d.ts +3 -3
- package/lib/inputs2/index.js +1 -2
- package/lib/inputs2/mask/BaseMask.js +7 -7
- package/lib/inputs2/mask/Cnpj.js +4 -5
- package/lib/inputs2/mask/Cpf.js +4 -5
- package/lib/inputs2/mask/Phone.js +1 -2
- package/lib/inputs2/mask/ZipCode.js +1 -2
- package/lib/inputs2/numberfield/currency.js +6 -6
- package/lib/inputs2/numberfield/decimal.js +6 -6
- package/lib/inputs2/numberfield/index.js +6 -6
- package/lib/inputs2/radiofield/index.d.ts +1 -1
- package/lib/inputs2/radiofield/index.js +14 -13
- package/lib/inputs2/selectfield/index.d.ts +1 -1
- package/lib/inputs2/selectfield/index.js +71 -54
- package/lib/inputs2/selectfield/item.d.ts +1 -1
- package/lib/inputs2/selectfield/item.js +4 -4
- package/lib/inputs2/selectfield/listbox.d.ts +1 -1
- package/lib/inputs2/selectfield/listbox.js +7 -4
- package/lib/inputs2/selectfield/options.d.ts +1 -1
- package/lib/inputs2/selectfield/search.d.ts +1 -1
- package/lib/inputs2/selectfield/search.js +3 -4
- package/lib/inputs2/selectfield/selections.d.ts +1 -1
- package/lib/inputs2/selectfield/selections.js +3 -2
- package/lib/inputs2/selectfield/triggers.js +6 -5
- package/lib/inputs2/slot/index.d.ts +2 -2
- package/lib/inputs2/textareafield/index.js +21 -18
- package/lib/inputs2/textfield/index.js +15 -14
- package/lib/labelMessages/index.js +4 -6
- package/lib/labels/DefaultLabel.js +2 -6
- package/lib/labels/label_container/index.js +1 -1
- package/lib/list/Header.js +1 -1
- package/lib/list/Item.js +10 -12
- package/lib/list/index.js +2 -4
- package/lib/menus/float/MenuItem.js +3 -4
- package/lib/menus/float/SubMenuContainer.js +2 -3
- package/lib/menus/float/index.js +1 -1
- package/lib/menus/sidenav/ExpandMenu.js +1 -1
- package/lib/menus/sidenav/MenuLink.js +1 -2
- package/lib/menus/sidenav/NavMenuGroup.js +2 -3
- package/lib/menus/sidenav/NavMenuItem.js +10 -9
- package/lib/menus/sidenav/NavSubMenuItem.js +2 -3
- package/lib/menus/sidenav/helpers.js +1 -1
- package/lib/menus/sidenav/index.js +6 -7
- package/lib/menus/sidenav/popup_menu_search/index.js +1 -2
- package/lib/panel/Content.js +9 -8
- package/lib/panel/Default.js +3 -4
- package/lib/panel/Header.js +4 -5
- package/lib/permissionValidations.js +1 -1
- package/lib/popover/PopoverText.js +1 -2
- package/lib/popover/index.js +1 -1
- package/lib/progress/Bar.js +6 -6
- package/lib/radio/index.js +3 -4
- package/lib/shortcuts/index.js +1 -1
- package/lib/skeleton/SkeletonContainer.js +1 -2
- package/lib/skeleton/index.js +1 -4
- package/lib/spinner/index.js +3 -4
- package/lib/split/Split.js +2 -3
- package/lib/split/SplitSide.js +4 -5
- package/lib/table/Body.js +4 -5
- package/lib/table/Header.js +9 -7
- package/lib/table/HeaderColumn.js +2 -3
- package/lib/table/Row.js +4 -5
- package/lib/table/RowColumn.js +2 -3
- package/lib/table/index.js +2 -8
- package/lib/tabs/DropdownTabs.js +2 -3
- package/lib/tabs/Menu.js +1 -1
- package/lib/tabs/MenuTabs.js +4 -9
- package/lib/tabs/Panel.js +8 -7
- package/lib/tabs/context.js +7 -5
- package/lib/tabs/index.js +1 -2
- package/lib/textContent/index.js +2 -3
- package/lib/toolbar/ButtonBar.js +2 -3
- package/lib/toolbar/LabelBar.js +1 -2
- package/lib/toolbar/index.js +1 -1
- package/lib/tooltip/TooltipContent.js +8 -9
- package/lib/tooltip/useTooltip.js +8 -8
- package/lib/treetable/Body.js +2 -3
- package/lib/treetable/Header.js +3 -4
- package/lib/treetable/Row.js +9 -10
- package/lib/treeview/Header.js +1 -1
- package/lib/treeview/Node.js +5 -6
- package/lib/treeview/index.js +5 -6
- package/lib/uitour/index.js +9 -8
- package/package.json +1 -1
- 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/index-118afd58.d.ts +0 -26
- package/lib/index-8f540f57.d.ts +0 -41
- package/lib/index-b2ef36a6.d.ts +0 -15
package/lib/dropdown/Popup.js
CHANGED
|
@@ -35,12 +35,12 @@ const getDropdownStyles = _ref => {
|
|
|
35
35
|
maxHeight = showScroll ? targetPosition - 10 : containerHeight;
|
|
36
36
|
top = top - maxHeight - targetDimensions.height - (isFloatMenu ? 6 : 2) - 5;
|
|
37
37
|
}
|
|
38
|
-
let style =
|
|
39
|
-
if (showScroll) style +=
|
|
38
|
+
let style = "top: ".concat(top, "px; min-width: ").concat(minWidth, "px;");
|
|
39
|
+
if (showScroll) style += "max-height: ".concat(maxHeight, "px; overflow-y: scroll;");
|
|
40
40
|
if (align === 'left') {
|
|
41
|
-
style +=
|
|
41
|
+
style += "left: ".concat(leftPosition, "px;");
|
|
42
42
|
} else if (align === 'right') {
|
|
43
|
-
style +=
|
|
43
|
+
style += "right: ".concat(rightPosition, "px;");
|
|
44
44
|
}
|
|
45
45
|
return style;
|
|
46
46
|
};
|
|
@@ -61,16 +61,16 @@ const DropdownPopup = _ref2 => {
|
|
|
61
61
|
} = _ref2,
|
|
62
62
|
props = _objectWithoutProperties(_ref2, _excluded);
|
|
63
63
|
const popup = (0, _react.useRef)(document.createElement('div'));
|
|
64
|
-
popup.current.className =
|
|
64
|
+
popup.current.className = "dropdown-component ".concat(customClassForDropdown);
|
|
65
65
|
popup.current.dataset.testid = 'dropdown-component';
|
|
66
66
|
if (popup && popup.current) {
|
|
67
67
|
const modalContainers = document.body.getElementsByClassName('modalcontainer');
|
|
68
68
|
const lastModalContainer = modalContainers[modalContainers.length - 1];
|
|
69
|
-
popup.current.style.zIndex =
|
|
69
|
+
popup.current.style.zIndex = "".concat(modalContainers.length ? Number(lastModalContainer.style.zIndex) + 1 : 99999);
|
|
70
70
|
}
|
|
71
71
|
(0, _react.useEffect)(() => {
|
|
72
72
|
body.appendChild(popup.current);
|
|
73
|
-
popup.current.id = id ||
|
|
73
|
+
popup.current.id = id || "dropdown-component-".concat((0, _uuid.v1)());
|
|
74
74
|
popup.current.style.cssText = getDropdownStyles({
|
|
75
75
|
topPosition,
|
|
76
76
|
leftPosition,
|
package/lib/dropdown/helper.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getDropdownItemCssClass = exports.contentClass = void 0;
|
|
7
|
-
const contentClass = showClearButton =>
|
|
7
|
+
const contentClass = showClearButton => "content ".concat(showClearButton ? '' : 'noclear');
|
|
8
8
|
exports.contentClass = contentClass;
|
|
9
9
|
const getDropdownItemCssClass = (selected, disabled, striped) => {
|
|
10
10
|
let className = 'item';
|
|
@@ -8,8 +8,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _Popup = _interopRequireDefault(require("./Popup"));
|
|
9
9
|
require("../assets/styles/dropdown.scss");
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
function
|
|
12
|
-
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
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
12
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
14
13
|
const WithDropdownContext = exports.WithDropdownContext = /*#__PURE__*/(0, _react.createContext)({});
|
|
15
14
|
const getDisplayName = Component => Component.displayName || Component.name || 'Component';
|
|
@@ -39,7 +38,7 @@ const withDropdown = WrappedComponent => {
|
|
|
39
38
|
const {
|
|
40
39
|
target
|
|
41
40
|
} = event;
|
|
42
|
-
if (popupRef
|
|
41
|
+
if (popupRef !== null && popupRef !== void 0 && popupRef.current && target !== (popupRef === null || popupRef === void 0 ? void 0 : popupRef.current) && !event.composedPath().includes(popupRef.current) && wrappedComponentRef.current !== target) {
|
|
43
42
|
setOpened(false);
|
|
44
43
|
}
|
|
45
44
|
};
|
|
@@ -87,7 +86,7 @@ const withDropdown = WrappedComponent => {
|
|
|
87
86
|
value: contextValues
|
|
88
87
|
}, /*#__PURE__*/_react.default.createElement(WrappedComponent, _extends({}, props, newProps)));
|
|
89
88
|
};
|
|
90
|
-
EnhancedComponent.displayName =
|
|
89
|
+
EnhancedComponent.displayName = "withDropdown(".concat(getDisplayName(WrappedComponent), ")");
|
|
91
90
|
return EnhancedComponent;
|
|
92
91
|
};
|
|
93
92
|
var _default = exports.default = withDropdown;
|
package/lib/fieldset/index.js
CHANGED
|
@@ -10,8 +10,7 @@ var _permissionValidations = require("../permissionValidations");
|
|
|
10
10
|
var _noPermission = _interopRequireDefault(require("../noPermission"));
|
|
11
11
|
require("../assets/styles/fieldset.scss");
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
function
|
|
14
|
-
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; }
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
16
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -43,9 +42,9 @@ const Fieldset = props => {
|
|
|
43
42
|
customClass,
|
|
44
43
|
hasError
|
|
45
44
|
} = _ref;
|
|
46
|
-
let cssClass =
|
|
47
|
-
if (type) cssClass =
|
|
48
|
-
if (hasError) cssClass =
|
|
45
|
+
let cssClass = "fieldset-component ".concat(customClass);
|
|
46
|
+
if (type) cssClass = "".concat(cssClass, " -").concat(type);
|
|
47
|
+
if (hasError) cssClass = "".concat(cssClass, " -witherror");
|
|
49
48
|
return cssClass;
|
|
50
49
|
};
|
|
51
50
|
const getContentStyle = _ref2 => {
|
|
@@ -55,11 +54,11 @@ const Fieldset = props => {
|
|
|
55
54
|
} = _ref2;
|
|
56
55
|
if (template === 'rows') {
|
|
57
56
|
return {
|
|
58
|
-
gridTemplateRows:
|
|
57
|
+
gridTemplateRows: "repeat(".concat(rowsCount, ", 1fr)")
|
|
59
58
|
};
|
|
60
59
|
} else if (template === 'columns') {
|
|
61
60
|
return {
|
|
62
|
-
gridTemplateColumns:
|
|
61
|
+
gridTemplateColumns: "repeat(".concat(colsCount, ", 1fr)")
|
|
63
62
|
};
|
|
64
63
|
}
|
|
65
64
|
return {};
|
|
@@ -70,9 +69,9 @@ const Fieldset = props => {
|
|
|
70
69
|
}, onDenied.hideContent ? /*#__PURE__*/_react.default.createElement(_noPermission.default, null) : /*#__PURE__*/_react.default.createElement(_react.Fragment, null, title && /*#__PURE__*/_react.default.createElement("legend", {
|
|
71
70
|
style: styleTitle,
|
|
72
71
|
align: titleAlign,
|
|
73
|
-
className:
|
|
72
|
+
className: "legend ".concat(titleCustomClass)
|
|
74
73
|
}, leftElements, title, rightElements), /*#__PURE__*/_react.default.createElement("div", {
|
|
75
|
-
className:
|
|
74
|
+
className: "contentfieldset -template".concat(template, " "),
|
|
76
75
|
style: Object.assign(getContentStyle(props), styleContent)
|
|
77
76
|
}, children)));
|
|
78
77
|
if (onDenied.unvisible) return null;
|
package/lib/form/Field.js
CHANGED
|
@@ -11,8 +11,7 @@ var _helpers = require("./helpers");
|
|
|
11
11
|
var constants = _interopRequireWildcard(require("../internals/constants"));
|
|
12
12
|
const _excluded = ["handlerFieldChange", "handlerFieldValidate", "onChange", "onBlur", "name", "validators", "component", "handleValidationErrorsOnTab"];
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
function
|
|
15
|
-
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
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
16
15
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
17
16
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
18
17
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
@@ -69,7 +68,7 @@ const getCustomProps = (props, handlerSetComponentValidator) => {
|
|
|
69
68
|
} = props;
|
|
70
69
|
if (componentType && componentType.toLowerCase() === 'radio') {
|
|
71
70
|
const convertedData = _objectSpread(_objectSpread({}, data), {}, {
|
|
72
|
-
[name]: String(data
|
|
71
|
+
[name]: String(data === null || data === void 0 ? void 0 : data[name])
|
|
73
72
|
});
|
|
74
73
|
return {
|
|
75
74
|
checked: _lodash.default.get(convertedData, name) === value,
|
package/lib/form/FieldArray.js
CHANGED
|
@@ -13,8 +13,7 @@ var _helpers = require("./helpers");
|
|
|
13
13
|
const _excluded = ["cols", "label", "bordered", "labelContainerStyle", "skipLabel", "name", "component", "handleValidationErrorsOnTab"];
|
|
14
14
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
15
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
|
-
function
|
|
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; }
|
|
16
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
18
17
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
19
18
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
19
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -74,7 +73,7 @@ const FieldArray = props => {
|
|
|
74
73
|
if (!skipLabel && label) {
|
|
75
74
|
content = /*#__PURE__*/_react.default.createElement(_fieldset.default, {
|
|
76
75
|
title: label,
|
|
77
|
-
customClass:
|
|
76
|
+
customClass: "arraycontainer ".concat(bordered && '-bordered'),
|
|
78
77
|
style: labelContainerStyle,
|
|
79
78
|
titleCustomClass: "label"
|
|
80
79
|
}, /*#__PURE__*/_react.default.createElement(Component, _extends({}, rest, getDefaultProps(props), {
|
package/lib/form/FieldNumber.js
CHANGED
|
@@ -9,8 +9,7 @@ var _lodash = _interopRequireDefault(require("lodash"));
|
|
|
9
9
|
var _withFieldHOC = _interopRequireDefault(require("./withFieldHOC"));
|
|
10
10
|
var _helpers = require("./helpers");
|
|
11
11
|
var constants = _interopRequireWildcard(require("../internals/constants"));
|
|
12
|
-
function
|
|
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; }
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
14
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
16
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -31,18 +30,18 @@ const getEventProps = _ref => {
|
|
|
31
30
|
} = _ref;
|
|
32
31
|
return {
|
|
33
32
|
onBlur: e => {
|
|
34
|
-
if (component
|
|
33
|
+
if ((component === null || component === void 0 ? void 0 : component.name) !== 'NumberField' && handlerFieldChange) handlerFieldChange(e);
|
|
35
34
|
if (validators && handlerFieldValidate) handlerFieldValidate(name, e.target.value, validators);
|
|
36
35
|
if (onBlur) onBlur(e);
|
|
37
36
|
},
|
|
38
37
|
onKeyDown: e => {
|
|
39
38
|
if ([constants.keyCodes.ENTER].includes(e.keyCode)) {
|
|
40
|
-
if (validators) handlerFieldValidate
|
|
39
|
+
if (validators) handlerFieldValidate === null || handlerFieldValidate === void 0 ? void 0 : handlerFieldValidate(name, e.target.value, validators);
|
|
41
40
|
if (onKeyDown) onKeyDown(e);
|
|
42
41
|
}
|
|
43
42
|
},
|
|
44
43
|
onChange: e => {
|
|
45
|
-
if (component
|
|
44
|
+
if ((component === null || component === void 0 ? void 0 : component.name) === 'NumberField') {
|
|
46
45
|
if (validators && e.target && handlerFieldValidate) {
|
|
47
46
|
handlerFieldValidate(name, e.target.value, validators);
|
|
48
47
|
}
|
package/lib/form/FieldPeriod.js
CHANGED
|
@@ -9,8 +9,7 @@ var _lodash = _interopRequireDefault(require("lodash"));
|
|
|
9
9
|
var _withFieldHOC = _interopRequireDefault(require("./withFieldHOC"));
|
|
10
10
|
var _helpers = require("./helpers");
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
function
|
|
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; }
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
13
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
15
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -91,8 +90,8 @@ const FieldPeriod = props => {
|
|
|
91
90
|
});
|
|
92
91
|
},
|
|
93
92
|
value: {
|
|
94
|
-
initial: _lodash.default.get(data,
|
|
95
|
-
final: _lodash.default.get(data,
|
|
93
|
+
initial: _lodash.default.get(data, "".concat(name, ".").concat(nameDateInitial)),
|
|
94
|
+
final: _lodash.default.get(data, "".concat(name, ".").concat(nameDateFinal))
|
|
96
95
|
}
|
|
97
96
|
}));
|
|
98
97
|
}
|
package/lib/form/index.js
CHANGED
|
@@ -40,8 +40,7 @@ require("../assets/styles/form.scss");
|
|
|
40
40
|
var _dialog = require("../dialog");
|
|
41
41
|
var _withFormSecurity = require("./withFormSecurity");
|
|
42
42
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
43
|
-
function
|
|
44
|
-
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; }
|
|
43
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
45
44
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
46
45
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
47
46
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -264,7 +263,7 @@ const Form = _ref => {
|
|
|
264
263
|
}
|
|
265
264
|
}, [submitOnPressEnterKey]);
|
|
266
265
|
(0, _react.useEffect)(() => {
|
|
267
|
-
const validatorsQuantity = Object.values(fieldsValidators.current).reduce((acc, currentValue) => acc + (currentValue
|
|
266
|
+
const validatorsQuantity = Object.values(fieldsValidators.current).reduce((acc, currentValue) => acc + ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.length) || 0), 0);
|
|
268
267
|
if (fieldsValidators.current && onValidateForm && oldFieldsValidatorsQuantity !== validatorsQuantity) {
|
|
269
268
|
setOldFieldsValidatorsQuantity(validatorsQuantity);
|
|
270
269
|
onValidateForm(checkIsValid(usedData, true, fieldsValidators.current));
|
|
@@ -295,7 +294,7 @@ const Form = _ref => {
|
|
|
295
294
|
style: style
|
|
296
295
|
}, formProps(), {
|
|
297
296
|
role: "presentation",
|
|
298
|
-
className:
|
|
297
|
+
className: "form-component ".concat(customClass)
|
|
299
298
|
}), children)), /*#__PURE__*/_react.default.createElement(_dialog.DialogQuestion, {
|
|
300
299
|
zIndex: "99999999",
|
|
301
300
|
title: securityTitle || 'Dados Alterados',
|
package/lib/form/withFieldHOC.js
CHANGED
|
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _helpers = require("./helpers");
|
|
9
|
-
function
|
|
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; }
|
|
9
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
11
10
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
12
11
|
const withFieldHOC = WrappedComponent => {
|
|
13
12
|
const EnhancedComponent = props => {
|
|
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.FormSecurityContext = void 0;
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
function
|
|
9
|
-
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; }
|
|
8
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
10
9
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
11
10
|
const FormSecurityContext = exports.FormSecurityContext = /*#__PURE__*/_react.default.createContext({});
|
|
12
11
|
const withFormSecurity = WrappedComponent => {
|
package/lib/form2/helpers.js
CHANGED
|
@@ -26,7 +26,7 @@ const flattenValidators = function (validators) {
|
|
|
26
26
|
const flattened = {};
|
|
27
27
|
Object.entries(validators).forEach(_ref => {
|
|
28
28
|
let [key, value] = _ref;
|
|
29
|
-
const fullPath = prefix ?
|
|
29
|
+
const fullPath = prefix ? "".concat(prefix, ".").concat(key) : key;
|
|
30
30
|
if (Array.isArray(value)) {
|
|
31
31
|
flattened[fullPath] = value;
|
|
32
32
|
} else if (typeof value === 'object' && value !== null) {
|
package/lib/form2/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import './types.js';
|
|
|
4
4
|
|
|
5
5
|
interface FormElementProps extends React__default.ComponentProps<'form'> {
|
|
6
6
|
}
|
|
7
|
-
declare const Form: React__default.ForwardRefExoticComponent<Pick<FormElementProps, "
|
|
7
|
+
declare const Form: React__default.ForwardRefExoticComponent<Pick<FormElementProps, "key" | "style" | "children" | "slot" | "title" | "className" | "align" | "name" | "onClick" | "color" | "hidden" | "target" | "id" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "rel" | "autoComplete" | "acceptCharset" | "action" | "encType" | "method" | "noValidate"> & React__default.RefAttributes<HTMLFormElement>>;
|
|
8
8
|
|
|
9
9
|
export { Form as default };
|
package/lib/form2/types.d.ts
CHANGED
|
@@ -55,10 +55,6 @@ interface UseFormReturn<T> {
|
|
|
55
55
|
* Indica se o formulário está válido com base nos validadores definidos.
|
|
56
56
|
*/
|
|
57
57
|
isValid: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Indica se houve alguma alteração em qualquer campo do formulário em relação ao `initialValues`.
|
|
60
|
-
*/
|
|
61
|
-
formHasChange: boolean;
|
|
62
58
|
/**
|
|
63
59
|
* Registra um campo no formulário, integrando com `ref`, `value`, `onChange` e `onBlur`.
|
|
64
60
|
* @param name - Nome do campo.
|
|
@@ -27,7 +27,8 @@ const useForm = _ref => {
|
|
|
27
27
|
return (0, _helpers.flattenValidators)(validators);
|
|
28
28
|
}, [validators]);
|
|
29
29
|
const validateField = (name, value) => {
|
|
30
|
-
|
|
30
|
+
var _$get;
|
|
31
|
+
const validatorsForField = (_$get = _lodash.default.get(flattenedValidators, name)) !== null && _$get !== void 0 ? _$get : [];
|
|
31
32
|
const fieldErrors = validatorsForField.map(validator => validator(value, values)).filter(message => Boolean(message));
|
|
32
33
|
setErrors(prevErrorsState => {
|
|
33
34
|
const updatedErrorsState = _lodash.default.cloneDeep(prevErrorsState);
|
|
@@ -38,8 +39,9 @@ const useForm = _ref => {
|
|
|
38
39
|
const validateAllFields = () => {
|
|
39
40
|
const allValidationErrors = {};
|
|
40
41
|
Object.keys(flattenedValidators).forEach(path => {
|
|
42
|
+
var _$get2;
|
|
41
43
|
const value = _lodash.default.get(values, path);
|
|
42
|
-
const fieldValidators = _lodash.default.get(flattenedValidators, path)
|
|
44
|
+
const fieldValidators = (_$get2 = _lodash.default.get(flattenedValidators, path)) !== null && _$get2 !== void 0 ? _$get2 : [];
|
|
43
45
|
const fieldErrors = fieldValidators.map(validator => validator(value, values)).filter(message => Boolean(message));
|
|
44
46
|
if (fieldErrors.length) {
|
|
45
47
|
_lodash.default.set(allValidationErrors, path, fieldErrors);
|
|
@@ -50,20 +52,22 @@ const useForm = _ref => {
|
|
|
50
52
|
};
|
|
51
53
|
const checkFormIsValid = _react.default.useCallback(() => {
|
|
52
54
|
return Object.keys(flattenedValidators).every(path => {
|
|
55
|
+
var _$get3;
|
|
53
56
|
const value = _lodash.default.get(values, path);
|
|
54
|
-
const fieldValidators = _lodash.default.get(flattenedValidators, path)
|
|
57
|
+
const fieldValidators = (_$get3 = _lodash.default.get(flattenedValidators, path)) !== null && _$get3 !== void 0 ? _$get3 : [];
|
|
55
58
|
return fieldValidators.every(validator => !validator(value, values));
|
|
56
59
|
});
|
|
57
60
|
}, [values, flattenedValidators]);
|
|
58
61
|
const getFieldError = name => {
|
|
59
|
-
|
|
62
|
+
var _ref2;
|
|
63
|
+
const fieldErrors = (_ref2 = _lodash.default.get(errors, name)) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
60
64
|
return fieldErrors;
|
|
61
65
|
};
|
|
62
66
|
const setExternalErrors = externalErrors => {
|
|
63
67
|
setErrors(prevStateErrors => {
|
|
64
68
|
const newErrorsState = _lodash.default.cloneDeep(prevStateErrors);
|
|
65
|
-
Object.entries(externalErrors).forEach(
|
|
66
|
-
let [key, value] =
|
|
69
|
+
Object.entries(externalErrors).forEach(_ref3 => {
|
|
70
|
+
let [key, value] = _ref3;
|
|
67
71
|
_lodash.default.set(newErrorsState, key, value);
|
|
68
72
|
});
|
|
69
73
|
return newErrorsState;
|
|
@@ -87,10 +91,12 @@ const useForm = _ref => {
|
|
|
87
91
|
});
|
|
88
92
|
};
|
|
89
93
|
const setFieldFocus = (name, fieldFocusOptions) => {
|
|
94
|
+
var _field$focus;
|
|
90
95
|
const field = fieldsRef.current[name];
|
|
91
|
-
field
|
|
92
|
-
if (fieldFocusOptions
|
|
93
|
-
|
|
96
|
+
field === null || field === void 0 ? void 0 : (_field$focus = field.focus) === null || _field$focus === void 0 ? void 0 : _field$focus.call(field);
|
|
97
|
+
if (fieldFocusOptions !== null && fieldFocusOptions !== void 0 && fieldFocusOptions.shouldSelect) {
|
|
98
|
+
var _field$select;
|
|
99
|
+
field === null || field === void 0 ? void 0 : (_field$select = field.select) === null || _field$select === void 0 ? void 0 : _field$select.call(field);
|
|
94
100
|
}
|
|
95
101
|
};
|
|
96
102
|
const compareField = _react.default.useCallback((name, valueToCompare) => {
|
|
@@ -98,7 +104,7 @@ const useForm = _ref => {
|
|
|
98
104
|
}, [values]);
|
|
99
105
|
const cleanErrors = fieldsToClean => {
|
|
100
106
|
const newErrorsState = _lodash.default.cloneDeep(errors);
|
|
101
|
-
const fields = fieldsToClean
|
|
107
|
+
const fields = fieldsToClean !== null && fieldsToClean !== void 0 ? fieldsToClean : Object.keys(errors);
|
|
102
108
|
fields.forEach(key => {
|
|
103
109
|
_lodash.default.set(newErrorsState, key, []);
|
|
104
110
|
});
|
|
@@ -109,7 +115,7 @@ const useForm = _ref => {
|
|
|
109
115
|
const newTouchedState = _lodash.default.cloneDeep(touched);
|
|
110
116
|
const newChangedState = _lodash.default.cloneDeep(changed);
|
|
111
117
|
const newErrorsState = _lodash.default.cloneDeep(errors);
|
|
112
|
-
const inputs = inputsToReset
|
|
118
|
+
const inputs = inputsToReset !== null && inputsToReset !== void 0 ? inputsToReset : Object.keys(initialValuesRef.current);
|
|
113
119
|
inputs.forEach(key => {
|
|
114
120
|
const initialValue = _lodash.default.get(initialValuesRef.current, key);
|
|
115
121
|
_lodash.default.set(newValuesState, key, initialValue);
|
|
@@ -179,7 +185,6 @@ const useForm = _ref => {
|
|
|
179
185
|
callback(values);
|
|
180
186
|
};
|
|
181
187
|
const isValid = _react.default.useMemo(() => checkFormIsValid(), [checkFormIsValid]);
|
|
182
|
-
const formHasChange = _react.default.useMemo(() => Object.values(changed).some(Boolean), [changed]);
|
|
183
188
|
return {
|
|
184
189
|
reset,
|
|
185
190
|
changed,
|
|
@@ -187,7 +192,6 @@ const useForm = _ref => {
|
|
|
187
192
|
errors,
|
|
188
193
|
touched,
|
|
189
194
|
isValid,
|
|
190
|
-
formHasChange,
|
|
191
195
|
register,
|
|
192
196
|
cleanErrors,
|
|
193
197
|
changeValues,
|
|
@@ -10,10 +10,10 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
10
10
|
const getClass = col => {
|
|
11
11
|
const cols = col ? col.split(' ') : [];
|
|
12
12
|
let classes = 'grid-container ';
|
|
13
|
-
if (cols[0]) classes +=
|
|
14
|
-
if (cols[1]) classes +=
|
|
15
|
-
if (cols[2]) classes +=
|
|
16
|
-
if (cols[3]) classes +=
|
|
13
|
+
if (cols[0]) classes += "col-xs-".concat(cols[0]);
|
|
14
|
+
if (cols[1]) classes += " col-sm-".concat(cols[1]);
|
|
15
|
+
if (cols[2]) classes += " col-md-".concat(cols[2]);
|
|
16
|
+
if (cols[3]) classes += " col-lg-".concat(cols[3]);
|
|
17
17
|
return classes;
|
|
18
18
|
};
|
|
19
19
|
const GridCol = props => {
|
|
@@ -27,7 +27,7 @@ const GridCol = props => {
|
|
|
27
27
|
const gridClasses = getClass(cols || '');
|
|
28
28
|
if (!visible) return null;
|
|
29
29
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
30
|
-
className:
|
|
30
|
+
className: "".concat(customClass, " ").concat(gridClasses),
|
|
31
31
|
style: style
|
|
32
32
|
}, children);
|
|
33
33
|
};
|
|
@@ -12,10 +12,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
12
12
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
14
14
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
15
|
-
const getClass = props =>
|
|
16
|
-
${props.withTrim && ' -withtrim'}
|
|
17
|
-
${props.verticalAlign && ` align-items-${props.verticalAlign}`}
|
|
18
|
-
${props.horizontalAlign && ` justify-content-${props.horizontalAlign}`}`;
|
|
15
|
+
const getClass = props => "row ".concat(props.customClass, "\n ").concat(props.withTrim && ' -withtrim', "\n ").concat(props.verticalAlign && " align-items-".concat(props.verticalAlign), "\n ").concat(props.horizontalAlign && " justify-content-".concat(props.horizontalAlign));
|
|
19
16
|
const GridRow = props => {
|
|
20
17
|
const {
|
|
21
18
|
style,
|
package/lib/hint/index.js
CHANGED
|
@@ -22,13 +22,7 @@ const Hint = _ref => {
|
|
|
22
22
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
23
23
|
"aria-disabled": disabled,
|
|
24
24
|
style: style,
|
|
25
|
-
className:
|
|
26
|
-
hint-component
|
|
27
|
-
${customClass}
|
|
28
|
-
${skeletonize ? '-skeletonized' : ''}
|
|
29
|
-
${disabled ? '-disabled' : ''}
|
|
30
|
-
-${color}
|
|
31
|
-
`
|
|
25
|
+
className: "\n hint-component\n ".concat(customClass, "\n ").concat(skeletonize ? '-skeletonized' : '', "\n ").concat(disabled ? '-disabled' : '', "\n -").concat(color, "\n ")
|
|
32
26
|
}, Array.isArray(description) ? (0, _helpers.showHintList)(description) : /*#__PURE__*/_react.default.createElement("span", {
|
|
33
27
|
"aria-disabled": disabled
|
|
34
28
|
}, description));
|
package/lib/icons/index.js
CHANGED
|
@@ -9,8 +9,7 @@ var _helper = _interopRequireDefault(require("./helper"));
|
|
|
9
9
|
require("../assets/styles/icon.scss");
|
|
10
10
|
var _tooltip = require("../tooltip");
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
function
|
|
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; }
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
13
|
const listIcon = _helper.default;
|
|
15
14
|
const disabledIconColor = 'rgb(193, 193, 193)';
|
|
16
15
|
const Icon = _ref => {
|
|
@@ -36,9 +35,10 @@ const Icon = _ref => {
|
|
|
36
35
|
const colorFromProp = isUsingColorStyle || !color ? undefined : color;
|
|
37
36
|
const containerRef = (0, _react.useRef)(null);
|
|
38
37
|
const refSvg = (0, _react.useRef)(null);
|
|
39
|
-
const viewBoxFromIconOrSvgStrcut = name ? listIcon[name].viewbox : svgStruct
|
|
40
|
-
const getPaths = () => name ? listIcon[name].paths : svgStruct
|
|
38
|
+
const viewBoxFromIconOrSvgStrcut = name ? listIcon[name].viewbox : svgStruct === null || svgStruct === void 0 ? void 0 : svgStruct.viewbox;
|
|
39
|
+
const getPaths = () => name ? listIcon[name].paths : svgStruct === null || svgStruct === void 0 ? void 0 : svgStruct.paths;
|
|
41
40
|
const getSvg = () => {
|
|
41
|
+
var _getPaths;
|
|
42
42
|
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
43
43
|
"data-testid": "icon",
|
|
44
44
|
"data-color-style": colorStyle,
|
|
@@ -48,14 +48,14 @@ const Icon = _ref => {
|
|
|
48
48
|
ref: r => {
|
|
49
49
|
refSvg.current = r;
|
|
50
50
|
},
|
|
51
|
-
width:
|
|
52
|
-
height:
|
|
51
|
+
width: "".concat(size, "px"),
|
|
52
|
+
height: "".concat(size, "px"),
|
|
53
53
|
fill: disabled ? disabledIconColor : colorFromProp,
|
|
54
54
|
viewBox: viewBox || viewBoxFromIconOrSvgStrcut,
|
|
55
|
-
className:
|
|
55
|
+
className: "icon-component ".concat(customClass),
|
|
56
56
|
pointerEvents: pointerEvents,
|
|
57
57
|
style: style
|
|
58
|
-
}, getPaths()
|
|
58
|
+
}, (_getPaths = getPaths()) === null || _getPaths === void 0 ? void 0 : _getPaths.map(value => /*#__PURE__*/_react.default.createElement("path", {
|
|
59
59
|
"data-testid": "icon-path",
|
|
60
60
|
d: value,
|
|
61
61
|
key: value
|
|
@@ -66,7 +66,7 @@ const Icon = _ref => {
|
|
|
66
66
|
if (!visible) return null;
|
|
67
67
|
if (!tooltip) return getSvg();
|
|
68
68
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
69
|
-
className:
|
|
69
|
+
className: "icon-component-container ".concat(customClassForContainer),
|
|
70
70
|
ref: containerRef
|
|
71
71
|
}, getSvg()), /*#__PURE__*/_react.default.createElement(_tooltip.Tooltip, {
|
|
72
72
|
targetRef: containerRef,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { RadioFieldInputProps } from './inputs2/radiofield/types.js';
|
|
3
|
+
|
|
4
|
+
declare const Input: React__default.ForwardRefExoticComponent<Pick<RadioFieldInputProps, "key" | "style" | "children" | "form" | "label" | "slot" | "title" | "pattern" | "className" | "customClass" | "width" | "height" | "align" | "name" | "onClick" | "size" | "disabled" | "color" | "tooltip" | "tooltipPosition" | "tooltipWidth" | "hidden" | "id" | "value" | "readOnly" | "permissionAttr" | "skeletonize" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "step" | "labelUppercase" | "maxLength" | "required" | "hint" | "hintPosition" | "textAlign" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "themePopover" | "popoverAlign" | "checked" | "max" | "min" | "src" | "alt" | "errors" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "getFieldValue"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
|
|
6
|
+
declare const index_Input: typeof Input;
|
|
7
|
+
declare const index_RadioFieldInputProps: typeof RadioFieldInputProps;
|
|
8
|
+
declare namespace index {
|
|
9
|
+
export {
|
|
10
|
+
index_Input as Input,
|
|
11
|
+
index_RadioFieldInputProps as RadioFieldInputProps,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { Input as I, index as i };
|