@brightspace-ui/core 2.111.2 → 2.111.3
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.
|
@@ -486,6 +486,7 @@ When using lists, use the list-specific `d2l-list-controls` instead, which exten
|
|
|
486
486
|
| Property | Type | Description |
|
|
487
487
|
|---|---|---|
|
|
488
488
|
| `no-selection` | Boolean | Whether to render select-all and selection summary |
|
|
489
|
+
| `no-selection-text` | String | Text to display if no items are selected (overrides pageable counts) |
|
|
489
490
|
| `no-sticky` | Boolean | Disables sticky positioning for the controls |
|
|
490
491
|
| `select-all-pages-allowed` | Boolean | Whether all pages can be selected |
|
|
491
492
|
<!-- docs: end hidden content -->
|
|
@@ -24,6 +24,11 @@ export class SelectionControls extends PageableSubscriberMixin(SelectionObserver
|
|
|
24
24
|
* @type {boolean}
|
|
25
25
|
*/
|
|
26
26
|
noSelection: { type: Boolean, attribute: 'no-selection' },
|
|
27
|
+
/**
|
|
28
|
+
* ADVANCED: Text to display if no items are selected (overrides pageable counts)
|
|
29
|
+
* @type {string}
|
|
30
|
+
*/
|
|
31
|
+
noSelectionText: { type: String, attribute: 'no-selection-text' },
|
|
27
32
|
/**
|
|
28
33
|
* Disables sticky positioning for the controls
|
|
29
34
|
* @type {boolean}
|
|
@@ -150,8 +155,11 @@ export class SelectionControls extends PageableSubscriberMixin(SelectionObserver
|
|
|
150
155
|
if (changedProperties.has('noSticky')) {
|
|
151
156
|
this._stickyObserverUpdate();
|
|
152
157
|
}
|
|
153
|
-
|
|
154
|
-
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
willUpdate(changedProperties) {
|
|
161
|
+
if (changedProperties.has('noSelectionText') || changedProperties.has('_pageableInfo')) {
|
|
162
|
+
this._noSelectionText = this.noSelectionText || this._getNoSelectionText();
|
|
155
163
|
}
|
|
156
164
|
}
|
|
157
165
|
|
|
@@ -44,7 +44,7 @@ class Summary extends LocalizeCoreElement(SelectionObserverMixin(LitElement)) {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
willUpdate(changedProperties) {
|
|
47
|
-
if (changedProperties.has('_provider') || changedProperties.has('selectionInfo')) {
|
|
47
|
+
if (changedProperties.has('_provider') || changedProperties.has('selectionInfo') || changedProperties.has('noSelectionText')) {
|
|
48
48
|
this._updateSelectSummary();
|
|
49
49
|
}
|
|
50
50
|
}
|
package/custom-elements.json
CHANGED
|
@@ -8014,6 +8014,11 @@
|
|
|
8014
8014
|
"path": "./components/list/list-controls.js",
|
|
8015
8015
|
"description": "Controls for list components containing select-all, etc.",
|
|
8016
8016
|
"attributes": [
|
|
8017
|
+
{
|
|
8018
|
+
"name": "no-selection-text",
|
|
8019
|
+
"description": "ADVANCED: Text to display if no items are selected (overrides pageable counts)",
|
|
8020
|
+
"type": "string"
|
|
8021
|
+
},
|
|
8017
8022
|
{
|
|
8018
8023
|
"name": "no-selection",
|
|
8019
8024
|
"description": "Whether to render select-all and selection summary",
|
|
@@ -8044,6 +8049,12 @@
|
|
|
8044
8049
|
}
|
|
8045
8050
|
],
|
|
8046
8051
|
"properties": [
|
|
8052
|
+
{
|
|
8053
|
+
"name": "noSelectionText",
|
|
8054
|
+
"attribute": "no-selection-text",
|
|
8055
|
+
"description": "ADVANCED: Text to display if no items are selected (overrides pageable counts)",
|
|
8056
|
+
"type": "string"
|
|
8057
|
+
},
|
|
8047
8058
|
{
|
|
8048
8059
|
"name": "noSelection",
|
|
8049
8060
|
"attribute": "no-selection",
|
|
@@ -10639,6 +10650,11 @@
|
|
|
10639
10650
|
"path": "./components/selection/selection-controls.js",
|
|
10640
10651
|
"description": "Controls for selection components (e.g. list, table-wrapper) containing select-all, etc.",
|
|
10641
10652
|
"attributes": [
|
|
10653
|
+
{
|
|
10654
|
+
"name": "no-selection-text",
|
|
10655
|
+
"description": "ADVANCED: Text to display if no items are selected (overrides pageable counts)",
|
|
10656
|
+
"type": "string"
|
|
10657
|
+
},
|
|
10642
10658
|
{
|
|
10643
10659
|
"name": "no-selection",
|
|
10644
10660
|
"description": "Whether to render select-all and selection summary",
|
|
@@ -10669,6 +10685,12 @@
|
|
|
10669
10685
|
}
|
|
10670
10686
|
],
|
|
10671
10687
|
"properties": [
|
|
10688
|
+
{
|
|
10689
|
+
"name": "noSelectionText",
|
|
10690
|
+
"attribute": "no-selection-text",
|
|
10691
|
+
"description": "ADVANCED: Text to display if no items are selected (overrides pageable counts)",
|
|
10692
|
+
"type": "string"
|
|
10693
|
+
},
|
|
10672
10694
|
{
|
|
10673
10695
|
"name": "noSelection",
|
|
10674
10696
|
"attribute": "no-selection",
|
|
@@ -11665,6 +11687,11 @@
|
|
|
11665
11687
|
"path": "./components/table/table-controls.js",
|
|
11666
11688
|
"description": "Controls for table components containing a selection summary and selection actions.",
|
|
11667
11689
|
"attributes": [
|
|
11690
|
+
{
|
|
11691
|
+
"name": "no-selection-text",
|
|
11692
|
+
"description": "ADVANCED: Text to display if no items are selected (overrides pageable counts)",
|
|
11693
|
+
"type": "string"
|
|
11694
|
+
},
|
|
11668
11695
|
{
|
|
11669
11696
|
"name": "no-selection",
|
|
11670
11697
|
"description": "Whether to render the selection summary",
|
|
@@ -11695,6 +11722,12 @@
|
|
|
11695
11722
|
}
|
|
11696
11723
|
],
|
|
11697
11724
|
"properties": [
|
|
11725
|
+
{
|
|
11726
|
+
"name": "noSelectionText",
|
|
11727
|
+
"attribute": "no-selection-text",
|
|
11728
|
+
"description": "ADVANCED: Text to display if no items are selected (overrides pageable counts)",
|
|
11729
|
+
"type": "string"
|
|
11730
|
+
},
|
|
11698
11731
|
{
|
|
11699
11732
|
"name": "noSelection",
|
|
11700
11733
|
"attribute": "no-selection",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.111.
|
|
3
|
+
"version": "2.111.3",
|
|
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",
|