@brightspace-ui/core 3.142.0 → 3.142.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.
@@ -45,6 +45,8 @@ class ButtonAdd extends RtlMixin(PropertyRequiredMixin(FocusMixin(LocalizeCoreEl
45
45
  --d2l-button-add-animation-duration: 200ms;
46
46
  --d2l-button-add-hover-focus-color: var(--d2l-color-celestine-minus-1);
47
47
  --d2l-button-add-line-color: var(--d2l-color-mica);
48
+ --d2l-button-add-line-height: 1px;
49
+ --d2l-button-add-hover-focus-line-height: 2px;
48
50
  }
49
51
  :host([mode="icon-when-interacted"]) {
50
52
  --d2l-button-add-animation-delay: 50ms;
@@ -74,7 +76,7 @@ class ButtonAdd extends RtlMixin(PropertyRequiredMixin(FocusMixin(LocalizeCoreEl
74
76
 
75
77
  .line {
76
78
  background: var(--d2l-button-add-line-color);
77
- height: 1px;
79
+ height: var(--d2l-button-add-line-height);
78
80
  margin: 5px 0;
79
81
  width: 100%;
80
82
  }
@@ -82,7 +84,7 @@ class ButtonAdd extends RtlMixin(PropertyRequiredMixin(FocusMixin(LocalizeCoreEl
82
84
  button:hover .line,
83
85
  button:focus .line {
84
86
  background: var(--d2l-button-add-hover-focus-color);
85
- height: 2px;
87
+ height: var(--d2l-button-add-hover-focus-line-height);
86
88
  }
87
89
  button:hover d2l-button-add-icon-text,
88
90
  button:focus d2l-button-add-icon-text {
@@ -139,21 +141,21 @@ class ButtonAdd extends RtlMixin(PropertyRequiredMixin(FocusMixin(LocalizeCoreEl
139
141
 
140
142
  @keyframes line-start-animation {
141
143
  0% {
142
- background: linear-gradient(to right, var(--d2l-color-mica) 0%, var(--d2l-color-mica) 11%, var(--d2l-button-add-hover-focus-color) 11%) left center / 113%;
144
+ background: linear-gradient(to right, var(--d2l-button-add-line-color) 0%, var(--d2l-button-add-line-color) 11%, var(--d2l-button-add-hover-focus-color) 11%) left center / 113%;
143
145
  opacity: 10%;
144
146
  }
145
147
  100% {
146
- background: linear-gradient(to right, var(--d2l-color-mica) 0%, var(--d2l-color-mica) 11%, var(--d2l-button-add-hover-focus-color) 11%) left center / 113%; /* safari */
148
+ background: linear-gradient(to right, var(--d2l-button-add-line-color) 0%, var(--d2l-button-add-line-color) 11%, var(--d2l-button-add-hover-focus-color) 11%) left center / 113%; /* safari */
147
149
  background-position: right;
148
150
  }
149
151
  }
150
152
  @keyframes line-end-animation {
151
153
  0% {
152
- background: linear-gradient(to left, var(--d2l-color-mica) 0%, var(--d2l-color-mica) 11%, var(--d2l-button-add-hover-focus-color) 11%) right center / 113%;
154
+ background: linear-gradient(to left, var(--d2l-button-add-line-color) 0%, var(--d2l-button-add-line-color) 11%, var(--d2l-button-add-hover-focus-color) 11%) right center / 113%;
153
155
  opacity: 10%;
154
156
  }
155
157
  100% {
156
- background: linear-gradient(to left, var(--d2l-color-mica) 0%, var(--d2l-color-mica) 11%, var(--d2l-button-add-hover-focus-color) 11%) right center / 113%; /* safari */
158
+ background: linear-gradient(to left, var(--d2l-button-add-line-color) 0%, var(--d2l-button-add-line-color) 11%, var(--d2l-button-add-hover-focus-color) 11%) right center / 113%; /* safari */
157
159
  background-position: left;
158
160
  }
159
161
  }
@@ -84,6 +84,10 @@ export const ListItemMixin = superclass => class extends composeMixins(
84
84
  * @type {boolean}
85
85
  */
86
86
  dragTargetHandleOnly: { type: Boolean, attribute: 'drag-target-handle-only' },
87
+ /**
88
+ * @ignore
89
+ */
90
+ last: { type: Boolean, reflect: true },
87
91
  /**
88
92
  * Whether to disable rendering the entire item as the primary action. Required if slotted content is interactive.
89
93
  * @type {boolean}
@@ -314,6 +318,9 @@ export const ListItemMixin = superclass => class extends composeMixins(
314
318
  .d2l-list-item-content-extend-separators [slot="outside-control-container"] {
315
319
  margin: 0;
316
320
  }
321
+ :host([_list-item-new-styles][draggable]) [slot="outside-control-container"] {
322
+ margin-inline-end: -12px;
323
+ }
317
324
 
318
325
  :host([_has-color-slot]) .d2l-list-item-content-extend-separators [slot="outside-control-container"],
319
326
  :host([dir="rtl"][_has-color-slot]) .d2l-list-item-content-extend-separators [slot="outside-control-container"] {
@@ -18,6 +18,8 @@ export const ListItemNavMixin = superclass => class extends ListItemLinkMixin(su
18
18
  preventNavigation: { type: Boolean, attribute: 'prevent-navigation' },
19
19
  _childCurrent: { type: Boolean, reflect: true, attribute: '_child-current' },
20
20
  _focusingElem: { type: Boolean, reflect: true, attribute: '_focusing-elem' },
21
+ _hasCurrentParent: { type: Boolean, reflect: true, attribute: '_has-current-parent' },
22
+ _nextSiblingCurrent: { type: Boolean, reflect: true, attribute: '_next-sibling-current' },
21
23
  };
22
24
  }
23
25
 
@@ -44,6 +46,26 @@ export const ListItemNavMixin = superclass => class extends ListItemLinkMixin(su
44
46
  --d2l-list-item-content-text-color: var(--d2l-color-ferrite);
45
47
  --d2l-list-item-content-text-decoration: none;
46
48
  }
49
+ :host([current]) d2l-button-add,
50
+ :host([_has-current-parent]) [slot="add-top"] d2l-button-add,
51
+ :host([_next-sibling-current]) [slot="add"] d2l-button-add {
52
+ --d2l-button-add-hover-focus-line-height: 3px;
53
+ --d2l-button-add-line-color: var(--d2l-color-celestine);
54
+ --d2l-button-add-line-height: 3px;
55
+ }
56
+ :host([current]) [slot="add"],
57
+ :host([_has-current-parent]) [slot="add-top"] {
58
+ margin-bottom: -14.5px;
59
+ margin-top: -13.5px;
60
+ }
61
+ :host([current]) [slot="add-top"],
62
+ :host([_next-sibling-current]) [slot="add"] {
63
+ margin-bottom: -13.5px;
64
+ margin-top: -10.5px;
65
+ }
66
+ :host([current]) .d2l-list-item-color-outer {
67
+ padding-block: 3px;
68
+ }
47
69
 
48
70
  /* clean up with GAUD-7495-list-item-new-styles flag */
49
71
  @supports selector(:has(a, b)) {
@@ -70,6 +92,8 @@ export const ListItemNavMixin = superclass => class extends ListItemLinkMixin(su
70
92
  this.current = false;
71
93
  this._childCurrent = false;
72
94
  this._focusingElem = false;
95
+ this._hasCurrentParent = false;
96
+ this._nextSiblingCurrent = false;
73
97
  }
74
98
 
75
99
  connectedCallback() {
@@ -120,6 +144,24 @@ export const ListItemNavMixin = superclass => class extends ListItemLinkMixin(su
120
144
  dispatchSetChildCurrentEvent(val) {
121
145
  /** @ignore */
122
146
  this.dispatchEvent(new CustomEvent('d2l-list-item-nav-set-child-current', { bubbles: true, composed: true, detail: { value: val } }));
147
+
148
+ if (!val) return;
149
+ requestAnimationFrame(() => {
150
+ if (this._hasNestedListAddButton) {
151
+ const firstChild = this.querySelector('[first]');
152
+ if (firstChild) firstChild._hasCurrentParent = true;
153
+ }
154
+
155
+ const prevSibling = this._getPreviousListItemSibling();
156
+ if (prevSibling) {
157
+ if (prevSibling._showAddButton) prevSibling._nextSiblingCurrent = true;
158
+
159
+ if (prevSibling._hasNestedListAddButton) {
160
+ const lastChild = prevSibling.querySelector('[last]');
161
+ if (lastChild) lastChild._nextSiblingCurrent = true;
162
+ }
163
+ }
164
+ });
123
165
  }
124
166
 
125
167
  _handleLinkClick(e) {
@@ -416,6 +416,15 @@ class List extends PageableMixin(SelectionMixin(LitElement)) {
416
416
  target.dispatchSetChildCurrentEvent(true);
417
417
  }, { once: true });
418
418
  prevCurrent.current = false;
419
+ const firstChild = this.querySelector('[_has-current-parent]');
420
+ if (firstChild) firstChild._hasCurrentParent = false;
421
+
422
+ const prevSiblings = this.querySelectorAll('[_next-sibling-current]');
423
+ if (prevSiblings.length > 0) {
424
+ prevSiblings.forEach(sibling => {
425
+ sibling._nextSiblingCurrent = false;
426
+ });
427
+ }
419
428
  } else {
420
429
  target.dispatchSetChildCurrentEvent(true);
421
430
  }
@@ -437,9 +446,21 @@ class List extends PageableMixin(SelectionMixin(LitElement)) {
437
446
 
438
447
  _handleSlotChange() {
439
448
  this._updateItemShowingCount();
440
- this.getItems().forEach((item, i) => {
441
- if (i === 0) item.first = true;
442
- else item.first = false;
449
+ const items = this.getItems();
450
+ items.forEach((item, i) => {
451
+ if (items.length === 1) {
452
+ item.first = true;
453
+ item.last = true;
454
+ } else if (i === 0) {
455
+ item.first = true;
456
+ item.last = false;
457
+ } else if (i === items.length - 1) {
458
+ item.first = false;
459
+ item.last = true;
460
+ } else {
461
+ item.first = false;
462
+ item.last = false;
463
+ }
443
464
  });
444
465
 
445
466
  /** @ignore */
package/lang/ar.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export default {
2
+ "__test__": "This will be removed in a follow-up PR (before translation)",
2
3
  "components.alert.close": "إغلاق التنبيه",
3
4
  "components.breadcrumbs.breadcrumb": "شريط التنقل",
4
5
  "components.button-add.addItem": "إضافة عنصر",
@@ -22,14 +23,33 @@ export default {
22
23
  "components.filter.clearAnnounce": "جارٍ مسح عوامل التصفية لـ: {filterName}",
23
24
  "components.filter.clearDescription": "مسح عوامل التصفية لـ: {filterName}",
24
25
  "components.filter.loading": "يتم تحميل عوامل التصفية",
25
- "components.filter.filterCountDescription": "{number, plural, =0 {لم يتم تطبيق عوامل تصفية.} one {تم تطبيق {number} عامل تصفية} other {تم تطبيق {number} من عوامل التصفية.}}",
26
+ "components.filter.filterCountDescription":
27
+ `{number, plural,
28
+ =0 {لم يتم تطبيق عوامل تصفية.}
29
+ one {تم تطبيق {number} عامل تصفية}
30
+ other {تم تطبيق {number} من عوامل التصفية.}
31
+ }`,
26
32
  "components.filter.filters": "عوامل التصفية",
27
33
  "components.filter.noFilters": "ما من عوامل تصفية متوفرة",
28
- "components.filter.searchResults": "{number, plural, =0 {ما من نتائج بحث} one {{number} نتيجة بحث} other {{number} من نتائج البحث}}",
34
+ "components.filter.searchResults":
35
+ `{number, plural,
36
+ =0 {ما من نتائج بحث}
37
+ one {{number} نتيجة بحث}
38
+ other {{number} من نتائج البحث}
39
+ }`,
29
40
  "components.filter.selectedFirstListLabel": "{headerText}. تظهر عوامل التصفية المحددة أولاً.",
30
41
  "components.filter.singleDimensionDescription": "التصفية حسب: {filterName}",
31
- "components.filter-dimension-set-date-text-value.textHours": "{num, plural, =1 {آخر ساعة} other {آخر {num} من الساعات}}",
32
- "components.filter-dimension-set-date-text-value.textDays": "{num, plural, =0 {يوم} one {آخر {num} يوم} other {آخر {num} من الأيام}}",
42
+ "components.filter-dimension-set-date-text-value.textHours":
43
+ `{num, plural,
44
+ =1 {آخر ساعة}
45
+ other {آخر {num} من الساعات}
46
+ }`,
47
+ "components.filter-dimension-set-date-text-value.textDays":
48
+ `{num, plural,
49
+ =0 {يوم}
50
+ one {آخر {num} يوم}
51
+ other {آخر {num} من الأيام}
52
+ }`,
33
53
  "components.filter-dimension-set-date-text-value.textMonths": "آخر {num} من الأشهر",
34
54
  "components.filter-dimension-set-date-time-range-value.label": "{text}، التوسيع لاختيار التواريخ",
35
55
  "components.filter-dimension-set-date-time-range-value.valueTextRange": "{startValue} إلى {endValue}",
@@ -39,13 +59,35 @@ export default {
39
59
  "components.form-element.defaultError": "{label} غير صالحة",
40
60
  "components.form-element.defaultFieldLabel": "الحقل",
41
61
  "components.form-element.input.email.typeMismatch": "البريد الإلكتروني غير صالح",
42
- "components.form-element.input.number.rangeError": "{minExclusive, select, true {{maxExclusive, select, true {يجب أن يكون الرقم أكبر من {min} وأقل من {max}.} other {يجب أن يكون الرقم أكبر من {min} وأقل من أو مساويًا لـ {max}.}}} other {{maxExclusive, select, true {يجب أن يكون الرقم أكبر من أو مساويًا لـ {min} وأقل من {max}.} other {يجب أن يكون الرقم أكبر من أو مساويًا لـ {min} وأقل من أو مساويًا لـ {max}.}}}}",
43
- "components.form-element.input.number.rangeOverflow": "{maxExclusive, select, true {يجب أن يكون الرقم أقل من {max}.} other {يجب أن يكون الرقم أقل من أو مساويًا لـ {max}.}}",
44
- "components.form-element.input.number.rangeUnderflow": "{minExclusive, select, true {يجب أن يكون الرقم أكبر من {min}.} other {يجب أن يكون الرقم أكبر من أو مساويًا لـ {min}.}}",
62
+ "components.form-element.input.number.rangeError":
63
+ `{minExclusive, select,
64
+ true {{maxExclusive, select,
65
+ true {يجب أن يكون الرقم أكبر من {min} وأقل من {max}.}
66
+ other {يجب أن يكون الرقم أكبر من {min} وأقل من أو مساويًا لـ {max}.}
67
+ }}
68
+ other {{maxExclusive, select,
69
+ true {يجب أن يكون الرقم أكبر من أو مساويًا لـ {min} وأقل من {max}.}
70
+ other {يجب أن يكون الرقم أكبر من أو مساويًا لـ {min} وأقل من أو مساويًا لـ {max}.}
71
+ }}
72
+ }`,
73
+ "components.form-element.input.number.rangeOverflow":
74
+ `{maxExclusive, select,
75
+ true {يجب أن يكون الرقم أقل من {max}.}
76
+ other {يجب أن يكون الرقم أقل من أو مساويًا لـ {max}.}
77
+ }`,
78
+ "components.form-element.input.number.rangeUnderflow":
79
+ `{minExclusive, select,
80
+ true {يجب أن يكون الرقم أكبر من {min}.}
81
+ other {يجب أن يكون الرقم أكبر من أو مساويًا لـ {min}.}
82
+ }`,
45
83
  "components.form-element.input.text.tooShort": "يجب أن تتألف التسمية {label} من {minlength} من الأحرف على الأقل",
46
84
  "components.form-element.input.url.typeMismatch": "عنوان URL غير صالح",
47
85
  "components.form-element.valueMissing": "{label} مطلوبة",
48
- "components.form-error-summary.errorSummary": "{count, plural, one {تم العثور على {count} خطأ في المعلومات التي أرسلتها} other {تم العثور على {count} من الأخطاء في المعلومات التي أرسلتها}}",
86
+ "components.form-error-summary.errorSummary":
87
+ `{count, plural,
88
+ one {تم العثور على {count} خطأ في المعلومات التي أرسلتها}
89
+ other {تم العثور على {count} من الأخطاء في المعلومات التي أرسلتها}
90
+ }`,
49
91
  "components.form-error-summary.text": "تبديل تفاصيل الخطأ",
50
92
  "components.input-color.backgroundColor": "لون الخلفية",
51
93
  "components.input-color.foregroundColor": "لون المقدمة",
@@ -109,10 +151,22 @@ export default {
109
151
  "components.overflow-group.moreActions": "مزيد من الإجراءات",
110
152
  "components.pager-load-more.action": "تحميل المزيد",
111
153
  "components.pager-load-more.action-with-page-size": "تحميل {count} إضافي",
112
- "components.pageable.info": "{count, plural, one {{countFormatted} مادة واحد} other {{countFormatted} من المواد}}",
113
- "components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} من أصل {totalCountFormatted} مادة واحدة} other {{countFormatted} من أصل {totalCountFormatted} من المواد}}",
154
+ "components.pageable.info":
155
+ `{count, plural,
156
+ one {{countFormatted} مادة واحد}
157
+ other {{countFormatted} من المواد}
158
+ }`,
159
+ "components.pageable.info-with-total":
160
+ `{totalCount, plural,
161
+ one {{countFormatted} من أصل {totalCountFormatted} مادة واحدة}
162
+ other {{countFormatted} من أصل {totalCountFormatted} من المواد}
163
+ }`,
114
164
  "components.pager-load-more.status-loading": "تحميل المزيد من المواد",
115
- "components.selection.action-max-hint": "{count, plural, one {يتم التعطيل عند تحديد أكثر من {countFormatted} عنصر} other {يتم التعطيل عند تحديد أكثر من {countFormatted} من العناصر}}",
165
+ "components.selection.action-max-hint":
166
+ `{count, plural,
167
+ one {يتم التعطيل عند تحديد أكثر من {countFormatted} عنصر}
168
+ other {يتم التعطيل عند تحديد أكثر من {countFormatted} من العناصر}
169
+ }`,
116
170
  "components.selection.action-required-hint": "حدد عنصرًا لتنفيذ هذا الإجراء",
117
171
  "components.selection.select-all": "تحديد الكل",
118
172
  "components.selection.select-all-items": "تحديد كل المواد الـ {count}.",
@@ -125,7 +179,26 @@ export default {
125
179
  "components.switch.conditions": "يجب استيفاء الشروط",
126
180
  "components.table-col-sort-button.addSortOrder": "التحديد لإضافة ترتيب الفرز",
127
181
  "components.table-col-sort-button.changeSortOrder": "التحديد لتغيير ترتيب الفرز",
128
- "components.table-col-sort-button.title": "{sourceType, select, dates {{direction, select, desc {الفرز من الجديد إلى القديم} other {الفرز من القديم إلى الجديد}}} numbers {{direction, select, desc {الفرز من الأعلى إلى الأدنى} other {الفرز من الأدنى إلى الأعلى}}} words {{direction, select, desc {الفرز من ي إلى أ} other {الفرز من أ إلى ي}}} value {الفرز {selectedMenuItemText}} other {{direction, select, desc {الفرز تنازليًا} other {الفرز تصاعديًا}}}}",
182
+ "components.table-col-sort-button.title":
183
+ `{sourceType, select,
184
+ dates {{direction, select,
185
+ desc {الفرز من الجديد إلى القديم}
186
+ other {الفرز من القديم إلى الجديد}
187
+ }}
188
+ numbers {{direction, select,
189
+ desc {الفرز من الأعلى إلى الأدنى}
190
+ other {الفرز من الأدنى إلى الأعلى}
191
+ }}
192
+ words {{direction, select,
193
+ desc {الفرز من ي إلى أ}
194
+ other {الفرز من أ إلى ي}
195
+ }}
196
+ value {الفرز {selectedMenuItemText}}
197
+ other {{direction, select,
198
+ desc {الفرز تنازليًا}
199
+ other {الفرز تصاعديًا}
200
+ }}
201
+ }`,
129
202
  "components.table-controls.label": "إجراءات للجدول",
130
203
  "components.tabs.next": "التمرير إلى الأمام",
131
204
  "components.tabs.previous": "التمرير إلى الخلف",
package/lang/cy.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export default {
2
+ "__test__": "This will be removed in a follow-up PR (before translation)",
2
3
  "components.alert.close": "Cau Hysbysiad",
3
4
  "components.breadcrumbs.breadcrumb": "Briwsionyn Bara",
4
5
  "components.button-add.addItem": "Ychwanegu Eitem",
@@ -22,14 +23,33 @@ export default {
22
23
  "components.filter.clearAnnounce": "Wrthi’n clirio hidlwyr ar gyfer: {filterName}",
23
24
  "components.filter.clearDescription": "Wrthi’n clirio hidlwyd ar gyfer: {filterName}",
24
25
  "components.filter.loading": "Wrthi’n llwytho hidlyddion",
25
- "components.filter.filterCountDescription": "{number, plural, =0 {Dim hidlyddion wedi’i gweithredu.} one {{number} hidlydd wedi’i weithredu.} other {{number} hidlyddion wedi’u gweithredu.}}",
26
+ "components.filter.filterCountDescription":
27
+ `{number, plural,
28
+ =0 {Dim hidlyddion wedi’i gweithredu.}
29
+ one {{number} hidlydd wedi’i weithredu.}
30
+ other {{number} hidlyddion wedi’u gweithredu.}
31
+ }`,
26
32
  "components.filter.filters": "Hidlyddion",
27
33
  "components.filter.noFilters": "Dim hidlyddion ar gael",
28
- "components.filter.searchResults": "{number, plural, =0 {Dim canlyniadau chwilio} one {{number} canlyniad chwilio} other {{number} canlyniadau chwilio}}",
34
+ "components.filter.searchResults":
35
+ `{number, plural,
36
+ =0 {Dim canlyniadau chwilio}
37
+ one {{number} canlyniad chwilio}
38
+ other {{number} canlyniadau chwilio}
39
+ }`,
29
40
  "components.filter.selectedFirstListLabel": "{headerText}. Mae’r hidlyddion a ddewiswyd yn ymddangos gyntaf.",
30
41
  "components.filter.singleDimensionDescription": "Hidlo yn ôl: {filterName}",
31
- "components.filter-dimension-set-date-text-value.textHours": "{num, plural, =1 {Awr ddiwethaf} other {{num} awr ddiwethaf}}",
32
- "components.filter-dimension-set-date-text-value.textDays": "{num, plural, =0 {Heddiw} one {{num} diwrnod diwethaf} other {{num} o ddiwrnodau diwethaf}}",
42
+ "components.filter-dimension-set-date-text-value.textHours":
43
+ `{num, plural,
44
+ =1 {Awr ddiwethaf}
45
+ other {{num} awr ddiwethaf}
46
+ }`,
47
+ "components.filter-dimension-set-date-text-value.textDays":
48
+ `{num, plural,
49
+ =0 {Heddiw}
50
+ one {{num} diwrnod diwethaf}
51
+ other {{num} o ddiwrnodau diwethaf}
52
+ }`,
33
53
  "components.filter-dimension-set-date-text-value.textMonths": "{num} o fisoedd diwethaf",
34
54
  "components.filter-dimension-set-date-time-range-value.label": "{text}, ehangwch i ddewis dyddiadau",
35
55
  "components.filter-dimension-set-date-time-range-value.valueTextRange": "{startValue} i {endValue}",
@@ -39,13 +59,35 @@ export default {
39
59
  "components.form-element.defaultError": "Mae {label} yn annilys",
40
60
  "components.form-element.defaultFieldLabel": "Maes",
41
61
  "components.form-element.input.email.typeMismatch": "Nid yw’r e-bost yn ddilys",
42
- "components.form-element.input.number.rangeError": "{minExclusive, select, true {{maxExclusive, select, true {Rhaid i’r nifer fod yn fwy na {min} a llai na {max}.} other {Rhaid i’r nifer fod yn fwy na {min} a llai na neu’n hafal i {max}.}}} other {{maxExclusive, select, true {Rhaid i’r nifer fod yn fwy na neu’n hafal i {min} a llai na {max}.} other {Rhaid i’r nifer fod yn fwy na neu’n hafal i {min} a llai na neu’n hafal i {max}.}}}}",
43
- "components.form-element.input.number.rangeOverflow": "{maxExclusive, select, true {Rhaid i’r nifer fod yn llai na {max}.} other {Rhaid i’r nifer fod yn llai na neu’n hafal i {max}.}}",
44
- "components.form-element.input.number.rangeUnderflow": "{minExclusive, select, true {Rhaid i’r nifer fod yn fwy na {min}.} other {Rhaid i’r nifer fod yn fwy na neu’n hafal i {min}.}}",
62
+ "components.form-element.input.number.rangeError":
63
+ `{minExclusive, select,
64
+ true {{maxExclusive, select,
65
+ true {Rhaid i’r nifer fod yn fwy na {min} a llai na {max}.}
66
+ other {Rhaid i’r nifer fod yn fwy na {min} a llai na neu’n hafal i {max}.}
67
+ }}
68
+ other {{maxExclusive, select,
69
+ true {Rhaid i’r nifer fod yn fwy na neu’n hafal i {min} a llai na {max}.}
70
+ other {Rhaid i’r nifer fod yn fwy na neu’n hafal i {min} a llai na neu’n hafal i {max}.}
71
+ }}
72
+ }`,
73
+ "components.form-element.input.number.rangeOverflow":
74
+ `{maxExclusive, select,
75
+ true {Rhaid i’r nifer fod yn llai na {max}.}
76
+ other {Rhaid i’r nifer fod yn llai na neu’n hafal i {max}.}
77
+ }`,
78
+ "components.form-element.input.number.rangeUnderflow":
79
+ `{minExclusive, select,
80
+ true {Rhaid i’r nifer fod yn fwy na {min}.}
81
+ other {Rhaid i’r nifer fod yn fwy na neu’n hafal i {min}.}
82
+ }`,
45
83
  "components.form-element.input.text.tooShort": "Rhaid i {label} fod o leiaf {minlength} nod",
46
84
  "components.form-element.input.url.typeMismatch": "Nid yw’r URL yn ddilys.",
47
85
  "components.form-element.valueMissing": "Mae angen {label}",
48
- "components.form-error-summary.errorSummary": "{count, plural, one {Canfuwyd {count} gwall yn y wybodaeth a gyflwynoch} other {Canfuwyd {count} gwall yn y wybodaeth a gyflwynoch}}",
86
+ "components.form-error-summary.errorSummary":
87
+ `{count, plural,
88
+ one {Canfuwyd {count} gwall yn y wybodaeth a gyflwynoch}
89
+ other {Canfuwyd {count} gwall yn y wybodaeth a gyflwynoch}
90
+ }`,
49
91
  "components.form-error-summary.text": "Toglo manylion gwall",
50
92
  "components.input-color.backgroundColor": "Lliw Cefndir",
51
93
  "components.input-color.foregroundColor": "Lliw Blaendir",
@@ -109,10 +151,22 @@ export default {
109
151
  "components.overflow-group.moreActions": "Rhagor o Gamau Gweithredu",
110
152
  "components.pager-load-more.action": "Llwytho Mwy",
111
153
  "components.pager-load-more.action-with-page-size": "Lwytho {count} Arall",
112
- "components.pageable.info": "{count, plural, one {{countFormatted} eitem} other {{countFormatted} o eitemau}}",
113
- "components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} o {totalCountFormatted} eitem} other {{countFormatted} o {totalCountFormatted} eitemau}}",
154
+ "components.pageable.info":
155
+ `{count, plural,
156
+ one {{countFormatted} eitem}
157
+ other {{countFormatted} o eitemau}
158
+ }`,
159
+ "components.pageable.info-with-total":
160
+ `{totalCount, plural,
161
+ one {{countFormatted} o {totalCountFormatted} eitem}
162
+ other {{countFormatted} o {totalCountFormatted} eitemau}
163
+ }`,
114
164
  "components.pager-load-more.status-loading": "Llwytho rhagor o eitemau",
115
- "components.selection.action-max-hint": "{count, plural, one {Wedi’i analluogi pan fydd mwy nag {countFormatted} eitem yn cael ei ddewis} other {Wedi’i analluogi pan fydd mwy na {countFormatted} eitem yn cael eu dewis}}",
165
+ "components.selection.action-max-hint":
166
+ `{count, plural,
167
+ one {Wedi’i analluogi pan fydd mwy nag {countFormatted} eitem yn cael ei ddewis}
168
+ other {Wedi’i analluogi pan fydd mwy na {countFormatted} eitem yn cael eu dewis}
169
+ }`,
116
170
  "components.selection.action-required-hint": "Rhaid i chi ddewis eitem i gyflawni’r weithred hon",
117
171
  "components.selection.select-all": "Dewis y Cyfan",
118
172
  "components.selection.select-all-items": "Dewis Pob {count} Eitem",
@@ -125,7 +179,26 @@ export default {
125
179
  "components.switch.conditions": "Rhaid bodloni’r amodau",
126
180
  "components.table-col-sort-button.addSortOrder": "Dewiswch i ychwanegu trefn ddidoli",
127
181
  "components.table-col-sort-button.changeSortOrder": "Dewiswch i newid trefn ddidoli",
128
- "components.table-col-sort-button.title": "{sourceType, select, dates {{direction, select, desc {Wedi didoli newydd i hen} other {Wedi didoli hen i newydd}}} numbers {{direction, select, desc {Wedi didoli uchel i isel} other {Wedi didoli isel i uchel}}} words {{direction, select, desc {Wedi didoli Z i A} other {Wedi didoli A i Z}}} value {Wedi didoli {selectedMenuItemText}} other {{direction, select, desc {Wedi didoli’n ddisgynnol} other {Wedi didoli’n esgynnol}}}}",
182
+ "components.table-col-sort-button.title":
183
+ `{sourceType, select,
184
+ dates {{direction, select,
185
+ desc {Wedi didoli newydd i hen}
186
+ other {Wedi didoli hen i newydd}
187
+ }}
188
+ numbers {{direction, select,
189
+ desc {Wedi didoli uchel i isel}
190
+ other {Wedi didoli isel i uchel}
191
+ }}
192
+ words {{direction, select,
193
+ desc {Wedi didoli Z i A}
194
+ other {Wedi didoli A i Z}
195
+ }}
196
+ value {Wedi didoli {selectedMenuItemText}}
197
+ other {{direction, select,
198
+ desc {Wedi didoli’n ddisgynnol}
199
+ other {Wedi didoli’n esgynnol}
200
+ }}
201
+ }`,
129
202
  "components.table-controls.label": "Camau gweithredu ar gyfer y tabl",
130
203
  "components.tabs.next": "Sgrolio Ymlaen",
131
204
  "components.tabs.previous": "Sgrolio Yn Ôl",
package/lang/da.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export default {
2
+ "__test__": "This will be removed in a follow-up PR (before translation)",
2
3
  "components.alert.close": "Luk besked",
3
4
  "components.breadcrumbs.breadcrumb": "Brødkrumme",
4
5
  "components.button-add.addItem": "Tilføj element",
@@ -22,14 +23,33 @@ export default {
22
23
  "components.filter.clearAnnounce": "Rydder filtre for:{filterName}",
23
24
  "components.filter.clearDescription": "Ryd filtre for: {filterName}",
24
25
  "components.filter.loading": "Indlæser filtre",
25
- "components.filter.filterCountDescription": "{number, plural, =0 {Ingen filtre anvendt.} one {{number} filter anvendt.} other {{number} filtre anvendt.}}",
26
+ "components.filter.filterCountDescription":
27
+ `{number, plural,
28
+ =0 {Ingen filtre anvendt.}
29
+ one {{number} filter anvendt.}
30
+ other {{number} filtre anvendt.}
31
+ }`,
26
32
  "components.filter.filters": "Filtre",
27
33
  "components.filter.noFilters": "Ingen tilgængelige filtre",
28
- "components.filter.searchResults": "{number, plural, =0 {Ingen søgeresultater} one {{number} søgeresultat} other {{number} søgeresultater}}",
34
+ "components.filter.searchResults":
35
+ `{number, plural,
36
+ =0 {Ingen søgeresultater}
37
+ one {{number} søgeresultat}
38
+ other {{number} søgeresultater}
39
+ }`,
29
40
  "components.filter.selectedFirstListLabel": "{headerText}. Valgte filtre vises først.",
30
41
  "components.filter.singleDimensionDescription": "Filtrer efter: {filterName}",
31
- "components.filter-dimension-set-date-text-value.textHours": "{num, plural, =1 {Sidste time} other {Sidste {num} timer}}",
32
- "components.filter-dimension-set-date-text-value.textDays": "{num, plural, =0 {I dag} one {Sidste {num} dag} other {Sidste {num} dage}}",
42
+ "components.filter-dimension-set-date-text-value.textHours":
43
+ `{num, plural,
44
+ =1 {Sidste time}
45
+ other {Sidste {num} timer}
46
+ }`,
47
+ "components.filter-dimension-set-date-text-value.textDays":
48
+ `{num, plural,
49
+ =0 {I dag}
50
+ one {Sidste {num} dag}
51
+ other {Sidste {num} dage}
52
+ }`,
33
53
  "components.filter-dimension-set-date-text-value.textMonths": "Sidste {num} måneder",
34
54
  "components.filter-dimension-set-date-time-range-value.label": "{text}, udvid for at vælge datoer",
35
55
  "components.filter-dimension-set-date-time-range-value.valueTextRange": "{startValue} til {endValue}",
@@ -39,13 +59,35 @@ export default {
39
59
  "components.form-element.defaultError": "{label} er ugyldigt",
40
60
  "components.form-element.defaultFieldLabel": "Felt",
41
61
  "components.form-element.input.email.typeMismatch": "E-mail er ikke gyldig",
42
- "components.form-element.input.number.rangeError": "{minExclusive, select, true {{maxExclusive, select, true {Tallet skal være større end {min} og mindre end {max}.} other {Tallet skal være større end {min} og mindre eller lig med {max}.}}} other {{maxExclusive, select, true {Tallet skal være større end eller lig med {min} og mindre end {max}.} other {Tallet skal være større end eller lig med {min} og mindre end eller lig med {max}.}}}}",
43
- "components.form-element.input.number.rangeOverflow": "{maxExclusive, select, true {Tallet skal være mindre end {max}.} other {Tallet skal være mindre end eller lig med {max}.}}",
44
- "components.form-element.input.number.rangeUnderflow": "{minExclusive, select, true {Tallet skal være større end {min}.} other {Tallet skal være større end eller lig med {min}.}}",
62
+ "components.form-element.input.number.rangeError":
63
+ `{minExclusive, select,
64
+ true {{maxExclusive, select,
65
+ true {Tallet skal være større end {min} og mindre end {max}.}
66
+ other {Tallet skal være større end {min} og mindre eller lig med {max}.}
67
+ }}
68
+ other {{maxExclusive, select,
69
+ true {Tallet skal være større end eller lig med {min} og mindre end {max}.}
70
+ other {Tallet skal være større end eller lig med {min} og mindre end eller lig med {max}.}
71
+ }}
72
+ }`,
73
+ "components.form-element.input.number.rangeOverflow":
74
+ `{maxExclusive, select,
75
+ true {Tallet skal være mindre end {max}.}
76
+ other {Tallet skal være mindre end eller lig med {max}.}
77
+ }`,
78
+ "components.form-element.input.number.rangeUnderflow":
79
+ `{minExclusive, select,
80
+ true {Tallet skal være større end {min}.}
81
+ other {Tallet skal være større end eller lig med {min}.}
82
+ }`,
45
83
  "components.form-element.input.text.tooShort": "{label} skal være på mindst {minlength} tegn",
46
84
  "components.form-element.input.url.typeMismatch": "URL-adresse er ikke gyldig",
47
85
  "components.form-element.valueMissing": "{label} er påkrævet",
48
- "components.form-error-summary.errorSummary": "{count, plural, one {Der blev fundet {count} fejl i de oplysninger, du indsendte} other {Der blev fundet {count} fejl i de oplysninger, du indsendte}}",
86
+ "components.form-error-summary.errorSummary":
87
+ `{count, plural,
88
+ one {Der blev fundet {count} fejl i de oplysninger, du indsendte}
89
+ other {Der blev fundet {count} fejl i de oplysninger, du indsendte}
90
+ }`,
49
91
  "components.form-error-summary.text": "Slå fejloplysninger til/fra",
50
92
  "components.input-color.backgroundColor": "Baggrundsfarve",
51
93
  "components.input-color.foregroundColor": "Forgrundsfarve",
@@ -109,10 +151,22 @@ export default {
109
151
  "components.overflow-group.moreActions": "Flere handlinger",
110
152
  "components.pager-load-more.action": "Indlæs flere",
111
153
  "components.pager-load-more.action-with-page-size": "Indlæs {count} mere",
112
- "components.pageable.info": "{count, plural, one {{countFormatted} element} other {{countFormatted} elementer}}",
113
- "components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} af {totalCountFormatted} element} other {{countFormatted} af {totalCountFormatted} elementer}}",
154
+ "components.pageable.info":
155
+ `{count, plural,
156
+ one {{countFormatted} element}
157
+ other {{countFormatted} elementer}
158
+ }`,
159
+ "components.pageable.info-with-total":
160
+ `{totalCount, plural,
161
+ one {{countFormatted} af {totalCountFormatted} element}
162
+ other {{countFormatted} af {totalCountFormatted} elementer}
163
+ }`,
114
164
  "components.pager-load-more.status-loading": "Indlæser flere elementer",
115
- "components.selection.action-max-hint": "{count, plural, one {Deaktiveret, når mere end {countFormatted} element er valgt} other {Deaktiveret, når mere end {countFormatted} elementer er valgt}}",
165
+ "components.selection.action-max-hint":
166
+ `{count, plural,
167
+ one {Deaktiveret, når mere end {countFormatted} element er valgt}
168
+ other {Deaktiveret, når mere end {countFormatted} elementer er valgt}
169
+ }`,
116
170
  "components.selection.action-required-hint": "Vælg et element for at udføre denne handling",
117
171
  "components.selection.select-all": "Vælg alle",
118
172
  "components.selection.select-all-items": "Vælg alle {count} elementer",
@@ -125,7 +179,26 @@ export default {
125
179
  "components.switch.conditions": "Betingelserne skal være opfyldt",
126
180
  "components.table-col-sort-button.addSortOrder": "Vælg for at tilføje sorteringsrækkefølge",
127
181
  "components.table-col-sort-button.changeSortOrder": "Vælg for at ændre sorteringsrækkefølge",
128
- "components.table-col-sort-button.title": "{sourceType, select, dates {{direction, select, desc {Sorteret ny til gammel} other {Sorteret gammel til ny}}} numbers {{direction, select, desc {Sorteret høj til lav} other {Sorteret lav til høj}}} words {{direction, select, desc {Sorteret Z til A} other {Sorteret A til Z}}} value {Sorteret {selectedMenuItemText}} other {{direction, select, desc {Sorteret faldende} other {Sorteret stigende}}}}",
182
+ "components.table-col-sort-button.title":
183
+ `{sourceType, select,
184
+ dates {{direction, select,
185
+ desc {Sorteret ny til gammel}
186
+ other {Sorteret gammel til ny}
187
+ }}
188
+ numbers {{direction, select,
189
+ desc {Sorteret høj til lav}
190
+ other {Sorteret lav til høj}
191
+ }}
192
+ words {{direction, select,
193
+ desc {Sorteret Z til A}
194
+ other {Sorteret A til Z}
195
+ }}
196
+ value {Sorteret {selectedMenuItemText}}
197
+ other {{direction, select,
198
+ desc {Sorteret faldende}
199
+ other {Sorteret stigende}
200
+ }}
201
+ }`,
129
202
  "components.table-controls.label": "Handlinger for tabel",
130
203
  "components.tabs.next": "Rul frem",
131
204
  "components.tabs.previous": "Rul tilbage",