@brightspace-ui/core 3.61.0 → 3.62.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.
- package/components/filter/demo/filter.html +1 -1
- package/components/focus-trap/focus-trap.js +10 -10
- package/components/hierarchical-view/hierarchical-view-mixin.js +13 -12
- package/mixins/loading-complete/loading-complete-mixin.js +7 -7
- package/mixins/localize/localize-mixin.js +2 -2
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import './filter-load-more-demo.js';
|
|
17
17
|
</script>
|
|
18
18
|
<script>
|
|
19
|
-
window.D2L = { LP: { Web: { UI: { Flags: { Flag: () =>
|
|
19
|
+
window.D2L = { LP: { Web: { UI: { Flags: { Flag: () => true } } } } };
|
|
20
20
|
</script>
|
|
21
21
|
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1.0">
|
|
22
22
|
<meta charset="UTF-8">
|
|
@@ -34,16 +34,6 @@ class FocusTrap extends FocusMixin(LitElement) {
|
|
|
34
34
|
`;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
static #exemptSelectors = [
|
|
38
|
-
'.d2l-focus-trap-exempt',
|
|
39
|
-
'.equatio-toolbar-wrapper',
|
|
40
|
-
'.equatio-toolbar-shadow-root-container'
|
|
41
|
-
].join(', ');
|
|
42
|
-
|
|
43
|
-
static #isExempt(target) {
|
|
44
|
-
return !!target?.closest(this.#exemptSelectors);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
37
|
constructor() {
|
|
48
38
|
super();
|
|
49
39
|
this.trap = false;
|
|
@@ -91,6 +81,12 @@ class FocusTrap extends FocusMixin(LitElement) {
|
|
|
91
81
|
}
|
|
92
82
|
}
|
|
93
83
|
|
|
84
|
+
static #exemptSelectors = [
|
|
85
|
+
'.d2l-focus-trap-exempt',
|
|
86
|
+
'.equatio-toolbar-wrapper',
|
|
87
|
+
'.equatio-toolbar-shadow-root-container'
|
|
88
|
+
].join(', ');
|
|
89
|
+
|
|
94
90
|
_focusFirst() {
|
|
95
91
|
const focusable = this.shadowRoot &&
|
|
96
92
|
getNextFocusable(this.shadowRoot.querySelector('.d2l-focus-trap-start'));
|
|
@@ -147,6 +143,10 @@ class FocusTrap extends FocusMixin(LitElement) {
|
|
|
147
143
|
this._focusFirst();
|
|
148
144
|
}
|
|
149
145
|
|
|
146
|
+
static #isExempt(target) {
|
|
147
|
+
return !!target?.closest(this.#exemptSelectors);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
customElements.define('d2l-focus-trap', FocusTrap);
|
|
@@ -50,6 +50,9 @@ export const HierarchicalViewMixin = superclass => class extends superclass {
|
|
|
50
50
|
display: inline-block;
|
|
51
51
|
vertical-align: top; /* DE37329: required to prevent extra spacing caused by inline-block */
|
|
52
52
|
}
|
|
53
|
+
.d2l-hierarchical-view-content {
|
|
54
|
+
position: relative;
|
|
55
|
+
}
|
|
53
56
|
.d2l-hierarchical-view-content.d2l-child-view-show {
|
|
54
57
|
-webkit-animation: show-child-view-animation forwards 300ms linear;
|
|
55
58
|
animation: show-child-view-animation 300ms forwards linear;
|
|
@@ -66,31 +69,29 @@ export const HierarchicalViewMixin = superclass => class extends superclass {
|
|
|
66
69
|
.d2l-hierarchical-view-content.d2l-child-view-show {
|
|
67
70
|
-webkit-animation: none;
|
|
68
71
|
animation: none;
|
|
69
|
-
|
|
70
|
-
transform: translate(-100%, 0);
|
|
72
|
+
left: -100%;
|
|
71
73
|
}
|
|
72
74
|
.d2l-hierarchical-view-content.d2l-child-view-hide {
|
|
73
75
|
-webkit-animation: none;
|
|
74
76
|
animation: none;
|
|
75
|
-
|
|
76
|
-
transform: translate(0, 0);
|
|
77
|
+
left: 0;
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
@keyframes show-child-view-animation {
|
|
80
|
-
0% {
|
|
81
|
-
100% {
|
|
81
|
+
0% { left: 0; }
|
|
82
|
+
100% { left: -100%; }
|
|
82
83
|
}
|
|
83
84
|
@-webkit-keyframes show-child-view-animation {
|
|
84
|
-
0% {
|
|
85
|
-
100% {
|
|
85
|
+
0% { left: 0; }
|
|
86
|
+
100% { left: -100%; }
|
|
86
87
|
}
|
|
87
88
|
@keyframes hide-child-view-animation {
|
|
88
|
-
0% {
|
|
89
|
-
100% {
|
|
89
|
+
0% { left: -100%; }
|
|
90
|
+
100% { left: 0; }
|
|
90
91
|
}
|
|
91
92
|
@-webkit-keyframes hide-child-view-animation {
|
|
92
|
-
0% {
|
|
93
|
-
100% {
|
|
93
|
+
0% { left: -100%; }
|
|
94
|
+
100% { left: 0; }
|
|
94
95
|
}
|
|
95
96
|
`;
|
|
96
97
|
}
|
|
@@ -2,13 +2,6 @@ import { dedupeMixin } from '@open-wc/dedupe-mixin';
|
|
|
2
2
|
|
|
3
3
|
export const LoadingCompleteMixin = dedupeMixin((superclass) => class extends superclass {
|
|
4
4
|
|
|
5
|
-
#loadingCompleteResolve;
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line sort-class-members/sort-class-members
|
|
8
|
-
#loadingCompletePromise = !Object.prototype.hasOwnProperty.call(this.constructor.prototype, 'getLoadingComplete')
|
|
9
|
-
? new Promise(resolve => this.#loadingCompleteResolve = resolve)
|
|
10
|
-
: Promise.resolve();
|
|
11
|
-
|
|
12
5
|
get loadingComplete() {
|
|
13
6
|
return this.getLoadingComplete();
|
|
14
7
|
}
|
|
@@ -27,4 +20,11 @@ export const LoadingCompleteMixin = dedupeMixin((superclass) => class extends su
|
|
|
27
20
|
return this.#loadingCompletePromise;
|
|
28
21
|
}
|
|
29
22
|
|
|
23
|
+
#loadingCompleteResolve;
|
|
24
|
+
|
|
25
|
+
// eslint-disable-next-line sort-class-members/sort-class-members
|
|
26
|
+
#loadingCompletePromise = !Object.prototype.hasOwnProperty.call(this.constructor.prototype, 'getLoadingComplete')
|
|
27
|
+
? new Promise(resolve => this.#loadingCompleteResolve = resolve)
|
|
28
|
+
: Promise.resolve();
|
|
29
|
+
|
|
30
30
|
});
|
|
@@ -5,8 +5,6 @@ import { ifDefined } from 'lit/directives/if-defined.js';
|
|
|
5
5
|
|
|
6
6
|
export const _LocalizeMixinBase = dedupeMixin(superclass => class LocalizeMixinBaseClass extends getLocalizeClass(superclass) {
|
|
7
7
|
|
|
8
|
-
#updatedProperties = new Map();
|
|
9
|
-
|
|
10
8
|
constructor() {
|
|
11
9
|
super();
|
|
12
10
|
super.constructor.setLocalizeMarkup(localizeMarkup);
|
|
@@ -63,6 +61,8 @@ export const _LocalizeMixinBase = dedupeMixin(superclass => class LocalizeMixinB
|
|
|
63
61
|
this.requestUpdate('localize');
|
|
64
62
|
}
|
|
65
63
|
|
|
64
|
+
#updatedProperties = new Map();
|
|
65
|
+
|
|
66
66
|
});
|
|
67
67
|
|
|
68
68
|
export const LocalizeMixin = superclass => class extends _LocalizeMixinBase(superclass) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.62.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",
|