@brightspace-ui/core 2.110.0 → 2.111.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/paging/pager-load-more.js +2 -1
- package/components/selection/demo/demo-selection.js +18 -1
- package/components/selection/demo/selection.html +44 -3
- package/components/selection/selection-controls.js +2 -2
- package/components/selection/selection-select-all.js +1 -1
- package/components/selection/selection-summary.js +5 -2
- package/components/table/README.md +4 -0
- package/components/table/demo/table-test.js +27 -4
- package/components/table/demo/table.html +7 -0
- package/components/table/table-wrapper.js +5 -0
- package/custom-elements.json +119 -11
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ import { labelStyles } from '../typography/styles.js';
|
|
|
10
10
|
import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
|
|
11
11
|
import { offscreenStyles } from '../offscreen/offscreen.js';
|
|
12
12
|
import { PageableSubscriberMixin } from './pageable-subscriber-mixin.js';
|
|
13
|
+
import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
|
|
13
14
|
|
|
14
15
|
const nativeFocus = document.createElement('div').focus;
|
|
15
16
|
|
|
@@ -17,7 +18,7 @@ const nativeFocus = document.createElement('div').focus;
|
|
|
17
18
|
* A pager component for load-more paging.
|
|
18
19
|
* @fires d2l-pager-load-more - Dispatched when the user clicks the load-more button. Consumers must call the provided "complete" method once items have been loaded.
|
|
19
20
|
*/
|
|
20
|
-
class LoadMore extends PageableSubscriberMixin(FocusMixin(LocalizeCoreElement(LitElement))) {
|
|
21
|
+
class LoadMore extends PageableSubscriberMixin(FocusMixin(LocalizeCoreElement(RtlMixin(LitElement)))) {
|
|
21
22
|
|
|
22
23
|
static get properties() {
|
|
23
24
|
return {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { css, html, LitElement } from 'lit';
|
|
2
|
+
import { PageableMixin } from '../../paging/pageable-mixin.js';
|
|
2
3
|
import { SelectionMixin } from '../selection-mixin.js';
|
|
3
4
|
|
|
4
|
-
class
|
|
5
|
+
class DemoBase extends LitElement {
|
|
5
6
|
static get styles() {
|
|
6
7
|
return css`
|
|
7
8
|
:host {
|
|
@@ -15,4 +16,20 @@ class DemoSelection extends SelectionMixin(LitElement) {
|
|
|
15
16
|
`;
|
|
16
17
|
}
|
|
17
18
|
}
|
|
19
|
+
|
|
20
|
+
class DemoSelection extends SelectionMixin(DemoBase) {}
|
|
21
|
+
|
|
22
|
+
class DemoPageable extends PageableMixin(DemoBase) {
|
|
23
|
+
_getItemByIndex() {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
_getItemShowingCount() {
|
|
27
|
+
return 3;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
class DemoSelectionPageable extends SelectionMixin(DemoPageable) {}
|
|
32
|
+
|
|
18
33
|
customElements.define('d2l-demo-selection', DemoSelection);
|
|
34
|
+
customElements.define('d2l-demo-pageable', DemoPageable);
|
|
35
|
+
customElements.define('d2l-demo-selection-pageable', DemoSelectionPageable);
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import '../../demo/demo-page.js';
|
|
9
9
|
import '../../dropdown/dropdown-menu.js';
|
|
10
10
|
import '../../menu/menu.js';
|
|
11
|
+
import '../../paging/pager-load-more.js';
|
|
11
12
|
import '../selection-action.js';
|
|
12
13
|
import '../selection-action-dropdown.js';
|
|
13
14
|
import '../selection-action-menu-item.js';
|
|
@@ -93,6 +94,45 @@
|
|
|
93
94
|
</template>
|
|
94
95
|
</d2l-demo-snippet>
|
|
95
96
|
|
|
97
|
+
<h2>Selection controls with pageable + selection</h2>
|
|
98
|
+
|
|
99
|
+
<d2l-demo-snippet>
|
|
100
|
+
<template>
|
|
101
|
+
<d2l-demo-selection-pageable item-count="5">
|
|
102
|
+
<d2l-selection-controls select-all-pages-allowed>
|
|
103
|
+
<d2l-selection-action text="Bookmark" icon="tier1:bookmark-hollow" requires-selection></d2l-selection-action>
|
|
104
|
+
<d2l-selection-action text="Settings" icon="tier1:gear"></d2l-selection-action>
|
|
105
|
+
</d2l-selection-controls>
|
|
106
|
+
|
|
107
|
+
<ul>
|
|
108
|
+
<li><d2l-selection-input key="geo" label="Geography"></d2l-selection-input>Geography</li>
|
|
109
|
+
<li><d2l-selection-input key="sci" label="Science"></d2l-selection-input>Science</li>
|
|
110
|
+
<li><d2l-selection-input key="mth" label="Math"></d2l-selection-input>Math</li>
|
|
111
|
+
</ul>
|
|
112
|
+
<d2l-pager-load-more has-more page-size="1"></d2l-pager-load-more>
|
|
113
|
+
</d2l-demo-selection-pageable>
|
|
114
|
+
</template>
|
|
115
|
+
</d2l-demo-snippet>
|
|
116
|
+
|
|
117
|
+
<h2>Selection controls with pageable (no selection)</h2>
|
|
118
|
+
|
|
119
|
+
<d2l-demo-snippet>
|
|
120
|
+
<template>
|
|
121
|
+
<d2l-demo-pageable item-count="5">
|
|
122
|
+
<d2l-selection-controls>
|
|
123
|
+
<d2l-selection-action text="Bookmark" icon="tier1:bookmark-hollow" requires-selection></d2l-selection-action>
|
|
124
|
+
<d2l-selection-action text="Settings" icon="tier1:gear"></d2l-selection-action>
|
|
125
|
+
</d2l-selection-controls>
|
|
126
|
+
|
|
127
|
+
<ul>
|
|
128
|
+
<li><d2l-selection-input key="geo" label="Geography"></d2l-selection-input>Geography</li>
|
|
129
|
+
<li><d2l-selection-input key="sci" label="Science"></d2l-selection-input>Science</li>
|
|
130
|
+
<li><d2l-selection-input key="mth" label="Math"></d2l-selection-input>Math</li>
|
|
131
|
+
</ul>
|
|
132
|
+
<d2l-pager-load-more has-more page-size="1"></d2l-pager-load-more>
|
|
133
|
+
</d2l-demo-pageable>
|
|
134
|
+
</template>
|
|
135
|
+
</d2l-demo-snippet>
|
|
96
136
|
|
|
97
137
|
<h2>No-sticky selection controls</h2>
|
|
98
138
|
|
|
@@ -120,17 +160,18 @@
|
|
|
120
160
|
<div class="d2l-selection-collections">
|
|
121
161
|
<div class="d2l-selection-collection">
|
|
122
162
|
Pick Your Toppings
|
|
123
|
-
<d2l-selection-controls selection-for="collection-1">
|
|
163
|
+
<d2l-selection-controls selection-for="collection-1" pageable-for="collection-1" select-all-pages-allowed>
|
|
124
164
|
<d2l-selection-action selection-for="collection-1" text="Add Note" icon="tier1:add-message"></d2l-selection-action>
|
|
125
165
|
</d2l-selection-controls>
|
|
126
166
|
|
|
127
|
-
<d2l-demo-selection id="collection-1">
|
|
167
|
+
<d2l-demo-selection-pageable id="collection-1" item-count="5">
|
|
128
168
|
<ul>
|
|
129
169
|
<li><d2l-selection-input key="let" label="Lettuce" selected></d2l-selection-input>Lettuce</li>
|
|
130
170
|
<li><d2l-selection-input key="tom" label="Tomato"></d2l-selection-input>Tomato</li>
|
|
131
171
|
<li><d2l-selection-input key="onion" label="Onion"></d2l-selection-input>Onion</li>
|
|
132
172
|
</ul>
|
|
133
|
-
|
|
173
|
+
<d2l-pager-load-more has-more page-size="1"></d2l-pager-load-more>
|
|
174
|
+
</d2l-demo-selection-pageable>
|
|
134
175
|
<d2l-selection-action selection-for="collection-1" text="Save" requires-selection></d2l-selection-action>
|
|
135
176
|
</div>
|
|
136
177
|
|
|
@@ -181,8 +181,8 @@ export class SelectionControls extends PageableSubscriberMixin(SelectionObserver
|
|
|
181
181
|
|
|
182
182
|
_renderSelection() {
|
|
183
183
|
return html`
|
|
184
|
-
${!this._noSelectAll ? html`<d2l-selection-select-all></d2l-selection-select-all>` : nothing}
|
|
185
|
-
<d2l-selection-summary no-selection-text="${this._noSelectionText}"></d2l-selection-summary>
|
|
184
|
+
${this._provider && !this._noSelectAll ? html`<d2l-selection-select-all></d2l-selection-select-all>` : nothing}
|
|
185
|
+
<d2l-selection-summary no-selection-text="${ifDefined(this._noSelectionText)}"></d2l-selection-summary>
|
|
186
186
|
${this.selectAllPagesAllowed ? html`<d2l-selection-select-all-pages></d2l-selection-select-all-pages>` : nothing}
|
|
187
187
|
`;
|
|
188
188
|
}
|
|
@@ -44,7 +44,7 @@ class SelectAll extends FocusMixin(LocalizeCoreElement(SelectionObserverMixin(Li
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
render() {
|
|
47
|
-
if (this._provider
|
|
47
|
+
if (!this._provider || this._provider.selectionSingle) return;
|
|
48
48
|
|
|
49
49
|
const summary = (this.selectionInfo.state === SelectionInfo.states.none ? this.localize('components.selection.select-all')
|
|
50
50
|
: this.localize('components.selection.selected', 'count', this.selectionInfo.keys.length));
|
|
@@ -50,7 +50,10 @@ class Summary extends LocalizeCoreElement(SelectionObserverMixin(LitElement)) {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
_updateSelectSummary() {
|
|
53
|
-
if (this._provider
|
|
53
|
+
if (this._provider?.selectionSingle) {
|
|
54
|
+
this._summary = null;
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
54
57
|
|
|
55
58
|
let count;
|
|
56
59
|
if (this._provider && this._provider.selectionCountOverride !== undefined) {
|
|
@@ -74,7 +77,7 @@ class Summary extends LocalizeCoreElement(SelectionObserverMixin(LitElement)) {
|
|
|
74
77
|
}
|
|
75
78
|
}
|
|
76
79
|
|
|
77
|
-
count = this.selectionInfo.state === SelectionInfo.states.allPages ?
|
|
80
|
+
count = (this._provider && this.selectionInfo.state === SelectionInfo.states.allPages) ?
|
|
78
81
|
this._provider.itemCount : this.selectionInfo.keys.length;
|
|
79
82
|
|
|
80
83
|
if (this.selectionInfo.state === SelectionInfo.states.none && this.noSelectionText) {
|
|
@@ -292,6 +292,10 @@ If your table supports row selection, apply the `selected` attribute to `<tr>` r
|
|
|
292
292
|
</tr>
|
|
293
293
|
```
|
|
294
294
|
|
|
295
|
+
## Pageable Tables
|
|
296
|
+
|
|
297
|
+
Load-More paging functionality can be implemented in tables by placing a `d2l-pager-load-more` in `d2l-table-wrapper`'s `pager` slot. The consumer must handle the `d2l-pager-load-more` event by loading more items, updating the pager state, and signalling completion by calling `complete()` on the event detail. Focus will be automatically moved on the first new item once complete. See [Paging](../../components/paging) for more details.
|
|
298
|
+
|
|
295
299
|
## Table Controls [d2l-table-controls]
|
|
296
300
|
|
|
297
301
|
The `d2l-table-controls` component can be placed in the `d2l-table-wrapper`'s `controls` slot to provide a selection summary, a slot for `d2l-selection-action`s, and overflow-group behaviour.
|
|
@@ -4,14 +4,16 @@ import '../../dropdown/dropdown-button-subtle.js';
|
|
|
4
4
|
import '../../dropdown/dropdown-menu.js';
|
|
5
5
|
import '../../menu/menu.js';
|
|
6
6
|
import '../../menu/menu-item.js';
|
|
7
|
+
import '../../paging/pager-load-more.js';
|
|
7
8
|
import '../../selection/selection-action.js';
|
|
8
9
|
import '../../selection/selection-action-dropdown.js';
|
|
9
10
|
import '../../selection/selection-action-menu-item.js';
|
|
10
11
|
import '../../selection/selection-input.js';
|
|
11
12
|
|
|
12
|
-
import { css, html } from 'lit';
|
|
13
|
+
import { css, html, nothing } from 'lit';
|
|
13
14
|
import { tableStyles, TableWrapper } from '../table-wrapper.js';
|
|
14
15
|
import { DemoPassthroughMixin } from '../../demo/demo-passthrough-mixin.js';
|
|
16
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
15
17
|
import { RtlMixin } from '../../../mixins/rtl/rtl-mixin.js';
|
|
16
18
|
|
|
17
19
|
const fruits = ['Apples', 'Oranges', 'Bananas'];
|
|
@@ -33,11 +35,12 @@ class TestTable extends RtlMixin(DemoPassthroughMixin(TableWrapper, 'd2l-table-w
|
|
|
33
35
|
|
|
34
36
|
static get properties() {
|
|
35
37
|
return {
|
|
38
|
+
paging: { type: Boolean, reflect: true },
|
|
36
39
|
stickyControls: { attribute: 'sticky-controls', type: Boolean, reflect: true },
|
|
37
40
|
visibleBackground: { attribute: 'visible-background', type: Boolean, reflect: true },
|
|
38
41
|
_data: { state: true },
|
|
39
|
-
_sortField: {
|
|
40
|
-
_sortDesc: {
|
|
42
|
+
_sortField: { state: true },
|
|
43
|
+
_sortDesc: { state: true }
|
|
41
44
|
};
|
|
42
45
|
}
|
|
43
46
|
|
|
@@ -54,7 +57,13 @@ class TestTable extends RtlMixin(DemoPassthroughMixin(TableWrapper, 'd2l-table-w
|
|
|
54
57
|
|
|
55
58
|
constructor() {
|
|
56
59
|
super();
|
|
60
|
+
|
|
61
|
+
this.paging = false;
|
|
62
|
+
this.stickyControls = false;
|
|
63
|
+
this.visibleBackground = false;
|
|
57
64
|
this._data = data();
|
|
65
|
+
this._sortField = undefined;
|
|
66
|
+
this._sortDesc = false;
|
|
58
67
|
}
|
|
59
68
|
|
|
60
69
|
render() {
|
|
@@ -65,7 +74,7 @@ class TestTable extends RtlMixin(DemoPassthroughMixin(TableWrapper, 'd2l-table-w
|
|
|
65
74
|
return a.fruit[this._sortField] - b.fruit[this._sortField];
|
|
66
75
|
});
|
|
67
76
|
return html`
|
|
68
|
-
<d2l-table-wrapper item-count="500">
|
|
77
|
+
<d2l-table-wrapper item-count="${ifDefined(this.paging ? 500 : undefined)}">
|
|
69
78
|
<d2l-table-controls slot="controls" ?no-sticky="${!this.stickyControls}" select-all-pages-allowed>
|
|
70
79
|
<d2l-selection-action
|
|
71
80
|
text="Sticky controls"
|
|
@@ -112,10 +121,24 @@ class TestTable extends RtlMixin(DemoPassthroughMixin(TableWrapper, 'd2l-table-w
|
|
|
112
121
|
`)}
|
|
113
122
|
</tbody>
|
|
114
123
|
</table>
|
|
124
|
+
${this.paging ? html`<d2l-pager-load-more slot="pager"
|
|
125
|
+
has-more
|
|
126
|
+
page-size="3"
|
|
127
|
+
@d2l-pager-load-more="${this._handlePagerLoadMore}"
|
|
128
|
+
></d2l-pager-load-more>` : nothing}
|
|
115
129
|
</d2l-table-wrapper>
|
|
116
130
|
`;
|
|
117
131
|
}
|
|
118
132
|
|
|
133
|
+
_handlePagerLoadMore(e) {
|
|
134
|
+
const startIndex = this._data.length + 1;
|
|
135
|
+
for (let i = 0; i < e.target.pageSize; i++) {
|
|
136
|
+
this._data.push({ name: `Country ${startIndex + i}`, fruit: { 'apples': 8534, 'oranges': 1325, 'bananas': 78382756 }, selected: false });
|
|
137
|
+
}
|
|
138
|
+
this.requestUpdate();
|
|
139
|
+
e.detail.complete();
|
|
140
|
+
}
|
|
141
|
+
|
|
119
142
|
_handleSort(e) {
|
|
120
143
|
const field = e.target.innerText.toLowerCase();
|
|
121
144
|
const desc = e.target.hasAttribute('desc');
|
|
@@ -41,6 +41,13 @@
|
|
|
41
41
|
</template>
|
|
42
42
|
</d2l-demo-snippet>
|
|
43
43
|
|
|
44
|
+
<h2>Default, Paging</h2>
|
|
45
|
+
<d2l-demo-snippet>
|
|
46
|
+
<template>
|
|
47
|
+
<d2l-test-table type="default" sticky-controls paging></d2l-test-table>
|
|
48
|
+
</template>
|
|
49
|
+
</d2l-demo-snippet>
|
|
50
|
+
|
|
44
51
|
<h2>Default, Visible controls background</h2>
|
|
45
52
|
<d2l-demo-snippet>
|
|
46
53
|
<template>
|
|
@@ -166,6 +166,7 @@ export const tableStyles = css`
|
|
|
166
166
|
* Wraps a native <table> element, providing styling and scroll buttons for overflow.
|
|
167
167
|
* @slot - Content to wrap
|
|
168
168
|
* @slot controls - Slot for `d2l-table-controls` to be rendered above the table
|
|
169
|
+
* @slot pager - Slot for `d2l-pager-load-more` to be rendered below the table
|
|
169
170
|
*/
|
|
170
171
|
export class TableWrapper extends RtlMixin(PageableMixin(SelectionMixin(LitElement))) {
|
|
171
172
|
|
|
@@ -246,6 +247,9 @@ export class TableWrapper extends RtlMixin(PageableMixin(SelectionMixin(LitEleme
|
|
|
246
247
|
top: calc(-7px - var(--d2l-table-border-radius)); /* 6px for the d2l-table-controls margin-bottom, 1px overlap to fix zoom issues */
|
|
247
248
|
width: 100%;
|
|
248
249
|
}
|
|
250
|
+
slot[name="pager"]::slotted(*) {
|
|
251
|
+
margin-top: 12px;
|
|
252
|
+
}
|
|
249
253
|
`;
|
|
250
254
|
}
|
|
251
255
|
|
|
@@ -279,6 +283,7 @@ export class TableWrapper extends RtlMixin(PageableMixin(SelectionMixin(LitEleme
|
|
|
279
283
|
<slot name="controls" @slotchange="${this._handleControlsSlotChange}"></slot>
|
|
280
284
|
${this.stickyHeaders && this._controlsScrolled ? html`<div class="d2l-sticky-headers-backdrop"></div>` : nothing}
|
|
281
285
|
${this.stickyHeaders ? slot : html`<d2l-scroll-wrapper>${slot}</d2l-scroll-wrapper>`}
|
|
286
|
+
${this._renderPagerContainer()}
|
|
282
287
|
`;
|
|
283
288
|
}
|
|
284
289
|
|
package/custom-elements.json
CHANGED
|
@@ -10262,6 +10262,68 @@
|
|
|
10262
10262
|
}
|
|
10263
10263
|
]
|
|
10264
10264
|
},
|
|
10265
|
+
{
|
|
10266
|
+
"name": "d2l-demo-pageable",
|
|
10267
|
+
"path": "./components/selection/demo/demo-selection.js",
|
|
10268
|
+
"attributes": [
|
|
10269
|
+
{
|
|
10270
|
+
"name": "item-count",
|
|
10271
|
+
"description": "Total number of items. If not specified, features like select-all-pages will be disabled.",
|
|
10272
|
+
"type": "number"
|
|
10273
|
+
}
|
|
10274
|
+
],
|
|
10275
|
+
"properties": [
|
|
10276
|
+
{
|
|
10277
|
+
"name": "itemCount",
|
|
10278
|
+
"attribute": "item-count",
|
|
10279
|
+
"description": "Total number of items. If not specified, features like select-all-pages will be disabled.",
|
|
10280
|
+
"type": "number"
|
|
10281
|
+
}
|
|
10282
|
+
]
|
|
10283
|
+
},
|
|
10284
|
+
{
|
|
10285
|
+
"name": "d2l-demo-selection-pageable",
|
|
10286
|
+
"path": "./components/selection/demo/demo-selection.js",
|
|
10287
|
+
"attributes": [
|
|
10288
|
+
{
|
|
10289
|
+
"name": "selection-count-override",
|
|
10290
|
+
"description": "ADVANCED: Temporary optional parameter used to override existing count. Will be removed soon, use with caution.",
|
|
10291
|
+
"type": "number"
|
|
10292
|
+
},
|
|
10293
|
+
{
|
|
10294
|
+
"name": "selection-single",
|
|
10295
|
+
"description": "Whether to render with single selection behaviour. If `selection-single` is specified, the nested `d2l-selection-input` elements will render radios instead of checkboxes, and the selection component will maintain a single selected item.",
|
|
10296
|
+
"type": "boolean",
|
|
10297
|
+
"default": "false"
|
|
10298
|
+
},
|
|
10299
|
+
{
|
|
10300
|
+
"name": "item-count",
|
|
10301
|
+
"description": "Total number of items. If not specified, features like select-all-pages will be disabled.",
|
|
10302
|
+
"type": "number"
|
|
10303
|
+
}
|
|
10304
|
+
],
|
|
10305
|
+
"properties": [
|
|
10306
|
+
{
|
|
10307
|
+
"name": "selectionCountOverride",
|
|
10308
|
+
"attribute": "selection-count-override",
|
|
10309
|
+
"description": "ADVANCED: Temporary optional parameter used to override existing count. Will be removed soon, use with caution.",
|
|
10310
|
+
"type": "number"
|
|
10311
|
+
},
|
|
10312
|
+
{
|
|
10313
|
+
"name": "selectionSingle",
|
|
10314
|
+
"attribute": "selection-single",
|
|
10315
|
+
"description": "Whether to render with single selection behaviour. If `selection-single` is specified, the nested `d2l-selection-input` elements will render radios instead of checkboxes, and the selection component will maintain a single selected item.",
|
|
10316
|
+
"type": "boolean",
|
|
10317
|
+
"default": "false"
|
|
10318
|
+
},
|
|
10319
|
+
{
|
|
10320
|
+
"name": "itemCount",
|
|
10321
|
+
"attribute": "item-count",
|
|
10322
|
+
"description": "Total number of items. If not specified, features like select-all-pages will be disabled.",
|
|
10323
|
+
"type": "number"
|
|
10324
|
+
}
|
|
10325
|
+
]
|
|
10326
|
+
},
|
|
10265
10327
|
{
|
|
10266
10328
|
"name": "d2l-selection-action-dropdown",
|
|
10267
10329
|
"path": "./components/selection/selection-action-dropdown.js",
|
|
@@ -10971,7 +11033,21 @@
|
|
|
10971
11033
|
"name": "item-count",
|
|
10972
11034
|
"description": "Total number of items. If not specified, features like select-all-pages will be disabled.",
|
|
10973
11035
|
"type": "number"
|
|
10974
|
-
}
|
|
11036
|
+
}
|
|
11037
|
+
],
|
|
11038
|
+
"properties": [
|
|
11039
|
+
{
|
|
11040
|
+
"name": "itemCount",
|
|
11041
|
+
"attribute": "item-count",
|
|
11042
|
+
"description": "Total number of items. If not specified, features like select-all-pages will be disabled.",
|
|
11043
|
+
"type": "number"
|
|
11044
|
+
}
|
|
11045
|
+
]
|
|
11046
|
+
},
|
|
11047
|
+
{
|
|
11048
|
+
"name": "d2l-test-selection-pageable",
|
|
11049
|
+
"path": "./components/selection/test/selection-component.js",
|
|
11050
|
+
"attributes": [
|
|
10975
11051
|
{
|
|
10976
11052
|
"name": "selection-count-override",
|
|
10977
11053
|
"description": "ADVANCED: Temporary optional parameter used to override existing count. Will be removed soon, use with caution.",
|
|
@@ -10982,15 +11058,14 @@
|
|
|
10982
11058
|
"description": "Whether to render with single selection behaviour. If `selection-single` is specified, the nested `d2l-selection-input` elements will render radios instead of checkboxes, and the selection component will maintain a single selected item.",
|
|
10983
11059
|
"type": "boolean",
|
|
10984
11060
|
"default": "false"
|
|
10985
|
-
}
|
|
10986
|
-
],
|
|
10987
|
-
"properties": [
|
|
11061
|
+
},
|
|
10988
11062
|
{
|
|
10989
|
-
"name": "
|
|
10990
|
-
"attribute": "item-count",
|
|
11063
|
+
"name": "item-count",
|
|
10991
11064
|
"description": "Total number of items. If not specified, features like select-all-pages will be disabled.",
|
|
10992
11065
|
"type": "number"
|
|
10993
|
-
}
|
|
11066
|
+
}
|
|
11067
|
+
],
|
|
11068
|
+
"properties": [
|
|
10994
11069
|
{
|
|
10995
11070
|
"name": "selectionCountOverride",
|
|
10996
11071
|
"attribute": "selection-count-override",
|
|
@@ -11003,6 +11078,12 @@
|
|
|
11003
11078
|
"description": "Whether to render with single selection behaviour. If `selection-single` is specified, the nested `d2l-selection-input` elements will render radios instead of checkboxes, and the selection component will maintain a single selected item.",
|
|
11004
11079
|
"type": "boolean",
|
|
11005
11080
|
"default": "false"
|
|
11081
|
+
},
|
|
11082
|
+
{
|
|
11083
|
+
"name": "itemCount",
|
|
11084
|
+
"attribute": "item-count",
|
|
11085
|
+
"description": "Total number of items. If not specified, features like select-all-pages will be disabled.",
|
|
11086
|
+
"type": "number"
|
|
11006
11087
|
}
|
|
11007
11088
|
]
|
|
11008
11089
|
},
|
|
@@ -11413,13 +11494,20 @@
|
|
|
11413
11494
|
"name": "d2l-test-table",
|
|
11414
11495
|
"path": "./components/table/demo/table-test.js",
|
|
11415
11496
|
"attributes": [
|
|
11497
|
+
{
|
|
11498
|
+
"name": "paging",
|
|
11499
|
+
"type": "boolean",
|
|
11500
|
+
"default": "false"
|
|
11501
|
+
},
|
|
11416
11502
|
{
|
|
11417
11503
|
"name": "sticky-controls",
|
|
11418
|
-
"type": "boolean"
|
|
11504
|
+
"type": "boolean",
|
|
11505
|
+
"default": "false"
|
|
11419
11506
|
},
|
|
11420
11507
|
{
|
|
11421
11508
|
"name": "visible-background",
|
|
11422
|
-
"type": "boolean"
|
|
11509
|
+
"type": "boolean",
|
|
11510
|
+
"default": "false"
|
|
11423
11511
|
},
|
|
11424
11512
|
{
|
|
11425
11513
|
"name": "no-column-border",
|
|
@@ -11457,15 +11545,23 @@
|
|
|
11457
11545
|
}
|
|
11458
11546
|
],
|
|
11459
11547
|
"properties": [
|
|
11548
|
+
{
|
|
11549
|
+
"name": "paging",
|
|
11550
|
+
"attribute": "paging",
|
|
11551
|
+
"type": "boolean",
|
|
11552
|
+
"default": "false"
|
|
11553
|
+
},
|
|
11460
11554
|
{
|
|
11461
11555
|
"name": "stickyControls",
|
|
11462
11556
|
"attribute": "sticky-controls",
|
|
11463
|
-
"type": "boolean"
|
|
11557
|
+
"type": "boolean",
|
|
11558
|
+
"default": "false"
|
|
11464
11559
|
},
|
|
11465
11560
|
{
|
|
11466
11561
|
"name": "visibleBackground",
|
|
11467
11562
|
"attribute": "visible-background",
|
|
11468
|
-
"type": "boolean"
|
|
11563
|
+
"type": "boolean",
|
|
11564
|
+
"default": "false"
|
|
11469
11565
|
},
|
|
11470
11566
|
{
|
|
11471
11567
|
"name": "noColumnBorder",
|
|
@@ -11516,6 +11612,10 @@
|
|
|
11516
11612
|
{
|
|
11517
11613
|
"name": "controls",
|
|
11518
11614
|
"description": "Slot for `d2l-table-controls` to be rendered above the table"
|
|
11615
|
+
},
|
|
11616
|
+
{
|
|
11617
|
+
"name": "pager",
|
|
11618
|
+
"description": "Slot for `d2l-pager-load-more` to be rendered below the table"
|
|
11519
11619
|
}
|
|
11520
11620
|
]
|
|
11521
11621
|
},
|
|
@@ -11738,6 +11838,10 @@
|
|
|
11738
11838
|
{
|
|
11739
11839
|
"name": "controls",
|
|
11740
11840
|
"description": "Slot for `d2l-table-controls` to be rendered above the table"
|
|
11841
|
+
},
|
|
11842
|
+
{
|
|
11843
|
+
"name": "pager",
|
|
11844
|
+
"description": "Slot for `d2l-pager-load-more` to be rendered below the table"
|
|
11741
11845
|
}
|
|
11742
11846
|
]
|
|
11743
11847
|
},
|
|
@@ -11745,6 +11849,10 @@
|
|
|
11745
11849
|
"name": "d2l-test-table-controls-visual-diff",
|
|
11746
11850
|
"path": "./components/table/test/table-test-controls-visual-diff.js"
|
|
11747
11851
|
},
|
|
11852
|
+
{
|
|
11853
|
+
"name": "d2l-test-table-paging-visual-diff",
|
|
11854
|
+
"path": "./components/table/test/table-test-paging-visual-diff.js"
|
|
11855
|
+
},
|
|
11748
11856
|
{
|
|
11749
11857
|
"name": "d2l-test-table-sticky-visual-diff",
|
|
11750
11858
|
"path": "./components/table/test/table-test-sticky-visual-diff.js"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.111.0",
|
|
4
4
|
"description": "A collection of accessible, free, open-source web components for building Brightspace applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://github.com/BrightspaceUI/core.git",
|