@brightspace-ui/core 2.139.3 → 2.140.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.
@@ -1,11 +1,12 @@
1
1
  import { css, html, LitElement } from 'lit';
2
2
  import { classMap } from 'lit/directives/class-map.js';
3
+ import { SkeletonGroupMixin } from '../skeleton/skeleton-group-mixin.js';
3
4
 
4
5
  /**
5
6
  * A component that renders a container and layout for collapsible panels
6
7
  * @slot default - Slot for panels. Only accepts `d2l-collapsible-panel`
7
8
  */
8
- class CollapsiblePanelGroup extends LitElement {
9
+ class CollapsiblePanelGroup extends SkeletonGroupMixin(LitElement) {
9
10
 
10
11
  static get properties() {
11
12
  return {
@@ -373,7 +373,7 @@ class InputNumber extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixi
373
373
  `;
374
374
  }
375
375
 
376
- updated(changedProperties) {
376
+ async updated(changedProperties) {
377
377
  super.updated(changedProperties);
378
378
 
379
379
  let checkValidity = false;
@@ -390,6 +390,9 @@ class InputNumber extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixi
390
390
  });
391
391
 
392
392
  if (checkValidity) {
393
+ const inputTextElem = this.shadowRoot.querySelector('d2l-input-text');
394
+ await inputTextElem.updateComplete;
395
+
393
396
  let rangeUnderflowCondition = false;
394
397
  if (typeof(this.min) === 'number') {
395
398
  rangeUnderflowCondition = this.minExclusive ? this.value <= this.min : this.value < this.min;
@@ -1150,6 +1150,21 @@
1150
1150
  "name": "d2l-collapsible-panel-group",
1151
1151
  "path": "./components/collapsible-panel/collapsible-panel-group.js",
1152
1152
  "description": "A component that renders a container and layout for collapsible panels",
1153
+ "attributes": [
1154
+ {
1155
+ "name": "skeleton",
1156
+ "description": "Render the component as a [skeleton loader](https://github.com/BrightspaceUI/core/tree/main/components/skeleton).",
1157
+ "type": "boolean"
1158
+ }
1159
+ ],
1160
+ "properties": [
1161
+ {
1162
+ "name": "skeleton",
1163
+ "attribute": "skeleton",
1164
+ "description": "Render the component as a [skeleton loader](https://github.com/BrightspaceUI/core/tree/main/components/skeleton).",
1165
+ "type": "boolean"
1166
+ }
1167
+ ],
1153
1168
  "slots": [
1154
1169
  {
1155
1170
  "name": "default",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.139.3",
3
+ "version": "2.140.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",