linear-react-components-ui 2.0.0-beta.1 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/@types/Align.d.ts +2 -0
- package/lib/@types/ButtonTypes.d.ts +1 -0
- package/lib/@types/ColorStyles.d.ts +2 -0
- package/lib/@types/DataCombo.d.ts +1 -0
- package/lib/@types/Icon.d.ts +2 -0
- package/lib/@types/LabelStyles.d.ts +1 -0
- package/lib/@types/Period.d.ts +4 -0
- package/lib/@types/PermissionAttr.d.ts +12 -0
- package/lib/@types/PointerEvents.d.ts +1 -0
- package/lib/@types/Position.d.ts +2 -0
- package/lib/@types/PositionAlert.d.ts +1 -0
- package/lib/@types/Size.d.ts +1 -0
- package/lib/@types/SizePixels.d.ts +1 -0
- package/lib/@types/StorageMock.d.ts +3 -0
- package/lib/_virtual/_commonjsHelpers.js +9 -0
- package/lib/_virtual/_commonjsHelpers.js.map +1 -0
- package/lib/_virtual/compiler-runtime.js +6 -0
- package/lib/_virtual/compiler-runtime.js.map +1 -0
- package/lib/_virtual/compiler-runtime2.js +5 -0
- package/lib/_virtual/compiler-runtime2.js.map +1 -0
- package/lib/_virtual/index.js +8 -0
- package/lib/_virtual/index.js.map +1 -0
- package/lib/_virtual/index2.js +5 -0
- package/lib/_virtual/index2.js.map +1 -0
- package/lib/_virtual/index3.js +5 -0
- package/lib/_virtual/index3.js.map +1 -0
- package/lib/_virtual/lodash.js +9 -0
- package/lib/_virtual/lodash.js.map +1 -0
- package/lib/_virtual/lodash2.js +5 -0
- package/lib/_virtual/lodash2.js.map +1 -0
- package/lib/_virtual/memoize.js +8 -0
- package/lib/_virtual/memoize.js.map +1 -0
- package/lib/_virtual/react-compiler-runtime.development.js +5 -0
- package/lib/_virtual/react-compiler-runtime.development.js.map +1 -0
- package/lib/_virtual/react-compiler-runtime.production.js +5 -0
- package/lib/_virtual/react-compiler-runtime.production.js.map +1 -0
- package/lib/_virtual/react-is.development.js +5 -0
- package/lib/_virtual/react-is.development.js.map +1 -0
- package/lib/_virtual/react-is.production.min.js +5 -0
- package/lib/_virtual/react-is.production.min.js.map +1 -0
- package/lib/alerts/AlertContainer.d.ts +12 -0
- package/lib/alerts/AlertContainer.js +71 -0
- package/lib/alerts/AlertContainer.js.map +1 -0
- package/lib/alerts/AlertProvider.d.ts +3 -0
- package/lib/alerts/AlertProvider.js +47 -0
- package/lib/alerts/AlertProvider.js.map +1 -0
- package/lib/alerts/BaseAlert.d.ts +3 -0
- package/lib/alerts/BaseAlert.js +22 -0
- package/lib/alerts/BaseAlert.js.map +1 -0
- package/lib/alerts/Message.d.ts +3 -0
- package/lib/alerts/Message.js +95 -0
- package/lib/alerts/Message.js.map +1 -0
- package/lib/alerts/helpers.d.ts +3 -0
- package/lib/alerts/helpers.js +6 -0
- package/lib/alerts/helpers.js.map +1 -0
- package/lib/alerts/index.d.ts +4 -0
- package/lib/alerts/index.js +8 -0
- package/lib/alerts/index.js.map +1 -0
- package/lib/alerts/types.d.ts +47 -0
- package/lib/alerts/withAlert.d.ts +4 -0
- package/lib/alerts/withAlert.js +15 -0
- package/lib/alerts/withAlert.js.map +1 -0
- package/lib/assets/styles/alerts.css +1 -0
- package/lib/assets/styles/avatar.css +1 -0
- package/lib/assets/styles/badge.css +1 -0
- package/lib/assets/styles/button.css +1 -0
- package/lib/assets/styles/calendar.css +1 -0
- package/lib/assets/styles/checkbox.css +1 -0
- package/lib/assets/styles/checkbox2.css +1 -0
- package/lib/assets/styles/colorpicker.css +1 -0
- package/lib/assets/styles/datepicker.css +1 -0
- package/lib/assets/styles/datepicker2.css +1 -0
- package/lib/assets/styles/dialog.css +1 -0
- package/lib/assets/styles/drawers.css +1 -0
- package/lib/assets/styles/dropdown.css +1 -0
- package/lib/assets/styles/error.css +1 -0
- package/lib/assets/styles/fieldset.css +1 -0
- package/lib/assets/styles/file.css +1 -0
- package/lib/assets/styles/filefield.css +1 -0
- package/lib/assets/styles/floatMenu.css +1 -0
- package/lib/assets/styles/form.css +1 -0
- package/lib/assets/styles/gridlayout.css +1 -0
- package/lib/assets/styles/hint.css +1 -0
- package/lib/assets/styles/icon.css +1 -0
- package/lib/assets/styles/input.css +1 -0
- package/lib/assets/styles/label.css +1 -0
- package/lib/assets/styles/labelMessages.css +1 -0
- package/lib/assets/styles/list.css +1 -0
- package/lib/assets/styles/multiSelect.css +1 -0
- package/lib/assets/styles/noPermission.css +1 -0
- package/lib/assets/styles/numberfield.css +1 -0
- package/lib/assets/styles/numbers.css +1 -0
- package/lib/assets/styles/panel.css +1 -0
- package/lib/assets/styles/periodpicker.css +1 -0
- package/lib/assets/styles/popover.css +1 -0
- package/lib/assets/styles/progress.css +1 -0
- package/lib/assets/styles/radio.css +1 -0
- package/lib/assets/styles/radiofield.css +1 -0
- package/lib/assets/styles/search.css +1 -0
- package/lib/assets/styles/select.css +1 -0
- package/lib/assets/styles/selectfield.css +1 -0
- package/lib/assets/styles/shortcuts.css +1 -0
- package/lib/assets/styles/sidenav.css +1 -0
- package/lib/assets/styles/skeleton.css +1 -0
- package/lib/assets/styles/slot.css +1 -0
- package/lib/assets/styles/spinner.css +1 -0
- package/lib/assets/styles/split.css +1 -0
- package/lib/assets/styles/table.css +1 -0
- package/lib/assets/styles/tabs.css +1 -0
- package/lib/assets/styles/textContent.css +1 -0
- package/lib/assets/styles/textfield.css +1 -0
- package/lib/assets/styles/toolbar.css +1 -0
- package/lib/assets/styles/tooltip.css +1 -0
- package/lib/assets/styles/treetable.css +1 -0
- package/lib/assets/styles/treeview.css +1 -0
- package/lib/assets/styles/uitour.css +1 -0
- package/lib/assets/styles/wizard.css +1 -0
- package/lib/avatar/index.d.ts +6 -0
- package/lib/avatar/index.js +57 -0
- package/lib/avatar/index.js.map +1 -0
- package/lib/avatar/types.d.ts +27 -0
- package/lib/badge/index.d.ts +3 -0
- package/lib/badge/index.js +30 -0
- package/lib/badge/index.js.map +1 -0
- package/lib/badge/types.d.ts +10 -0
- package/lib/buttons/ActivateButton.d.ts +3 -0
- package/lib/buttons/ActivateButton.js +12 -0
- package/lib/buttons/ActivateButton.js.map +1 -0
- package/lib/buttons/AddButton.d.ts +3 -0
- package/lib/buttons/AddButton.js +15 -0
- package/lib/buttons/AddButton.js.map +1 -0
- package/lib/buttons/Button.d.ts +6 -0
- package/lib/buttons/Button.js +20 -0
- package/lib/buttons/Button.js.map +1 -0
- package/lib/buttons/ButtonGroups.d.ts +6 -0
- package/lib/buttons/CancelButton.d.ts +3 -0
- package/lib/buttons/CancelButton.js +17 -0
- package/lib/buttons/CancelButton.js.map +1 -0
- package/lib/buttons/DangerButton.d.ts +3 -0
- package/lib/buttons/DangerButton.js +18 -0
- package/lib/buttons/DangerButton.js.map +1 -0
- package/lib/buttons/DefaultButton.d.ts +6 -0
- package/lib/buttons/DefaultButton.js +100 -0
- package/lib/buttons/DefaultButton.js.map +1 -0
- package/lib/buttons/DestroyButton.d.ts +3 -0
- package/lib/buttons/DestroyButton.js +19 -0
- package/lib/buttons/DestroyButton.js.map +1 -0
- package/lib/buttons/EditButton.d.ts +3 -0
- package/lib/buttons/EditButton.js +12 -0
- package/lib/buttons/EditButton.js.map +1 -0
- package/lib/buttons/InactivateButton.d.ts +3 -0
- package/lib/buttons/InactivateButton.js +12 -0
- package/lib/buttons/InactivateButton.js.map +1 -0
- package/lib/buttons/InfoButton.d.ts +3 -0
- package/lib/buttons/InfoButton.js +18 -0
- package/lib/buttons/InfoButton.js.map +1 -0
- package/lib/buttons/PrimaryButton.d.ts +3 -0
- package/lib/buttons/PrimaryButton.js +18 -0
- package/lib/buttons/PrimaryButton.js.map +1 -0
- package/lib/buttons/RestoreButton.d.ts +3 -0
- package/lib/buttons/RestoreButton.js +12 -0
- package/lib/buttons/RestoreButton.js.map +1 -0
- package/lib/buttons/SaveButton.d.ts +3 -0
- package/lib/buttons/SaveButton.js +17 -0
- package/lib/buttons/SaveButton.js.map +1 -0
- package/lib/buttons/SuccessButton.d.ts +3 -0
- package/lib/buttons/SuccessButton.js +18 -0
- package/lib/buttons/SuccessButton.js.map +1 -0
- package/lib/buttons/WarningButton.d.ts +3 -0
- package/lib/buttons/WarningButton.js +18 -0
- package/lib/buttons/WarningButton.js.map +1 -0
- package/lib/buttons/button_container/index.d.ts +10 -0
- package/lib/buttons/button_container/index.js +24 -0
- package/lib/buttons/button_container/index.js.map +1 -0
- package/lib/buttons/index.d.ts +17 -0
- package/lib/buttons/index.js +35 -0
- package/lib/buttons/index.js.map +1 -0
- package/lib/buttons/split_button/index.d.ts +3 -0
- package/lib/buttons/split_button/index.js +60 -0
- package/lib/buttons/split_button/index.js.map +1 -0
- package/lib/buttons/types.d.ts +46 -0
- package/lib/calendar/DangerCalendar.d.ts +3 -0
- package/lib/calendar/DangerCalendar.js +16 -0
- package/lib/calendar/DangerCalendar.js.map +1 -0
- package/lib/calendar/InfoCalendar.d.ts +3 -0
- package/lib/calendar/InfoCalendar.js +16 -0
- package/lib/calendar/InfoCalendar.js.map +1 -0
- package/lib/calendar/PrimaryCalendar.d.ts +3 -0
- package/lib/calendar/PrimaryCalendar.js +16 -0
- package/lib/calendar/PrimaryCalendar.js.map +1 -0
- package/lib/calendar/SuccessCalendar.d.ts +3 -0
- package/lib/calendar/SuccessCalendar.js +16 -0
- package/lib/calendar/SuccessCalendar.js.map +1 -0
- package/lib/calendar/WarningCalendar.d.ts +3 -0
- package/lib/calendar/WarningCalendar.js +16 -0
- package/lib/calendar/WarningCalendar.js.map +1 -0
- package/lib/calendar/base/helpers.d.ts +58 -0
- package/lib/calendar/base/helpers.js +44 -0
- package/lib/calendar/base/helpers.js.map +1 -0
- package/lib/calendar/base/index.d.ts +3 -0
- package/lib/calendar/base/index.js +170 -0
- package/lib/calendar/base/index.js.map +1 -0
- package/lib/calendar/index.d.ts +8 -0
- package/lib/calendar/index.js +15 -0
- package/lib/calendar/index.js.map +1 -0
- package/lib/calendar/types.d.ts +27 -0
- package/lib/checkbox/index.d.ts +8 -0
- package/lib/checkbox/index.js +101 -0
- package/lib/checkbox/index.js.map +1 -0
- package/lib/checkbox/types.d.ts +46 -0
- package/lib/dialog/Alert.d.ts +3 -0
- package/lib/dialog/Alert.js +23 -0
- package/lib/dialog/Alert.js.map +1 -0
- package/lib/dialog/Custom.d.ts +3 -0
- package/lib/dialog/Custom.js +47 -0
- package/lib/dialog/Custom.js.map +1 -0
- package/lib/dialog/Error.d.ts +3 -0
- package/lib/dialog/Error.js +23 -0
- package/lib/dialog/Error.js.map +1 -0
- package/lib/dialog/Information.d.ts +3 -0
- package/lib/dialog/Information.js +23 -0
- package/lib/dialog/Information.js.map +1 -0
- package/lib/dialog/Question.d.ts +3 -0
- package/lib/dialog/Question.js +48 -0
- package/lib/dialog/Question.js.map +1 -0
- package/lib/dialog/Warning.d.ts +3 -0
- package/lib/dialog/Warning.js +23 -0
- package/lib/dialog/Warning.js.map +1 -0
- package/lib/dialog/base/Content.d.ts +3 -0
- package/lib/dialog/base/Content.js +17 -0
- package/lib/dialog/base/Content.js.map +1 -0
- package/lib/dialog/base/Footer.d.ts +3 -0
- package/lib/dialog/base/Footer.js +11 -0
- package/lib/dialog/base/Footer.js.map +1 -0
- package/lib/dialog/base/Header.d.ts +3 -0
- package/lib/dialog/base/Header.js +41 -0
- package/lib/dialog/base/Header.js.map +1 -0
- package/lib/dialog/base/index.d.ts +13 -0
- package/lib/dialog/base/index.js +180 -0
- package/lib/dialog/base/index.js.map +1 -0
- package/lib/dialog/base/style.d.ts +7 -0
- package/lib/dialog/base/style.js +10 -0
- package/lib/dialog/base/style.js.map +1 -0
- package/lib/dialog/form/index.d.ts +4 -0
- package/lib/dialog/form/index.js +112 -0
- package/lib/dialog/form/index.js.map +1 -0
- package/lib/dialog/index.d.ts +9 -0
- package/lib/dialog/index.js +17 -0
- package/lib/dialog/index.js.map +1 -0
- package/lib/dialog/types.d.ts +113 -0
- package/lib/dialog/wizard/index.d.ts +8 -0
- package/lib/dialog/wizard/index.js +67 -0
- package/lib/dialog/wizard/index.js.map +1 -0
- package/lib/dialog/wizard/progressbar.d.ts +11 -0
- package/lib/dialog/wizard/progressbar.js +31 -0
- package/lib/dialog/wizard/progressbar.js.map +1 -0
- package/lib/dialog/wizard/step.d.ts +2 -0
- package/lib/dialog/wizard/step.js +19 -0
- package/lib/dialog/wizard/step.js.map +1 -0
- package/lib/dialog/wizard/useWizard.d.ts +2 -0
- package/lib/dialog/wizard/useWizard.js +46 -0
- package/lib/dialog/wizard/useWizard.js.map +1 -0
- package/lib/drawer/Content.d.ts +3 -0
- package/lib/drawer/Content.js +19 -0
- package/lib/drawer/Content.js.map +1 -0
- package/lib/drawer/Drawer.d.ts +3 -0
- package/lib/drawer/Drawer.js +77 -0
- package/lib/drawer/Drawer.js.map +1 -0
- package/lib/drawer/Header.d.ts +3 -0
- package/lib/drawer/Header.js +57 -0
- package/lib/drawer/Header.js.map +1 -0
- package/lib/drawer/helpers.d.ts +3 -0
- package/lib/drawer/helpers.js +6 -0
- package/lib/drawer/helpers.js.map +1 -0
- package/lib/drawer/index.d.ts +5 -0
- package/lib/drawer/index.js +12 -0
- package/lib/drawer/index.js.map +1 -0
- package/lib/drawer/types.d.ts +38 -0
- package/lib/dropdown/Popup.d.ts +3 -0
- package/lib/dropdown/Popup.js +52 -0
- package/lib/dropdown/Popup.js.map +1 -0
- package/lib/dropdown/helper.d.ts +2 -0
- package/lib/dropdown/index.d.ts +3 -0
- package/lib/dropdown/index.js +6 -0
- package/lib/dropdown/index.js.map +1 -0
- package/lib/dropdown/types.d.ts +45 -0
- package/lib/dropdown/withDropdown.d.ts +9 -0
- package/lib/dropdown/withDropdown.js +82 -0
- package/lib/dropdown/withDropdown.js.map +1 -0
- package/lib/fieldset/index.d.ts +3 -0
- package/lib/fieldset/index.js +71 -0
- package/lib/fieldset/index.js.map +1 -0
- package/lib/fieldset/types.d.ts +27 -0
- package/lib/form/Field.d.ts +2 -0
- package/lib/form/Field.js +117 -0
- package/lib/form/Field.js.map +1 -0
- package/lib/form/FieldArray.d.ts +2 -0
- package/lib/form/FieldArray.js +64 -0
- package/lib/form/FieldArray.js.map +1 -0
- package/lib/form/FieldNumber.d.ts +2 -0
- package/lib/form/FieldNumber.js +62 -0
- package/lib/form/FieldNumber.js.map +1 -0
- package/lib/form/FieldPeriod.d.ts +2 -0
- package/lib/form/FieldPeriod.js +93 -0
- package/lib/form/FieldPeriod.js.map +1 -0
- package/lib/form/helpers.d.ts +11 -0
- package/lib/form/helpers.js +28 -0
- package/lib/form/helpers.js.map +1 -0
- package/lib/form/index.d.ts +8 -0
- package/lib/form/index.js +166 -0
- package/lib/form/index.js.map +1 -0
- package/lib/form/types.d.ts +245 -0
- package/lib/form/withFieldHOC.d.ts +4 -0
- package/lib/form/withFieldHOC.js +64 -0
- package/lib/form/withFieldHOC.js.map +1 -0
- package/lib/form/withFormSecurity.d.ts +6 -0
- package/lib/form/withFormSecurity.js +31 -0
- package/lib/form/withFormSecurity.js.map +1 -0
- package/lib/form2/helpers.d.ts +5 -0
- package/lib/form2/helpers.js +24 -0
- package/lib/form2/helpers.js.map +1 -0
- package/lib/form2/index.d.ts +7 -0
- package/lib/form2/index.js +23 -0
- package/lib/form2/index.js.map +1 -0
- package/lib/form2/types.d.ts +133 -0
- package/lib/form2/useForm/index.d.ts +3 -0
- package/lib/form2/useForm/index.js +132 -0
- package/lib/form2/useForm/index.js.map +1 -0
- package/lib/gridlayout/GridCol.d.ts +3 -0
- package/lib/gridlayout/GridCol.js +28 -0
- package/lib/gridlayout/GridCol.js.map +1 -0
- package/lib/gridlayout/GridRow.d.ts +3 -0
- package/lib/gridlayout/GridRow.js +27 -0
- package/lib/gridlayout/GridRow.js.map +1 -0
- package/lib/gridlayout/index.d.ts +4 -0
- package/lib/gridlayout/index.js +7 -0
- package/lib/gridlayout/index.js.map +1 -0
- package/lib/gridlayout/types.d.ts +17 -0
- package/lib/hint/helpers.d.ts +1 -0
- package/lib/hint/helpers.js +13 -0
- package/lib/hint/helpers.js.map +1 -0
- package/lib/hint/index.d.ts +3 -0
- package/lib/hint/index.js +32 -0
- package/lib/hint/index.js.map +1 -0
- package/lib/hint/types.d.ts +11 -0
- package/lib/icons/helper.d.ts +667 -0
- package/lib/icons/helper.js +670 -0
- package/lib/icons/helper.js.map +1 -0
- package/lib/icons/index.d.ts +3 -0
- package/lib/icons/index.js +76 -0
- package/lib/icons/index.js.map +1 -0
- package/lib/icons/types.d.ts +42 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +26 -0
- package/lib/index.js.map +1 -0
- package/lib/inputs/base/InputTextBase.d.ts +3 -0
- package/lib/inputs/base/InputTextBase.js +188 -0
- package/lib/inputs/base/InputTextBase.js.map +1 -0
- package/lib/inputs/base/helpers.d.ts +10 -0
- package/lib/inputs/base/helpers.js +31 -0
- package/lib/inputs/base/helpers.js.map +1 -0
- package/lib/inputs/base/types.d.ts +88 -0
- package/lib/inputs/color/index.d.ts +3 -0
- package/lib/inputs/color/index.js +58 -0
- package/lib/inputs/color/index.js.map +1 -0
- package/lib/inputs/color/types.d.ts +16 -0
- package/lib/inputs/date/Dialog.d.ts +3 -0
- package/lib/inputs/date/Dialog.js +18 -0
- package/lib/inputs/date/Dialog.js.map +1 -0
- package/lib/inputs/date/Dropdown.d.ts +3 -0
- package/lib/inputs/date/Dropdown.js +20 -0
- package/lib/inputs/date/Dropdown.js.map +1 -0
- package/lib/inputs/date/helpers.d.ts +34 -0
- package/lib/inputs/date/helpers.js +52 -0
- package/lib/inputs/date/helpers.js.map +1 -0
- package/lib/inputs/date/index.d.ts +3 -0
- package/lib/inputs/date/index.js +135 -0
- package/lib/inputs/date/index.js.map +1 -0
- package/lib/inputs/date/types.d.ts +57 -0
- package/lib/inputs/errorMessage/index.d.ts +3 -0
- package/lib/inputs/errorMessage/index.js +26 -0
- package/lib/inputs/errorMessage/index.js.map +1 -0
- package/lib/inputs/file/DefaultFile.d.ts +3 -0
- package/lib/inputs/file/DefaultFile.js +69 -0
- package/lib/inputs/file/DefaultFile.js.map +1 -0
- package/lib/inputs/file/DragDropFile.d.ts +3 -0
- package/lib/inputs/file/DragDropFile.js +135 -0
- package/lib/inputs/file/DragDropFile.js.map +1 -0
- package/lib/inputs/file/File.d.ts +3 -0
- package/lib/inputs/file/File.js +30 -0
- package/lib/inputs/file/File.js.map +1 -0
- package/lib/inputs/file/FileButtonSettings.d.ts +3 -0
- package/lib/inputs/file/FileButtonSettings.js +25 -0
- package/lib/inputs/file/FileButtonSettings.js.map +1 -0
- package/lib/inputs/file/helpers.d.ts +2 -0
- package/lib/inputs/file/helpers.js +12 -0
- package/lib/inputs/file/helpers.js.map +1 -0
- package/lib/inputs/file/index.d.ts +5 -0
- package/lib/inputs/file/index.js +9 -0
- package/lib/inputs/file/index.js.map +1 -0
- package/lib/inputs/file/types.d.ts +49 -0
- package/lib/inputs/index.d.ts +14 -0
- package/lib/inputs/index.js +40 -0
- package/lib/inputs/index.js.map +1 -0
- package/lib/inputs/inputHOC.d.ts +4 -0
- package/lib/inputs/inputHOC.js +42 -0
- package/lib/inputs/inputHOC.js.map +1 -0
- package/lib/inputs/mask/BaseMask.d.ts +3 -0
- package/lib/inputs/mask/BaseMask.js +144 -0
- package/lib/inputs/mask/BaseMask.js.map +1 -0
- package/lib/inputs/mask/Cnpj.d.ts +6 -0
- package/lib/inputs/mask/Cnpj.js +47 -0
- package/lib/inputs/mask/Cnpj.js.map +1 -0
- package/lib/inputs/mask/Cpf.d.ts +6 -0
- package/lib/inputs/mask/Cpf.js +49 -0
- package/lib/inputs/mask/Cpf.js.map +1 -0
- package/lib/inputs/mask/Phone.d.ts +3 -0
- package/lib/inputs/mask/Phone.js +14 -0
- package/lib/inputs/mask/Phone.js.map +1 -0
- package/lib/inputs/mask/ZipCode.d.ts +3 -0
- package/lib/inputs/mask/ZipCode.js +12 -0
- package/lib/inputs/mask/ZipCode.js.map +1 -0
- package/lib/inputs/mask/helpers.d.ts +5 -0
- package/lib/inputs/mask/helpers.js +69 -0
- package/lib/inputs/mask/helpers.js.map +1 -0
- package/lib/inputs/mask/index.d.ts +7 -0
- package/lib/inputs/mask/index.js +13 -0
- package/lib/inputs/mask/index.js.map +1 -0
- package/lib/inputs/mask/types.d.ts +74 -0
- package/lib/inputs/multiSelect/ActionButtons.d.ts +3 -0
- package/lib/inputs/multiSelect/ActionButtons.js +39 -0
- package/lib/inputs/multiSelect/ActionButtons.js.map +1 -0
- package/lib/inputs/multiSelect/Dropdown.d.ts +3 -0
- package/lib/inputs/multiSelect/Dropdown.js +100 -0
- package/lib/inputs/multiSelect/Dropdown.js.map +1 -0
- package/lib/inputs/multiSelect/helper.d.ts +3 -0
- package/lib/inputs/multiSelect/helper.js +9 -0
- package/lib/inputs/multiSelect/helper.js.map +1 -0
- package/lib/inputs/multiSelect/index.d.ts +3 -0
- package/lib/inputs/multiSelect/index.js +196 -0
- package/lib/inputs/multiSelect/index.js.map +1 -0
- package/lib/inputs/multiSelect/types.d.ts +59 -0
- package/lib/inputs/number/Currency.d.ts +3 -0
- package/lib/inputs/number/Currency.js +84 -0
- package/lib/inputs/number/Currency.js.map +1 -0
- package/lib/inputs/number/Decimal.d.ts +3 -0
- package/lib/inputs/number/Decimal.js +82 -0
- package/lib/inputs/number/Decimal.js.map +1 -0
- package/lib/inputs/number/format_number.d.ts +3 -0
- package/lib/inputs/number/format_number.js +15 -0
- package/lib/inputs/number/format_number.js.map +1 -0
- package/lib/inputs/number/index.d.ts +6 -0
- package/lib/inputs/number/index.js +80 -0
- package/lib/inputs/number/index.js.map +1 -0
- package/lib/inputs/number/types.d.ts +37 -0
- package/lib/inputs/period/Dialog.d.ts +3 -0
- package/lib/inputs/period/Dialog.js +19 -0
- package/lib/inputs/period/Dialog.js.map +1 -0
- package/lib/inputs/period/Dropdown.d.ts +3 -0
- package/lib/inputs/period/Dropdown.js +19 -0
- package/lib/inputs/period/Dropdown.js.map +1 -0
- package/lib/inputs/period/PeriodList.d.ts +3 -0
- package/lib/inputs/period/PeriodList.js +44 -0
- package/lib/inputs/period/PeriodList.js.map +1 -0
- package/lib/inputs/period/helper.d.ts +11 -0
- package/lib/inputs/period/helper.js +32 -0
- package/lib/inputs/period/helper.js.map +1 -0
- package/lib/inputs/period/index.d.ts +3 -0
- package/lib/inputs/period/index.js +199 -0
- package/lib/inputs/period/index.js.map +1 -0
- package/lib/inputs/period/types.d.ts +72 -0
- package/lib/inputs/search/index.d.ts +3 -0
- package/lib/inputs/search/index.js +111 -0
- package/lib/inputs/search/index.js.map +1 -0
- package/lib/inputs/select/ActionButtons.d.ts +3 -0
- package/lib/inputs/select/ActionButtons.js +29 -0
- package/lib/inputs/select/ActionButtons.js.map +1 -0
- package/lib/inputs/select/Dropdown.d.ts +3 -0
- package/lib/inputs/select/Dropdown.js +71 -0
- package/lib/inputs/select/Dropdown.js.map +1 -0
- package/lib/inputs/select/helper.d.ts +11 -0
- package/lib/inputs/select/helper.js +48 -0
- package/lib/inputs/select/helper.js.map +1 -0
- package/lib/inputs/select/index.d.ts +3 -0
- package/lib/inputs/select/index.js +28 -0
- package/lib/inputs/select/index.js.map +1 -0
- package/lib/inputs/select/multiple/Selecteds.d.ts +3 -0
- package/lib/inputs/select/multiple/Selecteds.js +27 -0
- package/lib/inputs/select/multiple/Selecteds.js.map +1 -0
- package/lib/inputs/select/multiple/index.d.ts +3 -0
- package/lib/inputs/select/multiple/index.js +129 -0
- package/lib/inputs/select/multiple/index.js.map +1 -0
- package/lib/inputs/select/simple/index.d.ts +3 -0
- package/lib/inputs/select/simple/index.js +159 -0
- package/lib/inputs/select/simple/index.js.map +1 -0
- package/lib/inputs/select/types.d.ts +119 -0
- package/lib/inputs/text/index.d.ts +3 -0
- package/lib/inputs/text/index.js +12 -0
- package/lib/inputs/text/index.js.map +1 -0
- package/lib/inputs/text/types.d.ts +18 -0
- package/lib/inputs/textarea/index.d.ts +3 -0
- package/lib/inputs/textarea/index.js +17 -0
- package/lib/inputs/textarea/index.js.map +1 -0
- package/lib/inputs/textarea/types.d.ts +7 -0
- package/lib/inputs/types.d.ts +152 -0
- package/lib/inputs2/checkboxfield/base.d.ts +27 -0
- package/lib/inputs2/checkboxfield/base.js +100 -0
- package/lib/inputs2/checkboxfield/base.js.map +1 -0
- package/lib/inputs2/checkboxfield/index.d.ts +11 -0
- package/lib/inputs2/checkboxfield/index.js +47 -0
- package/lib/inputs2/checkboxfield/index.js.map +1 -0
- package/lib/inputs2/colorfield/index.d.ts +8 -0
- package/lib/inputs2/colorfield/index.js +89 -0
- package/lib/inputs2/colorfield/index.js.map +1 -0
- package/lib/inputs2/date/base/constants.d.ts +4 -0
- package/lib/inputs2/date/base/constants.js +39 -0
- package/lib/inputs2/date/base/constants.js.map +1 -0
- package/lib/inputs2/date/base/index.d.ts +6 -0
- package/lib/inputs2/date/base/index.js +134 -0
- package/lib/inputs2/date/base/index.js.map +1 -0
- package/lib/inputs2/date/datefield/base.d.ts +3 -0
- package/lib/inputs2/date/datefield/base.js +193 -0
- package/lib/inputs2/date/datefield/base.js.map +1 -0
- package/lib/inputs2/date/datefield/calendarbox.d.ts +6 -0
- package/lib/inputs2/date/datefield/calendarbox.js +74 -0
- package/lib/inputs2/date/datefield/calendarbox.js.map +1 -0
- package/lib/inputs2/date/datefield/context.d.ts +4 -0
- package/lib/inputs2/date/datefield/context.js +12 -0
- package/lib/inputs2/date/datefield/context.js.map +1 -0
- package/lib/inputs2/date/datefield/index.d.ts +5 -0
- package/lib/inputs2/date/datefield/index.js +47 -0
- package/lib/inputs2/date/datefield/index.js.map +1 -0
- package/lib/inputs2/date/datefield/triggers.d.ts +8 -0
- package/lib/inputs2/date/datefield/triggers.js +30 -0
- package/lib/inputs2/date/datefield/triggers.js.map +1 -0
- package/lib/inputs2/date/datefield/types.d.ts +63 -0
- package/lib/inputs2/date/dateperiodfield/base.d.ts +3 -0
- package/lib/inputs2/date/dateperiodfield/base.js +511 -0
- package/lib/inputs2/date/dateperiodfield/base.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +6 -0
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +94 -0
- package/lib/inputs2/date/dateperiodfield/calendarbox.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/context.d.ts +4 -0
- package/lib/inputs2/date/dateperiodfield/context.js +12 -0
- package/lib/inputs2/date/dateperiodfield/context.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/index.d.ts +5 -0
- package/lib/inputs2/date/dateperiodfield/index.js +47 -0
- package/lib/inputs2/date/dateperiodfield/index.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/triggers.d.ts +5 -0
- package/lib/inputs2/date/dateperiodfield/triggers.js +61 -0
- package/lib/inputs2/date/dateperiodfield/triggers.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/types.d.ts +101 -0
- package/lib/inputs2/date/helpers.d.ts +10 -0
- package/lib/inputs2/date/helpers.js +42 -0
- package/lib/inputs2/date/helpers.js.map +1 -0
- package/lib/inputs2/date/types.d.ts +59 -0
- package/lib/inputs2/date/types.js +5 -0
- package/lib/inputs2/date/types.js.map +1 -0
- package/lib/inputs2/filefield/index.d.ts +11 -0
- package/lib/inputs2/filefield/index.js +120 -0
- package/lib/inputs2/filefield/index.js.map +1 -0
- package/lib/inputs2/index.d.ts +17 -0
- package/lib/inputs2/index.js +36 -0
- package/lib/inputs2/index.js.map +1 -0
- package/lib/inputs2/mask/Cnpj.d.ts +9 -0
- package/lib/inputs2/mask/Cnpj.js +112 -0
- package/lib/inputs2/mask/Cnpj.js.map +1 -0
- package/lib/inputs2/mask/Cpf.d.ts +9 -0
- package/lib/inputs2/mask/Cpf.js +94 -0
- package/lib/inputs2/mask/Cpf.js.map +1 -0
- package/lib/inputs2/mask/Phone.d.ts +8 -0
- package/lib/inputs2/mask/Phone.js +23 -0
- package/lib/inputs2/mask/Phone.js.map +1 -0
- package/lib/inputs2/mask/ZipCode.d.ts +7 -0
- package/lib/inputs2/mask/ZipCode.js +22 -0
- package/lib/inputs2/mask/ZipCode.js.map +1 -0
- package/lib/inputs2/mask/helpers.d.ts +2 -0
- package/lib/inputs2/mask/helpers.js +34 -0
- package/lib/inputs2/mask/helpers.js.map +1 -0
- package/lib/inputs2/mask/index.d.ts +6 -0
- package/lib/inputs2/mask/index.js +113 -0
- package/lib/inputs2/mask/index.js.map +1 -0
- package/lib/inputs2/mask/types.d.ts +16 -0
- package/lib/inputs2/numberfield/currency.d.ts +4 -0
- package/lib/inputs2/numberfield/currency.js +129 -0
- package/lib/inputs2/numberfield/currency.js.map +1 -0
- package/lib/inputs2/numberfield/decimal.d.ts +4 -0
- package/lib/inputs2/numberfield/decimal.js +122 -0
- package/lib/inputs2/numberfield/decimal.js.map +1 -0
- package/lib/inputs2/numberfield/helpers.d.ts +28 -0
- package/lib/inputs2/numberfield/helpers.js +19 -0
- package/lib/inputs2/numberfield/helpers.js.map +1 -0
- package/lib/inputs2/numberfield/index.d.ts +8 -0
- package/lib/inputs2/numberfield/index.js +118 -0
- package/lib/inputs2/numberfield/index.js.map +1 -0
- package/lib/inputs2/numberfield/types.d.ts +26 -0
- package/lib/inputs2/radiofield/base.d.ts +3 -0
- package/lib/inputs2/radiofield/base.js +111 -0
- package/lib/inputs2/radiofield/base.js.map +1 -0
- package/lib/inputs2/radiofield/index.d.ts +5 -0
- package/lib/inputs2/radiofield/index.js +47 -0
- package/lib/inputs2/radiofield/index.js.map +1 -0
- package/lib/inputs2/radiofield/types.d.ts +34 -0
- package/lib/inputs2/selectfield/base.d.ts +3 -0
- package/lib/inputs2/selectfield/base.js +412 -0
- package/lib/inputs2/selectfield/base.js.map +1 -0
- package/lib/inputs2/selectfield/context.d.ts +38 -0
- package/lib/inputs2/selectfield/context.js +12 -0
- package/lib/inputs2/selectfield/context.js.map +1 -0
- package/lib/inputs2/selectfield/helpers.d.ts +5 -0
- package/lib/inputs2/selectfield/helpers.js +17 -0
- package/lib/inputs2/selectfield/helpers.js.map +1 -0
- package/lib/inputs2/selectfield/index.d.ts +9 -0
- package/lib/inputs2/selectfield/index.js +57 -0
- package/lib/inputs2/selectfield/index.js.map +1 -0
- package/lib/inputs2/selectfield/item.d.ts +11 -0
- package/lib/inputs2/selectfield/item.js +57 -0
- package/lib/inputs2/selectfield/item.js.map +1 -0
- package/lib/inputs2/selectfield/listbox.d.ts +7 -0
- package/lib/inputs2/selectfield/listbox.js +73 -0
- package/lib/inputs2/selectfield/listbox.js.map +1 -0
- package/lib/inputs2/selectfield/options.d.ts +8 -0
- package/lib/inputs2/selectfield/options.js +20 -0
- package/lib/inputs2/selectfield/options.js.map +1 -0
- package/lib/inputs2/selectfield/search.d.ts +6 -0
- package/lib/inputs2/selectfield/search.js +58 -0
- package/lib/inputs2/selectfield/search.js.map +1 -0
- package/lib/inputs2/selectfield/selections.d.ts +9 -0
- package/lib/inputs2/selectfield/selections.js +66 -0
- package/lib/inputs2/selectfield/selections.js.map +1 -0
- package/lib/inputs2/selectfield/simple.d.ts +9 -0
- package/lib/inputs2/selectfield/simple.js +24 -0
- package/lib/inputs2/selectfield/simple.js.map +1 -0
- package/lib/inputs2/selectfield/triggers.d.ts +8 -0
- package/lib/inputs2/selectfield/triggers.js +82 -0
- package/lib/inputs2/selectfield/triggers.js.map +1 -0
- package/lib/inputs2/selectfield/types.d.ts +55 -0
- package/lib/inputs2/selectfield/types.js +6 -0
- package/lib/inputs2/selectfield/types.js.map +1 -0
- package/lib/inputs2/slot/index.d.ts +17 -0
- package/lib/inputs2/slot/index.js +50 -0
- package/lib/inputs2/slot/index.js.map +1 -0
- package/lib/inputs2/textareafield/base.d.ts +23 -0
- package/lib/inputs2/textareafield/base.js +137 -0
- package/lib/inputs2/textareafield/base.js.map +1 -0
- package/lib/inputs2/textareafield/index.d.ts +12 -0
- package/lib/inputs2/textareafield/index.js +51 -0
- package/lib/inputs2/textareafield/index.js.map +1 -0
- package/lib/inputs2/textfield/base.d.ts +23 -0
- package/lib/inputs2/textfield/base.js +107 -0
- package/lib/inputs2/textfield/base.js.map +1 -0
- package/lib/inputs2/textfield/index.d.ts +12 -0
- package/lib/inputs2/textfield/index.js +51 -0
- package/lib/inputs2/textfield/index.js.map +1 -0
- package/lib/internals/colorStyles.d.ts +8 -0
- package/lib/internals/colorStyles.js +11 -0
- package/lib/internals/colorStyles.js.map +1 -0
- package/lib/internals/constants.d.ts +12 -0
- package/lib/internals/constants.js +15 -0
- package/lib/internals/constants.js.map +1 -0
- package/lib/internals/types.d.ts +7 -0
- package/lib/labelMessages/index.d.ts +3 -0
- package/lib/labelMessages/index.js +55 -0
- package/lib/labelMessages/index.js.map +1 -0
- package/lib/labelMessages/types.d.ts +16 -0
- package/lib/labels/DangerLabel.d.ts +3 -0
- package/lib/labels/DangerLabel.js +16 -0
- package/lib/labels/DangerLabel.js.map +1 -0
- package/lib/labels/DefaultLabel.d.ts +3 -0
- package/lib/labels/DefaultLabel.js +63 -0
- package/lib/labels/DefaultLabel.js.map +1 -0
- package/lib/labels/InfoLabel.d.ts +3 -0
- package/lib/labels/InfoLabel.js +16 -0
- package/lib/labels/InfoLabel.js.map +1 -0
- package/lib/labels/PrimaryLabel.d.ts +3 -0
- package/lib/labels/PrimaryLabel.js +16 -0
- package/lib/labels/PrimaryLabel.js.map +1 -0
- package/lib/labels/SuccessLabel.d.ts +3 -0
- package/lib/labels/SuccessLabel.js +16 -0
- package/lib/labels/SuccessLabel.js.map +1 -0
- package/lib/labels/WarningLabel.d.ts +3 -0
- package/lib/labels/WarningLabel.js +16 -0
- package/lib/labels/WarningLabel.js.map +1 -0
- package/lib/labels/index.d.ts +9 -0
- package/lib/labels/index.js +19 -0
- package/lib/labels/index.js.map +1 -0
- package/lib/labels/label_container/index.d.ts +10 -0
- package/lib/labels/label_container/index.js +19 -0
- package/lib/labels/label_container/index.js.map +1 -0
- package/lib/labels/types.d.ts +19 -0
- package/lib/list/Header.d.ts +3 -0
- package/lib/list/Header.js +21 -0
- package/lib/list/Header.js.map +1 -0
- package/lib/list/Item.d.ts +3 -0
- package/lib/list/Item.js +151 -0
- package/lib/list/Item.js.map +1 -0
- package/lib/list/Separator.d.ts +2 -0
- package/lib/list/Separator.js +11 -0
- package/lib/list/Separator.js.map +1 -0
- package/lib/list/helpers.d.ts +8 -0
- package/lib/list/helpers.js +9 -0
- package/lib/list/helpers.js.map +1 -0
- package/lib/list/index.d.ts +7 -0
- package/lib/list/index.js +106 -0
- package/lib/list/index.js.map +1 -0
- package/lib/list/types.d.ts +66 -0
- package/lib/menus/float/MenuItem.d.ts +3 -0
- package/lib/menus/float/MenuItem.js +56 -0
- package/lib/menus/float/MenuItem.js.map +1 -0
- package/lib/menus/float/SubMenuContainer.d.ts +29 -0
- package/lib/menus/float/SubMenuContainer.js +78 -0
- package/lib/menus/float/SubMenuContainer.js.map +1 -0
- package/lib/menus/float/helpers.d.ts +3 -0
- package/lib/menus/float/helpers.js +6 -0
- package/lib/menus/float/helpers.js.map +1 -0
- package/lib/menus/float/index.d.ts +6 -0
- package/lib/menus/float/index.js +45 -0
- package/lib/menus/float/index.js.map +1 -0
- package/lib/menus/float/types.d.ts +26 -0
- package/lib/menus/index.d.ts +2 -0
- package/lib/menus/index.js +5 -0
- package/lib/menus/index.js.map +1 -0
- package/lib/menus/sidenav/ExpandMenu.d.ts +3 -0
- package/lib/menus/sidenav/ExpandMenu.js +20 -0
- package/lib/menus/sidenav/ExpandMenu.js.map +1 -0
- package/lib/menus/sidenav/MenuLink.d.ts +3 -0
- package/lib/menus/sidenav/MenuLink.js +32 -0
- package/lib/menus/sidenav/MenuLink.js.map +1 -0
- package/lib/menus/sidenav/NavMenuGroup.d.ts +3 -0
- package/lib/menus/sidenav/NavMenuGroup.js +23 -0
- package/lib/menus/sidenav/NavMenuGroup.js.map +1 -0
- package/lib/menus/sidenav/NavMenuItem.d.ts +3 -0
- package/lib/menus/sidenav/NavMenuItem.js +141 -0
- package/lib/menus/sidenav/NavMenuItem.js.map +1 -0
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +3 -0
- package/lib/menus/sidenav/NavSubMenuItem.js +40 -0
- package/lib/menus/sidenav/NavSubMenuItem.js.map +1 -0
- package/lib/menus/sidenav/helpers.d.ts +5 -0
- package/lib/menus/sidenav/helpers.js +11 -0
- package/lib/menus/sidenav/helpers.js.map +1 -0
- package/lib/menus/sidenav/index.d.ts +8 -0
- package/lib/menus/sidenav/index.js +152 -0
- package/lib/menus/sidenav/index.js.map +1 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +3 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +24 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js.map +1 -0
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +3 -0
- package/lib/menus/sidenav/popup_menu_search/index.js +57 -0
- package/lib/menus/sidenav/popup_menu_search/index.js.map +1 -0
- package/lib/menus/sidenav/types.d.ts +85 -0
- package/lib/noPermission/index.d.ts +2 -0
- package/lib/noPermission/index.js +17 -0
- package/lib/noPermission/index.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +35 -0
- package/lib/node_modules/imask/esm/controls/html-contenteditable-mask-element.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/html-input-mask-element.js +32 -0
- package/lib/node_modules/imask/esm/controls/html-input-mask-element.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/html-mask-element.js +49 -0
- package/lib/node_modules/imask/esm/controls/html-mask-element.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/input-history.js +31 -0
- package/lib/node_modules/imask/esm/controls/input-history.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/input.js +223 -0
- package/lib/node_modules/imask/esm/controls/input.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/mask-element.js +44 -0
- package/lib/node_modules/imask/esm/controls/mask-element.js.map +1 -0
- package/lib/node_modules/imask/esm/core/action-details.js +52 -0
- package/lib/node_modules/imask/esm/core/action-details.js.map +1 -0
- package/lib/node_modules/imask/esm/core/change-details.js +37 -0
- package/lib/node_modules/imask/esm/core/change-details.js.map +1 -0
- package/lib/node_modules/imask/esm/core/continuous-tail-details.js +43 -0
- package/lib/node_modules/imask/esm/core/continuous-tail-details.js.map +1 -0
- package/lib/node_modules/imask/esm/core/holder.js +7 -0
- package/lib/node_modules/imask/esm/core/holder.js.map +1 -0
- package/lib/node_modules/imask/esm/core/utils.js +68 -0
- package/lib/node_modules/imask/esm/core/utils.js.map +1 -0
- package/lib/node_modules/imask/esm/index.js +51 -0
- package/lib/node_modules/imask/esm/index.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/base.js +253 -0
- package/lib/node_modules/imask/esm/masked/base.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/date.js +118 -0
- package/lib/node_modules/imask/esm/masked/date.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/dynamic.js +223 -0
- package/lib/node_modules/imask/esm/masked/dynamic.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/enum.js +70 -0
- package/lib/node_modules/imask/esm/masked/enum.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/factory.js +47 -0
- package/lib/node_modules/imask/esm/masked/factory.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/function.js +24 -0
- package/lib/node_modules/imask/esm/masked/function.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/number.js +213 -0
- package/lib/node_modules/imask/esm/masked/number.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +104 -0
- package/lib/node_modules/imask/esm/masked/pattern/chunk-tail-details.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern/cursor.js +101 -0
- package/lib/node_modules/imask/esm/masked/pattern/cursor.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern/fixed-definition.js +103 -0
- package/lib/node_modules/imask/esm/masked/pattern/fixed-definition.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern/input-definition.js +134 -0
- package/lib/node_modules/imask/esm/masked/pattern/input-definition.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern.js +323 -0
- package/lib/node_modules/imask/esm/masked/pattern.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pipe.js +24 -0
- package/lib/node_modules/imask/esm/masked/pipe.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/range.js +79 -0
- package/lib/node_modules/imask/esm/masked/range.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/regexp.js +22 -0
- package/lib/node_modules/imask/esm/masked/regexp.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/repeat.js +105 -0
- package/lib/node_modules/imask/esm/masked/repeat.js.map +1 -0
- package/lib/node_modules/lodash/_Hash.js +23 -0
- package/lib/node_modules/lodash/_Hash.js.map +1 -0
- package/lib/node_modules/lodash/_ListCache.js +23 -0
- package/lib/node_modules/lodash/_ListCache.js.map +1 -0
- package/lib/node_modules/lodash/_Map.js +13 -0
- package/lib/node_modules/lodash/_Map.js.map +1 -0
- package/lib/node_modules/lodash/_MapCache.js +23 -0
- package/lib/node_modules/lodash/_MapCache.js.map +1 -0
- package/lib/node_modules/lodash/_Symbol.js +12 -0
- package/lib/node_modules/lodash/_Symbol.js.map +1 -0
- package/lib/node_modules/lodash/_assocIndexOf.js +18 -0
- package/lib/node_modules/lodash/_assocIndexOf.js.map +1 -0
- package/lib/node_modules/lodash/_baseGetTag.js +17 -0
- package/lib/node_modules/lodash/_baseGetTag.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsNative.js +23 -0
- package/lib/node_modules/lodash/_baseIsNative.js.map +1 -0
- package/lib/node_modules/lodash/_coreJsData.js +12 -0
- package/lib/node_modules/lodash/_coreJsData.js.map +1 -0
- package/lib/node_modules/lodash/_freeGlobal.js +12 -0
- package/lib/node_modules/lodash/_freeGlobal.js.map +1 -0
- package/lib/node_modules/lodash/_getMapData.js +16 -0
- package/lib/node_modules/lodash/_getMapData.js.map +1 -0
- package/lib/node_modules/lodash/_getNative.js +17 -0
- package/lib/node_modules/lodash/_getNative.js.map +1 -0
- package/lib/node_modules/lodash/_getRawTag.js +22 -0
- package/lib/node_modules/lodash/_getRawTag.js.map +1 -0
- package/lib/node_modules/lodash/_getValue.js +13 -0
- package/lib/node_modules/lodash/_getValue.js.map +1 -0
- package/lib/node_modules/lodash/_hashClear.js +15 -0
- package/lib/node_modules/lodash/_hashClear.js.map +1 -0
- package/lib/node_modules/lodash/_hashDelete.js +14 -0
- package/lib/node_modules/lodash/_hashDelete.js.map +1 -0
- package/lib/node_modules/lodash/_hashGet.js +20 -0
- package/lib/node_modules/lodash/_hashGet.js.map +1 -0
- package/lib/node_modules/lodash/_hashHas.js +16 -0
- package/lib/node_modules/lodash/_hashHas.js.map +1 -0
- package/lib/node_modules/lodash/_hashSet.js +16 -0
- package/lib/node_modules/lodash/_hashSet.js.map +1 -0
- package/lib/node_modules/lodash/_isKeyable.js +14 -0
- package/lib/node_modules/lodash/_isKeyable.js.map +1 -0
- package/lib/node_modules/lodash/_isMasked.js +18 -0
- package/lib/node_modules/lodash/_isMasked.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheClear.js +13 -0
- package/lib/node_modules/lodash/_listCacheClear.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheDelete.js +19 -0
- package/lib/node_modules/lodash/_listCacheDelete.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheGet.js +16 -0
- package/lib/node_modules/lodash/_listCacheGet.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheHas.js +15 -0
- package/lib/node_modules/lodash/_listCacheHas.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheSet.js +16 -0
- package/lib/node_modules/lodash/_listCacheSet.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheClear.js +21 -0
- package/lib/node_modules/lodash/_mapCacheClear.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheDelete.js +16 -0
- package/lib/node_modules/lodash/_mapCacheDelete.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheGet.js +15 -0
- package/lib/node_modules/lodash/_mapCacheGet.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheHas.js +15 -0
- package/lib/node_modules/lodash/_mapCacheHas.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheSet.js +16 -0
- package/lib/node_modules/lodash/_mapCacheSet.js.map +1 -0
- package/lib/node_modules/lodash/_nativeCreate.js +12 -0
- package/lib/node_modules/lodash/_nativeCreate.js.map +1 -0
- package/lib/node_modules/lodash/_objectToString.js +14 -0
- package/lib/node_modules/lodash/_objectToString.js.map +1 -0
- package/lib/node_modules/lodash/_root.js +12 -0
- package/lib/node_modules/lodash/_root.js.map +1 -0
- package/lib/node_modules/lodash/_toSource.js +24 -0
- package/lib/node_modules/lodash/_toSource.js.map +1 -0
- package/lib/node_modules/lodash/eq.js +13 -0
- package/lib/node_modules/lodash/eq.js.map +1 -0
- package/lib/node_modules/lodash/isFunction.js +19 -0
- package/lib/node_modules/lodash/isFunction.js.map +1 -0
- package/lib/node_modules/lodash/isObject.js +14 -0
- package/lib/node_modules/lodash/isObject.js.map +1 -0
- package/lib/node_modules/lodash/lodash.js +3678 -0
- package/lib/node_modules/lodash/lodash.js.map +1 -0
- package/lib/node_modules/lodash/memoize.js +24 -0
- package/lib/node_modules/lodash/memoize.js.map +1 -0
- package/lib/node_modules/moment/dist/moment.js +2590 -0
- package/lib/node_modules/moment/dist/moment.js.map +1 -0
- package/lib/node_modules/object-assign/index.js +55 -0
- package/lib/node_modules/object-assign/index.js.map +1 -0
- package/lib/node_modules/prop-types/checkPropTypes.js +55 -0
- package/lib/node_modules/prop-types/checkPropTypes.js.map +1 -0
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js +53 -0
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +330 -0
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
- package/lib/node_modules/prop-types/index.js +18 -0
- package/lib/node_modules/prop-types/index.js.map +1 -0
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js +11 -0
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
- package/lib/node_modules/prop-types/lib/has.js +8 -0
- package/lib/node_modules/prop-types/lib/has.js.map +1 -0
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +96 -0
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +79 -0
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/lib/node_modules/prop-types/node_modules/react-is/index.js +11 -0
- package/lib/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
- package/lib/node_modules/react/cjs/react-compiler-runtime.development.js +31 -0
- package/lib/node_modules/react/cjs/react-compiler-runtime.development.js.map +1 -0
- package/lib/node_modules/react/cjs/react-compiler-runtime.production.js +24 -0
- package/lib/node_modules/react/cjs/react-compiler-runtime.production.js.map +1 -0
- package/lib/node_modules/react/compiler-runtime.js +11 -0
- package/lib/node_modules/react/compiler-runtime.js.map +1 -0
- package/lib/node_modules/react-imask/esm/hook.js +76 -0
- package/lib/node_modules/react-imask/esm/hook.js.map +1 -0
- package/lib/node_modules/react-imask/esm/input.js +24 -0
- package/lib/node_modules/react-imask/esm/input.js.map +1 -0
- package/lib/node_modules/react-imask/esm/mixin.js +132 -0
- package/lib/node_modules/react-imask/esm/mixin.js.map +1 -0
- package/lib/node_modules/uuid/dist/native.js +5 -0
- package/lib/node_modules/uuid/dist/native.js.map +1 -0
- package/lib/node_modules/uuid/dist/rng.js +14 -0
- package/lib/node_modules/uuid/dist/rng.js.map +1 -0
- package/lib/node_modules/uuid/dist/stringify.js +10 -0
- package/lib/node_modules/uuid/dist/stringify.js.map +1 -0
- package/lib/node_modules/uuid/dist/v1.js +35 -0
- package/lib/node_modules/uuid/dist/v1.js.map +1 -0
- package/lib/node_modules/uuid/dist/v4.js +17 -0
- package/lib/node_modules/uuid/dist/v4.js.map +1 -0
- package/lib/panel/Content.d.ts +3 -0
- package/lib/panel/Content.js +59 -0
- package/lib/panel/Content.js.map +1 -0
- package/lib/panel/DangerPanel.d.ts +3 -0
- package/lib/panel/DangerPanel.js +13 -0
- package/lib/panel/DangerPanel.js.map +1 -0
- package/lib/panel/Default.d.ts +3 -0
- package/lib/panel/Default.js +68 -0
- package/lib/panel/Default.js.map +1 -0
- package/lib/panel/Header.d.ts +3 -0
- package/lib/panel/Header.js +53 -0
- package/lib/panel/Header.js.map +1 -0
- package/lib/panel/InfoPanel.d.ts +3 -0
- package/lib/panel/InfoPanel.js +13 -0
- package/lib/panel/InfoPanel.js.map +1 -0
- package/lib/panel/PrimaryPanel.d.ts +3 -0
- package/lib/panel/PrimaryPanel.js +13 -0
- package/lib/panel/PrimaryPanel.js.map +1 -0
- package/lib/panel/SuccessPanel.d.ts +3 -0
- package/lib/panel/SuccessPanel.js +13 -0
- package/lib/panel/SuccessPanel.js.map +1 -0
- package/lib/panel/ToolBar.d.ts +3 -0
- package/lib/panel/WarningPanel.d.ts +3 -0
- package/lib/panel/WarningPanel.js +13 -0
- package/lib/panel/WarningPanel.js.map +1 -0
- package/lib/panel/helpers.d.ts +4 -0
- package/lib/panel/helpers.js +16 -0
- package/lib/panel/helpers.js.map +1 -0
- package/lib/panel/index.d.ts +10 -0
- package/lib/panel/index.js +20 -0
- package/lib/panel/index.js.map +1 -0
- package/lib/panel/types.d.ts +43 -0
- package/lib/permissionValidations.d.ts +12 -0
- package/lib/permissionValidations.js +46 -0
- package/lib/permissionValidations.js.map +1 -0
- package/lib/popover/PopoverText.d.ts +3 -0
- package/lib/popover/PopoverText.js +16 -0
- package/lib/popover/PopoverText.js.map +1 -0
- package/lib/popover/PopoverTitle.d.ts +3 -0
- package/lib/popover/PopoverTitle.js +13 -0
- package/lib/popover/PopoverTitle.js.map +1 -0
- package/lib/popover/index.d.ts +6 -0
- package/lib/popover/index.js +41 -0
- package/lib/popover/index.js.map +1 -0
- package/lib/popover/types.d.ts +32 -0
- package/lib/progress/Bar.d.ts +3 -0
- package/lib/progress/Bar.js +52 -0
- package/lib/progress/Bar.js.map +1 -0
- package/lib/progress/index.d.ts +5 -0
- package/lib/progress/index.js +28 -0
- package/lib/progress/index.js.map +1 -0
- package/lib/progress/types.d.ts +34 -0
- package/lib/radio/index.d.ts +11 -0
- package/lib/radio/index.js +114 -0
- package/lib/radio/index.js.map +1 -0
- package/lib/radio/types.d.ts +25 -0
- package/lib/shortcuts/index.d.ts +3 -0
- package/lib/shortcuts/index.js +24 -0
- package/lib/shortcuts/index.js.map +1 -0
- package/lib/shortcuts/types.d.ts +9 -0
- package/lib/skeleton/SkeletonContainer.d.ts +3 -0
- package/lib/skeleton/SkeletonContainer.js +20 -0
- package/lib/skeleton/SkeletonContainer.js.map +1 -0
- package/lib/skeleton/index.d.ts +5 -0
- package/lib/skeleton/index.js +49 -0
- package/lib/skeleton/index.js.map +1 -0
- package/lib/skeleton/types.d.ts +18 -0
- package/lib/spinner/SpinnerLoading.d.ts +3 -0
- package/lib/spinner/SpinnerLoading.js +56 -0
- package/lib/spinner/SpinnerLoading.js.map +1 -0
- package/lib/spinner/index.d.ts +5 -0
- package/lib/spinner/index.js +54 -0
- package/lib/spinner/index.js.map +1 -0
- package/lib/spinner/types.d.ts +17 -0
- package/lib/split/Split.d.ts +3 -0
- package/lib/split/Split.js +194 -0
- package/lib/split/Split.js.map +1 -0
- package/lib/split/SplitSide.d.ts +3 -0
- package/lib/split/SplitSide.js +28 -0
- package/lib/split/SplitSide.js.map +1 -0
- package/lib/split/helpers.d.ts +7 -0
- package/lib/split/helpers.js +6 -0
- package/lib/split/helpers.js.map +1 -0
- package/lib/split/index.d.ts +4 -0
- package/lib/split/index.js +8 -0
- package/lib/split/index.js.map +1 -0
- package/lib/split/types.d.ts +31 -0
- package/lib/table/Body.d.ts +3 -0
- package/lib/table/Body.js +46 -0
- package/lib/table/Body.js.map +1 -0
- package/lib/table/Header.d.ts +3 -0
- package/lib/table/Header.js +53 -0
- package/lib/table/Header.js.map +1 -0
- package/lib/table/HeaderColumn.d.ts +3 -0
- package/lib/table/HeaderColumn.js +44 -0
- package/lib/table/HeaderColumn.js.map +1 -0
- package/lib/table/Row.d.ts +3 -0
- package/lib/table/Row.js +54 -0
- package/lib/table/Row.js.map +1 -0
- package/lib/table/RowColumn.d.ts +3 -0
- package/lib/table/RowColumn.js +59 -0
- package/lib/table/RowColumn.js.map +1 -0
- package/lib/table/helpers.d.ts +6 -0
- package/lib/table/helpers.js +10 -0
- package/lib/table/helpers.js.map +1 -0
- package/lib/table/index.d.ts +9 -0
- package/lib/table/index.js +105 -0
- package/lib/table/index.js.map +1 -0
- package/lib/table/types.d.ts +95 -0
- package/lib/tabs/DropdownTabs.d.ts +3 -0
- package/lib/tabs/DropdownTabs.js +75 -0
- package/lib/tabs/DropdownTabs.js.map +1 -0
- package/lib/tabs/Menu.d.ts +3 -0
- package/lib/tabs/Menu.js +40 -0
- package/lib/tabs/Menu.js.map +1 -0
- package/lib/tabs/MenuTabs.d.ts +3 -0
- package/lib/tabs/MenuTabs.js +72 -0
- package/lib/tabs/MenuTabs.js.map +1 -0
- package/lib/tabs/Panel.d.ts +3 -0
- package/lib/tabs/Panel.js +63 -0
- package/lib/tabs/Panel.js.map +1 -0
- package/lib/tabs/context.d.ts +3 -0
- package/lib/tabs/context.js +67 -0
- package/lib/tabs/context.js.map +1 -0
- package/lib/tabs/index.d.ts +5 -0
- package/lib/tabs/index.js +84 -0
- package/lib/tabs/index.js.map +1 -0
- package/lib/tabs/tabHelpers.d.ts +27 -0
- package/lib/tabs/tabHelpers.js +48 -0
- package/lib/tabs/tabHelpers.js.map +1 -0
- package/lib/tabs/types.d.ts +102 -0
- package/lib/tabs/useTabs.d.ts +1 -0
- package/lib/tabs/useTabs.js +9 -0
- package/lib/tabs/useTabs.js.map +1 -0
- package/lib/textContent/index.d.ts +14 -0
- package/lib/textContent/index.js +44 -0
- package/lib/textContent/index.js.map +1 -0
- package/lib/toolbar/ButtonBar.d.ts +3 -0
- package/lib/toolbar/ButtonBar.js +68 -0
- package/lib/toolbar/ButtonBar.js.map +1 -0
- package/lib/toolbar/LabelBar.d.ts +3 -0
- package/lib/toolbar/LabelBar.js +52 -0
- package/lib/toolbar/LabelBar.js.map +1 -0
- package/lib/toolbar/Separator.d.ts +2 -0
- package/lib/toolbar/Separator.js +11 -0
- package/lib/toolbar/Separator.js.map +1 -0
- package/lib/toolbar/ToolBarGroup.d.ts +3 -0
- package/lib/toolbar/ToolBarGroup.js +17 -0
- package/lib/toolbar/ToolBarGroup.js.map +1 -0
- package/lib/toolbar/helpers.d.ts +3 -0
- package/lib/toolbar/helpers.js +6 -0
- package/lib/toolbar/helpers.js.map +1 -0
- package/lib/toolbar/index.d.ts +8 -0
- package/lib/toolbar/index.js +40 -0
- package/lib/toolbar/index.js.map +1 -0
- package/lib/toolbar/types.d.ts +43 -0
- package/lib/tooltip/TooltipContent.d.ts +3 -0
- package/lib/tooltip/TooltipContent.js +40 -0
- package/lib/tooltip/TooltipContent.js.map +1 -0
- package/lib/tooltip/index.d.ts +3 -0
- package/lib/tooltip/index.js +41 -0
- package/lib/tooltip/index.js.map +1 -0
- package/lib/tooltip/types.d.ts +40 -0
- package/lib/tooltip/useTooltip.d.ts +27 -0
- package/lib/tooltip/useTooltip.js +78 -0
- package/lib/tooltip/useTooltip.js.map +1 -0
- package/lib/treetable/Body.d.ts +2 -0
- package/lib/treetable/Body.js +31 -0
- package/lib/treetable/Body.js.map +1 -0
- package/lib/treetable/Header.d.ts +2 -0
- package/lib/treetable/Header.js +28 -0
- package/lib/treetable/Header.js.map +1 -0
- package/lib/treetable/Row.d.ts +3 -0
- package/lib/treetable/Row.js +218 -0
- package/lib/treetable/Row.js.map +1 -0
- package/lib/treetable/helpers.d.ts +14 -0
- package/lib/treetable/helpers.js +18 -0
- package/lib/treetable/helpers.js.map +1 -0
- package/lib/treetable/index.d.ts +4 -0
- package/lib/treetable/index.js +30 -0
- package/lib/treetable/index.js.map +1 -0
- package/lib/treeview/Header.d.ts +3 -0
- package/lib/treeview/Header.js +17 -0
- package/lib/treeview/Header.js.map +1 -0
- package/lib/treeview/Node.d.ts +3 -0
- package/lib/treeview/Node.js +208 -0
- package/lib/treeview/Node.js.map +1 -0
- package/lib/treeview/constants.d.ts +2 -0
- package/lib/treeview/constants.js +6 -0
- package/lib/treeview/constants.js.map +1 -0
- package/lib/treeview/index.d.ts +6 -0
- package/lib/treeview/index.js +270 -0
- package/lib/treeview/index.js.map +1 -0
- package/lib/treeview/types.d.ts +106 -0
- package/lib/uitour/helpers.d.ts +7 -0
- package/lib/uitour/helpers.js +10 -0
- package/lib/uitour/helpers.js.map +1 -0
- package/lib/uitour/index.d.ts +3 -0
- package/lib/uitour/index.js +188 -0
- package/lib/uitour/index.js.map +1 -0
- package/lib/uitour/types.d.ts +35 -0
- package/package.json +1 -1
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { jsx as l, jsxs as E } from "react/jsx-runtime";
|
|
2
|
+
import { c as X } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import '../../assets/styles/button.css';import '../../assets/styles/filefield.css';/* empty css */
|
|
4
|
+
import i from "../../_virtual/lodash.js";
|
|
5
|
+
import { forwardRef as Y, useRef as Z, useState as ee, Fragment as te } from "react";
|
|
6
|
+
import G from "../../buttons/Button.js";
|
|
7
|
+
/* empty css */
|
|
8
|
+
import { Input as ne } from "../textfield/index.js";
|
|
9
|
+
import K from "../../list/index.js";
|
|
10
|
+
import Q from "../../list/Item.js";
|
|
11
|
+
import { LeftSlot as le, RightSlot as ae } from "../slot/index.js";
|
|
12
|
+
const ie = Y((t, h) => {
|
|
13
|
+
const e = X.c(48);
|
|
14
|
+
let o;
|
|
15
|
+
e[0] !== t ? ({
|
|
16
|
+
...o
|
|
17
|
+
} = t, e[0] = t, e[1] = o) : o = e[1];
|
|
18
|
+
const y = Z(null);
|
|
19
|
+
let b;
|
|
20
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (b = [], e[2] = b) : b = e[2];
|
|
21
|
+
const [T, H] = ee(b), n = t?.value ?? T;
|
|
22
|
+
let v;
|
|
23
|
+
e[3] !== n ? (v = i.isArray(n) && n.length > 0 ? `${n.length} arquivo(s) selecionado(s)` : "Nenhum arquivo selecionado", e[3] = n, e[4] = v) : v = e[4];
|
|
24
|
+
const N = v;
|
|
25
|
+
let g;
|
|
26
|
+
e[5] !== t ? (g = (p) => {
|
|
27
|
+
const J = p.target.files;
|
|
28
|
+
if (!J)
|
|
29
|
+
return;
|
|
30
|
+
let a = Array.from(J);
|
|
31
|
+
t?.maxSize && (a = a.filter((W) => W.size <= i.toNumber(t.maxSize))), !t?.multiple && a.length > 1 && (a = [a[0]]), i.isNil(t?.value) && H(a), t.onChange?.({
|
|
32
|
+
target: {
|
|
33
|
+
name: t.name,
|
|
34
|
+
value: a
|
|
35
|
+
}
|
|
36
|
+
}), y.current.value = "";
|
|
37
|
+
}, e[5] = t, e[6] = g) : g = e[6];
|
|
38
|
+
const _ = g;
|
|
39
|
+
let w;
|
|
40
|
+
e[7] !== t ? (w = () => {
|
|
41
|
+
i.isNil(t?.value) && H([]), t.onChange?.({
|
|
42
|
+
target: {
|
|
43
|
+
name: t.name,
|
|
44
|
+
value: ""
|
|
45
|
+
}
|
|
46
|
+
}), y.current.value = "";
|
|
47
|
+
}, e[7] = t, e[8] = w) : w = e[8];
|
|
48
|
+
const C = w;
|
|
49
|
+
let I;
|
|
50
|
+
e[9] === Symbol.for("react.memo_cache_sentinel") ? (I = () => {
|
|
51
|
+
y.current?.click();
|
|
52
|
+
}, e[9] = I) : I = e[9];
|
|
53
|
+
const U = I, V = oe;
|
|
54
|
+
let S;
|
|
55
|
+
e[10] !== t ? (S = (p) => {
|
|
56
|
+
t.onBeforeInput?.(p);
|
|
57
|
+
}, e[10] = t, e[11] = S) : S = e[11];
|
|
58
|
+
const O = S, L = t?.name, A = t?.accept, F = t?.multiple;
|
|
59
|
+
let x;
|
|
60
|
+
e[12] === Symbol.for("react.memo_cache_sentinel") ? (x = {
|
|
61
|
+
all: "unset",
|
|
62
|
+
display: "none"
|
|
63
|
+
}, e[12] = x) : x = e[12];
|
|
64
|
+
let s;
|
|
65
|
+
e[13] !== _ || e[14] !== L || e[15] !== A || e[16] !== F ? (s = /* @__PURE__ */ l(le, { children: /* @__PURE__ */ l("input", { ref: y, type: "file", name: L, accept: A, multiple: F, onChange: _, style: x }) }), e[13] = _, e[14] = L, e[15] = A, e[16] = F, e[17] = s) : s = e[17];
|
|
66
|
+
const k = t?.disabled, q = t?.readOnly, M = t?.readOnly;
|
|
67
|
+
let r;
|
|
68
|
+
e[18] !== n ? (r = !i.isArray(n) && /* @__PURE__ */ l(K, { condensed: !0, children: /* @__PURE__ */ l(Q, { itemId: "nenhum-selecionado", text: "Nenhum arquivo selecionado", onMouseDown: re }, "nenhum-selecionado") }), e[18] = n, e[19] = r) : r = e[19];
|
|
69
|
+
let c;
|
|
70
|
+
e[20] !== n ? (c = i.isArray(n) && i.size(n) > 0 && /* @__PURE__ */ l(K, { condensed: !0, children: n.map(de) }), e[20] = n, e[21] = c) : c = e[21];
|
|
71
|
+
let d;
|
|
72
|
+
e[22] !== k || e[23] !== q || e[24] !== M || e[25] !== r || e[26] !== c ? (d = /* @__PURE__ */ E(G, { className: "show-files-selected-list", visible: !0, dropdown: !0, transparent: !0, boxShadow: !1, showIconDropdown: !1, type: "button", title: "Arquivos Selecionados", tabIndex: -1, disabled: k, "aria-label": "Arquivos Selecionados", "aria-readonly": q, "data-state-read-only": M, iconName: "information", dropdownAlign: "right", onMouseDown: se, children: [
|
|
73
|
+
r,
|
|
74
|
+
c
|
|
75
|
+
] }), e[22] = k, e[23] = q, e[24] = M, e[25] = r, e[26] = c, e[27] = d) : d = e[27];
|
|
76
|
+
const R = t?.disabled, $ = t?.readOnly, z = t?.readOnly;
|
|
77
|
+
let f;
|
|
78
|
+
e[28] !== C || e[29] !== R || e[30] !== $ || e[31] !== z ? (f = /* @__PURE__ */ l(G, { "data-testid": "test-file-field-trigger-clear-files-selected", className: "clear-files-selected", visible: !0, transparent: !0, boxShadow: !1, showIconDropdown: !1, type: "button", title: "Limpar", tabIndex: -1, disabled: R, "aria-label": "Limpar", "aria-readonly": $, "data-state-read-only": z, iconName: "close", onClick: C, onMouseDown: fe }), e[28] = C, e[29] = R, e[30] = $, e[31] = z, e[32] = f) : f = e[32];
|
|
79
|
+
const B = t?.disabled, j = t?.readOnly, P = t?.readOnly;
|
|
80
|
+
let u;
|
|
81
|
+
e[33] !== B || e[34] !== j || e[35] !== P ? (u = /* @__PURE__ */ l(G, { "data-testid": "test-file-field-trigger-select-files", className: "select-files", visible: !0, boxShadow: !1, showIconDropdown: !1, type: "button", title: "Selecionar", label: "Selecionar", tabIndex: -1, disabled: B, "aria-label": "Selecionar", "aria-readonly": j, "data-state-read-only": P, iconName: "upload4", onClick: U, onMouseDown: ue }), e[33] = B, e[34] = j, e[35] = P, e[36] = u) : u = e[36];
|
|
82
|
+
let m;
|
|
83
|
+
e[37] !== d || e[38] !== f || e[39] !== u ? (m = /* @__PURE__ */ E(ae, { className: "file-right-slot", children: [
|
|
84
|
+
d,
|
|
85
|
+
f,
|
|
86
|
+
u
|
|
87
|
+
] }), e[37] = d, e[38] = f, e[39] = u, e[40] = m) : m = e[40];
|
|
88
|
+
let D;
|
|
89
|
+
return e[41] !== O || e[42] !== N || e[43] !== h || e[44] !== o || e[45] !== s || e[46] !== m ? (D = /* @__PURE__ */ l(te, { children: /* @__PURE__ */ E(ne, { ...o, ref: h, type: "text", readOnly: !1, value: N, customClass: "file-input", onPaste: V, onBeforeInput: O, customClassInputContainer: "file-container", children: [
|
|
90
|
+
s,
|
|
91
|
+
m
|
|
92
|
+
] }) }), e[41] = O, e[42] = N, e[43] = h, e[44] = o, e[45] = s, e[46] = m, e[47] = D) : D = e[47], D;
|
|
93
|
+
});
|
|
94
|
+
ie.displayName = "FileFieldInput";
|
|
95
|
+
function oe(t) {
|
|
96
|
+
t.preventDefault();
|
|
97
|
+
}
|
|
98
|
+
function se(t) {
|
|
99
|
+
t.preventDefault();
|
|
100
|
+
}
|
|
101
|
+
function re(t) {
|
|
102
|
+
t?.preventDefault?.();
|
|
103
|
+
}
|
|
104
|
+
function ce(t) {
|
|
105
|
+
t?.preventDefault?.();
|
|
106
|
+
}
|
|
107
|
+
function de(t, h) {
|
|
108
|
+
const e = `${t.name}-${h + 1}`;
|
|
109
|
+
return /* @__PURE__ */ l(Q, { itemId: e, text: t.name, onMouseDown: ce }, e);
|
|
110
|
+
}
|
|
111
|
+
function fe(t) {
|
|
112
|
+
t.preventDefault();
|
|
113
|
+
}
|
|
114
|
+
function ue(t) {
|
|
115
|
+
t.preventDefault();
|
|
116
|
+
}
|
|
117
|
+
export {
|
|
118
|
+
ie as Input
|
|
119
|
+
};
|
|
120
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/lib/inputs2/filefield/index.tsx"],"sourcesContent":["import '../../assets/styles/filefield.scss';\n\nimport _ from 'lodash';\nimport { ChangeEvent, ClipboardEvent, forwardRef, Fragment, InputEventHandler, useRef, useState } from 'react';\nimport Button from '../../buttons';\nimport * as TextField from '../textfield';\nimport List, { ListItem } from '../../list';\n\ninterface FileFieldInputProps extends Omit<TextField.TextFieldInputProps, 'type'> {\n multiple?: boolean;\n accept?: string;\n maxSize?: number;\n gridLayout?: string;\n showClearButton?: boolean;\n}\n\nconst Input = forwardRef<HTMLInputElement, FileFieldInputProps>((props, ref) => {\n const { ...rest } = props;\n\n const inputFileRef = useRef<HTMLInputElement>(null);\n const [internalFiles, setInternalFiles] = useState<File[]>([]);\n\n const files = props?.value ?? internalFiles;\n const inputLabel = _.isArray(files) && files.length > 0 ? \n `${files.length} arquivo(s) selecionado(s)`\n : 'Nenhum arquivo selecionado';\n\n const handleSelect = (event: ChangeEvent<HTMLInputElement>) => {\n const fileList = event.target.files;\n if (!fileList) return;\n\n let selectedFiles = Array.from(fileList);\n\n if (props?.maxSize) {\n selectedFiles = selectedFiles.filter(file => \n file.size <= _.toNumber(props.maxSize));\n }\n\n if (!props?.multiple && selectedFiles.length > 1) {\n selectedFiles = [selectedFiles[0]];\n }\n\n if (_.isNil(props?.value)) {\n setInternalFiles(selectedFiles);\n }\n props.onChange?.({\n target: {\n name: props.name,\n value: selectedFiles as any,\n },\n } as ChangeEvent<HTMLInputElement>);\n inputFileRef.current!.value = '';\n };\n\n const handleClear = () => {\n if (_.isNil(props?.value)) {\n setInternalFiles([]);\n }\n props.onChange?.({\n target: {\n name: props.name,\n value: '',\n },\n } as ChangeEvent<HTMLInputElement>);\n inputFileRef.current!.value = '';\n };\n\n const openDialog = () => {\n inputFileRef.current?.click();\n };\n\n const handleLockOnPaste = (event: ClipboardEvent<HTMLInputElement>) => {\n event.preventDefault();\n };\n\n const handleLockOnBeforeInput: InputEventHandler<HTMLInputElement> = (event) => {\n props.onBeforeInput?.(event);\n };\n\n return (\n <Fragment>\n <TextField.Input\n {...rest}\n ref={ref}\n type=\"text\"\n readOnly={false}\n value={inputLabel}\n customClass=\"file-input\"\n onPaste={handleLockOnPaste}\n onBeforeInput={handleLockOnBeforeInput}\n customClassInputContainer=\"file-container\">\n <TextField.LeftSlot>\n <input\n ref={inputFileRef}\n type=\"file\"\n name={props?.name}\n accept={props?.accept}\n multiple={props?.multiple}\n onChange={handleSelect}\n style={{ all: 'unset', display: 'none' }} />\n </TextField.LeftSlot>\n <TextField.RightSlot className=\"file-right-slot\">\n <Button\n className=\"show-files-selected-list\"\n visible\n dropdown\n transparent\n boxShadow={false}\n showIconDropdown={false}\n type=\"button\"\n title=\"Arquivos Selecionados\"\n tabIndex={-1}\n disabled={props?.disabled}\n aria-label=\"Arquivos Selecionados\"\n aria-readonly={props?.readOnly}\n data-state-read-only={props?.readOnly}\n iconName=\"information\"\n dropdownAlign=\"right\"\n onMouseDown={(event) => { event.preventDefault(); }}>\n {!_.isArray(files) && (\n <List condensed>\n <ListItem\n key=\"nenhum-selecionado\"\n itemId=\"nenhum-selecionado\"\n text=\"Nenhum arquivo selecionado\"\n onMouseDown={(event) => { event?.preventDefault?.(); }} />\n </List>\n )}\n {_.isArray(files) && _.size(files) > 0 && (\n <List condensed>\n {files.map((file: File, index) => {\n const id = `${file.name}-${index + 1}`;\n return (\n <ListItem\n key={id}\n itemId={id}\n text={file.name}\n onMouseDown={(event) => { event?.preventDefault?.(); }} />\n );\n })}\n </List>\n )}\n </Button>\n <Button\n data-testid=\"test-file-field-trigger-clear-files-selected\"\n className=\"clear-files-selected\"\n visible\n transparent\n boxShadow={false}\n showIconDropdown={false}\n type=\"button\"\n title=\"Limpar\"\n tabIndex={-1}\n disabled={props?.disabled}\n aria-label=\"Limpar\"\n aria-readonly={props?.readOnly}\n data-state-read-only={props?.readOnly}\n iconName=\"close\"\n onClick={handleClear}\n onMouseDown={(event) => { event.preventDefault(); }} />\n <Button\n data-testid=\"test-file-field-trigger-select-files\"\n className=\"select-files\"\n visible\n boxShadow={false}\n showIconDropdown={false}\n type=\"button\"\n title=\"Selecionar\"\n label=\"Selecionar\"\n tabIndex={-1}\n disabled={props?.disabled}\n aria-label=\"Selecionar\"\n aria-readonly={props?.readOnly}\n data-state-read-only={props?.readOnly}\n iconName=\"upload4\"\n onClick={openDialog}\n onMouseDown={(event) => { event.preventDefault(); }} />\n </TextField.RightSlot>\n </TextField.Input>\n </Fragment>\n );\n});\n\nInput.displayName = 'FileFieldInput';\n\nexport { Input };\nexport type { FileFieldInputProps };\n"],"names":["Input","forwardRef","props","ref","$","_c","rest","inputFileRef","useRef","t0","Symbol","for","internalFiles","setInternalFiles","useState","files","value","t1","_","isArray","length","inputLabel","t2","event","fileList","target","selectedFiles","Array","from","maxSize","filter","file","size","toNumber","multiple","isNil","onChange","name","current","handleSelect","t3","handleClear","t4","click","openDialog","handleLockOnPaste","_temp","t5","event_1","onBeforeInput","handleLockOnBeforeInput","t6","t7","accept","t8","t9","all","display","t10","t11","disabled","t12","readOnly","t13","t14","jsx","List","ListItem","_temp3","t15","map","_temp5","t16","Button","_temp2","t17","t18","t19","t20","_temp6","t21","t22","t23","t24","_temp7","t25","jsxs","TextField.RightSlot","t26","Fragment","TextField.Input","displayName","event_0","preventDefault","event_2","event_3","_temp4","event_4","file_0","index","id","event_5","event_6"],"mappings":";;;;;;;;;;;AAgBA,MAAMA,KAAQC,EAAkD,CAAAC,GAAAC,MAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA;AAAA,MAAAC;AAAA,EAAAF,SAAAF,KAC9D;AAAA,IAAA,GAAAI;AAAAA,EAAAA,IAAoBJ,GAAME,OAAAF,GAAAE,OAAAE,KAAAA,IAAAF,EAAA,CAAA;AAE1B,QAAAG,IAAqBC,EAAyB,IAAI;AAAE,MAAAC;AAAA,EAAAL,EAAA,CAAA,MAAAM,OAAAC,IAAA,2BAAA,KACOF,IAAA,CAAA,GAAEL,OAAAK,KAAAA,IAAAL,EAAA,CAAA;AAA7D,QAAA,CAAAQ,GAAAC,CAAA,IAA0CC,GAAiBL,CAAE,GAE7DM,IAAcb,GAAKc,SAALJ;AAA8B,MAAAK;AAAA,EAAAb,SAAAW,KACzBE,IAAAC,EAACC,QAASJ,CAAyB,KAAfA,EAAKK,SAAU,IAAnC,GACdL,EAAKK,MAAO,+BADE,8BAEahB,OAAAW,GAAAX,OAAAa,KAAAA,IAAAb,EAAA,CAAA;AAFhC,QAAAiB,IAAmBJ;AAEc,MAAAK;AAAA,EAAAlB,SAAAF,KAEZoB,IAAAC,CAAAA,MAAA;AACnB,UAAAC,IAAiBD,EAAKE,OAAOV;AAC7B,QAAI,CAACS;AAAQ;AAEb,QAAAE,IAAoBC,MAAKC,KAAMJ,CAAQ;AAEvC,IAAItB,GAAK2B,YACPH,IAAgBA,EAAaI,OAAQC,CAAAA,MACnCA,EAAIC,QAASd,EAACe,SAAU/B,EAAK2B,OAAQ,CAAC,IAGtC,CAAC3B,GAAKgC,YAAcR,EAAaN,SAAU,MAC7CM,IAAgBA,CAACA,IAAgB,IAG/BR,EAACiB,MAAOjC,GAAKc,KAAO,KACtBH,EAAiBa,CAAa,GAEhCxB,EAAK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L,SAAAG,GAAAC,GAAA;AAyHhB1E,EAAAA,GAAKsE,iBAAAA;AAAoB;AAzHT,SAAAtB,GAAA2B,GAAAC,GAAA;AAmH9C,QAAAC,IAAW,GAAGrE,EAAIM,IAAK,IAAI8D,IAAQ,CAAC;AAAG,SAErC,gBAAAlC,EAACE,KAESiC,QAAAA,GACF,MAAArE,EAAIM,MACG,aAAA2D,GAAAA,GAHRI,CAGiD;AAAI;AAzHhB,SAAArB,GAAAsB,GAAA;AA+I1B9E,EAAAA,EAAKsE,eAAAA;AAAiB;AA/II,SAAAT,GAAAkB,GAAA;AAgK1B/E,EAAAA,EAAKsE,eAAAA;AAAiB;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LeftSlot, RightSlot } from './slot';
|
|
2
|
+
import * as TextField from './textfield';
|
|
3
|
+
import * as TextAreaField from './textareafield';
|
|
4
|
+
import * as NumberField from './numberfield';
|
|
5
|
+
import * as DateField from './date/datefield';
|
|
6
|
+
import * as RadioField from './radiofield';
|
|
7
|
+
import * as SelectField from './selectfield';
|
|
8
|
+
import * as ColorField from './colorfield';
|
|
9
|
+
import * as MaskField from './mask/index';
|
|
10
|
+
import * as CpfField from './mask/Cpf';
|
|
11
|
+
import * as CnpjField from './mask/Cnpj';
|
|
12
|
+
import * as PhoneField from './mask/Phone';
|
|
13
|
+
import * as ZipCodeField from './mask/ZipCode';
|
|
14
|
+
import * as CheckboxField from './checkboxfield';
|
|
15
|
+
import * as DatePeriodField from './date/dateperiodfield';
|
|
16
|
+
import * as FileField from './filefield/index';
|
|
17
|
+
export { TextField, TextAreaField, NumberField, DateField, RadioField, SelectField, ColorField, MaskField, CpfField, CnpjField, PhoneField, ZipCodeField, CheckboxField, DatePeriodField, FileField, LeftSlot, RightSlot, };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as e from "./textfield/index.js";
|
|
2
|
+
import * as i from "./textareafield/index.js";
|
|
3
|
+
import * as o from "./numberfield/index.js";
|
|
4
|
+
import * as t from "./date/datefield/index.js";
|
|
5
|
+
import * as r from "./radiofield/index.js";
|
|
6
|
+
import * as p from "./selectfield/index.js";
|
|
7
|
+
import * as d from "./colorfield/index.js";
|
|
8
|
+
import * as s from "./mask/index.js";
|
|
9
|
+
import * as a from "./mask/Cpf.js";
|
|
10
|
+
import * as m from "./mask/Cnpj.js";
|
|
11
|
+
import * as l from "./mask/Phone.js";
|
|
12
|
+
import * as x from "./mask/ZipCode.js";
|
|
13
|
+
import * as f from "./checkboxfield/index.js";
|
|
14
|
+
import * as n from "./date/dateperiodfield/index.js";
|
|
15
|
+
import * as _ from "./filefield/index.js";
|
|
16
|
+
import { LeftSlot as C, RightSlot as c } from "./slot/index.js";
|
|
17
|
+
export {
|
|
18
|
+
f as CheckboxField,
|
|
19
|
+
m as CnpjField,
|
|
20
|
+
d as ColorField,
|
|
21
|
+
a as CpfField,
|
|
22
|
+
t as DateField,
|
|
23
|
+
n as DatePeriodField,
|
|
24
|
+
_ as FileField,
|
|
25
|
+
C as LeftSlot,
|
|
26
|
+
s as MaskField,
|
|
27
|
+
o as NumberField,
|
|
28
|
+
l as PhoneField,
|
|
29
|
+
r as RadioField,
|
|
30
|
+
c as RightSlot,
|
|
31
|
+
p as SelectField,
|
|
32
|
+
i as TextAreaField,
|
|
33
|
+
e as TextField,
|
|
34
|
+
x as ZipCodeField
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MaskFieldProps } from './types';
|
|
3
|
+
interface CNPJFieldProps extends MaskFieldProps {
|
|
4
|
+
disabledValidation?: boolean;
|
|
5
|
+
onValidate?: (errors: string[]) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const Input: React.ForwardRefExoticComponent<CNPJFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
8
|
+
export { Input };
|
|
9
|
+
export type { CNPJFieldProps };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { jsx as O } from "react/jsx-runtime";
|
|
2
|
+
import { c as Q } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { forwardRef as U, useState as $, useEffect as W } from "react";
|
|
4
|
+
import P from "../../_virtual/lodash.js";
|
|
5
|
+
import "../../node_modules/imask/esm/index.js";
|
|
6
|
+
import "../../node_modules/imask/esm/controls/input.js";
|
|
7
|
+
import "../../node_modules/imask/esm/masked/factory.js";
|
|
8
|
+
import "../../node_modules/imask/esm/controls/mask-element.js";
|
|
9
|
+
import "../../node_modules/imask/esm/controls/html-input-mask-element.js";
|
|
10
|
+
import "../../node_modules/imask/esm/controls/html-mask-element.js";
|
|
11
|
+
import "../../node_modules/imask/esm/controls/html-contenteditable-mask-element.js";
|
|
12
|
+
import "../../node_modules/imask/esm/controls/input-history.js";
|
|
13
|
+
import "../../node_modules/react-imask/esm/input.js";
|
|
14
|
+
import X from "../../node_modules/react-imask/esm/hook.js";
|
|
15
|
+
import "../../node_modules/react-imask/esm/mixin.js";
|
|
16
|
+
import { mergeRefs as Y } from "../../form2/helpers.js";
|
|
17
|
+
import { Input as Z } from "../textfield/index.js";
|
|
18
|
+
import { CNPJValidation as tt } from "./helpers.js";
|
|
19
|
+
const R = "CNPJ inválido", et = U((o, N) => {
|
|
20
|
+
const t = Q.c(30), {
|
|
21
|
+
mask: A,
|
|
22
|
+
unmask: z,
|
|
23
|
+
lazy: B,
|
|
24
|
+
placeholder: T,
|
|
25
|
+
disabledValidation: j,
|
|
26
|
+
autoCompleteMask: w,
|
|
27
|
+
...l
|
|
28
|
+
} = o, s = A === void 0 ? "00.000.000/0000-00" : A, F = z === void 0 ? !0 : z, y = B === void 0 ? !1 : B, G = T === void 0 ? "__.___.___/____-__" : T, I = j === void 0 ? !1 : j, c = w === void 0 ? void 0 : w, [m, b] = $(!1);
|
|
29
|
+
let u;
|
|
30
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (u = [], t[0] = u) : u = t[0];
|
|
31
|
+
const [d, f] = $(u), L = [...d, ...l?.errors || []];
|
|
32
|
+
let _;
|
|
33
|
+
t[1] !== I || t[2] !== o || t[3] !== f || t[4] !== d ? (_ = (n) => {
|
|
34
|
+
if (I)
|
|
35
|
+
return;
|
|
36
|
+
const a = d.includes(R), e = tt(n);
|
|
37
|
+
!e && !a && (o?.onValidate?.([R]), f([R])), e && a && (o?.onValidate?.([]), f([]));
|
|
38
|
+
}, t[1] = I, t[2] = o, t[3] = f, t[4] = d, t[5] = _) : _ = t[5];
|
|
39
|
+
const p = _, x = s;
|
|
40
|
+
let h;
|
|
41
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (h = [], t[6] = h) : h = t[6];
|
|
42
|
+
let v;
|
|
43
|
+
t[7] !== y || t[8] !== x ? (v = {
|
|
44
|
+
mask: x,
|
|
45
|
+
lazy: y,
|
|
46
|
+
scale: 0,
|
|
47
|
+
radix: "",
|
|
48
|
+
placeholderChar: "_",
|
|
49
|
+
mapToRadix: h
|
|
50
|
+
}, t[7] = y, t[8] = x, t[9] = v) : v = t[9];
|
|
51
|
+
let V;
|
|
52
|
+
t[10] !== l ? (V = (n, a, e) => {
|
|
53
|
+
l?.onComplete?.(n, e);
|
|
54
|
+
}, t[10] = l, t[11] = V) : V = t[11];
|
|
55
|
+
const {
|
|
56
|
+
ref: q,
|
|
57
|
+
value: r,
|
|
58
|
+
unmaskedValue: C,
|
|
59
|
+
setValue: H
|
|
60
|
+
} = X(v, {
|
|
61
|
+
onComplete: V,
|
|
62
|
+
onAccept: (n, a, e) => {
|
|
63
|
+
const D = F ? a.unmaskedValue : a.value;
|
|
64
|
+
l?.onAccept?.(D, e), i(n), o?.onChange?.({
|
|
65
|
+
...e,
|
|
66
|
+
target: {
|
|
67
|
+
...e?.target,
|
|
68
|
+
name: o?.name,
|
|
69
|
+
value: D
|
|
70
|
+
}
|
|
71
|
+
}), m && p(a.unmaskedValue);
|
|
72
|
+
}
|
|
73
|
+
}), i = H;
|
|
74
|
+
let g;
|
|
75
|
+
t[12] !== c || t[13] !== p || t[14] !== s || t[15] !== l || t[16] !== b || t[17] !== i || t[18] !== m || t[19] !== C || t[20] !== r ? (g = (n) => {
|
|
76
|
+
if (b(!0), !m && !P.isEmpty(r) && p(r), C.trim().length && c) {
|
|
77
|
+
const a = C, e = s?.toString().replace(/\D+/g, "").length;
|
|
78
|
+
if (e && e > a.length)
|
|
79
|
+
t: switch (c) {
|
|
80
|
+
case "left": {
|
|
81
|
+
i(a.padStart(e, "0"));
|
|
82
|
+
break t;
|
|
83
|
+
}
|
|
84
|
+
case "right": {
|
|
85
|
+
i(a.padEnd(e, "0"));
|
|
86
|
+
break t;
|
|
87
|
+
}
|
|
88
|
+
default:
|
|
89
|
+
i(a);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
l?.onBlur?.(n);
|
|
93
|
+
}, t[12] = c, t[13] = p, t[14] = s, t[15] = l, t[16] = b, t[17] = i, t[18] = m, t[19] = C, t[20] = r, t[21] = g) : g = t[21];
|
|
94
|
+
const K = g;
|
|
95
|
+
let k;
|
|
96
|
+
t[22] !== o.value || t[23] !== i ? (k = () => {
|
|
97
|
+
P.isNil(o?.value) || i(P.toString(o?.value));
|
|
98
|
+
}, t[22] = o.value, t[23] = i, t[24] = k) : k = t[24];
|
|
99
|
+
const J = o?.value;
|
|
100
|
+
let E;
|
|
101
|
+
t[25] !== J ? (E = [J], t[25] = J, t[26] = E) : E = t[26], W(k, E);
|
|
102
|
+
const M = q;
|
|
103
|
+
let S;
|
|
104
|
+
return t[27] !== N || t[28] !== M ? (S = Y(N, M), t[27] = N, t[28] = M, t[29] = S) : S = t[29], /* @__PURE__ */ O(Z, { ...l, type: "text", value: r, errors: L, placeholder: G, onBlur: K, onChange: ot, ref: S });
|
|
105
|
+
});
|
|
106
|
+
et.displayName = "CNPJInputField";
|
|
107
|
+
function ot() {
|
|
108
|
+
}
|
|
109
|
+
export {
|
|
110
|
+
et as Input
|
|
111
|
+
};
|
|
112
|
+
//# sourceMappingURL=Cnpj.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cnpj.js","sources":["../../../src/lib/inputs2/mask/Cnpj.tsx"],"sourcesContent":["import React, { forwardRef, useEffect, useState } from 'react';\nimport _ from 'lodash';\nimport { useIMask } from 'react-imask';\nimport { mergeRefs } from '../../form2/helpers';\nimport * as TextField from '../textfield';\nimport type { MaskFieldProps } from './types';\nimport { CNPJValidation } from './helpers';\n\ninterface CNPJFieldProps extends MaskFieldProps {\n disabledValidation?: boolean;\n onValidate?: (errors: string[]) => void;\n}\n\nconst CNPJ_INVALID_MESSAGE = 'CNPJ inválido';\nconst Input = forwardRef<HTMLInputElement, CNPJFieldProps>((props, ref) => {\n const { \n mask = '00.000.000/0000-00', unmask = true, lazy = false, placeholder = '__.___.___/____-__', \n disabledValidation = false, autoCompleteMask = undefined, ...rest\n } = props;\n const [touched, setTouched] = useState(false);\n const [validationError, setValidationError] = useState<string[]>([]);\n const fieldErrors = [...validationError, ...(rest?.errors || [])];\n\n const handleValidateCNPJ = (raw: string) => {\n if (disabledValidation) { return; }\n const hasCnpjError = validationError.includes(CNPJ_INVALID_MESSAGE);\n const isValid = CNPJValidation(raw);\n if (!isValid && !hasCnpjError) {\n props?.onValidate?.([CNPJ_INVALID_MESSAGE]);\n setValidationError([CNPJ_INVALID_MESSAGE]);\n }\n if (isValid && hasCnpjError) {\n props?.onValidate?.([]);\n setValidationError([]);\n }\n };\n\n const { ref: inputRef, value, unmaskedValue, setValue } = useIMask({\n mask: mask as string,\n lazy,\n scale: 0,\n radix: '',\n placeholderChar: '_',\n mapToRadix: [],\n }, {\n onComplete: (imaskValue, ___, event) => {\n rest?.onComplete?.(imaskValue, event);\n },\n onAccept: (acceptValue, imask, event) => {\n const valueToSet = unmask ? imask.unmaskedValue : imask.value;\n rest?.onAccept?.(valueToSet, event);\n setValue(acceptValue);\n props?.onChange?.({\n ...event,\n target: {\n ...event?.target,\n name: props?.name,\n value: valueToSet,\n },\n } as React.ChangeEvent<HTMLInputElement>);\n if (touched) { handleValidateCNPJ(imask.unmaskedValue); }\n },\n });\n\n const handleBlur = (event: React.FocusEvent<HTMLInputElement>) => {\n setTouched(true);\n if (!touched && !_.isEmpty(value)) { handleValidateCNPJ(value); }\n if (unmaskedValue.trim().length && autoCompleteMask) {\n const currentValue = unmaskedValue;\n const sizeMask = mask?.toString().replace(/\\D+/g, '').length;\n if (sizeMask && sizeMask > currentValue.length) {\n switch (autoCompleteMask) {\n case 'left':\n setValue(currentValue.padStart(sizeMask, '0'));\n break;\n case 'right':\n setValue(currentValue.padEnd(sizeMask, '0'));\n break;\n default:\n setValue(currentValue);\n break;\n }\n }\n }\n rest?.onBlur?.(event);\n };\n\n useEffect(() => {\n if (!_.isNil(props?.value)) { \n setValue(_.toString(props?.value)); \n }\n }, [props?.value]);\n\n return (\n <TextField.Input\n {...rest}\n type=\"text\"\n value={value}\n errors={fieldErrors}\n placeholder={placeholder}\n onBlur={handleBlur}\n onChange={() => { }}\n ref={mergeRefs(ref, inputRef as React.Ref<HTMLInputElement>)} />\n );\n});\n\nInput.displayName = 'CNPJInputField';\nexport { Input };\nexport type { CNPJFieldProps };\n"],"names":["CNPJ_INVALID_MESSAGE","Input","forwardRef","props","ref","$","_c","mask","t0","unmask","t1","lazy","t2","placeholder","t3","disabledValidation","t4","autoCompleteMask","t5","rest","undefined","touched","setTouched","useState","t6","Symbol","for","validationError","setValidationError","fieldErrors","errors","t7","raw","hasCnpjError","includes","isValid","CNPJValidation","onValidate","handleValidateCNPJ","t8","t9","t10","scale","radix","placeholderChar","mapToRadix","t11","imaskValue","___","event","onComplete","inputRef","value","unmaskedValue","setValue","t12","useIMask","onAccept","acceptValue","imask","event_0","valueToSet","onChange","target","name","t13","event_1","_","isEmpty","trim","length","currentValue","sizeMask","toString","repl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,QAAAgB,GAAAhB,QAAAgD,GAAAhD,QAAA+C,GAAA/C,QAAA4D,KAAAA,IAAA5D,EAAA,EAAA;AArBD,QAAA0E,IAAmBd;AAqBjB,MAAAe;AAAA,EAAA3E,UAAAF,EAAAiD,SAAA/C,UAAAiD,KAEQ0B,IAAAA,MAAA;AACR,IAAKb,EAACc,MAAO9E,GAAKiD,KAAO,KACvBE,EAASa,EAACM,SAAUtE,GAAKiD,KAAO,CAAC;AAAA,EAClC,GACF/C,EAAA,EAAA,IAAAF,EAAAiD,OAAA/C,QAAAiD,GAAAjD,QAAA2E,KAAAA,IAAA3E,EAAA,EAAA;AAAG,QAAA6E,IAAA/E,GAAKiD;AAAO,MAAA+B;AAAA,EAAA9E,UAAA6E,KAAbC,IAAA,CAACD,CAAY,GAAC7E,QAAA6E,GAAA7E,QAAA8E,KAAAA,IAAA9E,EAAA,EAAA,GAJjB+E,EAAUJ,GAIPG,CAAc;AAWO,QAAAE,IAAAlC;AAAuC,MAAAmC;AAAA,SAAAjF,EAAA,EAAA,MAAAD,KAAAC,UAAAgF,KAAtDC,IAAAC,EAAUnF,GAAKiF,CAAuC,GAAChF,QAAAD,GAAAC,QAAAgF,GAAAhF,QAAAiF,KAAAA,IAAAjF,EAAA,EAAA,6BAPxDc,GACC,MAAA,QACEiC,OAAAA,GACCvB,QAAAA,GACKhB,aAAAA,GACLkE,QAAAA,GACE,UAAAS,IACL,KAAAF,GAAuD;AAAI,CAErE;AAEDrF,GAAMwF,cAAc;AA5FuC,SAAAD,KAAA;AAAA;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MaskFieldProps } from './types';
|
|
3
|
+
interface CPFFieldProps extends MaskFieldProps {
|
|
4
|
+
disabledValidation?: boolean;
|
|
5
|
+
onValidate?: (errors: string[]) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const Input: React.ForwardRefExoticComponent<CPFFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
8
|
+
export { Input };
|
|
9
|
+
export type { CPFFieldProps };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { jsx as H } from "react/jsx-runtime";
|
|
2
|
+
import { c as J } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { forwardRef as K, useState as M, useEffect as O } from "react";
|
|
4
|
+
import P from "../../_virtual/lodash.js";
|
|
5
|
+
import "../../node_modules/imask/esm/index.js";
|
|
6
|
+
import "../../node_modules/imask/esm/controls/input.js";
|
|
7
|
+
import "../../node_modules/imask/esm/masked/factory.js";
|
|
8
|
+
import "../../node_modules/imask/esm/controls/mask-element.js";
|
|
9
|
+
import "../../node_modules/imask/esm/controls/html-input-mask-element.js";
|
|
10
|
+
import "../../node_modules/imask/esm/controls/html-mask-element.js";
|
|
11
|
+
import "../../node_modules/imask/esm/controls/html-contenteditable-mask-element.js";
|
|
12
|
+
import "../../node_modules/imask/esm/controls/input-history.js";
|
|
13
|
+
import "../../node_modules/react-imask/esm/input.js";
|
|
14
|
+
import Q from "../../node_modules/react-imask/esm/hook.js";
|
|
15
|
+
import "../../node_modules/react-imask/esm/mixin.js";
|
|
16
|
+
import { mergeRefs as U } from "../../form2/helpers.js";
|
|
17
|
+
import { Input as W } from "../textfield/index.js";
|
|
18
|
+
import { CPFValidation as X } from "./helpers.js";
|
|
19
|
+
const R = "CPF inválido", Y = K((e, y) => {
|
|
20
|
+
const t = J.c(26), {
|
|
21
|
+
mask: b,
|
|
22
|
+
unmask: A,
|
|
23
|
+
lazy: B,
|
|
24
|
+
placeholder: N,
|
|
25
|
+
disabledValidation: T,
|
|
26
|
+
...o
|
|
27
|
+
} = e, $ = b === void 0 ? "000.000.000-00" : b, j = A === void 0 ? !0 : A, I = B === void 0 ? !1 : B, w = N === void 0 ? "___.___.___-__" : N, S = T === void 0 ? !1 : T, [r, g] = M(!1);
|
|
28
|
+
let s;
|
|
29
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = [], t[0] = s) : s = t[0];
|
|
30
|
+
const [m, c] = M(s), D = [...m, ...o?.errors || []];
|
|
31
|
+
let f;
|
|
32
|
+
t[1] !== S || t[2] !== e || t[3] !== c || t[4] !== m ? (f = (i) => {
|
|
33
|
+
if (S)
|
|
34
|
+
return;
|
|
35
|
+
const a = m.includes(R), l = X(i);
|
|
36
|
+
!l && !a && (e?.onValidate?.([R]), c([R])), l && a && (e?.onValidate?.([]), c([]));
|
|
37
|
+
}, t[1] = S, t[2] = e, t[3] = c, t[4] = m, t[5] = f) : f = t[5];
|
|
38
|
+
const u = f, k = $;
|
|
39
|
+
let d;
|
|
40
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (d = [], t[6] = d) : d = t[6];
|
|
41
|
+
let _;
|
|
42
|
+
t[7] !== I || t[8] !== k ? (_ = {
|
|
43
|
+
mask: k,
|
|
44
|
+
lazy: I,
|
|
45
|
+
scale: 0,
|
|
46
|
+
radix: "",
|
|
47
|
+
placeholderChar: "_",
|
|
48
|
+
mapToRadix: d
|
|
49
|
+
}, t[7] = I, t[8] = k, t[9] = _) : _ = t[9];
|
|
50
|
+
let p;
|
|
51
|
+
t[10] !== o ? (p = (i, a, l) => {
|
|
52
|
+
o?.onComplete?.(i, l);
|
|
53
|
+
}, t[10] = o, t[11] = p) : p = t[11];
|
|
54
|
+
const {
|
|
55
|
+
ref: G,
|
|
56
|
+
value: n,
|
|
57
|
+
setValue: L
|
|
58
|
+
} = Q(_, {
|
|
59
|
+
onComplete: p,
|
|
60
|
+
onAccept: (i, a, l) => {
|
|
61
|
+
const z = j ? a.unmaskedValue : a.value;
|
|
62
|
+
o?.onAccept?.(z, l), v(i), e?.onChange?.({
|
|
63
|
+
...l,
|
|
64
|
+
target: {
|
|
65
|
+
...l?.target,
|
|
66
|
+
name: e?.name,
|
|
67
|
+
value: z
|
|
68
|
+
}
|
|
69
|
+
}), r && u(a.unmaskedValue);
|
|
70
|
+
}
|
|
71
|
+
}), v = L;
|
|
72
|
+
let h;
|
|
73
|
+
t[12] !== u || t[13] !== o || t[14] !== g || t[15] !== r || t[16] !== n ? (h = (i) => {
|
|
74
|
+
g(!0), !r && !P.isEmpty(n) && u(n), o?.onBlur?.(i);
|
|
75
|
+
}, t[12] = u, t[13] = o, t[14] = g, t[15] = r, t[16] = n, t[17] = h) : h = t[17];
|
|
76
|
+
const q = h;
|
|
77
|
+
let V;
|
|
78
|
+
t[18] !== e.value || t[19] !== v ? (V = () => {
|
|
79
|
+
P.isNil(e?.value) || v(P.toString(e?.value));
|
|
80
|
+
}, t[18] = e.value, t[19] = v, t[20] = V) : V = t[20];
|
|
81
|
+
const x = e?.value;
|
|
82
|
+
let C;
|
|
83
|
+
t[21] !== x ? (C = [x], t[21] = x, t[22] = C) : C = t[22], O(V, C);
|
|
84
|
+
const F = G;
|
|
85
|
+
let E;
|
|
86
|
+
return t[23] !== y || t[24] !== F ? (E = U(y, F), t[23] = y, t[24] = F, t[25] = E) : E = t[25], /* @__PURE__ */ H(W, { ...o, type: "text", value: n, errors: D, placeholder: w, onBlur: q, onChange: Z, ref: E });
|
|
87
|
+
});
|
|
88
|
+
Y.displayName = "CPFInputField";
|
|
89
|
+
function Z() {
|
|
90
|
+
}
|
|
91
|
+
export {
|
|
92
|
+
Y as Input
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=Cpf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cpf.js","sources":["../../../src/lib/inputs2/mask/Cpf.tsx"],"sourcesContent":["import React, { forwardRef, useEffect, useState } from 'react';\nimport _ from 'lodash';\nimport { useIMask } from 'react-imask';\nimport { mergeRefs } from '../../form2/helpers';\nimport * as TextField from '../textfield';\nimport type { MaskFieldProps } from './types';\nimport { CPFValidation } from './helpers';\n\ninterface CPFFieldProps extends MaskFieldProps {\n disabledValidation?: boolean;\n onValidate?: (errors: string[]) => void;\n}\n\nconst CPF_INVALID_MESSAGE = 'CPF inválido';\nconst Input = forwardRef<HTMLInputElement, CPFFieldProps>((props, ref) => {\n const { \n mask = '000.000.000-00', unmask = true, lazy = false, \n placeholder = '___.___.___-__', disabledValidation = false, ...rest\n } = props;\n const [touched, setTouched] = useState(false);\n const [validationError, setValidationError] = useState<string[]>([]);\n const fieldErrors = [...validationError, ...(rest?.errors || [])];\n\n const handleValidateCPF = (raw: string) => {\n if (disabledValidation) { return; }\n const hasCpfError = validationError.includes(CPF_INVALID_MESSAGE);\n const isValid = CPFValidation(raw);\n if (!isValid && !hasCpfError) {\n props?.onValidate?.([CPF_INVALID_MESSAGE]);\n setValidationError([CPF_INVALID_MESSAGE]);\n }\n if (isValid && hasCpfError) {\n props?.onValidate?.([]);\n setValidationError([]);\n }\n };\n\n const { ref: inputRef, value, setValue } = useIMask({\n mask: mask as string,\n lazy,\n scale: 0,\n radix: '',\n placeholderChar: '_',\n mapToRadix: [],\n }, {\n onComplete: (imaskValue, ___, event) => {\n rest?.onComplete?.(imaskValue, event);\n },\n onAccept: (acceptValue, imask, event) => {\n const valueToSet = unmask ? imask.unmaskedValue : imask.value;\n rest?.onAccept?.(valueToSet, event);\n setValue(acceptValue);\n props?.onChange?.({\n ...event,\n target: {\n ...event?.target,\n name: props?.name,\n value: valueToSet,\n },\n } as React.ChangeEvent<HTMLInputElement>);\n if (touched) { handleValidateCPF(imask.unmaskedValue); }\n },\n });\n\n const handleBlur = (event: React.FocusEvent<HTMLInputElement>) => {\n setTouched(true);\n if (!touched && !_.isEmpty(value)) { handleValidateCPF(value); }\n rest?.onBlur?.(event);\n };\n\n useEffect(() => {\n if (!_.isNil(props?.value)) { \n setValue(_.toString(props?.value)); \n }\n }, [props?.value]);\n\n return (\n <TextField.Input\n {...rest}\n type=\"text\"\n value={value}\n errors={fieldErrors}\n placeholder={placeholder}\n onBlur={handleBlur}\n onChange={() => { }}\n ref={mergeRefs(ref, inputRef as React.Ref<HTMLInputElement>)} />\n );\n});\n\nInput.displayName = 'CPFInputField';\nexport { Input };\nexport type { CPFFieldProps };\n"],"names":["CPF_INVALID_MESSAGE","Input","forwardRef","props","ref","$","_c","mask","t0","unmask","t1","lazy","t2","placeholder","t3","disabledValidation","t4","rest","undefined","touched","setTouched","useState","t5","Symbol","for","validationError","setValidationError","fieldErrors","errors","t6","raw","hasCpfError","includes","isValid","CPFValidation","onValidate","handleValidateCPF","t7","t8","t9","scale","radix","placeholderChar","mapToRadix","t10","imaskValue","___","event","onComplete","inputRef","value","setValue","t11","useIMask","onAccept","acceptValue","imask","event_0","valueToSet","unmaskedValue","onChange","target","name","t12","event_1","_","isEmpty","onBlur","handleBlur","t13","isNil","toString","t14","t15","useEffect","t16","t17","mergeRefs","_temp","displayName"],"mappings":";;;;;;;;;;;;;;;;;;AAaA,MAAMA,IAAsB,gBACtBC,IAAQC,EAA4C,CAAAC,GAAAC,MAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACxD;AAAA,IAAAC,MAAAC;AAAAA,IAAAC,QAAAC;AAAAA,IAAAC,MAAAC;AAAAA,IAAAC,aAAAC;AAAAA,IAAAC,oBAAAC;AAAAA,IAAA,GAAAC;AAAAA,EAAAA,IAGId,GAFFI,IAAAC,MAAAU,SAAA,mBAAAV,GAAyBC,IAAAC,MAAAQ,SAAA,KAAAR,GAAeC,IAAAC,MAAAM,SAAA,KAAAN,GACxCC,IAAAC,MAAAI,SAAA,mBAAAJ,GAAgCC,IAAAC,MAAAE,SAAA,KAAAF,GAElC,CAAAG,GAAAC,CAAA,IAA8BC,EAAS,EAAK;AAAE,MAAAC;AAAA,EAAAjB,EAAA,CAAA,MAAAkB,OAAAC,IAAA,2BAAA,KACmBF,IAAA,CAAA,GAAEjB,OAAAiB,KAAAA,IAAAjB,EAAA,CAAA;AAAnE,QAAA,CAAAoB,GAAAC,CAAA,IAA8CL,EAAmBC,CAAE,GACnEK,IAAoB,CAAA,GAAIF,GAAe,GAAMR,GAAIW,UAAJ,EAAkB;AAAG,MAAAC;AAAA,EAAAxB,EAAA,CAAA,MAAAU,KAAAV,EAAA,CAAA,MAAAF,KAA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;AAAA,EAAApE,UAAAmE,KAAbC,IAAA,CAACD,CAAY,GAACnE,QAAAmE,GAAAnE,QAAAoE,KAAAA,IAAApE,EAAA,EAAA,GAJjBqE,EAAUL,GAIPI,CAAc;AAWO,QAAAE,IAAA1B;AAAuC,MAAA2B;AAAA,SAAAvE,EAAA,EAAA,MAAAD,KAAAC,UAAAsE,KAAtDC,IAAAC,EAAUzE,GAAKuE,CAAuC,GAACtE,QAAAD,GAAAC,QAAAsE,GAAAtE,QAAAuE,KAAAA,IAAAvE,EAAA,EAAA,6BAPxDY,GACC,MAAA,QACEiC,OAAAA,GACCvB,QAAAA,GACKd,aAAAA,GACLuD,QAAAA,GACE,UAAAU,GACL,KAAAF,GAAuD;AAAI,CAErE;AAED3E,EAAM8E,cAAc;AA3EsC,SAAAD,IAAA;AAAA;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MaskFieldProps } from './types';
|
|
3
|
+
interface PhoneFieldProps extends MaskFieldProps {
|
|
4
|
+
isCellphone?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const Input: React.ForwardRefExoticComponent<PhoneFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
7
|
+
export { Input };
|
|
8
|
+
export type { PhoneFieldProps };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { c as f } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { forwardRef as k } from "react";
|
|
4
|
+
import { Input as v } from "./index.js";
|
|
5
|
+
const x = k((r, a) => {
|
|
6
|
+
const t = f.c(12);
|
|
7
|
+
let e, o, l, s, n;
|
|
8
|
+
t[0] !== r ? ({
|
|
9
|
+
mask: o,
|
|
10
|
+
unmask: l,
|
|
11
|
+
placeholder: s,
|
|
12
|
+
isCellphone: n,
|
|
13
|
+
...e
|
|
14
|
+
} = r, t[0] = r, t[1] = e, t[2] = o, t[3] = l, t[4] = s, t[5] = n) : (e = t[1], o = t[2], l = t[3], s = t[4], n = t[5]);
|
|
15
|
+
const d = o === void 0 ? "(00) 0000-0000" : o, i = l === void 0 ? !0 : l, h = s === void 0 ? "(__) ____-____" : s, c = n === void 0 ? !1 : n, m = c ? "(00) 00000-0000" : d, p = c ? "(__) _____-____" : h;
|
|
16
|
+
let _;
|
|
17
|
+
return t[6] !== m || t[7] !== p || t[8] !== a || t[9] !== e || t[10] !== i ? (_ = /* @__PURE__ */ u(v, { ...e, ref: a, type: "text", mask: m, unmask: i, placeholder: p }), t[6] = m, t[7] = p, t[8] = a, t[9] = e, t[10] = i, t[11] = _) : _ = t[11], _;
|
|
18
|
+
});
|
|
19
|
+
x.displayName = "PhoneInputField";
|
|
20
|
+
export {
|
|
21
|
+
x as Input
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=Phone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Phone.js","sources":["../../../src/lib/inputs2/mask/Phone.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport * as MaskField from './index';\nimport type { MaskFieldProps } from './types';\n\ninterface PhoneFieldProps extends MaskFieldProps {\n isCellphone?: boolean;\n}\n\nconst Input = forwardRef<HTMLInputElement, PhoneFieldProps>((props, ref) => {\n const { \n mask = '(00) 0000-0000', unmask = true, placeholder = '(__) ____-____', \n isCellphone = false, ...rest\n } = props;\n const phoneMask = isCellphone ? '(00) 00000-0000' : mask;\n const phonePlaceholder = isCellphone ? '(__) _____-____' : placeholder;\n\n return (\n <MaskField.Input\n {...rest}\n ref={ref}\n type=\"text\"\n mask={phoneMask}\n unmask={unmask}\n placeholder={phonePlaceholder} />\n );\n});\n\nInput.displayName = 'PhoneInputField';\nexport { Input };\nexport type { PhoneFieldProps };\n"],"names":["Input","forwardRef","props","ref","$","_c","rest","t0","t1","t2","t3","mask","unmask","placeholder","isCellphone","undefined","phoneMask","phonePlaceholder","t4","jsx","MaskField.Input","displayName"],"mappings":";;;;AA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FieldProps } from './types';
|
|
3
|
+
interface ZipCodeFieldProps extends MaskFieldProps {
|
|
4
|
+
}
|
|
5
|
+
declare const Input: React.ForwardRefExoticComponent<ZipCodeFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
export { Input };
|
|
7
|
+
export type { ZipCodeFieldProps };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as d } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import { forwardRef as u } from "react";
|
|
4
|
+
import { Input as _ } from "./index.js";
|
|
5
|
+
const f = u((i, l) => {
|
|
6
|
+
const t = d.c(11);
|
|
7
|
+
let e, o, m, r;
|
|
8
|
+
t[0] !== i ? ({
|
|
9
|
+
mask: o,
|
|
10
|
+
unmask: m,
|
|
11
|
+
placeholder: r,
|
|
12
|
+
...e
|
|
13
|
+
} = i, t[0] = i, t[1] = e, t[2] = o, t[3] = m, t[4] = r) : (e = t[1], o = t[2], m = t[3], r = t[4]);
|
|
14
|
+
const n = o === void 0 ? "00000-000" : o, p = m === void 0 ? !0 : m, a = r === void 0 ? "_____-___" : r;
|
|
15
|
+
let s;
|
|
16
|
+
return t[5] !== n || t[6] !== a || t[7] !== l || t[8] !== e || t[9] !== p ? (s = /* @__PURE__ */ c(_, { ...e, ref: l, type: "text", mask: n, unmask: p, placeholder: a }), t[5] = n, t[6] = a, t[7] = l, t[8] = e, t[9] = p, t[10] = s) : s = t[10], s;
|
|
17
|
+
});
|
|
18
|
+
f.displayName = "ZipCodeInputField";
|
|
19
|
+
export {
|
|
20
|
+
f as Input
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=ZipCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZipCode.js","sources":["../../../src/lib/inputs2/mask/ZipCode.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport * as MaskField from './index';\nimport type { MaskFieldProps } from './types';\n\ninterface ZipCodeFieldProps extends MaskFieldProps { }\n\nconst Input = forwardRef<HTMLInputElement, ZipCodeFieldProps>((props, ref) => {\n const { \n mask = '00000-000', unmask = true, placeholder = '_____-___', ...rest\n } = props;\n\n return (\n <MaskField.Input\n {...rest}\n ref={ref}\n type=\"text\"\n mask={mask}\n unmask={unmask}\n placeholder={placeholder} />\n );\n});\n\nInput.displayName = 'ZipCodeInputField';\nexport { Input };\nexport type { ZipCodeFieldProps };\n"],"names":["Input","forwardRef","props","ref","$","_c","rest","t0","t1","t2","mask","unmask","placeholder","undefined","t3","jsx","MaskField.Input","displayName"],"mappings":";;;;AAMA,MAAMA,IAAQC,EAAgD,CAAAC,GAAAC,MAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA;AAAA,MAAAC,GAAAC,GAAAC,GAAAC;AAAA,EAAAL,SAAAF,KAC5D;AAAA,IAAAQ,MAAAH;AAAAA,IAAAI,QAAAH;AAAAA,IAAAI,aAAAH;AAAAA,IAAA,GAAAH;AAAAA,EAAAA,IAEIJ,GAAME,OAAAF,GAAAE,OAAAE,GAAAF,OAAAG,GAAAH,OAAAI,GAAAJ,OAAAK,MAAAH,IAAAF,EAAA,CAAA,GAAAG,IAAAH,EAAA,CAAA,GAAAI,IAAAJ,EAAA,CAAA,GAAAK,IAAAL,EAAA,CAAA;AADR,QAAAM,IAAAH,MAAAM,SAAA,cAAAN,GAAoBI,IAAAH,MAAAK,SAAA,KAAAL,GAAeI,IAAAH,MAAAI,SAAA,cAAAJ;AAAyB,MAAAK;AAAA,SAAAV,EAAA,CAAA,MAAAM,KAAAN,EAAA,CAAA,MAAAQ,KAAAR,EAAA,CAAA,MAAAD,KAAAC,EAAA,CAAA,MAAAE,KAAAF,SAAAO,KAI5DG,IAAA,gBAAAC,EAAAC,GAAA,EAAA,GACMV,GACCH,KAAAA,GACA,MAAA,QACCO,MAAAA,GACEC,QAAAA,GACKC,aAAAA,EAAAA,CAAW,GAAIR,OAAAM,GAAAN,OAAAQ,GAAAR,OAAAD,GAAAC,OAAAE,GAAAF,OAAAO,GAAAP,QAAAU,KAAAA,IAAAV,EAAA,EAAA,GAN9BU;AAM8B,CAEjC;AAEDd,EAAMiB,cAAc;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { l as f } from "../../_virtual/lodash.js";
|
|
2
|
+
const o = (n) => n.split("").every((t) => t === n[0]);
|
|
3
|
+
function c(n) {
|
|
4
|
+
const t = n ? n.replace(/[^\d]+/g, "") : "";
|
|
5
|
+
let r = 0, e;
|
|
6
|
+
if (t === "" || t.length < 11 || o(t)) return !1;
|
|
7
|
+
for (let s = 0; s < 9; s++)
|
|
8
|
+
r += f.parseInt(t.charAt(s), 10) * (10 - s);
|
|
9
|
+
if (e = r * 10 % 11, (e === 10 || e === 11) && (e = 0), e !== f.parseInt(t.charAt(9), 10)) return !1;
|
|
10
|
+
r = 0;
|
|
11
|
+
for (let s = 0; s < 10; s++)
|
|
12
|
+
r += f.parseInt(t.charAt(s), 10) * (11 - s);
|
|
13
|
+
return e = r * 10 % 11, (e === 10 || e === 11) && (e = 0), e === f.parseInt(t.charAt(10), 10);
|
|
14
|
+
}
|
|
15
|
+
function h(n) {
|
|
16
|
+
const t = n ? n.replace(/[^\d]+/g, "") : "";
|
|
17
|
+
if (t === "" || t.length !== 14 || o(t)) return !1;
|
|
18
|
+
let r = t.length - 2, e = t.substring(0, r);
|
|
19
|
+
const s = t.substring(r);
|
|
20
|
+
let i = 0, l = r - 7;
|
|
21
|
+
for (let a = r; a >= 1; a--)
|
|
22
|
+
i += f.parseInt(e.charAt(r - a), 10) * l--, l < 2 && (l = 9);
|
|
23
|
+
let u = i % 11 < 2 ? 0 : 11 - i % 11;
|
|
24
|
+
if (u.toString() !== s.charAt(0)) return !1;
|
|
25
|
+
r += 1, e = t.substring(0, r), i = 0, l = r - 7;
|
|
26
|
+
for (let a = r; a >= 1; a--)
|
|
27
|
+
i += f.parseInt(e.charAt(r - a), 10) * l--, l < 2 && (l = 9);
|
|
28
|
+
return u = i % 11 < 2 ? 0 : 11 - i % 11, u.toString() === s.charAt(1);
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
h as CNPJValidation,
|
|
32
|
+
c as CPFValidation
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sources":["../../../src/lib/inputs2/mask/helpers.ts"],"sourcesContent":["import { parseInt } from 'lodash';\n\nconst allEqualDigits = (input: string) => input.split('').every(char => char === input[0]);\n\nexport function CPFValidation(cpf?: string): boolean {\n const stringCpf = cpf ? cpf.replace(/[^\\d]+/g, '') : '';\n let sum = 0;\n let split;\n\n if (stringCpf === '' || stringCpf.length < 11) return false;\n if (allEqualDigits(stringCpf)) return false;\n\n for (let i = 0; i < 9; i++) {\n sum += parseInt(stringCpf.charAt(i), 10) * (10 - i);\n }\n split = (sum * 10) % 11;\n if (split === 10 || split === 11) split = 0;\n if (split !== parseInt(stringCpf.charAt(9), 10)) return false;\n\n sum = 0;\n for (let i = 0; i < 10; i++) {\n sum += parseInt(stringCpf.charAt(i), 10) * (11 - i);\n }\n split = (sum * 10) % 11;\n if (split === 10 || split === 11) split = 0;\n if (split !== parseInt(stringCpf.charAt(10), 10)) return false;\n\n return true;\n}\n\nexport function CNPJValidation(cnpj?: string): boolean {\n const stringCnpj = cnpj ? cnpj.replace(/[^\\d]+/g, '') : '';\n\n if (stringCnpj === '' || stringCnpj.length !== 14) return false;\n if (allEqualDigits(stringCnpj)) return false;\n\n let length = stringCnpj.length - 2;\n let numbers = stringCnpj.substring(0, length);\n const digits = stringCnpj.substring(length);\n let sum = 0;\n let pos = length - 7;\n\n for (let i = length; i >= 1; i--) {\n sum += parseInt(numbers.charAt(length - i), 10) * pos--;\n if (pos < 2) pos = 9;\n }\n\n let result = sum % 11 < 2 ? 0 : 11 - (sum % 11);\n if (result.toString() !== digits.charAt(0)) return false;\n\n length += 1;\n numbers = stringCnpj.substring(0, length);\n sum = 0;\n pos = length - 7;\n\n for (let i = length; i >= 1; i--) {\n sum += parseInt(numbers.charAt(length - i), 10) * pos--;\n if (pos < 2) pos = 9;\n }\n\n result = sum % 11 < 2 ? 0 : 11 - (sum % 11);\n if (result.toString() !== digits.charAt(1)) return false;\n\n return true;\n}\n"],"names":["allEqualDigits","input","split","every","char","CPFValidation","cpf","stringCpf","replace","sum","length","i","parseInt","charAt","CNPJValidation","cnpj","stringCnpj","numbers","substring","digits","pos","result","toString"],"mappings":";AAEA,MAAMA,IAAiBA,CAACC,MAAkBA,EAAMC,MAAM,EAAE,EAAEC,MAAMC,CAAAA,MAAQA,MAASH,EAAM,CAAC,CAAC;AAElF,SAASI,EAAcC,GAAuB;AACnD,QAAMC,IAAYD,IAAMA,EAAIE,QAAQ,WAAW,EAAE,IAAI;AACrD,MAAIC,IAAM,GACNP;AAGJ,MADIK,MAAc,MAAMA,EAAUG,SAAS,MACvCV,EAAeO,CAAS,EAAG,QAAO;AAEtC,WAASI,IAAI,GAAGA,IAAI,GAAGA;AACrBF,IAAAA,KAAOG,EAAAA,SAASL,EAAUM,OAAOF,CAAC,GAAG,EAAE,KAAK,KAAKA;AAInD,MAFAT,IAASO,IAAM,KAAM,KACjBP,MAAU,MAAMA,MAAU,QAAIA,IAAQ,IACtCA,MAAUU,EAAAA,SAASL,EAAUM,OAAO,CAAC,GAAG,EAAE,EAAG,QAAO;AAExDJ,EAAAA,IAAM;AACN,WAASE,IAAI,GAAGA,IAAI,IAAIA;AACtBF,IAAAA,KAAOG,EAAAA,SAASL,EAAUM,OAAOF,CAAC,GAAG,EAAE,KAAK,KAAKA;AAInD,SAFAT,IAASO,IAAM,KAAM,KACjBP,MAAU,MAAMA,MAAU,QAAIA,IAAQ,IACtCA,MAAUU,EAAAA,SAASL,EAAUM,OAAO,EAAE,GAAG,EAAE;AAGjD;AAEO,SAASC,EAAeC,GAAwB;AACrD,QAAMC,IAAaD,IAAOA,EAAKP,QAAQ,WAAW,EAAE,IAAI;AAGxD,MADIQ,MAAe,MAAMA,EAAWN,WAAW,MAC3CV,EAAegB,CAAU,EAAG,QAAO;AAEvC,MAAIN,IAASM,EAAWN,SAAS,GAC7BO,IAAUD,EAAWE,UAAU,GAAGR,CAAM;AAC5C,QAAMS,IAASH,EAAWE,UAAUR,CAAM;AAC1C,MAAID,IAAM,GACNW,IAAMV,IAAS;AAEnB,WAASC,IAAID,GAAQC,KAAK,GAAGA;AAC3BF,IAAAA,KAAOG,EAAAA,SAASK,EAAQJ,OAAOH,IAASC,CAAC,GAAG,EAAE,IAAIS,KAC9CA,IAAM,MAAGA,IAAM;AAGrB,MAAIC,IAASZ,IAAM,KAAK,IAAI,IAAI,KAAMA,IAAM;AAC5C,MAAIY,EAAOC,eAAeH,EAAON,OAAO,CAAC,EAAG,QAAO;AAEnDH,EAAAA,KAAU,GACVO,IAAUD,EAAWE,UAAU,GAAGR,CAAM,GACxCD,IAAM,GACNW,IAAMV,IAAS;AAEf,WAASC,IAAID,GAAQC,KAAK,GAAGA;AAC3BF,IAAAA,KAAOG,EAAAA,SAASK,EAAQJ,OAAOH,IAASC,CAAC,GAAG,EAAE,IAAIS,KAC9CA,IAAM,MAAGA,IAAM;AAIrB,SADAC,IAASZ,IAAM,KAAK,IAAI,IAAI,KAAMA,IAAM,IACpCY,EAAOC,eAAeH,EAAON,OAAO,CAAC;AAG3C;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MaskFieldProps } from './types';
|
|
3
|
+
import * as TextField from '../textfield';
|
|
4
|
+
declare const Input: React.ForwardRefExoticComponent<TextField.TextFieldInputProps & import('./types').IMaskOptions & React.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export { Input };
|
|
6
|
+
export type { MaskFieldProps };
|