@semcore/date-picker 4.58.0-prerelease.0 → 4.58.0-prerelease.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/lib/cjs/DatePicker.js +36 -27
  2. package/lib/cjs/DatePicker.js.map +1 -1
  3. package/lib/cjs/DateRangeComparator.js +43 -38
  4. package/lib/cjs/DateRangeComparator.js.map +1 -1
  5. package/lib/cjs/DateRangePicker.js +22 -17
  6. package/lib/cjs/DateRangePicker.js.map +1 -1
  7. package/lib/cjs/MonthDateRangeComparator.js +47 -42
  8. package/lib/cjs/MonthDateRangeComparator.js.map +1 -1
  9. package/lib/cjs/MonthPicker.js +21 -16
  10. package/lib/cjs/MonthPicker.js.map +1 -1
  11. package/lib/cjs/MonthRangePicker.js +23 -18
  12. package/lib/cjs/MonthRangePicker.js.map +1 -1
  13. package/lib/cjs/components/ButtonTrigger.js +10 -8
  14. package/lib/cjs/components/ButtonTrigger.js.map +1 -1
  15. package/lib/cjs/components/Calendar.js +125 -109
  16. package/lib/cjs/components/Calendar.js.map +1 -1
  17. package/lib/cjs/components/DateRangeComparatorAbstract.js +104 -121
  18. package/lib/cjs/components/DateRangeComparatorAbstract.js.map +1 -1
  19. package/lib/cjs/components/InputTrigger.js +189 -179
  20. package/lib/cjs/components/InputTrigger.js.map +1 -1
  21. package/lib/cjs/components/PickerAbstract.js +57 -58
  22. package/lib/cjs/components/PickerAbstract.js.map +1 -1
  23. package/lib/cjs/components/RangePickerAbstract.js +76 -97
  24. package/lib/cjs/components/RangePickerAbstract.js.map +1 -1
  25. package/lib/cjs/components/index.js +46 -41
  26. package/lib/cjs/components/index.js.map +1 -1
  27. package/lib/cjs/index.d.js.map +1 -1
  28. package/lib/cjs/index.js +2 -2
  29. package/lib/cjs/index.js.map +1 -1
  30. package/lib/cjs/style/calendar.shadow.css +14 -12
  31. package/lib/cjs/style/date-picker.shadow.css +7 -6
  32. package/lib/cjs/translations/__intergalactic-dynamic-locales.js +5 -4
  33. package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
  34. package/lib/cjs/translations/de.json +2 -6
  35. package/lib/cjs/translations/es.json +2 -6
  36. package/lib/cjs/translations/fr.json +2 -6
  37. package/lib/cjs/translations/it.json +2 -6
  38. package/lib/cjs/translations/ja.json +2 -6
  39. package/lib/cjs/translations/ko.json +2 -6
  40. package/lib/cjs/translations/nl.json +2 -6
  41. package/lib/cjs/translations/pl.json +2 -6
  42. package/lib/cjs/translations/pt.json +2 -6
  43. package/lib/cjs/translations/sv.json +2 -6
  44. package/lib/cjs/translations/tr.json +2 -6
  45. package/lib/cjs/translations/vi.json +2 -6
  46. package/lib/cjs/translations/zh.json +2 -6
  47. package/lib/cjs/utils/cronTabScheduler.js +5 -8
  48. package/lib/cjs/utils/cronTabScheduler.js.map +1 -1
  49. package/lib/cjs/utils/datesIntersects.js +4 -3
  50. package/lib/cjs/utils/datesIntersects.js.map +1 -1
  51. package/lib/cjs/utils/formatDate.js +5 -3
  52. package/lib/cjs/utils/formatDate.js.map +1 -1
  53. package/lib/cjs/utils/includesDate.js +3 -2
  54. package/lib/cjs/utils/includesDate.js.map +1 -1
  55. package/lib/cjs/utils/shortDateRangeFormat.js +2 -2
  56. package/lib/cjs/utils/shortDateRangeFormat.js.map +1 -1
  57. package/lib/es6/DatePicker.js +28 -22
  58. package/lib/es6/DatePicker.js.map +1 -1
  59. package/lib/es6/DateRangeComparator.js +27 -23
  60. package/lib/es6/DateRangeComparator.js.map +1 -1
  61. package/lib/es6/DateRangePicker.js +17 -13
  62. package/lib/es6/DateRangePicker.js.map +1 -1
  63. package/lib/es6/MonthDateRangeComparator.js +32 -28
  64. package/lib/es6/MonthDateRangeComparator.js.map +1 -1
  65. package/lib/es6/MonthPicker.js +17 -13
  66. package/lib/es6/MonthPicker.js.map +1 -1
  67. package/lib/es6/MonthRangePicker.js +18 -14
  68. package/lib/es6/MonthRangePicker.js.map +1 -1
  69. package/lib/es6/components/ButtonTrigger.js +5 -5
  70. package/lib/es6/components/ButtonTrigger.js.map +1 -1
  71. package/lib/es6/components/Calendar.js +112 -100
  72. package/lib/es6/components/Calendar.js.map +1 -1
  73. package/lib/es6/components/DateRangeComparatorAbstract.js +101 -120
  74. package/lib/es6/components/DateRangeComparatorAbstract.js.map +1 -1
  75. package/lib/es6/components/InputTrigger.js +180 -173
  76. package/lib/es6/components/InputTrigger.js.map +1 -1
  77. package/lib/es6/components/PickerAbstract.js +55 -58
  78. package/lib/es6/components/PickerAbstract.js.map +1 -1
  79. package/lib/es6/components/RangePickerAbstract.js +71 -94
  80. package/lib/es6/components/RangePickerAbstract.js.map +1 -1
  81. package/lib/es6/components/index.js +38 -35
  82. package/lib/es6/components/index.js.map +1 -1
  83. package/lib/es6/index.d.js.map +1 -1
  84. package/lib/es6/index.js.map +1 -1
  85. package/lib/es6/style/calendar.shadow.css +14 -12
  86. package/lib/es6/style/date-picker.shadow.css +7 -6
  87. package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
  88. package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
  89. package/lib/es6/translations/de.json +2 -6
  90. package/lib/es6/translations/es.json +2 -6
  91. package/lib/es6/translations/fr.json +2 -6
  92. package/lib/es6/translations/it.json +2 -6
  93. package/lib/es6/translations/ja.json +2 -6
  94. package/lib/es6/translations/ko.json +2 -6
  95. package/lib/es6/translations/nl.json +2 -6
  96. package/lib/es6/translations/pl.json +2 -6
  97. package/lib/es6/translations/pt.json +2 -6
  98. package/lib/es6/translations/sv.json +2 -6
  99. package/lib/es6/translations/tr.json +2 -6
  100. package/lib/es6/translations/vi.json +2 -6
  101. package/lib/es6/translations/zh.json +2 -6
  102. package/lib/es6/utils/cronTabScheduler.js +4 -7
  103. package/lib/es6/utils/cronTabScheduler.js.map +1 -1
  104. package/lib/es6/utils/datesIntersects.js +1 -1
  105. package/lib/es6/utils/datesIntersects.js.map +1 -1
  106. package/lib/es6/utils/formatDate.js.map +1 -1
  107. package/lib/es6/utils/includesDate.js.map +1 -1
  108. package/lib/es6/utils/shortDateRangeFormat.js +1 -1
  109. package/lib/es6/utils/shortDateRangeFormat.js.map +1 -1
  110. package/lib/esm/DatePicker.mjs +33 -27
  111. package/lib/esm/DateRangeComparator.mjs +30 -26
  112. package/lib/esm/DateRangePicker.mjs +21 -17
  113. package/lib/esm/MonthDateRangeComparator.mjs +35 -31
  114. package/lib/esm/MonthPicker.mjs +20 -16
  115. package/lib/esm/MonthRangePicker.mjs +22 -18
  116. package/lib/esm/components/ButtonTrigger.mjs +5 -5
  117. package/lib/esm/components/Calendar.mjs +115 -103
  118. package/lib/esm/components/DateRangeComparatorAbstract.mjs +89 -105
  119. package/lib/esm/components/InputTrigger.mjs +181 -143
  120. package/lib/esm/components/PickerAbstract.mjs +62 -61
  121. package/lib/esm/components/RangePickerAbstract.mjs +73 -94
  122. package/lib/esm/components/index.mjs +33 -29
  123. package/lib/esm/style/calendar.shadow.css +14 -12
  124. package/lib/esm/style/date-picker.shadow.css +7 -6
  125. package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
  126. package/lib/esm/translations/de.json.mjs +6 -18
  127. package/lib/esm/translations/es.json.mjs +6 -18
  128. package/lib/esm/translations/fr.json.mjs +6 -18
  129. package/lib/esm/translations/it.json.mjs +6 -18
  130. package/lib/esm/translations/ja.json.mjs +6 -18
  131. package/lib/esm/translations/ko.json.mjs +6 -18
  132. package/lib/esm/translations/nl.json.mjs +6 -18
  133. package/lib/esm/translations/pl.json.mjs +6 -18
  134. package/lib/esm/translations/pt.json.mjs +6 -18
  135. package/lib/esm/translations/sv.json.mjs +6 -18
  136. package/lib/esm/translations/tr.json.mjs +6 -18
  137. package/lib/esm/translations/vi.json.mjs +6 -18
  138. package/lib/esm/translations/zh.json.mjs +6 -18
  139. package/lib/esm/utils/cronTabScheduler.mjs +4 -4
  140. package/lib/esm/utils/datesIntersects.mjs +1 -1
  141. package/lib/esm/utils/shortDateRangeFormat.mjs +2 -1
  142. package/lib/types/index.d.ts +171 -140
  143. package/package.json +16 -16
  144. package/lib/cjs/utils/isBetweenPlugin.js +0 -21
  145. package/lib/cjs/utils/isBetweenPlugin.js.map +0 -1
  146. package/lib/es6/utils/isBetweenPlugin.js +0 -16
  147. package/lib/es6/utils/isBetweenPlugin.js.map +0 -1
  148. package/lib/esm/utils/isBetweenPlugin.mjs +0 -13
