@brightspace-ui/core 3.106.1 → 3.106.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
 
2
2
  import '../../button/button.js';
3
3
  import '../../button/floating-buttons.js';
4
+ import '../../inputs/input-date-time-range.js';
4
5
  import '../../inputs/input-percent.js';
5
6
  import '../../inputs/input-text.js';
6
7
  import '../../inputs/input-textarea.js';
@@ -50,6 +51,9 @@ class FormNestedDemo extends LitElement {
50
51
  <div class="d2l-form-demo-container">
51
52
  <d2l-input-percent label="Awesome" name="grade"></d2l-input-percent>
52
53
  </div>
54
+ <div class="d2l-form-demo-container">
55
+ <d2l-input-date-time-range label="Date Range"></d2l-input-date-time-range>
56
+ </div>
53
57
  <fieldset class="d2l-form-demo-container">
54
58
  <legend>Choose your favorite monster</legend>
55
59
  <label><input type="radio" name="monster" value="kraken">&nbsp;Kraken</label>
@@ -308,7 +308,12 @@ class InputDateTime extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMi
308
308
  if (!this.shadowRoot) return;
309
309
  const dateInput = this.shadowRoot.querySelector('d2l-input-date');
310
310
  const timeInput = this.shadowRoot.querySelector('d2l-input-time');
311
- const errors = await Promise.all([dateInput.validate(), timeInput.validate(), super.validate()]);
311
+
312
+ const errors = await Promise.all([
313
+ dateInput.validate(),
314
+ timeInput ? timeInput.validate() : Promise.resolve([]),
315
+ super.validate()
316
+ ]);
312
317
  return [...errors[0], ...errors[1], ...errors[2]];
313
318
  }
314
319
 
package/lang/mi.js CHANGED
@@ -27,7 +27,7 @@ export default {
27
27
  "components.filter.searchResults": "{number, plural, =0 {Kāore he hua rapu} one {{number} hua rapu} other {{number} Ngā Huanga Rapu}}",
28
28
  "components.filter.selectedFirstListLabel": "{headerText}. Ka puta tuatahi ngā tātari kua tīpakohia.",
29
29
  "components.filter.singleDimensionDescription": "Tātari mā: {filterName}",
30
- "components.filter-dimension-set-date-text-value.textHours": "{num, plural, one {Tērā haora} other {Whakamutunga {num} hāora}}",
30
+ "components.filter-dimension-set-date-text-value.textHours": "{num, plural, =1 {Tērā haora} other {Whakamutunga {num} hāora}}",
31
31
  "components.filter-dimension-set-date-text-value.textDays": "{num, plural, =0 {Āianei} one {Whakamutunga {num} Te rā} other {Whakamutunga {num} ngā rā}}",
32
32
  "components.filter-dimension-set-date-text-value.textMonths": "Ngā marama {num} whakamutunga",
33
33
  "components.filter-dimension-set-date-time-range-value.label": "{text}, whakaroha hei kōwhiri i ngā rā",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.106.1",
3
+ "version": "3.106.3",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",