@alixpartners/ui-components 1.20.63 → 1.20.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/.DS_Store +0 -0
  2. package/CHANGELOG.md +12 -0
  3. package/dist/esm/components/ApDatePicker/ApDatePicker.js +94 -0
  4. package/dist/esm/components/ApDatePicker/ApDatePicker.js.map +1 -0
  5. package/dist/esm/components/ApDatePicker/ApDatePicker.styles.js +36 -0
  6. package/dist/esm/components/ApDatePicker/ApDatePicker.styles.js.map +1 -0
  7. package/dist/esm/components/ApDatePicker/NavBar.js +27 -0
  8. package/dist/esm/components/ApDatePicker/NavBar.js.map +1 -0
  9. package/dist/esm/components/ApDatePicker/YearMonthForm.js +44 -0
  10. package/dist/esm/components/ApDatePicker/YearMonthForm.js.map +1 -0
  11. package/dist/esm/components/ApDatePicker/index.js +5 -0
  12. package/dist/esm/components/ApDatePicker/index.js.map +1 -0
  13. package/dist/esm/components/ApDatePicker/utils.js +23 -0
  14. package/dist/esm/components/ApDatePicker/utils.js.map +1 -0
  15. package/dist/esm/index.js +1 -0
  16. package/dist/esm/index.js.map +1 -1
  17. package/dist/types/components/ApDatePicker/ApDatePicker.d.ts +26 -0
  18. package/dist/types/components/ApDatePicker/ApDatePicker.styles.d.ts +18 -0
  19. package/dist/types/components/ApDatePicker/NavBar.d.ts +10 -0
  20. package/dist/types/components/ApDatePicker/YearMonthForm.d.ts +9 -0
  21. package/dist/types/components/ApDatePicker/index.d.ts +1 -0
  22. package/dist/types/components/ApDatePicker/utils.d.ts +5 -0
  23. package/dist/types/index.d.ts +1 -0
  24. package/dist/umd/index.js +151 -15
  25. package/package.json +3 -1
  26. package/dist/esm/components/ApWidgets/ApCustomKPIWidget/ApCustomKPIWidget.js +0 -59
  27. package/dist/esm/components/ApWidgets/ApCustomKPIWidget/ApCustomKPIWidget.js.map +0 -1
  28. package/dist/esm/components/ApWidgets/ApCustomKPIWidget/index.js +0 -14
  29. package/dist/esm/components/ApWidgets/ApCustomKPIWidget/index.js.map +0 -1
  30. package/dist/esm/components/ApWidgets/ApCustomKPIWidget/styles.js +0 -20
  31. package/dist/esm/components/ApWidgets/ApCustomKPIWidget/styles.js.map +0 -1
  32. package/dist/esm/components/ApWidgets/ApWidgetBarChart/ApWidgetBarChart.js +0 -113
  33. package/dist/esm/components/ApWidgets/ApWidgetBarChart/ApWidgetBarChart.js.map +0 -1
  34. package/dist/esm/components/ApWidgets/ApWidgetBarChart/index.js +0 -14
  35. package/dist/esm/components/ApWidgets/ApWidgetBarChart/index.js.map +0 -1
  36. package/dist/esm/components/ApWidgets/ApWidgetBarChart/styles.js +0 -11
  37. package/dist/esm/components/ApWidgets/ApWidgetBarChart/styles.js.map +0 -1
  38. package/dist/types/components/ApWidgets/ApCustomKPIWidget/ApCustomKPIWidget.d.ts +0 -19
  39. package/dist/types/components/ApWidgets/ApCustomKPIWidget/index.d.ts +0 -1
  40. package/dist/types/components/ApWidgets/ApCustomKPIWidget/styles.d.ts +0 -9
  41. package/dist/types/components/ApWidgets/ApWidgetBarChart/ApWidgetBarChart.d.ts +0 -10
  42. package/dist/types/components/ApWidgets/ApWidgetBarChart/index.d.ts +0 -1
  43. package/dist/types/components/ApWidgets/ApWidgetBarChart/styles.d.ts +0 -1
package/.DS_Store ADDED
Binary file
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 1.20.66 (March 24, 2022)
2
+
3
+ - Update `ApDatePicker` year selection
4
+
5
+ ## 1.20.65 (March 24, 2022)
6
+
7
+ - Export `ApDatePicker` component
8
+
9
+ ## 1.20.64 (March 23, 2022)
10
+
11
+ - Added `ApDatePicker` component
12
+
1
13
  ## 1.20.63 (February 7, 2022)
2
14
 
