@mintplayer/web-components 2.1.1 → 2.3.0
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/a11y/index.mjs +26 -2
- package/a11y/src/dismiss-stack.d.ts +25 -0
- package/a11y/src/error-text.d.ts +41 -0
- package/a11y/src/focus-restore.d.ts +116 -0
- package/a11y/src/focus-trap.d.ts +69 -0
- package/a11y/src/form-associated.d.ts +48 -0
- package/a11y/src/host-aria.d.ts +154 -0
- package/a11y/src/index.d.ts +16 -0
- package/a11y/src/inert-regions.d.ts +52 -0
- package/a11y/src/live-announcer.d.ts +8 -0
- package/a11y/src/roving-focus.d.ts +118 -0
- package/a11y/src/testing/expect-idref-resolves.d.ts +31 -0
- package/a11y/src/testing/index.d.ts +1 -0
- package/accordion/index.d.ts +1 -0
- package/accordion/index.mjs +549 -0
- package/accordion/src/components/index.d.ts +3 -0
- package/accordion/src/components/mp-accordion-tab.d.ts +30 -0
- package/accordion/src/components/mp-accordion.d.ts +66 -0
- package/accordion/src/index.d.ts +3 -0
- package/accordion/src/styles/index.d.ts +1 -0
- package/calendar/index.mjs +1 -1
- package/calendar/src/mp-calendar.element.d.ts +2 -0
- package/carousel/index.d.ts +1 -0
- package/carousel/index.mjs +994 -0
- package/carousel/src/components/index.d.ts +1 -0
- package/carousel/src/components/mp-carousel.d.ts +58 -0
- package/carousel/src/index.d.ts +3 -0
- package/carousel/src/styles/index.d.ts +1 -0
- package/carousel/src/types/carousel.d.ts +10 -0
- package/carousel/src/types/index.d.ts +1 -0
- package/checkbox/index.mjs +1 -1
- package/checkbox/src/components/mp-checkbox.d.ts +59 -1
- package/chunks/focus-restore-DxuP1Oe2.mjs +94 -0
- package/chunks/focus-trap-DTOLJ5bb.mjs +121 -0
- package/chunks/form-associated-axmc5sY0.mjs +58 -0
- package/chunks/host-aria-WSGs7SPQ.mjs +152 -0
- package/chunks/inert-regions-DXCnn1LN.mjs +48 -0
- package/chunks/invalid-feedback.styles-he0JYrJm.mjs +11 -0
- package/chunks/{live-announcer-CZDTKulf.mjs → live-announcer-Bi0orG4n.mjs} +9 -9
- package/chunks/{mp-calendar.element-UC68iDbi.mjs → mp-calendar.element-u6uS31_j.mjs} +136 -105
- package/chunks/mp-checkbox-Ph2mMRGz.mjs +312 -0
- package/chunks/{mp-datatable-Bfw0KGkV.mjs → mp-datatable-BwTlh9A_.mjs} +265 -103
- package/chunks/{mp-pagination-BGxsawFL.mjs → mp-pagination-Dea75mD4.mjs} +25 -22
- package/chunks/mp-radio-BjW1HNSc.mjs +300 -0
- package/chunks/{mp-select-BDS1-YGn.mjs → mp-select-Ctu-v1-p.mjs} +163 -40
- package/chunks/{mp-splitter-C8cGCmac.mjs → mp-splitter-LszuRDbR.mjs} +53 -46
- package/chunks/{mp-tab-page-D1b4x-y2.mjs → mp-tab-page-CaCzX1ym.mjs} +46 -45
- package/chunks/{mp-timepicker.element-BwEiwX92.mjs → mp-timepicker.element-Bz393NDQ.mjs} +93 -86
- package/chunks/{mp-toggle-button-dLZNDUVz.mjs → mp-toggle-button-Kz6sIgBJ.mjs} +131 -37
- package/chunks/{mp-treeview-C48F63xb.mjs → mp-treeview-tkWu28iF.mjs} +67 -43
- package/chunks/overlay-controller-DPt13i8p.mjs +314 -0
- package/chunks/roving-focus-CrL9982a.mjs +129 -0
- package/code-snippet/index.mjs +21 -13
- package/code-snippet/src/mp-code-snippet.element.d.ts +6 -0
- package/datatable/index.mjs +1 -1
- package/datatable/src/components/mp-datatable.d.ts +50 -0
- package/datatable/src/types/index.d.ts +2 -0
- package/datatable/src/types/labels.d.ts +30 -0
- package/datepicker/index.mjs +45 -22
- package/datepicker/src/mp-datepicker.element.d.ts +30 -0
- package/datetime-picker/index.mjs +15 -9
- package/dock/index.mjs +365 -209
- package/dock/src/components/mint-dock-manager.element.d.ts +63 -3
- package/dropdown-menu/index.mjs +135 -90
- package/dropdown-menu/src/components/mp-dropdown-menu.d.ts +12 -3
- package/file-manager/index.mjs +279 -214
- package/file-manager/src/components/mp-file-manager.d.ts +22 -0
- package/file-manager/src/types/messages.d.ts +9 -0
- package/multi-range/index.mjs +26 -10
- package/multi-range/src/mint-multi-range.element.d.ts +7 -0
- package/navbar/index.mjs +53 -39
- package/navbar/src/components/mp-navbar.d.ts +1 -0
- package/otp-input/index.mjs +82 -48
- package/otp-input/src/mint-otp-input.element.d.ts +31 -3
- package/overlay/index.mjs +2 -258
- package/overlay/src/overlay-controller.d.ts +64 -4
- package/package.json +21 -1
- package/pagination/index.mjs +1 -1
- package/query-builder/index.mjs +117 -87
- package/query-builder/src/model/messages.d.ts +9 -0
- package/radio/index.mjs +2 -160
- package/radio/src/components/mp-radio.d.ts +58 -3
- package/radio-group/index.d.ts +1 -0
- package/radio-group/index.mjs +145 -0
- package/radio-group/src/components/mp-radio-group.d.ts +52 -0
- package/radio-group/src/index.d.ts +1 -0
- package/radio-group/src/styles/radio-group.styles.d.ts +2 -0
- package/ribbon/index.mjs +316 -304
- package/ribbon/src/mp-ribbon.element.d.ts +16 -0
- package/scheduler/index.mjs +219 -132
- package/scheduler/src/components/mp-scheduler.d.ts +3 -0
- package/scheduler/src/views/base-view.d.ts +23 -0
- package/select/index.mjs +1 -1
- package/select/src/components/mp-select.d.ts +60 -3
- package/shell/index.mjs +142 -31
- package/shell/src/components/mp-shell.d.ts +1 -0
- package/signature-pad/index.d.ts +1 -0
- package/signature-pad/index.mjs +230 -0
- package/signature-pad/src/index.d.ts +2 -0
- package/signature-pad/src/mp-signature-pad.element.d.ts +143 -0
- package/signature-pad/src/mp-signature-pad.element.template.d.ts +2 -0
- package/signature-pad/src/types/signature.d.ts +12 -0
- package/splitter/index.mjs +1 -1
- package/splitter/src/components/mp-splitter.d.ts +7 -0
- package/splitter/src/index.d.ts +1 -1
- package/swiper-core/index.d.ts +1 -0
- package/swiper-core/index.mjs +184 -0
- package/swiper-core/src/index-machine.d.ts +59 -0
- package/swiper-core/src/index.d.ts +4 -0
- package/swiper-core/src/keymap.d.ts +2 -0
- package/swiper-core/src/models/index.d.ts +1 -0
- package/swiper-core/src/models/types.d.ts +99 -0
- package/swiper-core/src/pointer-arbiter.d.ts +45 -0
- package/tab-control/index.mjs +1 -1
- package/tile-manager/index.mjs +110 -93
- package/timeline/index.mjs +138 -54
- package/timeline/src/components/mp-timeline.d.ts +15 -0
- package/timepicker/index.mjs +1 -1
- package/timepicker/src/mp-time-list.element.d.ts +13 -4
- package/timepicker/src/mp-timepicker.element.d.ts +29 -0
- package/toggle-button/index.mjs +1 -1
- package/toggle-button/src/components/mp-toggle-button.d.ts +32 -1
- package/tree-select/index.mjs +233 -121
- package/tree-select/src/components/mp-tree-select.d.ts +37 -0
- package/treeview/index.mjs +1 -1
- package/treeview/src/components/mp-treeview.d.ts +10 -1
- package/chunks/mp-checkbox-BokLL7BS.mjs +0 -211
- package/dropdown/src/styles/dropdown.styles.d.ts +0 -2
|
@@ -0,0 +1,549 @@
|
|
|
1
|
+
import { unsafeCSS as b, LitElement as d, adoptStyles as l, html as s, nothing as c, css as u } from "lit";
|
|
2
|
+
const h = b(`.accordion {
|
|
3
|
+
--bs-accordion-color: var(--bs-body-color);
|
|
4
|
+
--bs-accordion-bg: var(--bs-body-bg);
|
|
5
|
+
--bs-accordion-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
|
|
6
|
+
--bs-accordion-border-color: var(--bs-border-color);
|
|
7
|
+
--bs-accordion-border-width: var(--bs-border-width);
|
|
8
|
+
--bs-accordion-border-radius: var(--bs-border-radius);
|
|
9
|
+
--bs-accordion-inner-border-radius: calc(var(--bs-border-radius) - (var(--bs-border-width)));
|
|
10
|
+
--bs-accordion-btn-padding-x: 1.25rem;
|
|
11
|
+
--bs-accordion-btn-padding-y: 1rem;
|
|
12
|
+
--bs-accordion-btn-color: var(--bs-body-color);
|
|
13
|
+
--bs-accordion-btn-bg: var(--bs-accordion-bg);
|
|
14
|
+
--bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
|
|
15
|
+
--bs-accordion-btn-icon-width: 1.25rem;
|
|
16
|
+
--bs-accordion-btn-icon-transform: rotate(-180deg);
|
|
17
|
+
--bs-accordion-btn-icon-transition: transform 0.2s ease-in-out;
|
|
18
|
+
--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='rgb%285.2, 44, 101.2%29' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
|
|
19
|
+
--bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
|
20
|
+
--bs-accordion-body-padding-x: 1.25rem;
|
|
21
|
+
--bs-accordion-body-padding-y: 1rem;
|
|
22
|
+
--bs-accordion-active-color: var(--bs-primary-text-emphasis);
|
|
23
|
+
--bs-accordion-active-bg: var(--bs-primary-bg-subtle);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.accordion-button {
|
|
27
|
+
position: relative;
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
width: 100%;
|
|
31
|
+
padding: var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);
|
|
32
|
+
font-size: 1rem;
|
|
33
|
+
color: var(--bs-accordion-btn-color);
|
|
34
|
+
text-align: left;
|
|
35
|
+
background-color: var(--bs-accordion-btn-bg);
|
|
36
|
+
border: 0;
|
|
37
|
+
border-radius: 0;
|
|
38
|
+
overflow-anchor: none;
|
|
39
|
+
transition: var(--bs-accordion-transition);
|
|
40
|
+
}
|
|
41
|
+
@media (prefers-reduced-motion: reduce) {
|
|
42
|
+
.accordion-button {
|
|
43
|
+
transition: none;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
.accordion-button:not(.collapsed) {
|
|
47
|
+
color: var(--bs-accordion-active-color);
|
|
48
|
+
background-color: var(--bs-accordion-active-bg);
|
|
49
|
+
box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
|
|
50
|
+
}
|
|
51
|
+
.accordion-button:not(.collapsed)::after {
|
|
52
|
+
background-image: var(--bs-accordion-btn-active-icon);
|
|
53
|
+
transform: var(--bs-accordion-btn-icon-transform);
|
|
54
|
+
}
|
|
55
|
+
.accordion-button::after {
|
|
56
|
+
flex-shrink: 0;
|
|
57
|
+
width: var(--bs-accordion-btn-icon-width);
|
|
58
|
+
height: var(--bs-accordion-btn-icon-width);
|
|
59
|
+
margin-left: auto;
|
|
60
|
+
content: "";
|
|
61
|
+
background-image: var(--bs-accordion-btn-icon);
|
|
62
|
+
background-repeat: no-repeat;
|
|
63
|
+
background-size: var(--bs-accordion-btn-icon-width);
|
|
64
|
+
transition: var(--bs-accordion-btn-icon-transition);
|
|
65
|
+
}
|
|
66
|
+
@media (prefers-reduced-motion: reduce) {
|
|
67
|
+
.accordion-button::after {
|
|
68
|
+
transition: none;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
.accordion-button:hover {
|
|
72
|
+
z-index: 2;
|
|
73
|
+
}
|
|
74
|
+
.accordion-button:focus {
|
|
75
|
+
z-index: 3;
|
|
76
|
+
outline: 0;
|
|
77
|
+
box-shadow: var(--bs-accordion-btn-focus-box-shadow);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.accordion-header {
|
|
81
|
+
margin-bottom: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.accordion-item {
|
|
85
|
+
color: var(--bs-accordion-color);
|
|
86
|
+
background-color: var(--bs-accordion-bg);
|
|
87
|
+
border: var(--bs-accordion-border-width) solid var(--bs-accordion-border-color);
|
|
88
|
+
}
|
|
89
|
+
.accordion-item:first-of-type {
|
|
90
|
+
border-top-left-radius: var(--bs-accordion-border-radius);
|
|
91
|
+
border-top-right-radius: var(--bs-accordion-border-radius);
|
|
92
|
+
}
|
|
93
|
+
.accordion-item:first-of-type > .accordion-header .accordion-button {
|
|
94
|
+
border-top-left-radius: var(--bs-accordion-inner-border-radius);
|
|
95
|
+
border-top-right-radius: var(--bs-accordion-inner-border-radius);
|
|
96
|
+
}
|
|
97
|
+
.accordion-item:not(:first-of-type) {
|
|
98
|
+
border-top: 0;
|
|
99
|
+
}
|
|
100
|
+
.accordion-item:last-of-type {
|
|
101
|
+
border-bottom-right-radius: var(--bs-accordion-border-radius);
|
|
102
|
+
border-bottom-left-radius: var(--bs-accordion-border-radius);
|
|
103
|
+
}
|
|
104
|
+
.accordion-item:last-of-type > .accordion-header .accordion-button.collapsed {
|
|
105
|
+
border-bottom-right-radius: var(--bs-accordion-inner-border-radius);
|
|
106
|
+
border-bottom-left-radius: var(--bs-accordion-inner-border-radius);
|
|
107
|
+
}
|
|
108
|
+
.accordion-item:last-of-type > .accordion-collapse {
|
|
109
|
+
border-bottom-right-radius: var(--bs-accordion-border-radius);
|
|
110
|
+
border-bottom-left-radius: var(--bs-accordion-border-radius);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.accordion-body {
|
|
114
|
+
padding: var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.accordion-flush > .accordion-item {
|
|
118
|
+
border-right: 0;
|
|
119
|
+
border-left: 0;
|
|
120
|
+
border-radius: 0;
|
|
121
|
+
}
|
|
122
|
+
.accordion-flush > .accordion-item:first-child {
|
|
123
|
+
border-top: 0;
|
|
124
|
+
}
|
|
125
|
+
.accordion-flush > .accordion-item:last-child {
|
|
126
|
+
border-bottom: 0;
|
|
127
|
+
}
|
|
128
|
+
.accordion-flush > .accordion-item > .accordion-collapse,
|
|
129
|
+
.accordion-flush > .accordion-item > .accordion-header .accordion-button,
|
|
130
|
+
.accordion-flush > .accordion-item > .accordion-header .accordion-button.collapsed {
|
|
131
|
+
border-radius: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[data-bs-theme=dark] .accordion-button::after {
|
|
135
|
+
--bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='rgb%28109.8, 168, 253.8%29'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
|
|
136
|
+
--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='rgb%28109.8, 168, 253.8%29'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
:host {
|
|
140
|
+
display: block;
|
|
141
|
+
--bs-accordion-color: var(--bs-body-color);
|
|
142
|
+
--bs-accordion-bg: var(--bs-body-bg);
|
|
143
|
+
--bs-accordion-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
|
|
144
|
+
--bs-accordion-border-color: var(--bs-border-color);
|
|
145
|
+
--bs-accordion-border-width: var(--bs-border-width);
|
|
146
|
+
--bs-accordion-border-radius: var(--bs-border-radius);
|
|
147
|
+
--bs-accordion-inner-border-radius: calc(var(--bs-border-radius) - (var(--bs-border-width)));
|
|
148
|
+
--bs-accordion-btn-padding-x: 1.25rem;
|
|
149
|
+
--bs-accordion-btn-padding-y: 1rem;
|
|
150
|
+
--bs-accordion-btn-color: var(--bs-body-color);
|
|
151
|
+
--bs-accordion-btn-bg: var(--bs-accordion-bg);
|
|
152
|
+
--bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
|
|
153
|
+
--bs-accordion-btn-icon-width: 1.25rem;
|
|
154
|
+
--bs-accordion-btn-icon-transform: rotate(-180deg);
|
|
155
|
+
--bs-accordion-btn-icon-transition: transform 0.2s ease-in-out;
|
|
156
|
+
--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='rgb%285.2, 44, 101.2%29' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
|
|
157
|
+
--bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
|
158
|
+
--bs-accordion-body-padding-x: 0;
|
|
159
|
+
--bs-accordion-body-padding-y: 0;
|
|
160
|
+
--bs-accordion-active-color: var(--bs-primary-text-emphasis);
|
|
161
|
+
--bs-accordion-active-bg: var(--bs-primary-bg-subtle);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
:host([data-nested]) {
|
|
165
|
+
margin: calc(-1 * var(--bs-accordion-border-width));
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
*,
|
|
169
|
+
*::before,
|
|
170
|
+
*::after {
|
|
171
|
+
box-sizing: border-box;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.accordion-content {
|
|
175
|
+
padding: var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
summary.accordion-button {
|
|
179
|
+
cursor: pointer;
|
|
180
|
+
user-select: none;
|
|
181
|
+
list-style: none;
|
|
182
|
+
line-height: normal;
|
|
183
|
+
}
|
|
184
|
+
summary.accordion-button::marker {
|
|
185
|
+
content: "";
|
|
186
|
+
}
|
|
187
|
+
summary.accordion-button::-webkit-details-marker {
|
|
188
|
+
display: none;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
summary.accordion-button[aria-disabled=true] {
|
|
192
|
+
pointer-events: none;
|
|
193
|
+
opacity: 0.65;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
summary.accordion-button::after {
|
|
197
|
+
background-image: none;
|
|
198
|
+
background-color: currentColor;
|
|
199
|
+
mask-image: var(--bs-accordion-btn-icon);
|
|
200
|
+
mask-repeat: no-repeat;
|
|
201
|
+
mask-size: var(--bs-accordion-btn-icon-width);
|
|
202
|
+
-webkit-mask-image: var(--bs-accordion-btn-icon);
|
|
203
|
+
-webkit-mask-repeat: no-repeat;
|
|
204
|
+
-webkit-mask-size: var(--bs-accordion-btn-icon-width);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
details[open] > summary.accordion-button {
|
|
208
|
+
color: var(--bs-accordion-active-color);
|
|
209
|
+
background-color: var(--bs-accordion-active-bg);
|
|
210
|
+
box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
|
|
211
|
+
border-bottom-left-radius: 0;
|
|
212
|
+
border-bottom-right-radius: 0;
|
|
213
|
+
}
|
|
214
|
+
details[open] > summary.accordion-button::after {
|
|
215
|
+
background-image: none;
|
|
216
|
+
mask-image: var(--bs-accordion-btn-active-icon);
|
|
217
|
+
-webkit-mask-image: var(--bs-accordion-btn-active-icon);
|
|
218
|
+
transform: var(--bs-accordion-btn-icon-transform);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
summary.accordion-button:focus-visible {
|
|
222
|
+
z-index: 3;
|
|
223
|
+
outline: 0;
|
|
224
|
+
box-shadow: var(--bs-accordion-btn-focus-box-shadow);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
:host(:not([highlight-active-tab])) details[open] > summary.accordion-button {
|
|
228
|
+
background-color: unset;
|
|
229
|
+
color: inherit;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
:host {
|
|
233
|
+
interpolate-size: allow-keywords;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
@supports (interpolate-size: allow-keywords) {
|
|
237
|
+
details.accordion-item::details-content {
|
|
238
|
+
block-size: 0;
|
|
239
|
+
overflow-y: clip;
|
|
240
|
+
transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete;
|
|
241
|
+
}
|
|
242
|
+
details.accordion-item[open]::details-content {
|
|
243
|
+
block-size: auto;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
@supports (not (interpolate-size: allow-keywords)) and (selector(::details-content)) {
|
|
247
|
+
details.accordion-item::details-content {
|
|
248
|
+
display: grid;
|
|
249
|
+
grid-template-rows: 0fr;
|
|
250
|
+
transition: grid-template-rows 0.35s ease, content-visibility 0.35s allow-discrete;
|
|
251
|
+
}
|
|
252
|
+
details.accordion-item[open]::details-content {
|
|
253
|
+
grid-template-rows: 1fr;
|
|
254
|
+
}
|
|
255
|
+
details.accordion-item .accordion-content {
|
|
256
|
+
min-height: 0;
|
|
257
|
+
overflow-y: clip;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
@media (prefers-reduced-motion: reduce) {
|
|
261
|
+
details.accordion-item::details-content {
|
|
262
|
+
transition: none;
|
|
263
|
+
}
|
|
264
|
+
}`);
|
|
265
|
+
class n extends d {
|
|
266
|
+
static {
|
|
267
|
+
this.styles = [h];
|
|
268
|
+
}
|
|
269
|
+
static get observedAttributes() {
|
|
270
|
+
return [
|
|
271
|
+
...super.observedAttributes ?? [],
|
|
272
|
+
"multi",
|
|
273
|
+
"highlight-active-tab",
|
|
274
|
+
"tab-count"
|
|
275
|
+
];
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Config is attribute-only on purpose — a public accessor of the same name
|
|
279
|
+
* makes `@lit/react` treat it as a property and drop it from the
|
|
280
|
+
* server-rendered HTML, which would silently change the SSR chrome
|
|
281
|
+
* (carousel lesson, docs/prd/carousel-wc.md §8).
|
|
282
|
+
*/
|
|
283
|
+
get #a() {
|
|
284
|
+
return this.hasAttribute("multi") && this.getAttribute("multi") !== "false";
|
|
285
|
+
}
|
|
286
|
+
/** Tab count for chrome generation, when no light DOM is present yet. */
|
|
287
|
+
get #n() {
|
|
288
|
+
const o = Number(this.getAttribute("tab-count"));
|
|
289
|
+
return Number.isFinite(o) && o > 0 ? Math.floor(o) : 0;
|
|
290
|
+
}
|
|
291
|
+
#e = [];
|
|
292
|
+
#o = [];
|
|
293
|
+
#t = null;
|
|
294
|
+
connectedCallback() {
|
|
295
|
+
this.shadowRoot && this.#d(), super.connectedCallback(), this.setAttribute("data-js", ""), this.parentElement?.closest("mp-accordion") ? this.setAttribute("data-nested", "") : this.removeAttribute("data-nested"), this.#t = new MutationObserver(() => this.#c()), this.#t.observe(this, { childList: !0 }), this.#c();
|
|
296
|
+
}
|
|
297
|
+
disconnectedCallback() {
|
|
298
|
+
this.#t?.disconnect(), this.#t = null, super.disconnectedCallback();
|
|
299
|
+
}
|
|
300
|
+
createRenderRoot() {
|
|
301
|
+
const o = this.constructor;
|
|
302
|
+
let r;
|
|
303
|
+
return this.shadowRoot ? (this.shadowRoot.replaceChildren(), r = this.shadowRoot) : r = this.attachShadow(o.shadowRootOptions ?? { mode: "open" }), l(r, o.elementStyles ?? []), r.addEventListener("toggle", (t) => this.#l(t), { capture: !0 }), r;
|
|
304
|
+
}
|
|
305
|
+
attributeChangedCallback(o, r, t) {
|
|
306
|
+
super.attributeChangedCallback(o, r, t), r !== t && this.requestUpdate();
|
|
307
|
+
}
|
|
308
|
+
// ---------------------------------------------------------------- public
|
|
309
|
+
/** Indexes of the currently open tabs. */
|
|
310
|
+
get activeIndexes() {
|
|
311
|
+
return this.#o.flatMap((o, r) => o.active ? [r] : []);
|
|
312
|
+
}
|
|
313
|
+
/** Open a tab (closing its siblings unless `multi`). */
|
|
314
|
+
open(o) {
|
|
315
|
+
this.#r(o, !0, null);
|
|
316
|
+
}
|
|
317
|
+
/** Close a tab, and every accordion nested inside it. */
|
|
318
|
+
close(o) {
|
|
319
|
+
this.#r(o, !1, null);
|
|
320
|
+
}
|
|
321
|
+
toggle(o) {
|
|
322
|
+
this.#r(o, !this.#o[o]?.active, null);
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Close every open tab. Nested accordions are closed too, so this
|
|
326
|
+
* collapses an entire branch in one call.
|
|
327
|
+
*/
|
|
328
|
+
closeAll(o = null) {
|
|
329
|
+
this.#o.forEach((r, t) => {
|
|
330
|
+
r.active && this.#r(t, !1, o);
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
// --------------------------------------------------------------- private
|
|
334
|
+
/**
|
|
335
|
+
* Mirror the server-rendered rows' UA-owned open state onto the light-DOM
|
|
336
|
+
* markers, so the client render opens exactly what the user left open.
|
|
337
|
+
*/
|
|
338
|
+
#d() {
|
|
339
|
+
const o = this.shadowRoot?.querySelectorAll("details.accordion-item");
|
|
340
|
+
if (!o?.length) return;
|
|
341
|
+
const r = this.#i();
|
|
342
|
+
o.forEach((t, e) => {
|
|
343
|
+
const a = r[e];
|
|
344
|
+
a && (t.open ? a.setAttribute("is-active", "") : a.removeAttribute("is-active"));
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Tabs and headers are identified by ATTRIBUTE, not tag name, and must be
|
|
349
|
+
* direct children — named slots only accept those. A framework wrapper
|
|
350
|
+
* always renders its own host element around the tab it contributes
|
|
351
|
+
* (`<bs-accordion-tab>`), so requiring a specific tag would put the marker
|
|
352
|
+
* one level too deep to ever be slotted. `<mp-accordion-tab>` is only the
|
|
353
|
+
* vanilla convenience element; it tags itself.
|
|
354
|
+
*/
|
|
355
|
+
#i() {
|
|
356
|
+
return Array.from(this.children).filter(
|
|
357
|
+
(o) => o instanceof HTMLElement && o.hasAttribute("accordion-tab")
|
|
358
|
+
);
|
|
359
|
+
}
|
|
360
|
+
#b() {
|
|
361
|
+
return Array.from(this.children).filter(
|
|
362
|
+
(o) => o instanceof HTMLElement && o.hasAttribute("accordion-header")
|
|
363
|
+
);
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Re-read the markers, (re-)stamp their slot names, and keep the per-marker
|
|
367
|
+
* attribute observations current. Stamping is idempotent, and framework
|
|
368
|
+
* wrappers stamp the same names server-side — where no script runs to do
|
|
369
|
+
* it — so the two never disagree.
|
|
370
|
+
*/
|
|
371
|
+
#c() {
|
|
372
|
+
const o = this.#i(), r = this.#b();
|
|
373
|
+
o.forEach((e, a) => {
|
|
374
|
+
const i = `c${a}`;
|
|
375
|
+
e.getAttribute("slot") !== i && e.setAttribute("slot", i);
|
|
376
|
+
}), r.forEach((e, a) => {
|
|
377
|
+
const i = `h${a}`;
|
|
378
|
+
e.getAttribute("slot") !== i && e.setAttribute("slot", i);
|
|
379
|
+
}), Array.from(this.children).forEach(
|
|
380
|
+
(e) => this.#t?.observe(e, {
|
|
381
|
+
attributes: !0,
|
|
382
|
+
attributeFilter: ["is-active", "disabled", "accordion-tab", "accordion-header"]
|
|
383
|
+
})
|
|
384
|
+
);
|
|
385
|
+
const t = this.#o;
|
|
386
|
+
this.#e = o, this.#o = o.map((e) => ({
|
|
387
|
+
active: e.hasAttribute("is-active"),
|
|
388
|
+
disabled: e.hasAttribute("disabled")
|
|
389
|
+
})), t.length === this.#o.length && this.#o.forEach((e, a) => {
|
|
390
|
+
!e.active && t[a].active && this.#s(a, null);
|
|
391
|
+
}), this.requestUpdate();
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* The single notification channel for UA-driven state changes: user
|
|
395
|
+
* activation, `name` exclusivity closing a sibling, or anything else that
|
|
396
|
+
* flips `open`. Per spike 0.1a the event is async, coalesced and carries no
|
|
397
|
+
* usable delta — so it is treated purely as "something changed" and every
|
|
398
|
+
* row's `open` is re-read and diffed against the state.
|
|
399
|
+
*/
|
|
400
|
+
#l(o) {
|
|
401
|
+
const r = this.renderRoot?.querySelectorAll("details.accordion-item");
|
|
402
|
+
r && r.forEach((t, e) => {
|
|
403
|
+
const a = this.#o[e];
|
|
404
|
+
if (!(!a || t.open === a.active)) {
|
|
405
|
+
if (a.disabled) {
|
|
406
|
+
t.open = a.active;
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
this.#r(e, t.open, o);
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* The single write path for tab state: updates the marker (the source of
|
|
415
|
+
* truth), enforces single-open, recursively collapses nested accordions on
|
|
416
|
+
* close, and announces every change that actually happened. The render pass
|
|
417
|
+
* reconciles `?open` from the markers, which in engines with `name` support
|
|
418
|
+
* merely confirms what the UA already did.
|
|
419
|
+
*/
|
|
420
|
+
#r(o, r, t) {
|
|
421
|
+
const e = this.#o[o];
|
|
422
|
+
!e || e.disabled || e.active === r || (r && !this.#a && this.#o.forEach((a, i) => {
|
|
423
|
+
i !== o && a.active && this.#r(i, !1, t);
|
|
424
|
+
}), this.#u(o, r), e.active = r, r || this.#s(o, t), this.requestUpdate(), this.dispatchEvent(
|
|
425
|
+
new CustomEvent("mp-accordion-tab-toggle", {
|
|
426
|
+
detail: { index: o, active: r, originalEvent: t },
|
|
427
|
+
bubbles: !0,
|
|
428
|
+
composed: !0
|
|
429
|
+
})
|
|
430
|
+
));
|
|
431
|
+
}
|
|
432
|
+
#u(o, r) {
|
|
433
|
+
const t = this.#e[o];
|
|
434
|
+
t && (r ? t.setAttribute("is-active", "") : t.removeAttribute("is-active"));
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Collapse every accordion inside a closing tab. `querySelectorAll` reaches
|
|
438
|
+
* ALL depths of the tab's light-DOM subtree in one pass, and each nested
|
|
439
|
+
* `closeAll()` collapses its own descendants in turn — so a branch can
|
|
440
|
+
* never be left with hidden-but-open tabs.
|
|
441
|
+
*/
|
|
442
|
+
#s(o, r) {
|
|
443
|
+
const t = this.#e[o];
|
|
444
|
+
t && t.querySelectorAll("mp-accordion").forEach((e) => {
|
|
445
|
+
e instanceof n && e.closeAll(r);
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Enter/Space activation is native to `<summary>`. This handler adds the
|
|
450
|
+
* APG accordion extras (Up/Down between headers, Home/End to the ends) and
|
|
451
|
+
* the disabled guard: `toggle` is not cancellable, but keydown IS — cancel
|
|
452
|
+
* it before the UA acts and a disabled tab is inert with no flash.
|
|
453
|
+
*/
|
|
454
|
+
#h(o, r) {
|
|
455
|
+
if (this.#o[o]?.disabled && (r.key === "Enter" || r.key === " ")) {
|
|
456
|
+
r.preventDefault();
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
const t = this.#o.length - 1;
|
|
460
|
+
let e = null;
|
|
461
|
+
switch (r.key) {
|
|
462
|
+
case "ArrowDown":
|
|
463
|
+
e = o === t ? 0 : o + 1;
|
|
464
|
+
break;
|
|
465
|
+
case "ArrowUp":
|
|
466
|
+
e = o === 0 ? t : o - 1;
|
|
467
|
+
break;
|
|
468
|
+
case "Home":
|
|
469
|
+
e = 0;
|
|
470
|
+
break;
|
|
471
|
+
case "End":
|
|
472
|
+
e = t;
|
|
473
|
+
break;
|
|
474
|
+
default:
|
|
475
|
+
return;
|
|
476
|
+
}
|
|
477
|
+
r.preventDefault(), this.shadowRoot?.querySelector(`#h${e}`)?.focus();
|
|
478
|
+
}
|
|
479
|
+
/** A disabled summary must also ignore the pointer (pointer-events: none in CSS is the primary guard; this covers synthesized clicks). */
|
|
480
|
+
#m(o, r) {
|
|
481
|
+
this.#o[o]?.disabled && (r.preventDefault(), r.stopPropagation());
|
|
482
|
+
}
|
|
483
|
+
render() {
|
|
484
|
+
const o = this.#o.length || this.#n, r = Array.from(
|
|
485
|
+
{ length: o },
|
|
486
|
+
(t, e) => this.#o[e] ?? { active: !1, disabled: !1 }
|
|
487
|
+
);
|
|
488
|
+
return s`
|
|
489
|
+
<div class="accordion-root" part="accordion">
|
|
490
|
+
${r.map((t, e) => this.#v(t, e))}
|
|
491
|
+
<slot></slot>
|
|
492
|
+
</div>
|
|
493
|
+
`;
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* One template for both tiers. `name` is constant: `<details name>` groups
|
|
497
|
+
* per node tree (spike 0.1a), and every accordion owns its own shadow root,
|
|
498
|
+
* so instances can never capture each other's exclusivity. The summary
|
|
499
|
+
* keeps a static `collapsed` class so Bootstrap's own
|
|
500
|
+
* `.accordion-button:not(.collapsed)` rules never fire — the open state is
|
|
501
|
+
* styled from `details[open]` (spike 0.1b).
|
|
502
|
+
*/
|
|
503
|
+
#v(o, r) {
|
|
504
|
+
return s`
|
|
505
|
+
<details
|
|
506
|
+
class="accordion-item"
|
|
507
|
+
name=${this.#a ? c : "acc"}
|
|
508
|
+
?open=${o.active}
|
|
509
|
+
part="item">
|
|
510
|
+
<summary
|
|
511
|
+
id="h${r}"
|
|
512
|
+
class="accordion-button collapsed"
|
|
513
|
+
aria-controls="c${r}"
|
|
514
|
+
aria-disabled=${o.disabled ? "true" : c}
|
|
515
|
+
tabindex=${o.disabled ? "-1" : c}
|
|
516
|
+
part="button"
|
|
517
|
+
@click=${(t) => this.#m(r, t)}
|
|
518
|
+
@keydown=${(t) => this.#h(r, t)}>
|
|
519
|
+
<slot name="h${r}"></slot>
|
|
520
|
+
</summary>
|
|
521
|
+
<div class="accordion-content" id="c${r}" role="region" aria-labelledby="h${r}" part="content">
|
|
522
|
+
<slot name="c${r}"></slot>
|
|
523
|
+
</div>
|
|
524
|
+
</details>
|
|
525
|
+
`;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
typeof customElements < "u" && !customElements.get("mp-accordion") && customElements.define("mp-accordion", n);
|
|
529
|
+
class m extends d {
|
|
530
|
+
static {
|
|
531
|
+
this.styles = u`
|
|
532
|
+
:host {
|
|
533
|
+
display: block;
|
|
534
|
+
}
|
|
535
|
+
`;
|
|
536
|
+
}
|
|
537
|
+
connectedCallback() {
|
|
538
|
+
super.connectedCallback(), this.setAttribute("accordion-tab", "");
|
|
539
|
+
}
|
|
540
|
+
render() {
|
|
541
|
+
return s`<slot></slot>`;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
typeof customElements < "u" && !customElements.get("mp-accordion-tab") && customElements.define("mp-accordion-tab", m);
|
|
545
|
+
export {
|
|
546
|
+
n as MpAccordion,
|
|
547
|
+
m as MpAccordionTab,
|
|
548
|
+
h as accordionStyles
|
|
549
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* `<mp-accordion-tab>` — inert marker child of `<mp-accordion>`.
|
|
4
|
+
*
|
|
5
|
+
* Holds one tab's BODY content and carries that tab's state as attributes
|
|
6
|
+
* (`is-active`, `disabled`). It renders nothing of its own: the parent owns
|
|
7
|
+
* the entire accordion chrome in a single shadow root (headers, inputs,
|
|
8
|
+
* ARIA, animation), and slots this element into the matching collapse
|
|
9
|
+
* region. The `mp-tab-page` precedent.
|
|
10
|
+
*
|
|
11
|
+
* A tab's HEADER cannot live inside this element — named slots only accept
|
|
12
|
+
* direct children of the shadow host — so it is authored as a sibling
|
|
13
|
+
* carrying the `accordion-header` attribute. The i-th header pairs with the
|
|
14
|
+
* i-th tab; the framework wrappers hoist header templates automatically, so
|
|
15
|
+
* only vanilla consumers see the flat shape:
|
|
16
|
+
*
|
|
17
|
+
* <mp-accordion>
|
|
18
|
+
* <span accordion-header>Profile</span>
|
|
19
|
+
* <mp-accordion-tab is-active>Profile body</mp-accordion-tab>
|
|
20
|
+
* </mp-accordion>
|
|
21
|
+
*
|
|
22
|
+
* This element is a convenience, not a requirement: the parent recognises
|
|
23
|
+
* tabs by the `accordion-tab` attribute (which this one stamps on itself),
|
|
24
|
+
* so a wrapper's own host element can be the marker instead.
|
|
25
|
+
*/
|
|
26
|
+
export declare class MpAccordionTab extends LitElement {
|
|
27
|
+
static styles: import('lit').CSSResult;
|
|
28
|
+
connectedCallback(): void;
|
|
29
|
+
render(): TemplateResult;
|
|
30
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
/** Detail of the `mp-accordion-tab-toggle` event. */
|
|
3
|
+
export interface AccordionTabToggleDetail {
|
|
4
|
+
/** Zero-based position of the tab that changed. */
|
|
5
|
+
index: number;
|
|
6
|
+
/** Its new state. */
|
|
7
|
+
active: boolean;
|
|
8
|
+
/** The click / keydown / toggle that caused it, or `null` when programmatic. */
|
|
9
|
+
originalEvent: Event | null;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* `<mp-accordion>` — Bootstrap accordion owning its whole structure in one
|
|
13
|
+
* shadow root, built on native `<details name>`/`<summary>` (decision D1).
|
|
14
|
+
*
|
|
15
|
+
* Light-DOM children are markers, not chrome: each `<mp-accordion-tab>`
|
|
16
|
+
* supplies one tab's body, each `[accordion-header]` element supplies one
|
|
17
|
+
* header, paired by position (i-th header ↔ i-th tab). This element stamps
|
|
18
|
+
* the `slot="hN"` / `slot="cN"` names itself, so consumers never write them.
|
|
19
|
+
* Children that are neither render through the default slot — an accordion
|
|
20
|
+
* with zero tabs is a valid styled container (the offcanvas nav uses one).
|
|
21
|
+
*
|
|
22
|
+
* ONE template serves both tiers. The UA owns disclosure state: a closed
|
|
23
|
+
* `<details>` removes its content from the tab order and the accessibility
|
|
24
|
+
* tree with no CSS, works with no script at all, and `name` gives single-open
|
|
25
|
+
* exclusivity natively (scoped per shadow root — spike 0.1a). Single-open is
|
|
26
|
+
* ALSO enforced here from state, because engines without `name` support (and
|
|
27
|
+
* jsdom) must behave identically and PRD §11a wants state true at every
|
|
28
|
+
* moment, not only where the UA cooperates.
|
|
29
|
+
*
|
|
30
|
+
* The `toggle` contract (spike 0.1a, all three engines): it does not bubble
|
|
31
|
+
* (delegate in the CAPTURE phase), it is asynchronous, and same-task flips
|
|
32
|
+
* are coalesced into one event carrying the final state — so toggle is
|
|
33
|
+
* treated purely as a notification and `details.open` is re-read from every
|
|
34
|
+
* row. A disabled tab is kept inert by a cancellable KEYDOWN guard;
|
|
35
|
+
* `toggle` itself cannot be cancelled.
|
|
36
|
+
*
|
|
37
|
+
* Active state lives on the light-DOM markers (`is-active`), which makes it
|
|
38
|
+
* declarative for every framework wrapper and survives the SSR handoff — the
|
|
39
|
+
* pre-upgrade `[open]` state is read back onto the markers before the shadow
|
|
40
|
+
* is replaced.
|
|
41
|
+
*
|
|
42
|
+
* Closing a tab closes every accordion nested inside it, at any depth, so a
|
|
43
|
+
* collapsed branch never hides expanded descendants.
|
|
44
|
+
*/
|
|
45
|
+
export declare class MpAccordion extends LitElement {
|
|
46
|
+
#private;
|
|
47
|
+
static styles: import('lit').CSSResult[];
|
|
48
|
+
static get observedAttributes(): string[];
|
|
49
|
+
connectedCallback(): void;
|
|
50
|
+
disconnectedCallback(): void;
|
|
51
|
+
createRenderRoot(): ShadowRoot;
|
|
52
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
53
|
+
/** Indexes of the currently open tabs. */
|
|
54
|
+
get activeIndexes(): number[];
|
|
55
|
+
/** Open a tab (closing its siblings unless `multi`). */
|
|
56
|
+
open(index: number): void;
|
|
57
|
+
/** Close a tab, and every accordion nested inside it. */
|
|
58
|
+
close(index: number): void;
|
|
59
|
+
toggle(index: number): void;
|
|
60
|
+
/**
|
|
61
|
+
* Close every open tab. Nested accordions are closed too, so this
|
|
62
|
+
* collapses an entire branch in one call.
|
|
63
|
+
*/
|
|
64
|
+
closeAll(originalEvent?: Event | null): void;
|
|
65
|
+
render(): TemplateResult;
|
|
66
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { accordionStyles } from './accordion.styles';
|
package/calendar/index.mjs
CHANGED
|
@@ -86,6 +86,8 @@ export declare class MpCalendarElement extends LitElement {
|
|
|
86
86
|
/** Localized weekday short + long names, in the order driven by firstDayOfWeek. */
|
|
87
87
|
private weekdayNames;
|
|
88
88
|
private monthLabel;
|
|
89
|
+
/** Focus the grid = focus its roving cell (dialog initial focus calls host.focus()). */
|
|
90
|
+
focus(options?: FocusOptions): void;
|
|
89
91
|
/**
|
|
90
92
|
* The cell that should carry tabindex="0". One per month — focused, else
|
|
91
93
|
* selected, else today, else first enabled day. Mirrors APG convention.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|