@quillsql/react 1.7.1 → 1.7.2
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/AddToDashboardModal.js +369 -249
- package/lib/AddToDashboardModal.js.map +1 -1
- package/lib/BarList.js +109 -92
- package/lib/BarList.js.map +1 -1
- package/lib/Chart.js +414 -364
- package/lib/Chart.js.map +1 -1
- package/lib/Context.js +84 -92
- package/lib/Context.js.map +1 -1
- package/lib/Dashboard.js +209 -181
- package/lib/Dashboard.js.map +1 -1
- package/lib/DateRangePicker/Calendar.js +91 -87
- package/lib/DateRangePicker/Calendar.js.map +1 -1
- package/lib/DateRangePicker/DateRangePicker.js +68 -70
- package/lib/DateRangePicker/DateRangePicker.js.map +1 -1
- package/lib/DateRangePicker/DateRangePickerButton.js +57 -46
- package/lib/DateRangePicker/DateRangePickerButton.js.map +1 -1
- package/lib/DateRangePicker/dateRangePickerUtils.js +99 -105
- package/lib/DateRangePicker/dateRangePickerUtils.js.map +1 -1
- package/lib/DateRangePicker/index.js +1 -8
- package/lib/DateRangePicker/index.js.map +1 -1
- package/lib/PieChart.js +225 -221
- package/lib/PieChart.js.map +1 -1
- package/lib/QuillProvider.js +18 -8
- package/lib/QuillProvider.js.map +1 -1
- package/lib/ReportBuilder.js +526 -430
- package/lib/ReportBuilder.js.map +1 -1
- package/lib/SQLEditor.js +268 -183
- package/lib/SQLEditor.js.map +1 -1
- package/lib/Table.js +256 -213
- package/lib/Table.js.map +1 -1
- package/lib/TableChart.js +75 -76
- package/lib/TableChart.js.map +1 -1
- package/lib/assets/ArrowDownHeadIcon.js +28 -5
- package/lib/assets/ArrowDownHeadIcon.js.map +1 -1
- package/lib/assets/ArrowDownIcon.js +28 -5
- package/lib/assets/ArrowDownIcon.js.map +1 -1
- package/lib/assets/ArrowDownRightIcon.js +28 -5
- package/lib/assets/ArrowDownRightIcon.js.map +1 -1
- package/lib/assets/ArrowLeftHeadIcon.js +28 -5
- package/lib/assets/ArrowLeftHeadIcon.js.map +1 -1
- package/lib/assets/ArrowRightHeadIcon.js +28 -5
- package/lib/assets/ArrowRightHeadIcon.js.map +1 -1
- package/lib/assets/ArrowRightIcon.js +28 -5
- package/lib/assets/ArrowRightIcon.js.map +1 -1
- package/lib/assets/ArrowUpHeadIcon.js +28 -5
- package/lib/assets/ArrowUpHeadIcon.js.map +1 -1
- package/lib/assets/ArrowUpIcon.js +28 -5
- package/lib/assets/ArrowUpIcon.js.map +1 -1
- package/lib/assets/ArrowUpRightIcon.js +28 -5
- package/lib/assets/ArrowUpRightIcon.js.map +1 -1
- package/lib/assets/CalendarIcon.js +28 -5
- package/lib/assets/CalendarIcon.js.map +1 -1
- package/lib/assets/DoubleArrowLeftHeadIcon.js +28 -5
- package/lib/assets/DoubleArrowLeftHeadIcon.js.map +1 -1
- package/lib/assets/DoubleArrowRightHeadIcon.js +28 -5
- package/lib/assets/DoubleArrowRightHeadIcon.js.map +1 -1
- package/lib/assets/ExclamationFilledIcon.js +28 -5
- package/lib/assets/ExclamationFilledIcon.js.map +1 -1
- package/lib/assets/LoadingSpinner.js +28 -5
- package/lib/assets/LoadingSpinner.js.map +1 -1
- package/lib/assets/SearchIcon.js +28 -5
- package/lib/assets/SearchIcon.js.map +1 -1
- package/lib/assets/XCircleIcon.js +28 -5
- package/lib/assets/XCircleIcon.js.map +1 -1
- package/lib/assets/index.js +16 -38
- package/lib/assets/index.js.map +1 -1
- package/lib/components/BigModal/BigModal.js +43 -45
- package/lib/components/BigModal/BigModal.js.map +1 -1
- package/lib/components/Dropdown/Dropdown.js +53 -57
- package/lib/components/Dropdown/Dropdown.js.map +1 -1
- package/lib/components/Dropdown/DropdownItem.js +40 -43
- package/lib/components/Dropdown/DropdownItem.js.map +1 -1
- package/lib/components/Dropdown/index.js +2 -10
- package/lib/components/Dropdown/index.js.map +1 -1
- package/lib/components/Modal/Modal.js +43 -45
- package/lib/components/Modal/Modal.js.map +1 -1
- package/lib/components/Modal/index.js +1 -8
- package/lib/components/Modal/index.js.map +1 -1
- package/lib/components/selectUtils.js +15 -20
- package/lib/components/selectUtils.js.map +1 -1
- package/lib/contexts/BaseColorContext.js +3 -5
- package/lib/contexts/BaseColorContext.js.map +1 -1
- package/lib/contexts/HoveredValueContext.js +3 -5
- package/lib/contexts/HoveredValueContext.js.map +1 -1
- package/lib/contexts/RootStylesContext.js +3 -5
- package/lib/contexts/RootStylesContext.js.map +1 -1
- package/lib/contexts/SelectedValueContext.js +3 -5
- package/lib/contexts/SelectedValueContext.js.map +1 -1
- package/lib/contexts/index.js +4 -14
- package/lib/contexts/index.js.map +1 -1
- package/lib/hooks/index.js +4 -14
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useInternalState.js +7 -9
- package/lib/hooks/useInternalState.js.map +1 -1
- package/lib/hooks/useOnClickOutside.js +6 -8
- package/lib/hooks/useOnClickOutside.js.map +1 -1
- package/lib/hooks/useOnWindowResize.js +7 -9
- package/lib/hooks/useOnWindowResize.js.map +1 -1
- package/lib/hooks/useQuill.js +111 -60
- package/lib/hooks/useQuill.js.map +1 -1
- package/lib/hooks/useSelectOnKeyDown.js +15 -17
- package/lib/hooks/useSelectOnKeyDown.js.map +1 -1
- package/lib/index.js +8 -22
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,107 +1,105 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
24
11
|
};
|
|
25
|
-
var
|
|
26
|
-
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
27
22
|
};
|
|
28
|
-
|
|
29
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
30
24
|
/* eslint-disable react/display-name */
|
|
31
25
|
// @ts-nocheck
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
26
|
+
import React, { useRef, useState } from 'react';
|
|
27
|
+
import { startOfMonth, startOfToday } from 'date-fns';
|
|
28
|
+
import { enUS } from 'date-fns/locale';
|
|
29
|
+
import { BaseColorContext, HoveredValueContext, SelectedValueContext, } from '../contexts';
|
|
30
|
+
import { useInternalState, useSelectOnKeyDown } from '../hooks';
|
|
31
|
+
import { defaultOptions, getEndDateByDropdownValue, getStartDateByDropdownValue, parseEndDate, parseStartDate, } from './dateRangePickerUtils';
|
|
32
|
+
import Calendar from './Calendar';
|
|
33
|
+
import DateRangePickerButton from './DateRangePickerButton';
|
|
34
|
+
import { DropdownItem } from '../components/Dropdown';
|
|
35
|
+
import Modal from '../components/Modal';
|
|
36
|
+
var DateRangePicker = React.forwardRef(function (props, ref) {
|
|
37
|
+
var _a, _b, _c;
|
|
38
|
+
var value = props.value, defaultValue = props.defaultValue, onValueChange = props.onValueChange, _d = props.enableDropdown, enableDropdown = _d === void 0 ? true : _d, options = props.options, _e = props.minDate, minDate = _e === void 0 ? null : _e, _f = props.maxDate, maxDate = _f === void 0 ? null : _f, _g = props.placeholder, placeholder = _g === void 0 ? 'Select' : _g, _h = props.dropdownPlaceholder, dropdownPlaceholder = _h === void 0 ? 'Select' : _h, _j = props.disabled, disabled = _j === void 0 ? false : _j, _k = props.color, color = _k === void 0 ? 'blue' : _k, _l = props.enableYearPagination, enableYearPagination = _l === void 0 ? false : _l, _m = props.locale, locale = _m === void 0 ? enUS : _m, className = props.className, theme = props.theme, other = __rest(props, ["value", "defaultValue", "onValueChange", "enableDropdown", "options", "minDate", "maxDate", "placeholder", "dropdownPlaceholder", "disabled", "color", "enableYearPagination", "locale", "className", "theme"]);
|
|
39
|
+
var TODAY = startOfToday();
|
|
40
|
+
var calendarRef = useRef(null);
|
|
41
|
+
var dropdownRef = useRef(null);
|
|
42
|
+
var _o = useInternalState(defaultValue, value), selectedValue = _o[0], setSelectedValue = _o[1];
|
|
43
|
+
var _p = useState(null), startOfCurrMonth = _p[0], setStartOfCurrMonth = _p[1];
|
|
44
|
+
var _q = useState(false), showCalendar = _q[0], setShowCalendar = _q[1];
|
|
45
|
+
var _r = useState(false), showDropdown = _r[0], setShowDropdown = _r[1];
|
|
46
|
+
var dropdownOptions = options !== null && options !== void 0 ? options : defaultOptions;
|
|
47
|
+
var selectedDropdownValue = selectedValue
|
|
48
|
+
? (_a = selectedValue[2]) !== null && _a !== void 0 ? _a : null
|
|
54
49
|
: null;
|
|
55
|
-
|
|
56
|
-
?
|
|
50
|
+
var selectedStartDate = selectedValue
|
|
51
|
+
? parseStartDate(selectedValue[0], minDate, selectedDropdownValue, dropdownOptions)
|
|
57
52
|
: null;
|
|
58
|
-
|
|
59
|
-
?
|
|
53
|
+
var selectedEndDate = selectedValue
|
|
54
|
+
? parseEndDate(selectedValue[1], maxDate, selectedDropdownValue, dropdownOptions)
|
|
60
55
|
: null;
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
var anchorDate = (_c = (_b = startOfCurrMonth !== null && startOfCurrMonth !== void 0 ? startOfCurrMonth : selectedEndDate) !== null && _b !== void 0 ? _b : selectedStartDate) !== null && _c !== void 0 ? _c : TODAY;
|
|
57
|
+
var handleDateClick = function (date) {
|
|
63
58
|
if (!selectedStartDate) {
|
|
64
|
-
onValueChange
|
|
59
|
+
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange([date, selectedEndDate, null]);
|
|
65
60
|
setSelectedValue([date, selectedEndDate, null]);
|
|
66
61
|
}
|
|
67
62
|
else if (selectedStartDate && !selectedEndDate) {
|
|
68
63
|
if (date < selectedStartDate) {
|
|
69
|
-
onValueChange
|
|
64
|
+
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange([date, selectedEndDate, null]);
|
|
70
65
|
setSelectedValue([date, selectedEndDate, null]);
|
|
71
66
|
// Selection complete
|
|
72
67
|
}
|
|
73
68
|
else {
|
|
74
|
-
onValueChange
|
|
69
|
+
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange([selectedStartDate, date, null]);
|
|
75
70
|
setSelectedValue([selectedStartDate, date, null]);
|
|
76
71
|
setShowCalendar(false);
|
|
77
72
|
}
|
|
78
73
|
}
|
|
79
74
|
else if (selectedStartDate && selectedEndDate) {
|
|
80
|
-
onValueChange
|
|
75
|
+
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange([date, null, null]);
|
|
81
76
|
setSelectedValue([date, null, null]);
|
|
82
77
|
}
|
|
83
78
|
};
|
|
84
|
-
|
|
79
|
+
var handleCalendarKeyDown = function (e) {
|
|
85
80
|
if (e.key === 'Escape') {
|
|
86
81
|
e.preventDefault();
|
|
87
82
|
setShowCalendar(false);
|
|
88
83
|
}
|
|
89
84
|
};
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
var handleDropdownOptionClick = function (dropdownValue) {
|
|
86
|
+
var selectedStartDate = getStartDateByDropdownValue(dropdownValue, dropdownOptions);
|
|
87
|
+
var selectedEndDate = getEndDateByDropdownValue(dropdownValue, dropdownOptions);
|
|
93
88
|
setSelectedValue([selectedStartDate, selectedEndDate, dropdownValue]);
|
|
94
|
-
onValueChange
|
|
95
|
-
setStartOfCurrMonth(
|
|
89
|
+
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange([selectedStartDate, selectedEndDate, dropdownValue]);
|
|
90
|
+
setStartOfCurrMonth(startOfMonth(selectedEndDate));
|
|
96
91
|
setShowDropdown(false);
|
|
97
92
|
};
|
|
98
|
-
|
|
99
|
-
return ((
|
|
93
|
+
var _s = useSelectOnKeyDown(handleDropdownOptionClick, dropdownOptions.map(function (option) { return option.value; }), showDropdown, setShowDropdown, selectedDropdownValue), hoveredDropdownValue = _s[0], handleDropdownKeyDown = _s[1];
|
|
94
|
+
return (_jsx(BaseColorContext.Provider, __assign({ value: color }, { children: _jsxs("div", __assign({ ref: ref, style: { position: 'relative', width: '100%' } }, other, { children: [_jsx(DateRangePickerButton, { value: [selectedStartDate, selectedEndDate, selectedDropdownValue], options: dropdownOptions, placeholder: placeholder, disabled: disabled, calendarRef: calendarRef, showCalendar: showCalendar, setShowCalendar: setShowCalendar, onCalendarKeyDown: handleCalendarKeyDown, enableDropdown: enableDropdown, dropdownRef: dropdownRef, showDropdown: showDropdown, setShowDropdown: setShowDropdown, onDropdownKeyDown: handleDropdownKeyDown, locale: locale, dropdownPlaceholder: dropdownPlaceholder, theme: theme }), _jsx(Modal, __assign({ theme: theme, showModal: showCalendar, setShowModal: setShowCalendar, parentRef: calendarRef, width: 288, maxHeight: "fit-content" }, { children: _jsx(Calendar, { enableYearPagination: enableYearPagination, anchorDate: anchorDate,
|
|
100
95
|
// setAnchorDate={setAnchorDate}
|
|
101
|
-
startDate: selectedStartDate, endDate: selectedEndDate, minDate: minDate, maxDate: maxDate, onDateClick: handleDateClick, locale: locale, setStartOfCurrMonth: setStartOfCurrMonth, theme: theme }) }), (
|
|
96
|
+
startDate: selectedStartDate, endDate: selectedEndDate, minDate: minDate, maxDate: maxDate, onDateClick: handleDateClick, locale: locale, setStartOfCurrMonth: setStartOfCurrMonth, theme: theme }) })), _jsx(Modal, __assign({ showModal: showDropdown, setShowModal: setShowDropdown, parentRef: dropdownRef, theme: theme }, { children: _jsx(SelectedValueContext.Provider, __assign({ value: {
|
|
102
97
|
selectedValue: selectedDropdownValue,
|
|
103
98
|
handleValueChange: handleDropdownOptionClick,
|
|
104
|
-
}, children: (
|
|
99
|
+
} }, { children: _jsx(HoveredValueContext.Provider, __assign({ value: { hoveredValue: hoveredDropdownValue } }, { children: dropdownOptions.map(function (_a, index) {
|
|
100
|
+
var value = _a.value, text = _a.text;
|
|
101
|
+
return (_jsx(DropdownItem, { value: value, text: text, theme: theme, lastItem: dropdownOptions.length - 1 === index }, value));
|
|
102
|
+
}) })) })) }))] })) })));
|
|
105
103
|
});
|
|
106
|
-
|
|
104
|
+
export default DateRangePicker;
|
|
107
105
|
//# sourceMappingURL=DateRangePicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateRangePicker.js","sourceRoot":"","sources":["../../src/DateRangePicker/DateRangePicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateRangePicker.js","sourceRoot":"","sources":["../../src/DateRangePicker/DateRangePicker.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAuC;AACvC,cAAc;AACd,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAO,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEhE,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,2BAA2B,EAC3B,YAAY,EACZ,cAAc,GACf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AAkCxC,IAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CACtC,UAAC,KAAK,EAAE,GAAG;;IAEP,IAAA,KAAK,GAgBH,KAAK,MAhBF,EACL,YAAY,GAeV,KAAK,aAfK,EACZ,aAAa,GAcX,KAAK,cAdM,EACb,KAaE,KAAK,eAbc,EAArB,cAAc,mBAAG,IAAI,KAAA,EACrB,OAAO,GAYL,KAAK,QAZA,EACP,KAWE,KAAK,QAXO,EAAd,OAAO,mBAAG,IAAI,KAAA,EACd,KAUE,KAAK,QAVO,EAAd,OAAO,mBAAG,I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,gBAE5C,eAAe,CAAC,GAAG,CAClB,UAAC,EAAsC,EAAE,KAAa;oCAAnD,KAAK,WAAA,EAAE,IAAI,UAAA;gCAA6C,OAAA,CACzD,KAAC,YAAY,IAEX,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,eAAe,CAAC,MAAM,GAAG,CAAC,KAAK,KAAK,IAJzC,KAAK,CAKV,CACH;4BAR0D,CAQ1D,CACF,IAC4B,IACD,IAC1B,KACJ,IACoB,CAC7B,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,30 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
Object.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { ArrowDownHeadIcon, CalendarIcon } from '../assets';
|
|
14
|
+
import { formatSelectedDates } from './dateRangePickerUtils';
|
|
15
|
+
import { hasValue } from '../components/selectUtils';
|
|
16
|
+
var DateRangePickerButton = function (_a) {
|
|
17
|
+
var _b;
|
|
18
|
+
var value = _a.value, options = _a.options, placeholder = _a.placeholder, disabled = _a.disabled, calendarRef = _a.calendarRef, showCalendar = _a.showCalendar, setShowCalendar = _a.setShowCalendar, onCalendarKeyDown = _a.onCalendarKeyDown, enableDropdown = _a.enableDropdown, dropdownRef = _a.dropdownRef, showDropdown = _a.showDropdown, setShowDropdown = _a.setShowDropdown, onDropdownKeyDown = _a.onDropdownKeyDown, locale = _a.locale, _c = _a.dropdownPlaceholder, dropdownPlaceholder = _c === void 0 ? 'Select' : _c, theme = _a.theme;
|
|
19
|
+
var startDate = value[0], endDate = value[1], dropdownValue = value[2];
|
|
20
|
+
var hasDateSelection = (startDate || endDate) !== null && (startDate || endDate) !== undefined;
|
|
21
|
+
var hasDropdownSelection = hasValue(dropdownValue);
|
|
22
|
+
var calendarText = hasDateSelection
|
|
23
|
+
? formatSelectedDates(startDate, endDate, locale)
|
|
13
24
|
: placeholder;
|
|
14
|
-
|
|
15
|
-
? String(options.find(option
|
|
25
|
+
var dropdownText = dropdownValue
|
|
26
|
+
? String((_b = options.find(function (option) { return option.value === dropdownValue; })) === null || _b === void 0 ? void 0 : _b.text)
|
|
16
27
|
: dropdownPlaceholder;
|
|
17
|
-
return ((
|
|
28
|
+
return (_jsxs("div", __assign({ style: {
|
|
18
29
|
display: 'flex',
|
|
19
30
|
alignItems: 'center',
|
|
20
31
|
justifyContent: 'space-between',
|
|
21
32
|
borderRadius: '0.375rem',
|
|
22
|
-
background: theme
|
|
23
|
-
fontFamily: theme
|
|
33
|
+
background: theme === null || theme === void 0 ? void 0 : theme.backgroundColor,
|
|
34
|
+
fontFamily: theme === null || theme === void 0 ? void 0 : theme.fontFamily,
|
|
24
35
|
boxShadow: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
|
|
25
|
-
}, children: [(
|
|
26
|
-
fontFamily: theme
|
|
27
|
-
borderColor: theme
|
|
36
|
+
} }, { children: [_jsxs("button", __assign({ type: "button", style: {
|
|
37
|
+
fontFamily: theme === null || theme === void 0 ? void 0 : theme.fontFamily,
|
|
38
|
+
borderColor: (theme === null || theme === void 0 ? void 0 : theme.borderColor) || '#E5E7EB',
|
|
28
39
|
borderStyle: 'solid',
|
|
29
40
|
borderWidth: 1,
|
|
30
41
|
borderRadius: '0.375rem',
|
|
@@ -32,7 +43,7 @@ const DateRangePickerButton = ({ value, options, placeholder, disabled, calendar
|
|
|
32
43
|
borderRight: 'none',
|
|
33
44
|
borderTopRightRadius: 0,
|
|
34
45
|
borderBottomRightRadius: 0,
|
|
35
|
-
color: theme
|
|
46
|
+
color: theme === null || theme === void 0 ? void 0 : theme.primaryTextColor,
|
|
36
47
|
cursor: 'pointer',
|
|
37
48
|
display: 'flex',
|
|
38
49
|
alignItems: 'center',
|
|
@@ -40,14 +51,14 @@ const DateRangePickerButton = ({ value, options, placeholder, disabled, calendar
|
|
|
40
51
|
overflow: 'hidden',
|
|
41
52
|
textOverflow: 'ellipsis',
|
|
42
53
|
whiteSpace: 'nowrap',
|
|
43
|
-
background: theme
|
|
44
|
-
fontWeight: theme
|
|
45
|
-
fontSize: theme
|
|
54
|
+
background: theme === null || theme === void 0 ? void 0 : theme.backgroundColor,
|
|
55
|
+
fontWeight: (theme === null || theme === void 0 ? void 0 : theme.fontWeightMedium) || '500',
|
|
56
|
+
fontSize: (theme === null || theme === void 0 ? void 0 : theme.fontSizeSmall) || '0.875rem',
|
|
46
57
|
paddingLeft: 10,
|
|
47
58
|
// borderRight: enableDropdown
|
|
48
59
|
// ? border.none.right
|
|
49
60
|
// : twMerge(borderRadius.md.right, border.sm.right),
|
|
50
|
-
}, ref: calendarRef, onClick: ()
|
|
61
|
+
}, ref: calendarRef, onClick: function () { return setShowCalendar(!showCalendar); }, onKeyDown: onCalendarKeyDown,
|
|
51
62
|
// className={twMerge(
|
|
52
63
|
// 'qq-flex qq-items-center qq-w-full qq-truncate focus:qq-outline-none focus:qq-ring-2',
|
|
53
64
|
// getSelectButtonColors(hasDateSelection, disabled),
|
|
@@ -61,25 +72,25 @@ const DateRangePickerButton = ({ value, options, placeholder, disabled, calendar
|
|
|
61
72
|
// borderRadius.md.left,
|
|
62
73
|
// border.sm.all
|
|
63
74
|
// )}
|
|
64
|
-
disabled: disabled, children: [(
|
|
75
|
+
disabled: disabled }, { children: [_jsx(CalendarIcon, { style: {
|
|
65
76
|
flex: 'none',
|
|
66
|
-
color: theme
|
|
77
|
+
color: theme === null || theme === void 0 ? void 0 : theme.secondaryTextColor,
|
|
67
78
|
height: '1.25rem',
|
|
68
79
|
width: '1.25rem',
|
|
69
80
|
// marginLeft: '0.125rem',
|
|
70
81
|
marginRight: '0.75rem',
|
|
71
|
-
}, "aria-hidden": "true" }), (
|
|
82
|
+
}, "aria-hidden": "true" }), _jsx("p", __assign({ style: {
|
|
72
83
|
margin: 0,
|
|
73
|
-
fontFamily: theme
|
|
74
|
-
color: theme
|
|
84
|
+
fontFamily: theme === null || theme === void 0 ? void 0 : theme.fontFamily,
|
|
85
|
+
color: theme === null || theme === void 0 ? void 0 : theme.primaryTextColor,
|
|
75
86
|
overflow: 'hidden',
|
|
76
87
|
textOverflow: 'ellipsis',
|
|
77
88
|
whiteSpace: 'nowrap',
|
|
78
|
-
fontWeight: theme
|
|
79
|
-
fontSize: theme
|
|
80
|
-
}, children: calendarText })] }), enableDropdown ? ((
|
|
89
|
+
fontWeight: (theme === null || theme === void 0 ? void 0 : theme.fontWeightMedium) || '500',
|
|
90
|
+
fontSize: (theme === null || theme === void 0 ? void 0 : theme.fontSizeSmall) || '0.875rem',
|
|
91
|
+
} }, { children: calendarText }))] })), enableDropdown ? (_jsxs("button", __assign({ type: "button", style: {
|
|
81
92
|
// fontFamily: theme?.fontFamily,
|
|
82
|
-
borderColor: theme
|
|
93
|
+
borderColor: (theme === null || theme === void 0 ? void 0 : theme.borderColor) || '#E5E7EB',
|
|
83
94
|
borderStyle: 'solid',
|
|
84
95
|
borderWidth: 1,
|
|
85
96
|
cursor: 'pointer',
|
|
@@ -97,10 +108,10 @@ const DateRangePickerButton = ({ value, options, placeholder, disabled, calendar
|
|
|
97
108
|
borderBottomLeftRadius: 0,
|
|
98
109
|
justifyContent: 'space-between',
|
|
99
110
|
alignItems: 'center',
|
|
100
|
-
background: theme
|
|
101
|
-
fontSize: theme
|
|
111
|
+
background: theme === null || theme === void 0 ? void 0 : theme.backgroundColor,
|
|
112
|
+
fontSize: (theme === null || theme === void 0 ? void 0 : theme.fontSizeSmall) || '0.875rem',
|
|
102
113
|
// fontWeight: theme?.fontWeightMedium || '800',
|
|
103
|
-
}, ref: dropdownRef, onClick: ()
|
|
114
|
+
}, ref: dropdownRef, onClick: function () { return setShowDropdown(!showDropdown); },
|
|
104
115
|
// className={twMerge(
|
|
105
116
|
// 'qq-inline-flex qq-justify-between qq-w-48 qq-truncate focus:qq-outline-none focus:qq-ring-2',
|
|
106
117
|
// getSelectButtonColors(hasDropdownSelection, disabled),
|
|
@@ -112,24 +123,24 @@ const DateRangePickerButton = ({ value, options, placeholder, disabled, calendar
|
|
|
112
123
|
// borderRadius.md.right,
|
|
113
124
|
// border.sm.all
|
|
114
125
|
// )}
|
|
115
|
-
onKeyDown: onDropdownKeyDown, disabled: disabled, children: [(
|
|
126
|
+
onKeyDown: onDropdownKeyDown, disabled: disabled }, { children: [_jsx("p", __assign({ style: {
|
|
116
127
|
margin: 0,
|
|
117
|
-
fontFamily: theme
|
|
128
|
+
fontFamily: theme === null || theme === void 0 ? void 0 : theme.fontFamily,
|
|
118
129
|
// fontFamily: 'Avenir',
|
|
119
|
-
color: theme
|
|
130
|
+
color: (theme === null || theme === void 0 ? void 0 : theme.primaryTextColor) || '#364153',
|
|
120
131
|
overflow: 'hidden',
|
|
121
132
|
textOverflow: 'ellipsis',
|
|
122
133
|
whiteSpace: 'nowrap',
|
|
123
|
-
fontWeight: theme
|
|
124
|
-
fontSize: theme
|
|
134
|
+
fontWeight: (theme === null || theme === void 0 ? void 0 : theme.fontWeightMedium) || '500',
|
|
135
|
+
fontSize: (theme === null || theme === void 0 ? void 0 : theme.fontSizeSmall) || '0.875rem',
|
|
125
136
|
// background: 'red',
|
|
126
|
-
}, children: dropdownText }), (
|
|
137
|
+
} }, { children: dropdownText })), _jsx(ArrowDownHeadIcon, { style: {
|
|
127
138
|
height: '1.25rem',
|
|
128
139
|
width: '1.25rem',
|
|
129
140
|
flex: 'none',
|
|
130
|
-
color: theme
|
|
141
|
+
color: theme === null || theme === void 0 ? void 0 : theme.secondaryTextColor,
|
|
131
142
|
marginRight: '-0.25rem',
|
|
132
|
-
}, "aria-hidden": "true" })] })) : null] }));
|
|
143
|
+
}, "aria-hidden": "true" })] }))) : null] })));
|
|
133
144
|
};
|
|
134
|
-
|
|
145
|
+
export default DateRangePickerButton;
|
|
135
146
|
//# sourceMappingURL=DateRangePickerButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateRangePickerButton.js","sourceRoot":"","sources":["../../src/DateRangePicker/DateRangePickerButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateRangePickerButton.js","sourceRoot":"","sources":["../../src/DateRangePicker/DateRangePickerButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAEA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAqBrD,IAAM,qBAAqB,GAAG,UAAC,EAiBF;;QAhB3B,KAAK,WAAA,EACL,OAAO,aAAA,EACP,WAAW,iBAAA,EACX,QAAQ,cAAA,EACR,WAAW,iBAAA,EACX,YAAY,kBAAA,EACZ,eAAe,qBAAA,EACf,iBAAiB,uBAAA,EACjB,cAAc,oBAAA,EACd,WAAW,iBAAA,EACX,YAAY,kBAAA,EACZ,eAAe,qBAAA,EACf,iBAAiB,uBAAA,EACjB,MAAM,YAAA,EACN,2BAA8B,EAA9B,mBAAmB,mBAAG,QAAQ,KAAA,EAC9B,KAAK,WAAA;IAEE,IAAA,SAAS,GAA4B,KAAK,GAAjC,EAAE,OAAO,GAAmB,KAAK,GAAxB,EAAE,aAAa,GAAI,KAAK,GA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