@umbraco-ui/uui-pagination 1.8.0 → 1.9.0-rc.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/lib/index.js +3 -6
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -21,8 +21,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
21
21
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
22
22
|
if (decorator = decorators[i])
|
|
23
23
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
24
|
-
if (kind && result)
|
|
25
|
-
__defProp(target, key, result);
|
|
24
|
+
if (kind && result) __defProp(target, key, result);
|
|
26
25
|
return result;
|
|
27
26
|
};
|
|
28
27
|
const PAGE_BUTTON_MAX_WIDTH = 45;
|
|
@@ -45,8 +44,7 @@ let UUIPaginationElement = class extends LitElement {
|
|
|
45
44
|
}
|
|
46
45
|
connectedCallback() {
|
|
47
46
|
super.connectedCallback();
|
|
48
|
-
if (!this.hasAttribute("role"))
|
|
49
|
-
this.setAttribute("role", "navigation");
|
|
47
|
+
if (!this.hasAttribute("role")) this.setAttribute("role", "navigation");
|
|
50
48
|
this._visiblePages = this._generateVisiblePages(this.current);
|
|
51
49
|
demandCustomElement(this, "uui-button");
|
|
52
50
|
demandCustomElement(this, "uui-button-group");
|
|
@@ -210,8 +208,7 @@ let UUIPaginationElement = class extends LitElement {
|
|
|
210
208
|
class=${"page" + (page === this._current ? " active" : "")}
|
|
211
209
|
tabindex=${page === this._current ? "-1" : ""}
|
|
212
210
|
@click=${() => {
|
|
213
|
-
if (page === this._current)
|
|
214
|
-
return;
|
|
211
|
+
if (page === this._current) return;
|
|
215
212
|
this.goToPage(page);
|
|
216
213
|
this.focusActivePage();
|
|
217
214
|
}}>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-ui/uui-pagination",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0-rc.0",
|
|
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": "1.
|
|
34
|
-
"@umbraco-ui/uui-button": "1.
|
|
35
|
-
"@umbraco-ui/uui-button-group": "1.
|
|
33
|
+
"@umbraco-ui/uui-base": "1.9.0-rc.0",
|
|
34
|
+
"@umbraco-ui/uui-button": "1.9.0-rc.0",
|
|
35
|
+
"@umbraco-ui/uui-button-group": "1.9.0-rc.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "npm run analyze && tsc --build && 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": "e3e398e07b6ff9874aa0656cb7767df42f58a4ce"
|
|
47
47
|
}
|