@brightspace-ui/core 3.197.0 → 3.198.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.
@@ -0,0 +1,34 @@
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 '../view-switcher.js';
10
+ import '../view-switcher-button.js';
11
+ </script>
12
+ </head>
13
+ <body unresolved>
14
+
15
+ <d2l-demo-page page-title="d2l-view-switcher">
16
+
17
+ <h2>Segmented Button</h2>
18
+
19
+ <d2l-demo-snippet>
20
+ <template>
21
+ <d2l-view-switcher label="Save Options">
22
+ <d2l-view-switcher-button selected key="saveAsDraft" text="Save as Draft"></d2l-view-switcher-button>
23
+ <d2l-view-switcher-button key="saveAndClose" text="Save and Close"></d2l-view-switcher-button>
24
+ <d2l-view-switcher-button key="saveAndNew" text="Save and New"></d2l-view-switcher-button>
25
+ </d2l-view-switcher>
26
+ </template>
27
+ </d2l-demo-snippet>
28
+
29
+
30
+
31
+ </d2l-demo-page>
32
+
33
+ </body>
34
+ </html>
@@ -0,0 +1,104 @@
1
+ import '../colors/colors.js';
2
+ import { css, html, LitElement, unsafeCSS } from 'lit';
3
+ import { buttonStyles } from '../button/button-styles.js';
4
+ import { FocusMixin } from '../../mixins/focus/focus-mixin.js';
5
+ import { getFocusPseudoClass } from '../../helpers/focus.js';
6
+ import { labelStyles } from '../typography/styles.js';
7
+ import { PropertyRequiredMixin } from '../../mixins/property-required/property-required-mixin.js';
8
+
9
+ /**
10
+ * A button component to be used in d2l-view-switcher.
11
+ * @fires d2l-view-switcher-select - Dispatched when the item is selected
12
+ */
13
+ class ViewSwitcherButton extends PropertyRequiredMixin(FocusMixin(LitElement)) {
14
+
15
+ static get properties() {
16
+ return {
17
+ /**
18
+ * REQUIRED: Key of the action
19
+ * @type {string}
20
+ */
21
+ key: { type: String, required: true },
22
+ /**
23
+ * REQUIRED: Button text
24
+ * @type {string}
25
+ */
26
+ text: { type: String, required: true },
27
+ /**
28
+ * Indicates if the item is selected
29
+ * @type {boolean}
30
+ */
31
+ selected: { type: Boolean, reflect: true },
32
+ };
33
+ }
34
+
35
+ static get styles() {
36
+ return [labelStyles, buttonStyles, css`
37
+ /* Firefox includes a hidden border which messes up button dimensions */
38
+ button::-moz-focus-inner {
39
+ border: 0;
40
+ }
41
+
42
+ button {
43
+ background-color: transparent;
44
+ border-radius: 0.2rem;
45
+ display: block;
46
+ font-family: inherit;
47
+ min-height: auto;
48
+ padding-block: 0.3rem;
49
+ padding-inline: 1rem;
50
+ }
51
+
52
+ button:hover {
53
+ background-color: var(--d2l-color-mica);
54
+ }
55
+
56
+ button:${unsafeCSS(getFocusPseudoClass())} {
57
+ box-shadow: 0 0 0 2px #ffffff;
58
+ }
59
+
60
+ :host([selected]) button {
61
+ background-color: var(--d2l-color-tungsten);
62
+ color: #ffffff;
63
+ }
64
+ `];
65
+ }
66
+
67
+ constructor() {
68
+ super();
69
+ this.selected = false;
70
+ }
71
+
72
+ static get focusElementSelector() {
73
+ return 'button';
74
+ }
75
+
76
+ render() {
77
+ return html`
78
+ <button
79
+ aria-pressed="${this.selected ? 'true' : 'false'}"
80
+ class="d2l-label-text"
81
+ @click="${this.#handleClick}"
82
+ type="button">
83
+ ${this.text}
84
+ </button>
85
+ `;
86
+ }
87
+
88
+ get _isSwitcherItem() {
89
+ return true;
90
+ }
91
+
92
+ async #handleClick() {
93
+ if (this.selected) return;
94
+ this.selected = true;
95
+ this.dispatchEvent(new CustomEvent('d2l-view-switcher-select', {
96
+ detail: { key: this.key },
97
+ bubbles: true,
98
+ composed: true
99
+ }));
100
+ }
101
+
102
+ }
103
+
104
+ customElements.define('d2l-view-switcher-button', ViewSwitcherButton);
@@ -0,0 +1,99 @@
1
+ import '../colors/colors.js';
2
+ import { css, html, LitElement } from 'lit';
3
+ import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
4
+
5
+ /**
6
+ * A segmented view switcher.
7
+ */
8
+ class ViewSwitcher extends LocalizeCoreElement(LitElement) {
9
+
10
+ static get properties() {
11
+ return {
12
+ /**
13
+ * ACCESSIBILITY: Label for the switcher
14
+ * @type {string}
15
+ */
16
+ label: { type: String, required: true },
17
+ _count: { state: true }
18
+ };
19
+ }
20
+
21
+ static get styles() {
22
+ return css`
23
+ :host {
24
+ display: inline-block;
25
+ }
26
+ :host([hidden]) {
27
+ display: none;
28
+ }
29
+ .container {
30
+ align-items: center;
31
+ background-color: var(--d2l-color-gypsum);
32
+ border-radius: 0.3rem;
33
+ box-sizing: border-box;
34
+ display: flex;
35
+ gap: 0.3rem;
36
+ padding: 0.3rem;
37
+ }
38
+ `;
39
+ }
40
+ constructor() {
41
+ super();
42
+ this._count = 0;
43
+ this._focusOnFirstRender = false;
44
+ }
45
+
46
+ get items() {
47
+ return this.shadowRoot?.querySelector('slot')?.assignedElements({ flatten: true }).filter(e => e._isSwitcherItem) || [];
48
+ }
49
+
50
+ firstUpdated(changedProperties) {
51
+ super.firstUpdated(changedProperties);
52
+ if (this._focusOnFirstRender) {
53
+ this.focus();
54
+ this._focusOnFirstRender = false;
55
+ }
56
+ }
57
+
58
+ render() {
59
+
60
+ return html`
61
+ <div
62
+ class="container"
63
+ role="group"
64
+ aria-label="${this.label}"
65
+ aria-roledescription="${this.localize('components.view-switcher.role-description', { count: this._count })}"
66
+ @d2l-view-switcher-select=${this.#handleItemSelect}>
67
+ <slot @slotchange="${this.#handleSlotChange}"></slot>
68
+ </div>
69
+ `;
70
+ }
71
+
72
+ focus() {
73
+ if (!this.hasUpdated) {
74
+ this._focusOnFirstRender = true;
75
+ return;
76
+ }
77
+ const items = this.items;
78
+ if (items.length === 0) return;
79
+ items[0].focus();
80
+ }
81
+
82
+ #handleItemSelect(e) {
83
+ const items = this.items;
84
+ for (const item of items) {
85
+ if (item.key === e.detail.key) continue;
86
+ item.selected = false;
87
+ }
88
+ }
89
+
90
+ #handleSlotChange() {
91
+ const items = this.items;
92
+ this._count = items.length;
93
+ if (items.length === 0) return;
94
+ if (!items.find(i => i.selected)) items[0].selected = true;
95
+ }
96
+
97
+ }
98
+
99
+ customElements.define('d2l-view-switcher', ViewSwitcher);
@@ -15231,6 +15231,79 @@
15231
15231
  }
