@brightspace-ui/core 3.149.1 → 3.150.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/README.md +1 -0
- package/components/menu/menu-item-radio.js +1 -1
- package/components/menu/menu-item-selectable-styles.js +0 -1
- package/components/sorting/README.md +89 -0
- package/components/sorting/demo/sort.html +37 -0
- package/components/sorting/sort-item.js +22 -0
- package/components/sorting/sort.js +110 -0
- package/custom-elements.json +135 -0
- package/lang/ar.js +2 -0
- package/lang/cy.js +2 -0
- package/lang/da.js +2 -0
- package/lang/de.js +2 -0
- package/lang/en-gb.js +2 -0
- package/lang/en.js +2 -0
- package/lang/es-es.js +2 -0
- package/lang/es.js +2 -0
- package/lang/fr-fr.js +2 -0
- package/lang/fr.js +2 -0
- package/lang/haw.js +2 -0
- package/lang/hi.js +2 -0
- package/lang/ja.js +2 -0
- package/lang/ko.js +2 -0
- package/lang/mi.js +2 -0
- package/lang/nl.js +2 -0
- package/lang/pt.js +2 -0
- package/lang/sv.js +2 -0
- package/lang/tr.js +2 -0
- package/lang/zh-cn.js +2 -0
- package/lang/zh-tw.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
@@ -50,6 +50,7 @@ npm install @brightspace-ui/core
|
|
50
50
|
* [Selection](components/selection/): components for selection and bulk actions
|
51
51
|
* [Scroll Wrapper](components/scroll-wrapper/): arrows to scroll content horizontally
|
52
52
|
* [Skeleton](components/skeleton/): apply low-fidelity skeletons to your application as it loads
|
53
|
+
* [Sort](components/sorting/): menu for adjusting the sort order of data in a list
|
53
54
|
* [Status Indicator](components/status-indicator/): status-indicator components
|
54
55
|
* [Switch](components/switch/): switch component with on/off semantics
|
55
56
|
* [Table](components/table/): table styles, column sorting and overflow handling
|
@@ -7,7 +7,7 @@ import { menuItemSelectableStyles } from './menu-item-selectable-styles.js';
|
|
7
7
|
* A menu item component used for radio selection. Only one radio item in a given d2l-menu may be selected at once (i.e., selecting one option will deselect the other selected "d2l-menu-item-radio" item).
|
8
8
|
* @slot supporting - Allows supporting information to be displayed on the right-most side of the menu item
|
9
9
|
*/
|
10
|
-
class MenuItemRadio extends MenuItemRadioMixin(LitElement) {
|
10
|
+
export class MenuItemRadio extends MenuItemRadioMixin(LitElement) {
|
11
11
|
|
12
12
|
static get styles() {
|
13
13
|
return menuItemSelectableStyles;
|
@@ -0,0 +1,89 @@
|
|
1
|
+
# Sorting
|
2
|
+
|
3
|
+
The sort menu allows the user to adjust the sort order of data in a list.
|
4
|
+
|
5
|
+
<!-- docs: demo align:flex-start autoOpen:true autoSize:false size:medium -->
|
6
|
+
```html
|
7
|
+
<script type="module">
|
8
|
+
import '@brightspace-ui/core/components/sorting/sort.js';
|
9
|
+
import '@brightspace-ui/core/components/sorting/sort-item.js';
|
10
|
+
</script>
|
11
|
+
<d2l-sort>
|
12
|
+
<d2l-sort-item text="Most Relevant" selected></d2l-sort-item>
|
13
|
+
<d2l-sort-item text="Recently Updated"></d2l-sort-item>
|
14
|
+
<d2l-sort-item text="Highest Rated"></d2l-sort-item>
|
15
|
+
</d2l-sort>
|
16
|
+
```
|
17
|
+
|
18
|
+
## Best Practices
|
19
|
+
|
20
|
+
<!-- docs: start best practices -->
|
21
|
+
<!-- docs: start dos -->
|
22
|
+
* Make the Sort the right-most component in a group of Search, Filters & Sort controls
|
23
|
+
* Carefully consider the user’s workflow before adding a reversible order to the sort. Most sort options do not need to be reversible.
|
24
|
+
* Write Sort option labels in Title Case
|
25
|
+
* Make Sort labels specific rather than general — “Sort: Course Title” is better than “Sort: Alphabetical”.
|
26
|
+
<!-- docs: end dos -->
|
27
|
+
|
28
|
+
<!-- docs: start donts -->
|
29
|
+
* Don’t include an excessive number of sorting options — every additional option increases the cognitive load on the user when making a decision
|
30
|
+
* Don’t make phrasings too similar — the first word of the option should be unique (“Last Accessed”, “Enrolment Date”, “Date Pinned”)
|
31
|
+
* Don’t use when sorting table data. If the data is presented with table column headers, use [Sortable Column Buttons](../table#d2l-table-col-sort-button) to apply sorting.
|
32
|
+
<!-- docs: end donts -->
|
33
|
+
<!-- docs: end best practices -->
|
34
|
+
|
35
|
+
## Sort [d2l-sort]
|
36
|
+
|
37
|
+
The `<d2l-sort>` element is a required wrapper around multiple `<d2l-sort-item>` elements.
|
38
|
+
|
39
|
+
<!-- docs: demo code properties name:d2l-sort sandboxTitle:'Sort' align:flex-start autoSize:false size:medium -->
|
40
|
+
```html
|
41
|
+
<script type="module">
|
42
|
+
import '@brightspace-ui/core/components/sorting/sort.js';
|
43
|
+
import '@brightspace-ui/core/components/sorting/sort-item.js';
|
44
|
+
</script>
|
45
|
+
<d2l-sort>
|
46
|
+
<d2l-sort-item text="Most Relevant" value="relevant" selected></d2l-sort-item>
|
47
|
+
<d2l-sort-item text="Recently Updated" value="updated"></d2l-sort-item>
|
48
|
+
<d2l-sort-item text="Highest Rated" value="rating"></d2l-sort-item>
|
49
|
+
</d2l-sort>
|
50
|
+
```
|
51
|
+
|
52
|
+
<!-- docs: start hidden content -->
|
53
|
+
### Properties
|
54
|
+
|
55
|
+
| Property | Type | Description |
|
56
|
+
|---|---|---|
|
57
|
+
| `disabled` | Boolean | Disables the sort |
|
58
|
+
|
59
|
+
### Events
|
60
|
+
|
61
|
+
- `d2l-sort-change`: dispatched when the selected sort item changes
|
62
|
+
<!-- docs: end hidden content -->
|
63
|
+
|
64
|
+
## Sort Item [d2l-sort-item]
|
65
|
+
|
66
|
+
The `<d2l-sort-item>` element represents an option within its parent `<d2l-sort>`.
|
67
|
+
|
68
|
+
<!-- docs: demo code properties name:d2l-sort-item sandboxTitle:'Sort Item' align:flex-start autoSize:false size:medium -->
|
69
|
+
```html
|
70
|
+
<script type="module">
|
71
|
+
import '@brightspace-ui/core/components/sorting/sort.js';
|
72
|
+
import '@brightspace-ui/core/components/sorting/sort-item.js';
|
73
|
+
</script>
|
74
|
+
<d2l-sort opened>
|
75
|
+
<d2l-sort-item text="Most Relevant" value="relevant" selected></d2l-sort-item>
|
76
|
+
<d2l-sort-item text="Recently Updated" value="updated"></d2l-sort-item>
|
77
|
+
<d2l-sort-item text="Highest Rated" value="rating"></d2l-sort-item>
|
78
|
+
</d2l-sort>
|
79
|
+
```
|
80
|
+
|
81
|
+
<!-- docs: start hidden content -->
|
82
|
+
### Properties
|
83
|
+
|
84
|
+
| Property | Type | Description |
|
85
|
+
|---|---|---|
|
86
|
+
| `text` | String, required | Option text |
|
87
|
+
| `value` | String, required | Value of the option |
|
88
|
+
| `selected` | Boolean | Whether this is the selected sort option |
|
89
|
+
<!-- docs: end hidden content -->
|
@@ -0,0 +1,37 @@
|
|
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 '../sort.js';
|
10
|
+
import '../sort-item.js';
|
11
|
+
</script>
|
12
|
+
</head>
|
13
|
+
<body unresolved>
|
14
|
+
<d2l-demo-page page-title="Sorting">
|
15
|
+
<h2>Default</h2>
|
16
|
+
<d2l-demo-snippet>
|
17
|
+
<template>
|
18
|
+
<d2l-sort>
|
19
|
+
<d2l-sort-item text="Most Relevant" value="relevant"></d2l-sort-item>
|
20
|
+
<d2l-sort-item text="Recently Updated" value="updated"></d2l-sort-item>
|
21
|
+
<d2l-sort-item text="Highest Rated" value="rating"></d2l-sort-item>
|
22
|
+
</d2l-sort>
|
23
|
+
</template>
|
24
|
+
</d2l-demo-snippet>
|
25
|
+
<h2>Disabled</h2>
|
26
|
+
<d2l-demo-snippet>
|
27
|
+
<template>
|
28
|
+
<d2l-sort disabled>
|
29
|
+
<d2l-sort-item text="Most Relevant" value="relevant"></d2l-sort-item>
|
30
|
+
<d2l-sort-item text="Recently Updated" value="updated"></d2l-sort-item>
|
31
|
+
<d2l-sort-item text="Highest Rated" value="rating"></d2l-sort-item>
|
32
|
+
</d2l-sort>
|
33
|
+
</template>
|
34
|
+
</d2l-demo-snippet>
|
35
|
+
</d2l-demo-page>
|
36
|
+
</body>
|
37
|
+
</html>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { MenuItemRadio } from '../menu/menu-item-radio.js';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* An item within a <d2l-sort> component.
|
5
|
+
*/
|
6
|
+
class SortItem extends MenuItemRadio {
|
7
|
+
|
8
|
+
updated(changedProperties) {
|
9
|
+
super.updated(changedProperties);
|
10
|
+
// handles case where the text loads after initial render
|
11
|
+
if (changedProperties.has('text') && this.selected) {
|
12
|
+
/** @ignore */
|
13
|
+
this.dispatchEvent(new CustomEvent('d2l-sort-item-selected-text-change', {
|
14
|
+
bubbles: true,
|
15
|
+
composed: false
|
16
|
+
}));
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
}
|
21
|
+
|
22
|
+
customElements.define('d2l-sort-item', SortItem);
|
@@ -0,0 +1,110 @@
|
|
1
|
+
import '../dropdown/dropdown-button-subtle.js';
|
2
|
+
import '../dropdown/dropdown-menu.js';
|
3
|
+
import '../menu/menu.js';
|
4
|
+
import { css, html, LitElement } from 'lit';
|
5
|
+
import { FocusMixin } from '../../mixins/focus/focus-mixin.js';
|
6
|
+
import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
|
7
|
+
|
8
|
+
/**
|
9
|
+
* Allows the user to adjust the sort order of data in a list.
|
10
|
+
* @slot - Sort item components
|
11
|
+
* @fires d2l-sort-change - Dispatched when the selected sort item changes
|
12
|
+
*/
|
13
|
+
class Sort extends FocusMixin(LocalizeCoreElement(LitElement)) {
|
14
|
+
|
15
|
+
static properties = {
|
16
|
+
/**
|
17
|
+
* Disables the sort
|
18
|
+
* @type {boolean}
|
19
|
+
*/
|
20
|
+
disabled: { type: Boolean, reflect: true },
|
21
|
+
/** @ignore */
|
22
|
+
opened: { type: Boolean, reflect: true },
|
23
|
+
_selectedItemText: { state: true },
|
24
|
+
_selectedItemValue: { state: true },
|
25
|
+
};
|
26
|
+
|
27
|
+
static get styles() {
|
28
|
+
return css`
|
29
|
+
:host {
|
30
|
+
display: inline-block;
|
31
|
+
}
|
32
|
+
:host([hidden]) {
|
33
|
+
display: none;
|
34
|
+
}
|
35
|
+
::slotted(:not(d2l-sort-item)) {
|
36
|
+
display: none;
|
37
|
+
}
|
38
|
+
`;
|
39
|
+
}
|
40
|
+
|
41
|
+
constructor() {
|
42
|
+
super();
|
43
|
+
this.disabled = false;
|
44
|
+
this.opened = false;
|
45
|
+
this._selectedItemText = '';
|
46
|
+
this._selectedItemValue = '';
|
47
|
+
}
|
48
|
+
|
49
|
+
static get focusElementSelector() {
|
50
|
+
return 'd2l-dropdown-button-subtle';
|
51
|
+
}
|
52
|
+
|
53
|
+
render() {
|
54
|
+
return html`
|
55
|
+
<d2l-dropdown-button-subtle
|
56
|
+
?disabled="${this.disabled}"
|
57
|
+
text="${this.localize('components.sort.text', { selectedItemText: this._selectedItemText })}">
|
58
|
+
<d2l-dropdown-menu class="vdiff-target" ?opened="${this.opened}">
|
59
|
+
<d2l-menu
|
60
|
+
label="${this.localize('components.sort.label')}"
|
61
|
+
@d2l-menu-item-change="${this.#handleMenuItemChange}">
|
62
|
+
<slot
|
63
|
+
@d2l-sort-item-selected-text-change="${this.#recalculateState}"
|
64
|
+
@slotchange="${this.#handleSlotChange}"></slot>
|
65
|
+
</d2l-menu>
|
66
|
+
</d2l-dropdown-menu>
|
67
|
+
</d2l-dropdown-button-subtle>
|
68
|
+
`;
|
69
|
+
}
|
70
|
+
|
71
|
+
#getItems() {
|
72
|
+
const elems = this.shadowRoot?.querySelector('slot')?.assignedElements();
|
73
|
+
if (!elems) return [];
|
74
|
+
return elems.filter(el => el.tagName === 'D2L-SORT-ITEM');
|
75
|
+
}
|
76
|
+
|
77
|
+
#handleMenuItemChange(e) {
|
78
|
+
if (this._selectedItemValue === e.target.value) return;
|
79
|
+
|
80
|
+
this._selectedItemText = e.target.text;
|
81
|
+
this._selectedItemValue = e.target;
|
82
|
+
this.dispatchEvent(new CustomEvent(
|
83
|
+
'd2l-sort-change', {
|
84
|
+
detail: { value: e.detail.value }
|
85
|
+
}
|
86
|
+
));
|
87
|
+
}
|
88
|
+
|
89
|
+
#handleSlotChange() {
|
90
|
+
this.#recalculateState();
|
91
|
+
}
|
92
|
+
|
93
|
+
#recalculateState() {
|
94
|
+
const items = this.#getItems();
|
95
|
+
if (items.length === 0) return;
|
96
|
+
|
97
|
+
const selectedItems = items.filter(i => i.selected);
|
98
|
+
if (selectedItems.length === 0) {
|
99
|
+
items[0].selected = true;
|
100
|
+
selectedItems.push(items[0]);
|
101
|
+
}
|
102
|
+
|
103
|
+
const selectedItem = selectedItems[selectedItems.length - 1];
|
104
|
+
this._selectedItemText = selectedItem.text;
|
105
|
+
this._selectedItemValue = selectedItem.value;
|
106
|
+
}
|
107
|
+
|
108
|
+
}
|
109
|
+
|
110
|
+
customElements.define('d2l-sort', Sort);
|
package/custom-elements.json
CHANGED
@@ -12965,6 +12965,141 @@
|
|
12965
12965
|
}
|
12966
12966
|
]
|
12967
12967
|
},
|
12968
|
+
{
|
12969
|
+
"name": "d2l-sort-item",
|
12970
|
+
"path": "./components/sorting/sort-item.js",
|
12971
|
+
"description": "An item within a <d2l-sort> component.",
|
12972
|
+
"attributes": [
|
12973
|
+
{
|
12974
|
+
"name": "value",
|
12975
|
+
"description": "REQUIRED: The selectable item's value",
|
12976
|
+
"type": "string"
|
12977
|
+
},
|
12978
|
+
{
|
12979
|
+
"name": "selected",
|
12980
|
+
"description": "This will set the item to be selected by default",
|
12981
|
+
"type": "boolean",
|
12982
|
+
"default": "false"
|
12983
|
+
},
|
12984
|
+
{
|
12985
|
+
"name": "text",
|
12986
|
+
"description": "REQUIRED: Text displayed by the menu item",
|
12987
|
+
"type": "string"
|
12988
|
+
},
|
12989
|
+
{
|
12990
|
+
"name": "description",
|
12991
|
+
"description": "ACCESSIBILITY: A description of the menu item that will be used by screen readers for additional context",
|
12992
|
+
"type": "string"
|
12993
|
+
},
|
12994
|
+
{
|
12995
|
+
"name": "disabled",
|
12996
|
+
"description": "Disables the menu item",
|
12997
|
+
"type": "boolean",
|
12998
|
+
"default": "false"
|
12999
|
+
},
|
13000
|
+
{
|
13001
|
+
"name": "lines",
|
13002
|
+
"description": "The number of lines to display before truncating text with an ellipsis. Defaults to 2.",
|
13003
|
+
"type": "number",
|
13004
|
+
"default": "2"
|
13005
|
+
}
|
13006
|
+
],
|
13007
|
+
"properties": [
|
13008
|
+
{
|
13009
|
+
"name": "value",
|
13010
|
+
"attribute": "value",
|
13011
|
+
"description": "REQUIRED: The selectable item's value",
|
13012
|
+
"type": "string"
|
13013
|
+
},
|
13014
|
+
{
|
13015
|
+
"name": "selected",
|
13016
|
+
"attribute": "selected",
|
13017
|
+
"description": "This will set the item to be selected by default",
|
13018
|
+
"type": "boolean",
|
13019
|
+
"default": "false"
|
13020
|
+
},
|
13021
|
+
{
|
13022
|
+
"name": "text",
|
13023
|
+
"attribute": "text",
|
13024
|
+
"description": "REQUIRED: Text displayed by the menu item",
|
13025
|
+
"type": "string"
|
13026
|
+
},
|
13027
|
+
{
|
13028
|
+
"name": "description",
|
13029
|
+
"attribute": "description",
|
13030
|
+
"description": "ACCESSIBILITY: A description of the menu item that will be used by screen readers for additional context",
|
13031
|
+
"type": "string"
|
13032
|
+
},
|
13033
|
+
{
|
13034
|
+
"name": "disabled",
|
13035
|
+
"attribute": "disabled",
|
13036
|
+
"description": "Disables the menu item",
|
13037
|
+
"type": "boolean",
|
13038
|
+
"default": "false"
|
13039
|
+
},
|
13040
|
+
{
|
13041
|
+
"name": "lines",
|
13042
|
+
"attribute": "lines",
|
13043
|
+
"description": "The number of lines to display before truncating text with an ellipsis. Defaults to 2.",
|
13044
|
+
"type": "number",
|
13045
|
+
"default": "2"
|
13046
|
+
}
|
13047
|
+
],
|
13048
|
+
"events": [
|
13049
|
+
{
|
13050
|
+
"name": "d2l-menu-item-change",
|
13051
|
+
"description": "Dispatched when the selected menu item changes"
|
13052
|
+
},
|
13053
|
+
{
|
13054
|
+
"name": "d2l-menu-item-select",
|
13055
|
+
"description": "Dispatched when the menu item is selected"
|
13056
|
+
},
|
13057
|
+
{
|
13058
|
+
"name": "d2l-menu-item-visibility-change",
|
13059
|
+
"description": "Dispatched when the visibility of the menu item changes"
|
13060
|
+
}
|
13061
|
+
],
|
13062
|
+
"slots": [
|
13063
|
+
{
|
13064
|
+
"name": "supporting",
|
13065
|
+
"description": "Allows supporting information to be displayed on the right-most side of the menu item"
|
13066
|
+
}
|
13067
|
+
]
|
13068
|
+
},
|
13069
|
+
{
|
13070
|
+
"name": "d2l-sort",
|
13071
|
+
"path": "./components/sorting/sort.js",
|
13072
|
+
"description": "Allows the user to adjust the sort order of data in a list.",
|
13073
|
+
"properties": [
|
13074
|
+
{
|
13075
|
+
"name": "properties",
|
13076
|
+
"type": "{ disabled: boolean; opened: { type: BooleanConstructor; reflect: boolean; }; _selectedItemText: { state: boolean; }; _selectedItemValue: { state: boolean; }; }",
|
13077
|
+
"default": "{\"disabled\":{\"type\":\"Boolean\",\"reflect\":true},\"opened\":{\"type\":\"Boolean\",\"reflect\":true},\"_selectedItemText\":{\"state\":true},\"_selectedItemValue\":{\"state\":true}}"
|
13078
|
+
},
|
13079
|
+
{
|
13080
|
+
"name": "disabled",
|
13081
|
+
"type": "boolean",
|
13082
|
+
"default": "false"
|
13083
|
+
},
|
13084
|
+
{
|
13085
|
+
"name": "opened",
|
13086
|
+
"type": "boolean",
|
13087
|
+
"default": "false"
|
13088
|
+
}
|
13089
|
+
],
|
13090
|
+
"events": [
|
13091
|
+
{
|
13092
|
+
"name": "d2l-sort-change",
|
13093
|
+
"description": "Dispatched when the selected sort item changes"
|
13094
|
+
}
|
13095
|
+
],
|
13096
|
+
"slots": [
|
13097
|
+
{
|
13098
|
+
"name": "",
|
13099
|
+
"description": "Sort item components"
|
13100
|
+
}
|
13101
|
+
]
|
13102
|
+
},
|
12968
13103
|
{
|
12969
13104
|
"name": "d2l-status-indicator",
|
12970
13105
|
"path": "./components/status-indicator/status-indicator.js",
|
package/lang/ar.js
CHANGED
@@ -172,6 +172,8 @@ export default {
|
|
172
172
|
"components.selection.selected": "تم تحديد {count}",
|
173
173
|
"components.selection.selected-plus": "تم تحديد {count}+",
|
174
174
|
"components.selection-controls.label": "إجراءات التحديد",
|
175
|
+
"components.sort.label": "فرز",
|
176
|
+
"components.sort.text": "فرز: {selectedItemText}",
|
175
177
|
"components.switch.conditions": "يجب استيفاء الشروط",
|
176
178
|
"components.switch.hidden": "مخفي",
|
177
179
|
"components.switch.visible": "مرئي",
|
package/lang/cy.js
CHANGED
@@ -172,6 +172,8 @@ export default {
|
|
172
172
|
"components.selection.selected": "{count} wedi’u dewis.",
|
173
173
|
"components.selection.selected-plus": "{count}+ wedi’u dewis",
|
174
174
|
"components.selection-controls.label": "Camau gweithredu ar gyfer detholiad",
|
175
|
+
"components.sort.label": "Trefnu",
|
176
|
+
"components.sort.text": "Trefnu: {selectedItemText}",
|
175
177
|
"components.switch.conditions": "Rhaid bodloni’r amodau",
|
176
178
|
"components.switch.hidden": "Cudd",
|
177
179
|
"components.switch.visible": "Gweladwy",
|
package/lang/da.js
CHANGED
@@ -172,6 +172,8 @@ export default {
|
|
172
172
|
"components.selection.selected": "{count} valgt",
|
173
173
|
"components.selection.selected-plus": "{count}+ valgt",
|
174
174
|
"components.selection-controls.label": "Handlinger for valg",
|
175
|
+
"components.sort.label": "Sortér",
|
176
|
+
"components.sort.text": "Sortér: {selectedItemText}",
|
175
177
|
"components.switch.conditions": "Betingelserne skal være opfyldt",
|
176
178
|
"components.switch.hidden": "Skjult",
|
177
179
|
"components.switch.visible": "Synlig",
|
package/lang/de.js
CHANGED
@@ -172,6 +172,8 @@ export default {
|
|
172
172
|
"components.selection.selected": "{count} ausgewählt",
|
173
173
|
"components.selection.selected-plus": "{count}+ ausgewählt",
|
174
174
|
"components.selection-controls.label": "Aktionen für Auswahl",
|
175
|
+
"components.sort.label": "Sortieren",
|
176
|
+
"components.sort.text": "Sortieren: {selectedItemText}",
|
175
177
|
"components.switch.conditions": "Bedingungen müssen erfüllt sein",
|
176
178
|
"components.switch.hidden": "Ausgeblendet",
|
177
179
|
"components.switch.visible": "Sichtbar",
|
package/lang/en-gb.js
CHANGED
@@ -172,6 +172,8 @@ export default {
|
|
172
172
|
"components.selection.selected": "{count} selected",
|
173
173
|
"components.selection.selected-plus": "{count}+ selected",
|
174
174
|
"components.selection-controls.label": "Actions for selection",
|
175
|
+
"components.sort.label": "Sort",
|
176
|
+
"components.sort.text": "Sort: {selectedItemText}",
|
175
177
|
"components.switch.conditions": "Conditions must be met",
|
176
178
|
"components.switch.hidden": "Hidden",
|
177
179
|
"components.switch.visible": "Visible",
|
package/lang/en.js
CHANGED
@@ -172,6 +172,8 @@ export default {
|
|
172
172
|
"components.selection.selected": "{count} selected",
|
173
173
|
"components.selection.selected-plus": "{count}+ selected",
|
174
174
|
"components.selection-controls.label": "Actions for selection",
|
175
|
+
"components.sort.label": "Sort",
|
176
|
+
"components.sort.text": "Sort: {selectedItemText}",
|
175
177
|
"components.switch.conditions": "Conditions must be met",
|
176
178
|
"components.switch.hidden": "Hidden",
|
177
179
|
"components.switch.visible": "Visible",
|
package/lang/es-es.js
CHANGED
@@ -172,6 +172,8 @@ export default {
|
|
172
172
|
"components.selection.selected": "{count} seleccionados",
|
173
173
|
"components.selection.selected-plus": "{count}+ seleccionados",
|
174
174
|
"components.selection-controls.label": "Acciones para la selección",
|
175
|
+
"components.sort.label": "Ordenar",
|
176
|
+
"components.sort.text": "Ordenar: {selectedItemText}",
|
175
177
|
"components.switch.conditions": "Deben cumplirse las condiciones",
|
176
178
|
"components.switch.hidden": "Oculto",
|
177
179
|
"components.switch.visible": "Visible",
|
package/lang/es.js
CHANGED
@@ -172,6 +172,8 @@ export default {
|
|
172
172
|
"components.selection.selected": "{count} seleccionados",
|
173
173
|
"components.selection.selected-plus": "Más de {count} seleccionados",
|
174
174
|
"components.selection-controls.label": "Acciones para la selección",
|
175
|
+
"components.sort.label": "Ordenar",
|
176
|
+
"components.sort.text": "Ordenar: {selectedItemText}",
|
175
177
|
"components.switch.conditions": "Se deben cumplir las condiciones",
|
176
178
|
"components.switch.hidden": "Oculto",
|
177
179
|
"components.switch.visible": "Visible",
|
package/lang/fr-fr.js
CHANGED
@@ -172,6 +172,8 @@ export default {
|
|
172
172
|
"components.selection.selected": "{count} sélectionnés",
|
173
173
|
"components.selection.selected-plus": "{count}+ sélectionné(e)(s)",
|
174
174
|
"components.selection-controls.label": "Actions pour la sélection",
|
175
|
+
"components.sort.label": "Trier",
|
176
|
+
"components.sort.text": "Trier : {selectedItemText}",
|
175
177
|
"components.switch.conditions": "Les conditions doivent être remplies",
|
176
178
|
"components.switch.hidden": "Masqué",
|
177
179
|
"components.switch.visible": "Visible",
|
package/lang/fr.js
CHANGED
@@ -172,6 +172,8 @@ export default {
|
|
172
172
|
"components.selection.selected": "{count} sélectionné(s)",
|
173
173
|
"components.selection.selected-plus": "{count}+ sélectionné",
|
174
174
|
"components.selection-controls.label": "Actions à sélectionner",
|
175
|
+
"components.sort.label": "Trier",
|
176
|
+
"components.sort.text": "Trier : {selectedItemText}",
|
175
177
|
"components.switch.conditions": "Les conditions doivent être remplies",
|
176
178
|
"components.switch.hidden": "Masqué",
|
177
179
|
"components.switch.visible": "Visible",
|
package/lang/haw.js
CHANGED
@@ -172,6 +172,8 @@ export default {
|
|
172
172
|
"components.selection.selected": "{count} koho",
|
173
173
|
"components.selection.selected-plus": "{count}+ i koho ʻia",
|
174
174
|
"components.selection-controls.label": "Nā hana no ke koho",
|
175
|
+
"components.sort.label": "Hoʻokaʻawale",
|
176
|
+
"components.sort.text": "Hoʻokaʻawale: {selectedItemText}",
|
175
177
|
"components.switch.conditions": "Pono e hoʻokō i nā kūlana",
|
176
178
|
"components.switch.hidden": "Huna",
|
177
179
|
"components.switch.visible": "ʻIke ʻia",
|
package/lang/hi.js
CHANGED
@@ -172,6 +172,8 @@ export default {
|
|
172
172
|
"components.selection.selected": "{count} चयनित",
|
173
173
|
"components.selection.selected-plus": "{count} से अधिक चयनित",
|
174
174
|
"components.selection-controls.label": "चयन के लिए क्रियाएँ",
|
175
|
+
"components.sort.label": "सॉर्ट करें",
|
176
|
+
"components.sort.text": "सॉर्ट करें: {selectedItemText}",
|
175
177
|
"components.switch.conditions": "शर्तें पूरी होनी चाहिए",
|
176
178
|
"components.switch.hidden": "छुपा हुआ",
|
177
179
|
"components.switch.visible": "दृश्यमान",
|
package/lang/ja.js
CHANGED
@@ -164,6 +164,8 @@ export default {
|
|
164
164
|
"components.selection.selected": "{count} 個を選択済み",
|
165
165
|
"components.selection.selected-plus": "{count} 個以上を選択済み",
|
166
166
|
"components.selection-controls.label": "選択のアクション",
|
167
|
+
"components.sort.label": "並べ替え",
|
168
|
+
"components.sort.text": "並べ替え: {selectedItemText}",
|
167
169
|
"components.switch.conditions": "条件が一致する必要があります",
|
168
170
|
"components.switch.hidden": "非表示",
|
169
171
|
"components.switch.visible": "表示",
|
package/lang/ko.js
CHANGED
@@ -164,6 +164,8 @@ export default {
|
|
164
164
|
"components.selection.selected": "{count}개 선택됨",
|
165
165
|
"components.selection.selected-plus": "{count}+개 선택됨",
|
166
166
|
"components.selection-controls.label": "선택 작업",
|
167
|
+
"components.sort.label": "정렬",
|
168
|
+
"components.sort.text": "정렬: {selectedItemText}",
|
167
169
|
"components.switch.conditions": "조건을 충족해야 합니다",
|
168
170
|
"components.switch.hidden": "숨김",
|
169
171
|
"components.switch.visible": "표시",
|
package/lang/mi.js
CHANGED
@@ -172,6 +172,8 @@ export default {
|
|
172
172
|
"components.selection.selected": "{count} kua tīpakohia",
|
173
173
|
"components.selection.selected-plus": "{count}+ kua tīpakohia",
|
174
174
|
"components.selection-controls.label": "Ngā mahinga mō te tīpakonga",
|
175
|
+
"components.sort.label": "Kōmaka",
|
176
|
+
"components.sort.text": "Kōmaka: {selectedItemText}",
|
175
177
|
"components.switch.conditions": "Me tutuki ngā here",
|
176
178
|
"components.switch.hidden": "Hunaia",
|
177
179
|
"components.switch.visible": "Ka taea te kite",
|
package/lang/nl.js
CHANGED
@@ -172,6 +172,8 @@ export default {
|
|
172
172
|
"components.selection.selected": "{count} geselecteerd",
|
173
173
|
"components.selection.selected-plus": "Meer dan {count} geselecteerd",
|
174
174
|
"components.selection-controls.label": "Acties voor selectie",
|
175
|
+
"components.sort.label": "Sorteren",
|
176
|
+
"components.sort.text": "Sorteren: {selectedItemText}",
|
175
177
|
"components.switch.conditions": "Er moet aan de voorwaarden worden voldaan",
|
176
178
|
"components.switch.hidden": "Verborgen",
|
177
179
|
"components.switch.visible": "Zichtbaar",
|
package/lang/pt.js
CHANGED
@@ -172,6 +172,8 @@ export default {
|
|
172
172
|
"components.selection.selected": "{count} selecionados",
|
173
173
|
"components.selection.selected-plus": "Mais de {count} selecionados",
|
174
174
|
"components.selection-controls.label": "Ações para seleção",
|
175
|
+
"components.sort.label": "Classificar",
|
176
|
+
"components.sort.text": "Classificação: {selectedItemText}",
|
175
177
|
"components.switch.conditions": "As condições devem ser atendidas",
|
176
178
|
"components.switch.hidden": "Oculto",
|
177
179
|
"components.switch.visible": "Visível",
|
package/lang/sv.js
CHANGED
@@ -172,6 +172,8 @@ export default {
|
|
172
172
|
"components.selection.selected": "{count} valda",
|
173
173
|
"components.selection.selected-plus": "Över {count} valda",
|
174
174
|
"components.selection-controls.label": "Åtgärder för val",
|
175
|
+
"components.sort.label": "Sortera",
|
176
|
+
"components.sort.text": "Sortera: {selectedItemText}",
|
175
177
|
"components.switch.conditions": "Villkoren måste uppfyllas",
|
176
178
|
"components.switch.hidden": "Dold",
|
177
179
|
"components.switch.visible": "Synlig",
|
package/lang/tr.js
CHANGED
@@ -172,6 +172,8 @@ export default {
|
|
172
172
|
"components.selection.selected": "{count} öğe seçildi",
|
173
173
|
"components.selection.selected-plus": "{count}+ öğe seçildi",
|
174
174
|
"components.selection-controls.label": "Seçim için eylemler",
|
175
|
+
"components.sort.label": "Sırala",
|
176
|
+
"components.sort.text": "Sırala: {selectedItemText}",
|
175
177
|
"components.switch.conditions": "Koşullar karşılanmalıdır",
|
176
178
|
"components.switch.hidden": "Gizli",
|
177
179
|
"components.switch.visible": "Görünür",
|
package/lang/zh-cn.js
CHANGED
@@ -164,6 +164,8 @@ export default {
|
|
164
164
|
"components.selection.selected": "已选 {count}",
|
165
165
|
"components.selection.selected-plus": "已选 + {count}",
|
166
166
|
"components.selection-controls.label": "针对所选内容的操作",
|
167
|
+
"components.sort.label": "排序",
|
168
|
+
"components.sort.text": "排序:{selectedItemText}",
|
167
169
|
"components.switch.conditions": "必须符合条件",
|
168
170
|
"components.switch.hidden": "隐藏",
|
169
171
|
"components.switch.visible": "可见",
|
package/lang/zh-tw.js
CHANGED
@@ -165,6 +165,8 @@ export default {
|
|
165
165
|
"components.selection.selected": "已選取 {count} 個",
|
166
166
|
"components.selection.selected-plus": "已選取 {count}+ 個",
|
167
167
|
"components.selection-controls.label": "選擇的動作",
|
168
|
+
"components.sort.label": "排序",
|
169
|
+
"components.sort.text": "排序:{selectedItemText}",
|
168
170
|
"components.switch.conditions": "必須符合條件",
|
169
171
|
"components.switch.hidden": "隱藏",
|
170
172
|
"components.switch.visible": "可見",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.150.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",
|