@brightspace-ui/labs 1.5.0 → 1.6.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/package.json CHANGED
@@ -11,6 +11,7 @@
11
11
  "./components/opt-in-flyout.js": "./src/components/opt-in-flyout/opt-in-flyout.js",
12
12
  "./components/opt-out-flyout.js": "./src/components/opt-in-flyout/opt-out-flyout.js",
13
13
  "./components/opt-out-reason.js": "./src/components/opt-in-flyout/opt-out-reason.js",
14
+ "./components/pager-numeric.js": "./src/components/pagination/pager-numeric.js",
14
15
  "./controllers/computed-value.js": "./src/controllers/computed-values/computed-value.js",
15
16
  "./controllers/computed-values.js": "./src/controllers/computed-values/computed-values.js",
16
17
  "./controllers/language-listener.js": "./src/controllers/language-listener/language-listener.js"
@@ -29,10 +30,10 @@
29
30
  "license": "Apache-2.0",
30
31
  "devDependencies": {
31
32
  "@brightspace-ui/stylelint-config": "^0.8",
32
- "@brightspace-ui/testing": "^1.0",
33
+ "@brightspace-ui/testing": "^1",
33
34
  "@web/dev-server": "^0.3",
34
35
  "eslint": "^8",
35
- "eslint-config-brightspace": "^0.25",
36
+ "eslint-config-brightspace": "^1",
36
37
  "messageformat-validator": "^2",
37
38
  "stylelint": "^15"
38
39
  },
@@ -47,5 +48,5 @@
47
48
  "@brightspace-ui/core": "^2",
48
49
  "lit": "^2"
49
50
  },
50
- "version": "1.5.0"
51
+ "version": "1.6.0"
51
52
  }
