@brightspace-ui/core 3.106.1 → 3.106.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.
@@ -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"> 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
|
-
|
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.106.
|
3
|
+
"version": "3.106.2",
|
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",
|