@brightspace-ui/core 3.227.4 → 3.227.5
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/button/button.js +8 -8
- package/components/demo/test/demo-page-settings.test.js +25 -0
- package/components/demo/test/demo-page.test.js +17 -0
- package/package.json +1 -1
- package/components/alert/demo/alert-toast.html +0 -106
- package/components/alert/demo/alert.html +0 -82
- package/components/backdrop/demo/backdrop-loading.html +0 -166
- package/components/backdrop/demo/backdrop.html +0 -57
- package/components/breadcrumbs/demo/breadcrumbs.html +0 -53
- package/components/button/demo/button-add.html +0 -55
- package/components/button/demo/button-copy.html +0 -122
- package/components/button/demo/button-icon.html +0 -174
- package/components/button/demo/button-move.html +0 -38
- package/components/button/demo/button-split.html +0 -76
- package/components/button/demo/button-subtle.html +0 -132
- package/components/button/demo/button-toggle.html +0 -80
- package/components/button/demo/button.html +0 -67
- package/components/button/demo/floating-buttons-in-frame.html +0 -44
- package/components/button/demo/floating-buttons-in-tabs.html +0 -244
- package/components/button/demo/floating-buttons-page.html +0 -100
- package/components/button/demo/floating-buttons.html +0 -101
- package/components/calendar/demo/calendar.html +0 -76
- package/components/card/demo/card.html +0 -304
- package/components/collapsible-panel/demo/collapsible-panel.html +0 -218
- package/components/colors/demo/color-swatch.js +0 -240
- package/components/colors/demo/colors.html +0 -139
- package/components/count-badge/demo/count-badge-icon.html +0 -48
- package/components/count-badge/demo/count-badge.html +0 -73
- package/components/demo/demo/demo-snippet.html +0 -71
- package/components/description-list/demo/description-list-test.js +0 -142
- package/components/description-list/demo/description-list.html +0 -48
- package/components/dialog/demo/dialog-async-content-until.js +0 -89
- package/components/dialog/demo/dialog-async-content.js +0 -72
- package/components/dialog/demo/dialog-confirm.html +0 -102
- package/components/dialog/demo/dialog-container.js +0 -40
- package/components/dialog/demo/dialog-fullscreen.html +0 -273
- package/components/dialog/demo/dialog-nested.html +0 -94
- package/components/dialog/demo/dialog.html +0 -398
- package/components/dropdown/demo/dropdown-button.html +0 -102
- package/components/dropdown/demo/dropdown-context-menu.html +0 -129
- package/components/dropdown/demo/dropdown-flicker-inner.html +0 -70
- package/components/dropdown/demo/dropdown-flicker.html +0 -142
- package/components/dropdown/demo/dropdown-menu-demo-view.js +0 -37
- package/components/dropdown/demo/dropdown-menu.html +0 -227
- package/components/dropdown/demo/dropdown-more.html +0 -160
- package/components/dropdown/demo/dropdown-positioning.html +0 -127
- package/components/dropdown/demo/dropdown-tabs.html +0 -87
- package/components/dropdown/demo/dropdown.html +0 -217
- package/components/empty-state/demo/empty-state.html +0 -94
- package/components/expand-collapse/demo/expand-collapse-content.html +0 -58
- package/components/filter/demo/filter-load-more-demo.js +0 -182
- package/components/filter/demo/filter-overflow-group.html +0 -246
- package/components/filter/demo/filter-search-demo.js +0 -135
- package/components/filter/demo/filter-tags.html +0 -115
- package/components/filter/demo/filter.html +0 -230
- package/components/focus-trap/demo/focus-trap.html +0 -75
- package/components/form/demo/form-demo.js +0 -105
- package/components/form/demo/form-dialog-demo.js +0 -94
- package/components/form/demo/form-panel-demo.js +0 -89
- package/components/form/demo/form.html +0 -37
- package/components/hierarchical-view/demo/hierarchical-view.html +0 -221
- package/components/html-block/demo/html-block-code.html +0 -55
- package/components/html-block/demo/html-block.html +0 -696
- package/components/icons/demo/icon-color-override.js +0 -23
- package/components/icons/demo/icon-custom.html +0 -112
- package/components/icons/demo/icon-size-override.js +0 -24
- package/components/icons/demo/icon.html +0 -52
- package/components/inputs/demo/input-checkbox.html +0 -118
- package/components/inputs/demo/input-color-palette.js +0 -67
- package/components/inputs/demo/input-color.html +0 -110
- package/components/inputs/demo/input-date-range.html +0 -114
- package/components/inputs/demo/input-date-time-range.html +0 -128
- package/components/inputs/demo/input-date-time.html +0 -100
- package/components/inputs/demo/input-date.html +0 -81
- package/components/inputs/demo/input-group.html +0 -56
- package/components/inputs/demo/input-number.html +0 -136
- package/components/inputs/demo/input-percent.html +0 -99
- package/components/inputs/demo/input-radio-label-test.js +0 -45
- package/components/inputs/demo/input-radio-solo-test.js +0 -47
- package/components/inputs/demo/input-radio.html +0 -119
- package/components/inputs/demo/input-search.html +0 -75
- package/components/inputs/demo/input-select-test.js +0 -60
- package/components/inputs/demo/input-select.html +0 -45
- package/components/inputs/demo/input-text.html +0 -163
- package/components/inputs/demo/input-textarea.html +0 -124
- package/components/inputs/demo/input-time-range.html +0 -121
- package/components/inputs/demo/input-time.html +0 -95
- package/components/link/demo/link.html +0 -111
- package/components/list/demo/demo-list-nav.js +0 -170
- package/components/list/demo/demo-list-nested-iterations-helper.js +0 -168
- package/components/list/demo/demo-list-nested-lazy-load.js +0 -133
- package/components/list/demo/demo-list-nested.js +0 -291
- package/components/list/demo/demo-list.js +0 -241
- package/components/list/demo/list-color.html +0 -423
- package/components/list/demo/list-demo-scenarios.js +0 -380
- package/components/list/demo/list-drag-and-drop-position.js +0 -102
- package/components/list/demo/list-drag-and-drop.html +0 -82
- package/components/list/demo/list-expand-collapse.html +0 -136
- package/components/list/demo/list-item-actions.html +0 -371
- package/components/list/demo/list-item-custom.js +0 -204
- package/components/list/demo/list-item-layouts.html +0 -331
- package/components/list/demo/list-item-scroll.html +0 -122
- package/components/list/demo/list-layout.html +0 -575
- package/components/list/demo/list-nav.html +0 -110
- package/components/list/demo/list-nested.html +0 -270
- package/components/list/demo/list-selection.html +0 -301
- package/components/list/demo/list.html +0 -319
- package/components/loading-spinner/demo/loading-spinner-override.js +0 -34
- package/components/loading-spinner/demo/loading-spinner.html +0 -63
- package/components/menu/demo/checkbox-menu.html +0 -52
- package/components/menu/demo/custom-menu-item.js +0 -37
- package/components/menu/demo/custom-view.js +0 -63
- package/components/menu/demo/menu.html +0 -211
- package/components/menu/demo/radio-menu.html +0 -52
- package/components/meter/demo/meter.html +0 -115
- package/components/more-less/demo/more-less-test.js +0 -67
- package/components/more-less/demo/more-less.html +0 -71
- package/components/object-property-list/demo/object-property-list.html +0 -99
- package/components/offscreen/demo/offscreen-demo.js +0 -16
- package/components/offscreen/demo/offscreen.html +0 -44
- package/components/overflow-group/demo/demo-overflow-group.js +0 -29
- package/components/overflow-group/demo/overflow-group.html +0 -110
- package/components/paging/demo/pager-load-more.html +0 -120
- package/components/popover/demo/popover.html +0 -309
- package/components/progress/demo/progress.html +0 -104
- package/components/scroll-wrapper/demo/scroll-wrapper-test.js +0 -108
- package/components/scroll-wrapper/demo/scroll-wrapper.html +0 -52
- package/components/selection/demo/demo-selection.js +0 -35
- package/components/selection/demo/selection.html +0 -198
- package/components/skeleton/demo/skeleton-group-nested-test.js +0 -71
- package/components/skeleton/demo/skeleton-group-test-wrapper.js +0 -18
- package/components/skeleton/demo/skeleton-group-test.js +0 -91
- package/components/skeleton/demo/skeleton-mixin.html +0 -78
- package/components/skeleton/demo/skeleton-test-box.js +0 -34
- package/components/skeleton/demo/skeleton-test-container.js +0 -45
- package/components/skeleton/demo/skeleton-test-heading.js +0 -44
- package/components/skeleton/demo/skeleton-test-link.js +0 -47
- package/components/skeleton/demo/skeleton-test-paragraph.js +0 -54
- package/components/skeleton/demo/skeleton-test-stack.js +0 -38
- package/components/skeleton/demo/skeleton-test-width.js +0 -20
- package/components/sorting/demo/sort.html +0 -37
- package/components/status-indicator/demo/status-indicator.html +0 -99
- package/components/switch/demo/switch.html +0 -95
- package/components/table/demo/table-test.js +0 -271
- package/components/table/demo/table.html +0 -107
- package/components/tabs/demo/tab-custom.js +0 -39
- package/components/tabs/demo/tabs-array.js +0 -43
- package/components/tabs/demo/tabs.html +0 -558
- package/components/tag-list/demo/tag-list.html +0 -117
- package/components/tooltip/demo/tooltip.html +0 -275
- package/components/typography/demo/typography.html +0 -93
- package/components/view-switcher/demo/demo-table-view.js +0 -41
- package/components/view-switcher/demo/view-switcher.html +0 -71
- package/directives/animate/demo/animate-test.js +0 -98
- package/directives/animate/demo/index.html +0 -23
- package/helpers/demo/announce-test.js +0 -37
- package/helpers/demo/announce.html +0 -19
- package/helpers/demo/dismissible-test.js +0 -66
- package/helpers/demo/dismissible.html +0 -38
- package/helpers/demo/gestures.html +0 -58
- package/helpers/demo/prism.html +0 -694
- package/helpers/demo/template-tags.html +0 -118
- package/mixins/arrow-keys/demo/arrow-keys-mixin.html +0 -29
- package/mixins/arrow-keys/demo/arrow-keys-test.js +0 -38
- package/mixins/async-container/demo/async-container.html +0 -109
- package/mixins/async-container/demo/async-container.js +0 -27
- package/mixins/async-container/demo/async-item.js +0 -80
- package/mixins/labelled/demo/labelled-mixin.html +0 -90
- package/mixins/localize/demo/localize-mixin-greeting.js +0 -39
- package/mixins/localize/demo/localize-mixin-mission.js +0 -25
- package/mixins/localize/demo/localize-mixin.html +0 -28
- package/templates/primary-secondary/demo/form.html +0 -55
- package/templates/primary-secondary/demo/index.html +0 -27
- package/templates/primary-secondary/demo/integration.html +0 -457
- package/templates/primary-secondary/demo/overflow-hidden.html +0 -22
- package/templates/primary-secondary/demo/width-type-normal.html +0 -26
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<link rel="stylesheet" href="../../demo/styles.css" type="text/css">
|
|
7
|
-
<script type="module">
|
|
8
|
-
import '../../demo/demo-page.js';
|
|
9
|
-
import '../list-item-content.js';
|
|
10
|
-
import '../list-item.js';
|
|
11
|
-
import '../list-controls.js';
|
|
12
|
-
import '../list.js';
|
|
13
|
-
import '../../selection/selection-action.js';
|
|
14
|
-
</script>
|
|
15
|
-
<style>
|
|
16
|
-
d2l-list::before {
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
color: var(--d2l-color-tungsten);
|
|
19
|
-
content: attr(data-selection-info);
|
|
20
|
-
font-size: 0.7rem;
|
|
21
|
-
inset-block-start: 0;
|
|
22
|
-
inset-inline-end: 0;
|
|
23
|
-
margin: 0 0.4rem;
|
|
24
|
-
padding: 0;
|
|
25
|
-
position: absolute;
|
|
26
|
-
}
|
|
27
|
-
</style>
|
|
28
|
-
</head>
|
|
29
|
-
<body unresolved>
|
|
30
|
-
|
|
31
|
-
<d2l-demo-page page-title="d2l-list (selection)">
|
|
32
|
-
|
|
33
|
-
<h2>Nested - 1 - all selectable</h2>
|
|
34
|
-
|
|
35
|
-
<d2l-demo-snippet>
|
|
36
|
-
<template>
|
|
37
|
-
<d2l-list grid>
|
|
38
|
-
<d2l-list-controls slot="controls">
|
|
39
|
-
<d2l-selection-action icon="tier1:bookmark-hollow" text="Bookmark" requires-selection></d2l-selection-action>
|
|
40
|
-
<d2l-selection-action icon="tier1:gear" text="Settings"></d2l-selection-action>
|
|
41
|
-
</d2l-list-controls>
|
|
42
|
-
<d2l-list-item selectable key="Item-1" label="Label for Item-1">
|
|
43
|
-
<d2l-list-item-content>
|
|
44
|
-
<div>Item-1 - Earth Sciences</div>
|
|
45
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
46
|
-
</d2l-list-item-content>
|
|
47
|
-
<d2l-list slot="nested" grid separators="all">
|
|
48
|
-
<d2l-list-item selectable key="Item-1-1" label="Label for Item-1-1">
|
|
49
|
-
<d2l-list-item-content>
|
|
50
|
-
<div>Item-1-1 - Introductory Earth Sciences</div>
|
|
51
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
52
|
-
</d2l-list-item-content>
|
|
53
|
-
</d2l-list-item>
|
|
54
|
-
<d2l-list-item selectable key="Item-1-2" label="Label for Item-1-2">
|
|
55
|
-
<d2l-list-item-content>
|
|
56
|
-
<div>Item-1-2 - Flow and Transport Through Fractured Rocks</div>
|
|
57
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
58
|
-
</d2l-list-item-content>
|
|
59
|
-
</d2l-list-item>
|
|
60
|
-
<d2l-list-item selectable key="Item-1-3" label="Label for Item-1-3">
|
|
61
|
-
<d2l-list-item-content>
|
|
62
|
-
<div>Item-1-3 - Applied Wetland Science</div>
|
|
63
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
64
|
-
</d2l-list-item-content>
|
|
65
|
-
</d2l-list-item>
|
|
66
|
-
</d2l-list>
|
|
67
|
-
</d2l-list-item>
|
|
68
|
-
<d2l-list-item selectable key="Item-2" label="Label for Item-2">
|
|
69
|
-
<d2l-list-item-content>
|
|
70
|
-
<div>Item-2 - Biology</div>
|
|
71
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
72
|
-
</d2l-list-item-content>
|
|
73
|
-
</d2l-list-item>
|
|
74
|
-
<d2l-list-item selectable key="Item-3" label="Label for Item-3">
|
|
75
|
-
<d2l-list-item-content>
|
|
76
|
-
<div>Item-3 - Computer Science</div>
|
|
77
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
78
|
-
</d2l-list-item-content>
|
|
79
|
-
</d2l-list-item>
|
|
80
|
-
</d2l-list>
|
|
81
|
-
</template>
|
|
82
|
-
</d2l-demo-snippet>
|
|
83
|
-
|
|
84
|
-
<h2>Nested - 2 - L1 not selectable, L2 selectable</h2>
|
|
85
|
-
|
|
86
|
-
<d2l-demo-snippet>
|
|
87
|
-
<template>
|
|
88
|
-
<d2l-list grid>
|
|
89
|
-
<d2l-list-controls slot="controls">
|
|
90
|
-
<d2l-selection-action icon="tier1:bookmark-hollow" text="Bookmark" requires-selection></d2l-selection-action>
|
|
91
|
-
<d2l-selection-action icon="tier1:gear" text="Settings"></d2l-selection-action>
|
|
92
|
-
</d2l-list-controls>
|
|
93
|
-
<d2l-list-item key="Item-1" label="Label for Item-1">
|
|
94
|
-
<d2l-list-item-content>
|
|
95
|
-
<div>Item-1 - Earth Sciences</div>
|
|
96
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
97
|
-
</d2l-list-item-content>
|
|
98
|
-
<d2l-list slot="nested" grid separators="all">
|
|
99
|
-
<d2l-list-item selectable key="Item-1-1" label="Label for Item-1-1">
|
|
100
|
-
<d2l-list-item-content>
|
|
101
|
-
<div>Item-1-1 - Introductory Earth Sciences</div>
|
|
102
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
103
|
-
</d2l-list-item-content>
|
|
104
|
-
</d2l-list-item>
|
|
105
|
-
<d2l-list-item selectable key="Item-1-2" label="Label for Item-1-2">
|
|
106
|
-
<d2l-list-item-content>
|
|
107
|
-
<div>Item-1-2 - Flow and Transport Through Fractured Rocks</div>
|
|
108
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
109
|
-
</d2l-list-item-content>
|
|
110
|
-
</d2l-list-item>
|
|
111
|
-
<d2l-list-item selectable key="Item-1-3" label="Label for Item-1-3">
|
|
112
|
-
<d2l-list-item-content>
|
|
113
|
-
<div>Item-1-3 - Applied Wetland Science</div>
|
|
114
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
115
|
-
</d2l-list-item-content>
|
|
116
|
-
</d2l-list-item>
|
|
117
|
-
</d2l-list>
|
|
118
|
-
</d2l-list-item>
|
|
119
|
-
<d2l-list-item key="Item-2" label="Label for Item-2">
|
|
120
|
-
<d2l-list-item-content>
|
|
121
|
-
<div>Item-2 - Biology</div>
|
|
122
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
123
|
-
</d2l-list-item-content>
|
|
124
|
-
</d2l-list-item>
|
|
125
|
-
<d2l-list-item key="Item-3" label="Label for Item-3">
|
|
126
|
-
<d2l-list-item-content>
|
|
127
|
-
<div>Item-3 - Computer Science</div>
|
|
128
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
129
|
-
</d2l-list-item-content>
|
|
130
|
-
</d2l-list-item>
|
|
131
|
-
</d2l-list>
|
|
132
|
-
</template>
|
|
133
|
-
</d2l-demo-snippet>
|
|
134
|
-
|
|
135
|
-
<h2>Nested - 3 - L1 selectable, L2 not selectable</h2>
|
|
136
|
-
|
|
137
|
-
<d2l-demo-snippet>
|
|
138
|
-
<template>
|
|
139
|
-
<d2l-list grid>
|
|
140
|
-
<d2l-list-controls slot="controls">
|
|
141
|
-
<d2l-selection-action icon="tier1:bookmark-hollow" text="Bookmark" requires-selection></d2l-selection-action>
|
|
142
|
-
<d2l-selection-action icon="tier1:gear" text="Settings"></d2l-selection-action>
|
|
143
|
-
</d2l-list-controls>
|
|
144
|
-
<d2l-list-item selectable key="Item-1" label="Label for Item-1">
|
|
145
|
-
<d2l-list-item-content>
|
|
146
|
-
<div>Item-1 - Earth Sciences</div>
|
|
147
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
148
|
-
</d2l-list-item-content>
|
|
149
|
-
<d2l-list slot="nested" grid separators="all">
|
|
150
|
-
<d2l-list-item key="Item-1-1" label="Label for Item-1-1">
|
|
151
|
-
<d2l-list-item-content>
|
|
152
|
-
<div>Item-1-1 - Introductory Earth Sciences</div>
|
|
153
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
154
|
-
</d2l-list-item-content>
|
|
155
|
-
</d2l-list-item>
|
|
156
|
-
<d2l-list-item key="Item-1-2" label="Label for Item-1-2">
|
|
157
|
-
<d2l-list-item-content>
|
|
158
|
-
<div>Item-1-2 - Flow and Transport Through Fractured Rocks</div>
|
|
159
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
160
|
-
</d2l-list-item-content>
|
|
161
|
-
</d2l-list-item>
|
|
162
|
-
<d2l-list-item key="Item-1-3" label="Label for Item-1-3">
|
|
163
|
-
<d2l-list-item-content>
|
|
164
|
-
<div>Item-1-3 - Applied Wetland Science</div>
|
|
165
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
166
|
-
</d2l-list-item-content>
|
|
167
|
-
</d2l-list-item>
|
|
168
|
-
</d2l-list>
|
|
169
|
-
</d2l-list-item>
|
|
170
|
-
<d2l-list-item selectable key="Item-2" label="Label for Item-2">
|
|
171
|
-
<d2l-list-item-content>
|
|
172
|
-
<div>Item-2 - Biology</div>
|
|
173
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
174
|
-
</d2l-list-item-content>
|
|
175
|
-
</d2l-list-item>
|
|
176
|
-
<d2l-list-item selectable key="Item-3" label="Label for Item-3">
|
|
177
|
-
<d2l-list-item-content>
|
|
178
|
-
<div>Item-3 - Computer Science</div>
|
|
179
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
180
|
-
</d2l-list-item-content>
|
|
181
|
-
</d2l-list-item>
|
|
182
|
-
</d2l-list>
|
|
183
|
-
</template>
|
|
184
|
-
</d2l-demo-snippet>
|
|
185
|
-
|
|
186
|
-
<h2>Nested - 4 - L1 selectable, L2 not selectable, L3 selectable</h2>
|
|
187
|
-
|
|
188
|
-
<d2l-demo-snippet>
|
|
189
|
-
<template>
|
|
190
|
-
<d2l-list grid>
|
|
191
|
-
<d2l-list-controls slot="controls">
|
|
192
|
-
<d2l-selection-action icon="tier1:bookmark-hollow" text="Bookmark" requires-selection></d2l-selection-action>
|
|
193
|
-
<d2l-selection-action icon="tier1:gear" text="Settings"></d2l-selection-action>
|
|
194
|
-
</d2l-list-controls>
|
|
195
|
-
<d2l-list-item selectable key="Item-1" label="Label for Item-1">
|
|
196
|
-
<d2l-list-item-content>
|
|
197
|
-
<div>Item-1 - Earth Sciences</div>
|
|
198
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
199
|
-
</d2l-list-item-content>
|
|
200
|
-
<d2l-list slot="nested" grid separators="all">
|
|
201
|
-
<d2l-list-item key="Item-1-1" label="Label for Item-1-1">
|
|
202
|
-
<d2l-list-item-content>
|
|
203
|
-
<div>Item-1-1 - Introductory Earth Sciences</div>
|
|
204
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
205
|
-
</d2l-list-item-content>
|
|
206
|
-
</d2l-list-item>
|
|
207
|
-
<d2l-list-item key="Item-1-2" label="Label for Item-1-2">
|
|
208
|
-
<d2l-list-item-content>
|
|
209
|
-
<div>Item-1-2 - Flow and Transport Through Fractured Rocks</div>
|
|
210
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
211
|
-
</d2l-list-item-content>
|
|
212
|
-
<d2l-list slot="nested" grid separators="all">
|
|
213
|
-
<d2l-list-item selectable key="Item-1-2-1" label="Label for Item-1-2-1">
|
|
214
|
-
<d2l-list-item-content>
|
|
215
|
-
<div>Item-1-2-1 - Hydraulic Properties of Fractures</div>
|
|
216
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
217
|
-
</d2l-list-item-content>
|
|
218
|
-
</d2l-list-item>
|
|
219
|
-
<d2l-list-item selectable key="Item-1-2-2" label="Label for Item-1-2-2">
|
|
220
|
-
<d2l-list-item-content>
|
|
221
|
-
<div>Item-1-2-2 - Contaminant Transport</div>
|
|
222
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
223
|
-
</d2l-list-item-content>
|
|
224
|
-
</d2l-list-item>
|
|
225
|
-
</d2l-list>
|
|
226
|
-
</d2l-list-item>
|
|
227
|
-
<d2l-list-item key="Item-1-3" label="Label for Item-1-3">
|
|
228
|
-
<d2l-list-item-content>
|
|
229
|
-
<div>Item-1-3 - Applied Wetland Science</div>
|
|
230
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
231
|
-
</d2l-list-item-content>
|
|
232
|
-
</d2l-list-item>
|
|
233
|
-
</d2l-list>
|
|
234
|
-
</d2l-list-item>
|
|
235
|
-
<d2l-list-item selectable key="Item-2" label="Label for Item-2">
|
|
236
|
-
<d2l-list-item-content>
|
|
237
|
-
<div>Item-2 - Biology</div>
|
|
238
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
239
|
-
</d2l-list-item-content>
|
|
240
|
-
</d2l-list-item>
|
|
241
|
-
<d2l-list-item selectable key="Item-3" label="Label for Item-3">
|
|
242
|
-
<d2l-list-item-content>
|
|
243
|
-
<div>Item-3 - Computer Science</div>
|
|
244
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
245
|
-
</d2l-list-item-content>
|
|
246
|
-
</d2l-list-item>
|
|
247
|
-
</d2l-list>
|
|
248
|
-
</template>
|
|
249
|
-
</d2l-demo-snippet>
|
|
250
|
-
|
|
251
|
-
<h2>Nested - 5 - L1 mixed</h2>
|
|
252
|
-
|
|
253
|
-
<d2l-demo-snippet>
|
|
254
|
-
<template>
|
|
255
|
-
<d2l-list grid>
|
|
256
|
-
<d2l-list-controls slot="controls">
|
|
257
|
-
<d2l-selection-action icon="tier1:bookmark-hollow" text="Bookmark" requires-selection></d2l-selection-action>
|
|
258
|
-
<d2l-selection-action icon="tier1:gear" text="Settings"></d2l-selection-action>
|
|
259
|
-
</d2l-list-controls>
|
|
260
|
-
<d2l-list-item selectable key="Item-1" label="Label for Item-1">
|
|
261
|
-
<d2l-list-item-content>
|
|
262
|
-
<div>Item-1 - Earth Sciences</div>
|
|
263
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
264
|
-
</d2l-list-item-content>
|
|
265
|
-
</d2l-list-item>
|
|
266
|
-
<d2l-list-item key="Item-2" label="Label for Item-2">
|
|
267
|
-
<d2l-list-item-content>
|
|
268
|
-
<div>Item-2 - Biology</div>
|
|
269
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
270
|
-
</d2l-list-item-content>
|
|
271
|
-
</d2l-list-item>
|
|
272
|
-
<d2l-list-item selectable key="Item-3" label="Label for Item-3">
|
|
273
|
-
<d2l-list-item-content>
|
|
274
|
-
<div>Item-3 - Computer Science</div>
|
|
275
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
276
|
-
</d2l-list-item-content>
|
|
277
|
-
</d2l-list-item>
|
|
278
|
-
</d2l-list>
|
|
279
|
-
</template>
|
|
280
|
-
</d2l-demo-snippet>
|
|
281
|
-
|
|
282
|
-
</d2l-demo-page>
|
|
283
|
-
|
|
284
|
-
<script>
|
|
285
|
-
function updateSelectionInfoText(list) {
|
|
286
|
-
const info = list.getSelectionInfo(true);
|
|
287
|
-
list.setAttribute('data-selection-info', `Selection Info: ${info.state}, ${info.keys.length}`);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
setTimeout(() => {
|
|
291
|
-
document.querySelectorAll('d2l-list').forEach(list => {
|
|
292
|
-
list.addEventListener('d2l-list-selection-changes', (e) => {
|
|
293
|
-
updateSelectionInfoText(e.target);
|
|
294
|
-
console.log('d2l-list-selection-changes', e.detail);
|
|
295
|
-
});
|
|
296
|
-
updateSelectionInfoText(list);
|
|
297
|
-
});
|
|
298
|
-
}, 1000);
|
|
299
|
-
</script>
|
|
300
|
-
</body>
|
|
301
|
-
</html>
|
|
@@ -1,319 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
5
|
-
<meta charset="UTF-8">
|
|
6
|
-
<link rel="stylesheet" href="../../demo/styles.css" type="text/css">
|
|
7
|
-
<script type="module">
|
|
8
|
-
import '../../button/button-icon.js';
|
|
9
|
-
import '../../button/button-subtle.js';
|
|
10
|
-
import '../../demo/demo-page.js';
|
|
11
|
-
import '../../dropdown/dropdown-menu.js';
|
|
12
|
-
import '../../dropdown/dropdown-more.js';
|
|
13
|
-
import '../../menu/menu.js';
|
|
14
|
-
import '../../menu/menu-item.js';
|
|
15
|
-
import '../../tooltip/tooltip.js';
|
|
16
|
-
import '../../tooltip/tooltip-help.js';
|
|
17
|
-
import '../list-item-content.js';
|
|
18
|
-
import '../list-item.js';
|
|
19
|
-
import '../list-item-button.js';
|
|
20
|
-
import '../list.js';
|
|
21
|
-
import '../../tag-list/tag-list.js';
|
|
22
|
-
import '../../tag-list/tag-list-item.js';
|
|
23
|
-
import './demo-list.js';
|
|
24
|
-
</script>
|
|
25
|
-
<style>
|
|
26
|
-
img {
|
|
27
|
-
height: 500px;
|
|
28
|
-
object-fit: cover;
|
|
29
|
-
}
|
|
30
|
-
d2l-tag-list {
|
|
31
|
-
margin-top: 0.3rem;
|
|
32
|
-
}
|
|
33
|
-
</style>
|
|
34
|
-
</head>
|
|
35
|
-
<body unresolved>
|
|
36
|
-
|
|
37
|
-
<d2l-demo-page page-title="d2l-list">
|
|
38
|
-
|
|
39
|
-
<h2>Basic List</h2>
|
|
40
|
-
|
|
41
|
-
<d2l-demo-snippet>
|
|
42
|
-
<template>
|
|
43
|
-
<d2l-list add-button>
|
|
44
|
-
<d2l-list-item>
|
|
45
|
-
<d2l-list-item-content>
|
|
46
|
-
<div>Identify categories of physical activities</div>
|
|
47
|
-
<div slot="secondary">Secondary Information</div>
|
|
48
|
-
<div slot="supporting-info">Specific Expectation A1.2</div>
|
|
49
|
-
</d2l-list-item-content>
|
|
50
|
-
</d2l-list-item>
|
|
51
|
-
<d2l-list-item>
|
|
52
|
-
<d2l-list-item-content>
|
|
53
|
-
<div>Apply a decision-making process to assess risks and make safe decisions in a variety of situations</div>
|
|
54
|
-
<div slot="secondary">Secondary Information</div>
|
|
55
|
-
<div slot="supporting-info">Specific Expectation B2.1</div>
|
|
56
|
-
</d2l-list-item-content>
|
|
57
|
-
</d2l-list-item>
|
|
58
|
-
<d2l-list-item>
|
|
59
|
-
<d2l-list-item-content>
|
|
60
|
-
<div>Retain objects of various shapes and sizes in different ways, while moving around others and equipment</div>
|
|
61
|
-
<div slot="secondary">Secondary Information</div>
|
|
62
|
-
<div slot="supporting-info">Specific Expectation B2.2</div>
|
|
63
|
-
</d2l-list-item-content>
|
|
64
|
-
</d2l-list-item>
|
|
65
|
-
</d2l-list>
|
|
66
|
-
</template>
|
|
67
|
-
</d2l-demo-snippet>
|
|
68
|
-
|
|
69
|
-
<h2>List (with all the stuff)</h2>
|
|
70
|
-
|
|
71
|
-
<d2l-demo-snippet>
|
|
72
|
-
<template>
|
|
73
|
-
<d2l-demo-list></d2l-demo-list>
|
|
74
|
-
</template>
|
|
75
|
-
</d2l-demo-snippet>
|
|
76
|
-
|
|
77
|
-
<h2>List with Grid Actions</h2>
|
|
78
|
-
|
|
79
|
-
<d2l-demo-snippet>
|
|
80
|
-
<template>
|
|
81
|
-
<d2l-demo-list grid></d2l-demo-list>
|
|
82
|
-
</template>
|
|
83
|
-
</d2l-demo-snippet>
|
|
84
|
-
|
|
85
|
-
<h2>List with add button</h2>
|
|
86
|
-
|
|
87
|
-
<d2l-demo-snippet>
|
|
88
|
-
<template>
|
|
89
|
-
<d2l-demo-list add-button></d2l-demo-list>
|
|
90
|
-
</template>
|
|
91
|
-
</d2l-demo-snippet>
|
|
92
|
-
|
|
93
|
-
<h2>List with add button, grid, extended separators</h2>
|
|
94
|
-
|
|
95
|
-
<d2l-demo-snippet>
|
|
96
|
-
<template>
|
|
97
|
-
<d2l-demo-list add-button grid extend-separators></d2l-demo-list>
|
|
98
|
-
</template>
|
|
99
|
-
</d2l-demo-snippet>
|
|
100
|
-
|
|
101
|
-
<h2>List with Interactive Content</h2>
|
|
102
|
-
|
|
103
|
-
<d2l-demo-snippet>
|
|
104
|
-
<template>
|
|
105
|
-
<d2l-list grid>
|
|
106
|
-
<d2l-list-item no-primary-action selectable key="1" label="Introductory Earth Sciences">
|
|
107
|
-
<img slot="illustration" src="https://s.brightspace.com/course-images/images/38e839b1-37fa-470c-8830-b189ce4ae134/tile-high-density-max-size.jpg"></img>
|
|
108
|
-
<div>
|
|
109
|
-
<d2l-list-item-content>
|
|
110
|
-
<div>Introductory Earth Sciences</div>
|
|
111
|
-
</d2l-list-item-content>
|
|
112
|
-
<d2l-tag-list description="Tags for this course">
|
|
113
|
-
<d2l-tag-list-item text="Science" description="This is a description for the Science tag that is really really really long and will overflow onto the next line."></d2l-tag-list-item>
|
|
114
|
-
<d2l-tag-list-item text="Environment" description="This is a description for the Environment tag."></d2l-tag-list-item>
|
|
115
|
-
<d2l-tag-list-item text="Earth" description="This is a description for the Earth tag."></d2l-tag-list-item>
|
|
116
|
-
</d2l-tag-list>
|
|
117
|
-
</div>
|
|
118
|
-
<div slot="actions">
|
|
119
|
-
<d2l-button-icon id="tooltip-btn-1" text="My Button" icon="tier1:preview"></d2l-button-icon>
|
|
120
|
-
<d2l-tooltip for="tooltip-btn-1">Preview</d2l-tooltip>
|
|
121
|
-
<d2l-dropdown-more text="Open!">
|
|
122
|
-
<d2l-dropdown-menu>
|
|
123
|
-
<d2l-menu label="Astronomy">
|
|
124
|
-
<d2l-menu-item text="Introduction"></d2l-menu-item>
|
|
125
|
-
<d2l-menu-item text="Searching for the Heavens "></d2l-menu-item>
|
|
126
|
-
</d2l-menu>
|
|
127
|
-
</d2l-dropdown-menu>
|
|
128
|
-
</d2l-dropdown-more>
|
|
129
|
-
</div>
|
|
130
|
-
</d2l-list-item>
|
|
131
|
-
<d2l-list-item no-primary-action selectable key="2" selected label="Engineering Materials for Energy Systems">
|
|
132
|
-
<img slot="illustration" src="https://s.brightspace.com/course-images/images/e5fd575a-bc14-4a80-89e1-46f349a76178/tile-high-density-max-size.jpg"></img>
|
|
133
|
-
<div>
|
|
134
|
-
<d2l-list-item-content>
|
|
135
|
-
<div>Engineering Materials for Energy Systems</div>
|
|
136
|
-
</d2l-list-item-content>
|
|
137
|
-
<d2l-tag-list description="Tags for this course">
|
|
138
|
-
<d2l-tag-list-item text="Engineering" description="This is a description for the Engineering tag."></d2l-tag-list-item>
|
|
139
|
-
<d2l-tag-list-item text="Energy Systems" description="This is a description for the Energy Systems tag."></d2l-tag-list-item>
|
|
140
|
-
</d2l-tag-list>
|
|
141
|
-
</div>
|
|
142
|
-
<div slot="actions">
|
|
143
|
-
<d2l-button-icon id="tooltip-btn-1" text="My Button" icon="tier1:preview"></d2l-button-icon>
|
|
144
|
-
<d2l-tooltip for="tooltip-btn-1">Preview</d2l-tooltip>
|
|
145
|
-
<d2l-dropdown-more text="Open!">
|
|
146
|
-
<d2l-dropdown-menu>
|
|
147
|
-
<d2l-menu label="Astronomy">
|
|
148
|
-
<d2l-menu-item text="Introduction"></d2l-menu-item>
|
|
149
|
-
<d2l-menu-item text="Searching for the Heavens "></d2l-menu-item>
|
|
150
|
-
</d2l-menu>
|
|
151
|
-
</d2l-dropdown-menu>
|
|
152
|
-
</d2l-dropdown-more>
|
|
153
|
-
</div>
|
|
154
|
-
</d2l-list-item>
|
|
155
|
-
<d2l-list-item no-primary-action selectable key="3" label="Geomorphology and GIS">
|
|
156
|
-
<img slot="illustration" src="https://s.brightspace.com/course-images/images/63b162ab-b582-4bf9-8c1d-1dad04714121/tile-high-density-max-size.jpg"></img>
|
|
157
|
-
<div>
|
|
158
|
-
<d2l-list-item-content>
|
|
159
|
-
<div>Geomorphology and GIS</div>
|
|
160
|
-
</d2l-list-item-content>
|
|
161
|
-
<d2l-tag-list description="Tags for this course">
|
|
162
|
-
<d2l-tag-list-item text="Geology" description="This is a description for the Geology tag."></d2l-tag-list-item>
|
|
163
|
-
<d2l-tag-list-item text="GIS" description="This is a description for the GIS tag."></d2l-tag-list-item>
|
|
164
|
-
<d2l-tag-list-item text="Earth Sciences" description="This is a description for the Earth Sciences tag."></d2l-tag-list-item>
|
|
165
|
-
</d2l-tag-list>
|
|
166
|
-
</div>
|
|
167
|
-
<div slot="actions">
|
|
168
|
-
<d2l-button-icon id="tooltip-btn-1" text="My Button" icon="tier1:preview"></d2l-button-icon>
|
|
169
|
-
<d2l-tooltip for="tooltip-btn-1">Preview</d2l-tooltip>
|
|
170
|
-
<d2l-dropdown-more text="Open!">
|
|
171
|
-
<d2l-dropdown-menu>
|
|
172
|
-
<d2l-menu label="Astronomy">
|
|
173
|
-
<d2l-menu-item text="Introduction"></d2l-menu-item>
|
|
174
|
-
<d2l-menu-item text="Searching for the Heavens "></d2l-menu-item>
|
|
175
|
-
</d2l-menu>
|
|
176
|
-
</d2l-dropdown-menu>
|
|
177
|
-
</d2l-dropdown-more>
|
|
178
|
-
</div>
|
|
179
|
-
</d2l-list-item>
|
|
180
|
-
</d2l-list>
|
|
181
|
-
</template>
|
|
182
|
-
</d2l-demo-snippet>
|
|
183
|
-
|
|
184
|
-
<h2>Breakpoints on List</h2>
|
|
185
|
-
|
|
186
|
-
<d2l-demo-snippet>
|
|
187
|
-
<template>
|
|
188
|
-
<d2l-list breakpoints="[1170, 391, 0, 0]">
|
|
189
|
-
<d2l-list-item color="#00ff00">
|
|
190
|
-
<div style="background: blue; height: 400px; width: 400px;" slot="illustration"></div>
|
|
191
|
-
<d2l-list-item-content>
|
|
192
|
-
<div>Introductory Pirate Ipsum</div>
|
|
193
|
-
<div slot="supporting-info">Case shot Shiver me timbers gangplank crack Jennys tea cup ballast Blimey lee snow crow's nest rutters.</div>
|
|
194
|
-
</d2l-list-item-content>
|
|
195
|
-
</d2l-list-item>
|
|
196
|
-
<d2l-list-item>
|
|
197
|
-
<div style="background: blue; height: 400px; width: 400px;" slot="illustration"></div>
|
|
198
|
-
<d2l-list-item-content>
|
|
199
|
-
<div>Introductory Pirate Ipsum</div>
|
|
200
|
-
<div slot="supporting-info">Case shot Shiver me timbers gangplank crack Jennys tea cup ballast Blimey lee snow crow's nest rutters.</div>
|
|
201
|
-
</d2l-list-item-content>
|
|
202
|
-
</d2l-list-item>
|
|
203
|
-
</d2l-list>
|
|
204
|
-
</template>
|
|
205
|
-
</d2l-demo-snippet>
|
|
206
|
-
|
|
207
|
-
<h2>List (with interactive primary action content)</h2>
|
|
208
|
-
|
|
209
|
-
<d2l-demo-snippet>
|
|
210
|
-
<template>
|
|
211
|
-
<d2l-list grid>
|
|
212
|
-
<d2l-list-item expandable key="expand-1" label="Expandable item #1">
|
|
213
|
-
<d2l-list-item-content>
|
|
214
|
-
<div>Week 1: Introduction</div>
|
|
215
|
-
<div slot="secondary" style="padding: 5px;"><d2l-tooltip-help text="Due: Jan 30, 2023">Available: Aug 11, 2023</d2l-tooltip-help></div>
|
|
216
|
-
<div slot="supporting-info"><d2l-button-subtle style="padding: 5px;" text="Bookmark" icon="tier1:bookmark-hollow"></d2l-button-subtle></div>
|
|
217
|
-
</d2l-list-item-content>
|
|
218
|
-
<d2l-list grid slot="nested">
|
|
219
|
-
<d2l-list-item selectable key="nested-1" label="Nested 1">
|
|
220
|
-
<d2l-list-item-content>
|
|
221
|
-
<div>Nested item #1</div>
|
|
222
|
-
<div slot="secondary"><d2l-button-subtle style="padding: 5px;" text="Bookmark" icon="tier1:bookmark-hollow"></d2l-button-subtle></div>
|
|
223
|
-
</d2l-list-item-content>
|
|
224
|
-
</d2l-list-item>
|
|
225
|
-
<d2l-list-item selectable key="nested-2" label="Nested 2" expandable>
|
|
226
|
-
<d2l-list-item-content>
|
|
227
|
-
<div>Nested item #2</div>
|
|
228
|
-
<div slot="secondary"><d2l-button-subtle style="padding: 5px;" text="Bookmark" icon="tier1:bookmark-hollow"></d2l-button-subtle></div>
|
|
229
|
-
</d2l-list-item-content>
|
|
230
|
-
<d2l-list grid slot="nested">
|
|
231
|
-
<d2l-list-item selectable key="nested-1-1" label="Nested 1">
|
|
232
|
-
<d2l-list-item-content>
|
|
233
|
-
<div>Nested item #1</div>
|
|
234
|
-
<div slot="secondary"><d2l-button-subtle style="padding: 5px;" text="Bookmark" icon="tier1:bookmark-hollow"></d2l-button-subtle></div>
|
|
235
|
-
</d2l-list-item-content>
|
|
236
|
-
</d2l-list-item>
|
|
237
|
-
<d2l-list-item selectable key="nested--1" label="Nested 2">
|
|
238
|
-
<d2l-list-item-content><div>Nested item #2</div></d2l-list-item-content>
|
|
239
|
-
</d2l-list-item>
|
|
240
|
-
</d2l-list>
|
|
241
|
-
</d2l-list-item>
|
|
242
|
-
</d2l-list>
|
|
243
|
-
</d2l-list-item>
|
|
244
|
-
<d2l-list-item href="http://www.d2l.com">
|
|
245
|
-
<d2l-list-item-content>
|
|
246
|
-
<div>Week 2: Learn more</div>
|
|
247
|
-
<div slot="secondary">Secondary Information</div>
|
|
248
|
-
</d2l-list-item-content>
|
|
249
|
-
</d2l-list-item>
|
|
250
|
-
<d2l-list-item href="http://www.d2l.com">
|
|
251
|
-
<d2l-list-item-content>
|
|
252
|
-
<div>Week 3: Learn even more!</div>
|
|
253
|
-
<div slot="secondary">Secondary Information</div>
|
|
254
|
-
</d2l-list-item-content>
|
|
255
|
-
</d2l-list-item>
|
|
256
|
-
</d2l-list>
|
|
257
|
-
</template>
|
|
258
|
-
<script type="module">
|
|
259
|
-
requestAnimationFrame(() => {
|
|
260
|
-
document.querySelectorAll('d2l-button-subtle').forEach((button) => {
|
|
261
|
-
button.addEventListener('click', () => {
|
|
262
|
-
console.log('d2l-button: click event');
|
|
263
|
-
});
|
|
264
|
-
});
|
|
265
|
-
});
|
|
266
|
-
</script>
|
|
267
|
-
</d2l-demo-snippet>
|
|
268
|
-
|
|
269
|
-
<h2>List (with button-items and interactive primary action content) </h2>
|
|
270
|
-
|
|
271
|
-
<d2l-demo-snippet>
|
|
272
|
-
<template>
|
|
273
|
-
<d2l-list grid id="button-item-list">
|
|
274
|
-
<d2l-list-item-button expandable key="expand-1" label="Expandable item #1">
|
|
275
|
-
<d2l-list-item-content>
|
|
276
|
-
<div>Week 1: Introduction</div>
|
|
277
|
-
<div slot="secondary" style="padding: 5px;"><d2l-tooltip-help text="Due: Jan 30, 2023">Available: Aug 11, 2023</d2l-tooltip-help></div>
|
|
278
|
-
<div slot="supporting-info"><d2l-button-subtle style="padding: 5px;" text="Bookmark" icon="tier1:bookmark-hollow"></d2l-button-subtle></div>
|
|
279
|
-
</d2l-list-item-content>
|
|
280
|
-
<d2l-list grid slot="nested">
|
|
281
|
-
<d2l-list-item-button selectable key="nested-1" label="Nested 1">
|
|
282
|
-
<d2l-list-item-content><div>Nested item #1</div></d2l-list-item-content>
|
|
283
|
-
</d2l-list-item-button>
|
|
284
|
-
<d2l-list-item-button selectable key="nested-2" label="Nested 2">
|
|
285
|
-
<d2l-list-item-content><div>Nested item #2</div></d2l-list-item-content>
|
|
286
|
-
</d2l-list-item-button>
|
|
287
|
-
</d2l-list>
|
|
288
|
-
</d2l-list-item-button>
|
|
289
|
-
<d2l-list-item-button button-disabled>
|
|
290
|
-
<d2l-list-item-content>
|
|
291
|
-
<div>Week 2: Learn more</div>
|
|
292
|
-
<div slot="secondary">Secondary Information</div>
|
|
293
|
-
</d2l-list-item-content>
|
|
294
|
-
</d2l-list-item-button>
|
|
295
|
-
<d2l-list-item-button>
|
|
296
|
-
<d2l-list-item-content>
|
|
297
|
-
<div>Week 3: Learn even more!</div>
|
|
298
|
-
<div slot="secondary">Secondary Information</div>
|
|
299
|
-
</d2l-list-item-content>
|
|
300
|
-
</d2l-list-item-button>
|
|
301
|
-
</d2l-list>
|
|
302
|
-
</template>
|
|
303
|
-
<script type="module">
|
|
304
|
-
requestAnimationFrame(() => {
|
|
305
|
-
const list = document.querySelector('#button-item-list');
|
|
306
|
-
list.addEventListener('d2l-list-item-button-click', () => {
|
|
307
|
-
console.log('d2l-list-item-button: click event');
|
|
308
|
-
});
|
|
309
|
-
list.querySelector('d2l-button-subtle').addEventListener('click', () => {
|
|
310
|
-
console.log('d2l-button: click event');
|
|
311
|
-
});
|
|
312
|
-
});
|
|
313
|
-
</script>
|
|
314
|
-
</d2l-demo-snippet>
|
|
315
|
-
|
|
316
|
-
</d2l-demo-page>
|
|
317
|
-
|
|
318
|
-
</body>
|
|
319
|
-
</html>
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import '../../colors/colors.js';
|
|
2
|
-
import '../../loading-spinner/loading-spinner.js';
|
|
3
|
-
import { css, html, LitElement } from 'lit';
|
|
4
|
-
|
|
5
|
-
class LoadingSpinnerOverride extends LitElement {
|
|
6
|
-
|
|
7
|
-
static get properties() {
|
|
8
|
-
return {
|
|
9
|
-
overrideColor: { type: Boolean, attribute: 'override-color' },
|
|
10
|
-
overrideSize: { type: Boolean, attribute: 'override-size' }
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
static get styles() {
|
|
15
|
-
return css`
|
|
16
|
-
:host {
|
|
17
|
-
display: inline-block;
|
|
18
|
-
}
|
|
19
|
-
:host([override-color]) {
|
|
20
|
-
--d2l-loading-spinner-color: var(--d2l-color-cinnabar);
|
|
21
|
-
}
|
|
22
|
-
:host([override-size]) {
|
|
23
|
-
--d2l-loading-spinner-size: 100px;
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
render() {
|
|
29
|
-
return html`<d2l-loading-spinner></d2l-loading-spinner>`;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
customElements.define('d2l-loading-spinner-demo-override', LoadingSpinnerOverride);
|