@@ -0,0 +1,29 @@
1
+ # d2l-labs-pager-numeric
2
+
3
+ A component to indicate the existence of and provide navigation for multiple pages of content.
4
+
5
+ ## Usage
6
+
7
+ ```html
8
+ <script type="module">
9
+ import '@brightspace-ui/labs/components/pager-numeric.js';
10
+ </script>
11
+ <d2l-labs-pager-numeric></d2l-labs-pager-numeric>
12
+ ```
13
+
14
+ ## Properties
15
+
16
+ | Property | Type | Description |
17
+ |--|--|--|
18
+ | `page-number` | Number, default: 1 | The current page number
19
+ | `max-page-number` | Number, default: 1 | The highest page number the user can navigate to
20
+ | `show-page-size-selector` | Boolean, default: `false` | Determines whether or not to show the `Results Per Page` select component.
21
+ | `page-sizes` | Array, default:`[10,20,30,40]` | The options available in the `Results Per Page` select component.
22
+ | `page-size` | Number | The starting `page-sizes` value to display in the `Results Per Page` select component. If no value is given, it will default to whatever the first value in the `page-sizes` array.
23
+
24
+ ## Events
25
+
26
+ * `d2l-labs-pager-numeric-page-change`: dispatched when either the navigation buttons are pressed, or the page number is modified. Event `detail` includes:
27
+ * `page`: the new page number value
28
+ * `d2l-labs-pager-numeric-page-size-change`: dispatched when the item count selector's value is changed. Event `detail` includes:
29
+ * `itemCount`: the value the item count selector was just set to
@@ -0,0 +1,159 @@
1
+ import '@brightspace-ui/core/components/button/button-icon.js';
2
+ import '@brightspace-ui/core/components/inputs/input-number.js';
3
+ import '@brightspace-ui/core/components/inputs/input-text.js';
4
+ import { css, html, LitElement } from 'lit';
5
+ import { formatNumber } from '@brightspace-ui/intl';
6
+ import { LocalizeLabsElement } from '../localize-labs-element.js';
7
+ import { RtlMixin } from '@brightspace-ui/core/mixins/rtl-mixin.js';
8
+ import { selectStyles } from '@brightspace-ui/core/components/inputs/input-select-styles.js';
9
+
10
+ class PagerNumeric extends RtlMixin(LocalizeLabsElement(LitElement)) {
11
+
12
+ static get properties() {
13
+ return {
14
+ maxPageNumber: { type: Number, attribute: 'max-page-number', reflect: true },
15
+ pageNumber: { type: Number, attribute: 'page-number', reflect: true },
16
+ pageSize : { type: Number, attribute: 'page-size', reflect: true },
17
+ pageSizes : { type: Array, attribute: 'page-sizes' },
18
+ showPageSizeSelector : { type: Boolean, attribute: 'show-page-size-selector', reflect: true }
19
+ };
20
+ }
21
+
22
+ static get styles() {
23
+ return [selectStyles, css`
24
+ :host {
25
+ align-items: center;
26
+ display: flex;
27
+ justify-content: center;
28
+ white-space: nowrap;
29
+ }
30
+
31
+ .d2l-page-selector-container {
32
+ margin: 0.75rem;
33
+ }
34
+
35
+ .d2l-page-number-container {
36
+ direction: ltr;
37
+ display: inline-block;
38
+ }
39
+
40
+ d2l-input-number {
41
+ margin-left: 0.25rem;
42
+ margin-right: 0.25rem;
43
+ width: 3.8rem;
44
+ }
45
+
46
+ .d2l-page-max-text {
47
+ margin-right: 0.25rem;
48
+ }
49
+
50
+ @media (max-width: 544px) {
51
+ :host {
52
+ flex-direction: column-reverse;
53
+ }
54
+ }
55
+ `];
56
+ }
57
+
58
+ constructor() {
59
+ super();
60
+ this.pageNumber = 1;
61
+ this.maxPageNumber = 1;
62
+ this.pageSizes = [10, 20, 30, 40];
63
+ }
64
+
65
+ render() {
66
+ return html`
67
+ <div class="d2l-page-selector-container">
68
+ <d2l-button-icon
69
+ id="d2l-labs-pager-numeric-previous-button"
70
+ icon="tier1:chevron-left"
71
+ text="${this.localize('components:pagination:previousPage')}"
72
+ ?disabled="${this.pageNumber <= 1}"
73
+ @click="${this._onPreviousClicked}">
74
+ </d2l-button-icon>
75
+
76
+ <div class="d2l-page-number-container">
77
+ <d2l-input-number
78
+ autocomplete="off"
79
+ label="${this.localize('components:pagination:currentPage', { pageNumber: this.pageNumber, maxPageNumber: this.maxPageNumber })}"
80
+ label-hidden
81
+ max-fraction-digits="0"
82
+ value="${this.pageNumber}"
83
+ @change="${this._onPageNumberChanged}">
84
+ </d2l-input-number>
85
+ <!-- Note: this uses a division slash rather than a regular slash -->
86
+ <!-- a11y note: setting aria-hidden to true because info here is covered by input element -->
87
+ <span class="d2l-page-max-text" aria-hidden="true">∕ ${formatNumber(this.maxPageNumber)}</span>
88
+ </div>
89
+
90
+ <d2l-button-icon
91
+ id="d2l-labs-pager-numeric-next-button"
92
+ icon="tier1:chevron-right"
93
+ text="${this.localize('components:pagination:nextPage')}"
94
+ ?disabled="${this.pageNumber >= this.maxPageNumber}"
95
+ @click="${this._onNextClicked}">
96
+ </d2l-button-icon>
97
+ </div>
98
+
99
+ ${this.showPageSizeSelector ? html`
100
+ <select
101
+ class="d2l-input-select"
102
+ aria-label="${this.localize('components:pagination:resultsPerPage')}"
103
+ title="${this.localize('components:pagination:resultsPerPage')}"
104
+ @change="${this._onPageSizeChanged}">
105
+ ${this.pageSizes.map(item => html`
106
+ <option ?selected="${this.pageSize === item}" value="${item}">${this.localize('components:pagination:amountPerPage', 'count', formatNumber(item))}</option>
107
+ `)}
108
+ </select>
109
+ ` : null }
110
+ `;
111
+ }
112
+
113
+ _dispatchPageChangeEvent(newPageNumber) {
114
+ this.dispatchEvent(
115
+ new CustomEvent('d2l-labs-pager-numeric-page-change', {
116
+ detail: { page: newPageNumber },
117
+ bubbles: true,
118
+ composed: true
119
+ })
120
+ );
121
+ }
122
+
123
+ _isLastPage() {
124
+ return this.pageNumber >= this.maxPageNumber;
125
+ }
126
+
127
+ _isValidNumber(input) {
128
+ return input >= 1 && input <= this.maxPageNumber && input !== this.pageNumber;
129
+ }
130
+
131
+ _onNextClicked() {
132
+ this._dispatchPageChangeEvent(this.pageNumber + 1);
133
+ }
134
+
135
+ _onPageNumberChanged(e) {
136
+ if (!this._isValidNumber(e.target.value)) {
137
+ e.target.value = this.pageNumber;
138
+ return;
139
+ }
140
+
141
+ this._dispatchPageChangeEvent(Number(e.target.value));
142
+ }
143
+
144
+ _onPageSizeChanged(e) {
145
+ this.dispatchEvent(
146
+ new CustomEvent('d2l-labs-pager-numeric-page-size-change', {
147
+ detail: { itemCount: Number(e.target.value) },
148
+ bubbles: true,
149
+ composed: true
150
+ })
151
+ );
152
+ }
153
+
154
+ _onPreviousClicked() {
155
+ this._dispatchPageChangeEvent(this.pageNumber - 1);
156
+ }
157
+ }
158
+
159
+ customElements.define('d2l-labs-pager-numeric', PagerNumeric);
package/src/lang/ar.js CHANGED
@@ -20,5 +20,10 @@ export default {
20
20
  "components:optInFlyout:tutorialAndHelpMessage": "شاهد *الدروس التعليمية* الخاصة بنا أو اقرأ ~مستندات التعليمات الخاصة بنا~ للبدء!",
21
21
  "components:optInFlyout:tutorialMessage": "شاهد *الدروس التعليمية* الخاصة بنا لمساعدتك على البدء!",
22
22
  "components:optInFlyout:turnOff": "إيقاف التشغيل",
23
- "components:optInFlyout:turnOn": "التشغيل"
23
+ "components:optInFlyout:turnOn": "التشغيل",
24
+ "components:pagination:amountPerPage" : "{count} لكل صفحة",
25
+ "components:pagination:currentPage": "رقم الصفحة {pageNumber} من {maxPageNumber}",
26
+ "components:pagination:nextPage" : "الصفحة التالية",
27
+ "components:pagination:previousPage" : "الصفحة السابقة",
28
+ "components:pagination:resultsPerPage" : "النتائج لكل صفحة"
24
29
  };
