@brightspace-ui/core 2.60.0 → 2.60.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.
|
@@ -203,7 +203,8 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
|
|
|
203
203
|
if (!this.shadowRoot) return;
|
|
204
204
|
const content = this.shadowRoot.querySelector('.d2l-dialog-content');
|
|
205
205
|
if (content) {
|
|
206
|
-
const
|
|
206
|
+
const autofocusElem = this._findAutofocusElement(content);
|
|
207
|
+
const elementToFocus = autofocusElem ? autofocusElem : getNextFocusable(content);
|
|
207
208
|
if (isComposedAncestor(this.shadowRoot.querySelector('.d2l-dialog-inner'), elementToFocus)) {
|
|
208
209
|
forceFocusVisible(elementToFocus, false);
|
|
209
210
|
return;
|
|
@@ -87,10 +87,12 @@ export const SelectionObserverMixin = superclass => class extends superclass {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
_handleSelectionObserverSubscribe(e) {
|
|
90
|
-
if (
|
|
90
|
+
if (this._provider) {
|
|
91
|
+
const target = e.composedPath()[0];
|
|
92
|
+
if (target === this) return;
|
|
93
|
+
|
|
91
94
|
e.stopPropagation();
|
|
92
95
|
e.detail.provider = this._provider;
|
|
93
|
-
const target = e.composedPath()[0];
|
|
94
96
|
this._provider.subscribeObserver(target);
|
|
95
97
|
}
|
|
96
98
|
}
|
package/custom-elements.json
CHANGED
|
@@ -10126,7 +10126,30 @@
|
|
|
10126
10126
|
},
|
|
10127
10127
|
{
|
|
10128
10128
|
"name": "d2l-test-selection-observer-shadow",
|
|
10129
|
-
"path": "./components/selection/test/selection-component.js"
|
|
10129
|
+
"path": "./components/selection/test/selection-component.js",
|
|
10130
|
+
"attributes": [
|
|
10131
|
+
{
|
|
10132
|
+
"name": "selection-for",
|
|
10133
|
+
"description": "Id of the `SelectionMixin` component this component wants to observe (if not located within that component)",
|
|
10134
|
+
"type": "string"
|
|
10135
|
+
}
|
|
10136
|
+
],
|
|
10137
|
+
"properties": [
|
|
10138
|
+
{
|
|
10139
|
+
"name": "selectionFor",
|
|
10140
|
+
"attribute": "selection-for",
|
|
10141
|
+
"description": "Id of the `SelectionMixin` component this component wants to observe (if not located within that component)",
|
|
10142
|
+
"type": "string"
|
|
10143
|
+
},
|
|
10144
|
+
{
|
|
10145
|
+
"name": "selectionInfo"
|
|
10146
|
+
}
|
|
10147
|
+
],
|
|
10148
|
+
"events": [
|
|
10149
|
+
{
|
|
10150
|
+
"name": "d2l-selection-observer-subscribe"
|
|
10151
|
+
}
|
|
10152
|
+
]
|
|
10130
10153
|
},
|
|
10131
10154
|
{
|
|
10132
10155
|
"name": "d2l-test-skeleton-box",
|
package/mixins/localize-mixin.js
CHANGED
|
@@ -130,7 +130,7 @@ export const LocalizeMixin = dedupeMixin(superclass => class extends superclass
|
|
|
130
130
|
|
|
131
131
|
static _generatePossibleLanguages(config) {
|
|
132
132
|
|
|
133
|
-
if (config
|
|
133
|
+
if (config && config.useBrowserLangs) return navigator.languages.map(e => e.toLowerCase()).concat('en');
|
|
134
134
|
|
|
135
135
|
const { language, fallbackLanguage } = this.documentLocaleSettings;
|
|
136
136
|
const langs = [ language, fallbackLanguage ]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.60.
|
|
3
|
+
"version": "2.60.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",
|