1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.CalendarDay = void 0;
|
4 | const index_js_1 = require("../lib/index.js");
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | class CalendarDay {
|
13 | constructor(date, displayMonth,
|
14 | /** @ignore */
|
15 | dateLib = index_js_1.dateLib) {
|
16 | this.date = date;
|
17 | this.displayMonth = displayMonth;
|
18 | this.outside = Boolean(displayMonth && !dateLib.isSameMonth(date, displayMonth));
|
19 | this.dateLib = dateLib;
|
20 | }
|
21 | |
22 |
|
23 |
|
24 |
|
25 | isEqualTo(day) {
|
26 | return (this.dateLib.isSameDay(day.date, this.date) &&
|
27 | this.dateLib.isSameMonth(day.displayMonth, this.displayMonth));
|
28 | }
|
29 | }
|
30 | exports.CalendarDay = CalendarDay;
|
31 |
|
\ | No newline at end of file |