package/src/lang/cy.js CHANGED
@@ -21,5 +21,10 @@ export default {
21
21
  "components:optInFlyout:turnOff": "Diffoddwch e",
22
22
  "components:optInFlyout:turnOn": "Trowch e ymlaen",
23
23
  "components:optInFlyout:tutorialAndHelpMessage": "Gwyliwch ein *tiwtorialau* neu darllenwch ein ~dogfennaeth cymorth~ i gychwyn arni!",
24
- "components:optInFlyout:tutorialMessage": "Gwyliwch ein *tiwtorialau* i’ch helpu i gychwyn arni!"
24
+ "components:optInFlyout:tutorialMessage": "Gwyliwch ein *tiwtorialau* i’ch helpu i gychwyn arni!",
25
+ "components:pagination:amountPerPage" : "{count} fesul tudalen",
26
+ "components:pagination:currentPage": "Rhif tudalen {pageNumber} o {maxPageNumber}",
27
+ "components:pagination:nextPage" : "Tudalen nesaf",
28
+ "components:pagination:previousPage" : "Y dudalen flaenorol",
29
+ "components:pagination:resultsPerPage" : "Canlyniadau fesul tudalen"
25
30
  };
package/src/lang/da.js CHANGED
@@ -21,5 +21,10 @@ export default {
21
21
  "components:optInFlyout:turnOff": "Slå den fra",
22
22
  "components:optInFlyout:turnOn": "Slå den til",
23
23
  "components:optInFlyout:tutorialAndHelpMessage": "Se vores *selvstudier*, eller læs vores ~hjælp-dokumentation~ for at komme i gang!",
24
- "components:optInFlyout:tutorialMessage": "Se vores *selvstudier* for at komme i gang!"
24
+ "components:optInFlyout:tutorialMessage": "Se vores *selvstudier* for at komme i gang!",
25
+ "components:pagination:amountPerPage" : "{count} pr. side",
26
+ "components:pagination:currentPage": "Sidenummer {pageNumber} af {maxPageNumber}",
27
+ "components:pagination:nextPage" : "Næste side",
28
+ "components:pagination:previousPage" : "Forrige side",
29
+ "components:pagination:resultsPerPage" : "Resultater pr. side"
25
30
  };
