@brightspace-ui/core 3.61.0 → 3.62.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.
- package/components/filter/demo/filter.html +5 -1
- package/components/filter/filter.js +1 -0
- 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">
|
@@ -174,6 +174,10 @@
|
|
174
174
|
<d2l-filter-dimension-set-date-time-range-value key="custom" type="date"></d2l-filter-dimension-set-date-time-range-value>
|
175
175
|
<d2l-filter-dimension-set-date-time-range-value key="custom2" text="Custom Date Range with Time" start-value="2024-10-12T12:00:00Z"></d2l-filter-dimension-set-date-time-range-value>
|
176
176
|
</d2l-filter-dimension-set>
|
177
|
+
<d2l-filter-dimension-set key="dates2" text="Dates (short)">
|
178
|
+
<d2l-filter-dimension-set-date-text-value key="6months2" range="6months"></d2l-filter-dimension-set-date-text-value>
|
179
|
+
<d2l-filter-dimension-set-date-time-range-value key="custom3" text="Custom Date Range with Time" start-value="2024-10-12T12:00:00Z"></d2l-filter-dimension-set-date-time-range-value>
|
180
|
+
</d2l-filter-dimension-set>
|
177
181
|
<d2l-filter-dimension-set key="role" text="Role" selected-first>
|
178
182
|
<d2l-filter-dimension-set-value key="admin" text="Admin" count="0"></d2l-filter-dimension-set-value>
|
179
183
|
<d2l-filter-dimension-set-value key="instructor" text="Instructor" count="22"></d2l-filter-dimension-set-value>
|
@@ -218,6 +218,7 @@ class Filter extends FocusMixin(LocalizeCoreElement(RtlMixin(LitElement))) {
|
|
218
218
|
/* Needed to "undo" the menu-item style for multiple dimensions */
|
219
219
|
d2l-hierarchical-view {
|
220
220
|
cursor: auto;
|
221
|
+
overflow: auto; /* remove with GAUD-131-dropdown-fixed-positioning flag clean up */
|
221
222
|
}
|
222
223
|
|
223
224
|
d2l-loading-spinner {
|
@@ -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.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",
|