@@ -2,8 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/createClass";
5
- import _callSuper from "@babel/runtime/helpers/callSuper";
5
+ import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
6
6
  import _inherits from "@babel/runtime/helpers/inherits";
7
+ import _createSuper from "@babel/runtime/helpers/createSuper";
7
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
9
  import _objectSpread from "@babel/runtime/helpers/objectSpread2";
9
10
  import { assignProps as _assignProps8 } from "@semcore/core";
@@ -15,15 +16,15 @@ import { assignProps as _assignProps3 } from "@semcore/core";
15
16
  import { assignProps as _assignProps2 } from "@semcore/core";
16
17
  import { assignProps as _assignProps } from "@semcore/core";
17
18
  var _excluded = ["value", "onClick", "onMouseEnter", "onMouseLeave"];
18
- import { Box } from '@semcore/base-components';
19
- import Button from '@semcore/button';
19
+ import React from 'react';
20
+ import dayjs from 'dayjs';
20
21
  import { Component, Root, sstyled } from '@semcore/core';
21
- import { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';
22
22
  import Dropdown from '@semcore/dropdown';
23
+ import { Box } from '@semcore/flex-box';
24
+ import Button from '@semcore/button';
23
25
  import ChevronLeft from '@semcore/icon/ChevronLeft/m';
24
26
  import ChevronRight from '@semcore/icon/ChevronRight/m';
25
- import dayjs from 'dayjs';
26
- import React from 'react';
27
+ import { callAllEventHandlers } from '@semcore/utils/lib/assignProps';
27
28
  import ButtonTrigger from './ButtonTrigger';
28
29
  import InputTriggerBase from './InputTrigger';
29
30
 
@@ -58,34 +59,36 @@ export function Popper(props) {
58
59
  }
59
60
  export function Header(props) {
60
61
  var _ref4 = arguments[0],
61
- _ref0;
62
+ _ref10;
62
63
  var SHeader = Box;
63
- return _ref0 = sstyled(props.styles), /*#__PURE__*/React.createElement(SHeader, _ref0.cn("SHeader", _objectSpread({}, _assignProps4({}, _ref4))));
64
+ return _ref10 = sstyled(props.styles), /*#__PURE__*/React.createElement(SHeader, _ref10.cn("SHeader", _objectSpread({}, _assignProps4({}, _ref4))));
64
65
  }
65
- export function Title(_ref11) {
66
+ export var Title = function Title(_ref13) {
66
67
  var _ref5 = arguments[0],
67
- _ref1;
68
- var Children = _ref11.Children,
69
- styles = _ref11.styles;
68
+ _ref11;
69
+ var Children = _ref13.Children,
70
+ styles = _ref13.styles;
70
71
  var STitle = Box;
71
- return _ref1 = sstyled(styles), /*#__PURE__*/React.createElement(STitle, _ref1.cn("STitle", _objectSpread({}, _assignProps5({
72
+ return _ref11 = sstyled(styles), /*#__PURE__*/React.createElement(STitle, _ref11.cn("STitle", _objectSpread({}, _assignProps5({
72
73
  "aria-live": 'polite'
73
- }, _ref5))), /*#__PURE__*/React.createElement(Children, _ref1.cn("Children", {})));
74
- }
75
- export function Prev(_ref12) {
74
+ }, _ref5))), /*#__PURE__*/React.createElement(Children, _ref11.cn("Children", {})));
75
+ };
76
+ export function Prev(_ref14) {
76
77
  var _ref6 = arguments[0];
77
- var children = _ref12.children,
78
- Children = _ref12.Children;
78
+ var getI18nText = _ref14.getI18nText,
79
+ children = _ref14.children,
80
+ Children = _ref14.Children;
79
81
  return /*#__PURE__*/React.createElement(Button, _assignProps6({
80
82
  "use": 'tertiary',
81
83
  "theme": 'muted',
82
84
  "size": 'l'
83
85
  }, _ref6), children ? /*#__PURE__*/React.createElement(Children, null) : /*#__PURE__*/React.createElement(Button.Addon, null, /*#__PURE__*/React.createElement(ChevronLeft, null)));
84
86
  }
85
- export function Next(_ref13) {
87
+ export function Next(_ref15) {
86
88
  var _ref7 = arguments[0];
87
- var children = _ref13.children,
88
- Children = _ref13.Children;
89
+ var getI18nText = _ref15.getI18nText,
90
+ children = _ref15.children,
91
+ Children = _ref15.Children;
89
92
  return /*#__PURE__*/React.createElement(Button, _assignProps7({
90
93
  "use": 'tertiary',
91
94
  "theme": 'muted',
@@ -93,14 +96,16 @@ export function Next(_ref13) {
93
96
  }, _ref7), children ? /*#__PURE__*/React.createElement(Children, null) : /*#__PURE__*/React.createElement(Button.Addon, null, /*#__PURE__*/React.createElement(ChevronRight, null)));
94
97
  }
95
98
  export var Period = /*#__PURE__*/function (_Component) {
99
+ _inherits(Period, _Component);
100
+ var _super = _createSuper(Period);
96
101
  function Period() {
97
102
  var _this;
98
103
  _classCallCheck(this, Period);
99
104
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
100
105
  args[_key] = arguments[_key];
101
106
  }
102
- _this = _callSuper(this, Period, [].concat(args));
103
- _defineProperty(_this, "getActiveControl", function () {
107
+ _this = _super.call.apply(_super, [this].concat(args));
108
+ _defineProperty(_assertThisInitialized(_this), "getActiveControl", function () {
104
109
  var period = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
105
110
  var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
106
111
  function compareMonth(monthOne, monthTwo) {
@@ -115,12 +120,11 @@ export var Period = /*#__PURE__*/function (_Component) {
115
120
  });
116
121
  return _this;
117
122
  }
118
- _inherits(Period, _Component);
119
- return _createClass(Period, [{
123
+ _createClass(Period, [{
120
124
  key: "render",
121
125
  value: function render() {
122
126
  var _ref8 = this.asProps,
123
- _ref10,
127
+ _ref12,
124
128
  _this2 = this;
125
129
  var SPeriod = Box;
126
130
  var _this$asProps = this.asProps,
@@ -129,16 +133,14 @@ export var Period = /*#__PURE__*/function (_Component) {
129
133
  onChange = _this$asProps.onChange,
130
134
  periods = _this$asProps.periods,
131
135
  onHighlightedChange = _this$asProps.onHighlightedChange,
132
- onDisplayedPeriodChange = _this$asProps.onDisplayedPeriodChange,
133
- periodRef = _this$asProps.periodRef;
134
- return _ref10 = sstyled(styles), /*#__PURE__*/React.createElement(SPeriod, _ref10.cn("SPeriod", _objectSpread({}, _assignProps8({}, _ref8))), periods.map(function (_ref14, i) {
135
- var period = _ref14.value,
136
- onClick = _ref14.onClick,
137
- onMouseEnter = _ref14.onMouseEnter,
138
- onMouseLeave = _ref14.onMouseLeave,
139
- other = _objectWithoutProperties(_ref14, _excluded);
136
+ onDisplayedPeriodChange = _this$asProps.onDisplayedPeriodChange;
137
+ return _ref12 = sstyled(styles), /*#__PURE__*/React.createElement(SPeriod, _ref12.cn("SPeriod", _objectSpread({}, _assignProps8({}, _ref8))), periods.map(function (_ref16, i) {
138
+ var period = _ref16.value,
139
+ onClick = _ref16.onClick,
140
+ onMouseEnter = _ref16.onMouseEnter,
141
+ onMouseLeave = _ref16.onMouseLeave,
142
+ other = _objectWithoutProperties(_ref16, _excluded);
140
143
  return /*#__PURE__*/React.createElement(Button, _extends({
141
- ref: periodRef === null || periodRef === void 0 ? void 0 : periodRef(i),
142
144
  key: i,
143
145
  use: "tertiary",
144
146
  theme: "muted",
@@ -160,5 +162,6 @@ export var Period = /*#__PURE__*/function (_Component) {
160
162
  }));
161
163
  }
162
164
  }]);
165
+ return Period;
163
166
  }(Component);
164
167
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Box","Button","Component","Root","sstyled","callAllEventHandlers","Dropdown","ChevronLeft","ChevronRight","dayjs","React","ButtonTrigger","InputTriggerBase","Trigger","_ref","arguments[0]","createElement","_assignProps","InputTrigger","_ref2","_assignProps2","Indicator","MaskedInput","Addon","SingleDateInput","DateRange","DateRangeFromInput","DateRangeToInput","Popper","props","_ref3","_ref9","SPopper","styles","cn","_objectSpread","_assignProps3","Header","_ref4","_ref0","SHeader","_assignProps4","Title","_ref11","_ref5","_ref1","Children","STitle","_assignProps5","Prev","_ref12","_ref6","children","_assignProps6","Next","_ref13","_ref7","_assignProps7","Period","_Component","_this","_classCallCheck","_len","arguments","length","args","Array","_key","_callSuper","concat","_defineProperty","period","undefined","value","compareMonth","monthOne","monthTwo","isSame","isArray","_inherits","_createClass","key","render","_ref8","asProps","_ref10","_this2","SPeriod","_this$asProps","onChange","periods","onHighlightedChange","onDisplayedPeriodChange","periodRef","_assignProps8","map","_ref14","i","onClick","onMouseEnter","onMouseLeave","other","_objectWithoutProperties","_excluded","_extends","ref","use","theme","role","active","getActiveControl","toDate","Date"],"sources":["../../../src/components/index.jsx"],"sourcesContent":["import { Box } from '@semcore/base-components';\nimport Button from '@semcore/button';\nimport { Component, Root, sstyled } from '@semcore/core';\nimport { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';\nimport Dropdown from '@semcore/dropdown';\nimport ChevronLeft from '@semcore/icon/ChevronLeft/m';\nimport ChevronRight from '@semcore/icon/ChevronRight/m';\nimport dayjs from 'dayjs';\nimport React from 'react';\n\nimport ButtonTrigger from './ButtonTrigger';\nimport InputTriggerBase from './InputTrigger';\n\n/** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\nexport function Trigger() {\n return <Root render={Dropdown.Trigger} tag={ButtonTrigger} />;\n}\n\nexport function InputTrigger() {\n return (\n <Root\n render={Dropdown.Trigger}\n tag={InputTriggerBase}\n __excludeProps={['role', 'aria-haspopup', 'aria-expanded', 'onChange', 'value', 'id']}\n />\n );\n}\nInputTrigger.Indicator = InputTriggerBase.Indicator;\nInputTrigger.MaskedInput = InputTriggerBase.MaskedInput;\nInputTrigger.Addon = InputTriggerBase.Addon;\nInputTrigger.SingleDateInput = InputTriggerBase.SingleDateInput;\nInputTrigger.DateRange = InputTriggerBase.DateRange;\nInputTrigger.DateRangeFromInput = InputTriggerBase.DateRangeFromInput;\nInputTrigger.DateRangeToInput = InputTriggerBase.DateRangeToInput;\n\nexport function Popper(props) {\n const SPopper = Root;\n return sstyled(props.styles)(<SPopper render={Dropdown.Popper} role='dialog' />);\n}\n\nexport function Header(props) {\n const SHeader = Root;\n return sstyled(props.styles)(<SHeader render={Box} />);\n}\n\nexport function Title({ Children, styles }) {\n const STitle = Root;\n return sstyled(styles)(\n <STitle render={Box} aria-live='polite'>\n <Children />\n </STitle>,\n );\n}\n\nexport function Prev({ children, Children }) {\n return (\n <Root render={Button} use='tertiary' theme='muted' size='l'>\n {children\n ? (\n <Children />\n )\n : (\n <Button.Addon>\n <ChevronLeft />\n </Button.Addon>\n )}\n </Root>\n );\n}\n\nexport function Next({ children, Children }) {\n return (\n <Root render={Button} use='tertiary' theme='muted' size='l'>\n {children\n ? (\n <Children />\n )\n : (\n <Button.Addon>\n <ChevronRight />\n </Button.Addon>\n )}\n </Root>\n );\n}\n\nexport class Period extends Component {\n getActiveControl = (period = [], value = undefined) => {\n function compareMonth(monthOne, monthTwo) {\n return dayjs(monthOne).isSame(dayjs(monthTwo), 'date');\n }\n\n if (!period || !value) return false;\n if (Array.isArray(value) && period.length !== value.length) return false;\n if (Array.isArray(value)) {\n return compareMonth(period[0], value[0]) && compareMonth(period[1], value[1]);\n }\n\n return compareMonth(period[0], value);\n };\n\n render() {\n const SPeriod = Root;\n const { styles, value, onChange, periods, onHighlightedChange, onDisplayedPeriodChange, periodRef } =\n this.asProps;\n\n return sstyled(styles)(\n <SPeriod render={Box}>\n {periods.map(({ value: period, onClick, onMouseEnter, onMouseLeave, ...other }, i) => (\n <Button\n ref={periodRef?.(i)}\n key={i}\n use='tertiary'\n theme='muted'\n role='option'\n styles={styles}\n active={this.getActiveControl(period, value)}\n onClick={callAllEventHandlers(onClick, () => onChange(period))}\n onMouseEnter={callAllEventHandlers(onMouseEnter, () => {\n onHighlightedChange(period);\n onDisplayedPeriodChange(dayjs(period[0]).toDate());\n })}\n onMouseLeave={callAllEventHandlers(onMouseLeave, () => {\n onHighlightedChange([]);\n onDisplayedPeriodChange(value[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7CyB,OAAO,EAAE7F,oBAAoB,CAAC6F,OAAO,EAAE;YAAA,OAAMT,QAAQ,CAAClB,MAAM,CAAC;UAAA,EAAE;UAC/D4B,YAAY,EAAE9F,oBAAoB,CAAC8F,YAAY,EAAE,YAAM;YACrDR,mBAAmB,CAACpB,MAAM,CAAC;YAC3BqB,uBAAuB,CAACnF,KAAK,CAAC8D,MAAM,CAAC,CAAC,CAAC,CAAC,CAACwC,MAAM,CAAC,CAAC,CAAC;UACpD,CAAC,CAAE;UACHX,YAAY,EAAE/F,oBAAoB,CAAC+F,YAAY,EAAE,YAAM;YACrDT,mBAAmB,CAAC,EAAE,CAAC;YACvBC,uBAAuB,CAACnB,KAAK,CAAC,CAAC,CAAC,GAAGhE,KAAK,CAACgE,KAAK,CAAC,CAAC,CAAC,CAAC,CAACsC,MAAM,CAAC,CAAC,GAAG,IAAIC,IAAI,CAAC,CAAC,CAAC;UAC3E,CAAC;QAAE,GACCX,KAAK,CACV,CAAC;MAAA,CACH,CACM,CAAC;IAEd;EAAC;AAAA,EA7CyBnG,SAAS","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","dayjs","Component","Root","sstyled","Dropdown","Box","Button","ChevronLeft","ChevronRight","callAllEventHandlers","ButtonTrigger","InputTriggerBase","Trigger","_ref","arguments[0]","createElement","_assignProps","InputTrigger","_ref2","_assignProps2","Indicator","MaskedInput","Addon","SingleDateInput","DateRange","DateRangeFromInput","DateRangeToInput","Popper","props","_ref3","_ref9","SPopper","styles","cn","_objectSpread","_assignProps3","Header","_ref4","_ref10","SHeader","_assignProps4","Title","_ref13","_ref5","_ref11","Children","STitle","_assignProps5","Prev","_ref14","_ref6","getI18nText","children","_assignProps6","Next","_ref15","_ref7","_assignProps7","Period","_Component","_inherits","_super","_createSuper","_this","_classCallCheck","_len","arguments","length","args","Array","_key","call","apply","concat","_defineProperty","_assertThisInitialized","period","undefined","value","compareMonth","monthOne","monthTwo","isSame","isArray","_createClass","key","render","_ref8","asProps","_ref12","_this2","SPeriod","_this$asProps","onChange","periods","onHighlightedChange","onDisplayedPeriodChange","_assignProps8","map","_ref16","i","onClick","onMouseEnter","onMouseLeave","other","_objectWithoutProperties","_excluded","_extends","use","theme","role","active","getActiveControl","toDate","Date"],"sources":["../../../src/components/index.jsx"],"sourcesContent":["import React from 'react';\nimport dayjs from 'dayjs';\nimport { Component, Root, sstyled } from '@semcore/core';\nimport Dropdown from '@semcore/dropdown';\nimport { Box } from '@semcore/flex-box';\nimport Button from '@semcore/button';\nimport ChevronLeft from '@semcore/icon/ChevronLeft/m';\nimport ChevronRight from '@semcore/icon/ChevronRight/m';\nimport { callAllEventHandlers } from '@semcore/utils/lib/assignProps';\nimport ButtonTrigger from './ButtonTrigger';\nimport InputTriggerBase from './InputTrigger';\n\n/** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\nexport function Trigger() {\n return <Root render={Dropdown.Trigger} tag={ButtonTrigger} />;\n}\n\nexport function InputTrigger() {\n return (\n <Root\n render={Dropdown.Trigger}\n tag={InputTriggerBase}\n __excludeProps={['role', 'aria-haspopup', 'aria-expanded', 'onChange', 'value', 'id']}\n />\n );\n}\nInputTrigger.Indicator = InputTriggerBase.Indicator;\nInputTrigger.MaskedInput = InputTriggerBase.MaskedInput;\nInputTrigger.Addon = InputTriggerBase.Addon;\nInputTrigger.SingleDateInput = InputTriggerBase.SingleDateInput;\nInputTrigger.DateRange = InputTriggerBase.DateRange;\nInputTrigger.DateRangeFromInput = InputTriggerBase.DateRangeFromInput;\nInputTrigger.DateRangeToInput = InputTriggerBase.DateRangeToInput;\n\nexport function Popper(props) {\n const SPopper = Root;\n return sstyled(props.styles)(<SPopper render={Dropdown.Popper} role='dialog' />);\n}\n\nexport function Header(props) {\n const SHeader = Root;\n return sstyled(props.styles)(<SHeader render={Box} />);\n}\n\nexport const Title = ({ Children, styles }) => {\n const STitle = Root;\n return sstyled(styles)(\n <STitle render={Box} aria-live='polite'>\n <Children />\n </STitle>,\n );\n};\n\nexport function Prev({ getI18nText, children, Children }) {\n return (\n <Root render={Button} use='tertiary' theme='muted' size='l'>\n {children ? (\n <Children />\n ) : (\n <Button.Addon>\n <ChevronLeft />\n </Button.Addon>\n )}\n </Root>\n );\n}\n\nexport function Next({ getI18nText, children, Children }) {\n return (\n <Root render={Button} use='tertiary' theme='muted' size='l'>\n {children ? (\n <Children />\n ) : (\n <Button.Addon>\n <ChevronRight />\n </Button.Addon>\n )}\n </Root>\n );\n}\n\nexport class Period extends Component {\n getActiveControl = (period = [], value = undefined) => {\n function compareMonth(monthOne, monthTwo) {\n return dayjs(monthOne).isSame(dayjs(monthTwo), 'date');\n }\n\n if (!period || !value) return false;\n if (Array.isArray(value) && period.length !== value.length) return false;\n if (Array.isArray(value)) {\n return compareMonth(period[0], value[0]) && compareMonth(period[1], value[1]);\n }\n\n return compareMonth(period[0], value);\n };\n\n render() {\n const SPeriod = Root;\n const { styles, value, onChange, periods, onHighlightedChange, onDisplayedPeriodChange } =\n this.asProps;\n\n return sstyled(styles)(\n <SPeriod render={Box}>\n {periods.map(({ value: period, onClick, onMouseEnter, onMouseLeave, ...other }, i) => (\n <Button\n key={i}\n use='tertiary'\n theme='muted'\n role='option'\n styles={styles}\n active={this.getActiveControl(period, value)}\n onClick={callAllEventHandlers(onClick, () => onChange(period))}\n onMouseEnter={callAllEventHandlers(onMouseEnter, () => {\n onHighlightedChange(period);\n onDisplayedPeriodChange(dayjs(period[0]).toDate());\n })}\n onMouseLeave={callAllEventHandlers(onMouseLeave, () => {\n onHighlightedChange([]);\n onDisplayedPeriodChange(value[0] ? dayjs(value[0]).toDate() : new Date());\n })}\n {...other}\n />\n ))}\n </SPeriod>,\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,EAAEC,IAAI,EAAEC,OAAO,QAAQ,eAAe;AACxD,OAAOC,QAAQ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uBAAuB,CAAChG,KAAK,CAAC4E,MAAM,CAAC,CAAC,CAAC,CAAC,CAACqC,MAAM,EAAE,CAAC;UACpD,CAAC,CAAE;UACHV,YAAY,EAAE9F,oBAAoB,CAAC8F,YAAY,EAAE,YAAM;YACrDR,mBAAmB,CAAC,EAAE,CAAC;YACvBC,uBAAuB,CAAClB,KAAK,CAAC,CAAC,CAAC,GAAG9E,KAAK,CAAC8E,KAAK,CAAC,CAAC,CAAC,CAAC,CAACmC,MAAM,EAAE,GAAG,IAAIC,IAAI,EAAE,CAAC;UAC3E,CAAC;QAAE,GACCV,KAAK,EACT;MAAA,CACH,CAAC,CACM;IAEd;EAAC;EAAA,OAAA9C,MAAA;AAAA,EA5CyBzD,SAAS"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { Flex, Box, BoxProps } from '@semcore/base-components';\nimport type Popper from '@semcore/base-components';\nimport type { BaseTriggerProps } from '@semcore/base-trigger';\nimport type BaseTrigger from '@semcore/base-trigger';\nimport type { ButtonProps } from '@semcore/button';\nimport type Button from '@semcore/button';\nimport type Checkbox from '@semcore/checkbox';\nimport type { UnknownProperties, Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { WithI18nEnhanceProps } from '@semcore/core/lib/utils/enhances/i18nEnhance';\nimport type Divider from '@semcore/divider';\nimport type { DropdownProps, DropdownTriggerProps } from '@semcore/dropdown';\nimport type { InputProps, InputValueProps } from '@semcore/input';\nimport type Input from '@semcore/input';\nimport type { InputMaskValueProps } from '@semcore/input-mask';\nimport type { TooltipProps } from '@semcore/tooltip';\nimport type dayjs from 'dayjs';\nimport type { ChangeEvent } from 'react';\nimport type React from 'react';\n\nexport type DateConstructorParams = string | number | Date;\n\n/**\n * Array of dates blocked for selection\n * Accepts the date or the range of dates for specifying infinity ([Date | false, Date | false]), crontab(6,7)\n * */\nexport type DisabledDates = (DateConstructorParams | (DateConstructorParams | false)[] | string)[];\n\nexport type CalendarProps = BoxProps & {\n /**\n * Locale for displaying the days of a week and months, to be transferred to `Intl`\n * @default en\n * */\n locale?: NavigatorLanguage['language'];\n /**\n * Array of dates blocked for selection\n */\n disabled?: DisabledDates;\n /** Internal */\n highlighted?: DateConstructorParams[];\n /** Internal */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date[]) => void;\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: Date;\n /** Controls whether to render dates from previous/next months */\n renderOutdated?: boolean;\n};\n\nexport type CalendarDaysContext = {\n days: CalendarUnitProps[];\n};\n\nexport type CalendarMonthsContext = {\n months: CalendarUnitProps[];\n};\n\nexport type CalendarUnitProps = BoxProps & {\n /** Indicates if the calendar unit is part of a selected date range */\n selected?: boolean;\n /** Marks units from previous/next months that appear in the current month view */\n outdated?: boolean;\n /** Prevents interaction with the unit */\n disabled?: boolean;\n /** Highlights the current date */\n today?: boolean;\n /** Marks the beginning of a selected date range */\n startSelected?: boolean;\n /** Marks the end of a selected date range */\n endSelected?: boolean;\n /** Shows preview highlighting during range selection */\n highlighted?: boolean;\n /** Marks the start of a highlighted range */\n startHighlighted?: boolean;\n /** Marks the end of a highlighted range */\n endHighlighted?: boolean;\n /** The actual Date object this unit represents */\n date?: Date;\n /** Content to display within the unit (typically the day number) */\n children?: React.ReactNode;\n};\n\nexport type CalendarContext = {\n getUnitProps: PropGetterFn;\n};\n\ndeclare const Calendar: Intergalactic.Component<\n 'div',\n CalendarProps,\n CalendarContext & CalendarDaysContext,\n [handlers: AbstractDatePickerHandlers]\n> & {\n Unit: Intergalactic.Component<'div', CalendarUnitProps>;\n};\n\nexport type DatePickerProps = Intergalactic.InternalTypings.EfficientOmit<\n DropdownProps,\n 'disabled'\n> &\nWithI18nEnhanceProps & {\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams;\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (DateConstructorParams | (DateConstructorParams | false)[] | string)[];\n /**\n * Error message when user attempts to input a disabled date\n * */\n disabledErrorText?: ((attemptedDate: Date) => string) | string | null;\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * Component size\n * @default m\n */\n size?: 'm' | 'l';\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultValue?: DateConstructorParams;\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n};\n\nexport type DateRangePickerProps = Intergalactic.InternalTypings.EfficientOmit<\n DropdownProps,\n 'disabled'\n> &\nWithI18nEnhanceProps & {\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams[];\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultValue?: DateConstructorParams[];\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date[]) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (DateConstructorParams | (DateConstructorParams | false)[] | string)[];\n /**\n * Error message when user attempts to input a disabled date\n * */\n disabledErrorText?: ((attemptedDate: Date) => string) | string | null;\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * Remove the 'Reset' button\n * */\n unclearable?: boolean;\n /**\n * To be activated upon selecting the date\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * Intermediate value between `highlighted` and `value` that user see before explicitly applying it.\n */\n preselectedValue?: DateConstructorParams[];\n /**\n * Normally called when user preselects a date range and when user applies this range.\n */\n onPreselectedValueChange?: (date: Date[]) => void;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ButtonProps & { value: Date[] })[];\n};\n\nexport type DateRangePickerPeriodProps = BoxProps & {\n /**\n * Current selected period\n * */\n value?: DateConstructorParams[];\n /**\n * To be activated by clicking the button for switching the selected period.\n * */\n onChange?: (date: Date[]) => void;\n /**\n * To be activated by hovering a cursor over the button for changing the current displayed month.\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * To be activated by hovering a cursor over the button for selecting the dates.\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ButtonProps & { value: Date[] })[];\n};\n\nexport type DatePickerContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getTodayProps: PropGetterFn;\n};\n\nexport type AbstractDatePickerHandlers = {\n displayedPeriod: (value: DateConstructorParams) => void;\n visible: (index: boolean) => void;\n highlighted: (list: DateConstructorParams[]) => void;\n value: (index: DateConstructorParams) => void;\n};\n\nexport type DatePickerHandlers = {\n visible: (index: boolean) => void;\n};\n\nexport type BaseInputTriggerProps = InputProps &\n TooltipProps & {\n /**\n * Date input placeholder characters\n * @default { year: 'Y'; month: 'M'; day: 'D' }\n */\n placeholders?: { year: string; month: string; day: string };\n locale?: string;\n onDisplayedPeriodChange?: (date: Date) => void;\n };\nexport type InputTriggerProps = BaseInputTriggerProps & {\n value?: Date;\n onChange?: (date: Date, event: ChangeEvent) => void;\n /** @deprecated Set `disabledErrorText={null}` on the picker Root instead */\n showError?: boolean;\n};\n\nexport type RangeInputTriggerProps = BaseInputTriggerProps & {\n value?: Date[];\n onChange?: (date: Date[], event: ChangeEvent) => void;\n};\n\nexport type SingleDateInputProps = InputTriggerProps & {};\n\nexport type DateRangeProps = RangeInputTriggerProps & {};\n\nexport type DatePickerMaskedInputProps = {\n date?: Date;\n onDateChange?: (date: Date, event: ChangeEvent) => void;\n onDisplayedPeriodChange?: (date: Date) => void;\n locale?: string;\n parts?: { year: boolean; month: boolean; day: boolean };\n disabledDates?: (Date | (Date | false)[] | string)[];\n};\n\ndeclare const InputTrigger: Intergalactic.Component<\n 'div',\n DropdownTriggerProps & InputTriggerProps\n> & {\n Addon: typeof Input.Addon;\n Value: typeof Input.Value;\n SingleDateInput: Intergalactic.Component<'div', InputProps & SingleDateInputProps> & {\n Indicator: typeof Input.Addon;\n MaskedInput: Intergalactic.Component<'input', InputMaskValueProps & DatePickerMaskedInputProps>;\n };\n};\n\ndeclare const RangeInputTrigger: Intergalactic.Component<\n 'div',\n DropdownTriggerProps & RangeInputTriggerProps\n> & {\n Addon: typeof Input.Addon;\n Value: typeof Input.Value;\n DateRange: Intergalactic.Component<'div', InputValueProps & DateRangeProps> & {\n Indicator: typeof Input.Addon;\n RangeSep: typeof Input.Addon;\n FromMaskedInput: Intergalactic.Component<\n 'input',\n InputMaskValueProps & DatePickerMaskedInputProps\n >;\n ToMaskedInput: Intergalactic.Component<\n 'input',\n InputMaskValueProps & DatePickerMaskedInputProps\n >;\n };\n};\n\ndeclare const DatePicker: Intergalactic.Component<\n 'div',\n DatePickerProps,\n DatePickerContext & CalendarDaysContext\n> & {\n /** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\n ButtonTrigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n Trigger: typeof InputTrigger;\n Popper: typeof Popper.Popper;\n Header: typeof Box;\n Title: Intergalactic.Component<'div', DatePickerProps, DatePickerContext>;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Today: typeof Box;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport type DateRangePickerContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n};\n\ndeclare const DateRangePicker: Intergalactic.Component<\n 'div',\n DateRangePickerProps,\n DateRangePickerContext & CalendarDaysContext,\n [handlers: DatePickerHandlers]\n> & {\n /** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\n ButtonTrigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n Trigger: typeof RangeInputTrigger;\n Popper: typeof Popper.Popper;\n Header: typeof Box;\n Title: Intergalactic.Component<'div', DateRangePickerProps, DateRangePickerContext>;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Period: Intergalactic.Component<'div', DateRangePickerPeriodProps>;\n Apply: typeof Button;\n Reset: typeof Button;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport type MonthPickerContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n};\n\ndeclare const MonthPicker: Intergalactic.Component<\n 'div',\n DatePickerProps,\n MonthPickerContext & CalendarMonthsContext,\n [handlers: DatePickerHandlers]\n> & {\n /** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\n ButtonTrigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n Trigger: typeof InputTrigger;\n Popper: typeof Popper.Popper;\n Header: typeof Box;\n Title: Intergalactic.Component<'div', DatePickerProps, MonthPickerContext>;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport type MonthRangePickerContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n};\n\ndeclare const MonthRangePicker: Intergalactic.Component<\n 'div',\n DateRangePickerProps,\n MonthRangePickerContext & CalendarMonthsContext,\n [handlers: DatePickerHandlers]\n> & {\n /** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\n ButtonTrigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n Trigger: typeof RangeInputTrigger;\n Popper: typeof Popper.Popper;\n Header: typeof Box;\n Title: Intergalactic.Component<'div', DateRangePickerProps, MonthRangePickerContext>;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Period: Intergalactic.Component<'div', DateRangePickerPeriodProps>;\n Apply: typeof Button;\n Reset: typeof Button;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport type DateRangeComparatorFocusRange = 'value' | 'compare';\nexport type DateRangeComparatorValue = {\n value?: DateConstructorParams[];\n compare?: DateConstructorParams[];\n};\n\nexport type DateRangeComparatorProps = Intergalactic.InternalTypings.EfficientOmit<\n DropdownProps,\n 'disabled'\n> &\nWithI18nEnhanceProps & {\n /**\n * Selected date ranges\n * */\n value?: DateRangeComparatorValue;\n /**\n * Default value for selected date ranges\n * */\n defaultValue?: DateRangeComparatorValue;\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n /**\n * Called with selected date when user clicks `Apply` button.\n * */\n onChange?: (ranges: {\n value?: DateConstructorParams[];\n compare?: DateConstructorParams[];\n }) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (DateConstructorParams | (DateConstructorParams | false)[] | string)[];\n /**\n * Error message when user attempts to input a disabled date\n * */\n disabledErrorText?: ((attemptedDate: Date) => string) | string | null;\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n compareHighlighted?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onCompareHighlightedChange?: (date: Date[]) => void;\n /**\n * Intermediate value between `highlighted` and `value` that user see before explicitly applying it.\n */\n preselectedValue?: DateConstructorParams[];\n /**\n * Normally called when user preselects a date range and when user applies this range.\n */\n onPreselectedValueChange?: (date: Date[]) => void;\n /**\n * Intermediate value between `compareHighlighted` and `compare` that user see before explicitly applying it.\n */\n preselectedCompare?: DateConstructorParams[];\n /**\n * Normally called when user preselects a compare range and when user applies ranges.\n */\n onPreselectedCompareChange?: (date: Date[]) => void;\n /**\n * Controls that compare range input is enabled.\n */\n compareToggle?: boolean;\n /**\n * Toggles when compare range input enables or disables.\n */\n onCompareToggleChange?: (compareToggle: boolean) => void;\n /**\n * Controls which date range is focused.\n */\n focusedRange?: DateRangeComparatorFocusRange;\n /**\n * Called when user focuses or is focused on some of the date ranges.\n */\n onFocusedRangeChange?: (focusedRange: DateRangeComparatorFocusRange) => void;\n /**\n * Remove the 'Reset' button\n * */\n unclearable?: boolean;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ButtonProps & { value: Date[] })[];\n};\n\nexport type DateRangeComparatorContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n};\n\nexport type DateRangeComparatorTriggerProps = DropdownTriggerProps &\n BaseTriggerProps & {\n /**\n * Text between the selected date range and the compared date range when both are selected.\n * @default 'vs.'\n */\n separator?: string;\n /**\n * Trigger text when no ranges are selected.\n */\n placeholder?: string;\n };\n\ndeclare const DateRangeComparator: Intergalactic.Component<\n 'div',\n DateRangeComparatorProps,\n DateRangeComparatorContext & CalendarDaysContext\n> & {\n Popper: typeof Popper.Popper;\n Header: typeof Flex;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Apply: typeof Button;\n Reset: typeof Button;\n\n CalendarHeader: typeof Box;\n Title: typeof Box;\n\n Trigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n ValueDateRange: Intergalactic.Component<'div', InputTriggerProps>;\n CompareToggle: typeof Checkbox;\n CompareDateRange: Intergalactic.Component<'div', InputTriggerProps>;\n Body: typeof Flex;\n RangeCalendar: typeof Flex;\n Periods: typeof Flex & {\n Divider: typeof Divider;\n Column: typeof Flex;\n Options: typeof Flex;\n Controls: typeof Flex;\n };\n Footer: typeof Flex;\n};\n\ndeclare const MonthDateRangeComparator: typeof DateRangeComparator;\n\nexport {\n DatePicker,\n DateRangePicker,\n MonthPicker,\n MonthRangePicker,\n DateRangeComparator,\n MonthDateRangeComparator,\n};\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React, { ChangeEvent, ComponentProps } from 'react';\nimport dayjs from 'dayjs';\nimport { Flex, Box, BoxProps } from '@semcore/flex-box';\nimport { UnknownProperties, Intergalactic, PropGetterFn } from '@semcore/core';\nimport Button, { ButtonProps } from '@semcore/button';\nimport Divider from '@semcore/divider';\nimport { DropdownProps, DropdownTriggerProps } from '@semcore/dropdown';\nimport { WithI18nEnhanceProps } from '@semcore/utils/lib/enhances/i18nEnhance';\nimport BaseTrigger, { BaseTriggerProps } from '@semcore/base-trigger';\nimport Input, { InputProps, InputValueProps } from '@semcore/input';\nimport { InputMaskValueProps } from '@semcore/input-mask';\nimport Checkbox from '@semcore/checkbox';\nimport { TooltipProps } from '@semcore/tooltip';\nimport Popper from '@semcore/popper';\n\nexport type DateConstructorParams = string | number | Date;\n\n/**\n * Array of dates blocked for selection\n * Accepts the date or the range of dates for specifying infinity ([Date | false, Date | false]), crontab(6,7)\n * */\nexport type DisabledDates = (DateConstructorParams | (DateConstructorParams | false)[] | string)[];\n\n/** @deprecated */\nexport interface ICalendarProps extends CalendarProps, UnknownProperties {}\nexport type CalendarProps = BoxProps & {\n /**\n * Locale for displaying the days of a week and months, to be transferred to `Intl`\n * @default en\n * */\n locale?: NavigatorLanguage['language'];\n /**\n * Array of dates blocked for selection\n */\n disabled?: DisabledDates;\n /**\n * @ignore\n * */\n highlighted?: DateConstructorParams[];\n /**\n * @ignore\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date[]) => void;\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: Date;\n\n renderOutdated?: boolean;\n};\n\n/** @deprecated */\nexport interface ICalendarDaysContext extends CalendarDaysContext, UnknownProperties {}\nexport type CalendarDaysContext = {\n days: CalendarUnitProps[];\n};\n\n/** @deprecated */\nexport interface ICalendarMonthsContext extends CalendarMonthsContext, UnknownProperties {}\nexport type CalendarMonthsContext = {\n months: CalendarUnitProps[];\n};\n\n/** @deprecated */\nexport interface ICalendarUnitProps extends CalendarUnitProps, UnknownProperties {}\nexport type CalendarUnitProps = BoxProps & {\n selected?: boolean;\n outdated?: boolean;\n disabled?: boolean;\n today?: boolean;\n startSelected?: boolean;\n endSelected?: boolean;\n highlighted?: boolean;\n startHighlighted?: boolean;\n endHighlighted?: boolean;\n date?: Date;\n children?: React.ReactNode;\n};\n\n/** @deprecated */\nexport interface ICalendarContext extends CalendarContext, UnknownProperties {}\nexport type CalendarContext = {\n getUnitProps: PropGetterFn;\n};\n\ndeclare const Calendar: Intergalactic.Component<\n 'div',\n CalendarProps,\n CalendarContext & CalendarDaysContext,\n [handlers: AbstractDatePickerHandlers]\n> & {\n Unit: Intergalactic.Component<'div', CalendarUnitProps>;\n};\n\n/** @deprecated */\nexport interface IDatePickerProps extends DatePickerProps, UnknownProperties {}\nexport type DatePickerProps = Intergalactic.InternalTypings.EfficientOmit<\n DropdownProps,\n 'disabled'\n> &\n WithI18nEnhanceProps & {\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams;\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (DateConstructorParams | (DateConstructorParams | false)[] | string)[];\n /**\n * Error message when user attempts to input a disabled date\n * */\n disabledErrorText?: ((attemptedDate: Date) => string) | string | null;\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * Component size\n * @default m\n */\n size?: 'm' | 'l';\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultValue?: DateConstructorParams;\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n };\n\n/** @deprecated */\nexport interface IDateRangePickerProps extends DateRangePickerProps, UnknownProperties {}\nexport type DateRangePickerProps = Intergalactic.InternalTypings.EfficientOmit<\n DropdownProps,\n 'disabled'\n> &\n WithI18nEnhanceProps & {\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n value?: DateConstructorParams[];\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultValue?: DateConstructorParams[];\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onChange?: (date: Date[]) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (DateConstructorParams | (DateConstructorParams | false)[] | string)[];\n /**\n * Error message when user attempts to input a disabled date\n * */\n disabledErrorText?: ((attemptedDate: Date) => string) | string | null;\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * Remove the 'Reset' button\n * */\n unclearable?: boolean;\n /**\n * To be activated upon selecting the date\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * Intermediate value between `highlighted` and `value` that user see before explicitly applying it.\n */\n preselectedValue?: DateConstructorParams[];\n /**\n * Normally called when user preselects a date range and when user applies this range.\n */\n onPreselectedValueChange?: (date: Date[]) => void;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ButtonProps & { value: Date[] })[];\n };\n\n/** @deprecated */\nexport interface IDateRangePickerPeriodProps\n extends DateRangePickerPeriodProps,\n UnknownProperties {}\nexport type DateRangePickerPeriodProps = BoxProps & {\n /**\n * Current selected period\n * */\n value?: DateConstructorParams[];\n /**\n * To be activated by clicking the button for switching the selected period.\n * */\n onChange?: (date: Date[]) => void;\n /**\n * To be activated by hovering a cursor over the button for changing the current displayed month.\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * To be activated by hovering a cursor over the button for selecting the dates.\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ButtonProps & { value: Date[] })[];\n};\n\n/** @deprecated */\nexport interface IDatePickerContext extends DatePickerContext, UnknownProperties {}\nexport type DatePickerContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getTodayProps: PropGetterFn;\n};\n\n/** @deprecated */\nexport interface IAbstractDatePickerHandlers\n extends AbstractDatePickerHandlers,\n UnknownProperties {}\nexport type AbstractDatePickerHandlers = {\n displayedPeriod: (value: DateConstructorParams) => void;\n visible: (index: boolean) => void;\n highlighted: (list: DateConstructorParams[]) => void;\n value: (index: DateConstructorParams) => void;\n};\n\n/** @deprecated */\nexport interface IDatePickerHandlers extends DatePickerHandlers, UnknownProperties {}\nexport type DatePickerHandlers = {\n visible: (index: boolean) => void;\n};\n\n/** @deprecated */\nexport interface IInputTriggerProps extends InputTriggerProps, UnknownProperties {}\nexport type BaseInputTriggerProps = InputProps &\n TooltipProps & {\n /**\n * Date input placeholder characters\n * @default { year: 'Y'; month: 'M'; day: 'D' }\n */\n placeholders?: { year: string; month: string; day: string };\n locale?: string;\n onDisplayedPeriodChange?: (date: Date) => void;\n };\nexport type InputTriggerProps = BaseInputTriggerProps & {\n value?: Date;\n onChange?: (date: Date, event: ChangeEvent) => void;\n /** @deprecated Set `disabledErrorText={null}` on the picker Root instead */\n showError?: boolean;\n};\n\nexport type RangeInputTriggerProps = BaseInputTriggerProps & {\n value?: Date[];\n onChange?: (date: Date[], event: ChangeEvent) => void;\n};\n\n/** @deprecated */\nexport interface ISingleDateInputProps extends SingleDateInputProps, UnknownProperties {}\nexport type SingleDateInputProps = InputTriggerProps & {};\n\n/** @deprecated */\nexport interface IDateRangeProps extends DateRangeProps, UnknownProperties {}\nexport type DateRangeProps = RangeInputTriggerProps & {};\n\n/** @deprecated */\nexport interface IDatePickerMaskedInputProps\n extends DatePickerMaskedInputProps,\n UnknownProperties {}\nexport type DatePickerMaskedInputProps = {\n date?: Date;\n onDateChange?: (date: Date, event: ChangeEvent) => void;\n onDisplayedPeriodChange?: (date: Date) => void;\n locale?: string;\n parts?: { year: Boolean; month: Boolean; day: Boolean };\n disabledDates?: (Date | (Date | false)[] | string)[];\n};\n\ndeclare const InputTrigger: Intergalactic.Component<\n 'div',\n DropdownTriggerProps & InputTriggerProps\n> & {\n Addon: typeof Input.Addon;\n Value: typeof Input.Value;\n SingleDateInput: Intergalactic.Component<'div', InputProps & SingleDateInputProps> & {\n Indicator: typeof Input.Addon;\n MaskedInput: Intergalactic.Component<'input', InputMaskValueProps & DatePickerMaskedInputProps>;\n };\n};\n\ndeclare const RangeInputTrigger: Intergalactic.Component<\n 'div',\n DropdownTriggerProps & RangeInputTriggerProps\n> & {\n Addon: typeof Input.Addon;\n Value: typeof Input.Value;\n DateRange: Intergalactic.Component<'div', InputValueProps & DateRangeProps> & {\n Indicator: typeof Input.Addon;\n RangeSep: typeof Input.Addon;\n FromMaskedInput: Intergalactic.Component<\n 'input',\n InputMaskValueProps & DatePickerMaskedInputProps\n >;\n ToMaskedInput: Intergalactic.Component<\n 'input',\n InputMaskValueProps & DatePickerMaskedInputProps\n >;\n };\n};\n\ndeclare const DatePicker: Intergalactic.Component<\n 'div',\n DatePickerProps,\n DatePickerContext & CalendarDaysContext\n> & {\n /** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\n ButtonTrigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n Trigger: typeof InputTrigger;\n Popper: typeof Popper.Popper;\n Header: typeof Box;\n Title: Intergalactic.Component<'div', DatePickerProps, DatePickerContext>;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Today: typeof Box;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\n/** @deprecated */\nexport interface IDateRangePickerContext extends DateRangePickerContext, UnknownProperties {}\nexport type DateRangePickerContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n};\n\ndeclare const DateRangePicker: Intergalactic.Component<\n 'div',\n DateRangePickerProps,\n DateRangePickerContext & CalendarDaysContext,\n [handlers: DatePickerHandlers]\n> & {\n /** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\n ButtonTrigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n Trigger: typeof RangeInputTrigger;\n Popper: typeof Popper.Popper;\n Header: typeof Box;\n Title: Intergalactic.Component<'div', DateRangePickerProps, DateRangePickerContext>;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Period: Intergalactic.Component<'div', DateRangePickerPeriodProps>;\n Apply: typeof Button;\n Reset: typeof Button;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\n/** @deprecated */\nexport interface IMonthPickerContext extends MonthPickerContext, UnknownProperties {}\nexport type MonthPickerContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n};\n\ndeclare const MonthPicker: Intergalactic.Component<\n 'div',\n DatePickerProps,\n MonthPickerContext & CalendarMonthsContext,\n [handlers: DatePickerHandlers]\n> & {\n /** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\n ButtonTrigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n Trigger: typeof InputTrigger;\n Popper: typeof Popper.Popper;\n Header: typeof Box;\n Title: Intergalactic.Component<'div', DatePickerProps, MonthPickerContext>;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\n/** @deprecated */\nexport interface IMonthRangePickerContext extends MonthRangePickerContext, UnknownProperties {}\nexport type MonthRangePickerContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n};\n\ndeclare const MonthRangePicker: Intergalactic.Component<\n 'div',\n DateRangePickerProps,\n MonthRangePickerContext & CalendarMonthsContext,\n [handlers: DatePickerHandlers]\n> & {\n /** @deprecated `DatePicker.ButtonTrigger` is deprecated, consider migrating to `DatePicker.Trigger` instead */\n ButtonTrigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n Trigger: typeof RangeInputTrigger;\n Popper: typeof Popper.Popper;\n Header: typeof Box;\n Title: Intergalactic.Component<'div', DateRangePickerProps, MonthRangePickerContext>;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Period: Intergalactic.Component<'div', DateRangePickerPeriodProps>;\n Apply: typeof Button;\n Reset: typeof Button;\n add: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n subtract: (date: number | Date, amount: number, unit: dayjs.OpUnitType) => Date;\n};\n\nexport type DateRangeComparatorFocusRange = 'value' | 'compare';\nexport type DateRangeComparatorValue = {\n value?: DateConstructorParams[];\n compare?: DateConstructorParams[];\n};\n\nexport type DateRangeComparatorProps = Intergalactic.InternalTypings.EfficientOmit<\n DropdownProps,\n 'disabled'\n> &\n WithI18nEnhanceProps & {\n /**\n * Selected date ranges\n * */\n value?: DateRangeComparatorValue;\n /**\n * Default value for selected date ranges\n * */\n defaultValue?: DateRangeComparatorValue;\n /**\n * Default value date for showing the necessary month\n * */\n defaultDisplayedPeriod?: DateConstructorParams;\n /**\n * Default value selected date, accepts everything which is accepted by `new Date()`\n * */\n defaultHighlighted?: DateConstructorParams[];\n /**\n * Called with selected date when user clicks `Apply` button.\n * */\n onChange?: (ranges: {\n value?: DateConstructorParams[];\n compare?: DateConstructorParams[];\n }) => void;\n /**\n * Array of dates blocked for selection\n * */\n disabled?: (DateConstructorParams | (DateConstructorParams | false)[] | string)[];\n /**\n * Error message when user attempts to input a disabled date\n * */\n disabledErrorText?: ((attemptedDate: Date) => string) | string | null;\n /**\n * Date for showing the necessary month\n * @default new Date()\n * */\n displayedPeriod?: DateConstructorParams;\n /**\n * To be activated upon changing the current shown month\n * */\n onDisplayedPeriodChange?: (date: Date) => void;\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n highlighted?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onHighlightedChange?: (date: Date[]) => void;\n /**\n * The selected date, accepts everything which is accepted by `new Date()`\n * */\n compareHighlighted?: DateConstructorParams[];\n /**\n * To be activated upon selecting the date\n * */\n onCompareHighlightedChange?: (date: Date[]) => void;\n /**\n * Intermediate value between `highlighted` and `value` that user see before explicitly applying it.\n */\n preselectedValue?: DateConstructorParams[];\n /**\n * Normally called when user preselects a date range and when user applies this range.\n */\n onPreselectedValueChange?: (date: Date[]) => void;\n /**\n * Intermediate value between `compareHighlighted` and `compare` that user see before explicitly applying it.\n */\n preselectedCompare?: DateConstructorParams[];\n /**\n * Normally called when user preselects a compare range and when user applies ranges.\n */\n onPreselectedCompareChange?: (date: Date[]) => void;\n /**\n * Controls that compare range input is enabled.\n */\n compareToggle?: boolean;\n /**\n * Toggles when compare range input enables or disables.\n */\n onCompareToggleChange?: (compareToggle: boolean) => void;\n /**\n * Controls which date range is focused.\n */\n focusedRange?: DateRangeComparatorFocusRange;\n /**\n * Called when user focuses or is focused on some of the date ranges.\n */\n onFocusedRangeChange?: (focusedRange: DateRangeComparatorFocusRange) => void;\n /**\n * Remove the 'Reset' button\n * */\n unclearable?: boolean;\n /**\n * Array of periods\n * [{value: [new Date(), new Date()], children: \"Today\"}]\n * @default Past 2 days / Past week / Past 2 week / Past month / Past 2 month\n * */\n periods?: (ButtonProps & { value: Date[] })[];\n };\n\nexport type DateRangeComparatorContext = {\n getTriggerProps: PropGetterFn;\n getPopperProps: PropGetterFn;\n getHeaderProps: PropGetterFn;\n getTitleProps: PropGetterFn;\n getNextProps: PropGetterFn;\n getPrevProps: PropGetterFn;\n getCalendarProps: PropGetterFn;\n getPeriodProps: PropGetterFn;\n};\n\nexport type DateRangeComparatorTriggerProps = DropdownTriggerProps &\n BaseTriggerProps & {\n /**\n * Text between the selected date range and the compared date range when both are selected.\n * @default 'vs.'\n */\n separator?: string;\n /**\n * Trigger text when no ranges are selected.\n */\n placeholder?: string;\n };\n\ndeclare const DateRangeComparator: Intergalactic.Component<\n 'div',\n DateRangeComparatorProps,\n DateRangeComparatorContext & CalendarDaysContext\n> & {\n Popper: typeof Popper.Popper;\n Header: typeof Flex;\n Prev: typeof Button;\n Next: typeof Button;\n Calendar: typeof Calendar;\n Apply: typeof Button;\n Reset: typeof Button;\n\n CalendarHeader: typeof Box;\n Title: typeof Box;\n\n Trigger: Intergalactic.Component<'div', DropdownTriggerProps & BaseTriggerProps> & {\n Addon: typeof BaseTrigger.Addon;\n Text: typeof BaseTrigger.Text;\n };\n ValueDateRange: Intergalactic.Component<'div', InputTriggerProps>;\n CompareToggle: typeof Checkbox;\n CompareDateRange: Intergalactic.Component<'div', InputTriggerProps>;\n Body: typeof Flex;\n RangeCalendar: typeof Flex;\n Periods: typeof Flex & {\n Divider: typeof Divider;\n Column: typeof Flex;\n Options: typeof Flex;\n Controls: typeof Flex;\n };\n Footer: typeof Flex;\n};\n\ndeclare const MonthDateRangeComparator: typeof DateRangeComparator;\n\nexport {\n DatePicker,\n DateRangePicker,\n MonthPicker,\n MonthRangePicker,\n DateRangeComparator,\n MonthDateRangeComparator,\n};\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default","DatePicker","DateRangePicker","DateRangeComparator","MonthPicker","MonthRangePicker","MonthDateRangeComparator"],"sources":["../../src/index.js"],"sourcesContent":["export { default as DatePicker } from './DatePicker';\nexport * from './DatePicker';\n\nexport { default as DateRangePicker } from './DateRangePicker';\n\nexport { default as DateRangeComparator } from './DateRangeComparator';\n\nexport { default as MonthPicker } from './MonthPicker';\n\nexport { default as MonthRangePicker } from './MonthRangePicker';\n\nexport { default as MonthDateRangeComparator } from './MonthDateRangeComparator';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,UAAU,QAAQ,cAAc;AACpD,cAAc,cAAc;AAE5B,SAASD,OAAO,IAAIE,eAAe,QAAQ,mBAAmB;AAE9D,SAASF,OAAO,IAAIG,mBAAmB,QAAQ,uBAAuB;AAEtE,SAASH,OAAO,IAAII,WAAW,QAAQ,eAAe;AAEtD,SAASJ,OAAO,IAAIK,gBAAgB,QAAQ,oBAAoB;AAEhE,SAASL,OAAO,IAAIM,wBAAwB,QAAQ,4BAA4B","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["default","DatePicker","DateRangePicker","DateRangeComparator","MonthPicker","MonthRangePicker","MonthDateRangeComparator"],"sources":["../../src/index.js"],"sourcesContent":["export { default as DatePicker } from './DatePicker';\nexport * from './DatePicker';\n\nexport { default as DateRangePicker } from './DateRangePicker';\n\nexport { default as DateRangeComparator } from './DateRangeComparator';\n\nexport { default as MonthPicker } from './MonthPicker';\n\nexport { default as MonthRangePicker } from './MonthRangePicker';\n\nexport { default as MonthDateRangeComparator } from './MonthDateRangeComparator';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,UAAU,QAAQ,cAAc;AACpD,cAAc,cAAc;AAE5B,SAASD,OAAO,IAAIE,eAAe,QAAQ,mBAAmB;AAE9D,SAASF,OAAO,IAAIG,mBAAmB,QAAQ,uBAAuB;AAEtE,SAASH,OAAO,IAAII,WAAW,QAAQ,eAAe;AAEtD,SAASJ,OAAO,IAAIK,gBAAgB,QAAQ,oBAAoB;AAEhE,SAASL,OAAO,IAAIM,wBAAwB,QAAQ,4BAA4B"}
@@ -1,11 +1,6 @@
1
1
  SCalendar {
2
2
  display: flex;
3
3
  flex-direction: column;
4
- border-radius: var(--intergalactic-surface-rounded, calc(6px + 2px));
5
-
6
- SCalendarUnit:focus-visible {
7
- outline: none;
8
- }
9
4
  }
10
5
 
11
6
  SGridDays {
@@ -64,7 +59,7 @@ SCalendarUnit {
64
59
  min-height: 32px;
65
60
  min-width: 32px;
66
61
  position: relative;
67
- transition: border-radius 0.15s 0.15s;
62
+ transition: color 0.15s, background 0.15s, box-shadow 0.15s, border-radius 0.15s 0.15s;
68
63
  outline: none;
69
64
  margin: 0;
70
65
  margin-top: 4px;
@@ -100,7 +95,7 @@ SCalendarUnit[today]SCalendarUnit[endSelected] {
100
95
  SCalendarUnit[selected] {
101
96
  background-color: var(--intergalactic-date-picker-cell-range, oklch(0.96 0.015 278.4));
102
97
  border-radius: 0;
103
- transition: border-radius 0s 0s;
98
+ transition: color 0.15s, background 0.15s, box-shadow 0.15s, border-radius 0s 0s;
104
99
  color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
105
100
 
106
101
  &:hover {
@@ -109,9 +104,9 @@ SCalendarUnit[selected] {
109
104
  }
110
105
 
111
106
  SCalendarUnit[highlighted] {
112
- background-color: var(--intergalactic-date-picker-cell-range, oklch(0.96 0.015 278.4));
107
+ background-color: var(--intergalactic-date-picker-cell-range-hover, oklch(0.9 0.038 278.4));
113
108
  border-radius: 0;
114
- transition: border-radius 0s 0s;
109
+ transition: color 0.15s, background 0.15s, box-shadow 0.15s, border-radius 0s 0s;
115
110
  color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
116
111
 
117
112
  &:hover {
@@ -238,12 +233,19 @@ SCalendarUnit[disabled] {
238
233
  }
239
234
 
240
235
  SCalendar:focus {
236
+ outline: none;
241
237
  & SCalendarUnit[highlighted] {
242
238
  z-index: 1;
239
+ box-shadow: var(
240
+ --intergalactic-keyboard-focus,
241
+ 0px 0px 0px 3px oklch(0.376 0.247 264.2 / 0.441)
242
+ );
243
243
  }
244
-
245
244
  &:not(&:has(SCalendarUnit[highlighted])) {
246
- border-radius: var(--intergalactic-surface-rounded, calc(6px + 2px));
245
+ box-shadow: var(
246
+ --intergalactic-keyboard-focus,
247
+ 0px 0px 0px 3px oklch(0.376 0.247 264.2 / 0.441)
248
+ );
247
249
  }
248
250
  }
249
251
 
@@ -254,4 +256,4 @@ SCalendar:focus {
254
256
  SCalendarUnit[highlighted] {
255
257
  transition: none;
256
258
  }
257
- }
259
+ }
@@ -10,8 +10,13 @@ SPopper {
10
10
  &:active,
11
11
  &:hover,
12
12
  &:focus {
13
+ outline: 0;
13
14
  text-decoration: none;
14
15
  }
16
+
17
+ &:focus {
18
+ box-shadow: var(--intergalactic-keyboard-focus, 0px 0px 0px 3px oklch(0.376 0.247 264.2 / 0.441));
19
+ }
15
20
  }
16
21
 
17
22
  SHeader {
@@ -58,10 +63,6 @@ SInputMask[animationsDisabled] {
58
63
 
59
64
  SInputMask SValue {
60
65
  letter-spacing: 0;
61
-
62
- &:focus {
63
- outline: none;
64
- }
65
66
  }
66
67
 
67
68
  SIndicator {
@@ -137,7 +138,7 @@ SInputMask[noHumanizedDate] SMask {
137
138
  }
138
139
 
139
140
  SDateRange SInputMask:focus-within SMask {
140
- background-color: var(--intergalactic-bg-highlight-focus, oklch(0.94 0.023 278.4));
141
+ background-color: var(--intergalactic-bg-highlight-focus, oklch(0.405 0.257 264.2 / 0.093));
141
142
  }
142
143
 
143
144
  SRangeSep[fulfilled],
@@ -175,4 +176,4 @@ SCompareToggle {
175
176
  SInputMask {
176
177
  transition: none;
177
178
  }
178
- }
179
+ }
@@ -6,13 +6,13 @@ import it from './it.json';
6
6
  import ja from './ja.json';
7
7
  import ko from './ko.json';
8
8
  import nl from './nl.json';
9
- import pl from './pl.json';
10
9
  import pt from './pt.json';
11
10
  import ru from './ru.json';
12
- import sv from './sv.json';
13
11
  import tr from './tr.json';
14
12
  import vi from './vi.json';
15
13
  import zh from './zh.json';
14
+ import pl from './pl.json';
15
+ import sv from './sv.json';
16
16
  export var localizedMessages = {
17
17
  de: de,
18
18
  en: en,
@@ -1 +1 @@
1
- {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","pl","pt","ru","sv","tr","vi","zh","localizedMessages"],"sources":["../../../src/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pl from './pl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport sv from './sv.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,IAAMC,iBAAiB,GAAG;EAC/Bf,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFE,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFE,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFN,EAAE,EAAFA,EAAE;EACFG,EAAE,EAAFA;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"__intergalactic-dynamic-locales.js","names":["de","en","es","fr","it","ja","ko","nl","pt","ru","tr","vi","zh","pl","sv","localizedMessages"],"sources":["../../../src/translations/__intergalactic-dynamic-locales.ts"],"sourcesContent":["import de from './de.json';\nimport en from './en.json';\nimport es from './es.json';\nimport fr from './fr.json';\nimport it from './it.json';\nimport ja from './ja.json';\nimport ko from './ko.json';\nimport nl from './nl.json';\nimport pt from './pt.json';\nimport ru from './ru.json';\nimport tr from './tr.json';\nimport vi from './vi.json';\nimport zh from './zh.json';\nimport pl from './pl.json';\nimport sv from './sv.json';\n\nexport const localizedMessages = {\n de,\n en,\n es,\n fr,\n it,\n ja,\n ko,\n nl,\n pt,\n ru,\n tr,\n vi,\n zh,\n pl,\n sv,\n};\n"],"mappings":"AAAA,OAAOA,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,EAAE,MAAM,WAAW;AAE1B,OAAO,IAAMC,iBAAiB,GAAG;EAC/Bf,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA,EAAE;EACFC,EAAE,EAAFA;AACF,CAAC"}
@@ -10,17 +10,13 @@
10
10
  "last3Months": "Letzte 3 Monate",
11
11
  "last6Months": "Letzte 6 Monate",
12
12
  "last12Months": "Letzte 12 Monate",
13
- "prevYear": "Voriges Jahr",
14
- "nextYear": "Folgejahr",
15
- "prevMonth": "Vormonat",
16
- "nextMonth": "Folgemonat",
13
+ "prev": "Voriger Zeitraum",
14
+ "next": "Nächster Zeitraum",
17
15
  "input": "Datumsfeld",
18
16
  "compare": "Vergleichen mit",
19
17
  "fromDate": "Vom {date}",
20
18
  "toDate": "Bis {date}",
21
- "fromDatePlaceholder": "Von-Datum",
22
19
  "periods": "Vorgaben",
23
- "toDatePlaceholder": "Bis-Datum",
24
20
  "dateRange": "Datumsbereich",
25
21
  "dateRange1": "Erster Datumsbereich",
26
22
  "dateRange2": "Zweiter Datumsbereich",
@@ -10,17 +10,13 @@
10
10
  "last3Months": "Últimos 3 meses",
11
11
  "last6Months": "Últimos 6 meses",
12
12
  "last12Months": "Últimos 12 meses",
13
- "prevYear": "Año anterior",
14
- "nextYear": "Año siguiente",
15
- "prevMonth": "Mes anterior",
16
- "nextMonth": "Mes siguiente",
13
+ "prev": "Periodo precedente",
14
+ "next": "Periodo siguiente",
17
15
  "input": "Campo de datos",
18
16
  "compare": "Comparar con",
19
17
  "fromDate": "Desde {date}",
20
18
  "toDate": "Hasta {date}",
21
- "fromDatePlaceholder": "Fecha de inicio",
22
19
  "periods": "Predefinidos",
23
- "toDatePlaceholder": "Fecha de fin",
24
20
  "dateRange": "Rango de fechas",
25
21
  "dateRange1": "Primer rango de fechas",
26
22
  "dateRange2": "Segundo rango de fechas",
@@ -10,17 +10,13 @@
10
10
  "last3Months": "3 derniers mois",
11
11
  "last6Months": "6 derniers mois",
12
12
  "last12Months": "12 derniers mois",
13
- "prevYear": "Année précédente",
14
- "nextYear": "Année suivante",
15
- "prevMonth": "Mois précédent",
16
- "nextMonth": "Mois suivant",
13
+ "prev": "Période précédente",
14
+ "next": "Période suivante",
17
15
  "input": "Champ de date",
18
16
  "compare": "Comparer à",
19
17
  "fromDate": "Du {date}",
20
18
  "toDate": "Au {date}",
21
- "fromDatePlaceholder": "Date de début",
22
19
  "periods": "Préréglages",
23
- "toDatePlaceholder": "Date de fin",
24
20
  "dateRange": "Plage de dates",
25
21
  "dateRange1": "Première plage de dates",
26
22
  "dateRange2": "Deuxième plage de dates",
@@ -10,17 +10,13 @@
10
10
  "last3Months": "Ultimi 3 mesi",
11
11
  "last6Months": "Ultimi 6 mesi",
12
12
  "last12Months": "Ultimi 12 mesi",
13
- "prevYear": "Anno precedente",
14
- "nextYear": "Anno successivo",
15
- "prevMonth": "Mese precedente",
16
- "nextMonth": "Mese successivo",
13
+ "prev": "Periodo precedente",
14
+ "next": "Periodo successivo",
17
15
  "input": "Campo data",
18
16
  "compare": "Confronta con",
19
17
  "fromDate": "Da {date}",
20
18
  "toDate": "A {date}",
21
- "fromDatePlaceholder": "Dalla data",
22
19
  "periods": "Impostazioni predefinite",
23
- "toDatePlaceholder": "Alla data",
24
20
  "dateRange": "Intervallo temporale",
25
21
  "dateRange1": "Primo intervallo temporale",
26
22
  "dateRange2": "Secondo intervallo temporale",
@@ -10,17 +10,13 @@
10
10
  "last3Months": "過去3か月間",
11
11
  "last6Months": "過去6か月間",
12
12
  "last12Months": "過去12か月間",
13
- "prevYear": "前年",
14
- "nextYear": "翌年",
15
- "prevMonth": "前月",
16
- "nextMonth": "翌月",
13
+ "prev": "前期間",
14
+ "next": "次の期間",
17
15
  "input": "データフィールド",
18
16
  "compare": "次と比較",
19
17
  "fromDate": "{date}から",
20
18
  "toDate": "{date}まで",
21
- "fromDatePlaceholder": "開始日",
22
19
  "periods": "プリセット",
23
- "toDatePlaceholder": "終了日",
24
20
  "dateRange": "日付範囲",
25
21
  "dateRange1": "一番目の日付範囲",
26
22
  "dateRange2": "二番目の日付範囲",
@@ -10,17 +10,13 @@
10
10
  "last3Months": "최근 3개월",
11
11
  "last6Months": "최근 6개월",
12
12
  "last12Months": "최근 12개월",
13
- "prevYear": "지난해",
14
- "nextYear": "내년",
15
- "prevMonth": "이전 달",
16
- "nextMonth": "다음 달",
13
+ "prev": "지난 기간",
14
+ "next": "다음 기간",
17
15
  "input": "날짜 필드",
18
16
  "compare": "비교 기간",
19
17
  "fromDate": "{date}부터",
20
18
  "toDate": "{date}까지",
21
- "fromDatePlaceholder": "시작 날짜",
22
19
  "periods": "사전 설정",
23
- "toDatePlaceholder": "종료 날짜",
24
20
  "dateRange": "날짜 범위",
25
21
  "dateRange1": "첫 번째 날짜 범위",
26
22
  "dateRange2": "두 번째 날짜 범위",
@@ -10,17 +10,13 @@
10
10
  "last3Months": "Afgelopen 3 maanden",
11
11
  "last6Months": "Afgelopen 6 maanden",
12
12
  "last12Months": "Afgelopen 12 maanden",
13
- "prevYear": "Vorig jaar",
14
- "nextYear": "Volgend jaar",
15
- "prevMonth": "Vorige maand",
16
- "nextMonth": "Volgende maand",
13
+ "prev": "Vorige periode",
14
+ "next": "Volgende periode",
17
15
  "input": "Datumveld",
18
16
  "compare": "Vergelijken met",
19
17
  "fromDate": "Van {date}",
20
18
  "toDate": "Tot {date}",
21
- "fromDatePlaceholder": "Vanaf-datum",
22
19
  "periods": "Voorgedefinieerd",
23
- "toDatePlaceholder": "Tot-datum",
24
20
  "dateRange": "Datumbereik",
25
21
  "dateRange1": "Eerste datumbereik",
26
22
  "dateRange2": "Tweede datumbereik",