@brightspace-ui/core 3.106.0 → 3.106.2
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.
@@ -1,6 +1,7 @@
|
|
1
1
|
|
2
2
|
import '../../button/button.js';
|
3
3
|
import '../../button/floating-buttons.js';
|
4
|
+
import '../../inputs/input-date-time-range.js';
|
4
5
|
import '../../inputs/input-percent.js';
|
5
6
|
import '../../inputs/input-text.js';
|
6
7
|
import '../../inputs/input-textarea.js';
|
@@ -50,6 +51,9 @@ class FormNestedDemo extends LitElement {
|
|
50
51
|
<div class="d2l-form-demo-container">
|
51
52
|
<d2l-input-percent label="Awesome" name="grade"></d2l-input-percent>
|
52
53
|
</div>
|
54
|
+
<div class="d2l-form-demo-container">
|
55
|
+
<d2l-input-date-time-range label="Date Range"></d2l-input-date-time-range>
|
56
|
+
</div>
|
53
57
|
<fieldset class="d2l-form-demo-container">
|
54
58
|
<legend>Choose your favorite monster</legend>
|
55
59
|
<label><input type="radio" name="monster" value="kraken"> Kraken</label>
|
@@ -308,7 +308,12 @@ class InputDateTime extends FocusMixin(LabelledMixin(SkeletonMixin(FormElementMi
|
|
308
308
|
if (!this.shadowRoot) return;
|
309
309
|
const dateInput = this.shadowRoot.querySelector('d2l-input-date');
|
310
310
|
const timeInput = this.shadowRoot.querySelector('d2l-input-time');
|
311
|
-
|
311
|
+
|
312
|
+
const errors = await Promise.all([
|
313
|
+
dateInput.validate(),
|
314
|
+
timeInput ? timeInput.validate() : Promise.resolve([]),
|
315
|
+
super.validate()
|
316
|
+
]);
|
312
317
|
return [...errors[0], ...errors[1], ...errors[2]];
|
313
318
|
}
|
314
319
|
|
package/lang/mi.js
ADDED
@@ -0,0 +1,148 @@
|
|
1
|
+
export default {
|
2
|
+
"components.alert.close": "Kati Matohi",
|
3
|
+
"components.breadcrumbs.breadcrumb": "Pānui",
|
4
|
+
"components.button-add.addItem": "Tāpiri Tūemi",
|
5
|
+
"components.calendar.hasEvents": "He takahanga anō.",
|
6
|
+
"components.calendar.notSelected": "Kāore i tīpakona.",
|
7
|
+
"components.calendar.selected": "I tīpakona.",
|
8
|
+
"components.calendar.show": "Whakaatu {month}",
|
9
|
+
"components.count-badge.plus": "{number}+",
|
10
|
+
"components.dialog.close": "Katia tēnei kōrero",
|
11
|
+
"components.dialog.critical": "Takenui!",
|
12
|
+
"components.dropdown.close": "Katia",
|
13
|
+
"components.filter.activeFilters": "Ngā Tātari Hohe:",
|
14
|
+
"components.filter.additionalContentTooltip": "Whakamahia <b>ngā pātuhi pere mauī/matau</b> hei nuku arotahi ki roto i tēnei tūemi rārangi",
|
15
|
+
"components.filter.clear": "Mahea",
|
16
|
+
"components.filter.clearAll": "Mukua",
|
17
|
+
"components.filter.clearAllAnnounce": "Ūkui ana i ngā tātari katoa",
|
18
|
+
"components.filter.clearAllAnnounceOverride": "Ūkui ana i ngā tātari katoa mō: {filterText}",
|
19
|
+
"components.filter.clearAllDescription": "Ūkuia ngā tātari katoa",
|
20
|
+
"components.filter.clearAllDescriptionOverride": "Ūkuia ngā tātari katoa mō: {filterText}",
|
21
|
+
"components.filter.clearAnnounce": "Ūkui ana i ngā tātari mō: {filterName}",
|
22
|
+
"components.filter.clearDescription": "Ūkui tātari mō: {filterName}",
|
23
|
+
"components.filter.loading": "Uta tātari ana",
|
24
|
+
"components.filter.filterCountDescription": "{number, plural, =0 {Kāore he tātari i hoatu.} one {{number} kua hoatu te tātari.} other {{number} Kua hoatu ngā tātari.}}",
|
25
|
+
"components.filter.filters": "Ngā Tātari",
|
26
|
+
"components.filter.noFilters": "Kāore he tātari wātea",
|
27
|
+
"components.filter.searchResults": "{number, plural, =0 {Kāore he hua rapu} one {{number} hua rapu} other {{number} Ngā Huanga Rapu}}",
|
28
|
+
"components.filter.selectedFirstListLabel": "{headerText}. Ka puta tuatahi ngā tātari kua tīpakohia.",
|
29
|
+
"components.filter.singleDimensionDescription": "Tātari mā: {filterName}",
|
30
|
+
"components.filter-dimension-set-date-text-value.textHours": "{num, plural, one {Tērā haora} other {Whakamutunga {num} hāora}}",
|
31
|
+
"components.filter-dimension-set-date-text-value.textDays": "{num, plural, =0 {Āianei} one {Whakamutunga {num} Te rā} other {Whakamutunga {num} ngā rā}}",
|
32
|
+
"components.filter-dimension-set-date-text-value.textMonths": "Ngā marama {num} whakamutunga",
|
33
|
+
"components.filter-dimension-set-date-time-range-value.label": "{text}, whakaroha hei kōwhiri i ngā rā",
|
34
|
+
"components.filter-dimension-set-date-time-range-value.valueTextRange": "{startValue} ki {endValue}",
|
35
|
+
"components.filter-dimension-set-date-time-range-value.valueTextRangeStartOnly": "After {startValue}",
|
36
|
+
"components.filter-dimension-set-date-time-range-value.valueTextRangeEndOnly": "Before {endValue}",
|
37
|
+
"components.filter-dimension-set-date-time-range-value.text": "Awhe rā ritenga",
|
38
|
+
"components.form-element.defaultError": "{label} is invalid",
|
39
|
+
"components.form-element.defaultFieldLabel": "Āpure",
|
40
|
+
"components.form-element.input.email.typeMismatch": "Kāore te īmēra i te tika",
|
41
|
+
"components.form-element.input.number.rangeError": "{minExclusive, select, true {{maxExclusive, select, true {Number me nui ake i te {min} me iti iho i te {max}.} other {Number me nui ake i te {min} me iti iho rānei i te ōrite ki {max}.}}} other {{maxExclusive, select, true {Number me nui ake, ōrite rānei ki {min} and less than {max}.} other {Number me nui ake, ōrite rānei ki {min} me iti iho, ōrite rānei ki {max}.}}}}",
|
42
|
+
"components.form-element.input.number.rangeOverflow": "{maxExclusive, select, true {Number me iti iho i te {max}.} other {Number me iti iho, kia ōrite rānei ki {max}.}}",
|
43
|
+
"components.form-element.input.number.rangeUnderflow": "{minExclusive, select, true {Number must me nui ake i te {min}.} other {Number me nui ake, ōrite rānei ki {min}.}}",
|
44
|
+
"components.form-element.input.text.tooShort": "Me noho te {label} kia {minlength} ngā pūāhua",
|
45
|
+
"components.form-element.input.url.typeMismatch": "Kāore te URL i te tika",
|
46
|
+
"components.form-element.valueMissing": "{label} is required",
|
47
|
+
"components.form-error-summary.errorSummary": "{count, plural, one {Tērā {count} hapa i kitea i te mōhiohio i tukuna e koe} other {I te {count} ngā hapa i kitea i te mōhiohio i tukuna e koe}}",
|
48
|
+
"components.form-error-summary.text": "Takahuri taipitopito hapa",
|
49
|
+
"components.input-color.backgroundColor": "Tae papamuri",
|
50
|
+
"components.input-color.foregroundColor": "Tae Papamua",
|
51
|
+
"components.input-color.none": "Kore",
|
52
|
+
"components.input-date-range.endDate": "Rā mutunga",
|
53
|
+
"components.input-date-range.errorBadInput": "Me noho te {startLabel} i mua i te {endLabel}",
|
54
|
+
"components.input-date-range.interactive-label": "Tāurunga awhe rā",
|
55
|
+
"components.input-date-range.startDate": "Rā tīmata",
|
56
|
+
"components.input-date-time-range-to.to": "ki",
|
57
|
+
"components.input-date-time-range.endDate": "Rā mutunga",
|
58
|
+
"components.input-date-time-range.errorBadInput": "Me noho te {startLabel} i mua i te {endLabel}",
|
59
|
+
"components.input-date-time-range.startDate": "Rā tīmata",
|
60
|
+
"components.input-date-time.date": "Rā",
|
61
|
+
"components.input-date-time.errorMaxDateOnly": "Me noho te rā i mua, i te {maxDate} rānei",
|
62
|
+
"components.input-date-time.errorMinDateOnly": "Me kā te rā, i muri rānei i te {minDate}",
|
63
|
+
"components.input-date-time.errorOutsideRange": "Me noho te rā ki waenga i te {minDate} me te {maxDate}",
|
64
|
+
"components.input-date-time.time": "Te wā",
|
65
|
+
"components.input-date-time-range.interactive-label": "Tāurunga awhe rā me te wā",
|
66
|
+
"components.input-date.clear": "Mahea",
|
67
|
+
"components.input-date.errorMaxDateOnly": "Me noho te rā i mua, i te {maxDate} rānei",
|
68
|
+
"components.input-date.errorMinDateOnly": "Me kā te rā, i muri rānei i te {minDate}",
|
69
|
+
"components.input-date.errorOutsideRange": "Me noho te rā ki waenga i te {minDate} me te {maxDate}",
|
70
|
+
"components.input-date.openInstructions": "Whakamahia te hōputu rā {format}. Pere whakararo, pēhi rānei i te tāuru hei uru ki te pae-iti.",
|
71
|
+
"components.input-date.now": "Ināianei",
|
72
|
+
"components.input-date.revert": "{label} reverted to previous value.",
|
73
|
+
"components.input-date.today": "Āianei",
|
74
|
+
"components.input-date.useDateFormat": "Use date format {format}.",
|
75
|
+
"components.input-number.hintInteger": "Ka whakaae anake tēnei āpure ki ngā uara tau tōpū (kāore he ira)",
|
76
|
+
"components.input-number.hintDecimalDuplicate": "He ira kē kei tēnei tau",
|
77
|
+
"components.input-number.hintDecimalIncorrectComma": "Hei tāpiri i tētahi ira whakamahi i te piko \",\" pūāhua",
|
78
|
+
"components.input-number.hintDecimalIncorrectPeriod": "Hei tāpiri i tētahi ira whakamahi i te wā \".\" pūāhua",
|
79
|
+
"components.input-search.clear": "Whakawātea rapu",
|
80
|
+
"components.input-search.defaultPlaceholder": "Rapua...",
|
81
|
+
"components.input-search.search": "Rapua",
|
82
|
+
"components.input-time-range.endTime": "Wā Whakamutu",
|
83
|
+
"components.input-time-range.errorBadInput": "Me noho te {startLabel} i mua i te {endLabel}",
|
84
|
+
"components.input-time-range.startTime": "Wā tīmata",
|
85
|
+
"components.interactive.instructions": "Pēhi Tāuru hei tauwhiti, Escape hei puta atu",
|
86
|
+
"components.link.open-in-new-window": "Whakatuwhera ai ki tētahi matapihi hōu.",
|
87
|
+
"components.list.keyboard": "Whakamahia <b>ngā pātuhi pere</b> hei nuku arotahi ki roto i tēnei rārangi, <b>whārangi whakarunga/iho</b> rānei hei neke whakarunga, whakararo rānei mā te 5",
|
88
|
+
"components.list-controls.label": "Ngā mahinga mō te rārangi",
|
89
|
+
"components.list-item.addItem": "Tāpiri Tūemi",
|
90
|
+
"components.list-item-drag-handle.default": "Raupapa anō i te hohenga tūemi mō {name}",
|
91
|
+
"components.list-item-drag-handle.keyboard": "Raupapa anō i te tūemi, te tūnga o nāianei {currentPosition} mai i te {size}. Hei nuku i tēnei tūemi, pēhia ngā pere whakarunga, whakararo rānei.",
|
92
|
+
"components.list-item-drag-handle-tooltip.title": "Ngā Mana Papapātuhi mō te Raupapa Anō:",
|
93
|
+
"components.list-item-drag-handle-tooltip.enter-key": "Tāuru",
|
94
|
+
"components.list-item-drag-handle-tooltip.enter-desc": "Takahuri aratau raupapa papapātuhi.",
|
95
|
+
"components.list-item-drag-handle-tooltip.up-down-key": "Runga/Raro",
|
96
|
+
"components.list-item-drag-handle-tooltip.up-down-desc": "Nukua te tūemi whakarunga, whakararo rānei i te rārangi.",
|
97
|
+
"components.list-item-drag-handle-tooltip.left-right-key": "Mauī/Matau",
|
98
|
+
"components.list-item-drag-handle-tooltip.left-right-desc": "Hurihia te taumata whakahangahanga.",
|
99
|
+
"components.menu-item-return.return": "Hoki ki te tahua tōmua.",
|
100
|
+
"components.menu-item-return.returnCurrentlyShowing": "Hoki ki te tahua tōmua. Kei te tiro koe i {menuTitle}.",
|
101
|
+
"components.meter-mixin.commaSeperatedAria": "{term1}, {term2}",
|
102
|
+
"components.meter-mixin.fraction": "{x}∕{y}",
|
103
|
+
"components.meter-mixin.fractionAria": "{x} mai i {y}",
|
104
|
+
"components.meter-mixin.progressIndicator": "Tūtohu Kaunuku",
|
105
|
+
"components.more-less.less": "iti iho",
|
106
|
+
"components.more-less.more": "ētahi atu",
|
107
|
+
"components.object-property-list.item-placeholder-text": "Tūemi Puriwāhi",
|
108
|
+
"components.overflow-group.moreActions": "Ētahi atu Hohenga",
|
109
|
+
"components.pager-load-more.action": "Utaina Anō",
|
110
|
+
"components.pager-load-more.action-with-page-size": "Utaina {count} Ētahi atu",
|
111
|
+
"components.pageable.info": "{count, plural, one {{countFormatted} Tūemi} other {{countFormatted} Ngā tūemi}}",
|
112
|
+
"components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} o {totalCountFormatted} Tūemi} other {{countFormatted} o {totalCountFormatted} Ngā tūemi}}",
|
113
|
+
"components.pager-load-more.status-loading": "Uta ana i ētahi atu tūemi",
|
114
|
+
"components.selection.action-max-hint": "{count, plural, one {Disabled when more than {countFormatted} item is selected} other {Disabled when more than {countFormatted} items are selected}}",
|
115
|
+
"components.selection.action-required-hint": "Select an item to perform this action",
|
116
|
+
"components.selection.select-all": "Tīpako Katoa",
|
117
|
+
"components.selection.select-all-items": "Tīpakohia Ngā Tūemi {count} Katoa",
|
118
|
+
"components.selection.selected": "{count} kua tīpakohia",
|
119
|
+
"components.selection.selected-plus": "{count}+ kua tīpakohia",
|
120
|
+
"components.selection-controls.label": "Ngā mahinga mō te tīpakonga",
|
121
|
+
"components.switch.visible": "Ka taea te kite",
|
122
|
+
"components.switch.visibleWithPeriod": "Ka taea te kite.",
|
123
|
+
"components.switch.hidden": "Hunaia",
|
124
|
+
"components.switch.conditions": "Me tutuki ngā here",
|
125
|
+
"components.table-col-sort-button.addSortOrder": "Tīpakohia hei tāpiri raupapa kōmaka",
|
126
|
+
"components.table-col-sort-button.changeSortOrder": "Tīpakohia hei huri i te raupapa kōmaka",
|
127
|
+
"components.table-col-sort-button.title": "{sourceType, select, dates {{direction, select, desc {Kua kōmakatia he mea hōu ki te tawhito} other {Kua kōmakatia te tawhito ki te mea hōu}}} numbers {{direction, select, desc {Kōmaka teitei ki te iti} other {Kua kōmaka iti iho ki te teitei}}} words {{direction, select, desc {I kōmakatia Z ki A} other {I kōmakatia te A ki Z}}} value {Kua kōmakatia {selectedMenuItemText}} other {{direction, select, desc {Kua kōmakatia te auheke} other {Kua kōmakatia te aupiki}}}}",
|
128
|
+
"components.table-controls.label": "Ngā mahinga mō te ripanga",
|
129
|
+
"components.tabs.next": "Panuku Whakamua",
|
130
|
+
"components.tabs.previous": "Panuku Whakamuri",
|
131
|
+
"components.tag-list.clear": "Pāwhiritia, pēhia te mokowāmuri, pēhia rānei te pātuhi muku hei tango i te tūemi {value}",
|
132
|
+
"components.tag-list.clear-all": "Mukua",
|
133
|
+
"components.tag-list.cleared-all": "I tangohia ngā tūemi rārangi tūtohu katoa",
|
134
|
+
"components.tag-list.cleared-item": "Kua tangohia te tūemi rārangi tūtohu {value}",
|
135
|
+
"components.tag-list.interactive-label": "Rārangi Tūtohu, {count} tūemi",
|
136
|
+
"components.tag-list.num-hidden": "+ {count} anō",
|
137
|
+
"components.tag-list.role-description": "Rārangi Tūtohu",
|
138
|
+
"components.tag-list.show-less": "Whakaaturia mai kia iti iho",
|
139
|
+
"components.tag-list.show-more-description": "Tīpakohia hei whakaatu i ngā tūemi rārangi tūtohu hunahuna",
|
140
|
+
"components.tag-list-item.role-description": "Tūtohu",
|
141
|
+
"components.tag-list-item.tooltip-arrow-keys": "Pātuhi Pere",
|
142
|
+
"components.tag-list-item.tooltip-arrow-keys-desc": "Nuku ki waenga i ngā tūtohu",
|
143
|
+
"components.tag-list-item.tooltip-delete-key": "Hokimuri/Muku",
|
144
|
+
"components.tag-list-item.tooltip-delete-key-desc": "Mukua te tūtohu arotahi",
|
145
|
+
"components.tag-list-item.tooltip-title": "Ngā Mana Papapātuhi",
|
146
|
+
"templates.primary-secondary.divider": "Kaiwehe paepae tuarua",
|
147
|
+
"templates.primary-secondary.secondary-panel": "Pae tuarua"
|
148
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.106.
|
3
|
+
"version": "3.106.2",
|
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",
|