@brightspace-ui/core 1.206.0 → 1.207.2

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.
@@ -472,7 +472,6 @@ export const DropdownContentMixin = superclass => class extends LocalizeCoreElem
472
472
  || isComposedAncestor(this.__getOpener(), activeElement)) {
473
473
  return;
474
474
  }
475
-
476
475
  this.close();
477
476
  }, 0);
478
477
  }
@@ -1023,7 +1022,7 @@ export const DropdownContentMixin = superclass => class extends LocalizeCoreElem
1023
1022
  }
1024
1023
  }
1025
1024
  /** Dispatched when user focus enters the dropdown content (trap-focus option only) */
1026
- this.dispatchEvent(new CustomEvent('d2l-dropdown-focus-enter'));
1025
+ this.dispatchEvent(new CustomEvent('d2l-dropdown-focus-enter', { detail:{ applyFocus: this.__applyFocus } }));
1027
1026
  }
1028
1027
 
1029
1028
  async _handleMobileResize() {
@@ -260,7 +260,7 @@ export const DropdownOpenerMixin = superclass => class extends superclass {
260
260
  } else {
261
261
  this._isOpenedViaClick = true;
262
262
  this._isHovering = false;
263
- this.openDropdown(true);
263
+ this.openDropdown(false);
264
264
  }
265
265
  } else this.toggleOpen(false);
266
266
  }
@@ -1,8 +1,3 @@
1
- <svg width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" mirror-in-rtl="true">
2
- <mask id="a" fill="#fff">
3
- <path d="M1.585 1.19l.097.079 4.905 4.577.41.382 3.775 3.523v-.005l1.628 1.517-.002.007 1.544 1.44.003-.008 1.373 1.28.097.079a1 1 0 00.008.006l-.008.018 1.267 1.184a1 1 0 01-1.267 1.542l-.097-.08-.895-.835c-.278.434-.59.872-.936 1.312a.947.947 0 11-1.495-1.167c.393-.457.74-.938 1.044-1.44l-1.505-1.404a8.051 8.051 0 01-.954 1.249.953.953 0 01-1.338.019.947.947 0 01-.028-1.336c.347-.39.643-.818.883-1.273L7.002 8.97v5.286c0 .189-.111.36-.284.436a.424.424 0 01-.19.038.526.526 0 01-.321-.123l-2.915-2.719H.932a.93.93 0 01-.928-.928V7.132a.93.93 0 01.928-.928h2.35l.378-.353-3.342-3.12A1 1 0 011.585 1.19zM13.44.827c.055.056 4.354 4.87 2.712 11.196l-1.662-1.55a10.72 10.72 0 00-2.452-8.369A.95.95 0 0113.44.828zm-2.865 2.818a8.053 8.053 0 012.157 5.19L10.225 6.5a6.406 6.406 0 00-1.014-1.537.947.947 0 011.364-1.317z"/>
4
- </mask>
5
- <g mask="url(#a)">
6
- <path fill="#494c4e" d="M-1 0h18v18H-1z"/>
7
- </g>
1
+ <svg width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
2
+ <path fill="#494c4e" d="m1.585 1.19.097.079 4.905 4.577.41.382 3.775 3.523v-.005l1.628 1.517-.002.007 1.544 1.44.003-.008 1.373 1.28.097.079a1 1 0 0 0 .008.006l-.008.018 1.267 1.184a1 1 0 0 1-1.267 1.542l-.097-.08-.895-.835c-.278.434-.59.872-.936 1.312a.947.947 0 1 1-1.495-1.167c.393-.457.74-.938 1.044-1.44l-1.505-1.404a8.051 8.051 0 0 1-.954 1.249.953.953 0 0 1-1.338.019.947.947 0 0 1-.028-1.336c.347-.39.643-.818.883-1.273L7.002 8.97v5.286c0 .189-.111.36-.284.436a.424.424 0 0 1-.19.038.526.526 0 0 1-.321-.123l-2.915-2.719H.932a.93.93 0 0 1-.928-.928V7.132a.93.93 0 0 1 .928-.928h2.35l.378-.353-3.342-3.12A1 1 0 0 1 1.585 1.19zM13.44.827c.055.056 4.354 4.87 2.712 11.196l-1.662-1.55a10.72 10.72 0 0 0-2.452-8.369A.95.95 0 0 1 13.44.828zm-2.865 2.818a8.053 8.053 0 0 1 2.157 5.19L10.225 6.5a6.406 6.406 0 0 0-1.014-1.537.947.947 0 0 1 1.364-1.317z"/>
8
3
  </svg>
