@semcore/date-picker 4.58.0-prerelease.4 → 4.58.0-prerelease.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/DatePicker.js +27 -36
- package/lib/cjs/DatePicker.js.map +1 -1
- package/lib/cjs/DateRangeComparator.js +38 -43
- package/lib/cjs/DateRangeComparator.js.map +1 -1
- package/lib/cjs/DateRangePicker.js +17 -22
- package/lib/cjs/DateRangePicker.js.map +1 -1
- package/lib/cjs/MonthDateRangeComparator.js +42 -47
- package/lib/cjs/MonthDateRangeComparator.js.map +1 -1
- package/lib/cjs/MonthPicker.js +16 -21
- package/lib/cjs/MonthPicker.js.map +1 -1
- package/lib/cjs/MonthRangePicker.js +18 -23
- package/lib/cjs/MonthRangePicker.js.map +1 -1
- package/lib/cjs/components/ButtonTrigger.js +8 -10
- package/lib/cjs/components/ButtonTrigger.js.map +1 -1
- package/lib/cjs/components/Calendar.js +109 -125
- package/lib/cjs/components/Calendar.js.map +1 -1
- package/lib/cjs/components/DateRangeComparatorAbstract.js +121 -104
- package/lib/cjs/components/DateRangeComparatorAbstract.js.map +1 -1
- package/lib/cjs/components/InputTrigger.js +179 -189
- package/lib/cjs/components/InputTrigger.js.map +1 -1
- package/lib/cjs/components/PickerAbstract.js +58 -57
- package/lib/cjs/components/PickerAbstract.js.map +1 -1
- package/lib/cjs/components/RangePickerAbstract.js +97 -76
- package/lib/cjs/components/RangePickerAbstract.js.map +1 -1
- package/lib/cjs/components/index.js +41 -46
- package/lib/cjs/components/index.js.map +1 -1
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/cjs/index.js +2 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/calendar.shadow.css +12 -14
- package/lib/cjs/style/date-picker.shadow.css +6 -7
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/translations/de.json +6 -2
- package/lib/cjs/translations/es.json +6 -2
- package/lib/cjs/translations/fr.json +6 -2
- package/lib/cjs/translations/it.json +6 -2
- package/lib/cjs/translations/ja.json +6 -2
- package/lib/cjs/translations/ko.json +6 -2
- package/lib/cjs/translations/nl.json +6 -2
- package/lib/cjs/translations/pl.json +6 -2
- package/lib/cjs/translations/pt.json +6 -2
- package/lib/cjs/translations/sv.json +6 -2
- package/lib/cjs/translations/tr.json +6 -2
- package/lib/cjs/translations/vi.json +6 -2
- package/lib/cjs/translations/zh.json +6 -2
- package/lib/cjs/utils/cronTabScheduler.js +8 -5
- package/lib/cjs/utils/cronTabScheduler.js.map +1 -1
- package/lib/cjs/utils/datesIntersects.js +3 -4
- package/lib/cjs/utils/datesIntersects.js.map +1 -1
- package/lib/cjs/utils/formatDate.js +3 -5
- package/lib/cjs/utils/formatDate.js.map +1 -1
- package/lib/cjs/utils/includesDate.js +2 -3
- package/lib/cjs/utils/includesDate.js.map +1 -1
- package/lib/cjs/utils/isBetweenPlugin.js +21 -0
- package/lib/cjs/utils/isBetweenPlugin.js.map +1 -0
- package/lib/cjs/utils/shortDateRangeFormat.js +2 -2
- package/lib/cjs/utils/shortDateRangeFormat.js.map +1 -1
- package/lib/es6/DatePicker.js +22 -28
- package/lib/es6/DatePicker.js.map +1 -1
- package/lib/es6/DateRangeComparator.js +23 -27
- package/lib/es6/DateRangeComparator.js.map +1 -1
- package/lib/es6/DateRangePicker.js +13 -17
- package/lib/es6/DateRangePicker.js.map +1 -1
- package/lib/es6/MonthDateRangeComparator.js +28 -32
- package/lib/es6/MonthDateRangeComparator.js.map +1 -1
- package/lib/es6/MonthPicker.js +13 -17
- package/lib/es6/MonthPicker.js.map +1 -1
- package/lib/es6/MonthRangePicker.js +14 -18
- package/lib/es6/MonthRangePicker.js.map +1 -1
- package/lib/es6/components/ButtonTrigger.js +5 -5
- package/lib/es6/components/ButtonTrigger.js.map +1 -1
- package/lib/es6/components/Calendar.js +100 -112
- package/lib/es6/components/Calendar.js.map +1 -1
- package/lib/es6/components/DateRangeComparatorAbstract.js +120 -101
- package/lib/es6/components/DateRangeComparatorAbstract.js.map +1 -1
- package/lib/es6/components/InputTrigger.js +173 -180
- package/lib/es6/components/InputTrigger.js.map +1 -1
- package/lib/es6/components/PickerAbstract.js +58 -55
- package/lib/es6/components/PickerAbstract.js.map +1 -1
- package/lib/es6/components/RangePickerAbstract.js +94 -71
- package/lib/es6/components/RangePickerAbstract.js.map +1 -1
- package/lib/es6/components/index.js +35 -38
- package/lib/es6/components/index.js.map +1 -1
- package/lib/es6/index.d.js.map +1 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/calendar.shadow.css +12 -14
- package/lib/es6/style/date-picker.shadow.css +6 -7
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/translations/de.json +6 -2
- package/lib/es6/translations/es.json +6 -2
- package/lib/es6/translations/fr.json +6 -2
- package/lib/es6/translations/it.json +6 -2
- package/lib/es6/translations/ja.json +6 -2
- package/lib/es6/translations/ko.json +6 -2
- package/lib/es6/translations/nl.json +6 -2
- package/lib/es6/translations/pl.json +6 -2
- package/lib/es6/translations/pt.json +6 -2
- package/lib/es6/translations/sv.json +6 -2
- package/lib/es6/translations/tr.json +6 -2
- package/lib/es6/translations/vi.json +6 -2
- package/lib/es6/translations/zh.json +6 -2
- package/lib/es6/utils/cronTabScheduler.js +7 -4
- package/lib/es6/utils/cronTabScheduler.js.map +1 -1
- package/lib/es6/utils/datesIntersects.js +1 -1
- package/lib/es6/utils/datesIntersects.js.map +1 -1
- package/lib/es6/utils/formatDate.js.map +1 -1
- package/lib/es6/utils/includesDate.js.map +1 -1
- package/lib/es6/utils/isBetweenPlugin.js +16 -0
- package/lib/es6/utils/isBetweenPlugin.js.map +1 -0
- package/lib/es6/utils/shortDateRangeFormat.js +1 -1
- package/lib/es6/utils/shortDateRangeFormat.js.map +1 -1
- package/lib/esm/DatePicker.mjs +27 -33
- package/lib/esm/DateRangeComparator.mjs +26 -30
- package/lib/esm/DateRangePicker.mjs +17 -21
- package/lib/esm/MonthDateRangeComparator.mjs +31 -35
- package/lib/esm/MonthPicker.mjs +16 -20
- package/lib/esm/MonthRangePicker.mjs +18 -22
- package/lib/esm/components/ButtonTrigger.mjs +5 -5
- package/lib/esm/components/Calendar.mjs +103 -115
- package/lib/esm/components/DateRangeComparatorAbstract.mjs +105 -89
- package/lib/esm/components/InputTrigger.mjs +143 -181
- package/lib/esm/components/PickerAbstract.mjs +61 -62
- package/lib/esm/components/RangePickerAbstract.mjs +94 -73
- package/lib/esm/components/index.mjs +29 -33
- package/lib/esm/style/calendar.shadow.css +12 -14
- package/lib/esm/style/date-picker.shadow.css +6 -7
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/translations/de.json.mjs +18 -6
- package/lib/esm/translations/es.json.mjs +18 -6
- package/lib/esm/translations/fr.json.mjs +18 -6
- package/lib/esm/translations/it.json.mjs +18 -6
- package/lib/esm/translations/ja.json.mjs +18 -6
- package/lib/esm/translations/ko.json.mjs +18 -6
- package/lib/esm/translations/nl.json.mjs +18 -6
- package/lib/esm/translations/pl.json.mjs +18 -6
- package/lib/esm/translations/pt.json.mjs +18 -6
- package/lib/esm/translations/sv.json.mjs +18 -6
- package/lib/esm/translations/tr.json.mjs +18 -6
- package/lib/esm/translations/vi.json.mjs +18 -6
- package/lib/esm/translations/zh.json.mjs +18 -6
- package/lib/esm/utils/cronTabScheduler.mjs +4 -4
- package/lib/esm/utils/datesIntersects.mjs +1 -1
- package/lib/esm/utils/isBetweenPlugin.mjs +13 -0
- package/lib/esm/utils/shortDateRangeFormat.mjs +1 -2
- package/lib/types/index.d.ts +140 -171
- package/package.json +16 -16
|
@@ -2,9 +2,8 @@ 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
|
|
5
|
+
import _callSuper from "@babel/runtime/helpers/callSuper";
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
|
-
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
8
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
8
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
10
9
|
import { assignProps as _assignProps8 } from "@semcore/core";
|
|
@@ -16,15 +15,15 @@ import { assignProps as _assignProps3 } from "@semcore/core";
|
|
|
16
15
|
import { assignProps as _assignProps2 } from "@semcore/core";
|
|
17
16
|
import { assignProps as _assignProps } from "@semcore/core";
|
|
18
17
|
var _excluded = ["value", "onClick", "onMouseEnter", "onMouseLeave"];
|
|
19
|
-
import
|
|
20
|
-
import
|
|
18
|
+
import { Box } from '@semcore/base-components';
|
|
19
|
+
import Button from '@semcore/button';
|
|
21
20
|
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';
|
|
25
23
|
import ChevronLeft from '@semcore/icon/ChevronLeft/m';
|
|
26
24
|
import ChevronRight from '@semcore/icon/ChevronRight/m';
|
|
27
|
-
import
|
|
25
|
+
import dayjs from 'dayjs';
|
|
26
|
+
import React from 'react';
|
|
28
27
|
import ButtonTrigger from './ButtonTrigger';
|
|
29
28
|
import InputTriggerBase from './InputTrigger';
|
|
30
29
|
|
|
@@ -59,36 +58,34 @@ export function Popper(props) {
|
|
|
59
58
|
}
|
|
60
59
|
export function Header(props) {
|
|
61
60
|
var _ref4 = arguments[0],
|
|
62
|
-
|
|
61
|
+
_ref0;
|
|
63
62
|
var SHeader = Box;
|
|
64
|
-
return
|
|
63
|
+
return _ref0 = sstyled(props.styles), /*#__PURE__*/React.createElement(SHeader, _ref0.cn("SHeader", _objectSpread({}, _assignProps4({}, _ref4))));
|
|
65
64
|
}
|
|
66
|
-
export
|
|
65
|
+
export function Title(_ref11) {
|
|
67
66
|
var _ref5 = arguments[0],
|
|
68
|
-
|
|
69
|
-
var Children =
|
|
70
|
-
styles =
|
|
67
|
+
_ref1;
|
|
68
|
+
var Children = _ref11.Children,
|
|
69
|
+
styles = _ref11.styles;
|
|
71
70
|
var STitle = Box;
|
|
72
|
-
return
|
|
71
|
+
return _ref1 = sstyled(styles), /*#__PURE__*/React.createElement(STitle, _ref1.cn("STitle", _objectSpread({}, _assignProps5({
|
|
73
72
|
"aria-live": 'polite'
|
|
74
|
-
}, _ref5))), /*#__PURE__*/React.createElement(Children,
|
|
75
|
-
}
|
|
76
|
-
export function Prev(
|
|
73
|
+
}, _ref5))), /*#__PURE__*/React.createElement(Children, _ref1.cn("Children", {})));
|
|
74
|
+
}
|
|
75
|
+
export function Prev(_ref12) {
|
|
77
76
|
var _ref6 = arguments[0];
|
|
78
|
-
var
|
|
79
|
-
|
|
80
|
-
Children = _ref14.Children;
|
|
77
|
+
var children = _ref12.children,
|
|
78
|
+
Children = _ref12.Children;
|
|
81
79
|
return /*#__PURE__*/React.createElement(Button, _assignProps6({
|
|
82
80
|
"use": 'tertiary',
|
|
83
81
|
"theme": 'muted',
|
|
84
82
|
"size": 'l'
|
|
85
83
|
}, _ref6), children ? /*#__PURE__*/React.createElement(Children, null) : /*#__PURE__*/React.createElement(Button.Addon, null, /*#__PURE__*/React.createElement(ChevronLeft, null)));
|
|
86
84
|
}
|
|
87
|
-
export function Next(
|
|
85
|
+
export function Next(_ref13) {
|
|
88
86
|
var _ref7 = arguments[0];
|
|
89
|
-
var
|
|
90
|
-
|
|
91
|
-
Children = _ref15.Children;
|
|
87
|
+
var children = _ref13.children,
|
|
88
|
+
Children = _ref13.Children;
|
|
92
89
|
return /*#__PURE__*/React.createElement(Button, _assignProps7({
|
|
93
90
|
"use": 'tertiary',
|
|
94
91
|
"theme": 'muted',
|
|
@@ -96,16 +93,14 @@ export function Next(_ref15) {
|
|
|
96
93
|
}, _ref7), children ? /*#__PURE__*/React.createElement(Children, null) : /*#__PURE__*/React.createElement(Button.Addon, null, /*#__PURE__*/React.createElement(ChevronRight, null)));
|
|
97
94
|
}
|
|
98
95
|
export var Period = /*#__PURE__*/function (_Component) {
|
|
99
|
-
_inherits(Period, _Component);
|
|
100
|
-
var _super = _createSuper(Period);
|
|
101
96
|
function Period() {
|
|
102
97
|
var _this;
|
|
103
98
|
_classCallCheck(this, Period);
|
|
104
99
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
105
100
|
args[_key] = arguments[_key];
|
|
106
101
|
}
|
|
107
|
-
_this =
|
|
108
|
-
_defineProperty(
|
|
102
|
+
_this = _callSuper(this, Period, [].concat(args));
|
|
103
|
+
_defineProperty(_this, "getActiveControl", function () {
|
|
109
104
|
var period = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
110
105
|
var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
111
106
|
function compareMonth(monthOne, monthTwo) {
|
|
@@ -120,11 +115,12 @@ export var Period = /*#__PURE__*/function (_Component) {
|
|
|
120
115
|
});
|
|
121
116
|
return _this;
|
|
122
117
|
}
|
|
123
|
-
|
|
118
|
+
_inherits(Period, _Component);
|
|
119
|
+
return _createClass(Period, [{
|
|
124
120
|
key: "render",
|
|
125
121
|
value: function render() {
|
|
126
122
|
var _ref8 = this.asProps,
|
|
127
|
-
|
|
123
|
+
_ref10,
|
|
128
124
|
_this2 = this;
|
|
129
125
|
var SPeriod = Box;
|
|
130
126
|
var _this$asProps = this.asProps,
|
|
@@ -133,14 +129,16 @@ export var Period = /*#__PURE__*/function (_Component) {
|
|
|
133
129
|
onChange = _this$asProps.onChange,
|
|
134
130
|
periods = _this$asProps.periods,
|
|
135
131
|
onHighlightedChange = _this$asProps.onHighlightedChange,
|
|
136
|
-
onDisplayedPeriodChange = _this$asProps.onDisplayedPeriodChange
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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);
|
|
143
140
|
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
141
|
+
ref: periodRef === null || periodRef === void 0 ? void 0 : periodRef(i),
|
|
144
142
|
key: i,
|
|
145
143
|
use: "tertiary",
|
|
146
144
|
theme: "muted",
|
|
@@ -162,6 +160,5 @@ export var Period = /*#__PURE__*/function (_Component) {
|
|
|
162
160
|
}));
|
|
163
161
|
}
|
|
164
162
|
}]);
|
|
165
|
-
return Period;
|
|
166
163
|
}(Component);
|
|
167
164
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
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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E,KAAK,CAAE;UAC7CuB,OAAO,EAAE5F,oBAAoB,CAAC4F,OAAO,EAAE;YAAA,OAAMR,QAAQ,CAACjB,MAAM,CAAC;UAAA,EAAE;UAC/D0B,YAAY,EAAE7F,oBAAoB,CAAC6F,YAAY,EAAE,YAAM;YACrDP,mBAAmB,CAACnB,MAAM,CAAC;YAC3BoB,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
|
+
{"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[0] ? dayjs(value[0]).toDate() : new Date());\n })}\n {...other}\n />\n ))}\n </SPeriod>,\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAASA,GAAG,QAAQ,0BAA0B;AAC9C,OAAOC,MAAM,MAAM,iBAAiB;AACpC,SAASC,SAAS,EAAEC,IAAI,EAAEC,OAAO,QAAQ,eAAe;AAC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D,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":[]}
|
package/lib/es6/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
{"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":[]}
|
package/lib/es6/index.js.map
CHANGED
|
@@ -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"}
|
|
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,6 +1,11 @@
|
|
|
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
|
+
}
|
|
4
9
|
}
|
|
5
10
|
|
|
6
11
|
SGridDays {
|
|
@@ -59,7 +64,7 @@ SCalendarUnit {
|
|
|
59
64
|
min-height: 32px;
|
|
60
65
|
min-width: 32px;
|
|
61
66
|
position: relative;
|
|
62
|
-
transition:
|
|
67
|
+
transition: border-radius 0.15s 0.15s;
|
|
63
68
|
outline: none;
|
|
64
69
|
margin: 0;
|
|
65
70
|
margin-top: 4px;
|
|
@@ -95,7 +100,7 @@ SCalendarUnit[today]SCalendarUnit[endSelected] {
|
|
|
95
100
|
SCalendarUnit[selected] {
|
|
96
101
|
background-color: var(--intergalactic-date-picker-cell-range, oklch(0.959 0.021 267.8));
|
|
97
102
|
border-radius: 0;
|
|
98
|
-
transition:
|
|
103
|
+
transition: border-radius 0s 0s;
|
|
99
104
|
color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
|
|
100
105
|
|
|
101
106
|
&:hover {
|
|
@@ -104,9 +109,9 @@ SCalendarUnit[selected] {
|
|
|
104
109
|
}
|
|
105
110
|
|
|
106
111
|
SCalendarUnit[highlighted] {
|
|
107
|
-
background-color: var(--intergalactic-date-picker-cell-range
|
|
112
|
+
background-color: var(--intergalactic-date-picker-cell-range, oklch(0.959 0.021 267.8));
|
|
108
113
|
border-radius: 0;
|
|
109
|
-
transition:
|
|
114
|
+
transition: border-radius 0s 0s;
|
|
110
115
|
color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
|
|
111
116
|
|
|
112
117
|
&:hover {
|
|
@@ -233,19 +238,12 @@ SCalendarUnit[disabled] {
|
|
|
233
238
|
}
|
|
234
239
|
|
|
235
240
|
SCalendar:focus {
|
|
236
|
-
outline: none;
|
|
237
241
|
& SCalendarUnit[highlighted] {
|
|
238
242
|
z-index: 1;
|
|
239
|
-
box-shadow: var(
|
|
240
|
-
--intergalactic-keyboard-focus,
|
|
241
|
-
0px 0px 0px 3px oklch(0.424 0.269 264.2 / 0.469)
|
|
242
|
-
);
|
|
243
243
|
}
|
|
244
|
+
|
|
244
245
|
&:not(&:has(SCalendarUnit[highlighted])) {
|
|
245
|
-
|
|
246
|
-
--intergalactic-keyboard-focus,
|
|
247
|
-
0px 0px 0px 3px oklch(0.424 0.269 264.2 / 0.469)
|
|
248
|
-
);
|
|
246
|
+
border-radius: var(--intergalactic-surface-rounded, calc(6px + 2px));
|
|
249
247
|
}
|
|
250
248
|
}
|
|
251
249
|
|
|
@@ -256,4 +254,4 @@ SCalendar:focus {
|
|
|
256
254
|
SCalendarUnit[highlighted] {
|
|
257
255
|
transition: none;
|
|
258
256
|
}
|
|
259
|
-
}
|
|
257
|
+
}
|
|
@@ -10,13 +10,8 @@ SPopper {
|
|
|
10
10
|
&:active,
|
|
11
11
|
&:hover,
|
|
12
12
|
&:focus {
|
|
13
|
-
outline: 0;
|
|
14
13
|
text-decoration: none;
|
|
15
14
|
}
|
|
16
|
-
|
|
17
|
-
&:focus {
|
|
18
|
-
box-shadow: var(--intergalactic-keyboard-focus, 0px 0px 0px 3px oklch(0.424 0.269 264.2 / 0.469));
|
|
19
|
-
}
|
|
20
15
|
}
|
|
21
16
|
|
|
22
17
|
SHeader {
|
|
@@ -63,6 +58,10 @@ SInputMask[animationsDisabled] {
|
|
|
63
58
|
|
|
64
59
|
SInputMask SValue {
|
|
65
60
|
letter-spacing: 0;
|
|
61
|
+
|
|
62
|
+
&:focus {
|
|
63
|
+
outline: none;
|
|
64
|
+
}
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
SIndicator {
|
|
@@ -138,7 +137,7 @@ SInputMask[noHumanizedDate] SMask {
|
|
|
138
137
|
}
|
|
139
138
|
|
|
140
139
|
SDateRange SInputMask:focus-within SMask {
|
|
141
|
-
background-color: var(--intergalactic-bg-highlight-focus, oklch(0.
|
|
140
|
+
background-color: var(--intergalactic-bg-highlight-focus, oklch(0.524 0.266 263.1 / 0.116));
|
|
142
141
|
}
|
|
143
142
|
|
|
144
143
|
SRangeSep[fulfilled],
|
|
@@ -176,4 +175,4 @@ SCompareToggle {
|
|
|
176
175
|
SInputMask {
|
|
177
176
|
transition: none;
|
|
178
177
|
}
|
|
179
|
-
}
|
|
178
|
+
}
|
|
@@ -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';
|
|
9
10
|
import pt from './pt.json';
|
|
10
11
|
import ru from './ru.json';
|
|
12
|
+
import sv from './sv.json';
|
|
11
13
|
import tr from './tr.json';
|
|
12
14
|
import vi from './vi.json';
|
|
13
15
|
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","
|
|
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":[]}
|
|
@@ -10,13 +10,17 @@
|
|
|
10
10
|
"last3Months": "Letzte 3 Monate",
|
|
11
11
|
"last6Months": "Letzte 6 Monate",
|
|
12
12
|
"last12Months": "Letzte 12 Monate",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"prevYear": "Voriges Jahr",
|
|
14
|
+
"nextYear": "Folgejahr",
|
|
15
|
+
"prevMonth": "Vormonat",
|
|
16
|
+
"nextMonth": "Folgemonat",
|
|
15
17
|
"input": "Datumsfeld",
|
|
16
18
|
"compare": "Vergleichen mit",
|
|
17
19
|
"fromDate": "Vom {date}",
|
|
18
20
|
"toDate": "Bis {date}",
|
|
21
|
+
"fromDatePlaceholder": "Von-Datum",
|
|
19
22
|
"periods": "Vorgaben",
|
|
23
|
+
"toDatePlaceholder": "Bis-Datum",
|
|
20
24
|
"dateRange": "Datumsbereich",
|
|
21
25
|
"dateRange1": "Erster Datumsbereich",
|
|
22
26
|
"dateRange2": "Zweiter Datumsbereich",
|
|
@@ -10,13 +10,17 @@
|
|
|
10
10
|
"last3Months": "Últimos 3 meses",
|
|
11
11
|
"last6Months": "Últimos 6 meses",
|
|
12
12
|
"last12Months": "Últimos 12 meses",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"prevYear": "Año anterior",
|
|
14
|
+
"nextYear": "Año siguiente",
|
|
15
|
+
"prevMonth": "Mes anterior",
|
|
16
|
+
"nextMonth": "Mes siguiente",
|
|
15
17
|
"input": "Campo de datos",
|
|
16
18
|
"compare": "Comparar con",
|
|
17
19
|
"fromDate": "Desde {date}",
|
|
18
20
|
"toDate": "Hasta {date}",
|
|
21
|
+
"fromDatePlaceholder": "Fecha de inicio",
|
|
19
22
|
"periods": "Predefinidos",
|
|
23
|
+
"toDatePlaceholder": "Fecha de fin",
|
|
20
24
|
"dateRange": "Rango de fechas",
|
|
21
25
|
"dateRange1": "Primer rango de fechas",
|
|
22
26
|
"dateRange2": "Segundo rango de fechas",
|
|
@@ -10,13 +10,17 @@
|
|
|
10
10
|
"last3Months": "3 derniers mois",
|
|
11
11
|
"last6Months": "6 derniers mois",
|
|
12
12
|
"last12Months": "12 derniers mois",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"prevYear": "Année précédente",
|
|
14
|
+
"nextYear": "Année suivante",
|
|
15
|
+
"prevMonth": "Mois précédent",
|
|
16
|
+
"nextMonth": "Mois suivant",
|
|
15
17
|
"input": "Champ de date",
|
|
16
18
|
"compare": "Comparer à",
|
|
17
19
|
"fromDate": "Du {date}",
|
|
18
20
|
"toDate": "Au {date}",
|
|
21
|
+
"fromDatePlaceholder": "Date de début",
|
|
19
22
|
"periods": "Préréglages",
|
|
23
|
+
"toDatePlaceholder": "Date de fin",
|
|
20
24
|
"dateRange": "Plage de dates",
|
|
21
25
|
"dateRange1": "Première plage de dates",
|
|
22
26
|
"dateRange2": "Deuxième plage de dates",
|
|
@@ -10,13 +10,17 @@
|
|
|
10
10
|
"last3Months": "Ultimi 3 mesi",
|
|
11
11
|
"last6Months": "Ultimi 6 mesi",
|
|
12
12
|
"last12Months": "Ultimi 12 mesi",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"prevYear": "Anno precedente",
|
|
14
|
+
"nextYear": "Anno successivo",
|
|
15
|
+
"prevMonth": "Mese precedente",
|
|
16
|
+
"nextMonth": "Mese successivo",
|
|
15
17
|
"input": "Campo data",
|
|
16
18
|
"compare": "Confronta con",
|
|
17
19
|
"fromDate": "Da {date}",
|
|
18
20
|
"toDate": "A {date}",
|
|
21
|
+
"fromDatePlaceholder": "Dalla data",
|
|
19
22
|
"periods": "Impostazioni predefinite",
|
|
23
|
+
"toDatePlaceholder": "Alla data",
|
|
20
24
|
"dateRange": "Intervallo temporale",
|
|
21
25
|
"dateRange1": "Primo intervallo temporale",
|
|
22
26
|
"dateRange2": "Secondo intervallo temporale",
|
|
@@ -10,13 +10,17 @@
|
|
|
10
10
|
"last3Months": "過去3か月間",
|
|
11
11
|
"last6Months": "過去6か月間",
|
|
12
12
|
"last12Months": "過去12か月間",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"prevYear": "前年",
|
|
14
|
+
"nextYear": "翌年",
|
|
15
|
+
"prevMonth": "前月",
|
|
16
|
+
"nextMonth": "翌月",
|
|
15
17
|
"input": "データフィールド",
|
|
16
18
|
"compare": "次と比較",
|
|
17
19
|
"fromDate": "{date}から",
|
|
18
20
|
"toDate": "{date}まで",
|
|
21
|
+
"fromDatePlaceholder": "開始日",
|
|
19
22
|
"periods": "プリセット",
|
|
23
|
+
"toDatePlaceholder": "終了日",
|
|
20
24
|
"dateRange": "日付範囲",
|
|
21
25
|
"dateRange1": "一番目の日付範囲",
|
|
22
26
|
"dateRange2": "二番目の日付範囲",
|
|
@@ -10,13 +10,17 @@
|
|
|
10
10
|
"last3Months": "최근 3개월",
|
|
11
11
|
"last6Months": "최근 6개월",
|
|
12
12
|
"last12Months": "최근 12개월",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"prevYear": "지난해",
|
|
14
|
+
"nextYear": "내년",
|
|
15
|
+
"prevMonth": "이전 달",
|
|
16
|
+
"nextMonth": "다음 달",
|
|
15
17
|
"input": "날짜 필드",
|
|
16
18
|
"compare": "비교 기간",
|
|
17
19
|
"fromDate": "{date}부터",
|
|
18
20
|
"toDate": "{date}까지",
|
|
21
|
+
"fromDatePlaceholder": "시작 날짜",
|
|
19
22
|
"periods": "사전 설정",
|
|
23
|
+
"toDatePlaceholder": "종료 날짜",
|
|
20
24
|
"dateRange": "날짜 범위",
|
|
21
25
|
"dateRange1": "첫 번째 날짜 범위",
|
|
22
26
|
"dateRange2": "두 번째 날짜 범위",
|
|
@@ -10,13 +10,17 @@
|
|
|
10
10
|
"last3Months": "Afgelopen 3 maanden",
|
|
11
11
|
"last6Months": "Afgelopen 6 maanden",
|
|
12
12
|
"last12Months": "Afgelopen 12 maanden",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
13
|
+
"prevYear": "Vorig jaar",
|
|
14
|
+
"nextYear": "Volgend jaar",
|
|
15
|
+
"prevMonth": "Vorige maand",
|
|
16
|
+
"nextMonth": "Volgende maand",
|
|
15
17
|
"input": "Datumveld",
|
|
16
18
|
"compare": "Vergelijken met",
|
|
17
19
|
"fromDate": "Van {date}",
|
|
18
20
|
"toDate": "Tot {date}",
|
|
21
|
+
"fromDatePlaceholder": "Vanaf-datum",
|
|
19
22
|
"periods": "Voorgedefinieerd",
|
|
23
|
+
"toDatePlaceholder": "Tot-datum",
|
|
20
24
|
"dateRange": "Datumbereik",
|
|
21
25
|
"dateRange1": "Eerste datumbereik",
|
|
22
26
|
"dateRange2": "Tweede datumbereik",
|