linear-react-components-ui 1.1.27-rc.1 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +347 -85
- package/lib/@types/Align.d.ts +0 -4
- package/lib/@types/Align.js +0 -5
- package/lib/@types/ButtonTypes.d.ts +0 -3
- package/lib/@types/ButtonTypes.js +0 -5
- package/lib/@types/ColorStyles.d.ts +0 -4
- package/lib/@types/ColorStyles.js +0 -5
- package/lib/@types/DataCombo.d.ts +0 -3
- package/lib/@types/DataCombo.js +0 -5
- package/lib/@types/Icon.d.ts +0 -5
- package/lib/@types/Icon.js +0 -5
- package/lib/@types/LabelStyles.d.ts +0 -3
- package/lib/@types/LabelStyles.js +0 -5
- package/lib/@types/Period.d.ts +0 -6
- package/lib/@types/Period.js +0 -5
- package/lib/@types/PermissionAttr.d.ts +0 -14
- package/lib/@types/PermissionAttr.js +0 -5
- package/lib/@types/PointerEvents.d.ts +0 -3
- package/lib/@types/PointerEvents.js +0 -5
- package/lib/@types/Position.d.ts +0 -4
- package/lib/@types/Position.js +0 -5
- package/lib/@types/PositionAlert.d.ts +0 -3
- package/lib/@types/PositionAlert.js +0 -5
- package/lib/@types/Size.d.ts +0 -3
- package/lib/@types/Size.js +0 -5
- package/lib/@types/SizePixels.d.ts +0 -3
- package/lib/@types/SizePixels.js +0 -5
- package/lib/@types/StorageMock.d.ts +0 -5
- package/lib/@types/StorageMock.js +0 -5
- package/lib/BaseMask-78847f45.d.ts +0 -24
- package/lib/Cnpj-8366781f.d.ts +0 -18
- package/lib/Cpf-3dfd54eb.d.ts +0 -18
- package/lib/Phone-1962c0f2.d.ts +0 -18
- package/lib/ZipCode-be9c5b3b.d.ts +0 -13
- package/lib/alerts/AlertContainer.d.ts +0 -18
- package/lib/alerts/AlertContainer.js +0 -80
- package/lib/alerts/AlertProvider.d.ts +0 -9
- package/lib/alerts/AlertProvider.js +0 -72
- package/lib/alerts/BaseAlert.d.ts +0 -9
- package/lib/alerts/BaseAlert.js +0 -34
- package/lib/alerts/Message.d.ts +0 -9
- package/lib/alerts/Message.js +0 -113
- package/lib/alerts/helpers.d.ts +0 -9
- package/lib/alerts/helpers.js +0 -9
- package/lib/alerts/index.d.ts +0 -11
- package/lib/alerts/index.js +0 -16
- package/lib/alerts/types.d.ts +0 -51
- package/lib/alerts/types.js +0 -5
- package/lib/alerts/withAlert.d.ts +0 -9
- package/lib/alerts/withAlert.js +0 -23
- 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 +0 -149
- package/lib/assets/styles/avatar.scss +0 -42
- package/lib/assets/styles/badge.scss +0 -48
- package/lib/assets/styles/button.scss +0 -373
- package/lib/assets/styles/calendar.scss +0 -311
- package/lib/assets/styles/checkbox.scss +0 -108
- package/lib/assets/styles/checkbox2.scss +0 -199
- package/lib/assets/styles/colorpicker.scss +0 -12
- package/lib/assets/styles/colors.scss +0 -180
- package/lib/assets/styles/commons.scss +0 -138
- package/lib/assets/styles/datepicker.scss +0 -36
- package/lib/assets/styles/datepicker2.scss +0 -336
- package/lib/assets/styles/dialog.scss +0 -200
- package/lib/assets/styles/drawers.scss +0 -158
- package/lib/assets/styles/dropdown.scss +0 -179
- package/lib/assets/styles/effects.scss +0 -821
- package/lib/assets/styles/error.scss +0 -9
- package/lib/assets/styles/fieldset.scss +0 -96
- package/lib/assets/styles/file.scss +0 -229
- package/lib/assets/styles/filefield.scss +0 -42
- package/lib/assets/styles/floatMenu.scss +0 -15
- package/lib/assets/styles/fonts.scss +0 -86
- package/lib/assets/styles/form.scss +0 -23
- package/lib/assets/styles/gridlayout.scss +0 -2055
- package/lib/assets/styles/hint.scss +0 -30
- package/lib/assets/styles/icon.scss +0 -42
- package/lib/assets/styles/input.scss +0 -156
- package/lib/assets/styles/label.scss +0 -118
- package/lib/assets/styles/labelMessages.scss +0 -81
- package/lib/assets/styles/list.scss +0 -124
- package/lib/assets/styles/multiSelect.scss +0 -125
- package/lib/assets/styles/noPermission.scss +0 -25
- package/lib/assets/styles/numberfield.scss +0 -18
- package/lib/assets/styles/numbers.scss +0 -5
- package/lib/assets/styles/panel.scss +0 -95
- package/lib/assets/styles/periodpicker.scss +0 -109
- package/lib/assets/styles/popover.scss +0 -44
- package/lib/assets/styles/progress.scss +0 -72
- package/lib/assets/styles/radio.scss +0 -183
- package/lib/assets/styles/radiofield.scss +0 -185
- package/lib/assets/styles/search.scss +0 -13
- package/lib/assets/styles/select.scss +0 -159
- package/lib/assets/styles/selectfield.scss +0 -411
- package/lib/assets/styles/shortcuts.scss +0 -59
- package/lib/assets/styles/sidenav.scss +0 -409
- package/lib/assets/styles/skeleton.scss +0 -48
- package/lib/assets/styles/slot.scss +0 -34
- package/lib/assets/styles/spinner.scss +0 -34
- package/lib/assets/styles/split.scss +0 -80
- package/lib/assets/styles/table.scss +0 -185
- package/lib/assets/styles/tabs.scss +0 -308
- package/lib/assets/styles/textContent.scss +0 -9
- package/lib/assets/styles/textfield.scss +0 -186
- package/lib/assets/styles/toolbar.scss +0 -74
- package/lib/assets/styles/tooltip.scss +0 -96
- package/lib/assets/styles/treetable.scss +0 -100
- package/lib/assets/styles/treeview.scss +0 -112
- package/lib/assets/styles/uitour.scss +0 -112
- package/lib/assets/styles/wizard.scss +0 -186
- package/lib/avatar/index.d.ts +0 -12
- package/lib/avatar/index.js +0 -89
- package/lib/avatar/types.d.ts +0 -31
- package/lib/avatar/types.js +0 -5
- package/lib/badge/index.d.ts +0 -6
- package/lib/badge/index.js +0 -30
- package/lib/badge/types.d.ts +0 -13
- package/lib/badge/types.js +0 -5
- package/lib/buttons/ActivateButton.d.ts +0 -12
- package/lib/buttons/ActivateButton.js +0 -14
- package/lib/buttons/AddButton.d.ts +0 -12
- package/lib/buttons/AddButton.js +0 -18
- package/lib/buttons/Button.d.ts +0 -15
- package/lib/buttons/Button.js +0 -22
- package/lib/buttons/ButtonGroups.d.ts +0 -8
- package/lib/buttons/ButtonGroups.js +0 -17
- package/lib/buttons/CancelButton.d.ts +0 -12
- package/lib/buttons/CancelButton.js +0 -23
- package/lib/buttons/DangerButton.d.ts +0 -12
- package/lib/buttons/DangerButton.js +0 -23
- package/lib/buttons/DefaultButton.d.ts +0 -15
- package/lib/buttons/DefaultButton.js +0 -184
- package/lib/buttons/DestroyButton.d.ts +0 -12
- package/lib/buttons/DestroyButton.js +0 -22
- package/lib/buttons/EditButton.d.ts +0 -12
- package/lib/buttons/EditButton.js +0 -14
- package/lib/buttons/InactivateButton.d.ts +0 -12
- package/lib/buttons/InactivateButton.js +0 -14
- package/lib/buttons/InfoButton.d.ts +0 -12
- package/lib/buttons/InfoButton.js +0 -23
- package/lib/buttons/PrimaryButton.d.ts +0 -12
- package/lib/buttons/PrimaryButton.js +0 -23
- package/lib/buttons/RestoreButton.d.ts +0 -12
- package/lib/buttons/RestoreButton.js +0 -14
- package/lib/buttons/SaveButton.d.ts +0 -12
- package/lib/buttons/SaveButton.js +0 -23
- package/lib/buttons/SuccessButton.d.ts +0 -12
- package/lib/buttons/SuccessButton.js +0 -23
- package/lib/buttons/WarningButton.d.ts +0 -12
- package/lib/buttons/WarningButton.js +0 -23
- package/lib/buttons/button_container/index.d.ts +0 -12
- package/lib/buttons/button_container/index.js +0 -30
- package/lib/buttons/index.d.ts +0 -27
- package/lib/buttons/index.js +0 -108
- package/lib/buttons/split_button/index.d.ts +0 -12
- package/lib/buttons/split_button/index.js +0 -63
- package/lib/buttons/types.d.ts +0 -50
- package/lib/buttons/types.js +0 -5
- package/lib/calendar/DangerCalendar.d.ts +0 -8
- package/lib/calendar/DangerCalendar.js +0 -18
- package/lib/calendar/InfoCalendar.d.ts +0 -8
- package/lib/calendar/InfoCalendar.js +0 -18
- package/lib/calendar/PrimaryCalendar.d.ts +0 -8
- package/lib/calendar/PrimaryCalendar.js +0 -18
- package/lib/calendar/SuccessCalendar.d.ts +0 -8
- package/lib/calendar/SuccessCalendar.js +0 -18
- package/lib/calendar/WarningCalendar.d.ts +0 -8
- package/lib/calendar/WarningCalendar.js +0 -18
- package/lib/calendar/base/helpers.d.ts +0 -62
- package/lib/calendar/base/helpers.js +0 -117
- package/lib/calendar/base/index.d.ts +0 -8
- package/lib/calendar/base/index.js +0 -206
- package/lib/calendar/index.d.ts +0 -14
- package/lib/calendar/index.js +0 -44
- package/lib/calendar/types.d.ts +0 -30
- package/lib/calendar/types.js +0 -5
- package/lib/checkbox/index.d.ts +0 -13
- package/lib/checkbox/index.js +0 -146
- package/lib/checkbox/types.d.ts +0 -48
- package/lib/checkbox/types.js +0 -5
- package/lib/dialog/Alert.d.ts +0 -9
- package/lib/dialog/Alert.js +0 -32
- package/lib/dialog/Custom.d.ts +0 -9
- package/lib/dialog/Custom.js +0 -55
- package/lib/dialog/Error.d.ts +0 -9
- package/lib/dialog/Error.js +0 -32
- package/lib/dialog/Information.d.ts +0 -9
- package/lib/dialog/Information.js +0 -32
- package/lib/dialog/Question.d.ts +0 -9
- package/lib/dialog/Question.js +0 -63
- package/lib/dialog/Warning.d.ts +0 -9
- package/lib/dialog/Warning.js +0 -32
- package/lib/dialog/base/Content.d.ts +0 -9
- package/lib/dialog/base/Content.js +0 -22
- package/lib/dialog/base/Footer.d.ts +0 -9
- package/lib/dialog/base/Footer.js +0 -12
- package/lib/dialog/base/Header.d.ts +0 -9
- package/lib/dialog/base/Header.js +0 -57
- package/lib/dialog/base/index.d.ts +0 -15
- package/lib/dialog/base/index.js +0 -203
- package/lib/dialog/base/style.js +0 -13
- package/lib/dialog/form/index.d.ts +0 -10
- package/lib/dialog/form/index.js +0 -127
- package/lib/dialog/index.d.ts +0 -16
- package/lib/dialog/index.js +0 -51
- package/lib/dialog/types.d.ts +0 -116
- package/lib/dialog/types.js +0 -5
- package/lib/dialog/wizard/index.d.ts +0 -13
- package/lib/dialog/wizard/index.js +0 -79
- package/lib/dialog/wizard/progressbar.d.ts +0 -14
- package/lib/dialog/wizard/progressbar.js +0 -38
- package/lib/dialog/wizard/step.d.ts +0 -9
- package/lib/dialog/wizard/step.js +0 -22
- package/lib/dialog/wizard/useWizard.d.ts +0 -9
- package/lib/dialog/wizard/useWizard.js +0 -47
- package/lib/drawer/Content.d.ts +0 -10
- package/lib/drawer/Content.js +0 -25
- package/lib/drawer/Drawer.d.ts +0 -10
- package/lib/drawer/Drawer.js +0 -144
- package/lib/drawer/Header.d.ts +0 -10
- package/lib/drawer/Header.js +0 -75
- package/lib/drawer/helpers.d.ts +0 -10
- package/lib/drawer/helpers.js +0 -10
- package/lib/drawer/index.d.ts +0 -12
- package/lib/drawer/index.js +0 -25
- package/lib/drawer/types.d.ts +0 -42
- package/lib/drawer/types.js +0 -5
- package/lib/dropdown/Popup.d.ts +0 -6
- package/lib/dropdown/Popup.js +0 -90
- package/lib/dropdown/helper.d.ts +0 -4
- package/lib/dropdown/helper.js +0 -16
- package/lib/dropdown/types.d.ts +0 -48
- package/lib/dropdown/types.js +0 -5
- package/lib/dropdown/withDropdown.d.ts +0 -10
- package/lib/dropdown/withDropdown.js +0 -92
- package/lib/fieldset/index.d.ts +0 -8
- package/lib/fieldset/index.js +0 -82
- package/lib/fieldset/types.d.ts +0 -30
- package/lib/fieldset/types.js +0 -5
- package/lib/form/Field.d.ts +0 -14
- package/lib/form/Field.js +0 -134
- package/lib/form/FieldArray.d.ts +0 -14
- package/lib/form/FieldArray.js +0 -101
- package/lib/form/FieldNumber.d.ts +0 -14
- package/lib/form/FieldNumber.js +0 -76
- package/lib/form/FieldPeriod.d.ts +0 -14
- package/lib/form/FieldPeriod.js +0 -100
- package/lib/form/helpers.d.ts +0 -19
- package/lib/form/helpers.js +0 -50
- package/lib/form/index.d.ts +0 -18
- package/lib/form/index.js +0 -307
- package/lib/form/types.d.ts +0 -255
- package/lib/form/types.js +0 -5
- package/lib/form/withFieldHOC.d.ts +0 -14
- package/lib/form/withFieldHOC.js +0 -72
- package/lib/form/withFormSecurity.d.ts +0 -15
- package/lib/form/withFormSecurity.js +0 -54
- package/lib/form2/helpers.d.ts +0 -8
- package/lib/form2/helpers.js +0 -41
- package/lib/form2/index.d.ts +0 -9
- package/lib/form2/index.js +0 -36
- package/lib/form2/types.d.ts +0 -129
- package/lib/form2/types.js +0 -5
- package/lib/form2/useForm/index.d.ts +0 -5
- package/lib/form2/useForm/index.js +0 -210
- package/lib/gridlayout/GridCol.d.ts +0 -6
- package/lib/gridlayout/GridCol.js +0 -34
- package/lib/gridlayout/GridRow.d.ts +0 -6
- package/lib/gridlayout/GridRow.js +0 -31
- package/lib/gridlayout/index.d.ts +0 -8
- package/lib/gridlayout/index.js +0 -16
- package/lib/gridlayout/types.d.ts +0 -20
- package/lib/gridlayout/types.js +0 -5
- package/lib/hint/helpers.d.ts +0 -3
- package/lib/hint/helpers.js +0 -21
- package/lib/hint/index.d.ts +0 -7
- package/lib/hint/index.js +0 -30
- package/lib/hint/types.d.ts +0 -14
- package/lib/hint/types.js +0 -5
- package/lib/icons/helper.d.ts +0 -668
- package/lib/icons/helper.js +0 -672
- package/lib/icons/index.d.ts +0 -13
- package/lib/icons/index.js +0 -78
- package/lib/icons/types.d.ts +0 -46
- package/lib/icons/types.js +0 -5
- package/lib/index-02a27c19.d.ts +0 -26
- package/lib/index-053f615b.d.ts +0 -26
- package/lib/index-25b80f32.d.ts +0 -22
- package/lib/index-368f781f.d.ts +0 -15
- package/lib/index-696662fe.d.ts +0 -15
- package/lib/index-6f5c772d.d.ts +0 -23
- package/lib/index-6fcf446c.d.ts +0 -26
- package/lib/index-7159df18.d.ts +0 -21
- package/lib/index-c9247c1f.d.ts +0 -15
- package/lib/index-ecafc8c6.d.ts +0 -30
- package/lib/index.d.ts +0 -40
- package/lib/index.js +0 -69
- package/lib/inputs/base/InputTextBase.d.ts +0 -11
- package/lib/inputs/base/InputTextBase.js +0 -278
- package/lib/inputs/base/helpers.d.ts +0 -17
- package/lib/inputs/base/helpers.js +0 -42
- package/lib/inputs/base/types.d.ts +0 -92
- package/lib/inputs/base/types.js +0 -5
- package/lib/inputs/color/index.d.ts +0 -7
- package/lib/inputs/color/index.js +0 -94
- package/lib/inputs/color/types.d.ts +0 -19
- package/lib/inputs/color/types.js +0 -5
- package/lib/inputs/date/Dialog.d.ts +0 -13
- package/lib/inputs/date/Dialog.js +0 -26
- package/lib/inputs/date/Dropdown.d.ts +0 -13
- package/lib/inputs/date/Dropdown.js +0 -40
- package/lib/inputs/date/helpers.d.ts +0 -37
- package/lib/inputs/date/helpers.js +0 -48
- package/lib/inputs/date/index.d.ts +0 -13
- package/lib/inputs/date/index.js +0 -300
- package/lib/inputs/date/types.d.ts +0 -64
- package/lib/inputs/date/types.js +0 -5
- package/lib/inputs/errorMessage/index.d.ts +0 -16
- package/lib/inputs/errorMessage/index.js +0 -25
- package/lib/inputs/file/DefaultFile.d.ts +0 -13
- package/lib/inputs/file/DefaultFile.js +0 -80
- package/lib/inputs/file/DragDropFile.d.ts +0 -13
- package/lib/inputs/file/DragDropFile.js +0 -273
- package/lib/inputs/file/File.d.ts +0 -13
- package/lib/inputs/file/File.js +0 -64
- package/lib/inputs/file/FileButtonSettings.d.ts +0 -13
- package/lib/inputs/file/FileButtonSettings.js +0 -33
- package/lib/inputs/file/helpers.d.ts +0 -13
- package/lib/inputs/file/helpers.js +0 -21
- package/lib/inputs/file/index.d.ts +0 -16
- package/lib/inputs/file/index.js +0 -23
- package/lib/inputs/file/types.d.ts +0 -57
- package/lib/inputs/file/types.js +0 -5
- package/lib/inputs/inputHOC.d.ts +0 -16
- package/lib/inputs/inputHOC.js +0 -43
- package/lib/inputs/mask/BaseMask.d.ts +0 -12
- package/lib/inputs/mask/BaseMask.js +0 -171
- package/lib/inputs/mask/Cnpj.d.ts +0 -15
- package/lib/inputs/mask/Cnpj.js +0 -59
- package/lib/inputs/mask/Cpf.d.ts +0 -15
- package/lib/inputs/mask/Cpf.js +0 -56
- package/lib/inputs/mask/Phone.d.ts +0 -12
- package/lib/inputs/mask/Phone.js +0 -19
- package/lib/inputs/mask/ZipCode.d.ts +0 -12
- package/lib/inputs/mask/ZipCode.js +0 -14
- package/lib/inputs/mask/helpers.d.ts +0 -15
- package/lib/inputs/mask/helpers.js +0 -119
- package/lib/inputs/mask/index.d.ts +0 -17
- package/lib/inputs/mask/index.js +0 -37
- package/lib/inputs/mask/types.d.ts +0 -80
- package/lib/inputs/mask/types.js +0 -5
- package/lib/inputs/multiSelect/ActionButtons.d.ts +0 -13
- package/lib/inputs/multiSelect/ActionButtons.js +0 -50
- package/lib/inputs/multiSelect/Dropdown.d.ts +0 -13
- package/lib/inputs/multiSelect/Dropdown.js +0 -137
- package/lib/inputs/multiSelect/helper.d.ts +0 -13
- package/lib/inputs/multiSelect/helper.js +0 -21
- package/lib/inputs/multiSelect/index.d.ts +0 -13
- package/lib/inputs/multiSelect/index.js +0 -237
- package/lib/inputs/multiSelect/types.d.ts +0 -67
- package/lib/inputs/multiSelect/types.js +0 -5
- package/lib/inputs/number/BaseNumber.d.ts +0 -17
- package/lib/inputs/number/BaseNumber.js +0 -78
- package/lib/inputs/number/Currency.d.ts +0 -17
- package/lib/inputs/number/Currency.js +0 -29
- package/lib/inputs/number/Decimal.d.ts +0 -17
- package/lib/inputs/number/Decimal.js +0 -11
- package/lib/inputs/number/format_number.d.ts +0 -5
- package/lib/inputs/number/format_number.js +0 -29
- package/lib/inputs/number/index.d.ts +0 -19
- package/lib/inputs/number/index.js +0 -64
- package/lib/inputs/number/types.d.ts +0 -39
- package/lib/inputs/number/types.js +0 -5
- package/lib/inputs/period/Dialog.d.ts +0 -14
- package/lib/inputs/period/Dialog.js +0 -27
- package/lib/inputs/period/Dropdown.d.ts +0 -14
- package/lib/inputs/period/Dropdown.js +0 -39
- package/lib/inputs/period/PeriodList.d.ts +0 -14
- package/lib/inputs/period/PeriodList.js +0 -52
- package/lib/inputs/period/helper.d.ts +0 -22
- package/lib/inputs/period/helper.js +0 -64
- package/lib/inputs/period/index.d.ts +0 -14
- package/lib/inputs/period/index.js +0 -544
- package/lib/inputs/period/types.d.ts +0 -78
- package/lib/inputs/period/types.js +0 -5
- package/lib/inputs/search/index.d.ts +0 -16
- package/lib/inputs/search/index.js +0 -132
- package/lib/inputs/select/ActionButtons.d.ts +0 -16
- package/lib/inputs/select/ActionButtons.js +0 -39
- package/lib/inputs/select/Dropdown.d.ts +0 -16
- package/lib/inputs/select/Dropdown.js +0 -113
- package/lib/inputs/select/helper.d.ts +0 -25
- package/lib/inputs/select/helper.js +0 -111
- package/lib/inputs/select/index.d.ts +0 -13
- package/lib/inputs/select/index.js +0 -42
- package/lib/inputs/select/multiple/Selecteds.d.ts +0 -13
- package/lib/inputs/select/multiple/Selecteds.js +0 -27
- package/lib/inputs/select/multiple/index.d.ts +0 -13
- package/lib/inputs/select/multiple/index.js +0 -289
- package/lib/inputs/select/simple/index.d.ts +0 -13
- package/lib/inputs/select/simple/index.js +0 -318
- package/lib/inputs/select/types.d.ts +0 -125
- package/lib/inputs/select/types.js +0 -5
- package/lib/inputs/text/index.d.ts +0 -12
- package/lib/inputs/text/index.js +0 -13
- package/lib/inputs/text/types.d.ts +0 -24
- package/lib/inputs/text/types.js +0 -5
- package/lib/inputs/textarea/index.d.ts +0 -12
- package/lib/inputs/textarea/index.js +0 -25
- package/lib/inputs/textarea/types.d.ts +0 -16
- package/lib/inputs/textarea/types.js +0 -5
- package/lib/inputs/types.d.ts +0 -159
- package/lib/inputs/types.js +0 -5
- package/lib/inputs2/checkboxfield/base.d.ts +0 -29
- package/lib/inputs2/checkboxfield/base.js +0 -134
- package/lib/inputs2/checkboxfield/index.d.ts +0 -8
- package/lib/inputs2/checkboxfield/index.js +0 -57
- package/lib/inputs2/colorfield/index.d.ts +0 -10
- package/lib/inputs2/colorfield/index.js +0 -119
- package/lib/inputs2/date/base/constants.d.ts +0 -7
- package/lib/inputs2/date/base/constants.js +0 -44
- package/lib/inputs2/date/base/index.d.ts +0 -12
- package/lib/inputs2/date/base/index.js +0 -177
- package/lib/inputs2/date/datefield/base.d.ts +0 -13
- package/lib/inputs2/date/datefield/base.js +0 -330
- package/lib/inputs2/date/datefield/calendarbox.d.ts +0 -7
- package/lib/inputs2/date/datefield/calendarbox.js +0 -116
- package/lib/inputs2/date/datefield/context.d.ts +0 -14
- package/lib/inputs2/date/datefield/context.js +0 -15
- package/lib/inputs2/date/datefield/index.d.ts +0 -10
- package/lib/inputs2/date/datefield/index.js +0 -57
- package/lib/inputs2/date/datefield/triggers.d.ts +0 -8
- package/lib/inputs2/date/datefield/triggers.js +0 -46
- package/lib/inputs2/date/datefield/types.d.ts +0 -65
- package/lib/inputs2/date/datefield/types.js +0 -5
- package/lib/inputs2/date/dateperiodfield/base.d.ts +0 -13
- package/lib/inputs2/date/dateperiodfield/base.js +0 -595
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +0 -7
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +0 -138
- package/lib/inputs2/date/dateperiodfield/context.d.ts +0 -14
- package/lib/inputs2/date/dateperiodfield/context.js +0 -17
- package/lib/inputs2/date/dateperiodfield/index.d.ts +0 -10
- package/lib/inputs2/date/dateperiodfield/index.js +0 -57
- package/lib/inputs2/date/dateperiodfield/triggers.d.ts +0 -6
- package/lib/inputs2/date/dateperiodfield/triggers.js +0 -125
- package/lib/inputs2/date/dateperiodfield/types.d.ts +0 -103
- package/lib/inputs2/date/dateperiodfield/types.js +0 -19
- package/lib/inputs2/date/helpers.d.ts +0 -21
- package/lib/inputs2/date/helpers.js +0 -62
- package/lib/inputs2/date/types.d.ts +0 -60
- package/lib/inputs2/date/types.js +0 -19
- package/lib/inputs2/filefield/index.d.ts +0 -10
- package/lib/inputs2/filefield/index.js +0 -174
- package/lib/inputs2/index.d.ts +0 -38
- package/lib/inputs2/index.js +0 -37
- package/lib/inputs2/mask/BaseMask.d.ts +0 -11
- package/lib/inputs2/mask/BaseMask.js +0 -95
- package/lib/inputs2/mask/Cnpj.d.ts +0 -12
- package/lib/inputs2/mask/Cnpj.js +0 -56
- package/lib/inputs2/mask/Cpf.d.ts +0 -12
- package/lib/inputs2/mask/Cpf.js +0 -52
- package/lib/inputs2/mask/Phone.d.ts +0 -12
- package/lib/inputs2/mask/Phone.js +0 -25
- package/lib/inputs2/mask/ZipCode.d.ts +0 -12
- package/lib/inputs2/mask/ZipCode.js +0 -22
- package/lib/inputs2/mask/helpers.d.ts +0 -4
- package/lib/inputs2/mask/helpers.js +0 -57
- package/lib/inputs2/numberfield/currency.d.ts +0 -14
- package/lib/inputs2/numberfield/currency.js +0 -91
- package/lib/inputs2/numberfield/decimal.d.ts +0 -14
- package/lib/inputs2/numberfield/decimal.js +0 -85
- package/lib/inputs2/numberfield/helpers.d.ts +0 -30
- package/lib/inputs2/numberfield/helpers.js +0 -53
- package/lib/inputs2/numberfield/index.d.ts +0 -13
- package/lib/inputs2/numberfield/index.js +0 -121
- package/lib/inputs2/numberfield/types.d.ts +0 -37
- package/lib/inputs2/numberfield/types.js +0 -5
- package/lib/inputs2/radiofield/base.d.ts +0 -12
- package/lib/inputs2/radiofield/base.js +0 -156
- package/lib/inputs2/radiofield/index.d.ts +0 -9
- package/lib/inputs2/radiofield/index.js +0 -55
- package/lib/inputs2/radiofield/types.d.ts +0 -36
- package/lib/inputs2/radiofield/types.js +0 -5
- package/lib/inputs2/selectfield/base.d.ts +0 -11
- package/lib/inputs2/selectfield/base.js +0 -513
- package/lib/inputs2/selectfield/context.d.ts +0 -39
- package/lib/inputs2/selectfield/context.js +0 -15
- package/lib/inputs2/selectfield/helpers.d.ts +0 -6
- package/lib/inputs2/selectfield/helpers.js +0 -25
- package/lib/inputs2/selectfield/index.d.ts +0 -11
- package/lib/inputs2/selectfield/index.js +0 -84
- package/lib/inputs2/selectfield/item.d.ts +0 -12
- package/lib/inputs2/selectfield/item.js +0 -89
- package/lib/inputs2/selectfield/listbox.d.ts +0 -7
- package/lib/inputs2/selectfield/listbox.js +0 -117
- package/lib/inputs2/selectfield/options.d.ts +0 -9
- package/lib/inputs2/selectfield/options.js +0 -26
- package/lib/inputs2/selectfield/search.d.ts +0 -7
- package/lib/inputs2/selectfield/search.js +0 -70
- package/lib/inputs2/selectfield/selections.d.ts +0 -10
- package/lib/inputs2/selectfield/selections.js +0 -87
- package/lib/inputs2/selectfield/triggers.d.ts +0 -8
- package/lib/inputs2/selectfield/triggers.js +0 -109
- package/lib/inputs2/selectfield/types.d.ts +0 -56
- package/lib/inputs2/selectfield/types.js +0 -21
- package/lib/inputs2/slot/index.d.ts +0 -14
- package/lib/inputs2/slot/index.js +0 -47
- package/lib/inputs2/textareafield/base.d.ts +0 -26
- package/lib/inputs2/textareafield/base.js +0 -166
- package/lib/inputs2/textareafield/index.d.ts +0 -9
- package/lib/inputs2/textareafield/index.js +0 -70
- package/lib/inputs2/textfield/base.d.ts +0 -26
- package/lib/inputs2/textfield/base.js +0 -131
- package/lib/inputs2/textfield/index.d.ts +0 -9
- package/lib/inputs2/textfield/index.js +0 -70
- package/lib/internals/colorStyles.d.ts +0 -9
- package/lib/internals/colorStyles.js +0 -14
- package/lib/internals/constants.d.ts +0 -14
- package/lib/internals/constants.js +0 -18
- package/lib/internals/types.d.ts +0 -9
- package/lib/internals/types.js +0 -5
- package/lib/labelMessages/index.d.ts +0 -9
- package/lib/labelMessages/index.js +0 -58
- package/lib/labelMessages/types.d.ts +0 -20
- package/lib/labelMessages/types.js +0 -5
- package/lib/labels/DangerLabel.d.ts +0 -12
- package/lib/labels/DangerLabel.js +0 -18
- package/lib/labels/DefaultLabel.d.ts +0 -12
- package/lib/labels/DefaultLabel.js +0 -59
- package/lib/labels/InfoLabel.d.ts +0 -12
- package/lib/labels/InfoLabel.js +0 -18
- package/lib/labels/PrimaryLabel.d.ts +0 -12
- package/lib/labels/PrimaryLabel.js +0 -18
- package/lib/labels/SuccessLabel.d.ts +0 -12
- package/lib/labels/SuccessLabel.js +0 -18
- package/lib/labels/WarningLabel.d.ts +0 -12
- package/lib/labels/WarningLabel.js +0 -18
- package/lib/labels/index.d.ts +0 -19
- package/lib/labels/index.js +0 -52
- package/lib/labels/label_container/index.d.ts +0 -12
- package/lib/labels/label_container/index.js +0 -22
- package/lib/labels/types.d.ts +0 -23
- package/lib/labels/types.js +0 -5
- package/lib/list/Header.d.ts +0 -11
- package/lib/list/Header.js +0 -23
- package/lib/list/Item.d.ts +0 -11
- package/lib/list/Item.js +0 -165
- package/lib/list/Separator.d.ts +0 -3
- package/lib/list/Separator.js +0 -12
- package/lib/list/helpers.d.ts +0 -16
- package/lib/list/helpers.js +0 -14
- package/lib/list/index.d.ts +0 -14
- package/lib/list/index.js +0 -180
- package/lib/list/types.d.ts +0 -71
- package/lib/list/types.js +0 -5
- package/lib/menus/float/MenuItem.d.ts +0 -9
- package/lib/menus/float/MenuItem.js +0 -68
- package/lib/menus/float/SubMenuContainer.js +0 -76
- package/lib/menus/float/helpers.d.ts +0 -9
- package/lib/menus/float/helpers.js +0 -10
- package/lib/menus/float/index.d.ts +0 -40
- package/lib/menus/float/index.js +0 -68
- package/lib/menus/float/types.d.ts +0 -30
- package/lib/menus/float/types.js +0 -5
- package/lib/menus/index.d.ts +0 -12
- package/lib/menus/index.js +0 -9
- package/lib/menus/sidenav/ExpandMenu.d.ts +0 -12
- package/lib/menus/sidenav/ExpandMenu.js +0 -27
- package/lib/menus/sidenav/MenuLink.d.ts +0 -12
- package/lib/menus/sidenav/MenuLink.js +0 -37
- package/lib/menus/sidenav/NavMenuGroup.d.ts +0 -12
- package/lib/menus/sidenav/NavMenuGroup.js +0 -25
- package/lib/menus/sidenav/NavMenuItem.d.ts +0 -12
- package/lib/menus/sidenav/NavMenuItem.js +0 -151
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +0 -12
- package/lib/menus/sidenav/NavSubMenuItem.js +0 -42
- package/lib/menus/sidenav/helpers.d.ts +0 -14
- package/lib/menus/sidenav/helpers.js +0 -18
- package/lib/menus/sidenav/index.d.ts +0 -16
- package/lib/menus/sidenav/index.js +0 -183
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +0 -12
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +0 -26
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +0 -12
- package/lib/menus/sidenav/popup_menu_search/index.js +0 -115
- package/lib/menus/sidenav/types.d.ts +0 -90
- package/lib/menus/sidenav/types.js +0 -5
- package/lib/noPermission/index.d.ts +0 -3
- package/lib/noPermission/index.js +0 -23
- package/lib/panel/Content.d.ts +0 -10
- package/lib/panel/Content.js +0 -83
- package/lib/panel/DangerPanel.d.ts +0 -10
- package/lib/panel/DangerPanel.js +0 -15
- package/lib/panel/Default.d.ts +0 -10
- package/lib/panel/Default.js +0 -66
- package/lib/panel/Header.d.ts +0 -10
- package/lib/panel/Header.js +0 -74
- package/lib/panel/InfoPanel.d.ts +0 -10
- package/lib/panel/InfoPanel.js +0 -15
- package/lib/panel/PrimaryPanel.d.ts +0 -10
- package/lib/panel/PrimaryPanel.js +0 -15
- package/lib/panel/SuccessPanel.d.ts +0 -10
- package/lib/panel/SuccessPanel.js +0 -15
- package/lib/panel/ToolBar.d.ts +0 -10
- package/lib/panel/ToolBar.js +0 -22
- package/lib/panel/WarningPanel.d.ts +0 -10
- package/lib/panel/WarningPanel.js +0 -15
- package/lib/panel/helpers.d.ts +0 -11
- package/lib/panel/helpers.js +0 -25
- package/lib/panel/index.d.ts +0 -18
- package/lib/panel/index.js +0 -59
- package/lib/panel/types.d.ts +0 -47
- package/lib/panel/types.js +0 -5
- package/lib/permissionValidations.d.ts +0 -14
- package/lib/permissionValidations.js +0 -59
- package/lib/popover/PopoverText.d.ts +0 -11
- package/lib/popover/PopoverText.js +0 -28
- package/lib/popover/PopoverTitle.d.ts +0 -11
- package/lib/popover/PopoverTitle.js +0 -17
- package/lib/popover/index.d.ts +0 -13
- package/lib/popover/index.js +0 -70
- package/lib/popover/types.d.ts +0 -36
- package/lib/popover/types.js +0 -5
- package/lib/progress/Bar.d.ts +0 -6
- package/lib/progress/Bar.js +0 -74
- package/lib/progress/index.d.ts +0 -7
- package/lib/progress/index.js +0 -38
- package/lib/progress/types.d.ts +0 -37
- package/lib/progress/types.js +0 -5
- package/lib/radio/index.d.ts +0 -16
- package/lib/radio/index.js +0 -114
- package/lib/radio/types.d.ts +0 -28
- package/lib/radio/types.js +0 -5
- package/lib/shortcuts/index.d.ts +0 -7
- package/lib/shortcuts/index.js +0 -28
- package/lib/shortcuts/types.d.ts +0 -12
- package/lib/shortcuts/types.js +0 -5
- package/lib/skeleton/SkeletonContainer.d.ts +0 -7
- package/lib/skeleton/SkeletonContainer.js +0 -22
- package/lib/skeleton/index.d.ts +0 -8
- package/lib/skeleton/index.js +0 -51
- package/lib/skeleton/types.d.ts +0 -21
- package/lib/skeleton/types.js +0 -5
- package/lib/spinner/SpinnerLoading.d.ts +0 -7
- package/lib/spinner/SpinnerLoading.js +0 -220
- package/lib/spinner/index.d.ts +0 -7
- package/lib/spinner/index.js +0 -59
- package/lib/spinner/types.d.ts +0 -20
- package/lib/spinner/types.js +0 -5
- package/lib/split/Split.d.ts +0 -6
- package/lib/split/Split.js +0 -291
- package/lib/split/SplitSide.d.ts +0 -6
- package/lib/split/SplitSide.js +0 -41
- package/lib/split/helpers.d.ts +0 -10
- package/lib/split/helpers.js +0 -10
- package/lib/split/index.d.ts +0 -8
- package/lib/split/index.js +0 -17
- package/lib/split/types.d.ts +0 -34
- package/lib/split/types.js +0 -5
- package/lib/table/Body.d.ts +0 -8
- package/lib/table/Body.js +0 -70
- package/lib/table/Header.d.ts +0 -8
- package/lib/table/Header.js +0 -92
- package/lib/table/HeaderColumn.d.ts +0 -8
- package/lib/table/HeaderColumn.js +0 -54
- package/lib/table/Row.d.ts +0 -8
- package/lib/table/Row.js +0 -88
- package/lib/table/RowColumn.d.ts +0 -8
- package/lib/table/RowColumn.js +0 -80
- package/lib/table/helpers.d.ts +0 -10
- package/lib/table/helpers.js +0 -15
- package/lib/table/index.d.ts +0 -13
- package/lib/table/index.js +0 -152
- package/lib/table/types.d.ts +0 -100
- package/lib/table/types.js +0 -5
- package/lib/tabs/DropdownTabs.d.ts +0 -11
- package/lib/tabs/DropdownTabs.js +0 -86
- package/lib/tabs/Menu.d.ts +0 -11
- package/lib/tabs/Menu.js +0 -48
- package/lib/tabs/MenuTabs.d.ts +0 -11
- package/lib/tabs/MenuTabs.js +0 -90
- package/lib/tabs/Panel.d.ts +0 -11
- package/lib/tabs/Panel.js +0 -85
- package/lib/tabs/context.d.ts +0 -12
- package/lib/tabs/context.js +0 -131
- package/lib/tabs/index.d.ts +0 -12
- package/lib/tabs/index.js +0 -75
- package/lib/tabs/tabHelpers.d.ts +0 -12
- package/lib/tabs/tabHelpers.js +0 -70
- package/lib/tabs/types.d.ts +0 -105
- package/lib/tabs/types.js +0 -5
- package/lib/tabs/useTabs.d.ts +0 -11
- package/lib/tabs/useTabs.js +0 -11
- package/lib/textContent/index.d.ts +0 -17
- package/lib/textContent/index.js +0 -46
- package/lib/toolbar/ButtonBar.d.ts +0 -12
- package/lib/toolbar/ButtonBar.js +0 -65
- package/lib/toolbar/LabelBar.d.ts +0 -12
- package/lib/toolbar/LabelBar.js +0 -57
- package/lib/toolbar/Separator.d.ts +0 -3
- package/lib/toolbar/Separator.js +0 -12
- package/lib/toolbar/ToolBarGroup.d.ts +0 -12
- package/lib/toolbar/ToolBarGroup.js +0 -19
- package/lib/toolbar/helpers.d.ts +0 -12
- package/lib/toolbar/helpers.js +0 -9
- package/lib/toolbar/index.d.ts +0 -16
- package/lib/toolbar/index.js +0 -65
- package/lib/toolbar/types.d.ts +0 -47
- package/lib/toolbar/types.js +0 -5
- package/lib/tooltip/TooltipContent.d.ts +0 -7
- package/lib/tooltip/TooltipContent.js +0 -64
- package/lib/tooltip/index.d.ts +0 -7
- package/lib/tooltip/index.js +0 -46
- package/lib/tooltip/types.d.ts +0 -39
- package/lib/tooltip/types.js +0 -5
- package/lib/tooltip/useTooltip.d.ts +0 -30
- package/lib/tooltip/useTooltip.js +0 -153
- package/lib/treetable/Body.d.ts +0 -3
- package/lib/treetable/Body.js +0 -33
- package/lib/treetable/Header.d.ts +0 -3
- package/lib/treetable/Header.js +0 -23
- package/lib/treetable/Row.d.ts +0 -9
- package/lib/treetable/Row.js +0 -236
- package/lib/treetable/helpers.d.ts +0 -21
- package/lib/treetable/helpers.js +0 -32
- package/lib/treetable/index.d.ts +0 -10
- package/lib/treetable/index.js +0 -28
- package/lib/treetable/types.d.js +0 -5
- package/lib/treeview/Header.d.ts +0 -7
- package/lib/treeview/Header.js +0 -21
- package/lib/treeview/Node.d.ts +0 -7
- package/lib/treeview/Node.js +0 -244
- package/lib/treeview/constants.d.ts +0 -7
- package/lib/treeview/constants.js +0 -9
- package/lib/treeview/index.d.ts +0 -9
- package/lib/treeview/index.js +0 -319
- package/lib/treeview/types.d.ts +0 -108
- package/lib/treeview/types.js +0 -5
- package/lib/types.d-b477e076.d.ts +0 -47
- package/lib/uitour/helpers.d.ts +0 -8
- package/lib/uitour/helpers.js +0 -12
- package/lib/uitour/index.d.ts +0 -7
- package/lib/uitour/index.js +0 -256
- package/lib/uitour/types.d.ts +0 -38
- package/lib/uitour/types.js +0 -5
|
@@ -1,544 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
require("../../assets/styles/periodpicker.scss");
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _moment = _interopRequireDefault(require("moment"));
|
|
10
|
-
var _PeriodList = _interopRequireDefault(require("./PeriodList"));
|
|
11
|
-
var _BaseMask = _interopRequireDefault(require("../mask/BaseMask"));
|
|
12
|
-
var _Dropdown = _interopRequireDefault(require("./Dropdown"));
|
|
13
|
-
var _calendar = _interopRequireDefault(require("../../calendar"));
|
|
14
|
-
var _buttons = _interopRequireDefault(require("../../buttons"));
|
|
15
|
-
var _icons = _interopRequireDefault(require("../../icons"));
|
|
16
|
-
var _Dialog = _interopRequireDefault(require("./Dialog"));
|
|
17
|
-
var _hint = _interopRequireDefault(require("../../hint"));
|
|
18
|
-
var _gridlayout = _interopRequireDefault(require("../../gridlayout"));
|
|
19
|
-
var helperBase = _interopRequireWildcard(require("../base/helpers"));
|
|
20
|
-
var _errorMessage = require("../errorMessage");
|
|
21
|
-
var _textContent = _interopRequireDefault(require("../../textContent"));
|
|
22
|
-
var _popover = _interopRequireDefault(require("../../popover"));
|
|
23
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
24
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
25
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
28
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
29
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
30
|
-
const PeriodPicker = props => {
|
|
31
|
-
const {
|
|
32
|
-
showButtonOpen = true,
|
|
33
|
-
openOnFocus = true,
|
|
34
|
-
shouldCloseOnSelect = true,
|
|
35
|
-
calendarColorStyle,
|
|
36
|
-
showCalendarInDialog = false,
|
|
37
|
-
dialogSize = {
|
|
38
|
-
width: '350px',
|
|
39
|
-
height: '350px'
|
|
40
|
-
},
|
|
41
|
-
hint,
|
|
42
|
-
hintPosition = 'below',
|
|
43
|
-
themePopover = 'light',
|
|
44
|
-
popoverAlign = 'left',
|
|
45
|
-
gridLayout
|
|
46
|
-
} = props;
|
|
47
|
-
const idValueInitial = (0, _react.useId)();
|
|
48
|
-
const idValueFinal = (0, _react.useId)();
|
|
49
|
-
const [valueInitial, setValueInitial] = (0, _react.useState)(props.value && (0, _moment.default)(props.value.initial, 'DD/MM/YYYY'));
|
|
50
|
-
const [valueFinal, setValueFinal] = (0, _react.useState)(props.value && (0, _moment.default)(props.value.final, 'DD/MM/YYYY'));
|
|
51
|
-
const [valuePeriodSelection, setValuePeriodSelection] = (0, _react.useState)('week');
|
|
52
|
-
const [showCalendarValueInitial, setShowCalendarValueInitial] = (0, _react.useState)(false);
|
|
53
|
-
const [showCalendarValueFinal, setShowCalendarValueFinal] = (0, _react.useState)(false);
|
|
54
|
-
const [showPeriodSelection, setShowPeriodSelection] = (0, _react.useState)(false);
|
|
55
|
-
const [inputDimensions, setInputDimensions] = (0, _react.useState)();
|
|
56
|
-
const [onDenied, setOnDenied] = (0, _react.useState)();
|
|
57
|
-
const [currentTypeDate, setCurrentTypeDate] = (0, _react.useState)('valueInitial');
|
|
58
|
-
const wrapperBaseInputPeriodRef = (0, _react.useRef)(null);
|
|
59
|
-
const inputContainerRef = (0, _react.useRef)(null);
|
|
60
|
-
const inputInitialRef = (0, _react.useRef)(null);
|
|
61
|
-
const buttonOpenRef = (0, _react.useRef)(null);
|
|
62
|
-
const currentDateButtonRef = (0, _react.useRef)();
|
|
63
|
-
const buttonSelectPeriodRef = (0, _react.useRef)(null);
|
|
64
|
-
const dropdownCalendarContainer = (0, _react.useRef)(null);
|
|
65
|
-
const inputFinalRef = (0, _react.useRef)(null);
|
|
66
|
-
const calendarContainerRef = (0, _react.useRef)(null);
|
|
67
|
-
const onScreenResize = () => {
|
|
68
|
-
var _inputContainerRef$cu;
|
|
69
|
-
setInputDimensions(inputContainerRef === null || inputContainerRef === void 0 ? void 0 : (_inputContainerRef$cu = inputContainerRef.current) === null || _inputContainerRef$cu === void 0 ? void 0 : _inputContainerRef$cu.getBoundingClientRect());
|
|
70
|
-
};
|
|
71
|
-
const onBlurWithoutWrapper = event => {
|
|
72
|
-
var _wrapperBaseInputPeri;
|
|
73
|
-
const focusOnAnotherField = !((_wrapperBaseInputPeri = wrapperBaseInputPeriodRef.current) !== null && _wrapperBaseInputPeri !== void 0 && _wrapperBaseInputPeri.contains(event.relatedTarget));
|
|
74
|
-
if (!showCalendarInDialog && showCalendarValueInitial && focusOnAnotherField) {
|
|
75
|
-
setShowCalendarValueInitial(false);
|
|
76
|
-
}
|
|
77
|
-
if (!showCalendarInDialog && showCalendarValueFinal && focusOnAnotherField) {
|
|
78
|
-
setShowCalendarValueFinal(false);
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
const onKeyDownPress = event => {
|
|
82
|
-
const {
|
|
83
|
-
target
|
|
84
|
-
} = event;
|
|
85
|
-
const targetElement = target;
|
|
86
|
-
if (calendarContainerRef.current && event && event.key && event.key === 'Escape') {
|
|
87
|
-
event.preventDefault();
|
|
88
|
-
targetElement.focus();
|
|
89
|
-
if (showCalendarValueInitial) {
|
|
90
|
-
if (targetElement.id !== 'valueInitial') {
|
|
91
|
-
var _inputInitialRef$curr;
|
|
92
|
-
(_inputInitialRef$curr = inputInitialRef.current) === null || _inputInitialRef$curr === void 0 ? void 0 : _inputInitialRef$curr.focus();
|
|
93
|
-
}
|
|
94
|
-
setShowCalendarValueInitial(false);
|
|
95
|
-
}
|
|
96
|
-
if (showCalendarValueFinal) {
|
|
97
|
-
if (targetElement.id !== 'valueFinal') {
|
|
98
|
-
var _inputFinalRef$curren;
|
|
99
|
-
(_inputFinalRef$curren = inputFinalRef.current) === null || _inputFinalRef$curren === void 0 ? void 0 : _inputFinalRef$curren.focus();
|
|
100
|
-
}
|
|
101
|
-
setShowCalendarValueFinal(false);
|
|
102
|
-
}
|
|
103
|
-
if (showPeriodSelection) {
|
|
104
|
-
var _inputFinalRef$curren2;
|
|
105
|
-
setShowPeriodSelection(false);
|
|
106
|
-
(_inputFinalRef$curren2 = inputFinalRef.current) === null || _inputFinalRef$curren2 === void 0 ? void 0 : _inputFinalRef$curren2.focus();
|
|
107
|
-
setShowCalendarValueFinal(false);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
event.stopPropagation();
|
|
111
|
-
};
|
|
112
|
-
const keepPositionCalendarByScroll = () => {
|
|
113
|
-
var _inputContainerRef$cu2;
|
|
114
|
-
const inputDateDimensions = (_inputContainerRef$cu2 = inputContainerRef.current) === null || _inputContainerRef$cu2 === void 0 ? void 0 : _inputContainerRef$cu2.getBoundingClientRect();
|
|
115
|
-
const positionTop = inputDateDimensions && inputDateDimensions.bottom;
|
|
116
|
-
if (dropdownCalendarContainer && dropdownCalendarContainer.current && inputDateDimensions) {
|
|
117
|
-
dropdownCalendarContainer.current.style.top = String(positionTop).concat('px');
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
const openCalendar = calendarName => {
|
|
121
|
-
if (calendarName === 'valueInitial') {
|
|
122
|
-
setCurrentTypeDate('valueInitial');
|
|
123
|
-
setShowCalendarValueFinal(false);
|
|
124
|
-
if (!showCalendarValueInitial) {
|
|
125
|
-
var _inputInitialRef$curr2;
|
|
126
|
-
(_inputInitialRef$curr2 = inputInitialRef.current) === null || _inputInitialRef$curr2 === void 0 ? void 0 : _inputInitialRef$curr2.focus();
|
|
127
|
-
if (showCalendarInDialog) {
|
|
128
|
-
setTimeout(() => {
|
|
129
|
-
var _currentDateButtonRef;
|
|
130
|
-
(_currentDateButtonRef = currentDateButtonRef.current) === null || _currentDateButtonRef === void 0 ? void 0 : _currentDateButtonRef.focus();
|
|
131
|
-
}, 100);
|
|
132
|
-
}
|
|
133
|
-
setShowCalendarValueInitial(true);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
if (calendarName === 'valueFinal') {
|
|
137
|
-
setCurrentTypeDate('valueFinal');
|
|
138
|
-
setShowCalendarValueInitial(false);
|
|
139
|
-
if (!showCalendarValueFinal) {
|
|
140
|
-
var _inputFinalRef$curren3;
|
|
141
|
-
(_inputFinalRef$curren3 = inputFinalRef.current) === null || _inputFinalRef$curren3 === void 0 ? void 0 : _inputFinalRef$curren3.focus();
|
|
142
|
-
if (showCalendarInDialog) {
|
|
143
|
-
setTimeout(() => {
|
|
144
|
-
var _currentDateButtonRef2;
|
|
145
|
-
(_currentDateButtonRef2 = currentDateButtonRef.current) === null || _currentDateButtonRef2 === void 0 ? void 0 : _currentDateButtonRef2.focus();
|
|
146
|
-
}, 100);
|
|
147
|
-
}
|
|
148
|
-
setShowCalendarValueFinal(true);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
if (inputContainerRef.current) {
|
|
152
|
-
setInputDimensions(inputContainerRef.current.getBoundingClientRect());
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
const closeCalendar = calendarName => {
|
|
156
|
-
if (calendarName === 'valueInitial') {
|
|
157
|
-
var _inputInitialRef$curr3;
|
|
158
|
-
(_inputInitialRef$curr3 = inputInitialRef.current) === null || _inputInitialRef$curr3 === void 0 ? void 0 : _inputInitialRef$curr3.focus();
|
|
159
|
-
}
|
|
160
|
-
if (calendarName === 'valueFinal') {
|
|
161
|
-
var _inputFinalRef$curren4;
|
|
162
|
-
(_inputFinalRef$curren4 = inputFinalRef.current) === null || _inputFinalRef$curren4 === void 0 ? void 0 : _inputFinalRef$curren4.focus();
|
|
163
|
-
}
|
|
164
|
-
setShowCalendarValueInitial(false);
|
|
165
|
-
setShowCalendarValueFinal(false);
|
|
166
|
-
};
|
|
167
|
-
const onDateChange = date => {
|
|
168
|
-
var _props$onChange;
|
|
169
|
-
const initial = date.initial ? date.initial.format('YYYY-MM-DD') : '';
|
|
170
|
-
const final = date.final ? date.final.format('YYYY-MM-DD') : '';
|
|
171
|
-
props === null || props === void 0 ? void 0 : (_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call(props, undefined, '', {
|
|
172
|
-
initial,
|
|
173
|
-
final
|
|
174
|
-
});
|
|
175
|
-
};
|
|
176
|
-
const onCloseDateDialog = calendarName => {
|
|
177
|
-
setTimeout(() => {
|
|
178
|
-
if (calendarName === 'valueInitial') {
|
|
179
|
-
var _inputInitialRef$curr4;
|
|
180
|
-
(_inputInitialRef$curr4 = inputInitialRef.current) === null || _inputInitialRef$curr4 === void 0 ? void 0 : _inputInitialRef$curr4.focus();
|
|
181
|
-
setShowCalendarValueInitial(false);
|
|
182
|
-
}
|
|
183
|
-
if (calendarName === 'valueFinal') {
|
|
184
|
-
var _inputFinalRef$curren5;
|
|
185
|
-
(_inputFinalRef$curren5 = inputFinalRef.current) === null || _inputFinalRef$curren5 === void 0 ? void 0 : _inputFinalRef$curren5.focus();
|
|
186
|
-
setShowCalendarValueFinal(false);
|
|
187
|
-
}
|
|
188
|
-
if (calendarName === 'periodSelection') {
|
|
189
|
-
var _inputFinalRef$curren6;
|
|
190
|
-
setShowPeriodSelection(false);
|
|
191
|
-
(_inputFinalRef$curren6 = inputFinalRef.current) === null || _inputFinalRef$curren6 === void 0 ? void 0 : _inputFinalRef$curren6.focus();
|
|
192
|
-
setShowCalendarValueFinal(false);
|
|
193
|
-
}
|
|
194
|
-
}, 100);
|
|
195
|
-
};
|
|
196
|
-
const onInputFocus = e => {
|
|
197
|
-
const {
|
|
198
|
-
name
|
|
199
|
-
} = e.target;
|
|
200
|
-
if (openOnFocus) openCalendar(name);
|
|
201
|
-
if (props.onFocus) props.onFocus(e);
|
|
202
|
-
};
|
|
203
|
-
const onInputBlur = e => {
|
|
204
|
-
if (props.onBlur) props.onBlur(e);
|
|
205
|
-
};
|
|
206
|
-
const onInputChange = event => {
|
|
207
|
-
if (event) {
|
|
208
|
-
const {
|
|
209
|
-
name: changingAux,
|
|
210
|
-
value
|
|
211
|
-
} = event.target;
|
|
212
|
-
if (String(value).trim().length === 0) {
|
|
213
|
-
if (changingAux === 'valueInitial') {
|
|
214
|
-
setValueInitial(undefined);
|
|
215
|
-
} else {
|
|
216
|
-
setValueFinal(undefined);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
const setValue = function (event, value) {
|
|
222
|
-
var _inputInitialRef$curr5, _inputFinalRef$curren7;
|
|
223
|
-
let shouldOpenDropdown = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
224
|
-
const valueDateName = event ? event.target.name : '';
|
|
225
|
-
const dateObj = (0, _moment.default)(value, 'DD/MM/YYYY');
|
|
226
|
-
if (showCalendarValueInitial) (_inputInitialRef$curr5 = inputInitialRef.current) === null || _inputInitialRef$curr5 === void 0 ? void 0 : _inputInitialRef$curr5.focus();
|
|
227
|
-
if (showCalendarValueFinal) (_inputFinalRef$curren7 = inputFinalRef.current) === null || _inputFinalRef$curren7 === void 0 ? void 0 : _inputFinalRef$curren7.focus();
|
|
228
|
-
if (valueDateName === 'valueInitial') {
|
|
229
|
-
setValueInitial(dateObj);
|
|
230
|
-
onDateChange({
|
|
231
|
-
initial: dateObj,
|
|
232
|
-
final: valueFinal
|
|
233
|
-
});
|
|
234
|
-
} else {
|
|
235
|
-
setValueFinal(dateObj);
|
|
236
|
-
onDateChange({
|
|
237
|
-
initial: valueInitial,
|
|
238
|
-
final: dateObj
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
if (valueDateName === 'valueInitial' && !valueFinal && shouldOpenDropdown) {
|
|
242
|
-
var _inputFinalRef$curren8;
|
|
243
|
-
(_inputFinalRef$curren8 = inputFinalRef.current) === null || _inputFinalRef$curren8 === void 0 ? void 0 : _inputFinalRef$curren8.focus();
|
|
244
|
-
setTimeout(() => setShowCalendarValueFinal(true), 100);
|
|
245
|
-
}
|
|
246
|
-
if (shouldCloseOnSelect) {
|
|
247
|
-
setShowCalendarValueInitial(false);
|
|
248
|
-
setShowCalendarValueFinal(false);
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
|
-
const shouldDisable = () => {
|
|
252
|
-
const {
|
|
253
|
-
disabled
|
|
254
|
-
} = props;
|
|
255
|
-
return disabled || onDenied && (onDenied.disabled || onDenied.hideContent);
|
|
256
|
-
};
|
|
257
|
-
const getButtonOpen = (0, _react.useCallback)(() => {
|
|
258
|
-
if (!showButtonOpen) return null;
|
|
259
|
-
return /*#__PURE__*/_react.default.createElement(_buttons.default, {
|
|
260
|
-
key: "button-open",
|
|
261
|
-
boxShadow: false,
|
|
262
|
-
disabled: shouldDisable(),
|
|
263
|
-
customClass: "calendar-button",
|
|
264
|
-
icon: /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
265
|
-
name: "calendar"
|
|
266
|
-
}),
|
|
267
|
-
onClick: () => {
|
|
268
|
-
if (showCalendarValueFinal || showCalendarValueInitial) {
|
|
269
|
-
closeCalendar(currentTypeDate);
|
|
270
|
-
} else {
|
|
271
|
-
openCalendar(currentTypeDate);
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
tabIndex: -1,
|
|
275
|
-
targetRef: ref => {
|
|
276
|
-
buttonOpenRef.current = ref;
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
|
-
}, [showCalendarValueFinal, showCalendarValueInitial]);
|
|
280
|
-
const getPeriodSelection = (valuePeriodSelectionAux, setPeriodDates) => /*#__PURE__*/_react.default.createElement(_PeriodList.default, {
|
|
281
|
-
selected: valuePeriodSelectionAux,
|
|
282
|
-
handleOnSelect: setPeriodDates
|
|
283
|
-
});
|
|
284
|
-
const openPeriodSelecion = () => {
|
|
285
|
-
setShowCalendarValueFinal(false);
|
|
286
|
-
setShowCalendarValueInitial(false);
|
|
287
|
-
setShowPeriodSelection(true);
|
|
288
|
-
if (inputContainerRef.current) {
|
|
289
|
-
setInputDimensions(inputContainerRef.current.getBoundingClientRect());
|
|
290
|
-
}
|
|
291
|
-
};
|
|
292
|
-
const closePeriodSelection = () => {
|
|
293
|
-
var _inputFinalRef$curren9;
|
|
294
|
-
setShowPeriodSelection(false);
|
|
295
|
-
(_inputFinalRef$curren9 = inputFinalRef.current) === null || _inputFinalRef$curren9 === void 0 ? void 0 : _inputFinalRef$curren9.focus();
|
|
296
|
-
setShowCalendarValueFinal(false);
|
|
297
|
-
};
|
|
298
|
-
const getButtonSelectPeriod = (0, _react.useCallback)(() => {
|
|
299
|
-
return /*#__PURE__*/_react.default.createElement(_buttons.default, {
|
|
300
|
-
key: "button-select-period",
|
|
301
|
-
disabled: shouldDisable(),
|
|
302
|
-
tabIndex: -1,
|
|
303
|
-
customClass: "calendar-button",
|
|
304
|
-
icon: /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
305
|
-
name: "more1"
|
|
306
|
-
}),
|
|
307
|
-
onBlur: () => setTimeout(() => setShowPeriodSelection(false), 100),
|
|
308
|
-
onClick: () => !showPeriodSelection ? openPeriodSelecion() : closePeriodSelection(),
|
|
309
|
-
targetRef: ref => {
|
|
310
|
-
buttonSelectPeriodRef.current = ref;
|
|
311
|
-
}
|
|
312
|
-
});
|
|
313
|
-
}, [showPeriodSelection]);
|
|
314
|
-
const getCalendar = (value, calendarColorStyleCalendar, valueDateName) => /*#__PURE__*/_react.default.createElement(_calendar.default, {
|
|
315
|
-
colorStyle: calendarColorStyleCalendar,
|
|
316
|
-
currentDate: value !== undefined ? (0, _moment.default)(value) : (0, _moment.default)(),
|
|
317
|
-
calendarContainer: ref => {
|
|
318
|
-
calendarContainerRef.current = ref;
|
|
319
|
-
},
|
|
320
|
-
onDateChange: date => setValue({
|
|
321
|
-
target: {
|
|
322
|
-
name: valueDateName
|
|
323
|
-
}
|
|
324
|
-
}, date),
|
|
325
|
-
currentDateButton: buttonElement => currentDateButtonRef.current = buttonElement
|
|
326
|
-
});
|
|
327
|
-
const setPeriodDates = (selected, dates) => {
|
|
328
|
-
var _inputFinalRef$curren0;
|
|
329
|
-
if (selected === 'custom') {
|
|
330
|
-
var _inputInitialRef$curr6;
|
|
331
|
-
(_inputInitialRef$curr6 = inputInitialRef.current) === null || _inputInitialRef$curr6 === void 0 ? void 0 : _inputInitialRef$curr6.focus();
|
|
332
|
-
setValuePeriodSelection(selected);
|
|
333
|
-
setShowPeriodSelection(false);
|
|
334
|
-
return;
|
|
335
|
-
}
|
|
336
|
-
setValuePeriodSelection(selected);
|
|
337
|
-
if (dates) {
|
|
338
|
-
setValueInitial(dates[0]);
|
|
339
|
-
setValueFinal(dates[1]);
|
|
340
|
-
}
|
|
341
|
-
if (shouldCloseOnSelect) {
|
|
342
|
-
setShowPeriodSelection(false);
|
|
343
|
-
}
|
|
344
|
-
(_inputFinalRef$curren0 = inputFinalRef.current) === null || _inputFinalRef$curren0 === void 0 ? void 0 : _inputFinalRef$curren0.focus();
|
|
345
|
-
setShowCalendarValueFinal(false);
|
|
346
|
-
};
|
|
347
|
-
const getCalendarInitial = () => {
|
|
348
|
-
if (onDenied && onDenied.readOnly) return null;
|
|
349
|
-
if (calendarContainerRef && calendarContainerRef.current) calendarContainerRef.current.id = 'valueInitial';
|
|
350
|
-
if (showCalendarInDialog) {
|
|
351
|
-
return /*#__PURE__*/_react.default.createElement(_Dialog.default, {
|
|
352
|
-
handlerClose: () => onCloseDateDialog('valueInitial'),
|
|
353
|
-
dialogSize: dialogSize,
|
|
354
|
-
onOpenChange: setShowCalendarValueInitial
|
|
355
|
-
}, getCalendar(valueInitial, calendarColorStyle, 'valueInitial'));
|
|
356
|
-
}
|
|
357
|
-
return /*#__PURE__*/_react.default.createElement(_Dropdown.default, {
|
|
358
|
-
containerRef: wrapperBaseInputPeriodRef,
|
|
359
|
-
showButtonOpen: showButtonOpen,
|
|
360
|
-
inputDimensions: inputDimensions,
|
|
361
|
-
dropdownRef: el => {
|
|
362
|
-
dropdownCalendarContainer.current = el;
|
|
363
|
-
}
|
|
364
|
-
}, getCalendar(valueInitial, calendarColorStyle, 'valueInitial'));
|
|
365
|
-
};
|
|
366
|
-
const getCalendarFinal = () => {
|
|
367
|
-
if (onDenied && onDenied.readOnly) return null;
|
|
368
|
-
if (calendarContainerRef && calendarContainerRef.current) calendarContainerRef.current.id = 'valueFinal';
|
|
369
|
-
if (showCalendarInDialog) {
|
|
370
|
-
return /*#__PURE__*/_react.default.createElement(_Dialog.default, {
|
|
371
|
-
handlerClose: () => onCloseDateDialog('valueFinal'),
|
|
372
|
-
dialogSize: dialogSize,
|
|
373
|
-
onOpenChange: setShowCalendarValueFinal
|
|
374
|
-
}, getCalendar(valueFinal, calendarColorStyle, 'valueFinal'));
|
|
375
|
-
}
|
|
376
|
-
return /*#__PURE__*/_react.default.createElement(_Dropdown.default, {
|
|
377
|
-
containerRef: wrapperBaseInputPeriodRef,
|
|
378
|
-
showButtonOpen: showButtonOpen,
|
|
379
|
-
inputDimensions: inputDimensions,
|
|
380
|
-
dropdownRef: el => {
|
|
381
|
-
dropdownCalendarContainer.current = el;
|
|
382
|
-
}
|
|
383
|
-
}, getCalendar(valueFinal, calendarColorStyle, 'valueFinal'));
|
|
384
|
-
};
|
|
385
|
-
const getPeriodOfDatesSelection = () => {
|
|
386
|
-
if (showCalendarInDialog) {
|
|
387
|
-
return /*#__PURE__*/_react.default.createElement(_Dialog.default, {
|
|
388
|
-
handlerClose: () => onCloseDateDialog('periodSelection'),
|
|
389
|
-
dialogSize: dialogSize,
|
|
390
|
-
onOpenChange: setShowPeriodSelection
|
|
391
|
-
}, getPeriodSelection(valuePeriodSelection, setPeriodDates));
|
|
392
|
-
}
|
|
393
|
-
return /*#__PURE__*/_react.default.createElement(_Dropdown.default, {
|
|
394
|
-
containerRef: wrapperBaseInputPeriodRef,
|
|
395
|
-
showButtonOpen: showButtonOpen,
|
|
396
|
-
inputDimensions: inputDimensions,
|
|
397
|
-
dropdownRef: el => {
|
|
398
|
-
dropdownCalendarContainer.current = el;
|
|
399
|
-
}
|
|
400
|
-
}, getPeriodSelection(valuePeriodSelection, setPeriodDates));
|
|
401
|
-
};
|
|
402
|
-
(0, _react.useEffect)(() => {
|
|
403
|
-
var _document$getElementB;
|
|
404
|
-
window.addEventListener('resize', onScreenResize);
|
|
405
|
-
document.addEventListener('scroll', keepPositionCalendarByScroll);
|
|
406
|
-
(_document$getElementB = document.getElementById('modal-dialog-content')) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.addEventListener('scroll', keepPositionCalendarByScroll);
|
|
407
|
-
if (inputContainerRef.current) onScreenResize();
|
|
408
|
-
if (inputInitialRef && inputInitialRef.current) inputInitialRef.current.id = idValueInitial;
|
|
409
|
-
if (inputFinalRef && inputFinalRef.current) inputFinalRef.current.id = idValueFinal;
|
|
410
|
-
return () => {
|
|
411
|
-
var _document$getElementB2;
|
|
412
|
-
window.removeEventListener('resize', onScreenResize);
|
|
413
|
-
document.removeEventListener('scroll', keepPositionCalendarByScroll);
|
|
414
|
-
(_document$getElementB2 = document.getElementById('modal-dialog-content')) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.removeEventListener('scroll', keepPositionCalendarByScroll);
|
|
415
|
-
};
|
|
416
|
-
}, []);
|
|
417
|
-
(0, _react.useEffect)(() => {
|
|
418
|
-
document.addEventListener('keydown', onKeyDownPress);
|
|
419
|
-
return () => {
|
|
420
|
-
document.removeEventListener('keydown', onKeyDownPress);
|
|
421
|
-
};
|
|
422
|
-
}, [showCalendarValueFinal, showCalendarValueInitial, showPeriodSelection, calendarContainerRef.current]);
|
|
423
|
-
(0, _react.useEffect)(() => {
|
|
424
|
-
if (valueFinal && valueInitial && (0, _moment.default)(valueFinal).isBefore((0, _moment.default)(valueInitial))) {
|
|
425
|
-
setValueInitial(valueFinal);
|
|
426
|
-
setValueFinal(valueInitial);
|
|
427
|
-
} else if (props.onChange) {
|
|
428
|
-
const initial = valueInitial ? valueInitial.format('YYYY-MM-DD') : '';
|
|
429
|
-
const final = valueFinal ? valueFinal.format('YYYY-MM-DD') : '';
|
|
430
|
-
props.onChange(undefined, '', {
|
|
431
|
-
initial,
|
|
432
|
-
final
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
}, [valueInitial, valueFinal]);
|
|
436
|
-
(0, _react.useEffect)(() => {
|
|
437
|
-
if (props.value && !((0, _moment.default)(props.value.initial).isSame(valueInitial) || (0, _moment.default)(props.value.final).isSame(valueFinal))) {
|
|
438
|
-
const {
|
|
439
|
-
initial: valueInitialProp,
|
|
440
|
-
final: valueFinalProp
|
|
441
|
-
} = props.value;
|
|
442
|
-
let newValueInitial;
|
|
443
|
-
let newValueFinal;
|
|
444
|
-
if ((0, _moment.default)(valueInitialProp, 'YYYY-MM-DD', true).isValid()) {
|
|
445
|
-
newValueInitial = (0, _moment.default)(valueInitialProp, 'YYYY-MM-DD');
|
|
446
|
-
}
|
|
447
|
-
if ((0, _moment.default)(valueFinalProp, 'YYYY-MM-DD', true).isValid()) {
|
|
448
|
-
newValueFinal = (0, _moment.default)(valueFinalProp, 'YYYY-MM-DD');
|
|
449
|
-
}
|
|
450
|
-
setValueInitial(newValueInitial);
|
|
451
|
-
setValueFinal(newValueFinal);
|
|
452
|
-
}
|
|
453
|
-
}, [props.value]);
|
|
454
|
-
if (onDenied && onDenied.unvisible) return null;
|
|
455
|
-
const component = () => /*#__PURE__*/_react.default.createElement("div", {
|
|
456
|
-
ref: wrapperBaseInputPeriodRef,
|
|
457
|
-
onBlur: onBlurWithoutWrapper,
|
|
458
|
-
className: "input-base-component datepicker-period-container"
|
|
459
|
-
}, props.label && /*#__PURE__*/_react.default.createElement("div", {
|
|
460
|
-
className: "labelcontainer"
|
|
461
|
-
}, /*#__PURE__*/_react.default.createElement(_textContent.default, {
|
|
462
|
-
required: props.required,
|
|
463
|
-
className: props.customClassForLabel,
|
|
464
|
-
labelUppercase: props.labelUppercase
|
|
465
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
466
|
-
className: "text-content",
|
|
467
|
-
style: {
|
|
468
|
-
display: 'flex'
|
|
469
|
-
}
|
|
470
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
471
|
-
className: "label ".concat(props.customClassForLabel, " ").concat(props.labelUppercase && ' -uppercase'),
|
|
472
|
-
style: {
|
|
473
|
-
alignSelf: 'center'
|
|
474
|
-
}
|
|
475
|
-
}, props.label, props.required && /*#__PURE__*/_react.default.createElement("span", {
|
|
476
|
-
className: "-requiredlabel"
|
|
477
|
-
}, "*"), !!hint && hintPosition === 'onLabelRight' && /*#__PURE__*/_react.default.createElement(_popover.default, {
|
|
478
|
-
theme: themePopover,
|
|
479
|
-
align: popoverAlign,
|
|
480
|
-
iconColor: "#03bde2",
|
|
481
|
-
customClass: "-hint",
|
|
482
|
-
style: {
|
|
483
|
-
margin: '0px 5px',
|
|
484
|
-
height: 'auto',
|
|
485
|
-
width: 20
|
|
486
|
-
}
|
|
487
|
-
}, hint))), /*#__PURE__*/_react.default.createElement(_textContent.default, null)), /*#__PURE__*/_react.default.createElement("div", {
|
|
488
|
-
className: "periodpicker-component ".concat(helperBase.getInputWrapperClass(_objectSpread(_objectSpread({}, props), {}, {
|
|
489
|
-
value: !valueInitial ? '' : (0, _moment.default)(valueInitial).format('DD/MM/YYYY'),
|
|
490
|
-
disabled: shouldDisable()
|
|
491
|
-
}))),
|
|
492
|
-
ref: inputContainerRef
|
|
493
|
-
}, /*#__PURE__*/_react.default.createElement(_BaseMask.default, {
|
|
494
|
-
gridLayout: undefined,
|
|
495
|
-
permissionAttr: props.permissionAttr,
|
|
496
|
-
name: "valueInitial",
|
|
497
|
-
value: !valueInitial ? '' : (0, _moment.default)(valueInitial).format('DD/MM/YYYY'),
|
|
498
|
-
mask: "00/00/0000",
|
|
499
|
-
onComplete: e => {
|
|
500
|
-
setValue(e, e.target.value, true);
|
|
501
|
-
},
|
|
502
|
-
onFocus: onInputFocus,
|
|
503
|
-
onBlur: e => onInputBlur(e),
|
|
504
|
-
onChange: onInputChange,
|
|
505
|
-
inputRef: el => {
|
|
506
|
-
inputInitialRef.current = el;
|
|
507
|
-
},
|
|
508
|
-
handlerSetOnDenied: denied => {
|
|
509
|
-
setOnDenied(denied);
|
|
510
|
-
},
|
|
511
|
-
required: props.required
|
|
512
|
-
}), /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
513
|
-
name: "arrow_right",
|
|
514
|
-
customClass: "separation_icon"
|
|
515
|
-
}), /*#__PURE__*/_react.default.createElement(_BaseMask.default, {
|
|
516
|
-
gridLayout: undefined,
|
|
517
|
-
permissionAttr: props.permissionAttr,
|
|
518
|
-
name: "valueFinal",
|
|
519
|
-
value: !valueFinal ? '' : (0, _moment.default)(valueFinal).format('DD/MM/YYYY'),
|
|
520
|
-
mask: "00/00/0000",
|
|
521
|
-
onComplete: e => {
|
|
522
|
-
setValue(e, e.target.value, true);
|
|
523
|
-
},
|
|
524
|
-
onFocus: onInputFocus,
|
|
525
|
-
onBlur: e => onInputBlur(e),
|
|
526
|
-
onChange: onInputChange,
|
|
527
|
-
inputRef: el => {
|
|
528
|
-
inputFinalRef.current = el;
|
|
529
|
-
},
|
|
530
|
-
handlerSetOnDenied: denied => setOnDenied(denied),
|
|
531
|
-
required: props.required
|
|
532
|
-
}), getButtonOpen(), getButtonSelectPeriod()), showCalendarValueInitial && getCalendarInitial(), showCalendarValueFinal && getCalendarFinal(), showPeriodSelection && getPeriodOfDatesSelection(), /*#__PURE__*/_react.default.createElement(_hint.default, {
|
|
533
|
-
visible: !!hint && hintPosition === 'below',
|
|
534
|
-
customClass: "hint",
|
|
535
|
-
description: hint
|
|
536
|
-
}), /*#__PURE__*/_react.default.createElement(_errorMessage.ErrorMessage, {
|
|
537
|
-
messages: props.errorMessages
|
|
538
|
-
}));
|
|
539
|
-
return !gridLayout ? component() : /*#__PURE__*/_react.default.createElement(_gridlayout.default, {
|
|
540
|
-
customClass: "-withinput",
|
|
541
|
-
cols: gridLayout
|
|
542
|
-
}, component());
|
|
543
|
-
};
|
|
544
|
-
var _default = exports.default = PeriodPicker;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { Moment } from 'moment';
|
|
2
|
-
import { ReactNode, RefObject, MouseEvent } from 'react';
|
|
3
|
-
import { ColorStyles } from '../../@types/ColorStyles.js';
|
|
4
|
-
import { Period } from '../../@types/Period.js';
|
|
5
|
-
import { PermissionAttr } from '../../@types/PermissionAttr.js';
|
|
6
|
-
import { CustomInputEvent } from '../base/types.js';
|
|
7
|
-
import '../../@types/Align.js';
|
|
8
|
-
import '../../tooltip/types.js';
|
|
9
|
-
import '../../@types/Position.js';
|
|
10
|
-
|
|
11
|
-
type DateTypes = 'today' | 'week' | 'lastweek' | 'last15' | 'month' | 'lastmonth';
|
|
12
|
-
type TypeCurrentDate = 'valueInitial' | 'valueFinal';
|
|
13
|
-
interface ChangeInputPeriodEvent {
|
|
14
|
-
target: {
|
|
15
|
-
value?: string;
|
|
16
|
-
name?: string;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
interface IPeriodOptions {
|
|
20
|
-
id: DateTypes | 'custom';
|
|
21
|
-
label?: string;
|
|
22
|
-
}
|
|
23
|
-
interface IDialogProps {
|
|
24
|
-
children: ReactNode | ReactNode[];
|
|
25
|
-
onOpenChange: (open: boolean) => void;
|
|
26
|
-
dialogSize: {
|
|
27
|
-
width: string;
|
|
28
|
-
height: string;
|
|
29
|
-
};
|
|
30
|
-
handlerClose: (open: boolean) => void;
|
|
31
|
-
}
|
|
32
|
-
interface IPeriodDropdownProps {
|
|
33
|
-
children: ReactNode | ReactNode[];
|
|
34
|
-
dropdownRef: (el: HTMLDivElement) => void;
|
|
35
|
-
containerRef: RefObject<HTMLDivElement | HTMLElement>;
|
|
36
|
-
showButtonOpen: boolean;
|
|
37
|
-
inputDimensions?: DOMRect;
|
|
38
|
-
}
|
|
39
|
-
interface IPeriodPickerProps {
|
|
40
|
-
label?: string;
|
|
41
|
-
value?: {
|
|
42
|
-
initial?: Moment | string;
|
|
43
|
-
final?: Moment | string;
|
|
44
|
-
};
|
|
45
|
-
customClassForLabel?: string;
|
|
46
|
-
labelUppercase?: boolean;
|
|
47
|
-
showButtonOpen?: boolean;
|
|
48
|
-
shouldCloseOnSelect?: boolean;
|
|
49
|
-
openOnFocus?: boolean;
|
|
50
|
-
showCalendarInDialog?: boolean;
|
|
51
|
-
dialogSize?: {
|
|
52
|
-
width: string;
|
|
53
|
-
height: string;
|
|
54
|
-
};
|
|
55
|
-
calendarColorStyle?: ColorStyles;
|
|
56
|
-
required?: boolean;
|
|
57
|
-
onChange?: (event?: CustomInputEvent, maskValue?: string, date?: Period) => void;
|
|
58
|
-
onClick?: (event?: MouseEvent) => void;
|
|
59
|
-
disabled?: boolean;
|
|
60
|
-
permissionAttr?: PermissionAttr;
|
|
61
|
-
errorMessages?: string[];
|
|
62
|
-
name?: string;
|
|
63
|
-
hint?: string;
|
|
64
|
-
nameDateInitial?: string;
|
|
65
|
-
nameDateFinal?: string;
|
|
66
|
-
hintPosition?: 'below' | 'onLabelRight';
|
|
67
|
-
onBlur?: (e: CustomInputEvent) => void;
|
|
68
|
-
onFocus?: (e: CustomInputEvent) => void;
|
|
69
|
-
gridLayout?: string;
|
|
70
|
-
themePopover?: 'light' | 'dark';
|
|
71
|
-
popoverAlign?: 'right' | 'left';
|
|
72
|
-
}
|
|
73
|
-
interface IPeriodListProps {
|
|
74
|
-
handleOnSelect: (value: DateTypes | 'custom', date: Moment[] | null) => void;
|
|
75
|
-
selected?: string;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export { ChangeInputPeriodEvent, DateTypes, IDialogProps, IPeriodDropdownProps, IPeriodListProps, IPeriodOptions, IPeriodPickerProps, TypeCurrentDate };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ISearchProps } from '../types.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../../@types/PermissionAttr.js';
|
|
4
|
-
import '../../@types/DataCombo.js';
|
|
5
|
-
import '../base/types.js';
|
|
6
|
-
import '../../@types/Align.js';
|
|
7
|
-
import '../../@types/Period.js';
|
|
8
|
-
import '../../tooltip/types.js';
|
|
9
|
-
import '../../@types/Position.js';
|
|
10
|
-
import '../../drawer/types.js';
|
|
11
|
-
import '../../@types/Icon.js';
|
|
12
|
-
import '../../icons/helper.js';
|
|
13
|
-
|
|
14
|
-
declare const SearchField: (props: ISearchProps) => JSX.Element | null;
|
|
15
|
-
|
|
16
|
-
export { SearchField as default };
|