@brightspace-ui/core 3.267.0 → 3.267.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/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-styles.js +140 -3
- 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/package.json +3 -2
|
@@ -126,120 +126,114 @@ function initIntervals(size, enforceTimeIntervals) {
|
|
|
126
126
|
*/
|
|
127
127
|
class InputTime extends InputInlineHelpMixin(FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixin(LitElement))))) {
|
|
128
128
|
|
|
129
|
-
static
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
display: flex;
|
|
226
|
-
font-weight: 700;
|
|
227
|
-
justify-content: center;
|
|
228
|
-
}
|
|
129
|
+
static properties = {
|
|
130
|
+
/**
|
|
131
|
+
* Default value of input. Accepts times formatted as "hh:mm:ss", and the keywords "startOfDay" and "endOfDay".
|
|
132
|
+
* @type {string}
|
|
133
|
+
*/
|
|
134
|
+
defaultValue: { type: String, attribute: 'default-value' },
|
|
135
|
+
/**
|
|
136
|
+
* Disables the input
|
|
137
|
+
* @type {boolean}
|
|
138
|
+
*/
|
|
139
|
+
disabled: { type: Boolean },
|
|
140
|
+
/**
|
|
141
|
+
* Rounds typed input up to nearest valid interval time (specified with "time-interval")
|
|
142
|
+
* @type {boolean}
|
|
143
|
+
*/
|
|
144
|
+
enforceTimeIntervals: { type: Boolean, attribute: 'enforce-time-intervals' },
|
|
145
|
+
/**
|
|
146
|
+
* Hides the label visually. Hidden labels are still read by screen readers so make sure to set an appropriate label.
|
|
147
|
+
* @type {boolean}
|
|
148
|
+
*/
|
|
149
|
+
labelHidden: { type: Boolean, attribute: 'label-hidden' },
|
|
150
|
+
/**
|
|
151
|
+
* Overrides max-height of the time dropdown menu
|
|
152
|
+
* @type {number}
|
|
153
|
+
*/
|
|
154
|
+
maxHeight: { type: Number, attribute: 'max-height' },
|
|
155
|
+
/**
|
|
156
|
+
* Indicates if the dropdown is open
|
|
157
|
+
* @type {boolean}
|
|
158
|
+
*/
|
|
159
|
+
opened: { type: Boolean },
|
|
160
|
+
/**
|
|
161
|
+
* Indicates that a value is required
|
|
162
|
+
* @type {boolean}
|
|
163
|
+
*/
|
|
164
|
+
required: { type: Boolean, reflect: true },
|
|
165
|
+
/**
|
|
166
|
+
* Number of minutes between times shown in dropdown menu
|
|
167
|
+
* @type {'five'|'ten'|'fifteen'|'twenty'|'thirty'|'sixty'}
|
|
168
|
+
*/
|
|
169
|
+
timeInterval: { type: String, attribute: 'time-interval' },
|
|
170
|
+
/**
|
|
171
|
+
* Time zone identifier for the input to use. e.g. America/Toronto. Defaults to the user's account or device time zone setting.
|
|
172
|
+
* @type {string}
|
|
173
|
+
*/
|
|
174
|
+
timeZoneId: { type: String, attribute: 'time-zone-id' },
|
|
175
|
+
/**
|
|
176
|
+
* Hides the time zone inside the selection dropdown. Should only be used when the input value is not related to any one time zone
|
|
177
|
+
* @type {Boolean}
|
|
178
|
+
*/
|
|
179
|
+
timeZoneHidden: { type: Boolean, attribute: 'time-zone-hidden' },
|
|
180
|
+
/**
|
|
181
|
+
* Value of the input
|
|
182
|
+
* @type {string}
|
|
183
|
+
*/
|
|
184
|
+
value: { type: String },
|
|
185
|
+
_dropdownFirstOpened: { type: Boolean },
|
|
186
|
+
_formattedValue: { type: String },
|
|
187
|
+
_hiddenContentWidth: { type: String },
|
|
188
|
+
_timeZone: { state: true },
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
static styles = [
|
|
192
|
+
super.styles,
|
|
193
|
+
bodySmallStyles,
|
|
194
|
+
inputLabelStyles,
|
|
195
|
+
inputStyles,
|
|
196
|
+
offscreenStyles, css`
|
|
197
|
+
:host {
|
|
198
|
+
display: inline-block;
|
|
199
|
+
max-width: 6rem;
|
|
200
|
+
width: 100%;
|
|
201
|
+
}
|
|
202
|
+
:host([hidden]) {
|
|
203
|
+
display: none;
|
|
204
|
+
}
|
|
205
|
+
d2l-dropdown-menu[data-mobile][mobile-tray] .d2l-input-time-menu {
|
|
206
|
+
text-align: center;
|
|
207
|
+
}
|
|
208
|
+
.d2l-input-label {
|
|
209
|
+
display: inline-block;
|
|
210
|
+
vertical-align: top;
|
|
211
|
+
}
|
|
212
|
+
.d2l-input-time-time-zone {
|
|
213
|
+
line-height: 1.8rem;
|
|
214
|
+
text-align: center;
|
|
215
|
+
vertical-align: middle;
|
|
216
|
+
width: auto;
|
|
217
|
+
}
|
|
218
|
+
.d2l-input-time-time-zone.d2l-input-time-time-zone-custom {
|
|
219
|
+
align-items: center;
|
|
220
|
+
column-gap: 0.3rem;
|
|
221
|
+
display: flex;
|
|
222
|
+
font-weight: 700;
|
|
223
|
+
justify-content: center;
|
|
224
|
+
}
|
|
229
225
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
];
|
|
242
|
-
}
|
|
226
|
+
.d2l-input-time-hidden-content {
|
|
227
|
+
font-family: inherit;
|
|
228
|
+
font-size: 0.8rem;
|
|
229
|
+
font-weight: 400;
|
|
230
|
+
letter-spacing: 0.02rem;
|
|
231
|
+
line-height: 1.4rem;
|
|
232
|
+
position: absolute;
|
|
233
|
+
visibility: hidden;
|
|
234
|
+
width: auto;
|
|
235
|
+
}
|
|
236
|
+
`];
|
|
243
237
|
|
|
244
238
|
constructor() {
|
|
245
239
|
super();
|
|
@@ -7,50 +7,46 @@ import { offscreenStyles } from '../offscreen/offscreen.js';
|
|
|
7
7
|
|
|
8
8
|
export const LinkMixin = superclass => class extends LocalizeCoreElement(superclass) {
|
|
9
9
|
|
|
10
|
-
static
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
}
|
|
10
|
+
static properties = {
|
|
11
|
+
/**
|
|
12
|
+
* Prompts the user to save the linked URL instead of navigating to it.
|
|
13
|
+
* Must be to a resource on the same origin.
|
|
14
|
+
* Can be used with or without a value, when set the value becomes the filename.
|
|
15
|
+
* @type {string}
|
|
16
|
+
*/
|
|
17
|
+
download: { type: String },
|
|
18
|
+
/**
|
|
19
|
+
* REQUIRED: URL or URL fragment of the link
|
|
20
|
+
* @type {string}
|
|
21
|
+
*/
|
|
22
|
+
href: { type: String },
|
|
23
|
+
/**
|
|
24
|
+
* Where to display the linked URL
|
|
25
|
+
* @type {string}
|
|
26
|
+
*/
|
|
27
|
+
target: { type: String }
|
|
28
|
+
};
|
|
31
29
|
|
|
32
|
-
static
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
30
|
+
static styles = [offscreenStyles, css`
|
|
31
|
+
#new-window {
|
|
32
|
+
line-height: 0;
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
}
|
|
35
|
+
d2l-icon {
|
|
36
|
+
color: inherit;
|
|
37
|
+
height: calc(1em - 1px);
|
|
38
|
+
margin-inline-start: 0.315em;
|
|
39
|
+
transform: translateY(0.1em);
|
|
40
|
+
vertical-align: inherit;
|
|
41
|
+
width: calc(1em - 1px);
|
|
42
|
+
}
|
|
46
43
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
44
|
+
@media print {
|
|
45
|
+
d2l-icon {
|
|
46
|
+
display: none;
|
|
51
47
|
}
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
}
|
|
49
|
+
`];
|
|
54
50
|
|
|
55
51
|
getNewWindowDescription(label) {
|
|
56
52
|
return label && this.target === '_blank' ? this.localize('components.link.open-in-new-window') : undefined;
|
package/components/link/link.js
CHANGED
|
@@ -20,129 +20,123 @@ export const linkStyles = _generateLinkStyles('.d2l-link', true);
|
|
|
20
20
|
*/
|
|
21
21
|
class Link extends LocalizeCoreElement(FocusMixin(LitElement)) {
|
|
22
22
|
|
|
23
|
-
static
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
};
|
|
71
|
-
}
|
|
23
|
+
static properties = {
|
|
24
|
+
/**
|
|
25
|
+
* ACCESSIBILITY: Label to provide more context for screen reader users when the link text is not enough
|
|
26
|
+
* @type {string}
|
|
27
|
+
*/
|
|
28
|
+
ariaLabel: { type: String, attribute: 'aria-label' },
|
|
29
|
+
/**
|
|
30
|
+
* Disables the link
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
*/
|
|
33
|
+
disabled: { type: Boolean, reflect: true },
|
|
34
|
+
/**
|
|
35
|
+
* Tooltip text when disabled
|
|
36
|
+
* @type {string}
|
|
37
|
+
*/
|
|
38
|
+
disabledTooltip: { type: String, attribute: 'disabled-tooltip', reflect: true },
|
|
39
|
+
/**
|
|
40
|
+
* Download a URL instead of navigating to it
|
|
41
|
+
* @type {boolean}
|
|
42
|
+
*/
|
|
43
|
+
download: { type: Boolean },
|
|
44
|
+
/**
|
|
45
|
+
* REQUIRED: URL or URL fragment of the link
|
|
46
|
+
* @type {string}
|
|
47
|
+
*/
|
|
48
|
+
href: { type: String },
|
|
49
|
+
/**
|
|
50
|
+
* Whether to apply the "main" link style
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
*/
|
|
53
|
+
main: { type: Boolean, reflect: true },
|
|
54
|
+
/**
|
|
55
|
+
* The number of lines to display before truncating text with an ellipsis. The text will not be truncated unless a value is specified.
|
|
56
|
+
* @type {number}
|
|
57
|
+
*/
|
|
58
|
+
lines: { type: Number },
|
|
59
|
+
/**
|
|
60
|
+
* Whether to apply the "small" link style
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
*/
|
|
63
|
+
small: { type: Boolean, reflect: true },
|
|
64
|
+
/**
|
|
65
|
+
* Where to display the linked URL
|
|
66
|
+
* @type {string}
|
|
67
|
+
*/
|
|
68
|
+
target: { type: String }
|
|
69
|
+
};
|
|
72
70
|
|
|
73
|
-
static
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
width: calc(1em - 1px);
|
|
114
|
-
}
|
|
71
|
+
static styles = [linkStyles, offscreenStyles, css`
|
|
72
|
+
:host {
|
|
73
|
+
display: inline;
|
|
74
|
+
}
|
|
75
|
+
:host([hidden]) {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|
|
78
|
+
:host([small]) {
|
|
79
|
+
/* needed to keep host element same height as link */
|
|
80
|
+
font-size: 0.7rem;
|
|
81
|
+
line-height: 1.05rem;
|
|
82
|
+
}
|
|
83
|
+
:host([lines]) {
|
|
84
|
+
min-width: 0;
|
|
85
|
+
}
|
|
86
|
+
a {
|
|
87
|
+
display: inherit;
|
|
88
|
+
}
|
|
89
|
+
:host([lines]) a {
|
|
90
|
+
align-items: baseline;
|
|
91
|
+
display: flex;
|
|
92
|
+
}
|
|
93
|
+
a span.truncate {
|
|
94
|
+
${getOverflowDeclarations({ lines: 1 })}
|
|
95
|
+
}
|
|
96
|
+
a span.truncate-one {
|
|
97
|
+
${overflowEllipsisDeclarations}
|
|
98
|
+
}
|
|
99
|
+
#new-window {
|
|
100
|
+
line-height: 0;
|
|
101
|
+
white-space: nowrap;
|
|
102
|
+
}
|
|
103
|
+
d2l-icon {
|
|
104
|
+
color: var(--d2l-theme-text-color-interactive-default);
|
|
105
|
+
height: calc(1em - 1px);
|
|
106
|
+
margin-inline-start: 0.315em;
|
|
107
|
+
transform: translateY(0.1em);
|
|
108
|
+
vertical-align: inherit;
|
|
109
|
+
width: calc(1em - 1px);
|
|
110
|
+
}
|
|
115
111
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
112
|
+
a:hover d2l-icon {
|
|
113
|
+
--d2l-icon-fill-color: var(--d2l-theme-text-color-interactive-hover);
|
|
114
|
+
}
|
|
119
115
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
116
|
+
:host([disabled]:not([disabled-tooltip])) a:hover {
|
|
117
|
+
color: var(--d2l-theme-text-color-interactive-default);
|
|
118
|
+
text-decoration: none;
|
|
119
|
+
}
|
|
120
|
+
:host([disabled]:not([disabled-tooltip])) a:hover d2l-icon {
|
|
121
|
+
--d2l-icon-fill-color: var(--d2l-theme-text-color-interactive-default);
|
|
122
|
+
}
|
|
123
|
+
a[aria-disabled="true"],
|
|
124
|
+
a[aria-disabled="true"]:active {
|
|
125
|
+
cursor: default;
|
|
126
|
+
}
|
|
127
|
+
a[aria-disabled="true"] .d2l-link-content {
|
|
128
|
+
opacity: var(--d2l-theme-opacity-disabled-link);
|
|
129
|
+
}
|
|
130
|
+
a[aria-disabled="true"] d2l-icon {
|
|
131
|
+
opacity: var(--d2l-theme-opacity-disabled-linkicon);
|
|
132
|
+
}
|
|
137
133
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
];
|
|
145
|
-
}
|
|
134
|
+
@media print {
|
|
135
|
+
d2l-icon {
|
|
136
|
+
display: none;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
`];
|
|
146
140
|
|
|
147
141
|
constructor() {
|
|
148
142
|
super();
|
|
@@ -7,36 +7,32 @@ import { SelectionControls } from '../selection/selection-controls.js';
|
|
|
7
7
|
* Controls for list components containing select-all, etc.
|
|
8
8
|
*/
|
|
9
9
|
export class ListControls extends SelectionControls {
|
|
10
|
-
static
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
}
|
|
10
|
+
static properties = {
|
|
11
|
+
_extendSeparator: { state: true },
|
|
12
|
+
_siblingHasColor: { state: true }
|
|
13
|
+
};
|
|
16
14
|
|
|
17
|
-
static
|
|
18
|
-
|
|
19
|
-
:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
`];
|
|
39
|
-
}
|
|
15
|
+
static styles = [super.styles, css`
|
|
16
|
+
:host {
|
|
17
|
+
--d2l-selection-controls-background-color: var(--d2l-list-controls-background-color);
|
|
18
|
+
--d2l-selection-controls-offset: -12px;
|
|
19
|
+
--d2l-selection-controls-padding: var(--d2l-list-controls-padding, 18px);
|
|
20
|
+
z-index: 6; /* must be greater than d2l-list-item-active-border */
|
|
21
|
+
}
|
|
22
|
+
:host([no-sticky]) {
|
|
23
|
+
z-index: auto;
|
|
24
|
+
}
|
|
25
|
+
.d2l-list-controls-color {
|
|
26
|
+
padding-inline-start: 1.8rem;
|
|
27
|
+
}
|
|
28
|
+
.d2l-list-controls-extend-separator {
|
|
29
|
+
--d2l-selection-controls-offset: 0;
|
|
30
|
+
padding: 0 0.9rem;
|
|
31
|
+
}
|
|
32
|
+
.d2l-list-controls-color.d2l-list-controls-extend-separator {
|
|
33
|
+
padding-inline-start: calc(0.6rem + 9px);
|
|
34
|
+
}
|
|
35
|
+
`];
|
|
40
36
|
|
|
41
37
|
constructor() {
|
|
42
38
|
super();
|
|
@@ -5,20 +5,18 @@ import { getUniqueId } from '../../helpers/uniqueId.js';
|
|
|
5
5
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
6
6
|
|
|
7
7
|
export const ListItemButtonMixin = superclass => class extends ListItemMixin(superclass) {
|
|
8
|
-
static
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
-
}
|
|
8
|
+
static properties = {
|
|
9
|
+
/**
|
|
10
|
+
* Disables the primary action button
|
|
11
|
+
* @type {boolean}
|
|
12
|
+
*/
|
|
13
|
+
buttonDisabled : { type: Boolean, attribute: 'button-disabled', reflect: true },
|
|
14
|
+
_ariaCurrent: { type: String }
|
|
15
|
+
};
|
|
18
16
|
|
|
19
17
|
static get styles() {
|
|
20
18
|
|
|
21
|
-
const styles = [
|
|
19
|
+
const styles = [css`
|
|
22
20
|
:host(:not([button-disabled])) {
|
|
23
21
|
--d2l-list-item-content-text-color: var(--d2l-color-celestine);
|
|
24
22
|
}
|
|
@@ -49,7 +47,7 @@ export const ListItemButtonMixin = superclass => class extends ListItemMixin(sup
|
|
|
49
47
|
:host(:not([button-disabled])) [slot="outside-control-action"] {
|
|
50
48
|
grid-column-end: control-end;
|
|
51
49
|
}
|
|
52
|
-
`
|
|
50
|
+
`];
|
|
53
51
|
|
|
54
52
|
super.styles && styles.unshift(super.styles);
|
|
55
53
|
return styles;
|