@brightspace-ui/core 2.150.3 → 2.152.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.
@@ -185,29 +185,6 @@
185
185
  </template>
186
186
  </d2l-demo-snippet>
187
187
 
188
- <h2>Breakpoints on List Item</h2>
189
-
190
- <d2l-demo-snippet>
191
- <template>
192
- <d2l-list>
193
- <d2l-list-item color="#00ff00" breakpoints="[1170, 391, 0, 0]">
194
- <div style="background: blue; height: 400px; width: 400px;" slot="illustration"></div>
195
- <d2l-list-item-content>
196
- <div>Introductory Pirate Ipsum</div>
197
- <div slot="supporting-info">Case shot Shiver me timbers gangplank crack Jennys tea cup ballast Blimey lee snow crow's nest rutters.</div>
198
- </d2l-list-item-content>
199
- </d2l-list-item>
200
- <d2l-list-item>
201
- <div style="background: blue; height: 400px; width: 400px;" slot="illustration"></div>
202
- <d2l-list-item-content>
203
- <div>Introductory Pirate Ipsum</div>
204
- <div slot="supporting-info">Case shot Shiver me timbers gangplank crack Jennys tea cup ballast Blimey lee snow crow's nest rutters.</div>
205
- </d2l-list-item-content>
206
- </d2l-list-item>
207
- </d2l-list>
208
- </template>
209
- </d2l-demo-snippet>
210
-
211
188
  </d2l-demo-page>
212
189
 
213
190
  </body>
@@ -298,7 +298,7 @@ class ListItemDragHandle extends LocalizeCoreElement(FocusMixin(RtlMixin(LitElem
298
298
  @keydown="${this._onMoveButtonKeydown}"
299
299
  text="${this._defaultLabel}">
300
300
  </d2l-button-move>
301
- ${this._displayKeyboardTooltip ? html`<d2l-tooltip align="start" announced for="${this._buttonId}" for-type="descriptor">${this._renderTooltipContent()}</d2l-tooltip>` : ''}
301
+ ${this._displayKeyboardTooltip ? html`<d2l-tooltip class="vdiff-target" align="start" announced for="${this._buttonId}" for-type="descriptor">${this._renderTooltipContent()}</d2l-tooltip>` : ''}
302
302
  `;
303
303
  }
304
304
 
@@ -115,8 +115,8 @@ class ListItemDragImage extends LocalizeCoreElement(SkeletonMixin(RtlMixin(LitEl
115
115
  <div class="line-2 d2l-skeletize"></div>
116
116
  </div>
117
117
  </div>
118
- <div class="second"></div>
119
- <div class="third"></div>
118
+ <div class="second vdiff-target"></div>
119
+ <div class="third vdiff-target"></div>
120
120
  `;
121
121
  }
122
122
 
@@ -54,10 +54,6 @@ export const ListItemMixin = superclass => class extends composeMixins(
54
54
 
55
55
  static get properties() {
56
56
  return {
57
- /**
58
- * @ignore
59
- */
60
- breakpoints: { type: Array },
61
57
  /**
62
58
  * A color indicator to appear at the beginning of a list item. Expected value is a valid 3, 4, 6, or 8 character CSS color hex code (e.g., #006fbf).
63
59
  * @type {string}
@@ -409,16 +405,6 @@ export const ListItemMixin = superclass => class extends composeMixins(
409
405
  }
410
406
  }
411
407
 
412
- /** TODO: remove this once usage of breakpoints on d2l-list-item has been moved to the list */
413
- firstUpdated(changedProperties) {
414
- super.firstUpdated(changedProperties);
415
-
416
- if (changedProperties.has('breakpoints') && this.breakpoints) {
417
- const parentList = this.getRootList();
418
- if (!parentList.getAttribute('breakpoints')) parentList.breakpoints = this.breakpoints;
419
- }
420
- }
421
-
422
408
  focus() {
423
409
  this._tryFocus();
424
410
  }
@@ -231,7 +231,7 @@ export const LocalizeMixin = superclass => class extends _LocalizeMixinBase(supe
231
231
 
232
232
  };
233
233
 
234
- export const allowedTags = Object.freeze(['d2l-link', 'd2l-tooltip-help', 'p', 'br', 'b', 'strong', 'i', 'em']);
234
+ export const allowedTags = Object.freeze(['d2l-link', 'd2l-tooltip-help', 'p', 'br', 'b', 'strong', 'i', 'em', 'button']);
235
235
 
236
236
  const markupError = `localizeHTML() rich-text replacements must use localizeMarkup templates with only the following allowed elements: ${allowedTags}. For more information, see: https://github.com/BrightspaceUI/core/blob/main/mixins/localize/`;
237
237
  const validTerminators = '([>\\s/]|$)';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.150.3",
3
+ "version": "2.152.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",