@brightspace-ui/core 2.131.0 → 2.131.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.
|
@@ -463,8 +463,7 @@ class Calendar extends LocalizeCoreElement(RtlMixin(LitElement)) {
|
|
|
463
463
|
const month = day.getMonth();
|
|
464
464
|
const date = day.getDate();
|
|
465
465
|
const weekday = calendarData.descriptor.calendar.days.long[calendarData.daysOfWeekIndex[index]];
|
|
466
|
-
const description = `${weekday} ${date}
|
|
467
|
-
// role="gridcell" used for screen reader (e.g., JAWS and VoiceOver) behavior to work properly
|
|
466
|
+
const description = `${weekday} ${date} ${formatDate(day, { format: 'monthYear' })}`;
|
|
468
467
|
return html`
|
|
469
468
|
<td
|
|
470
469
|
aria-selected="${selected ? 'true' : 'false'}"
|
|
@@ -519,7 +518,7 @@ class Calendar extends LocalizeCoreElement(RtlMixin(LitElement)) {
|
|
|
519
518
|
icon="tier1:chevron-right">
|
|
520
519
|
</d2l-button-icon>
|
|
521
520
|
</div>
|
|
522
|
-
<table aria-labelledby="${labelId}"
|
|
521
|
+
<table aria-labelledby="${labelId}">
|
|
523
522
|
${summary}
|
|
524
523
|
<thead aria-hidden="true">
|
|
525
524
|
<tr>${weekdayHeaders}</tr>
|
|
@@ -11,7 +11,6 @@ import { styleMap } from 'lit/directives/style-map.js';
|
|
|
11
11
|
/**
|
|
12
12
|
* A component used to minimize the display of long content, while providing a way to reveal the full content.
|
|
13
13
|
* @slot - Default content placed inside of the component
|
|
14
|
-
* @fires d2l-more-less-render - Dispatched when the component finishes rendering
|
|
15
14
|
*/
|
|
16
15
|
class MoreLess extends LocalizeCoreElement(LitElement) {
|
|
17
16
|
|
|
@@ -147,12 +146,6 @@ class MoreLess extends LocalizeCoreElement(LitElement) {
|
|
|
147
146
|
}
|
|
148
147
|
|
|
149
148
|
render() {
|
|
150
|
-
requestAnimationFrame(
|
|
151
|
-
() => this.dispatchEvent(new CustomEvent('d2l-more-less-render', {
|
|
152
|
-
bubbles: false,
|
|
153
|
-
composed: false
|
|
154
|
-
}))
|
|
155
|
-
);
|
|
156
149
|
const contentClasses = {
|
|
157
150
|
'd2l-more-less-content': true,
|
|
158
151
|
'd2l-more-less-transition': this.__transitionAdded
|
package/custom-elements.json
CHANGED
|
@@ -9875,12 +9875,6 @@
|
|
|
9875
9875
|
"default": "\"getDocumentLocaleSettings()\""
|
|
9876
9876
|
}
|
|
9877
9877
|
],
|
|
9878
|
-
"events": [
|
|
9879
|
-
{
|
|
9880
|
-
"name": "d2l-more-less-render",
|
|
9881
|
-
"description": "Dispatched when the component finishes rendering"
|
|
9882
|
-
}
|
|
9883
|
-
],
|
|
9884
9878
|
"slots": [
|
|
9885
9879
|
{
|
|
9886
9880
|
"name": "",
|
|
@@ -126,6 +126,16 @@ export const LabelledMixin = superclass => class extends superclass {
|
|
|
126
126
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
_dispatchChangeEvent() {
|
|
130
|
+
/** @ignore */
|
|
131
|
+
this.dispatchEvent(new CustomEvent(
|
|
132
|
+
'd2l-labelled-mixin-label-change', {
|
|
133
|
+
bubbles: false,
|
|
134
|
+
composed: false
|
|
135
|
+
}
|
|
136
|
+
));
|
|
137
|
+
}
|
|
138
|
+
|
|
129
139
|
_throwError(err) {
|
|
130
140
|
if (!this.labelRequired || this._missingLabelErrorHasBeenThrown) return;
|
|
131
141
|
this._missingLabelErrorHasBeenThrown = true;
|
|
@@ -134,9 +144,14 @@ export const LabelledMixin = superclass => class extends superclass {
|
|
|
134
144
|
|
|
135
145
|
_updateLabelElem(labelElem) {
|
|
136
146
|
|
|
147
|
+
const oldLabelVal = this.label;
|
|
148
|
+
|
|
137
149
|
// setting textContent doesn't change labelElem but we do need to refetch the label
|
|
138
150
|
if (labelElem === this._labelElem && this._labelElem) {
|
|
139
151
|
this.label = getLabel(this._labelElem);
|
|
152
|
+
if (oldLabelVal !== this.label) {
|
|
153
|
+
this._dispatchChangeEvent();
|
|
154
|
+
}
|
|
140
155
|
return;
|
|
141
156
|
}
|
|
142
157
|
|
|
@@ -180,13 +195,9 @@ export const LabelledMixin = superclass => class extends superclass {
|
|
|
180
195
|
}
|
|
181
196
|
|
|
182
197
|
this.label = getLabel(this._labelElem);
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
bubbles: false,
|
|
187
|
-
composed: false
|
|
188
|
-
}
|
|
189
|
-
));
|
|
198
|
+
if (oldLabelVal !== this.label) {
|
|
199
|
+
this._dispatchChangeEvent();
|
|
200
|
+
}
|
|
190
201
|
|
|
191
202
|
}
|
|
192
203
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.131.
|
|
3
|
+
"version": "2.131.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",
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
"@brightspace-ui/stylelint-config": "^0.8",
|
|
48
48
|
"@brightspace-ui/testing": "^0.9",
|
|
49
49
|
"@open-wc/semantic-dom-diff": "^0.20",
|
|
50
|
-
"@open-wc/testing": "^3",
|
|
51
50
|
"@rollup/plugin-dynamic-import-vars": "^2",
|
|
52
51
|
"@rollup/plugin-node-resolve": "^15",
|
|
53
52
|
"@rollup/plugin-replace": "^5",
|