@umbraco-ui/uui-pagination 0.1.1 → 0.2.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.
- package/lib/index.js +11 -6
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -112,7 +112,7 @@ let UUIPaginationElement = class extends LitElement {
|
|
|
112
112
|
look="outline"
|
|
113
113
|
class="nav"
|
|
114
114
|
role="listitem"
|
|
115
|
-
|
|
115
|
+
label="Go to first page"
|
|
116
116
|
?disabled=${this._current === 1}
|
|
117
117
|
@click=${() => this.goToPage(1)}>
|
|
118
118
|
First
|
|
@@ -124,7 +124,7 @@ let UUIPaginationElement = class extends LitElement {
|
|
|
124
124
|
look="outline"
|
|
125
125
|
class="nav"
|
|
126
126
|
role="listitem"
|
|
127
|
-
|
|
127
|
+
label="Go to previous page"
|
|
128
128
|
?disabled=${this._current === 1}
|
|
129
129
|
@click=${this.goToPreviousPage}>
|
|
130
130
|
Previous
|
|
@@ -136,7 +136,7 @@ let UUIPaginationElement = class extends LitElement {
|
|
|
136
136
|
look="outline"
|
|
137
137
|
role="listitem"
|
|
138
138
|
class="nav"
|
|
139
|
-
|
|
139
|
+
label="Go to next page"
|
|
140
140
|
?disabled=${this._current === this.total}
|
|
141
141
|
@click=${this.goToNextPage}>
|
|
142
142
|
Next
|
|
@@ -149,7 +149,7 @@ let UUIPaginationElement = class extends LitElement {
|
|
|
149
149
|
look="outline"
|
|
150
150
|
role="listitem"
|
|
151
151
|
class="nav"
|
|
152
|
-
|
|
152
|
+
label="Go to last page"
|
|
153
153
|
?disabled=${this.total === this._current}
|
|
154
154
|
@click=${() => this.goToPage(this.total)}>
|
|
155
155
|
Last
|
|
@@ -157,7 +157,12 @@ let UUIPaginationElement = class extends LitElement {
|
|
|
157
157
|
`;
|
|
158
158
|
}
|
|
159
159
|
renderDots() {
|
|
160
|
-
return html`<uui-button
|
|
160
|
+
return html`<uui-button
|
|
161
|
+
compact
|
|
162
|
+
look="outline"
|
|
163
|
+
tabindex="-1"
|
|
164
|
+
class="dots"
|
|
165
|
+
label="More pages"
|
|
161
166
|
>...</uui-button
|
|
162
167
|
> `;
|
|
163
168
|
}
|
|
@@ -166,7 +171,7 @@ let UUIPaginationElement = class extends LitElement {
|
|
|
166
171
|
compact
|
|
167
172
|
look="outline"
|
|
168
173
|
role="listitem"
|
|
169
|
-
|
|
174
|
+
label="Go to page ${page}"
|
|
170
175
|
class=${"page" + (page === this._current ? " active" : "")}
|
|
171
176
|
tabindex=${page === this._current ? "-1" : ""}
|
|
172
177
|
@click=${() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-ui/uui-pagination",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Umbraco",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"custom-elements.json"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@umbraco-ui/uui-base": "0.
|
|
34
|
-
"@umbraco-ui/uui-button": "0.
|
|
35
|
-
"@umbraco-ui/uui-button-group": "0.
|
|
33
|
+
"@umbraco-ui/uui-base": "0.2.1",
|
|
34
|
+
"@umbraco-ui/uui-button": "0.3.1",
|
|
35
|
+
"@umbraco-ui/uui-button-group": "0.2.1"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://uui.umbraco.com/?path=/story/uui-pagination",
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "cb61546f85d6c2f122fa8c130409507e8def4bd5"
|
|
47
47
|
}
|