package/src/lang/de.js CHANGED
@@ -21,5 +21,10 @@ export default {
21
21
  "components:optInFlyout:turnOff": "Ausschalten",
22
22
  "components:optInFlyout:turnOn": "Einschalten",
23
23
  "components:optInFlyout:tutorialAndHelpMessage": "Sehen Sie unsere *Tutorials* an, oder lesen Sie unsere ~Hilfe-Dokumentation~, um zu beginnen!",
24
- "components:optInFlyout:tutorialMessage": "Unsere *Tutorials* helfen Ihnen beim Start!"
24
+ "components:optInFlyout:tutorialMessage": "Unsere *Tutorials* helfen Ihnen beim Start!",
25
+ "components:pagination:amountPerPage" : "{count} pro Seite",
26
+ "components:pagination:currentPage": "Seitennummer {pageNumber} von {maxPageNumber}",
27
+ "components:pagination:nextPage" : "Nächste Seite",
28
+ "components:pagination:previousPage" : "Vorherige Seite",
29
+ "components:pagination:resultsPerPage" : "Ergebnisse pro Seite"
25
30
  };
package/src/lang/en.js CHANGED
@@ -21,5 +21,10 @@ export default {
21
21
  "components:optInFlyout:turnOff": "Turn it off",
22
22
  "components:optInFlyout:turnOn": "Turn it on",
23
23
  "components:optInFlyout:tutorialAndHelpMessage": "Watch our *tutorials* or read our ~help documentation~ to get started!",
24
- "components:optInFlyout:tutorialMessage": "Watch our *tutorials* to help you get started!"
24
+ "components:optInFlyout:tutorialMessage": "Watch our *tutorials* to help you get started!",
25
+ "components:pagination:amountPerPage": "{count} per page",
26
+ "components:pagination:currentPage": "Page number {pageNumber} of {maxPageNumber}",
27
+ "components:pagination:nextPage": "Next page",
28
+ "components:pagination:previousPage": "Previous page",
29
+ "components:pagination:resultsPerPage": "Results per page"
25
30
  };
package/src/lang/es-es.js CHANGED
@@ -21,5 +21,10 @@ export default {
21
21
  "components:optInFlyout:turnOff": "Desactivar",
22
22
  "components:optInFlyout:turnOn": "Activar",
23
23
  "components:optInFlyout:tutorialAndHelpMessage": "Consulte nuestros *tutoriales* o lea nuestra ~documentación de ayuda~ para comenzar.",
24
- "components:optInFlyout:tutorialMessage": "Consulte nuestros *tutoriales* como ayuda adicional para empezar."
24
+ "components:optInFlyout:tutorialMessage": "Consulte nuestros *tutoriales* como ayuda adicional para empezar.",
25
+ "components:pagination:amountPerPage" : "{count} por página",
26
+ "components:pagination:currentPage": "Página número {pageNumber} de {maxPageNumber}",
27
+ "components:pagination:nextPage" : "Página siguiente",
28
+ "components:pagination:previousPage" : "Página anterior",
29
+ "components:pagination:resultsPerPage" : "Resultados por página"
25
30
  };
