@brightspace-ui/core 2.126.1 → 2.127.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.
- package/README.md +3 -3
- package/components/paging/README.md +1 -1
- package/components/paging/demo/pager-load-more.html +36 -2
- package/components/paging/pager-load-more.js +1 -2
- package/lang/ar.js +2 -1
- package/lang/cy.js +2 -1
- package/lang/da.js +2 -1
- package/lang/de.js +2 -1
- package/lang/en-gb.js +2 -1
- package/lang/en.js +2 -1
- package/lang/es-es.js +2 -1
- package/lang/es.js +2 -1
- package/lang/fr-fr.js +2 -1
- package/lang/fr.js +2 -1
- package/lang/hi.js +2 -1
- package/lang/ja.js +2 -1
- package/lang/ko.js +2 -1
- package/lang/nl.js +2 -1
- package/lang/pt.js +2 -1
- package/lang/sv.js +2 -1
- package/lang/tr.js +2 -1
- package/lang/zh-cn.js +2 -1
- package/lang/zh-tw.js +2 -1
- package/package.json +3 -6
package/README.md
CHANGED
|
@@ -98,14 +98,14 @@ D2L employees can also view the latest main-branch demos at https://brightspace-
|
|
|
98
98
|
### Linting
|
|
99
99
|
|
|
100
100
|
```shell
|
|
101
|
-
# eslint and
|
|
101
|
+
# eslint and stylelint
|
|
102
102
|
npm run lint
|
|
103
103
|
|
|
104
104
|
# eslint only
|
|
105
105
|
npm run lint:eslint
|
|
106
106
|
|
|
107
|
-
#
|
|
108
|
-
npm run lint:
|
|
107
|
+
# stylelint only
|
|
108
|
+
npm run lint:style
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
### Testing
|
|
@@ -37,7 +37,7 @@ pager.addEventListener('d2l-pager-load-more', e => {
|
|
|
37
37
|
| Property | Type | Description |
|
|
38
38
|
|---|---|---|
|
|
39
39
|
| `has-more` | Boolean, default: `false` | Whether there are more items that can be loaded. |
|
|
40
|
-
| `page-size` | Number
|
|
40
|
+
| `page-size` | Number | The number of additional items to load. If not given, the component will simply show `Load More` without any value. |
|
|
41
41
|
|
|
42
42
|
### Events
|
|
43
43
|
|
|
@@ -57,16 +57,50 @@
|
|
|
57
57
|
</template>
|
|
58
58
|
</d2l-demo-snippet>
|
|
59
59
|
|
|
60
|
+
<h2>Load More Pager (no page count)</h2>
|
|
61
|
+
|
|
62
|
+
<d2l-demo-snippet>
|
|
63
|
+
<template>
|
|
64
|
+
<d2l-test-pageable item-count=12>
|
|
65
|
+
<ul>
|
|
66
|
+
<li><a href="https://some-website">item 1</a></li>
|
|
67
|
+
<li><a href="https://some-website">item 2</a></li>
|
|
68
|
+
</ul>
|
|
69
|
+
<d2l-pager-load-more id="pager3" slot="pager" has-more></d2l-pager-load-more>
|
|
70
|
+
</d2l-test-pageable>
|
|
71
|
+
<script>
|
|
72
|
+
document.querySelector('#pager3').addEventListener('d2l-pager-load-more', window.handleLoadMore);
|
|
73
|
+
</script>
|
|
74
|
+
</template>
|
|
75
|
+
</d2l-demo-snippet>
|
|
76
|
+
|
|
77
|
+
<h2>Load More Pager (no item or page count)</h2>
|
|
78
|
+
|
|
79
|
+
<d2l-demo-snippet>
|
|
80
|
+
<template>
|
|
81
|
+
<d2l-test-pageable>
|
|
82
|
+
<ul>
|
|
83
|
+
<li><a href="https://some-website">item 1</a></li>
|
|
84
|
+
<li><a href="https://some-website">item 2</a></li>
|
|
85
|
+
</ul>
|
|
86
|
+
<d2l-pager-load-more id="pager4" slot="pager" has-more></d2l-pager-load-more>
|
|
87
|
+
</d2l-test-pageable>
|
|
88
|
+
<script>
|
|
89
|
+
document.querySelector('#pager4').addEventListener('d2l-pager-load-more', window.handleLoadMore);
|
|
90
|
+
</script>
|
|
91
|
+
</template>
|
|
92
|
+
</d2l-demo-snippet>
|
|
60
93
|
</d2l-demo-page>
|
|
61
94
|
|
|
62
95
|
<script>
|
|
63
96
|
const ITEM_COUNT = 12;
|
|
97
|
+
const PAGE_SIZE = 3;
|
|
64
98
|
window.handleLoadMore = e => {
|
|
65
99
|
// fake delay
|
|
66
100
|
setTimeout(() => {
|
|
67
101
|
const list = e.target.parentNode.querySelector('ul');
|
|
68
102
|
let remainingCount = ITEM_COUNT - list.children.length;
|
|
69
|
-
const numberToLoad = remainingCount <
|
|
103
|
+
const numberToLoad = remainingCount < PAGE_SIZE ? remainingCount : PAGE_SIZE;
|
|
70
104
|
for (let i = 0; i < numberToLoad; i++) {
|
|
71
105
|
const newItem = list.lastElementChild.cloneNode(true);
|
|
72
106
|
newItem.querySelector('a').textContent = `item ${list.children.length + 1}`;
|
|
@@ -76,7 +110,7 @@
|
|
|
76
110
|
e.target.hasMore = false;
|
|
77
111
|
} else {
|
|
78
112
|
remainingCount = ITEM_COUNT - list.children.length;
|
|
79
|
-
if (remainingCount < e.target.pageSize) e.target.pageSize = remainingCount;
|
|
113
|
+
if (remainingCount < PAGE_SIZE && e.target.pageSize) e.target.pageSize = remainingCount;
|
|
80
114
|
}
|
|
81
115
|
e.detail.complete();
|
|
82
116
|
}, 1000);
|
|
@@ -78,7 +78,6 @@ class LoadMore extends PageableSubscriberMixin(FocusMixin(LocalizeCoreElement(Rt
|
|
|
78
78
|
this.hasMore = false;
|
|
79
79
|
|
|
80
80
|
/** @ignore */
|
|
81
|
-
this.pageSize = 50;
|
|
82
81
|
this._loading = false;
|
|
83
82
|
}
|
|
84
83
|
|
|
@@ -98,7 +97,7 @@ class LoadMore extends PageableSubscriberMixin(FocusMixin(LocalizeCoreElement(Rt
|
|
|
98
97
|
${this._loading ? html`
|
|
99
98
|
<d2l-loading-spinner size="24"></d2l-loading-spinner>
|
|
100
99
|
` : html`
|
|
101
|
-
<span class="action">${this.localize('components.pager-load-more.action', { count: formatNumber(this.pageSize) })}</span>
|
|
100
|
+
<span class="action">${isNaN(this.pageSize) ? this.localize('components.pager-load-more.action') : this.localize('components.pager-load-more.action-with-page-size', { count: formatNumber(this.pageSize) })}</span>
|
|
102
101
|
${itemCount !== null ? html`
|
|
103
102
|
<span class="d2l-offscreen">${getSeparator({ nonBreaking: true })}</span>
|
|
104
103
|
<span class="separator"></span>
|
package/lang/ar.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "المزيد",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "عنصر نائب",
|
|
96
96
|
"components.overflow-group.moreActions": "مزيد من الإجراءات",
|
|
97
|
-
"components.pager-load-more.action": "
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "تحميل {count} إضافي",
|
|
98
99
|
"components.pageable.info": "{count, plural, one {{countFormatted} مادة واحد} other {{countFormatted} من المواد}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} من أصل {totalCountFormatted} مادة واحدة} other {{countFormatted} من أصل {totalCountFormatted} من المواد}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "تحميل المزيد من المواد",
|
package/lang/cy.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "mwy",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "Eitem Dalfan",
|
|
96
96
|
"components.overflow-group.moreActions": "Rhagor o Gamau Gweithredu",
|
|
97
|
-
"components.pager-load-more.action": "
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "Lwytho {count} Arall",
|
|
98
99
|
"components.pageable.info": "{count, plural, one {{countFormatted} eitem} other {{countFormatted} o eitemau}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} o {totalCountFormatted} eitem} other {{countFormatted} o {totalCountFormatted} eitemau}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "Llwytho rhagor o eitemau",
|
package/lang/da.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "flere",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "Pladsholder-element",
|
|
96
96
|
"components.overflow-group.moreActions": "Flere handlinger",
|
|
97
|
-
"components.pager-load-more.action": "
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "Indlæs {count} mere",
|
|
98
99
|
"components.pageable.info": "{count, plural, one {{countFormatted} element} other {{countFormatted} elementer}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} af {totalCountFormatted} element} other {{countFormatted} af {totalCountFormatted} elementer}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "Indlæser flere elementer",
|
package/lang/de.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "mehr",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "Platzhalterelement",
|
|
96
96
|
"components.overflow-group.moreActions": "Weitere Aktionen",
|
|
97
|
-
"components.pager-load-more.action": "
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "{count} weitere laden",
|
|
98
99
|
"components.pageable.info": "{count, plural, one {{countFormatted} Element} other {{countFormatted} Elemente}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} von {totalCountFormatted} Element} other {{countFormatted} von {totalCountFormatted} Elemente}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "Weitere Elemente werden geladen",
|
package/lang/en-gb.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "more",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "Placeholder Item",
|
|
96
96
|
"components.overflow-group.moreActions": "More Actions",
|
|
97
|
-
"components.pager-load-more.action": "Load
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "Load {count} More",
|
|
98
99
|
"components.pageable.info": "{count, plural, one {{countFormatted} item} other {{countFormatted} items}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} of {totalCountFormatted} item} other {{countFormatted} of {totalCountFormatted} items}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "Loading more items",
|
package/lang/en.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "more",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "Placeholder Item",
|
|
96
96
|
"components.overflow-group.moreActions": "More Actions",
|
|
97
|
-
"components.pager-load-more.action": "Load
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "Load {count} More",
|
|
98
99
|
"components.pageable.info": "{count, plural, one {{countFormatted} item} other {{countFormatted} items}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} of {totalCountFormatted} item} other {{countFormatted} of {totalCountFormatted} items}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "Loading more items",
|
package/lang/es-es.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "más",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "Elemento de marcador de posición",
|
|
96
96
|
"components.overflow-group.moreActions": "Más acciones",
|
|
97
|
-
"components.pager-load-more.action": "
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "Cargar {count} más",
|
|
98
99
|
"components.pageable.info": "{count, plural, one {{countFormatted} elemento} other {{countFormatted} elementos}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} de {totalCountFormatted} elemento} other {{countFormatted} de {totalCountFormatted} elementos}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "Cargando más elementos",
|
package/lang/es.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "más",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "Elemento de marcador de posición",
|
|
96
96
|
"components.overflow-group.moreActions": "Más acciones",
|
|
97
|
-
"components.pager-load-more.action": "
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "Cargar {count} más",
|
|
98
99
|
"components.pageable.info": "{count, plural, one {{countFormatted} elemento} other {{countFormatted} elementos}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} de {totalCountFormatted} elemento} other {{countFormatted} de {totalCountFormatted} elementos}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "Cargando más elementos",
|
package/lang/fr-fr.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "plus",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "Élément d’espace réservé",
|
|
96
96
|
"components.overflow-group.moreActions": "Plus d'actions",
|
|
97
|
-
"components.pager-load-more.action": "
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "Charger {count} supplémentaire(s)",
|
|
98
99
|
"components.pageable.info": "{count, plural, one {{countFormatted} élément} other {{countFormatted} éléments}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} sur {totalCountFormatted} élément} other {{countFormatted} sur {totalCountFormatted} éléments}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "Charger plus d’éléments",
|
package/lang/fr.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "plus",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "Élément de paramètre fictif",
|
|
96
96
|
"components.overflow-group.moreActions": "Plus d'actions",
|
|
97
|
-
"components.pager-load-more.action": "
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "Charger {count} de plus",
|
|
98
99
|
"components.pageable.info": "{count, plural, one {{countFormatted} élément} other {{countFormatted} éléments}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} de {totalCountFormatted} élément} other {{countFormatted} de {totalCountFormatted} éléments}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "Chargement d'autres d'éléments",
|
package/lang/hi.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "अधिक",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "प्लेसहोल्डर आइटम",
|
|
96
96
|
"components.overflow-group.moreActions": "अधिक क्रियाएँ",
|
|
97
|
-
"components.pager-load-more.action": "
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "{count} और लोड करें",
|
|
98
99
|
"components.pageable.info": "{count, plural, one {{countFormatted} आइटम} other {{countFormatted} आइटम}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, one {{totalCountFormatted} में से {countFormatted} आइटम} other {{totalCountFormatted} में से {countFormatted} आइटम}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "और आइटम लोड करना",
|
package/lang/ja.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "増やす",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "プレースホルダの項目",
|
|
96
96
|
"components.overflow-group.moreActions": "その他のアクション",
|
|
97
|
-
"components.pager-load-more.action": "
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "さらに {count} 件を読み込む",
|
|
98
99
|
"components.pageable.info": "{count, plural, other {{countFormatted} 個の項目}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, other {{countFormatted}/{totalCountFormatted} 個の項目}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "さらに項目を読み込み中",
|
package/lang/ko.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "더 보기",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "자리표시자 항목",
|
|
96
96
|
"components.overflow-group.moreActions": "추가 작업",
|
|
97
|
-
"components.pager-load-more.action": "
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "{count}개 더 로드",
|
|
98
99
|
"components.pageable.info": "{count, plural, other {해당 항목 수 {countFormatted}개}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, other {{totalCountFormatted}개 항목 중 {countFormatted}개}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "더 많은 항목 로드",
|
package/lang/nl.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "meer",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "Item tijdelijke aanduiding",
|
|
96
96
|
"components.overflow-group.moreActions": "Meer acties",
|
|
97
|
-
"components.pager-load-more.action": "
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "Laad nog {count} extra",
|
|
98
99
|
"components.pageable.info": "{count, plural, one {{countFormatted} item} other {{countFormatted} items}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} van {totalCountFormatted} artikel} other {{countFormatted} van {totalCountFormatted} artikelen}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "Er worden meer items geladen",
|
package/lang/pt.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "mais",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "Item de espaço reservado",
|
|
96
96
|
"components.overflow-group.moreActions": "Mais ações",
|
|
97
|
-
"components.pager-load-more.action": "
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "Carregar mais {count}",
|
|
98
99
|
"components.pageable.info": "{count, plural, one {{countFormatted} item} other {{countFormatted} itens}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} de {totalCountFormatted} item} other {{countFormatted} de {totalCountFormatted} itens}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "Carregando mais itens",
|
package/lang/sv.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "mer",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "Platshållarobjekt",
|
|
96
96
|
"components.overflow-group.moreActions": "Fler åtgärder",
|
|
97
|
-
"components.pager-load-more.action": "
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "Läs in {count} till",
|
|
98
99
|
"components.pageable.info": "{count, plural, one {{countFormatted} objekt} other {{countFormatted} objekt}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} av {totalCountFormatted} objekt} other {{countFormatted} av {totalCountFormatted} objekt}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "Läser in fler objekt",
|
package/lang/tr.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "daha fazla",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "Yer Tutucu Öğesi",
|
|
96
96
|
"components.overflow-group.moreActions": "Daha Fazla Eylem",
|
|
97
|
-
"components.pager-load-more.action": "
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "{count} Tane Daha Yükle",
|
|
98
99
|
"components.pageable.info": "{count, plural, one {{countFormatted} öğe} other {{countFormatted} öğe}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, one {{countFormatted} / {totalCountFormatted} öğe} other {{countFormatted} / {totalCountFormatted} öğe}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "Daha fazla öğe yükleniyor",
|
package/lang/zh-cn.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "更多",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "占位符项目",
|
|
96
96
|
"components.overflow-group.moreActions": "更多操作",
|
|
97
|
-
"components.pager-load-more.action": "
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "再加载 {count} 个",
|
|
98
99
|
"components.pageable.info": "{count, plural, other {{countFormatted} 项}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, other {{countFormatted}/{totalCountFormatted} 项}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "加载更多项目",
|
package/lang/zh-tw.js
CHANGED
|
@@ -94,7 +94,8 @@ export default {
|
|
|
94
94
|
"components.more-less.more": "較多",
|
|
95
95
|
"components.object-property-list.item-placeholder-text": "預留位置項目",
|
|
96
96
|
"components.overflow-group.moreActions": "其他動作",
|
|
97
|
-
"components.pager-load-more.action": "
|
|
97
|
+
"components.pager-load-more.action": "Load More",
|
|
98
|
+
"components.pager-load-more.action-with-page-size": "再載入 {count} 個",
|
|
98
99
|
"components.pageable.info": "{count, plural, other {{countFormatted} 個項目}}",
|
|
99
100
|
"components.pageable.info-with-total": "{totalCount, plural, other {{countFormatted} 項,共 {totalCountFormatted} 項}}",
|
|
100
101
|
"components.pager-load-more.status-loading": "正在載入更多項目",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.127.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",
|
|
@@ -14,9 +14,8 @@
|
|
|
14
14
|
"build:sass": "node-sass --output-style expanded ./test/sass.scss > ./test/sass.output.css",
|
|
15
15
|
"build": "npm run build:clean && npm run build:icons && npm run build:illustrations && npm run build:sass",
|
|
16
16
|
"build-static": "rollup -c ./rollup/rollup.config.js",
|
|
17
|
-
"lint": "npm run lint:eslint && npm run lint:style
|
|
17
|
+
"lint": "npm run lint:eslint && npm run lint:style",
|
|
18
18
|
"lint:eslint": "eslint . --ext .js,.html --ignore-path .gitignore",
|
|
19
|
-
"lint:lit": "lit-analyzer \"{components,controllers,directives,helpers,mixins,templates,test,tools}/**/*.js\" --strict --rules.no-unknown-tag-name off",
|
|
20
19
|
"lint:style": "stylelint \"**/*.{js,html}\" --ignore-path .gitignore",
|
|
21
20
|
"start": "web-dev-server --node-resolve --watch --open",
|
|
22
21
|
"test": "npm run lint && npm run test:translations && npm run test:headless && npm run test:axe",
|
|
@@ -59,15 +58,13 @@
|
|
|
59
58
|
"eslint": "^8",
|
|
60
59
|
"eslint-config-brightspace": "^0.23",
|
|
61
60
|
"glob-all": "^3",
|
|
62
|
-
"lit-analyzer": "^1",
|
|
63
61
|
"messageformat-validator": "^2",
|
|
64
62
|
"node-sass": "^9",
|
|
65
63
|
"rollup": "^3",
|
|
66
64
|
"rollup-plugin-copy": "^3",
|
|
67
65
|
"rollup-plugin-delete": "^2",
|
|
68
66
|
"sinon": "^15",
|
|
69
|
-
"stylelint": "^15"
|
|
70
|
-
"typescript": "^5.0.3"
|
|
67
|
+
"stylelint": "^15"
|
|
71
68
|
},
|
|
72
69
|
"dependencies": {
|
|
73
70
|
"@brightspace-ui/intl": "^3",
|