linear-react-components-ui 2.0.0-beta.0 → 2.0.0-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/package.json +4 -6
- package/lib/@types/Align.d.ts +0 -2
- package/lib/@types/ButtonTypes.d.ts +0 -1
- package/lib/@types/ColorStyles.d.ts +0 -2
- package/lib/@types/DataCombo.d.ts +0 -1
- package/lib/@types/Icon.d.ts +0 -2
- package/lib/@types/LabelStyles.d.ts +0 -1
- package/lib/@types/Period.d.ts +0 -4
- package/lib/@types/PermissionAttr.d.ts +0 -12
- package/lib/@types/PointerEvents.d.ts +0 -1
- package/lib/@types/Position.d.ts +0 -2
- package/lib/@types/PositionAlert.d.ts +0 -1
- package/lib/@types/Size.d.ts +0 -1
- package/lib/@types/SizePixels.d.ts +0 -1
- package/lib/@types/StorageMock.d.ts +0 -3
- package/lib/_virtual/_rolldown/runtime.js +0 -23
- package/lib/alerts/AlertContainer.d.ts +0 -12
- package/lib/alerts/AlertContainer.js +0 -69
- package/lib/alerts/AlertContainer.js.map +0 -1
- package/lib/alerts/AlertProvider.d.ts +0 -3
- package/lib/alerts/AlertProvider.js +0 -47
- package/lib/alerts/AlertProvider.js.map +0 -1
- package/lib/alerts/BaseAlert.d.ts +0 -3
- package/lib/alerts/BaseAlert.js +0 -20
- package/lib/alerts/BaseAlert.js.map +0 -1
- package/lib/alerts/Message.d.ts +0 -3
- package/lib/alerts/Message.js +0 -90
- package/lib/alerts/Message.js.map +0 -1
- package/lib/alerts/helpers.d.ts +0 -3
- package/lib/alerts/helpers.js +0 -7
- package/lib/alerts/helpers.js.map +0 -1
- package/lib/alerts/index.d.ts +0 -4
- package/lib/alerts/index.js +0 -8
- package/lib/alerts/index.js.map +0 -1
- package/lib/alerts/types.d.ts +0 -47
- package/lib/alerts/withAlert.d.ts +0 -4
- package/lib/alerts/withAlert.js +0 -16
- package/lib/alerts/withAlert.js.map +0 -1
- package/lib/assets/styles/alerts.css +0 -1
- package/lib/assets/styles/avatar.css +0 -1
- package/lib/assets/styles/badge.css +0 -1
- package/lib/assets/styles/button.css +0 -1
- package/lib/assets/styles/calendar.css +0 -1
- package/lib/assets/styles/checkbox.css +0 -1
- package/lib/assets/styles/checkbox2.css +0 -1
- package/lib/assets/styles/colorpicker.css +0 -1
- package/lib/assets/styles/datepicker.css +0 -1
- package/lib/assets/styles/datepicker2.css +0 -1
- package/lib/assets/styles/dialog.css +0 -1
- package/lib/assets/styles/drawers.css +0 -1
- package/lib/assets/styles/dropdown.css +0 -1
- package/lib/assets/styles/error.css +0 -1
- package/lib/assets/styles/fieldset.css +0 -1
- package/lib/assets/styles/file.css +0 -1
- package/lib/assets/styles/filefield.css +0 -1
- package/lib/assets/styles/floatMenu.css +0 -1
- package/lib/assets/styles/form.css +0 -1
- package/lib/assets/styles/gridlayout.css +0 -1
- package/lib/assets/styles/hint.css +0 -1
- package/lib/assets/styles/icon.css +0 -1
- package/lib/assets/styles/input.css +0 -1
- package/lib/assets/styles/label.css +0 -1
- package/lib/assets/styles/labelMessages.css +0 -1
- package/lib/assets/styles/list.css +0 -1
- package/lib/assets/styles/multiSelect.css +0 -1
- package/lib/assets/styles/noPermission.css +0 -1
- package/lib/assets/styles/numberfield.css +0 -1
- package/lib/assets/styles/numbers.css +0 -1
- package/lib/assets/styles/panel.css +0 -1
- package/lib/assets/styles/periodpicker.css +0 -1
- package/lib/assets/styles/popover.css +0 -1
- package/lib/assets/styles/progress.css +0 -1
- package/lib/assets/styles/radio.css +0 -1
- package/lib/assets/styles/radiofield.css +0 -1
- package/lib/assets/styles/search.css +0 -1
- package/lib/assets/styles/select.css +0 -1
- package/lib/assets/styles/selectfield.css +0 -1
- package/lib/assets/styles/shortcuts.css +0 -1
- package/lib/assets/styles/sidenav.css +0 -1
- package/lib/assets/styles/skeleton.css +0 -1
- package/lib/assets/styles/slot.css +0 -1
- package/lib/assets/styles/spinner.css +0 -1
- package/lib/assets/styles/split.css +0 -1
- package/lib/assets/styles/table.css +0 -1
- package/lib/assets/styles/tabs.css +0 -1
- package/lib/assets/styles/textContent.css +0 -1
- package/lib/assets/styles/textfield.css +0 -1
- package/lib/assets/styles/toolbar.css +0 -1
- package/lib/assets/styles/tooltip.css +0 -1
- package/lib/assets/styles/treetable.css +0 -1
- package/lib/assets/styles/treeview.css +0 -1
- package/lib/assets/styles/uitour.css +0 -1
- package/lib/assets/styles/wizard.css +0 -1
- package/lib/avatar/index.d.ts +0 -6
- package/lib/avatar/index.js +0 -51
- package/lib/avatar/index.js.map +0 -1
- package/lib/avatar/types.d.ts +0 -27
- package/lib/badge/index.d.ts +0 -3
- package/lib/badge/index.js +0 -21
- package/lib/badge/index.js.map +0 -1
- package/lib/badge/types.d.ts +0 -10
- package/lib/buttons/ActivateButton.d.ts +0 -3
- package/lib/buttons/ActivateButton.js +0 -11
- package/lib/buttons/ActivateButton.js.map +0 -1
- package/lib/buttons/AddButton.d.ts +0 -3
- package/lib/buttons/AddButton.js +0 -15
- package/lib/buttons/AddButton.js.map +0 -1
- package/lib/buttons/Button.d.ts +0 -6
- package/lib/buttons/Button.js +0 -10
- package/lib/buttons/Button.js.map +0 -1
- package/lib/buttons/ButtonGroups.d.ts +0 -6
- package/lib/buttons/CancelButton.d.ts +0 -3
- package/lib/buttons/CancelButton.js +0 -11
- package/lib/buttons/CancelButton.js.map +0 -1
- package/lib/buttons/DangerButton.d.ts +0 -3
- package/lib/buttons/DangerButton.js +0 -11
- package/lib/buttons/DangerButton.js.map +0 -1
- package/lib/buttons/DefaultButton.d.ts +0 -6
- package/lib/buttons/DefaultButton.js +0 -108
- package/lib/buttons/DefaultButton.js.map +0 -1
- package/lib/buttons/DestroyButton.d.ts +0 -3
- package/lib/buttons/DestroyButton.js +0 -15
- package/lib/buttons/DestroyButton.js.map +0 -1
- package/lib/buttons/EditButton.d.ts +0 -3
- package/lib/buttons/EditButton.js +0 -11
- package/lib/buttons/EditButton.js.map +0 -1
- package/lib/buttons/InactivateButton.d.ts +0 -3
- package/lib/buttons/InactivateButton.js +0 -11
- package/lib/buttons/InactivateButton.js.map +0 -1
- package/lib/buttons/InfoButton.d.ts +0 -3
- package/lib/buttons/InfoButton.js +0 -11
- package/lib/buttons/InfoButton.js.map +0 -1
- package/lib/buttons/PrimaryButton.d.ts +0 -3
- package/lib/buttons/PrimaryButton.js +0 -11
- package/lib/buttons/PrimaryButton.js.map +0 -1
- package/lib/buttons/RestoreButton.d.ts +0 -3
- package/lib/buttons/RestoreButton.js +0 -11
- package/lib/buttons/RestoreButton.js.map +0 -1
- package/lib/buttons/SaveButton.d.ts +0 -3
- package/lib/buttons/SaveButton.js +0 -11
- package/lib/buttons/SaveButton.js.map +0 -1
- package/lib/buttons/SuccessButton.d.ts +0 -3
- package/lib/buttons/SuccessButton.js +0 -11
- package/lib/buttons/SuccessButton.js.map +0 -1
- package/lib/buttons/WarningButton.d.ts +0 -3
- package/lib/buttons/WarningButton.js +0 -11
- package/lib/buttons/WarningButton.js.map +0 -1
- package/lib/buttons/button_container/index.d.ts +0 -10
- package/lib/buttons/button_container/index.js +0 -15
- package/lib/buttons/button_container/index.js.map +0 -1
- package/lib/buttons/index.d.ts +0 -17
- package/lib/buttons/index.js +0 -22
- package/lib/buttons/index.js.map +0 -1
- package/lib/buttons/split_button/index.d.ts +0 -3
- package/lib/buttons/split_button/index.js +0 -50
- package/lib/buttons/split_button/index.js.map +0 -1
- package/lib/buttons/types.d.ts +0 -46
- package/lib/calendar/DangerCalendar.d.ts +0 -3
- package/lib/calendar/DangerCalendar.js +0 -11
- package/lib/calendar/DangerCalendar.js.map +0 -1
- package/lib/calendar/InfoCalendar.d.ts +0 -3
- package/lib/calendar/InfoCalendar.js +0 -11
- package/lib/calendar/InfoCalendar.js.map +0 -1
- package/lib/calendar/PrimaryCalendar.d.ts +0 -3
- package/lib/calendar/PrimaryCalendar.js +0 -11
- package/lib/calendar/PrimaryCalendar.js.map +0 -1
- package/lib/calendar/SuccessCalendar.d.ts +0 -3
- package/lib/calendar/SuccessCalendar.js +0 -11
- package/lib/calendar/SuccessCalendar.js.map +0 -1
- package/lib/calendar/WarningCalendar.d.ts +0 -3
- package/lib/calendar/WarningCalendar.js +0 -11
- package/lib/calendar/WarningCalendar.js.map +0 -1
- package/lib/calendar/base/helpers.d.ts +0 -58
- package/lib/calendar/base/helpers.js +0 -41
- package/lib/calendar/base/helpers.js.map +0 -1
- package/lib/calendar/base/index.d.ts +0 -3
- package/lib/calendar/base/index.js +0 -138
- package/lib/calendar/base/index.js.map +0 -1
- package/lib/calendar/index.d.ts +0 -8
- package/lib/calendar/index.js +0 -12
- package/lib/calendar/index.js.map +0 -1
- package/lib/calendar/types.d.ts +0 -27
- package/lib/checkbox/index.d.ts +0 -8
- package/lib/checkbox/index.js +0 -111
- package/lib/checkbox/index.js.map +0 -1
- package/lib/checkbox/types.d.ts +0 -46
- package/lib/dialog/Alert.d.ts +0 -3
- package/lib/dialog/Alert.js +0 -24
- package/lib/dialog/Alert.js.map +0 -1
- package/lib/dialog/Custom.d.ts +0 -3
- package/lib/dialog/Custom.js +0 -49
- package/lib/dialog/Custom.js.map +0 -1
- package/lib/dialog/Error.d.ts +0 -3
- package/lib/dialog/Error.js +0 -24
- package/lib/dialog/Error.js.map +0 -1
- package/lib/dialog/Information.d.ts +0 -3
- package/lib/dialog/Information.js +0 -24
- package/lib/dialog/Information.js.map +0 -1
- package/lib/dialog/Question.d.ts +0 -3
- package/lib/dialog/Question.js +0 -48
- package/lib/dialog/Question.js.map +0 -1
- package/lib/dialog/Warning.d.ts +0 -3
- package/lib/dialog/Warning.js +0 -24
- package/lib/dialog/Warning.js.map +0 -1
- package/lib/dialog/base/Content.d.ts +0 -3
- package/lib/dialog/base/Content.js +0 -14
- package/lib/dialog/base/Content.js.map +0 -1
- package/lib/dialog/base/Footer.d.ts +0 -3
- package/lib/dialog/base/Footer.js +0 -10
- package/lib/dialog/base/Footer.js.map +0 -1
- package/lib/dialog/base/Header.d.ts +0 -3
- package/lib/dialog/base/Header.js +0 -42
- package/lib/dialog/base/Header.js.map +0 -1
- package/lib/dialog/base/index.d.ts +0 -13
- package/lib/dialog/base/index.js +0 -104
- package/lib/dialog/base/index.js.map +0 -1
- package/lib/dialog/base/style.d.ts +0 -7
- package/lib/dialog/base/style.js +0 -11
- package/lib/dialog/base/style.js.map +0 -1
- package/lib/dialog/form/index.d.ts +0 -4
- package/lib/dialog/form/index.js +0 -89
- package/lib/dialog/form/index.js.map +0 -1
- package/lib/dialog/index.d.ts +0 -9
- package/lib/dialog/index.js +0 -13
- package/lib/dialog/index.js.map +0 -1
- package/lib/dialog/types.d.ts +0 -113
- package/lib/dialog/wizard/index.d.ts +0 -8
- package/lib/dialog/wizard/index.js +0 -46
- package/lib/dialog/wizard/index.js.map +0 -1
- package/lib/dialog/wizard/progressbar.d.ts +0 -11
- package/lib/dialog/wizard/progressbar.js +0 -38
- package/lib/dialog/wizard/progressbar.js.map +0 -1
- package/lib/dialog/wizard/step.d.ts +0 -2
- package/lib/dialog/wizard/step.js +0 -19
- package/lib/dialog/wizard/step.js.map +0 -1
- package/lib/dialog/wizard/useWizard.d.ts +0 -2
- package/lib/dialog/wizard/useWizard.js +0 -43
- package/lib/dialog/wizard/useWizard.js.map +0 -1
- package/lib/drawer/Content.d.ts +0 -3
- package/lib/drawer/Content.js +0 -18
- package/lib/drawer/Content.js.map +0 -1
- package/lib/drawer/Drawer.d.ts +0 -3
- package/lib/drawer/Drawer.js +0 -76
- package/lib/drawer/Drawer.js.map +0 -1
- package/lib/drawer/Header.d.ts +0 -3
- package/lib/drawer/Header.js +0 -60
- package/lib/drawer/Header.js.map +0 -1
- package/lib/drawer/helpers.d.ts +0 -3
- package/lib/drawer/helpers.js +0 -7
- package/lib/drawer/helpers.js.map +0 -1
- package/lib/drawer/index.d.ts +0 -5
- package/lib/drawer/index.js +0 -11
- package/lib/drawer/index.js.map +0 -1
- package/lib/drawer/types.d.ts +0 -38
- package/lib/dropdown/Popup.d.ts +0 -3
- package/lib/dropdown/Popup.js +0 -36
- package/lib/dropdown/Popup.js.map +0 -1
- package/lib/dropdown/helper.d.ts +0 -2
- package/lib/dropdown/index.d.ts +0 -3
- package/lib/dropdown/index.js +0 -7
- package/lib/dropdown/index.js.map +0 -1
- package/lib/dropdown/types.d.ts +0 -45
- package/lib/dropdown/withDropdown.d.ts +0 -9
- package/lib/dropdown/withDropdown.js +0 -51
- package/lib/dropdown/withDropdown.js.map +0 -1
- package/lib/fieldset/index.d.ts +0 -3
- package/lib/fieldset/index.js +0 -51
- package/lib/fieldset/index.js.map +0 -1
- package/lib/fieldset/types.d.ts +0 -27
- package/lib/form/Field.d.ts +0 -2
- package/lib/form/Field.js +0 -84
- package/lib/form/Field.js.map +0 -1
- package/lib/form/FieldArray.d.ts +0 -2
- package/lib/form/FieldArray.js +0 -69
- package/lib/form/FieldArray.js.map +0 -1
- package/lib/form/FieldNumber.d.ts +0 -2
- package/lib/form/FieldNumber.js +0 -47
- package/lib/form/FieldNumber.js.map +0 -1
- package/lib/form/FieldPeriod.d.ts +0 -2
- package/lib/form/FieldPeriod.js +0 -67
- package/lib/form/FieldPeriod.js.map +0 -1
- package/lib/form/helpers.d.ts +0 -11
- package/lib/form/helpers.js +0 -18
- package/lib/form/helpers.js.map +0 -1
- package/lib/form/index.d.ts +0 -8
- package/lib/form/index.js +0 -148
- package/lib/form/index.js.map +0 -1
- package/lib/form/types.d.ts +0 -245
- package/lib/form/withFieldHOC.d.ts +0 -4
- package/lib/form/withFieldHOC.js +0 -62
- package/lib/form/withFieldHOC.js.map +0 -1
- package/lib/form/withFormSecurity.d.ts +0 -6
- package/lib/form/withFormSecurity.js +0 -34
- package/lib/form/withFormSecurity.js.map +0 -1
- package/lib/form2/helpers.d.ts +0 -5
- package/lib/form2/helpers.js +0 -22
- package/lib/form2/helpers.js.map +0 -1
- package/lib/form2/index.d.ts +0 -7
- package/lib/form2/index.js +0 -20
- package/lib/form2/index.js.map +0 -1
- package/lib/form2/types.d.ts +0 -133
- package/lib/form2/useForm/index.d.ts +0 -3
- package/lib/form2/useForm/index.js +0 -122
- package/lib/form2/useForm/index.js.map +0 -1
- package/lib/gridlayout/GridCol.d.ts +0 -3
- package/lib/gridlayout/GridCol.js +0 -18
- package/lib/gridlayout/GridCol.js.map +0 -1
- package/lib/gridlayout/GridRow.d.ts +0 -3
- package/lib/gridlayout/GridRow.js +0 -21
- package/lib/gridlayout/GridRow.js.map +0 -1
- package/lib/gridlayout/index.d.ts +0 -4
- package/lib/gridlayout/index.js +0 -8
- package/lib/gridlayout/index.js.map +0 -1
- package/lib/gridlayout/types.d.ts +0 -17
- package/lib/hint/helpers.d.ts +0 -1
- package/lib/hint/helpers.js +0 -14
- package/lib/hint/helpers.js.map +0 -1
- package/lib/hint/index.d.ts +0 -3
- package/lib/hint/index.js +0 -23
- package/lib/hint/index.js.map +0 -1
- package/lib/hint/types.d.ts +0 -11
- package/lib/icons/helper.d.ts +0 -667
- package/lib/icons/helper.js +0 -863
- package/lib/icons/helper.js.map +0 -1
- package/lib/icons/index.d.ts +0 -3
- package/lib/icons/index.js +0 -45
- package/lib/icons/index.js.map +0 -1
- package/lib/icons/types.d.ts +0 -42
- package/lib/index.d.ts +0 -10
- package/lib/index.js +0 -10
- package/lib/inputs/base/InputTextBase.d.ts +0 -3
- package/lib/inputs/base/InputTextBase.js +0 -198
- package/lib/inputs/base/InputTextBase.js.map +0 -1
- package/lib/inputs/base/helpers.d.ts +0 -10
- package/lib/inputs/base/helpers.js +0 -19
- package/lib/inputs/base/helpers.js.map +0 -1
- package/lib/inputs/base/types.d.ts +0 -88
- package/lib/inputs/color/index.d.ts +0 -3
- package/lib/inputs/color/index.js +0 -59
- package/lib/inputs/color/index.js.map +0 -1
- package/lib/inputs/color/types.d.ts +0 -16
- package/lib/inputs/date/Dialog.d.ts +0 -3
- package/lib/inputs/date/Dialog.js +0 -17
- package/lib/inputs/date/Dialog.js.map +0 -1
- package/lib/inputs/date/Dropdown.d.ts +0 -3
- package/lib/inputs/date/Dropdown.js +0 -15
- package/lib/inputs/date/Dropdown.js.map +0 -1
- package/lib/inputs/date/helpers.d.ts +0 -34
- package/lib/inputs/date/helpers.js +0 -38
- package/lib/inputs/date/helpers.js.map +0 -1
- package/lib/inputs/date/index.d.ts +0 -3
- package/lib/inputs/date/index.js +0 -159
- package/lib/inputs/date/index.js.map +0 -1
- package/lib/inputs/date/types.d.ts +0 -57
- package/lib/inputs/errorMessage/index.d.ts +0 -3
- package/lib/inputs/errorMessage/index.js +0 -19
- package/lib/inputs/errorMessage/index.js.map +0 -1
- package/lib/inputs/file/DefaultFile.d.ts +0 -3
- package/lib/inputs/file/DefaultFile.js +0 -89
- package/lib/inputs/file/DefaultFile.js.map +0 -1
- package/lib/inputs/file/DragDropFile.d.ts +0 -3
- package/lib/inputs/file/DragDropFile.js +0 -203
- package/lib/inputs/file/DragDropFile.js.map +0 -1
- package/lib/inputs/file/File.d.ts +0 -3
- package/lib/inputs/file/File.js +0 -39
- package/lib/inputs/file/File.js.map +0 -1
- package/lib/inputs/file/FileButtonSettings.d.ts +0 -3
- package/lib/inputs/file/FileButtonSettings.js +0 -22
- package/lib/inputs/file/FileButtonSettings.js.map +0 -1
- package/lib/inputs/file/helpers.d.ts +0 -2
- package/lib/inputs/file/helpers.js +0 -13
- package/lib/inputs/file/helpers.js.map +0 -1
- package/lib/inputs/file/index.d.ts +0 -5
- package/lib/inputs/file/index.js +0 -9
- package/lib/inputs/file/index.js.map +0 -1
- package/lib/inputs/file/types.d.ts +0 -49
- package/lib/inputs/index.d.ts +0 -14
- package/lib/inputs/index.js +0 -24
- package/lib/inputs/index.js.map +0 -1
- package/lib/inputs/inputHOC.d.ts +0 -4
- package/lib/inputs/inputHOC.js +0 -40
- package/lib/inputs/inputHOC.js.map +0 -1
- package/lib/inputs/mask/BaseMask.d.ts +0 -3
- package/lib/inputs/mask/BaseMask.js +0 -106
- package/lib/inputs/mask/BaseMask.js.map +0 -1
- package/lib/inputs/mask/Cnpj.d.ts +0 -6
- package/lib/inputs/mask/Cnpj.js +0 -44
- package/lib/inputs/mask/Cnpj.js.map +0 -1
- package/lib/inputs/mask/Cpf.d.ts +0 -6
- package/lib/inputs/mask/Cpf.js +0 -45
- package/lib/inputs/mask/Cpf.js.map +0 -1
- package/lib/inputs/mask/Phone.d.ts +0 -3
- package/lib/inputs/mask/Phone.js +0 -14
- package/lib/inputs/mask/Phone.js.map +0 -1
- package/lib/inputs/mask/ZipCode.d.ts +0 -3
- package/lib/inputs/mask/ZipCode.js +0 -11
- package/lib/inputs/mask/ZipCode.js.map +0 -1
- package/lib/inputs/mask/helpers.d.ts +0 -5
- package/lib/inputs/mask/helpers.js +0 -45
- package/lib/inputs/mask/helpers.js.map +0 -1
- package/lib/inputs/mask/index.d.ts +0 -7
- package/lib/inputs/mask/index.js +0 -11
- package/lib/inputs/mask/index.js.map +0 -1
- package/lib/inputs/mask/types.d.ts +0 -74
- package/lib/inputs/multiSelect/ActionButtons.d.ts +0 -3
- package/lib/inputs/multiSelect/ActionButtons.js +0 -39
- package/lib/inputs/multiSelect/ActionButtons.js.map +0 -1
- package/lib/inputs/multiSelect/Dropdown.d.ts +0 -3
- package/lib/inputs/multiSelect/Dropdown.js +0 -108
- package/lib/inputs/multiSelect/Dropdown.js.map +0 -1
- package/lib/inputs/multiSelect/helper.d.ts +0 -3
- package/lib/inputs/multiSelect/helper.js +0 -6
- package/lib/inputs/multiSelect/helper.js.map +0 -1
- package/lib/inputs/multiSelect/index.d.ts +0 -3
- package/lib/inputs/multiSelect/index.js +0 -130
- package/lib/inputs/multiSelect/index.js.map +0 -1
- package/lib/inputs/multiSelect/types.d.ts +0 -59
- package/lib/inputs/number/Currency.d.ts +0 -3
- package/lib/inputs/number/Currency.js +0 -72
- package/lib/inputs/number/Currency.js.map +0 -1
- package/lib/inputs/number/Decimal.d.ts +0 -3
- package/lib/inputs/number/Decimal.js +0 -68
- package/lib/inputs/number/Decimal.js.map +0 -1
- package/lib/inputs/number/format_number.d.ts +0 -3
- package/lib/inputs/number/format_number.js +0 -14
- package/lib/inputs/number/format_number.js.map +0 -1
- package/lib/inputs/number/index.d.ts +0 -6
- package/lib/inputs/number/index.js +0 -69
- package/lib/inputs/number/index.js.map +0 -1
- package/lib/inputs/number/types.d.ts +0 -37
- package/lib/inputs/period/Dialog.d.ts +0 -3
- package/lib/inputs/period/Dialog.js +0 -17
- package/lib/inputs/period/Dialog.js.map +0 -1
- package/lib/inputs/period/Dropdown.d.ts +0 -3
- package/lib/inputs/period/Dropdown.js +0 -15
- package/lib/inputs/period/Dropdown.js.map +0 -1
- package/lib/inputs/period/PeriodList.d.ts +0 -3
- package/lib/inputs/period/PeriodList.js +0 -48
- package/lib/inputs/period/PeriodList.js.map +0 -1
- package/lib/inputs/period/helper.d.ts +0 -11
- package/lib/inputs/period/helper.js +0 -26
- package/lib/inputs/period/helper.js.map +0 -1
- package/lib/inputs/period/index.d.ts +0 -3
- package/lib/inputs/period/index.js +0 -298
- package/lib/inputs/period/index.js.map +0 -1
- package/lib/inputs/period/types.d.ts +0 -72
- package/lib/inputs/search/index.d.ts +0 -3
- package/lib/inputs/search/index.js +0 -91
- package/lib/inputs/search/index.js.map +0 -1
- package/lib/inputs/select/ActionButtons.d.ts +0 -3
- package/lib/inputs/select/ActionButtons.js +0 -32
- package/lib/inputs/select/ActionButtons.js.map +0 -1
- package/lib/inputs/select/Dropdown.d.ts +0 -3
- package/lib/inputs/select/Dropdown.js +0 -87
- package/lib/inputs/select/Dropdown.js.map +0 -1
- package/lib/inputs/select/helper.d.ts +0 -11
- package/lib/inputs/select/helper.js +0 -24
- package/lib/inputs/select/helper.js.map +0 -1
- package/lib/inputs/select/index.d.ts +0 -3
- package/lib/inputs/select/index.js +0 -29
- package/lib/inputs/select/index.js.map +0 -1
- package/lib/inputs/select/multiple/Selecteds.d.ts +0 -3
- package/lib/inputs/select/multiple/Selecteds.js +0 -16
- package/lib/inputs/select/multiple/Selecteds.js.map +0 -1
- package/lib/inputs/select/multiple/index.d.ts +0 -3
- package/lib/inputs/select/multiple/index.js +0 -169
- package/lib/inputs/select/multiple/index.js.map +0 -1
- package/lib/inputs/select/simple/index.d.ts +0 -3
- package/lib/inputs/select/simple/index.js +0 -168
- package/lib/inputs/select/simple/index.js.map +0 -1
- package/lib/inputs/select/types.d.ts +0 -119
- package/lib/inputs/text/index.d.ts +0 -3
- package/lib/inputs/text/index.js +0 -8
- package/lib/inputs/text/index.js.map +0 -1
- package/lib/inputs/text/types.d.ts +0 -18
- package/lib/inputs/textarea/index.d.ts +0 -3
- package/lib/inputs/textarea/index.js +0 -17
- package/lib/inputs/textarea/index.js.map +0 -1
- package/lib/inputs/textarea/types.d.ts +0 -7
- package/lib/inputs/types.d.ts +0 -152
- package/lib/inputs2/checkboxfield/base.d.ts +0 -27
- package/lib/inputs2/checkboxfield/base.js +0 -110
- package/lib/inputs2/checkboxfield/base.js.map +0 -1
- package/lib/inputs2/checkboxfield/index.d.ts +0 -11
- package/lib/inputs2/checkboxfield/index.js +0 -35
- package/lib/inputs2/checkboxfield/index.js.map +0 -1
- package/lib/inputs2/colorfield/index.d.ts +0 -8
- package/lib/inputs2/colorfield/index.js +0 -70
- package/lib/inputs2/colorfield/index.js.map +0 -1
- package/lib/inputs2/date/base/constants.d.ts +0 -4
- package/lib/inputs2/date/base/constants.js +0 -31
- package/lib/inputs2/date/base/constants.js.map +0 -1
- package/lib/inputs2/date/base/index.d.ts +0 -6
- package/lib/inputs2/date/base/index.js +0 -126
- package/lib/inputs2/date/base/index.js.map +0 -1
- package/lib/inputs2/date/datefield/base.d.ts +0 -3
- package/lib/inputs2/date/datefield/base.js +0 -221
- package/lib/inputs2/date/datefield/base.js.map +0 -1
- package/lib/inputs2/date/datefield/calendarbox.d.ts +0 -6
- package/lib/inputs2/date/datefield/calendarbox.js +0 -112
- package/lib/inputs2/date/datefield/calendarbox.js.map +0 -1
- package/lib/inputs2/date/datefield/context.d.ts +0 -4
- package/lib/inputs2/date/datefield/context.js +0 -11
- package/lib/inputs2/date/datefield/context.js.map +0 -1
- package/lib/inputs2/date/datefield/index.d.ts +0 -5
- package/lib/inputs2/date/datefield/index.js +0 -30
- package/lib/inputs2/date/datefield/index.js.map +0 -1
- package/lib/inputs2/date/datefield/triggers.d.ts +0 -8
- package/lib/inputs2/date/datefield/triggers.js +0 -32
- package/lib/inputs2/date/datefield/triggers.js.map +0 -1
- package/lib/inputs2/date/datefield/types.d.ts +0 -63
- package/lib/inputs2/date/dateperiodfield/base.d.ts +0 -3
- package/lib/inputs2/date/dateperiodfield/base.js +0 -386
- package/lib/inputs2/date/dateperiodfield/base.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +0 -6
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +0 -121
- package/lib/inputs2/date/dateperiodfield/calendarbox.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/context.d.ts +0 -4
- package/lib/inputs2/date/dateperiodfield/context.js +0 -11
- package/lib/inputs2/date/dateperiodfield/context.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/index.d.ts +0 -5
- package/lib/inputs2/date/dateperiodfield/index.js +0 -30
- package/lib/inputs2/date/dateperiodfield/index.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/triggers.d.ts +0 -5
- package/lib/inputs2/date/dateperiodfield/triggers.js +0 -83
- package/lib/inputs2/date/dateperiodfield/triggers.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/types.d.ts +0 -101
- package/lib/inputs2/date/helpers.d.ts +0 -10
- package/lib/inputs2/date/helpers.js +0 -60
- package/lib/inputs2/date/helpers.js.map +0 -1
- package/lib/inputs2/date/types.d.ts +0 -59
- package/lib/inputs2/date/types.js +0 -8
- package/lib/inputs2/date/types.js.map +0 -1
- package/lib/inputs2/filefield/index.d.ts +0 -11
- package/lib/inputs2/filefield/index.js +0 -147
- package/lib/inputs2/filefield/index.js.map +0 -1
- package/lib/inputs2/index.d.ts +0 -17
- package/lib/inputs2/index.js +0 -17
- package/lib/inputs2/mask/Cnpj.d.ts +0 -9
- package/lib/inputs2/mask/Cnpj.js +0 -72
- package/lib/inputs2/mask/Cnpj.js.map +0 -1
- package/lib/inputs2/mask/Cpf.d.ts +0 -9
- package/lib/inputs2/mask/Cpf.js +0 -58
- package/lib/inputs2/mask/Cpf.js.map +0 -1
- package/lib/inputs2/mask/Phone.d.ts +0 -8
- package/lib/inputs2/mask/Phone.js +0 -21
- package/lib/inputs2/mask/Phone.js.map +0 -1
- package/lib/inputs2/mask/ZipCode.d.ts +0 -7
- package/lib/inputs2/mask/ZipCode.js +0 -21
- package/lib/inputs2/mask/ZipCode.js.map +0 -1
- package/lib/inputs2/mask/helpers.d.ts +0 -2
- package/lib/inputs2/mask/helpers.js +0 -28
- package/lib/inputs2/mask/helpers.js.map +0 -1
- package/lib/inputs2/mask/index.d.ts +0 -6
- package/lib/inputs2/mask/index.js +0 -68
- package/lib/inputs2/mask/index.js.map +0 -1
- package/lib/inputs2/mask/types.d.ts +0 -16
- package/lib/inputs2/numberfield/currency.d.ts +0 -4
- package/lib/inputs2/numberfield/currency.js +0 -86
- package/lib/inputs2/numberfield/currency.js.map +0 -1
- package/lib/inputs2/numberfield/decimal.d.ts +0 -4
- package/lib/inputs2/numberfield/decimal.js +0 -78
- package/lib/inputs2/numberfield/decimal.js.map +0 -1
- package/lib/inputs2/numberfield/helpers.d.ts +0 -28
- package/lib/inputs2/numberfield/helpers.js +0 -17
- package/lib/inputs2/numberfield/helpers.js.map +0 -1
- package/lib/inputs2/numberfield/index.d.ts +0 -8
- package/lib/inputs2/numberfield/index.js +0 -83
- package/lib/inputs2/numberfield/index.js.map +0 -1
- package/lib/inputs2/numberfield/types.d.ts +0 -26
- package/lib/inputs2/radiofield/base.d.ts +0 -3
- package/lib/inputs2/radiofield/base.js +0 -113
- package/lib/inputs2/radiofield/base.js.map +0 -1
- package/lib/inputs2/radiofield/index.d.ts +0 -5
- package/lib/inputs2/radiofield/index.js +0 -35
- package/lib/inputs2/radiofield/index.js.map +0 -1
- package/lib/inputs2/radiofield/types.d.ts +0 -34
- package/lib/inputs2/selectfield/base.d.ts +0 -3
- package/lib/inputs2/selectfield/base.js +0 -312
- package/lib/inputs2/selectfield/base.js.map +0 -1
- package/lib/inputs2/selectfield/context.d.ts +0 -38
- package/lib/inputs2/selectfield/context.js +0 -11
- package/lib/inputs2/selectfield/context.js.map +0 -1
- package/lib/inputs2/selectfield/helpers.d.ts +0 -5
- package/lib/inputs2/selectfield/helpers.js +0 -36
- package/lib/inputs2/selectfield/helpers.js.map +0 -1
- package/lib/inputs2/selectfield/index.d.ts +0 -9
- package/lib/inputs2/selectfield/index.js +0 -42
- package/lib/inputs2/selectfield/index.js.map +0 -1
- package/lib/inputs2/selectfield/item.d.ts +0 -11
- package/lib/inputs2/selectfield/item.js +0 -54
- package/lib/inputs2/selectfield/item.js.map +0 -1
- package/lib/inputs2/selectfield/listbox.d.ts +0 -7
- package/lib/inputs2/selectfield/listbox.js +0 -66
- package/lib/inputs2/selectfield/listbox.js.map +0 -1
- package/lib/inputs2/selectfield/options.d.ts +0 -8
- package/lib/inputs2/selectfield/options.js +0 -20
- package/lib/inputs2/selectfield/options.js.map +0 -1
- package/lib/inputs2/selectfield/search.d.ts +0 -6
- package/lib/inputs2/selectfield/search.js +0 -51
- package/lib/inputs2/selectfield/search.js.map +0 -1
- package/lib/inputs2/selectfield/selections.d.ts +0 -9
- package/lib/inputs2/selectfield/selections.js +0 -62
- package/lib/inputs2/selectfield/selections.js.map +0 -1
- package/lib/inputs2/selectfield/simple.d.ts +0 -9
- package/lib/inputs2/selectfield/simple.js +0 -22
- package/lib/inputs2/selectfield/simple.js.map +0 -1
- package/lib/inputs2/selectfield/triggers.d.ts +0 -8
- package/lib/inputs2/selectfield/triggers.js +0 -110
- package/lib/inputs2/selectfield/triggers.js.map +0 -1
- package/lib/inputs2/selectfield/types.d.ts +0 -55
- package/lib/inputs2/selectfield/types.js +0 -10
- package/lib/inputs2/selectfield/types.js.map +0 -1
- package/lib/inputs2/slot/index.d.ts +0 -17
- package/lib/inputs2/slot/index.js +0 -52
- package/lib/inputs2/slot/index.js.map +0 -1
- package/lib/inputs2/textareafield/base.d.ts +0 -23
- package/lib/inputs2/textareafield/base.js +0 -119
- package/lib/inputs2/textareafield/base.js.map +0 -1
- package/lib/inputs2/textareafield/index.d.ts +0 -12
- package/lib/inputs2/textareafield/index.js +0 -40
- package/lib/inputs2/textareafield/index.js.map +0 -1
- package/lib/inputs2/textfield/base.d.ts +0 -23
- package/lib/inputs2/textfield/base.js +0 -101
- package/lib/inputs2/textfield/base.js.map +0 -1
- package/lib/inputs2/textfield/index.d.ts +0 -12
- package/lib/inputs2/textfield/index.js +0 -40
- package/lib/inputs2/textfield/index.js.map +0 -1
- package/lib/internals/colorStyles.d.ts +0 -8
- package/lib/internals/colorStyles.js +0 -12
- package/lib/internals/colorStyles.js.map +0 -1
- package/lib/internals/constants.d.ts +0 -12
- package/lib/internals/constants.js +0 -13
- package/lib/internals/constants.js.map +0 -1
- package/lib/internals/types.d.ts +0 -7
- package/lib/labelMessages/index.d.ts +0 -3
- package/lib/labelMessages/index.js +0 -49
- package/lib/labelMessages/index.js.map +0 -1
- package/lib/labelMessages/types.d.ts +0 -16
- package/lib/labels/DangerLabel.d.ts +0 -3
- package/lib/labels/DangerLabel.js +0 -11
- package/lib/labels/DangerLabel.js.map +0 -1
- package/lib/labels/DefaultLabel.d.ts +0 -3
- package/lib/labels/DefaultLabel.js +0 -30
- package/lib/labels/DefaultLabel.js.map +0 -1
- package/lib/labels/InfoLabel.d.ts +0 -3
- package/lib/labels/InfoLabel.js +0 -11
- package/lib/labels/InfoLabel.js.map +0 -1
- package/lib/labels/PrimaryLabel.d.ts +0 -3
- package/lib/labels/PrimaryLabel.js +0 -11
- package/lib/labels/PrimaryLabel.js.map +0 -1
- package/lib/labels/SuccessLabel.d.ts +0 -3
- package/lib/labels/SuccessLabel.js +0 -11
- package/lib/labels/SuccessLabel.js.map +0 -1
- package/lib/labels/WarningLabel.d.ts +0 -3
- package/lib/labels/WarningLabel.js +0 -11
- package/lib/labels/WarningLabel.js.map +0 -1
- package/lib/labels/index.d.ts +0 -9
- package/lib/labels/index.js +0 -14
- package/lib/labels/index.js.map +0 -1
- package/lib/labels/label_container/index.d.ts +0 -10
- package/lib/labels/label_container/index.js +0 -11
- package/lib/labels/label_container/index.js.map +0 -1
- package/lib/labels/types.d.ts +0 -19
- package/lib/list/Header.d.ts +0 -3
- package/lib/list/Header.js +0 -14
- package/lib/list/Header.js.map +0 -1
- package/lib/list/Item.d.ts +0 -3
- package/lib/list/Item.js +0 -90
- package/lib/list/Item.js.map +0 -1
- package/lib/list/Separator.d.ts +0 -2
- package/lib/list/Separator.js +0 -7
- package/lib/list/Separator.js.map +0 -1
- package/lib/list/helpers.d.ts +0 -8
- package/lib/list/helpers.js +0 -11
- package/lib/list/helpers.js.map +0 -1
- package/lib/list/index.d.ts +0 -7
- package/lib/list/index.js +0 -75
- package/lib/list/index.js.map +0 -1
- package/lib/list/types.d.ts +0 -66
- package/lib/menus/float/MenuItem.d.ts +0 -3
- package/lib/menus/float/MenuItem.js +0 -60
- package/lib/menus/float/MenuItem.js.map +0 -1
- package/lib/menus/float/SubMenuContainer.d.ts +0 -29
- package/lib/menus/float/SubMenuContainer.js +0 -63
- package/lib/menus/float/SubMenuContainer.js.map +0 -1
- package/lib/menus/float/helpers.d.ts +0 -3
- package/lib/menus/float/helpers.js +0 -7
- package/lib/menus/float/helpers.js.map +0 -1
- package/lib/menus/float/index.d.ts +0 -6
- package/lib/menus/float/index.js +0 -38
- package/lib/menus/float/index.js.map +0 -1
- package/lib/menus/float/types.d.ts +0 -26
- package/lib/menus/index.d.ts +0 -2
- package/lib/menus/index.js +0 -7
- package/lib/menus/index.js.map +0 -1
- package/lib/menus/sidenav/ExpandMenu.d.ts +0 -3
- package/lib/menus/sidenav/ExpandMenu.js +0 -18
- package/lib/menus/sidenav/ExpandMenu.js.map +0 -1
- package/lib/menus/sidenav/MenuLink.d.ts +0 -3
- package/lib/menus/sidenav/MenuLink.js +0 -24
- package/lib/menus/sidenav/MenuLink.js.map +0 -1
- package/lib/menus/sidenav/NavMenuGroup.d.ts +0 -3
- package/lib/menus/sidenav/NavMenuGroup.js +0 -19
- package/lib/menus/sidenav/NavMenuGroup.js.map +0 -1
- package/lib/menus/sidenav/NavMenuItem.d.ts +0 -3
- package/lib/menus/sidenav/NavMenuItem.js +0 -96
- package/lib/menus/sidenav/NavMenuItem.js.map +0 -1
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +0 -3
- package/lib/menus/sidenav/NavSubMenuItem.js +0 -37
- package/lib/menus/sidenav/NavSubMenuItem.js.map +0 -1
- package/lib/menus/sidenav/helpers.d.ts +0 -5
- package/lib/menus/sidenav/helpers.js +0 -10
- package/lib/menus/sidenav/helpers.js.map +0 -1
- package/lib/menus/sidenav/index.d.ts +0 -8
- package/lib/menus/sidenav/index.js +0 -97
- package/lib/menus/sidenav/index.js.map +0 -1
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +0 -3
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +0 -18
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js.map +0 -1
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +0 -3
- package/lib/menus/sidenav/popup_menu_search/index.js +0 -80
- package/lib/menus/sidenav/popup_menu_search/index.js.map +0 -1
- package/lib/menus/sidenav/types.d.ts +0 -85
- package/lib/noPermission/index.d.ts +0 -2
- package/lib/noPermission/index.js +0 -27
- package/lib/noPermission/index.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +0 -32
- package/lib/node_modules/imask/esm/controls/html-contenteditable-mask-element.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/html-input-mask-element.js +0 -29
- package/lib/node_modules/imask/esm/controls/html-input-mask-element.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/html-mask-element.js +0 -41
- package/lib/node_modules/imask/esm/controls/html-mask-element.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/input-history.js +0 -32
- package/lib/node_modules/imask/esm/controls/input-history.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/input.js +0 -179
- package/lib/node_modules/imask/esm/controls/input.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/mask-element.js +0 -31
- package/lib/node_modules/imask/esm/controls/mask-element.js.map +0 -1
- package/lib/node_modules/imask/esm/core/action-details.js +0 -36
- package/lib/node_modules/imask/esm/core/action-details.js.map +0 -1
- package/lib/node_modules/imask/esm/core/change-details.js +0 -32
- package/lib/node_modules/imask/esm/core/change-details.js.map +0 -1
- package/lib/node_modules/imask/esm/core/continuous-tail-details.js +0 -39
- package/lib/node_modules/imask/esm/core/continuous-tail-details.js.map +0 -1
- package/lib/node_modules/imask/esm/core/holder.js +0 -8
- package/lib/node_modules/imask/esm/core/holder.js.map +0 -1
- package/lib/node_modules/imask/esm/core/utils.js +0 -58
- package/lib/node_modules/imask/esm/core/utils.js.map +0 -1
- package/lib/node_modules/imask/esm/imask.js +0 -8
- package/lib/node_modules/imask/esm/index.js +0 -31
- package/lib/node_modules/imask/esm/index.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/base.js +0 -199
- package/lib/node_modules/imask/esm/masked/base.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/date.js +0 -102
- package/lib/node_modules/imask/esm/masked/date.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/dynamic.js +0 -201
- package/lib/node_modules/imask/esm/masked/dynamic.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/enum.js +0 -65
- package/lib/node_modules/imask/esm/masked/enum.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/factory.js +0 -35
- package/lib/node_modules/imask/esm/masked/factory.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/function.js +0 -20
- package/lib/node_modules/imask/esm/masked/function.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/number.js +0 -177
- package/lib/node_modules/imask/esm/masked/number.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +0 -85
- package/lib/node_modules/imask/esm/masked/pattern/chunk-tail-details.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern/cursor.js +0 -86
- package/lib/node_modules/imask/esm/masked/pattern/cursor.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern/fixed-definition.js +0 -93
- package/lib/node_modules/imask/esm/masked/pattern/fixed-definition.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern/input-definition.js +0 -112
- package/lib/node_modules/imask/esm/masked/pattern/input-definition.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern.js +0 -285
- package/lib/node_modules/imask/esm/masked/pattern.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pipe.js +0 -21
- package/lib/node_modules/imask/esm/masked/pipe.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/range.js +0 -67
- package/lib/node_modules/imask/esm/masked/range.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/regexp.js +0 -18
- package/lib/node_modules/imask/esm/masked/regexp.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/repeat.js +0 -90
- package/lib/node_modules/imask/esm/masked/repeat.js.map +0 -1
- package/lib/node_modules/lodash/_Hash.js +0 -23
- package/lib/node_modules/lodash/_Hash.js.map +0 -1
- package/lib/node_modules/lodash/_ListCache.js +0 -23
- package/lib/node_modules/lodash/_ListCache.js.map +0 -1
- package/lib/node_modules/lodash/_Map.js +0 -12
- package/lib/node_modules/lodash/_Map.js.map +0 -1
- package/lib/node_modules/lodash/_MapCache.js +0 -23
- package/lib/node_modules/lodash/_MapCache.js.map +0 -1
- package/lib/node_modules/lodash/_Symbol.js +0 -11
- package/lib/node_modules/lodash/_Symbol.js.map +0 -1
- package/lib/node_modules/lodash/_assocIndexOf.js +0 -16
- package/lib/node_modules/lodash/_assocIndexOf.js.map +0 -1
- package/lib/node_modules/lodash/_baseGetTag.js +0 -17
- package/lib/node_modules/lodash/_baseGetTag.js.map +0 -1
- package/lib/node_modules/lodash/_baseIsNative.js +0 -18
- package/lib/node_modules/lodash/_baseIsNative.js.map +0 -1
- package/lib/node_modules/lodash/_coreJsData.js +0 -11
- package/lib/node_modules/lodash/_coreJsData.js.map +0 -1
- package/lib/node_modules/lodash/_freeGlobal.js +0 -10
- package/lib/node_modules/lodash/_freeGlobal.js.map +0 -1
- package/lib/node_modules/lodash/_getMapData.js +0 -16
- package/lib/node_modules/lodash/_getMapData.js.map +0 -1
- package/lib/node_modules/lodash/_getNative.js +0 -17
- package/lib/node_modules/lodash/_getNative.js.map +0 -1
- package/lib/node_modules/lodash/_getRawTag.js +0 -21
- package/lib/node_modules/lodash/_getRawTag.js.map +0 -1
- package/lib/node_modules/lodash/_getValue.js +0 -13
- package/lib/node_modules/lodash/_getValue.js.map +0 -1
- package/lib/node_modules/lodash/_hashClear.js +0 -15
- package/lib/node_modules/lodash/_hashClear.js.map +0 -1
- package/lib/node_modules/lodash/_hashDelete.js +0 -14
- package/lib/node_modules/lodash/_hashDelete.js.map +0 -1
- package/lib/node_modules/lodash/_hashGet.js +0 -20
- package/lib/node_modules/lodash/_hashGet.js.map +0 -1
- package/lib/node_modules/lodash/_hashHas.js +0 -16
- package/lib/node_modules/lodash/_hashHas.js.map +0 -1
- package/lib/node_modules/lodash/_hashSet.js +0 -16
- package/lib/node_modules/lodash/_hashSet.js.map +0 -1
- package/lib/node_modules/lodash/_isKeyable.js +0 -14
- package/lib/node_modules/lodash/_isKeyable.js.map +0 -1
- package/lib/node_modules/lodash/_isMasked.js +0 -18
- package/lib/node_modules/lodash/_isMasked.js.map +0 -1
- package/lib/node_modules/lodash/_listCacheClear.js +0 -13
- package/lib/node_modules/lodash/_listCacheClear.js.map +0 -1
- package/lib/node_modules/lodash/_listCacheDelete.js +0 -16
- package/lib/node_modules/lodash/_listCacheDelete.js.map +0 -1
- package/lib/node_modules/lodash/_listCacheGet.js +0 -16
- package/lib/node_modules/lodash/_listCacheGet.js.map +0 -1
- package/lib/node_modules/lodash/_listCacheHas.js +0 -15
- package/lib/node_modules/lodash/_listCacheHas.js.map +0 -1
- package/lib/node_modules/lodash/_listCacheSet.js +0 -16
- package/lib/node_modules/lodash/_listCacheSet.js.map +0 -1
- package/lib/node_modules/lodash/_mapCacheClear.js +0 -21
- package/lib/node_modules/lodash/_mapCacheClear.js.map +0 -1
- package/lib/node_modules/lodash/_mapCacheDelete.js +0 -16
- package/lib/node_modules/lodash/_mapCacheDelete.js.map +0 -1
- package/lib/node_modules/lodash/_mapCacheGet.js +0 -15
- package/lib/node_modules/lodash/_mapCacheGet.js.map +0 -1
- package/lib/node_modules/lodash/_mapCacheHas.js +0 -15
- package/lib/node_modules/lodash/_mapCacheHas.js.map +0 -1
- package/lib/node_modules/lodash/_mapCacheSet.js +0 -16
- package/lib/node_modules/lodash/_mapCacheSet.js.map +0 -1
- package/lib/node_modules/lodash/_nativeCreate.js +0 -11
- package/lib/node_modules/lodash/_nativeCreate.js.map +0 -1
- package/lib/node_modules/lodash/_objectToString.js +0 -14
- package/lib/node_modules/lodash/_objectToString.js.map +0 -1
- package/lib/node_modules/lodash/_root.js +0 -12
- package/lib/node_modules/lodash/_root.js.map +0 -1
- package/lib/node_modules/lodash/_toSource.js +0 -22
- package/lib/node_modules/lodash/_toSource.js.map +0 -1
- package/lib/node_modules/lodash/eq.js +0 -13
- package/lib/node_modules/lodash/eq.js.map +0 -1
- package/lib/node_modules/lodash/isFunction.js +0 -18
- package/lib/node_modules/lodash/isFunction.js.map +0 -1
- package/lib/node_modules/lodash/isObject.js +0 -14
- package/lib/node_modules/lodash/isObject.js.map +0 -1
- package/lib/node_modules/lodash/lodash.js +0 -3295
- package/lib/node_modules/lodash/lodash.js.map +0 -1
- package/lib/node_modules/lodash/memoize.js +0 -22
- package/lib/node_modules/lodash/memoize.js.map +0 -1
- package/lib/node_modules/moment/dist/moment.js +0 -1934
- package/lib/node_modules/moment/dist/moment.js.map +0 -1
- package/lib/node_modules/object-assign/index.js +0 -41
- package/lib/node_modules/object-assign/index.js.map +0 -1
- package/lib/node_modules/prop-types/checkPropTypes.js +0 -46
- package/lib/node_modules/prop-types/checkPropTypes.js.map +0 -1
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js +0 -49
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +0 -272
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
- package/lib/node_modules/prop-types/index.js +0 -16
- package/lib/node_modules/prop-types/index.js.map +0 -1
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
- package/lib/node_modules/prop-types/lib/has.js +0 -10
- package/lib/node_modules/prop-types/lib/has.js.map +0 -1
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -84
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -64
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/lib/node_modules/prop-types/node_modules/react-is/index.js +0 -12
- package/lib/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
- package/lib/node_modules/react/cjs/react-compiler-runtime.development.js +0 -16
- package/lib/node_modules/react/cjs/react-compiler-runtime.development.js.map +0 -1
- package/lib/node_modules/react/cjs/react-compiler-runtime.production.js +0 -13
- package/lib/node_modules/react/cjs/react-compiler-runtime.production.js.map +0 -1
- package/lib/node_modules/react/compiler-runtime.js +0 -12
- package/lib/node_modules/react/compiler-runtime.js.map +0 -1
- package/lib/node_modules/react-imask/esm/hook.js +0 -58
- package/lib/node_modules/react-imask/esm/hook.js.map +0 -1
- package/lib/node_modules/react-imask/esm/index.js +0 -7
- package/lib/node_modules/react-imask/esm/input.js +0 -18
- package/lib/node_modules/react-imask/esm/input.js.map +0 -1
- package/lib/node_modules/react-imask/esm/mixin.js +0 -129
- package/lib/node_modules/react-imask/esm/mixin.js.map +0 -1
- package/lib/node_modules/uuid/dist/native.js +0 -5
- package/lib/node_modules/uuid/dist/native.js.map +0 -1
- package/lib/node_modules/uuid/dist/rng.js +0 -13
- package/lib/node_modules/uuid/dist/rng.js.map +0 -1
- package/lib/node_modules/uuid/dist/stringify.js +0 -10
- package/lib/node_modules/uuid/dist/stringify.js.map +0 -1
- package/lib/node_modules/uuid/dist/v1.js +0 -36
- package/lib/node_modules/uuid/dist/v1.js.map +0 -1
- package/lib/node_modules/uuid/dist/v4.js +0 -22
- package/lib/node_modules/uuid/dist/v4.js.map +0 -1
- package/lib/panel/Content.d.ts +0 -3
- package/lib/panel/Content.js +0 -42
- package/lib/panel/Content.js.map +0 -1
- package/lib/panel/DangerPanel.d.ts +0 -3
- package/lib/panel/DangerPanel.js +0 -12
- package/lib/panel/DangerPanel.js.map +0 -1
- package/lib/panel/Default.d.ts +0 -3
- package/lib/panel/Default.js +0 -45
- package/lib/panel/Default.js.map +0 -1
- package/lib/panel/Header.d.ts +0 -3
- package/lib/panel/Header.js +0 -51
- package/lib/panel/Header.js.map +0 -1
- package/lib/panel/InfoPanel.d.ts +0 -3
- package/lib/panel/InfoPanel.js +0 -12
- package/lib/panel/InfoPanel.js.map +0 -1
- package/lib/panel/PrimaryPanel.d.ts +0 -3
- package/lib/panel/PrimaryPanel.js +0 -12
- package/lib/panel/PrimaryPanel.js.map +0 -1
- package/lib/panel/SuccessPanel.d.ts +0 -3
- package/lib/panel/SuccessPanel.js +0 -12
- package/lib/panel/SuccessPanel.js.map +0 -1
- package/lib/panel/ToolBar.d.ts +0 -3
- package/lib/panel/WarningPanel.d.ts +0 -3
- package/lib/panel/WarningPanel.js +0 -12
- package/lib/panel/WarningPanel.js.map +0 -1
- package/lib/panel/helpers.d.ts +0 -4
- package/lib/panel/helpers.js +0 -13
- package/lib/panel/helpers.js.map +0 -1
- package/lib/panel/index.d.ts +0 -10
- package/lib/panel/index.js +0 -15
- package/lib/panel/index.js.map +0 -1
- package/lib/panel/types.d.ts +0 -43
- package/lib/permissionValidations.d.ts +0 -12
- package/lib/permissionValidations.js +0 -40
- package/lib/permissionValidations.js.map +0 -1
- package/lib/popover/PopoverText.d.ts +0 -3
- package/lib/popover/PopoverText.js +0 -19
- package/lib/popover/PopoverText.js.map +0 -1
- package/lib/popover/PopoverTitle.d.ts +0 -3
- package/lib/popover/PopoverTitle.js +0 -10
- package/lib/popover/PopoverTitle.js.map +0 -1
- package/lib/popover/index.d.ts +0 -6
- package/lib/popover/index.js +0 -40
- package/lib/popover/index.js.map +0 -1
- package/lib/popover/types.d.ts +0 -32
- package/lib/progress/Bar.d.ts +0 -3
- package/lib/progress/Bar.js +0 -41
- package/lib/progress/Bar.js.map +0 -1
- package/lib/progress/index.d.ts +0 -5
- package/lib/progress/index.js +0 -20
- package/lib/progress/index.js.map +0 -1
- package/lib/progress/types.d.ts +0 -34
- package/lib/radio/index.d.ts +0 -11
- package/lib/radio/index.js +0 -88
- package/lib/radio/index.js.map +0 -1
- package/lib/radio/types.d.ts +0 -25
- package/lib/shortcuts/index.d.ts +0 -3
- package/lib/shortcuts/index.js +0 -22
- package/lib/shortcuts/index.js.map +0 -1
- package/lib/shortcuts/types.d.ts +0 -9
- package/lib/skeleton/SkeletonContainer.d.ts +0 -3
- package/lib/skeleton/SkeletonContainer.js +0 -12
- package/lib/skeleton/SkeletonContainer.js.map +0 -1
- package/lib/skeleton/index.d.ts +0 -5
- package/lib/skeleton/index.js +0 -29
- package/lib/skeleton/index.js.map +0 -1
- package/lib/skeleton/types.d.ts +0 -18
- package/lib/spinner/SpinnerLoading.d.ts +0 -3
- package/lib/spinner/SpinnerLoading.js +0 -249
- package/lib/spinner/SpinnerLoading.js.map +0 -1
- package/lib/spinner/index.d.ts +0 -5
- package/lib/spinner/index.js +0 -48
- package/lib/spinner/index.js.map +0 -1
- package/lib/spinner/types.d.ts +0 -17
- package/lib/split/Split.d.ts +0 -3
- package/lib/split/Split.js +0 -195
- package/lib/split/Split.js.map +0 -1
- package/lib/split/SplitSide.d.ts +0 -3
- package/lib/split/SplitSide.js +0 -21
- package/lib/split/SplitSide.js.map +0 -1
- package/lib/split/helpers.d.ts +0 -7
- package/lib/split/helpers.js +0 -7
- package/lib/split/helpers.js.map +0 -1
- package/lib/split/index.d.ts +0 -4
- package/lib/split/index.js +0 -9
- package/lib/split/index.js.map +0 -1
- package/lib/split/types.d.ts +0 -31
- package/lib/table/Body.d.ts +0 -3
- package/lib/table/Body.js +0 -42
- package/lib/table/Body.js.map +0 -1
- package/lib/table/Header.d.ts +0 -3
- package/lib/table/Header.js +0 -56
- package/lib/table/Header.js.map +0 -1
- package/lib/table/HeaderColumn.d.ts +0 -3
- package/lib/table/HeaderColumn.js +0 -41
- package/lib/table/HeaderColumn.js.map +0 -1
- package/lib/table/Row.d.ts +0 -3
- package/lib/table/Row.js +0 -48
- package/lib/table/Row.js.map +0 -1
- package/lib/table/RowColumn.d.ts +0 -3
- package/lib/table/RowColumn.js +0 -48
- package/lib/table/RowColumn.js.map +0 -1
- package/lib/table/helpers.d.ts +0 -6
- package/lib/table/helpers.js +0 -7
- package/lib/table/helpers.js.map +0 -1
- package/lib/table/index.d.ts +0 -9
- package/lib/table/index.js +0 -70
- package/lib/table/index.js.map +0 -1
- package/lib/table/types.d.ts +0 -95
- package/lib/tabs/DropdownTabs.d.ts +0 -3
- package/lib/tabs/DropdownTabs.js +0 -70
- package/lib/tabs/DropdownTabs.js.map +0 -1
- package/lib/tabs/Menu.d.ts +0 -3
- package/lib/tabs/Menu.js +0 -35
- package/lib/tabs/Menu.js.map +0 -1
- package/lib/tabs/MenuTabs.d.ts +0 -3
- package/lib/tabs/MenuTabs.js +0 -60
- package/lib/tabs/MenuTabs.js.map +0 -1
- package/lib/tabs/Panel.d.ts +0 -3
- package/lib/tabs/Panel.js +0 -42
- package/lib/tabs/Panel.js.map +0 -1
- package/lib/tabs/context.d.ts +0 -3
- package/lib/tabs/context.js +0 -82
- package/lib/tabs/context.js.map +0 -1
- package/lib/tabs/index.d.ts +0 -5
- package/lib/tabs/index.js +0 -54
- package/lib/tabs/index.js.map +0 -1
- package/lib/tabs/tabHelpers.d.ts +0 -27
- package/lib/tabs/tabHelpers.js +0 -42
- package/lib/tabs/tabHelpers.js.map +0 -1
- package/lib/tabs/types.d.ts +0 -102
- package/lib/tabs/useTabs.d.ts +0 -1
- package/lib/tabs/useTabs.js +0 -10
- package/lib/tabs/useTabs.js.map +0 -1
- package/lib/textContent/index.d.ts +0 -14
- package/lib/textContent/index.js +0 -28
- package/lib/textContent/index.js.map +0 -1
- package/lib/toolbar/ButtonBar.d.ts +0 -3
- package/lib/toolbar/ButtonBar.js +0 -54
- package/lib/toolbar/ButtonBar.js.map +0 -1
- package/lib/toolbar/LabelBar.d.ts +0 -3
- package/lib/toolbar/LabelBar.js +0 -40
- package/lib/toolbar/LabelBar.js.map +0 -1
- package/lib/toolbar/Separator.d.ts +0 -2
- package/lib/toolbar/Separator.js +0 -7
- package/lib/toolbar/Separator.js.map +0 -1
- package/lib/toolbar/ToolBarGroup.d.ts +0 -3
- package/lib/toolbar/ToolBarGroup.js +0 -11
- package/lib/toolbar/ToolBarGroup.js.map +0 -1
- package/lib/toolbar/helpers.d.ts +0 -3
- package/lib/toolbar/helpers.js +0 -7
- package/lib/toolbar/helpers.js.map +0 -1
- package/lib/toolbar/index.d.ts +0 -8
- package/lib/toolbar/index.js +0 -24
- package/lib/toolbar/index.js.map +0 -1
- package/lib/toolbar/types.d.ts +0 -43
- package/lib/tooltip/TooltipContent.d.ts +0 -3
- package/lib/tooltip/TooltipContent.js +0 -33
- package/lib/tooltip/TooltipContent.js.map +0 -1
- package/lib/tooltip/index.d.ts +0 -3
- package/lib/tooltip/index.js +0 -41
- package/lib/tooltip/index.js.map +0 -1
- package/lib/tooltip/types.d.ts +0 -40
- package/lib/tooltip/useTooltip.d.ts +0 -27
- package/lib/tooltip/useTooltip.js +0 -78
- package/lib/tooltip/useTooltip.js.map +0 -1
- package/lib/treetable/Body.d.ts +0 -2
- package/lib/treetable/Body.js +0 -26
- package/lib/treetable/Body.js.map +0 -1
- package/lib/treetable/Header.d.ts +0 -2
- package/lib/treetable/Header.js +0 -27
- package/lib/treetable/Header.js.map +0 -1
- package/lib/treetable/Row.d.ts +0 -3
- package/lib/treetable/Row.js +0 -155
- package/lib/treetable/Row.js.map +0 -1
- package/lib/treetable/helpers.d.ts +0 -14
- package/lib/treetable/helpers.js +0 -13
- package/lib/treetable/helpers.js.map +0 -1
- package/lib/treetable/index.d.ts +0 -4
- package/lib/treetable/index.js +0 -22
- package/lib/treetable/index.js.map +0 -1
- package/lib/treeview/Header.d.ts +0 -3
- package/lib/treeview/Header.js +0 -16
- package/lib/treeview/Header.js.map +0 -1
- package/lib/treeview/Node.d.ts +0 -3
- package/lib/treeview/Node.js +0 -151
- package/lib/treeview/Node.js.map +0 -1
- package/lib/treeview/constants.d.ts +0 -2
- package/lib/treeview/constants.js +0 -7
- package/lib/treeview/constants.js.map +0 -1
- package/lib/treeview/index.d.ts +0 -6
- package/lib/treeview/index.js +0 -182
- package/lib/treeview/index.js.map +0 -1
- package/lib/treeview/types.d.ts +0 -106
- package/lib/uitour/helpers.d.ts +0 -7
- package/lib/uitour/helpers.js +0 -9
- package/lib/uitour/helpers.js.map +0 -1
- package/lib/uitour/index.d.ts +0 -3
- package/lib/uitour/index.js +0 -184
- package/lib/uitour/index.js.map +0 -1
- package/lib/uitour/types.d.ts +0 -35
package/lib/form/types.d.ts
DELETED
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
import { ChangeEvent, ComponentType, CSSProperties, Dispatch, MouseEventHandler, ReactNode, SetStateAction } from 'react';
|
|
2
|
-
import { AllOptions } from '../inputs/select/types';
|
|
3
|
-
export type Validator = (value: string) => string | undefined;
|
|
4
|
-
export type PeriodValidator = (value: {
|
|
5
|
-
inicial: string;
|
|
6
|
-
final: string;
|
|
7
|
-
}) => string | undefined;
|
|
8
|
-
export type OnFielChangeEvent = Event & {
|
|
9
|
-
target: HTMLInputElement;
|
|
10
|
-
};
|
|
11
|
-
export type CustomKeyboardEvent = ChangeEvent<HTMLInputElement> & {
|
|
12
|
-
keyCode: number;
|
|
13
|
-
};
|
|
14
|
-
export type PropsValidateTabErrors = {
|
|
15
|
-
name: string;
|
|
16
|
-
tabId?: string | number;
|
|
17
|
-
hasErrors: boolean;
|
|
18
|
-
};
|
|
19
|
-
type BaseFormProps = {
|
|
20
|
-
dataSource: object;
|
|
21
|
-
children: ReactNode;
|
|
22
|
-
onSubmit: (data: object) => void;
|
|
23
|
-
handlerSubmit: (value: () => void) => void;
|
|
24
|
-
handlerReset?: (value: () => void) => void;
|
|
25
|
-
handlerValidates?: (value: any) => void;
|
|
26
|
-
onValidateForm?: (value: boolean) => void;
|
|
27
|
-
onValidateErrorsOnTab?: (tabIds: Array<string | number>) => void;
|
|
28
|
-
submitOnPressEnterKey?: boolean;
|
|
29
|
-
style?: CSSProperties;
|
|
30
|
-
customClass?: string;
|
|
31
|
-
securityBeforeUnload?: boolean;
|
|
32
|
-
securityTitle?: string;
|
|
33
|
-
securityText?: string;
|
|
34
|
-
securityData?: object;
|
|
35
|
-
externalFieldErrors?: object;
|
|
36
|
-
skeletonize?: boolean;
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
};
|
|
39
|
-
type OnDataChange = Dispatch<SetStateAction<object>>;
|
|
40
|
-
export type FormProps = BaseFormProps & ({
|
|
41
|
-
useInternalState?: false;
|
|
42
|
-
onDataChange: OnDataChange;
|
|
43
|
-
} | {
|
|
44
|
-
useInternalState: true;
|
|
45
|
-
onDataChange?: OnDataChange;
|
|
46
|
-
});
|
|
47
|
-
type Data = {
|
|
48
|
-
[key: string]: any;
|
|
49
|
-
};
|
|
50
|
-
export interface IFieldProps extends WithFieldProps {
|
|
51
|
-
data?: Data;
|
|
52
|
-
originalData?: Data;
|
|
53
|
-
dataSource?: Data;
|
|
54
|
-
name: string;
|
|
55
|
-
value?: string;
|
|
56
|
-
label?: string;
|
|
57
|
-
handlerFieldChange?: (event: ChangeEvent<HTMLInputElement> | CustomKeyboardEvent) => ChangeEvent;
|
|
58
|
-
handlerFieldValidate?: (name: string, value: string, validatorsArray: Validator[] | Validator) => void;
|
|
59
|
-
component: ComponentType<any>;
|
|
60
|
-
componentType?: 'Radio' | 'Checkbox';
|
|
61
|
-
onChange?: (event: ChangeEvent) => ChangeEvent;
|
|
62
|
-
onBlur?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
63
|
-
onKeyDown?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
64
|
-
validators?: Validator | Validator[];
|
|
65
|
-
fieldErrors?: {
|
|
66
|
-
[name: string]: string[];
|
|
67
|
-
};
|
|
68
|
-
externalFieldErrors?: {
|
|
69
|
-
[name: string]: string[];
|
|
70
|
-
};
|
|
71
|
-
externalMessagesErrors?: string[];
|
|
72
|
-
fieldId?: string;
|
|
73
|
-
scale?: number;
|
|
74
|
-
required?: boolean;
|
|
75
|
-
idKey?: string;
|
|
76
|
-
descriptionKey?: string;
|
|
77
|
-
showClearButton?: boolean;
|
|
78
|
-
gridLayout?: string;
|
|
79
|
-
allOptions?: AllOptions;
|
|
80
|
-
searchNotFoundText?: string;
|
|
81
|
-
min?: number;
|
|
82
|
-
max?: number;
|
|
83
|
-
autoFocus?: boolean;
|
|
84
|
-
autoCompleteMask?: 'left' | 'right';
|
|
85
|
-
mask?: string;
|
|
86
|
-
hint?: string | string[];
|
|
87
|
-
hintPosition?: 'below' | 'onLabelRight';
|
|
88
|
-
themePopover?: 'light' | 'dark';
|
|
89
|
-
popoverAlign?: 'right' | 'left';
|
|
90
|
-
displayCurrencySymbol?: boolean;
|
|
91
|
-
removeZeroLeft?: boolean;
|
|
92
|
-
textAlign?: 'left' | 'right';
|
|
93
|
-
disabled?: boolean;
|
|
94
|
-
currencySymbol?: string;
|
|
95
|
-
checked?: boolean;
|
|
96
|
-
tabId?: string | number;
|
|
97
|
-
handleValidationErrorsOnTab?: (props: PropsValidateTabErrors) => void;
|
|
98
|
-
}
|
|
99
|
-
export interface CustomEvent {
|
|
100
|
-
target: {
|
|
101
|
-
value: string[];
|
|
102
|
-
name: string;
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
export interface IFieldArrayProps extends WithFieldProps {
|
|
106
|
-
data?: Data;
|
|
107
|
-
originalData?: Data;
|
|
108
|
-
dataSource?: Data;
|
|
109
|
-
name: string;
|
|
110
|
-
handlerFieldChange?: (event: CustomEvent) => void;
|
|
111
|
-
fieldErrors?: {
|
|
112
|
-
[name: string]: string[];
|
|
113
|
-
};
|
|
114
|
-
validators?: Validator | Validator[];
|
|
115
|
-
valuePropName?: string;
|
|
116
|
-
changePropName?: string;
|
|
117
|
-
handlerSelecionados?: (ids: string[]) => void;
|
|
118
|
-
label?: string;
|
|
119
|
-
skipLabel?: boolean;
|
|
120
|
-
bordered?: boolean;
|
|
121
|
-
cols?: string;
|
|
122
|
-
labelContainerStyle?: object;
|
|
123
|
-
externalMessagesErrors?: string[];
|
|
124
|
-
idKey?: string;
|
|
125
|
-
descriptionKey?: string;
|
|
126
|
-
showClearButton?: boolean;
|
|
127
|
-
gridLayout?: string;
|
|
128
|
-
multiple?: boolean;
|
|
129
|
-
disabled?: boolean;
|
|
130
|
-
onBlur?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
131
|
-
handlerFieldValidate?: (name: string, value: string, validatorsArray: Validator[] | Validator) => void;
|
|
132
|
-
required?: boolean;
|
|
133
|
-
hint?: string | string[];
|
|
134
|
-
hintPosition?: 'below' | 'onLabelRight';
|
|
135
|
-
themePopover?: 'light' | 'dark';
|
|
136
|
-
popoverAlign?: 'right' | 'left';
|
|
137
|
-
tabId?: string | number;
|
|
138
|
-
}
|
|
139
|
-
export type PeriodChangeEvent = {
|
|
140
|
-
initial: string;
|
|
141
|
-
final: string;
|
|
142
|
-
};
|
|
143
|
-
type PeriodFieldChangeEvent = {
|
|
144
|
-
target: {
|
|
145
|
-
name: string;
|
|
146
|
-
value: {
|
|
147
|
-
[valueDate: string]: string;
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
export interface IFieldPeriodProps extends WithFieldProps {
|
|
152
|
-
data?: Data;
|
|
153
|
-
originalData?: Data;
|
|
154
|
-
nameDateInitial: string;
|
|
155
|
-
nameDateFinal: string;
|
|
156
|
-
handlerFieldChange?: (event: PeriodFieldChangeEvent) => PeriodFieldChangeEvent;
|
|
157
|
-
label?: string;
|
|
158
|
-
onBlur?: () => void;
|
|
159
|
-
validators?: PeriodValidator | PeriodValidator[];
|
|
160
|
-
fieldErrors?: {
|
|
161
|
-
[name: string]: string[];
|
|
162
|
-
};
|
|
163
|
-
externalMessagesErrors?: string[];
|
|
164
|
-
externalFieldErrors?: {
|
|
165
|
-
[name: string]: string[];
|
|
166
|
-
};
|
|
167
|
-
handlerFieldValidate?: (name: string, value: object, validatorsArray: PeriodValidator[] | PeriodValidator) => void;
|
|
168
|
-
onChange?: (event: PeriodChangeEvent) => PeriodChangeEvent;
|
|
169
|
-
gridLayout?: string;
|
|
170
|
-
hint?: string | string[];
|
|
171
|
-
hintPosition?: 'below' | 'onLabelRight';
|
|
172
|
-
themePopover?: 'light' | 'dark';
|
|
173
|
-
popoverAlign?: 'right' | 'left';
|
|
174
|
-
tabId?: string | number;
|
|
175
|
-
}
|
|
176
|
-
export interface FormContextProps {
|
|
177
|
-
skeletonize?: boolean;
|
|
178
|
-
handlerFieldChange: (event: OnFielChangeEvent) => void;
|
|
179
|
-
handlerFieldValidate: (name: string, value: string, validatorsArray: Validator[] | Validator) => void;
|
|
180
|
-
handlerStoreValidators: (fieldName: string, fieldValidates: Validator) => void;
|
|
181
|
-
handlerRemoveValidators: (fieldName: string) => void;
|
|
182
|
-
data: object;
|
|
183
|
-
originalData: object;
|
|
184
|
-
fieldErrors: object;
|
|
185
|
-
externalFieldErrors?: object;
|
|
186
|
-
isFormValid?: boolean;
|
|
187
|
-
handleValidationErrorsOnTab?: (props: PropsValidateTabErrors) => void;
|
|
188
|
-
}
|
|
189
|
-
export interface WithFieldProps {
|
|
190
|
-
name: string;
|
|
191
|
-
data?: Data;
|
|
192
|
-
handlerStoreValidators?: (name: string, validators: Validator | Validator[]) => void;
|
|
193
|
-
handlerRemoveValidators?: (name: string) => void;
|
|
194
|
-
validators?: Validator | Validator[] | PeriodValidator | PeriodValidator[];
|
|
195
|
-
customClass?: string;
|
|
196
|
-
handleValidationErrorsOnTab?: (props: PropsValidateTabErrors) => void;
|
|
197
|
-
component: ComponentType<any>;
|
|
198
|
-
}
|
|
199
|
-
export interface IWithFieldContext {
|
|
200
|
-
validatorFromComponent: Validator | Validator[] | undefined;
|
|
201
|
-
handlerSetValidatorFromComponent: (validator: Validator | Validator[]) => void;
|
|
202
|
-
}
|
|
203
|
-
export interface IWithFormSecurity {
|
|
204
|
-
onOpenChange?: (open: boolean) => void;
|
|
205
|
-
handlerClose?: () => void;
|
|
206
|
-
onClick?: MouseEventHandler;
|
|
207
|
-
children?: ReactNode;
|
|
208
|
-
}
|
|
209
|
-
export interface IFormSecurityContext {
|
|
210
|
-
onChangedData: (value: boolean) => void;
|
|
211
|
-
showQuestion: boolean;
|
|
212
|
-
onConfirmClick: () => void;
|
|
213
|
-
onUnconfirmClick: () => void;
|
|
214
|
-
setSecurityBeforeUnload: (value: boolean) => void;
|
|
215
|
-
securityBeforeUnload?: boolean;
|
|
216
|
-
}
|
|
217
|
-
export interface IEventParams {
|
|
218
|
-
name: string;
|
|
219
|
-
data?: object;
|
|
220
|
-
validators?: Validator | Validator[];
|
|
221
|
-
onBlur?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
222
|
-
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
223
|
-
onKeyDown?: (event: CustomKeyboardEvent) => void;
|
|
224
|
-
handlerFieldValidate?: (name: string, value: string, validatorsArray: Validator[] | Validator) => void;
|
|
225
|
-
handlerFieldChange?: (event: ChangeEvent<HTMLInputElement> | CustomKeyboardEvent) => void;
|
|
226
|
-
validatorFromComponent?: Validator | Validator[];
|
|
227
|
-
component?: ComponentType<any>;
|
|
228
|
-
}
|
|
229
|
-
export interface IGetErrorMessagesParams {
|
|
230
|
-
name: string;
|
|
231
|
-
fieldErrors?: {
|
|
232
|
-
[name: string]: string[];
|
|
233
|
-
};
|
|
234
|
-
externalFieldErrors?: {
|
|
235
|
-
[name: string]: string[];
|
|
236
|
-
};
|
|
237
|
-
externalMessagesErrors?: string[];
|
|
238
|
-
}
|
|
239
|
-
export type FieldErrors = {
|
|
240
|
-
[name: string]: string[];
|
|
241
|
-
};
|
|
242
|
-
export type FieldValidator = {
|
|
243
|
-
[name: string]: Validator | Validator[];
|
|
244
|
-
};
|
|
245
|
-
export {};
|
package/lib/form/withFieldHOC.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { require_compiler_runtime as e } from "../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import { FormContext as t, getValidatorsArray as n, withFieldContext as r } from "./helpers.js";
|
|
3
|
-
import { forwardRef as i, useEffect as a, useState as o } from "react";
|
|
4
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
5
|
-
//#region src/lib/form/withFieldHOC.tsx
|
|
6
|
-
var c = e(), l = (e) => {
|
|
7
|
-
let l = (t) => {
|
|
8
|
-
let i = (0, c.c)(19), { name: l, validators: u, handlerStoreValidators: d, handlerRemoveValidators: f } = t, [p, m] = o(void 0), h;
|
|
9
|
-
i[0] !== d || i[1] !== l || i[2] !== p || i[3] !== u ? (h = () => {
|
|
10
|
-
let e = n(u, p);
|
|
11
|
-
e && d && d(l, e);
|
|
12
|
-
}, i[0] = d, i[1] = l, i[2] = p, i[3] = u, i[4] = h) : h = i[4];
|
|
13
|
-
let g = h, _;
|
|
14
|
-
i[5] !== f || i[6] !== l || i[7] !== g || i[8] !== u ? (_ = () => (g(), () => {
|
|
15
|
-
u && f && f(l);
|
|
16
|
-
}), i[5] = f, i[6] = l, i[7] = g, i[8] = u, i[9] = _) : _ = i[9];
|
|
17
|
-
let v;
|
|
18
|
-
i[10] === Symbol.for("react.memo_cache_sentinel") ? (v = [], i[10] = v) : v = i[10], a(_, v);
|
|
19
|
-
let y;
|
|
20
|
-
i[11] === g ? y = i[12] : (y = () => {
|
|
21
|
-
g();
|
|
22
|
-
}, i[11] = g, i[12] = y);
|
|
23
|
-
let b;
|
|
24
|
-
i[13] === u ? b = i[14] : (b = [u], i[13] = u, i[14] = b), a(y, b);
|
|
25
|
-
let x;
|
|
26
|
-
i[15] === Symbol.for("react.memo_cache_sentinel") ? (x = (e) => {
|
|
27
|
-
m(e);
|
|
28
|
-
}, i[15] = x) : x = i[15];
|
|
29
|
-
let S;
|
|
30
|
-
if (i[16] !== t || i[17] !== p) {
|
|
31
|
-
let n = {
|
|
32
|
-
validatorFromComponent: p,
|
|
33
|
-
handlerSetValidatorFromComponent: x
|
|
34
|
-
};
|
|
35
|
-
S = s(r.Provider, {
|
|
36
|
-
value: n,
|
|
37
|
-
children: s(e, { ...t })
|
|
38
|
-
}), i[16] = t, i[17] = p, i[18] = S;
|
|
39
|
-
} else S = i[18];
|
|
40
|
-
return S;
|
|
41
|
-
};
|
|
42
|
-
function u(e, n) {
|
|
43
|
-
return /* @__PURE__ */ s(t.Consumer, { children: ({ handlerFieldChange: t, handlerFieldValidate: r, data: i, fieldErrors: a, externalFieldErrors: o, handlerStoreValidators: c, handlerRemoveValidators: u, skeletonize: d, handleValidationErrorsOnTab: f }) => /* @__PURE__ */ s(l, {
|
|
44
|
-
...e,
|
|
45
|
-
skeletonize: d,
|
|
46
|
-
handlerFieldChange: t,
|
|
47
|
-
handlerFieldValidate: r,
|
|
48
|
-
handlerStoreValidators: c,
|
|
49
|
-
handlerRemoveValidators: u,
|
|
50
|
-
data: i,
|
|
51
|
-
fieldErrors: a,
|
|
52
|
-
externalFieldErrors: o,
|
|
53
|
-
forwardedRef: n,
|
|
54
|
-
handleValidationErrorsOnTab: f
|
|
55
|
-
}) });
|
|
56
|
-
}
|
|
57
|
-
return i(u);
|
|
58
|
-
};
|
|
59
|
-
//#endregion
|
|
60
|
-
export { l as default };
|
|
61
|
-
|
|
62
|
-
//# sourceMappingURL=withFieldHOC.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withFieldHOC.js","names":[],"sources":["../../src/lib/form/withFieldHOC.tsx"],"sourcesContent":["import { ComponentType, forwardRef, Ref, useEffect, useState } from 'react';\nimport { FormContext, withFieldContext, getValidatorsArray } from './helpers';\nimport { IWithFieldContext, Validator, WithFieldProps } from './types';\n\nconst withFieldHOC = <ComponentProps extends WithFieldProps>(\n WrappedComponent: ComponentType<ComponentProps>,\n) => {\n const EnhancedComponent = (props: ComponentProps) => {\n const { name, validators, handlerStoreValidators, handlerRemoveValidators } = props;\n const [validatorFromComponent, setValidatorFromComponent] =\n useState<Validator | Validator[] | undefined>(undefined);\n\n const updateValidators = () => {\n const validatorsArray = getValidatorsArray(validators as Validator, validatorFromComponent);\n if (validatorsArray && handlerStoreValidators) handlerStoreValidators(name, validatorsArray);\n };\n\n useEffect(() => {\n updateValidators();\n\n return () => {\n if (validators && handlerRemoveValidators) handlerRemoveValidators(name);\n };\n }, []);\n\n useEffect(() => {\n updateValidators();\n }, [validators]);\n\n const contextValues: IWithFieldContext = {\n validatorFromComponent,\n handlerSetValidatorFromComponent: (validator: Validator | Validator[]) => {\n setValidatorFromComponent(validator);\n },\n };\n\n return (\n <withFieldContext.Provider value={contextValues}>\n <WrappedComponent {...props} />\n </withFieldContext.Provider>\n );\n };\n\n function forwardedRef(props: ComponentProps, ref: Ref<HTMLElement>) {\n return (\n <FormContext.Consumer>\n {({\n handlerFieldChange,\n handlerFieldValidate: handlerFieldValidate,\n data,\n fieldErrors,\n externalFieldErrors,\n handlerStoreValidators,\n handlerRemoveValidators,\n skeletonize,\n handleValidationErrorsOnTab,\n }) => (\n <EnhancedComponent\n {...props}\n skeletonize={skeletonize}\n handlerFieldChange={handlerFieldChange}\n handlerFieldValidate={handlerFieldValidate}\n handlerStoreValidators={handlerStoreValidators}\n handlerRemoveValidators={handlerRemoveValidators}\n data={data}\n fieldErrors={fieldErrors}\n externalFieldErrors={externalFieldErrors}\n forwardedRef={ref}\n handleValidationErrorsOnTab={handleValidationErrorsOnTab} />\n )}\n </FormContext.Consumer>\n );\n }\n return forwardRef(forwardedRef as any) as any;\n};\n\nexport default withFieldHOC;\n"],"mappings":";;;;;aAIM,KACJ,MACG;CACH,IAAM,KAAA,MAAA;EAAA,IAAA,KAAA,GAAA,EAAA,GAAA,GAAA,EACJ,EAAA,SAAA,eAAA,2BAAA,+BAA8E,GAC9E,CAAA,GAAA,KACE,EAA8C,KAAA,EAAU,EAAA;AAAA,EAAA,EAAA,OAAA,KAAA,EAAA,OAAA,KAAA,EAAA,OAAA,KAAA,EAAA,OAAA,KAEpD,UAAA;GACJ,IAAA,IAAwB,EAAmB,GAAyB,EAAuB;AAC3F,GAAI,KAAA,KAA2C,EAAuB,GAAM,EAAgB;;EAF9F,IAAA,IAAM;0DAKN,WACE,GAAkB,QAElB;AACE,GAAI,KAAA,KAAuC,EAAwB,EAAK;;;AAJ5E,uDAMG,IAAA,EAAE,EAAA,EAAA,MAAA,KAAA,IAAA,EAAA,KANL,EAAA,GAMG,EAAG;EAAA,IAAA;AAAA,EAAA,EAAA,QAAA,iBAEN,UAAA;AACE,MAAkB;;;AADpB,gBAEe,IAAA,EAAA,OAAZ,IAAA,CAAC,EAAW,EAAA,EAAA,MAAA,GAAA,EAAA,MAAA,IAFf,EAAA,GAEG,EAAa;EAAA,IAAA;AAAA,EAAA,EAAA,QAAA,OAAA,IAAA,4BAAA,IAId,KAAA,MAAA;AACE,KAA0B,EAAU;;;;GAHxC,IAAA,IAAyC;IAAA;IAAA,kCAEvC;IAGD;AAK6B,GAF5B,IAAA,EAAC,EAAA,UAAD;IAAA,OAAkC;IAAA,UAChC,EAAC,GAAD,EAAA,GAAsB,GAAS,CAAA;IACL,CAAA,EAAA,EAAA,MAAA,GAAA,EAAA,MAAA,GAAA,EAAA,MAAA;QAAA,KAAA,EAAA;AAAA,SAF5B;;CAMJ,SAAS,EAAa,GAAuB,GAAuB;AAClE,SACE,kBAAC,EAAY,UAAb,EAAA,WACI,EACA,uBACsB,yBACtB,SACA,gBACA,wBACA,2BACA,4BACA,gBACA,qCAEA,kBAAC,GAAD;GACE,GAAI;GACS;GACO;GACE;GACE;GACC;GACnB;GACO;GACQ;GACrB,cAAc;GACe;GAA+B,CAAA,EAE3C,CAAA;;AAG3B,QAAO,EAAW,EAAoB"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { IFormSecurityContext, IWithFormSecurity } from './types';
|
|
3
|
-
declare const FormSecurityContext: import('react').Context<IFormSecurityContext>;
|
|
4
|
-
declare const withFormSecurity: <ComponentProps extends IWithFormSecurity>(WrappedComponent: ComponentType<ComponentProps>) => (props: ComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export default withFormSecurity;
|
|
6
|
-
export { FormSecurityContext };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { createContext as e, useRef as t, useState as n } from "react";
|
|
2
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
-
//#region src/lib/form/withFormSecurity.tsx
|
|
4
|
-
var i = e({}), a = (e) => (a) => {
|
|
5
|
-
let { onOpenChange: o, handlerClose: s } = a, c = t(!1), l = t(!1), [u, d] = n(!1), f = () => {
|
|
6
|
-
c.current && l.current ? d(!0) : o ? o(!1) : s && s();
|
|
7
|
-
}, p = {
|
|
8
|
-
onChangedData: (e) => {
|
|
9
|
-
c.current = e;
|
|
10
|
-
},
|
|
11
|
-
showQuestion: u,
|
|
12
|
-
onConfirmClick: () => {
|
|
13
|
-
o && o(!1), s && s();
|
|
14
|
-
},
|
|
15
|
-
onUnconfirmClick: () => {
|
|
16
|
-
d(!1);
|
|
17
|
-
},
|
|
18
|
-
setSecurityBeforeUnload: (e) => {
|
|
19
|
-
l.current = e;
|
|
20
|
-
},
|
|
21
|
-
securityBeforeUnload: l.current
|
|
22
|
-
};
|
|
23
|
-
return /* @__PURE__ */ r(i.Provider, {
|
|
24
|
-
value: p,
|
|
25
|
-
children: /* @__PURE__ */ r(e, {
|
|
26
|
-
...a,
|
|
27
|
-
handlerClose: f
|
|
28
|
-
})
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
export { i as FormSecurityContext, a as default };
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=withFormSecurity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withFormSecurity.js","names":[],"sources":["../../src/lib/form/withFormSecurity.tsx"],"sourcesContent":["import { ComponentType, createContext, useRef, useState } from 'react';\nimport { IFormSecurityContext, IWithFormSecurity } from './types';\n\nconst FormSecurityContext = createContext({} as IFormSecurityContext);\n\nconst withFormSecurity = <ComponentProps extends IWithFormSecurity>(\n WrappedComponent: ComponentType<ComponentProps>,\n) => {\n const EnhancedComponent = (props: ComponentProps) => {\n const { onOpenChange, handlerClose } = props;\n const changedData = useRef(false);\n const securityBeforeUnload = useRef(false);\n const [showQuestion, setShowQuestion] = useState(false);\n\n const newHandlerClose = () => {\n if (changedData.current && securityBeforeUnload.current) {\n setShowQuestion(true);\n } else if (onOpenChange) onOpenChange(false);\n else if (handlerClose) handlerClose();\n };\n\n const onConfirmClick = () => {\n if (onOpenChange) onOpenChange(false);\n if (handlerClose) handlerClose();\n };\n\n const onUnconfirmClick = () => {\n setShowQuestion(false);\n };\n\n const onChangedData = (value: boolean) => {\n changedData.current = value;\n };\n\n const setSecurityBeforeUnload = (value: boolean) => {\n securityBeforeUnload.current = value;\n };\n\n const contextValues: IFormSecurityContext = {\n onChangedData,\n showQuestion,\n onConfirmClick,\n onUnconfirmClick,\n setSecurityBeforeUnload,\n securityBeforeUnload: securityBeforeUnload.current,\n };\n\n return (\n <FormSecurityContext.Provider value={contextValues}>\n <WrappedComponent\n {...props}\n handlerClose={newHandlerClose} />\n </FormSecurityContext.Provider>\n );\n };\n\n return EnhancedComponent;\n};\n\nexport default withFormSecurity;\nexport { FormSecurityContext };\n"],"mappings":";;;AAGA,IAAM,IAAsB,EAAc,EAAE,CAAyB,EAE/D,KACJ,OAE2B,MAA0B;CACnD,IAAM,EAAE,iBAAc,oBAAiB,GACjC,IAAc,EAAO,GAAM,EAC3B,IAAuB,EAAO,GAAM,EACpC,CAAC,GAAc,KAAmB,EAAS,GAAM,EAEjD,UAAwB;AAC5B,EAAI,EAAY,WAAW,EAAqB,UAC9C,EAAgB,GAAK,GACZ,IAAc,EAAa,GAAM,GACnC,KAAc,GAAc;IAoBjC,IAAsC;EAC1C,gBATqB,MAAmB;AACxC,KAAY,UAAU;;EAStB;EACA,sBApB2B;AAE3B,GADI,KAAc,EAAa,GAAM,EACjC,KAAc,GAAc;;EAmBhC,wBAhB6B;AAC7B,KAAgB,GAAM;;EAgBtB,0BAT+B,MAAmB;AAClD,KAAqB,UAAU;;EAS/B,sBAAsB,EAAqB;EAC5C;AAED,QACE,kBAAC,EAAoB,UAArB;EAA8B,OAAO;YACnC,kBAAC,GAAD;GACE,GAAI;GACJ,cAAc;GAAmB,CAAA;EACN,CAAA"}
|
package/lib/form2/helpers.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'react';
|
|
2
|
-
import { DeepPartial } from './types';
|
|
3
|
-
export declare const mergeRefs: <T>(...refs: (Ref<T> | undefined)[]) => (fieldElement: T) => void;
|
|
4
|
-
export declare const deepMergeValues: <T>(current: T, incoming: DeepPartial<T>) => T;
|
|
5
|
-
export declare const flattenValidators: (validators: Record<string, any>, prefix?: string) => Record<string, any>;
|
package/lib/form2/helpers.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { __toESM as e } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_lodash as t } from "../node_modules/lodash/lodash.js";
|
|
3
|
-
//#region src/lib/form2/helpers.ts
|
|
4
|
-
var n = /* @__PURE__ */ e(t(), 1), r = (...e) => (t) => {
|
|
5
|
-
e.forEach((e) => {
|
|
6
|
-
n.default.isFunction(e) ? e(t) : e && n.default.isObject(e) && (e.current = t);
|
|
7
|
-
});
|
|
8
|
-
}, i = (e, t) => n.default.mergeWith(n.default.cloneDeep(e), t, (e, t) => n.default.isPlainObject(e) && n.default.isPlainObject(t) ? void 0 : t), a = (e, t = "") => {
|
|
9
|
-
let n = {};
|
|
10
|
-
return Object.entries(e).forEach(([e, r]) => {
|
|
11
|
-
let i = t ? `${t}.${e}` : e;
|
|
12
|
-
if (Array.isArray(r)) n[i] = r;
|
|
13
|
-
else if (typeof r == "object" && r) {
|
|
14
|
-
let e = a(r, i);
|
|
15
|
-
Object.assign(n, e);
|
|
16
|
-
} else n[i] = [r];
|
|
17
|
-
}), n;
|
|
18
|
-
};
|
|
19
|
-
//#endregion
|
|
20
|
-
export { i as deepMergeValues, a as flattenValidators, r as mergeRefs };
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=helpers.js.map
|
package/lib/form2/helpers.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","names":[],"sources":["../../src/lib/form2/helpers.ts"],"sourcesContent":["import _ from 'lodash';\nimport { Ref, RefObject } from 'react';\nimport { DeepPartial } from './types';\n\nexport const mergeRefs = <T>(...refs: (Ref<T> | undefined)[]) => {\n return (fieldElement: T) => {\n refs.forEach((ref) => {\n if (_.isFunction(ref)) ref(fieldElement);\n else if (ref && _.isObject(ref)) (ref as RefObject<T | null>).current = fieldElement;\n });\n };\n};\n\nexport const deepMergeValues = <T>(current: T, incoming: DeepPartial<T>): T => {\n return _.mergeWith(_.cloneDeep(current), incoming, (objValue, srcValue) =>\n _.isPlainObject(objValue) && _.isPlainObject(srcValue) ? undefined : srcValue);\n};\n\nexport const flattenValidators = (validators: Record<string, any>, prefix = ''): Record<string, any> => {\n const flattened: Record<string, any> = {};\n Object.entries(validators).forEach(([key, value]) => {\n const fullPath = prefix ? `${prefix}.${key}` : key;\n if (Array.isArray(value)) {\n flattened[fullPath] = value;\n } else if (typeof value === 'object' && value !== null) {\n const nestedFlattened = flattenValidators(value, fullPath);\n Object.assign(flattened, nestedFlattened);\n } else {\n flattened[fullPath] = [value];\n }\n });\n\n return flattened;\n};\n"],"mappings":";;;mCAIa,KAAgB,GAAG,OACtB,MAAoB;AAC1B,GAAK,SAAS,MAAQ;AACpB,EAAI,EAAA,QAAE,WAAW,EAAI,GAAE,EAAI,EAAa,GAC/B,KAAO,EAAA,QAAE,SAAS,EAAI,KAAG,EAA4B,UAAU;GACxE;GAIO,KAAsB,GAAY,MACtC,EAAA,QAAE,UAAU,EAAA,QAAE,UAAU,EAAQ,EAAE,IAAW,GAAU,MAC5D,EAAA,QAAE,cAAc,EAAS,IAAI,EAAA,QAAE,cAAc,EAAS,GAAG,KAAA,IAAY,EAAS,EAGrE,KAAqB,GAAiC,IAAS,OAA4B;CACtG,IAAM,IAAiC,EAAE;AAazC,QAZA,OAAO,QAAQ,EAAW,CAAC,SAAS,CAAC,GAAK,OAAW;EACnD,IAAM,IAAW,IAAS,GAAG,EAAA,GAAU,MAAQ;AAC/C,MAAI,MAAM,QAAQ,EAAM,CACtB,GAAU,KAAY;WACb,OAAO,KAAU,YAAY,GAAgB;GACtD,IAAM,IAAkB,EAAkB,GAAO,EAAS;AAC1D,UAAO,OAAO,GAAW,EAAgB;QAEzC,GAAU,KAAY,CAAC,EAAM;GAE/B,EAEK"}
|
package/lib/form2/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import { default as useForm } from './useForm';
|
|
3
|
-
interface FormElementProps extends ComponentProps<'form'> {
|
|
4
|
-
}
|
|
5
|
-
declare const Form: import('react').ForwardRefExoticComponent<Omit<FormElementProps, "ref"> & import('react').RefAttributes<HTMLFormElement>>;
|
|
6
|
-
export default Form;
|
|
7
|
-
export { useForm };
|
package/lib/form2/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import e from "./useForm/index.js";
|
|
2
|
-
import { forwardRef as t } from "react";
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
//#region src/lib/form2/index.tsx
|
|
5
|
-
var r = t((e, t) => {
|
|
6
|
-
let { noValidate: r = !0, autoComplete: i = "off", translate: a = "no", ...o } = e;
|
|
7
|
-
return /* @__PURE__ */ n("form", {
|
|
8
|
-
ref: t,
|
|
9
|
-
className: "form-container",
|
|
10
|
-
translate: a,
|
|
11
|
-
noValidate: r,
|
|
12
|
-
autoComplete: i,
|
|
13
|
-
...o
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
r.displayName = "Form";
|
|
17
|
-
//#endregion
|
|
18
|
-
export { r as default, e as useForm };
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
package/lib/form2/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/lib/form2/index.tsx"],"sourcesContent":["import { ComponentProps, forwardRef } from 'react';\nimport useForm from './useForm';\n\ninterface FormElementProps extends ComponentProps<'form'> { }\n\nconst Form = forwardRef<HTMLFormElement, FormElementProps>((props, ref) => {\n const { noValidate = true, autoComplete = 'off', translate = 'no', ...rest } = props;\n\n return (\n <form\n ref={ref}\n className=\"form-container\"\n translate={translate}\n noValidate={noValidate}\n autoComplete={autoComplete}\n {...rest} />\n );\n});\n\nForm.displayName = 'Form';\n\nexport default Form;\nexport { useForm };\n"],"mappings":";;;;AAKA,IAAM,IAAO,GAA+C,GAAO,MAAQ;CACzE,IAAM,EAAE,gBAAa,IAAM,kBAAe,OAAO,eAAY,MAAM,GAAG,MAAS;AAE/E,QACE,kBAAC,QAAD;EACO;EACL,WAAU;EACC;EACC;EACE;EACd,GAAI;EAAQ,CAAA;EAEhB;AAEF,EAAK,cAAc"}
|
package/lib/form2/types.d.ts
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { ChangeEvent, ChangeEventHandler, FocusEvent, FocusEventHandler, FormEvent, Ref, RefCallback } from 'react';
|
|
2
|
-
export type DeepPartial<T> = {
|
|
3
|
-
[K in keyof T]?: T[K] extends Array<infer U> ? Array<DeepPartial<U>> : T[K] extends object ? DeepPartial<T[K]> : T[K];
|
|
4
|
-
};
|
|
5
|
-
export type NestedState<T, R = any> = {
|
|
6
|
-
[K in keyof T]?: [T[K]] extends [readonly any[]] ? R : T[K] extends object ? NestedState<T[K], R> : R;
|
|
7
|
-
};
|
|
8
|
-
export type FieldChanged<T> = NestedState<T, boolean>;
|
|
9
|
-
export type FieldTouched<T> = NestedState<T, boolean>;
|
|
10
|
-
export type FieldErrors<T> = NestedState<T, string[]>;
|
|
11
|
-
export type FieldFocusOptions = Partial<{
|
|
12
|
-
shouldSelect: boolean;
|
|
13
|
-
}>;
|
|
14
|
-
export type ValidatorFunction<T> = (value: T, data?: Record<string, any>) => string | null;
|
|
15
|
-
export type ValidatorsSchema = Record<string, ValidatorFunction<any>[]>;
|
|
16
|
-
export type ValidationMode = 'default' | 'onSubmit';
|
|
17
|
-
export type UseFormOptionsProps = Partial<{
|
|
18
|
-
validationMode: ValidationMode;
|
|
19
|
-
}>;
|
|
20
|
-
export type RegisterFunction = (name: string, externalRef?: Ref<HTMLInputElement>) => {
|
|
21
|
-
name: string;
|
|
22
|
-
value: any;
|
|
23
|
-
ref: (fieldElement: HTMLInputElement) => void;
|
|
24
|
-
onBlur: () => void;
|
|
25
|
-
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
26
|
-
};
|
|
27
|
-
export type RegisterOptions = {
|
|
28
|
-
onChange?: ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
29
|
-
onBlur?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined;
|
|
30
|
-
ref?: Ref<HTMLInputElement | HTMLTextAreaElement>;
|
|
31
|
-
};
|
|
32
|
-
export interface UseFormProps<T> {
|
|
33
|
-
initialValues: T;
|
|
34
|
-
validators?: ValidatorsSchema;
|
|
35
|
-
options?: UseFormOptionsProps;
|
|
36
|
-
}
|
|
37
|
-
export interface UseFormReturn<T> {
|
|
38
|
-
/**
|
|
39
|
-
* Reseta os campos especificados ou todo o formulário para seus valores iniciais.
|
|
40
|
-
* Também limpa estados de `errors`, `touched` e `changed`.
|
|
41
|
-
* @param fields - Lista de nomes de campos a serem resetados. Se não informado, todos os campos são resetados.
|
|
42
|
-
*/
|
|
43
|
-
reset: (fields?: string[]) => void;
|
|
44
|
-
/**
|
|
45
|
-
* Objeto que indica quais campos foram modificados em relação ao `initialValues`.
|
|
46
|
-
*/
|
|
47
|
-
changed: FieldChanged<T>;
|
|
48
|
-
/**
|
|
49
|
-
* Objeto com os valores atuais dos campos do formulário.
|
|
50
|
-
*/
|
|
51
|
-
values: Record<string, any>;
|
|
52
|
-
/**
|
|
53
|
-
* Objeto contendo arrays de mensagens de erro por campo.
|
|
54
|
-
*/
|
|
55
|
-
errors: FieldErrors<T>;
|
|
56
|
-
/**
|
|
57
|
-
* Objeto que indica se os campos foram tocados (interagidos via blur).
|
|
58
|
-
*/
|
|
59
|
-
touched: FieldTouched<T>;
|
|
60
|
-
/**
|
|
61
|
-
* Indica se o formulário está válido com base nos validadores definidos.
|
|
62
|
-
*/
|
|
63
|
-
isValid: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Indica se houve alguma alteração em qualquer campo do formulário em relação ao `initialValues`.
|
|
66
|
-
*/
|
|
67
|
-
formHasChange: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Registra um campo no formulário, integrando com `ref`, `value`, `onChange` e `onBlur`.
|
|
70
|
-
* @param name - Nome do campo.
|
|
71
|
-
* @param registerOptions - Opções de registro, incluindo referências e manipuladores de eventos.
|
|
72
|
-
*/
|
|
73
|
-
register: (name: string, registerOptions?: RegisterOptions) => {
|
|
74
|
-
name: string;
|
|
75
|
-
ref: RefCallback<HTMLInputElement | HTMLTextAreaElement>;
|
|
76
|
-
value: any;
|
|
77
|
-
onBlur: (event: FocusEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
78
|
-
onChange: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Limpa mensagens de erro de campos especificados, ou de todos os campos se nenhum for informado.
|
|
82
|
-
* @param fields - Lista de campos a limpar.
|
|
83
|
-
*/
|
|
84
|
-
cleanErrors: (fields?: string[]) => void;
|
|
85
|
-
/**
|
|
86
|
-
* Altera os valores dos campos do formulário com base em dados externos (ex: dados assíncronos).
|
|
87
|
-
* Preserva os dados atuais para campos não especificados.
|
|
88
|
-
* @param values - Novo objeto de dados com valores para atualizar no estado do formulário.
|
|
89
|
-
*/
|
|
90
|
-
changeValues: (values: DeepPartial<T>) => void;
|
|
91
|
-
/**
|
|
92
|
-
* Compara o valor atual de um campo com um valor fornecido, retornando true se forem iguais.
|
|
93
|
-
* @param name - Nome do campo.
|
|
94
|
-
* @param value - Valor a ser comparado.
|
|
95
|
-
*/
|
|
96
|
-
compareField: (name: string, value: any) => boolean;
|
|
97
|
-
/**
|
|
98
|
-
* Gera uma função de submit que é executada ao chamar a callback fornecida.
|
|
99
|
-
* @param callback - Função de submit executada em caso de formulário válido e retornando objeto de valores do formulário.
|
|
100
|
-
*/
|
|
101
|
-
handleSubmit: (callback: (data: T) => void) => (event: FormEvent) => void;
|
|
102
|
-
/**
|
|
103
|
-
* Retorna o valor atual de um campo específico.
|
|
104
|
-
* @param name - Nome do campo.
|
|
105
|
-
*/
|
|
106
|
-
getFieldValue: (name: string) => any;
|
|
107
|
-
/**
|
|
108
|
-
* Retorna as mensagens de erro associadas a um campo específico.
|
|
109
|
-
* @param name - Nome do campo.
|
|
110
|
-
*/
|
|
111
|
-
getFieldError: (name: string) => string[];
|
|
112
|
-
/**
|
|
113
|
-
* Define o foco programaticamente em um campo registrado.
|
|
114
|
-
* @param name - Nome do campo.
|
|
115
|
-
* @param options - Opções adicionais como selecionar o texto ao focar.
|
|
116
|
-
*/
|
|
117
|
-
setFieldFocus: (name: string, options?: FieldFocusOptions) => void;
|
|
118
|
-
/**
|
|
119
|
-
* Atualiza o valor de um campo específico e dispara validações quando apropriado.
|
|
120
|
-
* @param name - Nome do campo.
|
|
121
|
-
* @param value - Novo valor.
|
|
122
|
-
*/
|
|
123
|
-
setFieldValue: (name: string, value: any) => void;
|
|
124
|
-
/**
|
|
125
|
-
* Objeto original passado como `initialValues`. Utilizado para reset e comparações.
|
|
126
|
-
*/
|
|
127
|
-
initialValues: Record<string, any>;
|
|
128
|
-
/**
|
|
129
|
-
* Define erros manualmente em campos do formulário, útil para erros externos (ex: backend).
|
|
130
|
-
* @param errors - Objeto contendo mensagens de erro para campos.
|
|
131
|
-
*/
|
|
132
|
-
setExternalErrors: (errors: Record<string, string[]>) => void;
|
|
133
|
-
}
|