@brightspace-ui/core 2.187.5 → 2.188.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.
@@ -136,6 +136,12 @@ The `d2l-collapsible-panel` element is a container that provides specific layout
|
|
136
136
|
| `panel-title` | String | The title of the panel |
|
137
137
|
| `skeleton` | Boolean | Renders the panel title and the expand/collapse icon as skeleton loaders |
|
138
138
|
| `type` | String | The type of collapsible panel |
|
139
|
+
|
140
|
+
### Events
|
141
|
+
| Event | Description |
|
142
|
+
|--|--|
|
143
|
+
| `d2l-collapsible-panel-expand` | Dispatched when the panel is expanded |
|
144
|
+
| `d2l-collapsible-panel-collapse` | Dispatched when the panel is collapsed |
|
139
145
|
<!-- docs: end hidden content -->
|
140
146
|
|
141
147
|
### Panel Types
|
@@ -168,15 +168,10 @@ class CollapsiblePanel extends SkeletonMixin(FocusMixin(RtlMixin(LitElement))) {
|
|
168
168
|
top: 2px;
|
169
169
|
}
|
170
170
|
.d2l-collapsible-panel-title {
|
171
|
-
-webkit-box-orient: vertical;
|
172
|
-
display: -webkit-box;
|
173
171
|
flex: 1;
|
174
|
-
-webkit-line-clamp: 2;
|
175
172
|
margin: 0.3rem;
|
176
173
|
margin-inline-start: var(--d2l-collapsible-panel-spacing-inline);
|
177
174
|
overflow-wrap: anywhere;
|
178
|
-
overflow-x: hidden;
|
179
|
-
overflow-y: hidden;
|
180
175
|
user-select: none;
|
181
176
|
}
|
182
177
|
.d2l-collapsible-panel.has-before .d2l-collapsible-panel-title {
|
@@ -390,7 +385,7 @@ class CollapsiblePanel extends SkeletonMixin(FocusMixin(RtlMixin(LitElement))) {
|
|
390
385
|
|
391
386
|
_handleExpandCollapse(e) {
|
392
387
|
const eventPromise = this.expanded ? e.detail.expandComplete : e.detail.collapseComplete;
|
393
|
-
const event =
|
388
|
+
const event = this.expanded ? 'd2l-collapsible-panel-expand' : 'd2l-collapsible-panel-collapse';
|
394
389
|
|
395
390
|
this.dispatchEvent(new CustomEvent(
|
396
391
|
event, { bubbles: false, composed: false, detail: { complete: eventPromise } }
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.188.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",
|