@brightspace-ui/core 3.227.4 → 3.227.6

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.
Files changed (180) hide show
  1. package/components/button/button-icon.js +10 -10
  2. package/components/button/button.js +8 -8
  3. package/components/demo/test/demo-page-settings.test.js +25 -0
  4. package/components/demo/test/demo-page.test.js +17 -0
  5. package/components/filter/filter-dimension-set-date-time-range-value.js +2 -1
  6. package/components/filter/filter-dimension-set.js +1 -1
  7. package/components/filter/filter.js +2 -1
  8. package/package.json +1 -1
  9. package/components/alert/demo/alert-toast.html +0 -106
  10. package/components/alert/demo/alert.html +0 -82
  11. package/components/backdrop/demo/backdrop-loading.html +0 -166
  12. package/components/backdrop/demo/backdrop.html +0 -57
  13. package/components/breadcrumbs/demo/breadcrumbs.html +0 -53
  14. package/components/button/demo/button-add.html +0 -55
  15. package/components/button/demo/button-copy.html +0 -122
  16. package/components/button/demo/button-icon.html +0 -174
  17. package/components/button/demo/button-move.html +0 -38
  18. package/components/button/demo/button-split.html +0 -76
  19. package/components/button/demo/button-subtle.html +0 -132
  20. package/components/button/demo/button-toggle.html +0 -80
  21. package/components/button/demo/button.html +0 -67
  22. package/components/button/demo/floating-buttons-in-frame.html +0 -44
  23. package/components/button/demo/floating-buttons-in-tabs.html +0 -244
  24. package/components/button/demo/floating-buttons-page.html +0 -100
  25. package/components/button/demo/floating-buttons.html +0 -101
  26. package/components/calendar/demo/calendar.html +0 -76
  27. package/components/card/demo/card.html +0 -304
  28. package/components/collapsible-panel/demo/collapsible-panel.html +0 -218
  29. package/components/colors/demo/color-swatch.js +0 -240
  30. package/components/colors/demo/colors.html +0 -139
  31. package/components/count-badge/demo/count-badge-icon.html +0 -48
  32. package/components/count-badge/demo/count-badge.html +0 -73
  33. package/components/demo/demo/demo-snippet.html +0 -71
  34. package/components/description-list/demo/description-list-test.js +0 -142
  35. package/components/description-list/demo/description-list.html +0 -48
  36. package/components/dialog/demo/dialog-async-content-until.js +0 -89
  37. package/components/dialog/demo/dialog-async-content.js +0 -72
  38. package/components/dialog/demo/dialog-confirm.html +0 -102
  39. package/components/dialog/demo/dialog-container.js +0 -40
  40. package/components/dialog/demo/dialog-fullscreen.html +0 -273
  41. package/components/dialog/demo/dialog-nested.html +0 -94
  42. package/components/dialog/demo/dialog.html +0 -398
  43. package/components/dropdown/demo/dropdown-button.html +0 -102
  44. package/components/dropdown/demo/dropdown-context-menu.html +0 -129
  45. package/components/dropdown/demo/dropdown-flicker-inner.html +0 -70
  46. package/components/dropdown/demo/dropdown-flicker.html +0 -142
  47. package/components/dropdown/demo/dropdown-menu-demo-view.js +0 -37
  48. package/components/dropdown/demo/dropdown-menu.html +0 -227
  49. package/components/dropdown/demo/dropdown-more.html +0 -160
  50. package/components/dropdown/demo/dropdown-positioning.html +0 -127
  51. package/components/dropdown/demo/dropdown-tabs.html +0 -87
  52. package/components/dropdown/demo/dropdown.html +0 -217
  53. package/components/empty-state/demo/empty-state.html +0 -94
  54. package/components/expand-collapse/demo/expand-collapse-content.html +0 -58
  55. package/components/filter/demo/filter-load-more-demo.js +0 -182
  56. package/components/filter/demo/filter-overflow-group.html +0 -246
  57. package/components/filter/demo/filter-search-demo.js +0 -135
  58. package/components/filter/demo/filter-tags.html +0 -115
  59. package/components/filter/demo/filter.html +0 -230
  60. package/components/focus-trap/demo/focus-trap.html +0 -75
  61. package/components/form/demo/form-demo.js +0 -105
  62. package/components/form/demo/form-dialog-demo.js +0 -94
  63. package/components/form/demo/form-panel-demo.js +0 -89
  64. package/components/form/demo/form.html +0 -37
  65. package/components/hierarchical-view/demo/hierarchical-view.html +0 -221
  66. package/components/html-block/demo/html-block-code.html +0 -55
  67. package/components/html-block/demo/html-block.html +0 -696
  68. package/components/icons/demo/icon-color-override.js +0 -23
  69. package/components/icons/demo/icon-custom.html +0 -112
  70. package/components/icons/demo/icon-size-override.js +0 -24
  71. package/components/icons/demo/icon.html +0 -52
  72. package/components/inputs/demo/input-checkbox.html +0 -118
  73. package/components/inputs/demo/input-color-palette.js +0 -67
  74. package/components/inputs/demo/input-color.html +0 -110
  75. package/components/inputs/demo/input-date-range.html +0 -114
  76. package/components/inputs/demo/input-date-time-range.html +0 -128
  77. package/components/inputs/demo/input-date-time.html +0 -100
  78. package/components/inputs/demo/input-date.html +0 -81
  79. package/components/inputs/demo/input-group.html +0 -56
  80. package/components/inputs/demo/input-number.html +0 -136
  81. package/components/inputs/demo/input-percent.html +0 -99
  82. package/components/inputs/demo/input-radio-label-test.js +0 -45
  83. package/components/inputs/demo/input-radio-solo-test.js +0 -47
  84. package/components/inputs/demo/input-radio.html +0 -119
  85. package/components/inputs/demo/input-search.html +0 -75
  86. package/components/inputs/demo/input-select-test.js +0 -60
  87. package/components/inputs/demo/input-select.html +0 -45
  88. package/components/inputs/demo/input-text.html +0 -163
  89. package/components/inputs/demo/input-textarea.html +0 -124
  90. package/components/inputs/demo/input-time-range.html +0 -121
  91. package/components/inputs/demo/input-time.html +0 -95
  92. package/components/link/demo/link.html +0 -111
  93. package/components/list/demo/demo-list-nav.js +0 -170
  94. package/components/list/demo/demo-list-nested-iterations-helper.js +0 -168
  95. package/components/list/demo/demo-list-nested-lazy-load.js +0 -133
  96. package/components/list/demo/demo-list-nested.js +0 -291
  97. package/components/list/demo/demo-list.js +0 -241
  98. package/components/list/demo/list-color.html +0 -423
  99. package/components/list/demo/list-demo-scenarios.js +0 -380
  100. package/components/list/demo/list-drag-and-drop-position.js +0 -102
  101. package/components/list/demo/list-drag-and-drop.html +0 -82
  102. package/components/list/demo/list-expand-collapse.html +0 -136
  103. package/components/list/demo/list-item-actions.html +0 -371
  104. package/components/list/demo/list-item-custom.js +0 -204
  105. package/components/list/demo/list-item-layouts.html +0 -331
  106. package/components/list/demo/list-item-scroll.html +0 -122
  107. package/components/list/demo/list-layout.html +0 -575
  108. package/components/list/demo/list-nav.html +0 -110
  109. package/components/list/demo/list-nested.html +0 -270
  110. package/components/list/demo/list-selection.html +0 -301
  111. package/components/list/demo/list.html +0 -319
  112. package/components/loading-spinner/demo/loading-spinner-override.js +0 -34
  113. package/components/loading-spinner/demo/loading-spinner.html +0 -63
  114. package/components/menu/demo/checkbox-menu.html +0 -52
  115. package/components/menu/demo/custom-menu-item.js +0 -37
  116. package/components/menu/demo/custom-view.js +0 -63
  117. package/components/menu/demo/menu.html +0 -211
  118. package/components/menu/demo/radio-menu.html +0 -52
  119. package/components/meter/demo/meter.html +0 -115
  120. package/components/more-less/demo/more-less-test.js +0 -67
  121. package/components/more-less/demo/more-less.html +0 -71
  122. package/components/object-property-list/demo/object-property-list.html +0 -99
  123. package/components/offscreen/demo/offscreen-demo.js +0 -16
  124. package/components/offscreen/demo/offscreen.html +0 -44
  125. package/components/overflow-group/demo/demo-overflow-group.js +0 -29
  126. package/components/overflow-group/demo/overflow-group.html +0 -110
  127. package/components/paging/demo/pager-load-more.html +0 -120
  128. package/components/popover/demo/popover.html +0 -309
  129. package/components/progress/demo/progress.html +0 -104
  130. package/components/scroll-wrapper/demo/scroll-wrapper-test.js +0 -108
  131. package/components/scroll-wrapper/demo/scroll-wrapper.html +0 -52
  132. package/components/selection/demo/demo-selection.js +0 -35
  133. package/components/selection/demo/selection.html +0 -198
  134. package/components/skeleton/demo/skeleton-group-nested-test.js +0 -71
  135. package/components/skeleton/demo/skeleton-group-test-wrapper.js +0 -18
  136. package/components/skeleton/demo/skeleton-group-test.js +0 -91
  137. package/components/skeleton/demo/skeleton-mixin.html +0 -78
  138. package/components/skeleton/demo/skeleton-test-box.js +0 -34
  139. package/components/skeleton/demo/skeleton-test-container.js +0 -45
  140. package/components/skeleton/demo/skeleton-test-heading.js +0 -44
  141. package/components/skeleton/demo/skeleton-test-link.js +0 -47
  142. package/components/skeleton/demo/skeleton-test-paragraph.js +0 -54
  143. package/components/skeleton/demo/skeleton-test-stack.js +0 -38
  144. package/components/skeleton/demo/skeleton-test-width.js +0 -20
  145. package/components/sorting/demo/sort.html +0 -37
  146. package/components/status-indicator/demo/status-indicator.html +0 -99
  147. package/components/switch/demo/switch.html +0 -95
  148. package/components/table/demo/table-test.js +0 -271
  149. package/components/table/demo/table.html +0 -107
  150. package/components/tabs/demo/tab-custom.js +0 -39
  151. package/components/tabs/demo/tabs-array.js +0 -43
  152. package/components/tabs/demo/tabs.html +0 -558
  153. package/components/tag-list/demo/tag-list.html +0 -117
  154. package/components/tooltip/demo/tooltip.html +0 -275
  155. package/components/typography/demo/typography.html +0 -93
  156. package/components/view-switcher/demo/demo-table-view.js +0 -41
  157. package/components/view-switcher/demo/view-switcher.html +0 -71
  158. package/directives/animate/demo/animate-test.js +0 -98
  159. package/directives/animate/demo/index.html +0 -23
  160. package/helpers/demo/announce-test.js +0 -37
  161. package/helpers/demo/announce.html +0 -19
  162. package/helpers/demo/dismissible-test.js +0 -66
  163. package/helpers/demo/dismissible.html +0 -38
  164. package/helpers/demo/gestures.html +0 -58
  165. package/helpers/demo/prism.html +0 -694
  166. package/helpers/demo/template-tags.html +0 -118
  167. package/mixins/arrow-keys/demo/arrow-keys-mixin.html +0 -29
  168. package/mixins/arrow-keys/demo/arrow-keys-test.js +0 -38
  169. package/mixins/async-container/demo/async-container.html +0 -109
  170. package/mixins/async-container/demo/async-container.js +0 -27
  171. package/mixins/async-container/demo/async-item.js +0 -80
  172. package/mixins/labelled/demo/labelled-mixin.html +0 -90
  173. package/mixins/localize/demo/localize-mixin-greeting.js +0 -39
  174. package/mixins/localize/demo/localize-mixin-mission.js +0 -25
  175. package/mixins/localize/demo/localize-mixin.html +0 -28
  176. package/templates/primary-secondary/demo/form.html +0 -55
  177. package/templates/primary-secondary/demo/index.html +0 -27
  178. package/templates/primary-secondary/demo/integration.html +0 -457
  179. package/templates/primary-secondary/demo/overflow-hidden.html +0 -22
  180. package/templates/primary-secondary/demo/width-type-normal.html +0 -26
