@alfalab/core-components-calendar-range 7.0.14 → 7.0.16
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/Component.js +4 -3
- package/components/divider/Component.js +1 -1
- package/components/divider/index.css +8 -8
- package/cssm/Component.js +3 -3
- package/cssm/index.js +1 -1
- package/cssm/views/popover.js +3 -3
- package/cssm/views/static.js +7 -7
- package/esm/Component.js +2 -1
- package/esm/components/divider/Component.js +1 -1
- package/esm/components/divider/index.css +8 -8
- package/esm/index.js +2 -1
- package/esm/index.module-edbcda56.js +4 -0
- package/esm/views/index.css +6 -6
- package/esm/views/popover.js +2 -1
- package/esm/views/static.js +2 -1
- package/index.js +2 -1
- package/index.module-cb45883b.js +6 -0
- package/modern/Component.js +1 -1
- package/modern/components/divider/Component.js +1 -1
- package/modern/components/divider/index.css +8 -8
- package/modern/index.js +1 -1
- package/modern/index.module-e4fb8f7e.js +4 -0
- package/modern/views/index.css +6 -6
- package/modern/views/popover.js +1 -1
- package/modern/views/static.js +1 -1
- package/package.json +6 -5
- package/views/index.css +6 -6
- package/views/popover.js +4 -3
- package/views/static.js +8 -7
- package/cssm/tslib.es6-bbd6cd2a.d.ts +0 -36
- package/cssm/tslib.es6-bbd6cd2a.js +0 -42
- package/esm/index.module-0b117aaa.d.ts +0 -36
- package/esm/index.module-0b117aaa.js +0 -43
- package/index.module-9ad8aecd.d.ts +0 -36
- package/index.module-9ad8aecd.js +0 -46
- package/modern/index.module-63fdfc00.js +0 -4
package/Component.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var views_popover = require('./views/popover.js');
|
|
6
6
|
var views_static = require('./views/static.js');
|
|
@@ -15,6 +15,7 @@ require('date-fns/isEqual');
|
|
|
15
15
|
require('date-fns/max');
|
|
16
16
|
require('date-fns/min');
|
|
17
17
|
require('date-fns/subMonths');
|
|
18
|
+
require('./index.module-cb45883b.js');
|
|
18
19
|
require('date-fns/endOfMonth');
|
|
19
20
|
require('date-fns/isSameMonth');
|
|
20
21
|
require('@alfalab/core-components-calendar');
|
|
@@ -25,9 +26,9 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
25
26
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
26
27
|
|
|
27
28
|
var CalendarRange = function (_a) {
|
|
28
|
-
var _b = _a.calendarPosition, calendarPosition = _b === void 0 ? 'static' : _b, restProps =
|
|
29
|
+
var _b = _a.calendarPosition, calendarPosition = _b === void 0 ? 'static' : _b, restProps = tslib.__rest(_a, ["calendarPosition"]);
|
|
29
30
|
var View = calendarPosition === 'popover' ? views_popover.CalendarRangePopover : views_static.CalendarRangeStatic;
|
|
30
|
-
return React__default.default.createElement(View,
|
|
31
|
+
return React__default.default.createElement(View, tslib.__assign({}, restProps));
|
|
31
32
|
};
|
|
32
33
|
|
|
33
34
|
exports.CalendarRange = CalendarRange;
|
|
@@ -8,7 +8,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
9
9
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
10
10
|
|
|
11
|
-
var styles = {"component":"calendar-
|
|
11
|
+
var styles = {"component":"calendar-range__component_10z7v","outer":"calendar-range__outer_10z7v","s":"calendar-range__s_10z7v","m":"calendar-range__m_10z7v","l":"calendar-range__l_10z7v","xl":"calendar-range__xl_10z7v"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
var Divider = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: e6ku2 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-primary: #0b1f35;
|
|
@@ -41,29 +41,29 @@
|
|
|
41
41
|
/* disabled */
|
|
42
42
|
|
|
43
43
|
/* marker */
|
|
44
|
-
} .calendar-
|
|
44
|
+
} .calendar-range__component_10z7v {
|
|
45
45
|
display: flex;
|
|
46
46
|
align-items: center;
|
|
47
47
|
justify-content: center;
|
|
48
48
|
width: 16px;
|
|
49
49
|
margin: 0 var(--gap-xs)
|
|
50
|
-
} .calendar-
|
|
50
|
+
} .calendar-range__component_10z7v:after {
|
|
51
51
|
content: '';
|
|
52
52
|
display: block;
|
|
53
53
|
width: 100%;
|
|
54
54
|
height: 1px;
|
|
55
55
|
background-color: var(--color-light-graphic-primary);
|
|
56
|
-
} .calendar-
|
|
56
|
+
} .calendar-range__outer_10z7v {
|
|
57
57
|
position: relative;
|
|
58
58
|
|
|
59
59
|
/* FormControl .above height + margin-bottom */
|
|
60
60
|
top: 24px;
|
|
61
|
-
} .calendar-
|
|
61
|
+
} .calendar-range__s_10z7v {
|
|
62
62
|
height: var(--size-s-height);
|
|
63
|
-
} .calendar-
|
|
63
|
+
} .calendar-range__m_10z7v {
|
|
64
64
|
height: var(--size-m-height);
|
|
65
|
-
} .calendar-
|
|
65
|
+
} .calendar-range__l_10z7v {
|
|
66
66
|
height: var(--size-l-height);
|
|
67
|
-
} .calendar-
|
|
67
|
+
} .calendar-range__xl_10z7v {
|
|
68
68
|
height: var(--size-xl-height);
|
|
69
69
|
}
|
package/cssm/Component.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var views_popover = require('./views/popover.js');
|
|
6
6
|
var views_static = require('./views/static.js');
|
|
@@ -27,9 +27,9 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
27
27
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
28
28
|
|
|
29
29
|
var CalendarRange = function (_a) {
|
|
30
|
-
var _b = _a.calendarPosition, calendarPosition = _b === void 0 ? 'static' : _b, restProps =
|
|
30
|
+
var _b = _a.calendarPosition, calendarPosition = _b === void 0 ? 'static' : _b, restProps = tslib.__rest(_a, ["calendarPosition"]);
|
|
31
31
|
var View = calendarPosition === 'popover' ? views_popover.CalendarRangePopover : views_static.CalendarRangeStatic;
|
|
32
|
-
return React__default.default.createElement(View,
|
|
32
|
+
return React__default.default.createElement(View, tslib.__assign({}, restProps));
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
exports.CalendarRange = CalendarRange;
|
package/cssm/index.js
CHANGED
package/cssm/views/popover.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var startOfMonth = require('date-fns/startOfMonth');
|
|
@@ -117,9 +117,9 @@ var CalendarRangePopover = function (_a) {
|
|
|
117
117
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
118
118
|
}, [hasValidateError]);
|
|
119
119
|
return (React__default.default.createElement("div", { className: cn__default.default(styles__default.default.component, className), "data-test-id": dataTestId },
|
|
120
|
-
React__default.default.createElement(coreComponentsCalendarInput.CalendarInput,
|
|
120
|
+
React__default.default.createElement(coreComponentsCalendarInput.CalendarInput, tslib.__assign({}, inputFromProps, { useAnchorWidth: false, calendarPosition: 'popover', popoverPosition: 'bottom-start', error: inputFromInvalid || bothInvalid || inputFromProps.error, onChange: handleFromChange, onInputChange: handleInputFromChange, onBlur: handleInputFromBlur, value: inputFromValue, minDate: minDate, maxDate: maxDate, offDays: offDays, events: events, calendarProps: tslib.__assign(tslib.__assign({}, inputFromProps.calendarProps), { month: monthFrom, onMonthChange: handleMonthFromChange, selectorView: 'full' }) })),
|
|
121
121
|
React__default.default.createElement(components_divider_Component.Divider, { inputFromProps: inputFromProps, inputToProps: inputToProps }),
|
|
122
|
-
React__default.default.createElement(coreComponentsCalendarInput.CalendarInput,
|
|
122
|
+
React__default.default.createElement(coreComponentsCalendarInput.CalendarInput, tslib.__assign({}, inputToProps, { useAnchorWidth: false, calendarPosition: 'popover', popoverPosition: 'bottom-end', error: inputToInvalid || bothInvalid || inputToProps.error, onChange: handleToChange, onInputChange: handleInputToChange, onBlur: handleInputToBlur, value: inputToValue, minDate: dateFrom || minDate, maxDate: maxDate, offDays: offDays, events: events, calendarProps: tslib.__assign(tslib.__assign({}, inputToProps.calendarProps), { month: monthTo, onMonthChange: handleMonthToChange, selectorView: 'full' }) }))));
|
|
123
123
|
};
|
|
124
124
|
|
|
125
125
|
exports.CalendarRangePopover = CalendarRangePopover;
|
package/cssm/views/static.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var addMonths = require('date-fns/addMonths');
|
|
@@ -157,8 +157,8 @@ var CalendarRangeStatic = function (_a) {
|
|
|
157
157
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
158
158
|
}, [hasValidateError]);
|
|
159
159
|
var rangeProps = hooks.useSelectionProps(period.selectedFrom, period.selectedTo, highlightedDate);
|
|
160
|
-
var calendarFromProps = inputFromProps.calendarProps, dateInputFromProps =
|
|
161
|
-
var calendarToProps = inputToProps.calendarProps, dateInputToProps =
|
|
160
|
+
var calendarFromProps = inputFromProps.calendarProps, dateInputFromProps = tslib.__rest(inputFromProps, ["calendarProps"]);
|
|
161
|
+
var calendarToProps = inputToProps.calendarProps, dateInputToProps = tslib.__rest(inputToProps, ["calendarProps"]);
|
|
162
162
|
var CalendarFromComponent = dateInputFromProps.Calendar || coreComponentsCalendar.Calendar;
|
|
163
163
|
var CalendarToComponent = dateInputToProps.Calendar || coreComponentsCalendar.Calendar;
|
|
164
164
|
var minMaxInSameMonth = minDate && maxDate && isSameMonth__default.default(minDate, maxDate);
|
|
@@ -166,18 +166,18 @@ var CalendarRangeStatic = function (_a) {
|
|
|
166
166
|
// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
|
|
167
167
|
React__default.default.createElement("div", { className: cn__default.default(styles__default.default.component, styles__default.default.static, className), onMouseOver: handleMouseOver, "data-test-id": dataTestId },
|
|
168
168
|
React__default.default.createElement("div", null,
|
|
169
|
-
React__default.default.createElement(coreComponentsDateInput.DateInput,
|
|
169
|
+
React__default.default.createElement(coreComponentsDateInput.DateInput, tslib.__assign({}, dateInputFromProps, { mobileMode: dateInputFromProps.mobileMode === 'popover'
|
|
170
170
|
? 'input'
|
|
171
171
|
: dateInputFromProps.mobileMode, value: inputFromValue, onChange: handleInputFromChange, onClear: handleClearFrom, onBlur: handleValidInputFrom, error: bothInvalid || inputFromInvalid || dateInputFromProps.error, clear: true, block: true })),
|
|
172
|
-
React__default.default.createElement(CalendarFromComponent,
|
|
172
|
+
React__default.default.createElement(CalendarFromComponent, tslib.__assign({}, calendarFromProps, { className: cn__default.default(styles__default.default.calendar, calendarFromProps === null || calendarFromProps === void 0 ? void 0 : calendarFromProps.className), month: monthFrom, selectorView: 'month-only', offDays: offDays, events: events, onChange: period.updatePeriod, onMonthChange: handleMonthFromChange, minDate: minDate, maxDate: minMaxInSameMonth
|
|
173
173
|
? maxDate
|
|
174
174
|
: maxDate && max__default.default([maxDate, endOfMonth__default.default(subMonths__default.default(maxDate, 1))]).getTime() }, rangeProps))),
|
|
175
175
|
React__default.default.createElement(components_divider_Component.Divider, { inputFromProps: inputFromProps, inputToProps: inputToProps }),
|
|
176
176
|
React__default.default.createElement("div", null,
|
|
177
|
-
React__default.default.createElement(coreComponentsDateInput.DateInput,
|
|
177
|
+
React__default.default.createElement(coreComponentsDateInput.DateInput, tslib.__assign({}, dateInputToProps, { mobileMode: dateInputToProps.mobileMode === 'popover'
|
|
178
178
|
? 'input'
|
|
179
179
|
: dateInputToProps.mobileMode, value: inputToValue, onChange: handleInputToChange, onClear: handleClearTo, onBlur: handleValidInputTo, error: bothInvalid || inputToInvalid, clear: true, block: true })),
|
|
180
|
-
React__default.default.createElement(CalendarToComponent,
|
|
180
|
+
React__default.default.createElement(CalendarToComponent, tslib.__assign({}, calendarToProps, { className: cn__default.default(styles__default.default.calendar, calendarToProps === null || calendarToProps === void 0 ? void 0 : calendarToProps.className), month: monthTo, selectorView: 'month-only', offDays: offDays, events: events, onChange: period.updatePeriod, onMonthChange: handleMonthToChange, minDate: minMaxInSameMonth
|
|
181
181
|
? minDate
|
|
182
182
|
: minDate && startOfMonth__default.default(addMonths__default.default(minDate, 1)).getTime(), maxDate: maxDate }, rangeProps)))));
|
|
183
183
|
};
|
package/esm/Component.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { CalendarRangePopover } from './views/popover.js';
|
|
4
4
|
import { CalendarRangeStatic } from './views/static.js';
|
|
@@ -13,6 +13,7 @@ import 'date-fns/isEqual';
|
|
|
13
13
|
import 'date-fns/max';
|
|
14
14
|
import 'date-fns/min';
|
|
15
15
|
import 'date-fns/subMonths';
|
|
16
|
+
import './index.module-edbcda56.js';
|
|
16
17
|
import 'date-fns/endOfMonth';
|
|
17
18
|
import 'date-fns/isSameMonth';
|
|
18
19
|
import '@alfalab/core-components-calendar/esm';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"component":"calendar-
|
|
4
|
+
var styles = {"component":"calendar-range__component_10z7v","outer":"calendar-range__outer_10z7v","s":"calendar-range__s_10z7v","m":"calendar-range__m_10z7v","l":"calendar-range__l_10z7v","xl":"calendar-range__xl_10z7v"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
var Divider = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: e6ku2 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-primary: #0b1f35;
|
|
@@ -41,29 +41,29 @@
|
|
|
41
41
|
/* disabled */
|
|
42
42
|
|
|
43
43
|
/* marker */
|
|
44
|
-
} .calendar-
|
|
44
|
+
} .calendar-range__component_10z7v {
|
|
45
45
|
display: flex;
|
|
46
46
|
align-items: center;
|
|
47
47
|
justify-content: center;
|
|
48
48
|
width: 16px;
|
|
49
49
|
margin: 0 var(--gap-xs)
|
|
50
|
-
} .calendar-
|
|
50
|
+
} .calendar-range__component_10z7v:after {
|
|
51
51
|
content: '';
|
|
52
52
|
display: block;
|
|
53
53
|
width: 100%;
|
|
54
54
|
height: 1px;
|
|
55
55
|
background-color: var(--color-light-graphic-primary);
|
|
56
|
-
} .calendar-
|
|
56
|
+
} .calendar-range__outer_10z7v {
|
|
57
57
|
position: relative;
|
|
58
58
|
|
|
59
59
|
/* FormControl .above height + margin-bottom */
|
|
60
60
|
top: 24px;
|
|
61
|
-
} .calendar-
|
|
61
|
+
} .calendar-range__s_10z7v {
|
|
62
62
|
height: var(--size-s-height);
|
|
63
|
-
} .calendar-
|
|
63
|
+
} .calendar-range__m_10z7v {
|
|
64
64
|
height: var(--size-m-height);
|
|
65
|
-
} .calendar-
|
|
65
|
+
} .calendar-range__l_10z7v {
|
|
66
66
|
height: var(--size-l-height);
|
|
67
|
-
} .calendar-
|
|
67
|
+
} .calendar-range__xl_10z7v {
|
|
68
68
|
height: var(--size-xl-height);
|
|
69
69
|
}
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { CalendarRange } from './Component.js';
|
|
2
|
-
import '
|
|
2
|
+
import 'tslib';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './views/popover.js';
|
|
5
5
|
import 'classnames';
|
|
@@ -13,6 +13,7 @@ import 'date-fns/isEqual';
|
|
|
13
13
|
import 'date-fns/max';
|
|
14
14
|
import 'date-fns/min';
|
|
15
15
|
import 'date-fns/subMonths';
|
|
16
|
+
import './index.module-edbcda56.js';
|
|
16
17
|
import './views/static.js';
|
|
17
18
|
import 'date-fns/endOfMonth';
|
|
18
19
|
import 'date-fns/isSameMonth';
|
package/esm/views/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1dx9p */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
/* disabled */
|
|
37
37
|
|
|
38
38
|
/* marker */
|
|
39
|
-
} .calendar-
|
|
39
|
+
} .calendar-range__component_mmjp7 {
|
|
40
40
|
display: flex
|
|
41
|
-
} .calendar-
|
|
41
|
+
} .calendar-range__component_mmjp7 button[aria-selected='true'] {
|
|
42
42
|
cursor: pointer;
|
|
43
|
-
} .calendar-
|
|
43
|
+
} .calendar-range__component_mmjp7 *[class*='errorIcon_'] {
|
|
44
44
|
display: none;
|
|
45
|
-
} .calendar-
|
|
45
|
+
} .calendar-range__component_mmjp7 *[class*='calendarIcon_'] {
|
|
46
46
|
margin-right: 0;
|
|
47
|
-
} .calendar-
|
|
47
|
+
} .calendar-range__static_mmjp7 .calendar-range__calendar_mmjp7 {
|
|
48
48
|
width: var(--calendar-inner-width);
|
|
49
49
|
}
|
package/esm/views/popover.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __assign } from 'tslib';
|
|
2
2
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import startOfMonth from 'date-fns/startOfMonth';
|
|
@@ -6,6 +6,7 @@ import { isValidInputValue, parseDateString, CalendarInput } from '@alfalab/core
|
|
|
6
6
|
import { isCompleteDateInput } from '@alfalab/core-components-date-input/esm';
|
|
7
7
|
import { Divider } from '../components/divider/Component.js';
|
|
8
8
|
import { usePopoverViewMonthes } from '../hooks.js';
|
|
9
|
+
import { s as styles } from '../index.module-edbcda56.js';
|
|
9
10
|
import 'date-fns/addMonths';
|
|
10
11
|
import 'date-fns/isEqual';
|
|
11
12
|
import 'date-fns/max';
|
package/esm/views/static.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { useState, useCallback, useEffect } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import addMonths from 'date-fns/addMonths';
|
|
@@ -13,6 +13,7 @@ import { isCompleteDateInput, DateInput } from '@alfalab/core-components-date-in
|
|
|
13
13
|
import { Divider } from '../components/divider/Component.js';
|
|
14
14
|
import { useStaticViewMonthes, useSelectionProps } from '../hooks.js';
|
|
15
15
|
import { isDayButton } from '../utils.js';
|
|
16
|
+
import { s as styles } from '../index.module-edbcda56.js';
|
|
16
17
|
import 'date-fns/isEqual';
|
|
17
18
|
import 'date-fns/min';
|
|
18
19
|
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var Component = require('./Component.js');
|
|
4
|
-
require('
|
|
4
|
+
require('tslib');
|
|
5
5
|
require('react');
|
|
6
6
|
require('./views/popover.js');
|
|
7
7
|
require('classnames');
|
|
@@ -15,6 +15,7 @@ require('date-fns/isEqual');
|
|
|
15
15
|
require('date-fns/max');
|
|
16
16
|
require('date-fns/min');
|
|
17
17
|
require('date-fns/subMonths');
|
|
18
|
+
require('./index.module-cb45883b.js');
|
|
18
19
|
require('./views/static.js');
|
|
19
20
|
require('date-fns/endOfMonth');
|
|
20
21
|
require('date-fns/isSameMonth');
|
package/modern/Component.js
CHANGED
|
@@ -12,7 +12,7 @@ import 'date-fns/isEqual';
|
|
|
12
12
|
import 'date-fns/max';
|
|
13
13
|
import 'date-fns/min';
|
|
14
14
|
import 'date-fns/subMonths';
|
|
15
|
-
import './index.module-
|
|
15
|
+
import './index.module-e4fb8f7e.js';
|
|
16
16
|
import 'date-fns/endOfMonth';
|
|
17
17
|
import 'date-fns/isSameMonth';
|
|
18
18
|
import '@alfalab/core-components-calendar/modern';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
|
|
4
|
-
const styles = {"component":"calendar-
|
|
4
|
+
const styles = {"component":"calendar-range__component_10z7v","outer":"calendar-range__outer_10z7v","s":"calendar-range__s_10z7v","m":"calendar-range__m_10z7v","l":"calendar-range__l_10z7v","xl":"calendar-range__xl_10z7v"};
|
|
5
5
|
require('./index.css')
|
|
6
6
|
|
|
7
7
|
const Divider = ({ inputFromProps, inputToProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: e6ku2 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-graphic-primary: #0b1f35;
|
|
@@ -41,29 +41,29 @@
|
|
|
41
41
|
/* disabled */
|
|
42
42
|
|
|
43
43
|
/* marker */
|
|
44
|
-
} .calendar-
|
|
44
|
+
} .calendar-range__component_10z7v {
|
|
45
45
|
display: flex;
|
|
46
46
|
align-items: center;
|
|
47
47
|
justify-content: center;
|
|
48
48
|
width: 16px;
|
|
49
49
|
margin: 0 var(--gap-xs)
|
|
50
|
-
} .calendar-
|
|
50
|
+
} .calendar-range__component_10z7v:after {
|
|
51
51
|
content: '';
|
|
52
52
|
display: block;
|
|
53
53
|
width: 100%;
|
|
54
54
|
height: 1px;
|
|
55
55
|
background-color: var(--color-light-graphic-primary);
|
|
56
|
-
} .calendar-
|
|
56
|
+
} .calendar-range__outer_10z7v {
|
|
57
57
|
position: relative;
|
|
58
58
|
|
|
59
59
|
/* FormControl .above height + margin-bottom */
|
|
60
60
|
top: 24px;
|
|
61
|
-
} .calendar-
|
|
61
|
+
} .calendar-range__s_10z7v {
|
|
62
62
|
height: var(--size-s-height);
|
|
63
|
-
} .calendar-
|
|
63
|
+
} .calendar-range__m_10z7v {
|
|
64
64
|
height: var(--size-m-height);
|
|
65
|
-
} .calendar-
|
|
65
|
+
} .calendar-range__l_10z7v {
|
|
66
66
|
height: var(--size-l-height);
|
|
67
|
-
} .calendar-
|
|
67
|
+
} .calendar-range__xl_10z7v {
|
|
68
68
|
height: var(--size-xl-height);
|
|
69
69
|
}
|
package/modern/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import 'date-fns/isEqual';
|
|
|
12
12
|
import 'date-fns/max';
|
|
13
13
|
import 'date-fns/min';
|
|
14
14
|
import 'date-fns/subMonths';
|
|
15
|
-
import './index.module-
|
|
15
|
+
import './index.module-e4fb8f7e.js';
|
|
16
16
|
import './views/static.js';
|
|
17
17
|
import 'date-fns/endOfMonth';
|
|
18
18
|
import 'date-fns/isSameMonth';
|
package/modern/views/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1dx9p */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
/* disabled */
|
|
37
37
|
|
|
38
38
|
/* marker */
|
|
39
|
-
} .calendar-
|
|
39
|
+
} .calendar-range__component_mmjp7 {
|
|
40
40
|
display: flex
|
|
41
|
-
} .calendar-
|
|
41
|
+
} .calendar-range__component_mmjp7 button[aria-selected='true'] {
|
|
42
42
|
cursor: pointer;
|
|
43
|
-
} .calendar-
|
|
43
|
+
} .calendar-range__component_mmjp7 *[class*='errorIcon_'] {
|
|
44
44
|
display: none;
|
|
45
|
-
} .calendar-
|
|
45
|
+
} .calendar-range__component_mmjp7 *[class*='calendarIcon_'] {
|
|
46
46
|
margin-right: 0;
|
|
47
|
-
} .calendar-
|
|
47
|
+
} .calendar-range__static_mmjp7 .calendar-range__calendar_mmjp7 {
|
|
48
48
|
width: var(--calendar-inner-width);
|
|
49
49
|
}
|
package/modern/views/popover.js
CHANGED
|
@@ -5,7 +5,7 @@ import { isValidInputValue, parseDateString, CalendarInput } from '@alfalab/core
|
|
|
5
5
|
import { isCompleteDateInput } from '@alfalab/core-components-date-input/modern';
|
|
6
6
|
import { Divider } from '../components/divider/Component.js';
|
|
7
7
|
import { usePopoverViewMonthes } from '../hooks.js';
|
|
8
|
-
import { s as styles } from '../index.module-
|
|
8
|
+
import { s as styles } from '../index.module-e4fb8f7e.js';
|
|
9
9
|
import 'date-fns/addMonths';
|
|
10
10
|
import 'date-fns/isEqual';
|
|
11
11
|
import 'date-fns/max';
|
package/modern/views/static.js
CHANGED
|
@@ -12,7 +12,7 @@ import { isCompleteDateInput, DateInput } from '@alfalab/core-components-date-in
|
|
|
12
12
|
import { Divider } from '../components/divider/Component.js';
|
|
13
13
|
import { useStaticViewMonthes, useSelectionProps } from '../hooks.js';
|
|
14
14
|
import { isDayButton } from '../utils.js';
|
|
15
|
-
import { s as styles } from '../index.module-
|
|
15
|
+
import { s as styles } from '../index.module-e4fb8f7e.js';
|
|
16
16
|
import 'date-fns/isEqual';
|
|
17
17
|
import 'date-fns/min';
|
|
18
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-calendar-range",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.16",
|
|
4
4
|
"description": "Calendar range component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,10 +18,11 @@
|
|
|
18
18
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@alfalab/core-components-calendar": "^6.2.
|
|
22
|
-
"@alfalab/core-components-calendar-input": "^8.2.
|
|
23
|
-
"@alfalab/core-components-date-input": "^4.1.
|
|
21
|
+
"@alfalab/core-components-calendar": "^6.2.9",
|
|
22
|
+
"@alfalab/core-components-calendar-input": "^8.2.9",
|
|
23
|
+
"@alfalab/core-components-date-input": "^4.1.7",
|
|
24
24
|
"classnames": "^2.3.1",
|
|
25
|
-
"date-fns": "^2.16.1"
|
|
25
|
+
"date-fns": "^2.16.1",
|
|
26
|
+
"tslib": "^2.4.0"
|
|
26
27
|
}
|
|
27
28
|
}
|
package/views/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1dx9p */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
} :root {
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
/* disabled */
|
|
37
37
|
|
|
38
38
|
/* marker */
|
|
39
|
-
} .calendar-
|
|
39
|
+
} .calendar-range__component_mmjp7 {
|
|
40
40
|
display: flex
|
|
41
|
-
} .calendar-
|
|
41
|
+
} .calendar-range__component_mmjp7 button[aria-selected='true'] {
|
|
42
42
|
cursor: pointer;
|
|
43
|
-
} .calendar-
|
|
43
|
+
} .calendar-range__component_mmjp7 *[class*='errorIcon_'] {
|
|
44
44
|
display: none;
|
|
45
|
-
} .calendar-
|
|
45
|
+
} .calendar-range__component_mmjp7 *[class*='calendarIcon_'] {
|
|
46
46
|
margin-right: 0;
|
|
47
|
-
} .calendar-
|
|
47
|
+
} .calendar-range__static_mmjp7 .calendar-range__calendar_mmjp7 {
|
|
48
48
|
width: var(--calendar-inner-width);
|
|
49
49
|
}
|
package/views/popover.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var startOfMonth = require('date-fns/startOfMonth');
|
|
@@ -8,6 +8,7 @@ var coreComponentsCalendarInput = require('@alfalab/core-components-calendar-inp
|
|
|
8
8
|
var coreComponentsDateInput = require('@alfalab/core-components-date-input');
|
|
9
9
|
var components_divider_Component = require('../components/divider/Component.js');
|
|
10
10
|
var hooks = require('../hooks.js');
|
|
11
|
+
var index_module = require('../index.module-cb45883b.js');
|
|
11
12
|
require('date-fns/addMonths');
|
|
12
13
|
require('date-fns/isEqual');
|
|
13
14
|
require('date-fns/max');
|
|
@@ -114,9 +115,9 @@ var CalendarRangePopover = function (_a) {
|
|
|
114
115
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
115
116
|
}, [hasValidateError]);
|
|
116
117
|
return (React__default.default.createElement("div", { className: cn__default.default(index_module.styles.component, className), "data-test-id": dataTestId },
|
|
117
|
-
React__default.default.createElement(coreComponentsCalendarInput.CalendarInput,
|
|
118
|
+
React__default.default.createElement(coreComponentsCalendarInput.CalendarInput, tslib.__assign({}, inputFromProps, { useAnchorWidth: false, calendarPosition: 'popover', popoverPosition: 'bottom-start', error: inputFromInvalid || bothInvalid || inputFromProps.error, onChange: handleFromChange, onInputChange: handleInputFromChange, onBlur: handleInputFromBlur, value: inputFromValue, minDate: minDate, maxDate: maxDate, offDays: offDays, events: events, calendarProps: tslib.__assign(tslib.__assign({}, inputFromProps.calendarProps), { month: monthFrom, onMonthChange: handleMonthFromChange, selectorView: 'full' }) })),
|
|
118
119
|
React__default.default.createElement(components_divider_Component.Divider, { inputFromProps: inputFromProps, inputToProps: inputToProps }),
|
|
119
|
-
React__default.default.createElement(coreComponentsCalendarInput.CalendarInput,
|
|
120
|
+
React__default.default.createElement(coreComponentsCalendarInput.CalendarInput, tslib.__assign({}, inputToProps, { useAnchorWidth: false, calendarPosition: 'popover', popoverPosition: 'bottom-end', error: inputToInvalid || bothInvalid || inputToProps.error, onChange: handleToChange, onInputChange: handleInputToChange, onBlur: handleInputToBlur, value: inputToValue, minDate: dateFrom || minDate, maxDate: maxDate, offDays: offDays, events: events, calendarProps: tslib.__assign(tslib.__assign({}, inputToProps.calendarProps), { month: monthTo, onMonthChange: handleMonthToChange, selectorView: 'full' }) }))));
|
|
120
121
|
};
|
|
121
122
|
|
|
122
123
|
exports.CalendarRangePopover = CalendarRangePopover;
|
package/views/static.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var addMonths = require('date-fns/addMonths');
|
|
@@ -15,6 +15,7 @@ var coreComponentsDateInput = require('@alfalab/core-components-date-input');
|
|
|
15
15
|
var components_divider_Component = require('../components/divider/Component.js');
|
|
16
16
|
var hooks = require('../hooks.js');
|
|
17
17
|
var utils = require('../utils.js');
|
|
18
|
+
var index_module = require('../index.module-cb45883b.js');
|
|
18
19
|
require('date-fns/isEqual');
|
|
19
20
|
require('date-fns/min');
|
|
20
21
|
|
|
@@ -154,8 +155,8 @@ var CalendarRangeStatic = function (_a) {
|
|
|
154
155
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
155
156
|
}, [hasValidateError]);
|
|
156
157
|
var rangeProps = hooks.useSelectionProps(period.selectedFrom, period.selectedTo, highlightedDate);
|
|
157
|
-
var calendarFromProps = inputFromProps.calendarProps, dateInputFromProps =
|
|
158
|
-
var calendarToProps = inputToProps.calendarProps, dateInputToProps =
|
|
158
|
+
var calendarFromProps = inputFromProps.calendarProps, dateInputFromProps = tslib.__rest(inputFromProps, ["calendarProps"]);
|
|
159
|
+
var calendarToProps = inputToProps.calendarProps, dateInputToProps = tslib.__rest(inputToProps, ["calendarProps"]);
|
|
159
160
|
var CalendarFromComponent = dateInputFromProps.Calendar || coreComponentsCalendar.Calendar;
|
|
160
161
|
var CalendarToComponent = dateInputToProps.Calendar || coreComponentsCalendar.Calendar;
|
|
161
162
|
var minMaxInSameMonth = minDate && maxDate && isSameMonth__default.default(minDate, maxDate);
|
|
@@ -163,18 +164,18 @@ var CalendarRangeStatic = function (_a) {
|
|
|
163
164
|
// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
|
|
164
165
|
React__default.default.createElement("div", { className: cn__default.default(index_module.styles.component, index_module.styles.static, className), onMouseOver: handleMouseOver, "data-test-id": dataTestId },
|
|
165
166
|
React__default.default.createElement("div", null,
|
|
166
|
-
React__default.default.createElement(coreComponentsDateInput.DateInput,
|
|
167
|
+
React__default.default.createElement(coreComponentsDateInput.DateInput, tslib.__assign({}, dateInputFromProps, { mobileMode: dateInputFromProps.mobileMode === 'popover'
|
|
167
168
|
? 'input'
|
|
168
169
|
: dateInputFromProps.mobileMode, value: inputFromValue, onChange: handleInputFromChange, onClear: handleClearFrom, onBlur: handleValidInputFrom, error: bothInvalid || inputFromInvalid || dateInputFromProps.error, clear: true, block: true })),
|
|
169
|
-
React__default.default.createElement(CalendarFromComponent,
|
|
170
|
+
React__default.default.createElement(CalendarFromComponent, tslib.__assign({}, calendarFromProps, { className: cn__default.default(index_module.styles.calendar, calendarFromProps === null || calendarFromProps === void 0 ? void 0 : calendarFromProps.className), month: monthFrom, selectorView: 'month-only', offDays: offDays, events: events, onChange: period.updatePeriod, onMonthChange: handleMonthFromChange, minDate: minDate, maxDate: minMaxInSameMonth
|
|
170
171
|
? maxDate
|
|
171
172
|
: maxDate && max__default.default([maxDate, endOfMonth__default.default(subMonths__default.default(maxDate, 1))]).getTime() }, rangeProps))),
|
|
172
173
|
React__default.default.createElement(components_divider_Component.Divider, { inputFromProps: inputFromProps, inputToProps: inputToProps }),
|
|
173
174
|
React__default.default.createElement("div", null,
|
|
174
|
-
React__default.default.createElement(coreComponentsDateInput.DateInput,
|
|
175
|
+
React__default.default.createElement(coreComponentsDateInput.DateInput, tslib.__assign({}, dateInputToProps, { mobileMode: dateInputToProps.mobileMode === 'popover'
|
|
175
176
|
? 'input'
|
|
176
177
|
: dateInputToProps.mobileMode, value: inputToValue, onChange: handleInputToChange, onClear: handleClearTo, onBlur: handleValidInputTo, error: bothInvalid || inputToInvalid, clear: true, block: true })),
|
|
177
|
-
React__default.default.createElement(CalendarToComponent,
|
|
178
|
+
React__default.default.createElement(CalendarToComponent, tslib.__assign({}, calendarToProps, { className: cn__default.default(index_module.styles.calendar, calendarToProps === null || calendarToProps === void 0 ? void 0 : calendarToProps.className), month: monthTo, selectorView: 'month-only', offDays: offDays, events: events, onChange: period.updatePeriod, onMonthChange: handleMonthToChange, minDate: minMaxInSameMonth
|
|
178
179
|
? minDate
|
|
179
180
|
: minDate && startOfMonth__default.default(addMonths__default.default(minDate, 1)).getTime(), maxDate: maxDate }, rangeProps)))));
|
|
180
181
|
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
declare function __extends(d: any, b: any): void;
|
|
2
|
-
declare function __rest(s: any, e: any): {};
|
|
3
|
-
declare function __decorate(decorators: any, target: any, key: any, desc: any, ...args: any[]): any;
|
|
4
|
-
declare function __param(paramIndex: any, decorator: any): (target: any, key: any) => void;
|
|
5
|
-
declare function __metadata(metadataKey: any, metadataValue: any): any;
|
|
6
|
-
declare function __awaiter(thisArg: any, _arguments: any, P: any, generator: any): any;
|
|
7
|
-
declare function __generator(thisArg: any, body: any): {
|
|
8
|
-
next: (v: any) => any;
|
|
9
|
-
throw: (v: any) => any;
|
|
10
|
-
return: (v: any) => any;
|
|
11
|
-
};
|
|
12
|
-
declare function __exportStar(m: any, o: any): void;
|
|
13
|
-
declare function __values(o: any): any;
|
|
14
|
-
declare function __read(o: any, n: any): any;
|
|
15
|
-
/** @deprecated */
|
|
16
|
-
declare function __spread(...args: any[]): any[];
|
|
17
|
-
/** @deprecated */
|
|
18
|
-
declare function __spreadArrays(...args: any[]): any[];
|
|
19
|
-
declare function __spreadArray(to: any, from: any, pack: any, ...args: any[]): any;
|
|
20
|
-
declare function __await(v: any): __await;
|
|
21
|
-
declare class __await {
|
|
22
|
-
constructor(v: any);
|
|
23
|
-
v: any;
|
|
24
|
-
}
|
|
25
|
-
declare function __asyncGenerator(thisArg: any, _arguments: any, generator: any): {};
|
|
26
|
-
declare function __asyncDelegator(o: any): {};
|
|
27
|
-
declare function __asyncValues(o: any): any;
|
|
28
|
-
declare function __makeTemplateObject(cooked: any, raw: any): any;
|
|
29
|
-
declare function __importStar(mod: any): any;
|
|
30
|
-
declare function __importDefault(mod: any): any;
|
|
31
|
-
declare function __classPrivateFieldGet(receiver: any, state: any, kind: any, f: any): any;
|
|
32
|
-
declare function __classPrivateFieldSet(receiver: any, state: any, value: any, kind: any, f: any): any;
|
|
33
|
-
declare function __classPrivateFieldIn(state: any, receiver: any): any;
|
|
34
|
-
declare function __assign(...args: any[]): any;
|
|
35
|
-
declare function __createBinding(o: any, m: any, k: any, k2: any): void;
|
|
36
|
-
export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __assign, __createBinding };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/******************************************************************************
|
|
4
|
-
Copyright (c) Microsoft Corporation.
|
|
5
|
-
|
|
6
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
7
|
-
purpose with or without fee is hereby granted.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
11
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
13
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
14
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
16
|
-
***************************************************************************** */
|
|
17
|
-
exports.__assign = function () {
|
|
18
|
-
exports.__assign = Object.assign || function __assign(t) {
|
|
19
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
-
s = arguments[i];
|
|
21
|
-
for (var p in s)
|
|
22
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
23
|
-
t[p] = s[p];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
27
|
-
return exports.__assign.apply(this, arguments);
|
|
28
|
-
};
|
|
29
|
-
function __rest(s, e) {
|
|
30
|
-
var t = {};
|
|
31
|
-
for (var p in s)
|
|
32
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
33
|
-
t[p] = s[p];
|
|
34
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
35
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
36
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
37
|
-
t[p[i]] = s[p[i]];
|
|
38
|
-
}
|
|
39
|
-
return t;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
exports.__rest = __rest;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
declare function __extends(d: any, b: any): void;
|
|
2
|
-
declare function __rest(s: any, e: any): {};
|
|
3
|
-
declare function __decorate(decorators: any, target: any, key: any, desc: any, ...args: any[]): any;
|
|
4
|
-
declare function __param(paramIndex: any, decorator: any): (target: any, key: any) => void;
|
|
5
|
-
declare function __metadata(metadataKey: any, metadataValue: any): any;
|
|
6
|
-
declare function __awaiter(thisArg: any, _arguments: any, P: any, generator: any): any;
|
|
7
|
-
declare function __generator(thisArg: any, body: any): {
|
|
8
|
-
next: (v: any) => any;
|
|
9
|
-
throw: (v: any) => any;
|
|
10
|
-
return: (v: any) => any;
|
|
11
|
-
};
|
|
12
|
-
declare function __exportStar(m: any, o: any): void;
|
|
13
|
-
declare function __values(o: any): any;
|
|
14
|
-
declare function __read(o: any, n: any): any;
|
|
15
|
-
/** @deprecated */
|
|
16
|
-
declare function __spread(...args: any[]): any[];
|
|
17
|
-
/** @deprecated */
|
|
18
|
-
declare function __spreadArrays(...args: any[]): any[];
|
|
19
|
-
declare function __spreadArray(to: any, from: any, pack: any, ...args: any[]): any;
|
|
20
|
-
declare function __await(v: any): __await;
|
|
21
|
-
declare class __await {
|
|
22
|
-
constructor(v: any);
|
|
23
|
-
v: any;
|
|
24
|
-
}
|
|
25
|
-
declare function __asyncGenerator(thisArg: any, _arguments: any, generator: any): {};
|
|
26
|
-
declare function __asyncDelegator(o: any): {};
|
|
27
|
-
declare function __asyncValues(o: any): any;
|
|
28
|
-
declare function __makeTemplateObject(cooked: any, raw: any): any;
|
|
29
|
-
declare function __importStar(mod: any): any;
|
|
30
|
-
declare function __importDefault(mod: any): any;
|
|
31
|
-
declare function __classPrivateFieldGet(receiver: any, state: any, kind: any, f: any): any;
|
|
32
|
-
declare function __classPrivateFieldSet(receiver: any, state: any, value: any, kind: any, f: any): any;
|
|
33
|
-
declare function __classPrivateFieldIn(state: any, receiver: any): any;
|
|
34
|
-
declare function __assign(...args: any[]): any;
|
|
35
|
-
declare function __createBinding(o: any, m: any, k: any, k2: any): void;
|
|
36
|
-
export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __assign, __createBinding };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/******************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */
|
|
15
|
-
var __assign = function () {
|
|
16
|
-
__assign = Object.assign || function __assign(t) {
|
|
17
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
-
s = arguments[i];
|
|
19
|
-
for (var p in s)
|
|
20
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
return __assign.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
function __rest(s, e) {
|
|
28
|
-
var t = {};
|
|
29
|
-
for (var p in s)
|
|
30
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
-
t[p] = s[p];
|
|
32
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
-
t[p[i]] = s[p[i]];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
var styles = {"component":"calendar-range__component_1ayvw","static":"calendar-range__static_1ayvw","calendar":"calendar-range__calendar_1ayvw"};
|
|
41
|
-
require('./views/index.css')
|
|
42
|
-
|
|
43
|
-
export { __rest as _, __assign as a, styles as s };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
declare function __extends(d: any, b: any): void;
|
|
2
|
-
declare function __rest(s: any, e: any): {};
|
|
3
|
-
declare function __decorate(decorators: any, target: any, key: any, desc: any, ...args: any[]): any;
|
|
4
|
-
declare function __param(paramIndex: any, decorator: any): (target: any, key: any) => void;
|
|
5
|
-
declare function __metadata(metadataKey: any, metadataValue: any): any;
|
|
6
|
-
declare function __awaiter(thisArg: any, _arguments: any, P: any, generator: any): any;
|
|
7
|
-
declare function __generator(thisArg: any, body: any): {
|
|
8
|
-
next: (v: any) => any;
|
|
9
|
-
throw: (v: any) => any;
|
|
10
|
-
return: (v: any) => any;
|
|
11
|
-
};
|
|
12
|
-
declare function __exportStar(m: any, o: any): void;
|
|
13
|
-
declare function __values(o: any): any;
|
|
14
|
-
declare function __read(o: any, n: any): any;
|
|
15
|
-
/** @deprecated */
|
|
16
|
-
declare function __spread(...args: any[]): any[];
|
|
17
|
-
/** @deprecated */
|
|
18
|
-
declare function __spreadArrays(...args: any[]): any[];
|
|
19
|
-
declare function __spreadArray(to: any, from: any, pack: any, ...args: any[]): any;
|
|
20
|
-
declare function __await(v: any): __await;
|
|
21
|
-
declare class __await {
|
|
22
|
-
constructor(v: any);
|
|
23
|
-
v: any;
|
|
24
|
-
}
|
|
25
|
-
declare function __asyncGenerator(thisArg: any, _arguments: any, generator: any): {};
|
|
26
|
-
declare function __asyncDelegator(o: any): {};
|
|
27
|
-
declare function __asyncValues(o: any): any;
|
|
28
|
-
declare function __makeTemplateObject(cooked: any, raw: any): any;
|
|
29
|
-
declare function __importStar(mod: any): any;
|
|
30
|
-
declare function __importDefault(mod: any): any;
|
|
31
|
-
declare function __classPrivateFieldGet(receiver: any, state: any, kind: any, f: any): any;
|
|
32
|
-
declare function __classPrivateFieldSet(receiver: any, state: any, value: any, kind: any, f: any): any;
|
|
33
|
-
declare function __classPrivateFieldIn(state: any, receiver: any): any;
|
|
34
|
-
declare function __assign(...args: any[]): any;
|
|
35
|
-
declare function __createBinding(o: any, m: any, k: any, k2: any): void;
|
|
36
|
-
export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __assign, __createBinding };
|
package/index.module-9ad8aecd.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/******************************************************************************
|
|
4
|
-
Copyright (c) Microsoft Corporation.
|
|
5
|
-
|
|
6
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
7
|
-
purpose with or without fee is hereby granted.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
11
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
13
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
14
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
16
|
-
***************************************************************************** */
|
|
17
|
-
exports.__assign = function () {
|
|
18
|
-
exports.__assign = Object.assign || function __assign(t) {
|
|
19
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
-
s = arguments[i];
|
|
21
|
-
for (var p in s)
|
|
22
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
23
|
-
t[p] = s[p];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
27
|
-
return exports.__assign.apply(this, arguments);
|
|
28
|
-
};
|
|
29
|
-
function __rest(s, e) {
|
|
30
|
-
var t = {};
|
|
31
|
-
for (var p in s)
|
|
32
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
33
|
-
t[p] = s[p];
|
|
34
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
35
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
36
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
37
|
-
t[p[i]] = s[p[i]];
|
|
38
|
-
}
|
|
39
|
-
return t;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
var styles = {"component":"calendar-range__component_1ayvw","static":"calendar-range__static_1ayvw","calendar":"calendar-range__calendar_1ayvw"};
|
|
43
|
-
require('./views/index.css')
|
|
44
|
-
|
|
45
|
-
exports.__rest = __rest;
|
|
46
|
-
exports.styles = styles;
|