intergalactic 15.65.3 → 15.66.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.
Files changed (201) hide show
  1. package/CHANGELOG.md +73 -9
  2. package/animation/index.d.ts +1 -1
  3. package/animation/lib/cjs/Collapse.js +29 -29
  4. package/animation/lib/cjs/Collapse.js.map +1 -1
  5. package/animation/lib/cjs/FadeInOut.js +28 -28
  6. package/animation/lib/cjs/Scale.js +28 -28
  7. package/animation/lib/cjs/Slide.js +28 -28
  8. package/animation/lib/cjs/Transform.js +28 -28
  9. package/animation/lib/cjs/index.d.js.map +1 -1
  10. package/animation/lib/cjs/style/keyframes.shadow.css +53 -5
  11. package/animation/lib/es6/Collapse.js +29 -29
  12. package/animation/lib/es6/Collapse.js.map +1 -1
  13. package/animation/lib/es6/FadeInOut.js +28 -28
  14. package/animation/lib/es6/Scale.js +28 -28
  15. package/animation/lib/es6/Slide.js +28 -28
  16. package/animation/lib/es6/Transform.js +28 -28
  17. package/animation/lib/es6/index.d.js.map +1 -1
  18. package/animation/lib/es6/style/keyframes.shadow.css +53 -5
  19. package/animation/lib/types/index.d.ts +1 -1
  20. package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
  21. package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
  22. package/base-trigger/lib/cjs/FilterTrigger.js +7 -7
  23. package/base-trigger/lib/cjs/LinkTrigger.js +12 -12
  24. package/base-trigger/lib/es6/BaseTrigger.js +18 -18
  25. package/base-trigger/lib/es6/ButtonTrigger.js +3 -3
  26. package/base-trigger/lib/es6/FilterTrigger.js +7 -7
  27. package/base-trigger/lib/es6/LinkTrigger.js +12 -12
  28. package/button/lib/cjs/Button.js +26 -26
  29. package/button/lib/cjs/style/button.shadow.css +10 -11
  30. package/button/lib/es6/Button.js +26 -26
  31. package/button/lib/es6/style/button.shadow.css +10 -11
  32. package/card/index.d.ts +10 -1
  33. package/card/lib/cjs/Card.js +10 -3
  34. package/card/lib/cjs/Card.js.map +1 -1
  35. package/card/lib/cjs/index.d.js.map +1 -1
  36. package/card/lib/es6/Card.js +10 -3
  37. package/card/lib/es6/Card.js.map +1 -1
  38. package/card/lib/es6/index.d.js.map +1 -1
  39. package/card/lib/types/index.d.ts +10 -1
  40. package/carousel/lib/cjs/Carousel.js +18 -7
  41. package/carousel/lib/cjs/Carousel.js.map +1 -1
  42. package/carousel/lib/es6/Carousel.js +18 -7
  43. package/carousel/lib/es6/Carousel.js.map +1 -1
  44. package/components.json +73 -73
  45. package/d3-chart/Area.d.ts +2 -2
  46. package/d3-chart/Line.d.ts +2 -2
  47. package/d3-chart/lib/cjs/Area.js +11 -11
  48. package/d3-chart/lib/cjs/Axis.js +14 -14
  49. package/d3-chart/lib/cjs/Bar.js +10 -10
  50. package/d3-chart/lib/cjs/Bubble.js +12 -12
  51. package/d3-chart/lib/cjs/Donut.js +9 -9
  52. package/d3-chart/lib/cjs/Dots.js +9 -9
  53. package/d3-chart/lib/cjs/Dots.js.map +1 -1
  54. package/d3-chart/lib/cjs/HorizontalBar.js +10 -10
  55. package/d3-chart/lib/cjs/Hover.js +3 -3
  56. package/d3-chart/lib/cjs/Line.js +12 -10
  57. package/d3-chart/lib/cjs/Line.js.map +1 -1
  58. package/d3-chart/lib/cjs/Plot.js +3 -3
  59. package/d3-chart/lib/cjs/Radar.js +19 -19
  60. package/d3-chart/lib/cjs/RadialTree.js +11 -11
  61. package/d3-chart/lib/cjs/ReferenceLine.js +9 -9
  62. package/d3-chart/lib/cjs/ScatterPlot.js +9 -9
  63. package/d3-chart/lib/cjs/Tooltip.js +9 -9
  64. package/d3-chart/lib/cjs/Venn.js +9 -9
  65. package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
  66. package/d3-chart/lib/cjs/a11y/PlotA11yView.js +2 -2
  67. package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  68. package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  69. package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  70. package/d3-chart/lib/cjs/types/Area.d.js.map +1 -1
  71. package/d3-chart/lib/cjs/types/Line.d.js.map +1 -1
  72. package/d3-chart/lib/es6/Area.js +11 -11
  73. package/d3-chart/lib/es6/Axis.js +14 -14
  74. package/d3-chart/lib/es6/Bar.js +10 -10
  75. package/d3-chart/lib/es6/Bubble.js +12 -12
  76. package/d3-chart/lib/es6/Donut.js +9 -9
  77. package/d3-chart/lib/es6/Dots.js +9 -9
  78. package/d3-chart/lib/es6/Dots.js.map +1 -1
  79. package/d3-chart/lib/es6/HorizontalBar.js +10 -10
  80. package/d3-chart/lib/es6/Hover.js +3 -3
  81. package/d3-chart/lib/es6/Line.js +12 -10
  82. package/d3-chart/lib/es6/Line.js.map +1 -1
  83. package/d3-chart/lib/es6/Plot.js +3 -3
  84. package/d3-chart/lib/es6/Radar.js +19 -19
  85. package/d3-chart/lib/es6/RadialTree.js +11 -11
  86. package/d3-chart/lib/es6/ReferenceLine.js +9 -9
  87. package/d3-chart/lib/es6/ScatterPlot.js +9 -9
  88. package/d3-chart/lib/es6/Tooltip.js +9 -9
  89. package/d3-chart/lib/es6/Venn.js +9 -9
  90. package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
  91. package/d3-chart/lib/es6/a11y/PlotA11yView.js +2 -2
  92. package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  93. package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  94. package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  95. package/d3-chart/lib/es6/types/Area.d.js.map +1 -1
  96. package/d3-chart/lib/es6/types/Line.d.js.map +1 -1
  97. package/d3-chart/lib/types/Area.d.ts +2 -2
  98. package/d3-chart/lib/types/Line.d.ts +2 -2
  99. package/data-table/lib/cjs/DataTable.js +5 -0
  100. package/data-table/lib/cjs/DataTable.js.map +1 -1
  101. package/data-table/lib/es6/DataTable.js +5 -0
  102. package/data-table/lib/es6/DataTable.js.map +1 -1
  103. package/date-picker/lib/cjs/DatePicker.js +1 -1
  104. package/date-picker/lib/cjs/DatePicker.js.map +1 -1
  105. package/date-picker/lib/cjs/DateRangeComparator.js +11 -8
  106. package/date-picker/lib/cjs/DateRangeComparator.js.map +1 -1
  107. package/date-picker/lib/cjs/MonthDateRangeComparator.js +7 -6
  108. package/date-picker/lib/cjs/MonthDateRangeComparator.js.map +1 -1
  109. package/date-picker/lib/cjs/components/Calendar.js +156 -72
  110. package/date-picker/lib/cjs/components/Calendar.js.map +1 -1
  111. package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +206 -123
  112. package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js.map +1 -1
  113. package/date-picker/lib/cjs/components/InputTrigger.js +50 -38
  114. package/date-picker/lib/cjs/components/InputTrigger.js.map +1 -1
  115. package/date-picker/lib/cjs/components/PickerAbstract.js +38 -29
  116. package/date-picker/lib/cjs/components/PickerAbstract.js.map +1 -1
  117. package/date-picker/lib/cjs/components/RangePickerAbstract.js +105 -79
  118. package/date-picker/lib/cjs/components/RangePickerAbstract.js.map +1 -1
  119. package/date-picker/lib/cjs/components/index.js +4 -4
  120. package/date-picker/lib/cjs/components/index.js.map +1 -1
  121. package/date-picker/lib/cjs/style/calendar.shadow.css +7 -3
  122. package/date-picker/lib/cjs/translations/en.json +8 -1
  123. package/date-picker/lib/cjs/utils/formatDate.js +19 -7
  124. package/date-picker/lib/cjs/utils/formatDate.js.map +1 -1
  125. package/date-picker/lib/es6/DatePicker.js +2 -2
  126. package/date-picker/lib/es6/DatePicker.js.map +1 -1
  127. package/date-picker/lib/es6/DateRangeComparator.js +11 -8
  128. package/date-picker/lib/es6/DateRangeComparator.js.map +1 -1
  129. package/date-picker/lib/es6/MonthDateRangeComparator.js +7 -6
  130. package/date-picker/lib/es6/MonthDateRangeComparator.js.map +1 -1
  131. package/date-picker/lib/es6/components/Calendar.js +157 -73
  132. package/date-picker/lib/es6/components/Calendar.js.map +1 -1
  133. package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +206 -123
  134. package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js.map +1 -1
  135. package/date-picker/lib/es6/components/InputTrigger.js +50 -38
  136. package/date-picker/lib/es6/components/InputTrigger.js.map +1 -1
  137. package/date-picker/lib/es6/components/PickerAbstract.js +38 -29
  138. package/date-picker/lib/es6/components/PickerAbstract.js.map +1 -1
  139. package/date-picker/lib/es6/components/RangePickerAbstract.js +105 -79
  140. package/date-picker/lib/es6/components/RangePickerAbstract.js.map +1 -1
  141. package/date-picker/lib/es6/components/index.js +4 -4
  142. package/date-picker/lib/es6/components/index.js.map +1 -1
  143. package/date-picker/lib/es6/style/calendar.shadow.css +7 -3
  144. package/date-picker/lib/es6/translations/en.json +8 -1
  145. package/date-picker/lib/es6/utils/formatDate.js +16 -5
  146. package/date-picker/lib/es6/utils/formatDate.js.map +1 -1
  147. package/dropdown-menu/lib/cjs/DropdownMenu.js +46 -19
  148. package/dropdown-menu/lib/cjs/DropdownMenu.js.map +1 -1
  149. package/dropdown-menu/lib/es6/DropdownMenu.js +47 -20
  150. package/dropdown-menu/lib/es6/DropdownMenu.js.map +1 -1
  151. package/icon/Check/l/index.js +1 -1
  152. package/icon/Check/l/index.mjs +1 -1
  153. package/icon/CheckDouble/l/index.d.ts +6 -0
  154. package/icon/CheckDouble/l/index.js +36 -0
  155. package/icon/CheckDouble/l/index.mjs +24 -0
  156. package/icon/CheckDouble/m/index.d.ts +6 -0
  157. package/icon/CheckDouble/m/index.js +36 -0
  158. package/icon/CheckDouble/m/index.mjs +24 -0
  159. package/icon/CollapseAlt/l/index.d.ts +6 -0
  160. package/icon/CollapseAlt/l/index.js +36 -0
  161. package/icon/CollapseAlt/l/index.mjs +24 -0
  162. package/icon/CollapseAlt/m/index.d.ts +6 -0
  163. package/icon/CollapseAlt/m/index.js +36 -0
  164. package/icon/CollapseAlt/m/index.mjs +24 -0
  165. package/icon/ExpandAlt/l/index.d.ts +6 -0
  166. package/icon/ExpandAlt/l/index.js +36 -0
  167. package/icon/ExpandAlt/l/index.mjs +24 -0
  168. package/icon/ExpandAlt/m/index.d.ts +6 -0
  169. package/icon/ExpandAlt/m/index.js +36 -0
  170. package/icon/ExpandAlt/m/index.mjs +24 -0
  171. package/package.json +26 -2
  172. package/pagination/lib/cjs/Pagination.js +10 -10
  173. package/pagination/lib/es6/Pagination.js +10 -10
  174. package/pills/index.d.ts +3 -3
  175. package/pills/lib/cjs/Pills.js +19 -18
  176. package/pills/lib/cjs/Pills.js.map +1 -1
  177. package/pills/lib/cjs/index.d.js.map +1 -1
  178. package/pills/lib/cjs/style/pills.shadow.css +6 -1
  179. package/pills/lib/es6/Pills.js +19 -18
  180. package/pills/lib/es6/Pills.js.map +1 -1
  181. package/pills/lib/es6/index.d.js.map +1 -1
  182. package/pills/lib/es6/style/pills.shadow.css +6 -1
  183. package/pills/lib/types/index.d.ts +3 -3
  184. package/select/lib/cjs/InputSearch.js +6 -6
  185. package/select/lib/cjs/Select.js +9 -9
  186. package/select/lib/es6/InputSearch.js +6 -6
  187. package/select/lib/es6/Select.js +9 -9
  188. package/tag/lib/cjs/Tag.js +20 -20
  189. package/tag/lib/cjs/style/tag.shadow.css +2 -1
  190. package/tag/lib/es6/Tag.js +20 -20
  191. package/tag/lib/es6/style/tag.shadow.css +2 -1
  192. package/time-picker/lib/cjs/PickerInput.js +3 -1
  193. package/time-picker/lib/cjs/PickerInput.js.map +1 -1
  194. package/time-picker/lib/cjs/TimePicker.js +12 -12
  195. package/time-picker/lib/es6/PickerInput.js +3 -1
  196. package/time-picker/lib/es6/PickerInput.js.map +1 -1
  197. package/time-picker/lib/es6/TimePicker.js +12 -12
  198. package/utils/lib/propsForElement.js +1 -1
  199. package/utils/lib/propsForElement.js.map +1 -1
  200. package/utils/lib/propsForElement.mjs +1 -1
  201. package/utils/lib/propsForElement.mjs.map +1 -1
