intergalactic 15.75.2 → 15.76.0
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/CHANGELOG.md +34 -0
- package/accordion/lib/cjs/Accordion.js +7 -7
- package/accordion/lib/es6/Accordion.js +7 -7
- package/animation/lib/cjs/Animation.js +11 -11
- package/animation/lib/cjs/Collapse.js +28 -28
- package/animation/lib/cjs/FadeInOut.js +28 -28
- package/animation/lib/cjs/Scale.js +28 -28
- package/animation/lib/cjs/Slide.js +28 -28
- package/animation/lib/cjs/Transform.js +28 -28
- package/animation/lib/es6/Animation.js +11 -11
- package/animation/lib/es6/Collapse.js +28 -28
- package/animation/lib/es6/FadeInOut.js +28 -28
- package/animation/lib/es6/Scale.js +28 -28
- package/animation/lib/es6/Slide.js +28 -28
- package/animation/lib/es6/Transform.js +28 -28
- package/badge/lib/cjs/Badge.js +6 -6
- package/badge/lib/es6/Badge.js +6 -6
- package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
- package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
- package/base-trigger/lib/cjs/FilterTrigger.js +7 -7
- package/base-trigger/lib/cjs/LinkTrigger.js +12 -12
- package/base-trigger/lib/cjs/style/filter-trigger.shadow.css +2 -2
- package/base-trigger/lib/es6/BaseTrigger.js +18 -18
- package/base-trigger/lib/es6/ButtonTrigger.js +3 -3
- package/base-trigger/lib/es6/FilterTrigger.js +7 -7
- package/base-trigger/lib/es6/LinkTrigger.js +12 -12
- package/base-trigger/lib/es6/style/filter-trigger.shadow.css +2 -2
- package/breadcrumbs/lib/cjs/Breadcrumbs.js +6 -6
- package/breadcrumbs/lib/es6/Breadcrumbs.js +6 -6
- package/button/lib/cjs/Button.js +26 -26
- package/button/lib/es6/Button.js +26 -26
- package/card/lib/cjs/Card.js +8 -8
- package/card/lib/es6/Card.js +8 -8
- package/carousel/lib/cjs/Carousel.js +19 -19
- package/carousel/lib/es6/Carousel.js +19 -19
- package/checkbox/lib/cjs/Checkbox.js +18 -18
- package/checkbox/lib/es6/Checkbox.js +18 -18
- package/color-picker/lib/cjs/ColorPicker.js +23 -23
- package/color-picker/lib/cjs/PaletteManager.js +23 -23
- package/color-picker/lib/cjs/components/InputColor.js +23 -23
- package/color-picker/lib/es6/ColorPicker.js +23 -23
- package/color-picker/lib/es6/PaletteManager.js +23 -23
- package/color-picker/lib/es6/components/InputColor.js +23 -23
- package/components.json +73 -73
- package/counter/lib/cjs/Counter.js +10 -10
- package/counter/lib/es6/Counter.js +10 -10
- package/d3-chart/Plot.d.ts +4 -0
- package/d3-chart/a11y/DataAccessibilityTable.d.ts +11 -0
- package/d3-chart/a11y/hints.d.ts +6 -1
- package/d3-chart/a11y/serialize.d.ts +2 -2
- package/d3-chart/lib/cjs/Area.js +11 -11
- package/d3-chart/lib/cjs/Axis.js +14 -14
- package/d3-chart/lib/cjs/Bar.js +10 -10
- package/d3-chart/lib/cjs/Bubble.js +12 -12
- package/d3-chart/lib/cjs/Donut.js +9 -9
- package/d3-chart/lib/cjs/Dots.js +8 -8
- package/d3-chart/lib/cjs/HorizontalBar.js +10 -10
- package/d3-chart/lib/cjs/Hover.js +3 -3
- package/d3-chart/lib/cjs/Line.js +9 -9
- package/d3-chart/lib/cjs/Plot.js +3 -3
- package/d3-chart/lib/cjs/Radar.js +19 -19
- package/d3-chart/lib/cjs/RadialTree.js +11 -11
- package/d3-chart/lib/cjs/ReferenceLine.js +9 -9
- package/d3-chart/lib/cjs/ScatterPlot.js +9 -9
- package/d3-chart/lib/cjs/Tooltip.js +9 -9
- package/d3-chart/lib/cjs/Venn.js +9 -9
- package/d3-chart/lib/cjs/a11y/DataAccessibilityTable.js +116 -0
- package/d3-chart/lib/cjs/a11y/DataAccessibilityTable.js.map +1 -0
- package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/cjs/a11y/PlotA11yView.js +11 -90
- package/d3-chart/lib/cjs/a11y/PlotA11yView.js.map +1 -1
- package/d3-chart/lib/cjs/a11y/hints.js.map +1 -1
- package/d3-chart/lib/cjs/a11y/serialize.js +43 -30
- package/d3-chart/lib/cjs/a11y/serialize.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/cjs/types/Plot.d.js.map +1 -1
- package/d3-chart/lib/es6/Area.js +11 -11
- package/d3-chart/lib/es6/Axis.js +14 -14
- package/d3-chart/lib/es6/Bar.js +10 -10
- package/d3-chart/lib/es6/Bubble.js +12 -12
- package/d3-chart/lib/es6/Donut.js +9 -9
- package/d3-chart/lib/es6/Dots.js +8 -8
- package/d3-chart/lib/es6/HorizontalBar.js +10 -10
- package/d3-chart/lib/es6/Hover.js +3 -3
- package/d3-chart/lib/es6/Line.js +9 -9
- package/d3-chart/lib/es6/Plot.js +3 -3
- package/d3-chart/lib/es6/Radar.js +19 -19
- package/d3-chart/lib/es6/RadialTree.js +11 -11
- package/d3-chart/lib/es6/ReferenceLine.js +9 -9
- package/d3-chart/lib/es6/ScatterPlot.js +9 -9
- package/d3-chart/lib/es6/Tooltip.js +9 -9
- package/d3-chart/lib/es6/Venn.js +9 -9
- package/d3-chart/lib/es6/a11y/DataAccessibilityTable.js +108 -0
- package/d3-chart/lib/es6/a11y/DataAccessibilityTable.js.map +1 -0
- package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/es6/a11y/PlotA11yView.js +11 -90
- package/d3-chart/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/d3-chart/lib/es6/a11y/hints.js.map +1 -1
- package/d3-chart/lib/es6/a11y/serialize.js +41 -28
- package/d3-chart/lib/es6/a11y/serialize.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/es6/types/Plot.d.js.map +1 -1
- package/d3-chart/lib/types/Plot.d.ts +4 -0
- package/d3-chart/lib/types/a11y/DataAccessibilityTable.d.ts +11 -0
- package/d3-chart/lib/types/a11y/hints.d.ts +6 -1
- package/d3-chart/lib/types/a11y/serialize.d.ts +2 -2
- package/data-table/lib/cjs/DataTable.js +35 -35
- package/data-table/lib/es6/DataTable.js +35 -35
- package/date-picker/index.d.ts +32 -14
- package/date-picker/lib/cjs/DatePicker.js +2 -0
- package/date-picker/lib/cjs/DatePicker.js.map +1 -1
- package/date-picker/lib/cjs/DateRangePicker.js +2 -0
- package/date-picker/lib/cjs/DateRangePicker.js.map +1 -1
- package/date-picker/lib/cjs/MonthPicker.js +2 -0
- package/date-picker/lib/cjs/MonthPicker.js.map +1 -1
- package/date-picker/lib/cjs/MonthRangePicker.js +2 -0
- package/date-picker/lib/cjs/MonthRangePicker.js.map +1 -1
- package/date-picker/lib/cjs/components/Calendar.js +21 -21
- package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +31 -26
- package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js.map +1 -1
- package/date-picker/lib/cjs/components/InputTrigger.js +200 -73
- package/date-picker/lib/cjs/components/InputTrigger.js.map +1 -1
- package/date-picker/lib/cjs/components/PickerAbstract.js +27 -26
- package/date-picker/lib/cjs/components/PickerAbstract.js.map +1 -1
- package/date-picker/lib/cjs/components/RangePickerAbstract.js +27 -26
- package/date-picker/lib/cjs/components/RangePickerAbstract.js.map +1 -1
- package/date-picker/lib/cjs/index.d.js.map +1 -1
- package/date-picker/lib/cjs/style/date-picker.shadow.css +4 -0
- package/date-picker/lib/cjs/translations/en.json +5 -1
- package/date-picker/lib/es6/DatePicker.js +2 -0
- package/date-picker/lib/es6/DatePicker.js.map +1 -1
- package/date-picker/lib/es6/DateRangePicker.js +2 -0
- package/date-picker/lib/es6/DateRangePicker.js.map +1 -1
- package/date-picker/lib/es6/MonthPicker.js +2 -0
- package/date-picker/lib/es6/MonthPicker.js.map +1 -1
- package/date-picker/lib/es6/MonthRangePicker.js +2 -0
- package/date-picker/lib/es6/MonthRangePicker.js.map +1 -1
- package/date-picker/lib/es6/components/Calendar.js +21 -21
- package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +31 -26
- package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js.map +1 -1
- package/date-picker/lib/es6/components/InputTrigger.js +200 -73
- package/date-picker/lib/es6/components/InputTrigger.js.map +1 -1
- package/date-picker/lib/es6/components/PickerAbstract.js +27 -26
- package/date-picker/lib/es6/components/PickerAbstract.js.map +1 -1
- package/date-picker/lib/es6/components/RangePickerAbstract.js +27 -26
- package/date-picker/lib/es6/components/RangePickerAbstract.js.map +1 -1
- package/date-picker/lib/es6/index.d.js.map +1 -1
- package/date-picker/lib/es6/style/date-picker.shadow.css +4 -0
- package/date-picker/lib/es6/translations/en.json +5 -1
- package/date-picker/lib/types/index.d.ts +32 -14
- package/divider/lib/cjs/Divider.js +9 -9
- package/divider/lib/es6/Divider.js +9 -9
- package/dot/lib/cjs/Dot.js +10 -10
- package/dot/lib/es6/Dot.js +10 -10
- package/drag-and-drop/lib/cjs/DragAndDrop.js +12 -12
- package/drag-and-drop/lib/es6/DragAndDrop.js +12 -12
- package/dropdown/lib/cjs/Dropdown.js +2 -2
- package/dropdown/lib/es6/Dropdown.js +2 -2
- package/dropdown-menu/index.d.ts +1 -0
- package/dropdown-menu/lib/cjs/DropdownMenu.js +80 -50
- package/dropdown-menu/lib/cjs/DropdownMenu.js.map +1 -1
- package/dropdown-menu/lib/cjs/index.d.js.map +1 -1
- package/dropdown-menu/lib/cjs/style/dropdown-menu.shadow.css +13 -0
- package/dropdown-menu/lib/cjs/styleScrollArea.js +6 -6
- package/dropdown-menu/lib/es6/DropdownMenu.js +82 -51
- package/dropdown-menu/lib/es6/DropdownMenu.js.map +1 -1
- package/dropdown-menu/lib/es6/index.d.js.map +1 -1
- package/dropdown-menu/lib/es6/style/dropdown-menu.shadow.css +13 -0
- package/dropdown-menu/lib/es6/styleScrollArea.js +6 -6
- package/dropdown-menu/lib/types/index.d.ts +1 -0
- package/ellipsis/lib/cjs/Ellipsis.js +10 -10
- package/ellipsis/lib/es6/Ellipsis.js +10 -10
- package/errors/lib/cjs/Error.js +9 -9
- package/errors/lib/es6/Error.js +9 -9
- package/feature-popover/lib/cjs/FeaturePopover.js +10 -10
- package/feature-popover/lib/es6/FeaturePopover.js +10 -10
- package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
- package/feedback-form/lib/es6/FeedbackForm.js +7 -7
- package/flags/lib/cjs/Flags.js +3 -3
- package/flags/lib/es6/Flags.js +3 -3
- package/flags/lib/sprites/sprite@1x.css +256 -256
- package/flags/lib/sprites/sprite@2x.css +257 -257
- package/flex-box/lib/cjs/Box/useBox.js +3 -3
- package/flex-box/lib/cjs/Flex/useFlex.js +3 -3
- package/flex-box/lib/cjs/invalid-state-box/InvalidStateBox.js +2 -2
- package/flex-box/lib/es6/Box/useBox.js +3 -3
- package/flex-box/lib/es6/Flex/useFlex.js +3 -3
- package/flex-box/lib/es6/invalid-state-box/InvalidStateBox.js +2 -2
- package/format-text/lib/cjs/FormatText.js +5 -5
- package/format-text/lib/es6/FormatText.js +5 -5
- package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
- package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
- package/grid/lib/cjs/Grid.js +114 -114
- package/grid/lib/es6/Grid.js +114 -114
- package/icon/color/Confluence/l/index.js +4 -4
- package/icon/color/Confluence/l/index.mjs +4 -4
- package/icon/color/Confluence/m/index.js +4 -4
- package/icon/color/Confluence/m/index.mjs +4 -4
- package/icon/color/MicrosoftOffice/l/index.js +10 -10
- package/icon/color/MicrosoftOffice/l/index.mjs +10 -10
- package/icon/color/MicrosoftOffice/m/index.js +10 -10
- package/icon/color/MicrosoftOffice/m/index.mjs +10 -10
- package/icon/lib/cjs/Icon.js +5 -5
- package/icon/lib/es6/Icon.js +5 -5
- package/icon/pay/Discover/l/index.js +1 -1
- package/icon/pay/Discover/l/index.mjs +1 -1
- package/icon/pay/Discover/m/index.js +1 -1
- package/icon/pay/Discover/m/index.mjs +1 -1
- package/icon/pay/JCB/l/index.js +10 -10
- package/icon/pay/JCB/l/index.mjs +10 -10
- package/icon/pay/JCB/m/index.js +10 -10
- package/icon/pay/JCB/m/index.mjs +10 -10
- package/icon/pay/Visa/l/index.js +2 -2
- package/icon/pay/Visa/l/index.mjs +2 -2
- package/icon/pay/Visa/m/index.js +2 -2
- package/icon/pay/Visa/m/index.mjs +2 -2
- package/illustration/lib/cjs/index.js +1 -1
- package/illustration/lib/es6/index.js +1 -1
- package/inline-edit/lib/cjs/InlineEdit.js +4 -4
- package/inline-edit/lib/es6/InlineEdit.js +4 -4
- package/inline-input/lib/cjs/InlineInput.js +18 -18
- package/inline-input/lib/es6/InlineInput.js +18 -18
- package/input/lib/cjs/Input.js +17 -17
- package/input/lib/es6/Input.js +17 -17
- package/input-mask/lib/cjs/InputMask.js +6 -6
- package/input-mask/lib/es6/InputMask.js +6 -6
- package/input-number/lib/cjs/InputNumber.js +9 -9
- package/input-number/lib/es6/InputNumber.js +9 -9
- package/input-tags/lib/cjs/InputTags.js +12 -12
- package/input-tags/lib/es6/InputTags.js +12 -12
- package/link/lib/cjs/Link.js +12 -12
- package/link/lib/es6/Link.js +12 -12
- package/mini-chart/lib/cjs/component/score/Donut.js +9 -9
- package/mini-chart/lib/cjs/component/score/Line.js +17 -17
- package/mini-chart/lib/cjs/component/trend/Bar.js +7 -7
- package/mini-chart/lib/cjs/component/trend/Line.js +7 -7
- package/mini-chart/lib/es6/component/score/Donut.js +9 -9
- package/mini-chart/lib/es6/component/score/Line.js +17 -17
- package/mini-chart/lib/es6/component/trend/Bar.js +7 -7
- package/mini-chart/lib/es6/component/trend/Line.js +7 -7
- package/modal/lib/cjs/Modal.js +9 -9
- package/modal/lib/es6/Modal.js +9 -9
- package/notice/lib/cjs/Notice.js +13 -13
- package/notice/lib/es6/Notice.js +13 -13
- package/notice-bubble/lib/cjs/NoticeBubble.js +12 -12
- package/notice-bubble/lib/es6/NoticeBubble.js +12 -12
- package/notice-global/lib/cjs/NoticeGlobal.js +11 -11
- package/notice-global/lib/es6/NoticeGlobal.js +11 -11
- package/package.json +1 -1
- package/pagination/lib/cjs/Pagination.js +10 -10
- package/pagination/lib/es6/Pagination.js +10 -10
- package/pills/lib/cjs/Pills.js +13 -13
- package/pills/lib/es6/Pills.js +13 -13
- package/popper/lib/cjs/Popper.js +49 -8
- package/popper/lib/cjs/Popper.js.map +1 -1
- package/popper/lib/es6/Popper.js +49 -8
- package/popper/lib/es6/Popper.js.map +1 -1
- package/product-head/lib/cjs/Info.js +4 -4
- package/product-head/lib/cjs/ProductHead.js +5 -5
- package/product-head/lib/cjs/Title.js +4 -4
- package/product-head/lib/es6/Info.js +4 -4
- package/product-head/lib/es6/ProductHead.js +5 -5
- package/product-head/lib/es6/Title.js +4 -4
- package/progress-bar/lib/cjs/ProgressBar.js +15 -15
- package/progress-bar/lib/es6/ProgressBar.js +15 -15
- package/radio/lib/cjs/Radio.js +16 -16
- package/radio/lib/es6/Radio.js +16 -16
- package/scroll-area/lib/cjs/ScrollArea.js +17 -17
- package/scroll-area/lib/cjs/ScrollBar.js +6 -6
- package/scroll-area/lib/es6/ScrollArea.js +17 -17
- package/scroll-area/lib/es6/ScrollBar.js +6 -6
- package/select/lib/cjs/InputSearch.js +6 -6
- package/select/lib/cjs/Select.js +8 -8
- package/select/lib/es6/InputSearch.js +6 -6
- package/select/lib/es6/Select.js +8 -8
- package/side-panel/lib/cjs/SidePanel.js +15 -15
- package/side-panel/lib/es6/SidePanel.js +15 -15
- package/skeleton/lib/cjs/Charts/Area.js +9 -9
- package/skeleton/lib/cjs/Charts/Bar.js +9 -9
- package/skeleton/lib/cjs/Charts/Bubble.js +9 -9
- package/skeleton/lib/cjs/Charts/Donut.js +9 -9
- package/skeleton/lib/cjs/Charts/Histogram.js +9 -9
- package/skeleton/lib/cjs/Charts/Line.js +9 -9
- package/skeleton/lib/cjs/Charts/RadialTree.js +9 -9
- package/skeleton/lib/cjs/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/cjs/Charts/Venn.js +9 -9
- package/skeleton/lib/cjs/Skeleton.js +8 -8
- package/skeleton/lib/es6/Charts/Area.js +9 -9
- package/skeleton/lib/es6/Charts/Bar.js +9 -9
- package/skeleton/lib/es6/Charts/Bubble.js +9 -9
- package/skeleton/lib/es6/Charts/Donut.js +9 -9
- package/skeleton/lib/es6/Charts/Histogram.js +9 -9
- package/skeleton/lib/es6/Charts/Line.js +9 -9
- package/skeleton/lib/es6/Charts/RadialTree.js +9 -9
- package/skeleton/lib/es6/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/es6/Charts/Venn.js +9 -9
- package/skeleton/lib/es6/Skeleton.js +8 -8
- package/slider/lib/cjs/Slider.js +7 -7
- package/slider/lib/es6/Slider.js +7 -7
- package/spin/lib/cjs/Spin.js +13 -13
- package/spin/lib/es6/Spin.js +13 -13
- package/spin-container/lib/cjs/SpinContainer.js +8 -8
- package/spin-container/lib/es6/SpinContainer.js +8 -8
- package/sticky/lib/cjs/Sticky.js +2 -2
- package/sticky/lib/es6/Sticky.js +2 -2
- package/switch/lib/cjs/Switch.js +21 -21
- package/switch/lib/es6/Switch.js +21 -21
- package/tab-line/lib/cjs/TabLine.js +13 -13
- package/tab-line/lib/es6/TabLine.js +13 -13
- package/tab-panel/lib/cjs/TabPanel.js +8 -8
- package/tab-panel/lib/es6/TabPanel.js +8 -8
- package/tag/lib/cjs/Tag.js +20 -20
- package/tag/lib/es6/Tag.js +20 -20
- package/textarea/lib/cjs/Textarea.js +14 -9
- package/textarea/lib/cjs/Textarea.js.map +1 -1
- package/textarea/lib/es6/Textarea.js +14 -9
- package/textarea/lib/es6/Textarea.js.map +1 -1
- package/time-picker/lib/cjs/TimePicker.js +12 -12
- package/time-picker/lib/es6/TimePicker.js +12 -12
- package/tooltip/lib/cjs/Tooltip.js +9 -9
- package/tooltip/lib/es6/Tooltip.js +9 -9
- package/typography/lib/cjs/Blockquote.js +4 -4
- package/typography/lib/cjs/Hint.js +7 -7
- package/typography/lib/cjs/List.js +5 -5
- package/typography/lib/cjs/Text.js +34 -34
- package/typography/lib/es6/Blockquote.js +4 -4
- package/typography/lib/es6/Hint.js +7 -7
- package/typography/lib/es6/List.js +5 -5
- package/typography/lib/es6/Text.js +34 -34
- package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.js +2 -2
- package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.mjs +2 -2
- package/utils/lib/enhances/keyboardFocusEnhance.d.ts +1 -1
- package/utils/lib/enhances/keyboardFocusEnhance.js +4 -3
- package/utils/lib/enhances/keyboardFocusEnhance.js.map +1 -1
- package/utils/lib/enhances/keyboardFocusEnhance.mjs +4 -3
- package/utils/lib/enhances/keyboardFocusEnhance.mjs.map +1 -1
- package/utils/lib/injectStyle.js +1 -1
- package/utils/lib/injectStyle.mjs +1 -1
- package/widget-empty/lib/cjs/WidgetEmpty.js +5 -5
- package/widget-empty/lib/es6/WidgetEmpty.js +5 -5
- package/wizard/lib/cjs/Wizard.js +11 -11
- package/wizard/lib/es6/Wizard.js +11 -11
@@ -21,6 +21,7 @@ var _core = _interopRequireWildcard(require("intergalactic/core"));
|
|
21
21
|
var _react = _interopRequireDefault(require("react"));
|
22
22
|
var _baseTrigger = _interopRequireDefault(require("intergalactic/base-trigger"));
|
23
23
|
var _inputMask = _interopRequireDefault(require("intergalactic/input-mask"));
|
24
|
+
var _tooltip = _interopRequireDefault(require("intergalactic/tooltip"));
|
24
25
|
var _flexBox = require("intergalactic/flex-box");
|
25
26
|
var _m = _interopRequireDefault(require("intergalactic/icon/Calendar/m"));
|
26
27
|
var _neighborLocation = _interopRequireDefault(require("intergalactic/neighbor-location"));
|
@@ -32,34 +33,35 @@ var _excluded = ["children", "id", "role", "aria-haspopup", "aria-expanded", "ar
|
|
32
33
|
_excluded3 = ["value", "onChange", "onDisplayedPeriodChange", "locale", "w", "ariaHasPopup"],
|
33
34
|
_excluded4 = ["value", "locale", "onDisplayedPeriodChange", "ariaHasPopup"],
|
34
35
|
_excluded5 = ["value", "locale", "onDisplayedPeriodChange", "ariaHasPopup"],
|
35
|
-
_excluded6 = ["date", "onDateChange", "onDisplayedPeriodChange", "locale", "styles", "parts", "disabledDates", "forwardRef", "placeholders", "labelPrefix", "__excludeProps", "Root"];
|
36
|
+
_excluded6 = ["date", "onDateChange", "onDisplayedPeriodChange", "locale", "styles", "parts", "disabledDates", "forwardRef", "placeholders", "labelPrefix", "onMaskPipeBlock", "__excludeProps", "Root"];
|
36
37
|
/*__reshadow-styles__:"../style/date-picker.shadow.css"*/
|
37
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
38
|
-
"__SHeader": "
|
39
|
-
"__STitle": "
|
40
|
-
"__SToday": "
|
41
|
-
"__SPeriod": "
|
42
|
-
"__SButton": "
|
43
|
-
"__SInner": "
|
44
|
-
"__SInputMask": "
|
45
|
-
"__SIndicator": "
|
46
|
-
"__SRangeIndicator": "
|
47
|
-
"_range_value": "
|
48
|
-
"_range_compare": "
|
49
|
-
"_disabled": "
|
50
|
-
"__SHumanizedDate": "
|
51
|
-
"__SSingleDateInput": "
|
52
|
-
"__SValue": "
|
53
|
-
"__SDateRange": "
|
54
|
-
"__SMask": "
|
55
|
-
"_noHumanizedDate": "
|
56
|
-
"__SRangeSep": "
|
57
|
-
"_fulfilled": "
|
58
|
-
"__SRangeComparatorHeader": "
|
59
|
-
"__SRangeCalendar": "
|
60
|
-
"__SFooter": "
|
61
|
-
"__SPeriodsList": "
|
62
|
-
"
|
38
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SPopper_obi8f_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_obi8f_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_obi8f_gg_:active,.___SPopper_obi8f_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPopper_obi8f_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SPopper_obi8f_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_obi8f_gg_,.___STitle_obi8f_gg_{display:flex;align-items:center}.___STitle_obi8f_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_obi8f_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_obi8f_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_obi8f_gg_ .___SInner_obi8f_gg_{justify-content:flex-start}.___SInputMask_obi8f_gg_{color:var(--intergalactic-text-primary, #191b23);line-height:normal}.___SIndicator_obi8f_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SRangeIndicator_obi8f_gg_{border-radius:50%;flex-shrink:0}.___SRangeIndicator_obi8f_gg_._range_value_obi8f_gg_{background-color:var(--intergalactic-date-picker-cell-active, #2bb3ff)}.___SRangeIndicator_obi8f_gg_._range_compare_obi8f_gg_{background-color:var(--intergalactic-date-picker-cell-comparison-active, #8649e1)}.___SRangeIndicator_obi8f_gg_.__disabled_obi8f_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SHumanizedDate_obi8f_gg_{position:absolute;pointer-events:none}.___SDateRange_obi8f_gg_ .___SMask_obi8f_gg_,.___SDateRange_obi8f_gg_ .___SValue_obi8f_gg_,.___SSingleDateInput_obi8f_gg_ .___SMask_obi8f_gg_,.___SSingleDateInput_obi8f_gg_ .___SValue_obi8f_gg_{opacity:0}.___SSingleDateInput_obi8f_gg_:focus-within .___SHumanizedDate_obi8f_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_obi8f_gg_:focus-within .___SMask_obi8f_gg_,.___SSingleDateInput_obi8f_gg_:focus-within .___SValue_obi8f_gg_{opacity:1}.___SDateRange_obi8f_gg_:focus-within .___SHumanizedDate_obi8f_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_obi8f_gg_:focus-within .___SMask_obi8f_gg_,.___SDateRange_obi8f_gg_:focus-within .___SValue_obi8f_gg_{opacity:1}.___SInputMask_obi8f_gg_.__noHumanizedDate_obi8f_gg_ .___SMask_obi8f_gg_,.___SInputMask_obi8f_gg_.__noHumanizedDate_obi8f_gg_ .___SValue_obi8f_gg_{opacity:1}.___SDateRange_obi8f_gg_ .___SInputMask_obi8f_gg_:focus-within .___SMask_obi8f_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_obi8f_gg_:focus-within .___SRangeSep_obi8f_gg_,.___SRangeSep_obi8f_gg_.__fulfilled_obi8f_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SRangeComparatorHeader_obi8f_gg_{border-bottom:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SRangeCalendar_obi8f_gg_,.___SRangeComparatorHeader_obi8f_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___SFooter_obi8f_gg_{border-top:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SFooter_obi8f_gg_,.___SPeriodsList_obi8f_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___STooltip_obi8f_gg_{padding:var(--intergalactic-spacing-3x, 12px)}" /*__inner_css_end__*/, "obi8f_gg_") /*__reshadow_css_end__*/, {
|
39
|
+
"__SHeader": "___SHeader_obi8f_gg_",
|
40
|
+
"__STitle": "___STitle_obi8f_gg_",
|
41
|
+
"__SToday": "___SToday_obi8f_gg_",
|
42
|
+
"__SPeriod": "___SPeriod_obi8f_gg_",
|
43
|
+
"__SButton": "___SButton_obi8f_gg_",
|
44
|
+
"__SInner": "___SInner_obi8f_gg_",
|
45
|
+
"__SInputMask": "___SInputMask_obi8f_gg_",
|
46
|
+
"__SIndicator": "___SIndicator_obi8f_gg_",
|
47
|
+
"__SRangeIndicator": "___SRangeIndicator_obi8f_gg_",
|
48
|
+
"_range_value": "_range_value_obi8f_gg_",
|
49
|
+
"_range_compare": "_range_compare_obi8f_gg_",
|
50
|
+
"_disabled": "__disabled_obi8f_gg_",
|
51
|
+
"__SHumanizedDate": "___SHumanizedDate_obi8f_gg_",
|
52
|
+
"__SSingleDateInput": "___SSingleDateInput_obi8f_gg_",
|
53
|
+
"__SValue": "___SValue_obi8f_gg_",
|
54
|
+
"__SDateRange": "___SDateRange_obi8f_gg_",
|
55
|
+
"__SMask": "___SMask_obi8f_gg_",
|
56
|
+
"_noHumanizedDate": "__noHumanizedDate_obi8f_gg_",
|
57
|
+
"__SRangeSep": "___SRangeSep_obi8f_gg_",
|
58
|
+
"_fulfilled": "__fulfilled_obi8f_gg_",
|
59
|
+
"__SRangeComparatorHeader": "___SRangeComparatorHeader_obi8f_gg_",
|
60
|
+
"__SRangeCalendar": "___SRangeCalendar_obi8f_gg_",
|
61
|
+
"__SFooter": "___SFooter_obi8f_gg_",
|
62
|
+
"__SPeriodsList": "___SPeriodsList_obi8f_gg_",
|
63
|
+
"__STooltip": "___STooltip_obi8f_gg_",
|
64
|
+
"__SPopper": "___SPopper_obi8f_gg_"
|
63
65
|
});
|
64
66
|
var defaultAllowedParts = {
|
65
67
|
year: true,
|
@@ -134,10 +136,52 @@ var SingleDateInputRoot = /*#__PURE__*/function (_Component2) {
|
|
134
136
|
(0, _inherits2["default"])(SingleDateInputRoot, _Component2);
|
135
137
|
var _super2 = (0, _createSuper2["default"])(SingleDateInputRoot);
|
136
138
|
function SingleDateInputRoot() {
|
139
|
+
var _this;
|
137
140
|
(0, _classCallCheck2["default"])(this, SingleDateInputRoot);
|
138
|
-
|
141
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
142
|
+
args[_key] = arguments[_key];
|
143
|
+
}
|
144
|
+
_this = _super2.call.apply(_super2, [this].concat(args));
|
145
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "state", {
|
146
|
+
errorText: null,
|
147
|
+
showError: false
|
148
|
+
});
|
149
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleDisabledDateInputAttemptChange", function (value) {
|
150
|
+
if (value === _this.asProps.disabledDateInputAttempt) return;
|
151
|
+
_this.handlers.disabledDateInputAttempt(value);
|
152
|
+
});
|
153
|
+
return _this;
|
139
154
|
}
|
140
155
|
(0, _createClass2["default"])(SingleDateInputRoot, [{
|
156
|
+
key: "uncontrolledProps",
|
157
|
+
value: function uncontrolledProps() {
|
158
|
+
var _this2 = this;
|
159
|
+
return {
|
160
|
+
disabledDateInputAttempt: [null, function (date) {
|
161
|
+
var errorText = _this2.state.errorText;
|
162
|
+
var showError = false;
|
163
|
+
if (date !== null) {
|
164
|
+
errorText = _this2.asProps.disabledErrorText;
|
165
|
+
if (errorText === undefined) {
|
166
|
+
var key = 'unavailableDate';
|
167
|
+
if (_this2.asProps.parts && !_this2.asProps.parts.day) {
|
168
|
+
key = 'unavailableMonth';
|
169
|
+
}
|
170
|
+
errorText = _this2.asProps.getI18nText(key);
|
171
|
+
}
|
172
|
+
if (typeof errorText === 'function') {
|
173
|
+
errorText = errorText(date);
|
174
|
+
}
|
175
|
+
showError = true;
|
176
|
+
}
|
177
|
+
_this2.setState({
|
178
|
+
errorText: errorText,
|
179
|
+
showError: showError
|
180
|
+
});
|
181
|
+
}]
|
182
|
+
};
|
183
|
+
}
|
184
|
+
}, {
|
141
185
|
key: "getMaskedInputProps",
|
142
186
|
value: function getMaskedInputProps() {
|
143
187
|
var _this$asProps4 = this.asProps,
|
@@ -153,7 +197,8 @@ var SingleDateInputRoot = /*#__PURE__*/function (_Component2) {
|
|
153
197
|
onDateChange: onChange,
|
154
198
|
onDisplayedPeriodChange: onDisplayedPeriodChange,
|
155
199
|
locale: locale,
|
156
|
-
'aria-haspopup': 'true'
|
200
|
+
'aria-haspopup': 'true',
|
201
|
+
onMaskPipeBlock: this.handleDisabledDateInputAttemptChange
|
157
202
|
}, otherProps);
|
158
203
|
}
|
159
204
|
}, {
|
@@ -164,9 +209,19 @@ var SingleDateInputRoot = /*#__PURE__*/function (_Component2) {
|
|
164
209
|
var _this$asProps5 = this.asProps,
|
165
210
|
Children = _this$asProps5.Children,
|
166
211
|
forwardRef = _this$asProps5.forwardRef,
|
167
|
-
styles = _this$asProps5.styles
|
212
|
+
styles = _this$asProps5.styles,
|
213
|
+
state = _this$asProps5.state;
|
214
|
+
var _this$state = this.state,
|
215
|
+
errorText = _this$state.errorText,
|
216
|
+
showError = _this$state.showError;
|
168
217
|
var SSingleDateInput = _inputMask["default"];
|
169
218
|
return _ref9 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SSingleDateInput, _ref9.cn("SSingleDateInput", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
219
|
+
"tag": _tooltip["default"],
|
220
|
+
"placement": 'top-start',
|
221
|
+
"title": errorText,
|
222
|
+
"theme": 'warning',
|
223
|
+
"visible": showError,
|
224
|
+
"state": showError ? 'invalid' : state,
|
170
225
|
"ref": forwardRef,
|
171
226
|
"__excludeProps": ['onChange', 'style', 'aria-expanded']
|
172
227
|
}, _ref2))), /*#__PURE__*/_react["default"].createElement(_neighborLocation["default"], _ref9.cn("NeighborLocation", {}), /*#__PURE__*/_react["default"].createElement(Children, _ref9.cn("Children", {}))));
|
@@ -179,71 +234,122 @@ var SingleDateInputRoot = /*#__PURE__*/function (_Component2) {
|
|
179
234
|
(0, _defineProperty2["default"])(SingleDateInputRoot, "defaultProps", {
|
180
235
|
children: function children() {
|
181
236
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(SingleDateInput.Indicator, null), /*#__PURE__*/_react["default"].createElement(SingleDateInput.MaskedInput, null));
|
182
|
-
}
|
237
|
+
},
|
238
|
+
defaultDisabledDateInputAttempt: false
|
183
239
|
});
|
184
240
|
var DateRangeRoot = /*#__PURE__*/function (_Component3) {
|
185
241
|
(0, _inherits2["default"])(DateRangeRoot, _Component3);
|
186
242
|
var _super3 = (0, _createSuper2["default"])(DateRangeRoot);
|
187
243
|
function DateRangeRoot() {
|
188
|
-
var
|
244
|
+
var _this3;
|
189
245
|
(0, _classCallCheck2["default"])(this, DateRangeRoot);
|
190
|
-
for (var
|
191
|
-
args[
|
246
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
247
|
+
args[_key2] = arguments[_key2];
|
192
248
|
}
|
193
|
-
|
194
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
249
|
+
_this3 = _super3.call.apply(_super3, [this].concat(args));
|
250
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this3), "state", {
|
251
|
+
errorText: null,
|
252
|
+
showError: false,
|
253
|
+
lastChangedInput: 'from'
|
254
|
+
});
|
255
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this3), "fromRef", /*#__PURE__*/_react["default"].createRef());
|
256
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this3), "toRef", /*#__PURE__*/_react["default"].createRef());
|
257
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this3), "handleFromChange", function (value, event) {
|
258
|
+
var _this3$asProps$value$, _this3$asProps$value, _this3$asProps$value$2, _this3$asProps$value2;
|
259
|
+
var onChange = _this3.asProps.onChange;
|
260
|
+
var prevValue = [(_this3$asProps$value$ = (_this3$asProps$value = _this3.asProps.value) === null || _this3$asProps$value === void 0 ? void 0 : _this3$asProps$value[0]) !== null && _this3$asProps$value$ !== void 0 ? _this3$asProps$value$ : null, (_this3$asProps$value$2 = (_this3$asProps$value2 = _this3.asProps.value) === null || _this3$asProps$value2 === void 0 ? void 0 : _this3$asProps$value2[1]) !== null && _this3$asProps$value$2 !== void 0 ? _this3$asProps$value$2 : null];
|
200
261
|
onChange([value, prevValue[1]], event);
|
201
262
|
if (value) {
|
202
|
-
if (!
|
203
|
-
|
263
|
+
if (!_this3.toRef.current) return;
|
264
|
+
_this3.toRef.current.focus();
|
204
265
|
setTimeout(function () {
|
205
|
-
if (!
|
206
|
-
|
266
|
+
if (!_this3.toRef.current) return;
|
267
|
+
_this3.toRef.current.setSelectionRange(0, 0);
|
207
268
|
}, 0);
|
208
269
|
}
|
209
270
|
});
|
210
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(
|
211
|
-
var
|
212
|
-
var onChange =
|
213
|
-
var prevValue = [(
|
271
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this3), "handleToChange", function (value, event) {
|
272
|
+
var _this3$asProps$value$3, _this3$asProps$value3, _this3$asProps$value$4, _this3$asProps$value4;
|
273
|
+
var onChange = _this3.asProps.onChange;
|
274
|
+
var prevValue = [(_this3$asProps$value$3 = (_this3$asProps$value3 = _this3.asProps.value) === null || _this3$asProps$value3 === void 0 ? void 0 : _this3$asProps$value3[0]) !== null && _this3$asProps$value$3 !== void 0 ? _this3$asProps$value$3 : null, (_this3$asProps$value$4 = (_this3$asProps$value4 = _this3.asProps.value) === null || _this3$asProps$value4 === void 0 ? void 0 : _this3$asProps$value4[1]) !== null && _this3$asProps$value$4 !== void 0 ? _this3$asProps$value$4 : null];
|
214
275
|
onChange([prevValue[0], value], event);
|
215
276
|
});
|
216
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(
|
217
|
-
if (!
|
218
|
-
if (!
|
219
|
-
|
220
|
-
|
277
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this3), "handleFromKeydown", function (event) {
|
278
|
+
if (!_this3.toRef.current) return;
|
279
|
+
if (!_this3.fromRef.current) return;
|
280
|
+
_this3.setState({
|
281
|
+
lastChangedInput: 'from'
|
282
|
+
});
|
283
|
+
if (event.key === 'ArrowRight' && _this3.fromRef.current.selectionStart === _this3.fromRef.current.value.length && _this3.fromRef.current.selectionEnd === _this3.fromRef.current.value.length) {
|
284
|
+
_this3.toRef.current.focus();
|
221
285
|
setTimeout(function () {
|
222
|
-
|
286
|
+
_this3.toRef.current.setSelectionRange(0, 0);
|
223
287
|
}, 0);
|
224
288
|
}
|
225
289
|
});
|
226
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(
|
227
|
-
if (!
|
228
|
-
if (!
|
229
|
-
|
230
|
-
|
231
|
-
|
290
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this3), "handleToKeydown", function (event) {
|
291
|
+
if (!_this3.toRef.current) return;
|
292
|
+
if (!_this3.fromRef.current) return;
|
293
|
+
_this3.setState({
|
294
|
+
lastChangedInput: 'to'
|
295
|
+
});
|
296
|
+
if (event.key === 'Backspace' && !_this3.toRef.current.value) {
|
297
|
+
var value = _this3.fromRef.current.value;
|
298
|
+
_this3.fromRef.current.focus();
|
232
299
|
setTimeout(function () {
|
233
|
-
|
300
|
+
_this3.fromRef.current.setSelectionRange(value.length, value.length);
|
234
301
|
}, 0);
|
235
302
|
}
|
236
|
-
if (event.key === 'ArrowLeft' &&
|
237
|
-
var _value =
|
238
|
-
|
303
|
+
if (event.key === 'ArrowLeft' && _this3.toRef.current.selectionStart === 0 && _this3.toRef.current.selectionEnd === 0) {
|
304
|
+
var _value = _this3.fromRef.current.value;
|
305
|
+
_this3.fromRef.current.focus();
|
239
306
|
setTimeout(function () {
|
240
|
-
|
307
|
+
_this3.fromRef.current.setSelectionRange(_value.length, _value.length);
|
241
308
|
}, 0);
|
242
309
|
}
|
243
310
|
});
|
244
|
-
|
311
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this3), "handleDisabledDateInputAttemptChange", function (value) {
|
312
|
+
if (value === _this3.asProps.disabledDateInputAttempt) return;
|
313
|
+
_this3.handlers.disabledDateInputAttempt(value);
|
314
|
+
});
|
315
|
+
return _this3;
|
245
316
|
}
|
246
317
|
(0, _createClass2["default"])(DateRangeRoot, [{
|
318
|
+
key: "uncontrolledProps",
|
319
|
+
value: function uncontrolledProps() {
|
320
|
+
var _this4 = this;
|
321
|
+
return {
|
322
|
+
disabledDateInputAttempt: [null, function (date) {
|
323
|
+
var errorText = _this4.state.errorText;
|
324
|
+
var showError = false;
|
325
|
+
if (date !== null) {
|
326
|
+
errorText = _this4.asProps.disabledErrorText;
|
327
|
+
if (errorText === undefined) {
|
328
|
+
var key = 'unavailableDate';
|
329
|
+
if (_this4.asProps.parts && !_this4.asProps.parts.day) {
|
330
|
+
key = 'unavailableMonth';
|
331
|
+
}
|
332
|
+
if (_this4.state.lastChangedInput === 'to') {
|
333
|
+
key = 'unavailableEndDate';
|
334
|
+
if (_this4.asProps.parts && !_this4.asProps.parts.day) {
|
335
|
+
key = 'unavailableEndMonth';
|
336
|
+
}
|
337
|
+
}
|
338
|
+
errorText = _this4.asProps.getI18nText(key);
|
339
|
+
}
|
340
|
+
if (typeof errorText === 'function') {
|
341
|
+
errorText = errorText(date);
|
342
|
+
}
|
343
|
+
showError = true;
|
344
|
+
}
|
345
|
+
_this4.setState({
|
346
|
+
errorText: errorText,
|
347
|
+
showError: showError
|
348
|
+
});
|
349
|
+
}]
|
350
|
+
};
|
351
|
+
}
|
352
|
+
}, {
|
247
353
|
key: "getFromMaskedInputProps",
|
248
354
|
value: function getFromMaskedInputProps() {
|
249
355
|
var _this$asProps6 = this.asProps,
|
@@ -260,7 +366,8 @@ var DateRangeRoot = /*#__PURE__*/function (_Component3) {
|
|
260
366
|
locale: locale,
|
261
367
|
flex: 1,
|
262
368
|
onDisplayedPeriodChange: onDisplayedPeriodChange,
|
263
|
-
'aria-haspopup': ariaHasPopup
|
369
|
+
'aria-haspopup': ariaHasPopup,
|
370
|
+
onMaskPipeBlock: this.handleDisabledDateInputAttemptChange
|
264
371
|
}, otherProps);
|
265
372
|
}
|
266
373
|
}, {
|
@@ -280,7 +387,8 @@ var DateRangeRoot = /*#__PURE__*/function (_Component3) {
|
|
280
387
|
locale: locale,
|
281
388
|
flex: 1,
|
282
389
|
onDisplayedPeriodChange: onDisplayedPeriodChange,
|
283
|
-
'aria-haspopup': ariaHasPopup
|
390
|
+
'aria-haspopup': ariaHasPopup,
|
391
|
+
onMaskPipeBlock: this.handleDisabledDateInputAttemptChange
|
284
392
|
}, otherProps);
|
285
393
|
}
|
286
394
|
}, {
|
@@ -300,8 +408,19 @@ var DateRangeRoot = /*#__PURE__*/function (_Component3) {
|
|
300
408
|
var _this$asProps8 = this.asProps,
|
301
409
|
Children = _this$asProps8.Children,
|
302
410
|
styles = _this$asProps8.styles,
|
303
|
-
w = _this$asProps8.w
|
411
|
+
w = _this$asProps8.w,
|
412
|
+
state = _this$asProps8.state;
|
413
|
+
var _this$state2 = this.state,
|
414
|
+
errorText = _this$state2.errorText,
|
415
|
+
showError = _this$state2.showError,
|
416
|
+
lastChangedInput = _this$state2.lastChangedInput;
|
304
417
|
return _ref10 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SDateRange, _ref10.cn("SDateRange", (0, _objectSpread2["default"])({}, (0, _core.assignProps)({
|
418
|
+
"tag": _tooltip["default"],
|
419
|
+
"placement": lastChangedInput === 'to' ? 'top-end' : 'top-start',
|
420
|
+
"title": errorText,
|
421
|
+
"theme": 'warning',
|
422
|
+
"visible": showError,
|
423
|
+
"state": showError ? 'invalid' : state,
|
305
424
|
"__excludeProps": ['onChange', 'value', 'aria-expanded'],
|
306
425
|
"w": w
|
307
426
|
}, _ref3))), /*#__PURE__*/_react["default"].createElement(Children, _ref10.cn("Children", {})));
|
@@ -314,7 +433,8 @@ var DateRangeRoot = /*#__PURE__*/function (_Component3) {
|
|
314
433
|
(0, _defineProperty2["default"])(DateRangeRoot, "defaultProps", {
|
315
434
|
children: function children() {
|
316
435
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(DateRange.Indicator, null), /*#__PURE__*/_react["default"].createElement(DateRange.FromMaskedInput, null), /*#__PURE__*/_react["default"].createElement(DateRange.RangeSep, null), /*#__PURE__*/_react["default"].createElement(DateRange.ToMaskedInput, null));
|
317
|
-
}
|
436
|
+
},
|
437
|
+
defaultDisabledDateInputAttempt: false
|
318
438
|
});
|
319
439
|
var FromMaskedInput = function FromMaskedInput(props) {
|
320
440
|
var _ref4 = arguments[0],
|
@@ -369,6 +489,7 @@ var MaskedInput = function MaskedInput(_ref16) {
|
|
369
489
|
placeholders = _ref16$placeholders === void 0 ? defaultPlaceholders : _ref16$placeholders,
|
370
490
|
_ref16$labelPrefix = _ref16.labelPrefix,
|
371
491
|
labelPrefix = _ref16$labelPrefix === void 0 ? 'Date' : _ref16$labelPrefix,
|
492
|
+
onMaskPipeBlock = _ref16.onMaskPipeBlock,
|
372
493
|
__excludeProps = _ref16.__excludeProps,
|
373
494
|
_root = _ref16.Root,
|
374
495
|
otherProps = (0, _objectWithoutProperties2["default"])(_ref16, _excluded6);
|
@@ -473,6 +594,7 @@ var MaskedInput = function MaskedInput(_ref16) {
|
|
473
594
|
}
|
474
595
|
}
|
475
596
|
if (placeholdersOnly) {
|
597
|
+
onMaskPipeBlock === null || onMaskPipeBlock === void 0 ? void 0 : onMaskPipeBlock(null);
|
476
598
|
return '';
|
477
599
|
}
|
478
600
|
var getOffsetTo = function getOffsetTo(partName) {
|
@@ -542,10 +664,14 @@ var MaskedInput = function MaskedInput(_ref16) {
|
|
542
664
|
date.setMonth(allowedParts.month ? parseInt(month, 10) - 1 : 0);
|
543
665
|
date.setDate(allowedParts.day ? parseInt(day, 10) : 1);
|
544
666
|
if (disabledDates !== null && disabledDates !== void 0 && disabledDates.some((0, _includesDate["default"])((0, _dayjs["default"])(date), 'date'))) {
|
667
|
+
onMaskPipeBlock === null || onMaskPipeBlock === void 0 ? void 0 : onMaskPipeBlock(date);
|
545
668
|
return false;
|
546
669
|
}
|
547
670
|
if (allowedParts.day) {
|
548
|
-
if (date.getDate() !== parseInt(day, 10))
|
671
|
+
if (date.getDate() !== parseInt(day, 10)) {
|
672
|
+
onMaskPipeBlock === null || onMaskPipeBlock === void 0 ? void 0 : onMaskPipeBlock(date);
|
673
|
+
return false;
|
674
|
+
}
|
549
675
|
}
|
550
676
|
}
|
551
677
|
var result = [];
|
@@ -563,11 +689,12 @@ var MaskedInput = function MaskedInput(_ref16) {
|
|
563
689
|
} finally {
|
564
690
|
_iterator4.f();
|
565
691
|
}
|
692
|
+
onMaskPipeBlock === null || onMaskPipeBlock === void 0 ? void 0 : onMaskPipeBlock(null);
|
566
693
|
return {
|
567
694
|
value: result.join(sep),
|
568
695
|
indexesOfPipedChars: indexesOfPipedChars
|
569
696
|
};
|
570
|
-
}, [placeholders, sep, order, allowedParts, disabledDates]);
|
697
|
+
}, [placeholders, sep, order, allowedParts, disabledDates, onMaskPipeBlock]);
|
571
698
|
var handleChange = _react["default"].useCallback(function (value) {
|
572
699
|
var parsed = {};
|
573
700
|
for (var partName in placeholders) {
|