@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,380 +0,0 @@
|
|
|
1
|
-
export const listDemos = {
|
|
2
|
-
imgPrimaryAndSupporting: [{
|
|
3
|
-
key: '1',
|
|
4
|
-
primaryText: 'Introductory Earth Sciences',
|
|
5
|
-
supportingText: 'This course explores the geological processes of the Earth\'s interior and surface. These include volcanism, earthquakes, mountain building, glaciation and weathering.',
|
|
6
|
-
imgSrc: 'https://s.brightspace.com/course-images/images/63b162ab-b582-4bf9-8c1d-1dad04714121/tile-high-density-max-size.jpg',
|
|
7
|
-
dropNested: true,
|
|
8
|
-
items: [{
|
|
9
|
-
key: '1-1',
|
|
10
|
-
primaryText: 'Glaciation',
|
|
11
|
-
supportingText: 'Nesting Allowed',
|
|
12
|
-
imgSrc: 'https://s.brightspace.com/course-images/images/bf648978-6637-4fdc-815b-81572c436c0e/tile-high-density-max-size.jpg',
|
|
13
|
-
dropNested: true,
|
|
14
|
-
items: []
|
|
15
|
-
}, {
|
|
16
|
-
key: '1-2',
|
|
17
|
-
primaryText: 'Weathering',
|
|
18
|
-
supportingText: 'Nesting Allowed',
|
|
19
|
-
imgSrc: 'https://s.brightspace.com/course-images/images/50f91ba6-7c25-482a-bd71-1c4b7c8d2154/tile-high-density-min-size.jpg',
|
|
20
|
-
dropNested: true,
|
|
21
|
-
items: []
|
|
22
|
-
}, {
|
|
23
|
-
key: '1-3',
|
|
24
|
-
primaryText: 'Volcanism',
|
|
25
|
-
supportingText: 'Nesting Allowed',
|
|
26
|
-
imgSrc: 'https://s.brightspace.com/course-images/images/5eb2371d-6099-4c8d-8aad-075f357012a2/tile-high-density-min-size.jpg',
|
|
27
|
-
dropNested: true,
|
|
28
|
-
items: []
|
|
29
|
-
}]
|
|
30
|
-
}, {
|
|
31
|
-
key: '2',
|
|
32
|
-
primaryText: 'Applied Wetland Science',
|
|
33
|
-
supportingText: '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.',
|
|
34
|
-
imgSrc: 'https://s.brightspace.com/course-images/images/38e839b1-37fa-470c-8830-b189ce4ae134/tile-high-density-max-size.jpg',
|
|
35
|
-
items: [{
|
|
36
|
-
key: '-1',
|
|
37
|
-
primaryText: 'Carbon & Nitrogen Cycling',
|
|
38
|
-
supportingText: 'Nesting Allowed',
|
|
39
|
-
imgSrc: 'https://s.brightspace.com/course-images/images/623b420b-a305-4762-8af8-598f0e72e956/tile-high-density-min-size.jpg',
|
|
40
|
-
dropNested: true,
|
|
41
|
-
items: []
|
|
42
|
-
}, {
|
|
43
|
-
key: '2-2',
|
|
44
|
-
primaryText: 'Wetland Engineering',
|
|
45
|
-
supportingText: 'Nesting Allowed',
|
|
46
|
-
imgSrc: 'https://s.brightspace.com/course-images/images/26102577-8f2a-4e24-84b5-19d76decbc7a/tile-high-density-min-size.jpg',
|
|
47
|
-
dropNested: true,
|
|
48
|
-
items: []
|
|
49
|
-
}]
|
|
50
|
-
}],
|
|
51
|
-
primaryAndSupportingText: [{
|
|
52
|
-
key: '1',
|
|
53
|
-
primaryText: 'Introductory Earth Sciences',
|
|
54
|
-
supportingText: 'This course explores the geological processes of the Earth\'s interior and surface. These include volcanism, earthquakes, mountain building, glaciation and weathering.',
|
|
55
|
-
dropNested: true,
|
|
56
|
-
items: [{
|
|
57
|
-
key: '1-1',
|
|
58
|
-
primaryText: 'Glaciation',
|
|
59
|
-
supportingText: 'Nesting Allowed',
|
|
60
|
-
dropNested: true,
|
|
61
|
-
items: []
|
|
62
|
-
}, {
|
|
63
|
-
key: '1-2',
|
|
64
|
-
primaryText: 'Weathering',
|
|
65
|
-
supportingText: 'Nesting Allowed',
|
|
66
|
-
dropNested: true,
|
|
67
|
-
items: []
|
|
68
|
-
}, {
|
|
69
|
-
key: '1-3',
|
|
70
|
-
primaryText: 'Volcanism',
|
|
71
|
-
supportingText: 'Nesting Allowed',
|
|
72
|
-
dropNested: true,
|
|
73
|
-
items: []
|
|
74
|
-
}]
|
|
75
|
-
}, {
|
|
76
|
-
key: '2',
|
|
77
|
-
primaryText: 'Applied Wetland Science',
|
|
78
|
-
supportingText: '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.',
|
|
79
|
-
items: [{
|
|
80
|
-
key: '2-1',
|
|
81
|
-
primaryText: 'Carbon & Nitrogen Cycling',
|
|
82
|
-
supportingText: 'Nesting Allowed',
|
|
83
|
-
dropNested: true,
|
|
84
|
-
items: []
|
|
85
|
-
}, {
|
|
86
|
-
key: '2-2',
|
|
87
|
-
primaryText: 'Wetland Engineering',
|
|
88
|
-
supportingText: 'Nesting Allowed',
|
|
89
|
-
dropNested: true,
|
|
90
|
-
items: []
|
|
91
|
-
}]
|
|
92
|
-
}],
|
|
93
|
-
primaryTextOnly: [{
|
|
94
|
-
key: '1',
|
|
95
|
-
primaryText: 'Introductory Earth Sciences',
|
|
96
|
-
dropNested: true,
|
|
97
|
-
items: [{
|
|
98
|
-
key: '1-1',
|
|
99
|
-
primaryText: 'Glaciation',
|
|
100
|
-
dropNested: true,
|
|
101
|
-
items: []
|
|
102
|
-
}, {
|
|
103
|
-
key: '1-2',
|
|
104
|
-
primaryText: 'Weathering',
|
|
105
|
-
dropNested: true,
|
|
106
|
-
items: []
|
|
107
|
-
}, {
|
|
108
|
-
key: '1-3',
|
|
109
|
-
primaryText: 'Volcanism',
|
|
110
|
-
dropNested: true,
|
|
111
|
-
items: []
|
|
112
|
-
}]
|
|
113
|
-
}, {
|
|
114
|
-
key: '2',
|
|
115
|
-
primaryText: 'Applied Wetland Science',
|
|
116
|
-
items: [{
|
|
117
|
-
key: '2-1',
|
|
118
|
-
primaryText: 'Carbon & Nitrogen Cycling',
|
|
119
|
-
dropNested: true,
|
|
120
|
-
items: []
|
|
121
|
-
}, {
|
|
122
|
-
key: '2-2',
|
|
123
|
-
primaryText: 'Wetland Engineering',
|
|
124
|
-
dropNested: true,
|
|
125
|
-
items: []
|
|
126
|
-
}]
|
|
127
|
-
}],
|
|
128
|
-
primaryTextOnlyDeepNesting: [{
|
|
129
|
-
key: '1',
|
|
130
|
-
primaryText: 'Item 1 - Deeply Nested',
|
|
131
|
-
dropNested: true,
|
|
132
|
-
items: [{
|
|
133
|
-
key: '1-1',
|
|
134
|
-
primaryText: 'Glaciation',
|
|
135
|
-
dropNested: true,
|
|
136
|
-
items: [{
|
|
137
|
-
key: '1-1-1',
|
|
138
|
-
primaryText: 'Ice',
|
|
139
|
-
dropNested: true,
|
|
140
|
-
items: [{
|
|
141
|
-
key: '1-1-1-1',
|
|
142
|
-
primaryText: 'Cold',
|
|
143
|
-
dropNested: true,
|
|
144
|
-
items: [{
|
|
145
|
-
key: '1-1-1-1-1',
|
|
146
|
-
primaryText: 'Winter',
|
|
147
|
-
dropNested: true,
|
|
148
|
-
items: [{
|
|
149
|
-
key: '1-1-1-1-1-1',
|
|
150
|
-
primaryText: 'Canada',
|
|
151
|
-
dropNested: true,
|
|
152
|
-
items: [{
|
|
153
|
-
key: '1-1-1-1-1-1-1',
|
|
154
|
-
primaryText: 'Moose',
|
|
155
|
-
dropNested: true,
|
|
156
|
-
items: []
|
|
157
|
-
}]
|
|
158
|
-
}]
|
|
159
|
-
}]
|
|
160
|
-
}]
|
|
161
|
-
}, {
|
|
162
|
-
key: '1-1-2',
|
|
163
|
-
primaryText: 'Snow',
|
|
164
|
-
dropNested: true,
|
|
165
|
-
items: []
|
|
166
|
-
}]
|
|
167
|
-
}, {
|
|
168
|
-
key: '1-2',
|
|
169
|
-
primaryText: 'Weathering',
|
|
170
|
-
dropNested: true,
|
|
171
|
-
items: []
|
|
172
|
-
}, {
|
|
173
|
-
key: '1-3',
|
|
174
|
-
primaryText: 'Volcanism',
|
|
175
|
-
dropNested: true,
|
|
176
|
-
items: []
|
|
177
|
-
}]
|
|
178
|
-
}, {
|
|
179
|
-
key: '2',
|
|
180
|
-
primaryText: 'Item 2',
|
|
181
|
-
items: [{
|
|
182
|
-
key: '2-1',
|
|
183
|
-
primaryText: '2-1',
|
|
184
|
-
dropNested: true,
|
|
185
|
-
items: []
|
|
186
|
-
}, {
|
|
187
|
-
key: '2-2',
|
|
188
|
-
primaryText: '2-2',
|
|
189
|
-
dropNested: true,
|
|
190
|
-
items: []
|
|
191
|
-
}]
|
|
192
|
-
}, {
|
|
193
|
-
key: '3',
|
|
194
|
-
primaryText: 'Item 3',
|
|
195
|
-
items: [{
|
|
196
|
-
key: '3-1',
|
|
197
|
-
primaryText: '3-1',
|
|
198
|
-
dropNested: true,
|
|
199
|
-
items: []
|
|
200
|
-
}, {
|
|
201
|
-
key: '3-2',
|
|
202
|
-
primaryText: '3-2',
|
|
203
|
-
dropNested: true,
|
|
204
|
-
items: []
|
|
205
|
-
}]
|
|
206
|
-
}, {
|
|
207
|
-
key: '4',
|
|
208
|
-
primaryText: 'Item 4',
|
|
209
|
-
items: [{
|
|
210
|
-
key: '4-1',
|
|
211
|
-
primaryText: '4-1',
|
|
212
|
-
dropNested: true,
|
|
213
|
-
items: []
|
|
214
|
-
}, {
|
|
215
|
-
key: '4-2',
|
|
216
|
-
primaryText: '4-2',
|
|
217
|
-
dropNested: true,
|
|
218
|
-
items: []
|
|
219
|
-
}]
|
|
220
|
-
}, {
|
|
221
|
-
key: '5',
|
|
222
|
-
primaryText: 'Item 5',
|
|
223
|
-
items: [{
|
|
224
|
-
key: '5-1',
|
|
225
|
-
primaryText: '5-1',
|
|
226
|
-
dropNested: true,
|
|
227
|
-
items: []
|
|
228
|
-
}, {
|
|
229
|
-
key: '5-2',
|
|
230
|
-
primaryText: '5-2',
|
|
231
|
-
dropNested: true,
|
|
232
|
-
items: []
|
|
233
|
-
}]
|
|
234
|
-
}, {
|
|
235
|
-
key: '6',
|
|
236
|
-
primaryText: 'Item 6',
|
|
237
|
-
items:[{
|
|
238
|
-
key: '6-1',
|
|
239
|
-
primaryText: '6-1',
|
|
240
|
-
dropNested: true,
|
|
241
|
-
items: []
|
|
242
|
-
}, {
|
|
243
|
-
key: '6-2',
|
|
244
|
-
primaryText: '6-2',
|
|
245
|
-
dropNested: true,
|
|
246
|
-
items: []
|
|
247
|
-
}]
|
|
248
|
-
}, {
|
|
249
|
-
key: '7',
|
|
250
|
-
primaryText: 'Item 7',
|
|
251
|
-
items: [{
|
|
252
|
-
key: '7-1',
|
|
253
|
-
primaryText: '7-1',
|
|
254
|
-
dropNested: true,
|
|
255
|
-
items: []
|
|
256
|
-
}, {
|
|
257
|
-
key: '7-2',
|
|
258
|
-
primaryText: '7-2',
|
|
259
|
-
dropNested: true,
|
|
260
|
-
items: []
|
|
261
|
-
}]
|
|
262
|
-
}, {
|
|
263
|
-
key: '8',
|
|
264
|
-
primaryText: 'Item 8',
|
|
265
|
-
items: [{
|
|
266
|
-
key: '8-1',
|
|
267
|
-
primaryText: '8-1',
|
|
268
|
-
dropNested: true,
|
|
269
|
-
items: []
|
|
270
|
-
}, {
|
|
271
|
-
key: '8-2',
|
|
272
|
-
primaryText: '8-2',
|
|
273
|
-
dropNested: true,
|
|
274
|
-
items: []
|
|
275
|
-
}]
|
|
276
|
-
}, {
|
|
277
|
-
key: '9',
|
|
278
|
-
primaryText: 'Item 9',
|
|
279
|
-
items: [{
|
|
280
|
-
key: '9-1',
|
|
281
|
-
primaryText: '9-1',
|
|
282
|
-
dropNested: true,
|
|
283
|
-
items: []
|
|
284
|
-
}, {
|
|
285
|
-
key: '9-2',
|
|
286
|
-
primaryText: '9-2',
|
|
287
|
-
dropNested: true,
|
|
288
|
-
items: []
|
|
289
|
-
}]
|
|
290
|
-
}, {
|
|
291
|
-
key: '10',
|
|
292
|
-
primaryText: 'Item 10',
|
|
293
|
-
items: [{
|
|
294
|
-
key: '10-1',
|
|
295
|
-
primaryText: '10-1',
|
|
296
|
-
dropNested: true,
|
|
297
|
-
items: []
|
|
298
|
-
}, {
|
|
299
|
-
key: '10-2',
|
|
300
|
-
primaryText: '10-2',
|
|
301
|
-
dropNested: true,
|
|
302
|
-
items: []
|
|
303
|
-
}]
|
|
304
|
-
}],
|
|
305
|
-
oneChild: [{
|
|
306
|
-
key: '1',
|
|
307
|
-
primaryText: 'Introductory Earth Sciences',
|
|
308
|
-
dropNested: true,
|
|
309
|
-
items: [{
|
|
310
|
-
key: '1-1',
|
|
311
|
-
primaryText: 'Glaciation',
|
|
312
|
-
dropNested: true,
|
|
313
|
-
items: []
|
|
314
|
-
}]
|
|
315
|
-
}, {
|
|
316
|
-
key: '2',
|
|
317
|
-
primaryText: 'Applied Wetland Science',
|
|
318
|
-
dropNested: true,
|
|
319
|
-
items: []
|
|
320
|
-
}],
|
|
321
|
-
nav: [{
|
|
322
|
-
key: '1',
|
|
323
|
-
primaryText: 'Introductory Earth Sciences',
|
|
324
|
-
dropNested: true,
|
|
325
|
-
color: '#006fbf',
|
|
326
|
-
items: [{
|
|
327
|
-
key: '1-1',
|
|
328
|
-
primaryText: 'Glaciation',
|
|
329
|
-
dropNested: true,
|
|
330
|
-
items: [],
|
|
331
|
-
tooltipText: 'Starts: 2023-09-01, Ends: 2023-12-01',
|
|
332
|
-
tooltipOpenerText: 'Due: 2023-10-10',
|
|
333
|
-
hasIcon: true
|
|
334
|
-
}, {
|
|
335
|
-
key: '1-2',
|
|
336
|
-
primaryText: 'Weathering',
|
|
337
|
-
dropNested: true,
|
|
338
|
-
items: [],
|
|
339
|
-
tooltipText: 'Starts: 2023-10-01, Ends: 2023-12-01',
|
|
340
|
-
tooltipOpenerText: 'Due: 2023-11-10',
|
|
341
|
-
hasIcon: true
|
|
342
|
-
}, {
|
|
343
|
-
key: '1-3',
|
|
344
|
-
primaryText: 'Volcanism',
|
|
345
|
-
dropNested: true,
|
|
346
|
-
items: [],
|
|
347
|
-
hasIcon: true
|
|
348
|
-
}]
|
|
349
|
-
}, {
|
|
350
|
-
key: '2',
|
|
351
|
-
primaryText: 'Applied Wetland Science',
|
|
352
|
-
color: '#990006',
|
|
353
|
-
items: [{
|
|
354
|
-
key: '2-1',
|
|
355
|
-
primaryText: 'Carbon & Nitrogen Cycling',
|
|
356
|
-
dropNested: true,
|
|
357
|
-
items: [],
|
|
358
|
-
hasIcon: true
|
|
359
|
-
}, {
|
|
360
|
-
key: '2-2',
|
|
361
|
-
primaryText: 'Wetland Engineering',
|
|
362
|
-
dropNested: true,
|
|
363
|
-
color: '#cd2026',
|
|
364
|
-
items: [{
|
|
365
|
-
key: '2-2-1',
|
|
366
|
-
primaryText: 'Wetland Engineering #1',
|
|
367
|
-
dropNested: true,
|
|
368
|
-
items: [],
|
|
369
|
-
hasIcon: true
|
|
370
|
-
}, {
|
|
371
|
-
key: '2-2-2',
|
|
372
|
-
primaryText: 'Wetland Engineering #2',
|
|
373
|
-
dropNested: true,
|
|
374
|
-
items: [],
|
|
375
|
-
hasIcon: true
|
|
376
|
-
}],
|
|
377
|
-
hasIcon: true
|
|
378
|
-
}]
|
|
379
|
-
}],
|
|
380
|
-
};
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import '../list-item-content.js';
|
|
2
|
-
import '../list-item.js';
|
|
3
|
-
import '../list.js';
|
|
4
|
-
import { html, LitElement } from 'lit';
|
|
5
|
-
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
6
|
-
import { repeat } from 'lit/directives/repeat.js';
|
|
7
|
-
|
|
8
|
-
class ListDemoDragAndDropPosition extends LitElement {
|
|
9
|
-
|
|
10
|
-
static get properties() {
|
|
11
|
-
return {
|
|
12
|
-
addButton: { type: Boolean, attribute: 'add-button' },
|
|
13
|
-
list: { type: Array },
|
|
14
|
-
// below are for demonstration only
|
|
15
|
-
grid: { type: Boolean },
|
|
16
|
-
hrefs: { type: Boolean },
|
|
17
|
-
selectable: { type: Boolean }
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
constructor() {
|
|
22
|
-
super();
|
|
23
|
-
this.list = [
|
|
24
|
-
{
|
|
25
|
-
key: '1',
|
|
26
|
-
name: 'Geomorphology and GIS',
|
|
27
|
-
secondary: 'This course explores the geological processes of the Earth\'s interior and surface. These include volcanism, earthquakes, mountain...',
|
|
28
|
-
img: 'https://s.brightspace.com/course-images/images/63b162ab-b582-4bf9-8c1d-1dad04714121/tile-high-density-max-size.jpg',
|
|
29
|
-
href: 'https://d2l.com'
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
key: '2',
|
|
33
|
-
name: 'Engineering Materials for Energy Systems',
|
|
34
|
-
secondary: 'This course explores the geological processes of the Earth\'s interior and surface. These include volcanism, earthquakes, mountain...',
|
|
35
|
-
img: 'https://s.brightspace.com/course-images/images/e5fd575a-bc14-4a80-89e1-46f349a76178/tile-high-density-max-size.jpg',
|
|
36
|
-
href: 'https://d2l.com'
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
key: '3',
|
|
40
|
-
name: 'Introductory Earth Sciences',
|
|
41
|
-
secondary: 'This course explores the geological process of the Earth\'s interior and surface. These include volcanism, earthquakes, mountains...',
|
|
42
|
-
img: 'https://s.brightspace.com/course-images/images/38e839b1-37fa-470c-8830-b189ce4ae134/tile-high-density-max-size.jpg',
|
|
43
|
-
href: 'https://d2l.com'
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
key: '4',
|
|
47
|
-
name: 'Applied Complex Analysis',
|
|
48
|
-
secondary: 'This course explores the geological process of the Earth\'s interior and surface. These include volcanism, earthquakes, mountains...',
|
|
49
|
-
img: 'https://s.brightspace.com/course-images/images/c63e7407-c3ba-4fa0-8383-08a8f4fa468b/tile-high-density-max-size.jpg',
|
|
50
|
-
href: 'https://d2l.com'
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
key: '5',
|
|
54
|
-
name: 'Basic French',
|
|
55
|
-
secondary: 'This course explores the geological process of the Earth\'s interior and surface. These include volcanism, earthquakes, mountains...',
|
|
56
|
-
img: 'https://s.brightspace.com/course-images/images/9e319eb4-31af-4912-889d-92d9f2d82884/tile-high-density-max-size.jpg',
|
|
57
|
-
href: 'https://d2l.com'
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
key: '6',
|
|
61
|
-
name: 'Algebraic Number Theory',
|
|
62
|
-
secondary: 'This course explores the geological process of the Earth\'s interior and surface. These include volcanism, earthquakes, mountains...',
|
|
63
|
-
img: 'https://s.brightspace.com/course-images/images/36c5813d-2ac3-4a73-8f39-3d6e1b381fe3/tile-high-density-max-size.jpg',
|
|
64
|
-
href: 'https://d2l.com'
|
|
65
|
-
}
|
|
66
|
-
];
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
render() {
|
|
70
|
-
const addButtonText = this.addButton ? 'Add New Item' : undefined;
|
|
71
|
-
return html`
|
|
72
|
-
<d2l-list
|
|
73
|
-
?grid="${this.grid}"
|
|
74
|
-
@d2l-list-item-position-change="${this._moveItems}"
|
|
75
|
-
?add-button="${this.addButton}"
|
|
76
|
-
add-button-text="${ifDefined(addButtonText)}">
|
|
77
|
-
${repeat(this.list, (item) => item.key, (item) => html`
|
|
78
|
-
<d2l-list-item
|
|
79
|
-
key="${ifDefined(item.key)}"
|
|
80
|
-
draggable
|
|
81
|
-
?selectable="${this.selectable}"
|
|
82
|
-
drag-handle-text="${item.name}"
|
|
83
|
-
href="${ifDefined(this.hrefs ? item.href : undefined)}"
|
|
84
|
-
label="${item.name}">
|
|
85
|
-
<img slot="illustration" src="${item.img}">
|
|
86
|
-
<d2l-list-item-content>
|
|
87
|
-
<div>${item.name}</div>
|
|
88
|
-
<div slot="secondary">${item.secondary}</div>
|
|
89
|
-
</d2l-list-item-content>
|
|
90
|
-
</d2l-list-item>
|
|
91
|
-
`)}
|
|
92
|
-
</d2l-list>
|
|
93
|
-
`;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
_moveItems(e) {
|
|
97
|
-
e.detail.reorder(this.list, { keyFn: (item) => item.key });
|
|
98
|
-
this.requestUpdate('list', []);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
customElements.define('d2l-demo-list-drag-and-drop-position', ListDemoDragAndDropPosition);
|
|
@@ -1,82 +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-drag-and-drop-position.js';
|
|
10
|
-
import './demo-list-nested.js';
|
|
11
|
-
</script>
|
|
12
|
-
</head>
|
|
13
|
-
<body unresolved>
|
|
14
|
-
|
|
15
|
-
<d2l-demo-page page-title="d2l-list (with drag & drop)">
|
|
16
|
-
|
|
17
|
-
<h2>Position Change Event</h2>
|
|
18
|
-
|
|
19
|
-
<d2l-demo-snippet>
|
|
20
|
-
<template>
|
|
21
|
-
<d2l-demo-list-drag-and-drop-position grid selectable hrefs></d2l-demo-list-drag-and-drop-position>
|
|
22
|
-
</template>
|
|
23
|
-
</d2l-demo-snippet>
|
|
24
|
-
|
|
25
|
-
<h2>Add Button</h2>
|
|
26
|
-
|
|
27
|
-
<d2l-demo-snippet>
|
|
28
|
-
<template>
|
|
29
|
-
<d2l-demo-list-drag-and-drop-position add-button selectable></d2l-demo-list-drag-and-drop-position>
|
|
30
|
-
</template>
|
|
31
|
-
</d2l-demo-snippet>
|
|
32
|
-
|
|
33
|
-
<h2>Move Event</h2>
|
|
34
|
-
|
|
35
|
-
<d2l-demo-snippet>
|
|
36
|
-
<template>
|
|
37
|
-
<d2l-demo-list-nested demo-item-key="imgPrimaryAndSupporting" is-draggable selectable disable-expand-feature></d2l-demo-list-nested>
|
|
38
|
-
</template>
|
|
39
|
-
</d2l-demo-snippet>
|
|
40
|
-
|
|
41
|
-
<h2>Add Button</h2>
|
|
42
|
-
|
|
43
|
-
<d2l-demo-snippet>
|
|
44
|
-
<template>
|
|
45
|
-
<d2l-demo-list-nested add-button demo-item-key="imgPrimaryAndSupporting" is-draggable selectable></d2l-demo-list-nested>
|
|
46
|
-
</template>
|
|
47
|
-
</d2l-demo-snippet>
|
|
48
|
-
|
|
49
|
-
<h2>Drop Nested Only</h2>
|
|
50
|
-
|
|
51
|
-
<d2l-demo-snippet>
|
|
52
|
-
<template>
|
|
53
|
-
<d2l-demo-list-nested drop-nested-only demo-item-key="imgPrimaryAndSupporting" is-draggable selectable></d2l-demo-list-nested>
|
|
54
|
-
</template>
|
|
55
|
-
</d2l-demo-snippet>
|
|
56
|
-
|
|
57
|
-
<h2>Disable Keyboard Drag</h2>
|
|
58
|
-
|
|
59
|
-
<d2l-demo-snippet>
|
|
60
|
-
<template>
|
|
61
|
-
<d2l-demo-list-nested demo-item-key="imgPrimaryAndSupporting" is-draggable selectable keyboard-drag-disabled></d2l-demo-list-nested>
|
|
62
|
-
</template>
|
|
63
|
-
</d2l-demo-snippet>
|
|
64
|
-
|
|
65
|
-
<h2>Always Show Handle</h2>
|
|
66
|
-
|
|
67
|
-
<d2l-demo-snippet>
|
|
68
|
-
<template>
|
|
69
|
-
<d2l-demo-list-nested demo-item-key="imgPrimaryAndSupporting" is-draggable selectable drag-handle-show-always></d2l-demo-list-nested>
|
|
70
|
-
</template>
|
|
71
|
-
</d2l-demo-snippet>
|
|
72
|
-
|
|
73
|
-
</d2l-demo-page>
|
|
74
|
-
|
|
75
|
-
<script>
|
|
76
|
-
document.body.addEventListener('d2l-list-items-move', e => {
|
|
77
|
-
console.log('d2l-list-items-move', e.detail);
|
|
78
|
-
});
|
|
79
|
-
</script>
|
|
80
|
-
|
|
81
|
-
</body>
|
|
82
|
-
</html>
|
|
@@ -1,136 +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 './demo-list-nested.js';
|
|
10
|
-
import './demo-list-nested-lazy-load.js';
|
|
11
|
-
</script>
|
|
12
|
-
</head>
|
|
13
|
-
<body unresolved>
|
|
14
|
-
|
|
15
|
-
<d2l-demo-page page-title="d2l-list (with expand/collapse)">
|
|
16
|
-
<h2>Draggable & Selectable (with grid)</h2>
|
|
17
|
-
<d2l-demo-snippet>
|
|
18
|
-
<template>
|
|
19
|
-
<d2l-demo-list-nested
|
|
20
|
-
demo-item-key="imgPrimaryAndSupporting"
|
|
21
|
-
add-button
|
|
22
|
-
is-draggable
|
|
23
|
-
selectable
|
|
24
|
-
expandable
|
|
25
|
-
expanded
|
|
26
|
-
include-action-href
|
|
27
|
-
include-secondary-actions
|
|
28
|
-
include-list-controls></d2l-demo-list-nested>
|
|
29
|
-
</template>
|
|
30
|
-
</d2l-demo-snippet>
|
|
31
|
-
|
|
32
|
-
<d2l-demo-snippet>
|
|
33
|
-
<template>
|
|
34
|
-
<d2l-demo-list-nested demo-item-key="primaryAndSupportingText" is-draggable selectable expandable></d2l-demo-list-nested>
|
|
35
|
-
</template>
|
|
36
|
-
</d2l-demo-snippet>
|
|
37
|
-
|
|
38
|
-
<d2l-demo-snippet>
|
|
39
|
-
<template>
|
|
40
|
-
<d2l-demo-list-nested demo-item-key="primaryTextOnly" is-draggable selectable expandable></d2l-demo-list-nested>
|
|
41
|
-
</template>
|
|
42
|
-
</d2l-demo-snippet>
|
|
43
|
-
|
|
44
|
-
<h2>Draggable & Selectable (without grid)</h2>
|
|
45
|
-
<d2l-demo-snippet>
|
|
46
|
-
<template>
|
|
47
|
-
<d2l-demo-list-nested
|
|
48
|
-
demo-item-key="imgPrimaryAndSupporting"
|
|
49
|
-
add-button
|
|
50
|
-
is-draggable
|
|
51
|
-
selectable
|
|
52
|
-
expandable
|
|
53
|
-
expanded
|
|
54
|
-
include-secondary-actions
|
|
55
|
-
include-list-controls
|
|
56
|
-
disable-list-grid></d2l-demo-list-nested>
|
|
57
|
-
</template>
|
|
58
|
-
</d2l-demo-snippet>
|
|
59
|
-
|
|
60
|
-
<h2>Selectable</h2>
|
|
61
|
-
<d2l-demo-snippet>
|
|
62
|
-
<template>
|
|
63
|
-
<d2l-demo-list-nested demo-item-key="primaryAndSupportingText" selectable expandable expanded></d2l-demo-list-nested>
|
|
64
|
-
</template>
|
|
65
|
-
</d2l-demo-snippet>
|
|
66
|
-
|
|
67
|
-
<h2>Draggable</h2>
|
|
68
|
-
<d2l-demo-snippet>
|
|
69
|
-
<template>
|
|
70
|
-
<d2l-demo-list-nested demo-item-key="primaryAndSupportingText" is-draggable expandable></d2l-demo-list-nested>
|
|
71
|
-
</template>
|
|
72
|
-
</d2l-demo-snippet>
|
|
73
|
-
|
|
74
|
-
<h2>Expandable</h2>
|
|
75
|
-
<d2l-demo-snippet>
|
|
76
|
-
<template>
|
|
77
|
-
<d2l-demo-list-nested demo-item-key="primaryTextOnlyDeepNesting" expandable></d2l-demo-list-nested>
|
|
78
|
-
</template>
|
|
79
|
-
</d2l-demo-snippet>
|
|
80
|
-
|
|
81
|
-
<h2>Button list item</h2>
|
|
82
|
-
<d2l-demo-snippet>
|
|
83
|
-
<template>
|
|
84
|
-
<d2l-demo-list-nested
|
|
85
|
-
demo-item-key="imgPrimaryAndSupporting"
|
|
86
|
-
is-draggable
|
|
87
|
-
selectable
|
|
88
|
-
expandable
|
|
89
|
-
include-secondary-actions
|
|
90
|
-
include-list-controls
|
|
91
|
-
use-button-item></d2l-demo-list-nested>
|
|
92
|
-
</template>
|
|
93
|
-
</d2l-demo-snippet>
|
|
94
|
-
|
|
95
|
-
<h2>Load More</h2>
|
|
96
|
-
<d2l-demo-snippet>
|
|
97
|
-
<template>
|
|
98
|
-
<d2l-demo-list-nested demo-item-key="primaryTextOnlyDeepNesting" expandable expanded show-load-more></d2l-demo-list-nested>
|
|
99
|
-
</template>
|
|
100
|
-
</d2l-demo-snippet>
|
|
101
|
-
|
|
102
|
-
<h2>One Child</h2>
|
|
103
|
-
<d2l-demo-snippet>
|
|
104
|
-
<template>
|
|
105
|
-
<d2l-demo-list-nested demo-item-key="oneChild" expandable include-action-href></d2l-demo-list-nested>
|
|
106
|
-
</template>
|
|
107
|
-
</d2l-demo-snippet>
|
|
108
|
-
|
|
109
|
-
<h2>No Primary Action</h2>
|
|
110
|
-
<d2l-demo-snippet>
|
|
111
|
-
<template>
|
|
112
|
-
<d2l-demo-list-nested
|
|
113
|
-
demo-item-key="imgPrimaryAndSupporting"
|
|
114
|
-
is-draggable
|
|
115
|
-
selectable
|
|
116
|
-
expandable
|
|
117
|
-
no-primary-action></d2l-demo-list-nested>
|
|
118
|
-
</template>
|
|
119
|
-
</d2l-demo-snippet>
|
|
120
|
-
|
|
121
|
-
<h2>Lazy Loaded Children</h2>
|
|
122
|
-
<d2l-demo-snippet>
|
|
123
|
-
<template>
|
|
124
|
-
<d2l-demo-list-nested-lazy-load></d2l-demo-list-nested-lazy-load>
|
|
125
|
-
</template>
|
|
126
|
-
</d2l-demo-snippet>
|
|
127
|
-
</d2l-demo-page>
|
|
128
|
-
|
|
129
|
-
<script>
|
|
130
|
-
document.body.addEventListener('d2l-list-items-move', e => {
|
|
131
|
-
console.log('d2l-list-items-move', e.detail);
|
|
132
|
-
});
|
|
133
|
-
</script>
|
|
134
|
-
|
|
135
|
-
</body>
|
|
136
|
-
</html>
|