@3mo/date-time-fields 0.5.2 → 0.5.3
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/dist/FieldDateTime.js +6 -6
- package/dist/FieldDateTimeBase.js +112 -112
- package/dist/FieldDateTimeRange.js +34 -34
- package/dist/FieldTime.js +3 -3
- package/dist/FieldToggleableDateTimeRange.js +7 -7
- package/dist/custom-elements.json +3877 -0
- package/dist/selection/DateList.js +24 -24
- package/dist/selection/HourList.js +8 -8
- package/dist/selection/MinuteList.js +8 -8
- package/dist/selection/MonthList.js +14 -14
- package/dist/selection/SecondList.js +8 -8
- package/dist/selection/YearList.js +8 -8
- package/dist/selection/calendar/Calendar.js +72 -72
- package/dist/selection/calendar/SelectableCalendar.d.ts +1 -1
- package/dist/selection/calendar/SelectableCalendar.d.ts.map +1 -1
- package/dist/selection/calendar/SelectableCalendar.js +8 -8
- package/dist/selection/calendar/SelectableRangeCalendar.d.ts +1 -1
- package/dist/selection/calendar/SelectableRangeCalendar.d.ts.map +1 -1
- package/dist/selection/calendar/SelectableRangeCalendar.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/README.md +0 -3
|
@@ -15,36 +15,36 @@ export class DateList extends Component {
|
|
|
15
15
|
get now() { return new DateTime(); }
|
|
16
16
|
get zero() { return 0; }
|
|
17
17
|
static get styles() {
|
|
18
|
-
return css `
|
|
19
|
-
mo-scroller {
|
|
20
|
-
min-width: 70px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.pad {
|
|
24
|
-
height: 50px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
mo-selectable-list-item {
|
|
28
|
-
height: 32px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
mo-selectable-list-item[data-now] {
|
|
32
|
-
outline: 2px dashed var(--mo-color-gray-transparent);
|
|
33
|
-
}
|
|
18
|
+
return css `
|
|
19
|
+
mo-scroller {
|
|
20
|
+
min-width: 70px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.pad {
|
|
24
|
+
height: 50px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
mo-selectable-list-item {
|
|
28
|
+
height: 32px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
mo-selectable-list-item[data-now] {
|
|
32
|
+
outline: 2px dashed var(--mo-color-gray-transparent);
|
|
33
|
+
}
|
|
34
34
|
`;
|
|
35
35
|
}
|
|
36
36
|
connected() {
|
|
37
37
|
this.scrollIntoSelectedItem('instant');
|
|
38
38
|
}
|
|
39
39
|
get template() {
|
|
40
|
-
return this.navigatingValue === undefined ? html.nothing : html `
|
|
41
|
-
<mo-scroller @pointerenter=${() => this.preventIntervalScrolling = true} @pointerleave=${() => this.preventIntervalScrolling = false}>
|
|
42
|
-
<mo-selectable-list @change=${() => this.scrollIntoSelectedItem()}>
|
|
43
|
-
<div class='pad'></div>
|
|
44
|
-
${this.listItemsTemplate}
|
|
45
|
-
<div class='pad'></div>
|
|
46
|
-
</mo-selectable-list>
|
|
47
|
-
</mo-scroller>
|
|
40
|
+
return this.navigatingValue === undefined ? html.nothing : html `
|
|
41
|
+
<mo-scroller @pointerenter=${() => this.preventIntervalScrolling = true} @pointerleave=${() => this.preventIntervalScrolling = false}>
|
|
42
|
+
<mo-selectable-list @change=${() => this.scrollIntoSelectedItem()}>
|
|
43
|
+
<div class='pad'></div>
|
|
44
|
+
${this.listItemsTemplate}
|
|
45
|
+
<div class='pad'></div>
|
|
46
|
+
</mo-selectable-list>
|
|
47
|
+
</mo-scroller>
|
|
48
48
|
`;
|
|
49
49
|
}
|
|
50
50
|
async scrollIntoSelectedItem(behavior = 'smooth') {
|
|
@@ -3,14 +3,14 @@ import { component, html, range } from '@a11d/lit';
|
|
|
3
3
|
import { DateList } from './DateList.js';
|
|
4
4
|
let HourList = class HourList extends DateList {
|
|
5
5
|
get listItemsTemplate() {
|
|
6
|
-
return html `
|
|
7
|
-
${[...range(0, this.navigatingValue.hoursInDay)].map(hour => html `
|
|
8
|
-
<mo-selectable-list-item
|
|
9
|
-
?selected=${this.value?.hour === hour}
|
|
10
|
-
?data-now=${this.now.hour === hour}
|
|
11
|
-
@change=${(e) => !e.selected ? void 0 : this.change.dispatch((this.value ?? new DateTime).with({ hour }))}
|
|
12
|
-
>${hour.format().padStart(2, this.zero.format())}</mo-selectable-list-item>
|
|
13
|
-
`)}
|
|
6
|
+
return html `
|
|
7
|
+
${[...range(0, this.navigatingValue.hoursInDay)].map(hour => html `
|
|
8
|
+
<mo-selectable-list-item
|
|
9
|
+
?selected=${this.value?.hour === hour}
|
|
10
|
+
?data-now=${this.now.hour === hour}
|
|
11
|
+
@change=${(e) => !e.selected ? void 0 : this.change.dispatch((this.value ?? new DateTime).with({ hour }))}
|
|
12
|
+
>${hour.format().padStart(2, this.zero.format())}</mo-selectable-list-item>
|
|
13
|
+
`)}
|
|
14
14
|
`;
|
|
15
15
|
}
|
|
16
16
|
};
|
|
@@ -3,14 +3,14 @@ import { component, html, range } from '@a11d/lit';
|
|
|
3
3
|
import { DateList } from './DateList.js';
|
|
4
4
|
let MinuteList = class MinuteList extends DateList {
|
|
5
5
|
get listItemsTemplate() {
|
|
6
|
-
return html `
|
|
7
|
-
${[...range(0, 60)].map(minute => html `
|
|
8
|
-
<mo-selectable-list-item
|
|
9
|
-
?selected=${this.value?.minute === minute}
|
|
10
|
-
?data-now=${this.now.minute === minute}
|
|
11
|
-
@change=${(e) => !e.selected ? void 0 : this.change.dispatch((this.value ?? new DateTime).with({ minute }))}
|
|
12
|
-
>${minute.format().padStart(2, this.zero.format())}</mo-selectable-list-item>
|
|
13
|
-
`)}
|
|
6
|
+
return html `
|
|
7
|
+
${[...range(0, 60)].map(minute => html `
|
|
8
|
+
<mo-selectable-list-item
|
|
9
|
+
?selected=${this.value?.minute === minute}
|
|
10
|
+
?data-now=${this.now.minute === minute}
|
|
11
|
+
@change=${(e) => !e.selected ? void 0 : this.change.dispatch((this.value ?? new DateTime).with({ minute }))}
|
|
12
|
+
>${minute.format().padStart(2, this.zero.format())}</mo-selectable-list-item>
|
|
13
|
+
`)}
|
|
14
14
|
`;
|
|
15
15
|
}
|
|
16
16
|
};
|
|
@@ -3,12 +3,12 @@ import { component, css, html } from '@a11d/lit';
|
|
|
3
3
|
import { DateList } from './DateList.js';
|
|
4
4
|
let MonthList = class MonthList extends DateList {
|
|
5
5
|
static get styles() {
|
|
6
|
-
return css `
|
|
7
|
-
${super.styles}
|
|
8
|
-
|
|
9
|
-
mo-scroller {
|
|
10
|
-
min-width: 125px;
|
|
11
|
-
}
|
|
6
|
+
return css `
|
|
7
|
+
${super.styles}
|
|
8
|
+
|
|
9
|
+
mo-scroller {
|
|
10
|
+
min-width: 125px;
|
|
11
|
+
}
|
|
12
12
|
`;
|
|
13
13
|
}
|
|
14
14
|
get monthNames() {
|
|
@@ -18,14 +18,14 @@ let MonthList = class MonthList extends DateList {
|
|
|
18
18
|
.map(date => [date.month, date.format({ month: 'long' })]);
|
|
19
19
|
}
|
|
20
20
|
get listItemsTemplate() {
|
|
21
|
-
return html `
|
|
22
|
-
${this.monthNames.map(([month, name]) => html `
|
|
23
|
-
<mo-selectable-list-item
|
|
24
|
-
?selected=${this.value?.month === month}
|
|
25
|
-
?data-now=${this.now.month === month}
|
|
26
|
-
@change=${(e) => !e.selected ? void 0 : this.change.dispatch((this.value ?? new DateTime).with({ month }))}
|
|
27
|
-
>${name}</mo-selectable-list-item>
|
|
28
|
-
`)}
|
|
21
|
+
return html `
|
|
22
|
+
${this.monthNames.map(([month, name]) => html `
|
|
23
|
+
<mo-selectable-list-item
|
|
24
|
+
?selected=${this.value?.month === month}
|
|
25
|
+
?data-now=${this.now.month === month}
|
|
26
|
+
@change=${(e) => !e.selected ? void 0 : this.change.dispatch((this.value ?? new DateTime).with({ month }))}
|
|
27
|
+
>${name}</mo-selectable-list-item>
|
|
28
|
+
`)}
|
|
29
29
|
`;
|
|
30
30
|
}
|
|
31
31
|
};
|
|
@@ -3,14 +3,14 @@ import { component, html, range } from '@a11d/lit';
|
|
|
3
3
|
import { DateList } from './DateList.js';
|
|
4
4
|
let SecondList = class SecondList extends DateList {
|
|
5
5
|
get listItemsTemplate() {
|
|
6
|
-
return html `
|
|
7
|
-
${[...range(0, 60)].map(second => html `
|
|
8
|
-
<mo-selectable-list-item
|
|
9
|
-
?selected=${this.value?.second === second}
|
|
10
|
-
?data-now=${this.now.second === second}
|
|
11
|
-
@change=${(e) => !e.selected ? void 0 : this.change.dispatch((this.value ?? new DateTime).with({ second }))}
|
|
12
|
-
>${second.format().padStart(2, this.zero.format())}</mo-selectable-list-item>
|
|
13
|
-
`)}
|
|
6
|
+
return html `
|
|
7
|
+
${[...range(0, 60)].map(second => html `
|
|
8
|
+
<mo-selectable-list-item
|
|
9
|
+
?selected=${this.value?.second === second}
|
|
10
|
+
?data-now=${this.now.second === second}
|
|
11
|
+
@change=${(e) => !e.selected ? void 0 : this.change.dispatch((this.value ?? new DateTime).with({ second }))}
|
|
12
|
+
>${second.format().padStart(2, this.zero.format())}</mo-selectable-list-item>
|
|
13
|
+
`)}
|
|
14
14
|
`;
|
|
15
15
|
}
|
|
16
16
|
};
|
|
@@ -11,14 +11,14 @@ let YearList = class YearList extends DateList {
|
|
|
11
11
|
}
|
|
12
12
|
get listItemsTemplate() {
|
|
13
13
|
const now = this.now;
|
|
14
|
-
return html `
|
|
15
|
-
${this.years.map(year => html `
|
|
16
|
-
<mo-selectable-list-item
|
|
17
|
-
?selected=${this.value?.year === year}
|
|
18
|
-
?data-now=${now.year === year}
|
|
19
|
-
@change=${(e) => !e.selected ? void 0 : this.change.dispatch((this.value ?? new DateTime).with({ year }))}
|
|
20
|
-
>${year.format()}</mo-selectable-list-item>
|
|
21
|
-
`)}
|
|
14
|
+
return html `
|
|
15
|
+
${this.years.map(year => html `
|
|
16
|
+
<mo-selectable-list-item
|
|
17
|
+
?selected=${this.value?.year === year}
|
|
18
|
+
?data-now=${now.year === year}
|
|
19
|
+
@change=${(e) => !e.selected ? void 0 : this.change.dispatch((this.value ?? new DateTime).with({ year }))}
|
|
20
|
+
>${year.format()}</mo-selectable-list-item>
|
|
21
|
+
`)}
|
|
22
22
|
`;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
@@ -10,77 +10,77 @@ let Calendar = class Calendar extends Component {
|
|
|
10
10
|
this.days = new Array();
|
|
11
11
|
}
|
|
12
12
|
static get styles() {
|
|
13
|
-
return css `
|
|
14
|
-
:host {
|
|
15
|
-
--mo-calendar-day-size: 36px;
|
|
16
|
-
--mo-calendar-week-number-width: var(--mo-calendar-day-size);
|
|
17
|
-
padding-inline: 10px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.monthHeader {
|
|
21
|
-
color: var(--mo-color-gray);
|
|
22
|
-
align-items: center;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.week {
|
|
26
|
-
color: var(--mo-color-gray);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.day {
|
|
30
|
-
text-align: center;
|
|
31
|
-
border-radius: 100px;
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
transition: 100ms;
|
|
34
|
-
font-weight: 500;
|
|
35
|
-
user-select: none;
|
|
36
|
-
font-size: medium;
|
|
37
|
-
width: var(--mo-calendar-day-size);
|
|
38
|
-
-webkit-user-select: none;
|
|
39
|
-
align-items: center;
|
|
40
|
-
justify-content: center;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.day {
|
|
44
|
-
height: var(--mo-calendar-day-size);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.day:hover {
|
|
48
|
-
background: var(--mo-color-transparent-gray-3);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.day:not(.isInMonth) {
|
|
52
|
-
color: var(--mo-color-gray);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.day.today {
|
|
56
|
-
outline: 2px dashed var(--mo-color-gray-transparent);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.day.navigation {
|
|
60
|
-
background: var(--mo-color-transparent-gray-3);
|
|
61
|
-
}
|
|
13
|
+
return css `
|
|
14
|
+
:host {
|
|
15
|
+
--mo-calendar-day-size: 36px;
|
|
16
|
+
--mo-calendar-week-number-width: var(--mo-calendar-day-size);
|
|
17
|
+
padding-inline: 10px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.monthHeader {
|
|
21
|
+
color: var(--mo-color-gray);
|
|
22
|
+
align-items: center;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.week {
|
|
26
|
+
color: var(--mo-color-gray);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.day {
|
|
30
|
+
text-align: center;
|
|
31
|
+
border-radius: 100px;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
transition: 100ms;
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
user-select: none;
|
|
36
|
+
font-size: medium;
|
|
37
|
+
width: var(--mo-calendar-day-size);
|
|
38
|
+
-webkit-user-select: none;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.day {
|
|
44
|
+
height: var(--mo-calendar-day-size);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.day:hover {
|
|
48
|
+
background: var(--mo-color-transparent-gray-3);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.day:not(.isInMonth) {
|
|
52
|
+
color: var(--mo-color-gray);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.day.today {
|
|
56
|
+
outline: 2px dashed var(--mo-color-gray-transparent);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.day.navigation {
|
|
60
|
+
background: var(--mo-color-transparent-gray-3);
|
|
61
|
+
}
|
|
62
62
|
`;
|
|
63
63
|
}
|
|
64
64
|
get template() {
|
|
65
|
-
return html `
|
|
66
|
-
<mo-grid class='month'
|
|
67
|
-
rows='repeat(auto-fill, var(--mo-calendar-day-size))'
|
|
68
|
-
columns=${this.includeWeekNumbers ? 'var(--mo-calendar-week-number-width) repeat(7, var(--mo-calendar-day-size))' : 'repeat(7, var(--mo-calendar-day-size))'}
|
|
69
|
-
${style({ alignItems: 'center', justifyItems: 'center' })}
|
|
70
|
-
>
|
|
71
|
-
${this.includeWeekNumbers === false ? html.nothing : html `<div></div>`}
|
|
72
|
-
|
|
73
|
-
${this.navigatingValue.weekDayNames.map(dayName => html `
|
|
74
|
-
<div class='monthHeader'>
|
|
75
|
-
${dayName.charAt(0).toUpperCase() + dayName.charAt(1)}
|
|
76
|
-
</div>
|
|
77
|
-
`)}
|
|
78
|
-
|
|
79
|
-
${this.days.map(([weekNumber, days]) => html `
|
|
80
|
-
${this.includeWeekNumbers === false ? html.nothing : html `<div class='week'>${weekNumber}</div>`}
|
|
81
|
-
${days.map(day => this.getDayTemplate(day))}
|
|
82
|
-
`)}
|
|
83
|
-
</mo-grid>
|
|
65
|
+
return html `
|
|
66
|
+
<mo-grid class='month'
|
|
67
|
+
rows='repeat(auto-fill, var(--mo-calendar-day-size))'
|
|
68
|
+
columns=${this.includeWeekNumbers ? 'var(--mo-calendar-week-number-width) repeat(7, var(--mo-calendar-day-size))' : 'repeat(7, var(--mo-calendar-day-size))'}
|
|
69
|
+
${style({ alignItems: 'center', justifyItems: 'center' })}
|
|
70
|
+
>
|
|
71
|
+
${this.includeWeekNumbers === false ? html.nothing : html `<div></div>`}
|
|
72
|
+
|
|
73
|
+
${this.navigatingValue.weekDayNames.map(dayName => html `
|
|
74
|
+
<div class='monthHeader'>
|
|
75
|
+
${dayName.charAt(0).toUpperCase() + dayName.charAt(1)}
|
|
76
|
+
</div>
|
|
77
|
+
`)}
|
|
78
|
+
|
|
79
|
+
${this.days.map(([weekNumber, days]) => html `
|
|
80
|
+
${this.includeWeekNumbers === false ? html.nothing : html `<div class='week'>${weekNumber}</div>`}
|
|
81
|
+
${days.map(day => this.getDayTemplate(day))}
|
|
82
|
+
`)}
|
|
83
|
+
</mo-grid>
|
|
84
84
|
`;
|
|
85
85
|
}
|
|
86
86
|
*rangeOf(start, end) {
|
|
@@ -90,10 +90,10 @@ let Calendar = class Calendar extends Component {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
getDayTemplate(day) {
|
|
93
|
-
return html `
|
|
94
|
-
<mo-flex class=${classMap(this.getDayElementClasses(day))} @click=${() => this.handleDayClick(day)}>
|
|
95
|
-
${day.format({ day: 'numeric' })}
|
|
96
|
-
</mo-flex>
|
|
93
|
+
return html `
|
|
94
|
+
<mo-flex class=${classMap(this.getDayElementClasses(day))} @click=${() => this.handleDayClick(day)}>
|
|
95
|
+
${day.format({ day: 'numeric' })}
|
|
96
|
+
</mo-flex>
|
|
97
97
|
`;
|
|
98
98
|
}
|
|
99
99
|
handleDayClick(day) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Calendar } from './Calendar.js';
|
|
2
2
|
import { DateTime } from '@3mo/date-time';
|
|
3
|
-
/** @fires change
|
|
3
|
+
/** @fires change */
|
|
4
4
|
export declare class SelectableCalendar extends Calendar {
|
|
5
5
|
readonly change: EventDispatcher<DateTime>;
|
|
6
6
|
value?: DateTime;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectableCalendar.d.ts","sourceRoot":"","sources":["../../../selection/calendar/SelectableCalendar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,
|
|
1
|
+
{"version":3,"file":"SelectableCalendar.d.ts","sourceRoot":"","sources":["../../../selection/calendar/SelectableCalendar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,oBAAoB;AACpB,qBACa,kBAAmB,SAAQ,QAAQ;IACtC,QAAQ,CAAC,MAAM,EAAG,eAAe,CAAC,QAAQ,CAAC,CAAA;IAExB,KAAK,CAAC,EAAE,QAAQ,CAAA;IAE5C,WAAoB,MAAM,kCASzB;cAEkB,cAAc,CAAC,GAAG,EAAE,QAAQ;cAK5B,oBAAoB,CAAC,GAAG,EAAE,QAAQ;;;CAMrD;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,wBAAwB,EAAE,kBAAkB,CAAA;KAC5C;CACD"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { component, css, event, property } from '@a11d/lit';
|
|
3
3
|
import { Calendar } from './Calendar.js';
|
|
4
|
-
/** @fires change
|
|
4
|
+
/** @fires change */
|
|
5
5
|
let SelectableCalendar = class SelectableCalendar extends Calendar {
|
|
6
6
|
static get styles() {
|
|
7
|
-
return css `
|
|
8
|
-
${super.styles}
|
|
9
|
-
|
|
10
|
-
.day.selected {
|
|
11
|
-
background: var(--mo-color-accent-transparent);
|
|
12
|
-
color: var(--mo-color-accent) !important;
|
|
13
|
-
}
|
|
7
|
+
return css `
|
|
8
|
+
${super.styles}
|
|
9
|
+
|
|
10
|
+
.day.selected {
|
|
11
|
+
background: var(--mo-color-accent-transparent);
|
|
12
|
+
color: var(--mo-color-accent) !important;
|
|
13
|
+
}
|
|
14
14
|
`;
|
|
15
15
|
}
|
|
16
16
|
handleDayClick(day) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DateTime } from '@3mo/date-time';
|
|
2
2
|
import { SelectableCalendar } from './SelectableCalendar.js';
|
|
3
|
-
/** @fires change
|
|
3
|
+
/** @fires change */
|
|
4
4
|
export declare class SelectableRangeCalendar extends SelectableCalendar {
|
|
5
5
|
dateRange?: DateTimeRange;
|
|
6
6
|
static get styles(): import("@a11d/lit").CSSResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectableRangeCalendar.d.ts","sourceRoot":"","sources":["../../../selection/calendar/SelectableRangeCalendar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAE5D,
|
|
1
|
+
{"version":3,"file":"SelectableRangeCalendar.d.ts","sourceRoot":"","sources":["../../../selection/calendar/SelectableRangeCalendar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAE5D,oBAAoB;AACpB,qBACa,uBAAwB,SAAQ,kBAAkB;IAClC,SAAS,CAAC,EAAE,aAAa,CAAA;IAErD,WAAoB,MAAM,kCA8BzB;cAEkB,oBAAoB,CAAC,GAAG,EAAE,QAAQ;;;;;;CAWrD;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,8BAA8B,EAAE,uBAAuB,CAAA;KACvD;CACD"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { component, css, property } from '@a11d/lit';
|
|
3
3
|
import { SelectableCalendar } from './SelectableCalendar.js';
|
|
4
|
-
/** @fires change
|
|
4
|
+
/** @fires change */
|
|
5
5
|
let SelectableRangeCalendar = class SelectableRangeCalendar extends SelectableCalendar {
|
|
6
6
|
static get styles() {
|
|
7
7
|
return css `
|
|
8
8
|
${super.styles}
|
|
9
9
|
|
|
10
10
|
.day.isInRange:not(.selected) {
|
|
11
|
-
background:
|
|
11
|
+
background: color-mix(in srgb, var(--mo-color-accent), transparent 92%);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.day.isInRange {
|