@@ -1,8 +1,3 @@
1
- <svg width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" mirror-in-rtl="true">
2
- <mask id="a" fill="#fff">
3
- <path d="M7.003 3.835v10.421c0 .189-.112.36-.285.436a.424.424 0 01-.19.038.526.526 0 01-.321-.123l-2.915-2.719H.932a.93.93 0 01-.928-.928V7.132a.93.93 0 01.928-.928h2.35l2.925-2.72a.483.483 0 01.511-.084.478.478 0 01.285.435zM13.44.828c.07.07 6.876 7.695.047 16.38a.947.947 0 11-1.495-1.167 10.73 10.73 0 00.046-13.936A.95.95 0 0113.44.828zm-2.865 2.818a8.053 8.053 0 012.162 5.4 8.053 8.053 0 01-2.16 5.4.953.953 0 01-1.338.019.947.947 0 01-.028-1.336 6.407 6.407 0 001.62-4.083 6.407 6.407 0 00-1.62-4.083.947.947 0 011.364-1.317z"/>
4
- </mask>
5
- <g mask="url(#a)">
6
- <path fill="#494c4e" d="M-1 0h18v18H-1z"/>
7
- </g>
1
+ <svg width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
2
+ <path fill="#494c4e" d="M7.003 3.835v10.421c0 .189-.112.36-.285.436a.424.424 0 0 1-.19.038.526.526 0 0 1-.321-.123l-2.915-2.719H.932a.93.93 0 0 1-.928-.928V7.132a.93.93 0 0 1 .928-.928h2.35l2.925-2.72a.483.483 0 0 1 .511-.084.478.478 0 0 1 .285.435zM13.44.828c.07.07 6.876 7.695.047 16.38a.947.947 0 1 1-1.495-1.167 10.73 10.73 0 0 0 .046-13.936A.95.95 0 0 1 13.44.828zm-2.865 2.818a8.053 8.053 0 0 1 2.162 5.4 8.053 8.053 0 0 1-2.16 5.4.953.953 0 0 1-1.338.019.947.947 0 0 1-.028-1.336 6.407 6.407 0 0 0 1.62-4.083 6.407 6.407 0 0 0-1.62-4.083.947.947 0 0 1 1.364-1.317z"/>
8
3
  </svg>