package/src/lang/es.js CHANGED
@@ -21,5 +21,10 @@ export default {
21
21
  "components:optInFlyout:turnOff": "Desactivar",
22
22
  "components:optInFlyout:turnOn": "Activar",
23
23
  "components:optInFlyout:tutorialAndHelpMessage": "Vea nuestros *tutoriales* o lea nuestra ~documentación de ayuda~ para comenzar.",
24
- "components:optInFlyout:tutorialMessage": "Vea nuestros *tutoriales* para saber cómo comenzar."
24
+ "components:optInFlyout:tutorialMessage": "Vea nuestros *tutoriales* para saber cómo comenzar.",
25
+ "components:pagination:amountPerPage" : "{count} por página",
26
+ "components:pagination:currentPage": "Página número {pageNumber} de {maxPageNumber}",
27
+ "components:pagination:nextPage" : "Página siguiente",
28
+ "components:pagination:previousPage" : "Página anterior",
29
+ "components:pagination:resultsPerPage" : "Resultados por página"
25
30
  };
package/src/lang/fr-fr.js CHANGED
@@ -21,5 +21,10 @@ export default {
21
21
  "components:optInFlyout:turnOff": "Désactiver",
22
22
  "components:optInFlyout:turnOn": "Activer",
23
23
  "components:optInFlyout:tutorialAndHelpMessage": "Regardez nos * tutoriels *ou lisez notre ~ documentation d’aide ~ pour commencer !",
24
- "components:optInFlyout:tutorialMessage": "Regardez nos * tutoriels * pour vous aider à démarrer !"
24
+ "components:optInFlyout:tutorialMessage": "Regardez nos * tutoriels * pour vous aider à démarrer !",
25
+ "components:pagination:amountPerPage" : "{count} par page",
26
+ "components:pagination:currentPage": "Page numéro {pageNumber} sur {maxPageNumber}",
27
+ "components:pagination:nextPage" : "Page suivante",
28
+ "components:pagination:previousPage" : "Page précédente",
29
+ "components:pagination:resultsPerPage" : "Résultats par page"
25
30
  };
package/src/lang/fr.js CHANGED
@@ -21,5 +21,10 @@ export default {
21
21
  "components:optInFlyout:turnOff": "Fermer",
22
22
  "components:optInFlyout:turnOn": "Activer",
23
23
  "components:optInFlyout:tutorialAndHelpMessage": "Découvrez nos *tutoriels* ou lisez notre ~documentation d’assistance~ pour pouvoir débuter!",
24
- "components:optInFlyout:tutorialMessage": "Découvrez nos *tutoriels* pour vous aider à commencer du bon pied!"
24
+ "components:optInFlyout:tutorialMessage": "Découvrez nos *tutoriels* pour vous aider à commencer du bon pied!",
25
+ "components:pagination:amountPerPage" : "{count} par page",
26
+ "components:pagination:currentPage": "Numéro de page {pageNumber} de {maxPageNumber}",
27
+ "components:pagination:nextPage" : "Page suivante",
28
+ "components:pagination:previousPage" : "Page précédente",
29
+ "components:pagination:resultsPerPage" : "Résultats par page"
25
30
  };
package/src/lang/hi.js CHANGED
@@ -21,5 +21,10 @@ export default {
21
21
  "components:optInFlyout:turnOff": "इसे बंद करें",
22
22
  "components:optInFlyout:turnOn": "इसे चालू करें",
23
23
  "components:optInFlyout:tutorialAndHelpMessage": "शुरू करने के लिए हमारे *ट्यूटोरियल* देखें या हमारे ~मदद दस्तावेज़~ पढ़ें!",
24
- "components:optInFlyout:tutorialMessage": "शुरू करने में आपकी मदद के लिए हमारे *ट्यूटोरियल* देखें!"
24
+ "components:optInFlyout:tutorialMessage": "शुरू करने में आपकी मदद के लिए हमारे *ट्यूटोरियल* देखें!",
25
+ "components:pagination:amountPerPage" : "प्रति पेज {count}",
26
+ "components:pagination:currentPage": "{maxPageNumber} में से पेज नंबर {pageNumber}",
27
+ "components:pagination:nextPage" : "अगला पेज",
28
+ "components:pagination:previousPage" : "पिछला पेज",
29
+ "components:pagination:resultsPerPage" : "प्रति पेज के परिणाम"
25
30
  };
