linear-react-components-ui 1.1.26-beta.2 → 1.1.26-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/@types/ColorStyles.d.ts +1 -0
- package/lib/@types/Position.d.ts +1 -0
- package/lib/_virtual/_commonjsHelpers.js +9 -0
- package/lib/_virtual/_commonjsHelpers.js.map +1 -0
- package/lib/_virtual/compiler-runtime.js +6 -0
- package/lib/_virtual/compiler-runtime.js.map +1 -0
- package/lib/_virtual/compiler-runtime2.js +5 -0
- package/lib/_virtual/compiler-runtime2.js.map +1 -0
- package/lib/_virtual/index.js +8 -0
- package/lib/_virtual/index.js.map +1 -0
- package/lib/_virtual/index2.js +5 -0
- package/lib/_virtual/index2.js.map +1 -0
- package/lib/_virtual/index3.js +5 -0
- package/lib/_virtual/index3.js.map +1 -0
- package/lib/_virtual/lodash.js +9 -0
- package/lib/_virtual/lodash.js.map +1 -0
- package/lib/_virtual/lodash2.js +5 -0
- package/lib/_virtual/lodash2.js.map +1 -0
- package/lib/_virtual/memoize.js +8 -0
- package/lib/_virtual/memoize.js.map +1 -0
- package/lib/_virtual/react-compiler-runtime.development.js +5 -0
- package/lib/_virtual/react-compiler-runtime.development.js.map +1 -0
- package/lib/_virtual/react-compiler-runtime.production.js +5 -0
- package/lib/_virtual/react-compiler-runtime.production.js.map +1 -0
- package/lib/_virtual/react-is.development.js +5 -0
- package/lib/_virtual/react-is.development.js.map +1 -0
- package/lib/_virtual/react-is.production.min.js +5 -0
- package/lib/_virtual/react-is.production.min.js.map +1 -0
- package/lib/alerts/AlertContainer.js +9 -2
- package/lib/alerts/AlertContainer.js.map +1 -0
- package/lib/alerts/AlertProvider.js +28 -21
- package/lib/alerts/AlertProvider.js.map +1 -0
- package/lib/alerts/BaseAlert.js +13 -9
- package/lib/alerts/BaseAlert.js.map +1 -0
- package/lib/alerts/Message.js +92 -64
- package/lib/alerts/Message.js.map +1 -0
- package/lib/alerts/helpers.js +1 -0
- package/lib/alerts/helpers.js.map +1 -0
- package/lib/alerts/index.d.ts +3 -3
- package/lib/alerts/index.js +3 -1
- package/lib/alerts/index.js.map +1 -0
- package/lib/alerts/withAlert.d.ts +2 -2
- package/lib/alerts/withAlert.js +12 -7
- package/lib/alerts/withAlert.js.map +1 -0
- package/lib/assets/styles/alerts.css +1 -0
- package/lib/assets/styles/badge.css +1 -0
- package/lib/assets/{button.css → styles/button.css} +1 -1
- package/lib/assets/styles/calendar.css +1 -0
- package/lib/assets/styles/checkbox.css +1 -0
- package/lib/assets/styles/checkbox2.css +1 -0
- package/lib/assets/styles/colorpicker.css +1 -0
- package/lib/assets/styles/datepicker.css +1 -0
- package/lib/assets/styles/datepicker2.css +1 -0
- package/lib/assets/styles/dialog.css +1 -0
- package/lib/assets/styles/drawers.css +1 -0
- package/lib/assets/styles/dropdown.css +1 -0
- package/lib/assets/{index12.css → styles/fieldset.css} +1 -1
- package/lib/assets/styles/file.css +1 -0
- package/lib/assets/styles/filefield.css +1 -0
- package/lib/assets/styles/floatMenu.css +1 -0
- package/lib/assets/styles/gridlayout.css +1 -0
- package/lib/assets/{InputTextBase.css → styles/input.css} +1 -1
- package/lib/assets/{label.css → styles/label.css} +1 -1
- package/lib/assets/styles/list.css +1 -0
- package/lib/assets/styles/multiSelect.css +1 -0
- package/lib/assets/styles/numberfield.css +1 -0
- package/lib/assets/styles/panel.css +1 -0
- package/lib/assets/styles/periodpicker.css +1 -0
- package/lib/assets/styles/progress.css +1 -0
- package/lib/assets/{radio.css → styles/radio.css} +1 -1
- package/lib/assets/styles/radiofield.css +1 -0
- package/lib/assets/styles/select.css +1 -0
- package/lib/assets/styles/selectfield.css +1 -0
- package/lib/assets/styles/shortcuts.css +1 -0
- package/lib/assets/styles/sidenav.css +1 -0
- package/lib/assets/styles/skeleton.css +1 -0
- package/lib/assets/styles/slot.css +1 -0
- package/lib/assets/styles/table.css +1 -0
- package/lib/assets/styles/tabs.css +1 -0
- package/lib/assets/styles/textfield.css +1 -0
- package/lib/assets/styles/toolbar.css +1 -0
- package/lib/assets/styles/tooltip.css +1 -0
- package/lib/assets/styles/treetable.css +1 -0
- package/lib/assets/styles/treeview.css +1 -0
- package/lib/assets/styles/uitour.css +1 -0
- package/lib/assets/styles/wizard.css +1 -0
- package/lib/avatar/index.js +48 -68
- package/lib/avatar/index.js.map +1 -0
- package/lib/badge/index.js +27 -23
- package/lib/badge/index.js.map +1 -0
- package/lib/buttons/ActivateButton.js +10 -4
- package/lib/buttons/ActivateButton.js.map +1 -0
- package/lib/buttons/AddButton.js +13 -5
- package/lib/buttons/AddButton.js.map +1 -0
- package/lib/buttons/Button.js +18 -6
- package/lib/buttons/Button.js.map +1 -0
- package/lib/buttons/CancelButton.js +15 -4
- package/lib/buttons/CancelButton.js.map +1 -0
- package/lib/buttons/DangerButton.js +16 -4
- package/lib/buttons/DangerButton.js.map +1 -0
- package/lib/buttons/DefaultButton.js +90 -120
- package/lib/buttons/DefaultButton.js.map +1 -0
- package/lib/buttons/DestroyButton.d.ts +1 -1
- package/lib/buttons/DestroyButton.js +17 -5
- package/lib/buttons/DestroyButton.js.map +1 -0
- package/lib/buttons/EditButton.js +10 -4
- package/lib/buttons/EditButton.js.map +1 -0
- package/lib/buttons/InactivateButton.js +10 -4
- package/lib/buttons/InactivateButton.js.map +1 -0
- package/lib/buttons/InfoButton.js +16 -4
- package/lib/buttons/InfoButton.js.map +1 -0
- package/lib/buttons/PrimaryButton.js +16 -4
- package/lib/buttons/PrimaryButton.js.map +1 -0
- package/lib/buttons/RestoreButton.js +10 -4
- package/lib/buttons/RestoreButton.js.map +1 -0
- package/lib/buttons/SaveButton.js +15 -4
- package/lib/buttons/SaveButton.js.map +1 -0
- package/lib/buttons/SuccessButton.js +15 -3
- package/lib/buttons/SuccessButton.js.map +1 -0
- package/lib/buttons/WarningButton.js +16 -4
- package/lib/buttons/WarningButton.js.map +1 -0
- package/lib/buttons/button_container/index.js +22 -16
- package/lib/buttons/button_container/index.js.map +1 -0
- package/lib/buttons/index.d.ts +1 -1
- package/lib/buttons/index.js +3 -1
- package/lib/buttons/index.js.map +1 -0
- package/lib/buttons/split_button/index.d.ts +2 -2
- package/lib/buttons/split_button/index.js +57 -57
- package/lib/buttons/split_button/index.js.map +1 -0
- package/lib/buttons/types.d.ts +6 -6
- package/lib/calendar/DangerCalendar.d.ts +1 -1
- package/lib/calendar/DangerCalendar.js +14 -4
- package/lib/calendar/DangerCalendar.js.map +1 -0
- package/lib/calendar/InfoCalendar.d.ts +1 -1
- package/lib/calendar/InfoCalendar.js +13 -3
- package/lib/calendar/InfoCalendar.js.map +1 -0
- package/lib/calendar/PrimaryCalendar.d.ts +1 -1
- package/lib/calendar/PrimaryCalendar.js +13 -3
- package/lib/calendar/PrimaryCalendar.js.map +1 -0
- package/lib/calendar/SuccessCalendar.d.ts +1 -1
- package/lib/calendar/SuccessCalendar.js +14 -4
- package/lib/calendar/SuccessCalendar.js.map +1 -0
- package/lib/calendar/WarningCalendar.d.ts +1 -1
- package/lib/calendar/WarningCalendar.js +14 -4
- package/lib/calendar/WarningCalendar.js.map +1 -0
- package/lib/calendar/base/helpers.d.ts +1 -2
- package/lib/calendar/base/helpers.js +30 -94
- package/lib/calendar/base/helpers.js.map +1 -0
- package/lib/calendar/base/index.js +167 -102
- package/lib/calendar/base/index.js.map +1 -0
- package/lib/calendar/index.js +1 -0
- package/lib/calendar/index.js.map +1 -0
- package/lib/checkbox/index.d.ts +1 -2
- package/lib/checkbox/index.js +97 -27
- package/lib/checkbox/index.js.map +1 -0
- package/lib/checkbox/types.d.ts +1 -0
- package/lib/dialog/Alert.js +20 -20
- package/lib/dialog/Alert.js.map +1 -0
- package/lib/dialog/Custom.js +44 -30
- package/lib/dialog/Custom.js.map +1 -0
- package/lib/dialog/Error.js +20 -20
- package/lib/dialog/Error.js.map +1 -0
- package/lib/dialog/Information.js +20 -20
- package/lib/dialog/Information.js.map +1 -0
- package/lib/dialog/Question.js +45 -60
- package/lib/dialog/Question.js.map +1 -0
- package/lib/dialog/Warning.js +20 -20
- package/lib/dialog/Warning.js.map +1 -0
- package/lib/dialog/base/Content.js +14 -4
- package/lib/dialog/base/Content.js.map +1 -0
- package/lib/dialog/base/Footer.js +9 -3
- package/lib/dialog/base/Footer.js.map +1 -0
- package/lib/dialog/base/Header.js +39 -5
- package/lib/dialog/base/Header.js.map +1 -0
- package/lib/dialog/base/index.d.ts +5 -2
- package/lib/dialog/base/index.js +180 -7
- package/lib/dialog/base/index.js.map +1 -0
- package/lib/dialog/base/style.js +10 -0
- package/lib/dialog/base/style.js.map +1 -0
- package/lib/dialog/form/index.d.ts +1 -2
- package/lib/dialog/form/index.js +109 -13
- package/lib/dialog/form/index.js.map +1 -0
- package/lib/dialog/index.js +4 -3
- package/lib/dialog/index.js.map +1 -0
- package/lib/dialog/types.d.ts +10 -5
- package/lib/dialog/wizard/index.d.ts +1 -2
- package/lib/dialog/wizard/index.js +65 -12
- package/lib/dialog/wizard/index.js.map +1 -0
- package/lib/dialog/wizard/progressbar.js +29 -3
- package/lib/dialog/wizard/progressbar.js.map +1 -0
- package/lib/dialog/wizard/step.js +17 -3
- package/lib/dialog/wizard/step.js.map +1 -0
- package/lib/dialog/wizard/useWizard.js +41 -27
- package/lib/dialog/wizard/useWizard.js.map +1 -0
- package/lib/drawer/Content.js +16 -8
- package/lib/drawer/Content.js.map +1 -0
- package/lib/drawer/Drawer.d.ts +1 -2
- package/lib/drawer/Drawer.js +63 -58
- package/lib/drawer/Drawer.js.map +1 -0
- package/lib/drawer/Header.js +54 -40
- package/lib/drawer/Header.js.map +1 -0
- package/lib/drawer/helpers.d.ts +1 -2
- package/lib/drawer/helpers.js +4 -3
- package/lib/drawer/helpers.js.map +1 -0
- package/lib/drawer/index.js +6 -4
- package/lib/drawer/index.js.map +1 -0
- package/lib/drawer/types.d.ts +4 -3
- package/lib/dropdown/Popup.js +19 -16
- package/lib/dropdown/Popup.js.map +1 -0
- package/lib/dropdown/index.d.ts +3 -0
- package/lib/dropdown/index.js +6 -0
- package/lib/dropdown/index.js.map +1 -0
- package/lib/dropdown/withDropdown.d.ts +3 -3
- package/lib/dropdown/withDropdown.js +77 -50
- package/lib/dropdown/withDropdown.js.map +1 -0
- package/lib/fieldset/index.js +67 -47
- package/lib/fieldset/index.js.map +1 -0
- package/lib/form/Field.js +107 -62
- package/lib/form/Field.js.map +1 -0
- package/lib/form/FieldArray.js +44 -69
- package/lib/form/FieldArray.js.map +1 -0
- package/lib/form/FieldNumber.js +52 -37
- package/lib/form/FieldNumber.js.map +1 -0
- package/lib/form/FieldPeriod.js +88 -59
- package/lib/form/FieldPeriod.js.map +1 -0
- package/lib/form/helpers.d.ts +2 -3
- package/lib/form/helpers.js +22 -19
- package/lib/form/helpers.js.map +1 -0
- package/lib/form/index.d.ts +1 -1
- package/lib/form/index.js +141 -137
- package/lib/form/index.js.map +1 -0
- package/lib/form/types.d.ts +14 -2
- package/lib/form/withFieldHOC.d.ts +2 -2
- package/lib/form/withFieldHOC.js +59 -48
- package/lib/form/withFieldHOC.js.map +1 -0
- package/lib/form/withFormSecurity.d.ts +3 -3
- package/lib/form/withFormSecurity.js +19 -21
- package/lib/form/withFormSecurity.js.map +1 -0
- package/lib/form2/helpers.d.ts +5 -0
- package/lib/form2/helpers.js +24 -0
- package/lib/form2/helpers.js.map +1 -0
- package/lib/form2/index.d.ts +7 -0
- package/lib/form2/index.js +23 -0
- package/lib/form2/index.js.map +1 -0
- package/lib/form2/types.d.ts +128 -0
- package/lib/form2/useForm/index.d.ts +3 -0
- package/lib/form2/useForm/index.js +117 -0
- package/lib/form2/useForm/index.js.map +1 -0
- package/lib/gridlayout/GridCol.js +22 -20
- package/lib/gridlayout/GridCol.js.map +1 -0
- package/lib/gridlayout/GridRow.js +24 -21
- package/lib/gridlayout/GridRow.js.map +1 -0
- package/lib/gridlayout/index.js +1 -0
- package/lib/gridlayout/index.js.map +1 -0
- package/lib/hint/helpers.js +10 -5
- package/lib/hint/helpers.js.map +1 -0
- package/lib/hint/index.js +29 -25
- package/lib/hint/index.js.map +1 -0
- package/lib/icons/helper.d.ts +20 -0
- package/lib/icons/helper.js +163 -569
- package/lib/icons/helper.js.map +1 -0
- package/lib/icons/index.d.ts +2 -5
- package/lib/icons/index.js +72 -57
- package/lib/icons/index.js.map +1 -0
- package/lib/icons/types.d.ts +2 -6
- package/lib/index.js +24 -25
- package/lib/index.js.map +1 -0
- package/lib/inputs/base/InputTextBase.js +142 -223
- package/lib/inputs/base/InputTextBase.js.map +1 -0
- package/lib/inputs/base/helpers.d.ts +3 -3
- package/lib/inputs/base/helpers.js +8 -5
- package/lib/inputs/base/helpers.js.map +1 -0
- package/lib/inputs/base/types.d.ts +6 -16
- package/lib/inputs/color/index.js +55 -75
- package/lib/inputs/color/index.js.map +1 -0
- package/lib/inputs/color/types.d.ts +1 -1
- package/lib/inputs/date/Dialog.js +16 -16
- package/lib/inputs/date/Dialog.js.map +1 -0
- package/lib/inputs/date/Dropdown.js +17 -14
- package/lib/inputs/date/Dropdown.js.map +1 -0
- package/lib/inputs/date/helpers.d.ts +30 -1
- package/lib/inputs/date/helpers.js +49 -7
- package/lib/inputs/date/helpers.js.map +1 -0
- package/lib/inputs/date/index.js +111 -156
- package/lib/inputs/date/index.js.map +1 -0
- package/lib/inputs/date/types.d.ts +3 -2
- package/lib/inputs/errorMessage/index.d.ts +1 -2
- package/lib/inputs/errorMessage/index.js +23 -13
- package/lib/inputs/errorMessage/index.js.map +1 -0
- package/lib/inputs/file/DefaultFile.js +66 -68
- package/lib/inputs/file/DefaultFile.js.map +1 -0
- package/lib/inputs/file/DragDropFile.js +99 -155
- package/lib/inputs/file/DragDropFile.js.map +1 -0
- package/lib/inputs/file/File.d.ts +1 -1
- package/lib/inputs/file/File.js +24 -40
- package/lib/inputs/file/File.js.map +1 -0
- package/lib/inputs/file/FileButtonSettings.js +22 -18
- package/lib/inputs/file/FileButtonSettings.js.map +1 -0
- package/lib/inputs/file/helpers.js +1 -0
- package/lib/inputs/file/helpers.js.map +1 -0
- package/lib/inputs/file/index.js +1 -0
- package/lib/inputs/file/index.js.map +1 -0
- package/lib/inputs/index.d.ts +14 -0
- package/lib/inputs/index.js +40 -0
- package/lib/inputs/index.js.map +1 -0
- package/lib/inputs/inputHOC.d.ts +2 -2
- package/lib/inputs/inputHOC.js +39 -21
- package/lib/inputs/inputHOC.js.map +1 -0
- package/lib/inputs/mask/BaseMask.d.ts +1 -1
- package/lib/inputs/mask/BaseMask.js +113 -2620
- package/lib/inputs/mask/BaseMask.js.map +1 -0
- package/lib/inputs/mask/Cnpj.js +43 -36
- package/lib/inputs/mask/Cnpj.js.map +1 -0
- package/lib/inputs/mask/Cpf.js +46 -33
- package/lib/inputs/mask/Cpf.js.map +1 -0
- package/lib/inputs/mask/Phone.js +11 -6
- package/lib/inputs/mask/Phone.js.map +1 -0
- package/lib/inputs/mask/ZipCode.js +10 -4
- package/lib/inputs/mask/ZipCode.js.map +1 -0
- package/lib/inputs/mask/helpers.d.ts +2 -49
- package/lib/inputs/mask/helpers.js +60 -54
- package/lib/inputs/mask/helpers.js.map +1 -0
- package/lib/inputs/mask/index.js +1 -0
- package/lib/inputs/mask/index.js.map +1 -0
- package/lib/inputs/mask/types.d.ts +2 -1
- package/lib/inputs/multiSelect/ActionButtons.js +37 -48
- package/lib/inputs/multiSelect/ActionButtons.js.map +1 -0
- package/lib/inputs/multiSelect/Dropdown.js +96 -133
- package/lib/inputs/multiSelect/Dropdown.js.map +1 -0
- package/lib/inputs/multiSelect/helper.js +5 -7
- package/lib/inputs/multiSelect/helper.js.map +1 -0
- package/lib/inputs/multiSelect/index.js +183 -127
- package/lib/inputs/multiSelect/index.js.map +1 -0
- package/lib/inputs/multiSelect/types.d.ts +3 -1
- package/lib/inputs/number/BaseNumber.js +49 -36
- package/lib/inputs/number/BaseNumber.js.map +1 -0
- package/lib/inputs/number/Currency.js +20 -12
- package/lib/inputs/number/Currency.js.map +1 -0
- package/lib/inputs/number/Decimal.js +10 -4
- package/lib/inputs/number/Decimal.js.map +1 -0
- package/lib/inputs/number/format_number.d.ts +1 -1
- package/lib/inputs/number/format_number.js +5 -5
- package/lib/inputs/number/format_number.js.map +1 -0
- package/lib/inputs/number/index.js +33 -35
- package/lib/inputs/number/index.js.map +1 -0
- package/lib/inputs/number/types.d.ts +3 -3
- package/lib/inputs/period/Dialog.js +17 -16
- package/lib/inputs/period/Dialog.js.map +1 -0
- package/lib/inputs/period/Dropdown.js +16 -15
- package/lib/inputs/period/Dropdown.js.map +1 -0
- package/lib/inputs/period/PeriodList.js +42 -27
- package/lib/inputs/period/PeriodList.js.map +1 -0
- package/lib/inputs/period/helper.js +20 -23
- package/lib/inputs/period/helper.js.map +1 -0
- package/lib/inputs/period/index.js +185 -337
- package/lib/inputs/period/index.js.map +1 -0
- package/lib/inputs/period/types.d.ts +4 -1
- package/lib/inputs/search/index.js +103 -72
- package/lib/inputs/search/index.js.map +1 -0
- package/lib/inputs/select/ActionButtons.js +25 -45
- package/lib/inputs/select/ActionButtons.js.map +1 -0
- package/lib/inputs/select/Dropdown.js +53 -101
- package/lib/inputs/select/Dropdown.js.map +1 -0
- package/lib/inputs/select/helper.d.ts +1 -1
- package/lib/inputs/select/helper.js +43 -45
- package/lib/inputs/select/helper.js.map +1 -0
- package/lib/inputs/select/index.js +25 -26
- package/lib/inputs/select/index.js.map +1 -0
- package/lib/inputs/select/multiple/Selecteds.d.ts +1 -1
- package/lib/inputs/select/multiple/Selecteds.js +25 -19
- package/lib/inputs/select/multiple/Selecteds.js.map +1 -0
- package/lib/inputs/select/multiple/index.js +104 -171
- package/lib/inputs/select/multiple/index.js.map +1 -0
- package/lib/inputs/select/simple/index.js +126 -193
- package/lib/inputs/select/simple/index.js.map +1 -0
- package/lib/inputs/select/types.d.ts +2 -0
- package/lib/inputs/text/index.js +10 -4
- package/lib/inputs/text/index.js.map +1 -0
- package/lib/inputs/text/types.d.ts +1 -4
- package/lib/inputs/textarea/index.js +13 -14
- package/lib/inputs/textarea/index.js.map +1 -0
- package/lib/inputs/types.d.ts +3 -2
- package/lib/inputs2/checkboxfield/index.d.ts +32 -0
- package/lib/inputs2/checkboxfield/index.js +114 -0
- package/lib/inputs2/checkboxfield/index.js.map +1 -0
- package/lib/inputs2/colorfield/index.d.ts +8 -0
- package/lib/inputs2/colorfield/index.js +89 -0
- package/lib/inputs2/colorfield/index.js.map +1 -0
- package/lib/inputs2/date/base/constants.d.ts +4 -0
- package/lib/inputs2/date/base/constants.js +39 -0
- package/lib/inputs2/date/base/constants.js.map +1 -0
- package/lib/inputs2/date/base/index.d.ts +6 -0
- package/lib/inputs2/date/base/index.js +134 -0
- package/lib/inputs2/date/base/index.js.map +1 -0
- package/lib/inputs2/date/datefield/calendarbox.d.ts +6 -0
- package/lib/inputs2/date/datefield/calendarbox.js +74 -0
- package/lib/inputs2/date/datefield/calendarbox.js.map +1 -0
- package/lib/inputs2/date/datefield/context.d.ts +4 -0
- package/lib/inputs2/date/datefield/context.js +12 -0
- package/lib/inputs2/date/datefield/context.js.map +1 -0
- package/lib/inputs2/date/datefield/index.d.ts +4 -0
- package/lib/inputs2/date/datefield/index.js +317 -0
- package/lib/inputs2/date/datefield/index.js.map +1 -0
- package/lib/inputs2/date/datefield/triggers.d.ts +8 -0
- package/lib/inputs2/date/datefield/triggers.js +30 -0
- package/lib/inputs2/date/datefield/triggers.js.map +1 -0
- package/lib/inputs2/date/datefield/types.d.ts +61 -0
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +6 -0
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +94 -0
- package/lib/inputs2/date/dateperiodfield/calendarbox.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/context.d.ts +4 -0
- package/lib/inputs2/date/dateperiodfield/context.js +12 -0
- package/lib/inputs2/date/dateperiodfield/context.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/index.d.ts +4 -0
- package/lib/inputs2/date/dateperiodfield/index.js +522 -0
- package/lib/inputs2/date/dateperiodfield/index.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/triggers.d.ts +5 -0
- package/lib/inputs2/date/dateperiodfield/triggers.js +61 -0
- package/lib/inputs2/date/dateperiodfield/triggers.js.map +1 -0
- package/lib/inputs2/date/dateperiodfield/types.d.ts +99 -0
- package/lib/inputs2/date/helpers.d.ts +10 -0
- package/lib/inputs2/date/helpers.js +42 -0
- package/lib/inputs2/date/helpers.js.map +1 -0
- package/lib/inputs2/date/types.d.ts +59 -0
- package/lib/inputs2/date/types.js +5 -0
- package/lib/inputs2/date/types.js.map +1 -0
- package/lib/inputs2/filefield/index.d.ts +11 -0
- package/lib/inputs2/filefield/index.js +120 -0
- package/lib/inputs2/filefield/index.js.map +1 -0
- package/lib/inputs2/index.d.ts +16 -0
- package/lib/inputs2/index.js +33 -0
- package/lib/inputs2/index.js.map +1 -0
- package/lib/inputs2/mask/BaseMask.d.ts +13 -0
- package/lib/inputs2/mask/BaseMask.js +79 -0
- package/lib/inputs2/mask/BaseMask.js.map +1 -0
- package/lib/inputs2/mask/Cnpj.d.ts +8 -0
- package/lib/inputs2/mask/Cnpj.js +54 -0
- package/lib/inputs2/mask/Cnpj.js.map +1 -0
- package/lib/inputs2/mask/Cpf.d.ts +7 -0
- package/lib/inputs2/mask/Cpf.js +54 -0
- package/lib/inputs2/mask/Cpf.js.map +1 -0
- package/lib/inputs2/mask/Phone.d.ts +6 -0
- package/lib/inputs2/mask/Phone.js +22 -0
- package/lib/inputs2/mask/Phone.js.map +1 -0
- package/lib/inputs2/mask/ZipCode.d.ts +3 -0
- package/lib/inputs2/mask/ZipCode.js +20 -0
- package/lib/inputs2/mask/ZipCode.js.map +1 -0
- package/lib/inputs2/mask/helpers.d.ts +2 -0
- package/lib/inputs2/mask/helpers.js +34 -0
- package/lib/inputs2/mask/helpers.js.map +1 -0
- package/lib/inputs2/numberfield/currency.d.ts +3 -0
- package/lib/inputs2/numberfield/currency.js +111 -0
- package/lib/inputs2/numberfield/currency.js.map +1 -0
- package/lib/inputs2/numberfield/decimal.d.ts +3 -0
- package/lib/inputs2/numberfield/decimal.js +103 -0
- package/lib/inputs2/numberfield/decimal.js.map +1 -0
- package/lib/inputs2/numberfield/helpers.d.ts +28 -0
- package/lib/inputs2/numberfield/helpers.js +19 -0
- package/lib/inputs2/numberfield/helpers.js.map +1 -0
- package/lib/inputs2/numberfield/index.d.ts +7 -0
- package/lib/inputs2/numberfield/index.js +100 -0
- package/lib/inputs2/numberfield/index.js.map +1 -0
- package/lib/inputs2/numberfield/types.d.ts +26 -0
- package/lib/inputs2/radiofield/index.d.ts +4 -0
- package/lib/inputs2/radiofield/index.js +114 -0
- package/lib/inputs2/radiofield/index.js.map +1 -0
- package/lib/inputs2/radiofield/types.d.ts +31 -0
- package/lib/inputs2/selectfield/context.d.ts +38 -0
- package/lib/inputs2/selectfield/context.js +12 -0
- package/lib/inputs2/selectfield/context.js.map +1 -0
- package/lib/inputs2/selectfield/helpers.d.ts +5 -0
- package/lib/inputs2/selectfield/helpers.js +17 -0
- package/lib/inputs2/selectfield/helpers.js.map +1 -0
- package/lib/inputs2/selectfield/index.d.ts +8 -0
- package/lib/inputs2/selectfield/index.js +410 -0
- package/lib/inputs2/selectfield/index.js.map +1 -0
- package/lib/inputs2/selectfield/item.d.ts +11 -0
- package/lib/inputs2/selectfield/item.js +57 -0
- package/lib/inputs2/selectfield/item.js.map +1 -0
- package/lib/inputs2/selectfield/listbox.d.ts +7 -0
- package/lib/inputs2/selectfield/listbox.js +73 -0
- package/lib/inputs2/selectfield/listbox.js.map +1 -0
- package/lib/inputs2/selectfield/options.d.ts +8 -0
- package/lib/inputs2/selectfield/options.js +20 -0
- package/lib/inputs2/selectfield/options.js.map +1 -0
- package/lib/inputs2/selectfield/search.d.ts +6 -0
- package/lib/inputs2/selectfield/search.js +58 -0
- package/lib/inputs2/selectfield/search.js.map +1 -0
- package/lib/inputs2/selectfield/selections.d.ts +9 -0
- package/lib/inputs2/selectfield/selections.js +66 -0
- package/lib/inputs2/selectfield/selections.js.map +1 -0
- package/lib/inputs2/selectfield/simple.d.ts +9 -0
- package/lib/inputs2/selectfield/simple.js +24 -0
- package/lib/inputs2/selectfield/simple.js.map +1 -0
- package/lib/inputs2/selectfield/triggers.d.ts +8 -0
- package/lib/inputs2/selectfield/triggers.js +82 -0
- package/lib/inputs2/selectfield/triggers.js.map +1 -0
- package/lib/inputs2/selectfield/types.d.ts +53 -0
- package/lib/inputs2/selectfield/types.js +6 -0
- package/lib/inputs2/selectfield/types.js.map +1 -0
- package/lib/inputs2/slot/index.d.ts +17 -0
- package/lib/inputs2/slot/index.js +50 -0
- package/lib/inputs2/slot/index.js.map +1 -0
- package/lib/inputs2/textareafield/index.d.ts +30 -0
- package/lib/inputs2/textareafield/index.js +136 -0
- package/lib/inputs2/textareafield/index.js.map +1 -0
- package/lib/inputs2/textfield/index.d.ts +30 -0
- package/lib/inputs2/textfield/index.js +109 -0
- package/lib/inputs2/textfield/index.js.map +1 -0
- package/lib/internals/colorStyles.js +1 -0
- package/lib/internals/colorStyles.js.map +1 -0
- package/lib/internals/constants.d.ts +3 -0
- package/lib/internals/constants.js +6 -3
- package/lib/internals/constants.js.map +1 -0
- package/lib/internals/types.d.ts +0 -15
- package/lib/labelMessages/index.js +52 -45
- package/lib/labelMessages/index.js.map +1 -0
- package/lib/labels/DangerLabel.d.ts +1 -1
- package/lib/labels/DangerLabel.js +14 -4
- package/lib/labels/DangerLabel.js.map +1 -0
- package/lib/labels/DefaultLabel.d.ts +2 -5
- package/lib/labels/DefaultLabel.js +61 -39
- package/lib/labels/DefaultLabel.js.map +1 -0
- package/lib/labels/InfoLabel.d.ts +1 -1
- package/lib/labels/InfoLabel.js +14 -4
- package/lib/labels/InfoLabel.js.map +1 -0
- package/lib/labels/PrimaryLabel.d.ts +1 -1
- package/lib/labels/PrimaryLabel.js +14 -4
- package/lib/labels/PrimaryLabel.js.map +1 -0
- package/lib/labels/SuccessLabel.d.ts +1 -1
- package/lib/labels/SuccessLabel.js +14 -4
- package/lib/labels/SuccessLabel.js.map +1 -0
- package/lib/labels/WarningLabel.d.ts +1 -1
- package/lib/labels/WarningLabel.js +14 -4
- package/lib/labels/WarningLabel.js.map +1 -0
- package/lib/labels/index.d.ts +1 -1
- package/lib/labels/index.js +7 -5
- package/lib/labels/index.js.map +1 -0
- package/lib/labels/label_container/index.js +16 -9
- package/lib/labels/label_container/index.js.map +1 -0
- package/lib/labels/types.d.ts +4 -7
- package/lib/list/Header.js +19 -6
- package/lib/list/Header.js.map +1 -0
- package/lib/list/Item.d.ts +2 -5
- package/lib/list/Item.js +149 -11
- package/lib/list/Item.js.map +1 -0
- package/lib/list/Separator.js +9 -3
- package/lib/list/Separator.js.map +1 -0
- package/lib/list/helpers.d.ts +1 -2
- package/lib/list/helpers.js +6 -7
- package/lib/list/helpers.js.map +1 -0
- package/lib/list/index.js +70 -65
- package/lib/list/index.js.map +1 -0
- package/lib/list/types.d.ts +5 -8
- package/lib/menus/float/MenuItem.js +51 -53
- package/lib/menus/float/MenuItem.js.map +1 -0
- package/lib/menus/float/SubMenuContainer.d.ts +10 -10
- package/lib/menus/float/SubMenuContainer.js +78 -0
- package/lib/menus/float/SubMenuContainer.js.map +1 -0
- package/lib/menus/float/helpers.d.ts +1 -2
- package/lib/menus/float/helpers.js +3 -2
- package/lib/menus/float/helpers.js.map +1 -0
- package/lib/menus/float/index.js +41 -88
- package/lib/menus/float/index.js.map +1 -0
- package/lib/menus/index.js +1 -0
- package/lib/menus/index.js.map +1 -0
- package/lib/menus/sidenav/ExpandMenu.js +18 -15
- package/lib/menus/sidenav/ExpandMenu.js.map +1 -0
- package/lib/menus/sidenav/MenuLink.d.ts +2 -5
- package/lib/menus/sidenav/MenuLink.js +29 -14
- package/lib/menus/sidenav/MenuLink.js.map +1 -0
- package/lib/menus/sidenav/NavMenuGroup.js +20 -14
- package/lib/menus/sidenav/NavMenuGroup.js.map +1 -0
- package/lib/menus/sidenav/NavMenuItem.d.ts +2 -5
- package/lib/menus/sidenav/NavMenuItem.js +136 -111
- package/lib/menus/sidenav/NavMenuItem.js.map +1 -0
- package/lib/menus/sidenav/NavSubMenuItem.js +37 -20
- package/lib/menus/sidenav/NavSubMenuItem.js.map +1 -0
- package/lib/menus/sidenav/helpers.d.ts +2 -3
- package/lib/menus/sidenav/helpers.js +8 -7
- package/lib/menus/sidenav/helpers.js.map +1 -0
- package/lib/menus/sidenav/index.js +145 -121
- package/lib/menus/sidenav/index.js.map +1 -0
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +22 -17
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js.map +1 -0
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +1 -2
- package/lib/menus/sidenav/popup_menu_search/index.js +35 -68
- package/lib/menus/sidenav/popup_menu_search/index.js.map +1 -0
- package/lib/menus/sidenav/types.d.ts +5 -5
- package/lib/noPermission/index.js +15 -9
- package/lib/noPermission/index.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +35 -0
- package/lib/node_modules/imask/esm/controls/html-contenteditable-mask-element.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/html-input-mask-element.js +32 -0
- package/lib/node_modules/imask/esm/controls/html-input-mask-element.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/html-mask-element.js +49 -0
- package/lib/node_modules/imask/esm/controls/html-mask-element.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/input-history.js +31 -0
- package/lib/node_modules/imask/esm/controls/input-history.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/input.js +223 -0
- package/lib/node_modules/imask/esm/controls/input.js.map +1 -0
- package/lib/node_modules/imask/esm/controls/mask-element.js +44 -0
- package/lib/node_modules/imask/esm/controls/mask-element.js.map +1 -0
- package/lib/node_modules/imask/esm/core/action-details.js +52 -0
- package/lib/node_modules/imask/esm/core/action-details.js.map +1 -0
- package/lib/node_modules/imask/esm/core/change-details.js +37 -0
- package/lib/node_modules/imask/esm/core/change-details.js.map +1 -0
- package/lib/node_modules/imask/esm/core/continuous-tail-details.js +43 -0
- package/lib/node_modules/imask/esm/core/continuous-tail-details.js.map +1 -0
- package/lib/node_modules/imask/esm/core/holder.js +7 -0
- package/lib/node_modules/imask/esm/core/holder.js.map +1 -0
- package/lib/node_modules/imask/esm/core/utils.js +68 -0
- package/lib/node_modules/imask/esm/core/utils.js.map +1 -0
- package/lib/node_modules/imask/esm/index.js +51 -0
- package/lib/node_modules/imask/esm/index.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/base.js +253 -0
- package/lib/node_modules/imask/esm/masked/base.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/date.js +118 -0
- package/lib/node_modules/imask/esm/masked/date.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/dynamic.js +223 -0
- package/lib/node_modules/imask/esm/masked/dynamic.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/enum.js +70 -0
- package/lib/node_modules/imask/esm/masked/enum.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/factory.js +47 -0
- package/lib/node_modules/imask/esm/masked/factory.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/function.js +24 -0
- package/lib/node_modules/imask/esm/masked/function.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/number.js +213 -0
- package/lib/node_modules/imask/esm/masked/number.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +104 -0
- package/lib/node_modules/imask/esm/masked/pattern/chunk-tail-details.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern/cursor.js +101 -0
- package/lib/node_modules/imask/esm/masked/pattern/cursor.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern/fixed-definition.js +103 -0
- package/lib/node_modules/imask/esm/masked/pattern/fixed-definition.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern/input-definition.js +134 -0
- package/lib/node_modules/imask/esm/masked/pattern/input-definition.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pattern.js +323 -0
- package/lib/node_modules/imask/esm/masked/pattern.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/pipe.js +24 -0
- package/lib/node_modules/imask/esm/masked/pipe.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/range.js +79 -0
- package/lib/node_modules/imask/esm/masked/range.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/regexp.js +22 -0
- package/lib/node_modules/imask/esm/masked/regexp.js.map +1 -0
- package/lib/node_modules/imask/esm/masked/repeat.js +105 -0
- package/lib/node_modules/imask/esm/masked/repeat.js.map +1 -0
- package/lib/node_modules/lodash/_Hash.js +23 -0
- package/lib/node_modules/lodash/_Hash.js.map +1 -0
- package/lib/node_modules/lodash/_ListCache.js +23 -0
- package/lib/node_modules/lodash/_ListCache.js.map +1 -0
- package/lib/node_modules/lodash/_Map.js +13 -0
- package/lib/node_modules/lodash/_Map.js.map +1 -0
- package/lib/node_modules/lodash/_MapCache.js +23 -0
- package/lib/node_modules/lodash/_MapCache.js.map +1 -0
- package/lib/node_modules/lodash/_Symbol.js +12 -0
- package/lib/node_modules/lodash/_Symbol.js.map +1 -0
- package/lib/node_modules/lodash/_assocIndexOf.js +18 -0
- package/lib/node_modules/lodash/_assocIndexOf.js.map +1 -0
- package/lib/node_modules/lodash/_baseGetTag.js +17 -0
- package/lib/node_modules/lodash/_baseGetTag.js.map +1 -0
- package/lib/node_modules/lodash/_baseIsNative.js +23 -0
- package/lib/node_modules/lodash/_baseIsNative.js.map +1 -0
- package/lib/node_modules/lodash/_coreJsData.js +12 -0
- package/lib/node_modules/lodash/_coreJsData.js.map +1 -0
- package/lib/node_modules/lodash/_freeGlobal.js +12 -0
- package/lib/node_modules/lodash/_freeGlobal.js.map +1 -0
- package/lib/node_modules/lodash/_getMapData.js +16 -0
- package/lib/node_modules/lodash/_getMapData.js.map +1 -0
- package/lib/node_modules/lodash/_getNative.js +17 -0
- package/lib/node_modules/lodash/_getNative.js.map +1 -0
- package/lib/node_modules/lodash/_getRawTag.js +22 -0
- package/lib/node_modules/lodash/_getRawTag.js.map +1 -0
- package/lib/node_modules/lodash/_getValue.js +13 -0
- package/lib/node_modules/lodash/_getValue.js.map +1 -0
- package/lib/node_modules/lodash/_hashClear.js +15 -0
- package/lib/node_modules/lodash/_hashClear.js.map +1 -0
- package/lib/node_modules/lodash/_hashDelete.js +14 -0
- package/lib/node_modules/lodash/_hashDelete.js.map +1 -0
- package/lib/node_modules/lodash/_hashGet.js +20 -0
- package/lib/node_modules/lodash/_hashGet.js.map +1 -0
- package/lib/node_modules/lodash/_hashHas.js +16 -0
- package/lib/node_modules/lodash/_hashHas.js.map +1 -0
- package/lib/node_modules/lodash/_hashSet.js +16 -0
- package/lib/node_modules/lodash/_hashSet.js.map +1 -0
- package/lib/node_modules/lodash/_isKeyable.js +14 -0
- package/lib/node_modules/lodash/_isKeyable.js.map +1 -0
- package/lib/node_modules/lodash/_isMasked.js +18 -0
- package/lib/node_modules/lodash/_isMasked.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheClear.js +13 -0
- package/lib/node_modules/lodash/_listCacheClear.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheDelete.js +19 -0
- package/lib/node_modules/lodash/_listCacheDelete.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheGet.js +16 -0
- package/lib/node_modules/lodash/_listCacheGet.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheHas.js +15 -0
- package/lib/node_modules/lodash/_listCacheHas.js.map +1 -0
- package/lib/node_modules/lodash/_listCacheSet.js +16 -0
- package/lib/node_modules/lodash/_listCacheSet.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheClear.js +21 -0
- package/lib/node_modules/lodash/_mapCacheClear.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheDelete.js +16 -0
- package/lib/node_modules/lodash/_mapCacheDelete.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheGet.js +15 -0
- package/lib/node_modules/lodash/_mapCacheGet.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheHas.js +15 -0
- package/lib/node_modules/lodash/_mapCacheHas.js.map +1 -0
- package/lib/node_modules/lodash/_mapCacheSet.js +16 -0
- package/lib/node_modules/lodash/_mapCacheSet.js.map +1 -0
- package/lib/node_modules/lodash/_nativeCreate.js +12 -0
- package/lib/node_modules/lodash/_nativeCreate.js.map +1 -0
- package/lib/node_modules/lodash/_objectToString.js +14 -0
- package/lib/node_modules/lodash/_objectToString.js.map +1 -0
- package/lib/node_modules/lodash/_root.js +12 -0
- package/lib/node_modules/lodash/_root.js.map +1 -0
- package/lib/node_modules/lodash/_toSource.js +24 -0
- package/lib/node_modules/lodash/_toSource.js.map +1 -0
- package/lib/node_modules/lodash/eq.js +13 -0
- package/lib/node_modules/lodash/eq.js.map +1 -0
- package/lib/node_modules/lodash/isFunction.js +19 -0
- package/lib/node_modules/lodash/isFunction.js.map +1 -0
- package/lib/node_modules/lodash/isObject.js +14 -0
- package/lib/node_modules/lodash/isObject.js.map +1 -0
- package/lib/node_modules/lodash/lodash.js +3678 -0
- package/lib/node_modules/lodash/lodash.js.map +1 -0
- package/lib/node_modules/lodash/memoize.js +24 -0
- package/lib/node_modules/lodash/memoize.js.map +1 -0
- package/lib/node_modules/moment/dist/moment.js +2590 -0
- package/lib/node_modules/moment/dist/moment.js.map +1 -0
- package/lib/node_modules/object-assign/index.js +55 -0
- package/lib/node_modules/object-assign/index.js.map +1 -0
- package/lib/node_modules/prop-types/checkPropTypes.js +55 -0
- package/lib/node_modules/prop-types/checkPropTypes.js.map +1 -0
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js +53 -0
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +330 -0
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
- package/lib/node_modules/prop-types/index.js +18 -0
- package/lib/node_modules/prop-types/index.js.map +1 -0
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js +11 -0
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
- package/lib/node_modules/prop-types/lib/has.js +8 -0
- package/lib/node_modules/prop-types/lib/has.js.map +1 -0
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +96 -0
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +79 -0
- package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/lib/node_modules/prop-types/node_modules/react-is/index.js +11 -0
- package/lib/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
- package/lib/node_modules/react/cjs/react-compiler-runtime.development.js +31 -0
- package/lib/node_modules/react/cjs/react-compiler-runtime.development.js.map +1 -0
- package/lib/node_modules/react/cjs/react-compiler-runtime.production.js +24 -0
- package/lib/node_modules/react/cjs/react-compiler-runtime.production.js.map +1 -0
- package/lib/node_modules/react/compiler-runtime.js +11 -0
- package/lib/node_modules/react/compiler-runtime.js.map +1 -0
- package/lib/node_modules/react-imask/esm/hook.js +76 -0
- package/lib/node_modules/react-imask/esm/hook.js.map +1 -0
- package/lib/node_modules/react-imask/esm/input.js +24 -0
- package/lib/node_modules/react-imask/esm/input.js.map +1 -0
- package/lib/node_modules/react-imask/esm/mixin.js +132 -0
- package/lib/node_modules/react-imask/esm/mixin.js.map +1 -0
- package/lib/node_modules/uuid/dist/native.js +5 -0
- package/lib/node_modules/uuid/dist/native.js.map +1 -0
- package/lib/node_modules/uuid/dist/rng.js +14 -0
- package/lib/node_modules/uuid/dist/rng.js.map +1 -0
- package/lib/node_modules/uuid/dist/stringify.js +10 -0
- package/lib/node_modules/uuid/dist/stringify.js.map +1 -0
- package/lib/node_modules/uuid/dist/v1.js +35 -0
- package/lib/node_modules/uuid/dist/v1.js.map +1 -0
- package/lib/node_modules/uuid/dist/v4.js +17 -0
- package/lib/node_modules/uuid/dist/v4.js.map +1 -0
- package/lib/panel/Content.js +51 -38
- package/lib/panel/Content.js.map +1 -0
- package/lib/panel/DangerPanel.js +10 -4
- package/lib/panel/DangerPanel.js.map +1 -0
- package/lib/panel/Default.js +63 -37
- package/lib/panel/Default.js.map +1 -0
- package/lib/panel/Header.js +48 -37
- package/lib/panel/Header.js.map +1 -0
- package/lib/panel/InfoPanel.js +11 -5
- package/lib/panel/InfoPanel.js.map +1 -0
- package/lib/panel/PrimaryPanel.js +10 -4
- package/lib/panel/PrimaryPanel.js.map +1 -0
- package/lib/panel/SuccessPanel.js +11 -5
- package/lib/panel/SuccessPanel.js.map +1 -0
- package/lib/panel/WarningPanel.js +10 -4
- package/lib/panel/WarningPanel.js.map +1 -0
- package/lib/panel/helpers.d.ts +1 -2
- package/lib/panel/helpers.js +10 -6
- package/lib/panel/helpers.js.map +1 -0
- package/lib/panel/index.js +2 -1
- package/lib/panel/index.js.map +1 -0
- package/lib/permissionValidations.js +16 -11
- package/lib/permissionValidations.js.map +1 -0
- package/lib/popover/PopoverText.d.ts +1 -2
- package/lib/popover/PopoverText.js +14 -5
- package/lib/popover/PopoverText.js.map +1 -0
- package/lib/popover/PopoverTitle.js +11 -3
- package/lib/popover/PopoverTitle.js.map +1 -0
- package/lib/popover/index.js +39 -57
- package/lib/popover/index.js.map +1 -0
- package/lib/popover/types.d.ts +1 -0
- package/lib/progress/Bar.js +46 -36
- package/lib/progress/Bar.js.map +1 -0
- package/lib/progress/index.js +25 -18
- package/lib/progress/index.js.map +1 -0
- package/lib/radio/index.d.ts +4 -1
- package/lib/radio/index.js +108 -90
- package/lib/radio/index.js.map +1 -0
- package/lib/shortcuts/index.js +22 -7
- package/lib/shortcuts/index.js.map +1 -0
- package/lib/skeleton/SkeletonContainer.js +17 -6
- package/lib/skeleton/SkeletonContainer.js.map +1 -0
- package/lib/skeleton/index.js +43 -19
- package/lib/skeleton/index.js.map +1 -0
- package/lib/spinner/SpinnerLoading.js +54 -16
- package/lib/spinner/SpinnerLoading.js.map +1 -0
- package/lib/spinner/index.d.ts +2 -0
- package/lib/spinner/index.js +49 -36
- package/lib/spinner/index.js.map +1 -0
- package/lib/spinner/types.d.ts +2 -2
- package/lib/split/Split.js +66 -61
- package/lib/split/Split.js.map +1 -0
- package/lib/split/SplitSide.js +25 -16
- package/lib/split/SplitSide.js.map +1 -0
- package/lib/split/helpers.d.ts +1 -2
- package/lib/split/helpers.js +3 -2
- package/lib/split/helpers.js.map +1 -0
- package/lib/split/index.js +6 -4
- package/lib/split/index.js.map +1 -0
- package/lib/table/Body.js +41 -54
- package/lib/table/Body.js.map +1 -0
- package/lib/table/Header.js +46 -35
- package/lib/table/Header.js.map +1 -0
- package/lib/table/HeaderColumn.js +41 -27
- package/lib/table/HeaderColumn.js.map +1 -0
- package/lib/table/Row.js +48 -48
- package/lib/table/Row.js.map +1 -0
- package/lib/table/RowColumn.js +51 -38
- package/lib/table/RowColumn.js.map +1 -0
- package/lib/table/helpers.d.ts +2 -3
- package/lib/table/helpers.js +8 -5
- package/lib/table/helpers.js.map +1 -0
- package/lib/table/index.js +101 -105
- package/lib/table/index.js.map +1 -0
- package/lib/table/types.d.ts +1 -0
- package/lib/tabs/DropdownTabs.js +70 -76
- package/lib/tabs/DropdownTabs.js.map +1 -0
- package/lib/tabs/Menu.d.ts +1 -1
- package/lib/tabs/Menu.js +37 -49
- package/lib/tabs/Menu.js.map +1 -0
- package/lib/tabs/MenuTabs.d.ts +1 -2
- package/lib/tabs/MenuTabs.js +69 -86
- package/lib/tabs/MenuTabs.js.map +1 -0
- package/lib/tabs/Panel.js +58 -47
- package/lib/tabs/Panel.js.map +1 -0
- package/lib/tabs/context.d.ts +2 -3
- package/lib/tabs/context.js +45 -46
- package/lib/tabs/context.js.map +1 -0
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tabs/index.js +80 -64
- package/lib/tabs/index.js.map +1 -0
- package/lib/tabs/tabHelpers.d.ts +20 -2
- package/lib/tabs/tabHelpers.js +25 -23
- package/lib/tabs/tabHelpers.js.map +1 -0
- package/lib/tabs/types.d.ts +10 -3
- package/lib/tabs/useTabs.js +1 -0
- package/lib/tabs/useTabs.js.map +1 -0
- package/lib/textContent/index.d.ts +7 -11
- package/lib/textContent/index.js +41 -32
- package/lib/textContent/index.js.map +1 -0
- package/lib/toolbar/ButtonBar.js +64 -59
- package/lib/toolbar/ButtonBar.js.map +1 -0
- package/lib/toolbar/LabelBar.js +48 -39
- package/lib/toolbar/LabelBar.js.map +1 -0
- package/lib/toolbar/Separator.js +9 -3
- package/lib/toolbar/Separator.js.map +1 -0
- package/lib/toolbar/ToolBarGroup.js +15 -3
- package/lib/toolbar/ToolBarGroup.js.map +1 -0
- package/lib/toolbar/helpers.js +1 -0
- package/lib/toolbar/helpers.js.map +1 -0
- package/lib/toolbar/index.js +37 -30
- package/lib/toolbar/index.js.map +1 -0
- package/lib/toolbar/types.d.ts +1 -1
- package/lib/tooltip/TooltipContent.d.ts +3 -0
- package/lib/tooltip/TooltipContent.js +40 -0
- package/lib/tooltip/TooltipContent.js.map +1 -0
- package/lib/tooltip/index.d.ts +2 -3
- package/lib/tooltip/index.js +39 -37
- package/lib/tooltip/index.js.map +1 -0
- package/lib/tooltip/types.d.ts +25 -3
- package/lib/tooltip/useTooltip.d.ts +27 -0
- package/lib/tooltip/useTooltip.js +96 -0
- package/lib/tooltip/useTooltip.js.map +1 -0
- package/lib/treetable/Body.js +27 -31
- package/lib/treetable/Body.js.map +1 -0
- package/lib/treetable/Header.js +25 -23
- package/lib/treetable/Header.js.map +1 -0
- package/lib/treetable/Row.js +212 -151
- package/lib/treetable/Row.js.map +1 -0
- package/lib/treetable/helpers.d.ts +9 -9
- package/lib/treetable/helpers.js +7 -14
- package/lib/treetable/helpers.js.map +1 -0
- package/lib/treetable/index.js +27 -15
- package/lib/treetable/index.js.map +1 -0
- package/lib/treeview/Header.js +14 -5
- package/lib/treeview/Header.js.map +1 -0
- package/lib/treeview/Node.js +201 -176
- package/lib/treeview/Node.js.map +1 -0
- package/lib/treeview/constants.d.ts +1 -2
- package/lib/treeview/constants.js +3 -2
- package/lib/treeview/constants.js.map +1 -0
- package/lib/treeview/index.js +259 -174
- package/lib/treeview/index.js.map +1 -0
- package/lib/uitour/helpers.js +1 -0
- package/lib/uitour/helpers.js.map +1 -0
- package/lib/uitour/index.d.ts +1 -2
- package/lib/uitour/index.js +169 -167
- package/lib/uitour/index.js.map +1 -0
- package/package.json +327 -48
- package/lib/alerts/alert.spec.d.ts +0 -0
- package/lib/assets/BaseAlert.css +0 -1
- package/lib/assets/Content.css +0 -1
- package/lib/assets/DefaultFile.css +0 -1
- package/lib/assets/Drawer.css +0 -1
- package/lib/assets/gridlayout.css +0 -1
- package/lib/assets/index.css +0 -1
- package/lib/assets/index11.css +0 -1
- package/lib/assets/index15.css +0 -1
- package/lib/assets/index17.css +0 -1
- package/lib/assets/index18.css +0 -1
- package/lib/assets/index19.css +0 -1
- package/lib/assets/index20.css +0 -1
- package/lib/assets/index21.css +0 -1
- package/lib/assets/index22.css +0 -1
- package/lib/assets/index24.css +0 -1
- package/lib/assets/index26.css +0 -1
- package/lib/assets/index27.css +0 -1
- package/lib/assets/index28.css +0 -1
- package/lib/assets/index29.css +0 -1
- package/lib/assets/index5.css +0 -1
- package/lib/assets/index9.css +0 -1
- package/lib/assets/panel.css +0 -1
- package/lib/assets/skeleton.css +0 -1
- package/lib/assets/table.css +0 -1
- package/lib/assets/tabs.css +0 -1
- package/lib/assets/toolbar.css +0 -1
- package/lib/assets/withDropdown.css +0 -1
- package/lib/avatar/avatar.spec.d.ts +0 -1
- package/lib/badge/badge.spec.d.ts +0 -1
- package/lib/buttons/ButtonGroups.js +0 -5
- package/lib/buttons/buttons.spec.d.ts +0 -0
- package/lib/calendar/base/Day.d.ts +0 -3
- package/lib/calendar/base/Day.js +0 -27
- package/lib/calendar/base/Month.d.ts +0 -3
- package/lib/calendar/base/Month.js +0 -25
- package/lib/calendar/base/Week.d.ts +0 -3
- package/lib/calendar/base/Week.js +0 -23
- package/lib/calendar/calendar.spec.d.ts +0 -0
- package/lib/checkbox/checkbox.spec.d.ts +0 -1
- package/lib/chunks/index.CmrLK9Qe.js +0 -675
- package/lib/chunks/index.D5f6Ow9V.js +0 -89
- package/lib/chunks/index.Da--18GT.js +0 -669
- package/lib/chunks/index.yztgndLc.js +0 -206
- package/lib/chunks/jsx-runtime.CYK1ROHF.js +0 -445
- package/lib/chunks/tabs.Cvj2MJH6.js +0 -246
- package/lib/chunks/v1.CDXKvGzE.js +0 -41
- package/lib/dialog/dialog.spec.d.ts +0 -0
- package/lib/dialog/wizard/wizard.spec.d.ts +0 -0
- package/lib/drawer/Drawer.spec.d.ts +0 -1
- package/lib/dropdown/dropdown.spec.d.ts +0 -1
- package/lib/dropdown/helper.js +0 -8
- package/lib/fieldset/fieldset.spec.d.ts +0 -1
- package/lib/form/form.spec.d.ts +0 -0
- package/lib/gridlayout/gridLayout.spec.d.ts +0 -1
- package/lib/hint/hint.spec.d.ts +0 -1
- package/lib/icons/icons.spec.d.ts +0 -1
- package/lib/inputs/base/Label.d.ts +0 -6
- package/lib/inputs/base/Label.js +0 -32
- package/lib/inputs/base/base.spec.d.ts +0 -1
- package/lib/inputs/color/color_input.spec.d.ts +0 -0
- package/lib/inputs/date/date.spec.d.ts +0 -1
- package/lib/inputs/errorMessage/error.spec.d.ts +0 -1
- package/lib/inputs/file/filefield.spec.d.ts +0 -1
- package/lib/inputs/mask/input_mask.spec.d.ts +0 -0
- package/lib/inputs/multiSelect/multiSelect.spec.d.ts +0 -1
- package/lib/inputs/number/numberfield.spec.d.ts +0 -1
- package/lib/inputs/search/search_input.spec.d.ts +0 -1
- package/lib/inputs/select/select.spec.d.ts +0 -1
- package/lib/inputs/text/textfield.spec.d.ts +0 -1
- package/lib/inputs/textarea/textarea.spec.d.ts +0 -1
- package/lib/internals/withTooltip.d.ts +0 -8
- package/lib/internals/withTooltip.js +0 -75
- package/lib/labelMessages/labelMessages.spec.d.ts +0 -1
- package/lib/labels/label.spec.d.ts +0 -1
- package/lib/list/list.spec.d.ts +0 -1
- package/lib/menus/float/float-menu.spec.d.ts +0 -0
- package/lib/menus/sidenav/sidenav.spec.d.ts +0 -1
- package/lib/panel/ToolBar.js +0 -6
- package/lib/panel/panel.spec.d.ts +0 -0
- package/lib/popover/popover.spec.d.ts +0 -1
- package/lib/progress/progress.spec.d.ts +0 -1
- package/lib/radio/radio.spec.d.ts +0 -1
- package/lib/shortcuts/shortcuts.spec.d.ts +0 -0
- package/lib/spinner/spinner.spec.d.ts +0 -1
- package/lib/split/split.spec.d.ts +0 -0
- package/lib/table/table.spec.d.ts +0 -1
- package/lib/tabs/tabs.spec.d.ts +0 -0
- package/lib/textContent/textContent.spec.d.ts +0 -1
- package/lib/toolbar/toolbar.spec.d.ts +0 -1
- package/lib/tooltip/tooltip.spec.d.ts +0 -1
- package/lib/treeview/treeview.spec.d.ts +0 -0
- package/lib/uitour/uitour.spec.d.ts +0 -0
- /package/lib/assets/{index10.css → styles/avatar.css} +0 -0
- /package/lib/assets/{index7.css → styles/error.css} +0 -0
- /package/lib/assets/{index13.css → styles/form.css} +0 -0
- /package/lib/assets/{index8.css → styles/hint.css} +0 -0
- /package/lib/assets/{index2.css → styles/icon.css} +0 -0
- /package/lib/assets/{index14.css → styles/labelMessages.css} +0 -0
- /package/lib/assets/{noPermission.css → styles/noPermission.css} +0 -0
- /package/lib/assets/{index23.css → styles/numbers.css} +0 -0
- /package/lib/assets/{index3.css → styles/popover.css} +0 -0
- /package/lib/assets/{index25.css → styles/search.css} +0 -0
- /package/lib/assets/{index6.css → styles/spinner.css} +0 -0
- /package/lib/assets/{index16.css → styles/split.css} +0 -0
- /package/lib/assets/{index4.css → styles/textContent.css} +0 -0
|
@@ -1,191 +1,135 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import "../../
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { ErrorMessage as
|
|
12
|
-
const
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as y, Fragment as S } from "react";
|
|
3
|
+
import te from "../../_virtual/lodash.js";
|
|
4
|
+
import "../../_virtual/compiler-runtime.js";
|
|
5
|
+
import $ from "../../buttons/PrimaryButton.js";
|
|
6
|
+
import q from "../../buttons/DangerButton.js";
|
|
7
|
+
import '../../assets/styles/button.css';/* empty css */
|
|
8
|
+
import A from "../../icons/index.js";
|
|
9
|
+
import se from "../base/InputTextBase.js";
|
|
10
|
+
import ae from "../../hint/index.js";
|
|
11
|
+
import { ErrorMessage as re } from "../errorMessage/index.js";
|
|
12
|
+
const z = (n) => n?.length ? te.map(n, (i) => i) : [], f = (n) => n.split(",").map((i) => i.includes(".") ? i.split(".")[1] : i.split("/")[1]).join(", "), ne = (n) => n.split(", "), ve = (n) => {
|
|
13
13
|
const {
|
|
14
|
-
id:
|
|
14
|
+
id: i = Math.random().toString(36).substring(2, 7),
|
|
15
15
|
accept: o = "image/png, image/jpeg",
|
|
16
|
-
labelButton:
|
|
16
|
+
labelButton: C = "Selecionar",
|
|
17
17
|
subtitleDragDrop: u = "Selecione arquivos do tipo ",
|
|
18
|
-
titleDragDrop:
|
|
19
|
-
onBtnClickInsert:
|
|
20
|
-
inputRef:
|
|
21
|
-
onChange:
|
|
22
|
-
onDragEnter:
|
|
23
|
-
onDragOver:
|
|
24
|
-
onDragLeave:
|
|
25
|
-
onDrop:
|
|
26
|
-
showSubtitle:
|
|
27
|
-
multiple:
|
|
28
|
-
hint:
|
|
29
|
-
hintPosition:
|
|
30
|
-
errorMessages:
|
|
31
|
-
skeletonize:
|
|
32
|
-
} =
|
|
18
|
+
titleDragDrop: h = "Arquivo para importação",
|
|
19
|
+
onBtnClickInsert: T,
|
|
20
|
+
inputRef: M,
|
|
21
|
+
onChange: R,
|
|
22
|
+
onDragEnter: P,
|
|
23
|
+
onDragOver: U,
|
|
24
|
+
onDragLeave: I,
|
|
25
|
+
onDrop: H,
|
|
26
|
+
showSubtitle: W = !0,
|
|
27
|
+
multiple: v = !1,
|
|
28
|
+
hint: k = [],
|
|
29
|
+
hintPosition: G = "below",
|
|
30
|
+
errorMessages: J = [],
|
|
31
|
+
skeletonize: x = !1
|
|
32
|
+
} = n, [K, F] = y(!1), [r, D] = y([]), [b, B] = y(!1), [m, p] = y({
|
|
33
33
|
class: "",
|
|
34
|
-
text:
|
|
35
|
-
subtitle: u +
|
|
34
|
+
text: h,
|
|
35
|
+
subtitle: u + f(o),
|
|
36
36
|
error: !1
|
|
37
|
-
}),
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
E(!1), s.forEach((l) => (!j && e.indexOf(l) === -1 && E(!0), j)), !x && (a.dataTransfer.items.length > 1 || r.length > 0) ? d({
|
|
37
|
+
}), N = (e) => {
|
|
38
|
+
e.preventDefault?.(), e.stopPropagation?.();
|
|
39
|
+
}, Q = (e, s, a) => {
|
|
40
|
+
B(!1), s.forEach((c) => (!b && e.indexOf(c) === -1 && B(!0), b)), !v && (a.dataTransfer.items.length > 1 || r.length > 0) ? p({
|
|
42
41
|
class: "disapprovedFile",
|
|
43
42
|
text: "Não é permitido anexar mais de um arquivo.",
|
|
44
43
|
subtitle: "",
|
|
45
44
|
error: !0
|
|
46
|
-
}) :
|
|
45
|
+
}) : p(b ? {
|
|
47
46
|
class: "disapprovedFile",
|
|
48
47
|
text: "Por favor, verifique a extensão do(s) arquivo(s) inserido(s).",
|
|
49
|
-
subtitle: `Apenas as extensões ${
|
|
48
|
+
subtitle: `Apenas as extensões ${f(o)} são permitidas.`,
|
|
50
49
|
error: !0
|
|
51
50
|
} : {
|
|
52
51
|
class: "approvedFile",
|
|
53
|
-
text:
|
|
54
|
-
subtitle: u +
|
|
52
|
+
text: h,
|
|
53
|
+
subtitle: u + f(o),
|
|
55
54
|
error: !1
|
|
56
55
|
});
|
|
57
|
-
},
|
|
56
|
+
}, V = (e) => {
|
|
58
57
|
let s = [];
|
|
59
58
|
return e.dataTransfer.items && Array.from(e.dataTransfer.items).map((a) => (s.indexOf(a.type) === -1 && (s = [...s, a.type]), s)), s;
|
|
59
|
+
}, j = (e) => {
|
|
60
|
+
const s = ne(o), a = V(e);
|
|
61
|
+
Q(s, a, e), N(e), F(!0), P?.(e);
|
|
60
62
|
}, O = (e) => {
|
|
61
|
-
|
|
62
|
-
K(s, a, e), v(e), R(!0), N == null || N(e);
|
|
63
|
-
}, $ = (e) => {
|
|
64
|
-
d({
|
|
63
|
+
p({
|
|
65
64
|
class: "",
|
|
66
|
-
text:
|
|
67
|
-
subtitle: u +
|
|
65
|
+
text: h,
|
|
66
|
+
subtitle: u + f(o),
|
|
68
67
|
error: !1
|
|
69
|
-
}),
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
|
|
68
|
+
}), N(e), F(!1), I?.(e);
|
|
69
|
+
}, w = (e) => {
|
|
70
|
+
N(e), U?.(e);
|
|
71
|
+
}, E = (e) => {
|
|
72
|
+
N(e), F(!1);
|
|
74
73
|
const s = e.dataTransfer;
|
|
75
|
-
if (s && !
|
|
76
|
-
const a =
|
|
74
|
+
if (s && !m.error) {
|
|
75
|
+
const a = z(s.files);
|
|
77
76
|
if (a.length > 0) {
|
|
78
|
-
const
|
|
79
|
-
|
|
77
|
+
const c = r.concat(a), L = c.map((g) => g.name), d = c.filter(({
|
|
78
|
+
name: g
|
|
79
|
+
}, ee) => !L.includes(g, ee + 1));
|
|
80
|
+
D(d), R?.(a, e), H?.(e);
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
|
-
|
|
83
|
+
p({
|
|
83
84
|
class: "",
|
|
84
|
-
text:
|
|
85
|
-
subtitle: u +
|
|
85
|
+
text: h,
|
|
86
|
+
subtitle: u + f(o),
|
|
86
87
|
error: !1
|
|
87
88
|
});
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
89
|
+
}, X = (e) => {
|
|
90
|
+
e.preventDefault?.();
|
|
91
|
+
const s = z(e.target.files);
|
|
92
|
+
if (s.length > 0 && !b) {
|
|
93
|
+
const a = r.concat(s), c = a.map((d) => d.name), L = a.filter(({
|
|
94
|
+
name: d
|
|
95
|
+
}, g) => !c.includes(d, g + 1));
|
|
96
|
+
D(L), R?.(s, e);
|
|
95
97
|
}
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
r[0].type === "image/jpeg" || r[0].type === "image/png" ? /* @__PURE__ */ t
|
|
100
|
-
/* @__PURE__ */ t
|
|
101
|
-
] }) : /* @__PURE__ */ t
|
|
102
|
-
"
|
|
103
|
-
{
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
),
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
"
|
|
118
|
-
{
|
|
119
|
-
alt: e.name,
|
|
120
|
-
className: "image-preview",
|
|
121
|
-
src: URL.createObjectURL(e)
|
|
122
|
-
}
|
|
123
|
-
) }),
|
|
124
|
-
/* @__PURE__ */ t.jsx("div", { className: "description-file", children: /* @__PURE__ */ t.jsx("span", { className: "subtitle", children: e.name }) })
|
|
125
|
-
]
|
|
126
|
-
},
|
|
127
|
-
`${e.name}${e.size}`
|
|
128
|
-
)) });
|
|
129
|
-
return /* @__PURE__ */ t.jsxs("div", { className: "input-dragdrop-container", onDragEnter: O, onSubmit: (e) => e.preventDefault(), children: [
|
|
130
|
-
/* @__PURE__ */ t.jsxs("div", { className: `drag-content ${A ? "-skeletonized" : ""}`, children: [
|
|
131
|
-
/* @__PURE__ */ t.jsx("div", { className: `${p.class} ${A ? "" : "content"}`, children: p.error || r.length === 0 ? /* @__PURE__ */ t.jsxs("label", { htmlFor: n, children: [
|
|
132
|
-
/* @__PURE__ */ t.jsx("h1", { className: "title", style: { paddingBottom: "20px" }, children: p.text }),
|
|
133
|
-
H && /* @__PURE__ */ t.jsx("p", { className: "subtitle", children: p.subtitle }),
|
|
134
|
-
!A && /* @__PURE__ */ t.jsx(P, { onClick: C, label: w })
|
|
135
|
-
] }) : /* @__PURE__ */ t.jsxs(M, { children: [
|
|
136
|
-
Z(),
|
|
137
|
-
/* @__PURE__ */ t.jsxs("footer", { className: "footer-button-action", children: [
|
|
138
|
-
(!x && r.length < 1 || x) && /* @__PURE__ */ t.jsx(
|
|
139
|
-
P,
|
|
140
|
-
{
|
|
141
|
-
className: "selectButton",
|
|
142
|
-
onClick: C,
|
|
143
|
-
label: w
|
|
144
|
-
}
|
|
145
|
-
),
|
|
146
|
-
/* @__PURE__ */ t.jsx(
|
|
147
|
-
U,
|
|
148
|
-
{
|
|
149
|
-
className: "cancelButton",
|
|
150
|
-
onClick: X,
|
|
151
|
-
icon: /* @__PURE__ */ t.jsx(B, { name: "close", color: "white" }),
|
|
152
|
-
label: "Limpar"
|
|
153
|
-
}
|
|
154
|
-
)
|
|
98
|
+
}, Y = () => D([]), Z = (e) => {
|
|
99
|
+
D((s) => s.filter((a) => a.name !== e));
|
|
100
|
+
}, _ = () => r?.length === 1 ? /* @__PURE__ */ l(S, { children: [
|
|
101
|
+
r[0].type === "image/jpeg" || r[0].type === "image/png" ? /* @__PURE__ */ t("img", { alt: r[0].name, src: URL.createObjectURL(r[0]) }) : /* @__PURE__ */ t(A, { size: 64, name: "file_excel" }),
|
|
102
|
+
/* @__PURE__ */ t("div", { className: "image-preview-solo", children: /* @__PURE__ */ t("div", { className: "description-file", children: /* @__PURE__ */ t("span", { className: "subtitle", children: r[0].name }) }) })
|
|
103
|
+
] }) : /* @__PURE__ */ t("ul", { className: "file-list", children: r.length > 0 && r.map((e) => /* @__PURE__ */ l("li", { className: "file-card", children: [
|
|
104
|
+
/* @__PURE__ */ t(q, { transparent: !0, boxShadow: !1, className: "delete-button", onClick: () => Z(e.name), icon: /* @__PURE__ */ t(A, { customClass: "color-icon-upload", name: "close" }) }),
|
|
105
|
+
/* @__PURE__ */ t("div", { className: "image-content", children: (e.type === "image/jpeg" || e.type === "image/png") && /* @__PURE__ */ t("img", { alt: e.name, className: "image-preview", src: URL.createObjectURL(e) }) }),
|
|
106
|
+
/* @__PURE__ */ t("div", { className: "description-file", children: /* @__PURE__ */ t("span", { className: "subtitle", children: e.name }) })
|
|
107
|
+
] }, `${e.name}${e.size}`)) });
|
|
108
|
+
return /* @__PURE__ */ l("div", { className: "input-dragdrop-container", onDragEnter: j, onSubmit: (e) => e.preventDefault(), children: [
|
|
109
|
+
/* @__PURE__ */ l("div", { className: `drag-content ${x ? "-skeletonized" : ""}`, children: [
|
|
110
|
+
/* @__PURE__ */ t("div", { className: `${m.class} ${x ? "" : "content"}`, children: m.error || r.length === 0 ? /* @__PURE__ */ l("label", { htmlFor: i, children: [
|
|
111
|
+
/* @__PURE__ */ t("h1", { className: "title", style: {
|
|
112
|
+
paddingBottom: "20px"
|
|
113
|
+
}, children: m.text }),
|
|
114
|
+
W && /* @__PURE__ */ t("p", { className: "subtitle", children: m.subtitle }),
|
|
115
|
+
!x && /* @__PURE__ */ t($, { onClick: T, label: C })
|
|
116
|
+
] }) : /* @__PURE__ */ l(S, { children: [
|
|
117
|
+
_(),
|
|
118
|
+
/* @__PURE__ */ l("footer", { className: "footer-button-action", children: [
|
|
119
|
+
(!v && r.length < 1 || v) && /* @__PURE__ */ t($, { className: "selectButton", onClick: T, label: C }),
|
|
120
|
+
/* @__PURE__ */ t(q, { className: "cancelButton", onClick: Y, icon: /* @__PURE__ */ t(A, { name: "close", color: "white" }), label: "Limpar" })
|
|
155
121
|
] })
|
|
156
122
|
] }) }),
|
|
157
|
-
/* @__PURE__ */ t
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
inputRef: _,
|
|
162
|
-
style: { display: "none" },
|
|
163
|
-
type: "file",
|
|
164
|
-
id: n,
|
|
165
|
-
accept: o,
|
|
166
|
-
multiple: x,
|
|
167
|
-
onDragOver: q,
|
|
168
|
-
onDrop: z,
|
|
169
|
-
onDragLeave: $,
|
|
170
|
-
onChange: V
|
|
171
|
-
}
|
|
172
|
-
),
|
|
173
|
-
J && /* @__PURE__ */ t.jsx(
|
|
174
|
-
"div",
|
|
175
|
-
{
|
|
176
|
-
className: "drag-position-element",
|
|
177
|
-
id: "dragFileElement",
|
|
178
|
-
onDragEnter: O,
|
|
179
|
-
onDragLeave: $,
|
|
180
|
-
onDragOver: q,
|
|
181
|
-
onDrop: z
|
|
182
|
-
}
|
|
183
|
-
)
|
|
123
|
+
/* @__PURE__ */ t(se, { ...n, inputRef: M, style: {
|
|
124
|
+
display: "none"
|
|
125
|
+
}, type: "file", id: i, accept: o, multiple: v, onDragOver: w, onDrop: E, onDragLeave: O, onChange: X }),
|
|
126
|
+
K && /* @__PURE__ */ t("div", { className: "drag-position-element", id: "dragFileElement", onDragEnter: j, onDragLeave: O, onDragOver: w, onDrop: E })
|
|
184
127
|
] }),
|
|
185
|
-
/* @__PURE__ */ t
|
|
186
|
-
/* @__PURE__ */ t
|
|
128
|
+
/* @__PURE__ */ t(re, { messages: J }),
|
|
129
|
+
/* @__PURE__ */ t(ae, { visible: !!k && G === "below", customClass: "hint", description: k })
|
|
187
130
|
] });
|
|
188
131
|
};
|
|
189
132
|
export {
|
|
190
|
-
|
|
133
|
+
ve as default
|
|
191
134
|
};
|
|
135
|
+
//# sourceMappingURL=DragDropFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DragDropFile.js","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"],"names":["getFilesList","files","length","_","map","file","getAcceptFilesLabel","valueAccept","split","value","includes","join","getAcceptFilesWithoutRemoveText","DragDropFile","props","id","Math","random","toString","substring","accept","labelButton","subtitleDragDrop","titleDragDrop","onBtnClickInsert","inputRef","onChange","onDragEnter","onDragOver","onDragLeave","onDrop","showSubtitle","multiple","hint","hintPosition","errorMessages","skeletonize","dragActive","setDragActive","useState","fileList","setFileList","typeNotAccept","setTypeNotAccept","message","setMessage","class","text","subtitle","error","handleDrag","e","preventDefault","stopPropagation","checkTypeNotAccept","types","getTypesArray","forEach","element","indexOf","dataTransfer","items","getTypesFiles","typesFilesDrag","Array","from","item","type","handleDragEnter","arrayTypes","handleDragLeave","handleDragOver","handleDrop","input","fileNoRepeat","concat","ids","o","name","filtered","filter","index","handleChange","target","filesFiltered","onButtonClickRemoveAll","handleRemoveFile","fileName","prevState","generateListArray","Fragment","jsx","URL","createObjectURL","Icon","jsxs","DangerButton","size","paddingBottom","PrimaryButton","InputTextBase","display","ErrorMessage","Hint"],"mappings":"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"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IFileProps } from './types';
|
|
2
|
-
declare const File: ({ applyDragDrop, defaultFiles, gridLayout, onBtnClickRemove: onBtnClickRemoveProp, ...rest }: Omit<IFileProps,
|
|
2
|
+
declare const File: ({ applyDragDrop, defaultFiles, gridLayout, onBtnClickRemove: onBtnClickRemoveProp, ...rest }: Omit<IFileProps, "onBtnClickInsert">) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default File;
|
package/lib/inputs/file/File.js
CHANGED
|
@@ -1,46 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
...c
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as m, useEffect as u } from "react";
|
|
3
|
+
import p from "./DefaultFile.js";
|
|
4
|
+
import C from "./DragDropFile.js";
|
|
5
|
+
import a from "../../gridlayout/GridCol.js";
|
|
6
|
+
import { transformFilesToFileList as h } from "./helpers.js";
|
|
7
|
+
const v = ({
|
|
8
|
+
applyDragDrop: s = !1,
|
|
9
|
+
defaultFiles: r,
|
|
10
|
+
gridLayout: e,
|
|
11
|
+
onBtnClickRemove: n,
|
|
12
|
+
...o
|
|
14
13
|
}) => {
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
(m = r.current) == null || m.click();
|
|
14
|
+
const t = m(null), c = () => {
|
|
15
|
+
t.current?.click();
|
|
18
16
|
}, l = () => {
|
|
19
|
-
|
|
17
|
+
t.current && (t.current.value = "", n && n()), n && n();
|
|
20
18
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, [
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
defaultFiles: t,
|
|
29
|
-
inputRef: r,
|
|
30
|
-
onBtnClickInsert: () => i()
|
|
31
|
-
}
|
|
32
|
-
) : /* @__PURE__ */ o.jsx(
|
|
33
|
-
C,
|
|
34
|
-
{
|
|
35
|
-
...c,
|
|
36
|
-
inputRef: r,
|
|
37
|
-
defaultFiles: t,
|
|
38
|
-
onBtnClickRemove: () => l(),
|
|
39
|
-
onBtnClickInsert: () => i()
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
return n !== void 0 ? /* @__PURE__ */ o.jsx(x, { customClass: "-withinput", cols: n, style: { height: "100%" }, children: s }) : s;
|
|
19
|
+
u(() => {
|
|
20
|
+
t?.current && r && (t.current.files = h(r));
|
|
21
|
+
}, [t?.current]);
|
|
22
|
+
const f = s ? /* @__PURE__ */ i(C, { ...o, defaultFiles: r, inputRef: t, onBtnClickInsert: () => c() }) : /* @__PURE__ */ i(p, { ...o, inputRef: t, defaultFiles: r, onBtnClickRemove: () => l(), onBtnClickInsert: () => c() });
|
|
23
|
+
return e !== void 0 ? /* @__PURE__ */ i(a, { customClass: "-withinput", cols: e, style: {
|
|
24
|
+
height: "100%"
|
|
25
|
+
}, children: f }) : f;
|
|
43
26
|
};
|
|
44
27
|
export {
|
|
45
|
-
|
|
28
|
+
v as default
|
|
46
29
|
};
|
|
30
|
+
//# sourceMappingURL=File.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"File.js","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"],"names":["File","applyDragDrop","defaultFiles","gridLayout","onBtnClickRemove","onBtnClickRemoveProp","rest","inputFileRef","useRef","onBtnClickInsert","current","click","value","useEffect","files","transformFilesToFileList","component","jsx","DragDropFile","DefaultFile","undefined","Grid","height"],"mappings":";;;;;;AAOA,MAAMA,IAAOA,CAAC;AAAA,EACZC,eAAAA,IAAgB;AAAA,EAAOC,cAAAA;AAAAA,EAAcC,YAAAA;AAAAA,EAAYC,kBAAkBC;AAAAA,EAAuB,GAAGC;AACzD,MAAM;AAC1C,QAAMC,IAAeC,EAAyB,IAAI,GAE5CC,IAAmBA,MAAM;AAC7BF,IAAAA,EAAaG,SAASC,MAAAA;AAAAA,EACxB,GAEMP,IAAmBA,MAAM;AAC7B,IAAIG,EAAaG,YACfH,EAAaG,QAAQE,QAAQ,IACzBP,KAAsBA,EAAAA,IAExBA,KAAsBA,EAAAA;AAAAA,EAC5B;AAEAQ,EAAAA,EAAU,MAAM;AACd,IAAIN,GAAcG,WAAWR,MAC3BK,EAAaG,QAAQI,QAAQC,EAAyBb,CAAY;AAAA,EAEtE,GAAG,CAACK,GAAcG,OAAO,CAAC;AAE1B,QAAMM,IAAYf,IACb,gBAAAgB,EAACC,GAAA,EACA,GAAIZ,GACJ,cAAAJ,GACA,UAAUK,GACV,kBAAkB,MAAME,EAAAA,EAAiB,KAE1C,gBAAAQ,EAACE,GAAA,EACA,GAAIb,GACJ,UAAUC,GACV,cAAAL,GACA,kBAAkB,MAAME,EAAAA,GACxB,kBAAkB,MAAMK,EAAAA,EAAiB,CAAE;AAGjD,SAAIN,MAAeiB,2BAEdC,GAAA,EAAK,aAAY,cAAa,MAAMlB,GAAY,OAAO;AAAA,IAAEmB,QAAQ;AAAA,EAAA,GAC/DN,UAAAA,GACH,IAIGA;AACT;"}
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { c as p } from "../../_virtual/compiler-runtime.js";
|
|
3
|
+
import u from "../../buttons/Button.js";
|
|
4
|
+
import '../../assets/styles/button.css';/* empty css */
|
|
5
|
+
import b from "../../icons/index.js";
|
|
6
|
+
const g = (f) => {
|
|
7
|
+
const t = p.c(9), {
|
|
8
|
+
size: c,
|
|
9
|
+
labelButton: d,
|
|
10
|
+
id: n,
|
|
11
|
+
onBtnClickInsert: s
|
|
12
|
+
} = f, r = c === void 0 ? "medium" : c, a = d === void 0 ? "Selecionar" : d;
|
|
13
|
+
let o, l;
|
|
14
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
15
|
+
height: "100%"
|
|
16
|
+
}, l = /* @__PURE__ */ m(b, { name: "file_download" }), t[0] = o, t[1] = l) : (o = t[0], l = t[1]);
|
|
17
|
+
let e;
|
|
18
|
+
t[2] !== a || t[3] !== s || t[4] !== r ? (e = /* @__PURE__ */ m(u, { className: "uploadButton simple-search-file-button -shadowsdisabled -transparent", onClick: s, size: r, style: o, icon: l, label: a }), t[2] = a, t[3] = s, t[4] = r, t[5] = e) : e = t[5];
|
|
19
|
+
let i;
|
|
20
|
+
return t[6] !== n || t[7] !== e ? (i = /* @__PURE__ */ m("label", { htmlFor: n, children: e }), t[6] = n, t[7] = e, t[8] = i) : i = t[8], i;
|
|
18
21
|
};
|
|
19
22
|
export {
|
|
20
|
-
|
|
23
|
+
g as default
|
|
21
24
|
};
|
|
25
|
+
//# sourceMappingURL=FileButtonSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileButtonSettings.js","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"],"names":["FileButtonSettings","props","$","_c","size","t0","labelButton","t1","id","onBtnClickInsert","undefined","t2","t3","Symbol","for","height","Icon","t4","jsx","Button","t5"],"mappings":";;;;;AAIA,MAAMA,IAAqBC,CAAAA,MAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,CAAA,GACzB;AAAA,IAAAC,MAAAC;AAAAA,IAAAC,aAAAC;AAAAA,IAAAC,IAAAA;AAAAA,IAAAC,kBAAAA;AAAAA,EAAAA,IAA8ER,GAAtEG,IAAAC,MAAAK,SAAA,WAAAL,GAAiBC,IAAAC,MAAAG,SAAA,eAAAH;AAA0B,MAAAI,GAAAC;AAAA,EAAAV,EAAA,CAAA,MAAAW,OAAAC,IAAA,2BAAA,KAQtCH,IAAA;AAAA,IAAAI,QAAU;AAAA,EAAA,GACXH,sBAACI,GAAA,EAAU,MAAA,gBAAA,CAAe,GAAGd,OAAAS,GAAAT,OAAAU,MAAAD,IAAAT,EAAA,CAAA,GAAAU,IAAAV,EAAA,CAAA;AAAA,MAAAe;AAAA,EAAAf,EAAA,CAAA,MAAAI,KAAAJ,SAAAO,KAAAP,EAAA,CAAA,MAAAE,KALrCa,IAAA,gBAAAC,EAACC,GAAA,EACW,WAAA,wEACDV,SAAAA,GACHL,MAAAA,GACC,OAAAO,GACD,MAAAC,GACCN,OAAAA,GAAW,GAAIJ,OAAAI,GAAAJ,OAAAO,GAAAP,OAAAE,GAAAF,OAAAe,KAAAA,IAAAf,EAAA,CAAA;AAAA,MAAAkB;AAAA,SAAAlB,EAAA,CAAA,MAAAM,KAAAN,SAAAe,KAP1BG,IAAA,gBAAAF,EAAA,SAAA,EAAgBV,SAAAA,GACdS,UAAAA,GAOF,GAAQf,OAAAM,GAAAN,OAAAe,GAAAf,OAAAkB,KAAAA,IAAAlB,EAAA,CAAA,GARRkB;AAQQ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","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"],"names":["transformFilesToFileList","files","newFiles","FileList","dt","DataTransfer","File","items","add","map","file"],"mappings":"AAEO,MAAMA,IAA2BA,CAACC,MAAsB;AAC7D,MAAIC,IAAWD;AACf,MAAI,EAAEC,aAAoBC,WAAW;AACnC,UAAMC,IAAK,IAAIC,aAAAA;AACf,IAAIH,aAAoBI,QACtBF,EAAGG,MAAMC,IAAIN,CAAQ,GACrBA,IAAWE,EAAGH,UAEdC,EAASO,IAAIC,CAAAA,MAAQN,EAAGG,MAAMC,IAAIE,CAAI,CAAC,GACvCR,IAAWE,EAAGH;AAAAA,EAElB;AACA,SAAOC;AACT;"}
|
package/lib/inputs/file/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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, };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import r from "./text/index.js";
|
|
2
|
+
import { default as a } from "./file/File.js";
|
|
3
|
+
import { default as d } from "./select/index.js";
|
|
4
|
+
import { default as i } from "./search/index.js";
|
|
5
|
+
import { default as m } from "./mask/BaseMask.js";
|
|
6
|
+
import { default as u } from "./mask/Cpf.js";
|
|
7
|
+
import { default as F } from "./mask/Cnpj.js";
|
|
8
|
+
import { default as C } from "./mask/Phone.js";
|
|
9
|
+
import { default as M } from "./mask/ZipCode.js";
|
|
10
|
+
import { default as h } from "./multiSelect/index.js";
|
|
11
|
+
import { default as P } from "./date/index.js";
|
|
12
|
+
import { default as b } from "./textarea/index.js";
|
|
13
|
+
import { default as j } from "./period/index.js";
|
|
14
|
+
import { default as y } from "./color/index.js";
|
|
15
|
+
import { default as N } from "./number/index.js";
|
|
16
|
+
import { ErrorMessage as q } from "./errorMessage/index.js";
|
|
17
|
+
import { default as w } from "./number/Currency.js";
|
|
18
|
+
import { default as A } from "./number/Decimal.js";
|
|
19
|
+
export {
|
|
20
|
+
F as CnpjField,
|
|
21
|
+
y as ColorField,
|
|
22
|
+
u as CpfField,
|
|
23
|
+
w as CurrencyField,
|
|
24
|
+
P as DateField,
|
|
25
|
+
A as DecimalField,
|
|
26
|
+
q as ErrorMessage,
|
|
27
|
+
a as FileField,
|
|
28
|
+
m as MaskField,
|
|
29
|
+
h as MultiSelectField,
|
|
30
|
+
N as NumberField,
|
|
31
|
+
j as PeriodField,
|
|
32
|
+
C as PhoneField,
|
|
33
|
+
i as SearchField,
|
|
34
|
+
d as SelectField,
|
|
35
|
+
r as TextField,
|
|
36
|
+
b as TextareaField,
|
|
37
|
+
M as ZipCodeField,
|
|
38
|
+
r as default
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
package/lib/inputs/inputHOC.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
2
|
import { IInputHOCProps } from './types';
|
|
3
|
-
declare const InputHOC: <ComponentProps extends IInputHOCProps>(WrappedComponent:
|
|
3
|
+
declare const InputHOC: <ComponentProps extends IInputHOCProps>(WrappedComponent: ComponentType<ComponentProps>) => (props: ComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default InputHOC;
|