@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,110 +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 '../../icons/icon.js';
|
|
10
|
-
import '../list-item-content.js';
|
|
11
|
-
import '../list-item-nav.js';
|
|
12
|
-
import '../list.js';
|
|
13
|
-
import '../../tooltip/tooltip-help.js';
|
|
14
|
-
|
|
15
|
-
import './demo-list-nav.js';
|
|
16
|
-
import './demo-list-nested-iterations-helper.js';
|
|
17
|
-
</script>
|
|
18
|
-
</head>
|
|
19
|
-
<body unresolved>
|
|
20
|
-
|
|
21
|
-
<d2l-demo-page page-title="d2l-list (nav)">
|
|
22
|
-
|
|
23
|
-
<h2>Side nav list (simple)</h2>
|
|
24
|
-
|
|
25
|
-
<d2l-demo-snippet>
|
|
26
|
-
<template>
|
|
27
|
-
<d2l-list grid style="width: 334px;">
|
|
28
|
-
<d2l-list-item-nav key="L1-1" label="Welcome!" color="#006fbf" expandable expanded action-href="https://d2l.com" prevent-navigation>
|
|
29
|
-
<d2l-list-item-content>
|
|
30
|
-
<div>Welcome!</div>
|
|
31
|
-
</d2l-list-item-content>
|
|
32
|
-
<d2l-list slot="nested" grid>
|
|
33
|
-
<d2l-list-item-nav key="L2-1" label="Syallabus Confirmation" action-href="https://d2l.com" prevent-navigation>
|
|
34
|
-
<d2l-list-item-content>
|
|
35
|
-
<div><d2l-icon style="margin-right: 0.7rem;" icon="tier2:file-document"></d2l-icon>Syallabus Confirmation</div>
|
|
36
|
-
<div slot="secondary"><d2l-tooltip-help text="Due: May 2, 2023 at 2 pm" style="padding: 5px;">Start: May 1, 2023 at 12:01 AM</d2l-tooltip-help></div>
|
|
37
|
-
</d2l-list-item-content>
|
|
38
|
-
</d2l-list-item-nav>
|
|
39
|
-
</d2l-list>
|
|
40
|
-
</d2l-list-item-nav>
|
|
41
|
-
<d2l-list-item-nav key="L2-2" label="Unit 1: Poetry" color="#29a6ff" expandable expanded action-href="https://d2l.com" prevent-navigation>
|
|
42
|
-
<d2l-list-item-content>
|
|
43
|
-
<div>Unit 1: Fiction</div>
|
|
44
|
-
<div slot="secondary"><d2l-tooltip-help text="Due: May 2, 2023 at 5 pm" style="padding: 5px;">Starts: May 1, 2023 at 12:01 AM</d2l-tooltip-help></div>
|
|
45
|
-
</d2l-list-item-content>
|
|
46
|
-
<d2l-list slot="nested" grid>
|
|
47
|
-
<d2l-list-item-nav key="L3-2" label="Fiction" action-href="https://d2l.com" prevent-navigation>
|
|
48
|
-
<d2l-list-item-content>
|
|
49
|
-
<div><d2l-icon style="margin-right: 0.7rem;" icon="tier2:file-document"></d2l-icon>Fiction</div>
|
|
50
|
-
</d2l-list-item-content>
|
|
51
|
-
</d2l-list-item-nav>
|
|
52
|
-
<d2l-list-item-nav key="L3-2" label="Ten rules for writing fiction" action-href="https://d2l.com" prevent-navigation>
|
|
53
|
-
<d2l-list-item-content>
|
|
54
|
-
<div><d2l-icon style="margin-right: 0.7rem;" icon="tier2:file-document"></d2l-icon>Ten rules for writing fiction</div>
|
|
55
|
-
</d2l-list-item-content>
|
|
56
|
-
</d2l-list-item-nav>
|
|
57
|
-
</d2l-list>
|
|
58
|
-
</d2l-list-item-nav>
|
|
59
|
-
</d2l-list>
|
|
60
|
-
<script>
|
|
61
|
-
(demo => {
|
|
62
|
-
let currentItem = document.querySelector('d2l-list-item-nav[current]');
|
|
63
|
-
demo.addEventListener('d2l-list-item-link-click', (e) => {
|
|
64
|
-
console.log('d2l-list-item-nav: click event');
|
|
65
|
-
|
|
66
|
-
if (!e.target.expandable) {
|
|
67
|
-
currentItem = e.target;
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
if (currentItem !== e.target) {
|
|
72
|
-
e.target.expanded = true;
|
|
73
|
-
currentItem = e.target;
|
|
74
|
-
} else {
|
|
75
|
-
e.target.expanded = !e.target.expanded;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
})(document.currentScript.parentNode);
|
|
79
|
-
</script>
|
|
80
|
-
</template>
|
|
81
|
-
</d2l-demo-snippet>
|
|
82
|
-
|
|
83
|
-
<h2>Side nav list (draggable)</h2>
|
|
84
|
-
|
|
85
|
-
<d2l-demo-snippet>
|
|
86
|
-
<template>
|
|
87
|
-
<d2l-demo-list-nav></d2l-demo-list-nav>
|
|
88
|
-
</template>
|
|
89
|
-
</d2l-demo-snippet>
|
|
90
|
-
|
|
91
|
-
<h2>Side nav list (draggable, add-button)</h2>
|
|
92
|
-
|
|
93
|
-
<d2l-demo-snippet>
|
|
94
|
-
<template>
|
|
95
|
-
<d2l-demo-list-nav add-button></d2l-demo-list-nav>
|
|
96
|
-
</template>
|
|
97
|
-
</d2l-demo-snippet>
|
|
98
|
-
|
|
99
|
-
<h2>Side nav list (draggable, indentation)</h2>
|
|
100
|
-
|
|
101
|
-
<d2l-demo-snippet>
|
|
102
|
-
<template>
|
|
103
|
-
<d2l-demo-list-nav indentation></d2l-demo-list-nav>
|
|
104
|
-
</template>
|
|
105
|
-
</d2l-demo-snippet>
|
|
106
|
-
|
|
107
|
-
</d2l-demo-page>
|
|
108
|
-
|
|
109
|
-
</body>
|
|
110
|
-
</html>
|
|
@@ -1,270 +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-subtle.js';
|
|
9
|
-
import '../../button/button-icon.js';
|
|
10
|
-
import '../../demo/demo-page.js';
|
|
11
|
-
import '../../dropdown/dropdown-menu.js';
|
|
12
|
-
import '../../dropdown/dropdown-more.js';
|
|
13
|
-
import '../../icons/icon.js';
|
|
14
|
-
import '../list-item-button.js';
|
|
15
|
-
import '../list-item-content.js';
|
|
16
|
-
import './list-item-custom.js';
|
|
17
|
-
import '../list-item.js';
|
|
18
|
-
import '../list-controls.js';
|
|
19
|
-
import '../list.js';
|
|
20
|
-
import '../../menu/menu.js';
|
|
21
|
-
import '../../menu/menu-item.js';
|
|
22
|
-
import '../../paging/pager-load-more.js';
|
|
23
|
-
import '../../selection/selection-action.js';
|
|
24
|
-
import '../../switch/switch.js';
|
|
25
|
-
|
|
26
|
-
import './demo-list-nested-iterations-helper.js';
|
|
27
|
-
</script>
|
|
28
|
-
</head>
|
|
29
|
-
<body unresolved>
|
|
30
|
-
|
|
31
|
-
<d2l-demo-page page-title="d2l-list (nested)">
|
|
32
|
-
|
|
33
|
-
<d2l-demo-snippet>
|
|
34
|
-
<template>
|
|
35
|
-
<d2l-list grid>
|
|
36
|
-
<d2l-list-item key="L1-1" label="Label for L1-1">
|
|
37
|
-
<d2l-list-item-content>
|
|
38
|
-
<div>Earth Sciences (L1)</div>
|
|
39
|
-
<div slot="supporting-info">Earth science or geoscience includes all fields of natural science related to planet Earth. This is a branch of science dealing with the physical and chemical constitution of Earth and its atmosphere. Earth science can be considered to be a branch of planetary science, but with a much older history.</div>
|
|
40
|
-
</d2l-list-item-content>
|
|
41
|
-
<d2l-list slot="nested" grid separators="all">
|
|
42
|
-
<d2l-list-item key="L2-1" label="Label for L2-1">
|
|
43
|
-
<d2l-list-item-content>
|
|
44
|
-
<div>Introductory Earth Sciences (L2)</div>
|
|
45
|
-
<div slot="supporting-info">This course explores the geological processes of the Earth's interior and surface. These include volcanism, earthquakes, mountain building, glaciation and weathering. Students will gain an appreciation of how these processes have controlled the evolution of our planet and the role of geology in meeting society's current and future demand for sustainable energy and mineral resources.</div>
|
|
46
|
-
</d2l-list-item-content>
|
|
47
|
-
<d2l-list slot="nested" grid separators="all">
|
|
48
|
-
<d2l-list-item key="L3-1" label="Label for L3-1">
|
|
49
|
-
<d2l-list-item-content>
|
|
50
|
-
<div>Glaciation (L3)</div>
|
|
51
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
52
|
-
</d2l-list-item-content>
|
|
53
|
-
<d2l-list slot="nested" grid separators="all">
|
|
54
|
-
<d2l-list-item key="L4-1" label="Label for L4-1">
|
|
55
|
-
<d2l-list-item-content>
|
|
56
|
-
<div>Ice Sheets (L4)</div>
|
|
57
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
58
|
-
</d2l-list-item-content>
|
|
59
|
-
</d2l-list-item>
|
|
60
|
-
<d2l-list-item key="L4-2" label="Label for L4-2">
|
|
61
|
-
<d2l-list-item-content>
|
|
62
|
-
<div>Alpine Glaciers (L4)</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 key="L3-2" label="Label for L3-2">
|
|
69
|
-
<d2l-list-item-content>
|
|
70
|
-
<div>Weathering (L3)</div>
|
|
71
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
72
|
-
</d2l-list-item-content>
|
|
73
|
-
</d2l-list-item>
|
|
74
|
-
<d2l-list-item key="L3-3" label="Label for L3-3">
|
|
75
|
-
<d2l-list-item-content>
|
|
76
|
-
<div>Volcanism (L3)</div>
|
|
77
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
78
|
-
</d2l-list-item-content>
|
|
79
|
-
</d2l-list-item>
|
|
80
|
-
</d2l-list>
|
|
81
|
-
</d2l-list-item>
|
|
82
|
-
<d2l-list-item key="L2-2" label="Label for L2-2">
|
|
83
|
-
<d2l-list-item-content>
|
|
84
|
-
<div>Flow and Transport Through Fractured Rocks (L2)</div>
|
|
85
|
-
<div slot="supporting-info">Fractures are ubiquitous in geologic media and important in disciplines such as physical and contaminant hydrogeology, geotechnical engineering, civil and environmental engineering, petroleum engineering among other areas. Despite the importance of fractures, its characterization and predictions of groundwater flow and contaminant transport are fraught with significant difficulties. Students are taught to deal with fractures in hydrogeology, to conceptualize them, and to build reliable models for predicting groundwater flow and contaminant transport.</div>
|
|
86
|
-
</d2l-list-item-content>
|
|
87
|
-
</d2l-list-item>
|
|
88
|
-
<d2l-list-item key="L2-3" label="Label for L2-3">
|
|
89
|
-
<d2l-list-item-content>
|
|
90
|
-
<div>Applied Wetland Science (L2)</div>
|
|
91
|
-
<div slot="supporting-info">Advanced concepts on wetland ecosystems in the context of regional and global earth systems processes such as carbon and nitrogen cycling and climate change, applications of wetland paleoecology, use of isotopes and other geochemical tools in wetland science, and wetland engineering in landscape rehabilitation and ecotechnology. Current issues in Canada and abroad will be examined.</div>
|
|
92
|
-
</d2l-list-item-content>
|
|
93
|
-
</d2l-list-item>
|
|
94
|
-
</d2l-list>
|
|
95
|
-
<div slot="actions">
|
|
96
|
-
<d2l-button-icon text="My Button" icon="tier1:preview"></d2l-button-icon>
|
|
97
|
-
<d2l-dropdown-more text="Open!">
|
|
98
|
-
<d2l-dropdown-menu>
|
|
99
|
-
<d2l-menu label="Astronomy">
|
|
100
|
-
<d2l-menu-item text="Introduction"></d2l-menu-item>
|
|
101
|
-
<d2l-menu-item text="Searching for the Heavens "></d2l-menu-item>
|
|
102
|
-
</d2l-menu>
|
|
103
|
-
</d2l-dropdown-menu>
|
|
104
|
-
</d2l-dropdown-more>
|
|
105
|
-
</div>
|
|
106
|
-
</d2l-list-item>
|
|
107
|
-
<d2l-list-item key="L1-2" label="Label for L1-2">
|
|
108
|
-
<div>Biology (L1)</div>
|
|
109
|
-
</d2l-list-item>
|
|
110
|
-
<d2l-list-item key="L1-3" label="Label for L1-3">
|
|
111
|
-
<div>Computer Science (L1)</div>
|
|
112
|
-
</d2l-list-item>
|
|
113
|
-
<d2l-pager-load-more slot="pager" has-more page-size="5">
|
|
114
|
-
</d2l-pager-load-more>
|
|
115
|
-
</d2l-list>
|
|
116
|
-
</template>
|
|
117
|
-
</d2l-demo-snippet>
|
|
118
|
-
|
|
119
|
-
<h2>Nested - Selectable</h2>
|
|
120
|
-
|
|
121
|
-
<d2l-demo-snippet>
|
|
122
|
-
<template>
|
|
123
|
-
<d2l-list grid>
|
|
124
|
-
<d2l-list-controls slot="controls">
|
|
125
|
-
<d2l-selection-action icon="tier1:bookmark-hollow" text="Bookmark" requires-selection></d2l-selection-action>
|
|
126
|
-
<d2l-selection-action icon="tier1:gear" text="Settings"></d2l-selection-action>
|
|
127
|
-
</d2l-list-controls>
|
|
128
|
-
<d2l-list-item selectable key="L1-1" label="Label for L1-1">
|
|
129
|
-
<d2l-list-item-content>
|
|
130
|
-
<div>Earth Sciences (L1)</div>
|
|
131
|
-
<div slot="supporting-info">Earth science or geoscience includes all fields of natural science related to planet Earth. This is a branch of science dealing with the physical and chemical constitution of Earth and its atmosphere. Earth science can be considered to be a branch of planetary science, but with a much older history.</div>
|
|
132
|
-
</d2l-list-item-content>
|
|
133
|
-
<d2l-list add-button slot="nested" grid separators="all">
|
|
134
|
-
<d2l-list-item selectable key="L2-1" label="Label for L2-1">
|
|
135
|
-
<d2l-list-item-content>
|
|
136
|
-
<div>Introductory Earth Sciences (L2)</div>
|
|
137
|
-
<div slot="supporting-info">This course explores the geological processes of the Earth's interior and surface. These include volcanism, earthquakes, mountain building, glaciation and weathering. Students will gain an appreciation of how these processes have controlled the evolution of our planet and the role of geology in meeting society's current and future demand for sustainable energy and mineral resources.</div>
|
|
138
|
-
</d2l-list-item-content>
|
|
139
|
-
<d2l-list slot="nested" grid separators="all">
|
|
140
|
-
<d2l-list-item selectable key="L3-1" label="Label for L3-1">
|
|
141
|
-
<d2l-list-item-content>
|
|
142
|
-
<div>Glaciation (L3)</div>
|
|
143
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
144
|
-
</d2l-list-item-content>
|
|
145
|
-
<d2l-list slot="nested" grid separators="all">
|
|
146
|
-
<d2l-list-item selectable key="L4-1" label="Label for L4-1">
|
|
147
|
-
<d2l-list-item-content>
|
|
148
|
-
<div>Ice Sheets (L4)</div>
|
|
149
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
150
|
-
</d2l-list-item-content>
|
|
151
|
-
</d2l-list-item>
|
|
152
|
-
<d2l-list-item selectable key="L4-2" label="Label for L4-2">
|
|
153
|
-
<d2l-list-item-content>
|
|
154
|
-
<div>Alpine Glaciers (L4)</div>
|
|
155
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
156
|
-
</d2l-list-item-content>
|
|
157
|
-
</d2l-list-item>
|
|
158
|
-
</d2l-list>
|
|
159
|
-
</d2l-list-item>
|
|
160
|
-
<d2l-list-item selectable key="L3-2" label="Label for L3-2">
|
|
161
|
-
<d2l-list-item-content>
|
|
162
|
-
<div>Weathering (L3)</div>
|
|
163
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
164
|
-
</d2l-list-item-content>
|
|
165
|
-
</d2l-list-item>
|
|
166
|
-
<d2l-list-item selectable key="L3-3" label="Label for L3-3">
|
|
167
|
-
<d2l-list-item-content>
|
|
168
|
-
<div>Volcanism (L3)</div>
|
|
169
|
-
<div slot="supporting-info">Supporting Info</div>
|
|
170
|
-
</d2l-list-item-content>
|
|
171
|
-
</d2l-list-item>
|
|
172
|
-
</d2l-list>
|
|
173
|
-
</d2l-list-item>
|
|
174
|
-
<d2l-list-item selectable key="L2-2" label="Label for L2-2">
|
|
175
|
-
<d2l-list-item-content>
|
|
176
|
-
<div>Flow and Transport Through Fractured Rocks (L2)</div>
|
|
177
|
-
<div slot="supporting-info">Fractures are ubiquitous in geologic media and important in disciplines such as physical and contaminant hydrogeology, geotechnical engineering, civil and environmental engineering, petroleum engineering among other areas. Despite the importance of fractures, its characterization and predictions of groundwater flow and contaminant transport are fraught with significant difficulties. Students are taught to deal with fractures in hydrogeology, to conceptualize them, and to build reliable models for predicting groundwater flow and contaminant transport.</div>
|
|
178
|
-
</d2l-list-item-content>
|
|
179
|
-
</d2l-list-item>
|
|
180
|
-
<d2l-list-item selectable key="L2-3" label="Label for L2-3">
|
|
181
|
-
<d2l-list-item-content>
|
|
182
|
-
<div>Applied Wetland Science (L2)</div>
|
|
183
|
-
<div slot="supporting-info">Advanced concepts on wetland ecosystems in the context of regional and global earth systems processes such as carbon and nitrogen cycling and climate change, applications of wetland paleoecology, use of isotopes and other geochemical tools in wetland science, and wetland engineering in landscape rehabilitation and ecotechnology. Current issues in Canada and abroad will be examined.</div>
|
|
184
|
-
</d2l-list-item-content>
|
|
185
|
-
</d2l-list-item>
|
|
186
|
-
</d2l-list>
|
|
187
|
-
<div slot="actions">
|
|
188
|
-
<d2l-button-icon text="My Button" icon="tier1:preview"></d2l-button-icon>
|
|
189
|
-
<d2l-dropdown-more text="Open!">
|
|
190
|
-
<d2l-dropdown-menu>
|
|
191
|
-
<d2l-menu label="Astronomy">
|
|
192
|
-
<d2l-menu-item text="Introduction"></d2l-menu-item>
|
|
193
|
-
<d2l-menu-item text="Searching for the Heavens "></d2l-menu-item>
|
|
194
|
-
</d2l-menu>
|
|
195
|
-
</d2l-dropdown-menu>
|
|
196
|
-
</d2l-dropdown-more>
|
|
197
|
-
</div>
|
|
198
|
-
</d2l-list-item>
|
|
199
|
-
<d2l-list-item selectable key="L1-2" label="Label for L1-2">
|
|
200
|
-
<div>Biology (L1)</div>
|
|
201
|
-
</d2l-list-item>
|
|
202
|
-
<d2l-list-item selectable key="L1-3" label="Label for L1-3">
|
|
203
|
-
<div>Computer Science (L1)</div>
|
|
204
|
-
</d2l-list-item>
|
|
205
|
-
<d2l-pager-load-more slot="pager" has-more page-size="5">
|
|
206
|
-
</d2l-pager-load-more>
|
|
207
|
-
</d2l-list>
|
|
208
|
-
</template>
|
|
209
|
-
</d2l-demo-snippet>
|
|
210
|
-
|
|
211
|
-
<h2>Nested Custom Items</h2>
|
|
212
|
-
|
|
213
|
-
<d2l-demo-snippet>
|
|
214
|
-
<template>
|
|
215
|
-
<d2l-list grid>
|
|
216
|
-
<d2l-list-controls slot="controls">
|
|
217
|
-
<d2l-selection-action icon="tier1:bookmark-hollow" text="Bookmark" requires-selection></d2l-selection-action>
|
|
218
|
-
<d2l-selection-action icon="tier1:gear" text="Settings"></d2l-selection-action>
|
|
219
|
-
</d2l-list-controls>
|
|
220
|
-
<d2l-demo-list-item-custom key="L1-1"></d2l-demo-list-item-custom>
|
|
221
|
-
<d2l-demo-list-item-custom key="L1-2"></d2l-demo-list-item-custom>
|
|
222
|
-
<d2l-demo-list-item-custom key="L1-3"></d2l-demo-list-item-custom>
|
|
223
|
-
</d2l-list>
|
|
224
|
-
</template>
|
|
225
|
-
</d2l-demo-snippet>
|
|
226
|
-
|
|
227
|
-
<h2>All Iterations</h2>
|
|
228
|
-
|
|
229
|
-
<d2l-demo-snippet full-width>
|
|
230
|
-
<template>
|
|
231
|
-
<d2l-switch id="draggable-switch" text="Draggable"></d2l-switch>
|
|
232
|
-
<d2l-demo-list-nested-iterations-helper></d2l-demo-list-nested-iterations-helper>
|
|
233
|
-
</template>
|
|
234
|
-
</d2l-demo-snippet>
|
|
235
|
-
|
|
236
|
-
</d2l-demo-page>
|
|
237
|
-
|
|
238
|
-
<script>
|
|
239
|
-
setTimeout(() => {
|
|
240
|
-
document.querySelectorAll('d2l-list').forEach(list => {
|
|
241
|
-
list.addEventListener('d2l-list-selection-changes', (e) => {
|
|
242
|
-
console.log('d2l-list-selection-changes', e.detail);
|
|
243
|
-
});
|
|
244
|
-
});
|
|
245
|
-
|
|
246
|
-
document.querySelectorAll('d2l-pager-load-more').forEach(pager => {
|
|
247
|
-
pager.addEventListener('d2l-pager-load-more', (e) => {
|
|
248
|
-
console.log('Load more requested!');
|
|
249
|
-
setTimeout(() => e.detail.complete(), 2000);
|
|
250
|
-
});
|
|
251
|
-
});
|
|
252
|
-
|
|
253
|
-
const setupSwitch = () => {
|
|
254
|
-
const draggableSwitch = document.querySelector('#draggable-switch');
|
|
255
|
-
if (!draggableSwitch) {
|
|
256
|
-
setTimeout(setupSwitch, 1000);
|
|
257
|
-
} else {
|
|
258
|
-
draggableSwitch.addEventListener('change', (e) => {
|
|
259
|
-
const listIterations = document.querySelector('d2l-demo-list-nested-iterations-helper');
|
|
260
|
-
listIterations.isDraggable = e.target.on;
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
};
|
|
264
|
-
|
|
265
|
-
setupSwitch();
|
|
266
|
-
}, 1000);
|
|
267
|
-
</script>
|
|
268
|
-
|
|
269
|
-
</body>
|
|
270
|
-
</html>
|