@brightspace-ui/core 3.86.0 → 3.86.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.
@@ -202,7 +202,14 @@
|
|
202
202
|
</template>
|
203
203
|
</d2l-demo-snippet>
|
204
204
|
|
205
|
+
<d2l-demo-snippet>
|
206
|
+
<template>
|
207
|
+
<d2l-button id="toggle" disabled-tooltip="This tooltip shows if button is disabled, but only after refocusing">Toggle Disable</d2l-button>
|
208
|
+
</template>
|
209
|
+
</d2l-demo-snippet>
|
210
|
+
|
205
211
|
<script>
|
212
|
+
document.querySelector('#toggle').addEventListener('click', e => e.target.disabled = !e.target.disabled);
|
206
213
|
document.addEventListener('d2l-tooltip-show', e => console.log('d2l-tooltip-show', e.target));
|
207
214
|
document.addEventListener('d2l-tooltip-hide', e => console.log('d2l-tooltip-hide', e.target));
|
208
215
|
</script>
|
@@ -544,8 +544,8 @@ class Tooltip extends RtlMixin(LitElement) {
|
|
544
544
|
;
|
545
545
|
}
|
546
546
|
|
547
|
-
|
548
|
-
super.
|
547
|
+
willUpdate(changedProperties) {
|
548
|
+
super.willUpdate(changedProperties);
|
549
549
|
|
550
550
|
changedProperties.forEach((_, prop) => {
|
551
551
|
if (prop === 'for') {
|
@@ -950,9 +950,17 @@ class Tooltip extends RtlMixin(LitElement) {
|
|
950
950
|
}
|
951
951
|
|
952
952
|
_updateTarget() {
|
953
|
+
const newTarget = this._findTarget();
|
954
|
+
if (this._target === newTarget) {
|
955
|
+
return;
|
956
|
+
}
|
957
|
+
|
953
958
|
this._removeListeners();
|
954
|
-
this._target =
|
959
|
+
this._target = newTarget;
|
960
|
+
|
955
961
|
if (this._target) {
|
962
|
+
const targetDisabled = this._target.hasAttribute('disabled') || this._target.getAttribute('aria-disabled') === 'true';
|
963
|
+
|
956
964
|
const isInteractive = this._isInteractive(this._target);
|
957
965
|
this.id = this.id || getUniqueId();
|
958
966
|
this.setAttribute('role', 'tooltip');
|
@@ -971,7 +979,7 @@ class Tooltip extends RtlMixin(LitElement) {
|
|
971
979
|
}
|
972
980
|
if (this.showing) {
|
973
981
|
this.updatePosition();
|
974
|
-
} else if (isComposedAncestor(this._target, getComposedActiveElement())) {
|
982
|
+
} else if (!targetDisabled && isComposedAncestor(this._target, getComposedActiveElement())) {
|
975
983
|
this._onTargetFocus();
|
976
984
|
}
|
977
985
|
}
|
package/lang/haw.js
CHANGED
@@ -32,14 +32,14 @@ export default {
|
|
32
32
|
"components.filter-dimension-set-date-text-value.textMonths": "{num} mahina i hala",
|
33
33
|
"components.filter-dimension-set-date-time-range-value.label": "{text}, hoʻonui e koho i nā lā",
|
34
34
|
"components.filter-dimension-set-date-time-range-value.valueTextRange": "{startValue} i {endValue}",
|
35
|
-
"components.filter-dimension-set-date-time-range-value.valueTextRangeStartOnly": "
|
36
|
-
"components.filter-dimension-set-date-time-range-value.valueTextRangeEndOnly": "
|
35
|
+
"components.filter-dimension-set-date-time-range-value.valueTextRangeStartOnly": "Ma hope o {startValue}",
|
36
|
+
"components.filter-dimension-set-date-time-range-value.valueTextRangeEndOnly": "Ma mua o {endValue}",
|
37
37
|
"components.filter-dimension-set-date-time-range-value.text": "Laulā lā maʻamau",
|
38
38
|
"components.form-element.defaultError": "ʻAʻole kūpono ʻo {label}.",
|
39
39
|
"components.form-element.defaultFieldLabel": "Kihapai",
|
40
40
|
"components.form-element.input.email.typeMismatch": "ʻAʻole kūpono ka leka uila",
|
41
|
-
"components.form-element.input.number.rangeError": "{minExclusive, select, true {{maxExclusive, select, true {Pono ka
|
42
|
-
"components.form-element.input.number.rangeOverflow": "{maxExclusive, select, true {Pono ka helu
|
41
|
+
"components.form-element.input.number.rangeError": "{minExclusive, select, true {{maxExclusive, select, true {Pono ka helu ma mua o {min} a emi iho {max}.} other {Pono ka helu ma mua o {min} a emi iho a like paha {max}.}}} other {{maxExclusive, select, true {Pono ka helu ma mua a i ʻole like me {min} a emi iho {max}.} other {Pono ka helu ma mua a i ʻole like me {min} a emi iho a like paha {max}.}}}}",
|
42
|
+
"components.form-element.input.number.rangeOverflow": "{maxExclusive, select, true {Pono e emi ka helu {max}.} other {Pono e emi a like paha ka helu me {max}.}}",
|
43
43
|
"components.form-element.input.number.rangeUnderflow": "{minExclusive, select, true {Pono ka helu ma mua o {min}.} other {Pono ka helu ma mua a i ʻole like me {min}.}}",
|
44
44
|
"components.form-element.input.text.tooShort": "Pono ka {label} ma kahi o {minlength} mau huapalapala",
|
45
45
|
"components.form-element.input.url.typeMismatch": "ʻAʻole kūpono ka URL",
|
@@ -107,16 +107,16 @@ export default {
|
|
107
107
|
"components.object-property-list.item-placeholder-text": "Mea Paʻa Wahi",
|
108
108
|
"components.overflow-group.moreActions": "Nā Hana Hou",
|
109
109
|
"components.pager-load-more.action": "Hoʻouka hou aku",
|
110
|
-
"components.pager-load-more.action-with-page-size": "Hoʻouka {count} hou aku",
|
110
|
+
"components.pager-load-more.action-with-page-size": "Hoʻouka {count} Mea hou aku",
|
111
111
|
"components.pageable.info": "{count, plural, one {{countFormatted} mea} other {{countFormatted} mau mea}}",
|
112
112
|
"components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} o {totalCountFormatted} mea} other {{countFormatted} o {totalCountFormatted} mau mea}}",
|
113
113
|
"components.pager-load-more.status-loading": "Ke hoʻouka nei i nā mea hou aʻe",
|
114
|
-
"components.selection.action-max-hint": "{count, plural, one {
|
114
|
+
"components.selection.action-max-hint": "{count, plural, one {Hoʻopaʻa ʻia ke ʻoi aku ma mua o {countFormatted} koho ʻia ka mea} other {Hoʻopaʻa ʻia ke ʻoi aku ma mua o {countFormatted} koho ʻia nā mea}}",
|
115
115
|
"components.selection.action-required-hint": "E koho i kahi mea e hana ai i kēia hana",
|
116
116
|
"components.selection.select-all": "E koho i nā mea a pau",
|
117
117
|
"components.selection.select-all-items": "E koho i nā mea a pau {count}.",
|
118
|
-
"components.selection.selected": "{count} koho
|
119
|
-
"components.selection.selected-plus": "{count}+ koho ʻia",
|
118
|
+
"components.selection.selected": "{count} koho",
|
119
|
+
"components.selection.selected-plus": "{count}+ i koho ʻia",
|
120
120
|
"components.selection-controls.label": "Nā hana no ke koho",
|
121
121
|
"components.switch.visible": "ʻIke ʻia",
|
122
122
|
"components.switch.visibleWithPeriod": "ʻIke ʻia.",
|
@@ -124,7 +124,7 @@ export default {
|
|
124
124
|
"components.switch.conditions": "Pono e hoʻokō i nā kūlana",
|
125
125
|
"components.table-col-sort-button.addSortOrder": "E koho e hoʻohui i ka hoʻonohonoho ʻana",
|
126
126
|
"components.table-col-sort-button.changeSortOrder": "E koho e hoʻololi i ka hoʻonohonoho ʻana",
|
127
|
-
"components.table-col-sort-button.title": "{sourceType, select, dates {{direction, select, desc {Hoʻokaʻawale ʻia ka mea hou a i ka
|
127
|
+
"components.table-col-sort-button.title": "{sourceType, select, dates {{direction, select, desc {Hoʻokaʻawale ʻia ka mea hou a i ka wā kahiko} other {Hoʻokaʻawale ʻia ka mea kahiko i ka mea hou}}} numbers {{direction, select, desc {Hoʻokaʻina kiʻekiʻe a haʻahaʻa} other {Hoʻokaʻina haʻahaʻa a kiʻekiʻe}}} words {{direction, select, desc {Hoʻokaʻawale ʻia ʻo Z iā A} other {Hoʻopili ʻia ʻo A a Z}}} value {Hoʻokaʻawale ʻia {selectedMenuItemText}} other {{direction, select, desc {Hoʻokaʻawale i ka iho ʻana} other {Hoʻopili ʻia i ka piʻi ʻana}}}}",
|
128
128
|
"components.table-controls.label": "Nā hana no ka papaʻaina",
|
129
129
|
"components.tabs.next": "Holo i mua",
|
130
130
|
"components.tabs.previous": "Holo i hope",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.86.
|
3
|
+
"version": "3.86.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",
|