@brightspace-ui/core 2.168.0 → 2.168.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.
Files changed (29) hide show
  1. package/components/button/button-mixin.js +1 -0
  2. package/components/button/button-move.js +1 -0
  3. package/components/calendar/calendar.js +2 -2
  4. package/components/form/form-errory-summary.js +2 -2
  5. package/components/inputs/demo/input-number.html +1 -1
  6. package/components/inputs/demo/input-percent.html +1 -1
  7. package/components/inputs/docs/input-numeric.md +0 -4
  8. package/components/inputs/docs/input-text.md +0 -2
  9. package/components/inputs/input-number.js +2 -8
  10. package/components/inputs/input-percent.js +2 -8
  11. package/components/inputs/input-text.js +4 -4
  12. package/components/list/demo/demo-list-nested-iterations-helper.js +5 -5
  13. package/components/list/demo/demo-list-nested.js +3 -3
  14. package/components/list/demo/list-drag-and-drop.html +1 -1
  15. package/components/list/demo/list-expand-collapse.html +7 -7
  16. package/components/list/demo/list-nested.html +1 -1
  17. package/components/list/list-item-drag-drop-mixin.js +1 -0
  18. package/components/list/list-item-generic-layout.js +1 -0
  19. package/components/list/list-item-role-mixin.js +1 -0
  20. package/components/menu/menu-item-mixin.js +3 -0
  21. package/components/menu/menu.js +1 -0
  22. package/components/meter/meter-linear.js +2 -2
  23. package/components/meter/meter-radial.js +2 -2
  24. package/components/object-property-list/object-property-list-item.js +1 -0
  25. package/components/tabs/tab-internal.js +1 -0
  26. package/components/tabs/tab-panel-mixin.js +1 -0
  27. package/custom-elements.json +6 -63
  28. package/mixins/rtl/rtl-mixin.js +1 -0
  29. package/package.json +1 -1