@@ -1,3 +1,4 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
1
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
3
  import _createClass from "@babel/runtime/helpers/createClass";
3
4
  import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
@@ -19,34 +20,36 @@ import { localizedMessages } from '../translations/__intergalactic-dynamic-local
19
20
  import shortDateRangeFormat from '../utils/shortDateRangeFormat';
20
21
  import Checkbox from 'intergalactic/checkbox';
21
22
  import { LinkTrigger } from 'intergalactic/base-trigger';
23
+ import { formatDDMMYY, formatMMYY } from '../utils/formatDate';
22
24
  /*__reshadow-styles__:"../style/date-picker.shadow.css"*/
23
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPopper_eeteo_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_eeteo_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_eeteo_gg_:active,.___SPopper_eeteo_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPopper_eeteo_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SPopper_eeteo_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_eeteo_gg_,.___STitle_eeteo_gg_{display:flex;align-items:center}.___STitle_eeteo_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_eeteo_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_eeteo_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_eeteo_gg_ .___SInner_eeteo_gg_{justify-content:flex-start}.___SInputMask_eeteo_gg_{color:var(--intergalactic-text-primary, #191b23);line-height:normal}.___SIndicator_eeteo_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SRangeIndicator_eeteo_gg_{border-radius:50%;flex-shrink:0}.___SRangeIndicator_eeteo_gg_._range_value_eeteo_gg_{background-color:var(--intergalactic-date-picker-cell-active, #2bb3ff)}.___SRangeIndicator_eeteo_gg_._range_compare_eeteo_gg_{background-color:var(--intergalactic-date-picker-cell-comparison-active, #8649e1)}.___SRangeIndicator_eeteo_gg_.__disabled_eeteo_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SHumanizedDate_eeteo_gg_{position:absolute;pointer-events:none}.___SDateRange_eeteo_gg_ .___SMask_eeteo_gg_,.___SDateRange_eeteo_gg_ .___SValue_eeteo_gg_,.___SSingleDateInput_eeteo_gg_ .___SMask_eeteo_gg_,.___SSingleDateInput_eeteo_gg_ .___SValue_eeteo_gg_{opacity:0}.___SSingleDateInput_eeteo_gg_:focus-within .___SHumanizedDate_eeteo_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_eeteo_gg_:focus-within .___SMask_eeteo_gg_,.___SSingleDateInput_eeteo_gg_:focus-within .___SValue_eeteo_gg_{opacity:1}.___SDateRange_eeteo_gg_:focus-within .___SHumanizedDate_eeteo_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_eeteo_gg_:focus-within .___SMask_eeteo_gg_,.___SDateRange_eeteo_gg_:focus-within .___SValue_eeteo_gg_{opacity:1}.___SInputMask_eeteo_gg_.__noHumanizedDate_eeteo_gg_ .___SMask_eeteo_gg_,.___SInputMask_eeteo_gg_.__noHumanizedDate_eeteo_gg_ .___SValue_eeteo_gg_{opacity:1}.___SDateRange_eeteo_gg_ .___SInputMask_eeteo_gg_:focus-within .___SMask_eeteo_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_eeteo_gg_:focus-within .___SRangeSep_eeteo_gg_,.___SRangeSep_eeteo_gg_.__fulfilled_eeteo_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SRangeComparatorHeader_eeteo_gg_{border-bottom:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SRangeCalendar_eeteo_gg_,.___SRangeComparatorHeader_eeteo_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___SFooter_eeteo_gg_{border-top:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SFooter_eeteo_gg_,.___SPeriodsList_eeteo_gg_{padding:var(--intergalactic-spacing-4x, 16px)}" /*__inner_css_end__*/, "eeteo_gg_") /*__reshadow_css_end__*/, {
24
- "__SHeader": "___SHeader_eeteo_gg_",
25
- "__STitle": "___STitle_eeteo_gg_",
26
- "__SToday": "___SToday_eeteo_gg_",
27
- "__SPeriod": "___SPeriod_eeteo_gg_",
28
- "__SButton": "___SButton_eeteo_gg_",
29
- "__SInner": "___SInner_eeteo_gg_",
30
- "__SInputMask": "___SInputMask_eeteo_gg_",
31
- "__SIndicator": "___SIndicator_eeteo_gg_",
32
- "__SRangeIndicator": "___SRangeIndicator_eeteo_gg_",
33
- "_range_value": "_range_value_eeteo_gg_",
34
- "_range_compare": "_range_compare_eeteo_gg_",
35
- "_disabled": "__disabled_eeteo_gg_",
36
- "__SHumanizedDate": "___SHumanizedDate_eeteo_gg_",
37
- "__SSingleDateInput": "___SSingleDateInput_eeteo_gg_",
38
- "__SValue": "___SValue_eeteo_gg_",
39
- "__SDateRange": "___SDateRange_eeteo_gg_",
40
- "__SMask": "___SMask_eeteo_gg_",
41
- "_noHumanizedDate": "__noHumanizedDate_eeteo_gg_",
42
- "__SRangeSep": "___SRangeSep_eeteo_gg_",
43
- "_fulfilled": "__fulfilled_eeteo_gg_",
44
- "__SRangeComparatorHeader": "___SRangeComparatorHeader_eeteo_gg_",
45
- "__SRangeCalendar": "___SRangeCalendar_eeteo_gg_",
46
- "__SFooter": "___SFooter_eeteo_gg_",
47
- "__SPeriodsList": "___SPeriodsList_eeteo_gg_",
48
- "__SPopper": "___SPopper_eeteo_gg_"
25
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPopper_l5cgy_gg_{padding:var(--intergalactic-spacing-4x, 16px);outline:0}.___SPopper_l5cgy_gg_::-moz-focus-inner{border:0;padding:0}.___SPopper_l5cgy_gg_:active,.___SPopper_l5cgy_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SPopper_l5cgy_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SPopper_l5cgy_gg_:focus{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SHeader_l5cgy_gg_,.___STitle_l5cgy_gg_{display:flex;align-items:center}.___STitle_l5cgy_gg_{font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-primary, #191b23);height:32px;width:100%;justify-content:center}.___SToday_l5cgy_gg_{display:flex;margin-top:var(--intergalactic-spacing-3x, 12px);justify-content:center}.___SPeriod_l5cgy_gg_{display:flex;flex-direction:column;margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SButton_l5cgy_gg_ .___SInner_l5cgy_gg_{justify-content:flex-start}.___SInputMask_l5cgy_gg_{color:var(--intergalactic-text-primary, #191b23);line-height:normal}.___SIndicator_l5cgy_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SRangeIndicator_l5cgy_gg_{border-radius:50%;flex-shrink:0}.___SRangeIndicator_l5cgy_gg_._range_value_l5cgy_gg_{background-color:var(--intergalactic-date-picker-cell-active, #2bb3ff)}.___SRangeIndicator_l5cgy_gg_._range_compare_l5cgy_gg_{background-color:var(--intergalactic-date-picker-cell-comparison-active, #8649e1)}.___SRangeIndicator_l5cgy_gg_.__disabled_l5cgy_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SHumanizedDate_l5cgy_gg_{position:absolute;pointer-events:none}.___SDateRange_l5cgy_gg_ .___SMask_l5cgy_gg_,.___SDateRange_l5cgy_gg_ .___SValue_l5cgy_gg_,.___SSingleDateInput_l5cgy_gg_ .___SMask_l5cgy_gg_,.___SSingleDateInput_l5cgy_gg_ .___SValue_l5cgy_gg_{opacity:0}.___SSingleDateInput_l5cgy_gg_:focus-within .___SHumanizedDate_l5cgy_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SSingleDateInput_l5cgy_gg_:focus-within .___SMask_l5cgy_gg_,.___SSingleDateInput_l5cgy_gg_:focus-within .___SValue_l5cgy_gg_{opacity:1}.___SDateRange_l5cgy_gg_:focus-within .___SHumanizedDate_l5cgy_gg_{opacity:0;z-index:var(--intergalactic-z-index-deep, -999)}.___SDateRange_l5cgy_gg_:focus-within .___SMask_l5cgy_gg_,.___SDateRange_l5cgy_gg_:focus-within .___SValue_l5cgy_gg_{opacity:1}.___SInputMask_l5cgy_gg_.__noHumanizedDate_l5cgy_gg_ .___SMask_l5cgy_gg_,.___SInputMask_l5cgy_gg_.__noHumanizedDate_l5cgy_gg_ .___SValue_l5cgy_gg_{opacity:1}.___SDateRange_l5cgy_gg_ .___SInputMask_l5cgy_gg_:focus-within .___SMask_l5cgy_gg_{background-color:var(--intergalactic-bg-highlight-focus, rgba(0, 143, 248, 0.2))}.___SDateRange_l5cgy_gg_:focus-within .___SRangeSep_l5cgy_gg_,.___SRangeSep_l5cgy_gg_.__fulfilled_l5cgy_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SRangeComparatorHeader_l5cgy_gg_{border-bottom:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SRangeCalendar_l5cgy_gg_,.___SRangeComparatorHeader_l5cgy_gg_{padding:var(--intergalactic-spacing-4x, 16px)}.___SFooter_l5cgy_gg_{border-top:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___SFooter_l5cgy_gg_,.___SPeriodsList_l5cgy_gg_{padding:var(--intergalactic-spacing-4x, 16px)}" /*__inner_css_end__*/, "l5cgy_gg_") /*__reshadow_css_end__*/, {
26
+ "__SHeader": "___SHeader_l5cgy_gg_",
27
+ "__STitle": "___STitle_l5cgy_gg_",
28
+ "__SToday": "___SToday_l5cgy_gg_",
29
+ "__SPeriod": "___SPeriod_l5cgy_gg_",
30
+ "__SButton": "___SButton_l5cgy_gg_",
31
+ "__SInner": "___SInner_l5cgy_gg_",
32
+ "__SInputMask": "___SInputMask_l5cgy_gg_",
33
+ "__SIndicator": "___SIndicator_l5cgy_gg_",
34
+ "__SRangeIndicator": "___SRangeIndicator_l5cgy_gg_",
35
+ "_range_value": "_range_value_l5cgy_gg_",
36
+ "_range_compare": "_range_compare_l5cgy_gg_",
37
+ "_disabled": "__disabled_l5cgy_gg_",
38
+ "__SHumanizedDate": "___SHumanizedDate_l5cgy_gg_",
39
+ "__SSingleDateInput": "___SSingleDateInput_l5cgy_gg_",
40
+ "__SValue": "___SValue_l5cgy_gg_",
41
+ "__SDateRange": "___SDateRange_l5cgy_gg_",
42
+ "__SMask": "___SMask_l5cgy_gg_",
43
+ "_noHumanizedDate": "__noHumanizedDate_l5cgy_gg_",
44
+ "__SRangeSep": "___SRangeSep_l5cgy_gg_",
45
+ "_fulfilled": "__fulfilled_l5cgy_gg_",
46
+ "__SRangeComparatorHeader": "___SRangeComparatorHeader_l5cgy_gg_",
47
+ "__SRangeCalendar": "___SRangeCalendar_l5cgy_gg_",
48
+ "__SFooter": "___SFooter_l5cgy_gg_",
49
+ "__SPeriodsList": "___SPeriodsList_l5cgy_gg_",
50
+ "__SPopper": "___SPopper_l5cgy_gg_"
49
51
  });
52
+ var INTERACTION_TAGS = ['INPUT'];
50
53
  var INTERACTION_KEYS = ['ArrowDown', 'Enter', 'Space'];
51
54
  var defaultDisplayedPeriod = new Date(new Date().setHours(0, 0, 0, 0));
52
55
  var getLatestDate = function getLatestDate() {
@@ -74,6 +77,7 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
74
77
  }
75
78
  _this = _super.call.apply(_super, [this].concat(args));
76
79
  _defineProperty(_assertThisInitialized(_this), "popperRef", /*#__PURE__*/React.createRef());
80
+ _defineProperty(_assertThisInitialized(_this), "unitRefs", {});
77
81
  _defineProperty(_assertThisInitialized(_this), "navigateView", function (direction) {
78
82
  var displayedPeriod = _this.asProps.displayedPeriod;
79
83
  var action = direction >= 1 ? 'add' : 'subtract';
@@ -85,6 +89,13 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
85
89
  return _this.navigateView(direction);
86
90
  };
87
91
  });
92
+ _defineProperty(_assertThisInitialized(_this), "handleApplyClick", function () {
93
+ var _this$asProps = _this.asProps,
94
+ value = _this$asProps.value,
95
+ preselectedValue = _this$asProps.preselectedValue,
96
+ preselectedCompare = _this$asProps.preselectedCompare;
97
+ return _this.handleApply(preselectedValue !== null && preselectedValue !== void 0 ? preselectedValue : value === null || value === void 0 ? void 0 : value.value, preselectedCompare !== null && preselectedCompare !== void 0 ? preselectedCompare : value === null || value === void 0 ? void 0 : value.compare);
98
+ });
88
99
  _defineProperty(_assertThisInitialized(_this), "handleApply", function (value, compare) {
89
100
  _this.handlers.value({
90
101
  value: value,
@@ -92,26 +103,97 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
92
103
  });
93
104
  _this.handlers.visible(false);
94
105
  });
95
- _defineProperty(_assertThisInitialized(_this), "handleKeyDown", function (e) {
96
- var visible = _this.asProps.visible;
97
- var key = e.code;
98
- if (INTERACTION_KEYS.includes(key)) {
99
- e.stopPropagation();
100
- _this.handlers.visible(!visible);
101
- setTimeout(function () {
102
- var popper = _this.popperRef.current;
103
- if (popper) {
104
- popper.focus();
106
+ _defineProperty(_assertThisInitialized(_this), "handleKeydownDown", function (place) {
107
+ return function (e) {
108
+ var _this$asProps2 = _this.asProps,
109
+ displayedPeriod = _this$asProps2.displayedPeriod,
110
+ preselectedValue = _this$asProps2.preselectedValue,
111
+ visible = _this$asProps2.visible,
112
+ focusedRange = _this$asProps2.focusedRange;
113
+ var key = e.code;
114
+ var highlighted = focusedRange === 'compare' ? _this.asProps.compareHighlighted : _this.asProps.highlighted;
115
+ if (place === 'trigger' && INTERACTION_KEYS.includes(key)) {
116
+ e.stopPropagation();
117
+ _this.handlers.visible(!visible);
118
+ setTimeout(function () {
119
+ var popper = _this.popperRef.current;
120
+ if (popper) {
121
+ popper.focus();
122
+ }
123
+ }, 0);
124
+ }
125
+ var day = _this.keyDiff[key];
126
+ var setNextDisplayedPeriod = function setNextDisplayedPeriod(next_highlighted) {
127
+ var _next_highlighted = _slicedToArray(next_highlighted, 2),
128
+ left_period = _next_highlighted[0],
129
+ right_period = _next_highlighted[1];
130
+ var monthDisplayedPeriod = displayedPeriod === null || displayedPeriod === void 0 ? void 0 : displayedPeriod.getMonth();
131
+ var period = right_period || left_period;
132
+ if (period) {
133
+ if (!monthDisplayedPeriod) {
134
+ return period;
135
+ }
136
+ if (period.getMonth() - monthDisplayedPeriod > 1) {
137
+ return DateRangeComparatorAbstract.subtract(period, 1, 'month');
138
+ } else if (period.getMonth() - monthDisplayedPeriod < 0) {
139
+ return period;
140
+ }
105
141
  }
106
- }, 0);
107
- }
142
+ return displayedPeriod;
143
+ };
144
+ if (place === 'popper' && e.code === 'Space' && highlighted.length) {
145
+ var highlightedDate = highlighted[1] || highlighted[0];
146
+ if (!_this.isDisabled(highlightedDate)) {
147
+ _this.handleChange(highlightedDate);
148
+ }
149
+ e.preventDefault();
150
+ }
151
+ if (place === 'popper' && e.code === 'Enter' && (e.metaKey || e.ctrlKey)) {
152
+ return _this.handleApplyClick();
153
+ }
154
+ var changedDate = undefined;
155
+ if (day) {
156
+ if (INTERACTION_TAGS.includes(e.target.tagName)) return;
157
+ if (highlighted.length) {
158
+ var next_highlighted;
159
+ if ((preselectedValue === null || preselectedValue === void 0 ? void 0 : preselectedValue.length) === 1) {
160
+ next_highlighted = [preselectedValue[0], dayjs(highlighted[1] || highlighted[0]).add(day, _this.keyStep).toDate()];
161
+ changedDate = next_highlighted[1];
162
+ } else {
163
+ next_highlighted = [dayjs(highlighted[0]).add(day, _this.keyStep).toDate()];
164
+ changedDate = next_highlighted[0];
165
+ }
166
+ if (focusedRange === 'compare') {
167
+ _this.handlers.compareHighlighted(next_highlighted);
168
+ } else {
169
+ _this.handlers.highlighted(next_highlighted);
170
+ }
171
+ _this.handlers.displayedPeriod(setNextDisplayedPeriod(next_highlighted));
172
+ } else {
173
+ var _highlighted = [displayedPeriod ? displayedPeriod : dayjs().toDate()];
174
+ if (focusedRange === 'compare') {
175
+ _this.handlers.compareHighlighted(_highlighted);
176
+ } else {
177
+ _this.handlers.highlighted(_highlighted);
178
+ }
179
+ changedDate = _highlighted[0];
180
+ }
181
+ e.preventDefault();
182
+ if (changedDate) {
183
+ var _this$unitRefs$format;
184
+ var formatter = _this.keyStep === 'month' ? formatMMYY : formatDDMMYY;
185
+ var formattedDate = formatter(changedDate, _this.asProps.locale);
186
+ (_this$unitRefs$format = _this.unitRefs[formattedDate]) === null || _this$unitRefs$format === void 0 ? void 0 : _this$unitRefs$format.focus();
187
+ }
188
+ }
189
+ };
108
190
  });
109
191
  _defineProperty(_assertThisInitialized(_this), "handleChange", function (date) {
110
192
  var _value, _value2, _value3;
111
- var _this$asProps = _this.asProps,
112
- focusedRange = _this$asProps.focusedRange,
113
- preselectedCompare = _this$asProps.preselectedCompare,
114
- preselectedValue = _this$asProps.preselectedValue;
193
+ var _this$asProps3 = _this.asProps,
194
+ focusedRange = _this$asProps3.focusedRange,
195
+ preselectedCompare = _this$asProps3.preselectedCompare,
196
+ preselectedValue = _this$asProps3.preselectedValue;
115
197
  var highlighted = [];
116
198
  var value = focusedRange === 'compare' ? preselectedCompare : preselectedValue;
117
199
  if (Array.isArray(date)) {
@@ -144,15 +226,15 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
144
226
  value: function getPeriodProps() {
145
227
  var _this$asProps$value,
146
228
  _this2 = this;
147
- var _this$asProps2 = this.asProps,
148
- _this$asProps2$period = _this$asProps2.periods,
149
- periods = _this$asProps2$period === void 0 ? this.getDefaultPeriods() : _this$asProps2$period,
150
- onHighlightedChange = _this$asProps2.onHighlightedChange,
151
- onCompareHighlightedChange = _this$asProps2.onCompareHighlightedChange,
152
- onDisplayedPeriodChange = _this$asProps2.onDisplayedPeriodChange,
153
- preselectedValue = _this$asProps2.preselectedValue,
154
- preselectedCompare = _this$asProps2.preselectedCompare,
155
- focusedRange = _this$asProps2.focusedRange;
229
+ var _this$asProps4 = this.asProps,
230
+ _this$asProps4$period = _this$asProps4.periods,
231
+ periods = _this$asProps4$period === void 0 ? this.getDefaultPeriods() : _this$asProps4$period,
232
+ onHighlightedChange = _this$asProps4.onHighlightedChange,
233
+ onCompareHighlightedChange = _this$asProps4.onCompareHighlightedChange,
234
+ onDisplayedPeriodChange = _this$asProps4.onDisplayedPeriodChange,
235
+ preselectedValue = _this$asProps4.preselectedValue,
236
+ preselectedCompare = _this$asProps4.preselectedCompare,
237
+ focusedRange = _this$asProps4.focusedRange;
156
238
  var value = preselectedValue !== null && preselectedValue !== void 0 ? preselectedValue : (_this$asProps$value = this.asProps.value) === null || _this$asProps$value === void 0 ? void 0 : _this$asProps$value.value;
157
239
  if (focusedRange === 'compare') {
158
240
  var _this$asProps$value2;
@@ -238,28 +320,21 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
238
320
  }, {
239
321
  key: "getApplyProps",
240
322
  value: function getApplyProps() {
241
- var _this4 = this;
242
- var _this$asProps3 = this.asProps,
243
- value = _this$asProps3.value,
244
- getI18nText = _this$asProps3.getI18nText,
245
- preselectedValue = _this$asProps3.preselectedValue,
246
- preselectedCompare = _this$asProps3.preselectedCompare;
323
+ var getI18nText = this.asProps.getI18nText;
247
324
  return {
248
325
  getI18nText: getI18nText,
249
- onClick: function onClick() {
250
- return _this4.handleApply(preselectedValue !== null && preselectedValue !== void 0 ? preselectedValue : value === null || value === void 0 ? void 0 : value.value, preselectedCompare !== null && preselectedCompare !== void 0 ? preselectedCompare : value === null || value === void 0 ? void 0 : value.compare);
251
- }
326
+ onClick: this.handleApplyClick
252
327
  };
253
328
  }
254
329
  }, {
255
330
  key: "getResetProps",
256
331
  value: function getResetProps() {
257
- var _this5 = this;
332
+ var _this4 = this;
258
333
  var getI18nText = this.asProps.getI18nText;
259
334
  return {
260
335
  getI18nText: getI18nText,
261
336
  onClick: function onClick() {
262
- return _this5.handleApply(null, null);
337
+ return _this4.handleApply(null, null);
263
338
  }
264
339
  };
265
340
  }
@@ -285,9 +360,9 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
285
360
  }, {
286
361
  key: "getTitleProps",
287
362
  value: function getTitleProps(props, index) {
288
- var _this$asProps4 = this.asProps,
289
- locale = _this$asProps4.locale,
290
- displayedPeriod = _this$asProps4.displayedPeriod;
363
+ var _this$asProps5 = this.asProps,
364
+ locale = _this$asProps5.locale,
365
+ displayedPeriod = _this$asProps5.displayedPeriod;
291
366
  return {
292
367
  children: new Intl.DateTimeFormat(locale, {
293
368
  month: 'long',
@@ -300,14 +375,14 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
300
375
  value: function getTriggerProps(_ref10) {
301
376
  var _this$asProps$value3,
302
377
  _this$asProps$value4,
303
- _this6 = this;
378
+ _this5 = this;
304
379
  var _ref10$placeholder = _ref10.placeholder,
305
380
  placeholder = _ref10$placeholder === void 0 ? 'Select date ranges' : _ref10$placeholder,
306
381
  _ref10$separator = _ref10.separator,
307
382
  separator = _ref10$separator === void 0 ? 'vs.' : _ref10$separator;
308
- var _this$asProps5 = this.asProps,
309
- locale = _this$asProps5.locale,
310
- visible = _this$asProps5.visible;
383
+ var _this$asProps6 = this.asProps,
384
+ locale = _this$asProps6.locale,
385
+ visible = _this$asProps6.visible;
311
386
  var value = (_this$asProps$value3 = this.asProps.value) === null || _this$asProps$value3 === void 0 ? void 0 : _this$asProps$value3.value;
312
387
  var compare = (_this$asProps$value4 = this.asProps.value) === null || _this$asProps$value4 === void 0 ? void 0 : _this$asProps$value4.compare;
313
388
  var formattingProps = {
@@ -327,9 +402,9 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
327
402
  children: children,
328
403
  visible: visible,
329
404
  onClick: function onClick() {
330
- return _this6.handlers.visible(!visible);
405
+ return _this5.handlers.visible(!visible);
331
406
  },
332
- onKeyDown: this.handleKeyDown
407
+ onKeyDown: this.handleKeydownDown('trigger')
333
408
  };
334
409
  }
335
410
  }, {
@@ -340,21 +415,21 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
340
415
  }, {
341
416
  key: "getValueDateRangeProps",
342
417
  value: function getValueDateRangeProps() {
343
- var _this7 = this;
344
- var _this$asProps6 = this.asProps,
345
- value = _this$asProps6.value,
346
- onDisplayedPeriodChange = _this$asProps6.onDisplayedPeriodChange,
347
- locale = _this$asProps6.locale,
348
- disabled = _this$asProps6.disabled,
349
- size = _this$asProps6.size,
350
- getI18nText = _this$asProps6.getI18nText,
351
- focusedRange = _this$asProps6.focusedRange,
352
- preselectedValue = _this$asProps6.preselectedValue;
418
+ var _this6 = this;
419
+ var _this$asProps7 = this.asProps,
420
+ value = _this$asProps7.value,
421
+ onDisplayedPeriodChange = _this$asProps7.onDisplayedPeriodChange,
422
+ locale = _this$asProps7.locale,
423
+ disabled = _this$asProps7.disabled,
424
+ size = _this$asProps7.size,
425
+ getI18nText = _this$asProps7.getI18nText,
426
+ focusedRange = _this$asProps7.focusedRange,
427
+ preselectedValue = _this$asProps7.preselectedValue;
353
428
  return {
354
429
  focused: focusedRange === 'value' ? true : undefined,
355
430
  value: preselectedValue !== null && preselectedValue !== void 0 ? preselectedValue : value === null || value === void 0 ? void 0 : value.value,
356
431
  onChange: function onChange(value) {
357
- return _this7.handlers.preselectedValue(value);
432
+ return _this6.handlers.preselectedValue(value);
358
433
  },
359
434
  onDisplayedPeriodChange: onDisplayedPeriodChange,
360
435
  locale: locale,
@@ -363,7 +438,7 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
363
438
  children: this.getRangeInput(),
364
439
  getI18nText: getI18nText,
365
440
  onFocus: function onFocus() {
366
- _this7.handlers.focusedRange('value');
441
+ _this6.handlers.focusedRange('value');
367
442
  return false;
368
443
  }
369
444
  };
@@ -372,23 +447,23 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
372
447
  key: "getCompareDateRangeProps",
373
448
  value: function getCompareDateRangeProps() {
374
449
  var _value$compare,
375
- _this8 = this;
376
- var _this$asProps7 = this.asProps,
377
- value = _this$asProps7.value,
378
- onDisplayedPeriodChange = _this$asProps7.onDisplayedPeriodChange,
379
- locale = _this$asProps7.locale,
380
- disabled = _this$asProps7.disabled,
381
- size = _this$asProps7.size,
382
- getI18nText = _this$asProps7.getI18nText,
383
- focusedRange = _this$asProps7.focusedRange,
384
- preselectedCompare = _this$asProps7.preselectedCompare,
385
- compareToggle = _this$asProps7.compareToggle;
450
+ _this7 = this;
451
+ var _this$asProps8 = this.asProps,
452
+ value = _this$asProps8.value,
453
+ onDisplayedPeriodChange = _this$asProps8.onDisplayedPeriodChange,
454
+ locale = _this$asProps8.locale,
455
+ disabled = _this$asProps8.disabled,
456
+ size = _this$asProps8.size,
457
+ getI18nText = _this$asProps8.getI18nText,
458
+ focusedRange = _this$asProps8.focusedRange,
459
+ preselectedCompare = _this$asProps8.preselectedCompare,
460
+ compareToggle = _this$asProps8.compareToggle;
386
461
  return {
387
462
  focused: focusedRange === 'compare' ? true : undefined,
388
463
  disabled: !(compareToggle !== null && compareToggle !== void 0 ? compareToggle : value === null || value === void 0 ? void 0 : (_value$compare = value.compare) === null || _value$compare === void 0 ? void 0 : _value$compare.length),
389
464
  value: preselectedCompare !== null && preselectedCompare !== void 0 ? preselectedCompare : value === null || value === void 0 ? void 0 : value.compare,
390
465
  onChange: function onChange(value) {
391
- return _this8.handlers.preselectedCompare(value);
466
+ return _this7.handlers.preselectedCompare(value);
392
467
  },
393
468
  onDisplayedPeriodChange: onDisplayedPeriodChange,
394
469
  locale: locale,
@@ -397,7 +472,7 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
397
472
  children: this.getRangeInput(),
398
473
  getI18nText: getI18nText,
399
474
  onFocus: function onFocus() {
400
- _this8.handlers.focusedRange('compare');
475
+ _this7.handlers.focusedRange('compare');
401
476
  return false;
402
477
  }
403
478
  };
@@ -406,21 +481,21 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
406
481
  key: "getCompareToggleProps",
407
482
  value: function getCompareToggleProps() {
408
483
  var _value$compare2,
409
- _this9 = this;
410
- var _this$asProps8 = this.asProps,
411
- getI18nText = _this$asProps8.getI18nText,
412
- value = _this$asProps8.value,
413
- compareToggle = _this$asProps8.compareToggle;
484
+ _this8 = this;
485
+ var _this$asProps9 = this.asProps,
486
+ getI18nText = _this$asProps9.getI18nText,
487
+ value = _this$asProps9.value,
488
+ compareToggle = _this$asProps9.compareToggle;
414
489
  return {
415
490
  getI18nText: getI18nText,
416
491
  checked: compareToggle !== null && compareToggle !== void 0 ? compareToggle : value === null || value === void 0 ? void 0 : (_value$compare2 = value.compare) === null || _value$compare2 === void 0 ? void 0 : _value$compare2.length,
417
492
  onChange: function onChange(checked) {
418
493
  if (checked) {
419
- _this9.handlers.compareToggle(true);
420
- _this9.handlers.focusedRange('compare');
494
+ _this8.handlers.compareToggle(true);
495
+ _this8.handlers.focusedRange('compare');
421
496
  } else {
422
- _this9.handlers.compareToggle(false);
423
- _this9.handlers.focusedRange('value');
497
+ _this8.handlers.compareToggle(false);
498
+ _this8.handlers.focusedRange('value');
424
499
  }
425
500
  }
426
501
  };
@@ -428,18 +503,19 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
428
503
  }, {
429
504
  key: "getCalendarProps",
430
505
  value: function getCalendarProps(_props, index) {
431
- var _this$asProps9 = this.asProps,
432
- locale = _this$asProps9.locale,
433
- displayedPeriod = _this$asProps9.displayedPeriod,
434
- disabled = _this$asProps9.disabled,
435
- value = _this$asProps9.value,
436
- onCompareHighlightedChange = _this$asProps9.onCompareHighlightedChange,
437
- highlighted = _this$asProps9.highlighted,
438
- compareHighlighted = _this$asProps9.compareHighlighted,
439
- onHighlightedChange = _this$asProps9.onHighlightedChange,
440
- preselectedCompare = _this$asProps9.preselectedCompare,
441
- preselectedValue = _this$asProps9.preselectedValue,
442
- focusedRange = _this$asProps9.focusedRange;
506
+ var _this$asProps10 = this.asProps,
507
+ locale = _this$asProps10.locale,
508
+ displayedPeriod = _this$asProps10.displayedPeriod,
509
+ disabled = _this$asProps10.disabled,
510
+ value = _this$asProps10.value,
511
+ onCompareHighlightedChange = _this$asProps10.onCompareHighlightedChange,
512
+ highlighted = _this$asProps10.highlighted,
513
+ compareHighlighted = _this$asProps10.compareHighlighted,
514
+ onHighlightedChange = _this$asProps10.onHighlightedChange,
515
+ preselectedCompare = _this$asProps10.preselectedCompare,
516
+ preselectedValue = _this$asProps10.preselectedValue,
517
+ focusedRange = _this$asProps10.focusedRange,
518
+ getI18nText = _this$asProps10.getI18nText;
443
519
  return {
444
520
  locale: locale,
445
521
  displayedPeriod: dayjs(displayedPeriod).add(index, this.navigateStep).startOf(this.navigateStep).toDate(),
@@ -451,7 +527,10 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
451
527
  onHighlightedChange: onHighlightedChange,
452
528
  range: focusedRange,
453
529
  value: preselectedValue !== null && preselectedValue !== void 0 ? preselectedValue : value === null || value === void 0 ? void 0 : value.value,
454
- compare: preselectedCompare !== null && preselectedCompare !== void 0 ? preselectedCompare : value === null || value === void 0 ? void 0 : value.compare
530
+ compare: preselectedCompare !== null && preselectedCompare !== void 0 ? preselectedCompare : value === null || value === void 0 ? void 0 : value.compare,
531
+ unitRefs: this.unitRefs,
532
+ getI18nText: getI18nText,
533
+ actionsDescribing: index === 0 ? 'range-compare' : null
455
534
  };
456
535
  }
457
536
  }, {
@@ -459,7 +538,8 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
459
538
  value: function getPopperProps() {
460
539
  return {
461
540
  p: 0,
462
- ref: this.popperRef
541
+ ref: this.popperRef,
542
+ onKeyDown: this.handleKeydownDown('popper')
463
543
  };
464
544
  }
465
545
  }, {
@@ -467,10 +547,10 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
467
547
  value: function render() {
468
548
  var _ref = this.asProps,
469
549
  _ref4;
470
- var _this$asProps10 = this.asProps,
471
- Children = _this$asProps10.Children,
472
- styles = _this$asProps10.styles,
473
- providedAriaLabel = _this$asProps10['aria-label'];
550
+ var _this$asProps11 = this.asProps,
551
+ Children = _this$asProps11.Children,
552
+ styles = _this$asProps11.styles,
553
+ providedAriaLabel = _this$asProps11['aria-label'];
474
554
  return /*#__PURE__*/React.createElement(React.Fragment, null, (_ref4 = sstyled(styles), /*#__PURE__*/React.createElement(Dropdown, _assignProps({
475
555
  "use:aria-label": providedAriaLabel,
476
556
  "__excludeProps": ['onChange', 'value']
@@ -505,6 +585,9 @@ var DateRangeComparatorAbstract = /*#__PURE__*/function (_Component) {
505
585
  _defineProperty(DateRangeComparatorAbstract, "displayName", 'DateRangeComparator');
506
586
  _defineProperty(DateRangeComparatorAbstract, "style", style);
507
587
  _defineProperty(DateRangeComparatorAbstract, "enhance", [i18nEnhance(localizedMessages)]);
588
+ _defineProperty(DateRangeComparatorAbstract, "subtract", function (date, amount, unit) {
589
+ return dayjs(date).subtract(amount, unit).toDate();
590
+ });
508
591
  function Apply(props) {
509
592
  var _ref2 = arguments[0];
510
593
  var getI18nText = props.getI18nText;