@brightspace-ui/core 3.62.0 → 3.62.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.
@@ -27,6 +27,12 @@
|
|
27
27
|
<template>
|
28
28
|
<d2l-count-badge id="badge-announce-changes"size="small" announce-changes tab-stop text=" 1 new notification." type="notification" number="1"></d2l-count-badge>
|
29
29
|
<d2l-button id="increment-count">Increment Count</d2l-button>
|
30
|
+
<script type="module">
|
31
|
+
document.getElementById('increment-count').addEventListener('click', () => {
|
32
|
+
document.getElementById('badge-announce-changes').number += 1;
|
33
|
+
document.getElementById('badge-announce-changes').text = `${document.getElementById('badge-announce-changes').number} new notifications.`;
|
34
|
+
});
|
35
|
+
</script>
|
30
36
|
</template>
|
31
37
|
</d2l-demo-snippet>
|
32
38
|
|
@@ -61,12 +67,7 @@
|
|
61
67
|
<d2l-count-badge size="small" has-tooltip text=" 2 new notifications." type="notification" number="2"></d2l-count-badge>
|
62
68
|
</template>
|
63
69
|
</d2l-demo-snippet>
|
70
|
+
|
64
71
|
</d2l-demo-page>
|
65
|
-
<script type="module">
|
66
|
-
document.getElementById('increment-count').addEventListener('click', () => {
|
67
|
-
document.getElementById('badge-announce-changes').number += 1;
|
68
|
-
document.getElementById('badge-announce-changes').text = `${document.getElementById('badge-announce-changes').number} new notifications.`;
|
69
|
-
});
|
70
|
-
</script>
|
71
72
|
</body>
|
72
73
|
</html>
|
@@ -36,10 +36,6 @@ class CodeView extends LitElement {
|
|
36
36
|
super.attributeChangedCallback(name, oldval, newval);
|
37
37
|
}
|
38
38
|
|
39
|
-
firstUpdated() {
|
40
|
-
this._updateCode(this.shadowRoot.querySelector('slot'));
|
41
|
-
}
|
42
|
-
|
43
39
|
render() {
|
44
40
|
return html`
|
45
41
|
<div class="d2l-code-view-src"><slot @slotchange="${this._handleSlotChange}"></slot></div>
|
@@ -117,10 +117,6 @@ class DemoSnippet extends LitElement {
|
|
117
117
|
this._skeletonOn = false;
|
118
118
|
}
|
119
119
|
|
120
|
-
firstUpdated() {
|
121
|
-
this._updateCode(this.shadowRoot.querySelector('slot:not([name="_demo"])'));
|
122
|
-
}
|
123
|
-
|
124
120
|
render() {
|
125
121
|
const skeleton = this._hasSkeleton ? html`<d2l-switch text="Skeleton" ?on="${this._skeletonOn}" @change="${this._handleSkeletonChange}"></d2l-switch>` : null;
|
126
122
|
const switches = html`
|
@@ -137,7 +133,7 @@ class DemoSnippet extends LitElement {
|
|
137
133
|
<div class="d2l-demo-snippet-demo">
|
138
134
|
<div class="d2l-demo-snippet-demo-padding">
|
139
135
|
<slot name="_demo"></slot>
|
140
|
-
<slot></slot>
|
136
|
+
<slot @slotchange="${this._handleSlotChange}"></slot>
|
141
137
|
</div>
|
142
138
|
</div>
|
143
139
|
${settings}
|
@@ -152,15 +148,10 @@ class DemoSnippet extends LitElement {
|
|
152
148
|
changedProperties.forEach((_, prop) => {
|
153
149
|
if (prop === '_code') {
|
154
150
|
if (this.shadowRoot) this.shadowRoot.querySelector('d2l-code-view').forceUpdate();
|
155
|
-
this._updateHasSkeleton();
|
156
151
|
}
|
157
152
|
});
|
158
153
|
}
|
159
154
|
|
160
|
-
forceCodeUpdate() {
|
161
|
-
if (this.shadowRoot) this._updateCode(this.shadowRoot.querySelector('slot:not([name="_demo"])'));
|
162
|
-
}
|
163
|
-
|
164
155
|
_applyAttr(name, value, applyToShadowRoot) {
|
165
156
|
const query = this._isTemplate ? 'slot[name="_demo"]' : 'slot:not([name="_demo"])';
|
166
157
|
if (!this.shadowRoot) return;
|
@@ -239,6 +230,10 @@ class DemoSnippet extends LitElement {
|
|
239
230
|
this._applyAttr('skeleton', this._skeletonOn, false);
|
240
231
|
}
|
241
232
|
|
233
|
+
_handleSlotChange(e) {
|
234
|
+
this._updateCode(e.target);
|
235
|
+
}
|
236
|
+
|
242
237
|
_removeImportedDemo() {
|
243
238
|
if (!this.shadowRoot) return;
|
244
239
|
const nodes = this.shadowRoot.querySelector('slot[name="_demo"]').assignedNodes();
|
@@ -276,6 +271,8 @@ class DemoSnippet extends LitElement {
|
|
276
271
|
}
|
277
272
|
const textNode = document.createTextNode(this._formatCode(tempContainer.innerHTML));
|
278
273
|
this._code = textNode.textContent;
|
274
|
+
|
275
|
+
this._updateHasSkeleton();
|
279
276
|
}
|
280
277
|
|
281
278
|
_updateHasSkeleton() {
|
@@ -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 {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.62.
|
3
|
+
"version": "3.62.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",
|