linear-react-components-ui 1.1.26-beta.16 → 1.1.26-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/@types/Align.d.ts +4 -2
- package/lib/@types/Align.js +5 -0
- package/lib/@types/ButtonTypes.d.ts +3 -1
- package/lib/@types/ButtonTypes.js +5 -0
- package/lib/@types/ColorStyles.d.ts +4 -2
- package/lib/@types/ColorStyles.js +5 -0
- package/lib/@types/DataCombo.d.ts +3 -1
- package/lib/@types/DataCombo.js +5 -0
- package/lib/@types/Icon.d.ts +5 -2
- package/lib/@types/Icon.js +5 -0
- package/lib/@types/LabelStyles.d.ts +3 -1
- package/lib/@types/LabelStyles.js +5 -0
- package/lib/@types/Period.d.ts +3 -1
- package/lib/@types/Period.js +5 -0
- package/lib/@types/PermissionAttr.d.ts +4 -2
- package/lib/@types/PermissionAttr.js +5 -0
- package/lib/@types/PointerEvents.d.ts +3 -1
- package/lib/@types/PointerEvents.js +5 -0
- package/lib/@types/Position.d.ts +4 -2
- package/lib/@types/Position.js +5 -0
- package/lib/@types/PositionAlert.d.ts +3 -1
- package/lib/@types/PositionAlert.js +5 -0
- package/lib/@types/Size.d.ts +3 -1
- package/lib/@types/Size.js +5 -0
- package/lib/@types/SizePixels.d.ts +3 -1
- package/lib/@types/SizePixels.js +5 -0
- package/lib/@types/StorageMock.d.ts +3 -1
- package/lib/@types/StorageMock.js +5 -0
- package/lib/BaseMask-0c14ef51.d.ts +24 -0
- package/lib/Cnpj-bde01dd0.d.ts +18 -0
- package/lib/Cpf-3fa496ad.d.ts +18 -0
- package/lib/Phone-2bb0b397.d.ts +18 -0
- package/lib/ZipCode-09460e18.d.ts +13 -0
- package/lib/alerts/AlertContainer.d.ts +8 -2
- package/lib/alerts/AlertContainer.js +70 -61
- package/lib/alerts/AlertProvider.d.ts +9 -3
- package/lib/alerts/AlertProvider.js +64 -38
- package/lib/alerts/BaseAlert.d.ts +9 -3
- package/lib/alerts/BaseAlert.js +31 -19
- package/lib/alerts/Message.d.ts +9 -3
- package/lib/alerts/Message.js +112 -93
- package/lib/alerts/helpers.d.ts +9 -3
- package/lib/alerts/helpers.js +9 -6
- package/lib/alerts/index.d.ts +11 -4
- package/lib/alerts/index.js +16 -7
- package/lib/alerts/types.d.ts +14 -10
- package/lib/alerts/types.js +5 -0
- package/lib/alerts/withAlert.d.ts +9 -4
- package/lib/alerts/withAlert.js +23 -14
- package/lib/assets/fonts/Roboto-Black.woff +0 -0
- package/lib/assets/fonts/Roboto-Black.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Bold.woff +0 -0
- package/lib/assets/fonts/Roboto-Bold.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Light.woff +0 -0
- package/lib/assets/fonts/Roboto-Light.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Medium.woff +0 -0
- package/lib/assets/fonts/Roboto-Medium.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Regular.woff +0 -0
- package/lib/assets/fonts/Roboto-Regular.woff2 +0 -0
- package/lib/assets/fonts/Roboto-Thin.woff +0 -0
- package/lib/assets/fonts/Roboto-Thin.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Black.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Black.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Bold.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Bold.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-ExtraLight.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-ExtraLight.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Light.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Light.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-Regular.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-Regular.woff2 +0 -0
- package/lib/assets/fonts/TitilliumWeb-SemiBold.woff +0 -0
- package/lib/assets/fonts/TitilliumWeb-SemiBold.woff2 +0 -0
- package/lib/assets/images/logo.png +0 -0
- package/lib/assets/styles/alerts.scss +149 -0
- package/lib/assets/styles/avatar.scss +42 -0
- package/lib/assets/styles/badge.scss +48 -0
- package/lib/assets/styles/button.scss +373 -0
- package/lib/assets/styles/calendar.scss +311 -0
- package/lib/assets/styles/checkbox.scss +108 -0
- package/lib/assets/styles/checkbox2.scss +199 -0
- package/lib/assets/styles/colorpicker.scss +12 -0
- package/lib/assets/styles/colors.scss +180 -0
- package/lib/assets/styles/commons.scss +138 -0
- package/lib/assets/styles/datepicker.scss +36 -0
- package/lib/assets/styles/datepicker2.scss +332 -0
- package/lib/assets/styles/dialog.scss +200 -0
- package/lib/assets/styles/drawers.scss +160 -0
- package/lib/assets/styles/dropdown.scss +179 -0
- package/lib/assets/styles/effects.scss +821 -0
- package/lib/assets/styles/error.scss +9 -0
- package/lib/assets/styles/fieldset.scss +96 -0
- package/lib/assets/styles/file.scss +229 -0
- package/lib/assets/styles/filefield.scss +42 -0
- package/lib/assets/styles/floatMenu.scss +15 -0
- package/lib/assets/styles/fonts.scss +86 -0
- package/lib/assets/styles/form.scss +23 -0
- package/lib/assets/styles/gridlayout.scss +2054 -0
- package/lib/assets/styles/hint.scss +30 -0
- package/lib/assets/styles/icon.scss +42 -0
- package/lib/assets/styles/input.scss +156 -0
- package/lib/assets/styles/label.scss +118 -0
- package/lib/assets/styles/labelMessages.scss +81 -0
- package/lib/assets/styles/list.scss +124 -0
- package/lib/assets/styles/multiSelect.scss +125 -0
- package/lib/assets/styles/noPermission.scss +25 -0
- package/lib/assets/styles/numberfield.scss +18 -0
- package/lib/assets/styles/numbers.scss +5 -0
- package/lib/assets/styles/panel.scss +95 -0
- package/lib/assets/styles/periodpicker.scss +109 -0
- package/lib/assets/styles/popover.scss +44 -0
- package/lib/assets/styles/progress.scss +72 -0
- package/lib/assets/styles/radio.scss +156 -0
- package/lib/assets/styles/radiofield.scss +185 -0
- package/lib/assets/styles/search.scss +13 -0
- package/lib/assets/styles/select.scss +159 -0
- package/lib/assets/styles/selectfield.scss +407 -0
- package/lib/assets/styles/shortcuts.scss +59 -0
- package/lib/assets/styles/sidenav.scss +409 -0
- package/lib/assets/styles/skeleton.scss +48 -0
- package/lib/assets/styles/slot.scss +34 -0
- package/lib/assets/styles/spinner.scss +34 -0
- package/lib/assets/styles/split.scss +80 -0
- package/lib/assets/styles/table.scss +185 -0
- package/lib/assets/styles/tabs.scss +308 -0
- package/lib/assets/styles/textContent.scss +9 -0
- package/lib/assets/styles/textfield.scss +182 -0
- package/lib/assets/styles/toolbar.scss +74 -0
- package/lib/assets/styles/tooltip.scss +95 -0
- package/lib/assets/styles/treetable.scss +100 -0
- package/lib/assets/styles/treeview.scss +112 -0
- package/lib/assets/styles/uitour.scss +112 -0
- package/lib/assets/styles/wizard.scss +186 -0
- package/lib/avatar/index.d.ts +9 -3
- package/lib/avatar/index.js +89 -55
- package/lib/avatar/types.d.ts +8 -4
- package/lib/avatar/types.js +5 -0
- package/lib/badge/index.d.ts +6 -3
- package/lib/badge/index.js +29 -29
- package/lib/badge/types.d.ts +4 -1
- package/lib/badge/types.js +5 -0
- package/lib/buttons/ActivateButton.d.ts +12 -3
- package/lib/buttons/ActivateButton.js +14 -12
- package/lib/buttons/AddButton.d.ts +12 -3
- package/lib/buttons/AddButton.js +18 -15
- package/lib/buttons/Button.d.ts +12 -3
- package/lib/buttons/Button.js +22 -19
- package/lib/buttons/ButtonGroups.d.ts +4 -2
- package/lib/buttons/ButtonGroups.js +16 -12
- package/lib/buttons/CancelButton.d.ts +12 -3
- package/lib/buttons/CancelButton.js +22 -16
- package/lib/buttons/DangerButton.d.ts +12 -3
- package/lib/buttons/DangerButton.js +22 -17
- package/lib/buttons/DefaultButton.d.ts +12 -3
- package/lib/buttons/DefaultButton.js +188 -95
- package/lib/buttons/DestroyButton.d.ts +12 -3
- package/lib/buttons/DestroyButton.js +21 -18
- package/lib/buttons/EditButton.d.ts +12 -3
- package/lib/buttons/EditButton.js +14 -12
- package/lib/buttons/InactivateButton.d.ts +12 -3
- package/lib/buttons/InactivateButton.js +14 -12
- package/lib/buttons/InfoButton.d.ts +12 -3
- package/lib/buttons/InfoButton.js +22 -17
- package/lib/buttons/PrimaryButton.d.ts +12 -3
- package/lib/buttons/PrimaryButton.js +22 -17
- package/lib/buttons/RestoreButton.d.ts +12 -3
- package/lib/buttons/RestoreButton.js +14 -12
- package/lib/buttons/SaveButton.d.ts +12 -3
- package/lib/buttons/SaveButton.js +22 -16
- package/lib/buttons/SuccessButton.d.ts +12 -3
- package/lib/buttons/SuccessButton.js +22 -17
- package/lib/buttons/WarningButton.d.ts +12 -3
- package/lib/buttons/WarningButton.js +22 -17
- package/lib/buttons/button_container/index.d.ts +6 -4
- package/lib/buttons/button_container/index.js +29 -23
- package/lib/buttons/index.d.ts +27 -17
- package/lib/buttons/index.js +108 -34
- package/lib/buttons/split_button/index.d.ts +12 -3
- package/lib/buttons/split_button/index.js +62 -59
- package/lib/buttons/types.d.ts +13 -9
- package/lib/buttons/types.js +5 -0
- package/lib/calendar/DangerCalendar.d.ts +8 -3
- package/lib/calendar/DangerCalendar.js +17 -15
- package/lib/calendar/InfoCalendar.d.ts +8 -3
- package/lib/calendar/InfoCalendar.js +17 -15
- package/lib/calendar/PrimaryCalendar.d.ts +8 -3
- package/lib/calendar/PrimaryCalendar.js +17 -15
- package/lib/calendar/SuccessCalendar.d.ts +8 -3
- package/lib/calendar/SuccessCalendar.js +17 -15
- package/lib/calendar/WarningCalendar.d.ts +8 -3
- package/lib/calendar/WarningCalendar.js +17 -15
- package/lib/calendar/base/helpers.d.ts +18 -14
- package/lib/calendar/base/helpers.js +96 -80
- package/lib/calendar/base/index.d.ts +8 -3
- package/lib/calendar/base/index.js +198 -172
- package/lib/calendar/index.d.ts +14 -8
- package/lib/calendar/index.js +44 -15
- package/lib/calendar/types.d.ts +8 -5
- package/lib/calendar/types.js +5 -0
- package/lib/checkbox/index.d.ts +8 -3
- package/lib/checkbox/index.js +140 -107
- package/lib/checkbox/types.d.ts +7 -5
- package/lib/checkbox/types.js +5 -0
- package/lib/dialog/Alert.d.ts +9 -3
- package/lib/dialog/Alert.js +31 -24
- package/lib/dialog/Custom.d.ts +9 -3
- package/lib/dialog/Custom.js +54 -46
- package/lib/dialog/Error.d.ts +9 -3
- package/lib/dialog/Error.js +31 -24
- package/lib/dialog/Information.d.ts +9 -3
- package/lib/dialog/Information.js +31 -24
- package/lib/dialog/Question.d.ts +9 -3
- package/lib/dialog/Question.js +61 -47
- package/lib/dialog/Warning.d.ts +9 -3
- package/lib/dialog/Warning.js +31 -24
- package/lib/dialog/base/Content.d.ts +9 -3
- package/lib/dialog/base/Content.js +21 -15
- package/lib/dialog/base/Footer.d.ts +9 -3
- package/lib/dialog/base/Footer.js +12 -11
- package/lib/dialog/base/Header.d.ts +9 -3
- package/lib/dialog/base/Header.js +56 -39
- package/lib/dialog/base/index.d.ts +10 -4
- package/lib/dialog/base/index.js +194 -167
- package/lib/dialog/base/style.js +12 -9
- package/lib/dialog/form/index.d.ts +10 -4
- package/lib/dialog/form/index.js +120 -110
- package/lib/dialog/index.d.ts +16 -9
- package/lib/dialog/index.js +51 -17
- package/lib/dialog/types.d.ts +24 -20
- package/lib/dialog/types.js +5 -0
- package/lib/dialog/wizard/index.d.ts +13 -8
- package/lib/dialog/wizard/index.js +79 -66
- package/lib/dialog/wizard/progressbar.d.ts +5 -2
- package/lib/dialog/wizard/progressbar.js +37 -30
- package/lib/dialog/wizard/step.d.ts +9 -2
- package/lib/dialog/wizard/step.js +22 -19
- package/lib/dialog/wizard/useWizard.d.ts +9 -2
- package/lib/dialog/wizard/useWizard.js +47 -45
- package/lib/drawer/Content.d.ts +10 -3
- package/lib/drawer/Content.js +25 -18
- package/lib/drawer/Drawer.d.ts +10 -3
- package/lib/drawer/Drawer.js +142 -74
- package/lib/drawer/Header.d.ts +10 -3
- package/lib/drawer/Header.js +74 -55
- package/lib/drawer/helpers.d.ts +10 -3
- package/lib/drawer/helpers.js +10 -6
- package/lib/drawer/index.d.ts +12 -5
- package/lib/drawer/index.js +25 -12
- package/lib/drawer/types.d.ts +11 -7
- package/lib/drawer/types.js +5 -0
- package/lib/dropdown/Popup.d.ts +6 -3
- package/lib/dropdown/Popup.js +86 -48
- package/lib/dropdown/helper.d.ts +4 -2
- package/lib/dropdown/helper.js +15 -8
- package/lib/dropdown/types.d.ts +10 -7
- package/lib/dropdown/types.js +5 -0
- package/lib/dropdown/withDropdown.d.ts +8 -7
- package/lib/dropdown/withDropdown.js +90 -79
- package/lib/fieldset/index.d.ts +8 -3
- package/lib/fieldset/index.js +81 -70
- package/lib/fieldset/types.d.ts +8 -5
- package/lib/fieldset/types.js +5 -0
- package/lib/form/Field.d.ts +14 -2
- package/lib/form/Field.js +120 -102
- package/lib/form/FieldArray.d.ts +14 -2
- package/lib/form/FieldArray.js +94 -58
- package/lib/form/FieldNumber.d.ts +14 -2
- package/lib/form/FieldNumber.js +75 -57
- package/lib/form/FieldPeriod.d.ts +14 -2
- package/lib/form/FieldPeriod.js +97 -89
- package/lib/form/helpers.d.ts +19 -7
- package/lib/form/helpers.js +47 -26
- package/lib/form/index.d.ts +18 -8
- package/lib/form/index.js +297 -161
- package/lib/form/types.d.ts +35 -25
- package/lib/form/types.js +5 -0
- package/lib/form/withFieldHOC.d.ts +14 -4
- package/lib/form/withFieldHOC.js +70 -61
- package/lib/form/withFormSecurity.d.ts +15 -6
- package/lib/form/withFormSecurity.js +53 -29
- package/lib/form2/helpers.d.ts +8 -5
- package/lib/form2/helpers.js +39 -22
- package/lib/form2/index.d.ts +8 -6
- package/lib/form2/index.js +35 -22
- package/lib/form2/types.d.ts +20 -19
- package/lib/form2/types.js +5 -0
- package/lib/form2/useForm/index.d.ts +4 -2
- package/lib/form2/useForm/index.js +195 -108
- package/lib/gridlayout/GridCol.d.ts +6 -3
- package/lib/gridlayout/GridCol.js +32 -26
- package/lib/gridlayout/GridRow.d.ts +6 -3
- package/lib/gridlayout/GridRow.js +33 -26
- package/lib/gridlayout/index.d.ts +8 -4
- package/lib/gridlayout/index.js +16 -7
- package/lib/gridlayout/types.d.ts +6 -3
- package/lib/gridlayout/types.js +5 -0
- package/lib/hint/helpers.d.ts +3 -1
- package/lib/hint/helpers.js +21 -13
- package/lib/hint/index.d.ts +7 -3
- package/lib/hint/index.js +34 -30
- package/lib/hint/types.d.ts +5 -2
- package/lib/hint/types.js +5 -0
- package/lib/icons/helper.d.ts +2 -1
- package/lib/icons/helper.js +334 -332
- package/lib/icons/index.d.ts +13 -3
- package/lib/icons/index.js +77 -75
- package/lib/icons/types.d.ts +12 -8
- package/lib/icons/types.js +5 -0
- package/lib/index-03426259.d.ts +15 -0
- package/lib/index-208e7f62.d.ts +44 -0
- package/lib/index-368f781f.d.ts +15 -0
- package/lib/index-3b70931d.d.ts +44 -0
- package/lib/index-73b84427.d.ts +42 -0
- package/lib/index-7dfa8924.d.ts +22 -0
- package/lib/index-9e576346.d.ts +23 -0
- package/lib/index-c47f7b63.d.ts +26 -0
- package/lib/index-c9247c1f.d.ts +15 -0
- package/lib/index-ecafc8c6.d.ts +30 -0
- package/lib/index.d.ts +40 -10
- package/lib/index.js +69 -29
- package/lib/inputs/base/InputTextBase.d.ts +11 -3
- package/lib/inputs/base/InputTextBase.js +266 -177
- package/lib/inputs/base/helpers.d.ts +16 -9
- package/lib/inputs/base/helpers.js +43 -28
- package/lib/inputs/base/types.d.ts +12 -8
- package/lib/inputs/base/types.js +5 -0
- package/lib/inputs/color/index.d.ts +7 -3
- package/lib/inputs/color/index.js +90 -56
- package/lib/inputs/color/types.d.ts +5 -2
- package/lib/inputs/color/types.js +5 -0
- package/lib/inputs/date/Dialog.d.ts +13 -3
- package/lib/inputs/date/Dialog.js +25 -17
- package/lib/inputs/date/Dropdown.d.ts +13 -3
- package/lib/inputs/date/Dropdown.js +36 -18
- package/lib/inputs/date/helpers.d.ts +10 -7
- package/lib/inputs/date/helpers.js +28 -32
- package/lib/inputs/date/index.d.ts +13 -3
- package/lib/inputs/date/index.js +275 -125
- package/lib/inputs/date/types.d.ts +14 -7
- package/lib/inputs/date/types.js +5 -0
- package/lib/inputs/errorMessage/index.d.ts +16 -3
- package/lib/inputs/errorMessage/index.js +25 -25
- package/lib/inputs/file/DefaultFile.d.ts +13 -3
- package/lib/inputs/file/DefaultFile.js +79 -68
- package/lib/inputs/file/DragDropFile.d.ts +13 -3
- package/lib/inputs/file/DragDropFile.js +264 -128
- package/lib/inputs/file/File.d.ts +13 -3
- package/lib/inputs/file/File.js +62 -30
- package/lib/inputs/file/FileButtonSettings.d.ts +13 -3
- package/lib/inputs/file/FileButtonSettings.js +32 -24
- package/lib/inputs/file/helpers.d.ts +13 -2
- package/lib/inputs/file/helpers.js +19 -10
- package/lib/inputs/file/index.d.ts +16 -5
- package/lib/inputs/file/index.js +23 -9
- package/lib/inputs/file/types.d.ts +16 -8
- package/lib/inputs/file/types.js +5 -0
- package/lib/inputs/inputHOC.d.ts +16 -4
- package/lib/inputs/inputHOC.js +43 -42
- package/lib/inputs/mask/BaseMask.d.ts +12 -3
- package/lib/inputs/mask/BaseMask.js +152 -124
- package/lib/inputs/mask/Cnpj.d.ts +12 -3
- package/lib/inputs/mask/Cnpj.js +58 -45
- package/lib/inputs/mask/Cpf.d.ts +12 -3
- package/lib/inputs/mask/Cpf.js +56 -48
- package/lib/inputs/mask/Phone.d.ts +12 -3
- package/lib/inputs/mask/Phone.js +18 -13
- package/lib/inputs/mask/ZipCode.d.ts +12 -3
- package/lib/inputs/mask/ZipCode.js +14 -12
- package/lib/inputs/mask/helpers.d.ts +14 -4
- package/lib/inputs/mask/helpers.js +118 -68
- package/lib/inputs/mask/index.d.ts +17 -7
- package/lib/inputs/mask/index.js +37 -13
- package/lib/inputs/mask/types.d.ts +15 -9
- package/lib/inputs/mask/types.js +5 -0
- package/lib/inputs/multiSelect/ActionButtons.d.ts +13 -3
- package/lib/inputs/multiSelect/ActionButtons.js +50 -41
- package/lib/inputs/multiSelect/Dropdown.d.ts +13 -3
- package/lib/inputs/multiSelect/Dropdown.js +134 -97
- package/lib/inputs/multiSelect/helper.d.ts +12 -2
- package/lib/inputs/multiSelect/helper.js +19 -8
- package/lib/inputs/multiSelect/index.d.ts +13 -3
- package/lib/inputs/multiSelect/index.js +228 -189
- package/lib/inputs/multiSelect/types.d.ts +15 -7
- package/lib/inputs/multiSelect/types.js +5 -0
- package/lib/inputs/number/BaseNumber.d.ts +17 -3
- package/lib/inputs/number/BaseNumber.js +66 -48
- package/lib/inputs/number/Currency.d.ts +17 -3
- package/lib/inputs/number/Currency.js +27 -21
- package/lib/inputs/number/Decimal.d.ts +17 -3
- package/lib/inputs/number/Decimal.js +11 -12
- package/lib/inputs/number/format_number.d.ts +5 -3
- package/lib/inputs/number/format_number.js +28 -9
- package/lib/inputs/number/index.d.ts +19 -6
- package/lib/inputs/number/index.js +63 -35
- package/lib/inputs/number/types.d.ts +18 -7
- package/lib/inputs/number/types.js +5 -0
- package/lib/inputs/period/Dialog.d.ts +14 -3
- package/lib/inputs/period/Dialog.js +26 -18
- package/lib/inputs/period/Dropdown.d.ts +14 -3
- package/lib/inputs/period/Dropdown.js +34 -17
- package/lib/inputs/period/PeriodList.d.ts +14 -3
- package/lib/inputs/period/PeriodList.js +45 -37
- package/lib/inputs/period/helper.d.ts +16 -5
- package/lib/inputs/period/helper.js +57 -31
- package/lib/inputs/period/index.d.ts +14 -3
- package/lib/inputs/period/index.js +506 -184
- package/lib/inputs/period/types.d.ts +19 -13
- package/lib/inputs/period/types.js +5 -0
- package/lib/inputs/search/index.d.ts +16 -3
- package/lib/inputs/search/index.js +126 -104
- package/lib/inputs/select/ActionButtons.d.ts +16 -3
- package/lib/inputs/select/ActionButtons.js +38 -28
- package/lib/inputs/select/Dropdown.d.ts +16 -3
- package/lib/inputs/select/Dropdown.js +112 -69
- package/lib/inputs/select/helper.d.ts +21 -7
- package/lib/inputs/select/helper.js +106 -47
- package/lib/inputs/select/index.d.ts +13 -3
- package/lib/inputs/select/index.js +40 -27
- package/lib/inputs/select/multiple/Selecteds.d.ts +13 -3
- package/lib/inputs/select/multiple/Selecteds.js +26 -26
- package/lib/inputs/select/multiple/index.d.ts +13 -3
- package/lib/inputs/select/multiple/index.js +276 -119
- package/lib/inputs/select/simple/index.d.ts +13 -3
- package/lib/inputs/select/simple/index.js +291 -138
- package/lib/inputs/select/types.d.ts +20 -14
- package/lib/inputs/select/types.js +5 -0
- package/lib/inputs/text/index.d.ts +12 -3
- package/lib/inputs/text/index.js +13 -12
- package/lib/inputs/text/types.d.ts +11 -5
- package/lib/inputs/text/types.js +5 -0
- package/lib/inputs/textarea/index.d.ts +12 -3
- package/lib/inputs/textarea/index.js +24 -16
- package/lib/inputs/textarea/types.d.ts +11 -2
- package/lib/inputs/textarea/types.js +5 -0
- package/lib/inputs/types.d.ts +24 -17
- package/lib/inputs/types.js +5 -0
- package/lib/inputs2/checkboxfield/index.d.ts +7 -32
- package/lib/inputs2/checkboxfield/index.js +149 -114
- package/lib/inputs2/colorfield/index.d.ts +9 -8
- package/lib/inputs2/colorfield/index.js +118 -91
- package/lib/inputs2/date/base/constants.d.ts +6 -3
- package/lib/inputs2/date/base/constants.js +37 -33
- package/lib/inputs2/date/base/index.d.ts +12 -6
- package/lib/inputs2/date/base/index.js +173 -129
- package/lib/inputs2/date/datefield/calendarbox.d.ts +6 -5
- package/lib/inputs2/date/datefield/calendarbox.js +114 -76
- package/lib/inputs2/date/datefield/context.d.ts +12 -2
- package/lib/inputs2/date/datefield/context.js +14 -11
- package/lib/inputs2/date/datefield/index.d.ts +10 -4
- package/lib/inputs2/date/datefield/index.js +323 -305
- package/lib/inputs2/date/datefield/triggers.d.ts +3 -3
- package/lib/inputs2/date/datefield/triggers.js +46 -29
- package/lib/inputs2/date/datefield/types.d.ts +16 -14
- package/lib/inputs2/date/datefield/types.js +5 -0
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +6 -5
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +135 -96
- package/lib/inputs2/date/dateperiodfield/context.d.ts +12 -2
- package/lib/inputs2/date/dateperiodfield/context.js +16 -11
- package/lib/inputs2/date/dateperiodfield/index.d.ts +10 -4
- package/lib/inputs2/date/dateperiodfield/index.js +555 -485
- package/lib/inputs2/date/dateperiodfield/triggers.d.ts +2 -1
- package/lib/inputs2/date/dateperiodfield/triggers.js +115 -60
- package/lib/inputs2/date/dateperiodfield/types.d.ts +24 -22
- package/lib/inputs2/date/dateperiodfield/types.js +19 -0
- package/lib/inputs2/date/helpers.d.ts +20 -9
- package/lib/inputs2/date/helpers.js +54 -45
- package/lib/inputs2/date/types.d.ts +14 -13
- package/lib/inputs2/date/types.js +19 -5
- package/lib/inputs2/filefield/index.d.ts +9 -11
- package/lib/inputs2/filefield/index.js +163 -118
- package/lib/inputs2/index.d.ts +35 -16
- package/lib/inputs2/index.js +38 -33
- package/lib/inputs2/mask/BaseMask.d.ts +10 -13
- package/lib/inputs2/mask/BaseMask.js +86 -70
- package/lib/inputs2/mask/Cnpj.d.ts +11 -6
- package/lib/inputs2/mask/Cnpj.js +56 -47
- package/lib/inputs2/mask/Cpf.d.ts +11 -6
- package/lib/inputs2/mask/Cpf.js +52 -43
- package/lib/inputs2/mask/Phone.d.ts +11 -6
- package/lib/inputs2/mask/Phone.js +25 -21
- package/lib/inputs2/mask/ZipCode.d.ts +11 -3
- package/lib/inputs2/mask/ZipCode.js +22 -19
- package/lib/inputs2/mask/helpers.d.ts +4 -2
- package/lib/inputs2/mask/helpers.js +56 -33
- package/lib/inputs2/numberfield/currency.d.ts +12 -2
- package/lib/inputs2/numberfield/currency.js +88 -113
- package/lib/inputs2/numberfield/decimal.d.ts +12 -2
- package/lib/inputs2/numberfield/decimal.js +82 -105
- package/lib/inputs2/numberfield/helpers.d.ts +3 -1
- package/lib/inputs2/numberfield/helpers.js +48 -14
- package/lib/inputs2/numberfield/index.d.ts +12 -7
- package/lib/inputs2/numberfield/index.js +100 -101
- package/lib/inputs2/numberfield/types.d.ts +16 -6
- package/lib/inputs2/numberfield/types.js +5 -0
- package/lib/inputs2/radiofield/index.d.ts +9 -4
- package/lib/inputs2/radiofield/index.js +138 -110
- package/lib/inputs2/radiofield/types.d.ts +13 -11
- package/lib/inputs2/radiofield/types.js +5 -0
- package/lib/inputs2/selectfield/context.d.ts +13 -12
- package/lib/inputs2/selectfield/context.js +14 -11
- package/lib/inputs2/selectfield/helpers.d.ts +6 -5
- package/lib/inputs2/selectfield/helpers.js +23 -15
- package/lib/inputs2/selectfield/index.d.ts +11 -7
- package/lib/inputs2/selectfield/index.js +512 -387
- package/lib/inputs2/selectfield/item.d.ts +7 -6
- package/lib/inputs2/selectfield/item.js +88 -56
- package/lib/inputs2/selectfield/listbox.d.ts +6 -5
- package/lib/inputs2/selectfield/listbox.js +106 -70
- package/lib/inputs2/selectfield/options.d.ts +7 -6
- package/lib/inputs2/selectfield/options.js +25 -19
- package/lib/inputs2/selectfield/search.d.ts +6 -5
- package/lib/inputs2/selectfield/search.js +68 -55
- package/lib/inputs2/selectfield/selections.d.ts +6 -5
- package/lib/inputs2/selectfield/selections.js +84 -64
- package/lib/inputs2/selectfield/triggers.d.ts +3 -3
- package/lib/inputs2/selectfield/triggers.js +107 -81
- package/lib/inputs2/selectfield/types.d.ts +14 -12
- package/lib/inputs2/selectfield/types.js +21 -6
- package/lib/inputs2/slot/index.d.ts +8 -11
- package/lib/inputs2/slot/index.js +45 -48
- package/lib/inputs2/textareafield/index.d.ts +8 -30
- package/lib/inputs2/textareafield/index.js +189 -135
- package/lib/inputs2/textfield/index.d.ts +8 -30
- package/lib/inputs2/textfield/index.js +157 -108
- package/lib/internals/colorStyles.d.ts +2 -1
- package/lib/internals/colorStyles.js +13 -10
- package/lib/internals/constants.d.ts +5 -3
- package/lib/internals/constants.js +11 -9
- package/lib/internals/types.d.ts +4 -2
- package/lib/internals/types.js +5 -0
- package/lib/labelMessages/index.d.ts +9 -3
- package/lib/labelMessages/index.js +58 -53
- package/lib/labelMessages/types.d.ts +7 -3
- package/lib/labelMessages/types.js +5 -0
- package/lib/labels/DangerLabel.d.ts +12 -3
- package/lib/labels/DangerLabel.js +17 -15
- package/lib/labels/DefaultLabel.d.ts +12 -3
- package/lib/labels/DefaultLabel.js +61 -61
- package/lib/labels/InfoLabel.d.ts +12 -3
- package/lib/labels/InfoLabel.js +17 -15
- package/lib/labels/PrimaryLabel.d.ts +12 -3
- package/lib/labels/PrimaryLabel.js +17 -15
- package/lib/labels/SuccessLabel.d.ts +12 -3
- package/lib/labels/SuccessLabel.js +17 -15
- package/lib/labels/WarningLabel.d.ts +12 -3
- package/lib/labels/WarningLabel.js +17 -15
- package/lib/labels/index.d.ts +19 -9
- package/lib/labels/index.js +52 -18
- package/lib/labels/label_container/index.d.ts +6 -4
- package/lib/labels/label_container/index.js +21 -18
- package/lib/labels/types.d.ts +12 -8
- package/lib/labels/types.js +5 -0
- package/lib/list/Header.d.ts +11 -3
- package/lib/list/Header.js +22 -20
- package/lib/list/Item.d.ts +11 -3
- package/lib/list/Item.js +164 -148
- package/lib/list/Separator.d.ts +3 -2
- package/lib/list/Separator.js +12 -11
- package/lib/list/helpers.d.ts +11 -3
- package/lib/list/helpers.js +14 -11
- package/lib/list/index.d.ts +14 -7
- package/lib/list/index.js +173 -97
- package/lib/list/types.d.ts +17 -12
- package/lib/list/types.js +5 -0
- package/lib/menus/float/MenuItem.d.ts +9 -3
- package/lib/menus/float/MenuItem.js +66 -53
- package/lib/menus/float/SubMenuContainer.js +72 -73
- package/lib/menus/float/helpers.d.ts +9 -3
- package/lib/menus/float/helpers.js +10 -6
- package/lib/menus/float/index.d.ts +40 -6
- package/lib/menus/float/index.js +67 -44
- package/lib/menus/float/types.d.ts +9 -5
- package/lib/menus/float/types.js +5 -0
- package/lib/menus/index.d.ts +12 -2
- package/lib/menus/index.js +9 -5
- package/lib/menus/sidenav/ExpandMenu.d.ts +12 -3
- package/lib/menus/sidenav/ExpandMenu.js +26 -19
- package/lib/menus/sidenav/MenuLink.d.ts +12 -3
- package/lib/menus/sidenav/MenuLink.js +36 -30
- package/lib/menus/sidenav/NavMenuGroup.d.ts +12 -3
- package/lib/menus/sidenav/NavMenuGroup.js +25 -22
- package/lib/menus/sidenav/NavMenuItem.d.ts +12 -3
- package/lib/menus/sidenav/NavMenuItem.js +147 -138
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +12 -3
- package/lib/menus/sidenav/NavSubMenuItem.js +42 -39
- package/lib/menus/sidenav/helpers.d.ts +13 -4
- package/lib/menus/sidenav/helpers.js +17 -10
- package/lib/menus/sidenav/index.d.ts +16 -8
- package/lib/menus/sidenav/index.js +180 -148
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +12 -3
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +25 -23
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +12 -3
- package/lib/menus/sidenav/popup_menu_search/index.js +110 -51
- package/lib/menus/sidenav/types.d.ts +23 -18
- package/lib/menus/sidenav/types.js +5 -0
- package/lib/noPermission/index.d.ts +3 -2
- package/lib/noPermission/index.js +23 -17
- package/lib/panel/Content.d.ts +10 -3
- package/lib/panel/Content.js +77 -54
- package/lib/panel/DangerPanel.d.ts +10 -3
- package/lib/panel/DangerPanel.js +15 -13
- package/lib/panel/Default.d.ts +10 -3
- package/lib/panel/Default.js +64 -66
- package/lib/panel/Header.d.ts +10 -3
- package/lib/panel/Header.js +73 -51
- package/lib/panel/InfoPanel.d.ts +10 -3
- package/lib/panel/InfoPanel.js +15 -13
- package/lib/panel/PrimaryPanel.d.ts +10 -3
- package/lib/panel/PrimaryPanel.js +15 -13
- package/lib/panel/SuccessPanel.d.ts +10 -3
- package/lib/panel/SuccessPanel.js +15 -13
- package/lib/panel/ToolBar.d.ts +10 -3
- package/lib/panel/ToolBar.js +21 -19
- package/lib/panel/WarningPanel.d.ts +10 -3
- package/lib/panel/WarningPanel.js +15 -13
- package/lib/panel/helpers.d.ts +11 -4
- package/lib/panel/helpers.js +23 -14
- package/lib/panel/index.d.ts +18 -10
- package/lib/panel/index.js +59 -20
- package/lib/panel/types.d.ts +15 -11
- package/lib/panel/types.js +5 -0
- package/lib/permissionValidations.d.ts +6 -4
- package/lib/permissionValidations.js +53 -41
- package/lib/popover/PopoverText.d.ts +11 -3
- package/lib/popover/PopoverText.js +28 -15
- package/lib/popover/PopoverTitle.d.ts +11 -3
- package/lib/popover/PopoverTitle.js +16 -12
- package/lib/popover/index.d.ts +13 -6
- package/lib/popover/index.js +69 -40
- package/lib/popover/types.d.ts +12 -8
- package/lib/popover/types.js +5 -0
- package/lib/progress/Bar.d.ts +6 -3
- package/lib/progress/Bar.js +70 -48
- package/lib/progress/index.d.ts +7 -5
- package/lib/progress/index.js +37 -27
- package/lib/progress/types.d.ts +7 -4
- package/lib/progress/types.js +5 -0
- package/lib/radio/index.d.ts +8 -3
- package/lib/radio/index.js +113 -113
- package/lib/radio/types.d.ts +6 -3
- package/lib/radio/types.js +5 -0
- package/lib/shortcuts/index.d.ts +7 -3
- package/lib/shortcuts/index.js +27 -23
- package/lib/shortcuts/types.d.ts +5 -2
- package/lib/shortcuts/types.js +5 -0
- package/lib/skeleton/SkeletonContainer.d.ts +7 -3
- package/lib/skeleton/SkeletonContainer.js +22 -19
- package/lib/skeleton/index.d.ts +8 -5
- package/lib/skeleton/index.js +53 -49
- package/lib/skeleton/types.d.ts +6 -3
- package/lib/skeleton/types.js +5 -0
- package/lib/spinner/SpinnerLoading.d.ts +7 -3
- package/lib/spinner/SpinnerLoading.js +219 -55
- package/lib/spinner/index.d.ts +7 -3
- package/lib/spinner/index.js +58 -51
- package/lib/spinner/types.d.ts +6 -3
- package/lib/spinner/types.js +5 -0
- package/lib/split/Split.d.ts +6 -3
- package/lib/split/Split.js +273 -175
- package/lib/split/SplitSide.d.ts +6 -3
- package/lib/split/SplitSide.js +41 -27
- package/lib/split/helpers.d.ts +6 -3
- package/lib/split/helpers.js +10 -6
- package/lib/split/index.d.ts +8 -4
- package/lib/split/index.js +17 -8
- package/lib/split/types.d.ts +6 -3
- package/lib/split/types.js +5 -0
- package/lib/table/Body.d.ts +8 -3
- package/lib/table/Body.js +68 -46
- package/lib/table/Header.d.ts +8 -3
- package/lib/table/Header.js +86 -49
- package/lib/table/HeaderColumn.d.ts +8 -3
- package/lib/table/HeaderColumn.js +54 -43
- package/lib/table/Row.d.ts +8 -3
- package/lib/table/Row.js +88 -53
- package/lib/table/RowColumn.d.ts +8 -3
- package/lib/table/RowColumn.js +77 -55
- package/lib/table/helpers.d.ts +9 -5
- package/lib/table/helpers.js +15 -10
- package/lib/table/index.d.ts +13 -9
- package/lib/table/index.js +154 -101
- package/lib/table/types.d.ts +13 -8
- package/lib/table/types.js +5 -0
- package/lib/tabs/DropdownTabs.d.ts +11 -3
- package/lib/tabs/DropdownTabs.js +85 -82
- package/lib/tabs/Menu.d.ts +11 -3
- package/lib/tabs/Menu.js +47 -39
- package/lib/tabs/MenuTabs.d.ts +11 -3
- package/lib/tabs/MenuTabs.js +93 -73
- package/lib/tabs/Panel.d.ts +11 -3
- package/lib/tabs/Panel.js +80 -59
- package/lib/tabs/context.d.ts +12 -3
- package/lib/tabs/context.js +124 -62
- package/lib/tabs/index.d.ts +12 -5
- package/lib/tabs/index.js +75 -83
- package/lib/tabs/tabHelpers.d.ts +10 -25
- package/lib/tabs/tabHelpers.js +62 -40
- package/lib/tabs/types.d.ts +19 -16
- package/lib/tabs/types.js +5 -0
- package/lib/tabs/useTabs.d.ts +11 -1
- package/lib/tabs/useTabs.js +11 -9
- package/lib/textContent/index.d.ts +9 -6
- package/lib/textContent/index.js +46 -43
- package/lib/toolbar/ButtonBar.d.ts +12 -3
- package/lib/toolbar/ButtonBar.js +65 -67
- package/lib/toolbar/LabelBar.d.ts +12 -3
- package/lib/toolbar/LabelBar.js +57 -51
- package/lib/toolbar/Separator.d.ts +3 -2
- package/lib/toolbar/Separator.js +12 -11
- package/lib/toolbar/ToolBarGroup.d.ts +12 -3
- package/lib/toolbar/ToolBarGroup.js +18 -16
- package/lib/toolbar/helpers.d.ts +12 -3
- package/lib/toolbar/helpers.js +9 -6
- package/lib/toolbar/index.d.ts +16 -8
- package/lib/toolbar/index.js +64 -39
- package/lib/toolbar/types.d.ts +14 -10
- package/lib/toolbar/types.js +5 -0
- package/lib/tooltip/TooltipContent.d.ts +7 -3
- package/lib/tooltip/TooltipContent.js +63 -38
- package/lib/tooltip/index.d.ts +7 -3
- package/lib/tooltip/index.js +46 -41
- package/lib/tooltip/types.d.ts +10 -8
- package/lib/tooltip/types.js +5 -0
- package/lib/tooltip/useTooltip.d.ts +9 -6
- package/lib/tooltip/useTooltip.js +123 -91
- package/lib/treetable/Body.d.ts +3 -2
- package/lib/treetable/Body.js +33 -36
- package/lib/treetable/Header.d.ts +3 -2
- package/lib/treetable/Header.js +23 -30
- package/lib/treetable/Row.d.ts +9 -3
- package/lib/treetable/Row.js +229 -213
- package/lib/treetable/helpers.d.ts +17 -10
- package/lib/treetable/helpers.js +30 -16
- package/lib/treetable/index.d.ts +10 -4
- package/lib/treetable/index.js +27 -29
- package/lib/treetable/types.d.js +5 -0
- package/lib/treeview/Header.d.ts +7 -3
- package/lib/treeview/Header.js +20 -16
- package/lib/treeview/Node.d.ts +7 -3
- package/lib/treeview/Node.js +236 -199
- package/lib/treeview/constants.d.ts +7 -2
- package/lib/treeview/constants.js +9 -6
- package/lib/treeview/index.d.ts +9 -6
- package/lib/treeview/index.js +308 -258
- package/lib/treeview/types.d.ts +14 -12
- package/lib/treeview/types.js +5 -0
- package/lib/types.d-b477e076.d.ts +47 -0
- package/lib/uitour/helpers.d.ts +2 -1
- package/lib/uitour/helpers.js +12 -10
- package/lib/uitour/index.d.ts +7 -3
- package/lib/uitour/index.js +236 -171
- package/lib/uitour/types.d.ts +10 -7
- package/lib/uitour/types.js +5 -0
- package/package.json +85 -96
- package/lib/_virtual/_commonjsHelpers.js +0 -9
- package/lib/_virtual/_commonjsHelpers.js.map +0 -1
- package/lib/_virtual/compiler-runtime.js +0 -6
- package/lib/_virtual/compiler-runtime.js.map +0 -1
- package/lib/_virtual/compiler-runtime2.js +0 -5
- package/lib/_virtual/compiler-runtime2.js.map +0 -1
- package/lib/_virtual/index.js +0 -8
- package/lib/_virtual/index.js.map +0 -1
- package/lib/_virtual/index2.js +0 -5
- package/lib/_virtual/index2.js.map +0 -1
- package/lib/_virtual/index3.js +0 -5
- package/lib/_virtual/index3.js.map +0 -1
- package/lib/_virtual/lodash.js +0 -9
- package/lib/_virtual/lodash.js.map +0 -1
- package/lib/_virtual/lodash2.js +0 -5
- package/lib/_virtual/lodash2.js.map +0 -1
- package/lib/_virtual/memoize.js +0 -8
- package/lib/_virtual/memoize.js.map +0 -1
- package/lib/_virtual/react-compiler-runtime.development.js +0 -5
- package/lib/_virtual/react-compiler-runtime.development.js.map +0 -1
- package/lib/_virtual/react-compiler-runtime.production.js +0 -5
- package/lib/_virtual/react-compiler-runtime.production.js.map +0 -1
- package/lib/_virtual/react-is.development.js +0 -5
- package/lib/_virtual/react-is.development.js.map +0 -1
- package/lib/_virtual/react-is.production.min.js +0 -5
- package/lib/_virtual/react-is.production.min.js.map +0 -1
- package/lib/alerts/AlertContainer.js.map +0 -1
- package/lib/alerts/AlertProvider.js.map +0 -1
- package/lib/alerts/BaseAlert.js.map +0 -1
- package/lib/alerts/Message.js.map +0 -1
- package/lib/alerts/helpers.js.map +0 -1
- package/lib/alerts/index.js.map +0 -1
- 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.js.map +0 -1
- package/lib/badge/index.js.map +0 -1
- package/lib/buttons/ActivateButton.js.map +0 -1
- package/lib/buttons/AddButton.js.map +0 -1
- package/lib/buttons/Button.js.map +0 -1
- package/lib/buttons/ButtonGroups.js.map +0 -1
- package/lib/buttons/CancelButton.js.map +0 -1
- package/lib/buttons/DangerButton.js.map +0 -1
- package/lib/buttons/DefaultButton.js.map +0 -1
- package/lib/buttons/DestroyButton.js.map +0 -1
- package/lib/buttons/EditButton.js.map +0 -1
- package/lib/buttons/InactivateButton.js.map +0 -1
- package/lib/buttons/InfoButton.js.map +0 -1
- package/lib/buttons/PrimaryButton.js.map +0 -1
- package/lib/buttons/RestoreButton.js.map +0 -1
- package/lib/buttons/SaveButton.js.map +0 -1
- package/lib/buttons/SuccessButton.js.map +0 -1
- package/lib/buttons/WarningButton.js.map +0 -1
- package/lib/buttons/button_container/index.js.map +0 -1
- package/lib/buttons/index.js.map +0 -1
- package/lib/buttons/split_button/index.js.map +0 -1
- package/lib/calendar/DangerCalendar.js.map +0 -1
- package/lib/calendar/InfoCalendar.js.map +0 -1
- package/lib/calendar/PrimaryCalendar.js.map +0 -1
- package/lib/calendar/SuccessCalendar.js.map +0 -1
- package/lib/calendar/WarningCalendar.js.map +0 -1
- package/lib/calendar/base/helpers.js.map +0 -1
- package/lib/calendar/base/index.js.map +0 -1
- package/lib/calendar/index.js.map +0 -1
- package/lib/checkbox/index.js.map +0 -1
- package/lib/dialog/Alert.js.map +0 -1
- package/lib/dialog/Custom.js.map +0 -1
- package/lib/dialog/Error.js.map +0 -1
- package/lib/dialog/Information.js.map +0 -1
- package/lib/dialog/Question.js.map +0 -1
- package/lib/dialog/Warning.js.map +0 -1
- package/lib/dialog/base/Content.js.map +0 -1
- package/lib/dialog/base/Footer.js.map +0 -1
- package/lib/dialog/base/Header.js.map +0 -1
- package/lib/dialog/base/index.js.map +0 -1
- package/lib/dialog/base/style.d.ts +0 -7
- package/lib/dialog/base/style.js.map +0 -1
- package/lib/dialog/form/index.js.map +0 -1
- package/lib/dialog/index.js.map +0 -1
- package/lib/dialog/wizard/index.js.map +0 -1
- package/lib/dialog/wizard/progressbar.js.map +0 -1
- package/lib/dialog/wizard/step.js.map +0 -1
- package/lib/dialog/wizard/useWizard.js.map +0 -1
- package/lib/drawer/Content.js.map +0 -1
- package/lib/drawer/Drawer.js.map +0 -1
- package/lib/drawer/Header.js.map +0 -1
- package/lib/drawer/helpers.js.map +0 -1
- package/lib/drawer/index.js.map +0 -1
- package/lib/dropdown/Popup.js.map +0 -1
- package/lib/dropdown/helper.js.map +0 -1
- package/lib/dropdown/withDropdown.js.map +0 -1
- package/lib/fieldset/index.js.map +0 -1
- package/lib/form/Field.js.map +0 -1
- package/lib/form/FieldArray.js.map +0 -1
- package/lib/form/FieldNumber.js.map +0 -1
- package/lib/form/FieldPeriod.js.map +0 -1
- package/lib/form/helpers.js.map +0 -1
- package/lib/form/index.js.map +0 -1
- package/lib/form/withFieldHOC.js.map +0 -1
- package/lib/form/withFormSecurity.js.map +0 -1
- package/lib/form2/helpers.js.map +0 -1
- package/lib/form2/index.js.map +0 -1
- package/lib/form2/useForm/index.js.map +0 -1
- package/lib/gridlayout/GridCol.js.map +0 -1
- package/lib/gridlayout/GridRow.js.map +0 -1
- package/lib/gridlayout/index.js.map +0 -1
- package/lib/hint/helpers.js.map +0 -1
- package/lib/hint/index.js.map +0 -1
- package/lib/icons/helper.js.map +0 -1
- package/lib/icons/index.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/inputs/base/InputTextBase.js.map +0 -1
- package/lib/inputs/base/helpers.js.map +0 -1
- package/lib/inputs/color/index.js.map +0 -1
- package/lib/inputs/date/Dialog.js.map +0 -1
- package/lib/inputs/date/Dropdown.js.map +0 -1
- package/lib/inputs/date/helpers.js.map +0 -1
- package/lib/inputs/date/index.js.map +0 -1
- package/lib/inputs/errorMessage/index.js.map +0 -1
- package/lib/inputs/file/DefaultFile.js.map +0 -1
- package/lib/inputs/file/DragDropFile.js.map +0 -1
- package/lib/inputs/file/File.js.map +0 -1
- package/lib/inputs/file/FileButtonSettings.js.map +0 -1
- package/lib/inputs/file/helpers.js.map +0 -1
- package/lib/inputs/file/index.js.map +0 -1
- package/lib/inputs/inputHOC.js.map +0 -1
- package/lib/inputs/mask/BaseMask.js.map +0 -1
- package/lib/inputs/mask/Cnpj.js.map +0 -1
- package/lib/inputs/mask/Cpf.js.map +0 -1
- package/lib/inputs/mask/Phone.js.map +0 -1
- package/lib/inputs/mask/ZipCode.js.map +0 -1
- package/lib/inputs/mask/helpers.js.map +0 -1
- package/lib/inputs/mask/index.js.map +0 -1
- package/lib/inputs/multiSelect/ActionButtons.js.map +0 -1
- package/lib/inputs/multiSelect/Dropdown.js.map +0 -1
- package/lib/inputs/multiSelect/helper.js.map +0 -1
- package/lib/inputs/multiSelect/index.js.map +0 -1
- package/lib/inputs/number/BaseNumber.js.map +0 -1
- package/lib/inputs/number/Currency.js.map +0 -1
- package/lib/inputs/number/Decimal.js.map +0 -1
- package/lib/inputs/number/format_number.js.map +0 -1
- package/lib/inputs/number/index.js.map +0 -1
- package/lib/inputs/period/Dialog.js.map +0 -1
- package/lib/inputs/period/Dropdown.js.map +0 -1
- package/lib/inputs/period/PeriodList.js.map +0 -1
- package/lib/inputs/period/helper.js.map +0 -1
- package/lib/inputs/period/index.js.map +0 -1
- package/lib/inputs/search/index.js.map +0 -1
- package/lib/inputs/select/ActionButtons.js.map +0 -1
- package/lib/inputs/select/Dropdown.js.map +0 -1
- package/lib/inputs/select/helper.js.map +0 -1
- package/lib/inputs/select/index.js.map +0 -1
- package/lib/inputs/select/multiple/Selecteds.js.map +0 -1
- package/lib/inputs/select/multiple/index.js.map +0 -1
- package/lib/inputs/select/simple/index.js.map +0 -1
- package/lib/inputs/text/index.js.map +0 -1
- package/lib/inputs/textarea/index.js.map +0 -1
- package/lib/inputs2/checkboxfield/index.js.map +0 -1
- package/lib/inputs2/colorfield/index.js.map +0 -1
- package/lib/inputs2/date/base/constants.js.map +0 -1
- package/lib/inputs2/date/base/index.js.map +0 -1
- package/lib/inputs2/date/datefield/calendarbox.js.map +0 -1
- package/lib/inputs2/date/datefield/context.js.map +0 -1
- package/lib/inputs2/date/datefield/index.js.map +0 -1
- package/lib/inputs2/date/datefield/triggers.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/calendarbox.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/context.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/index.js.map +0 -1
- package/lib/inputs2/date/dateperiodfield/triggers.js.map +0 -1
- package/lib/inputs2/date/helpers.js.map +0 -1
- package/lib/inputs2/date/types.js.map +0 -1
- package/lib/inputs2/filefield/index.js.map +0 -1
- package/lib/inputs2/index.js.map +0 -1
- package/lib/inputs2/mask/BaseMask.js.map +0 -1
- package/lib/inputs2/mask/Cnpj.js.map +0 -1
- package/lib/inputs2/mask/Cpf.js.map +0 -1
- package/lib/inputs2/mask/Phone.js.map +0 -1
- package/lib/inputs2/mask/ZipCode.js.map +0 -1
- package/lib/inputs2/mask/helpers.js.map +0 -1
- package/lib/inputs2/numberfield/currency.js.map +0 -1
- package/lib/inputs2/numberfield/decimal.js.map +0 -1
- package/lib/inputs2/numberfield/helpers.js.map +0 -1
- package/lib/inputs2/numberfield/index.js.map +0 -1
- package/lib/inputs2/radiofield/index.js.map +0 -1
- package/lib/inputs2/selectfield/context.js.map +0 -1
- package/lib/inputs2/selectfield/helpers.js.map +0 -1
- package/lib/inputs2/selectfield/index.js.map +0 -1
- package/lib/inputs2/selectfield/item.js.map +0 -1
- package/lib/inputs2/selectfield/listbox.js.map +0 -1
- package/lib/inputs2/selectfield/options.js.map +0 -1
- package/lib/inputs2/selectfield/search.js.map +0 -1
- package/lib/inputs2/selectfield/selections.js.map +0 -1
- package/lib/inputs2/selectfield/triggers.js.map +0 -1
- package/lib/inputs2/selectfield/types.js.map +0 -1
- package/lib/inputs2/slot/index.js.map +0 -1
- package/lib/inputs2/textareafield/index.js.map +0 -1
- package/lib/inputs2/textfield/index.js.map +0 -1
- package/lib/internals/colorStyles.js.map +0 -1
- package/lib/internals/constants.js.map +0 -1
- package/lib/labelMessages/index.js.map +0 -1
- package/lib/labels/DangerLabel.js.map +0 -1
- package/lib/labels/DefaultLabel.js.map +0 -1
- package/lib/labels/InfoLabel.js.map +0 -1
- package/lib/labels/PrimaryLabel.js.map +0 -1
- package/lib/labels/SuccessLabel.js.map +0 -1
- package/lib/labels/WarningLabel.js.map +0 -1
- package/lib/labels/index.js.map +0 -1
- package/lib/labels/label_container/index.js.map +0 -1
- package/lib/list/Header.js.map +0 -1
- package/lib/list/Item.js.map +0 -1
- package/lib/list/Separator.js.map +0 -1
- package/lib/list/helpers.js.map +0 -1
- package/lib/list/index.js.map +0 -1
- package/lib/menus/float/MenuItem.js.map +0 -1
- package/lib/menus/float/SubMenuContainer.d.ts +0 -29
- package/lib/menus/float/SubMenuContainer.js.map +0 -1
- package/lib/menus/float/helpers.js.map +0 -1
- package/lib/menus/float/index.js.map +0 -1
- package/lib/menus/index.js.map +0 -1
- package/lib/menus/sidenav/ExpandMenu.js.map +0 -1
- package/lib/menus/sidenav/MenuLink.js.map +0 -1
- package/lib/menus/sidenav/NavMenuGroup.js.map +0 -1
- package/lib/menus/sidenav/NavMenuItem.js.map +0 -1
- package/lib/menus/sidenav/NavSubMenuItem.js.map +0 -1
- package/lib/menus/sidenav/helpers.js.map +0 -1
- package/lib/menus/sidenav/index.js.map +0 -1
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js.map +0 -1
- package/lib/menus/sidenav/popup_menu_search/index.js.map +0 -1
- package/lib/noPermission/index.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +0 -35
- 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 -32
- 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 -49
- 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 -31
- package/lib/node_modules/imask/esm/controls/input-history.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/input.js +0 -223
- package/lib/node_modules/imask/esm/controls/input.js.map +0 -1
- package/lib/node_modules/imask/esm/controls/mask-element.js +0 -44
- package/lib/node_modules/imask/esm/controls/mask-element.js.map +0 -1
- package/lib/node_modules/imask/esm/core/action-details.js +0 -52
- package/lib/node_modules/imask/esm/core/action-details.js.map +0 -1
- package/lib/node_modules/imask/esm/core/change-details.js +0 -37
- 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 -43
- package/lib/node_modules/imask/esm/core/continuous-tail-details.js.map +0 -1
- package/lib/node_modules/imask/esm/core/holder.js +0 -7
- package/lib/node_modules/imask/esm/core/holder.js.map +0 -1
- package/lib/node_modules/imask/esm/core/utils.js +0 -68
- package/lib/node_modules/imask/esm/core/utils.js.map +0 -1
- package/lib/node_modules/imask/esm/index.js +0 -51
- package/lib/node_modules/imask/esm/index.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/base.js +0 -253
- package/lib/node_modules/imask/esm/masked/base.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/date.js +0 -118
- package/lib/node_modules/imask/esm/masked/date.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/dynamic.js +0 -223
- package/lib/node_modules/imask/esm/masked/dynamic.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/enum.js +0 -70
- package/lib/node_modules/imask/esm/masked/enum.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/factory.js +0 -47
- package/lib/node_modules/imask/esm/masked/factory.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/function.js +0 -24
- package/lib/node_modules/imask/esm/masked/function.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/number.js +0 -213
- 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 -104
- 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 -101
- 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 -103
- 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 -134
- package/lib/node_modules/imask/esm/masked/pattern/input-definition.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pattern.js +0 -323
- package/lib/node_modules/imask/esm/masked/pattern.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/pipe.js +0 -24
- package/lib/node_modules/imask/esm/masked/pipe.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/range.js +0 -79
- package/lib/node_modules/imask/esm/masked/range.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/regexp.js +0 -22
- package/lib/node_modules/imask/esm/masked/regexp.js.map +0 -1
- package/lib/node_modules/imask/esm/masked/repeat.js +0 -105
- 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 -13
- 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 -12
- package/lib/node_modules/lodash/_Symbol.js.map +0 -1
- package/lib/node_modules/lodash/_assocIndexOf.js +0 -18
- 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 -23
- package/lib/node_modules/lodash/_baseIsNative.js.map +0 -1
- package/lib/node_modules/lodash/_coreJsData.js +0 -12
- package/lib/node_modules/lodash/_coreJsData.js.map +0 -1
- package/lib/node_modules/lodash/_freeGlobal.js +0 -12
- 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 -22
- 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 -19
- 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 -12
- 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 -24
- 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 -19
- 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 -3678
- package/lib/node_modules/lodash/lodash.js.map +0 -1
- package/lib/node_modules/lodash/memoize.js +0 -24
- package/lib/node_modules/lodash/memoize.js.map +0 -1
- package/lib/node_modules/moment/dist/moment.js +0 -2590
- package/lib/node_modules/moment/dist/moment.js.map +0 -1
- package/lib/node_modules/object-assign/index.js +0 -55
- package/lib/node_modules/object-assign/index.js.map +0 -1
- package/lib/node_modules/prop-types/checkPropTypes.js +0 -55
- package/lib/node_modules/prop-types/checkPropTypes.js.map +0 -1
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js +0 -53
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +0 -330
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
- package/lib/node_modules/prop-types/index.js +0 -18
- package/lib/node_modules/prop-types/index.js.map +0 -1
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -11
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
- package/lib/node_modules/prop-types/lib/has.js +0 -8
- 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 -96
- 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 -79
- 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 -11
- 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 -31
- 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 -24
- package/lib/node_modules/react/cjs/react-compiler-runtime.production.js.map +0 -1
- package/lib/node_modules/react/compiler-runtime.js +0 -11
- package/lib/node_modules/react/compiler-runtime.js.map +0 -1
- package/lib/node_modules/react-imask/esm/hook.js +0 -76
- package/lib/node_modules/react-imask/esm/hook.js.map +0 -1
- package/lib/node_modules/react-imask/esm/input.js +0 -24
- package/lib/node_modules/react-imask/esm/input.js.map +0 -1
- package/lib/node_modules/react-imask/esm/mixin.js +0 -132
- 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 -14
- 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 -35
- package/lib/node_modules/uuid/dist/v1.js.map +0 -1
- package/lib/node_modules/uuid/dist/v4.js +0 -17
- package/lib/node_modules/uuid/dist/v4.js.map +0 -1
- package/lib/panel/Content.js.map +0 -1
- package/lib/panel/DangerPanel.js.map +0 -1
- package/lib/panel/Default.js.map +0 -1
- package/lib/panel/Header.js.map +0 -1
- package/lib/panel/InfoPanel.js.map +0 -1
- package/lib/panel/PrimaryPanel.js.map +0 -1
- package/lib/panel/SuccessPanel.js.map +0 -1
- package/lib/panel/ToolBar.js.map +0 -1
- package/lib/panel/WarningPanel.js.map +0 -1
- package/lib/panel/helpers.js.map +0 -1
- package/lib/panel/index.js.map +0 -1
- package/lib/permissionValidations.js.map +0 -1
- package/lib/popover/PopoverText.js.map +0 -1
- package/lib/popover/PopoverTitle.js.map +0 -1
- package/lib/popover/index.js.map +0 -1
- package/lib/progress/Bar.js.map +0 -1
- package/lib/progress/index.js.map +0 -1
- package/lib/radio/index.js.map +0 -1
- package/lib/shortcuts/index.js.map +0 -1
- package/lib/skeleton/SkeletonContainer.js.map +0 -1
- package/lib/skeleton/index.js.map +0 -1
- package/lib/spinner/SpinnerLoading.js.map +0 -1
- package/lib/spinner/index.js.map +0 -1
- package/lib/split/Split.js.map +0 -1
- package/lib/split/SplitSide.js.map +0 -1
- package/lib/split/helpers.js.map +0 -1
- package/lib/split/index.js.map +0 -1
- package/lib/table/Body.js.map +0 -1
- package/lib/table/Header.js.map +0 -1
- package/lib/table/HeaderColumn.js.map +0 -1
- package/lib/table/Row.js.map +0 -1
- package/lib/table/RowColumn.js.map +0 -1
- package/lib/table/helpers.js.map +0 -1
- package/lib/table/index.js.map +0 -1
- package/lib/tabs/DropdownTabs.js.map +0 -1
- package/lib/tabs/Menu.js.map +0 -1
- package/lib/tabs/MenuTabs.js.map +0 -1
- package/lib/tabs/Panel.js.map +0 -1
- package/lib/tabs/context.js.map +0 -1
- package/lib/tabs/index.js.map +0 -1
- package/lib/tabs/tabHelpers.js.map +0 -1
- package/lib/tabs/useTabs.js.map +0 -1
- package/lib/textContent/index.js.map +0 -1
- package/lib/toolbar/ButtonBar.js.map +0 -1
- package/lib/toolbar/LabelBar.js.map +0 -1
- package/lib/toolbar/Separator.js.map +0 -1
- package/lib/toolbar/ToolBarGroup.js.map +0 -1
- package/lib/toolbar/helpers.js.map +0 -1
- package/lib/toolbar/index.js.map +0 -1
- package/lib/tooltip/TooltipContent.js.map +0 -1
- package/lib/tooltip/index.js.map +0 -1
- package/lib/tooltip/useTooltip.js.map +0 -1
- package/lib/treetable/Body.js.map +0 -1
- package/lib/treetable/Header.js.map +0 -1
- package/lib/treetable/Row.js.map +0 -1
- package/lib/treetable/helpers.js.map +0 -1
- package/lib/treetable/index.js.map +0 -1
- package/lib/treeview/Header.js.map +0 -1
- package/lib/treeview/Node.js.map +0 -1
- package/lib/treeview/constants.js.map +0 -1
- package/lib/treeview/index.js.map +0 -1
- package/lib/uitour/helpers.js.map +0 -1
- package/lib/uitour/index.js.map +0 -1
|
@@ -1,523 +1,593 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Input = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _lodash = _interopRequireDefault(require("lodash"));
|
|
9
|
+
var _reactImask = require("react-imask");
|
|
10
|
+
var _reactDom = require("react-dom");
|
|
11
|
+
var _moment = _interopRequireDefault(require("moment"));
|
|
12
|
+
var _hint = _interopRequireDefault(require("../../../hint"));
|
|
13
|
+
var _icons = _interopRequireDefault(require("../../../icons"));
|
|
14
|
+
var _gridlayout = _interopRequireDefault(require("../../../gridlayout"));
|
|
15
|
+
var _tooltip = require("../../../tooltip");
|
|
16
|
+
var _helpers = require("../../../form2/helpers");
|
|
17
|
+
var _permissionValidations = require("../../../permissionValidations");
|
|
18
|
+
var _types = require("../types");
|
|
19
|
+
var BaseDate = _interopRequireWildcard(require("../base"));
|
|
20
|
+
var _helpers2 = require("../helpers");
|
|
21
|
+
var _triggers = require("./triggers");
|
|
22
|
+
var _calendarbox = require("./calendarbox");
|
|
23
|
+
var _context = require("./context");
|
|
24
|
+
const _excluded = ["label", "errors", "initialName", "finalName", "onDeniedActions", "permissionAttr", "customClass", "customClassLabel", "customClassWrapper", "customClassInputContainer", "labelUppercase", "undigitable", "skeletonize", "hintPosition", "gridLayout", "themePopover", "popoverAlign", "showCalendarButton", "textAlign", "openCalendarOnFocus", "shouldCloseOnSelect", "showPredefinedPeriodsButton", "showClearDateButton", "placeholder", "returnValueType", "tooltip", "tooltipPosition", "tooltipWidth"];
|
|
25
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
26
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
27
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
28
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
29
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
30
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
31
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
32
|
+
const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, __) => {
|
|
33
|
+
const {
|
|
34
|
+
label,
|
|
35
|
+
errors,
|
|
36
|
+
initialName = 'inicial',
|
|
37
|
+
finalName = 'final',
|
|
38
|
+
onDeniedActions = undefined,
|
|
39
|
+
permissionAttr = undefined,
|
|
40
|
+
customClass = '',
|
|
41
|
+
customClassLabel = '',
|
|
42
|
+
customClassWrapper = '',
|
|
43
|
+
customClassInputContainer = '',
|
|
44
|
+
labelUppercase = false,
|
|
45
|
+
undigitable = false,
|
|
46
|
+
skeletonize = false,
|
|
47
|
+
hintPosition = 'below',
|
|
48
|
+
gridLayout = undefined,
|
|
49
|
+
themePopover = 'light',
|
|
50
|
+
popoverAlign = 'left',
|
|
51
|
+
showCalendarButton = true,
|
|
52
|
+
textAlign = 'left',
|
|
53
|
+
openCalendarOnFocus = true,
|
|
54
|
+
shouldCloseOnSelect = true,
|
|
55
|
+
showPredefinedPeriodsButton = true,
|
|
56
|
+
showClearDateButton = true,
|
|
57
|
+
placeholder = _helpers2.TOKEN_PTBR_FORMAT,
|
|
58
|
+
returnValueType = 'default',
|
|
59
|
+
tooltip,
|
|
60
|
+
tooltipPosition,
|
|
61
|
+
tooltipWidth
|
|
62
|
+
} = props,
|
|
63
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
64
|
+
const onDenied = _react.default.useMemo(() => {
|
|
65
|
+
return onDeniedActions || (0, _permissionValidations.actionsOnPermissionDenied)(_helpers2.options, permissionAttr);
|
|
66
|
+
}, [onDeniedActions, permissionAttr]);
|
|
67
|
+
const {
|
|
68
|
+
hideContent,
|
|
69
|
+
unvisible
|
|
70
|
+
} = onDenied;
|
|
71
|
+
const [selectedDate, setSelectedDate] = _react.default.useState({
|
|
72
72
|
inicial: null,
|
|
73
73
|
final: null
|
|
74
|
-
}
|
|
75
|
-
const [
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
const
|
|
85
|
-
let ce;
|
|
86
|
-
e[9] !== m || e[10] !== t.name ? (ce = String(t.name).concat(".").concat(m), e[9] = m, e[10] = t.name, e[11] = ce) : ce = e[11];
|
|
87
|
-
const O = ce;
|
|
88
|
-
let de;
|
|
89
|
-
e[12] === Symbol.for("react.memo_cache_sentinel") ? (de = {
|
|
90
|
-
mask: sa,
|
|
91
|
-
lazy: !1,
|
|
92
|
-
placeholderChar: "_"
|
|
93
|
-
}, e[12] = de) : de = e[12];
|
|
94
|
-
let fe;
|
|
95
|
-
e[13] !== l.inicial ? (fe = l.inicial?.format(V), e[13] = l.inicial, e[14] = fe) : fe = e[14];
|
|
74
|
+
});
|
|
75
|
+
const [calendarBoxOpen, setCalendarBoxOpen] = _react.default.useState(false);
|
|
76
|
+
const [activeDescendant, setActiveDescendant] = _react.default.useState((0, _moment.default)().format(_helpers2.TOKEN_ISO_FORMAT));
|
|
77
|
+
const [calendarDisplayDate, setCalendarDisplayDate] = _react.default.useState((0, _moment.default)());
|
|
78
|
+
const calendarRef = _react.default.useRef(null);
|
|
79
|
+
const inputRootRef = _react.default.useRef(null);
|
|
80
|
+
const finalInputRef = _react.default.useRef(null);
|
|
81
|
+
const initialInputRef = _react.default.useRef(null);
|
|
82
|
+
const dateContainerRef = _react.default.useRef(null);
|
|
83
|
+
const initialInputName = _react.default.useMemo(() => String(props.name).concat('.').concat(initialName), [props.name, initialName]);
|
|
84
|
+
const finalInputName = _react.default.useMemo(() => String(props.name).concat('.').concat(finalName), [props.name, finalName]);
|
|
96
85
|
const {
|
|
97
|
-
value:
|
|
98
|
-
setValue:
|
|
99
|
-
unmaskedValue:
|
|
100
|
-
} =
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
86
|
+
value: initialMaskedValue,
|
|
87
|
+
setValue: setInitialMaskValue,
|
|
88
|
+
unmaskedValue: initialUnmaskedValue
|
|
89
|
+
} = (0, _reactImask.useIMask)({
|
|
90
|
+
mask: _helpers2.TOKEN_MASK,
|
|
91
|
+
lazy: false,
|
|
92
|
+
placeholderChar: '_'
|
|
93
|
+
}, {
|
|
94
|
+
ref: initialInputRef,
|
|
95
|
+
defaultValue: selectedDate.inicial?.format(_helpers2.TOKEN_PTBR_FORMAT),
|
|
96
|
+
onComplete: value => {
|
|
97
|
+
const date = (0, _moment.default)(value, _helpers2.TOKEN_PTBR_FORMAT);
|
|
98
|
+
if (date.isValid()) {
|
|
99
|
+
handleChangeUpdateDateState({
|
|
100
|
+
date,
|
|
101
|
+
inputType: 'initial',
|
|
102
|
+
typing: true
|
|
103
|
+
});
|
|
104
|
+
}
|
|
110
105
|
}
|
|
111
106
|
});
|
|
112
|
-
let me;
|
|
113
|
-
e[15] === Symbol.for("react.memo_cache_sentinel") ? (me = {
|
|
114
|
-
mask: sa,
|
|
115
|
-
lazy: !1,
|
|
116
|
-
placeholderChar: "_"
|
|
117
|
-
}, e[15] = me) : me = e[15];
|
|
118
|
-
let ue;
|
|
119
|
-
e[16] !== l.final ? (ue = l.final?.format(V), e[16] = l.final, e[17] = ue) : ue = e[17];
|
|
120
107
|
const {
|
|
121
|
-
value:
|
|
122
|
-
setValue:
|
|
123
|
-
unmaskedValue:
|
|
124
|
-
} =
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
108
|
+
value: finalMaskedValue,
|
|
109
|
+
setValue: setFinalMaskValue,
|
|
110
|
+
unmaskedValue: finalUnmaskedValue
|
|
111
|
+
} = (0, _reactImask.useIMask)({
|
|
112
|
+
mask: _helpers2.TOKEN_MASK,
|
|
113
|
+
lazy: false,
|
|
114
|
+
placeholderChar: '_'
|
|
115
|
+
}, {
|
|
116
|
+
ref: finalInputRef,
|
|
117
|
+
defaultValue: selectedDate.final?.format(_helpers2.TOKEN_PTBR_FORMAT),
|
|
118
|
+
onComplete: value => {
|
|
119
|
+
const date = (0, _moment.default)(value, _helpers2.TOKEN_PTBR_FORMAT);
|
|
120
|
+
if (date.isValid()) {
|
|
121
|
+
handleChangeUpdateDateState({
|
|
122
|
+
date,
|
|
123
|
+
inputType: 'final',
|
|
124
|
+
typing: true
|
|
125
|
+
});
|
|
126
|
+
}
|
|
134
127
|
}
|
|
135
128
|
});
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
const
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
const
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
e[24] === Symbol.for("react.memo_cache_sentinel") ? (Oe = () => C(za), e[24] = Oe) : Oe = e[24];
|
|
153
|
-
const T = Oe;
|
|
154
|
-
let Se;
|
|
155
|
-
e[25] === Symbol.for("react.memo_cache_sentinel") ? (Se = () => C(Ea), e[25] = Se) : Se = e[25];
|
|
156
|
-
const L = Se;
|
|
157
|
-
let ve;
|
|
158
|
-
e[26] !== h ? (ve = (a) => {
|
|
159
|
-
C((i) => {
|
|
160
|
-
const n = i.clone().add(a, "day");
|
|
161
|
-
return h(n.format(d)), n;
|
|
129
|
+
const hasLabel = !_lodash.default.isEmpty(props?.label);
|
|
130
|
+
const isReadOnly = Boolean(props.readOnly || onDenied.readOnly);
|
|
131
|
+
const isDisabled = Boolean(props.disabled || onDenied.disabled);
|
|
132
|
+
const hasHintMessages = Boolean(props.hint?.length);
|
|
133
|
+
const hasValidationErrors = Boolean(errors?.length);
|
|
134
|
+
const handleChangeSelectedDate = _react.default.useCallback(object => setSelectedDate(object), []);
|
|
135
|
+
const handleChangeCalendarBoxState = _react.default.useCallback(value => setCalendarBoxOpen(value), []);
|
|
136
|
+
const handleChangeActiveDescendant = _react.default.useCallback(value => setActiveDescendant(value), []);
|
|
137
|
+
const handleChangeCalendarDisplayDate = _react.default.useCallback(value => setCalendarDisplayDate(value), []);
|
|
138
|
+
const handleChangePreviousMonth = _react.default.useCallback(() => setCalendarDisplayDate(prevDisplayDate => prevDisplayDate.clone().subtract(1, 'month')), []);
|
|
139
|
+
const handleChangeNextMonth = _react.default.useCallback(() => setCalendarDisplayDate(prevDisplayDate => prevDisplayDate.clone().add(1, 'month')), []);
|
|
140
|
+
const handleNavigateWithDays = _react.default.useCallback(offset => {
|
|
141
|
+
setCalendarDisplayDate(prevDisplayDate => {
|
|
142
|
+
const daySelected = prevDisplayDate.clone().add(offset, 'day');
|
|
143
|
+
handleChangeActiveDescendant(daySelected.format(_helpers2.TOKEN_ISO_FORMAT));
|
|
144
|
+
return daySelected;
|
|
162
145
|
});
|
|
163
|
-
},
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
146
|
+
}, []);
|
|
147
|
+
const handleNavigateWithWeeks = _react.default.useCallback(when => {
|
|
148
|
+
setCalendarDisplayDate(prevDisplayDate => {
|
|
149
|
+
let daySelected = prevDisplayDate;
|
|
150
|
+
if (when === 'end') daySelected = prevDisplayDate.clone().endOf('week');
|
|
151
|
+
if (when === 'start') daySelected = prevDisplayDate.clone().startOf('week');
|
|
152
|
+
handleChangeActiveDescendant(daySelected.format(_helpers2.TOKEN_ISO_FORMAT));
|
|
153
|
+
return daySelected;
|
|
170
154
|
});
|
|
171
|
-
},
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
const
|
|
176
|
-
return
|
|
177
|
-
},
|
|
178
|
-
const
|
|
179
|
-
|
|
180
|
-
e[34] !== m || e[35] !== u || e[36] !== f || e[37] !== t || e[38] !== D || e[39] !== p ? (we = () => {
|
|
181
|
-
t.onChange?.({
|
|
155
|
+
}, []);
|
|
156
|
+
const verifyPeriodSelectedIsValid = _react.default.useCallback(() => {
|
|
157
|
+
const objectValue = props?.value;
|
|
158
|
+
const isValidInitialValue = !_lodash.default.isEmpty(objectValue[initialName]);
|
|
159
|
+
const isValidFinalValue = !_lodash.default.isEmpty(objectValue[finalName]);
|
|
160
|
+
return isValidInitialValue && isValidFinalValue;
|
|
161
|
+
}, [props?.value, initialName, finalName]);
|
|
162
|
+
const handleOnClickClearSelectedPeriod = _react.default.useCallback(() => {
|
|
163
|
+
props.onChange?.({
|
|
182
164
|
target: {
|
|
183
|
-
name:
|
|
165
|
+
name: props.name,
|
|
184
166
|
value: {
|
|
185
|
-
[
|
|
186
|
-
[
|
|
167
|
+
[initialName]: '',
|
|
168
|
+
[finalName]: ''
|
|
187
169
|
}
|
|
188
170
|
}
|
|
189
|
-
})
|
|
190
|
-
|
|
191
|
-
|
|
171
|
+
});
|
|
172
|
+
setSelectedDate(() => ({
|
|
173
|
+
inicial: null,
|
|
174
|
+
final: null
|
|
175
|
+
}));
|
|
176
|
+
setInitialMaskValue('');
|
|
177
|
+
setFinalMaskValue('');
|
|
178
|
+
handleChangeCalendarBoxState(false);
|
|
179
|
+
}, [props.onChange]);
|
|
180
|
+
const handleChangeUpdateDateState = _react.default.useCallback(params => {
|
|
192
181
|
const {
|
|
193
|
-
date
|
|
194
|
-
inputType
|
|
195
|
-
typing
|
|
196
|
-
} =
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
182
|
+
date,
|
|
183
|
+
inputType,
|
|
184
|
+
typing
|
|
185
|
+
} = params;
|
|
186
|
+
const rawDate = date.clone();
|
|
187
|
+
const verifyDateRangeOrder = (initialDate, finalDate) => {
|
|
188
|
+
const inicial = initialDate?.isAfter(finalDate) ? finalDate : initialDate;
|
|
189
|
+
const final = initialDate?.isAfter(finalDate) ? initialDate : finalDate;
|
|
190
|
+
return {
|
|
191
|
+
inicial,
|
|
192
|
+
final
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
switch (inputType) {
|
|
196
|
+
case 'initial':
|
|
197
|
+
{
|
|
198
|
+
setSelectedDate(prevSelectedDate => {
|
|
199
|
+
const {
|
|
200
|
+
inicial,
|
|
201
|
+
final
|
|
202
|
+
} = verifyDateRangeOrder(rawDate, prevSelectedDate.final);
|
|
203
|
+
const updatedState = {
|
|
204
|
+
inicial,
|
|
205
|
+
final
|
|
206
|
+
};
|
|
207
|
+
return updatedState;
|
|
208
|
+
});
|
|
200
209
|
const {
|
|
201
|
-
inicial
|
|
202
|
-
final
|
|
203
|
-
} =
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
final: Q
|
|
212
|
-
} = Y(x, l.final);
|
|
213
|
-
t.onChange?.({
|
|
214
|
-
target: {
|
|
215
|
-
name: t.name,
|
|
216
|
-
value: {
|
|
217
|
-
[f]: R === "default" ? J?.format(d) : J?.toISOString(),
|
|
218
|
-
[m]: R === "default" ? Q?.format(d) : Q?.toISOString()
|
|
210
|
+
inicial,
|
|
211
|
+
final
|
|
212
|
+
} = verifyDateRangeOrder(rawDate, selectedDate.final);
|
|
213
|
+
props.onChange?.({
|
|
214
|
+
target: {
|
|
215
|
+
name: props.name,
|
|
216
|
+
value: {
|
|
217
|
+
[initialName]: returnValueType === 'default' ? inicial?.format(_helpers2.TOKEN_ISO_FORMAT) : inicial?.toISOString(),
|
|
218
|
+
[finalName]: returnValueType === 'default' ? final?.format(_helpers2.TOKEN_ISO_FORMAT) : final?.toISOString()
|
|
219
|
+
}
|
|
219
220
|
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
case
|
|
227
|
-
|
|
221
|
+
});
|
|
222
|
+
requestAnimationFrame(() => {
|
|
223
|
+
if (!typing) finalInputRef.current?.focus?.();
|
|
224
|
+
});
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
case 'final':
|
|
228
|
+
{
|
|
229
|
+
setSelectedDate(prevSelectedDate => {
|
|
230
|
+
const {
|
|
231
|
+
inicial,
|
|
232
|
+
final
|
|
233
|
+
} = verifyDateRangeOrder(prevSelectedDate.inicial, rawDate);
|
|
234
|
+
const updatedState = {
|
|
235
|
+
inicial,
|
|
236
|
+
final
|
|
237
|
+
};
|
|
238
|
+
return updatedState;
|
|
239
|
+
});
|
|
228
240
|
const {
|
|
229
|
-
inicial
|
|
230
|
-
final
|
|
231
|
-
} =
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
final: Q
|
|
240
|
-
} = Y(l.inicial, x);
|
|
241
|
-
t.onChange?.({
|
|
242
|
-
target: {
|
|
243
|
-
name: t.name,
|
|
244
|
-
value: {
|
|
245
|
-
[f]: R === "default" ? J?.format(d) : J?.toISOString(),
|
|
246
|
-
[m]: R === "default" ? Q?.format(d) : Q?.toISOString()
|
|
241
|
+
inicial,
|
|
242
|
+
final
|
|
243
|
+
} = verifyDateRangeOrder(selectedDate.inicial, rawDate);
|
|
244
|
+
props.onChange?.({
|
|
245
|
+
target: {
|
|
246
|
+
name: props.name,
|
|
247
|
+
value: {
|
|
248
|
+
[initialName]: returnValueType === 'default' ? inicial?.format(_helpers2.TOKEN_ISO_FORMAT) : inicial?.toISOString(),
|
|
249
|
+
[finalName]: returnValueType === 'default' ? final?.format(_helpers2.TOKEN_ISO_FORMAT) : final?.toISOString()
|
|
250
|
+
}
|
|
247
251
|
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
+
});
|
|
253
|
+
if (shouldCloseOnSelect) handleChangeCalendarBoxState(false);
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
default:
|
|
257
|
+
break;
|
|
252
258
|
}
|
|
253
|
-
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
[
|
|
260
|
-
[m]: R === "default" ? y.format(d) : y.toISOString()
|
|
259
|
+
setCalendarDisplayDate(rawDate.clone());
|
|
260
|
+
}, [props.name, props.onChange, initialName, finalName, selectedDate, shouldCloseOnSelect]);
|
|
261
|
+
const handleChangeUpdateDateStateWithPredefinedPeriod = _react.default.useCallback(period => {
|
|
262
|
+
const localOnChange = (initialDate, finalDate) => {
|
|
263
|
+
const valueToUpdate = {
|
|
264
|
+
[initialName]: returnValueType === 'default' ? initialDate.format(_helpers2.TOKEN_ISO_FORMAT) : initialDate.toISOString(),
|
|
265
|
+
[finalName]: returnValueType === 'default' ? finalDate.format(_helpers2.TOKEN_ISO_FORMAT) : finalDate.toISOString()
|
|
261
266
|
};
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
267
|
+
setSelectedDate(() => {
|
|
268
|
+
const updatedState = {
|
|
269
|
+
inicial: initialDate.clone(),
|
|
270
|
+
final: finalDate.clone()
|
|
271
|
+
};
|
|
272
|
+
return updatedState;
|
|
273
|
+
});
|
|
274
|
+
props.onChange?.({
|
|
266
275
|
target: {
|
|
267
|
-
name:
|
|
268
|
-
value:
|
|
276
|
+
name: props.name,
|
|
277
|
+
value: valueToUpdate
|
|
269
278
|
}
|
|
270
279
|
});
|
|
271
280
|
};
|
|
272
|
-
|
|
273
|
-
case
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
case "week": {
|
|
279
|
-
const n = o().startOf("week"), y = o().endOf("week");
|
|
280
|
-
i(n, y);
|
|
281
|
-
break e;
|
|
282
|
-
}
|
|
283
|
-
case "lastweek": {
|
|
284
|
-
const n = o().add(-1, "week").startOf("week"), y = o().add(-1, "week").endOf("week");
|
|
285
|
-
i(n, y);
|
|
286
|
-
break e;
|
|
287
|
-
}
|
|
288
|
-
case "last15": {
|
|
289
|
-
const n = o().add(-14, "d"), y = o();
|
|
290
|
-
i(n, y);
|
|
291
|
-
break e;
|
|
292
|
-
}
|
|
293
|
-
case "month": {
|
|
294
|
-
const n = o().startOf("month"), y = o().endOf("month");
|
|
295
|
-
i(n, y);
|
|
296
|
-
break e;
|
|
297
|
-
}
|
|
298
|
-
case "lastmonth": {
|
|
299
|
-
const n = o().add(-1, "month").startOf("month"), y = o().add(-1, "month").endOf("month");
|
|
300
|
-
i(n, y);
|
|
301
|
-
break e;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
H?.current?.focus?.(), te && u(!1);
|
|
305
|
-
}, e[41] = m, e[42] = u, e[43] = f, e[44] = t, e[45] = R, e[46] = te, e[47] = pe) : pe = e[47];
|
|
306
|
-
const vt = pe;
|
|
307
|
-
let De;
|
|
308
|
-
e[48] !== s || e[49] !== O || e[50] !== yt || e[51] !== h || e[52] !== u || e[53] !== k || e[54] !== ht || e[55] !== t || e[56] !== l.final || e[57] !== l.inicial || e[58] !== D || e[59] !== p ? (De = (a, i) => {
|
|
309
|
-
if (t?.onBlur?.(a), i === "initial" && (a.relatedTarget?.id !== O && u(!1), s && (h((l.inicial ?? o()).format(d)), C(l.inicial ?? o())), I.size(ht) !== 8)) {
|
|
310
|
-
const n = o(l.inicial, d);
|
|
311
|
-
n.isValid() && p(n.format(V));
|
|
312
|
-
}
|
|
313
|
-
if (i === "final" && (a.relatedTarget?.id !== k && u(!1), s && (h((l.final ?? o()).format(d)), C(l.final ?? o())), I.size(yt) !== 8)) {
|
|
314
|
-
const n = o(l.final, d);
|
|
315
|
-
n.isValid() && D(n.format(V));
|
|
316
|
-
}
|
|
317
|
-
}, e[48] = s, e[49] = O, e[50] = yt, e[51] = h, e[52] = u, e[53] = k, e[54] = ht, e[55] = t, e[56] = l.final, e[57] = l.inicial, e[58] = D, e[59] = p, e[60] = De) : De = e[60];
|
|
318
|
-
const z = De;
|
|
319
|
-
let Ve;
|
|
320
|
-
e[61] !== s || e[62] !== h || e[63] !== r || e[64] !== N || e[65] !== t || e[66] !== l.final || e[67] !== l.inicial ? (Ve = (a, i) => {
|
|
321
|
-
t?.onFocus?.(a), !r && !s && N && aa(!0), i === "initial" && (h((l.inicial ?? o()).format(d)), C(l.inicial ?? o())), i === "final" && (h((l.final ?? o()).format(d)), C(l.final ?? o()));
|
|
322
|
-
}, e[61] = s, e[62] = h, e[63] = r, e[64] = N, e[65] = t, e[66] = l.final, e[67] = l.inicial, e[68] = Ve) : Ve = e[68];
|
|
323
|
-
const E = Ve;
|
|
324
|
-
let Pe;
|
|
325
|
-
e[69] !== _ || e[70] !== s || e[71] !== B || e[72] !== t ? (Pe = (a, i) => {
|
|
326
|
-
if (t?.onKeyDown?.(a), s && a.key && !a.shiftKey && !a.altKey && a.key === w.enter) {
|
|
327
|
-
a.preventDefault();
|
|
328
|
-
const n = o(I.toString(_), d);
|
|
329
|
-
B({
|
|
330
|
-
date: n,
|
|
331
|
-
inputType: i
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
}, e[69] = _, e[70] = s, e[71] = B, e[72] = t, e[73] = Pe) : Pe = e[73];
|
|
335
|
-
const U = Pe;
|
|
336
|
-
let Re;
|
|
337
|
-
e[74] !== t || e[75] !== g ? (Re = (a) => {
|
|
338
|
-
g ? a.preventDefault() : t.onPaste?.(a);
|
|
339
|
-
}, e[74] = t, e[75] = g, e[76] = Re) : Re = e[76];
|
|
340
|
-
const Be = Re;
|
|
341
|
-
let xe;
|
|
342
|
-
e[77] !== t || e[78] !== g ? (xe = (a) => {
|
|
343
|
-
g ? a.preventDefault() : t.onBeforeInput?.(a);
|
|
344
|
-
}, e[77] = t, e[78] = g, e[79] = xe) : xe = e[79];
|
|
345
|
-
const Me = xe;
|
|
346
|
-
let Ae;
|
|
347
|
-
e[80] !== s || e[81] !== u || e[82] !== L || e[83] !== T || e[84] !== W || e[85] !== Ce ? (Ae = (a) => {
|
|
348
|
-
if (s && a.key && !a.shiftKey && !a.altKey && Fa.includes(a.key)) {
|
|
349
|
-
a.preventDefault();
|
|
350
|
-
e: switch (a.key) {
|
|
351
|
-
case w.arrowLeft: {
|
|
352
|
-
W(-1);
|
|
353
|
-
break e;
|
|
281
|
+
switch (period) {
|
|
282
|
+
case 'today':
|
|
283
|
+
{
|
|
284
|
+
const date = (0, _moment.default)();
|
|
285
|
+
localOnChange(date, date);
|
|
286
|
+
break;
|
|
354
287
|
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
288
|
+
case 'week':
|
|
289
|
+
{
|
|
290
|
+
const startOfWeek = (0, _moment.default)().startOf('week');
|
|
291
|
+
const endOfWeek = (0, _moment.default)().endOf('week');
|
|
292
|
+
localOnChange(startOfWeek, endOfWeek);
|
|
293
|
+
break;
|
|
358
294
|
}
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
295
|
+
case 'lastweek':
|
|
296
|
+
{
|
|
297
|
+
const startOfLastWeek = (0, _moment.default)().add(-1, 'week').startOf('week');
|
|
298
|
+
const endOfLastWeek = (0, _moment.default)().add(-1, 'week').endOf('week');
|
|
299
|
+
localOnChange(startOfLastWeek, endOfLastWeek);
|
|
300
|
+
break;
|
|
362
301
|
}
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
302
|
+
case 'last15':
|
|
303
|
+
{
|
|
304
|
+
const startOfLastFifteenDays = (0, _moment.default)().add(-14, 'd');
|
|
305
|
+
const endOfLastFifteenDays = (0, _moment.default)();
|
|
306
|
+
localOnChange(startOfLastFifteenDays, endOfLastFifteenDays);
|
|
307
|
+
break;
|
|
366
308
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
309
|
+
case 'month':
|
|
310
|
+
{
|
|
311
|
+
const startOfMonth = (0, _moment.default)().startOf('month');
|
|
312
|
+
const endOfMonth = (0, _moment.default)().endOf('month');
|
|
313
|
+
localOnChange(startOfMonth, endOfMonth);
|
|
314
|
+
break;
|
|
370
315
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
316
|
+
case 'lastmonth':
|
|
317
|
+
{
|
|
318
|
+
const startOfMonth = (0, _moment.default)().add(-1, 'month').startOf('month');
|
|
319
|
+
const endOfMonth = (0, _moment.default)().add(-1, 'month').endOf('month');
|
|
320
|
+
localOnChange(startOfMonth, endOfMonth);
|
|
321
|
+
break;
|
|
374
322
|
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
323
|
+
default:
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
finalInputRef?.current?.focus?.();
|
|
327
|
+
if (shouldCloseOnSelect) handleChangeCalendarBoxState(false);
|
|
328
|
+
}, [props.name, props.onChange, initialName, finalName]);
|
|
329
|
+
const handleOnBlurMaskInput = (event, inputType) => {
|
|
330
|
+
props?.onBlur?.(event);
|
|
331
|
+
if (inputType === 'initial') {
|
|
332
|
+
if (event.relatedTarget?.id !== finalInputName) handleChangeCalendarBoxState(false);
|
|
333
|
+
if (calendarBoxOpen) {
|
|
334
|
+
handleChangeActiveDescendant((selectedDate.inicial ?? (0, _moment.default)()).format(_helpers2.TOKEN_ISO_FORMAT));
|
|
335
|
+
setCalendarDisplayDate(selectedDate.inicial ?? (0, _moment.default)());
|
|
336
|
+
}
|
|
337
|
+
if (_lodash.default.size(initialUnmaskedValue) !== 8) {
|
|
338
|
+
const date = (0, _moment.default)(selectedDate.inicial, _helpers2.TOKEN_ISO_FORMAT);
|
|
339
|
+
if (date.isValid()) {
|
|
340
|
+
setInitialMaskValue(date.format(_helpers2.TOKEN_PTBR_FORMAT));
|
|
382
341
|
}
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
if (inputType === 'final') {
|
|
345
|
+
if (event.relatedTarget?.id !== initialInputName) handleChangeCalendarBoxState(false);
|
|
346
|
+
if (calendarBoxOpen) {
|
|
347
|
+
handleChangeActiveDescendant((selectedDate.final ?? (0, _moment.default)()).format(_helpers2.TOKEN_ISO_FORMAT));
|
|
348
|
+
setCalendarDisplayDate(selectedDate.final ?? (0, _moment.default)());
|
|
349
|
+
}
|
|
350
|
+
if (_lodash.default.size(finalUnmaskedValue) !== 8) {
|
|
351
|
+
const date = (0, _moment.default)(selectedDate.final, _helpers2.TOKEN_ISO_FORMAT);
|
|
352
|
+
if (date.isValid()) {
|
|
353
|
+
setFinalMaskValue(date.format(_helpers2.TOKEN_PTBR_FORMAT));
|
|
386
354
|
}
|
|
387
355
|
}
|
|
388
356
|
}
|
|
389
|
-
}
|
|
390
|
-
const
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
357
|
+
};
|
|
358
|
+
const handleOnFocusMaskInput = (event, inputType) => {
|
|
359
|
+
props?.onFocus?.(event);
|
|
360
|
+
if (!isReadOnly && !calendarBoxOpen && openCalendarOnFocus) {
|
|
361
|
+
setCalendarBoxOpen(true);
|
|
362
|
+
}
|
|
363
|
+
if (inputType === 'initial') {
|
|
364
|
+
handleChangeActiveDescendant((selectedDate.inicial ?? (0, _moment.default)()).format(_helpers2.TOKEN_ISO_FORMAT));
|
|
365
|
+
setCalendarDisplayDate(selectedDate.inicial ?? (0, _moment.default)());
|
|
366
|
+
}
|
|
367
|
+
if (inputType === 'final') {
|
|
368
|
+
handleChangeActiveDescendant((selectedDate.final ?? (0, _moment.default)()).format(_helpers2.TOKEN_ISO_FORMAT));
|
|
369
|
+
setCalendarDisplayDate(selectedDate.final ?? (0, _moment.default)());
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
const handleOnKeyDownMaskInput = (event, inputType) => {
|
|
373
|
+
props?.onKeyDown?.(event);
|
|
374
|
+
if (calendarBoxOpen && event.key && !event.shiftKey && !event.altKey && event.key === _types.Keys.enter) {
|
|
375
|
+
event.preventDefault();
|
|
376
|
+
const rawDate = (0, _moment.default)(_lodash.default.toString(activeDescendant), _helpers2.TOKEN_ISO_FORMAT);
|
|
377
|
+
handleChangeUpdateDateState({
|
|
378
|
+
date: rawDate,
|
|
379
|
+
inputType
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
const handleOnPaste = event => {
|
|
384
|
+
if (undigitable) {
|
|
385
|
+
event.preventDefault();
|
|
386
|
+
} else {
|
|
387
|
+
props.onPaste?.(event);
|
|
399
388
|
}
|
|
400
|
-
}, e[87] = m, e[88] = f, e[89] = t.value, e[90] = D, e[91] = p, e[92] = Ne) : Ne = e[92];
|
|
401
|
-
const _t = t?.value;
|
|
402
|
-
let Fe;
|
|
403
|
-
e[93] !== _t ? (Fe = [_t], e[93] = _t, e[94] = Fe) : Fe = e[94], Ca(Ne, Fe);
|
|
404
|
-
const Ct = ya();
|
|
405
|
-
let Ke;
|
|
406
|
-
e[95] !== _ || e[96] !== s || e[97] !== mt || e[98] !== O || e[99] !== h || e[100] !== u || e[101] !== Ot || e[102] !== L || e[103] !== T || e[104] !== kt || e[105] !== B || e[106] !== vt || e[107] !== St || e[108] !== v || e[109] !== k || e[110] !== b || e[111] !== r || e[112] !== N || e[113] !== l || e[114] !== rt || e[115] !== dt || e[116] !== ct || e[117] !== c || e[118] !== Ct || e[119] !== g ? (Ke = {
|
|
407
|
-
isReadOnly: r,
|
|
408
|
-
isDisabled: b,
|
|
409
|
-
undigitable: g,
|
|
410
|
-
skeletonize: c,
|
|
411
|
-
dateContainerRef: ia,
|
|
412
|
-
calendarBoxOpen: s,
|
|
413
|
-
activeDescendant: _,
|
|
414
|
-
selectedDate: l,
|
|
415
|
-
initialInputId: k,
|
|
416
|
-
finalInputId: O,
|
|
417
|
-
initialInputRef: ut,
|
|
418
|
-
finalInputRef: H,
|
|
419
|
-
showCalendarButton: rt,
|
|
420
|
-
calendarDisplayDate: mt,
|
|
421
|
-
hasValidationErrors: v,
|
|
422
|
-
openCalendarOnFocus: N,
|
|
423
|
-
showPredefinedPeriodsButton: ct,
|
|
424
|
-
showClearDateButton: dt,
|
|
425
|
-
handleChangeSelectedDate: kt,
|
|
426
|
-
handleChangePreviousMonth: T,
|
|
427
|
-
handleChangeNextMonth: L,
|
|
428
|
-
handleChangeCalendarBoxState: u,
|
|
429
|
-
handleChangeActiveDescendant: h,
|
|
430
|
-
handleChangeCalendarDisplayDate: Ot,
|
|
431
|
-
handleChangeUpdateDateState: B,
|
|
432
|
-
handleOnClickClearSelectedPeriod: St,
|
|
433
|
-
handleChangeUpdateDateStateWithPredefinedPeriod: vt,
|
|
434
|
-
hasValidPeriodSelected: Ct
|
|
435
|
-
}, e[95] = _, e[96] = s, e[97] = mt, e[98] = O, e[99] = h, e[100] = u, e[101] = Ot, e[102] = L, e[103] = T, e[104] = kt, e[105] = B, e[106] = vt, e[107] = St, e[108] = v, e[109] = k, e[110] = b, e[111] = r, e[112] = N, e[113] = l, e[114] = rt, e[115] = dt, e[116] = ct, e[117] = c, e[118] = Ct, e[119] = g, e[120] = Ke) : Ke = e[120];
|
|
436
|
-
const ka = Ke;
|
|
437
|
-
if (ma || ie)
|
|
438
|
-
return null;
|
|
439
|
-
let Te;
|
|
440
|
-
e[121] !== it || e[122] !== K || e[123] !== gt || e[124] !== A || e[125] !== k || e[126] !== b || e[127] !== r || e[128] !== P || e[129] !== lt || e[130] !== st || e[131] !== t.hint || e[132] !== t.required || e[133] !== c || e[134] !== ot ? (Te = gt && /* @__PURE__ */ S(Ba, { "data-testid": "test-date-period-field-label", label: P, inputId: k, hint: t?.hint, isDisabled: b, isReadOnly: r, skeletonize: c, required: t?.required, hintPosition: A, themePopover: ot, popoverAlign: st, labelUppercase: lt, hasHintMessages: K, customClassLabel: it }), e[121] = it, e[122] = K, e[123] = gt, e[124] = A, e[125] = k, e[126] = b, e[127] = r, e[128] = P, e[129] = lt, e[130] = st, e[131] = t.hint, e[132] = t.required, e[133] = c, e[134] = ot, e[135] = Te) : Te = e[135];
|
|
441
|
-
const Oa = I.omit(ta, ["initialRef", "finalRef"]), It = t?.initialRef;
|
|
442
|
-
let Le;
|
|
443
|
-
e[136] !== It ? (Le = oa(ut, It), e[136] = It, e[137] = Le) : Le = e[137];
|
|
444
|
-
let We;
|
|
445
|
-
e[138] !== z ? (We = (a) => z(a, "initial"), e[138] = z, e[139] = We) : We = e[139];
|
|
446
|
-
let ze;
|
|
447
|
-
e[140] !== E ? (ze = (a) => E(a, "initial"), e[140] = E, e[141] = ze) : ze = e[141];
|
|
448
|
-
let Ee;
|
|
449
|
-
e[142] !== U ? (Ee = (a) => U(a, "initial"), e[142] = U, e[143] = Ee) : Ee = e[143];
|
|
450
|
-
let Ue;
|
|
451
|
-
e[144] === Symbol.for("react.memo_cache_sentinel") ? (Ue = /* @__PURE__ */ S(pa, { name: "arrow_right", size: 10 }), e[144] = Ue) : Ue = e[144];
|
|
452
|
-
let qe;
|
|
453
|
-
e[145] !== b || e[146] !== r ? (qe = /* @__PURE__ */ S("span", { className: "separator", "data-state-disabled": b, "data-state-read-only": r, onMouseDown: ja, children: Ue }), e[145] = b, e[146] = r, e[147] = qe) : qe = e[147];
|
|
454
|
-
const wt = Ra, pt = I.omit(ta, ["initialRef", "finalRef"]), Dt = t?.finalRef;
|
|
455
|
-
let q;
|
|
456
|
-
e[148] !== Dt ? (q = oa(H, Dt), e[148] = Dt, e[149] = q) : q = e[149];
|
|
457
|
-
const Vt = !r && !c ? 0 : -1;
|
|
458
|
-
let j;
|
|
459
|
-
e[150] !== z ? (j = (a) => z(a, "final"), e[150] = z, e[151] = j) : j = e[151];
|
|
460
|
-
let $;
|
|
461
|
-
e[152] !== E ? ($ = (a) => E(a, "final"), e[152] = E, e[153] = $) : $ = e[153];
|
|
462
|
-
let G;
|
|
463
|
-
e[154] !== U ? (G = (a) => U(a, "final"), e[154] = U, e[155] = G) : G = e[155];
|
|
464
|
-
let je;
|
|
465
|
-
e[156] !== _ || e[157] !== s || e[158] !== Z || e[159] !== O || e[160] !== bt || e[161] !== Me || e[162] !== Be || e[163] !== v || e[164] !== b || e[165] !== r || e[166] !== ae || e[167] !== c || e[168] !== wt.Input || e[169] !== pt || e[170] !== q || e[171] !== Vt || e[172] !== j || e[173] !== $ || e[174] !== G || e[175] !== ee || e[176] !== g ? (je = /* @__PURE__ */ S(wt.Input, { ...pt, ref: q, id: O, name: O, value: bt, readOnly: r, disabled: b, customClass: Z, tabIndex: Vt, placeholder: ae, "aria-autocomplete": "list", "aria-activedescendant": _, "aria-expanded": s, "aria-controls": O, "aria-labelledby": O, "data-testid": "test-date-period-field-final-input", "data-state-is-period-input": !0, "data-state-error": v, "data-state-read-only": r, "data-state-text-align": ee, "data-state-undigitable": g, "data-state-skeletonize": c, onPaste: Be, onBeforeInput: Me, onBlur: j, onFocus: $, onKeyDown: G }), e[156] = _, e[157] = s, e[158] = Z, e[159] = O, e[160] = bt, e[161] = Me, e[162] = Be, e[163] = v, e[164] = b, e[165] = r, e[166] = ae, e[167] = c, e[168] = wt.Input, e[169] = pt, e[170] = q, e[171] = Vt, e[172] = j, e[173] = $, e[174] = G, e[175] = ee, e[176] = g, e[177] = je) : je = e[177];
|
|
466
|
-
let $e;
|
|
467
|
-
e[178] === Symbol.for("react.memo_cache_sentinel") ? ($e = /* @__PURE__ */ S(Ka, {}), e[178] = $e) : $e = e[178];
|
|
468
|
-
let Ge;
|
|
469
|
-
e[179] !== s || e[180] !== ie ? (Ge = s && !ie && Ia(/* @__PURE__ */ S(Ta, { ref: ha }), document.body), e[179] = s, e[180] = ie, e[181] = Ge) : Ge = e[181];
|
|
470
|
-
let He;
|
|
471
|
-
e[182] !== K || e[183] !== A || e[184] !== b || e[185] !== t.hint || e[186] !== c ? (He = A === "below" && /* @__PURE__ */ S(wa, { customClass: "hint", description: t.hint, disabled: b, skeletonize: c, visible: K }), e[182] = K, e[183] = A, e[184] = b, e[185] = t.hint, e[186] = c, e[187] = He) : He = e[187];
|
|
472
|
-
let Ye;
|
|
473
|
-
e[188] !== M || e[189] !== v || e[190] !== P || e[191] !== c ? (Ye = v && /* @__PURE__ */ S("span", { "data-testid": "test-date-period-field-list-errors", className: "error", "data-state-skeletonize": c, "aria-describedby": String(P).concat("-errors"), children: M?.map($a) }), e[188] = M, e[189] = v, e[190] = P, e[191] = c, e[192] = Ye) : Ye = e[192];
|
|
474
|
-
let Je;
|
|
475
|
-
return e[193] !== Ze || e[194] !== et || e[195] !== tt ? (Je = /* @__PURE__ */ S(Va, { targetRef: na, text: Ze, width: tt, position: et }), e[193] = Ze, e[194] = et, e[195] = tt, e[196] = Je) : Je = e[196], /* @__PURE__ */ Xe(ra, { children: [
|
|
476
|
-
/* @__PURE__ */ S(Da, { cols: fa, children: /* @__PURE__ */ S(La.Provider, { value: ka, children: /* @__PURE__ */ Xe(xa, { ref: na, "data-testid": "test-date-period-field-root", "data-state-error": v, customClassWrapper: ca, children: [
|
|
477
|
-
Te,
|
|
478
|
-
/* @__PURE__ */ Xe(Ma, { ref: ia, "data-testid": "test-date-period-field-container", onKeyDown: ga, skeletonize: c, customClassInputContainer: da, children: [
|
|
479
|
-
/* @__PURE__ */ S(Aa, { ...Oa, ref: Le, id: k, name: k, value: ba, readOnly: r, disabled: b, customClass: Z, tabIndex: !r && !c ? 0 : -1, placeholder: ae, "aria-autocomplete": "list", "aria-activedescendant": _, "aria-expanded": s, "aria-controls": k, "aria-labelledby": k, "data-testid": "test-date-period-field-initial-input", "data-state-is-period-input": !0, "data-state-error": v, "data-state-read-only": r, "data-state-text-align": ee, "data-state-undigitable": g, "data-state-skeletonize": c, onPaste: Be, onBeforeInput: Me, onBlur: We, onFocus: ze, onKeyDown: Ee }),
|
|
480
|
-
qe,
|
|
481
|
-
je,
|
|
482
|
-
$e
|
|
483
|
-
] }),
|
|
484
|
-
Ge,
|
|
485
|
-
He,
|
|
486
|
-
Ye
|
|
487
|
-
] }) }) }),
|
|
488
|
-
Je
|
|
489
|
-
] });
|
|
490
|
-
});
|
|
491
|
-
Wa.displayName = "DatePeriodFieldInput";
|
|
492
|
-
function za(t) {
|
|
493
|
-
return t.clone().subtract(1, "month");
|
|
494
|
-
}
|
|
495
|
-
function Ea(t) {
|
|
496
|
-
return t.clone().add(1, "month");
|
|
497
|
-
}
|
|
498
|
-
function Ua() {
|
|
499
|
-
return {
|
|
500
|
-
inicial: null,
|
|
501
|
-
final: null
|
|
502
389
|
};
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
390
|
+
const handleOnBeforeInput = event => {
|
|
391
|
+
if (undigitable) {
|
|
392
|
+
event.preventDefault();
|
|
393
|
+
} else {
|
|
394
|
+
props.onBeforeInput?.(event);
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
const handleOnKeyDown = event => {
|
|
398
|
+
if (calendarBoxOpen && event.key && !event.shiftKey && !event.altKey && _helpers2.NAVIGATION_KEYS.includes(event.key)) {
|
|
399
|
+
event.preventDefault();
|
|
400
|
+
switch (event.key) {
|
|
401
|
+
case _types.Keys.arrowLeft:
|
|
402
|
+
handleNavigateWithDays(-1);
|
|
403
|
+
break;
|
|
404
|
+
case _types.Keys.arrowRight:
|
|
405
|
+
handleNavigateWithDays(1);
|
|
406
|
+
break;
|
|
407
|
+
case _types.Keys.arrowUp:
|
|
408
|
+
handleNavigateWithDays(-7);
|
|
409
|
+
break;
|
|
410
|
+
case _types.Keys.arrowDown:
|
|
411
|
+
handleNavigateWithDays(7);
|
|
412
|
+
break;
|
|
413
|
+
case _types.Keys.pageUp:
|
|
414
|
+
handleChangeNextMonth();
|
|
415
|
+
break;
|
|
416
|
+
case _types.Keys.pageDown:
|
|
417
|
+
handleChangePreviousMonth();
|
|
418
|
+
break;
|
|
419
|
+
case _types.Keys.home:
|
|
420
|
+
handleNavigateWithWeeks('start');
|
|
421
|
+
break;
|
|
422
|
+
case _types.Keys.end:
|
|
423
|
+
handleNavigateWithWeeks('end');
|
|
424
|
+
break;
|
|
425
|
+
case _types.Keys.escape:
|
|
426
|
+
handleChangeCalendarBoxState(false);
|
|
427
|
+
break;
|
|
428
|
+
default:
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
509
432
|
};
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
};
|
|
523
|
-
|
|
433
|
+
_react.default.useEffect(() => {
|
|
434
|
+
if (props?.value) {
|
|
435
|
+
const objectValue = props.value;
|
|
436
|
+
const initialDate = (0, _moment.default)(_lodash.default.toString(objectValue[initialName]), _helpers2.TOKEN_ISO_FORMAT);
|
|
437
|
+
const finalDate = (0, _moment.default)(_lodash.default.toString(objectValue[finalName]), _helpers2.TOKEN_ISO_FORMAT);
|
|
438
|
+
setSelectedDate(() => ({
|
|
439
|
+
inicial: initialDate.isValid() ? initialDate : null,
|
|
440
|
+
final: finalDate.isValid() ? finalDate : null
|
|
441
|
+
}));
|
|
442
|
+
setInitialMaskValue(initialDate.format(_helpers2.TOKEN_PTBR_FORMAT));
|
|
443
|
+
setFinalMaskValue(finalDate.format(_helpers2.TOKEN_PTBR_FORMAT));
|
|
444
|
+
}
|
|
445
|
+
}, [props?.value]);
|
|
446
|
+
const contextValues = _react.default.useMemo(() => ({
|
|
447
|
+
isReadOnly,
|
|
448
|
+
isDisabled,
|
|
449
|
+
undigitable,
|
|
450
|
+
skeletonize,
|
|
451
|
+
dateContainerRef,
|
|
452
|
+
calendarBoxOpen,
|
|
453
|
+
activeDescendant,
|
|
454
|
+
selectedDate,
|
|
455
|
+
initialInputId: initialInputName,
|
|
456
|
+
finalInputId: finalInputName,
|
|
457
|
+
initialInputRef,
|
|
458
|
+
finalInputRef,
|
|
459
|
+
showCalendarButton,
|
|
460
|
+
calendarDisplayDate,
|
|
461
|
+
hasValidationErrors,
|
|
462
|
+
openCalendarOnFocus,
|
|
463
|
+
showPredefinedPeriodsButton,
|
|
464
|
+
showClearDateButton,
|
|
465
|
+
handleChangeSelectedDate,
|
|
466
|
+
handleChangePreviousMonth,
|
|
467
|
+
handleChangeNextMonth,
|
|
468
|
+
handleChangeCalendarBoxState,
|
|
469
|
+
handleChangeActiveDescendant,
|
|
470
|
+
handleChangeCalendarDisplayDate,
|
|
471
|
+
handleChangeUpdateDateState,
|
|
472
|
+
handleOnClickClearSelectedPeriod,
|
|
473
|
+
handleChangeUpdateDateStateWithPredefinedPeriod,
|
|
474
|
+
hasValidPeriodSelected: verifyPeriodSelectedIsValid()
|
|
475
|
+
}), [isReadOnly, isDisabled, undigitable, skeletonize, initialInputName, finalInputName, selectedDate, calendarBoxOpen, activeDescendant, calendarDisplayDate, hasValidationErrors, openCalendarOnFocus, showClearDateButton]);
|
|
476
|
+
if (unvisible || hideContent) return null;
|
|
477
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_gridlayout.default, {
|
|
478
|
+
cols: gridLayout
|
|
479
|
+
}, /*#__PURE__*/_react.default.createElement(_context.DatePeriodFieldContext.Provider, {
|
|
480
|
+
value: contextValues
|
|
481
|
+
}, /*#__PURE__*/_react.default.createElement(BaseDate.Root, {
|
|
482
|
+
ref: inputRootRef,
|
|
483
|
+
"data-testid": "test-date-period-field-root",
|
|
484
|
+
"data-state-error": hasValidationErrors,
|
|
485
|
+
customClassWrapper: customClassWrapper
|
|
486
|
+
}, hasLabel && /*#__PURE__*/_react.default.createElement(BaseDate.Label, {
|
|
487
|
+
"data-testid": "test-date-period-field-label",
|
|
488
|
+
label: label,
|
|
489
|
+
inputId: initialInputName,
|
|
490
|
+
hint: props?.hint,
|
|
491
|
+
isDisabled: isDisabled,
|
|
492
|
+
isReadOnly: isReadOnly,
|
|
493
|
+
skeletonize: skeletonize,
|
|
494
|
+
required: props?.required,
|
|
495
|
+
hintPosition: hintPosition,
|
|
496
|
+
themePopover: themePopover,
|
|
497
|
+
popoverAlign: popoverAlign,
|
|
498
|
+
labelUppercase: labelUppercase,
|
|
499
|
+
hasHintMessages: hasHintMessages,
|
|
500
|
+
customClassLabel: customClassLabel
|
|
501
|
+
}), /*#__PURE__*/_react.default.createElement(BaseDate.Container, {
|
|
502
|
+
ref: dateContainerRef,
|
|
503
|
+
"data-testid": "test-date-period-field-container",
|
|
504
|
+
onKeyDown: handleOnKeyDown,
|
|
505
|
+
skeletonize: skeletonize,
|
|
506
|
+
customClassInputContainer: customClassInputContainer
|
|
507
|
+
}, /*#__PURE__*/_react.default.createElement(BaseDate.Input, _extends({}, _lodash.default.omit(rest, ['initialRef', 'finalRef']), {
|
|
508
|
+
ref: (0, _helpers.mergeRefs)(initialInputRef, props?.initialRef),
|
|
509
|
+
id: initialInputName,
|
|
510
|
+
name: initialInputName,
|
|
511
|
+
value: initialMaskedValue,
|
|
512
|
+
readOnly: isReadOnly,
|
|
513
|
+
disabled: isDisabled,
|
|
514
|
+
customClass: customClass,
|
|
515
|
+
tabIndex: !isReadOnly && !skeletonize ? 0 : -1,
|
|
516
|
+
placeholder: placeholder,
|
|
517
|
+
"aria-autocomplete": "list",
|
|
518
|
+
"aria-activedescendant": activeDescendant,
|
|
519
|
+
"aria-expanded": calendarBoxOpen,
|
|
520
|
+
"aria-controls": initialInputName,
|
|
521
|
+
"aria-labelledby": initialInputName,
|
|
522
|
+
"data-testid": "test-date-period-field-initial-input",
|
|
523
|
+
"data-state-is-period-input": true,
|
|
524
|
+
"data-state-error": hasValidationErrors,
|
|
525
|
+
"data-state-read-only": isReadOnly,
|
|
526
|
+
"data-state-text-align": textAlign,
|
|
527
|
+
"data-state-undigitable": undigitable,
|
|
528
|
+
"data-state-skeletonize": skeletonize,
|
|
529
|
+
onPaste: handleOnPaste,
|
|
530
|
+
onBeforeInput: handleOnBeforeInput,
|
|
531
|
+
onBlur: event => handleOnBlurMaskInput(event, 'initial'),
|
|
532
|
+
onFocus: event => handleOnFocusMaskInput(event, 'initial'),
|
|
533
|
+
onKeyDown: event => handleOnKeyDownMaskInput(event, 'initial')
|
|
534
|
+
})), /*#__PURE__*/_react.default.createElement("span", {
|
|
535
|
+
className: "separator",
|
|
536
|
+
"data-state-disabled": isDisabled,
|
|
537
|
+
"data-state-read-only": isReadOnly,
|
|
538
|
+
onMouseDown: event => {
|
|
539
|
+
event.preventDefault();
|
|
540
|
+
}
|
|
541
|
+
}, /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
542
|
+
name: "arrow_right",
|
|
543
|
+
size: 10
|
|
544
|
+
})), /*#__PURE__*/_react.default.createElement(BaseDate.Input, _extends({}, _lodash.default.omit(rest, ['initialRef', 'finalRef']), {
|
|
545
|
+
ref: (0, _helpers.mergeRefs)(finalInputRef, props?.finalRef),
|
|
546
|
+
id: finalInputName,
|
|
547
|
+
name: finalInputName,
|
|
548
|
+
value: finalMaskedValue,
|
|
549
|
+
readOnly: isReadOnly,
|
|
550
|
+
disabled: isDisabled,
|
|
551
|
+
customClass: customClass,
|
|
552
|
+
tabIndex: !isReadOnly && !skeletonize ? 0 : -1,
|
|
553
|
+
placeholder: placeholder,
|
|
554
|
+
"aria-autocomplete": "list",
|
|
555
|
+
"aria-activedescendant": activeDescendant,
|
|
556
|
+
"aria-expanded": calendarBoxOpen,
|
|
557
|
+
"aria-controls": finalInputName,
|
|
558
|
+
"aria-labelledby": finalInputName,
|
|
559
|
+
"data-testid": "test-date-period-field-final-input",
|
|
560
|
+
"data-state-is-period-input": true,
|
|
561
|
+
"data-state-error": hasValidationErrors,
|
|
562
|
+
"data-state-read-only": isReadOnly,
|
|
563
|
+
"data-state-text-align": textAlign,
|
|
564
|
+
"data-state-undigitable": undigitable,
|
|
565
|
+
"data-state-skeletonize": skeletonize,
|
|
566
|
+
onPaste: handleOnPaste,
|
|
567
|
+
onBeforeInput: handleOnBeforeInput,
|
|
568
|
+
onBlur: event => handleOnBlurMaskInput(event, 'final'),
|
|
569
|
+
onFocus: event => handleOnFocusMaskInput(event, 'final'),
|
|
570
|
+
onKeyDown: event => handleOnKeyDownMaskInput(event, 'final')
|
|
571
|
+
})), /*#__PURE__*/_react.default.createElement(_triggers.Triggers, null)), calendarBoxOpen && !hideContent && /*#__PURE__*/(0, _reactDom.createPortal)(/*#__PURE__*/_react.default.createElement(_calendarbox.CalendarBox, {
|
|
572
|
+
ref: calendarRef
|
|
573
|
+
}), document.body), hintPosition === 'below' && /*#__PURE__*/_react.default.createElement(_hint.default, {
|
|
574
|
+
customClass: "hint",
|
|
575
|
+
description: props.hint,
|
|
576
|
+
disabled: isDisabled,
|
|
577
|
+
skeletonize: skeletonize,
|
|
578
|
+
visible: hasHintMessages
|
|
579
|
+
}), hasValidationErrors && /*#__PURE__*/_react.default.createElement("span", {
|
|
580
|
+
"data-testid": "test-date-period-field-list-errors",
|
|
581
|
+
className: "error",
|
|
582
|
+
"data-state-skeletonize": skeletonize,
|
|
583
|
+
"aria-describedby": String(label).concat('-errors')
|
|
584
|
+
}, errors?.map((error, index) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
585
|
+
key: `${index + 1}-${error}`
|
|
586
|
+
}, error, "\xA0")))))), /*#__PURE__*/_react.default.createElement(_tooltip.Tooltip, {
|
|
587
|
+
targetRef: inputRootRef,
|
|
588
|
+
text: tooltip,
|
|
589
|
+
width: tooltipWidth,
|
|
590
|
+
position: tooltipPosition
|
|
591
|
+
}));
|
|
592
|
+
});
|
|
593
|
+
Input.displayName = 'DatePeriodFieldInput';
|