@brightspace-ui/core 3.280.2 → 3.280.4

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.
@@ -80,7 +80,6 @@ class Form extends LocalizeCoreElement(LitElement) {
80
80
 
81
81
  connectedCallback() {
82
82
  super.connectedCallback();
83
- window.addEventListener('beforeunload', this.#onUnload);
84
83
  /** @ignore */
85
84
  this._isSubForm = !this.dispatchEvent(new CustomEvent('d2l-form-connect', { bubbles: true, composed: true, cancelable: true }));
86
85
  }
@@ -286,7 +285,10 @@ class Form extends LocalizeCoreElement(LitElement) {
286
285
  const ele = e.target;
287
286
 
288
287
  if ((isNativeFormElement(ele) || isCustomFormElement(ele)) && e.type !== 'focusout') {
289
- this._dirty = true;
288
+ if (!this._dirty) {
289
+ window.addEventListener('beforeunload', this.#onUnload);
290
+ this._dirty = true;
291
+ }
290
292
  /** Dispatched whenever any form element fires an `input` or `change` event. Can be used to track whether the form is dirty or not. */
291
293
  this.dispatchEvent(new CustomEvent('d2l-form-dirty'));
292
294
  }
@@ -312,6 +314,7 @@ class Form extends LocalizeCoreElement(LitElement) {
312
314
  }
313
315
 
314
316
  async _submitData(submitter) {
317
+ window.removeEventListener('beforeunload', this.#onUnload);
315
318
  this._dirty = false;
316
319
 
317
320
  let formData = {};
package/lang/pl.js CHANGED
@@ -17,7 +17,7 @@ export default {
17
17
  "components.dialog.critical": "Krytyczne!",
18
18
  "components.dropdown.close": "Zamknij",
19
19
  "components.filter.activeFilters": "Aktywne filtry:",
20
- "components.filter.additionalContentTooltip": "Użyj <b>klawiszy strzałek lewo/prawo</b>, aby przesunąć zaznaczenie wewnątrz tego elementu listy",
20
+ "components.filter.additionalContentTooltip": "Użyj <b>klawiszy strzałek w lewo/w prawo</b>, aby przesunąć fokus wewnątrz tego elementu listy.",
21
21
  "components.filter.clear": "Wyczyść",
22
22
  "components.filter.clearAll": "Wyczyść wszystko",
23
23
  "components.filter.clearAllAnnounce": "Czyszczenie wszystkich filtrów",
@@ -62,7 +62,7 @@ export default {
62
62
  many {Ostatnich {num} godzin}
63
63
  other {Ostatnich {num} godzin}
64
64
  }`,
65
- "components.filter-dimension-set-date-text-value.textMonths": "Ostatnie(-ch) {num} miesiące(-ęcy)",
65
+ "components.filter-dimension-set-date-text-value.textMonths": "Ostatnie {num} miesięcy",
66
66
  "components.filter-dimension-set-date-time-range-value.label": "{text} – rozwiń, aby wybrać daty",
67
67
  "components.filter-dimension-set-date-time-range-value.text": "Niestandardowy zakres dat",
68
68
  "components.filter-dimension-set-date-time-range-value.valueTextRange": "Od {startValue} do {endValue}",
@@ -114,7 +114,7 @@ export default {
114
114
  "components.input-date.openInstructions": "Użyj formatu daty {format}. Użyj strzałki w dół lub naciśnij klawisz Enter, aby uzyskać dostęp do mini-kalendarza.",
115
115
  "components.input-date.revert": "Wartość {label} została przywrócona do poprzedniej wartości.",
116
116
  "components.input-date.today": "Dzisiaj",
117
- "components.input-date.useDateFormat": "Użyj formatu daty {format}.",
117
+ "components.input-date.useDateFormat": "Użyj formatu daty {format} .",
118
118
  "components.input-date-range.endDate": "Data zakończenia",
119
119
  "components.input-date-range.errorBadInput": "{startLabel} musi poprzedzać {endLabel}",
120
120
  "components.input-date-range.interactive-label": "Wprowadzanie zakresu dat",
@@ -129,31 +129,31 @@ export default {
129
129
  "components.input-date-time-range.interactive-label": "Wprowadzanie zakresu daty i godziny",
130
130
  "components.input-date-time-range.startDate": "Data rozpoczęcia",
131
131
  "components.input-date-time-range-to.to": "do",
132
- "components.input-number.hintDecimalDuplicate": "Ta liczba zawiera już ułamek dziesiętny",
133
- "components.input-number.hintDecimalIncorrectComma": "Aby dodać części dziesiętne, użyj znaku przecinka „,”",
134
- "components.input-number.hintDecimalIncorrectPeriod": "Aby dodać części dziesiętne, użyj znaku kropki „.”",
135
- "components.input-number.hintInteger": "To pole akceptuje tylko liczby całkowite (bez części dziesiętnych)",
132
+ "components.input-number.hintDecimalDuplicate": "W tej liczbie znajduje się już separator dziesiętny",
133
+ "components.input-number.hintDecimalIncorrectComma": "Aby dodać liczbę dziesiętną, użyj znaku przecinka „,”",
134
+ "components.input-number.hintDecimalIncorrectPeriod": "Aby dodać separator dziesiętny, należy użyć znaku kropki „.”",
135
+ "components.input-number.hintInteger": "To pole akceptuje tylko wartości całkowite (bez miejsc dziesiętnych)",
136
136
  "components.input-search.clear": "Wyczyść wyszukiwanie",
137
137
  "components.input-search.defaultPlaceholder": "Wyszukaj...",
138
- "components.input-search.search": "Wyszukiwanie",
138
+ "components.input-search.search": "Wyszukaj",
139
139
  "components.input-time-range.endTime": "Czas zakończenia",
140
140
  "components.input-time-range.errorBadInput": "{startLabel} musi poprzedzać {endLabel}",
141
141
  "components.input-time-range.startTime": "Czas rozpoczęcia",
142
142
  "components.interactive.instructions": "Naciśnij Enter, aby wejść w interakcję, Escape, aby wyjść",
143
143
  "components.link.open-in-new-window": "Otwiera się w nowym oknie.",
144
- "components.list.keyboard": "Użyj <b>klawiszy strzałek</b>, aby przesunąć fokus wewnątrz tej listy, lub <b>klawiszy Page Up/Page Down</b>, aby przesunąć w górę lub w dół o 5",
144
+ "components.list.keyboard": "Użyj <b>klawiszy strzałek</b>, aby przenieść fokus wewnątrz tej listy, lub <b>klawiszy up/down</b>, aby przesunąć fokus wewnątrz tej listy, lub klawiszy up/down, aby przesunąć fokus wewnątrz tej listy, lub klawis",
145
145
  "components.list-controls.label": "Działania związane z listą",
146
146
  "components.list-item.addItem": "Dodaj element",
147
147
  "components.list-item-drag-handle.default": "Działanie zmiany kolejności elementu dla {name}",
148
148
  "components.list-item-drag-handle.keyboard": "Zmień kolejność elementu, obecna pozycja: {currentPosition} z {size}. Aby przenieść ten element, naciśnij strzałkę w górę lub w dół.",
149
- "components.list-item-drag-handle.side-to-side.keyboard": "Reorder item, current position {currentPosition} out of {size}. To move this item, press left or right arrows.",
149
+ "components.list-item-drag-handle.side-to-side.keyboard": "Zmień kolejność elementu, bieżąca pozycja {currentPosition} na {size}. Aby przenieść ten element, naciśnij strzałki w lewo lub w prawo.",
150
150
  "components.list-item-drag-handle-tooltip.enter-desc": "Przełącz tryb zmiany kolejności za pomocą klawiatury.",
151
- "components.list-item-drag-handle-tooltip.enter-key": "Wpisz",
151
+ "components.list-item-drag-handle-tooltip.enter-key": "Enter",
152
152
  "components.list-item-drag-handle-tooltip.left-right-desc": "Zmień poziom gniazdowania.",
153
153
  "components.list-item-drag-handle-tooltip.left-right-key": "Lewo/Prawo",
154
- "components.list-item-drag-handle-tooltip.side-to-side.left-right-desc": "Move item left or right in the list.",
155
- "components.list-item-drag-handle-tooltip.side-to-side.up-down-desc": "Move item left or right in the list.",
156
- "components.list-item-drag-handle-tooltip.title": "Elementy sterujące klawiatury do zmiany kolejności:",
154
+ "components.list-item-drag-handle-tooltip.side-to-side.left-right-desc": "Przenieś element na liście w lewo lub w prawo.",
155
+ "components.list-item-drag-handle-tooltip.side-to-side.up-down-desc": "Przenieś element na liście w lewo lub w prawo.",
156
+ "components.list-item-drag-handle-tooltip.title": "Sterowanie klawiaturowe służące do zmiany kolejności:",
157
157
  "components.list-item-drag-handle-tooltip.up-down-desc": "Przesuń element w górę lub w dół na liście.",
158
158
  "components.list-item-drag-handle-tooltip.up-down-key": "W górę/w dół",
159
159
  "components.menu-item-return.return": "Powrót do poprzedniego menu.",
@@ -166,12 +166,12 @@ export default {
166
166
  "components.more-less.more": "więcej",
167
167
  "components.object-property-list.item-placeholder-text": "Element zastępczy",
168
168
  "components.overflow-group.moreActions": "Więcej działań",
169
- "components.page.footer-region-label": "Footer",
169
+ "components.page.footer-region-label": "Stopka",
170
170
  "components.page.header-nav-label": "Główna",
171
- "components.page.side-nav-divider-label": "Side Navigation Divider",
171
+ "components.page.side-nav-divider-label": "Separator nawigacji bocznej",
172
172
  "components.page.side-nav-label": "Strona boczna",
173
- "components.page.supporting-divider-label": "Supporting Panel Divider",
174
- "components.page.supporting-panel-label": "Supporting",
173
+ "components.page.supporting-divider-label": "Separator panelu pomocniczego",
174
+ "components.page.supporting-panel-label": "Wsparcie",
175
175
  "components.pageable.info":
176
176
  `{count, plural,
177
177
  one {{countFormatted} element}
@@ -208,17 +208,17 @@ export default {
208
208
  other {Wybierz wszystkich {countFormatted} elementów}
209
209
  }`,
210
210
  "components.selection.selected": "Liczba wybranych opcji: {count}",
211
- "components.selection.selected-plus": "Wybrano {count}+ opcji",
211
+ "components.selection.selected-plus": "Wybrano opcję {count}+",
212
212
  "components.selection-controls.label": "Działania związane z wyborem",
213
- "components.skip-nav.skipToMainContent": "przejdź do głównej zawartości",
213
+ "components.skip-nav.skipToMainContent": "przejdź do głównej treści",
214
214
  "components.sort.label": "Sortuj",
215
215
  "components.sort.text": "Sortowanie: {selectedItemText}",
216
216
  "components.switch.conditions": "Warunki muszą być spełnione",
217
217
  "components.switch.hidden": "Ukryte",
218
- "components.switch.visible": "Widoczny",
218
+ "components.switch.visible": "Widoczne",
219
219
  "components.switch.visibleWithPeriod": "Widoczna.",
220
- "components.table-col-sort-button.addSortOrder": "Wybierz, aby dodać kolejność sortowania",
221
- "components.table-col-sort-button.changeSortOrder": "Wybierz, aby zmienić kolejność sortowania",
220
+ "components.table-col-sort-button.addSortOrder": "Wybierz aby dodać kolejność sortowania",
221
+ "components.table-col-sort-button.changeSortOrder": "Wybierz aby zmienić kolejność sortowania",
222
222
  "components.table-col-sort-button.title":
223
223
  `{sourceType, select,
224
224
  dates {{direction, select,
@@ -246,8 +246,8 @@ export default {
246
246
  "components.tag-list.clear-all": "Wyczyść wszystko",
247
247
  "components.tag-list.cleared-all": "Usunięto wszystkie elementy listy tagów",
248
248
  "components.tag-list.cleared-item": "Usunięto pozycję listy tagów {value}",
249
- "components.tag-list.interactive-label": "Lista tagów, elementy {count}",
250
- "components.tag-list.num-hidden": "+{count} więcej",
249
+ "components.tag-list.interactive-label": "Lista tagów, liczba elementów: {count}",
250
+ "components.tag-list.num-hidden": "jeszcze {count}",
251
251
  "components.tag-list.role-description":
252
252
  `{count, plural,
253
253
  =0 {Lista tagów, która zawiera 0 elementów}
@@ -257,12 +257,12 @@ export default {
257
257
  other {Lista tagów, która zawiera {count} elementów}
258
258
  }`,
259
259
  "components.tag-list.show-less": "Pokaż mniej",
260
- "components.tag-list.show-more-description": "Zaznacz, aby pokazać ukryte elementy listy tagów",
260
+ "components.tag-list.show-more-description": "Wybierz aby pokazać ukryte elementy listy tagów",
261
261
  "components.tag-list-item.role-description": "Tag",
262
262
  "components.tag-list-item.tooltip-arrow-keys": "Klawisze strzałek",
263
263
  "components.tag-list-item.tooltip-arrow-keys-desc": "Poruszanie się między tagami",
264
- "components.tag-list-item.tooltip-delete-key": "Backspace/Delete",
265
- "components.tag-list-item.tooltip-delete-key-desc": "Usuń aktywny tag",
264
+ "components.tag-list-item.tooltip-delete-key": "Backspace/Usuń",
265
+ "components.tag-list-item.tooltip-delete-key-desc": "Usuń wyróżnioną etykietę",
266
266
  "components.tag-list-item.tooltip-title": "Sterowanie klawiaturą",
267
267
  "components.view-switcher.role-description":
268
268
  `{count, plural,
package/lang/ru.js CHANGED
@@ -5,7 +5,7 @@ export default {
5
5
  "components.backdrop-stale-overlay.message": "This data is out of date.",
6
6
  "components.breadcrumbs.breadcrumb": "Хлебная крошка",
7
7
  "components.button-add.addItem": "Добавить элемент",
8
- "components.button-copy.copied": "Скопировано!",
8
+ "components.button-copy.copied": "Копировано!",
9
9
  "components.button-copy.error": "Неудачное копирование. Попробуйте еще раз или попробуйте скопировать вручную.",
10
10
  "components.button-split.otherOptions": "Другие варианты",
11
11
  "components.calendar.hasEvents": "Имеет события.",
@@ -13,7 +13,7 @@ export default {
13
13
  "components.calendar.selected": "Выбран.",
14
14
  "components.calendar.show": "Показать {month}",
15
15
  "components.count-badge.plus": "{number}+",
16
- "components.dialog.close": "Закрыть этот диалог",
16
+ "components.dialog.close": "Закрыть это окно",
17
17
  "components.dialog.critical": "Критично!",
18
18
  "components.dropdown.close": "Закрыть",
19
19
  "components.filter.activeFilters": "Активные фильтры:",
@@ -92,7 +92,7 @@ export default {
92
92
  true {Число должно быть больше {min}.}
93
93
  other {Число должно быть больше или равно {min}.}
94
94
  }`,
95
- "components.form-element.input.text.tooShort": "{label} должен содержать не менее {minlength} символов",
95
+ "components.form-element.input.text.tooShort": "{label} должно содержать не менее {minlength} символов",
96
96
  "components.form-element.input.url.typeMismatch": "URL неверен",
97
97
  "components.form-element.valueMissing": "Обязателен параметр {label}",
98
98
  "components.form-error-summary.errorSummary":
@@ -111,7 +111,7 @@ export default {
111
111
  "components.input-date.errorMinDateOnly": "Дата должна быть не ранее {minDate}",
112
112
  "components.input-date.errorOutsideRange": "Дата должна находиться между {minDate} и {maxDate}",
113
113
  "components.input-date.now": "Сейчас",
114
- "components.input-date.openInstructions": "Используйте формат даты {format}. Нажмите клавишу «стрелка вниз» или Enter для доступа к мини-календарю.",
114
+ "components.input-date.openInstructions": "Используйте формат даты {format}. Нажмите стрелку вниз или клавишу Enter, чтобы открыть мини-календарь.",
115
115
  "components.input-date.revert": "Параметр {label} восстановлен к предыдущему значению.",
116
116
  "components.input-date.today": "Сегодня",
117
117
  "components.input-date.useDateFormat": "Используйте формат даты {format}",
@@ -130,8 +130,8 @@ export default {
130
130
  "components.input-date-time-range.startDate": "Дата начала",
131
131
  "components.input-date-time-range-to.to": "до",
132
132
  "components.input-number.hintDecimalDuplicate": "В этом числе уже есть десятичный разделитель",
133
- "components.input-number.hintDecimalIncorrectComma": "Для добавления десятичного разделителя используйте символ запятой «,»",
134
- "components.input-number.hintDecimalIncorrectPeriod": "Для добавления десятичного разделителя используйте символ точки «.»",
133
+ "components.input-number.hintDecimalIncorrectComma": "Чтобы добавить десятичный разделитель, используйте символ запятой «,»",
134
+ "components.input-number.hintDecimalIncorrectPeriod": "Чтобы добавить десятичный разделитель, используйте символ точки «.»",
135
135
  "components.input-number.hintInteger": "Это поле принимает только целые значения (без десятичных знаков)",
136
136
  "components.input-search.clear": "Очистить поиск",
137
137
  "components.input-search.defaultPlaceholder": "Поиск...",
@@ -146,13 +146,13 @@ export default {
146
146
  "components.list-item.addItem": "Добавить элемент",
147
147
  "components.list-item-drag-handle.default": "Действие по изменению порядка элементов для {name}",
148
148
  "components.list-item-drag-handle.keyboard": "Изменить порядок элемента, текущее положение {currentPosition} из {size} . Чтобы переместить этот элемент, нажмите стрелки вверх или вниз.",
149
- "components.list-item-drag-handle.side-to-side.keyboard": "Reorder item, current position {currentPosition} out of {size}. To move this item, press left or right arrows.",
150
- "components.list-item-drag-handle-tooltip.enter-desc": "Переключить режим изменения порядка с помощью клавиатуры.",
149
+ "components.list-item-drag-handle.side-to-side.keyboard": "Изменение порядка элемента, текущее положение {currentPosition} из {size}. Для перемещения этого элемента нажмите стрелки влево или вправо.",
150
+ "components.list-item-drag-handle-tooltip.enter-desc": "Переключить режим изменения порядка клавиатуры.",
151
151
  "components.list-item-drag-handle-tooltip.enter-key": "Войти",
152
152
  "components.list-item-drag-handle-tooltip.left-right-desc": "Измените уровень вложенности.",
153
- "components.list-item-drag-handle-tooltip.left-right-key": "Слева/Справа",
154
- "components.list-item-drag-handle-tooltip.side-to-side.left-right-desc": "Move item left or right in the list.",
155
- "components.list-item-drag-handle-tooltip.side-to-side.up-down-desc": "Move item left or right in the list.",
153
+ "components.list-item-drag-handle-tooltip.left-right-key": "Влево/Вправо",
154
+ "components.list-item-drag-handle-tooltip.side-to-side.left-right-desc": "Перемещение элемента влево или вправо в списке.",
155
+ "components.list-item-drag-handle-tooltip.side-to-side.up-down-desc": "Перемещение элемента влево или вправо в списке.",
156
156
  "components.list-item-drag-handle-tooltip.title": "Элементы управления клавиатуры для изменения порядка:",
157
157
  "components.list-item-drag-handle-tooltip.up-down-desc": "Перемещение элемента вверх или вниз в списке.",
158
158
  "components.list-item-drag-handle-tooltip.up-down-key": "Вверх/вниз",
@@ -163,15 +163,15 @@ export default {
163
163
  "components.meter-mixin.fractionAria": "{x} из {y}",
164
164
  "components.meter-mixin.progressIndicator": "Показатель прогресса",
165
165
  "components.more-less.less": "меньше",
166
- "components.more-less.more": "подробнее",
166
+ "components.more-less.more": "еще",
167
167
  "components.object-property-list.item-placeholder-text": "Заместительная позиция",
168
168
  "components.overflow-group.moreActions": "Другие действия",
169
- "components.page.footer-region-label": "Footer",
169
+ "components.page.footer-region-label": "Нижний колонтитул",
170
170
  "components.page.header-nav-label": "Главная",
171
- "components.page.side-nav-divider-label": "Side Navigation Divider",
171
+ "components.page.side-nav-divider-label": "Боковой навигационный разделитель",
172
172
  "components.page.side-nav-label": "Сторона",
173
- "components.page.supporting-divider-label": "Supporting Panel Divider",
174
- "components.page.supporting-panel-label": "Supporting",
173
+ "components.page.supporting-divider-label": "Опорный разделитель панелей",
174
+ "components.page.supporting-panel-label": "Поддерживающий",
175
175
  "components.pageable.info":
176
176
  `{count, plural,
177
177
  one {{countFormatted} элемент}
@@ -186,7 +186,7 @@ export default {
186
186
  many {{countFormatted} из {totalCountFormatted} элементов}
187
187
  other {{countFormatted} из {totalCountFormatted} элемента}
188
188
  }`,
189
- "components.pager-load-more.action": "Загрузка еще",
189
+ "components.pager-load-more.action": "Загрузить еще",
190
190
  "components.pager-load-more.action-with-page-size": "Загрузить еще {count}",
191
191
  "components.pager-load-more.status-loading": "Загрузка дополнительных элементов",
192
192
  "components.scroll-wrapper.scroll-left": "Прокрутите влево",
@@ -209,14 +209,14 @@ export default {
209
209
  other {Выбрать все элементы ({countFormatted})}
210
210
  }`,
211
211
  "components.selection.selected": "Выбран параметр {count}",
212
- "components.selection.selected-plus": "Выбран параметр {count}+",
212
+ "components.selection.selected-plus": "Выбран параметр {count}+.",
213
213
  "components.selection-controls.label": "Действия для выбранных элементов",
214
214
  "components.skip-nav.skipToMainContent": "перейти к основному контенту",
215
215
  "components.sort.label": "Сортировать",
216
216
  "components.sort.text": "сортировать: {selectedItemText}",
217
217
  "components.switch.conditions": "Необходимо соблюдать условия",
218
218
  "components.switch.hidden": "Скрыто",
219
- "components.switch.visible": "Видимый",
219
+ "components.switch.visible": "Видимо",
220
220
  "components.switch.visibleWithPeriod": "Видимый",
221
221
  "components.table-col-sort-button.addSortOrder": "Выберите, чтобы добавить порядок сортировки",
222
222
  "components.table-col-sort-button.changeSortOrder": "Выберите, чтобы изменить порядок сортировки",
@@ -247,7 +247,7 @@ export default {
247
247
  "components.tag-list.clear-all": "Очистить все",
248
248
  "components.tag-list.cleared-all": "Удалены все элементы списка тегов",
249
249
  "components.tag-list.cleared-item": "Удален элемент списка тегов {value}",
250
- "components.tag-list.interactive-label": "Список тегов, элементы {count}",
250
+ "components.tag-list.interactive-label": "Список тегов, {count} элементов",
251
251
  "components.tag-list.num-hidden": "+ {count} еще",
252
252
  "components.tag-list.role-description":
253
253
  `{count, plural,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.280.2",
3
+ "version": "3.280.4",
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",