linear-react-components-ui 2.0.0-beta.0 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -6
- package/lib/@types/Align.d.ts +0 -2
- package/lib/@types/ButtonTypes.d.ts +0 -1
- package/lib/@types/ColorStyles.d.ts +0 -2
- package/lib/@types/DataCombo.d.ts +0 -1
- package/lib/@types/Icon.d.ts +0 -2
- package/lib/@types/LabelStyles.d.ts +0 -1
- package/lib/@types/Period.d.ts +0 -4
- package/lib/@types/PermissionAttr.d.ts +0 -12
- package/lib/@types/PointerEvents.d.ts +0 -1
- package/lib/@types/Position.d.ts +0 -2
- package/lib/@types/PositionAlert.d.ts +0 -1
- package/lib/@types/Size.d.ts +0 -1
- package/lib/@types/SizePixels.d.ts +0 -1
- package/lib/@types/StorageMock.d.ts +0 -3
- package/lib/_virtual/_rolldown/runtime.js +0 -23
- package/lib/alerts/AlertContainer.d.ts +0 -12
- package/lib/alerts/AlertContainer.js +0 -69
- package/lib/alerts/AlertContainer.js.map +0 -1
- package/lib/alerts/AlertProvider.d.ts +0 -3
- package/lib/alerts/AlertProvider.js +0 -47
- package/lib/alerts/AlertProvider.js.map +0 -1
- package/lib/alerts/BaseAlert.d.ts +0 -3
- package/lib/alerts/BaseAlert.js +0 -20
- package/lib/alerts/BaseAlert.js.map +0 -1
- package/lib/alerts/Message.d.ts +0 -3
- package/lib/alerts/Message.js +0 -90
- package/lib/alerts/Message.js.map +0 -1
- package/lib/alerts/helpers.d.ts +0 -3
- package/lib/alerts/helpers.js +0 -7
- package/lib/alerts/helpers.js.map +0 -1
- package/lib/alerts/index.d.ts +0 -4
- package/lib/alerts/index.js +0 -8
- package/lib/alerts/index.js.map +0 -1
- package/lib/alerts/types.d.ts +0 -47
- package/lib/alerts/withAlert.d.ts +0 -4
- package/lib/alerts/withAlert.js +0 -16
- package/lib/alerts/withAlert.js.map +0 -1
- package/lib/assets/styles/alerts.css +0 -1
- package/lib/assets/styles/avatar.css +0 -1
- package/lib/assets/styles/badge.css +0 -1
- package/lib/assets/styles/button.css +0 -1
- package/lib/assets/styles/calendar.css +0 -1
- package/lib/assets/styles/checkbox.css +0 -1
- package/lib/assets/styles/checkbox2.css +0 -1
- package/lib/assets/styles/colorpicker.css +0 -1
- package/lib/assets/styles/datepicker.css +0 -1
- package/lib/assets/styles/datepicker2.css +0 -1
- package/lib/assets/styles/dialog.css +0 -1
- package/lib/assets/styles/drawers.css +0 -1
- package/lib/assets/styles/dropdown.css +0 -1
- package/lib/assets/styles/error.css +0 -1
- package/lib/assets/styles/fieldset.css +0 -1
- package/lib/assets/styles/file.css +0 -1
- package/lib/assets/styles/filefield.css +0 -1
- package/lib/assets/styles/floatMenu.css +0 -1
- package/lib/assets/styles/form.css +0 -1
- package/lib/assets/styles/gridlayout.css +0 -1
- package/lib/assets/styles/hint.css +0 -1
- package/lib/assets/styles/icon.css +0 -1
- package/lib/assets/styles/input.css +0 -1
- package/lib/assets/styles/label.css +0 -1
- package/lib/assets/styles/labelMessages.css +0 -1
- package/lib/assets/styles/list.css +0 -1
- package/lib/assets/styles/multiSelect.css +0 -1
- package/lib/assets/styles/noPermission.css +0 -1
- package/lib/assets/styles/numberfield.css +0 -1
- package/lib/assets/styles/numbers.css +0 -1
- package/lib/assets/styles/panel.css +0 -1
- package/lib/assets/styles/periodpicker.css +0 -1
- package/lib/assets/styles/popover.css +0 -1
- package/lib/assets/styles/progress.css +0 -1
- package/lib/assets/styles/radio.css +0 -1
- package/lib/assets/styles/radiofield.css +0 -1
- package/lib/assets/styles/search.css +0 -1
- package/lib/assets/styles/select.css +0 -1
- package/lib/assets/styles/selectfield.css +0 -1
- package/lib/assets/styles/shortcuts.css +0 -1
- package/lib/assets/styles/sidenav.css +0 -1
- package/lib/assets/styles/skeleton.css +0 -1
- package/lib/assets/styles/slot.css +0 -1
- package/lib/assets/styles/spinner.css +0 -1
- package/lib/assets/styles/split.css +0 -1
- package/lib/assets/styles/table.css +0 -1
- package/lib/assets/styles/tabs.css +0 -1
- package/lib/assets/styles/textContent.css +0 -1
- package/lib/assets/styles/textfield.css +0 -1
- package/lib/assets/styles/toolbar.css +0 -1
- package/lib/assets/styles/tooltip.css +0 -1
- package/lib/assets/styles/treetable.css +0 -1
- package/lib/assets/styles/treeview.css +0 -1
- package/lib/assets/styles/uitour.css +0 -1
- package/lib/assets/styles/wizard.css +0 -1
- package/lib/avatar/index.d.ts +0 -6
- package/lib/avatar/index.js +0 -51
- package/lib/avatar/index.js.map +0 -1
- package/lib/avatar/types.d.ts +0 -27
- package/lib/badge/index.d.ts +0 -3
- package/lib/badge/index.js +0 -21
- package/lib/badge/index.js.map +0 -1
- package/lib/badge/types.d.ts +0 -10
- package/lib/buttons/ActivateButton.d.ts +0 -3
- package/lib/buttons/ActivateButton.js +0 -11
- package/lib/buttons/ActivateButton.js.map +0 -1
- package/lib/buttons/AddButton.d.ts +0 -3
- package/lib/buttons/AddButton.js +0 -15
- package/lib/buttons/AddButton.js.map +0 -1
- package/lib/buttons/Button.d.ts +0 -6
- package/lib/buttons/Button.js +0 -10
- package/lib/buttons/Button.js.map +0 -1
- package/lib/buttons/ButtonGroups.d.ts +0 -6
- package/lib/buttons/CancelButton.d.ts +0 -3
- package/lib/buttons/CancelButton.js +0 -11
- package/lib/buttons/CancelButton.js.map +0 -1
- package/lib/buttons/DangerButton.d.ts +0 -3
- package/lib/buttons/DangerButton.js +0 -11
- package/lib/buttons/DangerButton.js.map +0 -1
- package/lib/buttons/DefaultButton.d.ts +0 -6
- package/lib/buttons/DefaultButton.js +0 -108
- package/lib/buttons/DefaultButton.js.map +0 -1
- package/lib/buttons/DestroyButton.d.ts +0 -3
- package/lib/buttons/DestroyButton.js +0 -15
- package/lib/buttons/DestroyButton.js.map +0 -1
- package/lib/buttons/EditButton.d.ts +0 -3
- package/lib/buttons/EditButton.js +0 -11
- package/lib/buttons/EditButton.js.map +0 -1
- package/lib/buttons/InactivateButton.d.ts +0 -3
- package/lib/buttons/InactivateButton.js +0 -11
- package/lib/buttons/InactivateButton.js.map +0 -1
- package/lib/buttons/InfoButton.d.ts +0 -3
- package/lib/buttons/InfoButton.js +0 -11
- package/lib/buttons/InfoButton.js.map +0 -1
- package/lib/buttons/PrimaryButton.d.ts +0 -3
- package/lib/buttons/PrimaryButton.js +0 -11
- package/lib/buttons/PrimaryButton.js.map +0 -1
- package/lib/buttons/RestoreButton.d.ts +0 -3
- package/lib/buttons/RestoreButton.js +0 -11
- package/lib/buttons/RestoreButton.js.map +0 -1
- package/lib/buttons/SaveButton.d.ts +0 -3
- package/lib/buttons/SaveButton.js +0 -11
- package/lib/buttons/SaveButton.js.map +0 -1
- package/lib/buttons/SuccessButton.d.ts +0 -3
- package/lib/buttons/SuccessButton.js +0 -11
- package/lib/buttons/SuccessButton.js.map +0 -1
- package/lib/buttons/WarningButton.d.ts +0 -3
- package/lib/buttons/WarningButton.js +0 -11
- package/lib/buttons/WarningButton.js.map +0 -1
- package/lib/buttons/button_container/index.d.ts +0 -10
- package/lib/buttons/button_container/index.js +0 -15
- package/lib/buttons/button_container/index.js.map +0 -1
- package/lib/buttons/index.d.ts +0 -17
- package/lib/buttons/index.js +0 -22
- package/lib/buttons/index.js.map +0 -1
- package/lib/buttons/split_button/index.d.ts +0 -3
- package/lib/buttons/split_button/index.js +0 -50
- package/lib/buttons/split_button/index.js.map +0 -1
- package/lib/buttons/types.d.ts +0 -46
- package/lib/calendar/DangerCalendar.d.ts +0 -3
- package/lib/calendar/DangerCalendar.js +0 -11
- package/lib/calendar/DangerCalendar.js.map +0 -1
- package/lib/calendar/InfoCalendar.d.ts +0 -3
- package/lib/calendar/InfoCalendar.js +0 -11
- package/lib/calendar/InfoCalendar.js.map +0 -1
- package/lib/calendar/PrimaryCalendar.d.ts +0 -3
- package/lib/calendar/PrimaryCalendar.js +0 -11
- package/lib/calendar/PrimaryCalendar.js.map +0 -1
- package/lib/calendar/SuccessCalendar.d.ts +0 -3
- package/lib/calendar/SuccessCalendar.js +0 -11
- package/lib/calendar/SuccessCalendar.js.map +0 -1
- package/lib/calendar/WarningCalendar.d.ts +0 -3
- package/lib/calendar/WarningCalendar.js +0 -11
- package/lib/calendar/WarningCalendar.js.map +0 -1
- package/lib/calendar/base/helpers.d.ts +0 -58
- package/lib/calendar/base/helpers.js +0 -41
- package/lib/calendar/base/helpers.js.map +0 -1
- package/lib/calendar/base/index.d.ts +0 -3
- package/lib/calendar/base/index.js +0 -138
- package/lib/calendar/base/index.js.map +0 -1
- package/lib/calendar/index.d.ts +0 -8
- package/lib/calendar/index.js +0 -12
- package/lib/calendar/index.js.map +0 -1
- package/lib/calendar/types.d.ts +0 -27
- package/lib/checkbox/index.d.ts +0 -8
- package/lib/checkbox/index.js +0 -111
- package/lib/checkbox/index.js.map +0 -1
- package/lib/checkbox/types.d.ts +0 -46
- package/lib/dialog/Alert.d.ts +0 -3
- package/lib/dialog/Alert.js +0 -24
- package/lib/dialog/Alert.js.map +0 -1
- package/lib/dialog/Custom.d.ts +0 -3
- package/lib/dialog/Custom.js +0 -49
- package/lib/dialog/Custom.js.map +0 -1
- package/lib/dialog/Error.d.ts +0 -3
- package/lib/dialog/Error.js +0 -24
- package/lib/dialog/Error.js.map +0 -1
- package/lib/dialog/Information.d.ts +0 -3
- package/lib/dialog/Information.js +0 -24
- package/lib/dialog/Information.js.map +0 -1
- package/lib/dialog/Question.d.ts +0 -3
- package/lib/dialog/Question.js +0 -48
- package/lib/dialog/Question.js.map +0 -1
- package/lib/dialog/Warning.d.ts +0 -3
- package/lib/dialog/Warning.js +0 -24
- package/lib/dialog/Warning.js.map +0 -1
- package/lib/dialog/base/Content.d.ts +0 -3
- package/lib/dialog/base/Content.js +0 -14
- package/lib/dialog/base/Content.js.map +0 -1
- package/lib/dialog/base/Footer.d.ts +0 -3
- package/lib/dialog/base/Footer.js +0 -10
- package/lib/dialog/base/Footer.js.map +0 -1
- package/lib/dialog/base/Header.d.ts +0 -3
- package/lib/dialog/base/Header.js +0 -42
- package/lib/dialog/base/Header.js.map +0 -1
- package/lib/dialog/base/index.d.ts +0 -13
- package/lib/dialog/base/index.js +0 -104
- package/lib/dialog/base/index.js.map +0 -1
- package/lib/dialog/base/style.d.ts +0 -7
- package/lib/dialog/base/style.js +0 -11
- package/lib/dialog/base/style.js.map +0 -1
- package/lib/dialog/form/index.d.ts +0 -4
- package/lib/dialog/form/index.js +0 -89
- package/lib/dialog/form/index.js.map +0 -1
- package/lib/dialog/index.d.ts +0 -9
- package/lib/dialog/index.js +0 -13
- package/lib/dialog/index.js.map +0 -1
- package/lib/dialog/types.d.ts +0 -113
- package/lib/dialog/wizard/index.d.ts +0 -8
- package/lib/dialog/wizard/index.js +0 -46
- package/lib/dialog/wizard/index.js.map +0 -1
- package/lib/dialog/wizard/progressbar.d.ts +0 -11
- package/lib/dialog/wizard/progressbar.js +0 -38
- package/lib/dialog/wizard/progressbar.js.map +0 -1
- package/lib/dialog/wizard/step.d.ts +0 -2
- package/lib/dialog/wizard/step.js +0 -19
- package/lib/dialog/wizard/step.js.map +0 -1
- package/lib/dialog/wizard/useWizard.d.ts +0 -2
- package/lib/dialog/wizard/useWizard.js +0 -43
- package/lib/dialog/wizard/useWizard.js.map +0 -1
- package/lib/drawer/Content.d.ts +0 -3
- package/lib/drawer/Content.js +0 -18
- package/lib/drawer/Content.js.map +0 -1
- package/lib/drawer/Drawer.d.ts +0 -3
- package/lib/drawer/Drawer.js +0 -76
- package/lib/drawer/Drawer.js.map +0 -1
- package/lib/drawer/Header.d.ts +0 -3
- package/lib/drawer/Header.js +0 -60
- package/lib/drawer/Header.js.map +0 -1
- package/lib/drawer/helpers.d.ts +0 -3
- package/lib/drawer/helpers.js +0 -7
- package/lib/drawer/helpers.js.map +0 -1
- package/lib/drawer/index.d.ts +0 -5
- package/lib/drawer/index.js +0 -11
- package/lib/drawer/index.js.map +0 -1
- package/lib/drawer/types.d.ts +0 -38
- package/lib/dropdown/Popup.d.ts +0 -3
- package/lib/dropdown/Popup.js +0 -36
- package/lib/dropdown/Popup.js.map +0 -1
- package/lib/dropdown/helper.d.ts +0 -2
- package/lib/dropdown/index.d.ts +0 -3
- package/lib/dropdown/index.js +0 -7
- package/lib/dropdown/index.js.map +0 -1
- package/lib/dropdown/types.d.ts +0 -45
- package/lib/dropdown/withDropdown.d.ts +0 -9
- package/lib/dropdown/withDropdown.js +0 -51
- package/lib/dropdown/withDropdown.js.map +0 -1
- package/lib/fieldset/index.d.ts +0 -3
- package/lib/fieldset/index.js +0 -51
- package/lib/fieldset/index.js.map +0 -1
- package/lib/fieldset/types.d.ts +0 -27
- package/lib/form/Field.d.ts +0 -2
- package/lib/form/Field.js +0 -84
- package/lib/form/Field.js.map +0 -1
- package/lib/form/FieldArray.d.ts +0 -2
- package/lib/form/FieldArray.js +0 -69
- package/lib/form/FieldArray.js.map +0 -1
- package/lib/form/FieldNumber.d.ts +0 -2
- package/lib/form/FieldNumber.js +0 -47
- package/lib/form/FieldNumber.js.map +0 -1
- package/lib/form/FieldPeriod.d.ts +0 -2
- package/lib/form/FieldPeriod.js +0 -67
- package/lib/form/FieldPeriod.js.map +0 -1
- package/lib/form/helpers.d.ts +0 -11
- package/lib/form/helpers.js +0 -18
- package/lib/form/helpers.js.map +0 -1
- package/lib/form/index.d.ts +0 -8
- package/lib/form/index.js +0 -148
- package/lib/form/index.js.map +0 -1
- package/lib/form/types.d.ts +0 -245
- package/lib/form/withFieldHOC.d.ts +0 -4
- package/lib/form/withFieldHOC.js +0 -62
- package/lib/form/withFieldHOC.js.map +0 -1
- package/lib/form/withFormSecurity.d.ts +0 -6
- package/lib/form/withFormSecurity.js +0 -34
- package/lib/form/withFormSecurity.js.map +0 -1
- package/lib/form2/helpers.d.ts +0 -5
- package/lib/form2/helpers.js +0 -22
- package/lib/form2/helpers.js.map +0 -1
- package/lib/form2/index.d.ts +0 -7
- package/lib/form2/index.js +0 -20
- package/lib/form2/index.js.map +0 -1
- package/lib/form2/types.d.ts +0 -133
- package/lib/form2/useForm/index.d.ts +0 -3
- package/lib/form2/useForm/index.js +0 -122
- package/lib/form2/useForm/index.js.map +0 -1
- package/lib/gridlayout/GridCol.d.ts +0 -3
- package/lib/gridlayout/GridCol.js +0 -18
- package/lib/gridlayout/GridCol.js.map +0 -1
- package/lib/gridlayout/GridRow.d.ts +0 -3
- package/lib/gridlayout/GridRow.js +0 -21
- package/lib/gridlayout/GridRow.js.map +0 -1
- package/lib/gridlayout/index.d.ts +0 -4
- package/lib/gridlayout/index.js +0 -8
- package/lib/gridlayout/index.js.map +0 -1
- package/lib/gridlayout/types.d.ts +0 -17
- package/lib/hint/helpers.d.ts +0 -1
- package/lib/hint/helpers.js +0 -14
- package/lib/hint/helpers.js.map +0 -1
- package/lib/hint/index.d.ts +0 -3
- package/lib/hint/index.js +0 -23
- package/lib/hint/index.js.map +0 -1
- package/lib/hint/types.d.ts +0 -11
- package/lib/icons/helper.d.ts +0 -667
- package/lib/icons/helper.js +0 -863
- package/lib/icons/helper.js.map +0 -1
- package/lib/icons/index.d.ts +0 -3
- package/lib/icons/index.js +0 -45
- package/lib/icons/index.js.map +0 -1
- package/lib/icons/types.d.ts +0 -42
- package/lib/index.d.ts +0 -10
- package/lib/index.js +0 -10
- package/lib/inputs/base/InputTextBase.d.ts +0 -3
- package/lib/inputs/base/InputTextBase.js +0 -198
- package/lib/inputs/base/InputTextBase.js.map +0 -1
- package/lib/inputs/base/helpers.d.ts +0 -10
- package/lib/inputs/base/helpers.js +0 -19
- package/lib/inputs/base/helpers.js.map +0 -1
- package/lib/inputs/base/types.d.ts +0 -88
- package/lib/inputs/color/index.d.ts +0 -3
- package/lib/inputs/color/index.js +0 -59
- package/lib/inputs/color/index.js.map +0 -1
- package/lib/inputs/color/types.d.ts +0 -16
- package/lib/inputs/date/Dialog.d.ts +0 -3
- package/lib/inputs/date/Dialog.js +0 -17
- package/lib/inputs/date/Dialog.js.map +0 -1
- package/lib/inputs/date/Dropdown.d.ts +0 -3
- package/lib/inputs/date/Dropdown.js +0 -15
- package/lib/inputs/date/Dropdown.js.map +0 -1
- package/lib/inputs/date/helpers.d.ts +0 -34
- package/lib/inputs/date/helpers.js +0 -38
- package/lib/inputs/date/helpers.js.map +0 -1
- package/lib/inputs/date/index.d.ts +0 -3
- package/lib/inputs/date/index.js +0 -159
- package/lib/inputs/date/index.js.map +0 -1
- package/lib/inputs/date/types.d.ts +0 -57
- package/lib/inputs/errorMessage/index.d.ts +0 -3
- package/lib/inputs/errorMessage/index.js +0 -19
- package/lib/inputs/errorMessage/index.js.map +0 -1
- package/lib/inputs/file/DefaultFile.d.ts +0 -3
- package/lib/inputs/file/DefaultFile.js +0 -89
- package/lib/inputs/file/DefaultFile.js.map +0 -1
- package/lib/inputs/file/DragDropFile.d.ts +0 -3
- package/lib/inputs/file/DragDropFile.js +0 -203
- package/lib/inputs/file/DragDropFile.js.map +0 -1
- package/lib/inputs/file/File.d.ts +0 -3
- package/lib/inputs/file/File.js +0 -39
- package/lib/inputs/file/File.js.map +0 -1
- package/lib/inputs/file/FileButtonSettings.d.ts +0 -3
- package/lib/inputs/file/FileButtonSettings.js +0 -22
- package/lib/inputs/file/FileButtonSettings.js.map +0 -1
- package/lib/inputs/file/helpers.d.ts +0 -2
- package/lib/inputs/file/helpers.js +0 -13
- package/lib/inputs/file/helpers.js.map +0 -1
- package/lib/inputs/file/index.d.ts +0 -5
- package/lib/inputs/file/index.js +0 -9
- package/lib/inputs/file/index.js.map +0 -1
- package/lib/inputs/file/types.d.ts +0 -49
- package/lib/inputs/index.d.ts +0 -14
- package/lib/inputs/index.js +0 -24
- package/lib/inputs/index.js.map +0 -1
- package/lib/inputs/inputHOC.d.ts +0 -4
- package/lib/inputs/inputHOC.js +0 -40
- package/lib/inputs/inputHOC.js.map +0 -1
- package/lib/inputs/mask/BaseMask.d.ts +0 -3
- package/lib/inputs/mask/BaseMask.js +0 -106
- package/lib/inputs/mask/BaseMask.js.map +0 -1
- package/lib/inputs/mask/Cnpj.d.ts +0 -6
- package/lib/inputs/mask/Cnpj.js +0 -44
- package/lib/inputs/mask/Cnpj.js.map +0 -1
- package/lib/inputs/mask/Cpf.d.ts +0 -6
- package/lib/inputs/mask/Cpf.js +0 -45
- package/lib/inputs/mask/Cpf.js.map +0 -1
- package/lib/inputs/mask/Phone.d.ts +0 -3
- package/lib/inputs/mask/Phone.js +0 -14
- package/lib/inputs/mask/Phone.js.map +0 -1
- package/lib/inputs/mask/ZipCode.d.ts +0 -3
- package/lib/inputs/mask/ZipCode.js +0 -11
- package/lib/inputs/mask/ZipCode.js.map +0 -1
- package/lib/inputs/mask/helpers.d.ts +0 -5
- package/lib/inputs/mask/helpers.js +0 -45
- package/lib/inputs/mask/helpers.js.map +0 -1
- package/lib/inputs/mask/index.d.ts +0 -7
- package/lib/inputs/mask/index.js +0 -11
- package/lib/inputs/mask/index.js.map +0 -1
- package/lib/inputs/mask/types.d.ts +0 -74
- package/lib/inputs/multiSelect/ActionButtons.d.ts +0 -3
- package/lib/inputs/multiSelect/ActionButtons.js +0 -39
- package/lib/inputs/multiSelect/ActionButtons.js.map +0 -1
- package/lib/inputs/multiSelect/Dropdown.d.ts +0 -3
- package/lib/inputs/multiSelect/Dropdown.js +0 -108
- package/lib/inputs/multiSelect/Dropdown.js.map +0 -1
- package/lib/inputs/multiSelect/helper.d.ts +0 -3
- package/lib/inputs/multiSelect/helper.js +0 -6
- package/lib/inputs/multiSelect/helper.js.map +0 -1
- package/lib/inputs/multiSelect/index.d.ts +0 -3
- package/lib/inputs/multiSelect/index.js +0 -130
- package/lib/inputs/multiSelect/index.js.map +0 -1
- package/lib/inputs/multiSelect/types.d.ts +0 -59
- package/lib/inputs/number/Currency.d.ts +0 -3
- package/lib/inputs/number/Currency.js +0 -72
- package/lib/inputs/number/Currency.js.map +0 -1
- package/lib/inputs/number/Decimal.d.ts +0 -3
- package/lib/inputs/number/Decimal.js +0 -68
- package/lib/inputs/number/Decimal.js.map +0 -1
- package/lib/inputs/number/format_number.d.ts +0 -3
- package/lib/inputs/number/format_number.js +0 -14
- package/lib/inputs/number/format_number.js.map +0 -1
- package/lib/inputs/number/index.d.ts +0 -6
- package/lib/inputs/number/index.js +0 -69
- package/lib/inputs/number/index.js.map +0 -1
- package/lib/inputs/number/types.d.ts +0 -37
- package/lib/inputs/period/Dialog.d.ts +0 -3
- package/lib/inputs/period/Dialog.js +0 -17
- package/lib/inputs/period/Dialog.js.map +0 -1
- package/lib/inputs/period/Dropdown.d.ts +0 -3
- package/lib/inputs/period/Dropdown.js +0 -15
- package/lib/inputs/period/Dropdown.js.map +0 -1
- package/lib/inputs/period/PeriodList.d.ts +0 -3
- package/lib/inputs/period/PeriodList.js +0 -48
- package/lib/inputs/period/PeriodList.js.map +0 -1
- package/lib/inputs/period/helper.d.ts +0 -11
- package/lib/inputs/period/helper.js +0 -26
- package/lib/inputs/period/helper.js.map +0 -1
- package/lib/inputs/period/index.d.ts +0 -3
- package/lib/inputs/period/index.js +0 -298
- package/lib/inputs/period/index.js.map +0 -1
- package/lib/inputs/period/types.d.ts +0 -72
- package/lib/inputs/search/index.d.ts +0 -3
- package/lib/inputs/search/index.js +0 -91
- package/lib/inputs/search/index.js.map +0 -1
- package/lib/inputs/select/ActionButtons.d.ts +0 -3
- package/lib/inputs/select/ActionButtons.js +0 -32
- package/lib/inputs/select/ActionButtons.js.map +0 -1
- package/lib/inputs/select/Dropdown.d.ts +0 -3
- package/lib/inputs/select/Dropdown.js +0 -87
- package/lib/inputs/select/Dropdown.js.map +0 -1
- package/lib/inputs/select/helper.d.ts +0 -11
- package/lib/inputs/select/helper.js +0 -24
- package/lib/inputs/select/helper.js.map +0 -1
- package/lib/inputs/select/index.d.ts +0 -3
- package/lib/inputs/select/index.js +0 -29
- package/lib/inputs/select/index.js.map +0 -1
- package/lib/inputs/select/multiple/Selecteds.d.ts +0 -3
- package/lib/inputs/select/multiple/Selecteds.js +0 -16
- package/lib/inputs/select/multiple/Selecteds.js.map +0 -1
- package/lib/inputs/select/multiple/index.d.ts +0 -3
- package/lib/inputs/select/multiple/index.js +0 -169
- package/lib/inputs/select/multiple/index.js.map +0 -1
- package/lib/inputs/select/simple/index.d.ts +0 -3
- package/lib/inputs/select/simple/index.js +0 -168
- package/lib/inputs/select/simple/index.js.map +0 -1
- package/lib/inputs/select/types.d.ts +0 -119
- package/lib/inputs/text/index.d.ts +0 -3
- package/lib/inputs/text/index.js +0 -8
- package/lib/inputs/text/index.js.map +0 -1
- package/lib/inputs/text/types.d.ts +0 -18
- package/lib/inputs/textarea/index.d.ts +0 -3
- package/lib/inputs/textarea/index.js +0 -17
- package/lib/inputs/textarea/index.js.map +0 -1
- package/lib/inputs/textarea/types.d.ts +0 -7
- package/lib/inputs/types.d.ts +0 -152
- package/lib/inputs2/checkboxfield/base.d.ts +0 -27
- package/lib/inputs2/checkboxfield/base.js +0 -110
- package/lib/inputs2/checkboxfield/base.js.map +0 -1
- package/lib/inputs2/checkboxfield/index.d.ts +0 -11
- package/lib/inputs2/checkboxfield/index.js +0 -35
- package/lib/inputs2/checkboxfield/index.js.map +0 -1
- package/lib/inputs2/colorfield/index.d.ts +0 -8
- package/lib/inputs2/colorfield/index.js +0 -70
- package/lib/inputs2/colorfield/index.js.map +0 -1
- package/lib/inputs2/date/base/constants.d.ts +0 -4
- package/lib/inputs2/date/base/constants.js +0 -31
- package/lib/inputs2/date/base/constants.js.map +0 -1
- package/lib/inputs2/date/base/index.d.ts +0 -6
- package/lib/inputs2/date/base/index.js +0 -126
- package/lib/inputs2/date/base/index.js.map +0 -1
- package/lib/inputs2/date/datefield/base.d.ts +0 -3
- package/lib/inputs2/date/datefield/base.js +0 -221
- package/lib/inputs2/date/datefield/base.js.map +0 -1
- package/lib/inputs2/date/datefield/calendarbox.d.ts +0 -6
- package/lib/inputs2/date/datefield/calendarbox.js +0 -112
- package/lib/inputs2/date/datefield/calendarbox.js.map +0 -1
- package/lib/inputs2/date/datefield/context.d.ts +0 -4
- package/lib/inputs2/date/datefield/context.js +0 -11
- package/lib/inputs2/date/datefield/context.js.map +0 -1
- package/lib/inputs2/date/datefield/index.d.ts +0 -5
- package/lib/inputs2/date/datefield/index.js +0 -30
- package/lib/inputs2/date/datefield/index.js.map +0 -1
- package/lib/inputs2/date/datefield/triggers.d.ts +0 -8
- package/lib/inputs2/date/datefield/triggers.js +0 -32
- package/lib/inputs2/date/datefield/triggers.js.map +0 -1
- package/lib/inputs2/date/datefield/types.d.ts +0 -63
- package/lib/inputs2/date/dateperiodfield/base.d.ts +0 -3
- package/lib/inputs2/date/dateperiodfield/base.js +0 -386
- package/lib/inputs2/date/dateperiodfield/base.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +0 -6
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +0 -121
- package/lib/inputs2/date/dateperiodfield/calendarbox.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/context.d.ts +0 -4
- package/lib/inputs2/date/dateperiodfield/context.js +0 -11
- package/lib/inputs2/date/dateperiodfield/context.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/index.d.ts +0 -5
- package/lib/inputs2/date/dateperiodfield/index.js +0 -30
- package/lib/inputs2/date/dateperiodfield/index.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/triggers.d.ts +0 -5
- package/lib/inputs2/date/dateperiodfield/triggers.js +0 -83
- package/lib/inputs2/date/dateperiodfield/triggers.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/types.d.ts +0 -101
- package/lib/inputs2/date/helpers.d.ts +0 -10
- package/lib/inputs2/date/helpers.js +0 -60
- package/lib/inputs2/date/helpers.js.map +0 -1
- package/lib/inputs2/date/types.d.ts +0 -59
- package/lib/inputs2/date/types.js +0 -8
- package/lib/inputs2/date/types.js.map +0 -1
- package/lib/inputs2/filefield/index.d.ts +0 -11
- package/lib/inputs2/filefield/index.js +0 -147
- package/lib/inputs2/filefield/index.js.map +0 -1
- package/lib/inputs2/index.d.ts +0 -17
- package/lib/inputs2/index.js +0 -17
- package/lib/inputs2/mask/Cnpj.d.ts +0 -9
- package/lib/inputs2/mask/Cnpj.js +0 -72
- package/lib/inputs2/mask/Cnpj.js.map +0 -1
- package/lib/inputs2/mask/Cpf.d.ts +0 -9
- package/lib/inputs2/mask/Cpf.js +0 -58
- package/lib/inputs2/mask/Cpf.js.map +0 -1
- package/lib/inputs2/mask/Phone.d.ts +0 -8
- package/lib/inputs2/mask/Phone.js +0 -21
- package/lib/inputs2/mask/Phone.js.map +0 -1
- package/lib/inputs2/mask/ZipCode.d.ts +0 -7
- package/lib/inputs2/mask/ZipCode.js +0 -21
- package/lib/inputs2/mask/ZipCode.js.map +0 -1
- package/lib/inputs2/mask/helpers.d.ts +0 -2
- package/lib/inputs2/mask/helpers.js +0 -28
- package/lib/inputs2/mask/helpers.js.map +0 -1
- package/lib/inputs2/mask/index.d.ts +0 -6
- package/lib/inputs2/mask/index.js +0 -68
- package/lib/inputs2/mask/index.js.map +0 -1
- package/lib/inputs2/mask/types.d.ts +0 -16
- package/lib/inputs2/numberfield/currency.d.ts +0 -4
- package/lib/inputs2/numberfield/currency.js +0 -86
- package/lib/inputs2/numberfield/currency.js.map +0 -1
- package/lib/inputs2/numberfield/decimal.d.ts +0 -4
- package/lib/inputs2/numberfield/decimal.js +0 -78
- package/lib/inputs2/numberfield/decimal.js.map +0 -1
- package/lib/inputs2/numberfield/helpers.d.ts +0 -28
- package/lib/inputs2/numberfield/helpers.js +0 -17
- package/lib/inputs2/numberfield/helpers.js.map +0 -1
- package/lib/inputs2/numberfield/index.d.ts +0 -8
- package/lib/inputs2/numberfield/index.js +0 -83
- package/lib/inputs2/numberfield/index.js.map +0 -1
- package/lib/inputs2/numberfield/types.d.ts +0 -26
- package/lib/inputs2/radiofield/base.d.ts +0 -3
- package/lib/inputs2/radiofield/base.js +0 -113
- package/lib/inputs2/radiofield/base.js.map +0 -1
- package/lib/inputs2/radiofield/index.d.ts +0 -5
- package/lib/inputs2/radiofield/index.js +0 -35
- package/lib/inputs2/radiofield/index.js.map +0 -1
- package/lib/inputs2/radiofield/types.d.ts +0 -34
- package/lib/inputs2/selectfield/base.d.ts +0 -3
- package/lib/inputs2/selectfield/base.js +0 -312
- package/lib/inputs2/selectfield/base.js.map +0 -1
- package/lib/inputs2/selectfield/context.d.ts +0 -38
- package/lib/inputs2/selectfield/context.js +0 -11
- package/lib/inputs2/selectfield/context.js.map +0 -1
- package/lib/inputs2/selectfield/helpers.d.ts +0 -5
- package/lib/inputs2/selectfield/helpers.js +0 -36
- package/lib/inputs2/selectfield/helpers.js.map +0 -1
- package/lib/inputs2/selectfield/index.d.ts +0 -9
- package/lib/inputs2/selectfield/index.js +0 -42
- package/lib/inputs2/selectfield/index.js.map +0 -1
- package/lib/inputs2/selectfield/item.d.ts +0 -11
- package/lib/inputs2/selectfield/item.js +0 -54
- package/lib/inputs2/selectfield/item.js.map +0 -1
- package/lib/inputs2/selectfield/listbox.d.ts +0 -7
- package/lib/inputs2/selectfield/listbox.js +0 -66
- package/lib/inputs2/selectfield/listbox.js.map +0 -1
- package/lib/inputs2/selectfield/options.d.ts +0 -8
- package/lib/inputs2/selectfield/options.js +0 -20
- package/lib/inputs2/selectfield/options.js.map +0 -1
- package/lib/inputs2/selectfield/search.d.ts +0 -6
- package/lib/inputs2/selectfield/search.js +0 -51
- package/lib/inputs2/selectfield/search.js.map +0 -1
- package/lib/inputs2/selectfield/selections.d.ts +0 -9
- package/lib/inputs2/selectfield/selections.js +0 -62
- package/lib/inputs2/selectfield/selections.js.map +0 -1
- package/lib/inputs2/selectfield/simple.d.ts +0 -9
- package/lib/inputs2/selectfield/simple.js +0 -22
- package/lib/inputs2/selectfield/simple.js.map +0 -1
- package/lib/inputs2/selectfield/triggers.d.ts +0 -8
- package/lib/inputs2/selectfield/triggers.js +0 -110
- package/lib/inputs2/selectfield/triggers.js.map +0 -1
- package/lib/inputs2/selectfield/types.d.ts +0 -55
- package/lib/inputs2/selectfield/types.js +0 -10
- package/lib/inputs2/selectfield/types.js.map +0 -1
- package/lib/inputs2/slot/index.d.ts +0 -17
- package/lib/inputs2/slot/index.js +0 -52
- package/lib/inputs2/slot/index.js.map +0 -1
- package/lib/inputs2/textareafield/base.d.ts +0 -23
- package/lib/inputs2/textareafield/base.js +0 -119
- package/lib/inputs2/textareafield/base.js.map +0 -1
- package/lib/inputs2/textareafield/index.d.ts +0 -12
- package/lib/inputs2/textareafield/index.js +0 -40
- package/lib/inputs2/textareafield/index.js.map +0 -1
- package/lib/inputs2/textfield/base.d.ts +0 -23
- package/lib/inputs2/textfield/base.js +0 -101
- package/lib/inputs2/textfield/base.js.map +0 -1
- package/lib/inputs2/textfield/index.d.ts +0 -12
- package/lib/inputs2/textfield/index.js +0 -40
- package/lib/inputs2/textfield/index.js.map +0 -1
- package/lib/internals/colorStyles.d.ts +0 -8
- package/lib/internals/colorStyles.js +0 -12
- package/lib/internals/colorStyles.js.map +0 -1
- package/lib/internals/constants.d.ts +0 -12
- package/lib/internals/constants.js +0 -13
- package/lib/internals/constants.js.map +0 -1
- package/lib/internals/types.d.ts +0 -7
- package/lib/labelMessages/index.d.ts +0 -3
- package/lib/labelMessages/index.js +0 -49
- package/lib/labelMessages/index.js.map +0 -1
- package/lib/labelMessages/types.d.ts +0 -16
- package/lib/labels/DangerLabel.d.ts +0 -3
- package/lib/labels/DangerLabel.js +0 -11
- package/lib/labels/DangerLabel.js.map +0 -1
- package/lib/labels/DefaultLabel.d.ts +0 -3
- package/lib/labels/DefaultLabel.js +0 -30
- package/lib/labels/DefaultLabel.js.map +0 -1
- package/lib/labels/InfoLabel.d.ts +0 -3
- package/lib/labels/InfoLabel.js +0 -11
- package/lib/labels/InfoLabel.js.map +0 -1
- package/lib/labels/PrimaryLabel.d.ts +0 -3
- package/lib/labels/PrimaryLabel.js +0 -11
- package/lib/labels/PrimaryLabel.js.map +0 -1
- package/lib/labels/SuccessLabel.d.ts +0 -3
- package/lib/labels/SuccessLabel.js +0 -11
- package/lib/labels/SuccessLabel.js.map +0 -1
- package/lib/labels/WarningLabel.d.ts +0 -3
- package/lib/labels/WarningLabel.js +0 -11
- package/lib/labels/WarningLabel.js.map +0 -1
- package/lib/labels/index.d.ts +0 -9
- package/lib/labels/index.js +0 -14
- package/lib/labels/index.js.map +0 -1
- package/lib/labels/label_container/index.d.ts +0 -10
- package/lib/labels/label_container/index.js +0 -11
- package/lib/labels/label_container/index.js.map +0 -1
- package/lib/labels/types.d.ts +0 -19
- package/lib/list/Header.d.ts +0 -3
- package/lib/list/Header.js +0 -14
- package/lib/list/Header.js.map +0 -1
- package/lib/list/Item.d.ts +0 -3
- package/lib/list/Item.js +0 -90
- package/lib/list/Item.js.map +0 -1
- package/lib/list/Separator.d.ts +0 -2
- package/lib/list/Separator.js +0 -7
- package/lib/list/Separator.js.map +0 -1
- package/lib/list/helpers.d.ts +0 -8
- package/lib/list/helpers.js +0 -11
- package/lib/list/helpers.js.map +0 -1
- package/lib/list/index.d.ts +0 -7
- package/lib/list/index.js +0 -75
- package/lib/list/index.js.map +0 -1
- package/lib/list/types.d.ts +0 -66
- package/lib/menus/float/MenuItem.d.ts +0 -3
- package/lib/menus/float/MenuItem.js +0 -60
- package/lib/menus/float/MenuItem.js.map +0 -1
- package/lib/menus/float/SubMenuContainer.d.ts +0 -29
- package/lib/menus/float/SubMenuContainer.js +0 -63
- package/lib/menus/float/SubMenuContainer.js.map +0 -1
- package/lib/menus/float/helpers.d.ts +0 -3
- package/lib/menus/float/helpers.js +0 -7
- package/lib/menus/float/helpers.js.map +0 -1
- package/lib/menus/float/index.d.ts +0 -6
- package/lib/menus/float/index.js +0 -38
- package/lib/menus/float/index.js.map +0 -1
- package/lib/menus/float/types.d.ts +0 -26
- package/lib/menus/index.d.ts +0 -2
- package/lib/menus/index.js +0 -7
- package/lib/menus/index.js.map +0 -1
- package/lib/menus/sidenav/ExpandMenu.d.ts +0 -3
- package/lib/menus/sidenav/ExpandMenu.js +0 -18
- package/lib/menus/sidenav/ExpandMenu.js.map +0 -1
- package/lib/menus/sidenav/MenuLink.d.ts +0 -3
- package/lib/menus/sidenav/MenuLink.js +0 -24
- package/lib/menus/sidenav/MenuLink.js.map +0 -1
- package/lib/menus/sidenav/NavMenuGroup.d.ts +0 -3
- package/lib/menus/sidenav/NavMenuGroup.js +0 -19
- package/lib/menus/sidenav/NavMenuGroup.js.map +0 -1
- package/lib/menus/sidenav/NavMenuItem.d.ts +0 -3
- package/lib/menus/sidenav/NavMenuItem.js +0 -96
- package/lib/menus/sidenav/NavMenuItem.js.map +0 -1
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +0 -3
- package/lib/menus/sidenav/NavSubMenuItem.js +0 -37
- package/lib/menus/sidenav/NavSubMenuItem.js.map +0 -1
- package/lib/menus/sidenav/helpers.d.ts +0 -5
- package/lib/menus/sidenav/helpers.js +0 -10
- package/lib/menus/sidenav/helpers.js.map +0 -1
- package/lib/menus/sidenav/index.d.ts +0 -8
- package/lib/menus/sidenav/index.js +0 -97
- package/lib/menus/sidenav/index.js.map +0 -1
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +0 -3
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +0 -18
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js.map +0 -1
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +0 -3
- package/lib/menus/sidenav/popup_menu_search/index.js +0 -80
- package/lib/menus/sidenav/popup_menu_search/index.js.map +0 -1
- package/lib/menus/sidenav/types.d.ts +0 -85
- package/lib/noPermission/index.d.ts +0 -2
- package/lib/noPermission/index.js +0 -27
- package/lib/noPermission/index.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +0 -32
- package/lib/node_modules/imask/esm/controls/html-contenteditable-mask-element.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/html-input-mask-element.js +0 -29
- package/lib/node_modules/imask/esm/controls/html-input-mask-element.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/html-mask-element.js +0 -41
- package/lib/node_modules/imask/esm/controls/html-mask-element.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/input-history.js +0 -32
- package/lib/node_modules/imask/esm/controls/input-history.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/input.js +0 -179
- package/lib/node_modules/imask/esm/controls/input.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/mask-element.js +0 -31
- package/lib/node_modules/imask/esm/controls/mask-element.js.map +0 -1
- package/lib/node_modules/imask/esm/core/action-details.js +0 -36
- package/lib/node_modules/imask/esm/core/action-details.js.map +0 -1
- package/lib/node_modules/imask/esm/core/change-details.js +0 -32
- package/lib/node_modules/imask/esm/core/change-details.js.map +0 -1
- package/lib/node_modules/imask/esm/core/continuous-tail-details.js +0 -39
- package/lib/node_modules/imask/esm/core/continuous-tail-details.js.map +0 -1
- package/lib/node_modules/imask/esm/core/holder.js +0 -8
- package/lib/node_modules/imask/esm/core/holder.js.map +0 -1
- package/lib/node_modules/imask/esm/core/utils.js +0 -58
- package/lib/node_modules/imask/esm/core/utils.js.map +0 -1
- package/lib/node_modules/imask/esm/imask.js +0 -8
- package/lib/node_modules/imask/esm/index.js +0 -31
- package/lib/node_modules/imask/esm/index.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/base.js +0 -199
- package/lib/node_modules/imask/esm/masked/base.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/date.js +0 -102
- package/lib/node_modules/imask/esm/masked/date.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/dynamic.js +0 -201
- package/lib/node_modules/imask/esm/masked/dynamic.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/enum.js +0 -65
- package/lib/node_modules/imask/esm/masked/enum.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/factory.js +0 -35
- package/lib/node_modules/imask/esm/masked/factory.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/function.js +0 -20
- package/lib/node_modules/imask/esm/masked/function.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/number.js +0 -177
- package/lib/node_modules/imask/esm/masked/number.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +0 -85
- package/lib/node_modules/imask/esm/masked/pattern/chunk-tail-details.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern/cursor.js +0 -86
- package/lib/node_modules/imask/esm/masked/pattern/cursor.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern/fixed-definition.js +0 -93
- package/lib/node_modules/imask/esm/masked/pattern/fixed-definition.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern/input-definition.js +0 -112
- package/lib/node_modules/imask/esm/masked/pattern/input-definition.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern.js +0 -285
- package/lib/node_modules/imask/esm/masked/pattern.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pipe.js +0 -21
- package/lib/node_modules/imask/esm/masked/pipe.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/range.js +0 -67
- package/lib/node_modules/imask/esm/masked/range.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/regexp.js +0 -18
- package/lib/node_modules/imask/esm/masked/regexp.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/repeat.js +0 -90
- package/lib/node_modules/imask/esm/masked/repeat.js.map +0 -1
- package/lib/node_modules/lodash/_Hash.js +0 -23
- package/lib/node_modules/lodash/_Hash.js.map +0 -1
- package/lib/node_modules/lodash/_ListCache.js +0 -23
- package/lib/node_modules/lodash/_ListCache.js.map +0 -1
- package/lib/node_modules/lodash/_Map.js +0 -12
- package/lib/node_modules/lodash/_Map.js.map +0 -1
- package/lib/node_modules/lodash/_MapCache.js +0 -23
- package/lib/node_modules/lodash/_MapCache.js.map +0 -1
- package/lib/node_modules/lodash/_Symbol.js +0 -11
- package/lib/node_modules/lodash/_Symbol.js.map +0 -1
- package/lib/node_modules/lodash/_assocIndexOf.js +0 -16
- package/lib/node_modules/lodash/_assocIndexOf.js.map +0 -1
- package/lib/node_modules/lodash/_baseGetTag.js +0 -17
- package/lib/node_modules/lodash/_baseGetTag.js.map +0 -1
- package/lib/node_modules/lodash/_baseIsNative.js +0 -18
- package/lib/node_modules/lodash/_baseIsNative.js.map +0 -1
- package/lib/node_modules/lodash/_coreJsData.js +0 -11
- package/lib/node_modules/lodash/_coreJsData.js.map +0 -1
- package/lib/node_modules/lodash/_freeGlobal.js +0 -10
- package/lib/node_modules/lodash/_freeGlobal.js.map +0 -1
- package/lib/node_modules/lodash/_getMapData.js +0 -16
- package/lib/node_modules/lodash/_getMapData.js.map +0 -1
- package/lib/node_modules/lodash/_getNative.js +0 -17
- package/lib/node_modules/lodash/_getNative.js.map +0 -1
- package/lib/node_modules/lodash/_getRawTag.js +0 -21
- package/lib/node_modules/lodash/_getRawTag.js.map +0 -1
- package/lib/node_modules/lodash/_getValue.js +0 -13
- package/lib/node_modules/lodash/_getValue.js.map +0 -1
- package/lib/node_modules/lodash/_hashClear.js +0 -15
- package/lib/node_modules/lodash/_hashClear.js.map +0 -1
- package/lib/node_modules/lodash/_hashDelete.js +0 -14
- package/lib/node_modules/lodash/_hashDelete.js.map +0 -1
- package/lib/node_modules/lodash/_hashGet.js +0 -20
- package/lib/node_modules/lodash/_hashGet.js.map +0 -1
- package/lib/node_modules/lodash/_hashHas.js +0 -16
- package/lib/node_modules/lodash/_hashHas.js.map +0 -1
- package/lib/node_modules/lodash/_hashSet.js +0 -16
- package/lib/node_modules/lodash/_hashSet.js.map +0 -1
- package/lib/node_modules/lodash/_isKeyable.js +0 -14
- package/lib/node_modules/lodash/_isKeyable.js.map +0 -1
- package/lib/node_modules/lodash/_isMasked.js +0 -18
- package/lib/node_modules/lodash/_isMasked.js.map +0 -1
- package/lib/node_modules/lodash/_listCacheClear.js +0 -13
- package/lib/node_modules/lodash/_listCacheClear.js.map +0 -1
- package/lib/node_modules/lodash/_listCacheDelete.js +0 -16
- package/lib/node_modules/lodash/_listCacheDelete.js.map +0 -1
- package/lib/node_modules/lodash/_listCacheGet.js +0 -16
- package/lib/node_modules/lodash/_listCacheGet.js.map +0 -1
- package/lib/node_modules/lodash/_listCacheHas.js +0 -15
- package/lib/node_modules/lodash/_listCacheHas.js.map +0 -1
- package/lib/node_modules/lodash/_listCacheSet.js +0 -16
- package/lib/node_modules/lodash/_listCacheSet.js.map +0 -1
- package/lib/node_modules/lodash/_mapCacheClear.js +0 -21
- package/lib/node_modules/lodash/_mapCacheClear.js.map +0 -1
- package/lib/node_modules/lodash/_mapCacheDelete.js +0 -16
- package/lib/node_modules/lodash/_mapCacheDelete.js.map +0 -1
- package/lib/node_modules/lodash/_mapCacheGet.js +0 -15
- package/lib/node_modules/lodash/_mapCacheGet.js.map +0 -1
- package/lib/node_modules/lodash/_mapCacheHas.js +0 -15
- package/lib/node_modules/lodash/_mapCacheHas.js.map +0 -1
- package/lib/node_modules/lodash/_mapCacheSet.js +0 -16
- package/lib/node_modules/lodash/_mapCacheSet.js.map +0 -1
- package/lib/node_modules/lodash/_nativeCreate.js +0 -11
- package/lib/node_modules/lodash/_nativeCreate.js.map +0 -1
- package/lib/node_modules/lodash/_objectToString.js +0 -14
- package/lib/node_modules/lodash/_objectToString.js.map +0 -1
- package/lib/node_modules/lodash/_root.js +0 -12
- package/lib/node_modules/lodash/_root.js.map +0 -1
- package/lib/node_modules/lodash/_toSource.js +0 -22
- package/lib/node_modules/lodash/_toSource.js.map +0 -1
- package/lib/node_modules/lodash/eq.js +0 -13
- package/lib/node_modules/lodash/eq.js.map +0 -1
- package/lib/node_modules/lodash/isFunction.js +0 -18
- package/lib/node_modules/lodash/isFunction.js.map +0 -1
- package/lib/node_modules/lodash/isObject.js +0 -14
- package/lib/node_modules/lodash/isObject.js.map +0 -1
- package/lib/node_modules/lodash/lodash.js +0 -3295
- package/lib/node_modules/lodash/lodash.js.map +0 -1
- package/lib/node_modules/lodash/memoize.js +0 -22
- package/lib/node_modules/lodash/memoize.js.map +0 -1
- package/lib/node_modules/moment/dist/moment.js +0 -1934
- package/lib/node_modules/moment/dist/moment.js.map +0 -1
- package/lib/node_modules/object-assign/index.js +0 -41
- package/lib/node_modules/object-assign/index.js.map +0 -1
- package/lib/node_modules/prop-types/checkPropTypes.js +0 -46
- package/lib/node_modules/prop-types/checkPropTypes.js.map +0 -1
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js +0 -49
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +0 -272
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
- package/lib/node_modules/prop-types/index.js +0 -16
- package/lib/node_modules/prop-types/index.js.map +0 -1
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
- package/lib/node_modules/prop-types/lib/has.js +0 -10
- package/lib/node_modules/prop-types/lib/has.js.map +0 -1
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -84
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -64
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/lib/node_modules/prop-types/node_modules/react-is/index.js +0 -12
- package/lib/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
- package/lib/node_modules/react/cjs/react-compiler-runtime.development.js +0 -16
- package/lib/node_modules/react/cjs/react-compiler-runtime.development.js.map +0 -1
- package/lib/node_modules/react/cjs/react-compiler-runtime.production.js +0 -13
- package/lib/node_modules/react/cjs/react-compiler-runtime.production.js.map +0 -1
- package/lib/node_modules/react/compiler-runtime.js +0 -12
- package/lib/node_modules/react/compiler-runtime.js.map +0 -1
- package/lib/node_modules/react-imask/esm/hook.js +0 -58
- package/lib/node_modules/react-imask/esm/hook.js.map +0 -1
- package/lib/node_modules/react-imask/esm/index.js +0 -7
- package/lib/node_modules/react-imask/esm/input.js +0 -18
- package/lib/node_modules/react-imask/esm/input.js.map +0 -1
- package/lib/node_modules/react-imask/esm/mixin.js +0 -129
- package/lib/node_modules/react-imask/esm/mixin.js.map +0 -1
- package/lib/node_modules/uuid/dist/native.js +0 -5
- package/lib/node_modules/uuid/dist/native.js.map +0 -1
- package/lib/node_modules/uuid/dist/rng.js +0 -13
- package/lib/node_modules/uuid/dist/rng.js.map +0 -1
- package/lib/node_modules/uuid/dist/stringify.js +0 -10
- package/lib/node_modules/uuid/dist/stringify.js.map +0 -1
- package/lib/node_modules/uuid/dist/v1.js +0 -36
- package/lib/node_modules/uuid/dist/v1.js.map +0 -1
- package/lib/node_modules/uuid/dist/v4.js +0 -22
- package/lib/node_modules/uuid/dist/v4.js.map +0 -1
- package/lib/panel/Content.d.ts +0 -3
- package/lib/panel/Content.js +0 -42
- package/lib/panel/Content.js.map +0 -1
- package/lib/panel/DangerPanel.d.ts +0 -3
- package/lib/panel/DangerPanel.js +0 -12
- package/lib/panel/DangerPanel.js.map +0 -1
- package/lib/panel/Default.d.ts +0 -3
- package/lib/panel/Default.js +0 -45
- package/lib/panel/Default.js.map +0 -1
- package/lib/panel/Header.d.ts +0 -3
- package/lib/panel/Header.js +0 -51
- package/lib/panel/Header.js.map +0 -1
- package/lib/panel/InfoPanel.d.ts +0 -3
- package/lib/panel/InfoPanel.js +0 -12
- package/lib/panel/InfoPanel.js.map +0 -1
- package/lib/panel/PrimaryPanel.d.ts +0 -3
- package/lib/panel/PrimaryPanel.js +0 -12
- package/lib/panel/PrimaryPanel.js.map +0 -1
- package/lib/panel/SuccessPanel.d.ts +0 -3
- package/lib/panel/SuccessPanel.js +0 -12
- package/lib/panel/SuccessPanel.js.map +0 -1
- package/lib/panel/ToolBar.d.ts +0 -3
- package/lib/panel/WarningPanel.d.ts +0 -3
- package/lib/panel/WarningPanel.js +0 -12
- package/lib/panel/WarningPanel.js.map +0 -1
- package/lib/panel/helpers.d.ts +0 -4
- package/lib/panel/helpers.js +0 -13
- package/lib/panel/helpers.js.map +0 -1
- package/lib/panel/index.d.ts +0 -10
- package/lib/panel/index.js +0 -15
- package/lib/panel/index.js.map +0 -1
- package/lib/panel/types.d.ts +0 -43
- package/lib/permissionValidations.d.ts +0 -12
- package/lib/permissionValidations.js +0 -40
- package/lib/permissionValidations.js.map +0 -1
- package/lib/popover/PopoverText.d.ts +0 -3
- package/lib/popover/PopoverText.js +0 -19
- package/lib/popover/PopoverText.js.map +0 -1
- package/lib/popover/PopoverTitle.d.ts +0 -3
- package/lib/popover/PopoverTitle.js +0 -10
- package/lib/popover/PopoverTitle.js.map +0 -1
- package/lib/popover/index.d.ts +0 -6
- package/lib/popover/index.js +0 -40
- package/lib/popover/index.js.map +0 -1
- package/lib/popover/types.d.ts +0 -32
- package/lib/progress/Bar.d.ts +0 -3
- package/lib/progress/Bar.js +0 -41
- package/lib/progress/Bar.js.map +0 -1
- package/lib/progress/index.d.ts +0 -5
- package/lib/progress/index.js +0 -20
- package/lib/progress/index.js.map +0 -1
- package/lib/progress/types.d.ts +0 -34
- package/lib/radio/index.d.ts +0 -11
- package/lib/radio/index.js +0 -88
- package/lib/radio/index.js.map +0 -1
- package/lib/radio/types.d.ts +0 -25
- package/lib/shortcuts/index.d.ts +0 -3
- package/lib/shortcuts/index.js +0 -22
- package/lib/shortcuts/index.js.map +0 -1
- package/lib/shortcuts/types.d.ts +0 -9
- package/lib/skeleton/SkeletonContainer.d.ts +0 -3
- package/lib/skeleton/SkeletonContainer.js +0 -12
- package/lib/skeleton/SkeletonContainer.js.map +0 -1
- package/lib/skeleton/index.d.ts +0 -5
- package/lib/skeleton/index.js +0 -29
- package/lib/skeleton/index.js.map +0 -1
- package/lib/skeleton/types.d.ts +0 -18
- package/lib/spinner/SpinnerLoading.d.ts +0 -3
- package/lib/spinner/SpinnerLoading.js +0 -249
- package/lib/spinner/SpinnerLoading.js.map +0 -1
- package/lib/spinner/index.d.ts +0 -5
- package/lib/spinner/index.js +0 -48
- package/lib/spinner/index.js.map +0 -1
- package/lib/spinner/types.d.ts +0 -17
- package/lib/split/Split.d.ts +0 -3
- package/lib/split/Split.js +0 -195
- package/lib/split/Split.js.map +0 -1
- package/lib/split/SplitSide.d.ts +0 -3
- package/lib/split/SplitSide.js +0 -21
- package/lib/split/SplitSide.js.map +0 -1
- package/lib/split/helpers.d.ts +0 -7
- package/lib/split/helpers.js +0 -7
- package/lib/split/helpers.js.map +0 -1
- package/lib/split/index.d.ts +0 -4
- package/lib/split/index.js +0 -9
- package/lib/split/index.js.map +0 -1
- package/lib/split/types.d.ts +0 -31
- package/lib/table/Body.d.ts +0 -3
- package/lib/table/Body.js +0 -42
- package/lib/table/Body.js.map +0 -1
- package/lib/table/Header.d.ts +0 -3
- package/lib/table/Header.js +0 -56
- package/lib/table/Header.js.map +0 -1
- package/lib/table/HeaderColumn.d.ts +0 -3
- package/lib/table/HeaderColumn.js +0 -41
- package/lib/table/HeaderColumn.js.map +0 -1
- package/lib/table/Row.d.ts +0 -3
- package/lib/table/Row.js +0 -48
- package/lib/table/Row.js.map +0 -1
- package/lib/table/RowColumn.d.ts +0 -3
- package/lib/table/RowColumn.js +0 -48
- package/lib/table/RowColumn.js.map +0 -1
- package/lib/table/helpers.d.ts +0 -6
- package/lib/table/helpers.js +0 -7
- package/lib/table/helpers.js.map +0 -1
- package/lib/table/index.d.ts +0 -9
- package/lib/table/index.js +0 -70
- package/lib/table/index.js.map +0 -1
- package/lib/table/types.d.ts +0 -95
- package/lib/tabs/DropdownTabs.d.ts +0 -3
- package/lib/tabs/DropdownTabs.js +0 -70
- package/lib/tabs/DropdownTabs.js.map +0 -1
- package/lib/tabs/Menu.d.ts +0 -3
- package/lib/tabs/Menu.js +0 -35
- package/lib/tabs/Menu.js.map +0 -1
- package/lib/tabs/MenuTabs.d.ts +0 -3
- package/lib/tabs/MenuTabs.js +0 -60
- package/lib/tabs/MenuTabs.js.map +0 -1
- package/lib/tabs/Panel.d.ts +0 -3
- package/lib/tabs/Panel.js +0 -42
- package/lib/tabs/Panel.js.map +0 -1
- package/lib/tabs/context.d.ts +0 -3
- package/lib/tabs/context.js +0 -82
- package/lib/tabs/context.js.map +0 -1
- package/lib/tabs/index.d.ts +0 -5
- package/lib/tabs/index.js +0 -54
- package/lib/tabs/index.js.map +0 -1
- package/lib/tabs/tabHelpers.d.ts +0 -27
- package/lib/tabs/tabHelpers.js +0 -42
- package/lib/tabs/tabHelpers.js.map +0 -1
- package/lib/tabs/types.d.ts +0 -102
- package/lib/tabs/useTabs.d.ts +0 -1
- package/lib/tabs/useTabs.js +0 -10
- package/lib/tabs/useTabs.js.map +0 -1
- package/lib/textContent/index.d.ts +0 -14
- package/lib/textContent/index.js +0 -28
- package/lib/textContent/index.js.map +0 -1
- package/lib/toolbar/ButtonBar.d.ts +0 -3
- package/lib/toolbar/ButtonBar.js +0 -54
- package/lib/toolbar/ButtonBar.js.map +0 -1
- package/lib/toolbar/LabelBar.d.ts +0 -3
- package/lib/toolbar/LabelBar.js +0 -40
- package/lib/toolbar/LabelBar.js.map +0 -1
- package/lib/toolbar/Separator.d.ts +0 -2
- package/lib/toolbar/Separator.js +0 -7
- package/lib/toolbar/Separator.js.map +0 -1
- package/lib/toolbar/ToolBarGroup.d.ts +0 -3
- package/lib/toolbar/ToolBarGroup.js +0 -11
- package/lib/toolbar/ToolBarGroup.js.map +0 -1
- package/lib/toolbar/helpers.d.ts +0 -3
- package/lib/toolbar/helpers.js +0 -7
- package/lib/toolbar/helpers.js.map +0 -1
- package/lib/toolbar/index.d.ts +0 -8
- package/lib/toolbar/index.js +0 -24
- package/lib/toolbar/index.js.map +0 -1
- package/lib/toolbar/types.d.ts +0 -43
- package/lib/tooltip/TooltipContent.d.ts +0 -3
- package/lib/tooltip/TooltipContent.js +0 -33
- package/lib/tooltip/TooltipContent.js.map +0 -1
- package/lib/tooltip/index.d.ts +0 -3
- package/lib/tooltip/index.js +0 -41
- package/lib/tooltip/index.js.map +0 -1
- package/lib/tooltip/types.d.ts +0 -40
- package/lib/tooltip/useTooltip.d.ts +0 -27
- package/lib/tooltip/useTooltip.js +0 -78
- package/lib/tooltip/useTooltip.js.map +0 -1
- package/lib/treetable/Body.d.ts +0 -2
- package/lib/treetable/Body.js +0 -26
- package/lib/treetable/Body.js.map +0 -1
- package/lib/treetable/Header.d.ts +0 -2
- package/lib/treetable/Header.js +0 -27
- package/lib/treetable/Header.js.map +0 -1
- package/lib/treetable/Row.d.ts +0 -3
- package/lib/treetable/Row.js +0 -155
- package/lib/treetable/Row.js.map +0 -1
- package/lib/treetable/helpers.d.ts +0 -14
- package/lib/treetable/helpers.js +0 -13
- package/lib/treetable/helpers.js.map +0 -1
- package/lib/treetable/index.d.ts +0 -4
- package/lib/treetable/index.js +0 -22
- package/lib/treetable/index.js.map +0 -1
- package/lib/treeview/Header.d.ts +0 -3
- package/lib/treeview/Header.js +0 -16
- package/lib/treeview/Header.js.map +0 -1
- package/lib/treeview/Node.d.ts +0 -3
- package/lib/treeview/Node.js +0 -151
- package/lib/treeview/Node.js.map +0 -1
- package/lib/treeview/constants.d.ts +0 -2
- package/lib/treeview/constants.js +0 -7
- package/lib/treeview/constants.js.map +0 -1
- package/lib/treeview/index.d.ts +0 -6
- package/lib/treeview/index.js +0 -182
- package/lib/treeview/index.js.map +0 -1
- package/lib/treeview/types.d.ts +0 -106
- package/lib/uitour/helpers.d.ts +0 -7
- package/lib/uitour/helpers.js +0 -9
- package/lib/uitour/helpers.js.map +0 -1
- package/lib/uitour/index.d.ts +0 -3
- package/lib/uitour/index.js +0 -184
- package/lib/uitour/index.js.map +0 -1
- package/lib/uitour/types.d.ts +0 -35
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_compiler_runtime as t } from "../../node_modules/react/compiler-runtime.js";
|
|
3
|
-
import n from "../../icons/index.js";
|
|
4
|
-
import { require_lodash as r } from "../../node_modules/lodash/lodash.js";
|
|
5
|
-
import i from "../../buttons/index.js";
|
|
6
|
-
import a from "../../popover/PopoverText.js";
|
|
7
|
-
import o from "../../popover/index.js";
|
|
8
|
-
import s from "../base/InputTextBase.js";
|
|
9
|
-
import c from "./FileButtonSettings.js";
|
|
10
|
-
import '../../assets/styles/file.css';/* empty css */
|
|
11
|
-
import { useState as l } from "react";
|
|
12
|
-
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
13
|
-
//#region src/lib/inputs/file/DefaultFile.tsx
|
|
14
|
-
var f = t(), p = /* @__PURE__ */ e(r(), 1), m = (e) => {
|
|
15
|
-
let t = (0, f.c)(18), { id: r, accept: p, onBtnClickInsert: m, onBtnClickRemove: h, inputRef: v, defaultFiles: y, hint: b, multiple: x, onChange: S } = e, C = r === void 0 ? "file" : r, w = p === void 0 ? "image/*" : p, T = b === void 0 ? "" : b, E = g, [D, O] = l(y), k = D instanceof Array && D.length > 0, A;
|
|
16
|
-
t[0] === S ? A = t[1] : (A = (e) => {
|
|
17
|
-
e.preventDefault?.();
|
|
18
|
-
let t = E(e.target.files);
|
|
19
|
-
O(t), S?.(t, e);
|
|
20
|
-
}, t[0] = S, t[1] = A);
|
|
21
|
-
let j = A, M;
|
|
22
|
-
if (t[2] !== w || t[3] !== D || t[4] !== j || t[5] !== T || t[6] !== C || t[7] !== k || t[8] !== v || t[9] !== x || t[10] !== m || t[11] !== h || t[12] !== e) {
|
|
23
|
-
let r;
|
|
24
|
-
t[14] === m ? r = t[15] : (r = () => m(), t[14] = m, t[15] = r);
|
|
25
|
-
let l;
|
|
26
|
-
t[16] === h ? l = t[17] : (l = () => {
|
|
27
|
-
h(), O([]);
|
|
28
|
-
}, t[16] = h, t[17] = l), M = u("div", {
|
|
29
|
-
className: "input-simple-file-container",
|
|
30
|
-
children: d(s, {
|
|
31
|
-
...e,
|
|
32
|
-
hint: T,
|
|
33
|
-
readOnlyClass: "-disabledVisualApply",
|
|
34
|
-
customClassForWrapper: "file-wrapper",
|
|
35
|
-
customClassForInputContent: "file-content -absolute -pointEventDisabled -disabledVisualApply",
|
|
36
|
-
type: "file",
|
|
37
|
-
id: C,
|
|
38
|
-
accept: w,
|
|
39
|
-
inputRef: v,
|
|
40
|
-
onChange: j,
|
|
41
|
-
rightElements: u(c, {
|
|
42
|
-
id: C,
|
|
43
|
-
onBtnClickInsert: r
|
|
44
|
-
}),
|
|
45
|
-
children: [x && u("div", {
|
|
46
|
-
className: `size-position-icon ${k ? "" : "-disabled-popover"}`,
|
|
47
|
-
children: u(o, {
|
|
48
|
-
iconSize: 16,
|
|
49
|
-
children: d(a, { children: [
|
|
50
|
-
u("strong", { children: "Arquivos" }),
|
|
51
|
-
u("br", {}),
|
|
52
|
-
k && D.map(_)
|
|
53
|
-
] })
|
|
54
|
-
})
|
|
55
|
-
}), u(i, {
|
|
56
|
-
disabled: !k,
|
|
57
|
-
className: "-pointerEventsRemove",
|
|
58
|
-
transparent: !0,
|
|
59
|
-
boxShadow: !1,
|
|
60
|
-
onClick: l,
|
|
61
|
-
icon: u(n, {
|
|
62
|
-
customClass: "colorIconUpload",
|
|
63
|
-
name: "close"
|
|
64
|
-
})
|
|
65
|
-
})]
|
|
66
|
-
})
|
|
67
|
-
}), t[2] = w, t[3] = D, t[4] = j, t[5] = T, t[6] = C, t[7] = k, t[8] = v, t[9] = x, t[10] = m, t[11] = h, t[12] = e, t[13] = M;
|
|
68
|
-
} else M = t[13];
|
|
69
|
-
return M;
|
|
70
|
-
};
|
|
71
|
-
function h(e) {
|
|
72
|
-
return e;
|
|
73
|
-
}
|
|
74
|
-
function g(e) {
|
|
75
|
-
return e?.length ? p.default.map(e, h) : [];
|
|
76
|
-
}
|
|
77
|
-
function _(e) {
|
|
78
|
-
return u("div", {
|
|
79
|
-
className: "list-simple-file",
|
|
80
|
-
children: u("div", {
|
|
81
|
-
className: "file-name",
|
|
82
|
-
children: u("span", { children: e.name })
|
|
83
|
-
})
|
|
84
|
-
}, `${e.name}${e.size}`);
|
|
85
|
-
}
|
|
86
|
-
//#endregion
|
|
87
|
-
export { m as default };
|
|
88
|
-
|
|
89
|
-
//# sourceMappingURL=DefaultFile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultFile.js","names":[],"sources":["../../../src/lib/inputs/file/DefaultFile.tsx"],"sourcesContent":["import { useState } from 'react';\nimport _ from 'lodash';\nimport InputTextBase from '../base/InputTextBase';\nimport FileButtonSettings from './FileButtonSettings';\nimport { IDefaultFileProps } from './types';\nimport '../../assets/styles/file.scss';\nimport Button from '../../buttons';\nimport Icon from '../../icons';\nimport Popover, { PopoverText } from '../../popover';\nimport { CustomInputEvent } from '../base/types';\n\nconst DefaultFile = (props: IDefaultFileProps) => {\n const {\n id = 'file', accept = 'image/*', onBtnClickInsert, onBtnClickRemove, inputRef, defaultFiles,\n hint = '', multiple, onChange,\n } = props;\n\n const getFilesList = (files: FileList | null | undefined): File[] => (\n !files?.length ? [] : _.map(files, file => file)\n );\n\n const [fileList, setFileList] = useState(defaultFiles);\n const ifExistFiles = fileList instanceof Array && fileList.length > 0;\n\n const handleChange = (e: CustomInputEvent) => {\n e.preventDefault?.();\n const files = getFilesList(e.target.files);\n setFileList(files);\n onChange?.(files, e);\n };\n\n return (\n <div className=\"input-simple-file-container\">\n <InputTextBase\n {...props}\n hint={hint}\n readOnlyClass=\"-disabledVisualApply\"\n customClassForWrapper=\"file-wrapper\"\n customClassForInputContent=\"file-content -absolute -pointEventDisabled -disabledVisualApply\"\n type=\"file\"\n id={id}\n accept={accept}\n inputRef={inputRef}\n onChange={handleChange}\n rightElements={\n <FileButtonSettings\n id={id}\n onBtnClickInsert={() => (onBtnClickInsert())} />\n }>\n {multiple && (\n <div className={`size-position-icon ${!ifExistFiles ? '-disabled-popover' : ''}`}>\n <Popover iconSize={16} >\n <PopoverText>\n <strong>Arquivos</strong>\n <br />\n { ifExistFiles && fileList.map(file => (\n <div className=\"list-simple-file\"key={`${file.name}${file.size}`}>\n <div className=\"file-name\">\n <span>{file.name}</span>\n </div>\n </div>\n ))}\n </PopoverText>\n </Popover>\n </div>\n )}\n <Button\n disabled={!ifExistFiles}\n className=\"-pointerEventsRemove\"\n transparent\n boxShadow={false}\n onClick={() => {\n onBtnClickRemove();\n setFileList([]);\n }}\n icon={<Icon customClass=\"colorIconUpload\" name=\"close\" />} />\n </InputTextBase>\n </div>\n );\n};\n\nexport default DefaultFile;\n"],"mappings":";;;;;;;;;;;;;4CAWM,KAAA,MAAA;CAAA,IAAA,KAAA,GAAA,EAAA,GAAA,GAAA,EACJ,EAAA,IAAA,GAAA,QAAA,GAAA,qBAAA,qBAAA,aAAA,iBAAA,MAAA,GAAA,aAAA,gBAGI,GAFF,IAAA,MAAA,KAAA,IAAA,SAAA,GAAa,IAAA,MAAA,KAAA,IAAA,YAAA,GACb,IAAA,MAAA,KAAA,IAAA,KAAA,GAGF,IAAM,GAIN,CAAA,GAAA,KAAgC,EAAS,EAAa,EACtD,IAAqB,aAAoB,SAAS,EAAA,SAAkB,GAAA;AAAA,CAAA,EAAA,OAAA,gBAE9D,KAAA,MAAA;AACJ,IAAA,kBAAoB;EACpB,IAAA,IAAc,EAAa,EAAA,OAAE,MAAa;AAE1C,EADA,EAAY,EAAM,EAClB,IAAW,GAAO,EAAE;;CAJtB,IAAA,IAAM;;;gBAuB+C,IAAA,EAAA,OAA3C,UAAyB,GAAkB,EAAA,EAAA,MAAA,GAAA,EAAA,MAAA;EAAA,IAAA;AA8B7C,EA9B6C,EAAA,QAAA,iBAwB7C,UAAA;AAEE,GADA,GAAkB,EAClB,EAAY,EAAE,CAAC;4BAzCvB,IAAA,EAAC,OAAD;GAAA,WAAe;GAAA,UACb,EAAC,GAAD;IAAA,GACM;IAAA;IAAA,eAEU;IAAA,uBACQ;IAAA,4BACK;IAAA,MACtB;IAAA;IAAA;IAAA;IAAA,UAIK;IAAA,eAER,EAAC,GAAD;KAAA;KAAA,kBAEE;KAAgD,CAAA;IAAA,UAdtD,CAgBG,KACC,EAAC,OAAD;KAAA,WAAgB,sBAAuB,IAAD,KAAA;KAAsC,UAC1E,EAAC,GAAD;MAAA,UAAmB;MAAA,UACjB,EAAC,GAAD,EAAA,UAAA;OACE,EAAC,UAAD,EAAA,UAAQ,YAAiB,CAAA;OACzB,EAAC,MAAD,EAAM,CAAA;OACJ,KAAgB,EAAA,IAAS,EAMzB;OAAA,EACU,CAAA;MACN,CAAA;KACN,CAAA,EAER,EAAC,GAAD;KAAA,UACY,CAAC;KAAA,WACD;KAAA,aACV;KAAA,WACW;KAAA,SACX;WAIM,EAAC,GAAD;MAAA,aAAkB;MAAA,MAAuB;MAAU,CAAA;KAAI,CAAA,CAAA;;GAE7D,CAAA,EAAA,EAAA,KAAA,GAAA,EAAA,KAAA,GAAA,EAAA,KAAA,GAAA,EAAA,KAAA,GAAA,EAAA,KAAA,GAAA,EAAA,KAAA,GAAA,EAAA,KAAA,GAAA,EAAA,KAAA,GAAA,EAAA,MAAA,GAAA,EAAA,MAAA,GAAA,EAAA,MAAA,GAAA,EAAA,MAAA;OAAA,KAAA,EAAA;AAAA,QA7CN;;AArBE,SAAA,EAAA,GAAA;AAAA,QAOyC;;AAPzC,SAAA,EAAA,GAAA;AAAA,QAOD,GAAA,SAAqB,EAAA,QAAA,IAAM,GAAA,EAAoB,GAAhD,EAAgD;;AAP9C,SAAA,EAAA,GAAA;AAAA,QA6CY,EAAC,OAAD;EAAA,WAAe;EAAA,UACb,EAAC,OAAD;GAAA,WAAe;GAAA,UACb,EAAC,QAAD,EAAA,UAAO,EAAA,MAAiB,CAAA;GACpB,CAAA;EACF,EAJgC,GAAG,EAAA,OAAY,EAAA,OAI/C"}
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
import { __toESM as e } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import t from "../../icons/index.js";
|
|
3
|
-
import { require_lodash as n } from "../../node_modules/lodash/lodash.js";
|
|
4
|
-
import r from "../../buttons/PrimaryButton.js";
|
|
5
|
-
import i from "../../buttons/DangerButton.js";
|
|
6
|
-
import { ErrorMessage as a } from "../errorMessage/index.js";
|
|
7
|
-
import o from "../../hint/index.js";
|
|
8
|
-
import s from "../base/InputTextBase.js";
|
|
9
|
-
import { Fragment as c, useState as l } from "react";
|
|
10
|
-
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
11
|
-
//#region src/lib/inputs/file/DragDropFile.tsx
|
|
12
|
-
var f = /* @__PURE__ */ e(n(), 1), p = (e) => e?.length ? f.default.map(e, (e) => e) : [], m = (e) => e.split(",").map((e) => e.includes(".") ? e.split(".")[1] : e.split("/")[1]).join(", "), h = (e) => e.split(", "), g = (e) => {
|
|
13
|
-
let { id: n = Math.random().toString(36).substring(2, 7), accept: f = "image/png, image/jpeg", labelButton: g = "Selecionar", subtitleDragDrop: _ = "Selecione arquivos do tipo ", titleDragDrop: v = "Arquivo para importação", onBtnClickInsert: y, inputRef: b, onChange: x, onDragEnter: S, onDragOver: C, onDragLeave: w, onDrop: T, showSubtitle: E = !0, multiple: D = !1, hint: O = [], hintPosition: k = "below", errorMessages: A = [], skeletonize: j = !1 } = e, [M, N] = l(!1), [P, F] = l([]), [I, L] = l(!1), [R, z] = l({
|
|
14
|
-
class: "",
|
|
15
|
-
text: v,
|
|
16
|
-
subtitle: _ + m(f),
|
|
17
|
-
error: !1
|
|
18
|
-
}), B = (e) => {
|
|
19
|
-
e.preventDefault?.(), e.stopPropagation?.();
|
|
20
|
-
}, V = (e, t, n) => {
|
|
21
|
-
L(!1), t.forEach((t) => (!I && e.indexOf(t) === -1 && L(!0), I)), !D && (n.dataTransfer.items.length > 1 || P.length > 0) ? z({
|
|
22
|
-
class: "disapprovedFile",
|
|
23
|
-
text: "Não é permitido anexar mais de um arquivo.",
|
|
24
|
-
subtitle: "",
|
|
25
|
-
error: !0
|
|
26
|
-
}) : z(I ? {
|
|
27
|
-
class: "disapprovedFile",
|
|
28
|
-
text: "Por favor, verifique a extensão do(s) arquivo(s) inserido(s).",
|
|
29
|
-
subtitle: `Apenas as extensões ${m(f)} são permitidas.`,
|
|
30
|
-
error: !0
|
|
31
|
-
} : {
|
|
32
|
-
class: "approvedFile",
|
|
33
|
-
text: v,
|
|
34
|
-
subtitle: _ + m(f),
|
|
35
|
-
error: !1
|
|
36
|
-
});
|
|
37
|
-
}, H = (e) => {
|
|
38
|
-
let t = [];
|
|
39
|
-
return e.dataTransfer.items && Array.from(e.dataTransfer.items).map((e) => (t.indexOf(e.type) === -1 && (t = [...t, e.type]), t)), t;
|
|
40
|
-
}, U = (e) => {
|
|
41
|
-
V(h(f), H(e), e), B(e), N(!0), S?.(e);
|
|
42
|
-
}, W = (e) => {
|
|
43
|
-
z({
|
|
44
|
-
class: "",
|
|
45
|
-
text: v,
|
|
46
|
-
subtitle: _ + m(f),
|
|
47
|
-
error: !1
|
|
48
|
-
}), B(e), N(!1), w?.(e);
|
|
49
|
-
}, G = (e) => {
|
|
50
|
-
B(e), C?.(e);
|
|
51
|
-
}, K = (e) => {
|
|
52
|
-
B(e), N(!1);
|
|
53
|
-
let t = e.dataTransfer;
|
|
54
|
-
if (t && !R.error) {
|
|
55
|
-
let n = p(t.files);
|
|
56
|
-
if (n.length > 0) {
|
|
57
|
-
let t = P.concat(n), r = t.map((e) => e.name);
|
|
58
|
-
F(t.filter(({ name: e }, t) => !r.includes(e, t + 1))), x?.(n, e), T?.(e);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
z({
|
|
62
|
-
class: "",
|
|
63
|
-
text: v,
|
|
64
|
-
subtitle: _ + m(f),
|
|
65
|
-
error: !1
|
|
66
|
-
});
|
|
67
|
-
}, q = (e) => {
|
|
68
|
-
e.preventDefault?.();
|
|
69
|
-
let t = p(e.target.files);
|
|
70
|
-
if (t.length > 0 && !I) {
|
|
71
|
-
let n = P.concat(t), r = n.map((e) => e.name);
|
|
72
|
-
F(n.filter(({ name: e }, t) => !r.includes(e, t + 1))), x?.(t, e);
|
|
73
|
-
}
|
|
74
|
-
}, J = () => F([]), Y = (e) => {
|
|
75
|
-
F((t) => t.filter((t) => t.name !== e));
|
|
76
|
-
};
|
|
77
|
-
return /* @__PURE__ */ d("div", {
|
|
78
|
-
className: "input-dragdrop-container",
|
|
79
|
-
onDragEnter: U,
|
|
80
|
-
onSubmit: (e) => e.preventDefault(),
|
|
81
|
-
children: [
|
|
82
|
-
/* @__PURE__ */ d("div", {
|
|
83
|
-
className: `drag-content ${j ? "-skeletonized" : ""}`,
|
|
84
|
-
children: [
|
|
85
|
-
/* @__PURE__ */ u("div", {
|
|
86
|
-
className: `${R.class} ${j ? "" : "content"}`,
|
|
87
|
-
children: R.error || P.length === 0 ? /* @__PURE__ */ d("label", {
|
|
88
|
-
htmlFor: n,
|
|
89
|
-
children: [
|
|
90
|
-
/* @__PURE__ */ u("h1", {
|
|
91
|
-
className: "title",
|
|
92
|
-
style: { paddingBottom: "20px" },
|
|
93
|
-
children: R.text
|
|
94
|
-
}),
|
|
95
|
-
E && /* @__PURE__ */ u("p", {
|
|
96
|
-
className: "subtitle",
|
|
97
|
-
children: R.subtitle
|
|
98
|
-
}),
|
|
99
|
-
!j && /* @__PURE__ */ u(r, {
|
|
100
|
-
onClick: y,
|
|
101
|
-
label: g
|
|
102
|
-
})
|
|
103
|
-
]
|
|
104
|
-
}) : /* @__PURE__ */ d(c, { children: [P?.length === 1 ? /* @__PURE__ */ d(c, { children: [P[0].type === "image/jpeg" || P[0].type === "image/png" ? /* @__PURE__ */ u("img", {
|
|
105
|
-
alt: P[0].name,
|
|
106
|
-
src: URL.createObjectURL(P[0])
|
|
107
|
-
}) : /* @__PURE__ */ u(t, {
|
|
108
|
-
size: 64,
|
|
109
|
-
name: "file_excel"
|
|
110
|
-
}), /* @__PURE__ */ u("div", {
|
|
111
|
-
className: "image-preview-solo",
|
|
112
|
-
children: /* @__PURE__ */ u("div", {
|
|
113
|
-
className: "description-file",
|
|
114
|
-
children: /* @__PURE__ */ u("span", {
|
|
115
|
-
className: "subtitle",
|
|
116
|
-
children: P[0].name
|
|
117
|
-
})
|
|
118
|
-
})
|
|
119
|
-
})] }) : /* @__PURE__ */ u("ul", {
|
|
120
|
-
className: "file-list",
|
|
121
|
-
children: P.length > 0 && P.map((e) => /* @__PURE__ */ d("li", {
|
|
122
|
-
className: "file-card",
|
|
123
|
-
children: [
|
|
124
|
-
/* @__PURE__ */ u(i, {
|
|
125
|
-
transparent: !0,
|
|
126
|
-
boxShadow: !1,
|
|
127
|
-
className: "delete-button",
|
|
128
|
-
onClick: () => Y(e.name),
|
|
129
|
-
icon: /* @__PURE__ */ u(t, {
|
|
130
|
-
customClass: "color-icon-upload",
|
|
131
|
-
name: "close"
|
|
132
|
-
})
|
|
133
|
-
}),
|
|
134
|
-
/* @__PURE__ */ u("div", {
|
|
135
|
-
className: "image-content",
|
|
136
|
-
children: (e.type === "image/jpeg" || e.type === "image/png") && /* @__PURE__ */ u("img", {
|
|
137
|
-
alt: e.name,
|
|
138
|
-
className: "image-preview",
|
|
139
|
-
src: URL.createObjectURL(e)
|
|
140
|
-
})
|
|
141
|
-
}),
|
|
142
|
-
/* @__PURE__ */ u("div", {
|
|
143
|
-
className: "description-file",
|
|
144
|
-
children: /* @__PURE__ */ u("span", {
|
|
145
|
-
className: "subtitle",
|
|
146
|
-
children: e.name
|
|
147
|
-
})
|
|
148
|
-
})
|
|
149
|
-
]
|
|
150
|
-
}, `${e.name}${e.size}`))
|
|
151
|
-
}), /* @__PURE__ */ d("footer", {
|
|
152
|
-
className: "footer-button-action",
|
|
153
|
-
children: [(!D && P.length < 1 || D) && /* @__PURE__ */ u(r, {
|
|
154
|
-
className: "selectButton",
|
|
155
|
-
onClick: y,
|
|
156
|
-
label: g
|
|
157
|
-
}), /* @__PURE__ */ u(i, {
|
|
158
|
-
className: "cancelButton",
|
|
159
|
-
onClick: J,
|
|
160
|
-
icon: /* @__PURE__ */ u(t, {
|
|
161
|
-
name: "close",
|
|
162
|
-
color: "white"
|
|
163
|
-
}),
|
|
164
|
-
label: "Limpar"
|
|
165
|
-
})]
|
|
166
|
-
})] })
|
|
167
|
-
}),
|
|
168
|
-
/* @__PURE__ */ u(s, {
|
|
169
|
-
...e,
|
|
170
|
-
inputRef: b,
|
|
171
|
-
style: { display: "none" },
|
|
172
|
-
type: "file",
|
|
173
|
-
id: n,
|
|
174
|
-
accept: f,
|
|
175
|
-
multiple: D,
|
|
176
|
-
onDragOver: G,
|
|
177
|
-
onDrop: K,
|
|
178
|
-
onDragLeave: W,
|
|
179
|
-
onChange: q
|
|
180
|
-
}),
|
|
181
|
-
M && /* @__PURE__ */ u("div", {
|
|
182
|
-
className: "drag-position-element",
|
|
183
|
-
id: "dragFileElement",
|
|
184
|
-
onDragEnter: U,
|
|
185
|
-
onDragLeave: W,
|
|
186
|
-
onDragOver: G,
|
|
187
|
-
onDrop: K
|
|
188
|
-
})
|
|
189
|
-
]
|
|
190
|
-
}),
|
|
191
|
-
/* @__PURE__ */ u(a, { messages: A }),
|
|
192
|
-
/* @__PURE__ */ u(o, {
|
|
193
|
-
visible: !!O && k === "below",
|
|
194
|
-
customClass: "hint",
|
|
195
|
-
description: O
|
|
196
|
-
})
|
|
197
|
-
]
|
|
198
|
-
});
|
|
199
|
-
};
|
|
200
|
-
//#endregion
|
|
201
|
-
export { g as default };
|
|
202
|
-
|
|
203
|
-
//# sourceMappingURL=DragDropFile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DragDropFile.js","names":[],"sources":["../../../src/lib/inputs/file/DragDropFile.tsx"],"sourcesContent":["import { useState, DragEvent, Fragment } from 'react';\nimport _ from 'lodash';\nimport { DangerButton, PrimaryButton } from '../../buttons';\nimport Icon from '../../icons';\nimport InputTextBase from '../base/InputTextBase';\nimport { CustomInputEvent } from '../base/types';\nimport { IDragDropFileProps } from './types';\nimport Hint from '../../hint';\nimport { ErrorMessage } from '../errorMessage';\n\nconst getFilesList = (files: FileList | null | undefined): File[] => (\n !files?.length ? [] : _.map(files, file => file)\n);\n\nconst getAcceptFilesLabel = (valueAccept: string) =>\n valueAccept.split(',').map(value => (value.includes('.') ? value.split('.')[1] : value.split('/')[1])).join(', ');\n\nconst getAcceptFilesWithoutRemoveText = (value: string) => value.split(', ');\n\nconst DragDropFile = (props: IDragDropFileProps) => {\n const {\n id = Math.random().toString(36).substring(2, 7),\n accept = 'image/png, image/jpeg',\n labelButton = 'Selecionar',\n subtitleDragDrop = 'Selecione arquivos do tipo ',\n titleDragDrop = 'Arquivo para importação',\n onBtnClickInsert,\n inputRef,\n onChange,\n onDragEnter,\n onDragOver,\n onDragLeave,\n onDrop,\n showSubtitle = true,\n multiple = false,\n hint = [],\n hintPosition = 'below',\n errorMessages = [],\n skeletonize = false,\n } = props;\n\n const [dragActive, setDragActive] = useState(false);\n const [fileList, setFileList] = useState<File[]>([]);\n const [typeNotAccept, setTypeNotAccept] = useState(false);\n const [message, setMessage] = useState({\n class: '',\n text: titleDragDrop,\n subtitle: subtitleDragDrop + getAcceptFilesLabel(accept),\n error: false,\n });\n\n const handleDrag = (e: DragEvent) => {\n e.preventDefault?.();\n e.stopPropagation?.();\n };\n\n const checkTypeNotAccept = (types: string[], getTypesArray: string[], e: DragEvent) => {\n setTypeNotAccept(false);\n\n getTypesArray.forEach((element) => {\n if (!typeNotAccept && types.indexOf(element) === -1) {\n setTypeNotAccept(true);\n }\n return typeNotAccept;\n });\n\n if (!multiple && (e.dataTransfer.items.length > 1 || fileList.length > 0)) {\n setMessage({\n class: 'disapprovedFile',\n text: 'Não é permitido anexar mais de um arquivo.',\n subtitle: '',\n error: true,\n });\n } else if (typeNotAccept) {\n setMessage({\n class: 'disapprovedFile',\n text: 'Por favor, verifique a extensão do(s) arquivo(s) inserido(s).',\n subtitle: `Apenas as extensões ${getAcceptFilesLabel(accept)} são permitidas.`,\n error: true,\n });\n } else {\n setMessage({\n class: 'approvedFile',\n text: titleDragDrop,\n subtitle: subtitleDragDrop + getAcceptFilesLabel(accept),\n error: false,\n });\n }\n };\n const getTypesFiles = (e: DragEvent) => {\n let typesFilesDrag: string[] = [];\n if (e.dataTransfer.items) {\n Array.from(e.dataTransfer.items).map((item) => {\n if (typesFilesDrag.indexOf(item.type) === -1) {\n typesFilesDrag = [...typesFilesDrag, item.type];\n }\n return typesFilesDrag;\n });\n }\n return typesFilesDrag;\n };\n\n const handleDragEnter = (e: DragEvent) => {\n const arrayTypes = getAcceptFilesWithoutRemoveText(accept);\n const getTypesArray = getTypesFiles(e);\n checkTypeNotAccept(arrayTypes, getTypesArray, e);\n handleDrag(e);\n setDragActive(true);\n onDragEnter?.(e);\n };\n\n const handleDragLeave = (e: DragEvent) => {\n setMessage({\n class: '',\n text: titleDragDrop,\n subtitle: subtitleDragDrop + getAcceptFilesLabel(accept),\n error: false,\n });\n handleDrag(e);\n setDragActive(false);\n onDragLeave?.(e);\n };\n\n const handleDragOver = (\n e: DragEvent<HTMLInputElement | HTMLTextAreaElement | HTMLDivElement>,\n ) => {\n handleDrag(e);\n onDragOver?.(e);\n };\n\n const handleDrop = (e: DragEvent) => {\n handleDrag(e);\n setDragActive(false);\n const input = e.dataTransfer;\n if (input && !message.error) {\n const files = getFilesList(input.files);\n if (files.length > 0) {\n const fileNoRepeat = fileList.concat(files);\n const ids = fileNoRepeat.map(o => o.name);\n const filtered = fileNoRepeat.filter(({ name }, index) => !ids.includes(name, index + 1));\n setFileList(filtered);\n onChange?.(files, e);\n onDrop?.(e);\n }\n }\n setMessage({\n class: '',\n text: titleDragDrop,\n subtitle: subtitleDragDrop + getAcceptFilesLabel(accept),\n error: false,\n });\n };\n\n const handleChange = (e: CustomInputEvent) => {\n e.preventDefault?.();\n const files = getFilesList(e.target.files);\n if (files.length > 0 && !typeNotAccept) {\n const fileNoRepeat = fileList.concat(files);\n const ids = fileNoRepeat.map(o => o.name);\n const filesFiltered =\n fileNoRepeat.filter(({ name }, index) => !ids.includes(name, index + 1));\n setFileList(filesFiltered);\n onChange?.(files, e);\n }\n };\n\n const onButtonClickRemoveAll = () => setFileList([]);\n\n const handleRemoveFile = (fileName: string) => {\n setFileList(prevState => prevState.filter(file => file.name !== fileName));\n };\n\n const generateListArray = () => {\n if (fileList?.length === 1) {\n return (\n <Fragment>\n {fileList[0].type === 'image/jpeg' || fileList[0].type === 'image/png' ?\n <img alt={fileList[0].name} src={URL.createObjectURL(fileList[0])} /> :\n <Icon size={64} name=\"file_excel\" />\n }\n <div className=\"image-preview-solo\">\n <div className=\"description-file\">\n <span className=\"subtitle\">{fileList[0].name}</span>\n </div>\n </div>\n </Fragment>\n );\n }\n return (\n <ul className=\"file-list\">\n {fileList.length > 0 && fileList.map(file => (\n <li\n key={`${file.name}${file.size}`}\n className=\"file-card\">\n <DangerButton\n transparent\n boxShadow={false}\n className=\"delete-button\"\n onClick={() => handleRemoveFile(file.name)}\n icon={<Icon customClass=\"color-icon-upload\" name=\"close\" />} />\n <div className=\"image-content\">\n {(file.type === 'image/jpeg' || file.type === 'image/png') && (\n <img\n alt={file.name}\n className=\"image-preview\"\n src={URL.createObjectURL(file)} />\n )}\n </div>\n <div className=\"description-file\">\n <span className=\"subtitle\">{file.name}</span>\n </div>\n </li>\n ))}\n </ul>\n );\n };\n\n return (\n <div className=\"input-dragdrop-container\" onDragEnter={handleDragEnter} onSubmit={e => e.preventDefault()}>\n <div className={`drag-content ${skeletonize ? '-skeletonized' : ''}`}>\n <div className={`${message.class} ${!skeletonize ? 'content' : ''}`}>\n {message.error || fileList.length === 0\n ? (\n <label htmlFor={id}>\n <h1 className=\"title\" style={{ paddingBottom: '20px' }}>{message.text}</h1>\n {showSubtitle && <p className=\"subtitle\">{message.subtitle}</p>}\n {!skeletonize &&\n <PrimaryButton onClick={onBtnClickInsert} label={labelButton} />}\n </label>\n )\n : (\n <Fragment>\n {generateListArray()}\n <footer className=\"footer-button-action\">\n {((!multiple && fileList.length < 1) || multiple) && (\n <PrimaryButton\n className=\"selectButton\"\n onClick={onBtnClickInsert}\n label={labelButton} />\n )}\n <DangerButton\n className=\"cancelButton\"\n onClick={onButtonClickRemoveAll}\n icon={<Icon name=\"close\" color=\"white\" />}\n label=\"Limpar\" />\n </footer>\n </Fragment>\n )}\n </div>\n <InputTextBase\n {...props}\n inputRef={inputRef}\n style={{ display: 'none' }}\n type=\"file\"\n id={id}\n accept={accept}\n multiple={multiple}\n onDragOver={handleDragOver}\n onDrop={handleDrop}\n onDragLeave={handleDragLeave}\n onChange={handleChange} />\n {dragActive && (\n <div\n className=\"drag-position-element\"\n id=\"dragFileElement\"\n onDragEnter={handleDragEnter}\n onDragLeave={handleDragLeave}\n onDragOver={handleDragOver}\n onDrop={handleDrop} />\n )}\n </div>\n <ErrorMessage messages={errorMessages} />\n <Hint visible={!!hint && hintPosition === 'below'} customClass=\"hint\" description={hint} />\n </div>\n );\n};\n\nexport default DragDropFile;\n"],"mappings":"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"}
|
package/lib/inputs/file/File.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import e from "../../gridlayout/index.js";
|
|
2
|
-
import t from "./DefaultFile.js";
|
|
3
|
-
import n from "./DragDropFile.js";
|
|
4
|
-
import { transformFilesToFileList as r } from "./helpers.js";
|
|
5
|
-
import { useEffect as i, useRef as a } from "react";
|
|
6
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
7
|
-
//#region src/lib/inputs/file/File.tsx
|
|
8
|
-
var s = ({ applyDragDrop: s = !1, defaultFiles: c, gridLayout: l, onBtnClickRemove: u, ...d }) => {
|
|
9
|
-
let f = a(null), p = () => {
|
|
10
|
-
f.current?.click();
|
|
11
|
-
}, m = () => {
|
|
12
|
-
f.current && (f.current.value = "", u && u()), u && u();
|
|
13
|
-
};
|
|
14
|
-
i(() => {
|
|
15
|
-
f?.current && c && (f.current.files = r(c));
|
|
16
|
-
}, [f?.current]);
|
|
17
|
-
let h = s ? /* @__PURE__ */ o(n, {
|
|
18
|
-
...d,
|
|
19
|
-
defaultFiles: c,
|
|
20
|
-
inputRef: f,
|
|
21
|
-
onBtnClickInsert: () => p()
|
|
22
|
-
}) : /* @__PURE__ */ o(t, {
|
|
23
|
-
...d,
|
|
24
|
-
inputRef: f,
|
|
25
|
-
defaultFiles: c,
|
|
26
|
-
onBtnClickRemove: () => m(),
|
|
27
|
-
onBtnClickInsert: () => p()
|
|
28
|
-
});
|
|
29
|
-
return l === void 0 ? h : /* @__PURE__ */ o(e, {
|
|
30
|
-
customClass: "-withinput",
|
|
31
|
-
cols: l,
|
|
32
|
-
style: { height: "100%" },
|
|
33
|
-
children: h
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
//#endregion
|
|
37
|
-
export { s as default };
|
|
38
|
-
|
|
39
|
-
//# sourceMappingURL=File.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"File.js","names":[],"sources":["../../../src/lib/inputs/file/File.tsx"],"sourcesContent":["import { useRef, useEffect } from 'react';\nimport DefaultFile from './DefaultFile';\nimport DragDropFile from './DragDropFile';\nimport Grid from '../../gridlayout';\nimport { IFileProps } from './types';\nimport { transformFilesToFileList } from './helpers';\n\nconst File = ({\n applyDragDrop = false, defaultFiles, gridLayout, onBtnClickRemove: onBtnClickRemoveProp, ...rest\n}: Omit<IFileProps, 'onBtnClickInsert'>) => {\n const inputFileRef = useRef<HTMLInputElement>(null);\n\n const onBtnClickInsert = () => {\n inputFileRef.current?.click();\n };\n\n const onBtnClickRemove = () => {\n if (inputFileRef.current) {\n inputFileRef.current.value = '';\n if (onBtnClickRemoveProp) onBtnClickRemoveProp();\n }\n if (onBtnClickRemoveProp) onBtnClickRemoveProp();\n };\n\n useEffect(() => {\n if (inputFileRef?.current && defaultFiles) {\n inputFileRef.current.files = transformFilesToFileList(defaultFiles);\n }\n }, [inputFileRef?.current]);\n\n const component = applyDragDrop ?\n (<DragDropFile\n {...rest}\n defaultFiles={defaultFiles}\n inputRef={inputFileRef as any}\n onBtnClickInsert={() => onBtnClickInsert()} />\n ) :\n (<DefaultFile\n {...rest}\n inputRef={inputFileRef as any}\n defaultFiles={defaultFiles}\n onBtnClickRemove={() => onBtnClickRemove()}\n onBtnClickInsert={() => onBtnClickInsert()} />\n );\n\n if (gridLayout !== undefined) {\n return (\n <Grid customClass=\"-withinput\" cols={gridLayout} style={{ height: '100%' }} >\n {component}\n </Grid>\n );\n }\n\n return component;\n};\n\nexport default File;\n"],"mappings":";;;;;;;AAOA,IAAM,KAAQ,EACZ,mBAAgB,IAAO,iBAAc,eAAY,kBAAkB,GAAuB,GAAG,QACnD;CAC1C,IAAM,IAAe,EAAyB,KAAK,EAE7C,UAAyB;AAC7B,IAAa,SAAS,OAAO;IAGzB,UAAyB;AAK7B,EAJI,EAAa,YACf,EAAa,QAAQ,QAAQ,IACzB,KAAsB,GAAsB,GAE9C,KAAsB,GAAsB;;AAGlD,SAAgB;AACd,EAAI,GAAc,WAAW,MAC3B,EAAa,QAAQ,QAAQ,EAAyB,EAAa;IAEpE,CAAC,GAAc,QAAQ,CAAC;CAE3B,IAAM,IAAY,IACb,kBAAC,GAAD;EACC,GAAI;EACU;EACd,UAAU;EACV,wBAAwB,GAAA;EAAsB,CAAA,GAE/C,kBAAC,GAAD;EACC,GAAI;EACJ,UAAU;EACI;EACd,wBAAwB,GAAkB;EAC1C,wBAAwB,GAAA;EAAsB,CAAA;AAWpD,QARI,MAAe,KAAA,IAQZ,IANH,kBAAC,GAAD;EAAM,aAAY;EAAa,MAAM;EAAY,OAAO,EAAE,QAAQ,QAAQ;YACvE;EACI,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import e from "../../icons/index.js";
|
|
2
|
-
import t from "../../buttons/index.js";
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
//#region src/lib/inputs/file/FileButtonSettings.tsx
|
|
5
|
-
var r = (r) => {
|
|
6
|
-
let { size: i = "medium", labelButton: a = "Selecionar", id: o, onBtnClickInsert: s } = r;
|
|
7
|
-
return /* @__PURE__ */ n("label", {
|
|
8
|
-
htmlFor: o,
|
|
9
|
-
children: /* @__PURE__ */ n(t, {
|
|
10
|
-
className: "uploadButton simple-search-file-button -shadowsdisabled -transparent",
|
|
11
|
-
onClick: s,
|
|
12
|
-
size: i,
|
|
13
|
-
style: { height: "100%" },
|
|
14
|
-
icon: /* @__PURE__ */ n(e, { name: "file_download" }),
|
|
15
|
-
label: a
|
|
16
|
-
})
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
//#endregion
|
|
20
|
-
export { r as default };
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=FileButtonSettings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileButtonSettings.js","names":[],"sources":["../../../src/lib/inputs/file/FileButtonSettings.tsx"],"sourcesContent":["import Button from '../../buttons';\nimport Icon from '../../icons';\nimport { IFileButtonSettingsProps } from './types';\n\nconst FileButtonSettings = (props: IFileButtonSettingsProps) => {\n const { size = 'medium', labelButton = 'Selecionar', id, onBtnClickInsert } = props;\n\n return (\n <label htmlFor={id}>\n <Button\n className=\"uploadButton simple-search-file-button -shadowsdisabled -transparent\"\n onClick={onBtnClickInsert}\n size={size}\n style={{ height: '100%' }}\n icon={<Icon name=\"file_download\" />}\n label={labelButton} />\n </label>\n );\n};\n\nexport default FileButtonSettings;\n"],"mappings":";;;;AAIA,IAAM,KAAsB,MAAoC;CAC9D,IAAM,EAAE,UAAO,UAAU,iBAAc,cAAc,OAAI,wBAAqB;AAE9E,QACE,kBAAC,SAAD;EAAO,SAAS;YACd,kBAAC,GAAD;GACE,WAAU;GACV,SAAS;GACH;GACN,OAAO,EAAE,QAAQ,QAAQ;GACzB,MAAM,kBAAC,GAAD,EAAM,MAAK,iBAAkB,CAAA;GACnC,OAAO;GAAe,CAAA;EAClB,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region src/lib/inputs/file/helpers.ts
|
|
2
|
-
var e = (e) => {
|
|
3
|
-
let t = e;
|
|
4
|
-
if (!(t instanceof FileList)) {
|
|
5
|
-
let e = new DataTransfer();
|
|
6
|
-
t instanceof File ? (e.items.add(t), t = e.files) : (t.map((t) => e.items.add(t)), t = e.files);
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
11
|
-
export { e as transformFilesToFileList };
|
|
12
|
-
|
|
13
|
-
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","names":[],"sources":["../../../src/lib/inputs/file/helpers.ts"],"sourcesContent":["import { CustomFile } from './types';\n\nexport const transformFilesToFileList = (files: CustomFile) => {\n let newFiles = files;\n if (!(newFiles instanceof FileList)) {\n const dt = new DataTransfer();\n if (newFiles instanceof File) {\n dt.items.add(newFiles);\n newFiles = dt.files;\n } else {\n newFiles.map(file => dt.items.add(file));\n newFiles = dt.files;\n }\n }\n return newFiles as FileList;\n};\n"],"mappings":";AAEA,IAAa,KAA4B,MAAsB;CAC7D,IAAI,IAAW;AACf,KAAI,EAAE,aAAoB,WAAW;EACnC,IAAM,IAAK,IAAI,cAAc;AAC7B,EAAI,aAAoB,QACtB,EAAG,MAAM,IAAI,EAAS,EACtB,IAAW,EAAG,UAEd,EAAS,KAAI,MAAQ,EAAG,MAAM,IAAI,EAAK,CAAC,EACxC,IAAW,EAAG;;AAGlB,QAAO"}
|
package/lib/inputs/file/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import e from "./DefaultFile.js";
|
|
2
|
-
import t from "./DragDropFile.js";
|
|
3
|
-
import n from "./File.js";
|
|
4
|
-
//#region src/lib/inputs/file/index.tsx
|
|
5
|
-
var r = n;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { e as DefaultFile, t as DragDropFile, r as default };
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/lib/inputs/file/index.tsx"],"sourcesContent":["import File from './File';\nimport DefaultFile from './DefaultFile';\nimport DragDropFile from './DragDropFile';\n\nexport default File;\n\nexport {\n DefaultFile,\n DragDropFile,\n};\n"],"mappings":";;;;AAIA,IAAA,IAAe"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { RefObject, DragEvent } from 'react';
|
|
2
|
-
import { Size } from '../../@types/Size';
|
|
3
|
-
import { CustomInputEvent } from '../base/types';
|
|
4
|
-
export type CustomFile = FileList | File | File[];
|
|
5
|
-
export interface IFileProps {
|
|
6
|
-
onBtnClickInsert?: () => void;
|
|
7
|
-
onBtnClickRemove?: () => void;
|
|
8
|
-
id?: string;
|
|
9
|
-
applyDragDrop?: boolean;
|
|
10
|
-
gridLayout?: string;
|
|
11
|
-
multiple?: boolean;
|
|
12
|
-
label?: string;
|
|
13
|
-
defaultFiles?: CustomFile;
|
|
14
|
-
hint?: string;
|
|
15
|
-
hintPosition?: 'below' | 'onLabelRight';
|
|
16
|
-
required?: boolean;
|
|
17
|
-
readOnly?: boolean;
|
|
18
|
-
name?: string;
|
|
19
|
-
onChange?: (files: File[], e?: CustomInputEvent | DragEvent) => void;
|
|
20
|
-
size?: Size;
|
|
21
|
-
accept?: string;
|
|
22
|
-
labelButton?: string;
|
|
23
|
-
inputRef?: RefObject<HTMLInputElement>;
|
|
24
|
-
type?: string;
|
|
25
|
-
onDragEnter?: (e?: DragEvent) => void;
|
|
26
|
-
onDragOver?: (e?: DragEvent) => void;
|
|
27
|
-
onDrop?: (e?: DragEvent) => void;
|
|
28
|
-
onDragLeave?: (e?: DragEvent) => void;
|
|
29
|
-
errorMessages?: string[];
|
|
30
|
-
skeletonize?: boolean;
|
|
31
|
-
showSubtitle?: boolean;
|
|
32
|
-
themePopover?: 'light' | 'dark';
|
|
33
|
-
popoverAlign?: 'right' | 'left';
|
|
34
|
-
}
|
|
35
|
-
export interface IDefaultFileProps extends IFileProps {
|
|
36
|
-
onBtnClickInsert: () => void;
|
|
37
|
-
onBtnClickRemove: () => void;
|
|
38
|
-
}
|
|
39
|
-
export interface IDragDropFileProps extends IFileProps {
|
|
40
|
-
subtitleDragDrop?: string;
|
|
41
|
-
titleDragDrop?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface IFileButtonSettingsProps {
|
|
44
|
-
id: string;
|
|
45
|
-
labelFileButton?: string;
|
|
46
|
-
size?: Size;
|
|
47
|
-
labelButton?: string;
|
|
48
|
-
onBtnClickInsert: () => void;
|
|
49
|
-
}
|
package/lib/inputs/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as TextField } from './text';
|
|
2
|
-
import { default as FileField } from './file';
|
|
3
|
-
import { default as SelectField } from './select';
|
|
4
|
-
import { default as SearchField } from './search';
|
|
5
|
-
import { default as MaskField, CnpjField, CpfField, PhoneField, ZipCodeField } from './mask';
|
|
6
|
-
import { default as MultiSelectField } from './multiSelect';
|
|
7
|
-
import { default as DateField } from './date';
|
|
8
|
-
import { default as TextareaField } from './textarea';
|
|
9
|
-
import { default as PeriodField } from './period';
|
|
10
|
-
import { default as ColorField } from './color';
|
|
11
|
-
import { default as NumberField, CurrencyField, DecimalField } from './number';
|
|
12
|
-
import { default as ErrorMessage } from './errorMessage';
|
|
13
|
-
export default TextField;
|
|
14
|
-
export { TextField, FileField, SelectField, SearchField, MaskField, CnpjField, CpfField, PhoneField, ZipCodeField, MultiSelectField, DateField, NumberField, CurrencyField, DecimalField, ColorField, TextareaField, PeriodField, ErrorMessage, };
|
package/lib/inputs/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ErrorMessage as e } from "./errorMessage/index.js";
|
|
2
|
-
import t from "./text/index.js";
|
|
3
|
-
import n from "./file/index.js";
|
|
4
|
-
import r from "./select/index.js";
|
|
5
|
-
import i from "./search/index.js";
|
|
6
|
-
import a from "./mask/Cpf.js";
|
|
7
|
-
import o from "./mask/Cnpj.js";
|
|
8
|
-
import s from "./mask/Phone.js";
|
|
9
|
-
import c from "./mask/ZipCode.js";
|
|
10
|
-
import l from "./mask/index.js";
|
|
11
|
-
import u from "./multiSelect/index.js";
|
|
12
|
-
import d from "./date/index.js";
|
|
13
|
-
import f from "./textarea/index.js";
|
|
14
|
-
import p from "./period/index.js";
|
|
15
|
-
import m from "./color/index.js";
|
|
16
|
-
import h from "./number/Decimal.js";
|
|
17
|
-
import g from "./number/Currency.js";
|
|
18
|
-
import _ from "./number/index.js";
|
|
19
|
-
//#region src/lib/inputs/index.ts
|
|
20
|
-
var v = t;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { o as CnpjField, m as ColorField, a as CpfField, g as CurrencyField, d as DateField, h as DecimalField, e as ErrorMessage, n as FileField, l as MaskField, u as MultiSelectField, _ as NumberField, p as PeriodField, s as PhoneField, i as SearchField, r as SelectField, t as TextField, f as TextareaField, c as ZipCodeField, v as default };
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
package/lib/inputs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/lib/inputs/index.ts"],"sourcesContent":["import TextField from './text';\nimport FileField from './file';\nimport SelectField from './select';\nimport SearchField from './search';\nimport MaskField, { CnpjField, CpfField, PhoneField, ZipCodeField } from './mask';\nimport MultiSelectField from './multiSelect';\nimport DateField from './date';\nimport TextareaField from './textarea';\nimport PeriodField from './period';\nimport ColorField from './color';\nimport NumberField, { CurrencyField, DecimalField } from './number';\nimport ErrorMessage from './errorMessage';\n\nexport default TextField;\nexport { \n TextField, \n FileField, \n SelectField, \n SearchField,\n MaskField,\n CnpjField,\n CpfField,\n PhoneField,\n ZipCodeField,\n MultiSelectField,\n DateField,\n NumberField,\n CurrencyField,\n DecimalField,\n ColorField,\n TextareaField,\n PeriodField,\n ErrorMessage,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAaA,IAAA,IAAe"}
|
package/lib/inputs/inputHOC.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { IInputHOCProps } from './types';
|
|
3
|
-
declare const InputHOC: <ComponentProps extends IInputHOCProps>(WrappedComponent: ComponentType<ComponentProps>) => (props: ComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default InputHOC;
|
package/lib/inputs/inputHOC.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { require_compiler_runtime as e } from "../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import t from "../gridlayout/index.js";
|
|
3
|
-
import { useState as n } from "react";
|
|
4
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
//#region src/lib/inputs/inputHOC.tsx
|
|
6
|
-
var i = e(), a = (e) => (a) => {
|
|
7
|
-
let o = (0, i.c)(8), { visible: s, gridLayout: c } = a, l = s === void 0 ? !0 : s, u = c === void 0 ? void 0 : c, [d, f] = n(!1), [p] = n(!1), m;
|
|
8
|
-
o[0] === Symbol.for("react.memo_cache_sentinel") ? (m = () => {
|
|
9
|
-
f(!0);
|
|
10
|
-
}, o[0] = m) : m = o[0];
|
|
11
|
-
let h = m, g;
|
|
12
|
-
o[1] === Symbol.for("react.memo_cache_sentinel") ? (g = () => {
|
|
13
|
-
f(!1);
|
|
14
|
-
}, o[1] = g) : g = o[1];
|
|
15
|
-
let _ = g, v;
|
|
16
|
-
if (o[2] !== u || o[3] !== d || o[4] !== a || o[5] !== p || o[6] !== l) {
|
|
17
|
-
let n = {
|
|
18
|
-
inputHasFocus: d,
|
|
19
|
-
requiredError: p,
|
|
20
|
-
onInputReceiveFocus: h,
|
|
21
|
-
onInputLostFocus: _
|
|
22
|
-
};
|
|
23
|
-
v = r(e, {
|
|
24
|
-
...a,
|
|
25
|
-
...n
|
|
26
|
-
}), u !== void 0 && l && (v = r(t, {
|
|
27
|
-
customClass: "-withinput",
|
|
28
|
-
cols: u,
|
|
29
|
-
children: r(e, {
|
|
30
|
-
...a,
|
|
31
|
-
...n
|
|
32
|
-
})
|
|
33
|
-
})), o[2] = u, o[3] = d, o[4] = a, o[5] = p, o[6] = l, o[7] = v;
|
|
34
|
-
} else v = o[7];
|
|
35
|
-
return v;
|
|
36
|
-
};
|
|
37
|
-
//#endregion
|
|
38
|
-
export { a as default };
|
|
39
|
-
|
|
40
|
-
//# sourceMappingURL=inputHOC.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inputHOC.js","names":[],"sources":["../../src/lib/inputs/inputHOC.tsx"],"sourcesContent":["import { ComponentType, useState } from 'react';\nimport Grid from '../gridlayout';\nimport { IInputHOCProps } from './types';\n\nconst InputHOC = <ComponentProps extends IInputHOCProps>(\n WrappedComponent: ComponentType<ComponentProps>,\n) => {\n const EnhancedComponent = (props: ComponentProps) => {\n const {\n visible = true,\n gridLayout = undefined,\n } = props;\n const [inputHasFocus, setInputHasFocus] = useState(false);\n const [requiredError] = useState(false);\n\n const onInputReceiveFocus = () => {\n setInputHasFocus(true);\n };\n\n const onInputLostFocus = () => {\n setInputHasFocus(false);\n };\n\n const newProps = {\n inputHasFocus,\n requiredError,\n onInputReceiveFocus,\n onInputLostFocus,\n };\n\n let result = <WrappedComponent {...props} {...newProps} />;\n if (gridLayout !== undefined && visible) {\n result = <Grid customClass=\"-withinput\" cols={gridLayout}><WrappedComponent {...props} {...newProps} /></Grid>;\n }\n\n return result;\n };\n return EnhancedComponent;\n};\n\nexport default InputHOC;\n"],"mappings":";;;;;aAIM,KACJ,OAEM,MAAA;CAAA,IAAA,KAAA,GAAA,EAAA,GAAA,EAAA,EACJ,EAAA,SAAA,GAAA,YAAA,MAGI,GAFF,IAAA,MAAA,KAAA,IAAA,KAAA,GACA,IAAA,MAAA,KAAA,IAAA,KAAA,IAAA,GAEF,CAAA,GAAA,KAA0C,EAAS,GAAM,EACzD,CAAA,KAAwB,EAAS,GAAM,EAAA;AAAA,CAAA,EAAA,OAAA,OAAA,IAAA,4BAAA,IAEjC,UAAA;AACJ,IAAiB,GAAK;;CADxB,IAAA,IAAM;qDAIA,UAAA;AACJ,IAAiB,GAAM;;CADzB,IAAA,IAAM;;EAIN,IAAA,IAAiB;GAAA;GAAA;GAAA;GAAA;GAKhB;EAED,IAAa,EAAC,GAAD;GAAA,GAAsB;GAAA,GAAW;GAAY,CAAA,EACtD,MAAe,KAAA,KAAf,MACF,IAAS,EAAC,GAAD;GAAA,aAAkB;GAAA,MAAmB;GAAA,UAAY,EAAC,GAAD;IAAA,GAAsB;IAAA,GAAW;IAAY,CAAA;GAAO,CAAA;;QAGzG"}
|