3
15
  - Updated `ApIcon` component, added `backup_restore` icon
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ extendStatics(d, b);
11
+ function __() { this.constructor = d; }
12
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
+ };
14
+ })();
15
+ var __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.ApDatePicker = void 0;
28
+ var React = require("react");
29
+ var DayPicker = require("react-day-picker/DayPicker");
30
+ var ApDatePicker_styles_1 = require("./ApDatePicker.styles");
31
+ var NavBar_1 = require("./NavBar");
32
+ var utils_1 = require("./utils");
33
+ var YearMonthForm_1 = require("./YearMonthForm");
34
+ var ApDatePicker = /** @class */ (function (_super) {
35
+ __extends(ApDatePicker, _super);
36
+ function ApDatePicker(props) {
37
+ var _this = _super.call(this, props) || this;
38
+ _this.handleDayChange = function (date) {
39
+ _this.props.onChange([date]);
40
+ };
41
+ _this.handleDayEnter = function (date) {
42
+ var range = _this.props.range;
43
+ _this.setState({
44
+ hoverRange: range ? utils_1.getWeekRange(date, range) : {
45
+ from: date,
46
+ to: date,
47
+ },
48
+ });
49
+ };
50
+ _this.handleDayLeave = function () {
51
+ _this.setState({
52
+ hoverRange: undefined,
53
+ });
54
+ };
55
+ _this.handleYearMonthChange = function (month) {
56
+ _this.setState({ month: month });
57
+ };
58
+ var isSelectedDays = Boolean(props.selectedDays.length);
59
+ _this.state = {
60
+ hoverRange: {
61
+ from: new Date(),
62
+ to: new Date(),
63
+ },
64
+ month: isSelectedDays ? props.selectedDays[0] : new Date(),
65
+ };
66
+ return _this;
67
+ }
68
+ ApDatePicker.prototype.render = function () {
69
+ var _this = this;
70
+ var _a = this.props, selectedDays = _a.selectedDays, srcRange = _a.srcRange;
71
+ var _b = this.state, hoverRange = _b.hoverRange, month = _b.month;
72
+ var daysRangeSelected = selectedDays.length > 1;
73
+ var modifiers = {
74
+ hoverRange: hoverRange,
75
+ hoverRangeStart: hoverRange && hoverRange.from,
76
+ hoverRangeEnd: hoverRange && hoverRange.to,
77
+ };
78
+ if (daysRangeSelected) {
79
+ modifiers = __assign(__assign({}, modifiers), { selectedRange: {
80
+ from: selectedDays[0],
81
+ to: selectedDays[selectedDays.length - 1],
82
+ }, selectedRangeStart: selectedDays[0], selectedRangeEnd: selectedDays[selectedDays.length - 1] });
83
+ }
84
+ return (React.createElement(ApDatePicker_styles_1.Container, null,
85
+ React.createElement(DayPicker.default, __assign({ month: month, firstDayOfWeek: 1, showOutsideDays: true, pagedNavigation: true, modifiers: modifiers, onDayClick: this.handleDayChange, onDayMouseEnter: this.handleDayEnter, onDayMouseLeave: this.handleDayLeave, onMonthChange: function (m) { return _this.setState({ month: m }); }, captionElement: function (_a) {
86
+ var date = _a.date, localeUtils = _a.localeUtils;
87
+ return (React.createElement(YearMonthForm_1.YearMonthForm, { date: date, localeUtils: localeUtils, srcRange: srcRange, onChange: _this.handleYearMonthChange }));
88
+ }, navbarElement: function (props) { return (React.createElement(NavBar_1.Navbar, __assign({}, props, { srcRange: srcRange, date: month }))); } }, this.props))));
89
+ };
90
+ return ApDatePicker;
91
+ }(React.Component));
92
+ exports.ApDatePicker = ApDatePicker;
93
+ ;
94
+ //# sourceMappingURL=ApDatePicker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApDatePicker.js","sourceRoot":"","sources":["../../../../src/components/ApDatePicker/ApDatePicker.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAA+B;AAC/B,sDAAwD;AACxD,6DAAk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GACnC,CACF;gBAP0C,CAO1C,EACD,aAAa,EAAE,UAAC,KAAK,IAAK,OAAA,CAAC,oBAAC,eAAM,eAAK,KAAK,IAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC,EAAxD,CAAwD,IAC9E,IAAI,CAAC,KAAK,EACb,CACS,CACZ,CAAC;IACH,CAAC;IACF,mBAAC;AAAD,CAAC,AAvFD,CAAkC,KAAK,CAAC,SAAS,GAuFhD;AAvFY,oCAAY;AAuFxB,CAAC"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.Container = exports.PickerPeriod = exports.PickerGrid = exports.PickerContent = exports.MenuContent = exports.CaretIcon = exports.PeriodButton = exports.Wrapper = exports.PrevNavButton = exports.NextNavButton = exports.NavButton = exports.NavContainer = exports.MonthYearContainer = exports.Dropdown = void 0;
8
+ var styled_components_1 = require("styled-components");
9
+ var ApButtons_1 = require("../../components/ApButtons");
10
+ var ApSimpleDropdown_1 = require("../../components/ApSimpleDropdown");
11
+ var theme_1 = require("../../utils/theme");
12
+ var ApIcon_1 = require("../ApIcon");
13
+ exports.Dropdown = styled_components_1.default(ApSimpleDropdown_1.ApSimpleDropdown)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\tmax-width: 80px;\n"], ["\n\tdisplay: flex;\n\tmax-width: 80px;\n"])));
14
+ exports.MonthYearContainer = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\tposition: relative;\n\tdisplay: flex;\n\theight: 40px;\n\twidth: calc(100% - 84px);\n"], ["\n\tposition: relative;\n\tdisplay: flex;\n\theight: 40px;\n\twidth: calc(100% - 84px);\n"])));
15
+ exports.NavContainer = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\tposition: relative;\n\tright: 0px;\n\ttop: 18px;\n"], ["\n\tposition: relative;\n\tright: 0px;\n\ttop: 18px;\n"])));
16
+ exports.NavButton = styled_components_1.default(ApButtons_1.ApButtonIcon)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n\tposition: absolute;\n\ttop: 0px;\n"], ["\n\tposition: absolute;\n\ttop: 0px;\n"])));
17
+ exports.NextNavButton = styled_components_1.default(exports.NavButton)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n\tright: 16px;\n"], ["\n\tright: 16px;\n"])));
18
+ exports.PrevNavButton = styled_components_1.default(exports.NavButton)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n\tright: 48px;\n"], ["\n\tright: 48px;\n"])));
19
+ exports.Wrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n\tmax-width: calc(100% - 40px);\n\tdisplay: flex;\n"], ["\n\tmax-width: calc(100% - 40px);\n\tdisplay: flex;\n"])));
20
+ exports.PeriodButton = styled_components_1.default(ApButtons_1.ApButtonSecondary)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n\ttext-transform: none;\n\tposition: relative;\n\tpadding-right: 24px;\n\tsvg.ap-icon {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\ttop: 0;\n\t}\n"], ["\n\ttext-transform: none;\n\tposition: relative;\n\tpadding-right: 24px;\n\tsvg.ap-icon {\n\t\tposition: absolute;\n\t\tright: 0;\n\t\ttop: 0;\n\t}\n"])));
21
+ exports.CaretIcon = styled_components_1.default(ApIcon_1.ApIcon)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n\t", "\n"], ["\n\t",
22
+ "\n"])), function (_a) {
23
+ var rotate = _a.rotate;
24
+ return rotate && styled_components_1.css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n\t\t\ttransform: rotate(180deg);\n "], ["\n\t\t\ttransform: rotate(180deg);\n "])));
25
+ });
26
+ exports.MenuContent = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n\tposition: absolute;\n top: 44px;\n left: -16px;\n\tpadding: 16px 24px 8px;\n\tdisplay: flex;\n\tflex-direction: column;\n\theight: 233px;\n\twidth: calc(100% + 100px);\n\tbox-sizing: border-box;\n\tfont-size: 13px;\n\tletter-spacing: 0.3px;\n\ttext-transform: uppercase;\n\tbackground-color: ", ";\n\tz-index: 1;\n"], ["\n\tposition: absolute;\n top: 44px;\n left: -16px;\n\tpadding: 16px 24px 8px;\n\tdisplay: flex;\n\tflex-direction: column;\n\theight: 233px;\n\twidth: calc(100% + 100px);\n\tbox-sizing: border-box;\n\tfont-size: 13px;\n\tletter-spacing: 0.3px;\n\ttext-transform: uppercase;\n\tbackground-color: ", ";\n\tz-index: 1;\n"])), theme_1.colors.white);
27
+ exports.PickerContent = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n\tdisplay: flex;\n\talign-items: center;\n\tcolor: ", ";\n"], ["\n\tdisplay: flex;\n\talign-items: center;\n\tcolor: ", ";\n"])), theme_1.colors.grey7);
28
+ exports.PickerGrid = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n\tdisplay: grid;\n grid-template-columns: repeat(auto-fill,78px);\n grid-auto-rows: 36px;\n row-gap: 16px;\n width: 100%;\n"], ["\n\tdisplay: grid;\n grid-template-columns: repeat(auto-fill,78px);\n grid-auto-rows: 36px;\n row-gap: 16px;\n width: 100%;\n"])));
29
+ exports.PickerPeriod = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n\tcursor: pointer;\n\tfont-weight: 500;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\n\t", "\n\n\t&:hover {\n\t\tborder: 1px solid ", ";\n\t}\n"], ["\n\tcursor: pointer;\n\tfont-weight: 500;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\n\t",
30
+ "\n\n\t&:hover {\n\t\tborder: 1px solid ", ";\n\t}\n"])), function (_a) {
31
+ var active = _a.active;
32
+ return active && styled_components_1.css(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n background-color: ", ";\n color: ", ";\n "], ["\n background-color: ", ";\n color: ", ";\n "])), theme_1.colors.green1, theme_1.colors.white);
33
+ }, theme_1.colors.green1);
34
+ exports.Container = styled_components_1.default.div(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n\tdisplay: inline-block;\n\tbox-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.2);\n\t/* DayPicker styles */\n\n\t.DayPicker {\n\t\tdisplay: inline-block;\n\t\tfont-size: 1rem;\n\t}\n\n\t.DayPicker-wrapper {\n\t\tposition: relative;\n\n\t\tflex-direction: row;\n\t\tpadding-bottom: 1em;\n\n\t\t-webkit-user-select: none;\n\n\t\t\t-moz-user-select: none;\n\n\t\t\t\t-ms-user-select: none;\n\n\t\t\t\t\t\tuser-select: none;\n\t}\n\n\t.DayPicker-Months {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tjustify-content: center;\n\t}\n\n\t.DayPicker-Month {\n\t\tdisplay: table;\n\t\tmargin: 0 1em;\n\t\tmargin-top: 1em;\n\t\tborder-spacing: 0;\n\t\tborder-collapse: collapse;\n\n\t\t-webkit-user-select: none;\n\n\t\t\t-moz-user-select: none;\n\n\t\t\t\t-ms-user-select: none;\n\n\t\t\t\t\t\tuser-select: none;\n\t}\n\n\t.DayPicker-NavBar {\n\t}\n\n\t.DayPicker-NavButton {\n\t\tposition: absolute;\n\t\ttop: 1em;\n\t\tright: 1.5em;\n\t\tleft: auto;\n\n\t\tdisplay: inline-block;\n\t\tmargin-top: 2px;\n\t\twidth: 1.25em;\n\t\theight: 1.25em;\n\t\tbackground-position: center;\n\t\tbackground-size: 50%;\n\t\tbackground-repeat: no-repeat;\n\t\tcolor: #8B9898;\n\t\tcursor: pointer;\n\t}\n\n\t.DayPicker-NavButton:hover {\n\t\topacity: 0.8;\n\t}\n\n\t.DayPicker-NavButton--prev {\n\t\tmargin-right: 1.5em;\n\t\tbackground-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAVVJREFUWAnN2G0KgjAYwPHpGfRkaZeqvgQaK+hY3SUHrk1YzNLay/OiEFp92I+/Mp2F2Mh2lLISWnflFjzH263RQjzMZ19wgs73ez0o1WmtW+dgA01VxrE3p6l2GLsnBy1VYQOtVSEH/atCCgqpQgKKqYIOiq2CBkqtggLKqQIKgqgCBjpJ2Y5CdJ+zrT9A7HHSTA1dxUdHgzCqJIEwq0SDsKsEg6iqBIEoq/wEcVRZBXFV+QJxV5mBtlDFB5VjYTaGZ2sf4R9PM7U9ZU+lLuaetPP/5Die3ToO1+u+MKtHs06qODB2zBnI/jBd4MPQm1VkY79Tb18gB+C62FdBFsZR6yeIo1YQiLJWMIiqVjQIu1YSCLNWFgijVjYIuhYYCKoWKAiiFgoopxYaKLUWOii2FgkophYp6F3r42W5A9s9OcgNvva8xQaysKXlFytoqdYmQH6tF3toSUo0INq9AAAAAElFTkSuQmCC');\n\t}\n\n\t.DayPicker-NavButton--next {\n\t\tbackground-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAXRJREFUWAnN119ugjAcwPHWzJ1gnmxzB/BBE0n24m4xfNkTaOL7wOtsl3AXMMb+Vjaa1BG00N8fSEibPpAP3xAKKs2yjzTPH9RAjhEo9WzPr/Vm8zgE0+gXATAxxuxtqeJ9t5tIwv5AtQAApsfT6TPdbp+kUBcgVwvO51KqVhMkXKsVJFXrOkigVhCIs1Y4iKlWZxB1rX4gwlpRIIpa8SDkWmggrFq4IIRaJKCYWnSgnrXIQV1r8YD+1Vrn+bReagysIFfLABRt31v8oBu1xEBttfRbltmfjgEcWh9snUS2kNdBK6WN1vrOWxObWsz+fjxevsxmB1GQDfINWiev83nhaoiB/CoOU438oPrhXS0WpQ9xc1ZQWxWHqUYe0I0qrKCQKjygDlXIQV2r0IF6ViEBxVTBBSFUQQNhVYkHIVeJAtkNsbQ7c1LtzP6FsObhb2rCKv7NBIGoq4SDmKoEgTirXAcJVGkFSVVpgoSrXICGUMUH/QBZNSUy5XWUhwAAAABJRU5ErkJggg==');\n\t}\n\n\t.DayPicker-NavButton--interactionDisabled {\n\t\tdisplay: none;\n\t}\n\n\t.DayPicker-Caption {\n\t\tdisplay: table-caption;\n\t\tmargin-bottom: 0.5em;\n\t\tpadding: 0 0.5em;\n\t\ttext-align: left;\n\t}\n\n\t.DayPicker-Caption > div {\n\t\tfont-weight: 500;\n\t\tfont-size: 1.15em;\n\t}\n\n\t.DayPicker-Weekdays {\n\t\tdisplay: table-header-group;\n\t\tmargin-top: 1em;\n\t}\n\n\t.DayPicker-WeekdaysRow {\n\t\tdisplay: table-row;\n\t}\n\n\t.DayPicker-Weekday {\n\t\tdisplay: table-cell;\n\t\tpadding: 0.5em;\n\t\tcolor: #8B9898;\n\t\ttext-align: center;\n\t\tfont-size: 0.875em;\n\t}\n\n\t.DayPicker-Weekday abbr[title] {\n\t\tborder-bottom: none;\n\t\ttext-decoration: none;\n\t}\n\n\t.DayPicker-Body {\n\t\tdisplay: table-row-group;\n\t}\n\n\t.DayPicker-Week {\n\t\tdisplay: table-row;\n\t}\n\n\t.DayPicker-Day {\n\t\tdisplay: table-cell;\n\t\tpadding: 0.5em;\n\t\tborder-radius: 50%;\n\t\tvertical-align: middle;\n\t\ttext-align: center;\n\t\tcursor: pointer;\n\t}\n\n\t.DayPicker-WeekNumber {\n\t\tdisplay: table-cell;\n\t\tpadding: 0.5em;\n\t\tmin-width: 1em;\n\t\tborder-right: 1px solid #EAECEC;\n\t\tcolor: #8B9898;\n\t\tvertical-align: middle;\n\t\ttext-align: right;\n\t\tfont-size: 0.75em;\n\t\tcursor: pointer;\n\t}\n\n\t.DayPicker--interactionDisabled .DayPicker-Day {\n\t\tcursor: default;\n\t}\n\n\t.DayPicker-Footer {\n\t\tpadding-top: 0.5em;\n\t}\n\n\t.DayPicker-TodayButton {\n\t\tborder: none;\n\t\tbackground-color: transparent;\n\t\tbackground-image: none;\n\t\tbox-shadow: none;\n\t\tcolor: #4A90E2;\n\t\tfont-size: 0.875em;\n\t\tcursor: pointer;\n\t}\n\n\t/* Default modifiers */\n\n\t.DayPicker-Day--today {\n\t\tcolor: #D0021B;\n\t\tfont-weight: 700;\n\t}\n\n\t.DayPicker-Day--outside {\n\t\tcolor: #8B9898;\n\t\tcursor: default;\n\t}\n\n\t.DayPicker-Day--disabled {\n\t\tcolor: #DCE0E0;\n\t\tcursor: default;\n\t\t/* background-color: #eff1f1; */\n\t}\n\n\t/* Example modifiers */\n\n\t.DayPicker-Day--sunday {\n\t\tbackground-color: #F7F8F8;\n\t}\n\n\t.DayPicker-Day--sunday:not(.DayPicker-Day--today) {\n\t\tcolor: #DCE0E0;\n\t}\n\n\t.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside) {\n\t\tposition: relative;\n\n\t\tbackground-color: #4A90E2;\n\t\tcolor: #F0F8FF;\n\t}\n\n\t.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside):hover {\n\t\tbackground-color: #51A0FA;\n\t}\n\n\t.DayPicker:not(.DayPicker--interactionDisabled)\n\t\t.DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover {\n\t\tbackground-color: #F0F8FF;\n\t}\n\n\t/* DayPickerInput */\n\n\t.DayPickerInput {\n\t\tdisplay: inline-block;\n\t}\n\n\t.DayPickerInput-OverlayWrapper {\n\t\tposition: relative;\n\t}\n\n\t.DayPickerInput-Overlay {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tz-index: 1;\n\n\t\tbackground: white;\n\t\tbox-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);\n\t}\n\n\t.DayPicker-Month {\n\t\tborder-collapse: separate;\n\t}\n\t.DayPicker-WeekNumber {\n\t\toutline: none;\n\t}\n\t.DayPicker-Day {\n\t\toutline: none;\n\t\tborder: 1px solid ", ";\n\t\tborder-radius: 0;\n\t}\n\t.DayPicker-Day--hoverRange {\n\t\tbackground-color: ", " !important;\n\t}\n\n\t.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside),\n\t.DayPicker-Day--selectedRange {\n\t\tbackground-color: ", " !important;\n\t\tcolor: ", ";\n\t\tborder-top-color: ", ";\n\t\tborder-bottom-color: ", ";\n\t\tborder-left-color: ", ";\n\t\tborder-right-color: ", ";\n\t}\n\n\t.DayPicker-Day--selectedRangeStart {\n\t\tbackground-color: ", " !important;\n\t\tborder-left: 1px solid ", ";\n\t\tcolors: ", ";\n\t}\n\n\t.DayPicker-Day--selectedRangeEnd {\n\t\tbackground-color: ", " !important;\n\t\tborder-right: 1px solid ", ";\n\t\tcolors: ", ";\n\t}\n\n\t.DayPicker-Day--selectedRange:not(.DayPicker-Day--outside).DayPicker-Day--selected,\n\t.DayPicker-Day--hoverRange:not(.DayPicker-Day--outside).DayPicker-Day--selected {\n\t\tborder-radius: 0 !important;\n\t}\n\t.DayPicker:not(.DayPicker--interactionDisabled) .DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover {\n\t\tbackground-color: ", ";\n\t}\n\t.DayPicker-Day--hoverRange:hover {\n\t\tborder-radius: 0 !important;\n\t}\n\n\t.DayPicker-Day--today {\n\t\tcolor: ", ";\n\t}\n\n\t.DayPicker-Weekday {\n\t\tcolor: ", ";\n\t\tfont-size: 13px;\n\t\tfont-weight: 500;\n\t}\n\n\t.DayPicker-NavButton {\n\t\ttop: 24px;\n\t}\n"], ["\n\tdisplay: inline-block;\n\tbox-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.2);\n\t/* DayPicker styles */\n\n\t.DayPicker {\n\t\tdisplay: inline-block;\n\t\tfont-size: 1rem;\n\t}\n\n\t.DayPicker-wrapper {\n\t\tposition: relative;\n\n\t\tflex-direction: row;\n\t\tpadding-bottom: 1em;\n\n\t\t-webkit-user-select: none;\n\n\t\t\t-moz-user-select: none;\n\n\t\t\t\t-ms-user-select: none;\n\n\t\t\t\t\t\tuser-select: none;\n\t}\n\n\t.DayPicker-Months {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tjustify-content: center;\n\t}\n\n\t.DayPicker-Month {\n\t\tdisplay: table;\n\t\tmargin: 0 1em;\n\t\tmargin-top: 1em;\n\t\tborder-spacing: 0;\n\t\tborder-collapse: collapse;\n\n\t\t-webkit-user-select: none;\n\n\t\t\t-moz-user-select: none;\n\n\t\t\t\t-ms-user-select: none;\n\n\t\t\t\t\t\tuser-select: none;\n\t}\n\n\t.DayPicker-NavBar {\n\t}\n\n\t.DayPicker-NavButton {\n\t\tposition: absolute;\n\t\ttop: 1em;\n\t\tright: 1.5em;\n\t\tleft: auto;\n\n\t\tdisplay: inline-block;\n\t\tmargin-top: 2px;\n\t\twidth: 1.25em;\n\t\theight: 1.25em;\n\t\tbackground-position: center;\n\t\tbackground-size: 50%;\n\t\tbackground-repeat: no-repeat;\n\t\tcolor: #8B9898;\n\t\tcursor: pointer;\n\t}\n\n\t.DayPicker-NavButton:hover {\n\t\topacity: 0.8;\n\t}\n\n\t.DayPicker-NavButton--prev {\n\t\tmargin-right: 1.5em;\n\t\tbackground-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAVVJREFUWAnN2G0KgjAYwPHpGfRkaZeqvgQaK+hY3SUHrk1YzNLay/OiEFp92I+/Mp2F2Mh2lLISWnflFjzH263RQjzMZ19wgs73ez0o1WmtW+dgA01VxrE3p6l2GLsnBy1VYQOtVSEH/atCCgqpQgKKqYIOiq2CBkqtggLKqQIKgqgCBjpJ2Y5CdJ+zrT9A7HHSTA1dxUdHgzCqJIEwq0SDsKsEg6iqBIEoq/wEcVRZBXFV+QJxV5mBtlDFB5VjYTaGZ2sf4R9PM7U9ZU+lLuaetPP/5Die3ToO1+u+MKtHs06qODB2zBnI/jBd4MPQm1VkY79Tb18gB+C62FdBFsZR6yeIo1YQiLJWMIiqVjQIu1YSCLNWFgijVjYIuhYYCKoWKAiiFgoopxYaKLUWOii2FgkophYp6F3r42W5A9s9OcgNvva8xQaysKXlFytoqdYmQH6tF3toSUo0INq9AAAAAElFTkSuQmCC');\n\t}\n\n\t.DayPicker-NavButton--next {\n\t\tbackground-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAXRJREFUWAnN119ugjAcwPHWzJ1gnmxzB/BBE0n24m4xfNkTaOL7wOtsl3AXMMb+Vjaa1BG00N8fSEibPpAP3xAKKs2yjzTPH9RAjhEo9WzPr/Vm8zgE0+gXATAxxuxtqeJ9t5tIwv5AtQAApsfT6TPdbp+kUBcgVwvO51KqVhMkXKsVJFXrOkigVhCIs1Y4iKlWZxB1rX4gwlpRIIpa8SDkWmggrFq4IIRaJKCYWnSgnrXIQV1r8YD+1Vrn+bReagysIFfLABRt31v8oBu1xEBttfRbltmfjgEcWh9snUS2kNdBK6WN1vrOWxObWsz+fjxevsxmB1GQDfINWiev83nhaoiB/CoOU438oPrhXS0WpQ9xc1ZQWxWHqUYe0I0qrKCQKjygDlXIQV2r0IF6ViEBxVTBBSFUQQNhVYkHIVeJAtkNsbQ7c1LtzP6FsObhb2rCKv7NBIGoq4SDmKoEgTirXAcJVGkFSVVpgoSrXICGUMUH/QBZNSUy5XWUhwAAAABJRU5ErkJggg==');\n\t}\n\n\t.DayPicker-NavButton--interactionDisabled {\n\t\tdisplay: none;\n\t}\n\n\t.DayPicker-Caption {\n\t\tdisplay: table-caption;\n\t\tmargin-bottom: 0.5em;\n\t\tpadding: 0 0.5em;\n\t\ttext-align: left;\n\t}\n\n\t.DayPicker-Caption > div {\n\t\tfont-weight: 500;\n\t\tfont-size: 1.15em;\n\t}\n\n\t.DayPicker-Weekdays {\n\t\tdisplay: table-header-group;\n\t\tmargin-top: 1em;\n\t}\n\n\t.DayPicker-WeekdaysRow {\n\t\tdisplay: table-row;\n\t}\n\n\t.DayPicker-Weekday {\n\t\tdisplay: table-cell;\n\t\tpadding: 0.5em;\n\t\tcolor: #8B9898;\n\t\ttext-align: center;\n\t\tfont-size: 0.875em;\n\t}\n\n\t.DayPicker-Weekday abbr[title] {\n\t\tborder-bottom: none;\n\t\ttext-decoration: none;\n\t}\n\n\t.DayPicker-Body {\n\t\tdisplay: table-row-group;\n\t}\n\n\t.DayPicker-Week {\n\t\tdisplay: table-row;\n\t}\n\n\t.DayPicker-Day {\n\t\tdisplay: table-cell;\n\t\tpadding: 0.5em;\n\t\tborder-radius: 50%;\n\t\tvertical-align: middle;\n\t\ttext-align: center;\n\t\tcursor: pointer;\n\t}\n\n\t.DayPicker-WeekNumber {\n\t\tdisplay: table-cell;\n\t\tpadding: 0.5em;\n\t\tmin-width: 1em;\n\t\tborder-right: 1px solid #EAECEC;\n\t\tcolor: #8B9898;\n\t\tvertical-align: middle;\n\t\ttext-align: right;\n\t\tfont-size: 0.75em;\n\t\tcursor: pointer;\n\t}\n\n\t.DayPicker--interactionDisabled .DayPicker-Day {\n\t\tcursor: default;\n\t}\n\n\t.DayPicker-Footer {\n\t\tpadding-top: 0.5em;\n\t}\n\n\t.DayPicker-TodayButton {\n\t\tborder: none;\n\t\tbackground-color: transparent;\n\t\tbackground-image: none;\n\t\tbox-shadow: none;\n\t\tcolor: #4A90E2;\n\t\tfont-size: 0.875em;\n\t\tcursor: pointer;\n\t}\n\n\t/* Default modifiers */\n\n\t.DayPicker-Day--today {\n\t\tcolor: #D0021B;\n\t\tfont-weight: 700;\n\t}\n\n\t.DayPicker-Day--outside {\n\t\tcolor: #8B9898;\n\t\tcursor: default;\n\t}\n\n\t.DayPicker-Day--disabled {\n\t\tcolor: #DCE0E0;\n\t\tcursor: default;\n\t\t/* background-color: #eff1f1; */\n\t}\n\n\t/* Example modifiers */\n\n\t.DayPicker-Day--sunday {\n\t\tbackground-color: #F7F8F8;\n\t}\n\n\t.DayPicker-Day--sunday:not(.DayPicker-Day--today) {\n\t\tcolor: #DCE0E0;\n\t}\n\n\t.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside) {\n\t\tposition: relative;\n\n\t\tbackground-color: #4A90E2;\n\t\tcolor: #F0F8FF;\n\t}\n\n\t.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside):hover {\n\t\tbackground-color: #51A0FA;\n\t}\n\n\t.DayPicker:not(.DayPicker--interactionDisabled)\n\t\t.DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover {\n\t\tbackground-color: #F0F8FF;\n\t}\n\n\t/* DayPickerInput */\n\n\t.DayPickerInput {\n\t\tdisplay: inline-block;\n\t}\n\n\t.DayPickerInput-OverlayWrapper {\n\t\tposition: relative;\n\t}\n\n\t.DayPickerInput-Overlay {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tz-index: 1;\n\n\t\tbackground: white;\n\t\tbox-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);\n\t}\n\n\t.DayPicker-Month {\n\t\tborder-collapse: separate;\n\t}\n\t.DayPicker-WeekNumber {\n\t\toutline: none;\n\t}\n\t.DayPicker-Day {\n\t\toutline: none;\n\t\tborder: 1px solid ", ";\n\t\tborder-radius: 0;\n\t}\n\t.DayPicker-Day--hoverRange {\n\t\tbackground-color: ", " !important;\n\t}\n\n\t.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside),\n\t.DayPicker-Day--selectedRange {\n\t\tbackground-color: ", " !important;\n\t\tcolor: ", ";\n\t\tborder-top-color: ", ";\n\t\tborder-bottom-color: ", ";\n\t\tborder-left-color: ", ";\n\t\tborder-right-color: ", ";\n\t}\n\n\t.DayPicker-Day--selectedRangeStart {\n\t\tbackground-color: ", " !important;\n\t\tborder-left: 1px solid ", ";\n\t\tcolors: ", ";\n\t}\n\n\t.DayPicker-Day--selectedRangeEnd {\n\t\tbackground-color: ", " !important;\n\t\tborder-right: 1px solid ", ";\n\t\tcolors: ", ";\n\t}\n\n\t.DayPicker-Day--selectedRange:not(.DayPicker-Day--outside).DayPicker-Day--selected,\n\t.DayPicker-Day--hoverRange:not(.DayPicker-Day--outside).DayPicker-Day--selected {\n\t\tborder-radius: 0 !important;\n\t}\n\t.DayPicker:not(.DayPicker--interactionDisabled) .DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover {\n\t\tbackground-color: ", ";\n\t}\n\t.DayPicker-Day--hoverRange:hover {\n\t\tborder-radius: 0 !important;\n\t}\n\n\t.DayPicker-Day--today {\n\t\tcolor: ", ";\n\t}\n\n\t.DayPicker-Weekday {\n\t\tcolor: ", ";\n\t\tfont-size: 13px;\n\t\tfont-weight: 500;\n\t}\n\n\t.DayPicker-NavButton {\n\t\ttop: 24px;\n\t}\n"])), theme_1.colors.white, theme_1.colors.green0, theme_1.colors.green1, theme_1.colors.white, theme_1.colors.white, theme_1.colors.white, theme_1.colors.white, theme_1.colors.white, theme_1.colors.green1, theme_1.colors.green1, theme_1.colors.white, theme_1.colors.green1, theme_1.colors.green1, theme_1.colors.white, theme_1.colors.white, theme_1.colors.red1, theme_1.colors.green1);
35
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16;
36
+ //# sourceMappingURL=ApDatePicker.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApDatePicker.styles.js","sourceRoot":"","sources":["../../../../src/components/ApDatePicker/ApDatePicker.styles.ts"],"names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AAA,MAAM,IACN,uBAAG,gIAAA,4BACqB,EAAa,kBACxB,EAAY,SACtB,KAFqB,cAAM,CAAC,MAAM,EACxB,cAAM,CAAC,KAAK,CACtB;AAJH,CAIG,EAGiB,cAAM,CAAC,MAAM,EAEjC;AAEW,QAAA,SAAS,GAAG,2BAAM,CAAC,GAAG,68NAAA,iiLA4Ob,EAAY,uFAIZ,EAAa,wKAKb,EAAa,2BACxB,EAAY,2BACD,EAAY,8BACT,EAAY,4BACd,EAAY,6BACX,EAAY,0EAId,EAAa,2CACR,EAAa,iBAC5B,EAAY,wEAIF,EAAa,4CACP,EAAa,iBAC7B,EAAY,wZAQF,EAAY,+HAOvB,EAAW,+CAIX,EAAa,wGAQvB,KArDqB,cAAM,CAAC,KAAK,EAIZ,cAAM,CAAC,MAAM,EAKb,cAAM,CAAC,MAAM,EACxB,cAAM,CAAC,KAAK,EACD,cAAM,CAAC,KAAK,EACT,cAAM,CAAC,KAAK,EACd,cAAM,CAAC,KAAK,EACX,cAAM,CAAC,KAAK,EAId,cAAM,CAAC,MAAM,EACR,cAAM,CAAC,MAAM,EAC5B,cAAM,CAAC,KAAK,EAIF,cAAM,CAAC,MAAM,EACP,cAAM,CAAC,MAAM,EAC7B,cAAM,CAAC,KAAK,EAQF,cAAM,CAAC,KAAK,EAOvB,cAAM,CAAC,IAAI,EAIX,cAAM,CAAC,MAAM,EAQtB"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Navbar = void 0;
4
+ var React = require("react");
5
+ var theme_1 = require("../../utils/theme");
6
+ var ApDatePicker_styles_1 = require("./ApDatePicker.styles");
7
+ exports.Navbar = function (_a) {
8
+ var date = _a.date, onPreviousClick = _a.onPreviousClick, onNextClick = _a.onNextClick, srcRange = _a.srcRange, className = _a.className;
9
+ return (React.createElement(ApDatePicker_styles_1.NavContainer, { className: className },
10
+ React.createElement(ApDatePicker_styles_1.PrevNavButton, { onClick: function () {
11
+ if (!(date.getFullYear() === srcRange.from.getFullYear()
12
+ && date.getMonth() === srcRange.from.getMonth())) {
13
+ onPreviousClick();
14
+ }
15
+ }, iconName: "baseline_keyboard_arrow_left", iconProps: {
16
+ iconColor: theme_1.colors.green1
17
+ } }),
18
+ React.createElement(ApDatePicker_styles_1.NextNavButton, { onClick: function () {
19
+ if (!(date.getFullYear() === srcRange.to.getFullYear()
20
+ && date.getMonth() === srcRange.to.getMonth())) {
21
+ onNextClick();
22
+ }
23
+ }, iconName: "baseline_keyboard_arrow_right", iconProps: {
24
+ iconColor: theme_1.colors.green1
25
+ } })));
26
+ };
27
+ //# sourceMappingURL=NavBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavBar.js","sourceRoot":"","sources":["../../../../src/components/ApDatePicker/NavBar.tsx"],"names":[],"mappings":";;;AAAA,6BAA+B;AAE/B,2CAA2C;AAC3C,6DAAmF;AAUtE,QAAA,MAAM,GAAG,UAAC,EAMR;QALd,IAAI,UAAA,EACJ,eAAe,qBAAA,EACf,WAAW,iBAAA,EACX,QAAQ,cAAA,EACR,SAAS,eAAA;IACU,OAAA,CACnB,oBAAC,kCAAY,IAAC,SAAS,EAAE,SAAS;QACjC,oBAAC,mCAAa,IACb,OAAO,EAAE;gBACR,IAAI,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE;uBACpD,IAAI,CAAC,QAAQ,EAAE,KAAK,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE;oBACjD,eAAe,EAAE,CAAC;iBAClB;YACH,CAAC,EACD,QAAQ,EAAC,8BAA8B,EACvC,SAAS,EAAE;gBACV,SAAS,EAAE,cAAM,CAAC,MAAM;aACxB,GACA;QACF,oBAAC,mCAAa,IACb,OAAO,EAAE;gBACR,IAAI,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE;uBAClD,IAAI,CAAC,QAAQ,EAAE,KAAK,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE;oBAChD,WAAW,EAAE,CAAC;iBACd;YACF,CAAC,EACD,QAAQ,EAAC,+BAA+B,EACxC,SAAS,EAAE;gBACV,SAAS,EAAE,cAAM,CAAC,MAAM;aACxB,GACA,CACY,CACf;AA3BmB,CA2BnB,CAAC"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __read = (this && this.__read) || function (o, n) {
3
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
4
+ if (!m) return o;
5
+ var i = m.call(o), r, ar = [], e;
6
+ try {
7
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
8
+ }
9
+ catch (error) { e = { error: error }; }
10
+ finally {
11
+ try {
12
+ if (r && !r.done && (m = i["return"])) m.call(i);
13
+ }
14
+ finally { if (e) throw e.error; }
15
+ }
16
+ return ar;
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.YearMonthForm = void 0;
20
+ var moment = require("moment");
21
+ var React = require("react");
22
+ var theme_1 = require("../../utils/theme");
23
+ var ApDatePicker_styles_1 = require("./ApDatePicker.styles");
24
+ exports.YearMonthForm = function (_a) {
25
+ var date = _a.date, localeUtils = _a.localeUtils, srcRange = _a.srcRange, onChange = _a.onChange;
26
+ var _b = __read(React.useState(false), 2), isMenuOpen = _b[0], setIsMenuOpen = _b[1];
27
+ var years = [];
28
+ for (var i = srcRange.from.getFullYear(); i <= srcRange.to.getFullYear(); i += 1) {
29
+ years.push(i);
30
+ }
31
+ var periodsStr = moment(date).startOf("month").format('MMMM') + " " + date.getFullYear();
32
+ return (React.createElement(ApDatePicker_styles_1.MonthYearContainer, { className: "DayPicker-Caption" },
33
+ React.createElement(ApDatePicker_styles_1.Wrapper, null,
34
+ React.createElement(ApDatePicker_styles_1.PeriodButton, { onClick: function () { setIsMenuOpen(!isMenuOpen); } },
35
+ periodsStr,
36
+ React.createElement(ApDatePicker_styles_1.CaretIcon, { rotate: isMenuOpen, iconName: "caret", iconColor: theme_1.colors.grey5 })),
37
+ isMenuOpen && (React.createElement(ApDatePicker_styles_1.MenuContent, null,
38
+ React.createElement(ApDatePicker_styles_1.PickerContent, null,
39
+ React.createElement(ApDatePicker_styles_1.PickerGrid, null, years.map(function (year) { return (React.createElement(ApDatePicker_styles_1.PickerPeriod, { key: year, onClick: function () {
40
+ onChange(new Date(Number(year), date.getMonth()));
41
+ setIsMenuOpen(false);
42
+ }, active: year === date.getFullYear() }, year)); }))))))));
43
+ };
44
+ //# sourceMappingURL=YearMonthForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"YearMonthForm.js","sourceRoot":"","sources":["../../../../src/components/ApDatePicker/YearMonthForm.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,+BAAiC;AACjC,6BAA+B;AAC/B,2CAA2C;AAC3C,6DAS+B;AAGlB,QAAA,aAAa,GAAG,UAAC,EAQ7B;QAR+B,IAAI,UAAA,EAAE,WAAW,iBAAA,EAAE,QAAQ,cAAA,EAAE,QAAQ,cAAA;IAS9D,IAAA,KAAA,OAA8B,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAA,EAAlD,UAAU,QAAA,EAAE,aAAa,QAAyB,CAAC;IAE1D,IAAM,KAAK,GAAG,EAAE,CAAC;IACjB,KAAK,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE;QACjF,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACd;IAED,IAAM,UAAU,GAAM,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,SAAI,IAAI,CAAC,WAAW,EAAI,CAAA;IAC1F,OAAO,CACN,oBAAC,wCAAkB,IAAC,SAAS,EAAC,mBAAmB;QAChD,oBAAC,6BAAO;YACP,oBAAC,kCAAY,IACZ,OAAO,EAAE,cAAQ,aAAa,CAAC,CAAC,UAAU,CAAC,CAAA,CAAA,CAAC;gBAE3C,UAAU;gBACX,oBAAC,+BAAS,IAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAC,OAAO,EAAC,SAAS,EAAE,cAAM,CAAC,KAAK,GAAI,CAC7D;YACd,UAAU,IAAI,CACf,oBAAC,iCAAW;gBACV,oBAAC,mCAAa;oBACb,oBAAC,gCAAU,QACT,KAAK,CAAC,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,CAClB,oBAAC,kCAAY,IACZ,GAAG,EAAE,IAAI,EACT,OAAO,EAAE;4BACR,QAAQ,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;4BAClD,aAAa,CAAC,KAAK,CAAC,CAAA;wBACrB,CAAC,EACD,MAAM,EAAE,IAAI,KAAK,IAAI,CAAC,WAAW,EAAE,IAElC,IAAI,CACS,CACf,EAXkB,CAWlB,CAAC,CAEU,CACE,CACH,CACd,CACQ,CACU,CACrB,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var ApDatePicker_1 = require("./ApDatePicker");
4
+ Object.defineProperty(exports, "ApDatePicker", { enumerable: true, get: function () { return ApDatePicker_1.ApDatePicker; } });
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ApDatePicker/index.ts"],"names":[],"mappings":";;AAAA,+CAA6C;AAApC,4GAAA,YAAY,OAAA"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getWeekRange = exports.getWeekDays = void 0;
4
+ var moment = require("moment");
5
+ exports.getWeekDays = function (weekStart, amount) {
6
+ var days = [weekStart];
7
+ for (var i = 1; i < amount; i += 1) {
8
+ days.push(moment(weekStart)
9
+ .add(i, 'days')
10
+ .toDate());
11
+ }
12
+ return days;
13
+ };
14
+ exports.getWeekRange = function (date, range) {
15
+ var startDate = moment(date).startOf('isoWeek');
16
+ return {
17
+ from: startDate.toDate(),
18
+ to: startDate
19
+ .add(range - 1, 'days')
20
+ .toDate(),
21
+ };
22
+ };
23
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/components/ApDatePicker/utils.ts"],"names":[],"mappings":";;;AAAA,+BAAiC;AAEpB,QAAA,WAAW,GAAG,UAAC,SAAe,EAAE,MAAc;IAC1D,IAAM,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC;IACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;QACnC,IAAI,CAAC,IAAI,CACR,MAAM,CAAC,SAAS,CAAC;aACf,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC;aACd,MAAM,EAAE,CACV,CAAC;KACF;IACD,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AAEW,QAAA,YAAY,GAAG,UAAC,IAAU,EAAE,KAAa;IACrD,IAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;IACjD,OAAO;QACN,IAAI,EAAE,SAAS,CAAC,MAAM,EAAE;QACxB,EAAE,EAAE,SAAS;aACX,GAAG,CAAC,KAAK,GAAG,CAAC,EAAE,MAAM,CAAC;aACtB,MAAM,EAAE;KACV,CAAC;AACH,CAAC,CAAC"}
package/dist/esm/index.js CHANGED
@@ -15,6 +15,7 @@ __exportStar(require("./components/ApAppBar/ApAppBar"), exports);
15
15
  __exportStar(require("./components/ApButtons/ApButtons"), exports);
16
16
  __exportStar(require("./components/ApButtonGroup/ApButtonGroup"), exports);
17
17
  __exportStar(require("./components/ApIcon/ApIcon"), exports);
18
+ __exportStar(require("./components/ApDatePicker/ApDatePicker"), exports);
18
19
  __exportStar(require("./components/ApLoaderDefault/ApLoaderDefault"), exports);
19
20
  __exportStar(require("./components/ApLoaderText/ApLoaderText"), exports);
20
21
  __exportStar(require("./components/ApModal/ApModal"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6DAA0C;AAC1C,iEAA8C;AAC9C,mEAAgD;AAChD,2EAAwD;AACxD,6DAA0C;AAC1C,+EAA4D;AAC5D,yEAAsD;AACtD,+DAA4C;AAC5C,6EAA0D;AAC1D,uFAAoE;AACpE,iEAA8C;AAC9C,qEAAkD;AAClD,2EAAwD;AACxD,yEAAsD;AACtD,uEAAoD;AACpD,2EAAwD;AACxD,kEAA+C;AAC/C,qEAAkD;AAClD,uEAAoD;AACpD,mEAAgD;AAChD,6DAA0C;AAC1C,6EAA0D;AAC1D,iEAA8C;AAC9C,+DAA4C;AAC5C,qEAAkD;AAClD,0EAAuD;AACvD,qEAAkD;AAClD,qFAAkE;AAClE,wEAAqD;AACrD,0EAAuD;AACvD,uFAAoE;AACpE,gFAA6D;AAC7D,uEAAoD;AACpD,sEAAmD;AACnD,sEAAmD;AACnD,0EAAuD;AACvD,gFAA6D;AAC7D,4EAAyD;AACzD,0EAAuD;AACvD,2EAAwD;AACxD,sEAAmD;AACnD,uEAAoD;AACpD,4EAAyD;AACzD,8EAA2D;AAC3D,sEAAmD;AACnD,4EAAyD;AACzD,uEAAoD;AACpD,+DAA4C;AAC5C,iFAA8D;AAC9D,+EAA4D;AAC5D,iFAA8D;AAC9D,mFAAgE;AAChE,6EAA0D;AAC1D,mEAAgD;AAChD,6DAA0C;AAC1C,iEAA8C;AAC9C,uEAAoD;AACpD,oEAAiD;AACjD,8DAA2C;AAC3C,iEAA8C;AAC9C,+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uD;AACvD,gDAA6B"}
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ interface IApDatePickerProps {
3
+ range?: number;
4
+ selectedDays: Date[];
5
+ srcRange: {
6
+ from: Date;
7
+ to: Date;
8
+ };
9
+ onChange: (days: Date[]) => void;
10
+ }
11
+ interface IApDatePickerState {
12
+ hoverRange?: {
13
+ from: Date;
14
+ to: Date;
15
+ };
16
+ month: Date;
17
+ }
18
+ export declare class ApDatePicker extends React.Component<IApDatePickerProps, IApDatePickerState> {
19
+ constructor(props: IApDatePickerProps);
20
+ handleDayChange: (date: Date) => void;
21
+ handleDayEnter: (date: Date) => void;
22
+ handleDayLeave: () => void;
23
+ handleYearMonthChange: (month: Date) => void;
24
+ render(): JSX.Element;
25
+ }
26
+ export {};
@@ -0,0 +1,18 @@
1
+ export declare const Dropdown: import("styled-components").StyledComponent<({ options, selected, iconName, iconProps, disabled, onChange, label, multiple, message, maxItems, }: import("../ApSimpleDropdown").IApSimpleDropdownProps) => JSX.Element, any, {}, never>;
2
+ export declare const MonthYearContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const NavContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const NavButton: import("styled-components").StyledComponent<import("react").SFC<import("../ApButtons").IButtonIconProps>, any, {}, never>;
5
+ export declare const NextNavButton: import("styled-components").StyledComponent<import("react").SFC<import("../ApButtons").IButtonIconProps>, any, {}, never>;
6
+ export declare const PrevNavButton: import("styled-components").StyledComponent<import("react").SFC<import("../ApButtons").IButtonIconProps>, any, {}, never>;
7
+ export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const PeriodButton: import("styled-components").StyledComponent<import("react").SFC<import("../ApButtons").IButtonCompositionProps>, any, {}, never>;
9
+ export declare const CaretIcon: import("styled-components").StyledComponent<import("react").SFC<import("../ApIcon").IIconProps>, any, {
10
+ rotate: boolean;
11
+ }, never>;
12
+ export declare const MenuContent: import("styled-components").StyledComponent<"div", any, {}, never>;
13
+ export declare const PickerContent: import("styled-components").StyledComponent<"div", any, {}, never>;
14
+ export declare const PickerGrid: import("styled-components").StyledComponent<"div", any, {}, never>;
15
+ export declare const PickerPeriod: import("styled-components").StyledComponent<"div", any, {
16
+ active: boolean;
17
+ }, never>;
18
+ export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -0,0 +1,10 @@
1
+ import { NavbarElementProps } from 'react-day-picker';
2
+ interface INavBarProps extends NavbarElementProps {
3
+ date: Date;
4
+ srcRange: {
5
+ from: Date;
6
+ to: Date;
7
+ };
8
+ }
9
+ export declare const Navbar: ({ date, onPreviousClick, onNextClick, srcRange, className, }: INavBarProps) => JSX.Element;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ export declare const YearMonthForm: ({ date, localeUtils, srcRange, onChange }: {
2
+ date: Date;
3
+ localeUtils: any;
4
+ srcRange: {
5
+ from: Date;
6
+ to: Date;
7
+ };
8
+ onChange: (o: Date) => void;
9
+ }) => JSX.Element;
@@ -0,0 +1 @@
1
+ export { ApDatePicker } from './ApDatePicker';
@@ -0,0 +1,5 @@
1
+ export declare const getWeekDays: (weekStart: Date, amount: number) => Date[];
2
+ export declare const getWeekRange: (date: Date, range: number) => {
3
+ from: Date;
4
+ to: Date;
5
+ };
@@ -3,6 +3,7 @@ export * from './components/ApAppBar/ApAppBar';
3
3
  export * from './components/ApButtons/ApButtons';
4
4
  export * from './components/ApButtonGroup/ApButtonGroup';
5
5
  export * from './components/ApIcon/ApIcon';
6
+ export * from './components/ApDatePicker/ApDatePicker';
6
7
  export * from './components/ApLoaderDefault/ApLoaderDefault';
7
8
  export * from './components/ApLoaderText/ApLoaderText';
8
9
  export * from './components/ApModal/ApModal';