@brightspace-ui/core 2.141.0 → 2.141.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/README.md
CHANGED
|
@@ -93,7 +93,7 @@ Start a [@web/dev-server](https://modern-web.dev/docs/dev-server/overview/) that
|
|
|
93
93
|
npm start
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
-
D2L employees can also view the latest main-branch demos at https://
|
|
96
|
+
D2L employees can also view the latest main-branch demos at https://live.d2l.dev/BrightspaceUI/core/.
|
|
97
97
|
|
|
98
98
|
### Linting
|
|
99
99
|
|
|
@@ -144,7 +144,7 @@ class AlertToast extends LitElement {
|
|
|
144
144
|
render() {
|
|
145
145
|
return html`
|
|
146
146
|
<div
|
|
147
|
-
class="d2l-alert-toast-container"
|
|
147
|
+
class="d2l-alert-toast-container vdiff-target"
|
|
148
148
|
data-state="${this._state}"
|
|
149
149
|
@transitionend=${this._onTransitionEnd}>
|
|
150
150
|
<d2l-alert
|
|
@@ -468,6 +468,7 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
|
|
|
468
468
|
}
|
|
469
469
|
|
|
470
470
|
const dialogOuterClasses = {
|
|
471
|
+
'vdiff-target': true,
|
|
471
472
|
'd2l-dialog-outer': true,
|
|
472
473
|
'd2l-dialog-outer-full-height': this._autoSize && this._isFullHeight,
|
|
473
474
|
'd2l-dialog-outer-overflow-bottom': this._overflowBottom,
|
|
@@ -743,7 +743,8 @@ class Filter extends FocusMixin(LocalizeCoreElement(RtlMixin(LitElement))) {
|
|
|
743
743
|
value: dimension.searchValue,
|
|
744
744
|
loadMoreCompleteCallback: (options) => {
|
|
745
745
|
applySearch(options);
|
|
746
|
-
this.shadowRoot.querySelector('d2l-dropdown-menu')
|
|
746
|
+
const menu = this.shadowRoot.querySelector('d2l-dropdown-menu');
|
|
747
|
+
menu ? menu.addEventListener('d2l-dropdown-position', e.detail.complete, { once: true }) : e.detail.complete();
|
|
747
748
|
}
|
|
748
749
|
},
|
|
749
750
|
bubbles: true,
|
|
@@ -8,6 +8,7 @@ class AsyncItem extends LitElement {
|
|
|
8
8
|
return {
|
|
9
9
|
delay: { type: Number },
|
|
10
10
|
key: { type: String },
|
|
11
|
+
manual: { type: Boolean },
|
|
11
12
|
throwError: { type: Boolean, attribute: 'throw-error' }
|
|
12
13
|
};
|
|
13
14
|
}
|
|
@@ -34,6 +35,7 @@ class AsyncItem extends LitElement {
|
|
|
34
35
|
super();
|
|
35
36
|
this.delay = 4000;
|
|
36
37
|
this.key = null;
|
|
38
|
+
this.manual = false;
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
render() {
|
|
@@ -45,18 +47,30 @@ class AsyncItem extends LitElement {
|
|
|
45
47
|
})}`;
|
|
46
48
|
}
|
|
47
49
|
|
|
50
|
+
reject() {
|
|
51
|
+
setTimeout(() => this._reject('error'), 0);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
resolve() {
|
|
55
|
+
setTimeout(() => this._resolve(html`<div>${this.key}</div>`), 0);
|
|
56
|
+
}
|
|
57
|
+
|
|
48
58
|
_getContent(key) {
|
|
49
59
|
return new Promise((resolve, reject) => {
|
|
50
60
|
if (!key) {
|
|
51
61
|
throw new InitialStateError();
|
|
52
62
|
} else {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
63
|
+
this._resolve = resolve;
|
|
64
|
+
this._reject = reject;
|
|
65
|
+
if (!this.manual) {
|
|
66
|
+
setTimeout(() => {
|
|
67
|
+
if (this.throwError) {
|
|
68
|
+
this.reject();
|
|
69
|
+
} else {
|
|
70
|
+
this.resolve();
|
|
71
|
+
}
|
|
72
|
+
}, this.delay);
|
|
73
|
+
}
|
|
60
74
|
}
|
|
61
75
|
});
|
|
62
76
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.141.
|
|
3
|
+
"version": "2.141.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",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@babel/eslint-parser": "^7",
|
|
48
48
|
"@brightspace-ui/stylelint-config": "^0.8",
|
|
49
|
-
"@brightspace-ui/testing": "^0.
|
|
49
|
+
"@brightspace-ui/testing": "^0.30",
|
|
50
50
|
"@open-wc/semantic-dom-diff": "^0.20",
|
|
51
51
|
"@rollup/plugin-dynamic-import-vars": "^2",
|
|
52
52
|
"@rollup/plugin-node-resolve": "^15",
|