@brightspace-ui/core 1.233.7 → 1.234.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.
|
@@ -280,7 +280,7 @@ To make your usage of `d2l-dropdown-more` accessible, use the following property
|
|
|
280
280
|

|
|
281
281
|
<!-- docs: end hidden content -->
|
|
282
282
|
|
|
283
|
-
<!-- docs: demo live name:d2l-dropdown-menu align:flex-start
|
|
283
|
+
<!-- docs: demo live name:d2l-dropdown-menu align:flex-start autoSize:false size:medium -->
|
|
284
284
|
```html
|
|
285
285
|
<script type="module">
|
|
286
286
|
import '@brightspace-ui/core/components/dropdown/dropdown-button.js';
|
|
@@ -291,7 +291,7 @@ To make your usage of `d2l-dropdown-more` accessible, use the following property
|
|
|
291
291
|
import '@brightspace-ui/core/components/tabs/tab-panel.js';
|
|
292
292
|
</script>
|
|
293
293
|
<d2l-dropdown-button text="Open!" primary>
|
|
294
|
-
<d2l-dropdown-menu>
|
|
294
|
+
<d2l-dropdown-menu opened>
|
|
295
295
|
<d2l-menu label="Astronomy">
|
|
296
296
|
<d2l-menu-item text="Introduction"></d2l-menu-item>
|
|
297
297
|
<d2l-menu-item text="Searching for the Heavens "></d2l-menu-item>
|
|
@@ -20,12 +20,15 @@ class DropdownMenu extends ThemeMixin(DropdownContentMixin(LitElement)) {
|
|
|
20
20
|
super();
|
|
21
21
|
this.noAutoFocus = true;
|
|
22
22
|
this.noPadding = true;
|
|
23
|
+
this._initiallyOpenedSuppressFocus = false;
|
|
23
24
|
this._maxHeightNonTray = this.maxHeight;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
firstUpdated(changedProperties) {
|
|
27
28
|
super.firstUpdated(changedProperties);
|
|
28
29
|
|
|
30
|
+
if (this.opened) this._initiallyOpenedSuppressFocus = true;
|
|
31
|
+
|
|
29
32
|
this._maxHeightNonTray = this.maxHeight;
|
|
30
33
|
if (this._useMobileStyling && this.mobileTray) {
|
|
31
34
|
this.maxHeight = null;
|
|
@@ -114,7 +117,9 @@ class DropdownMenu extends ThemeMixin(DropdownContentMixin(LitElement)) {
|
|
|
114
117
|
|
|
115
118
|
menu.resize();
|
|
116
119
|
|
|
117
|
-
menu
|
|
120
|
+
// If dropdown-menu is opened on first render, do not focus
|
|
121
|
+
if (this._initiallyOpenedSuppressFocus) this._initiallyOpenedSuppressFocus = false;
|
|
122
|
+
else menu.focus();
|
|
118
123
|
}
|
|
119
124
|
|
|
120
125
|
_onSelect(e) {
|
|
@@ -93,10 +93,12 @@ export const ListItemMixin = superclass => class extends LocalizeCoreElement(Lis
|
|
|
93
93
|
display: none;
|
|
94
94
|
}
|
|
95
95
|
:host([_tooltip-showing]),
|
|
96
|
-
:host([_dropdown-open])
|
|
97
|
-
:host([_fullscreen-within]) {
|
|
96
|
+
:host([_dropdown-open]) {
|
|
98
97
|
z-index: 10;
|
|
99
98
|
}
|
|
99
|
+
:host([_fullscreen-within]) {
|
|
100
|
+
z-index: 1000; /* must be greater than floating workflow buttons */
|
|
101
|
+
}
|
|
100
102
|
:host(:first-child) d2l-list-item-generic-layout[data-separators="between"] {
|
|
101
103
|
border-top: 1px solid transparent;
|
|
102
104
|
}
|
package/lang/hi.js
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* eslint quotes: 0 */
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
"components.alert.close": "अलर्ट बंद करें",
|
|
5
|
+
"components.breadcrumbs.breadcrumb": "Breadcrumb",
|
|
6
|
+
"components.calendar.notSelected": "चयनित नहीं।",
|
|
7
|
+
"components.calendar.selected": "चयनित।",
|
|
8
|
+
"components.calendar.show": "{month} दिखाएँ",
|
|
9
|
+
"components.count-badge.plus" : "{number}+",
|
|
10
|
+
"components.dialog.close": "यह संवाद बंद करें",
|
|
11
|
+
"components.dropdown.close": "बंद करें",
|
|
12
|
+
"components.filter.clear": "साफ़ करें",
|
|
13
|
+
"components.filter.clearAll": "सभी साफ़ करें",
|
|
14
|
+
"components.filter.clearAllAnnounce": "सभी फिल्टर साफ़ किए जा रहे हैं",
|
|
15
|
+
"components.filter.clearAllDescription": "सभी फिल्टर साफ़ करें",
|
|
16
|
+
"components.filter.clearAnnounce": "इसके लिए फ़िल्टर साफ़ हो रहे हैं: {filterName}",
|
|
17
|
+
"components.filter.clearAnnounceSingle": "फ़िल्टर्स साफ़ किए जा रहे हैं",
|
|
18
|
+
"components.filter.clearDescription": "इसके लिए फ़िल्टर्स साफ़ करें: {filterName}",
|
|
19
|
+
"components.filter.clearDescriptionSingle": "फ़िल्टर साफ़ करें",
|
|
20
|
+
"components.filter.loading": "फिल्टर्स लोड किए जा रहे हैं",
|
|
21
|
+
"components.filter.filterCountDescription": "{number, plural, zero {कोई फ़िल्टर लागू नहीं किए गए} one {1 फ़िल्टर लागू किया गया।} other {{number} फ़िल्टर्स लागू किए गए।}}",
|
|
22
|
+
"components.filter.filters": "फ़िल्टर्स",
|
|
23
|
+
"components.filter.noFilters": "कोई उपलब्ध फ़िल्टर्स नहीं",
|
|
24
|
+
"components.filter.searchResults": "{number, plural, zero {कोई खोज परिणाम नहीं} one {1 खोज परिणाम} other {{number} खोज परिणाम}}",
|
|
25
|
+
"components.filter.singleDimensionDescription": "इसके अनुसार फ़िल्टर करें: {filterName}",
|
|
26
|
+
"components.form-element.defaultError": "{label} अमान्य है।",
|
|
27
|
+
"components.form-element.defaultFieldLabel": "फ़ील्ड",
|
|
28
|
+
"components.form-element.input.email.typeMismatch": "ईमेल मान्य नहीं है",
|
|
29
|
+
"components.form-element.input.number.rangeError": "संख्या को {minExclusive, select, true {इससे बड़ा} false {इससे बड़ा या इसके बराबर}} {min} and {maxExclusive, select, true {इससे कम} false {इससे कम या इसके बराबर}} {max} होना आवश्यक है।",
|
|
30
|
+
"components.form-element.input.number.rangeOverflow": "संख्या को {maxExclusive, select, true {इससे कम} false {इससे कम या इसके बराबर}} {max} होना आवश्यक है।",
|
|
31
|
+
"components.form-element.input.number.rangeUnderflow": "संख्या को {minExclusive, select, true {इससे बड़ा} false {इससे बड़ा है या इसके बराबर}} {min} होना आवश्यक है।",
|
|
32
|
+
"components.form-element.input.text.tooShort": "{label} कम से कम {minlength} वर्णों का होना चाहिए",
|
|
33
|
+
"components.form-element.input.url.typeMismatch": "URL मान्य नहीं है",
|
|
34
|
+
"components.form-element.valueMissing": "{label} आवश्यक है।",
|
|
35
|
+
"components.form-error-summary.errorSummary": "आपके द्वारा सबमिट की गई जानकारी में {count, plural, one { 1 त्रुटि } other { { count } त्रुटियाँ }} मिली थी",
|
|
36
|
+
"components.input-date-range.endDate": "समाप्ति तारीख़",
|
|
37
|
+
"components.input-date-range.errorBadInput": "{startLabel} {endLabel} से पहले का होना चाहिए",
|
|
38
|
+
"components.input-date-range.startDate": "प्रारंभ तारीख़",
|
|
39
|
+
"components.input-date-time-range-to.to": "प्रति",
|
|
40
|
+
"components.input-date-time-range.endDate": "समाप्ति तारीख़",
|
|
41
|
+
"components.input-date-time-range.errorBadInput": "{startLabel} {endLabel} से पहले का होना चाहिए",
|
|
42
|
+
"components.input-date-time-range.startDate": "प्रारंभ तारीख़",
|
|
43
|
+
"components.input-date-time.date": "तारीख़",
|
|
44
|
+
"components.input-date-time.errorMaxDateOnly": "तारीख़ {maxDate} से पहले की होनी चाहिए",
|
|
45
|
+
"components.input-date-time.errorMinDateOnly": "तारीख़ {minDate} के बाद की होनी चाहिए",
|
|
46
|
+
"components.input-date-time.errorOutsideRange": "तारीख़ {minDate} और {maxDate} के बीच होनी चाहिए",
|
|
47
|
+
"components.input-date-time.time": "समय",
|
|
48
|
+
"components.input-date.clear": "साफ़ करें",
|
|
49
|
+
"components.input-date.errorMaxDateOnly": "तारीख़ {maxDate} से पहले की होनी चाहिए",
|
|
50
|
+
"components.input-date.errorMinDateOnly": "तारीख़ {minDate} के बाद की होनी चाहिए",
|
|
51
|
+
"components.input-date.errorOutsideRange": "तारीख़ {minDate} और {maxDate} के बीच होनी चाहिए",
|
|
52
|
+
"components.input-date.openInstructions": "तारीख़ फ़ॉर्मेट {format} का उपयोग करें। लघु-कैलेंडर तक पहुँचने के लिए तीर नीचे या एंटर दबाएँ।",
|
|
53
|
+
"components.input-date.now": "अब",
|
|
54
|
+
"components.input-date.today": "आज",
|
|
55
|
+
"components.input-number.hintInteger": "यह फ़ील्ड केवल पूर्णांक मानों (कोई दशमलव नहीं) को स्वीकार करती है",
|
|
56
|
+
"components.input-number.hintDecimalDuplicate": "इस संख्या में पहले से ही कोई दशमलव है",
|
|
57
|
+
"components.input-number.hintDecimalIncorrectComma": "दशमलव जोड़ने के लिए, अल्पविराम \",\" वर्ण उपयोग करें",
|
|
58
|
+
"components.input-number.hintDecimalIncorrectPeriod": "कोई दशमलव जोड़ने के लिए, पीरियड \".\" वर्ण का उपयोग करें",
|
|
59
|
+
"components.input-search.clear": "खोज साफ़ करें",
|
|
60
|
+
"components.input-search.defaultPlaceholder": "खोजें...",
|
|
61
|
+
"components.input-search.search": "खोजें",
|
|
62
|
+
"components.input-time-range.endTime": "समाप्ति समय",
|
|
63
|
+
"components.input-time-range.errorBadInput": "{startLabel} {endLabel} से पहले का होना चाहिए",
|
|
64
|
+
"components.input-time-range.startTime": "प्रारंभ समय",
|
|
65
|
+
"components.list-item-drag-handle.default": "{name} के लिए आइटम कार्रवाई का क्रम बदलें",
|
|
66
|
+
"components.list-item-drag-handle.keyboard": "आइटम का क्रम बदलें, {size} में से वर्तमान स्थिति {currentPosition} इस आइटम को ले जाने के लिए, ऊपर या नीचे तीर दबाएँ।",
|
|
67
|
+
"components.list-item-tooltip.title": "Keyboard Navigation for Lists:",
|
|
68
|
+
"components.list-item-tooltip.enter-key": "Enter",
|
|
69
|
+
"components.list-item-tooltip.enter-desc": "Activate the focused option.",
|
|
70
|
+
"components.list-item-tooltip.up-down-key": "Up/Down",
|
|
71
|
+
"components.list-item-tooltip.up-down-desc": "Move focus between list items.",
|
|
72
|
+
"components.list-item-tooltip.left-right-key": "Left/Right",
|
|
73
|
+
"components.list-item-tooltip.left-right-desc": "Move focus within current item.",
|
|
74
|
+
"components.list-item-tooltip.page-up-down-key": "Page Up/Down",
|
|
75
|
+
"components.list-item-tooltip.page-up-down-desc": "Move focus 5 items at a time.",
|
|
76
|
+
"components.list-item-drag-handle-tooltip.title": "Keyboard Controls for Reordering:",
|
|
77
|
+
"components.list-item-drag-handle-tooltip.enter-key": "Enter",
|
|
78
|
+
"components.list-item-drag-handle-tooltip.enter-desc": "Toggle keyboard reorder mode.",
|
|
79
|
+
"components.list-item-drag-handle-tooltip.up-down-key": "Up/Down",
|
|
80
|
+
"components.list-item-drag-handle-tooltip.up-down-desc": "Move item up or down in the list.",
|
|
81
|
+
"components.list-item-drag-handle-tooltip.left-right-key": "Left/Right",
|
|
82
|
+
"components.list-item-drag-handle-tooltip.left-right-desc": "Change the nesting level.",
|
|
83
|
+
"components.menu-item-return.return": "पिछले मेनू पर वापस जाएँ।",
|
|
84
|
+
"components.menu-item-return.returnCurrentlyShowing": "पिछले मेनू पर वापस जाएँ। आप {menuTitle} देख रहे हैं।",
|
|
85
|
+
"components.meter-mixin.commaSeperatedAria": "{term1}, {term2}",
|
|
86
|
+
"components.meter-mixin.fraction": "{x}∕{y}",
|
|
87
|
+
"components.meter-mixin.progressIndicator": "प्रगति संकेतक",
|
|
88
|
+
"components.more-less.less": "कम",
|
|
89
|
+
"components.more-less.more": "अधिक",
|
|
90
|
+
"components.overflow-group.moreActions": "अधिक क्रियाएँ",
|
|
91
|
+
"components.selection.action-hint": "यह कार्रवाई निष्पादित करने के लिए कोई आइटम का चयन करें।",
|
|
92
|
+
"components.selection.select-all": "सभी का चयन करें",
|
|
93
|
+
"components.selection.select-all-items": "Select All {count} Items",
|
|
94
|
+
"components.selection.selected": "{count} चयनित",
|
|
95
|
+
"components.switch.visibility": "दृश्यता",
|
|
96
|
+
"components.tabs.next": "आगे स्क्रॉल करें",
|
|
97
|
+
"components.tabs.previous": "पीछे स्क्रॉल करें",
|
|
98
|
+
"templates.primary-secondary.adjustableSplitView": "समायोजन योग्य विभाजन दृश्य",
|
|
99
|
+
"templates.primary-secondary.keyboardHorizontal": "दृश्य पैनल्स का आकार समायोजित करने के लिए तीर बाएँ या दाएँ करें",
|
|
100
|
+
"templates.primary-secondary.keyboardVertical": "दृश्य पैनल्स का आकार समायोजित करने के लिए तीर ऊपर या नीचे करें"
|
|
101
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.234.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",
|