package/src/lang/ja.js CHANGED
@@ -21,5 +21,10 @@ export default {
21
21
  "components:optInFlyout:turnOff": "オフにする",
22
22
  "components:optInFlyout:turnOn": "オンにする",
23
23
  "components:optInFlyout:tutorialAndHelpMessage": "はじめに*チュートリアル*をご覧になるか、~ヘルプドキュメント~をお読みください。",
24
- "components:optInFlyout:tutorialMessage": "ぜひ*チュートリアル*をご覧になり、ご利用を開始してください。"
24
+ "components:optInFlyout:tutorialMessage": "ぜひ*チュートリアル*をご覧になり、ご利用を開始してください。",
25
+ "components:pagination:amountPerPage" : "ページごとの {count}",
26
+ "components:pagination:currentPage": "{maxPageNumber} のページ番号 {pageNumber}",
27
+ "components:pagination:nextPage" : "次のページ",
28
+ "components:pagination:previousPage" : "前のページ",
29
+ "components:pagination:resultsPerPage" : "ページごとの結果"
25
30
  };
package/src/lang/ko.js CHANGED
@@ -21,5 +21,10 @@ export default {
21
21
  "components:optInFlyout:turnOff": "비활성화",
22
22
  "components:optInFlyout:turnOn": "활성화",
23
23
  "components:optInFlyout:tutorialAndHelpMessage": "시작하려면 *개별지도*를 시청하거나 ~도움말 설명서~를 읽어보십시오!",
24
- "components:optInFlyout:tutorialMessage": "시작하는 데 도움이 되는 *개별지도*를 시청하십시오."
24
+ "components:optInFlyout:tutorialMessage": "시작하는 데 도움이 되는 *개별지도*를 시청하십시오.",
25
+ "components:pagination:amountPerPage" : "페이지당 {count}개",
26
+ "components:pagination:currentPage": "{maxPageNumber}의 페이지 번호 {pageNumber}",
27
+ "components:pagination:nextPage" : "다음 페이지",
28
+ "components:pagination:previousPage" : "이전 페이지",
29
+ "components:pagination:resultsPerPage" : "페이지당 결과 수"
25
30
  };
package/src/lang/nl.js CHANGED
@@ -21,5 +21,10 @@ export default {
21
21
  "components:optInFlyout:turnOff": "Uitschakelen",
22
22
  "components:optInFlyout:turnOn": "Inschakelen",
23
23
  "components:optInFlyout:tutorialAndHelpMessage": "Lees onze *zelfstudies* of onze ~helpdocumentatie~ om aan de slag te gaan.",
24
- "components:optInFlyout:tutorialMessage": "Bekijk onze *zelfstudies* om aan de slag te gaan."
24
+ "components:optInFlyout:tutorialMessage": "Bekijk onze *zelfstudies* om aan de slag te gaan.",
25
+ "components:pagination:amountPerPage" : "{count} per pagina",
26
+ "components:pagination:currentPage": "Paginanummer {pageNumber} van {maxPageNumber}",
27
+ "components:pagination:nextPage" : "Volgende pagina",
28
+ "components:pagination:previousPage" : "Vorige pagina",
29
+ "components:pagination:resultsPerPage" : "Resultaten per pagina"
25
30
  };
package/src/lang/pt.js CHANGED
@@ -21,5 +21,10 @@ export default {
21
21
  "components:optInFlyout:turnOff": "Desligar",
22
22
  "components:optInFlyout:turnOn": "Ativar",
23
23
  "components:optInFlyout:tutorialAndHelpMessage": "Assista aos nossos *tutoriais* ou leia a nossa ~documentação de ajuda~ para começar!",
24
- "components:optInFlyout:tutorialMessage": "Assista aos nossos *tutoriais* para ajudar você a começar!"
24
+ "components:optInFlyout:tutorialMessage": "Assista aos nossos *tutoriais* para ajudar você a começar!",
25
+ "components:pagination:amountPerPage" : "{count} por página",
26
+ "components:pagination:currentPage": "Número da página {pageNumber} de {maxPageNumber}",
27
+ "components:pagination:nextPage" : "Próxima página",
28
+ "components:pagination:previousPage" : "Página anterior",
29
+ "components:pagination:resultsPerPage" : "Resultados por página"
25
30
  };
