@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
|
@@ -35,264 +35,260 @@ function isRtl() {
|
|
|
35
35
|
*/
|
|
36
36
|
class ListItemGenericLayout extends LitElement {
|
|
37
37
|
|
|
38
|
-
static
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
[nested-end add-start] minmax(0, min-content)
|
|
89
|
-
[add-end end];
|
|
90
|
-
}
|
|
38
|
+
static properties = {
|
|
39
|
+
/**
|
|
40
|
+
* How to align content in the nested slot
|
|
41
|
+
* @type {'content'|'control'}
|
|
42
|
+
*/
|
|
43
|
+
alignNested: { type: String, reflect: true, attribute: 'align-nested' },
|
|
44
|
+
/**
|
|
45
|
+
* Whether to constrain actions so they do not fill the item. Required if slotted content is interactive.
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
*/
|
|
48
|
+
noPrimaryAction: { type: Boolean, attribute: 'no-primary-action', reflect: true },
|
|
49
|
+
/**
|
|
50
|
+
* @ignore
|
|
51
|
+
*/
|
|
52
|
+
// eslint-disable-next-line lit/no-native-attributes
|
|
53
|
+
role: { type: String, reflect: true },
|
|
54
|
+
/**
|
|
55
|
+
* Specifies whether the grid is active or not
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
*/
|
|
58
|
+
gridActive: { type: Boolean, attribute: 'grid-active' },
|
|
59
|
+
/**
|
|
60
|
+
* Inline start padding (in px) to apply to list item(s) in the nested slot. When used, nested list items will not use the grid start calcuations and will only use this number to determine indentation.
|
|
61
|
+
* @type {number}
|
|
62
|
+
*/
|
|
63
|
+
indentation: { type: Number, reflect: true },
|
|
64
|
+
/**
|
|
65
|
+
* @ignore
|
|
66
|
+
*/
|
|
67
|
+
layout: { type: String, reflect: true },
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
static styles = css`
|
|
71
|
+
:host {
|
|
72
|
+
display: grid;
|
|
73
|
+
grid-template-columns:
|
|
74
|
+
[start outside-control-start] minmax(0, min-content)
|
|
75
|
+
[color-start outside-control-end] minmax(0, min-content)
|
|
76
|
+
[expand-collapse-start color-end] minmax(0, min-content)
|
|
77
|
+
[control-start expand-collapse-end] minmax(0, min-content)
|
|
78
|
+
[control-end content-start] minmax(0, auto)
|
|
79
|
+
[content-end actions-start] minmax(0, min-content)
|
|
80
|
+
[end actions-end];
|
|
81
|
+
grid-template-rows:
|
|
82
|
+
[start add-top-start] minmax(0, min-content)
|
|
83
|
+
[add-top-end main-start] minmax(0, min-content)
|
|
84
|
+
[main-end nested-start] minmax(0, min-content)
|
|
85
|
+
[nested-end add-start] minmax(0, min-content)
|
|
86
|
+
[add-end end];
|
|
87
|
+
}
|
|
91
88
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
89
|
+
:host([align-nested="control"]) ::slotted([slot="nested"]) {
|
|
90
|
+
grid-column: control-start / end;
|
|
91
|
+
}
|
|
95
92
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
93
|
+
::slotted([slot="drop-target"]) {
|
|
94
|
+
grid-column: start / end;
|
|
95
|
+
}
|
|
99
96
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
97
|
+
::slotted([slot="outside-control"]),
|
|
98
|
+
::slotted([slot="color-indicator"]),
|
|
99
|
+
::slotted([slot="expand-collapse"]),
|
|
100
|
+
::slotted([slot="control"]),
|
|
101
|
+
::slotted([slot="content"]),
|
|
102
|
+
::slotted([slot="actions"]),
|
|
103
|
+
::slotted([slot="outside-control-action"]),
|
|
104
|
+
::slotted([slot="before-content"]),
|
|
105
|
+
::slotted([slot="control-action"]),
|
|
106
|
+
::slotted([slot="content-action"]),
|
|
107
|
+
::slotted([slot="outside-control-container"]),
|
|
108
|
+
::slotted([slot="control-container"]),
|
|
109
|
+
::slotted([slot="drop-target"]) {
|
|
110
|
+
grid-row: 2 / 3;
|
|
111
|
+
}
|
|
115
112
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
113
|
+
::slotted([slot="outside-control"]) {
|
|
114
|
+
grid-column: outside-control-start / outside-control-end;
|
|
115
|
+
}
|
|
119
116
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
117
|
+
::slotted([slot="outside-control"]:not(.handle-only)) {
|
|
118
|
+
pointer-events: none;
|
|
119
|
+
}
|
|
123
120
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
121
|
+
::slotted([slot="expand-collapse"]) {
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
grid-column: expand-collapse-start / expand-collapse-end;
|
|
124
|
+
}
|
|
128
125
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
126
|
+
::slotted([slot="control"]) {
|
|
127
|
+
grid-column: control-start / control-end;
|
|
128
|
+
pointer-events: none;
|
|
129
|
+
width: 2.1rem;
|
|
130
|
+
}
|
|
134
131
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
132
|
+
::slotted([slot="content"]) {
|
|
133
|
+
grid-column: content-start / content-end;
|
|
134
|
+
}
|
|
138
135
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
136
|
+
::slotted([slot="color-indicator"]) {
|
|
137
|
+
grid-column: color-start / color-end;
|
|
138
|
+
}
|
|
142
139
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
140
|
+
::slotted([slot="before-content"]) {
|
|
141
|
+
grid-column: color-start / content-start;
|
|
142
|
+
}
|
|
146
143
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
144
|
+
::slotted([slot="control-action"]) ~ ::slotted([slot="content"]),
|
|
145
|
+
::slotted([slot="outside-control-action"]) ~ ::slotted([slot="content"]) {
|
|
146
|
+
pointer-events: unset;
|
|
147
|
+
}
|
|
151
148
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
149
|
+
slot[name="actions"] {
|
|
150
|
+
white-space: nowrap;
|
|
151
|
+
}
|
|
155
152
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
153
|
+
::slotted([slot="actions"]) {
|
|
154
|
+
grid-column: actions-start / actions-end;
|
|
155
|
+
justify-self: end;
|
|
156
|
+
}
|
|
160
157
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
158
|
+
::slotted([slot="outside-control-action"]) {
|
|
159
|
+
grid-column: start / end;
|
|
160
|
+
}
|
|
161
|
+
:host([no-primary-action]) ::slotted([slot="outside-control-action"]) {
|
|
162
|
+
grid-column: start / outside-control-end;
|
|
163
|
+
}
|
|
167
164
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
165
|
+
::slotted([slot="content-action"]) {
|
|
166
|
+
grid-column: content-start / content-end;
|
|
167
|
+
}
|
|
171
168
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
169
|
+
:host([no-primary-action]) ::slotted([slot="content-action"]) {
|
|
170
|
+
display: none;
|
|
171
|
+
}
|
|
175
172
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
173
|
+
::slotted([slot="control-action"]) {
|
|
174
|
+
grid-column-start: control-start;
|
|
175
|
+
}
|
|
179
176
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
177
|
+
:host(:not([no-primary-action])) ::slotted([slot="outside-control-action"]) {
|
|
178
|
+
grid-column-end: end;
|
|
179
|
+
}
|
|
183
180
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
181
|
+
:host(:not([no-primary-action])) ::slotted([slot="control-action"]) {
|
|
182
|
+
grid-column-end: actions-start;
|
|
183
|
+
}
|
|
187
184
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
185
|
+
::slotted([slot="outside-control-container"]) {
|
|
186
|
+
grid-column: start / end;
|
|
187
|
+
}
|
|
188
|
+
::slotted([slot="control-container"]) {
|
|
189
|
+
grid-column: color-start / end;
|
|
190
|
+
}
|
|
194
191
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
192
|
+
::slotted([slot="nested"]) {
|
|
193
|
+
grid-column: content-start / end;
|
|
194
|
+
grid-row: nested;
|
|
195
|
+
}
|
|
199
196
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
197
|
+
:host([indentation]) ::slotted([slot="nested"]) {
|
|
198
|
+
grid-column-start: start;
|
|
199
|
+
padding-inline-start: var(--d2l-list-item-generic-layout-nested-indentation);
|
|
200
|
+
}
|
|
204
201
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
202
|
+
::slotted([slot="add"]) {
|
|
203
|
+
grid-row: add;
|
|
204
|
+
}
|
|
205
|
+
::slotted([slot="add-top"]) {
|
|
206
|
+
grid-row: add-top;
|
|
207
|
+
}
|
|
208
|
+
::slotted([slot="add-top"]),
|
|
209
|
+
::slotted([slot="add"]) {
|
|
210
|
+
grid-column: color-start / end;
|
|
211
|
+
}
|
|
215
212
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
213
|
+
:host([layout="tile"]) {
|
|
214
|
+
grid-template-columns:
|
|
215
|
+
[start outside-control-start] minmax(0, 26px)
|
|
216
|
+
[outside-control-end control-start] minmax(0, min-content)
|
|
217
|
+
[control-end actions-start] minmax(0, auto)
|
|
218
|
+
[actions-end end];
|
|
219
|
+
grid-template-rows:
|
|
220
|
+
[start header-start] minmax(0, min-content)
|
|
221
|
+
[header-end content-start] auto
|
|
222
|
+
[content-end end];
|
|
223
|
+
height: 100%;
|
|
224
|
+
}
|
|
228
225
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
226
|
+
:host([layout="tile"]:not([is-draggable])) {
|
|
227
|
+
grid-template-columns:
|
|
228
|
+
[start outside-control-start] 0
|
|
229
|
+
[outside-control-end control-start] minmax(0, min-content)
|
|
230
|
+
[control-end actions-start] minmax(0, auto)
|
|
231
|
+
[actions-end end];
|
|
232
|
+
grid-template-rows:
|
|
233
|
+
[start header-start] minmax(0, min-content)
|
|
234
|
+
[header-end content-start] auto
|
|
235
|
+
[content-end end];
|
|
236
|
+
height: 100%;
|
|
237
|
+
}
|
|
241
238
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
239
|
+
:host([layout="tile"]) ::slotted([slot="header"]) {
|
|
240
|
+
grid-column: start / end;
|
|
241
|
+
grid-row: header-start / header-end;
|
|
242
|
+
}
|
|
246
243
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
244
|
+
:host([layout="tile"]) ::slotted([slot="content"]),
|
|
245
|
+
:host([layout="tile"]) ::slotted([slot="content-action"]),
|
|
246
|
+
:host([layout="tile"]) ::slotted([slot="control-action"]) {
|
|
247
|
+
grid-column: start / end;
|
|
248
|
+
grid-row: content-start / end;
|
|
249
|
+
}
|
|
250
|
+
:host([layout="tile"]) ::slotted([slot="outside-control-container"]) {
|
|
251
|
+
grid-column: start / end;
|
|
252
|
+
grid-row: start / end;
|
|
253
|
+
}
|
|
254
|
+
:host([layout="tile"]) ::slotted([slot="control"]) {
|
|
255
|
+
grid-column: control-start / control-end;
|
|
256
|
+
grid-row: start / start;
|
|
257
|
+
pointer-events: all;
|
|
258
|
+
width: unset;
|
|
259
|
+
}
|
|
263
260
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
261
|
+
:host([layout="tile"]) ::slotted([slot="actions"]) {
|
|
262
|
+
grid-column: actions-start / actions-end;
|
|
263
|
+
grid-row: start / start;
|
|
264
|
+
}
|
|
268
265
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
266
|
+
:host([layout="tile"]) ::slotted([slot="color-indicator"]) {
|
|
267
|
+
grid-column: start;
|
|
268
|
+
grid-row: content-start / content-end;
|
|
269
|
+
}
|
|
273
270
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
271
|
+
:host([layout="tile"]) ::slotted([slot="outside-control"]) {
|
|
272
|
+
grid-column: outside-control-start / outside-control-end;
|
|
273
|
+
grid-row: start / start;
|
|
274
|
+
width: min-content;
|
|
275
|
+
}
|
|
279
276
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
277
|
+
:host([layout="tile"]) ::slotted([slot="outside-control-action"]) {
|
|
278
|
+
grid-column: start / end;
|
|
279
|
+
grid-row: start / start;
|
|
280
|
+
}
|
|
284
281
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}
|
|
282
|
+
:host(:not([layout="tile"])) slot[name="header"],
|
|
283
|
+
:host([layout="tile"]) slot[name="add-top"],
|
|
284
|
+
:host([layout="tile"]) slot[name="control-container"],
|
|
285
|
+
:host([layout="tile"]) slot[name="before-content"],
|
|
286
|
+
:host([layout="tile"]) slot[name="expand-collapse"],
|
|
287
|
+
:host([layout="tile"]) slot[name="nested"],
|
|
288
|
+
:host([layout="tile"]) slot[name="add"] {
|
|
289
|
+
display: none;
|
|
290
|
+
}
|
|
291
|
+
`;
|
|
296
292
|
|
|
297
293
|
constructor() {
|
|
298
294
|
super();
|
|
@@ -6,20 +6,18 @@ import { ifDefined } from 'lit/directives/if-defined.js';
|
|
|
6
6
|
|
|
7
7
|
export const ListItemLinkMixin = superclass => class extends ListItemMixin(superclass) {
|
|
8
8
|
|
|
9
|
-
static
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
}
|
|
9
|
+
static properties = {
|
|
10
|
+
/**
|
|
11
|
+
* Address of item link if navigable
|
|
12
|
+
* @type {string}
|
|
13
|
+
*/
|
|
14
|
+
actionHref: { type: String, attribute: 'action-href', reflect: true },
|
|
15
|
+
_ariaCurrent: { type: String }
|
|
16
|
+
};
|
|
19
17
|
|
|
20
18
|
static get styles() {
|
|
21
19
|
|
|
22
|
-
const styles = [
|
|
20
|
+
const styles = [css`
|
|
23
21
|
:host([action-href]:not([action-href=""])) {
|
|
24
22
|
--d2l-list-item-content-text-color: var(--d2l-color-celestine);
|
|
25
23
|
}
|
|
@@ -39,7 +37,7 @@ export const ListItemLinkMixin = superclass => class extends ListItemMixin(super
|
|
|
39
37
|
:host([action-href]:not([action-href=""])[layout="tile"]) [slot="outside-control-action"] {
|
|
40
38
|
grid-column-end: end;
|
|
41
39
|
}
|
|
42
|
-
`
|
|
40
|
+
`];
|
|
43
41
|
|
|
44
42
|
super.styles && styles.unshift(super.styles);
|
|
45
43
|
return styles;
|