@brightspace-ui/core 3.199.0 → 3.200.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.
@@ -169,7 +169,7 @@ export const ListItemCheckboxMixin = superclass => class extends SkeletonMixin(s
169
169
  <d2l-selection-input
170
170
  @d2l-selection-change="${this._onCheckboxChange}"
171
171
  ?disabled="${this.selectionDisabled}"
172
- ._disabledTooltip=${this.selectionDisabledTooltip}
172
+ disabled-tooltip=${this.selectionDisabledTooltip}
173
173
  .hovering="${this._hoveringSelection}"
174
174
  id="${this._checkboxId}"
175
175
  ?_indeterminate="${this.selectionInfo.state === SelectionInfo.states.some}"
@@ -247,6 +247,7 @@ Note: `d2l-list-item` already provides a selection input for selectable list ite
247
247
  | `label` | String | Accessible hidden label for the input. |
248
248
  | `labelled-by` | String | Id reference to the accessible label for the input. **Note:** if specified, it must reference an element in the same DOM context. |
249
249
  | `disabled` | Boolean | Disables the input element(checkbox/radio btn). |
250
+ | `disabled-tooltip` | String | Tooltip text when disabled. |
250
251
  | `selected` | Boolean | State of the input. |
251
252
 
252
253
  ### Events
@@ -30,6 +30,11 @@ class Input extends SkeletonMixin(LabelledMixin(LitElement)) {
30
30
  * @type {boolean}
31
31
  */
32
32
  disabled: { type: Boolean, reflect: true },
33
+ /**
34
+ * Tooltip text when disabled
35
+ * @type {string}
36
+ */
37
+ disabledTooltip: { type: String, attribute: 'disabled-tooltip' },
33
38
  /**
34
39
  * Private. Force hovering state of input
35
40
  * @ignore
@@ -41,8 +46,6 @@ class Input extends SkeletonMixin(LabelledMixin(LitElement)) {
41
46
  * @type {string}
42
47
  */
43
48
  key: { type: String },
44
- /* passthrough for list-item */
45
- _disabledTooltip: { state: true },
46
49
  _indeterminate: { type: Boolean },
47
50
  _provider: { type: Object }
48
51
  };
@@ -67,7 +70,7 @@ class Input extends SkeletonMixin(LabelledMixin(LitElement)) {
67
70
  }
68
71
 
69
72
  get focusDisabled() {
70
- return this.disabled && !this._disabledTooltip;
73
+ return this.disabled && !this.disabledTooltip;
71
74
  }
72
75
 
73
76
  connectedCallback() {
@@ -105,10 +108,10 @@ class Input extends SkeletonMixin(LabelledMixin(LitElement)) {
105
108
  'd2l-skeletize': true,
106
109
  'd2l-hovering': this.hovering,
107
110
  'd2l-disabled': this.disabled,
108
- 'd2l-input-radio-disabled-tooltip': this.disabled && this._disabledTooltip
111
+ 'd2l-input-radio-disabled-tooltip': this.disabled && this.disabledTooltip
109
112
  };
110
- const disabledTooltip = this.disabled && this._disabledTooltip ?
111
- html`<d2l-tooltip align="start" class="vdiff-include" for="${this.#inputId}" ?force-show="${this.hovering}" position="top">${this._disabledTooltip}</d2l-tooltip>` :
113
+ const disabledTooltip = this.disabled && this.disabledTooltip ?
114
+ html`<d2l-tooltip align="start" class="vdiff-include" for="${this.#inputId}" ?force-show="${this.hovering}" position="top">${this.disabledTooltip}</d2l-tooltip>` :
112
115
  nothing;
113
116
  return html`
114
117
  <div
@@ -133,7 +136,7 @@ class Input extends SkeletonMixin(LabelledMixin(LitElement)) {
133
136
  ?checked="${this.selected}"
134
137
  class="${ifDefined(this.hovering ? 'd2l-hovering' : undefined)}"
135
138
  ?disabled="${this.disabled}"
136
- disabled-tooltip="${ifDefined(this._disabledTooltip)}"
139
+ disabled-tooltip="${ifDefined(this.disabledTooltip)}"
137
140
  ?indeterminate="${this._indeterminate}"
138
141
  ?skeleton="${this.skeleton}">
139
142
  </d2l-input-checkbox>
@@ -12939,6 +12939,11 @@
12939
12939
  "description": "Disables the input",
12940
12940
  "type": "boolean"
12941
12941
  },
12942
+ {
12943
+ "name": "disabled-tooltip",
12944
+ "description": "Tooltip text when disabled",
12945
+ "type": "string"
12946
+ },
12942
12947
  {
12943
12948
  "name": "key",
12944
12949
  "description": "REQUIRED: Key for the selectable",
@@ -12973,6 +12978,12 @@
12973
12978
  "description": "Disables the input",
12974
12979
  "type": "boolean"
12975
12980
  },
12981
+ {
12982
+ "name": "disabledTooltip",
12983
+ "attribute": "disabled-tooltip",
12984
+ "description": "Tooltip text when disabled",
12985
+ "type": "string"
12986
+ },
12976
12987
  {
12977
12988
  "name": "key",
12978
12989
  "attribute": "key",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.199.0",
3
+ "version": "3.200.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",