15232
15232
  ]
15233
15233
  },
15234
+ {
15235
+ "name": "d2l-view-switcher-button",
15236
+ "path": "./components/view-switcher/view-switcher-button.js",
15237
+ "description": "A button component to be used in d2l-view-switcher.",
15238
+ "attributes": [
15239
+ {
15240
+ "name": "key",
15241
+ "description": "REQUIRED: Key of the action",
15242
+ "type": "string"
15243
+ },
15244
+ {
15245
+ "name": "text",
15246
+ "description": "REQUIRED: Button text",
15247
+ "type": "string"
15248
+ },
15249
+ {
15250
+ "name": "selected",
15251
+ "description": "Indicates if the item is selected",
15252
+ "type": "boolean",
15253
+ "default": "false"
15254
+ }
15255
+ ],
15256
+ "properties": [
15257
+ {
15258
+ "name": "key",
15259
+ "attribute": "key",
15260
+ "description": "REQUIRED: Key of the action",
15261
+ "type": "string"
15262
+ },
15263
+ {
15264
+ "name": "text",
15265
+ "attribute": "text",
15266
+ "description": "REQUIRED: Button text",
15267
+ "type": "string"
15268
+ },
15269
+ {
15270
+ "name": "selected",
15271
+ "attribute": "selected",
15272
+ "description": "Indicates if the item is selected",
15273
+ "type": "boolean",
15274
+ "default": "false"
15275
+ }
15276
+ ],
15277
+ "events": [
15278
+ {
15279
+ "name": "d2l-view-switcher-select",
15280
+ "description": "Dispatched when the item is selected"
15281
+ }
15282
+ ]
15283
+ },
15284
+ {
15285
+ "name": "d2l-view-switcher",
15286
+ "path": "./components/view-switcher/view-switcher.js",
15287
+ "description": "A segmented view switcher.",
15288
+ "attributes": [
15289
+ {
15290
+ "name": "label",
15291
+ "description": "ACCESSIBILITY: Label for the switcher",
15292
+ "type": "string"
15293
+ }
15294
+ ],
15295
+ "properties": [
15296
+ {
15297
+ "name": "label",
15298
+ "attribute": "label",
15299
+ "description": "ACCESSIBILITY: Label for the switcher",
15300
+ "type": "string"
15301
+ },
15302
+ {
15303
+ "name": "items"
15304
+ }
15305
+ ]
15306
+ },
15234
15307
  {
15235
15308
  "name": "d2l-template-primary-secondary",
15236
15309
  "path": "./templates/primary-secondary/primary-secondary.js",
package/lang/ar.js CHANGED
@@ -236,6 +236,12 @@ export default {
236
236
  "components.tag-list-item.tooltip-delete-key": "مسافة للخلف/حذف",
237
237
  "components.tag-list-item.tooltip-delete-key-desc": "حذف العلامة المركّز عليها",
238
238
  "components.tag-list-item.tooltip-title": "عناصر التحكم في لوحة المفاتيح",
239
+ "components.view-switcher.role-description":
240
+ `{count, plural,
241
+ =0 {View Switcher with 0 items}
242
+ one {View Switcher with {count} item}
243
+ other {View Switcher with {count} items}
244
+ }`,
239
245
  "templates.primary-secondary.divider": "فاصل اللوحة الثانوية",
240
246
  "templates.primary-secondary.secondary-panel": "اللوحة الثانوية"
241
247
  };
package/lang/cy.js CHANGED
@@ -232,6 +232,12 @@ export default {
232
232
  "components.tag-list-item.tooltip-delete-key": "Yn ôl/Dileu",
233
233
  "components.tag-list-item.tooltip-delete-key-desc": "Dileu’r tag â ffocws",
234
234
  "components.tag-list-item.tooltip-title": "Rheolyddion Bysellfwrdd",
235
+ "components.view-switcher.role-description":
236
+ `{count, plural,
237
+ =0 {View Switcher with 0 items}
238
+ one {View Switcher with {count} item}
239
+ other {View Switcher with {count} items}
240
+ }`,
235
241
  "templates.primary-secondary.divider": "Rhannwr panel eilaidd",
236
242
  "templates.primary-secondary.secondary-panel": "Panel eilaidd"
237
243
  };
package/lang/da.js CHANGED
@@ -232,6 +232,12 @@ export default {
232
232
  "components.tag-list-item.tooltip-delete-key": "Tilbage/Slet",
233
233
  "components.tag-list-item.tooltip-delete-key-desc": "Slet det fokuserede tag",
234
234
  "components.tag-list-item.tooltip-title": "Kontrolelementer på tastaturet",
235
+ "components.view-switcher.role-description":
236
+ `{count, plural,
237
+ =0 {View Switcher with 0 items}
238
+ one {View Switcher with {count} item}
239
+ other {View Switcher with {count} items}
240
+ }`,
235
241
  "templates.primary-secondary.divider": "Sekundær panelskillelinje",
236
242
  "templates.primary-secondary.secondary-panel": "Sekundært panel"
237
243
  };
package/lang/de.js CHANGED
@@ -232,6 +232,12 @@ export default {
232
232
  "components.tag-list-item.tooltip-delete-key": "Rücktaste/Entfernen",
233
233
  "components.tag-list-item.tooltip-delete-key-desc": "Ausgewählten Tag löschen",
234
234
  "components.tag-list-item.tooltip-title": "Tastatursteuerung",
235
+ "components.view-switcher.role-description":
236
+ `{count, plural,
237
+ =0 {View Switcher with 0 items}
238
+ one {View Switcher with {count} item}
239
+ other {View Switcher with {count} items}
240
+ }`,
235
241
  "templates.primary-secondary.divider": "Sekundäre Bereichstrennung",
236
242
  "templates.primary-secondary.secondary-panel": "Sekundärer Bereich"
237
243
  };
package/lang/en-gb.js CHANGED
@@ -232,6 +232,12 @@ export default {
232
232
  "components.tag-list-item.tooltip-delete-key": "Backspace/Delete",
233
233
  "components.tag-list-item.tooltip-delete-key-desc": "Delete the focused tag",
234
234
  "components.tag-list-item.tooltip-title": "Keyboard Controls",
235
+ "components.view-switcher.role-description":
236
+ `{count, plural,
237
+ =0 {View Switcher with 0 items}
238
+ one {View Switcher with {count} item}
239
+ other {View Switcher with {count} items}
240
+ }`,
235
241
  "templates.primary-secondary.divider": "Secondary panel divider",
236
242
  "templates.primary-secondary.secondary-panel": "Secondary panel"
237
243
  };
package/lang/en.js CHANGED
@@ -232,6 +232,12 @@ export default {
232
232
  "components.tag-list-item.tooltip-delete-key": "Backspace/Delete",
233
233
  "components.tag-list-item.tooltip-delete-key-desc": "Delete the focused tag",
234
234
  "components.tag-list-item.tooltip-title": "Keyboard Controls",
235
+ "components.view-switcher.role-description":
236
+ `{count, plural,
237
+ =0 {View Switcher with 0 items}
238
+ one {View Switcher with {count} item}
239
+ other {View Switcher with {count} items}
240
+ }`,
235
241
  "templates.primary-secondary.divider": "Secondary panel divider",
236
242
  "templates.primary-secondary.secondary-panel": "Secondary panel"
237
243
  };
package/lang/es-es.js CHANGED
@@ -232,6 +232,12 @@ export default {
232
232
  "components.tag-list-item.tooltip-delete-key": "Retroceso/Eliminar",
233
233
  "components.tag-list-item.tooltip-delete-key-desc": "Eliminar la etiqueta seleccionada",
234
234
  "components.tag-list-item.tooltip-title": "Controles del teclado",
235
+ "components.view-switcher.role-description":
236
+ `{count, plural,
237
+ =0 {View Switcher with 0 items}
238
+ one {View Switcher with {count} item}
239
+ other {View Switcher with {count} items}
240
+ }`,
235
241
  "templates.primary-secondary.divider": "Divisor de panel secundario",
236
242
  "templates.primary-secondary.secondary-panel": "Panel secundario"
237
243
  };
package/lang/es.js CHANGED
@@ -232,6 +232,12 @@ export default {
232
232
  "components.tag-list-item.tooltip-delete-key": "Retroceso/Suprimir",
233
233
  "components.tag-list-item.tooltip-delete-key-desc": "Eliminar la etiqueta enfocada",
234
234
  "components.tag-list-item.tooltip-title": "Controles del teclado",
235
+ "components.view-switcher.role-description":
236
+ `{count, plural,
237
+ =0 {View Switcher with 0 items}
238
+ one {View Switcher with {count} item}
239
+ other {View Switcher with {count} items}
240
+ }`,
235
241
  "templates.primary-secondary.divider": "Divisor de panel secundario",
236
242
  "templates.primary-secondary.secondary-panel": "Panel secundario"
237
243
  };
package/lang/fr-fr.js CHANGED
@@ -232,6 +232,12 @@ export default {
232
232
  "components.tag-list-item.tooltip-delete-key": "Retour arrière/Supprimer",
233
233
  "components.tag-list-item.tooltip-delete-key-desc": "Supprimez l’étiquette ciblée",
234
234
  "components.tag-list-item.tooltip-title": "Commandes du clavier",
235
+ "components.view-switcher.role-description":
236
+ `{count, plural,
237
+ =0 {View Switcher with 0 items}
238
+ one {View Switcher with {count} item}
239
+ other {View Switcher with {count} items}
240
+ }`,
235
241
  "templates.primary-secondary.divider": "Séparateur de panneau secondaire",
236
242
  "templates.primary-secondary.secondary-panel": "Panneau secondaire"
237
243
  };
package/lang/fr.js CHANGED
@@ -232,6 +232,12 @@ export default {
232
232
  "components.tag-list-item.tooltip-delete-key": "Retour arrière/suppression",
233
233
  "components.tag-list-item.tooltip-delete-key-desc": "Supprimer la balise ciblée",
234
234
  "components.tag-list-item.tooltip-title": "Commandes du clavier",
235
+ "components.view-switcher.role-description":
236
+ `{count, plural,
237
+ =0 {View Switcher with 0 items}
238
+ one {View Switcher with {count} item}
239
+ other {View Switcher with {count} items}
240
+ }`,
235
241
  "templates.primary-secondary.divider": "Séparateur de panneau secondaire",
236
242
  "templates.primary-secondary.secondary-panel": "Panneau secondaire"
237
243
  };
package/lang/haw.js CHANGED
@@ -232,6 +232,12 @@ export default {
232
232
  "components.tag-list-item.tooltip-delete-key": "Hoʻi hope / Holoi",
233
233
  "components.tag-list-item.tooltip-delete-key-desc": "Holoi i ka hōʻailona kikoʻī",
234
234
  "components.tag-list-item.tooltip-title": "Nā Mana Keyboard",
235
+ "components.view-switcher.role-description":
236
+ `{count, plural,
237
+ =0 {View Switcher with 0 items}
238
+ one {View Switcher with {count} item}
239
+ other {View Switcher with {count} items}
240
+ }`,
235
241
  "templates.primary-secondary.divider": "Mea hoʻokaʻawale papa lua",
236
242
  "templates.primary-secondary.secondary-panel": "Pane lua"
237
243
  };
package/lang/hi.js CHANGED
@@ -232,6 +232,12 @@ export default {
232
232
  "components.tag-list-item.tooltip-delete-key": "बैकस्पेस/हटाएँ",
233
233
  "components.tag-list-item.tooltip-delete-key-desc": "फ़ोकिस किए हुए टैग को हटाएँ",
234
234
  "components.tag-list-item.tooltip-title": "कीबोर्ड कंट्रोल",
235
+ "components.view-switcher.role-description":
236
+ `{count, plural,
237
+ =0 {View Switcher with 0 items}
238
+ one {View Switcher with {count} item}
239
+ other {View Switcher with {count} items}
240
+ }`,
235
241
  "templates.primary-secondary.divider": "सेकेंडरी पैनल डिवाइडर",
236
242
  "templates.primary-secondary.secondary-panel": "सेकेंडरी पैनल"
237
243
  };
package/lang/ja.js CHANGED
@@ -222,6 +222,11 @@ export default {
222
222
  "components.tag-list-item.tooltip-delete-key": "Backspace キー/Delete キー",
223
223
  "components.tag-list-item.tooltip-delete-key-desc": "フォーカスされたタグを削除します",
224
224
  "components.tag-list-item.tooltip-title": "キーボードコントロール",
225
+ "components.view-switcher.role-description":
226
+ `{count, plural,
227
+ =0 {View Switcher with 0 items}
228
+ other {View Switcher with {count} items}
229
+ }`,
225
230
  "templates.primary-secondary.divider": "セカンダリパネルディバイダ",
226
231
  "templates.primary-secondary.secondary-panel": "セカンダリパネル"
227
232
  };
package/lang/ko.js CHANGED
@@ -222,6 +222,11 @@ export default {
222
222
  "components.tag-list-item.tooltip-delete-key": "백스페이스/삭제",
223
223
  "components.tag-list-item.tooltip-delete-key-desc": "포커스된 태그를 삭제합니다",
224
224
  "components.tag-list-item.tooltip-title": "키보드 컨트롤",
225
+ "components.view-switcher.role-description":
226
+ `{count, plural,
227
+ =0 {View Switcher with 0 items}
228
+ other {View Switcher with {count} items}
229
+ }`,
225
230
  "templates.primary-secondary.divider": "보조 패널 디바이더",
226
231
  "templates.primary-secondary.secondary-panel": "보조 패널"
227
232
  };
package/lang/mi.js CHANGED
@@ -232,6 +232,12 @@ export default {
232
232
  "components.tag-list-item.tooltip-delete-key": "Hokimuri/Muku",
233
233
  "components.tag-list-item.tooltip-delete-key-desc": "Mukua te tūtohu arotahi",
234
234
  "components.tag-list-item.tooltip-title": "Ngā Mana Papapātuhi",
235
+ "components.view-switcher.role-description":
236
+ `{count, plural,
237
+ =0 {View Switcher with 0 items}
238
+ one {View Switcher with {count} item}
239
+ other {View Switcher with {count} items}
240
+ }`,
235
241
  "templates.primary-secondary.divider": "Kaiwehe paepae tuarua",
236
242
  "templates.primary-secondary.secondary-panel": "Pae tuarua"
237
243
  };
package/lang/nl.js CHANGED
@@ -232,6 +232,12 @@ export default {
232
232
  "components.tag-list-item.tooltip-delete-key": "Backspace/Verwijderen",
233
233
  "components.tag-list-item.tooltip-delete-key-desc": "Verwijder de gerichte tag",
234
234
  "components.tag-list-item.tooltip-title": "Bedieningselementen op het toetsenbord",
235
+ "components.view-switcher.role-description":
236
+ `{count, plural,
237
+ =0 {View Switcher with 0 items}
238
+ one {View Switcher with {count} item}
239
+ other {View Switcher with {count} items}
240
+ }`,
235
241
  "templates.primary-secondary.divider": "Scheidingslijn secundair venster",
236
242
  "templates.primary-secondary.secondary-panel": "Secundair venster"
237
243
  };
package/lang/pt.js CHANGED
@@ -232,6 +232,12 @@ export default {
232
232
  "components.tag-list-item.tooltip-delete-key": "Backspace/Delete",
233
233
  "components.tag-list-item.tooltip-delete-key-desc": "Excluir a etiqueta de foco",
234
234
  "components.tag-list-item.tooltip-title": "Controles do teclado",
235
+ "components.view-switcher.role-description":
236
+ `{count, plural,
237
+ =0 {View Switcher with 0 items}
238
+ one {View Switcher with {count} item}
239
+ other {View Switcher with {count} items}
240
+ }`,
235
241
  "templates.primary-secondary.divider": "Divisor do painel secundário",
236
242
  "templates.primary-secondary.secondary-panel": "Painel secundário"
237
243
  };
package/lang/sv.js CHANGED
@@ -232,6 +232,12 @@ export default {
232
232
  "components.tag-list-item.tooltip-delete-key": "Backstegstangenten/Delete-tangenten",
233
233
  "components.tag-list-item.tooltip-delete-key-desc": "Ta bort den fokuserade taggen",
234
234
  "components.tag-list-item.tooltip-title": "Tangentbordskontroller",
235
+ "components.view-switcher.role-description":
236
+ `{count, plural,
237
+ =0 {View Switcher with 0 items}
238
+ one {View Switcher with {count} item}
239
+ other {View Switcher with {count} items}
240
+ }`,
235
241
  "templates.primary-secondary.divider": "Avgränsare för sekundär panel",
236
242
  "templates.primary-secondary.secondary-panel": "Sekundär panel"
237
243
  };
package/lang/th.js CHANGED
@@ -223,6 +223,11 @@ export default {
223
223
  "components.tag-list-item.tooltip-delete-key": "Backspace/Delete",
224
224
  "components.tag-list-item.tooltip-delete-key-desc": "ลบแท็กที่โฟกัส",
225
225
  "components.tag-list-item.tooltip-title": "การควบคุมแป้นพิมพ์",
226
+ "components.view-switcher.role-description":
227
+ `{count, plural,
228
+ =0 {View Switcher with 0 items}
229
+ other {View Switcher with {count} items}
230
+ }`,
226
231
  "templates.primary-secondary.divider": "ตัวแบ่งบานหน้าต่างรอง",
227
232
  "templates.primary-secondary.secondary-panel": "บานหน้าต่างรอง"
228
233
  };
package/lang/tr.js CHANGED
@@ -232,6 +232,12 @@ export default {
232
232
  "components.tag-list-item.tooltip-delete-key": "Geri Al/Sil",
233
233
  "components.tag-list-item.tooltip-delete-key-desc": "Odaklanılan etiketi sil",
234
234
  "components.tag-list-item.tooltip-title": "Klavye Kontrolleri",
235
+ "components.view-switcher.role-description":
236
+ `{count, plural,
237
+ =0 {View Switcher with 0 items}
238
+ one {View Switcher with {count} item}
239
+ other {View Switcher with {count} items}
240
+ }`,
235
241
  "templates.primary-secondary.divider": "İkincil panel ayırıcı",
236
242
  "templates.primary-secondary.secondary-panel": "İkincil panel"
237
243
  };
package/lang/vi.js CHANGED
@@ -28,7 +28,7 @@ export default {
28
28
  =0 {Chưa áp dụng bộ lọc nào.}
29
29
  other {{number} bộ lọc đã áp dụng.}
30
30
  }`,
31
- "components.filter.filters": "Các bộ lọc",
31
+ "components.filter.filters": "Bộ lọc",
32
32
  "components.filter.loading": "Đang tải các bộ lọc",
33
33
  "components.filter.noFilters": "Không có bộ lọc nào khả dụng",
34
34
  "components.filter.searchResults":
@@ -164,7 +164,7 @@ export default {
164
164
  other {Vô hiệu hóa khi chọn nhiều hơn {countFormatted} mục}
165
165
  }`,
166
166
  "components.selection.action-required-hint": "Chọn một mục để thực hiện tác vụ này",
167
- "components.selection.select-all": "Chọn tất cả",
167
+ "components.selection.select-all": "Chọn Tất cả",
168
168
  "components.selection.select-all-items":
169
169
  `{count, plural,
170
170
  =1 {Chọn mục}
@@ -188,17 +188,17 @@ export default {
188
188
  other {Sắp xếp từ cũ đến mới}
189
189
  }}
190
190
  numbers {{direction, select,
191
- desc {Sorted high to low}
192
- other {Sorted low to high}
191
+ desc {Sắp xếp từ cao đến thấp}
192
+ other {Sắp xếp từ thấp đến cao}
193
193
  }}
194
194
  words {{direction, select,
195
- desc {Sorted Z to A}
196
- other {Sorted A to Z}
195
+ desc {Sắp xếp từ Z đến A}
196
+ other {Sắp xếp theo thứ tự A đến Z}
197
197
  }}
198
- value {Sorted {selectedMenuItemText}}
198
+ value {Đã sắp xếp {selectedMenuItemText}}
199
199
  other {{direction, select,
200
- desc {Sorted descending}
201
- other {Sorted ascending}
200
+ desc {Sắp xếp giảm dần}
201
+ other {Sắp xếp tăng dần}
202
202
  }}
203
203
  }`,
204
204
  "components.table-controls.label": "Các tác vụ cho bảng",
@@ -223,6 +223,11 @@ export default {
223
223
  "components.tag-list-item.tooltip-delete-key": "Phím lùi/Xóa",
224
224
  "components.tag-list-item.tooltip-delete-key-desc": "Xóa thẻ được chọn",
225
225
  "components.tag-list-item.tooltip-title": "Các điều khiển bàn phím",
226
+ "components.view-switcher.role-description":
227
+ `{count, plural,
228
+ =0 {View Switcher with 0 items}
229
+ other {View Switcher with {count} items}
230
+ }`,
226
231
  "templates.primary-secondary.divider": "Bộ phân cách bảng phụ",
227
232
  "templates.primary-secondary.secondary-panel": "Bảng phụ"
228
233
  };
package/lang/zh-cn.js CHANGED
@@ -222,6 +222,11 @@ export default {
222
222
  "components.tag-list-item.tooltip-delete-key": "退格键/Delete 键",
223
223
  "components.tag-list-item.tooltip-delete-key-desc": "删除具有焦点的标签",
224
224
  "components.tag-list-item.tooltip-title": "键盘控制",
225
+ "components.view-switcher.role-description":
226
+ `{count, plural,
227
+ =0 {View Switcher with 0 items}
228
+ other {View Switcher with {count} items}
229
+ }`,
225
230
  "templates.primary-secondary.divider": "辅助面板分隔条",
226
231
  "templates.primary-secondary.secondary-panel": "辅助面板"
227
232
  };
package/lang/zh-tw.js CHANGED
@@ -223,6 +223,11 @@ export default {
223
223
  "components.tag-list-item.tooltip-delete-key": "退格/刪除",
224
224
  "components.tag-list-item.tooltip-delete-key-desc": "刪除對焦標記",
225
225
  "components.tag-list-item.tooltip-title": "鍵盤控制項",
226
+ "components.view-switcher.role-description":
227
+ `{count, plural,
228
+ =0 {View Switcher with 0 items}
229
+ other {View Switcher with {count} items}
230
+ }`,
226
231
  "templates.primary-secondary.divider": "次要面板分隔線",
227
232
  "templates.primary-secondary.secondary-panel": "次要面板"
228
233
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.197.0",
3
+ "version": "3.198.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",