@brightspace-ui/core 3.267.1 → 3.268.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/components/alert/alert-toast.js +98 -102
- package/components/alert/alert.js +109 -113
- package/components/backdrop/backdrop-dirty-overlay.js +13 -17
- package/components/backdrop/backdrop-loading.js +105 -109
- package/components/backdrop/backdrop.js +50 -54
- package/components/breadcrumbs/breadcrumb-current-page.js +19 -23
- package/components/breadcrumbs/breadcrumb.js +50 -54
- package/components/breadcrumbs/breadcrumbs.js +34 -38
- package/components/button/button-add.js +156 -164
- package/components/button/button-copy-mixin.js +9 -11
- package/components/button/button-copy.js +15 -19
- package/components/button/button-icon.js +110 -114
- package/components/button/button-move.js +153 -157
- package/components/button/button-split-item.js +16 -20
- package/components/button/button-split.js +70 -74
- package/components/button/button-subtle-copy.js +17 -19
- package/components/button/button-subtle.js +145 -149
- package/components/button/button-toggle.js +25 -29
- package/components/button/button.js +70 -74
- package/components/button/floating-buttons.js +63 -67
- package/components/calendar/calendar.js +244 -248
- package/components/card/card-content-meta.js +13 -15
- package/components/card/card-content-title.js +9 -11
- package/components/card/card-footer-link.js +76 -80
- package/components/card/card-loading-shimmer.js +35 -39
- package/components/card/card.js +188 -192
- package/components/collapsible-panel/collapsible-panel-group.js +17 -21
- package/components/collapsible-panel/collapsible-panel-summary-item.js +27 -31
- package/components/collapsible-panel/collapsible-panel.js +258 -262
- package/components/count-badge/count-badge-icon.js +12 -16
- package/components/count-badge/count-badge-mixin.js +124 -128
- package/components/count-badge/count-badge.js +2 -4
- package/components/description-list/description-list-wrapper.js +27 -31
- package/components/dialog/dialog-confirm.js +55 -59
- package/components/dialog/dialog-fullscreen.js +128 -132
- package/components/dialog/dialog-mixin.js +39 -41
- package/components/dialog/dialog.js +61 -65
- package/components/dropdown/dropdown-button-subtle.js +21 -25
- package/components/dropdown/dropdown-button.js +31 -35
- package/components/dropdown/dropdown-context-menu.js +28 -31
- package/components/dropdown/dropdown-menu.js +27 -31
- package/components/dropdown/dropdown-more.js +23 -26
- package/components/dropdown/dropdown-opener-mixin.js +44 -46
- package/components/dropdown/dropdown-popover-mixin.js +155 -159
- package/components/dropdown/dropdown-tabs.js +5 -7
- package/components/dropdown/dropdown.js +1 -3
- package/components/empty-state/empty-state-action-button.js +18 -22
- package/components/empty-state/empty-state-action-link.js +14 -18
- package/components/empty-state/empty-state-illustrated.js +21 -25
- package/components/empty-state/empty-state-simple.js +8 -12
- package/components/expand-collapse/expand-collapse-content.js +48 -52
- package/components/filter/filter-dimension-set-date-text-value.js +34 -36
- package/components/filter/filter-dimension-set-date-time-range-value.js +45 -47
- package/components/filter/filter-dimension-set-empty-state.js +17 -19
- package/components/filter/filter-dimension-set-value.js +27 -29
- package/components/filter/filter-dimension-set.js +65 -67
- package/components/filter/filter-overflow-group.js +15 -19
- package/components/filter/filter-tags.js +16 -19
- package/components/filter/filter.js +115 -119
- package/components/focus-trap/focus-trap.js +17 -21
- package/components/form/form-element-mixin.js +33 -35
- package/components/form/form-error-summary.js +37 -42
- package/components/form/form.js +33 -37
- package/components/hierarchical-view/hierarchical-view-mixin.js +76 -80
- package/components/hierarchical-view/hierarchical-view.js +5 -7
- package/components/html-block/html-block.js +45 -49
- package/components/icons/icon-custom.js +20 -24
- package/components/icons/icon.js +20 -24
- package/components/icons/slotted-icon-mixin.js +16 -18
- package/components/inputs/input-checkbox-group.js +34 -38
- package/components/inputs/input-checkbox.js +106 -110
- package/components/inputs/input-color.js +142 -148
- package/components/inputs/input-date-range.js +90 -94
- package/components/inputs/input-date-time-range-to.js +70 -74
- package/components/inputs/input-date-time-range.js +110 -115
- package/components/inputs/input-date-time.js +75 -79
- package/components/inputs/input-date.js +101 -105
- package/components/inputs/input-fieldset.js +37 -43
- package/components/inputs/input-group.js +10 -12
- package/components/inputs/input-inline-help.js +4 -6
- package/components/inputs/input-number.js +112 -118
- package/components/inputs/input-percent.js +52 -58
- package/components/inputs/input-radio-group.js +45 -49
- package/components/inputs/input-radio-spacer.js +11 -13
- package/components/inputs/input-radio.js +62 -66
- package/components/inputs/input-search.js +63 -68
- package/components/inputs/input-select-styles.js +30 -25
- package/components/inputs/input-text.js +245 -251
- package/components/inputs/input-textarea.js +128 -132
- package/components/inputs/input-time-range.js +100 -104
- package/components/inputs/input-time.js +107 -113
- package/components/link/link-mixin.js +37 -41
- package/components/link/link.js +113 -119
- package/components/list/list-controls.js +25 -29
- package/components/list/list-item-button-mixin.js +10 -12
- package/components/list/list-item-checkbox-mixin.js +35 -37
- package/components/list/list-item-content.js +33 -35
- package/components/list/list-item-drag-drop-mixin.js +45 -47
- package/components/list/list-item-drag-handle.js +80 -84
- package/components/list/list-item-drag-image.js +77 -81
- package/components/list/list-item-expand-collapse-mixin.js +17 -19
- package/components/list/list-item-generic-layout.js +222 -226
- package/components/list/list-item-link-mixin.js +10 -12
- package/components/list/list-item-mixin.js +68 -70
- package/components/list/list-item-nav-mixin.js +17 -19
- package/components/list/list-item-placement-marker.js +65 -67
- package/components/list/list-item-role-mixin.js +9 -11
- package/components/list/list-item.js +7 -9
- package/components/list/list.js +121 -125
- package/components/loading-spinner/loading-spinner.js +93 -97
- package/custom-elements.json +1920 -6694
- package/helpers/focus.js +5 -1
- package/package.json +3 -2
|
@@ -149,304 +149,300 @@ export function getPrevMonth(month) {
|
|
|
149
149
|
*/
|
|
150
150
|
class Calendar extends LocalizeCoreElement(LitElement) {
|
|
151
151
|
|
|
152
|
-
static
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
};
|
|
196
|
-
}
|
|
152
|
+
static properties = {
|
|
153
|
+
/**
|
|
154
|
+
* Additional info for each day (ex. events on [{"date": "2024-09-19"}])
|
|
155
|
+
* @type {Array}
|
|
156
|
+
*/
|
|
157
|
+
dayInfos: { type: Array, attribute: 'day-infos' },
|
|
158
|
+
/**
|
|
159
|
+
* Unique label text for calendar (necessary if multiple calendars on page)
|
|
160
|
+
* @type {string}
|
|
161
|
+
*/
|
|
162
|
+
label: { attribute: 'label', reflect: true, type: String },
|
|
163
|
+
/**
|
|
164
|
+
* ADVANCED: Initial date to override the logic for determining default date to initially show
|
|
165
|
+
* @type {string}
|
|
166
|
+
*/
|
|
167
|
+
initialValue: { attribute: 'initial-value', type: String },
|
|
168
|
+
/**
|
|
169
|
+
* Maximum valid date that could be selected by a user
|
|
170
|
+
* @type {string}
|
|
171
|
+
*/
|
|
172
|
+
maxValue: { attribute: 'max-value', reflect: true, type: String },
|
|
173
|
+
/**
|
|
174
|
+
* Minimum valid date that could be selected by a user
|
|
175
|
+
* @type {string}
|
|
176
|
+
*/
|
|
177
|
+
minValue: { attribute: 'min-value', reflect: true, type: String },
|
|
178
|
+
/**
|
|
179
|
+
* Currently selected date
|
|
180
|
+
* @type {string}
|
|
181
|
+
*/
|
|
182
|
+
selectedValue: { type: String, attribute: 'selected-value' },
|
|
183
|
+
/**
|
|
184
|
+
* ACCESSIBILITY: Summary of the calendar used by screen reader users for identifying the calendar and/or summarizing its purpose
|
|
185
|
+
* @type {string}
|
|
186
|
+
*/
|
|
187
|
+
summary: { type: String },
|
|
188
|
+
_dialog: { type: Boolean },
|
|
189
|
+
_focusDate: { type: Object },
|
|
190
|
+
_isInitialFocusDate: { type: Boolean },
|
|
191
|
+
_monthNav: { type: String },
|
|
192
|
+
_shownMonth: { type: Number },
|
|
193
|
+
_shownYear: { type: Number }
|
|
194
|
+
};
|
|
197
195
|
|
|
198
|
-
static
|
|
199
|
-
|
|
200
|
-
:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
196
|
+
static styles = [bodySmallStyles, heading4Styles, offscreenStyles, css`
|
|
197
|
+
:host {
|
|
198
|
+
display: block;
|
|
199
|
+
min-width: 14rem;
|
|
200
|
+
}
|
|
204
201
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
202
|
+
table {
|
|
203
|
+
border-collapse: collapse;
|
|
204
|
+
border-spacing: 0;
|
|
205
|
+
table-layout: fixed;
|
|
206
|
+
width: 100%;
|
|
207
|
+
}
|
|
211
208
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
209
|
+
th {
|
|
210
|
+
border-bottom: 1px solid var(--d2l-theme-border-color-subtle);
|
|
211
|
+
padding-bottom: 0.6rem;
|
|
212
|
+
padding-top: 0.3rem;
|
|
213
|
+
text-align: center;
|
|
214
|
+
}
|
|
218
215
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
216
|
+
abbr {
|
|
217
|
+
text-decoration: none;
|
|
218
|
+
}
|
|
222
219
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
220
|
+
tbody > tr:first-child button {
|
|
221
|
+
margin-top: 0.3rem;
|
|
222
|
+
}
|
|
226
223
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
224
|
+
.d2l-calendar {
|
|
225
|
+
border-radius: 4px;
|
|
226
|
+
}
|
|
230
227
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
228
|
+
.d2l-calendar-title {
|
|
229
|
+
align-items: center;
|
|
230
|
+
display: flex;
|
|
231
|
+
justify-content: space-between;
|
|
232
|
+
}
|
|
236
233
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
234
|
+
.d2l-calendar-title .d2l-heading-4 {
|
|
235
|
+
height: 100%;
|
|
236
|
+
margin: 0;
|
|
237
|
+
opacity: 0;
|
|
238
|
+
}
|
|
242
239
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
240
|
+
.d2l-calendar-next .d2l-calendar-title .d2l-heading-4 {
|
|
241
|
+
padding-left: 20px;
|
|
242
|
+
padding-right: 0;
|
|
243
|
+
}
|
|
247
244
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
245
|
+
.d2l-calendar-prev .d2l-calendar-title .d2l-heading-4 {
|
|
246
|
+
padding-left: 0;
|
|
247
|
+
padding-right: 20px;
|
|
248
|
+
}
|
|
252
249
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
250
|
+
.d2l-calendar-next-updown .d2l-calendar-title .d2l-heading-4 {
|
|
251
|
+
padding-bottom: 0;
|
|
252
|
+
padding-top: 20px;
|
|
253
|
+
}
|
|
257
254
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
255
|
+
.d2l-calendar-prev-updown .d2l-calendar-title .d2l-heading-4 {
|
|
256
|
+
padding-bottom: 20px;
|
|
257
|
+
padding-top: 0;
|
|
258
|
+
}
|
|
262
259
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
260
|
+
.d2l-calendar-date {
|
|
261
|
+
align-items: center;
|
|
262
|
+
background-color: var(--d2l-theme-background-color-base);
|
|
263
|
+
border-radius: 0.3rem;
|
|
264
|
+
border-style: none;
|
|
265
|
+
box-sizing: content-box;
|
|
266
|
+
color: var(--d2l-theme-text-color-static-standard);
|
|
267
|
+
cursor: pointer;
|
|
268
|
+
display: flex;
|
|
269
|
+
font-family: inherit;
|
|
270
|
+
font-size: 0.8rem;
|
|
271
|
+
height: calc(2rem - 6px);
|
|
272
|
+
justify-content: center;
|
|
273
|
+
letter-spacing: inherit;
|
|
274
|
+
line-height: inherit;
|
|
275
|
+
margin-left: auto;
|
|
276
|
+
margin-right: auto;
|
|
277
|
+
opacity: 0;
|
|
278
|
+
outline-offset: -1px;
|
|
279
|
+
padding: 3px;
|
|
280
|
+
position: relative;
|
|
281
|
+
text-align: center;
|
|
282
|
+
-webkit-user-select: none;
|
|
283
|
+
-moz-user-select: none;
|
|
284
|
+
-ms-user-select: none;
|
|
285
|
+
user-select: none;
|
|
286
|
+
width: calc(2rem - 6px);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.d2l-calendar-date::-moz-focus-inner {
|
|
290
|
+
border: 0;
|
|
291
|
+
}
|
|
291
292
|
|
|
292
|
-
|
|
293
|
-
|
|
293
|
+
.d2l-calendar-date:disabled {
|
|
294
|
+
cursor: not-allowed;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
@media (prefers-reduced-motion: reduce) {
|
|
298
|
+
.d2l-calendar-title .d2l-heading-4,
|
|
299
|
+
.d2l-calendar-date {
|
|
300
|
+
opacity: 1;
|
|
294
301
|
}
|
|
295
302
|
|
|
296
303
|
.d2l-calendar-date:disabled {
|
|
297
|
-
|
|
304
|
+
opacity: var(--d2l-theme-opacity-disabled-control);
|
|
298
305
|
}
|
|
306
|
+
}
|
|
299
307
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
opacity: 1;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.d2l-calendar-date:disabled {
|
|
307
|
-
opacity: var(--d2l-theme-opacity-disabled-control);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
308
|
+
.d2l-calendar-next .d2l-calendar-date {
|
|
309
|
+
left: 10px;
|
|
310
|
+
}
|
|
310
311
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
.d2l-calendar-next-updown .d2l-calendar-date {
|
|
313
|
+
top: 10px;
|
|
314
|
+
}
|
|
314
315
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
316
|
+
.d2l-calendar-prev .d2l-calendar-date {
|
|
317
|
+
left: -10px;
|
|
318
|
+
}
|
|
318
319
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
.d2l-calendar-prev-updown .d2l-calendar-date {
|
|
321
|
+
top: -10px;
|
|
322
|
+
}
|
|
322
323
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
324
|
+
.d2l-calendar-animating .d2l-calendar-title .d2l-heading-4,
|
|
325
|
+
.d2l-calendar-animating .d2l-calendar-date {
|
|
326
|
+
opacity: 1;
|
|
327
|
+
transition-duration: 200ms;
|
|
328
|
+
transition-property: opacity, transform;
|
|
329
|
+
transition-timing-function: ease-out;
|
|
330
|
+
}
|
|
326
331
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
transition-duration: 200ms;
|
|
331
|
-
transition-property: opacity, transform;
|
|
332
|
-
transition-timing-function: ease-out;
|
|
333
|
-
}
|
|
332
|
+
.d2l-calendar-animating .d2l-calendar-date:disabled {
|
|
333
|
+
opacity: var(--d2l-theme-opacity-disabled-control);
|
|
334
|
+
}
|
|
334
335
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
.d2l-calendar-next .d2l-heading-4,
|
|
337
|
+
.d2l-calendar-next .d2l-calendar-date {
|
|
338
|
+
transform: translateX(-10px);
|
|
339
|
+
}
|
|
338
340
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
341
|
+
.d2l-calendar-next-updown .d2l-heading-4,
|
|
342
|
+
.d2l-calendar-next-updown .d2l-calendar-date {
|
|
343
|
+
transform: translateY(-10px);
|
|
344
|
+
}
|
|
343
345
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
346
|
+
.d2l-calendar-prev .d2l-heading-4,
|
|
347
|
+
.d2l-calendar-prev .d2l-calendar-date {
|
|
348
|
+
transform: translateX(10px);
|
|
349
|
+
}
|
|
348
350
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
351
|
+
.d2l-calendar-prev-updown .d2l-heading-4,
|
|
352
|
+
.d2l-calendar-prev-updown .d2l-calendar-date {
|
|
353
|
+
transform: translateY(10px);
|
|
354
|
+
}
|
|
353
355
|
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
356
|
+
.d2l-calendar-date:enabled:not(.d2l-calendar-date-selected):hover,
|
|
357
|
+
.d2l-calendar-date:enabled:not(.d2l-calendar-date-selected).d2l-calendar-date-hover {
|
|
358
|
+
background-color: var(--d2l-theme-background-color-interactive-tertiary-hover);
|
|
359
|
+
}
|
|
358
360
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
}
|
|
361
|
+
td, .d2l-calendar-date:${unsafeCSS(getFocusPseudoClass())} {
|
|
362
|
+
outline: none;
|
|
363
|
+
}
|
|
363
364
|
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
365
|
+
td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date:not(:disabled) {
|
|
366
|
+
outline: 2px solid var(--d2l-theme-border-color-focus);
|
|
367
|
+
}
|
|
367
368
|
|
|
368
|
-
|
|
369
|
-
|
|
369
|
+
@keyframes initial-focus {
|
|
370
|
+
from {
|
|
371
|
+
outline: 0 solid var(--d2l-theme-border-color-focus);
|
|
372
|
+
padding: 0;
|
|
370
373
|
}
|
|
374
|
+
}
|
|
371
375
|
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
padding: 0;
|
|
376
|
-
}
|
|
377
|
-
}
|
|
376
|
+
td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date.d2l-calendar-date-initial {
|
|
377
|
+
animation: 200ms ease-in initial-focus;
|
|
378
|
+
}
|
|
378
379
|
|
|
379
|
-
|
|
380
|
-
|
|
380
|
+
@media (prefers-reduced-motion: reduce) {
|
|
381
|
+
td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date.d2l-calendar-date-initial,
|
|
382
|
+
td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date-initial.d2l-calendar-date-day-info::after {
|
|
383
|
+
animation: none;
|
|
381
384
|
}
|
|
385
|
+
}
|
|
382
386
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}
|
|
388
|
-
}
|
|
387
|
+
.d2l-calendar-date.d2l-calendar-date-selected {
|
|
388
|
+
background-color: var(--d2l-theme-background-color-interactive-highlighted);
|
|
389
|
+
outline: 1px solid var(--d2l-theme-border-color-focus);
|
|
390
|
+
}
|
|
389
391
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
392
|
+
.d2l-calendar-date.d2l-calendar-date-selected:disabled {
|
|
393
|
+
background-color: var(--d2l-theme-background-color-base);
|
|
394
|
+
color: var(--d2l-theme-text-color-static-disabled);
|
|
395
|
+
opacity: 1;
|
|
396
|
+
outline: none;
|
|
397
|
+
}
|
|
394
398
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
opacity: 1;
|
|
399
|
-
outline: none;
|
|
400
|
-
}
|
|
399
|
+
td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date.d2l-calendar-date-selected:disabled {
|
|
400
|
+
outline: 2px solid var(--d2l-theme-border-color-focus);
|
|
401
|
+
}
|
|
401
402
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
403
|
+
.d2l-calendar-date.d2l-calendar-date-today,
|
|
404
|
+
.d2l-calendar-date.d2l-calendar-date-selected:enabled {
|
|
405
|
+
font-size: 1rem;
|
|
406
|
+
font-weight: 700;
|
|
407
|
+
}
|
|
405
408
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
font-weight: 700;
|
|
409
|
+
@keyframes initial-focus-day-info {
|
|
410
|
+
from {
|
|
411
|
+
bottom: 1px;
|
|
410
412
|
}
|
|
413
|
+
}
|
|
411
414
|
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
}
|
|
416
|
-
}
|
|
415
|
+
td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date-initial.d2l-calendar-date-day-info::after {
|
|
416
|
+
animation: 200ms ease-in initial-focus-day-info;
|
|
417
|
+
}
|
|
417
418
|
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
419
|
+
.d2l-calendar-date-day-info::after {
|
|
420
|
+
background-color: var(--d2l-theme-brand-color-primary-default);
|
|
421
|
+
border-radius: 3px;
|
|
422
|
+
bottom: 4px;
|
|
423
|
+
content: "";
|
|
424
|
+
display: inline-block;
|
|
425
|
+
height: 6px;
|
|
426
|
+
position: absolute;
|
|
427
|
+
width: 6px;
|
|
428
|
+
}
|
|
421
429
|
|
|
430
|
+
.d2l-calendar-date-selected.d2l-calendar-date-day-info::after,
|
|
431
|
+
td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date-day-info::after {
|
|
432
|
+
bottom: 3px;
|
|
433
|
+
}
|
|
434
|
+
@media (prefers-contrast: more) {
|
|
422
435
|
.d2l-calendar-date-day-info::after {
|
|
423
|
-
background-color:
|
|
424
|
-
|
|
425
|
-
bottom: 4px;
|
|
426
|
-
content: "";
|
|
427
|
-
display: inline-block;
|
|
428
|
-
height: 6px;
|
|
429
|
-
position: absolute;
|
|
430
|
-
width: 6px;
|
|
436
|
+
background-color: FieldText;
|
|
437
|
+
forced-color-adjust: none;
|
|
431
438
|
}
|
|
432
439
|
|
|
433
|
-
.d2l-calendar-date
|
|
434
|
-
|
|
435
|
-
bottom: 3px;
|
|
436
|
-
}
|
|
437
|
-
@media (prefers-contrast: more) {
|
|
438
|
-
.d2l-calendar-date-day-info::after {
|
|
439
|
-
background-color: FieldText;
|
|
440
|
-
forced-color-adjust: none;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date {
|
|
444
|
-
outline-color: Highlight !important;
|
|
445
|
-
}
|
|
440
|
+
td:${unsafeCSS(getFocusPseudoClass())} .d2l-calendar-date {
|
|
441
|
+
outline-color: Highlight !important;
|
|
446
442
|
}
|
|
443
|
+
}
|
|
447
444
|
|
|
448
|
-
|
|
449
|
-
}
|
|
445
|
+
`];
|
|
450
446
|
|
|
451
447
|
constructor() {
|
|
452
448
|
super();
|
|
@@ -7,21 +7,19 @@ import { css, html, LitElement } from 'lit';
|
|
|
7
7
|
*/
|
|
8
8
|
class CardContentMeta extends LitElement {
|
|
9
9
|
|
|
10
|
-
static
|
|
11
|
-
|
|
12
|
-
:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
`;
|
|
24
|
-
}
|
|
10
|
+
static styles = css`
|
|
11
|
+
:host {
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
color: var(--d2l-color-tungsten);
|
|
14
|
+
display: inline-block;
|
|
15
|
+
font-size: 0.7rem;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
line-height: 1rem;
|
|
18
|
+
}
|
|
19
|
+
:host span {
|
|
20
|
+
display: inline-block; /* extra inline-block helps reset display context to opt-out of underline */
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
25
23
|
|
|
26
24
|
render() {
|
|
27
25
|
return html`<span><slot></slot></span>`;
|
|
@@ -6,17 +6,15 @@ import { css, html, LitElement } from 'lit';
|
|
|
6
6
|
*/
|
|
7
7
|
class CardContentTitle extends LitElement {
|
|
8
8
|
|
|
9
|
-
static
|
|
10
|
-
|
|
11
|
-
:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
`;
|
|
19
|
-
}
|
|
9
|
+
static styles = css`
|
|
10
|
+
:host {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
display: block;
|
|
13
|
+
font-size: 0.95rem;
|
|
14
|
+
font-weight: 400;
|
|
15
|
+
line-height: 1.4rem;
|
|
16
|
+
}
|
|
17
|
+
`;
|
|
20
18
|
|
|
21
19
|
render() {
|
|
22
20
|
return html`<slot></slot>`;
|