@brightspace-ui/core 3.171.0 → 3.171.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.
- package/components/collapsible-panel/collapsible-panel-group.js +1 -1
- package/components/collapsible-panel/collapsible-panel.js +1 -1
- package/components/form/form-element-mixin.js +1 -1
- package/components/inputs/input-date-time-range.js +1 -1
- package/components/inputs/input-date-time.js +1 -1
- package/components/list/list-item-drag-drop-mixin.js +3 -3
- package/custom-elements.json +6 -6
- package/package.json +1 -1
@@ -5,7 +5,7 @@ import { SubscriberRegistryController } from '../../controllers/subscriber/subsc
|
|
5
5
|
|
6
6
|
/**
|
7
7
|
* A component that renders a container and layout for collapsible panels
|
8
|
-
* @slot
|
8
|
+
* @slot - Slot for panels. Only accepts `d2l-collapsible-panel`
|
9
9
|
*/
|
10
10
|
class CollapsiblePanelGroup extends SkeletonGroupMixin(LitElement) {
|
11
11
|
|
@@ -47,7 +47,7 @@ function addTabListener() {
|
|
47
47
|
* @slot before - Slot for content to be placed at the left side of the header, aligned with the title and header slot
|
48
48
|
* @slot header - Slot for supporting header content
|
49
49
|
* @slot summary - Slot for the summary of the expanded content. Only accepts `d2l-collapsible-panel-summary-item`
|
50
|
-
* @slot
|
50
|
+
* @slot - Slot for the expanded content
|
51
51
|
* @slot actions - Slot for buttons and dropdown openers to be placed in top right corner of header
|
52
52
|
* @fires d2l-collapsible-panel-expand - Dispatched when the panel is expanded
|
53
53
|
* @fires d2l-collapsible-panel-collapse - Dispatched when the panel is collapsed
|
@@ -224,7 +224,7 @@ export const FormElementMixin = superclass => class extends LocalizeCoreElement(
|
|
224
224
|
if (oldValidationError !== this.validationError) {
|
225
225
|
this._errors = errors;
|
226
226
|
}
|
227
|
-
await this.
|
227
|
+
await this.updateComplete;
|
228
228
|
}
|
229
229
|
|
230
230
|
resetValidation() {
|
@@ -155,7 +155,7 @@ class InputDateTimeRange extends InteractiveMixin(FocusMixin(SkeletonMixin(FormE
|
|
155
155
|
* Time zone identifier for the time inputs to use.
|
156
156
|
* @type {string}
|
157
157
|
*/
|
158
|
-
timeZoneId: { type: String },
|
158
|
+
timeZoneId: { attribute: 'time-zone-id', type: String },
|
159
159
|
/**
|
160
160
|
* Hides the time zone inside the time selection dropdowns. Should only be used when the time input values are not related to any one time zone
|
161
161
|
* @type {Boolean}
|
@@ -89,7 +89,7 @@ class InputDateTime extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMi
|
|
89
89
|
* Time zone identifier for the time input to use.
|
90
90
|
* @type {string}
|
91
91
|
*/
|
92
|
-
timeZoneId: { type: String },
|
92
|
+
timeZoneId: { type: String, attribute: 'time-zone-id' },
|
93
93
|
/**
|
94
94
|
* Hides the time zone inside the time selection dropdown. Should only be used when the time input value is not related to any one time zone
|
95
95
|
* @type {Boolean}
|
@@ -633,15 +633,15 @@ export const ListItemDragDropMixin = superclass => class extends superclass {
|
|
633
633
|
}
|
634
634
|
}
|
635
635
|
}
|
636
|
-
e.dataTransfer.setDragImage(getDragImage(selectionInfo.keys.length, includePlus), 24, 26);
|
636
|
+
if (e.dataTransfer.setDragImage) e.dataTransfer.setDragImage(getDragImage(selectionInfo.keys.length, includePlus), 24, 26);
|
637
637
|
} else if (rootList.dragMultiple && this.expandable) {
|
638
638
|
const flattenedListItems = this._getFlattenedListItems(this);
|
639
|
-
e.dataTransfer.setDragImage(getDragImage(flattenedListItems.listItems.size, flattenedListItems.lazyLoadListItems.size > 0), 24, 26);
|
639
|
+
if (e.dataTransfer.setDragImage) e.dataTransfer.setDragImage(getDragImage(flattenedListItems.listItems.size, flattenedListItems.lazyLoadListItems.size > 0), 24, 26);
|
640
640
|
} else {
|
641
641
|
if (this.shadowRoot) {
|
642
642
|
const nodeImage = this.shadowRoot.querySelector('.d2l-list-item-drag-image') || this;
|
643
643
|
nodeImage.classList.add('dragging');
|
644
|
-
e.dataTransfer.setDragImage(nodeImage, 50, 50);
|
644
|
+
if (e.dataTransfer.setDragImage) e.dataTransfer.setDragImage(nodeImage, 50, 50);
|
645
645
|
}
|
646
646
|
}
|
647
647
|
|
package/custom-elements.json
CHANGED
@@ -1505,7 +1505,7 @@
|
|
1505
1505
|
],
|
1506
1506
|
"slots": [
|
1507
1507
|
{
|
1508
|
-
"name": "
|
1508
|
+
"name": "",
|
1509
1509
|
"description": "Slot for panels. Only accepts `d2l-collapsible-panel`"
|
1510
1510
|
}
|
1511
1511
|
]
|
@@ -1699,7 +1699,7 @@
|
|
1699
1699
|
"description": "Slot for the summary of the expanded content. Only accepts `d2l-collapsible-panel-summary-item`"
|
1700
1700
|
},
|
1701
1701
|
{
|
1702
|
-
"name": "
|
1702
|
+
"name": "",
|
1703
1703
|
"description": "Slot for the expanded content"
|
1704
1704
|
},
|
1705
1705
|
{
|
@@ -5882,7 +5882,7 @@
|
|
5882
5882
|
"type": "string"
|
5883
5883
|
},
|
5884
5884
|
{
|
5885
|
-
"name": "
|
5885
|
+
"name": "time-zone-id",
|
5886
5886
|
"description": "Time zone identifier for the time inputs to use.",
|
5887
5887
|
"type": "string"
|
5888
5888
|
},
|
@@ -6003,7 +6003,7 @@
|
|
6003
6003
|
},
|
6004
6004
|
{
|
6005
6005
|
"name": "timeZoneId",
|
6006
|
-
"attribute": "
|
6006
|
+
"attribute": "time-zone-id",
|
6007
6007
|
"description": "Time zone identifier for the time inputs to use.",
|
6008
6008
|
"type": "string"
|
6009
6009
|
},
|
@@ -6116,7 +6116,7 @@
|
|
6116
6116
|
"description": "A component that consists of a \"<d2l-input-date>\" and a \"<d2l-input-time>\" component. The time input only appears once a date is selected. This component displays the \"value\" if one is specified, and reflects the selected value when one is selected or entered.",
|
6117
6117
|
"attributes": [
|
6118
6118
|
{
|
6119
|
-
"name": "
|
6119
|
+
"name": "time-zone-id",
|
6120
6120
|
"description": "Time zone identifier for the time input to use.",
|
6121
6121
|
"type": "string"
|
6122
6122
|
},
|
@@ -6200,7 +6200,7 @@
|
|
6200
6200
|
"properties": [
|
6201
6201
|
{
|
6202
6202
|
"name": "timeZoneId",
|
6203
|
-
"attribute": "
|
6203
|
+
"attribute": "time-zone-id",
|
6204
6204
|
"description": "Time zone identifier for the time input to use.",
|
6205
6205
|
"type": "string"
|
6206
6206
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.171.
|
3
|
+
"version": "3.171.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",
|