package/src/lang/sv.js CHANGED
@@ -21,5 +21,10 @@ export default {
21
21
  "components:optInFlyout:turnOff": "Stäng av",
22
22
  "components:optInFlyout:turnOn": "Sätt på",
23
23
  "components:optInFlyout:tutorialAndHelpMessage": "Se våra *handledningar* eller läs vår ~hjälpdokumentation~ för att komma igång!",
24
- "components:optInFlyout:tutorialMessage": "Se våra *handledningar* som hjälper dig att komma igång!"
24
+ "components:optInFlyout:tutorialMessage": "Se våra *handledningar* som hjälper dig att komma igång!",
25
+ "components:pagination:amountPerPage" : "{count} per sida",
26
+ "components:pagination:currentPage": "Sidnummer {pageNumber} av {maxPageNumber}",
27
+ "components:pagination:nextPage" : "Nästa sida",
28
+ "components:pagination:previousPage" : "Föregående sida",
29
+ "components:pagination:resultsPerPage" : "Resultat per sida"
25
30
  };
package/src/lang/tr.js CHANGED
@@ -21,5 +21,10 @@ export default {
21
21
  "components:optInFlyout:turnOff": "Kapat",
22
22
  "components:optInFlyout:turnOn": "Aç",
23
23
  "components:optInFlyout:tutorialAndHelpMessage": "*Eğitimlerimizi\" izleyerek ya da ~yardım belgemizi~ okuyarak başlayın!",
24
- "components:optInFlyout:tutorialMessage": "Başlamanıza yardımcı olacak *eğitimlerimizi* izleyin!"
24
+ "components:optInFlyout:tutorialMessage": "Başlamanıza yardımcı olacak *eğitimlerimizi* izleyin!",
25
+ "components:pagination:amountPerPage" : "Sayfa başına {count}",
26
+ "components:pagination:currentPage": "Sayfa numarası {pageNumber} / {maxPageNumber}",
27
+ "components:pagination:nextPage" : "Sonraki sayfa",
28
+ "components:pagination:previousPage" : "Önceki sayfa",
29
+ "components:pagination:resultsPerPage" : "Sayfa başına sonuç"
25
30
  };
package/src/lang/zh-cn.js CHANGED
@@ -21,5 +21,10 @@ export default {
21
21
  "components:optInFlyout:turnOff": "关闭",
22
22
  "components:optInFlyout:turnOn": "开启",
23
23
  "components:optInFlyout:tutorialAndHelpMessage": "观看我们的*教程*或阅读我们的~帮助文档~,以便快速入门!",
24
- "components:optInFlyout:tutorialMessage": "观看我们的*教程*帮助您快速入门!"
24
+ "components:optInFlyout:tutorialMessage": "观看我们的*教程*帮助您快速入门!",
25
+ "components:pagination:amountPerPage" : "每页 {count} 个结果",
26
+ "components:pagination:currentPage": "页码 { pageNumber } ,共 { maxPageNumber } 页",
27
+ "components:pagination:nextPage" : "下一页",
28
+ "components:pagination:previousPage" : "上一页",
29
+ "components:pagination:resultsPerPage" : "每页结果数"
25
30
  };
package/src/lang/zh-tw.js CHANGED
@@ -21,5 +21,10 @@ export default {
21
21
  "components:optInFlyout:turnOff": "關閉",
22
22
  "components:optInFlyout:turnOn": "開啟",
23
23
  "components:optInFlyout:tutorialAndHelpMessage": "觀看我們的 *教學課程* 或閱讀 ~說明文件~ 以開始使用!",
24
- "components:optInFlyout:tutorialMessage": "觀看我們的 *教學課程*,協助您開始使用!"
24
+ "components:optInFlyout:tutorialMessage": "觀看我們的 *教學課程*,協助您開始使用!",
25
+ "components:pagination:amountPerPage" : "每頁 {count} 個",
26
+ "components:pagination:currentPage": "頁碼 {pageNumber} / {maxPageNumber}",
27
+ "components:pagination:nextPage" : "下一頁",
28
+ "components:pagination:previousPage" : "上一頁",
29
+ "components:pagination:resultsPerPage" : "每頁結果"
25
30
  };