@@ -245,6 +245,7 @@ class InputDateTime extends LabelledMixin(SkeletonMixin(FormElementMixin(Localiz
245
245
  <d2l-input-date
246
246
  ?novalidate="${this.noValidate}"
247
247
  novalidateminmax
248
+ has-now
248
249
  @change="${this._handleDateChange}"
249
250
  @d2l-input-date-dropdown-toggle="${this._handleDropdownToggle}"
250
251
  ?disabled="${this.disabled}"
@@ -307,7 +308,9 @@ class InputDateTime extends LabelledMixin(SkeletonMixin(FormElementMixin(Localiz
307
308
  this.value = '';
308
309
  } else {
309
310
  const inputTime = this.shadowRoot.querySelector('d2l-input-time');
310
- const time = inputTime ? inputTime.value : _getFormattedDefaultTime(this.timeDefaultValue);
311
+ let time;
312
+ if (e.detail && e.detail.setToNow) time = _getFormattedDefaultTime('now');
313
+ else time = inputTime ? inputTime.value : _getFormattedDefaultTime(this.timeDefaultValue);
311
314
  this.value = this.localized ? _formatLocalDateTimeInISO(newDate, time) : getUTCDateTimeFromLocalDateTime(newDate, time);
312
315
  }
313
316
  this._dispatchChangeEvent();
@@ -41,6 +41,11 @@ class InputDate extends LabelledMixin(SkeletonMixin(FormElementMixin(LocalizeCor
41
41
  * @type {string}
42
42
  */
43
43
  emptyText: { type: String, attribute: 'empty-text' },
44
+ /**
45
+ * @ignore
46
+ * Optionally add a 'Now' button to be used in date-time pickers only.
47
+ */
48
+ hasNow: { attribute: 'has-now', type: Boolean },
44
49
  /**
45
50
  * Hides the label visually (moves it to the input's "aria-label" attribute)
46
51
  * @type {boolean}
@@ -125,7 +130,7 @@ class InputDate extends LabelledMixin(SkeletonMixin(FormElementMixin(LocalizeCor
125
130
  .d2l-calendar-slot-buttons {
126
131
  border-top: 1px solid var(--d2l-color-gypsum);
127
132
  display: flex;
128
- justify-content: flex-end;
133
+ justify-content: center;
129
134
  margin-top: 0.3rem;
130
135
  padding-top: 0.3rem;
131
136
  }
@@ -137,6 +142,8 @@ class InputDate extends LabelledMixin(SkeletonMixin(FormElementMixin(LocalizeCor
137
142
 
138
143
  this.disabled = false;
139
144
  this.emptyText = '';
145
+ /** @ignore */
146
+ this.hasNow = false;
140
147
  this.labelHidden = false;
141
148
  /** @ignore */
142
149
  this.noValidateMinMax = false;
@@ -221,6 +228,7 @@ class InputDate extends LabelledMixin(SkeletonMixin(FormElementMixin(LocalizeCor
221
228
  this.style.maxWidth = inputTextWidth;
222
229
 
223
230
  const clearButton = !this.required ? html`<d2l-button-subtle text="${this.localize(`${this._namespace}.clear`)}" @click="${this._handleClear}"></d2l-button-subtle>` : null;
231
+ const nowButton = this.hasNow ? html`<d2l-button-subtle text="${this.localize(`${this._namespace}.now`)}" @click="${this._handleSetToNow}"></d2l-button-subtle>` : null;
224
232
  const icon = (this.invalid || this.childErrors.size > 0)
225
233
  ? html`<d2l-icon icon="tier1:alert" slot="left" style="${styleMap({ color: 'var(--d2l-color-cinnabar)' })}"></d2l-icon>`
226
234
  : html`<d2l-icon icon="tier1:calendar" slot="left"></d2l-icon>`;
@@ -246,7 +254,8 @@ class InputDate extends LabelledMixin(SkeletonMixin(FormElementMixin(LocalizeCor
246
254
  min-value="${ifDefined(this.minValue)}"
247
255
  selected-value="${ifDefined(this._shownValue)}">
248
256
  <div class="d2l-calendar-slot-buttons">
249
- <d2l-button-subtle text="${this.localize(`${this._namespace}.setToToday`)}" @click="${this._handleSetToToday}"></d2l-button-subtle>
257
+ <d2l-button-subtle text="${this.localize(`${this._namespace}.today`)}" @click="${this._handleSetToToday}"></d2l-button-subtle>
258
+ ${nowButton}
250
259
  ${clearButton}
251
260
  </div>
252
261
  </d2l-calendar>
@@ -290,7 +299,7 @@ class InputDate extends LabelledMixin(SkeletonMixin(FormElementMixin(LocalizeCor
290
299
  ${!this._dropdownFirstOpened ? html`<div aria-hidden="true" class="d2l-input-date-hidden-calendar">
291
300
  <d2l-calendar selected-value="2018-09-08">
292
301
  <div class="d2l-calendar-slot-buttons">
293
- <d2l-button-subtle text="${this.localize(`${this._namespace}.setToToday`)}"></d2l-button-subtle>
302
+ <d2l-button-subtle text="${this.localize(`${this._namespace}.today`)}"></d2l-button-subtle>
294
303
  </div>
295
304
  </d2l-calendar>
296
305
  </div>` : null}
@@ -462,9 +471,13 @@ class InputDate extends LabelledMixin(SkeletonMixin(FormElementMixin(LocalizeCor
462
471
  this.opened = !this.opened;
463
472
  }
464
473
 
465
- async _handleSetToToday() {
474
+ async _handleSetToNow() {
475
+ await this._handleSetToToday(undefined, true);
476
+ }
477
+
478
+ async _handleSetToToday(_, setToNow) {
466
479
  const date = getToday();
467
- await this._updateValueDispatchEvent(formatDateInISO(date));
480
+ await this._updateValueDispatchEvent(formatDateInISO(date), setToNow);
468
481
  if (this._dropdown) {
469
482
  this._dropdown.close();
470
483
  }
@@ -503,13 +516,18 @@ class InputDate extends LabelledMixin(SkeletonMixin(FormElementMixin(LocalizeCor
503
516
  this._formattedValue = this._shownValue ? formatISODateInUserCalDescriptor(this._shownValue) : (this.emptyText ? this.emptyText : '');
504
517
  }
505
518
 
506
- async _updateValueDispatchEvent(dateInISO) {
507
- if (dateInISO === this._shownValue) return; // prevent validation from happening multiple times for same change
519
+ async _updateValueDispatchEvent(dateInISO, setToNow) {
520
+ // prevent validation from happening multiple times for same change,
521
+ // except for now button that affects time
522
+ if (!setToNow && dateInISO === this._shownValue) return;
508
523
  this._shownValue = dateInISO;
509
524
  this.value = dateInISO;
510
525
  this.dispatchEvent(new CustomEvent(
511
- 'change',
512
- { bubbles: true, composed: false }
526
+ 'change', {
527
+ bubbles: true,
528
+ composed: false,
529
+ detail: { setToNow: setToNow }
530
+ }
513
531
  ));
514
532
  }
515
533
 
@@ -47,6 +47,11 @@ export function getDefaultTime(time, enforceTimeIntervals, timeInterval) {
47
47
  return END_OF_DAY;
48
48
  case 'startOfDay':
49
49
  return enforceTimeIntervals ? MIDNIGHT : START_OF_DAY;
50
+ case 'now': {
51
+ const today = getToday();
52
+ const date = new Date(today.year, today.month - 1, today.date, today.hours, today.minutes, 0);
53
+ return enforceTimeIntervals ? getTimeAtInterval(timeInterval, date) : date;
54
+ }
50
55
  case undefined: {
51
56
  const today = getToday();
52
57
  const date = new Date(today.year, today.month - 1, today.date, today.hours, today.minutes, 0);
@@ -1,10 +1,5 @@
1
1
  // auto-generated
2
- export const val = `<svg width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" mirror-in-rtl="true">
3
- <mask id="a" fill="#fff">
4
- <path d="M1.585 1.19l.097.079 4.905 4.577.41.382 3.775 3.523v-.005l1.628 1.517-.002.007 1.544 1.44.003-.008 1.373 1.28.097.079a1 1 0 00.008.006l-.008.018 1.267 1.184a1 1 0 01-1.267 1.542l-.097-.08-.895-.835c-.278.434-.59.872-.936 1.312a.947.947 0 11-1.495-1.167c.393-.457.74-.938 1.044-1.44l-1.505-1.404a8.051 8.051 0 01-.954 1.249.953.953 0 01-1.338.019.947.947 0 01-.028-1.336c.347-.39.643-.818.883-1.273L7.002 8.97v5.286c0 .189-.111.36-.284.436a.424.424 0 01-.19.038.526.526 0 01-.321-.123l-2.915-2.719H.932a.93.93 0 01-.928-.928V7.132a.93.93 0 01.928-.928h2.35l.378-.353-3.342-3.12A1 1 0 011.585 1.19zM13.44.827c.055.056 4.354 4.87 2.712 11.196l-1.662-1.55a10.72 10.72 0 00-2.452-8.369A.95.95 0 0113.44.828zm-2.865 2.818a8.053 8.053 0 012.157 5.19L10.225 6.5a6.406 6.406 0 00-1.014-1.537.947.947 0 011.364-1.317z"/>
5
- </mask>
6
- <g mask="url(#a)">
7
- <path fill="#494c4e" d="M-1 0h18v18H-1z"/>
8
- </g>
2
+ export const val = `<svg width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
3
+ <path fill="#494c4e" d="m1.585 1.19.097.079 4.905 4.577.41.382 3.775 3.523v-.005l1.628 1.517-.002.007 1.544 1.44.003-.008 1.373 1.28.097.079a1 1 0 0 0 .008.006l-.008.018 1.267 1.184a1 1 0 0 1-1.267 1.542l-.097-.08-.895-.835c-.278.434-.59.872-.936 1.312a.947.947 0 1 1-1.495-1.167c.393-.457.74-.938 1.044-1.44l-1.505-1.404a8.051 8.051 0 0 1-.954 1.249.953.953 0 0 1-1.338.019.947.947 0 0 1-.028-1.336c.347-.39.643-.818.883-1.273L7.002 8.97v5.286c0 .189-.111.36-.284.436a.424.424 0 0 1-.19.038.526.526 0 0 1-.321-.123l-2.915-2.719H.932a.93.93 0 0 1-.928-.928V7.132a.93.93 0 0 1 .928-.928h2.35l.378-.353-3.342-3.12A1 1 0 0 1 1.585 1.19zM13.44.827c.055.056 4.354 4.87 2.712 11.196l-1.662-1.55a10.72 10.72 0 0 0-2.452-8.369A.95.95 0 0 1 13.44.828zm-2.865 2.818a8.053 8.053 0 0 1 2.157 5.19L10.225 6.5a6.406 6.406 0 0 0-1.014-1.537.947.947 0 0 1 1.364-1.317z"/>
9
4
  </svg>
10
5
  `;
@@ -1,10 +1,5 @@
1
1
  // auto-generated
2
- export const val = `<svg width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" mirror-in-rtl="true">
3
- <mask id="a" fill="#fff">
4
- <path d="M7.003 3.835v10.421c0 .189-.112.36-.285.436a.424.424 0 01-.19.038.526.526 0 01-.321-.123l-2.915-2.719H.932a.93.93 0 01-.928-.928V7.132a.93.93 0 01.928-.928h2.35l2.925-2.72a.483.483 0 01.511-.084.478.478 0 01.285.435zM13.44.828c.07.07 6.876 7.695.047 16.38a.947.947 0 11-1.495-1.167 10.73 10.73 0 00.046-13.936A.95.95 0 0113.44.828zm-2.865 2.818a8.053 8.053 0 012.162 5.4 8.053 8.053 0 01-2.16 5.4.953.953 0 01-1.338.019.947.947 0 01-.028-1.336 6.407 6.407 0 001.62-4.083 6.407 6.407 0 00-1.62-4.083.947.947 0 011.364-1.317z"/>
5
- </mask>
6
- <g mask="url(#a)">
7
- <path fill="#494c4e" d="M-1 0h18v18H-1z"/>
8
- </g>
2
+ export const val = `<svg width="18" height="18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18">
3
+ <path fill="#494c4e" d="M7.003 3.835v10.421c0 .189-.112.36-.285.436a.424.424 0 0 1-.19.038.526.526 0 0 1-.321-.123l-2.915-2.719H.932a.93.93 0 0 1-.928-.928V7.132a.93.93 0 0 1 .928-.928h2.35l2.925-2.72a.483.483 0 0 1 .511-.084.478.478 0 0 1 .285.435zM13.44.828c.07.07 6.876 7.695.047 16.38a.947.947 0 1 1-1.495-1.167 10.73 10.73 0 0 0 .046-13.936A.95.95 0 0 1 13.44.828zm-2.865 2.818a8.053 8.053 0 0 1 2.162 5.4 8.053 8.053 0 0 1-2.16 5.4.953.953 0 0 1-1.338.019.947.947 0 0 1-.028-1.336 6.407 6.407 0 0 0 1.62-4.083 6.407 6.407 0 0 0-1.62-4.083.947.947 0 0 1 1.364-1.317z"/>
9
4
  </svg>
10
5
  `;
package/lang/ar.js CHANGED
@@ -50,7 +50,8 @@ export default {
50
50
  "components.input-date.errorMinDateOnly": "يجب أن يكون التاريخ بعد {minDate}",
51
51
  "components.input-date.errorOutsideRange": "يجب أن يكون التاريخ بين {minDate} و{maxDate}",
52
52
  "components.input-date.openInstructions": "استخدم تنسيق التاريخ {format}. انتقل إلى الأسفل أو اضغط على Enter للوصول إلى التقويم المصغّر.",
53
- "components.input-date.setToToday": "تعيين إلى اليوم",
53
+ "components.input-date.now": "الآن",
54
+ "components.input-date.today": "اليوم",
54
55
  "components.input-number.hintInteger": "يقبل هذا الحقل قيم الأعداد الصحيحة فقط (بدون أعداد عشرية)",
55
56
  "components.input-number.hintDecimalDuplicate": "يوجد عدد عشري في هذا الرقم",
56
57
  "components.input-number.hintDecimalIncorrectComma": "لإضافة عدد عشري، استخدم حرف الفاصلة \",\"",
package/lang/cy.js CHANGED
@@ -50,7 +50,8 @@ export default {
50
50
  "components.input-date.errorMinDateOnly": "Rhaid i'r dyddiad fod ar ôl {minDate}",
51
51
  "components.input-date.errorOutsideRange": "Rhaid i'r dyddiad fod rhwng {minDate} a {maxDate}",
52
52
  "components.input-date.openInstructions": "Defnyddio fformat dyddiad {format}. Pwyswch saeth i lawr neu Enter i gael mynediad at galendr bach.",
53
- "components.input-date.setToToday": "Gosod i Heddiw",
53
+ "components.input-date.now": "Nawr",
54
+ "components.input-date.today": "Heddiw",
54
55
  "components.input-number.hintInteger": "Mae'r maes hwn yn derbyn gwerthoedd cyfanrif yn unig (dim degolion)",
55
56
  "components.input-number.hintDecimalDuplicate": "Mae degol eisoes yn y nifer hwn",
56
57
  "components.input-number.hintDecimalIncorrectComma": "I ychwanegu degol defnyddiwch y nod coma \",”",
package/lang/da.js CHANGED
@@ -50,7 +50,8 @@ export default {
50
50
  "components.input-date.errorMinDateOnly": "Datoen skal være efter {minDate}",
51
51
  "components.input-date.errorOutsideRange": "Datoen skal være mellem {minDate} og {maxDate}",
52
52
  "components.input-date.openInstructions": "Brug datoformatet {format}. Tryk på Pil ned eller Enter for at få adgang til minikalender.",
53
- "components.input-date.setToToday": "Indstil til i dag",
53
+ "components.input-date.now": "Nu",
54
+ "components.input-date.today": "I dag",
54
55
  "components.input-number.hintInteger": "Dette felt accepterer kun heltalsværdier (ingen decimaler)",
55
56
  "components.input-number.hintDecimalDuplicate": "Der er allerede en decimal i dette tal",
56
57
  "components.input-number.hintDecimalIncorrectComma": "Hvis du vil tilføje en decimal, skal du bruge komma-tegnet \",\"",
package/lang/de.js CHANGED
@@ -50,7 +50,8 @@ export default {
50
50
  "components.input-date.errorMinDateOnly": "Datum muss nach {minDate} liegen",
51
51
  "components.input-date.errorOutsideRange": "Datum muss zwischen {minDate} und {maxDate} liegen",
52
52
  "components.input-date.openInstructions": "Das Datumsformat {format} verwenden. Minikalender durch Abwärtspfeil oder durch Drücken der Eingabetaste aufrufen.",
53
- "components.input-date.setToToday": "Auf den heutigen Tag einstellen",
53
+ "components.input-date.now": "Jetzt",
54
+ "components.input-date.today": "Heute",
54
55
  "components.input-number.hintInteger": "Dieses Feld akzeptiert nur Ganzzahlen (keine Dezimalstellen)",
55
56
  "components.input-number.hintDecimalDuplicate": "Diese Zahl enthält bereits eine Dezimale",
56
57
  "components.input-number.hintDecimalIncorrectComma": "Verwenden Sie zum Hinzufügen einer Dezimalstelle das Komma \",“",
package/lang/en.js CHANGED
@@ -50,7 +50,8 @@ export default {
50
50
  "components.input-date.errorMinDateOnly": "Date must be after {minDate}",
51
51
  "components.input-date.errorOutsideRange": "Date must be between {minDate} and {maxDate}",
52
52
  "components.input-date.openInstructions": "Use date format {format}. Arrow down or press enter to access mini-calendar.",
53
- "components.input-date.setToToday": "Set to Today",
53
+ "components.input-date.now": "Now",
54
+ "components.input-date.today": "Today",
54
55
  "components.input-number.hintInteger": "This field only accepts integer values (no decimals)",
55
56
  "components.input-number.hintDecimalDuplicate": "There's already a decimal in this number",
56
57
  "components.input-number.hintDecimalIncorrectComma": "To add a decimal use the comma \",\" character",
package/lang/es-es.js CHANGED
@@ -50,7 +50,8 @@ export default {
50
50
  "components.input-date.errorMinDateOnly": "La fecha debe ser posterior al {minDate}",
51
51
  "components.input-date.errorOutsideRange": "La fecha debe estar entre el {minDate} y el {maxDate}",
52
52
  "components.input-date.openInstructions": "Usar formato de fecha {format}. Use la fecha hacia abajo o pulse Intro para acceder al minicalendario.",
53
- "components.input-date.setToToday": "Establezca la fecha en Hoy",
53
+ "components.input-date.now": "Ahora",
54
+ "components.input-date.today": "Hoy",
54
55
  "components.input-number.hintInteger": "Este campo sólo acepta valores enteros (sin decimales)",
55
56
  "components.input-number.hintDecimalDuplicate": "Ya hay un decimal en este número",
56
57
  "components.input-number.hintDecimalIncorrectComma": "Para agregar un decimal, utilice la coma \",\"",
package/lang/es.js CHANGED
@@ -50,7 +50,8 @@ export default {
50
50
  "components.input-date.errorMinDateOnly": "La fecha debe ser posterior a {minDate}",
51
51
  "components.input-date.errorOutsideRange": "La fecha debe estar entre {minDate} y {maxDate}",
52
52
  "components.input-date.openInstructions": "Utilice el formato de fecha {format}. Presione la flecha hacia abajo o Intro para acceder al minicalendario.",
53
- "components.input-date.setToToday": "Establecer para hoy",
53
+ "components.input-date.now": "Ahora",
54
+ "components.input-date.today": "Hoy",
54
55
  "components.input-number.hintInteger": "Este campo solo acepta valores enteros (sin decimales)",
55
56
  "components.input-number.hintDecimalDuplicate": "Ya hay un decimal en este número",
56
57
  "components.input-number.hintDecimalIncorrectComma": "Para agregar un decimal, use el carácter coma (“,”)",
package/lang/fr-fr.js CHANGED
@@ -50,7 +50,8 @@ export default {
50
50
  "components.input-date.errorMinDateOnly": "La date doit être postérieure à {minDate}",
51
51
  "components.input-date.errorOutsideRange": "La date doit être comprise entre {minDate} et {maxDate}",
52
52
  "components.input-date.openInstructions": "Utiliser le format de date {format}. Utilisez la flèche vers le bas ou appuyez sur Entrée pour accéder au mini-calendrier.",
53
- "components.input-date.setToToday": "Défini sur Aujourd'hui",
53
+ "components.input-date.now": "Maintenant",
54
+ "components.input-date.today": "Aujourd’hui",
54
55
  "components.input-number.hintInteger": "Ce champ accepte uniquement les valeurs entières (pas de décimales)",
55
56
  "components.input-number.hintDecimalDuplicate": "Il existe déjà une décimale dans ce nombre",
56
57
  "components.input-number.hintDecimalIncorrectComma": "Pour ajouter une décimale, utilisez la virgule « , »",
package/lang/fr.js CHANGED
@@ -50,7 +50,8 @@ export default {
50
50
  "components.input-date.errorMinDateOnly": "La date doit être postérieure à {minDate}",
51
51
  "components.input-date.errorOutsideRange": "La date doit être comprise entre {minDate} et {maxDate}",
52
52
  "components.input-date.openInstructions": "Utiliser le format de date {format}. Utiliser la flèche vers le bas ou la touche d'entrée pour accéder au mini-calendrier.",
53
- "components.input-date.setToToday": "Régler à aujourd'hui",
53
+ "components.input-date.now": "Maintenant",
54
+ "components.input-date.today": "Aujourd'hui",
54
55
  "components.input-number.hintInteger": "Ce champ accepte uniquement les valeurs entières (sans décimales)",
55
56
  "components.input-number.hintDecimalDuplicate": "Ce nombre comporte déjà une décimale",
56
57
  "components.input-number.hintDecimalIncorrectComma": "Pour ajouter une décimale, utilisez la virgule « , »",
package/lang/ja.js CHANGED
@@ -50,7 +50,8 @@ export default {
50
50
  "components.input-date.errorMinDateOnly": "日付は {minDate} より後にする必要があります",
51
51
  "components.input-date.errorOutsideRange": "日付は {minDate} から {maxDate} の間にする必要があります",
52
52
  "components.input-date.openInstructions": "日付形式 {format} を使用します。ミニカレンダーにアクセスするには下矢印を使うか Enter を押します。",
53
- "components.input-date.setToToday": "今日に設定",
53
+ "components.input-date.now": "現在",
54
+ "components.input-date.today": "今日",
54
55
  "components.input-number.hintInteger": "このフィールドには整数値のみ入力できます(小数不可)。",
55
56
  "components.input-number.hintDecimalDuplicate": "この数値にはすでに小数があります",
56
57
  "components.input-number.hintDecimalIncorrectComma": "小数を追加するには、カンマ「,」文字を使用します",
package/lang/ko.js CHANGED
@@ -50,7 +50,8 @@ export default {
50
50
  "components.input-date.errorMinDateOnly": "날짜는 {minDate} 이후여야 합니다.",
51
51
  "components.input-date.errorOutsideRange": "날짜는 {minDate}와 {maxDate} 사이여야 합니다.",
52
52
  "components.input-date.openInstructions": "{format} 날짜 형식을 사용하십시오. 미니 달력에 접근하려면 아래쪽 화살표를 누르거나 Enter 키를 누르십시오.",
53
- "components.input-date.setToToday": "오늘로 설정",
53
+ "components.input-date.now": "현재",
54
+ "components.input-date.today": "오늘",
54
55
  "components.input-number.hintInteger": "이 필드는 정수 값만 허용합니다(소수점 없음)",
55
56
  "components.input-number.hintDecimalDuplicate": "이 숫자에 이미 소수점이 있습니다",
56
57
  "components.input-number.hintDecimalIncorrectComma": "소수점을 추가하려면 쉼표 \",\" 문자를 사용합니다",
package/lang/nl.js CHANGED
@@ -50,7 +50,8 @@ export default {
50
50
  "components.input-date.errorMinDateOnly": "Datum moet na {minDate} liggen",
51
51
  "components.input-date.errorOutsideRange": "Datum moet tussen {minDate} en {maxDate} liggen",
52
52
  "components.input-date.openInstructions": "Gebruik datumnotatie {format}. Gebruik Pijl omlaag of druk op Enter om de mini-agenda te openen.",
53
- "components.input-date.setToToday": "Instellen op Vandaag",
53
+ "components.input-date.now": "Nu",
54
+ "components.input-date.today": "Vandaag",
54
55
  "components.input-number.hintInteger": "Dit veld accepteert alleen gehele getallen (geen decimalen)",
55
56
  "components.input-number.hintDecimalDuplicate": "Dit getal bevat al een decimaal",
56
57
  "components.input-number.hintDecimalIncorrectComma": "Als u een decimaal wilt toevoegen, gebruikt u het teken ','",
package/lang/pt.js CHANGED
@@ -50,7 +50,8 @@ export default {
50
50
  "components.input-date.errorMinDateOnly": "A data precisa ser posterior a {minDate}",
51
51
  "components.input-date.errorOutsideRange": "A data precisa estar entre {minDate} e {maxDate}",
52
52
  "components.input-date.openInstructions": "Adote o formato de data {format}. Use a tecla de seta para baixo ou pressione Enter para acessar o minicalendário.",
53
- "components.input-date.setToToday": "Definir como Hoje",
53
+ "components.input-date.now": "Agora",
54
+ "components.input-date.today": "Hoje",
54
55
  "components.input-number.hintInteger": "Este campo aceita apenas valores inteiros (não decimais)",
55
56
  "components.input-number.hintDecimalDuplicate": "Já existe um decimal neste número",
56
57
  "components.input-number.hintDecimalIncorrectComma": "Para adicionar um decimal, use o caractere vírgula “,”",
package/lang/sv.js CHANGED
@@ -50,7 +50,8 @@ export default {
50
50
  "components.input-date.errorMinDateOnly": "Datumet måste vara efter {minDate}",
51
51
  "components.input-date.errorOutsideRange": "Datumet ska vara mellan {minDate} och {maxDate}",
52
52
  "components.input-date.openInstructions": "Använd datumformatet {format}. Om du vill visa minikalendern trycker du på nedåtpil eller Enter.",
53
- "components.input-date.setToToday": "Ange till i dag",
53
+ "components.input-date.now": "Nu",
54
+ "components.input-date.today": "Idag",
54
55
  "components.input-number.hintInteger": "I det här fältet accepteras endast heltalsvärden (inga decimaler)",
55
56
  "components.input-number.hintDecimalDuplicate": "Det finns redan en decimal i det här talet",
56
57
  "components.input-number.hintDecimalIncorrectComma": "Om du vill lägga till en decimal använder du kommatecknet \",\"",
package/lang/tr.js CHANGED
@@ -50,7 +50,8 @@ export default {
50
50
  "components.input-date.errorMinDateOnly": "Tarih, {minDate} tarihinden sonra olmalıdır",
51
51
  "components.input-date.errorOutsideRange": "Tarih, {minDate} ile {maxDate} arasında olmalıdır",
52
52
  "components.input-date.openInstructions": "{format} tarih formatını kullanın. Küçük takvime erişmek için aşağı okunu kullanın veya enter tuşuna basın.",
53
- "components.input-date.setToToday": "Bugün olarak ayarlayın",
53
+ "components.input-date.now": "Şimdi",
54
+ "components.input-date.today": "Bugün",
54
55
  "components.input-number.hintInteger": "Bu alanda yalnızca tam sayı değerleri kabul edilir (ondalık sayı kabul edilmez)",
55
56
  "components.input-number.hintDecimalDuplicate": "Bu sayıda zaten bir ondalık var",
56
57
  "components.input-number.hintDecimalIncorrectComma": "Ondalık sayı eklemek için virgül \",\" karakterini kullanın",
package/lang/zh-tw.js CHANGED
@@ -50,7 +50,8 @@ export default {
50
50
  "components.input-date.errorMinDateOnly": "日期必須晚於 {minDate}",
51
51
  "components.input-date.errorOutsideRange": "日期必須介於 {minDate} 與 {maxDate} 之間",
52
52
  "components.input-date.openInstructions": "使用日期格式 {format}。按向下箭頭,或按下「Enter」以存取迷你行事曆。",
53
- "components.input-date.setToToday": "設為今天",
53
+ "components.input-date.now": "立即",
54
+ "components.input-date.today": "今天",
54
55
  "components.input-number.hintInteger": "此欄位僅接受整數值 (無小數位數)",
55
56
  "components.input-number.hintDecimalDuplicate": "這個數字已經有一個小數位數",
56
57
  "components.input-number.hintDecimalIncorrectComma": "若要新增小數位數,請使用逗號「,」字元",
package/lang/zh.js CHANGED
@@ -50,7 +50,8 @@ export default {
50
50
  "components.input-date.errorMinDateOnly": "日期必须晚于 {minDate}",
51
51
  "components.input-date.errorOutsideRange": "日期必须介于 {minDate} 和 {maxDate} 之间",
52
52
  "components.input-date.openInstructions": "使用日期格式 {format}。利用向下箭头键或按 Enter 键访问迷你日历。",
53
- "components.input-date.setToToday": "设置为“今天”",
53
+ "components.input-date.now": "现在",
54
+ "components.input-date.today": "今天",
54
55
  "components.input-number.hintInteger": "此字段只接受整数值(无小数)",
55
56
  "components.input-number.hintDecimalDuplicate": "此数中已有一个小数",
56
57
  "components.input-number.hintDecimalIncorrectComma": "要添加小数,请使用逗号“,”字符",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "1.206.0",
3
+ "version": "1.207.2",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "repository": "https://github.com/BrightspaceUI/core.git",
6
6
  "publishConfig": {