@brightspace-ui/core 2.179.2 → 2.180.1

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.
@@ -37,6 +37,26 @@
37
37
  </template>
38
38
  </d2l-demo-snippet>
39
39
 
40
+ <h2>Confirm Dialog (critical)</h2>
41
+
42
+ <d2l-demo-snippet>
43
+ <template>
44
+ <d2l-button id="openConfirmCritical">Show Confirm</d2l-button>
45
+ <d2l-dialog-confirm id="confirmCritical" title-text="Confirm Title" text="Are you sure you want more cookies?" critical>
46
+ <d2l-button slot="footer" primary data-dialog-action="ok">Yes</d2l-button>
47
+ <d2l-button slot="footer" data-dialog-action>No</d2l-button>
48
+ </d2l-dialog-confirm>
49
+ <script>
50
+ document.querySelector('#openConfirmCritical').addEventListener('click', () => {
51
+ document.querySelector('#confirmCritical').opened = true;
52
+ });
53
+ document.querySelector('#confirmCritical').addEventListener('d2l-dialog-close', (e) => {
54
+ console.log('confirm action:', e.detail.action);
55
+ });
56
+ </script>
57
+ </template>
58
+ </d2l-demo-snippet>
59
+
40
60
  <h2>Confirm Dialog (Multi Paragraph)</h2>
41
61
 
42
62
  <d2l-demo-snippet>
@@ -184,6 +184,28 @@
184
184
  </template>
185
185
  </d2l-demo-snippet>
186
186
 
187
+ <h2>Dialog (critical)</h2>
188
+
189
+ <d2l-demo-snippet>
190
+ <template>
191
+ <d2l-button id="openCritical">Show Dialog</d2l-button>
192
+ <d2l-dialog id="dialogCritical" title-text="Dialog Title" critical>
193
+ <div>
194
+ <p>Deadlights jack lad schooner scallywag dance the hempen jig carouser broadside cable strike colors. Bring a spring upon her cable holystone blow the man down spanker</p>
195
+ <p>Shiver me timbers to go on account lookout wherry doubloon chase. Belay yo-ho-ho keelhaul squiffy black spot yardarm spyglass sheet transom heave to.</p>
196
+ <p>Trysail Sail ho Corsair red ensign hulk smartly boom jib rum gangway. Case shot Shiver me timbers gangplank crack Jennys tea cup ballast Blimey lee snow crow's nest rutters. Fluke jib scourge of the seven seas boatswain schooner gaff booty Jack Tar transom spirits.</p>
197
+ </div>
198
+ <d2l-button slot="footer" primary data-dialog-action="ok">Click Me!</d2l-button>
199
+ <d2l-button slot="footer" data-dialog-action>Cancel</d2l-button>
200
+ </d2l-dialog>
201
+ <script>
202
+ document.querySelector('#openCritical').addEventListener('click', () => {
203
+ document.querySelector('#dialogCritical').opened = true;
204
+ });
205
+ </script>
206
+ </template>
207
+ </d2l-demo-snippet>
208
+
187
209
  </d2l-demo-page>
188
210
  </body>
189
211
  </html>
@@ -1,18 +1,24 @@
1
- import { css, html, LitElement } from 'lit';
1
+ import { css, html, LitElement, nothing } from 'lit';
2
2
  import { DialogMixin } from './dialog-mixin.js';
3
3
  import { dialogStyles } from './dialog-styles.js';
4
4
  import { getUniqueId } from '../../helpers/uniqueId.js';
5
5
  import { heading3Styles } from '../typography/styles.js';
6
+ import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
6
7
 
7
8
  /**
8
9
  * A simple confirmation dialog for prompting the user. Apply the "data-dialog-action" attribute to workflow buttons to automatically close the confirm dialog with the action value.
9
10
  * @fires d2l-dialog-before-close - Dispatched with the action value before the dialog is closed for any reason, providing an opportunity to prevent the dialog from closing
10
11
  * @slot footer - Slot for footer content such as workflow buttons
11
12
  */