@@ -1,331 +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 '../../demo/demo-page.js';
10
- import '../list-item-button.js';
11
- import '../list-item-content.js';
12
- import '../list-item.js';
13
- import '../list.js';
14
- import '../../tooltip/tooltip-help.js';
15
- </script>
16
- <style>
17
- img {
18
- height: 500px;
19
- object-fit: cover;
20
- }
21
- .overflow-type {
22
- font-weight: 700;
23
- }
24
- .clamp-single {
25
- overflow: hidden;
26
- text-overflow: ellipsis;
27
- white-space: nowrap;
28
- }
29
- .clamp-multi {
30
- -webkit-box-orient: vertical;
31
- display: -webkit-box;
32
- -webkit-line-clamp: 2;
33
- overflow: hidden;
34
- overflow-wrap: anywhere;
35
- }
36
- </style>
37
- </head>
38
- <body unresolved>
39
-
40
- <d2l-demo-page page-title="d2l-list-item (layouts)">
41
-
42
- <h2>Primary, Secondary, and Supporting Info</h2>
43
-
44
- <d2l-demo-snippet>
45
- <template>
46
- <d2l-list>
47
- <d2l-list-item>
48
- <d2l-list-item-content>
49
- <div>Primary text</div>
50
- <div slot="secondary">Secondary text</div>
51
- <div slot="supporting-info">Supporting info A1.1</div>
52
- </d2l-list-item-content>
53
- </d2l-list-item>
54
- <d2l-list-item>
55
- <d2l-list-item-content>
56
- <div>Primary text</div>
57
- <div slot="secondary">Secondary text</div>
58
- <div slot="supporting-info">Supporting info A1.2</div>
59
- </d2l-list-item-content>
60
- </d2l-list-item>
61
- <d2l-list-item>
62
- <d2l-list-item-content>
63
- <div>Primary text</div>
64
- <div slot="secondary">Secondary text</div>
65
- <div slot="supporting-info">Supporting info A1.3</div>
66
- </d2l-list-item-content>
67
- </d2l-list-item>
68
- </d2l-list>
69
- </template>
70
- </d2l-demo-snippet>
71
-
72
- <h2>Overflow Behaviour</h2>
73
-
74
- <d2l-demo-snippet>
75
- <template>
76
- <d2l-list>
77
- <d2l-list-item>
78
- <d2l-list-item-content>
79
- <div><span class="overflow-type">Overflow: wrap</span>. Primary text. Lookout take a caulk rope's end Jack Ketch Admiral of the Black yard jury mast barque no prey, no pay port. Carouser salmagundi rigging handsomely draft cog mizzen haul wind no prey, no pay lugsail. <d2l-tooltip-help text="Help tooltip." inherit-font-style>Bowsprit measured fer yer chains Cat o'nine tails ballast topsail hulk Plate Fleet chantey warp hail-shot. Deadlights league yard chase guns Gold Road pink case shot fathom mutiny hempen halter.</d2l-tooltip-help></div>
80
- <div slot="secondary"><span class="overflow-type">Overflow: wrap</span>. Secondary text. Lookout take a caulk rope's end Jack Ketch Admiral of the Black yard jury mast barque no prey, no pay port. Carouser salmagundi rigging handsomely draft cog mizzen haul wind no prey, no pay lugsail. <d2l-tooltip-help text="Help tooltip." inherit-font-style>Bowsprit measured fer yer chains Cat o'nine tails ballast topsail hulk Plate Fleet chantey warp hail-shot. Deadlights league yard chase guns Gold Road pink case shot fathom mutiny hempen halter.</d2l-tooltip-help></div>
81
- <div slot="supporting-info"><span class="overflow-type">Overflow: wrap</span>. Supporting info. Lookout take a caulk rope's end Jack Ketch Admiral of the Black yard jury mast barque no prey, no pay port. Carouser salmagundi rigging handsomely draft cog mizzen haul wind no prey, no pay lugsail. <d2l-tooltip-help text="Help tooltip." inherit-font-style>Bowsprit measured fer yer chains Cat o'nine tails ballast topsail hulk Plate Fleet chantey warp hail-shot. Deadlights league yard chase guns Gold Road pink case shot fathom mutiny hempen halter.</d2l-tooltip-help></div>
82
- </d2l-list-item-content>
83
- </d2l-list-item>
84
- <d2l-list-item>
85
- <d2l-list-item-content>
86
- <div class="clamp-single"><span class="overflow-type">Overflow: clamp single-line</span>. Primary text. Lookout take a caulk rope's end Jack Ketch Admiral of the Black yard jury mast barque no prey, no pay port. Carouser salmagundi rigging handsomely draft cog mizzen haul wind no prey, no pay lugsail.</div>
87
- <div slot="secondary" class="clamp-single"><span class="overflow-type">Overflow: clamp single-line</span>. Secondary text. Lookout take a caulk rope's end Jack Ketch Admiral of the Black yard jury mast barque no prey, no pay port. Carouser salmagundi rigging handsomely draft cog mizzen haul wind no prey, no pay lugsail.</div>
88
- <div slot="supporting-info" class="clamp-single"><span class="overflow-type">Overflow: clamp single-line</span>. Supporting info. Lookout take a caulk rope's end Jack Ketch Admiral of the Black yard jury mast barque no prey, no pay port. Carouser salmagundi rigging handsomely draft cog mizzen haul wind no prey, no pay lugsail.</div>
89
- </d2l-list-item-content>
90
- </d2l-list-item>
91
- <d2l-list-item>
92
- <d2l-list-item-content>
93
- <div class="clamp-multi"><span class="overflow-type">Overflow: clamp multi-line</span>. Primary text. Lookout take a caulk rope's end Jack Ketch Admiral of the Black yard jury mast barque no prey, no pay port. Carouser salmagundi rigging handsomely draft cog mizzen haul wind no prey, no pay lugsail.</div>
94
- <div slot="secondary" class="clamp-multi"><span class="overflow-type">Overflow: clamp multi-line</span>. Secondary text. Lookout take a caulk rope's end Jack Ketch Admiral of the Black yard jury mast barque no prey, no pay port. Carouser salmagundi rigging handsomely draft cog mizzen haul wind no prey, no pay lugsail.</div>
95
- <div slot="supporting-info" class="clamp-multi"><span class="overflow-type">Overflow: clamp multi-line</span>. Supporting info. Lookout take a caulk rope's end Jack Ketch Admiral of the Black yard jury mast barque no prey, no pay port. Carouser salmagundi rigging handsomely draft cog mizzen haul wind no prey, no pay lugsail.</div>
96
- </d2l-list-item-content>
97
- </d2l-list-item>
98
- <d2l-list-item>
99
- <d2l-list-item-content>
100
- <div><div class="clamp-single"><span class="overflow-type">Overflow: clamp single-line, nested</span>. Primary text. Lookout take a caulk rope's end Jack Ketch Admiral of the Black yard jury mast barque no prey, no pay port. Carouser salmagundi rigging handsomely draft cog mizzen haul wind no prey, no pay lugsail.</div></div>
101
- <div slot="secondary"><div class="clamp-single"><span class="overflow-type">Overflow: clamp single-line, nested</span>. Secondary text. Lookout take a caulk rope's end Jack Ketch Admiral of the Black yard jury mast barque no prey, no pay port. Carouser salmagundi rigging handsomely draft cog mizzen haul wind no prey, no pay lugsail.</div></div>
102
- <div slot="supporting-info"><div class="clamp-single"><span class="overflow-type">Overflow: clamp single-line, nested</span>. Supporting info. Lookout take a caulk rope's end Jack Ketch Admiral of the Black yard jury mast barque no prey, no pay port. Carouser salmagundi rigging handsomely draft cog mizzen haul wind no prey, no pay lugsail.</div></div>
103
- </d2l-list-item-content>
104
- </d2l-list-item>
105
- </d2l-list>
106
- </template>
107
- </d2l-demo-snippet>
108
-
109
- <h2>Separators: between</h2>
110
-
111
- <d2l-demo-snippet>
112
- <template>
113
- <d2l-list separators="between">
114
- <d2l-list-item>
115
- <d2l-list-item-content>
116
- <div>Identify categories of physical activities</div>
117
- <div slot="supporting-info">Specific Expectation A1.2</div>
118
- </d2l-list-item-content>
119
- </d2l-list-item>
120
- <d2l-list-item>
121
- <d2l-list-item-content>
122
- <div>Apply a decision-making process to assess risks and make safe decisions in a variety of situations</div>
123
- <div slot="supporting-info">Specific Expectation B2.1</div>
124
- </d2l-list-item-content>
125
- </d2l-list-item>
126
- <d2l-list-item>
127
- <d2l-list-item-content>
128
- <div>Retain objects of various shapes and sizes in different ways, while moving around others and equipment</div>
129
- <div slot="supporting-info">Specific Expectation B2.2</div>
130
- </d2l-list-item-content>
131
- </d2l-list-item>
132
- </d2l-list>
133
- </template>
134
- </d2l-demo-snippet>
135
-
136
- <h2>Separators: none</h2>
137
-
138
- <d2l-demo-snippet>
139
- <template>
140
- <d2l-list separators="none">
141
- <d2l-list-item>
142
- <d2l-list-item-content>
143
- <div>Identify categories of physical activities</div>
144
- <div slot="supporting-info">Specific Expectation A1.2</div>
145
- </d2l-list-item-content>
146
- </d2l-list-item>
147
- <d2l-list-item>
148
- <d2l-list-item-content>
149
- <div>Apply a decision-making process to assess risks and make safe decisions in a variety of situations</div>
150
- <div slot="supporting-info">Specific Expectation B2.1</div>
151
- </d2l-list-item-content>
152
- </d2l-list-item>
153
- <d2l-list-item>
154
- <d2l-list-item-content>
155
- <div>Retain objects of various shapes and sizes in different ways, while moving around others and equipment</div>
156
- <div slot="supporting-info">Specific Expectation B2.2</div>
157
- </d2l-list-item-content>
158
- </d2l-list-item>
159
- </d2l-list>
160
- </template>
161
- </d2l-demo-snippet>
162
-
163
- <h2>Extend Separators</h2>
164
-
165
- <d2l-demo-snippet>
166
- <template>
167
- <d2l-list extend-separators>
168
- <d2l-list-item>
169
- <d2l-list-item-content>
170
- <div>Identify categories of physical activities</div>
171
- <div slot="supporting-info">Specific Expectation A1.2</div>
172
- </d2l-list-item-content>
173
- </d2l-list-item>
174
- <d2l-list-item>
175
- <d2l-list-item-content>
176
- <div>Apply a decision-making process to assess risks and make safe decisions in a variety of situations</div>
177
- <div slot="supporting-info">Specific Expectation B2.1</div>
178
- </d2l-list-item-content>
179
- </d2l-list-item>
180
- <d2l-list-item>
181
- <d2l-list-item-content>
182
- <div>Retain objects of various shapes and sizes in different ways, while moving around others and equipment</div>
183
- <div slot="supporting-info">Specific Expectation B2.2</div>
184
- </d2l-list-item-content>
185
- </d2l-list-item>
186
- </d2l-list>
187
- </template>
188
- </d2l-demo-snippet>
189
-
190
- <h2>Secondary Actions</h2>
191
-
192
- <d2l-demo-snippet>
193
- <template>
194
- <d2l-list>
195
- <d2l-list-item>
196
- <d2l-list-item-content>
197
- <div>Introductory Earth Sciences</div>
198
- <div slot="supporting-info">This course explores the geological process of the Earth's interior and surface. These include volcanism, earthquakes, mountains...</div>
199
- </d2l-list-item-content>
200
- <div slot="actions">
201
- <d2l-button-icon text="My Button" icon="tier1:preview"></d2l-button-icon>
202
- <d2l-button-icon text="My Button" icon="tier1:more"></d2l-button-icon>
203
- </div>
204
- </d2l-list-item>
205
- <d2l-list-item>
206
- <d2l-list-item-content>
207
- <div>Engineering Materials for Energy Systems</div>
208
- <div slot="supporting-info">This course explores the geological processes of the Earth's interior and surface. These include volcanism, earthquakes, mountain...</div>
209
- </d2l-list-item-content>
210
- <div slot="actions">
211
- <d2l-button-icon text="My Button" icon="tier1:preview"></d2l-button-icon>
212
- <d2l-button-icon text="My Button" icon="tier1:more"></d2l-button-icon>
213
- </div>
214
- </d2l-list-item>
215
- <d2l-list-item>
216
- <d2l-list-item-content>
217
- <div>Geomorphology and GIS </div>
218
- <div slot="supporting-info">This course explores the geological processes of the Earth's interior and surface. These include volcanism, earthquakes, mountain...</div>
219
- </d2l-list-item-content>
220
- <div slot="actions">
221
- <d2l-button-icon text="My Button" icon="tier1:preview"></d2l-button-icon>
222
- <d2l-button-icon text="My Button" icon="tier1:more"></d2l-button-icon>
223
- </div>
224
- </d2l-list-item>
225
- </d2l-list>
226
- </template>
227
- </d2l-demo-snippet>
228
-
229
- <h2>Illustration</h2>
230
-
231
- <d2l-demo-snippet>
232
- <template>
233
- <d2l-list>
234
- <d2l-list-item>
235
- <img slot="illustration" src="https://s.brightspace.com/course-images/images/38e839b1-37fa-470c-8830-b189ce4ae134/tile-high-density-max-size.jpg"></img>
236
- <d2l-list-item-content>
237
- <div>Introductory Earth Sciences</div>
238
- <div slot="supporting-info">This course explores the geological process of the Earth's interior and surface. These include volcanism, earthquakes, mountains...</div>
239
- </d2l-list-item-content>
240
- </d2l-list-item>
241
- <d2l-list-item>
242
- <img slot="illustration" src="https://s.brightspace.com/course-images/images/e5fd575a-bc14-4a80-89e1-46f349a76178/tile-high-density-max-size.jpg"></img>
243
- <d2l-list-item-content>
244
- <div>Engineering Materials for Energy Systems</div>
245
- <div slot="supporting-info">This course explores the geological processes of the Earth's interior and surface. These include volcanism, earthquakes, mountain...</div>
246
- </d2l-list-item-content>
247
- </d2l-list-item>
248
- <d2l-list-item>
249
- <img slot="illustration" src="https://s.brightspace.com/course-images/images/63b162ab-b582-4bf9-8c1d-1dad04714121/tile-high-density-max-size.jpg"></img>
250
- <d2l-list-item-content>
251
- <div>Geomorphology and GIS</div>
252
- <div slot="supporting-info">This course explores the geological processes of the Earth's interior and surface. These include volcanism, earthquakes, mountain...</div>
253
- </d2l-list-item-content>
254
- </d2l-list-item>
255
- </d2l-list>
256
- </template>
257
- </d2l-demo-snippet>
258
-
259
- <h2>Selectable</h2>
260
-
261
- <d2l-demo-snippet>
262
- <template>
263
- <d2l-list>
264
- <d2l-list-item selectable key="1" label="Introductory Earth Sciences">
265
- <d2l-list-item-content>
266
- <div>Introductory Earth Sciences</div>
267
- <div slot="supporting-info">This course explores the geological process of the Earth's interior and surface. These include volcanism, earthquakes, mountains...</div>
268
- </d2l-list-item-content>
269
- </d2l-list-item>
270
- <d2l-list-item selectable key="2" selected label="Engineering Materials for Energy Systems">
271
- <d2l-list-item-content>
272
- <div>Engineering Materials for Energy Systems</div>
273
- <div slot="supporting-info">This course explores the geological processes of the Earth's interior and surface. These include volcanism, earthquakes, mountain...</div>
274
- </d2l-list-item-content>
275
- </d2l-list-item>
276
- <d2l-list-item selectable key="3" label="Geomorphology and GIS">
277
- <d2l-list-item-content>
278
- <div>Geomorphology and GIS</div>
279
- <div slot="supporting-info">This course explores the geological processes of the Earth's interior and surface. These include volcanism, earthquakes, mountain...</div>
280
- </d2l-list-item-content>
281
- </d2l-list-item>
282
- </d2l-list>
283
- </template>
284
- </d2l-demo-snippet>
285
-
286
- <h2>Selectable, Illustration, Secondary Actions</h2>
287
-
288
- <d2l-demo-snippet>
289
- <template>
290
- <d2l-list>
291
- <d2l-list-item selectable key="1" label="Introductory Earth Sciences">
292
- <img slot="illustration" src="https://s.brightspace.com/course-images/images/38e839b1-37fa-470c-8830-b189ce4ae134/tile-high-density-max-size.jpg"></img>
293
- <d2l-list-item-content>
294
- <div>Introductory Earth Sciences</div>
295
- <div slot="supporting-info">This course explores the geological process of the Earth's interior and surface. These include volcanism, earthquakes, mountains...</div>
296
- </d2l-list-item-content>
297
- <div slot="actions">
298
- <d2l-button-icon text="My Button" icon="tier1:preview"></d2l-button-icon>
299
- <d2l-button-icon text="My Button" icon="tier1:more"></d2l-button-icon>
300
- </div>
301
- </d2l-list-item>
302
- <d2l-list-item selectable key="2" selected label="Engineering Materials for Energy Systems">
303
- <img slot="illustration" src="https://s.brightspace.com/course-images/images/e5fd575a-bc14-4a80-89e1-46f349a76178/tile-high-density-max-size.jpg"></img>
304
- <d2l-list-item-content>
305
- <div>Engineering Materials for Energy Systems</div>
306
- <div slot="supporting-info">This course explores the geological processes of the Earth's interior and surface. These include volcanism, earthquakes, mountain...</div>
307
- </d2l-list-item-content>
308
- <div slot="actions">
309
- <d2l-button-icon text="My Button" icon="tier1:preview"></d2l-button-icon>
310
- <d2l-button-icon text="My Button" icon="tier1:more"></d2l-button-icon>
311
- </div>
312
- </d2l-list-item>
313
- <d2l-list-item selectable key="3" label="Geomorphology and GIS">
314
- <img slot="illustration" src="https://s.brightspace.com/course-images/images/63b162ab-b582-4bf9-8c1d-1dad04714121/tile-high-density-max-size.jpg"></img>
315
- <d2l-list-item-content>
316
- <div>Geomorphology and GIS</div>
317
- <div slot="supporting-info">This course explores the geological processes of the Earth's interior and surface. These include volcanism, earthquakes, mountain...</div>
318
- </d2l-list-item-content>
319
- <div slot="actions">
320
- <d2l-button-icon text="My Button" icon="tier1:preview"></d2l-button-icon>
321
- <d2l-button-icon text="My Button" icon="tier1:more"></d2l-button-icon>
322
- </div>
323
- </d2l-list-item>
324
- </d2l-list>
325
- </template>
326
- </d2l-demo-snippet>
327
-
328
- </d2l-demo-page>
329
-
330
- </body>
331
- </html>
@@ -1,122 +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 '../../dropdown/dropdown-menu.js';
10
- import '../../menu/menu.js';
11
- import '../list-item-content.js';
12
- import '../list-item.js';
13
- import '../list.js';
14
- import '../../../components/inputs/input-date.js';
15
- import '../../../components/dropdown/dropdown-button-subtle.js';
16
- import '../../../components/dropdown/dropdown-menu.js';
17
- import '../../../components/selection/selection-action-menu-item.js';
18
- </script>
19
- <style>
20
- html {
21
- --d2l-list-controls-background-color: #f1f5fb;
22
- }
23
- .container {
24
- height: 400px;
25
- position: relative;
26
- }
27
- .template {
28
- bottom: 0;
29
- left: 0;
30
- overflow: hidden;
31
- position: absolute;
32
- right: 0;
33
- top: 0;
34
- }
35
- .main {
36
- height: 100%;
37
- overflow-x: hidden;
38
- }
39
- </style>
40
- </head>
41
- <body unresolved>
42
-
43
- <d2l-demo-page page-title="d2l-list-item (scroll)">
44
-
45
- <h2>Scroll To Item in Absolutely Positioned Div</h2>
46
-
47
- <d2l-demo-snippet>
48
- <template>
49
- <div class="container">
50
- <div class="template">
51
- <div class="main">
52
- <d2l-dropdown-button-subtle text="Scroll To Item">
53
- <d2l-dropdown-menu>
54
- <d2l-menu label="Actions">
55
- <d2l-selection-action-menu-item id="scroll-item-start" text="Scroll To Last Item Align Start"></d2l-selection-action-menu-item>
56
- <d2l-selection-action-menu-item id="scroll-item-end" text="Scroll To Last Item Align End"></d2l-selection-action-menu-item>
57
- </d2l-menu>
58
- </d2l-dropdown-menu>
59
- </d2l-dropdown-button-subtle>
60
- <script>
61
- document.querySelector('#scroll-item-start').addEventListener('d2l-selection-action-click', () => {
62
- window.setTimeout(() => {
63
- const element = document.querySelector('#algebraic-number-theory');
64
- element.scrollToItem();
65
- });
66
- });
67
- document.querySelector('#scroll-item-end').addEventListener('d2l-selection-action-click', () => {
68
- window.setTimeout(() => {
69
- const element = document.querySelector('#algebraic-number-theory');
70
- element.scrollToItem(false);
71
- });
72
- });
73
- </script>
74
- <div>
75
- <label>Date included to show issues with overflow when scrolling to items</label>
76
- <d2l-input-date></d2l-input-date>
77
- <p>
78
- The hidden d2l-calendar causes overflow which is hidden by the template but becomes
79
- visible when scrollIntoView is called with <code>alignToTop=true</code> (<code>block='start'</code>).
80
- Use <code>alignToTop=false</code> to avoid the issue.
81
- </p>
82
- </div>
83
-
84
- <d2l-list>
85
- <d2l-list-item selectable key="1" label="Introductory Earth Sciences">
86
- <d2l-list-item-content>Introductory Earth Sciences</d2l-list-item-content>
87
- </d2l-list-item>
88
- <d2l-list-item selectable key="2" selected label="Engineering Materials for Energy Systems">
89
- <d2l-list-item-content>Engineering Materials for Energy Systems</d2l-list-item-content>
90
- </d2l-list-item>
91
- <d2l-list-item selectable key="3" label="Geomorphology and GIS">
92
- <d2l-list-item-content>Geomorphology and GIS</d2l-list-item-content>
93
- </d2l-list-item>
94
- <d2l-list-item selectable key="4" label="Introductory Earth Sciences">
95
- <d2l-list-item-content>Introductory Earth Sciences</d2l-list-item-content>
96
- </d2l-list-item>
97
- <d2l-list-item selectable key="5" selected label="Engineering Materials for Energy Systems">
98
- <d2l-list-item-content>Engineering Materials for Energy Systems</d2l-list-item-content>
99
- </d2l-list-item>
100
- <d2l-list-item selectable key="6" label="Geomorphology and GIS">
101
- <d2l-list-item-content>Geomorphology and GIS</d2l-list-item-content>
102
- </d2l-list-item>
103
- <d2l-list-item selectable key="7" label="Introductory Earth Sciences">
104
- <d2l-list-item-content>Introductory Earth Sciences</d2l-list-item-content>
105
- </d2l-list-item>
106
- <d2l-list-item selectable key="8" selected label="Engineering Materials for Energy Systems">
107
- <d2l-list-item-content>Engineering Materials for Energy Systems</d2l-list-item-content>
108
- </d2l-list-item>
109
- <d2l-list-item id="algebraic-number-theory" selectable key="9" label="Algebraic Number Theory">
110
- <d2l-list-item-content>Algebraic Number Theory</d2l-list-item-content>
111
- </d2l-list-item>
112
- </d2l-list>
113
- </div>
114
- </div>
115
- </div>
116
- </template>
117
- </d2l-demo-snippet>
118
-
119
- </d2l-demo-page>
120
-
121
- </body>
122
- </html>