@@ -19,6 +19,7 @@ export const ButtonMixin = superclass => class extends FocusMixin(superclass) {
19
19
  /**
20
20
  * @ignore
21
21
  */
22
+ // eslint-disable-next-line lit/no-native-attributes
22
23
  autofocus: { type: Boolean, reflect: true },
23
24
  /**
24
25
  * Disables the button
@@ -40,6 +40,7 @@ class ButtonMove extends ThemeMixin(FocusMixin(RtlMixin(LitElement))) {
40
40
  /**
41
41
  * @ignore
42
42
  */
43
+ // eslint-disable-next-line lit/no-native-attributes
43
44
  autofocus: { type: Boolean, reflect: true },
44
45
  /**
45
46
  * A description to be added to the button for accessibility when text on button does not provide enough context
@@ -1,7 +1,7 @@
1
1
  import '../button/button-icon.js';
2
2
  import '../colors/colors.js';
3
3
  import { bodySmallStyles, heading4Styles } from '../typography/styles.js';
4
- import { css, html, LitElement } from 'lit';
4
+ import { css, html, LitElement, nothing } from 'lit';
5
5
  import { formatDate, getDateTimeDescriptor } from '@brightspace-ui/intl/lib/dateTime.js';
6
6
  import { formatDateInISO, getClosestValidDate, getDateFromDateObj, getDateFromISODate, getToday, isDateInRange } from '../../helpers/dateTime.js';
7
7
  import { classMap } from 'lit/directives/class-map.js';
@@ -436,7 +436,7 @@ class Calendar extends LocalizeCoreElement(RtlMixin(LitElement)) {
436
436
 
437
437
  render() {
438
438
  if (this._shownMonth === undefined || !this._shownYear) {
439
- return html``;
439
+ return nothing;
440
440
  }
441
441
 
442
442
  const weekdayHeaders = calendarData.daysOfWeekIndex.map((index) => html`
@@ -1,6 +1,6 @@
1
1
  import '../alert/alert.js';
2
2
  import '../expand-collapse/expand-collapse-content.js';
3
- import { css, html, LitElement } from 'lit';
3
+ import { css, html, LitElement, nothing } from 'lit';
4
4
  import { linkStyles } from '../link/link.js';
5
5
  import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
6
6
  import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
@@ -88,7 +88,7 @@ class FormErrorSummary extends LocalizeCoreElement(RtlMixin(LitElement)) {
88
88
  </d2l-expand-collapse-content>
89
89
  </d2l-alert>
90
90
  `;
91
- return this.errors.length > 0 ? errorSummary : html``;
91
+ return this.errors.length > 0 ? errorSummary : nothing;
92
92
  }
93
93
 
94
94
  async focus() {
@@ -22,7 +22,7 @@
22
22
  <h2>Hidden Label</h2>
23
23
  <d2l-demo-snippet>
24
24
  <template>
25
- <d2l-input-number label="Age" label-hidden title="title"></d2l-input-number>
25
+ <d2l-input-number label="Age" label-hidden></d2l-input-number>
26
26
  </template>
27
27
  </d2l-demo-snippet>
28
28
 
@@ -22,7 +22,7 @@
22
22
  <h2>Hidden Label</h2>
23
23
  <d2l-demo-snippet>
24
24
  <template>
25
- <d2l-input-percent label="Grade" label-hidden title="title"></d2l-input-percent>
25
+ <d2l-input-percent label="Grade" label-hidden></d2l-input-percent>
26
26
  </template>
27
27
  </d2l-demo-snippet>
28
28
 
@@ -56,7 +56,6 @@ The `<d2l-input-number>` element is similar to `<d2l-input-text>`, except it's i
56
56
  | `min-fraction-digits` | Number, default: `0` | Minimum number of digits allowed after the decimal place. Must be between 0 and 20 and less than or equal to `maxFractionDigits` |
57
57
  | `placeholder` | String | Placeholder text. |
58
58
  | `required` | Boolean, default: `false` | Indicates that a value is required. |
59
- | `title` | String | Text for additional screen reader and mouseover context. |
60
59
  | `unit` | String | Unit associated with the input value, displayed next to input and announced as part of the label |
61
60
  | `value` | Number | Value of the input. |
62
61
 
@@ -82,7 +81,6 @@ To make your usage of `d2l-input-number` accessible, use the following propertie
82
81
  | `label-hidden` | Use if label should be visually hidden but available for screen reader users. |
83
82
  | `labelled-by` | Use when another visible element should act as the label |
84
83
  | `unit` | Use to render the unit (offscreen) as part of the label. |
85
- | `title` | Use for additional screen reader and mouseover context. |
86
84
 
87
85
  ### Usage
88
86
 
@@ -128,7 +126,6 @@ The `<d2l-input-percent>` element is similar to `<d2l-input-number>`, except it
128
126
  | `min-fraction-digits` | Number | Minimum number of digits allowed after the decimal place. |
129
127
  | `placeholder` | String | Placeholder text. |
130
128
  | `required` | Boolean, default: `false` | Indicates that a value is required. |
131
- | `title` | String | Text for additional screen reader and mouseover context. |
132
129
  | `value` | Number | Value of the input. |
133
130
 
134
131
  ### Events
@@ -151,4 +148,3 @@ To make your usage of `d2l-input-percent` accessible, use the following properti
151
148
  |---|---|
152
149
  | `label` | **REQUIRED.** [Acts as a primary label on the input](https://www.w3.org/WAI/tutorials/forms/labels/). Visible unless `label-hidden` is also used. |
153
150
  | `label-hidden` | Use if label should be visually hidden but available for screen reader users. |
154
- | `title` | Use for additional screen reader and mouseover context. |
@@ -96,7 +96,6 @@ The `<d2l-input-text>` element is a simple wrapper around the native `<input typ
96
96
  | `required` | Boolean | Indicates that a value is required |
97
97
  | `size` | Number | Size of the input |
98
98
  | `step` | String | For number inputs, sets the step size |
99
- | `title` | String | Text for additional screenreader and mouseover context |
100
99
  | `type` | String, default: `text` | Can be one of `text`, `email`, `password`, `tel`, `url`. Type `number` is deprecated, use [d2l-input-number](./input-number.md) instead. |
101
100
  | `unit` | String | Unit associated with the input value, displayed next to input and announced as part of the label |
102
101
  | `value` | String, default: `''` | Value of the input |
@@ -137,7 +136,6 @@ To make your usage of `d2l-input-text` accessible, use the following properties
137
136
  | `label-hidden` | Use if label should be visually hidden but available for screen reader users |
138
137
  | `labelled-by` | Use when another visible element should act as the label |
139
138
  | `unit` | Use to render the unit (offscreen) as part of the label. |
140
- | `title` | Text for additional screen reader and mouseover context |
141
139
 
142
140
  ## Applying styles to native text input
143
141
 
@@ -85,9 +85,9 @@ class InputNumber extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixi
85
85
  */
86
86
  autocomplete: { type: String },
87
87
  /**
88
- * ADVANCED: When set, will automatically place focus on the input
89
- * @type {boolean}
88
+ * @ignore
90
89
  */
90
+ // eslint-disable-next-line lit/no-native-attributes
91
91
  autofocus: { type: Boolean },
92
92
  /**
93
93
  * Disables the input
@@ -149,11 +149,6 @@ class InputNumber extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixi
149
149
  * @type {boolean}
150
150
  */
151
151
  required: { type: Boolean },
152
- /**
153
- * Text for additional screen reader and mouseover context
154
- * @type {string}
155
- */
156
- title: { type: String },
157
152
  /**
158
153
  * @ignore
159
154
  */
@@ -361,7 +356,6 @@ class InputNumber extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMixi
361
356
  placeholder="${ifDefined(this.placeholder)}"
362
357
  ?required="${this.required}"
363
358
  ?skeleton="${this.skeleton}"
364
- title="${ifDefined(this.title)}"
365
359
  unit="${ifDefined(this.unit)}"
366
360
  unit-label="${ifDefined(this.unitLabel)}"
367
361
  .value="${this._formattedValue}"
@@ -18,9 +18,9 @@ class InputPercent extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMix
18
18
  static get properties() {
19
19
  return {
20
20
  /**
21
- * When set, will automatically place focus on the input
22
- * @type {boolean}
21
+ * @ignore
23
22
  */
23
+ // eslint-disable-next-line lit/no-native-attributes
24
24
  autofocus: { type: Boolean },
25
25
  /**
26
26
  * Disables the input
@@ -57,11 +57,6 @@ class InputPercent extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMix
57
57
  * @type {boolean}
58
58
  */
59
59
  required: { type: Boolean },
60
- /**
61
- * Text for additional screenreader and mouseover context
62
- * @type {string}
63
- */
64
- title: { type: String },
65
60
  /**
66
61
  * Value of the input
67
62
  * @type {number}
@@ -128,7 +123,6 @@ class InputPercent extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMix
128
123
  placeholder="${ifDefined(this.placeholder)}"
129
124
  ?required="${this.required}"
130
125
  ?skeleton="${this.skeleton}"
131
- title="${ifDefined(this.title)}"
132
126
  unit="%"
133
127
  value="${ifDefined(this.value)}"
134
128
  value-align="end">
@@ -45,9 +45,9 @@ class InputText extends PropertyRequiredMixin(FocusMixin(LabelledMixin(FormEleme
45
45
  */
46
46
  autocomplete: { type: String },
47
47
  /**
48
- * When set, will automatically place focus on the input
49
- * @type {boolean}
48
+ * @ignore
50
49
  */
50
+ // eslint-disable-next-line lit/no-native-attributes
51
51
  autofocus: { type: Boolean },
52
52
  /**
53
53
  * Additional information communicated in the aria-describedby on the input
@@ -135,9 +135,9 @@ class InputText extends PropertyRequiredMixin(FocusMixin(LabelledMixin(FormEleme
135
135
  */
136
136
  step: { type: String },
137
137
  /**
138
- * Text for additional screenreader and mouseover context
139
- * @type {string}
138
+ * @ignore
140
139
  */
140
+ // eslint-disable-next-line lit/no-native-attributes
141
141
  title: { type: String },
142
142
  /**
143
143
  * The type of the text input
@@ -8,7 +8,7 @@ import { ifDefined } from 'lit/directives/if-defined.js';
8
8
  class ListNestedIterationsHelper extends LitElement {
9
9
  static get properties() {
10
10
  return {
11
- draggable: { type: Boolean }
11
+ isDraggable: { attribute: 'is-draggable', type: Boolean }
12
12
  };
13
13
  }
14
14
 
@@ -55,7 +55,7 @@ class ListNestedIterationsHelper extends LitElement {
55
55
 
56
56
  constructor() {
57
57
  super();
58
- this.draggable = false;
58
+ this.isDraggable = false;
59
59
  }
60
60
 
61
61
  render() {
@@ -130,11 +130,11 @@ class ListNestedIterationsHelper extends LitElement {
130
130
  for (let i = 0; i < 3; i++) {
131
131
  const childKey = `child-${i}-${childOptions[0]}-${childOptions[1]}`;
132
132
  items.push(html`
133
- <d2l-list-item key="${childKey}" label="${childL2Text}" ?selectable="${!!childOptions[0]}" ?draggable="${this.draggable}" ?expandable="${childOptions[1] && i !== 1}" color="${ifDefined((childOptions[2] && i === 0) || childOptions[3] ? '#ff0000' : undefined)}">
133
+ <d2l-list-item key="${childKey}" label="${childL2Text}" ?selectable="${!!childOptions[0]}" ?draggable="${this.isDraggable}" ?expandable="${childOptions[1] && i !== 1}" color="${ifDefined((childOptions[2] && i === 0) || childOptions[3] ? '#ff0000' : undefined)}">
134
134
  <d2l-list-item-content>${childL2Text}</d2l-list-item-content>
135
135
  ${i === 1 || !childOptions[1] ? nothing : html`
136
136
  <d2l-list slot="nested">
137
- <d2l-list-item key="${`${childKey}-child`}" label="${childL3Text}" ?selectable="${!!childOptions[0]}" ?draggable="${this.draggable}" color="${ifDefined(childOptions[3] ? '#00ff00' : undefined)}">
137
+ <d2l-list-item key="${`${childKey}-child`}" label="${childL3Text}" ?selectable="${!!childOptions[0]}" ?draggable="${this.isDraggable}" color="${ifDefined(childOptions[3] ? '#00ff00' : undefined)}">
138
138
  <d2l-list-item-content>${childL3Text}</d2l-list-item-content>
139
139
  </d2l-list-item>
140
140
  </d2l-list>
@@ -152,7 +152,7 @@ class ListNestedIterationsHelper extends LitElement {
152
152
  for (let i = 0; i < 3; i++) {
153
153
  const parentKey = `parent-${i}-${parentOptions[0]}-${parentOptions[1]}`;
154
154
  items.push(html`
155
- <d2l-list-item key="${parentKey}" label="${parentText}" ?selectable="${!!parentOptions[0]}" ?draggable="${this.draggable}" ?expandable="${parentOptions[1] && i !== 1}" ?expanded="${parentOptions[1] && i === 0}" color="${ifDefined((parentOptions[2] && i === 0) || parentOptions[3] ? '#ff0000' : undefined)}">
155
+ <d2l-list-item key="${parentKey}" label="${parentText}" ?selectable="${!!parentOptions[0]}" ?draggable="${this.isDraggable}" ?expandable="${parentOptions[1] && i !== 1}" ?expanded="${parentOptions[1] && i === 0}" color="${ifDefined((parentOptions[2] && i === 0) || parentOptions[3] ? '#ff0000' : undefined)}">
156
156
  <d2l-list-item-content>${parentText}</d2l-list-item-content>
157
157
  ${i === 1 || (i === 2 && !parentOptions[1]) ? nothing : html`
158
158
  <d2l-list slot="nested">${nested}</d2l-list>
@@ -20,7 +20,7 @@ class ListDemoNested extends LitElement {
20
20
  static get properties() {
21
21
  return {
22
22
  demoItemKey: { type: String, attribute: 'demo-item-key' },
23
- draggable: { type: Boolean },
23
+ isDraggable: { attribute: 'is-draggable', type: Boolean },
24
24
  selectable: { type: Boolean },
25
25
  disableExpandFeature: { type: Boolean, attribute: 'disable-expand-feature' },
26
26
  expanded: { type: Boolean },
@@ -197,7 +197,7 @@ class ListDemoNested extends LitElement {
197
197
  return html`
198
198
  <d2l-list-item
199
199
  action-href="${this.includeActionHref ? 'http://www.d2l.com' : ''}"
200
- ?draggable="${this.draggable}"
200
+ ?draggable="${this.isDraggable}"
201
201
  drag-handle-text="${item.primaryText}"
202
202
  ?drop-nested="${item.dropNested}"
203
203
  key="${item.key}"
@@ -221,7 +221,7 @@ class ListDemoNested extends LitElement {
221
221
  const hasChildren = item?.items?.length > 0;
222
222
  return html`
223
223
  <d2l-list-item-button
224
- ?draggable="${this.draggable}"
224
+ ?draggable="${this.isDraggable}"
225
225
  drag-handle-text="${item.primaryText}"
226
226
  ?drop-nested="${item.dropNested}"
227
227
  key="${item.key}"
@@ -26,7 +26,7 @@
26
26
 
27
27
  <d2l-demo-snippet>
28
28
  <template>
29
- <d2l-demo-list-nested demo-item-key="imgPrimaryAndSupporting" draggable selectable disable-expand-feature></d2l-demo-list-nested>
29
+ <d2l-demo-list-nested demo-item-key="imgPrimaryAndSupporting" is-draggable selectable disable-expand-feature></d2l-demo-list-nested>
30
30
  </template>
31
31
  </d2l-demo-snippet>
32
32
 
@@ -18,7 +18,7 @@
18
18
  <template>
19
19
  <d2l-demo-list-nested
20
20
  demo-item-key="imgPrimaryAndSupporting"
21
- draggable
21
+ is-draggable
22
22
  selectable
23
23
  expandable
24
24
  expanded
@@ -30,13 +30,13 @@
30
30
 
31
31
  <d2l-demo-snippet>
32
32
  <template>
33
- <d2l-demo-list-nested demo-item-key="primaryAndSupportingText" draggable selectable expandable></d2l-demo-list-nested>
33
+ <d2l-demo-list-nested demo-item-key="primaryAndSupportingText" is-draggable selectable expandable></d2l-demo-list-nested>
34
34
  </template>
35
35
  </d2l-demo-snippet>
36
36
 
37
37
  <d2l-demo-snippet>
38
38
  <template>
39
- <d2l-demo-list-nested demo-item-key="primaryTextOnly" draggable selectable expandable></d2l-demo-list-nested>
39
+ <d2l-demo-list-nested demo-item-key="primaryTextOnly" is-draggable selectable expandable></d2l-demo-list-nested>
40
40
  </template>
41
41
  </d2l-demo-snippet>
42
42
 
@@ -45,7 +45,7 @@
45
45
  <template>
46
46
  <d2l-demo-list-nested
47
47
  demo-item-key="imgPrimaryAndSupporting"
48
- draggable
48
+ is-draggable
49
49
  selectable
50
50
  expandable
51
51
  expanded
@@ -65,7 +65,7 @@
65
65
  <h2>Draggable</h2>
66
66
  <d2l-demo-snippet>
67
67
  <template>
68
- <d2l-demo-list-nested demo-item-key="primaryAndSupportingText" draggable expandable></d2l-demo-list-nested>
68
+ <d2l-demo-list-nested demo-item-key="primaryAndSupportingText" is-draggable expandable></d2l-demo-list-nested>
69
69
  </template>
70
70
  </d2l-demo-snippet>
71
71
 
@@ -81,7 +81,7 @@
81
81
  <template>
82
82
  <d2l-demo-list-nested
83
83
  demo-item-key="imgPrimaryAndSupporting"
84
- draggable
84
+ is-draggable
85
85
  selectable
86
86
  expandable
87
87
  include-secondary-actions
@@ -109,7 +109,7 @@
109
109
  <template>
110
110
  <d2l-demo-list-nested
111
111
  demo-item-key="imgPrimaryAndSupporting"
112
- draggable
112
+ is-draggable
113
113
  selectable
114
114
  expandable
115
115
  no-primary-action></d2l-demo-list-nested>
@@ -258,7 +258,7 @@
258
258
  } else {
259
259
  draggableSwitch.addEventListener('change', (e) => {
260
260
  const listIterations = document.querySelector('d2l-demo-list-nested-iterations-helper');
261
- listIterations.draggable = e.target.on;
261
+ listIterations.isDraggable = e.target.on;
262
262
  });
263
263
  }
264
264
  };
@@ -254,6 +254,7 @@ export const ListItemDragDropMixin = superclass => class extends superclass {
254
254
  * **Drag & drop:** Whether the item is draggable
255
255
  * @type {boolean}
256
256
  */
257
+ // eslint-disable-next-line lit/no-native-attributes
257
258
  draggable: { type: Boolean, reflect: true },
258
259
  /**
259
260
  * @ignore
@@ -47,6 +47,7 @@ class ListItemGenericLayout extends RtlMixin(LitElement) {
47
47
  /**
48
48
  * @ignore
49
49
  */
50
+ // eslint-disable-next-line lit/no-native-attributes
50
51
  role: { type: String, reflect: true },
51
52
  /**
52
53
  * Specifies whether the grid is active or not
@@ -7,6 +7,7 @@ export const ListItemRoleMixin = superclass => class extends superclass {
7
7
  /**
8
8
  * @ignore
9
9
  */
10
+ // eslint-disable-next-line lit/no-native-attributes
10
11
  role: { type: String, reflect: true },
11
12
  _nested: { type: Boolean, reflect: true },
12
13
  _separators: { type: String, reflect: true }
@@ -18,6 +18,7 @@ export const MenuItemMixin = superclass => class extends superclass {
18
18
  /**
19
19
  * @ignore
20
20
  */
21
+ // eslint-disable-next-line lit/no-native-attributes
21
22
  hidden: { type: Boolean, reflect: true },
22
23
  /**
23
24
  * @ignore
@@ -26,10 +27,12 @@ export const MenuItemMixin = superclass => class extends superclass {
26
27
  /**
27
28
  * @ignore
28
29
  */
30
+ // eslint-disable-next-line lit/no-native-attributes
29
31
  role: { type: String, reflect: true },
30
32
  /**
31
33
  * @ignore
32
34
  */
35
+ // eslint-disable-next-line lit/no-native-attributes
33
36
  tabindex: { type: String, reflect: true },
34
37
  /**
35
38
  * REQUIRED: Text displayed by the menu item
@@ -36,6 +36,7 @@ class Menu extends ThemeMixin(HierarchicalViewMixin(LitElement)) {
36
36
  /**
37
37
  * @ignore
38
38
  */
39
+ // eslint-disable-next-line lit/no-native-attributes
39
40
  role: { type: String, attribute: 'role' }
40
41
  };
41
42
  }
@@ -1,4 +1,4 @@
1
- import { css, html, LitElement } from 'lit';
1
+ import { css, html, LitElement, nothing } from 'lit';
2
2
  import { bodySmallStyles } from '../typography/styles.js';
3
3
  import { classMap } from 'lit/directives/class-map.js';
4
4
  import { MeterMixin } from './meter-mixin.js';
@@ -121,7 +121,7 @@ class MeterLinear extends MeterMixin(RtlMixin(LitElement)) {
121
121
  'd2l-meter-linear-primary-ltr': !this.percent,
122
122
  'd2l-meter-linear-primary': true
123
123
  };
124
- const secondaryTextElement = secondary ? html`<div class="d2l-meter-linear-secondary">${secondary}</div>` : html``;
124
+ const secondaryTextElement = secondary ? html`<div class="d2l-meter-linear-secondary">${secondary}</div>` : nothing;
125
125
 
126
126
  return html `
127
127
  <div
@@ -1,6 +1,6 @@
1
1
  import '../colors/colors.js';
2
2
  import { bodySmallStyles, heading4Styles } from '../typography/styles.js';
3
- import { css, html, LitElement } from 'lit';
3
+ import { css, html, LitElement, nothing } from 'lit';
4
4
  import { classMap } from 'lit/directives/class-map.js';
5
5
  import { MeterMixin } from './meter-mixin.js';
6
6
  import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
@@ -61,7 +61,7 @@ class MeterRadial extends MeterMixin(RtlMixin(LitElement)) {
61
61
  const progressFill = percent * lengthOfLine;
62
62
  const primary = this._primary(this.value, this.max);
63
63
  const secondary = this._secondary(this.value, this.max, this.text);
64
- const secondaryTextElement = this.text ? html`<div class="d2l-body-small d2l-meter-radial-text">${secondary}</div>` : html``;
64
+ const secondaryTextElement = this.text ? html`<div class="d2l-body-small d2l-meter-radial-text">${secondary}</div>` : nothing;
65
65
  const textClasses = {
66
66
  'd2l-meter-radial-text-ltr': !this.percent,
67
67
  'd2l-heading-4': true,
@@ -14,6 +14,7 @@ export class ObjectPropertyListItem extends SkeletonMixin(LitElement) {
14
14
  /**
15
15
  * @ignore
16
16
  */
17
+ // eslint-disable-next-line lit/no-native-attributes
17
18
  hidden: { type: Boolean },
18
19
  /**
19
20
  * Name of an optional icon to display
@@ -16,6 +16,7 @@ class Tab extends SkeletonMixin(RtlMixin(LitElement)) {
16
16
  return {
17
17
  ariaSelected: { type: String, reflect: true, attribute: 'aria-selected' },
18
18
  controlsPanel: { type: String, reflect: true, attribute: 'controls-panel' },
19
+ // eslint-disable-next-line lit/no-native-attributes
19
20
  role: { type: String, reflect: true },
20
21
  text: { type: String }
21
22
  };
@@ -13,6 +13,7 @@ export const TabPanelMixin = superclass => class extends superclass {
13
13
  /**
14
14
  * @ignore
15
15
  */
16
+ // eslint-disable-next-line lit/no-native-attributes
16
17
  role: { type: String, reflect: true },
17
18
  /**
18
19
  * Use to select the tab
@@ -5972,11 +5972,6 @@
5972
5972
  "description": "Placeholder text",
5973
5973
  "type": "string"
5974
5974
  },
5975
- {
5976
- "name": "title",
5977
- "description": "Text for additional screen reader and mouseover context",
5978
- "type": "string"
5979
- },
5980
5975
  {
5981
5976
  "name": "unit",
5982
5977
  "description": "Unit associated with the input value, displayed next to input and announced as part of the label",
@@ -6002,12 +5997,6 @@
6002
5997
  "description": "Value of the input",
6003
5998
  "type": "number"
6004
5999
  },
6005
- {
6006
- "name": "autofocus",
6007
- "description": "ADVANCED: When set, will automatically place focus on the input",
6008
- "type": "boolean",
6009
- "default": "false"
6010
- },
6011
6000
  {
6012
6001
  "name": "disabled",
6013
6002
  "description": "Disables the input",
@@ -6102,12 +6091,6 @@
6102
6091
  "description": "Placeholder text",
6103
6092
  "type": "string"
6104
6093
  },
6105
- {
6106
- "name": "title",
6107
- "attribute": "title",
6108
- "description": "Text for additional screen reader and mouseover context",
6109
- "type": "string"
6110
- },
6111
6094
  {
6112
6095
  "name": "unit",
6113
6096
  "attribute": "unit",
@@ -6148,8 +6131,6 @@
6148
6131
  },
6149
6132
  {
6150
6133
  "name": "autofocus",
6151
- "attribute": "autofocus",
6152
- "description": "ADVANCED: When set, will automatically place focus on the input",
6153
6134
  "type": "boolean",
6154
6135
  "default": "false"
6155
6136
  },
@@ -6282,22 +6263,11 @@
6282
6263
  "description": "Placeholder text",
6283
6264
  "type": "string"
6284
6265
  },
6285
- {
6286
- "name": "title",
6287
- "description": "Text for additional screenreader and mouseover context",
6288
- "type": "string"
6289
- },
6290
6266
  {
6291
6267
  "name": "value",
6292
6268
  "description": "Value of the input",
6293
6269
  "type": "number"
6294
6270
  },
6295
- {
6296
- "name": "autofocus",
6297
- "description": "When set, will automatically place focus on the input",
6298
- "type": "boolean",
6299
- "default": "false"
6300
- },
6301
6271
  {
6302
6272
  "name": "disabled",
6303
6273
  "description": "Disables the input",
@@ -6362,12 +6332,6 @@
6362
6332
  "description": "Placeholder text",
6363
6333
  "type": "string"
6364
6334
  },
6365
- {
6366
- "name": "title",
6367
- "attribute": "title",
6368
- "description": "Text for additional screenreader and mouseover context",
6369
- "type": "string"
6370
- },
6371
6335
  {
6372
6336
  "name": "value",
6373
6337
  "attribute": "value",
@@ -6376,8 +6340,6 @@
6376
6340
  },
6377
6341
  {
6378
6342
  "name": "autofocus",
6379
- "attribute": "autofocus",
6380
- "description": "When set, will automatically place focus on the input",
6381
6343
  "type": "boolean",
6382
6344
  "default": "false"
6383
6345
  },
@@ -6654,11 +6616,6 @@
6654
6616
  "description": "For number inputs, sets the step size",
6655
6617
  "type": "string"
6656
6618
  },
6657
- {
6658
- "name": "title",
6659
- "description": "Text for additional screenreader and mouseover context",
6660
- "type": "string"
6661
- },
6662
6619
  {
6663
6620
  "name": "unit",
6664
6621
  "description": "Unit associated with the input value, displayed next to input and announced as part of the label",
@@ -6674,12 +6631,6 @@
6674
6631
  "description": "Value of the input",
6675
6632
  "type": "string"
6676
6633
  },
6677
- {
6678
- "name": "autofocus",
6679
- "description": "When set, will automatically place focus on the input",
6680
- "type": "boolean",
6681
- "default": "false"
6682
- },
6683
6634
  {
6684
6635
  "name": "disabled",
6685
6636
  "description": "Disables the input",
@@ -6834,12 +6785,6 @@
6834
6785
  "description": "For number inputs, sets the step size",
6835
6786
  "type": "string"
6836
6787
  },
6837
- {
6838
- "name": "title",
6839
- "attribute": "title",
6840
- "description": "Text for additional screenreader and mouseover context",
6841
- "type": "string"
6842
- },
6843
6788
  {
6844
6789
  "name": "unit",
6845
6790
  "attribute": "unit",
@@ -6860,8 +6805,6 @@
6860
6805
  },
6861
6806
  {
6862
6807
  "name": "autofocus",
6863
- "attribute": "autofocus",
6864
- "description": "When set, will automatically place focus on the input",
6865
6808
  "type": "boolean",
6866
6809
  "default": "false"
6867
6810
  },
@@ -7725,15 +7668,15 @@
7725
7668
  "path": "./components/list/demo/demo-list-nested-iterations-helper.js",
7726
7669
  "attributes": [
7727
7670
  {
7728
- "name": "draggable",
7671
+ "name": "is-draggable",
7729
7672
  "type": "boolean",
7730
7673
  "default": "false"
7731
7674
  }
7732
7675
  ],
7733
7676
  "properties": [
7734
7677
  {
7735
- "name": "draggable",
7736
- "attribute": "draggable",
7678
+ "name": "isDraggable",
7679
+ "attribute": "is-draggable",
7737
7680
  "type": "boolean",
7738
7681
  "default": "false"
7739
7682
  }
@@ -7752,7 +7695,7 @@
7752
7695
  "type": "string"
7753
7696
  },
7754
7697
  {
7755
- "name": "draggable",
7698
+ "name": "is-draggable",
7756
7699
  "type": "boolean"
7757
7700
  },
7758
7701
  {
@@ -7803,8 +7746,8 @@
7803
7746
  "type": "string"
7804
7747
  },
7805
7748
  {
7806
- "name": "draggable",
7807
- "attribute": "draggable",
7749
+ "name": "isDraggable",
7750
+ "attribute": "is-draggable",
7808
7751
  "type": "boolean"
7809
7752
  },
7810
7753
  {
@@ -8,6 +8,7 @@ export const RtlMixin = dedupeMixin(superclass => class extends superclass {
8
8
  /**
9
9
  * @ignore
10
10
  */
11
+ // eslint-disable-next-line lit/no-native-attributes
11
12
  dir: { type: String, reflect: true }
12
13
  };
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.168.0",
3
+ "version": "2.168.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",