12
- class DialogConfirm extends DialogMixin(LitElement) {
13
+ class DialogConfirm extends LocalizeCoreElement(DialogMixin(LitElement)) {
13
14
 
14
15
  static get properties() {
15
16
  return {
17
+ /**
18
+ * Whether the dialog should indicate that its message is important to the user
19
+ */
20
+ critical: { type: Boolean },
21
+
16
22
  /**
17
23
  * REQUIRED: The text content for the confirmation dialog. Newline characters (`&#10;` in HTML or `\n` in JavaScript) will render as multiple paragraphs.
18
24
  * @type {string}
@@ -66,11 +72,17 @@ class DialogConfirm extends DialogMixin(LitElement) {
66
72
  `];
67
73
  }
68
74
 
69
- render() {
70
- if (!this._titleId) this._titleId = getUniqueId();
71
- if (!this._textId) this._textId = getUniqueId();
75
+ constructor() {
76
+ super();
77
+ this.critical = false;
78
+ this._criticalLabelId = getUniqueId();
79
+ this._textId = getUniqueId();
80
+ this._titleId = getUniqueId();
81
+ }
72
82
 
83
+ render() {
73
84
  const inner = html`
85
+ ${this.critical ? html`<div id="${this._criticalLabelId}" hidden>${this.localize('components.dialog.critical')}</div>` : nothing}
74
86
  <div class="d2l-dialog-inner">
75
87
  ${this.titleText ? html`
76
88
  <div class="d2l-dialog-header">
@@ -85,13 +97,14 @@ class DialogConfirm extends DialogMixin(LitElement) {
85
97
  </div>`;
86
98
 
87
99
  const labelId = (this.titleText && this.text) ? this._titleId : this._textId;
100
+ const fullLabelId = this.critical ? `${this._criticalLabelId} ${labelId}` : labelId;
88
101
  const descId = (this.titleText && this.text) ? this._textId : undefined;
89
102
  return this._render(
90
103
  inner,
91
104
  {
92
105
  descId: descId,
93
106
  fullscreenMobile: false,
94
- labelId: labelId,
107
+ labelId: fullLabelId,
95
108
  role: 'alertdialog'
96
109
  }
97
110
  );
@@ -94,6 +94,15 @@ export const dialogStyles = css`
94
94
  height: 100%;
95
95
  }
96
96
 
97
+ :host([critical]) .d2l-dialog-header {
98
+ border-block-start: 0.4rem solid var(--d2l-color-cinnabar);
99
+ border-start-end-radius: 0.4rem;
100
+ border-start-start-radius: 0.4rem;
101
+ margin-block: -1px 0;
102
+ margin-inline: -1px;
103
+ padding: 1rem 31px 23px 31px;
104
+ }
105
+
97
106
  .d2l-dialog-header {
98
107
  box-sizing: border-box;
99
108
  flex: none;
@@ -1,7 +1,7 @@
1
1
  import '../button/button-icon.js';
2
2
  import '../loading-spinner/loading-spinner.js';
3
3
  import { AsyncContainerMixin, asyncStates } from '../../mixins/async-container/async-container-mixin.js';
4
- import { css, html, LitElement } from 'lit';
4
+ import { css, html, LitElement, nothing } from 'lit';
5
5
  import { classMap } from 'lit/directives/class-map.js';
6
6
  import { DialogMixin } from './dialog-mixin.js';
7
7
  import { dialogStyles } from './dialog-styles.js';
@@ -28,6 +28,11 @@ class Dialog extends LocalizeCoreElement(AsyncContainerMixin(DialogMixin(LitElem
28
28
  */
29
29
  async: { type: Boolean },
30
30
 
31
+ /**
32
+ * Whether the dialog should indicate that its message is important to the user
33
+ */
34
+ critical: { type: Boolean },
35
+
31
36
  /**
32
37
  * Whether to read the contents of the dialog on open
33
38
  */
@@ -49,7 +54,8 @@ class Dialog extends LocalizeCoreElement(AsyncContainerMixin(DialogMixin(LitElem
49
54
  static get styles() {
50
55
  return [ dialogStyles, heading3Styles, css`
51
56
 
52
- .d2l-dialog-header {
57
+ .d2l-dialog-header,
58
+ :host([critical]) .d2l-dialog-header {
53
59
  padding-bottom: 15px;
54
60
  }
55
61
 
@@ -83,10 +89,13 @@ class Dialog extends LocalizeCoreElement(AsyncContainerMixin(DialogMixin(LitElem
83
89
  constructor() {
84
90
  super();
85
91
  this.async = false;
92
+ this.critical = false;
86
93
  this.describeContent = false;
87
94
  this.fullHeight = false;
88
95
  this.width = 600;
96
+ this._criticalLabelId = getUniqueId();
89
97
  this._handleResize = this._handleResize.bind(this);
98
+ this._titleId = getUniqueId();
90
99
  }
91
100
 
92
101
  get asyncContainerCustom() {
@@ -146,8 +155,9 @@ class Dialog extends LocalizeCoreElement(AsyncContainerMixin(DialogMixin(LitElem
146
155
  <div id="${ifDefined(this._textId)}" style=${styleMap(slotStyles)}><slot></slot></div>
147
156
  `;
148
157
 
149
- if (!this._titleId) this._titleId = getUniqueId();
158
+ const labelId = this.critical ? `${this._criticalLabelId} ${this._titleId}` : this._titleId;
150
159
  const inner = html`
160
+ ${this.critical ? html`<div id="${this._criticalLabelId}" hidden>${this.localize('components.dialog.critical')}</div>` : nothing}
151
161
  <div class="d2l-dialog-inner" style=${styleMap(heightOverride)}>
152
162
  <div class="d2l-dialog-header">
153
163
  <div>
@@ -168,7 +178,7 @@ class Dialog extends LocalizeCoreElement(AsyncContainerMixin(DialogMixin(LitElem
168
178
  {
169
179
  descId: descId,
170
180
  fullscreenMobile: true,
171
- labelId: this._titleId,
181
+ labelId: labelId,
172
182
  role: 'dialog'
173
183
  },
174
184
  topOverride
@@ -13,6 +13,16 @@
13
13
 
14
14
  <d2l-demo-page page-title="d2l-more-less">
15
15
 
16
+ <h2>More-less with custom blur color</h2>
17
+
18
+ <d2l-demo-snippet>
19
+ <template>
20
+ <d2l-more-less blur-color="#f00">
21
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. <a href="">Vestibulum</a> elementum venenatis arcu sit amet varius. Maecenas posuere magna arcu, quis maximus odio fringilla ac. Integer ligula lorem, faucibus sit amet cursus vel, pellentesque a justo. Aliquam urna metus, molestie at tempor eget, vestibulum a purus. Donec aliquet rutrum mi. Duis ornare congue tempor. Nullam sed massa fermentum, tincidunt leo eu, vestibulum orci. Sed ultrices est in lacus venenatis, posuere suscipit arcu scelerisque. In aliquam ipsum rhoncus, lobortis ligula ut, molestie orci. Proin scelerisque tempor posuere. Phasellus consequat, lorem quis hendrerit tempor, sem lectus sagittis nunc, in tristique dui arcu non arcu. Nunc aliquam nisi et sapien commodo lacinia. <a href="">Quisque</a> iaculis orci vel odio varius porta. Fusce tincidunt dolor enim, vitae sollicitudin purus suscipit eu.</p>
22
+ </d2l-more-less>
23
+ </template>
24
+ </d2l-demo-snippet>
25
+
16
26
  <h2>More-less collapsed</h2>
17
27
 
18
28
  <d2l-demo-snippet>
@@ -50,7 +60,7 @@
50
60
  <d2l-demo-snippet>
51
61
  <template>
52
62
  <d2l-more-less blur-color="#f00">
53
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum elementum venenatis arcu sit amet varius. Maecenas posuere magna arcu, quis maximus odio fringilla ac. Integer ligula lorem, faucibus sit amet cursus vel, pellentesque a justo. Aliquam urna metus, molestie at tempor eget, vestibulum a purus. Donec aliquet rutrum mi. Duis ornare congue tempor. Nullam sed massa fermentum, tincidunt leo eu, vestibulum orci. Sed ultrices est in lacus venenatis, posuere suscipit arcu scelerisque. In aliquam ipsum rhoncus, lobortis ligula ut, molestie orci. Proin scelerisque tempor posuere. Phasellus consequat, lorem quis hendrerit tempor, sem lectus sagittis nunc, in tristique dui arcu non arcu. Nunc aliquam nisi et sapien commodo lacinia. <a href="">Quisque</a> iaculis orci vel odio varius porta. Fusce tincidunt dolor enim, vitae sollicitudin purus suscipit eu.</p>
63
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. <a href="">Vestibulum</a> elementum venenatis arcu sit amet varius. Maecenas posuere magna arcu, quis maximus odio fringilla ac. Integer ligula lorem, faucibus sit amet cursus vel, pellentesque a justo. Aliquam urna metus, molestie at tempor eget, vestibulum a purus. Donec aliquet rutrum mi. Duis ornare congue tempor. Nullam sed massa fermentum, tincidunt leo eu, vestibulum orci. Sed ultrices est in lacus venenatis, posuere suscipit arcu scelerisque. In aliquam ipsum rhoncus, lobortis ligula ut, molestie orci. Proin scelerisque tempor posuere. Phasellus consequat, lorem quis hendrerit tempor, sem lectus sagittis nunc, in tristique dui arcu non arcu. Nunc aliquam nisi et sapien commodo lacinia. <a href="">Quisque</a> iaculis orci vel odio varius porta. Fusce tincidunt dolor enim, vitae sollicitudin purus suscipit eu.</p>
54
64
  </d2l-more-less>
55
65
  </template>
56
66
  </d2l-demo-snippet>
@@ -2,12 +2,16 @@ import '../button/button-subtle.js';
2
2
  import { css, html, LitElement } from 'lit';
3
3
  import { getComposedChildren, isComposedAncestor } from '../../helpers/dom.js';
4
4
  import { classMap } from 'lit/directives/class-map.js';
5
+ import { getComposedActiveElement } from '../../helpers/focus.js';
5
6
  import { getUniqueId } from '../../helpers/uniqueId.js';
6
7
  import { ifDefined } from 'lit/directives/if-defined.js';
7
8
  import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
8
9
  import ResizeObserver from 'resize-observer-polyfill/dist/ResizeObserver.es.js';
9
10
  import { styleMap } from 'lit/directives/style-map.js';
10
11
 
12
+ const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
13
+ const transitionDur = matchMedia('(prefers-reduced-motion: reduce)').matches ? 0 : 400;
14
+
11
15
  /**
12
16
  * A component used to minimize the display of long content, while providing a way to reveal the full content.
13
17
  * @slot - Default content placed inside of the component
@@ -61,7 +65,7 @@ class MoreLess extends LocalizeCoreElement(LitElement) {
61
65
  overflow: hidden;
62
66
  }
63
67
  .d2l-more-less-transition {
64
- transition: max-height 400ms cubic-bezier(0, 0.7, 0.5, 1);
68
+ transition: max-height ${transitionDur}ms cubic-bezier(0, 0.7, 0.5, 1);
65
69
  }
66
70
  .d2l-more-less-blur {
67
71
  display: none;
@@ -234,25 +238,49 @@ class MoreLess extends LocalizeCoreElement(LitElement) {
234
238
  this.expanded = true;
235
239
  }
236
240
 
237
- __focusIn() {
241
+ async __focusIn(e) {
238
242
  if (this.inactive || this.expanded) {
239
243
  return;
240
244
  }
241
245
 
242
- this.__expand();
243
- this.__autoExpanded = true;
246
+ const target = e.composedPath()[0] || e.target;
247
+
248
+ if (isSafari) {
249
+ target.scrollIntoViewIfNeeded?.();
250
+ setTimeout(() => this.__content.scrollTo({ top: 0, behavior: 'instant' }), 1);
251
+ }
252
+
253
+ if (this.__content.scrollTop) {
254
+ this.__content.scrollTo({ top: 0, behavior: 'instant' });
255
+ this.__expand();
256
+ this.__autoExpanded = true;
257
+ await (transitionDur && new Promise(r => setTimeout(r, transitionDur)));
258
+ if (target.getRootNode().activeElement === target) {
259
+ target.scrollIntoView({ block: 'center', inline: 'center', behavior: 'instant' });
260
+ }
261
+ }
244
262
  }
245
263
 
246
- __focusOut(e) {
264
+ async __focusOut({ relatedTarget }) {
265
+
247
266
  if (this.inactive
248
267
  || !this.__autoExpanded
249
- || isComposedAncestor(this.__content, e.relatedTarget)
268
+ || isComposedAncestor(this.__content, relatedTarget)
250
269
  ) {
251
270
  return;
252
271
  }
253
272
 
254
273
  this.__shrink();
255
274
  this.__autoExpanded = false;
275
+
276
+ relatedTarget && await new Promise(r => relatedTarget.addEventListener('focus', r, { once: true }));
277
+ const target = getComposedActiveElement();
278
+
279
+ await (transitionDur && new Promise(r => setTimeout(r, transitionDur)));
280
+ const activeElement = getComposedActiveElement();
281
+ if (target === activeElement) {
282
+ target.scrollIntoView({ block: 'center', inline: 'center', behavior: 'instant' });
283
+ }
256
284
  }
257
285
 
258
286
  __init_measureBaseHeight() {
@@ -315,14 +343,6 @@ class MoreLess extends LocalizeCoreElement(LitElement) {
315
343
  }
316
344
 
317
345
  __reactToChanges() {
318
- if (!this.__transitionAdded) {
319
- this.__reactToChanges_setupTransition();
320
- } else {
321
- this.__adjustToContent();
322
- }
323
- }
324
-
325
- __reactToChanges_setupTransition() {
326
346
  this.__transitionAdded = true;
327
347
  this.__adjustToContent();
328
348
  }
@@ -342,6 +362,7 @@ class MoreLess extends LocalizeCoreElement(LitElement) {
342
362
  this.__transitionAdded = true;
343
363
  this.__maxHeight = this.height;
344
364
  this.expanded = false;
365
+ this.__content.scrollTo({ top: 0, behavior: 'instant' });
345
366
  }
346
367
 
347
368
  __startObserving() {
@@ -1993,6 +1993,12 @@
1993
1993
  "description": "REQUIRED: The text content for the confirmation dialog. Newline characters (`&#10;` in HTML or `\\n` in JavaScript) will render as multiple paragraphs.",
1994
1994
  "type": "string"
1995
1995
  },
1996
+ {
1997
+ "name": "critical",
1998
+ "description": "Whether the dialog should indicate that its message is important to the user",
1999
+ "type": "boolean",
2000
+ "default": "false"
2001
+ },
1996
2002
  {
1997
2003
  "name": "title-text",
1998
2004
  "description": "The optional title for the dialog",
@@ -2012,6 +2018,17 @@
2012
2018
  "description": "REQUIRED: The text content for the confirmation dialog. Newline characters (`&#10;` in HTML or `\\n` in JavaScript) will render as multiple paragraphs.",
2013
2019
  "type": "string"
2014
2020
  },
2021
+ {
2022
+ "name": "critical",
2023
+ "attribute": "critical",
2024
+ "description": "Whether the dialog should indicate that its message is important to the user",
2025
+ "type": "boolean",
2026
+ "default": "false"
2027
+ },
2028
+ {
2029
+ "name": "documentLocaleSettings",
2030
+ "default": "\"getDocumentLocaleSettings()\""
2031
+ },
2015
2032
  {
2016
2033
  "name": "titleText",
2017
2034
  "attribute": "title-text",
@@ -2167,6 +2184,12 @@
2167
2184
  "type": "boolean",
2168
2185
  "default": "false"
2169
2186
  },
2187
+ {
2188
+ "name": "critical",
2189
+ "description": "Whether the dialog should indicate that its message is important to the user",
2190
+ "type": "boolean",
2191
+ "default": "false"
2192
+ },
2170
2193
  {
2171
2194
  "name": "describe-content",
2172
2195
  "description": "Whether to read the contents of the dialog on open",
@@ -2205,6 +2228,13 @@
2205
2228
  "type": "boolean",
2206
2229
  "default": "false"
2207
2230
  },
2231
+ {
2232
+ "name": "critical",
2233
+ "attribute": "critical",
2234
+ "description": "Whether the dialog should indicate that its message is important to the user",
2235
+ "type": "boolean",
2236
+ "default": "false"
2237
+ },
2208
2238
  {
2209
2239
  "name": "describeContent",
2210
2240
  "attribute": "describe-content",
package/lang/ar.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "إظهار {month}",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "إغلاق مربع الحوار هذا",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "إغلاق",
11
12
  "components.filter.activeFilters": "عوامل تصفية نشطة:",
12
13
  "components.filter.clear": "مسح",
package/lang/cy.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "Dangos {month}",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "Cau'r dialog hwn",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "Cau",
11
12
  "components.filter.activeFilters": "Dim Hidlwyr Gweithredol:",
12
13
  "components.filter.clear": "Clirio",
package/lang/da.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "Vis {month}",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "Luk denne dialogboks",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "Luk",
11
12
  "components.filter.activeFilters": "Aktive filtre:",
12
13
  "components.filter.clear": "Ryd",
package/lang/de.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "{month} anzeigen",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "Dieses Dialogfeld schließen",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "Schließen",
11
12
  "components.filter.activeFilters": "Aktive Filter:",
12
13
  "components.filter.clear": "Löschen",
package/lang/en-gb.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "Show {month}",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "Close this dialogue",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "Close",
11
12
  "components.filter.activeFilters": "Active Filters:",
12
13
  "components.filter.clear": "Clear",
package/lang/en.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "Show {month}",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "Close this dialog",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "Close",
11
12
  "components.filter.activeFilters": "Active Filters:",
12
13
  "components.filter.clear": "Clear",
package/lang/es-es.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "Mostrar {month}",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "Cerrar este cuadro de diálogo",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "Cerrar",
11
12
  "components.filter.activeFilters": "Filtros activos:",
12
13
  "components.filter.clear": "Borrar",
package/lang/es.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "Mostrar {month}",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "Cerrar este cuadro de diálogo",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "Cerrar",
11
12
  "components.filter.activeFilters": "Filtros activos:",
12
13
  "components.filter.clear": "Borrar",
package/lang/fr-fr.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "Afficher {month}",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "Fermer cette boîte de dialogue",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "Fermer",
11
12
  "components.filter.activeFilters": "Filtres actifs :",
12
13
  "components.filter.clear": "Effacer",
package/lang/fr.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "Afficher {month}",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "Fermer cette boîte de dialogue",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "Fermer",
11
12
  "components.filter.activeFilters": "Filtres actifs :",
12
13
  "components.filter.clear": "Effacer",
package/lang/hi.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "{month} दिखाएँ",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "यह संवाद बंद करें",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "बंद करें",
11
12
  "components.filter.activeFilters": "सक्रिय फ़िल्टर्स:",
12
13
  "components.filter.clear": "साफ़ करें",
package/lang/ja.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "{month} を表示",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "このダイアログを閉じる",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "閉じる",
11
12
  "components.filter.activeFilters": "アクティブフィルタ:",
12
13
  "components.filter.clear": "クリア",
package/lang/ko.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "{month} 표시",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "이 대화 상자 닫기",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "닫기",
11
12
  "components.filter.activeFilters": "활성 필터:",
12
13
  "components.filter.clear": "지우기",
package/lang/nl.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "{month} weergeven",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "Dit dialoogvenster sluiten",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "Sluiten",
11
12
  "components.filter.activeFilters": "Actieve filters:",
12
13
  "components.filter.clear": "Wissen",
package/lang/pt.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "Mostrar {month}",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "Fechar esta caixa de diálogo",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "Fechar",
11
12
  "components.filter.activeFilters": "Filtros ativos:",
12
13
  "components.filter.clear": "Limpar",
package/lang/sv.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "Visa {month}",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "Stäng dialogrutan",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "Stäng",
11
12
  "components.filter.activeFilters": "Aktiva filter:",
12
13
  "components.filter.clear": "Rensa",
package/lang/tr.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "{month} Göster",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "Bu iletişim kutusunu kapat",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "Kapat",
11
12
  "components.filter.activeFilters": "Etkin Filtreler:",
12
13
  "components.filter.clear": "Temizle",
package/lang/zh-cn.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "显示 {month}",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "关闭此对话框",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "关闭",
11
12
  "components.filter.activeFilters": "活动筛选器:",
12
13
  "components.filter.clear": "清除",
package/lang/zh-tw.js CHANGED
@@ -7,6 +7,7 @@ export default {
7
7
  "components.calendar.show": "顯示{month}",
8
8
  "components.count-badge.plus": "{number}+",
9
9
  "components.dialog.close": "關閉此對話方塊",
10
+ "components.dialog.critical": "Critical!",
10
11
  "components.dropdown.close": "關閉",
11
12
  "components.filter.activeFilters": "啟用中的篩選器:",
12
13
  "components.filter.clear": "清除",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.179.2",
3
+ "version": "2.180.1",
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",