@zohodesk/components 1.2.23 → 1.2.24
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/README.md +4 -0
- package/es/Accordion/Accordion.js +7 -3
- package/es/Accordion/AccordionItem.js +4 -2
- package/es/Animation/Animation.js +7 -89
- package/es/Animation/utils.js +83 -0
- package/es/AppContainer/AppContainer.js +14 -3
- package/es/AppContainer/AppContainer.module.css +2 -2
- package/es/Avatar/Avatar.js +23 -11
- package/es/Avatar/Avatar.module.css +18 -18
- package/es/AvatarTeam/AvatarTeam.js +3 -3
- package/es/AvatarTeam/AvatarTeam.module.css +35 -35
- package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +1 -2
- package/es/Button/Button.js +4 -3
- package/es/Button/css/Button.module.css +70 -70
- package/es/Buttongroup/Buttongroup.js +3 -3
- package/es/Buttongroup/Buttongroup.module.css +13 -15
- package/es/Card/Card.js +21 -10
- package/es/CheckBox/CheckBox.js +5 -3
- package/es/CheckBox/CheckBox.module.css +15 -15
- package/es/DateTime/CalendarView.js +32 -20
- package/es/DateTime/DateTime.js +69 -6
- package/es/DateTime/DateTime.module.css +40 -40
- package/es/DateTime/DateTimePopupFooter.js +4 -1
- package/es/DateTime/DateTimePopupHeader.js +8 -2
- package/es/DateTime/DateWidget.js +98 -35
- package/es/DateTime/DateWidget.module.css +5 -5
- package/es/DateTime/DaysRow.js +4 -1
- package/es/DateTime/Time.js +10 -1
- package/es/DateTime/YearView.js +28 -4
- package/es/DateTime/YearView.module.css +15 -15
- package/es/DateTime/common.js +3 -0
- package/es/DateTime/constants.js +1 -0
- package/es/DateTime/dateFormatUtils/dateFormat.js +65 -30
- package/es/DateTime/dateFormatUtils/dateFormats.js +0 -1
- package/es/DateTime/dateFormatUtils/dayChange.js +13 -4
- package/es/DateTime/dateFormatUtils/index.js +31 -1
- package/es/DateTime/dateFormatUtils/monthChange.js +8 -0
- package/es/DateTime/dateFormatUtils/timeChange.js +22 -6
- package/es/DateTime/dateFormatUtils/yearChange.js +11 -2
- package/es/DateTime/objectUtils.js +14 -20
- package/es/DateTime/typeChecker.js +3 -0
- package/es/DateTime/validator.js +58 -6
- package/es/DropBox/DropBox.js +6 -2
- package/es/DropBox/DropBoxElement/DropBoxElement.js +7 -0
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +73 -76
- package/es/DropBox/DropBoxElement/css/cssJSLogic.js +5 -3
- package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +3 -0
- package/es/DropBox/css/DropBox.module.css +6 -6
- package/es/DropBox/props/defaultProps.js +1 -2
- package/es/DropBox/props/propTypes.js +1 -2
- package/es/DropDown/DropDown.js +7 -1
- package/es/DropDown/DropDown.module.css +2 -2
- package/es/DropDown/DropDownHeading.js +4 -5
- package/es/DropDown/DropDownHeading.module.css +6 -6
- package/es/DropDown/DropDownItem.js +6 -0
- package/es/DropDown/DropDownItem.module.css +12 -12
- package/es/DropDown/DropDownSearch.js +4 -0
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.js +1 -0
- package/es/DropDown/DropDownSeparator.module.css +2 -2
- package/es/DropDown/props/propTypes.js +1 -2
- package/es/Heading/Heading.js +2 -3
- package/es/Heading/Heading.module.css +2 -2
- package/es/Label/Label.js +2 -3
- package/es/Label/Label.module.css +5 -5
- package/es/Label/__tests__/Label.spec.js +1 -2
- package/es/Layout/Box.js +15 -2
- package/es/Layout/Container.js +14 -3
- package/es/Layout/Layout.module.css +15 -15
- package/es/Layout/index.js +1 -2
- package/es/Layout/utils.js +1 -0
- package/es/ListItem/ListContainer.js +8 -3
- package/es/ListItem/ListItem.js +9 -3
- package/es/ListItem/ListItem.module.css +27 -38
- package/es/ListItem/ListItemWithAvatar.js +9 -3
- package/es/ListItem/ListItemWithCheckBox.js +7 -2
- package/es/ListItem/ListItemWithIcon.js +8 -3
- package/es/ListItem/ListItemWithRadio.js +7 -3
- package/es/Modal/Modal.js +28 -11
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +89 -13
- package/es/MultiSelect/AdvancedMultiSelect.js +32 -9
- package/es/MultiSelect/EmptyState.js +2 -0
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +5 -5
- package/es/MultiSelect/MultiSelect.js +99 -30
- package/es/MultiSelect/MultiSelect.module.css +31 -31
- package/es/MultiSelect/MultiSelectHeader.js +3 -0
- package/es/MultiSelect/MultiSelectWithAvatar.js +10 -3
- package/es/MultiSelect/SelectedOptions.js +6 -3
- package/es/MultiSelect/SelectedOptions.module.css +5 -5
- package/es/MultiSelect/Suggestions.js +7 -3
- package/es/MultiSelect/props/propTypes.js +2 -2
- package/es/PopOver/PopOver.js +16 -0
- package/es/Popup/Popup.js +77 -24
- package/es/Popup/viewPort.js +16 -4
- package/es/Provider/IdProvider.js +10 -5
- package/es/Provider/LibraryContext.js +6 -4
- package/es/Provider/NumberGenerator/NumberGenerator.js +21 -7
- package/es/Provider/ZindexProvider.js +9 -2
- package/es/Radio/Radio.js +3 -0
- package/es/Radio/Radio.module.css +9 -9
- package/es/Responsive/CustomResponsive.js +30 -18
- package/es/Responsive/RefWrapper.js +6 -7
- package/es/Responsive/ResizeComponent.js +35 -25
- package/es/Responsive/ResizeObserver.js +26 -6
- package/es/Responsive/Responsive.js +34 -20
- package/es/Responsive/index.js +1 -3
- package/es/Responsive/sizeObservers.js +28 -7
- package/es/Responsive/utils/index.js +7 -5
- package/es/Responsive/utils/shallowCompare.js +7 -2
- package/es/Responsive/windowResizeObserver.js +7 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/es/ResponsiveDropBox/props/propTypes.js +1 -2
- package/es/Ribbon/Ribbon.js +3 -2
- package/es/Ribbon/Ribbon.module.css +45 -48
- package/es/RippleEffect/RippleEffect.js +1 -3
- package/es/Select/GroupSelect.js +58 -14
- package/es/Select/Select.js +79 -33
- package/es/Select/Select.module.css +23 -23
- package/es/Select/SelectWithAvatar.js +17 -4
- package/es/Select/SelectWithIcon.js +46 -5
- package/es/Select/props/propTypes.js +2 -2
- package/es/Stencils/Stencils.js +3 -3
- package/es/Stencils/Stencils.module.css +11 -11
- package/es/Switch/Switch.js +5 -3
- package/es/Switch/Switch.module.css +23 -23
- package/es/Tab/Tab.js +4 -4
- package/es/Tab/Tab.module.css +14 -14
- package/es/Tab/TabContent.js +1 -0
- package/es/Tab/TabContentWrapper.js +3 -0
- package/es/Tab/TabWrapper.js +5 -2
- package/es/Tab/Tabs.js +54 -7
- package/es/Tab/Tabs.module.css +22 -22
- package/es/Tag/Tag.js +6 -3
- package/es/Tag/Tag.module.css +24 -25
- package/es/TextBox/TextBox.js +16 -3
- package/es/TextBox/TextBox.module.css +9 -9
- package/es/TextBoxIcon/TextBoxIcon.js +9 -2
- package/es/TextBoxIcon/TextBoxIcon.module.css +7 -7
- package/es/TextBoxIcon/props/propTypes.js +1 -2
- package/es/Textarea/Textarea.js +12 -3
- package/es/Textarea/Textarea.module.css +21 -21
- package/es/Tooltip/Tooltip.js +58 -14
- package/es/Tooltip/Tooltip.module.css +5 -5
- package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -2
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +7 -5
- package/es/common/animation.module.css +8 -8
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/basicReset.module.css +3 -3
- package/es/common/common.module.css +24 -24
- package/es/common/customscroll.module.css +2 -2
- package/es/deprecated/PortalLayer/PortalLayer.js +25 -20
- package/es/semantic/Button/Button.js +3 -2
- package/es/semantic/Button/semanticButton.module.css +1 -1
- package/es/utils/Common.js +54 -9
- package/es/utils/ContextOptimizer.js +4 -5
- package/es/utils/constructFullName.js +2 -0
- package/es/utils/datetime/common.js +16 -5
- package/es/utils/debounce.js +5 -1
- package/es/utils/dropDownUtils.js +68 -11
- package/es/utils/getInitial.js +4 -0
- package/es/utils/shallowEqual.js +6 -0
- package/es/v1/Accordion/Accordion.js +4 -3
- package/es/v1/Accordion/AccordionItem.js +4 -2
- package/es/v1/Animation/Animation.js +5 -89
- package/es/v1/Animation/utils.js +83 -0
- package/es/v1/AppContainer/AppContainer.js +9 -3
- package/es/v1/Avatar/Avatar.js +18 -6
- package/es/v1/AvatarTeam/AvatarTeam.js +1 -0
- package/es/v1/Button/Button.js +3 -3
- package/es/v1/Card/Card.js +16 -8
- package/es/v1/CheckBox/CheckBox.js +6 -3
- package/es/v1/DateTime/CalendarView.js +32 -20
- package/es/v1/DateTime/DateTime.js +69 -6
- package/es/v1/DateTime/DateTimePopupFooter.js +4 -1
- package/es/v1/DateTime/DateTimePopupHeader.js +8 -2
- package/es/v1/DateTime/DateWidget.js +98 -35
- package/es/v1/DateTime/DaysRow.js +4 -1
- package/es/v1/DateTime/Time.js +10 -1
- package/es/v1/DateTime/YearView.js +28 -4
- package/es/v1/DropBox/DropBox.js +6 -2
- package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +7 -0
- package/es/v1/DropBox/props/defaultProps.js +1 -2
- package/es/v1/DropBox/props/propTypes.js +1 -2
- package/es/v1/DropDown/DropDown.js +3 -0
- package/es/v1/DropDown/DropDownHeading.js +2 -2
- package/es/v1/DropDown/DropDownItem.js +5 -0
- package/es/v1/DropDown/DropDownSearch.js +3 -2
- package/es/v1/DropDown/props/propTypes.js +1 -2
- package/es/v1/Heading/Heading.js +1 -3
- package/es/v1/Layout/Box.js +15 -2
- package/es/v1/Layout/Container.js +14 -3
- package/es/v1/ListItem/ListContainer.js +8 -3
- package/es/v1/ListItem/ListItem.js +10 -3
- package/es/v1/ListItem/ListItemWithAvatar.js +9 -1
- package/es/v1/ListItem/ListItemWithCheckBox.js +8 -2
- package/es/v1/ListItem/ListItemWithIcon.js +9 -3
- package/es/v1/ListItem/ListItemWithRadio.js +8 -3
- package/es/v1/Modal/Modal.js +17 -1
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +90 -15
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +32 -9
- package/es/v1/MultiSelect/EmptyState.js +2 -0
- package/es/v1/MultiSelect/MultiSelect.js +100 -31
- package/es/v1/MultiSelect/MultiSelectHeader.js +3 -0
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +11 -3
- package/es/v1/MultiSelect/SelectedOptions.js +6 -3
- package/es/v1/MultiSelect/Suggestions.js +7 -3
- package/es/v1/MultiSelect/props/propTypes.js +2 -2
- package/es/v1/PopOver/PopOver.js +11 -0
- package/es/v1/Popup/Popup.js +77 -24
- package/es/v1/Provider/IdProvider.js +10 -5
- package/es/v1/Provider/LibraryContext.js +6 -4
- package/es/v1/Provider/NumberGenerator/NumberGenerator.js +21 -7
- package/es/v1/Provider/ZindexProvider.js +9 -2
- package/es/v1/Radio/Radio.js +5 -2
- package/es/v1/Responsive/CustomResponsive.js +30 -18
- package/es/v1/Responsive/RefWrapper.js +6 -7
- package/es/v1/Responsive/ResizeComponent.js +35 -25
- package/es/v1/Responsive/ResizeObserver.js +26 -6
- package/es/v1/Responsive/Responsive.js +34 -20
- package/es/v1/Responsive/index.js +1 -3
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +1 -0
- package/es/v1/ResponsiveDropBox/props/propTypes.js +1 -2
- package/es/v1/Select/GroupSelect.js +58 -14
- package/es/v1/Select/Select.js +81 -37
- package/es/v1/Select/SelectWithAvatar.js +17 -4
- package/es/v1/Select/SelectWithIcon.js +46 -5
- package/es/v1/Select/props/propTypes.js +2 -2
- package/es/v1/Stencils/Stencils.js +2 -0
- package/es/v1/Switch/Switch.js +6 -3
- package/es/v1/Tab/Tab.js +3 -3
- package/es/v1/Tab/TabContent.js +1 -0
- package/es/v1/Tab/TabContentWrapper.js +3 -0
- package/es/v1/Tab/TabWrapper.js +5 -2
- package/es/v1/Tab/Tabs.js +54 -9
- package/es/v1/Tab/v1Tab.module.css +14 -14
- package/es/v1/Tab/v1Tabs.module.css +22 -22
- package/es/v1/Tag/Tag.js +5 -1
- package/es/v1/TextBox/TextBox.js +14 -0
- package/es/v1/TextBoxIcon/TextBoxIcon.js +6 -2
- package/es/v1/TextBoxIcon/props/propTypes.js +1 -2
- package/es/v1/Textarea/Textarea.js +10 -3
- package/es/v1/Tooltip/Tooltip.js +58 -14
- package/es/v1/Typography/Typography.js +2 -0
- package/es/v1/Typography/css/Typography.module.css +31 -31
- package/es/v1/Typography/css/cssJSLogic.js +3 -0
- package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +1 -2
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/es/v1/semantic/Button/Button.js +1 -2
- package/lib/Accordion/Accordion.js +42 -18
- package/lib/Accordion/AccordionItem.js +40 -18
- package/lib/Accordion/index.js +3 -0
- package/lib/Accordion/props/propTypes.js +3 -0
- package/lib/Animation/Animation.js +42 -104
- package/lib/Animation/props/propTypes.js +3 -0
- package/lib/Animation/utils.js +94 -0
- package/lib/AppContainer/AppContainer.js +58 -20
- package/lib/AppContainer/AppContainer.module.css +2 -2
- package/lib/AppContainer/props/propTypes.js +3 -0
- package/lib/Avatar/Avatar.js +78 -38
- package/lib/Avatar/Avatar.module.css +18 -18
- package/lib/Avatar/__tests__/Avatar.spec.js +95 -71
- package/lib/Avatar/props/propTypes.js +3 -0
- package/lib/AvatarTeam/AvatarTeam.js +52 -30
- package/lib/AvatarTeam/AvatarTeam.module.css +35 -35
- package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +77 -61
- package/lib/AvatarTeam/props/propTypes.js +3 -0
- package/lib/Button/Button.js +33 -22
- package/lib/Button/__tests__/Button.spec.js +65 -48
- package/lib/Button/css/Button.module.css +70 -70
- package/lib/Button/css/cssJSLogic.js +18 -17
- package/lib/Button/index.js +3 -0
- package/lib/Button/props/defaultProps.js +2 -0
- package/lib/Button/props/propTypes.js +3 -0
- package/lib/Buttongroup/Buttongroup.js +32 -12
- package/lib/Buttongroup/Buttongroup.module.css +13 -15
- package/lib/Buttongroup/__tests__/Buttongroup.spec.js +18 -10
- package/lib/Buttongroup/props/propTypes.js +3 -0
- package/lib/Card/Card.js +102 -46
- package/lib/Card/index.js +4 -0
- package/lib/Card/props/propTypes.js +3 -0
- package/lib/CheckBox/CheckBox.js +71 -47
- package/lib/CheckBox/CheckBox.module.css +15 -15
- package/lib/CheckBox/props/propTypes.js +3 -0
- package/lib/DateTime/CalendarView.js +82 -42
- package/lib/DateTime/DateTime.js +244 -156
- package/lib/DateTime/DateTime.module.css +40 -40
- package/lib/DateTime/DateTimePopupFooter.js +33 -8
- package/lib/DateTime/DateTimePopupHeader.js +49 -17
- package/lib/DateTime/DateWidget.js +350 -249
- package/lib/DateTime/DateWidget.module.css +5 -5
- package/lib/DateTime/DaysRow.js +28 -5
- package/lib/DateTime/Time.js +75 -32
- package/lib/DateTime/YearView.js +76 -27
- package/lib/DateTime/YearView.module.css +15 -15
- package/lib/DateTime/common.js +6 -0
- package/lib/DateTime/constants.js +1 -0
- package/lib/DateTime/dateFormatUtils/dateFormat.js +187 -122
- package/lib/DateTime/dateFormatUtils/dateFormats.js +0 -1
- package/lib/DateTime/dateFormatUtils/dayChange.js +15 -7
- package/lib/DateTime/dateFormatUtils/index.js +73 -16
- package/lib/DateTime/dateFormatUtils/monthChange.js +20 -9
- package/lib/DateTime/dateFormatUtils/timeChange.js +54 -22
- package/lib/DateTime/dateFormatUtils/yearChange.js +23 -11
- package/lib/DateTime/index.js +2 -0
- package/lib/DateTime/objectUtils.js +24 -20
- package/lib/DateTime/props/propTypes.js +11 -1
- package/lib/DateTime/typeChecker.js +4 -0
- package/lib/DateTime/validator.js +73 -10
- package/lib/DropBox/DropBox.js +45 -21
- package/lib/DropBox/DropBoxElement/DropBoxElement.js +59 -38
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +73 -76
- package/lib/DropBox/DropBoxElement/css/cssJSLogic.js +42 -34
- package/lib/DropBox/DropBoxElement/props/propTypes.js +3 -0
- package/lib/DropBox/DropBoxElement/useDropboxPosCalc.js +14 -9
- package/lib/DropBox/css/DropBox.module.css +6 -6
- package/lib/DropBox/css/cssJSLogic.js +3 -1
- package/lib/DropBox/props/defaultProps.js +8 -4
- package/lib/DropBox/props/propTypes.js +10 -4
- package/lib/DropDown/DropDown.js +51 -5
- package/lib/DropDown/DropDown.module.css +2 -2
- package/lib/DropDown/DropDownHeading.js +39 -20
- package/lib/DropDown/DropDownHeading.module.css +6 -6
- package/lib/DropDown/DropDownItem.js +42 -20
- package/lib/DropDown/DropDownItem.module.css +12 -12
- package/lib/DropDown/DropDownSearch.js +40 -17
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.js +24 -4
- package/lib/DropDown/DropDownSeparator.module.css +2 -2
- package/lib/DropDown/index.js +9 -0
- package/lib/DropDown/props/propTypes.js +10 -4
- package/lib/Heading/Heading.js +37 -15
- package/lib/Heading/Heading.module.css +2 -2
- package/lib/Heading/props/propTypes.js +3 -0
- package/lib/Label/Label.js +41 -21
- package/lib/Label/Label.module.css +5 -5
- package/lib/Label/__tests__/Label.spec.js +48 -34
- package/lib/Label/props/propTypes.js +3 -0
- package/lib/Layout/Box.js +35 -15
- package/lib/Layout/Container.js +33 -14
- package/lib/Layout/Layout.module.css +15 -15
- package/lib/Layout/index.js +3 -0
- package/lib/Layout/props/propTypes.js +3 -0
- package/lib/Layout/utils.js +11 -0
- package/lib/ListItem/ListContainer.js +55 -30
- package/lib/ListItem/ListItem.js +74 -45
- package/lib/ListItem/ListItem.module.css +27 -38
- package/lib/ListItem/ListItemWithAvatar.js +80 -48
- package/lib/ListItem/ListItemWithCheckBox.js +70 -40
- package/lib/ListItem/ListItemWithIcon.js +73 -44
- package/lib/ListItem/ListItemWithRadio.js +71 -42
- package/lib/ListItem/index.js +7 -0
- package/lib/ListItem/props/propTypes.js +6 -4
- package/lib/Modal/Modal.js +45 -10
- package/lib/Modal/props/propTypes.js +3 -0
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +293 -166
- package/lib/MultiSelect/AdvancedMultiSelect.js +202 -125
- package/lib/MultiSelect/EmptyState.js +45 -24
- package/lib/MultiSelect/MobileHeader/MobileHeader.js +14 -5
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +5 -5
- package/lib/MultiSelect/MobileHeader/props/propTypes.js +3 -0
- package/lib/MultiSelect/MultiSelect.js +333 -214
- package/lib/MultiSelect/MultiSelect.module.css +31 -31
- package/lib/MultiSelect/MultiSelectHeader.js +29 -7
- package/lib/MultiSelect/MultiSelectWithAvatar.js +85 -43
- package/lib/MultiSelect/SelectedOptions.js +43 -17
- package/lib/MultiSelect/SelectedOptions.module.css +5 -5
- package/lib/MultiSelect/Suggestions.js +64 -32
- package/lib/MultiSelect/index.js +5 -0
- package/lib/MultiSelect/props/defaultProps.js +2 -0
- package/lib/MultiSelect/props/propTypes.js +14 -4
- package/lib/PopOver/PopOver.js +94 -47
- package/lib/PopOver/index.js +4 -0
- package/lib/PopOver/props/propTypes.js +3 -0
- package/lib/Popup/Popup.js +158 -81
- package/lib/Popup/viewPort.js +28 -14
- package/lib/Provider/AvatarSize.js +4 -0
- package/lib/Provider/Config.js +2 -0
- package/lib/Provider/CssProvider.js +4 -0
- package/lib/Provider/IdProvider.js +17 -6
- package/lib/Provider/LibraryContext.js +35 -15
- package/lib/Provider/LibraryContextInit.js +4 -0
- package/lib/Provider/NumberGenerator/NumberGenerator.js +44 -15
- package/lib/Provider/ZindexProvider.js +15 -3
- package/lib/Provider/index.js +5 -0
- package/lib/Radio/Radio.js +60 -36
- package/lib/Radio/Radio.module.css +9 -9
- package/lib/Radio/__tests__/Radio.spec.js +134 -103
- package/lib/Radio/props/propTypes.js +3 -0
- package/lib/Responsive/CustomResponsive.js +73 -29
- package/lib/Responsive/RefWrapper.js +17 -11
- package/lib/Responsive/ResizeComponent.js +62 -36
- package/lib/Responsive/ResizeObserver.js +24 -10
- package/lib/Responsive/Responsive.js +80 -30
- package/lib/Responsive/index.js +4 -0
- package/lib/Responsive/props/propTypes.js +3 -0
- package/lib/Responsive/sizeObservers.js +53 -17
- package/lib/Responsive/utils/index.js +11 -3
- package/lib/Responsive/utils/shallowCompare.js +11 -2
- package/lib/Responsive/windowResizeObserver.js +8 -0
- package/lib/ResponsiveDropBox/ResponsiveDropBox.js +45 -17
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/lib/ResponsiveDropBox/props/propTypes.js +9 -4
- package/lib/Ribbon/Ribbon.js +33 -13
- package/lib/Ribbon/Ribbon.module.css +45 -48
- package/lib/Ribbon/__tests__/Ribbon.spec.js +24 -14
- package/lib/Ribbon/props/propTypes.js +3 -0
- package/lib/RippleEffect/RippleEffect.js +18 -10
- package/lib/RippleEffect/__tests__/RippleEffect.spec.js +34 -22
- package/lib/RippleEffect/props/propTypes.js +3 -0
- package/lib/Select/GroupSelect.js +229 -130
- package/lib/Select/Select.js +295 -211
- package/lib/Select/Select.module.css +23 -23
- package/lib/Select/SelectWithAvatar.js +102 -56
- package/lib/Select/SelectWithIcon.js +131 -76
- package/lib/Select/index.js +5 -0
- package/lib/Select/props/defaultProps.js +5 -4
- package/lib/Select/props/propTypes.js +10 -4
- package/lib/Stencils/Stencils.js +29 -10
- package/lib/Stencils/Stencils.module.css +11 -11
- package/lib/Stencils/__tests__/Stencils.spec.js +22 -13
- package/lib/Stencils/props/propTypes.js +3 -0
- package/lib/Switch/Switch.js +57 -34
- package/lib/Switch/Switch.module.css +23 -23
- package/lib/Switch/__tests__/Switch.spec.js +91 -72
- package/lib/Switch/props/propTypes.js +3 -0
- package/lib/Tab/Tab.js +40 -27
- package/lib/Tab/Tab.module.css +14 -14
- package/lib/Tab/TabContent.js +12 -5
- package/lib/Tab/TabContentWrapper.js +16 -8
- package/lib/Tab/TabWrapper.js +37 -19
- package/lib/Tab/Tabs.js +171 -91
- package/lib/Tab/Tabs.module.css +22 -22
- package/lib/Tab/index.js +6 -0
- package/lib/Tab/props/propTypes.js +3 -0
- package/lib/Tag/Tag.js +72 -43
- package/lib/Tag/Tag.module.css +24 -25
- package/lib/Tag/props/propTypes.js +3 -0
- package/lib/TextBox/TextBox.js +86 -60
- package/lib/TextBox/TextBox.module.css +9 -9
- package/lib/TextBox/props/propTypes.js +6 -4
- package/lib/TextBoxIcon/TextBoxIcon.js +80 -53
- package/lib/TextBoxIcon/TextBoxIcon.module.css +7 -7
- package/lib/TextBoxIcon/props/propTypes.js +9 -4
- package/lib/Textarea/Textarea.js +54 -29
- package/lib/Textarea/Textarea.module.css +21 -21
- package/lib/Textarea/props/propTypes.js +3 -0
- package/lib/Tooltip/Tooltip.js +94 -31
- package/lib/Tooltip/Tooltip.module.css +5 -5
- package/lib/Tooltip/props/propTypes.js +3 -0
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +40 -16
- package/lib/VelocityAnimation/VelocityAnimation/props/propTypes.js +3 -0
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +53 -25
- package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +3 -0
- package/lib/VelocityAnimation/index.js +3 -0
- package/lib/common/animation.module.css +8 -8
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/basicReset.module.css +3 -3
- package/lib/common/common.module.css +24 -24
- package/lib/common/customscroll.module.css +2 -2
- package/lib/css.js +40 -0
- package/lib/deprecated/PortalLayer/PortalLayer.js +46 -23
- package/lib/deprecated/PortalLayer/props/propTypes.js +3 -0
- package/lib/index.js +58 -0
- package/lib/semantic/Button/Button.js +42 -22
- package/lib/semantic/Button/props/propTypes.js +3 -0
- package/lib/semantic/Button/semanticButton.module.css +1 -1
- package/lib/semantic/index.js +2 -0
- package/lib/utils/Common.js +111 -18
- package/lib/utils/ContextOptimizer.js +16 -10
- package/lib/utils/constructFullName.js +13 -4
- package/lib/utils/datetime/common.js +34 -5
- package/lib/utils/debounce.js +6 -1
- package/lib/utils/dropDownUtils.js +175 -59
- package/lib/utils/dummyFunction.js +2 -0
- package/lib/utils/getHTMLFontSize.js +1 -0
- package/lib/utils/getInitial.js +6 -0
- package/lib/utils/index.js +1 -0
- package/lib/utils/scrollTo.js +2 -0
- package/lib/utils/shallowEqual.js +8 -0
- package/lib/v1/Accordion/Accordion.js +38 -19
- package/lib/v1/Accordion/AccordionItem.js +23 -13
- package/lib/v1/Accordion/index.js +3 -0
- package/lib/v1/Accordion/props/propTypes.js +3 -0
- package/lib/v1/Animation/Animation.js +24 -100
- package/lib/v1/Animation/props/propTypes.js +3 -0
- package/lib/v1/Animation/utils.js +94 -0
- package/lib/v1/AppContainer/AppContainer.js +46 -17
- package/lib/v1/AppContainer/props/propTypes.js +3 -0
- package/lib/v1/Avatar/Avatar.js +68 -32
- package/lib/v1/Avatar/props/propTypes.js +3 -0
- package/lib/v1/AvatarTeam/AvatarTeam.js +32 -24
- package/lib/v1/AvatarTeam/props/propTypes.js +3 -0
- package/lib/v1/Button/Button.js +32 -22
- package/lib/v1/Button/props/defaultProps.js +2 -0
- package/lib/v1/Button/props/propTypes.js +3 -0
- package/lib/v1/Buttongroup/Buttongroup.js +13 -5
- package/lib/v1/Buttongroup/props/propTypes.js +3 -0
- package/lib/v1/Card/Card.js +78 -44
- package/lib/v1/Card/index.js +4 -0
- package/lib/v1/Card/props/propTypes.js +3 -0
- package/lib/v1/CheckBox/CheckBox.js +52 -41
- package/lib/v1/CheckBox/props/propTypes.js +3 -0
- package/lib/v1/DateTime/CalendarView.js +89 -48
- package/lib/v1/DateTime/DateTime.js +246 -158
- package/lib/v1/DateTime/DateTimePopupFooter.js +33 -8
- package/lib/v1/DateTime/DateTimePopupHeader.js +49 -17
- package/lib/v1/DateTime/DateWidget.js +352 -251
- package/lib/v1/DateTime/DaysRow.js +28 -5
- package/lib/v1/DateTime/Time.js +75 -32
- package/lib/v1/DateTime/YearView.js +76 -27
- package/lib/v1/DateTime/index.js +2 -0
- package/lib/v1/DateTime/props/propTypes.js +11 -1
- package/lib/v1/DropBox/DropBox.js +45 -21
- package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +59 -38
- package/lib/v1/DropBox/DropBoxElement/props/propTypes.js +3 -0
- package/lib/v1/DropBox/props/defaultProps.js +8 -4
- package/lib/v1/DropBox/props/propTypes.js +10 -4
- package/lib/v1/DropDown/DropDown.js +23 -3
- package/lib/v1/DropDown/DropDownHeading.js +20 -13
- package/lib/v1/DropDown/DropDownItem.js +26 -11
- package/lib/v1/DropDown/DropDownSearch.js +28 -16
- package/lib/v1/DropDown/DropDownSeparator.js +7 -1
- package/lib/v1/DropDown/props/propTypes.js +10 -4
- package/lib/v1/Heading/Heading.js +19 -14
- package/lib/v1/Heading/props/propTypes.js +3 -0
- package/lib/v1/Label/Label.js +22 -14
- package/lib/v1/Label/props/propTypes.js +3 -0
- package/lib/v1/Layout/Box.js +35 -15
- package/lib/v1/Layout/Container.js +33 -14
- package/lib/v1/Layout/index.js +3 -0
- package/lib/v1/Layout/props/propTypes.js +3 -0
- package/lib/v1/ListItem/ListContainer.js +55 -30
- package/lib/v1/ListItem/ListItem.js +53 -38
- package/lib/v1/ListItem/ListItemWithAvatar.js +62 -39
- package/lib/v1/ListItem/ListItemWithCheckBox.js +49 -34
- package/lib/v1/ListItem/ListItemWithIcon.js +52 -37
- package/lib/v1/ListItem/ListItemWithRadio.js +49 -35
- package/lib/v1/ListItem/index.js +7 -0
- package/lib/v1/ListItem/props/propTypes.js +6 -4
- package/lib/v1/Modal/Modal.js +46 -9
- package/lib/v1/Modal/props/propTypes.js +3 -0
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +294 -168
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +202 -125
- package/lib/v1/MultiSelect/EmptyState.js +45 -24
- package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +14 -5
- package/lib/v1/MultiSelect/MobileHeader/props/propTypes.js +3 -0
- package/lib/v1/MultiSelect/MultiSelect.js +335 -216
- package/lib/v1/MultiSelect/MultiSelectHeader.js +29 -7
- package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +86 -43
- package/lib/v1/MultiSelect/SelectedOptions.js +43 -17
- package/lib/v1/MultiSelect/Suggestions.js +64 -32
- package/lib/v1/MultiSelect/index.js +5 -0
- package/lib/v1/MultiSelect/props/defaultProps.js +2 -0
- package/lib/v1/MultiSelect/props/propTypes.js +14 -4
- package/lib/v1/PopOver/PopOver.js +71 -40
- package/lib/v1/PopOver/props/propTypes.js +3 -0
- package/lib/v1/Popup/Popup.js +158 -81
- package/lib/v1/Provider/AvatarSize.js +4 -0
- package/lib/v1/Provider/Config.js +2 -0
- package/lib/v1/Provider/CssProvider.js +4 -0
- package/lib/v1/Provider/IdProvider.js +17 -6
- package/lib/v1/Provider/LibraryContext.js +35 -15
- package/lib/v1/Provider/LibraryContextInit.js +4 -0
- package/lib/v1/Provider/NumberGenerator/NumberGenerator.js +44 -15
- package/lib/v1/Provider/ZindexProvider.js +15 -3
- package/lib/v1/Provider/index.js +5 -0
- package/lib/v1/Radio/Radio.js +42 -32
- package/lib/v1/Radio/props/propTypes.js +3 -0
- package/lib/v1/Responsive/CustomResponsive.js +73 -29
- package/lib/v1/Responsive/RefWrapper.js +17 -11
- package/lib/v1/Responsive/ResizeComponent.js +62 -36
- package/lib/v1/Responsive/ResizeObserver.js +24 -10
- package/lib/v1/Responsive/Responsive.js +80 -30
- package/lib/v1/Responsive/index.js +4 -0
- package/lib/v1/Responsive/props/propTypes.js +3 -0
- package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +27 -13
- package/lib/v1/ResponsiveDropBox/props/propTypes.js +9 -4
- package/lib/v1/Ribbon/Ribbon.js +14 -7
- package/lib/v1/Ribbon/props/propTypes.js +3 -0
- package/lib/v1/RippleEffect/RippleEffect.js +17 -7
- package/lib/v1/RippleEffect/props/propTypes.js +3 -0
- package/lib/v1/Select/GroupSelect.js +229 -130
- package/lib/v1/Select/Select.js +297 -214
- package/lib/v1/Select/SelectWithAvatar.js +102 -56
- package/lib/v1/Select/SelectWithIcon.js +131 -76
- package/lib/v1/Select/index.js +5 -0
- package/lib/v1/Select/props/defaultProps.js +5 -4
- package/lib/v1/Select/props/propTypes.js +10 -4
- package/lib/v1/Stencils/Stencils.js +13 -3
- package/lib/v1/Stencils/props/propTypes.js +3 -0
- package/lib/v1/Switch/Switch.js +38 -25
- package/lib/v1/Switch/props/propTypes.js +3 -0
- package/lib/v1/Tab/Tab.js +40 -27
- package/lib/v1/Tab/TabContent.js +12 -5
- package/lib/v1/Tab/TabContentWrapper.js +16 -8
- package/lib/v1/Tab/TabWrapper.js +37 -19
- package/lib/v1/Tab/Tabs.js +170 -83
- package/lib/v1/Tab/index.js +6 -0
- package/lib/v1/Tab/props/propTypes.js +3 -0
- package/lib/v1/Tab/v1Tab.module.css +14 -14
- package/lib/v1/Tab/v1Tabs.module.css +22 -22
- package/lib/v1/Tag/Tag.js +50 -32
- package/lib/v1/Tag/props/propTypes.js +3 -0
- package/lib/v1/TextBox/TextBox.js +70 -47
- package/lib/v1/TextBox/props/propTypes.js +6 -4
- package/lib/v1/TextBoxIcon/TextBoxIcon.js +80 -55
- package/lib/v1/TextBoxIcon/props/propTypes.js +9 -4
- package/lib/v1/Textarea/Textarea.js +45 -28
- package/lib/v1/Textarea/props/propTypes.js +3 -0
- package/lib/v1/Tooltip/Tooltip.js +94 -31
- package/lib/v1/Tooltip/props/propTypes.js +3 -0
- package/lib/v1/Typography/Typography.js +26 -15
- package/lib/v1/Typography/css/Typography.module.css +31 -31
- package/lib/v1/Typography/css/cssJSLogic.js +25 -20
- package/lib/v1/Typography/props/propTypes.js +3 -0
- package/lib/v1/Typography/utils/index.js +1 -0
- package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +25 -12
- package/lib/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +3 -0
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +38 -22
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +3 -0
- package/lib/v1/semantic/Button/Button.js +24 -18
- package/lib/v1/semantic/Button/props/propTypes.js +3 -0
- package/lib/v1/semantic/index.js +2 -0
- package/package.json +2 -2
- package/result.json +1 -1
- package/.DS_Store +0 -0
|
@@ -1,50 +1,85 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports["default"] = void 0;
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
9
12
|
var _propTypes = require("./props/propTypes");
|
|
13
|
+
|
|
10
14
|
var _defaultProps = require("./props/defaultProps");
|
|
15
|
+
|
|
11
16
|
var _DateTime = _interopRequireDefault(require("./DateTime"));
|
|
17
|
+
|
|
12
18
|
var _Popup = _interopRequireDefault(require("../Popup/Popup"));
|
|
19
|
+
|
|
13
20
|
var _icons = require("@zohodesk/icons");
|
|
21
|
+
|
|
14
22
|
var _Layout = require("../Layout");
|
|
23
|
+
|
|
15
24
|
var _TextBoxIcon = _interopRequireDefault(require("../TextBoxIcon/TextBoxIcon"));
|
|
25
|
+
|
|
16
26
|
var _DateWidgetModule = _interopRequireDefault(require("../../DateTime/DateWidget.module.css"));
|
|
27
|
+
|
|
17
28
|
var _validator = _interopRequireDefault(require("../../DateTime/validator"));
|
|
29
|
+
|
|
18
30
|
var _common = require("../../utils/datetime/common");
|
|
31
|
+
|
|
19
32
|
var _dateFormatUtils = require("../../DateTime/dateFormatUtils");
|
|
33
|
+
|
|
20
34
|
var _dateFormat = require("../../DateTime/dateFormatUtils/dateFormat");
|
|
35
|
+
|
|
21
36
|
var _dayChange = require("../../DateTime/dateFormatUtils/dayChange");
|
|
37
|
+
|
|
22
38
|
var _monthChange = require("../../DateTime/dateFormatUtils/monthChange");
|
|
39
|
+
|
|
23
40
|
var _yearChange = require("../../DateTime/dateFormatUtils/yearChange");
|
|
41
|
+
|
|
24
42
|
var _timeChange = require("../../DateTime/dateFormatUtils/timeChange");
|
|
43
|
+
|
|
25
44
|
var _Common = require("../../utils/Common");
|
|
45
|
+
|
|
26
46
|
var _constants = require("../../DateTime/constants");
|
|
47
|
+
|
|
27
48
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
49
|
+
|
|
28
50
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
|
-
|
|
51
|
+
|
|
52
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
53
|
+
|
|
30
54
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
31
|
-
|
|
32
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
55
|
+
|
|
33
56
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
57
|
+
|
|
34
58
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
59
|
+
|
|
35
60
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
61
|
+
|
|
36
62
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
63
|
+
|
|
37
64
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
65
|
+
|
|
38
66
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
67
|
+
|
|
39
68
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
69
|
+
|
|
40
70
|
/* eslint-disable react/no-unused-prop-types */
|
|
71
|
+
|
|
41
72
|
/* eslint css-modules/no-unused-class: [0, { markAsUsed: 'inputLine'] }] */
|
|
42
73
|
var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
43
74
|
_inherits(DateWidgetComponent, _React$Component);
|
|
75
|
+
|
|
44
76
|
var _super = _createSuper(DateWidgetComponent);
|
|
77
|
+
|
|
45
78
|
function DateWidgetComponent(props) {
|
|
46
79
|
var _this;
|
|
80
|
+
|
|
47
81
|
_classCallCheck(this, DateWidgetComponent);
|
|
82
|
+
|
|
48
83
|
_this = _super.call(this, props);
|
|
49
84
|
_this.handleSelect = _this.handleSelect.bind(_assertThisInitialized(_this));
|
|
50
85
|
_this.handleTogglePopup = _this.handleTogglePopup.bind(_assertThisInitialized(_this));
|
|
@@ -84,21 +119,27 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
84
119
|
_this.oldFocusOrder = '';
|
|
85
120
|
_this.focusOrder = '';
|
|
86
121
|
_this.oldKeyDownAction = ''; //'Arrow' || 'valueTyped'
|
|
122
|
+
|
|
87
123
|
_this.keyDownAction = ''; //'Arrow' || 'valueTyped'
|
|
124
|
+
|
|
88
125
|
_this.isMouseDown = false;
|
|
89
126
|
return _this;
|
|
90
127
|
}
|
|
128
|
+
|
|
91
129
|
_createClass(DateWidgetComponent, [{
|
|
92
130
|
key: "componentDidMount",
|
|
93
131
|
value: function componentDidMount() {
|
|
94
132
|
var validation = this.props.validation;
|
|
95
133
|
var selected = this.state.selected;
|
|
134
|
+
|
|
96
135
|
if (validation && validation.validate) {
|
|
97
136
|
this.validateOnSelect(selected, this.props);
|
|
98
137
|
}
|
|
138
|
+
|
|
99
139
|
var _this$handleGetDispla = this.handleGetDisplayText(this.props),
|
|
100
|
-
|
|
101
|
-
|
|
140
|
+
displayText = _this$handleGetDispla.displayText,
|
|
141
|
+
newSelected = _this$handleGetDispla.selected;
|
|
142
|
+
|
|
102
143
|
this.setState({
|
|
103
144
|
displayText: displayText,
|
|
104
145
|
selected: newSelected
|
|
@@ -109,35 +150,39 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
109
150
|
key: "componentDidUpdate",
|
|
110
151
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
111
152
|
var _this$state = this.state,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
153
|
+
selected = _this$state.selected,
|
|
154
|
+
day = _this$state.day,
|
|
155
|
+
month = _this$state.month,
|
|
156
|
+
year = _this$state.year,
|
|
157
|
+
hour = _this$state.hour,
|
|
158
|
+
minute = _this$state.minute,
|
|
159
|
+
noon = _this$state.noon,
|
|
160
|
+
isDateEdited = _this$state.isDateEdited,
|
|
161
|
+
stateFocusOrder = _this$state.stateFocusOrder,
|
|
162
|
+
isFocused = _this$state.isFocused;
|
|
122
163
|
var _this$props = this.props,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
164
|
+
value = _this$props.value,
|
|
165
|
+
validation = _this$props.validation,
|
|
166
|
+
isPopupReady = _this$props.isPopupReady,
|
|
167
|
+
_this$props$dateForma = _this$props.dateFormat,
|
|
168
|
+
dateFormat = _this$props$dateForma === void 0 ? '' : _this$props$dateForma,
|
|
169
|
+
is24Hour = _this$props.is24Hour,
|
|
170
|
+
isHideCurrentYear = _this$props.isHideCurrentYear;
|
|
171
|
+
|
|
130
172
|
if (validation && validation.validate) {
|
|
131
173
|
this.validateOnSelect(selected, this.props);
|
|
132
174
|
}
|
|
175
|
+
|
|
133
176
|
if (value !== prevProps.value || dateFormat !== prevProps.dateFormat || is24Hour !== prevProps.is24Hour || isHideCurrentYear !== prevProps.isHideCurrentYear) {
|
|
134
177
|
var _this$handleGetDispla2 = this.handleGetDisplayText(this.props),
|
|
135
|
-
|
|
136
|
-
|
|
178
|
+
displayText = _this$handleGetDispla2.displayText,
|
|
179
|
+
_selected = _this$handleGetDispla2.selected;
|
|
180
|
+
|
|
137
181
|
this.setState({
|
|
138
182
|
selected: _selected,
|
|
139
183
|
displayText: displayText
|
|
140
184
|
});
|
|
185
|
+
|
|
141
186
|
if (value !== _constants.INVALID_DATE) {
|
|
142
187
|
this.setState({
|
|
143
188
|
day: '',
|
|
@@ -151,29 +196,30 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
151
196
|
});
|
|
152
197
|
}
|
|
153
198
|
}
|
|
199
|
+
|
|
154
200
|
if (prevProps.isPopupReady !== isPopupReady) {
|
|
155
201
|
if (isPopupReady) {
|
|
156
202
|
this.resetLocalDate && this.resetLocalDate();
|
|
157
203
|
}
|
|
158
204
|
}
|
|
205
|
+
|
|
159
206
|
var haveLocalValue = [day, month, year, hour, minute, noon].some(function (value) {
|
|
160
207
|
return !(0, _Common.getIsEmptyValue)(value);
|
|
161
208
|
});
|
|
209
|
+
|
|
162
210
|
if (isDateEdited !== haveLocalValue) {
|
|
163
211
|
this.setState({
|
|
164
212
|
isDateEdited: haveLocalValue
|
|
165
213
|
});
|
|
166
214
|
}
|
|
215
|
+
|
|
167
216
|
if (value !== prevProps.value || dateFormat !== prevProps.dateFormat || is24Hour !== prevProps.is24Hour || (0, _dateFormatUtils.arrayIsNotEqual)([day, month, year, hour, minute, noon], [prevState.day, prevState.month, prevState.year, prevState.hour, prevState.minute, prevState.noon])) {
|
|
168
217
|
this.handleSelectionRangeDetails(this.props);
|
|
169
|
-
}
|
|
218
|
+
} // if (stateFocusOrder !== prevState.stateFocusOrder) {
|
|
170
219
|
|
|
171
|
-
// if (stateFocusOrder !== prevState.stateFocusOrder) {
|
|
172
220
|
|
|
173
221
|
isFocused && !(0, _Common.getIsEmptyValue)(stateFocusOrder) && this.handleSelection(stateFocusOrder);
|
|
174
|
-
this.handleBlurSelectionRange(stateFocusOrder, prevState.stateFocusOrder);
|
|
175
|
-
// }
|
|
176
|
-
|
|
222
|
+
this.handleBlurSelectionRange(stateFocusOrder, prevState.stateFocusOrder); // }
|
|
177
223
|
// if (prevProps.isPopupOpen !== isPopupOpen) {
|
|
178
224
|
// if (!isPopupOpen) {
|
|
179
225
|
// this.valueInput && this.valueInput.focus({preventScroll:true});
|
|
@@ -184,14 +230,16 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
184
230
|
key: "handleSelect",
|
|
185
231
|
value: function handleSelect(userZoneSelectedTime, fotmattedValue, e) {
|
|
186
232
|
var _this$props2 = this.props,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
233
|
+
id = _this$props2.id,
|
|
234
|
+
onSelect = _this$props2.onSelect,
|
|
235
|
+
closePopupOnly = _this$props2.closePopupOnly,
|
|
236
|
+
validation = _this$props2.validation;
|
|
237
|
+
|
|
191
238
|
if (validation && validation.validateOn) {
|
|
192
239
|
var selected = this.state.selected;
|
|
193
240
|
this.validateOnSelect(selected, this.props);
|
|
194
241
|
}
|
|
242
|
+
|
|
195
243
|
onSelect && onSelect(userZoneSelectedTime, id);
|
|
196
244
|
this.valueInput && this.valueInput.focus({
|
|
197
245
|
preventScroll: true
|
|
@@ -205,17 +253,20 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
205
253
|
var defaultValidateRules = ['required'];
|
|
206
254
|
var defaultType = 'onegroup';
|
|
207
255
|
var validation = props.validation,
|
|
208
|
-
|
|
209
|
-
|
|
256
|
+
onPassValidation = props.onPassValidation,
|
|
257
|
+
onFailValidation = props.onFailValidation;
|
|
210
258
|
var targetTag = this.elementRef;
|
|
259
|
+
|
|
211
260
|
if (validation) {
|
|
212
261
|
//validateOn won't work here ...
|
|
213
262
|
var newValidation = _validator["default"].combinePropsValidation(this.props, defaultType, 'onSelect', validation, defaultCheckPropsRules, defaultValidateRules);
|
|
263
|
+
|
|
214
264
|
var validationObj = {
|
|
215
265
|
validation: newValidation,
|
|
216
266
|
onPassValidation: onPassValidation,
|
|
217
267
|
onFailValidation: onFailValidation
|
|
218
268
|
};
|
|
269
|
+
|
|
219
270
|
_validator["default"].executeValidation(value, targetTag, validationObj, defaultType);
|
|
220
271
|
} else {
|
|
221
272
|
onPassValidation && onPassValidation(value, targetTag);
|
|
@@ -225,11 +276,12 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
225
276
|
key: "handleTogglePopup",
|
|
226
277
|
value: function handleTogglePopup(e, isOpenOnly) {
|
|
227
278
|
var _this$props3 = this.props,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
279
|
+
togglePopup = _this$props3.togglePopup,
|
|
280
|
+
_this$props3$defaultP = _this$props3.defaultPosition,
|
|
281
|
+
defaultPosition = _this$props3$defaultP === void 0 ? 'bottom' : _this$props3$defaultP,
|
|
282
|
+
isPopupOpen = _this$props3.isPopupOpen,
|
|
283
|
+
removeClose = _this$props3.removeClose;
|
|
284
|
+
|
|
233
285
|
if (isOpenOnly) {
|
|
234
286
|
if (!isPopupOpen) {
|
|
235
287
|
togglePopup(e, "".concat(defaultPosition, "Right"));
|
|
@@ -237,26 +289,26 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
237
289
|
removeClose(e);
|
|
238
290
|
}
|
|
239
291
|
}
|
|
292
|
+
|
|
240
293
|
!isOpenOnly && togglePopup(e, "".concat(defaultPosition, "Right"));
|
|
241
294
|
}
|
|
242
295
|
}, {
|
|
243
296
|
key: "handleSelectionRangeDetails",
|
|
244
297
|
value: function handleSelectionRangeDetails(props) {
|
|
245
298
|
var timeZone = props.timeZone,
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
299
|
+
dateFormat = props.dateFormat,
|
|
300
|
+
isDateTime = props.isDateTime,
|
|
301
|
+
value = props.value,
|
|
302
|
+
is24Hour = props.is24Hour;
|
|
250
303
|
var _this$state2 = this.state,
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
var selected = value === _constants.INVALID_DATE ? '' : value;
|
|
304
|
+
day = _this$state2.day,
|
|
305
|
+
month = _this$state2.month,
|
|
306
|
+
year = _this$state2.year,
|
|
307
|
+
hour = _this$state2.hour,
|
|
308
|
+
minute = _this$state2.minute,
|
|
309
|
+
noon = _this$state2.noon;
|
|
310
|
+
var selected = value === _constants.INVALID_DATE ? '' : value; //New UI Changes
|
|
258
311
|
|
|
259
|
-
//New UI Changes
|
|
260
312
|
var dateFormatDetails = (0, _dateFormat.getDateFormatDetails)(dateFormat, {
|
|
261
313
|
isHideCurrentYear: false,
|
|
262
314
|
value: value,
|
|
@@ -287,11 +339,11 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
287
339
|
key: "handleGetDisplayText",
|
|
288
340
|
value: function handleGetDisplayText(props) {
|
|
289
341
|
var timeZone = props.timeZone,
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
342
|
+
dateFormat = props.dateFormat,
|
|
343
|
+
isDateTime = props.isDateTime,
|
|
344
|
+
value = props.value,
|
|
345
|
+
is24Hour = props.is24Hour,
|
|
346
|
+
isHideCurrentYear = props.isHideCurrentYear;
|
|
295
347
|
var dateFormatDetails = (0, _dateFormat.getDateFormatDetails)(dateFormat, {
|
|
296
348
|
isHideCurrentYear: isHideCurrentYear,
|
|
297
349
|
value: value,
|
|
@@ -301,14 +353,18 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
301
353
|
var newDateFormat = dateFormatDetails.dateFormat;
|
|
302
354
|
var displayText = '';
|
|
303
355
|
var selected = value === _constants.INVALID_DATE ? '' : value;
|
|
356
|
+
|
|
304
357
|
if (selected) {
|
|
305
358
|
var format = newDateFormat,
|
|
306
|
-
|
|
359
|
+
convertedValue = (0, _dateFormat.getDateText)(value, isDateTime, timeZone);
|
|
360
|
+
|
|
307
361
|
if (isDateTime) {
|
|
308
362
|
format = "".concat(newDateFormat, " ").concat(is24Hour ? 'HH:mm' : 'hh:mm A');
|
|
309
363
|
}
|
|
364
|
+
|
|
310
365
|
displayText = (0, _common.formatDate)(convertedValue, format);
|
|
311
366
|
}
|
|
367
|
+
|
|
312
368
|
return {
|
|
313
369
|
displayText: displayText,
|
|
314
370
|
selected: selected
|
|
@@ -319,18 +375,20 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
319
375
|
value: function handleKeyDown(e) {
|
|
320
376
|
var keyCode = e.keyCode;
|
|
321
377
|
var _this$props4 = this.props,
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
378
|
+
isPopupOpen = _this$props4.isPopupOpen,
|
|
379
|
+
isPopupOpenOnEnter = _this$props4.isPopupOpenOnEnter,
|
|
380
|
+
onKeyDown = _this$props4.onKeyDown,
|
|
381
|
+
closePopupOnly = _this$props4.closePopupOnly,
|
|
382
|
+
cantEditOnPopupOpen = _this$props4.cantEditOnPopupOpen;
|
|
327
383
|
var isAllowedDateType = this.handleGetAllowedType();
|
|
384
|
+
|
|
328
385
|
if (isPopupOpen) {
|
|
329
386
|
if (keyCode === 9 && !isAllowedDateType) {
|
|
330
387
|
//on tab click popup close
|
|
331
388
|
closePopupOnly(e);
|
|
332
|
-
}
|
|
333
|
-
|
|
389
|
+
} // ~~~~~~~ handle date navigation in dateTime popup ~~~~~
|
|
390
|
+
|
|
391
|
+
|
|
334
392
|
if (isAllowedDateType) {
|
|
335
393
|
cantEditOnPopupOpen && this.handleDateType(e);
|
|
336
394
|
}
|
|
@@ -358,12 +416,13 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
358
416
|
value: function handleFocus() {
|
|
359
417
|
var isAllowedDateType = this.handleGetAllowedType();
|
|
360
418
|
var isMouseDown = this.isMouseDown;
|
|
419
|
+
|
|
361
420
|
if (isAllowedDateType && !isMouseDown) {
|
|
362
421
|
var dateFormatSelection = this.state.dateFormatSelection;
|
|
363
422
|
var focusedIndex = dateFormatSelection.focusedIndex;
|
|
364
423
|
var _this$valueInput = this.valueInput,
|
|
365
|
-
|
|
366
|
-
|
|
424
|
+
newSelectionStart = _this$valueInput.selectionStart,
|
|
425
|
+
newSelectionEnd = _this$valueInput.selectionEnd;
|
|
367
426
|
var focusedOrder = focusedIndex["".concat(newSelectionStart, "_").concat(newSelectionEnd)] || 0;
|
|
368
427
|
isAllowedDateType && this.setState({
|
|
369
428
|
stateFocusOrder: focusedOrder,
|
|
@@ -377,6 +436,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
377
436
|
isFocused: true
|
|
378
437
|
});
|
|
379
438
|
}
|
|
439
|
+
|
|
380
440
|
var onFocus = this.props.onFocus;
|
|
381
441
|
onFocus && onFocus();
|
|
382
442
|
}
|
|
@@ -389,9 +449,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
389
449
|
this.keyDownAction = '';
|
|
390
450
|
this.setState({
|
|
391
451
|
isFocused: false
|
|
392
|
-
});
|
|
393
|
-
|
|
394
|
-
// const { valueInput } = this;
|
|
452
|
+
}); // const { valueInput } = this;
|
|
395
453
|
// document.getSelection().removeAllRanges();
|
|
396
454
|
// valueInput && valueInput.setSelectionRange(0, 0);
|
|
397
455
|
|
|
@@ -403,8 +461,8 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
403
461
|
value: function handleGetMethods(methods) {
|
|
404
462
|
var getMethods = this.props.getMethods;
|
|
405
463
|
var resetLocalDate = methods.resetLocalDate,
|
|
406
|
-
|
|
407
|
-
|
|
464
|
+
getStateValues = methods.getStateValues,
|
|
465
|
+
toggleYearView = methods.toggleYearView;
|
|
408
466
|
this.resetLocalDate = resetLocalDate;
|
|
409
467
|
this.getDateTimeStateValues = getStateValues;
|
|
410
468
|
this.DateTimeYearViewToggle = toggleYearView;
|
|
@@ -414,67 +472,75 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
414
472
|
key: "handleDateType",
|
|
415
473
|
value: function handleDateType(e) {
|
|
416
474
|
var _this2 = this;
|
|
475
|
+
|
|
417
476
|
var keyCode = e.keyCode,
|
|
418
|
-
|
|
477
|
+
shiftKey = e.shiftKey;
|
|
419
478
|
var input = e.target;
|
|
479
|
+
|
|
420
480
|
if ((0, _dateFormatUtils.getIsSupportedKey)(e)) {
|
|
421
481
|
e.preventDefault();
|
|
422
482
|
}
|
|
483
|
+
|
|
423
484
|
var _this$props5 = this.props,
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
485
|
+
isDateTime = _this$props5.isDateTime,
|
|
486
|
+
timeZone = _this$props5.timeZone,
|
|
487
|
+
value = _this$props5.value,
|
|
488
|
+
onSelect = _this$props5.onSelect,
|
|
489
|
+
id = _this$props5.id,
|
|
490
|
+
min = _this$props5.min,
|
|
491
|
+
max = _this$props5.max,
|
|
492
|
+
minErrorText = _this$props5.minErrorText,
|
|
493
|
+
maxErrorText = _this$props5.maxErrorText,
|
|
494
|
+
onError = _this$props5.onError,
|
|
495
|
+
closePopupOnly = _this$props5.closePopupOnly,
|
|
496
|
+
is24Hour = _this$props5.is24Hour;
|
|
436
497
|
var _this$state3 = this.state,
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
498
|
+
dateFormatSelection = _this$state3.dateFormatSelection,
|
|
499
|
+
day = _this$state3.day,
|
|
500
|
+
month = _this$state3.month,
|
|
501
|
+
year = _this$state3.year,
|
|
502
|
+
hour = _this$state3.hour,
|
|
503
|
+
minute = _this$state3.minute,
|
|
504
|
+
noon = _this$state3.noon,
|
|
505
|
+
selected = _this$state3.selected,
|
|
506
|
+
dateFormatDetails = _this$state3.dateFormatDetails;
|
|
446
507
|
var focusedIndex = dateFormatSelection.focusedIndex,
|
|
447
|
-
|
|
508
|
+
order = dateFormatSelection.order;
|
|
448
509
|
var yearInfo = dateFormatDetails.yearInfo;
|
|
510
|
+
|
|
449
511
|
var _getDateDetails = (0, _dateFormat.getDateDetails)(selected, {
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
512
|
+
day: day,
|
|
513
|
+
month: month,
|
|
514
|
+
year: year,
|
|
515
|
+
hour: hour,
|
|
516
|
+
minute: minute,
|
|
517
|
+
noon: noon
|
|
518
|
+
}, isDateTime, timeZone, {
|
|
519
|
+
is24Hour: is24Hour
|
|
520
|
+
}),
|
|
521
|
+
_getDateDetails$day = _getDateDetails.day,
|
|
522
|
+
selectedDay = _getDateDetails$day === void 0 ? '' : _getDateDetails$day,
|
|
523
|
+
_getDateDetails$month = _getDateDetails.month,
|
|
524
|
+
selectedMonth = _getDateDetails$month === void 0 ? '' : _getDateDetails$month,
|
|
525
|
+
_getDateDetails$year = _getDateDetails.year,
|
|
526
|
+
selectedYear = _getDateDetails$year === void 0 ? '' : _getDateDetails$year,
|
|
527
|
+
_getDateDetails$hour = _getDateDetails.hour,
|
|
528
|
+
selectedHour = _getDateDetails$hour === void 0 ? '' : _getDateDetails$hour,
|
|
529
|
+
_getDateDetails$minut = _getDateDetails.minute,
|
|
530
|
+
selectedMinute = _getDateDetails$minut === void 0 ? '' : _getDateDetails$minut,
|
|
531
|
+
_getDateDetails$noon = _getDateDetails.noon,
|
|
532
|
+
selectedNoon = _getDateDetails$noon === void 0 ? '' : _getDateDetails$noon;
|
|
533
|
+
|
|
471
534
|
var newSelectionStart = input.selectionStart,
|
|
472
|
-
|
|
535
|
+
newSelectionEnd = input.selectionEnd;
|
|
473
536
|
var focusedOrder = focusedIndex["".concat(newSelectionStart, "_").concat(newSelectionEnd)];
|
|
537
|
+
|
|
474
538
|
var _ref = order[focusedOrder] || {},
|
|
475
|
-
|
|
539
|
+
type = _ref.type;
|
|
540
|
+
|
|
476
541
|
this.oldFocusOrder = this.focusOrder;
|
|
477
542
|
this.focusOrder = focusedOrder;
|
|
543
|
+
|
|
478
544
|
if (keyCode === 38 || keyCode === 40) {
|
|
479
545
|
//up arrow && down arrow
|
|
480
546
|
this.oldKeyDownAction = this.keyDownAction;
|
|
@@ -483,6 +549,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
483
549
|
this.oldKeyDownAction = this.keyDownAction;
|
|
484
550
|
this.keyDownAction = 'valueTyped';
|
|
485
551
|
}
|
|
552
|
+
|
|
486
553
|
var focusedOrders = {
|
|
487
554
|
focusOrder: this.focusOrder,
|
|
488
555
|
oldFocusOrder: this.oldFocusOrder
|
|
@@ -492,13 +559,14 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
492
559
|
keyAction: this.keyDownAction
|
|
493
560
|
};
|
|
494
561
|
var newDay = selectedDay,
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
562
|
+
newMonth = selectedMonth,
|
|
563
|
+
newYear = selectedYear,
|
|
564
|
+
newHour = selectedHour,
|
|
565
|
+
newMinute = selectedMinute,
|
|
566
|
+
newNoon = selectedNoon,
|
|
567
|
+
isValueChanged = false,
|
|
568
|
+
newFocusOrder = focusedOrder;
|
|
569
|
+
|
|
502
570
|
if (keyCode === 9 && shiftKey && !(0, _Common.getIsEmptyValue)(focusedOrder) && focusedOrder !== 0) {
|
|
503
571
|
e.preventDefault();
|
|
504
572
|
this.setState({
|
|
@@ -532,6 +600,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
532
600
|
month: selectedMonth,
|
|
533
601
|
year: selectedYear
|
|
534
602
|
}, e, focusedOrders, keyActions);
|
|
603
|
+
|
|
535
604
|
newDay = _getChangedDay.day;
|
|
536
605
|
isValueChanged = _getChangedDay.isChanged;
|
|
537
606
|
newFocusOrder = _getChangedDay.focusOrder;
|
|
@@ -541,6 +610,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
541
610
|
month: selectedMonth,
|
|
542
611
|
year: selectedYear
|
|
543
612
|
}, e, focusedOrders, keyActions);
|
|
613
|
+
|
|
544
614
|
newMonth = _getChangedMonth.month;
|
|
545
615
|
isValueChanged = _getChangedMonth.isChanged;
|
|
546
616
|
newFocusOrder = _getChangedMonth.focusOrder;
|
|
@@ -552,6 +622,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
552
622
|
}, e, focusedOrders, keyActions, {
|
|
553
623
|
yearInfo: yearInfo
|
|
554
624
|
});
|
|
625
|
+
|
|
555
626
|
newYear = _getChangedYear.year;
|
|
556
627
|
isValueChanged = _getChangedYear.isChanged;
|
|
557
628
|
newFocusOrder = _getChangedYear.focusOrder;
|
|
@@ -561,6 +632,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
561
632
|
}, e, focusedOrders, keyActions, {
|
|
562
633
|
is24Hour: is24Hour
|
|
563
634
|
});
|
|
635
|
+
|
|
564
636
|
newHour = _getChangedHour.hour;
|
|
565
637
|
isValueChanged = _getChangedHour.isChanged;
|
|
566
638
|
newFocusOrder = _getChangedHour.focusOrder;
|
|
@@ -568,6 +640,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
568
640
|
var _getChangedMinute = (0, _timeChange.getChangedMinute)({
|
|
569
641
|
minute: selectedMinute
|
|
570
642
|
}, e, focusedOrders, keyActions);
|
|
643
|
+
|
|
571
644
|
newMinute = _getChangedMinute.minute;
|
|
572
645
|
isValueChanged = _getChangedMinute.isChanged;
|
|
573
646
|
newFocusOrder = _getChangedMinute.focusOrder;
|
|
@@ -575,10 +648,12 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
575
648
|
var _getChangedNoon = (0, _timeChange.getChangedNoon)({
|
|
576
649
|
noon: selectedNoon
|
|
577
650
|
}, e, focusedOrders, keyActions);
|
|
651
|
+
|
|
578
652
|
newNoon = _getChangedNoon.noon;
|
|
579
653
|
isValueChanged = _getChangedNoon.isChanged;
|
|
580
654
|
newFocusOrder = _getChangedNoon.focusOrder;
|
|
581
655
|
}
|
|
656
|
+
|
|
582
657
|
if (isValueChanged) {
|
|
583
658
|
var currentValue = {
|
|
584
659
|
day: newDay,
|
|
@@ -588,6 +663,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
588
663
|
minute: newMinute,
|
|
589
664
|
noon: newNoon
|
|
590
665
|
};
|
|
666
|
+
|
|
591
667
|
var errorCaseHandle = function errorCaseHandle(isEmptyValError) {
|
|
592
668
|
_this2.setState(function () {
|
|
593
669
|
return {
|
|
@@ -602,33 +678,38 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
602
678
|
isError: !isEmptyValError
|
|
603
679
|
};
|
|
604
680
|
});
|
|
681
|
+
|
|
605
682
|
var newSelected = isEmptyValError ? '' : _constants.INVALID_DATE;
|
|
606
683
|
value !== newSelected && onSelect && onSelect(newSelected, id);
|
|
607
684
|
};
|
|
685
|
+
|
|
608
686
|
var _getIsValidDate = (0, _dateFormat.getIsValidDate)(currentValue, isDateTime, {
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
687
|
+
is24Hour: is24Hour
|
|
688
|
+
}),
|
|
689
|
+
isError = _getIsValidDate.isError,
|
|
690
|
+
isEmptyValError = _getIsValidDate.isEmptyValError;
|
|
691
|
+
|
|
613
692
|
if (isError) {
|
|
614
693
|
errorCaseHandle(isEmptyValError);
|
|
615
694
|
} else {
|
|
616
695
|
var _getSelectedDate = (0, _dateFormat.getSelectedDate)(currentValue, {
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
696
|
+
min: min,
|
|
697
|
+
max: max,
|
|
698
|
+
timeZone: timeZone,
|
|
699
|
+
isDateTime: isDateTime,
|
|
700
|
+
is24Hour: is24Hour
|
|
701
|
+
}),
|
|
702
|
+
selectedValue = _getSelectedDate.selectedValue,
|
|
703
|
+
selectedDateError = _getSelectedDate.isError,
|
|
704
|
+
errorType = _getSelectedDate.errorType;
|
|
705
|
+
|
|
626
706
|
if (selectedDateError) {
|
|
627
707
|
if (errorType === 'MIN') {
|
|
628
708
|
onError && onError(minErrorText, true);
|
|
629
709
|
} else if (errorType === 'MAX') {
|
|
630
710
|
onError && onError(maxErrorText, true);
|
|
631
711
|
}
|
|
712
|
+
|
|
632
713
|
errorCaseHandle();
|
|
633
714
|
} else {
|
|
634
715
|
this.setState(function () {
|
|
@@ -654,17 +735,23 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
654
735
|
value: function handleSelection() {
|
|
655
736
|
var focusOrder = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
656
737
|
var isAllowedDateType = this.handleGetAllowedType();
|
|
738
|
+
|
|
657
739
|
if (isAllowedDateType) {
|
|
658
740
|
var dateFormatSelection = this.state.dateFormatSelection;
|
|
659
741
|
var _dateFormatSelection$ = dateFormatSelection.order,
|
|
660
|
-
|
|
742
|
+
order = _dateFormatSelection$ === void 0 ? {} : _dateFormatSelection$;
|
|
743
|
+
|
|
661
744
|
var _ref2 = order[focusOrder] || {},
|
|
662
|
-
|
|
745
|
+
index = _ref2.index;
|
|
746
|
+
|
|
663
747
|
if (!index) {
|
|
664
748
|
focusOrder = 0;
|
|
749
|
+
|
|
665
750
|
var _ref3 = order[focusOrder] || {};
|
|
751
|
+
|
|
666
752
|
index = _ref3.index;
|
|
667
753
|
}
|
|
754
|
+
|
|
668
755
|
if (index && this.valueInput) {
|
|
669
756
|
document.getSelection().removeAllRanges();
|
|
670
757
|
this.valueInput.setSelectionRange(index[0], index[1]);
|
|
@@ -682,26 +769,31 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
682
769
|
var clickIndex = dateFormatSelection.clickIndex;
|
|
683
770
|
var focusOrder = clickIndex[selectionEnd] || clickIndex[selectionEnd - 1] || 0;
|
|
684
771
|
var isAllowedDateType = this.handleGetAllowedType();
|
|
772
|
+
|
|
685
773
|
if (isAllowedDateType) {
|
|
686
774
|
this.setState({
|
|
687
775
|
stateFocusOrder: focusOrder,
|
|
688
776
|
isFocused: true
|
|
689
777
|
});
|
|
690
778
|
}
|
|
779
|
+
|
|
691
780
|
if (!isAllowedDateType) {
|
|
692
781
|
this.handleTogglePopup(e);
|
|
693
782
|
} else {
|
|
694
783
|
var _this$props6 = this.props,
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
784
|
+
isPopupOpenOnClick = _this$props6.isPopupOpenOnClick,
|
|
785
|
+
isReadOnly = _this$props6.isReadOnly,
|
|
786
|
+
isDisabled = _this$props6.isDisabled;
|
|
787
|
+
|
|
698
788
|
if (isPopupOpenOnClick && (!isReadOnly || !isDisabled)) {
|
|
699
789
|
this.handleTogglePopup(e, true);
|
|
700
790
|
}
|
|
791
|
+
|
|
701
792
|
var _this$props7 = this.props,
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
793
|
+
isPopupCloseOnClick = _this$props7.isPopupCloseOnClick,
|
|
794
|
+
isPopupOpen = _this$props7.isPopupOpen,
|
|
795
|
+
closePopupOnly = _this$props7.closePopupOnly;
|
|
796
|
+
|
|
705
797
|
if (isPopupCloseOnClick && !isPopupOpen) {
|
|
706
798
|
closePopupOnly && closePopupOnly(e);
|
|
707
799
|
}
|
|
@@ -716,47 +808,49 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
716
808
|
key: "handleGetShowValue",
|
|
717
809
|
value: function handleGetShowValue() {
|
|
718
810
|
var _this$state4 = this.state,
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
811
|
+
day = _this$state4.day,
|
|
812
|
+
month = _this$state4.month,
|
|
813
|
+
year = _this$state4.year,
|
|
814
|
+
hour = _this$state4.hour,
|
|
815
|
+
minute = _this$state4.minute,
|
|
816
|
+
noon = _this$state4.noon,
|
|
817
|
+
dateFormatDetails = _this$state4.dateFormatDetails,
|
|
818
|
+
displayText = _this$state4.displayText,
|
|
819
|
+
newDateFormat = _this$state4.newDateFormat,
|
|
820
|
+
isDateEdited = _this$state4.isDateEdited,
|
|
821
|
+
isFocused = _this$state4.isFocused,
|
|
822
|
+
selected = _this$state4.selected;
|
|
731
823
|
var _this$props8 = this.props,
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
824
|
+
isDateTime = _this$props8.isDateTime,
|
|
825
|
+
is24Hour = _this$props8.is24Hour,
|
|
826
|
+
isPopupReady = _this$props8.isPopupReady,
|
|
827
|
+
timeZone = _this$props8.timeZone,
|
|
828
|
+
isPopupOpen = _this$props8.isPopupOpen;
|
|
829
|
+
|
|
737
830
|
if (isDateEdited || isFocused || isPopupReady || isPopupOpen) {
|
|
738
831
|
var _getDateDetails2 = (0, _dateFormat.getDateDetails)(selected, {
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
832
|
+
day: day,
|
|
833
|
+
month: month,
|
|
834
|
+
year: year,
|
|
835
|
+
hour: hour,
|
|
836
|
+
minute: minute,
|
|
837
|
+
noon: noon
|
|
838
|
+
}, isDateTime, timeZone, {
|
|
839
|
+
is24Hour: is24Hour
|
|
840
|
+
}),
|
|
841
|
+
_getDateDetails2$day = _getDateDetails2.day,
|
|
842
|
+
selectedDay = _getDateDetails2$day === void 0 ? '' : _getDateDetails2$day,
|
|
843
|
+
_getDateDetails2$mont = _getDateDetails2.month,
|
|
844
|
+
selectedMonth = _getDateDetails2$mont === void 0 ? '' : _getDateDetails2$mont,
|
|
845
|
+
_getDateDetails2$year = _getDateDetails2.year,
|
|
846
|
+
selectedYear = _getDateDetails2$year === void 0 ? '' : _getDateDetails2$year,
|
|
847
|
+
_getDateDetails2$hour = _getDateDetails2.hour,
|
|
848
|
+
selectedHour = _getDateDetails2$hour === void 0 ? '' : _getDateDetails2$hour,
|
|
849
|
+
_getDateDetails2$minu = _getDateDetails2.minute,
|
|
850
|
+
selectedMinute = _getDateDetails2$minu === void 0 ? '' : _getDateDetails2$minu,
|
|
851
|
+
_getDateDetails2$noon = _getDateDetails2.noon,
|
|
852
|
+
selectedNoon = _getDateDetails2$noon === void 0 ? '' : _getDateDetails2$noon;
|
|
853
|
+
|
|
760
854
|
var dateTimeString = (0, _dateFormat.getDateTimeString)({
|
|
761
855
|
day: selectedDay,
|
|
762
856
|
month: selectedMonth,
|
|
@@ -773,6 +867,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
773
867
|
} else if (displayText) {
|
|
774
868
|
return displayText;
|
|
775
869
|
}
|
|
870
|
+
|
|
776
871
|
var timeFormat = is24Hour ? ' HH:mm' : ' hh:mm --';
|
|
777
872
|
var dateTimeFormat = isDateTime ? "".concat(newDateFormat).concat(timeFormat) : newDateFormat;
|
|
778
873
|
return dateTimeFormat || '';
|
|
@@ -781,24 +876,27 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
781
876
|
key: "handleGetAllowedType",
|
|
782
877
|
value: function handleGetAllowedType() {
|
|
783
878
|
var _this$props9 = this.props,
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
879
|
+
isReadOnly = _this$props9.isReadOnly,
|
|
880
|
+
isDisabled = _this$props9.isDisabled,
|
|
881
|
+
isEditable = _this$props9.isEditable;
|
|
882
|
+
|
|
787
883
|
if (isEditable) {
|
|
788
884
|
if (isReadOnly || isDisabled) {
|
|
789
885
|
return false;
|
|
790
886
|
}
|
|
887
|
+
|
|
791
888
|
return true;
|
|
792
889
|
}
|
|
890
|
+
|
|
793
891
|
return false;
|
|
794
892
|
}
|
|
795
893
|
}, {
|
|
796
894
|
key: "handleDateClear",
|
|
797
895
|
value: function handleDateClear() {
|
|
798
896
|
var _this$props10 = this.props,
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
897
|
+
id = _this$props10.id,
|
|
898
|
+
onSelect = _this$props10.onSelect,
|
|
899
|
+
value = _this$props10.value;
|
|
802
900
|
this.setState({
|
|
803
901
|
day: '',
|
|
804
902
|
month: '',
|
|
@@ -810,8 +908,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
810
908
|
stateFocusOrder: 0,
|
|
811
909
|
isError: false
|
|
812
910
|
});
|
|
813
|
-
value && onSelect && onSelect('', id);
|
|
814
|
-
// this.valueInput && this.valueInput.focus({ preventScroll: true });
|
|
911
|
+
value && onSelect && onSelect('', id); // this.valueInput && this.valueInput.focus({ preventScroll: true });
|
|
815
912
|
}
|
|
816
913
|
}, {
|
|
817
914
|
key: "handleDateTimeClear",
|
|
@@ -834,84 +931,87 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
834
931
|
var focusOrder = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
835
932
|
var oldFocusOrder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
836
933
|
var isAllowedDateType = this.handleGetAllowedType();
|
|
934
|
+
|
|
837
935
|
if (isAllowedDateType) {
|
|
838
936
|
// if (focusOrder !== oldFocusOrder) {
|
|
839
937
|
var _this$state$dateForma = this.state.dateFormatSelection,
|
|
840
|
-
|
|
938
|
+
dateFormatSelection = _this$state$dateForma === void 0 ? {} : _this$state$dateForma;
|
|
841
939
|
var _dateFormatSelection$2 = dateFormatSelection.order,
|
|
842
|
-
|
|
843
|
-
var isPopupOpen = this.props.isPopupOpen;
|
|
940
|
+
order = _dateFormatSelection$2 === void 0 ? [] : _dateFormatSelection$2;
|
|
941
|
+
var isPopupOpen = this.props.isPopupOpen; // const { type: oldFocusedType = '' } = order[oldFocusOrder] || {};
|
|
844
942
|
|
|
845
|
-
// const { type: oldFocusedType = '' } = order[oldFocusOrder] || {};
|
|
846
943
|
var _ref4 = order[focusOrder] || {},
|
|
847
|
-
|
|
848
|
-
|
|
944
|
+
_ref4$type = _ref4.type,
|
|
945
|
+
focusedType = _ref4$type === void 0 ? '' : _ref4$type;
|
|
946
|
+
|
|
849
947
|
var _this$getDateTimeStat = this.getDateTimeStateValues(),
|
|
850
|
-
|
|
851
|
-
|
|
948
|
+
isYearView = _this$getDateTimeStat.isYearView,
|
|
949
|
+
oldIsMonthOpen = _this$getDateTimeStat.isMonthOpen;
|
|
950
|
+
|
|
852
951
|
var yearViewTypes = ['month', 'year'];
|
|
853
952
|
var isMonthOpen = focusedType === 'month';
|
|
953
|
+
|
|
854
954
|
if (isPopupOpen) {
|
|
855
955
|
if (yearViewTypes.indexOf(focusedType) >= 0 && (!isYearView || isMonthOpen !== oldIsMonthOpen)) {
|
|
856
956
|
this.DateTimeYearViewToggle(true, isMonthOpen);
|
|
857
957
|
} else if (yearViewTypes.indexOf(focusedType) === -1 && isYearView) {
|
|
858
958
|
this.DateTimeYearViewToggle(false, false);
|
|
859
959
|
}
|
|
860
|
-
}
|
|
861
|
-
|
|
960
|
+
} // }
|
|
961
|
+
|
|
862
962
|
}
|
|
863
963
|
}
|
|
864
964
|
}, {
|
|
865
965
|
key: "render",
|
|
866
966
|
value: function render() {
|
|
867
967
|
var _this$props11 = this.props,
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
968
|
+
removeClose = _this$props11.removeClose,
|
|
969
|
+
minErrorText = _this$props11.minErrorText,
|
|
970
|
+
maxErrorText = _this$props11.maxErrorText,
|
|
971
|
+
min = _this$props11.min,
|
|
972
|
+
max = _this$props11.max,
|
|
973
|
+
placeholder = _this$props11.placeholder,
|
|
974
|
+
isPopupOpen = _this$props11.isPopupOpen,
|
|
975
|
+
isPopupReady = _this$props11.isPopupReady,
|
|
976
|
+
isDateTime = _this$props11.isDateTime,
|
|
977
|
+
position = _this$props11.position,
|
|
978
|
+
textBoxVariant = _this$props11.textBoxVariant,
|
|
979
|
+
textBoxSize = _this$props11.textBoxSize,
|
|
980
|
+
_this$props11$childre = _this$props11.children,
|
|
981
|
+
children = _this$props11$childre === void 0 ? null : _this$props11$childre,
|
|
982
|
+
isDisabled = _this$props11.isDisabled,
|
|
983
|
+
getContainerRef = _this$props11.getContainerRef,
|
|
984
|
+
getTargetRef = _this$props11.getTargetRef,
|
|
985
|
+
timeZone = _this$props11.timeZone,
|
|
986
|
+
isReadOnly = _this$props11.isReadOnly,
|
|
987
|
+
dataId = _this$props11.dataId,
|
|
988
|
+
needResponsive = _this$props11.needResponsive,
|
|
989
|
+
className = _this$props11.className,
|
|
990
|
+
needBorder = _this$props11.needBorder,
|
|
991
|
+
defaultTime = _this$props11.defaultTime,
|
|
992
|
+
needDefaultTime = _this$props11.needDefaultTime,
|
|
993
|
+
borderColor = _this$props11.borderColor,
|
|
994
|
+
i18nKeys = _this$props11.i18nKeys,
|
|
995
|
+
needErrorOnBlur = _this$props11.needErrorOnBlur,
|
|
996
|
+
htmlId = _this$props11.htmlId,
|
|
997
|
+
iconOnHover = _this$props11.iconOnHover,
|
|
998
|
+
is24Hour = _this$props11.is24Hour,
|
|
999
|
+
isAbsolutePositioningNeeded = _this$props11.isAbsolutePositioningNeeded,
|
|
1000
|
+
positionsOffset = _this$props11.positionsOffset,
|
|
1001
|
+
targetOffset = _this$props11.targetOffset,
|
|
1002
|
+
isRestrictScroll = _this$props11.isRestrictScroll,
|
|
1003
|
+
dropBoxPortalId = _this$props11.dropBoxPortalId,
|
|
1004
|
+
a11y = _this$props11.a11y,
|
|
1005
|
+
boxSize = _this$props11.boxSize,
|
|
1006
|
+
onError = _this$props11.onError,
|
|
1007
|
+
startDate = _this$props11.startDate,
|
|
1008
|
+
endDate = _this$props11.endDate;
|
|
909
1009
|
var _this$state5 = this.state,
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
1010
|
+
_this$state5$selected = _this$state5.selected,
|
|
1011
|
+
value = _this$state5$selected === void 0 ? '' : _this$state5$selected,
|
|
1012
|
+
isError = _this$state5.isError,
|
|
1013
|
+
isDateEdited = _this$state5.isDateEdited,
|
|
1014
|
+
isFocused = _this$state5.isFocused;
|
|
915
1015
|
var showValue = this.handleGetShowValue();
|
|
916
1016
|
var isAllowedDateType = this.handleGetAllowedType();
|
|
917
1017
|
var showClear = !(isDisabled || isReadOnly) && (isDateEdited || value) ? true : false;
|
|
@@ -1000,15 +1100,15 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1000
1100
|
}));
|
|
1001
1101
|
}
|
|
1002
1102
|
}]);
|
|
1103
|
+
|
|
1003
1104
|
return DateWidgetComponent;
|
|
1004
1105
|
}(_react["default"].Component);
|
|
1106
|
+
|
|
1005
1107
|
DateWidgetComponent.defaultProps = _defaultProps.DateWidget_defaultProps;
|
|
1006
1108
|
DateWidgetComponent.propTypes = _propTypes.DateWidget_propTypes;
|
|
1007
1109
|
var DateWidget = (0, _Popup["default"])(DateWidgetComponent);
|
|
1008
1110
|
DateWidget.defaultProps = DateWidgetComponent.defaultProps;
|
|
1009
|
-
DateWidget.propTypes = DateWidgetComponent.propTypes;
|
|
1010
|
-
|
|
1011
|
-
// eslint-disable-next-line no-undef
|
|
1111
|
+
DateWidget.propTypes = DateWidgetComponent.propTypes; // eslint-disable-next-line no-undef
|
|
1012
1112
|
// if (__DOCS__) {
|
|
1013
1113
|
// DateWidgetComponent.docs = {
|
|
1014
1114
|
// componentGroup: 'Form Elements',
|
|
@@ -1019,5 +1119,6 @@ DateWidget.propTypes = DateWidgetComponent.propTypes;
|
|
|
1019
1119
|
// // eslint-disable-next-line react/forbid-foreign-prop-types
|
|
1020
1120
|
// DateWidget.propTypes = DateWidgetComponent.propTypes;
|
|
1021
1121
|
// }
|
|
1122
|
+
|
|
1022
1123
|
var _default = DateWidget;
|
|
1023
1124
|
exports["default"] = _default;
|