@jumpgroup/jump-design-system 0.2.5 → 0.2.6
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/dist/cjs/jump-badge.cjs.entry.js +1 -1
- package/dist/cjs/jump-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-button.cjs.entry.js +1 -1
- package/dist/cjs/jump-button.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-design-system.cjs.js +1 -1
- package/dist/cjs/jump-icon.cjs.entry.js +1 -1
- package/dist/cjs/jump-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-pagination-table.cjs.entry.js +79 -0
- package/dist/cjs/jump-pagination-table.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-pagination.cjs.entry.js +14 -26
- package/dist/cjs/jump-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-tab.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/jump-badge/jump-badge.css +1 -1
- package/dist/collection/components/jump-button/jump-button-dimension.stories.js +3 -3
- package/dist/collection/components/jump-button/jump-button-dimension.stories.js.map +1 -1
- package/dist/collection/components/jump-button/jump-button.css +12 -61
- package/dist/collection/components/jump-card/jump-card.stories.js +0 -8
- package/dist/collection/components/jump-card/jump-card.stories.js.map +1 -1
- package/dist/collection/components/jump-icon/jump-icon.css +4 -4
- package/dist/collection/components/jump-pagination/jump-pagination.css +8 -18
- package/dist/collection/components/jump-pagination/jump-pagination.js +20 -125
- package/dist/collection/components/jump-pagination/jump-pagination.js.map +1 -1
- package/dist/collection/components/jump-pagination/jump-pagination.stories.js +68 -0
- package/dist/collection/components/jump-pagination/jump-pagination.stories.js.map +1 -0
- package/dist/collection/components/jump-pagination-table/jump-pagination-table.css +56 -0
- package/dist/collection/components/jump-pagination-table/jump-pagination-table.js +262 -0
- package/dist/collection/components/jump-pagination-table/jump-pagination-table.js.map +1 -0
- package/dist/collection/components/jump-pagination-table/jump-pagination-table.stories.js +90 -0
- package/dist/collection/components/jump-pagination-table/jump-pagination-table.stories.js.map +1 -0
- package/dist/collection/components/jump-pagination-table/test/jump-pagination-table.e2e.js +10 -0
- package/dist/collection/components/jump-pagination-table/test/jump-pagination-table.e2e.js.map +1 -0
- package/dist/collection/components/jump-pagination-table/test/jump-pagination-table.spec.js +18 -0
- package/dist/collection/components/jump-pagination-table/test/jump-pagination-table.spec.js.map +1 -0
- package/dist/collection/components/jump-tab/jump-tab.js +1 -1
- package/dist/components/jump-badge.js +1 -1
- package/dist/components/jump-badge.js.map +1 -1
- package/dist/components/jump-button.js +1 -1
- package/dist/components/jump-button.js.map +1 -1
- package/dist/components/jump-icon2.js +1 -1
- package/dist/components/jump-icon2.js.map +1 -1
- package/dist/components/jump-pagination-table.d.ts +11 -0
- package/dist/components/jump-pagination-table.js +109 -0
- package/dist/components/jump-pagination-table.js.map +1 -0
- package/dist/components/jump-pagination.js +19 -37
- package/dist/components/jump-pagination.js.map +1 -1
- package/dist/components/jump-tab.js +1 -1
- package/dist/esm/jump-badge.entry.js +1 -1
- package/dist/esm/jump-badge.entry.js.map +1 -1
- package/dist/esm/jump-button.entry.js +1 -1
- package/dist/esm/jump-button.entry.js.map +1 -1
- package/dist/esm/jump-design-system.js +1 -1
- package/dist/esm/jump-icon.entry.js +1 -1
- package/dist/esm/jump-icon.entry.js.map +1 -1
- package/dist/esm/jump-pagination-table.entry.js +75 -0
- package/dist/esm/jump-pagination-table.entry.js.map +1 -0
- package/dist/esm/jump-pagination.entry.js +14 -26
- package/dist/esm/jump-pagination.entry.js.map +1 -1
- package/dist/esm/jump-tab.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/jump-design-system/jump-design-system.esm.js +1 -1
- package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
- package/dist/jump-design-system/p-1a533536.entry.js +2 -0
- package/dist/jump-design-system/p-1a533536.entry.js.map +1 -0
- package/dist/jump-design-system/{p-511d4425.entry.js → p-36c7c94d.entry.js} +2 -2
- package/dist/jump-design-system/{p-511d4425.entry.js.map → p-36c7c94d.entry.js.map} +1 -1
- package/dist/jump-design-system/{p-61729377.entry.js → p-93d8245f.entry.js} +2 -2
- package/dist/jump-design-system/{p-8f5caf32.entry.js → p-9ad27c08.entry.js} +2 -2
- package/dist/jump-design-system/{p-8f5caf32.entry.js.map → p-9ad27c08.entry.js.map} +1 -1
- package/dist/jump-design-system/p-c8244738.entry.js +2 -0
- package/dist/jump-design-system/p-c8244738.entry.js.map +1 -0
- package/dist/jump-design-system/p-eb16952a.entry.js +2 -0
- package/dist/jump-design-system/p-eb16952a.entry.js.map +1 -0
- package/dist/jump-design-system-elements.json +26 -5
- package/dist/types/components/jump-pagination/jump-pagination.d.ts +4 -22
- package/dist/types/components/jump-pagination/jump-pagination.stories.d.ts +30 -0
- package/dist/types/components/jump-pagination-table/jump-pagination-table.d.ts +23 -0
- package/dist/types/components/{jump-pagination/jump-pagination-products.stories.d.ts → jump-pagination-table/jump-pagination-table.stories.d.ts} +11 -39
- package/dist/types/components.d.ts +46 -15
- package/package.json +1 -1
- package/dist/collection/components/jump-pagination/jump-pagination-pages.stories.js +0 -119
- package/dist/collection/components/jump-pagination/jump-pagination-pages.stories.js.map +0 -1
- package/dist/collection/components/jump-pagination/jump-pagination-products.stories.js +0 -102
- package/dist/collection/components/jump-pagination/jump-pagination-products.stories.js.map +0 -1
- package/dist/jump-design-system/p-87256ed6.entry.js +0 -2
- package/dist/jump-design-system/p-87256ed6.entry.js.map +0 -1
- package/dist/jump-design-system/p-960188c6.entry.js +0 -2
- package/dist/jump-design-system/p-960188c6.entry.js.map +0 -1
- package/dist/types/components/jump-pagination/jump-pagination-pages.stories.d.ts +0 -75
- /package/dist/jump-design-system/{p-61729377.entry.js.map → p-93d8245f.entry.js.map} +0 -0
|
@@ -1,41 +1,29 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class JumpPagination {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.
|
|
5
|
-
this.currentPage = undefined;
|
|
6
|
-
this.totalElements = undefined;
|
|
4
|
+
this.current = 1;
|
|
7
5
|
this.pagLabel = 'di';
|
|
8
|
-
this.
|
|
9
|
-
this.lastPage = 10;
|
|
10
|
-
this.labelElementsPerPage = 'Elementi per pagina';
|
|
11
|
-
this.elementsRanges = [10, 20, 60, 100];
|
|
12
|
-
this.completeVersion = false;
|
|
6
|
+
this.last = 10;
|
|
13
7
|
this.showFirstAndLast = false;
|
|
14
8
|
}
|
|
15
|
-
|
|
9
|
+
watchcurrent(newValue, oldValue) {
|
|
16
10
|
let details = {
|
|
17
|
-
|
|
11
|
+
current: newValue,
|
|
18
12
|
previousPage: oldValue,
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
first: 1,
|
|
14
|
+
last: this.last,
|
|
21
15
|
direction: newValue > oldValue ? 'next' : 'prev'
|
|
22
16
|
};
|
|
23
|
-
this.
|
|
17
|
+
this.changePage.emit(details);
|
|
24
18
|
}
|
|
25
19
|
/* ---------------------- @LIFECYCLE ------------------------- */
|
|
26
20
|
componentWillLoad() {
|
|
27
|
-
this.
|
|
21
|
+
this.current = 1;
|
|
28
22
|
}
|
|
29
23
|
render() {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
h("div", { key: '13daa8e819ec294b50823becc7e8d904eff66f32', class: "elementsPerPage" }, h("label", { key: '162555e0ebfc295d96d5ba358ec879eba1730746', htmlFor: "elements" }, (_a = this.labelElementsPerPage) !== null && _a !== void 0 ? _a : 'Elements per page'), h("select", { key: 'c4e99d784347a67c5616b3ed0ca25934dbdae55f', name: "elements", id: "elements" }, this.elementsRanges.map((range) => (h("option", { value: range }, range))))), h("div", { key: '5eb516226cf5bcb23e575109371c4f55ca235e04', class: "indicators" }, h("div", { key: '58a8655b582e8cdcd9f8c553343d9e407dd66971', class: "elements" }, this.completeVersion ?
|
|
34
|
-
h("span", null, h("span", null, this.firstPage), " - ", h("span", null, this.currentPage), " ", this.pagLabel, " ", h("span", null, this.totalElements))
|
|
35
|
-
:
|
|
36
|
-
h("span", null, h("span", null, this.currentPage), " ", this.pagLabel, " ", h("span", null, this.lastPage))), h("div", { key: '92b5476c223e477532726304c282ed34e1acccc7', class: "arrow" }, this.showFirstAndLast &&
|
|
37
|
-
h("button", { key: '740c67ee4f73c5a55a022b2281913d8652deeed2', onClick: () => { this.currentPage = this.firstPage; }, disabled: (this.currentPage === this.firstPage) ? true : false }, " ", h("jump-icon", { key: '5a880ea7c01afcc8ae9a4e84934e386e0edab58c', slot: "prefix", name: "chevrons-left" }), " "), h("button", { key: '08fe7f7faa6c7645151ec3ea2b4bf4247f082a2d', onClick: () => { this.currentPage--; }, disabled: (this.currentPage === this.firstPage) ? true : false }, " ", h("jump-icon", { key: '04a972584533f1272b10c7e9068ce332aef77299', slot: "prefix", name: "chevron-left" }), " "), h("button", { key: '0ea012c03b06b587296c9190eece67351579b6e3', onClick: () => { this.currentPage++; }, disabled: (this.currentPage === this.lastPage) ? true : false }, " ", h("jump-icon", { key: '155d6a407989f9cc5d38832df8fb98a3505c3113', slot: "prefix", name: "chevron-right" }), " "), this.showFirstAndLast &&
|
|
38
|
-
h("button", { key: 'be46c67831f6d732d47e9340aca1a43a650af958', onClick: () => { this.currentPage = this.lastPage; }, disabled: (this.currentPage === this.lastPage) ? true : false }, " ", h("jump-icon", { key: 'b04a3d8a8726f945d5639761dde68a300e40f80a', slot: "prefix", name: "chevrons-right" }), " "))))));
|
|
24
|
+
return (h(Host, { key: '2a7576df479d537fce9ddb57bbd1c2281966338a', class: "JumpPagination" }, h("div", { key: 'b17c027eeeb798a07575a329d6d84b378258c3f8', class: "JumpPagination__Wrapper" }, h("div", { key: 'afd615f030a3affbc8eb42eca80b15c19d248865', class: "indicators" }, h("div", { key: '62ba94ec7d2a97e9c9cb4b305817c65fe841b8d2', class: "elements" }, h("span", { key: '72a1e04a055661f44add8d8a6b7da470ca4dc141' }, h("span", { key: '17d723e90600fc2dd461b3df5806ae1a53f8a9e2' }, this.current), " ", this.pagLabel, " ", h("span", { key: '8226df90a89580310fc165fb3283de0d850a9edd' }, this.last))), h("div", { key: '6ba82177760ff8722071d9306e7c997bb651b838', class: "arrow" }, this.showFirstAndLast &&
|
|
25
|
+
h("button", { key: 'f97ce0ac5ae55f5efa46e3049740f0e71d30d51a', onClick: () => { this.current = 1; }, disabled: (this.current === 1) ? true : false }, " ", h("jump-icon", { key: 'a3beda6c56fb82248712c4c185bafd7d1ab2b05b', slot: "prefix", name: "chevrons-left" }), " "), h("button", { key: 'f989324f4950b41d3224ec4661416f76eacc1c4b', onClick: () => { this.current--; }, disabled: (this.current === 1) ? true : false }, " ", h("jump-icon", { key: '282db7bb875d3fb32f2ed4e5f7aa445c369fc916', slot: "prefix", name: "chevron-left" }), " "), h("button", { key: '65f1681d7f53d756c111aaba7e8473545c903eb7', onClick: () => { this.current++; }, disabled: (this.current === this.last) ? true : false }, " ", h("jump-icon", { key: 'a8365aa471c81a95b470bbc333fe4119f77dc72e', slot: "prefix", name: "chevron-right" }), " "), this.showFirstAndLast &&
|
|
26
|
+
h("button", { key: 'df7fa6824a028b74042b6a08191e1979ed42617b', onClick: () => { this.current = this.last; }, disabled: (this.current === this.last) ? true : false }, " ", h("jump-icon", { key: '101a5fca010de64d804b8b8dbd336e1ad498c958', slot: "prefix", name: "chevrons-right" }), " "))))));
|
|
39
27
|
}
|
|
40
28
|
static get is() { return "jump-pagination"; }
|
|
41
29
|
static get originalStyleUrls() {
|
|
@@ -50,23 +38,6 @@ export class JumpPagination {
|
|
|
50
38
|
}
|
|
51
39
|
static get properties() {
|
|
52
40
|
return {
|
|
53
|
-
"totalElements": {
|
|
54
|
-
"type": "number",
|
|
55
|
-
"mutable": false,
|
|
56
|
-
"complexType": {
|
|
57
|
-
"original": "number",
|
|
58
|
-
"resolved": "number",
|
|
59
|
-
"references": {}
|
|
60
|
-
},
|
|
61
|
-
"required": false,
|
|
62
|
-
"optional": false,
|
|
63
|
-
"docs": {
|
|
64
|
-
"tags": [],
|
|
65
|
-
"text": ""
|
|
66
|
-
},
|
|
67
|
-
"attribute": "total-elements",
|
|
68
|
-
"reflect": true
|
|
69
|
-
},
|
|
70
41
|
"pagLabel": {
|
|
71
42
|
"type": "string",
|
|
72
43
|
"mutable": false,
|
|
@@ -82,28 +53,10 @@ export class JumpPagination {
|
|
|
82
53
|
"text": ""
|
|
83
54
|
},
|
|
84
55
|
"attribute": "pag-label",
|
|
85
|
-
"reflect":
|
|
56
|
+
"reflect": false,
|
|
86
57
|
"defaultValue": "'di'"
|
|
87
58
|
},
|
|
88
|
-
"
|
|
89
|
-
"type": "number",
|
|
90
|
-
"mutable": false,
|
|
91
|
-
"complexType": {
|
|
92
|
-
"original": "number",
|
|
93
|
-
"resolved": "number",
|
|
94
|
-
"references": {}
|
|
95
|
-
},
|
|
96
|
-
"required": false,
|
|
97
|
-
"optional": false,
|
|
98
|
-
"docs": {
|
|
99
|
-
"tags": [],
|
|
100
|
-
"text": ""
|
|
101
|
-
},
|
|
102
|
-
"attribute": "initial-page",
|
|
103
|
-
"reflect": true,
|
|
104
|
-
"defaultValue": "1"
|
|
105
|
-
},
|
|
106
|
-
"lastPage": {
|
|
59
|
+
"last": {
|
|
107
60
|
"type": "number",
|
|
108
61
|
"mutable": false,
|
|
109
62
|
"complexType": {
|
|
@@ -117,67 +70,10 @@ export class JumpPagination {
|
|
|
117
70
|
"tags": [],
|
|
118
71
|
"text": ""
|
|
119
72
|
},
|
|
120
|
-
"attribute": "last
|
|
121
|
-
"reflect":
|
|
73
|
+
"attribute": "last",
|
|
74
|
+
"reflect": false,
|
|
122
75
|
"defaultValue": "10"
|
|
123
76
|
},
|
|
124
|
-
"labelElementsPerPage": {
|
|
125
|
-
"type": "string",
|
|
126
|
-
"mutable": false,
|
|
127
|
-
"complexType": {
|
|
128
|
-
"original": "string",
|
|
129
|
-
"resolved": "string",
|
|
130
|
-
"references": {}
|
|
131
|
-
},
|
|
132
|
-
"required": false,
|
|
133
|
-
"optional": false,
|
|
134
|
-
"docs": {
|
|
135
|
-
"tags": [],
|
|
136
|
-
"text": "Label for the elements per page select"
|
|
137
|
-
},
|
|
138
|
-
"attribute": "label-elements-per-page",
|
|
139
|
-
"reflect": true,
|
|
140
|
-
"defaultValue": "'Elementi per pagina'"
|
|
141
|
-
},
|
|
142
|
-
"elementsRanges": {
|
|
143
|
-
"type": "unknown",
|
|
144
|
-
"mutable": false,
|
|
145
|
-
"complexType": {
|
|
146
|
-
"original": "Array<number>",
|
|
147
|
-
"resolved": "number[]",
|
|
148
|
-
"references": {
|
|
149
|
-
"Array": {
|
|
150
|
-
"location": "global",
|
|
151
|
-
"id": "global::Array"
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
"required": false,
|
|
156
|
-
"optional": false,
|
|
157
|
-
"docs": {
|
|
158
|
-
"tags": [],
|
|
159
|
-
"text": "Values for the elements per page select"
|
|
160
|
-
},
|
|
161
|
-
"defaultValue": "[10, 20, 60, 100]"
|
|
162
|
-
},
|
|
163
|
-
"completeVersion": {
|
|
164
|
-
"type": "boolean",
|
|
165
|
-
"mutable": false,
|
|
166
|
-
"complexType": {
|
|
167
|
-
"original": "boolean",
|
|
168
|
-
"resolved": "boolean",
|
|
169
|
-
"references": {}
|
|
170
|
-
},
|
|
171
|
-
"required": false,
|
|
172
|
-
"optional": false,
|
|
173
|
-
"docs": {
|
|
174
|
-
"tags": [],
|
|
175
|
-
"text": "If true, the component will show the complete version of the pagination, with elements informations"
|
|
176
|
-
},
|
|
177
|
-
"attribute": "complete-version",
|
|
178
|
-
"reflect": true,
|
|
179
|
-
"defaultValue": "false"
|
|
180
|
-
},
|
|
181
77
|
"showFirstAndLast": {
|
|
182
78
|
"type": "boolean",
|
|
183
79
|
"mutable": false,
|
|
@@ -193,20 +89,19 @@ export class JumpPagination {
|
|
|
193
89
|
"text": ""
|
|
194
90
|
},
|
|
195
91
|
"attribute": "show-first-and-last",
|
|
196
|
-
"reflect":
|
|
92
|
+
"reflect": false,
|
|
197
93
|
"defaultValue": "false"
|
|
198
94
|
}
|
|
199
95
|
};
|
|
200
96
|
}
|
|
201
97
|
static get states() {
|
|
202
98
|
return {
|
|
203
|
-
"
|
|
204
|
-
"currentPage": {}
|
|
99
|
+
"current": {}
|
|
205
100
|
};
|
|
206
101
|
}
|
|
207
102
|
static get events() {
|
|
208
103
|
return [{
|
|
209
|
-
"method": "
|
|
104
|
+
"method": "changePage",
|
|
210
105
|
"name": "jump-change-page",
|
|
211
106
|
"bubbles": true,
|
|
212
107
|
"cancelable": true,
|
|
@@ -224,8 +119,8 @@ export class JumpPagination {
|
|
|
224
119
|
}
|
|
225
120
|
static get watchers() {
|
|
226
121
|
return [{
|
|
227
|
-
"propName": "
|
|
228
|
-
"methodName": "
|
|
122
|
+
"propName": "current",
|
|
123
|
+
"methodName": "watchcurrent"
|
|
229
124
|
}];
|
|
230
125
|
}
|
|
231
126
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jump-pagination.js","sourceRoot":"","sources":["../../../src/components/jump-pagination/jump-pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAgB,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAO5F,MAAM,OAAO,cAAc;;
|
|
1
|
+
{"version":3,"file":"jump-pagination.js","sourceRoot":"","sources":["../../../src/components/jump-pagination/jump-pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAgB,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAO5F,MAAM,OAAO,cAAc;;uBAGE,CAAC;wBAgBD,IAAI;oBAER,EAAE;gCAEW,KAAK;;IAjBzC,YAAY,CAAC,QAAgB,EAAE,QAAgB;QAC7C,IAAI,OAAO,GAAG;YACZ,OAAO,EAAE,QAAQ;YACjB,YAAY,EAAE,QAAQ;YACtB,KAAK,EAAE,CAAC;YACR,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;SACjD,CAAC;QAEF,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;IAYD,iEAAiE;IACjE,iBAAiB;QACf,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IACnB,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAC,gBAAgB;YAC1B,4DAAK,KAAK,EAAC,yBAAyB;gBAClC,4DAAK,KAAK,EAAC,YAAY;oBACrB,4DAAK,KAAK,EAAC,UAAU;wBACnB;4BACE,+DAAO,IAAI,CAAC,OAAO,CAAQ;;4BAAE,IAAI,CAAC,QAAQ;;4BAAE,+DAAO,IAAI,CAAC,IAAI,CAAQ,CAC/D,CACH;oBACN,4DAAK,KAAK,EAAC,OAAO;wBACf,IAAI,CAAC,gBAAgB;4BACpB,+DACE,OAAO,EAAE,GAAG,EAAE,GAAE,IAAI,CAAC,OAAO,GAAG,CAAC,CAAA,CAAA,CAAC,EACjC,QAAQ,EAAE,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;;gCAC7C,kEAAW,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,eAAe,GAAa;sCAAY;wBAE1E,+DACE,OAAO,EAAE,GAAG,EAAE,GAAE,IAAI,CAAC,OAAO,EAAE,CAAA,CAAA,CAAC,EAC/B,QAAQ,EAAE,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;;4BAC7C,kEAAW,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,cAAc,GAAa;kCAAY;wBACvE,+DACE,OAAO,EAAE,GAAG,EAAE,GAAE,IAAI,CAAC,OAAO,EAAE,CAAA,CAAA,CAAC,EAC/B,QAAQ,EAAE,CAAC,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;;4BACnD,kEAAW,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,eAAe,GAAa;kCAAY;wBACzE,IAAI,CAAC,gBAAgB;4BACpB,+DACE,OAAO,EAAE,GAAG,EAAE,GAAE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,IAAI,CAAA,CAAA,CAAC,EACzC,QAAQ,EAAE,CAAC,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;;gCACnD,kEAAW,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,gBAAgB,GAAa;sCAAY,CAEzE,CACF,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, State, Event, EventEmitter, Prop, h, Watch } from '@stencil/core';\n\n@Component({\n tag: 'jump-pagination',\n styleUrl: 'jump-pagination.scss',\n shadow: false,\n})\nexport class JumpPagination {\n \n /* ---------------------- @STATE ------------------------- */\n @State() current: number = 1;\n\n @Watch('current')\n watchcurrent(newValue: number, oldValue: number) {\n let details = {\n current: newValue,\n previousPage: oldValue,\n first: 1,\n last: this.last,\n direction: newValue > oldValue ? 'next' : 'prev'\n };\n\n this.changePage.emit(details);\n }\n\n /* ---------------------- @PROPERTIES ------------------------- */\n @Prop() pagLabel: string = 'di'; // Identifica la label testuale di pagination. \n\n @Prop() last: number = 10; \n\n @Prop() showFirstAndLast: boolean = false;\n\n /* ---------------------- @EVENTS ------------------------- */\n @Event({ eventName: 'jump-change-page' }) changePage: EventEmitter;\n\n /* ---------------------- @LIFECYCLE ------------------------- */\n componentWillLoad() {\n this.current = 1;\n }\n \n render() {\n return (\n <Host class=\"JumpPagination\">\n <div class=\"JumpPagination__Wrapper\">\n <div class=\"indicators\"> \n <div class=\"elements\">\n <span>\n <span>{this.current}</span> {this.pagLabel} <span>{this.last}</span>\n </span>\n </div>\n <div class=\"arrow\">\n {this.showFirstAndLast &&\n <button \n onClick={() => {this.current = 1} }\n disabled={(this.current === 1) ? true : false}\n > <jump-icon slot=\"prefix\" name=\"chevrons-left\"></jump-icon> </button>\n }\n <button \n onClick={() => {this.current--}} \n disabled={(this.current === 1) ? true : false}\n > <jump-icon slot=\"prefix\" name=\"chevron-left\"></jump-icon> </button>\n <button \n onClick={() => {this.current++}}\n disabled={(this.current === this.last) ? true : false}\n > <jump-icon slot=\"prefix\" name=\"chevron-right\"></jump-icon> </button>\n {this.showFirstAndLast &&\n <button \n onClick={() => {this.current = this.last}}\n disabled={(this.current === this.last) ? true : false}\n > <jump-icon slot=\"prefix\" name=\"chevrons-right\"></jump-icon> </button> \n }\n </div> \n </div>\n </div>\n </Host>\n );\n }\n\n}\n"]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { generateAttributesFromArgs, formatHtml } from "../../utils/utils";
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Components/Pagination/PaginationBase',
|
|
4
|
+
tags: ['autodocs'],
|
|
5
|
+
argTypes: {
|
|
6
|
+
pagLabel: {
|
|
7
|
+
name: "pag-label",
|
|
8
|
+
control: 'text',
|
|
9
|
+
description: 'Indica la dicitura di paginazione. Di default è "di".'
|
|
10
|
+
},
|
|
11
|
+
showFirstAndLast: {
|
|
12
|
+
name: 'show-first-and-last',
|
|
13
|
+
control: 'boolean',
|
|
14
|
+
description: 'Indica se mostrare le frecce aggiuntive per navigare rapidamente nella prima o ultima pagina. Da preferire con un numero elevato di pagine.'
|
|
15
|
+
},
|
|
16
|
+
current: {
|
|
17
|
+
name: 'current-page',
|
|
18
|
+
control: 'number',
|
|
19
|
+
description: 'Pagina corrente'
|
|
20
|
+
},
|
|
21
|
+
last: {
|
|
22
|
+
name: 'last',
|
|
23
|
+
control: 'number',
|
|
24
|
+
description: 'Indica l\'ultima pagina',
|
|
25
|
+
},
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const Template = (args) => {
|
|
29
|
+
const attributes = generateAttributesFromArgs(args);
|
|
30
|
+
return formatHtml(`<jump-pagination ${attributes}></jump-pagination>`);
|
|
31
|
+
};
|
|
32
|
+
const TemplateWithListenerExample = (args, data) => {
|
|
33
|
+
let id = data.id;
|
|
34
|
+
const attributes = generateAttributesFromArgs(args);
|
|
35
|
+
return formatHtml(`<jump-pagination ${attributes}></jump-pagination>
|
|
36
|
+
<div>La pagina corrente è: <span id="page-number">loading..<span></div>
|
|
37
|
+
<script>
|
|
38
|
+
(function() {
|
|
39
|
+
let container;
|
|
40
|
+
container = document.querySelector('#story--${id}');
|
|
41
|
+
container.querySelector('jump-pagination').addEventListener('jump-change-page', (ev) => {
|
|
42
|
+
container.querySelector('#page-number').innerText = ev.detail.current;
|
|
43
|
+
});
|
|
44
|
+
})();
|
|
45
|
+
</script>`);
|
|
46
|
+
};
|
|
47
|
+
export const Playground = Template.bind({});
|
|
48
|
+
Playground.args = {
|
|
49
|
+
showFirstAndLast: false,
|
|
50
|
+
current: 1,
|
|
51
|
+
last: 10,
|
|
52
|
+
pagLabel: 'di'
|
|
53
|
+
};
|
|
54
|
+
export const PaginationRidotto = TemplateWithListenerExample.bind({});
|
|
55
|
+
PaginationRidotto.args = {
|
|
56
|
+
showFirstAndLast: false,
|
|
57
|
+
current: 1,
|
|
58
|
+
last: 10,
|
|
59
|
+
pagLabel: 'di'
|
|
60
|
+
};
|
|
61
|
+
export const PaginationCompleto = TemplateWithListenerExample.bind({});
|
|
62
|
+
PaginationCompleto.args = {
|
|
63
|
+
showFirstAndLast: true,
|
|
64
|
+
current: 1,
|
|
65
|
+
last: 10,
|
|
66
|
+
pagLabel: 'di'
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=jump-pagination.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-pagination.stories.js","sourceRoot":"","sources":["../../../src/components/jump-pagination/jump-pagination.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE1E,eAAe;IACb,KAAK,EAAE,sCAAsC;IAC7C,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,QAAQ,EAAC;YACP,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,MAAM;YACf,WAAW,EAAE,uDAAuD;SACrE;QAED,gBAAgB,EAAE;YAChB,IAAI,EAAE,qBAAqB;YAC3B,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,6IAA6I;SAC3J;QACD,OAAO,EAAE;YACP,IAAI,EAAE,cAAc;YACpB,OAAO,EAAE,QAAQ;YACjB,WAAW,EAAE,iBAAiB;SAC/B;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,QAAQ;YACjB,WAAW,EAAE,yBAAyB;SACvC;KACF;CACF,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACxB,MAAM,UAAU,GAAG,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACpD,OAAO,UAAU,CAAC,oBAAoB,UAAU,qBAAqB,CAAC,CAAC;AACzE,CAAC,CAAC;AAEF,MAAM,2BAA2B,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE;IACjD,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;IACjB,MAAM,UAAU,GAAG,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACpD,OAAO,UAAU,CAAC,oBAAoB,UAAU;;;;;4DAKU,EAAE;;;;;oBAK1C,CAAC,CAAC;AACtB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAE5C,UAAU,CAAC,IAAI,GAAG;IAChB,gBAAgB,EAAE,KAAK;IACvB,OAAO,EAAE,CAAC;IACV,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,2BAA2B,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAEtE,iBAAiB,CAAC,IAAI,GAAG;IACvB,gBAAgB,EAAE,KAAK;IACvB,OAAO,EAAE,CAAC;IACV,IAAI,EAAC,EAAE;IACP,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,2BAA2B,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAEvE,kBAAkB,CAAC,IAAI,GAAG;IACxB,gBAAgB,EAAE,IAAI;IACtB,OAAO,EAAE,CAAC;IACV,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,IAAI;CACf,CAAC","sourcesContent":["import { generateAttributesFromArgs, formatHtml} from '../../utils/utils';\n\nexport default {\n title: 'Components/Pagination/PaginationBase',\n tags: ['autodocs'],\n argTypes: {\n pagLabel:{\n name: \"pag-label\",\n control: 'text',\n description: 'Indica la dicitura di paginazione. Di default è \"di\".'\n },\n \n showFirstAndLast: {\n name: 'show-first-and-last',\n control: 'boolean',\n description: 'Indica se mostrare le frecce aggiuntive per navigare rapidamente nella prima o ultima pagina. Da preferire con un numero elevato di pagine.'\n },\n current: {\n name: 'current-page',\n control: 'number',\n description: 'Pagina corrente'\n },\n last: {\n name: 'last',\n control: 'number',\n description: 'Indica l\\'ultima pagina',\n },\n }\n};\n\nconst Template = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return formatHtml(`<jump-pagination ${attributes}></jump-pagination>`);\n};\n\nconst TemplateWithListenerExample = (args, data) => {\n let id = data.id;\n const attributes = generateAttributesFromArgs(args);\n return formatHtml(`<jump-pagination ${attributes}></jump-pagination>\n <div>La pagina corrente è: <span id=\"page-number\">loading..<span></div>\n <script>\n (function() {\n let container;\n container = document.querySelector('#story--${id}');\n container.querySelector('jump-pagination').addEventListener('jump-change-page', (ev) => {\n container.querySelector('#page-number').innerText = ev.detail.current;\n });\n })();\n </script>`);\n};\n\nexport const Playground = Template.bind({});\n\nPlayground.args = {\n showFirstAndLast: false,\n current: 1,\n last: 10,\n pagLabel: 'di'\n};\n\nexport const PaginationRidotto = TemplateWithListenerExample.bind({});\n\nPaginationRidotto.args = {\n showFirstAndLast: false,\n current: 1,\n last:10,\n pagLabel: 'di'\n};\n\nexport const PaginationCompleto = TemplateWithListenerExample.bind({});\n\nPaginationCompleto.args = {\n showFirstAndLast: true,\n current: 1,\n last: 10,\n pagLabel: 'di'\n};"]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.JumpPaginationTable {
|
|
6
|
+
--jump-pagination-table-label: var(--neutral-grey-secondary);
|
|
7
|
+
--jump-pagination-table-arrows: var(--neutral-grey-secondary);
|
|
8
|
+
--jump-pagination-table-arrows-disabled: var(--neutral-grey-disabled);
|
|
9
|
+
font-family: var(--ff-primary);
|
|
10
|
+
}
|
|
11
|
+
.JumpPaginationTable__Wrapper {
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
}
|
|
15
|
+
.JumpPaginationTable__Wrapper .elementsPerPage {
|
|
16
|
+
display: flex;
|
|
17
|
+
gap: 1rem;
|
|
18
|
+
align-items: center;
|
|
19
|
+
}
|
|
20
|
+
.JumpPaginationTable__Wrapper .elementsPerPage label {
|
|
21
|
+
color: var(--jump-pagination-table-label);
|
|
22
|
+
font-size: var(--fs-300);
|
|
23
|
+
font-weight: normal;
|
|
24
|
+
}
|
|
25
|
+
.JumpPaginationTable__Wrapper .indicators {
|
|
26
|
+
font-size: var(--fs-400);
|
|
27
|
+
font-weight: normal;
|
|
28
|
+
display: flex;
|
|
29
|
+
justify-content: space-between;
|
|
30
|
+
gap: 20px;
|
|
31
|
+
color: var(--jump-pagination-table-label);
|
|
32
|
+
}
|
|
33
|
+
.JumpPaginationTable__Wrapper .indicators .arrow {
|
|
34
|
+
color: var(--jump-pagination-table-arrows);
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
gap: 10px;
|
|
38
|
+
}
|
|
39
|
+
.JumpPaginationTable__Wrapper .indicators .arrow button {
|
|
40
|
+
background-color: transparent;
|
|
41
|
+
border: none;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
padding: 0px;
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
}
|
|
47
|
+
.JumpPaginationTable__Wrapper .indicators .arrow button:disabled {
|
|
48
|
+
cursor: not-allowed;
|
|
49
|
+
color: var(--jump-pagination-table-arrows-disabled);
|
|
50
|
+
}
|
|
51
|
+
.JumpPaginationTable__Wrapper .indicators .elements {
|
|
52
|
+
color: var(--jump-pagination-table-label);
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
gap: 5px;
|
|
56
|
+
}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class JumpPaginationTable {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.elementsRanges = [10, 20, 60, 100];
|
|
5
|
+
this.elPerPage = 10;
|
|
6
|
+
this.pagLabel = 'di';
|
|
7
|
+
this.labelElementsPerPage = 'Elementi per pagina';
|
|
8
|
+
this.total = 100;
|
|
9
|
+
this.first = 1;
|
|
10
|
+
this.last = 10;
|
|
11
|
+
this.showFirstAndLast = false;
|
|
12
|
+
}
|
|
13
|
+
elPerPageChanged(newValue, oldValue) {
|
|
14
|
+
if (newValue !== oldValue) {
|
|
15
|
+
// Riporta la paginazione allo stato iniziale
|
|
16
|
+
this.first = 1;
|
|
17
|
+
this.last = Math.min(this.total, newValue);
|
|
18
|
+
}
|
|
19
|
+
console.log('quaaaa');
|
|
20
|
+
this.changeElPerPage.emit({ elPerPage: newValue });
|
|
21
|
+
}
|
|
22
|
+
setElPerPage(e) {
|
|
23
|
+
this.elPerPage = e.target.value;
|
|
24
|
+
}
|
|
25
|
+
doChangePage(dir) {
|
|
26
|
+
let newFirst;
|
|
27
|
+
let newLast;
|
|
28
|
+
//TODO refactorare
|
|
29
|
+
if (dir === 'first') {
|
|
30
|
+
newFirst = 1;
|
|
31
|
+
newLast = Math.min(this.total, this.elPerPage);
|
|
32
|
+
}
|
|
33
|
+
else if (dir === 'last') {
|
|
34
|
+
newLast = this.total;
|
|
35
|
+
newFirst = Math.max(1, this.total - this.elPerPage + 1);
|
|
36
|
+
}
|
|
37
|
+
else if (dir === 'previous') {
|
|
38
|
+
newFirst = Math.max(1, this.first - this.elPerPage);
|
|
39
|
+
newLast = Math.min(this.total, newFirst + this.elPerPage - 1);
|
|
40
|
+
}
|
|
41
|
+
else if (dir === 'next') {
|
|
42
|
+
newLast = Math.min(this.total, this.last + this.elPerPage);
|
|
43
|
+
newFirst = Math.max(1, newLast - this.elPerPage + 1);
|
|
44
|
+
}
|
|
45
|
+
this.first = newFirst;
|
|
46
|
+
this.last = newLast;
|
|
47
|
+
let details = {
|
|
48
|
+
first: newFirst,
|
|
49
|
+
last: newLast,
|
|
50
|
+
direction: dir
|
|
51
|
+
};
|
|
52
|
+
this.changePage.emit(details);
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
var _a;
|
|
56
|
+
return (h(Host, { key: 'a0ce2d326581fda87291e2b16cc9b64b5a633246', class: "JumpPaginationTable" }, h("div", { key: '6c0052e1a8fdb06f4f43711912980cbe2e81a0e5', class: "JumpPaginationTable__Wrapper" }, h("div", { key: '2aae7db84f506002ec233c4588571c0d7aad73b7', class: "elementsPerPage" }, h("label", { key: '05df9e396f436959fad6a5e46bae813839e5f23a', htmlFor: "elements" }, (_a = this.labelElementsPerPage) !== null && _a !== void 0 ? _a : 'Elements per page'), h("select", { key: '30656763681d37b2160e533375ff240318b720da', name: "elements", id: "elements", onChange: (e) => this.setElPerPage(e) }, this.elementsRanges.map((range) => (h("option", { value: range, selected: (this.elPerPage == range) && true }, range))))), h("div", { key: '80db6dee1b8c360351b7fd4ca2b3c8e0eaaf242f', class: "indicators" }, h("div", { key: 'bae4bc608d60d3288178ce408f80c23edf24e893', class: "elements" }, h("span", { key: 'f4952c8ac2b57f812a9b90c8c3b8d3e95a960952' }, h("span", { key: 'bcb057d337403ec62c2487800279c030a50b67a0' }, this.first), " - ", h("span", { key: '7334a3da3127929ff499d42633fa51b2b2798e72' }, this.last), " ", this.pagLabel, " ", h("span", { key: '64e09cf7339b0b63f793f4408492aaddb255d1eb' }, this.total))), h("div", { key: 'a88758ca9e509fa8dafbd5e890565f8c0e45413a', class: "arrow" }, this.showFirstAndLast &&
|
|
57
|
+
h("button", { key: '92d636fbd99363c8fdce81dcebcf563dfa8d5616', onClick: () => this.doChangePage('first'), disabled: this.first === 1 }, h("jump-icon", { key: '1399dbb89d3b8bc02ab6b0b8532069019bfd9bf5', slot: "prefix", name: "chevrons-left" })), h("button", { key: '7071e9c983d018e8b757098e61ea4fcc32ff8ac7', onClick: () => this.doChangePage('previous'), disabled: this.first === 1 }, h("jump-icon", { key: '44ab75b00313dbcc0ba4faa292c83542808504f5', slot: "prefix", name: "chevron-left" })), h("button", { key: 'f42cda59476058f2bf1d07c70e392b857a16f9c7', onClick: () => this.doChangePage('next'), disabled: this.last === this.total }, h("jump-icon", { key: '2f7e16d07872df4eefb85fad08c36a50d5dae82c', slot: "prefix", name: "chevron-right" })), this.showFirstAndLast &&
|
|
58
|
+
h("button", { key: '8269eb814080ebe97c86ac23936770210d543d51', onClick: () => this.doChangePage('last'), disabled: this.last === this.total }, h("jump-icon", { key: '63bef8880d36a01cfd8e2412553bd2ce41be4331', slot: "prefix", name: "chevrons-right" })))))));
|
|
59
|
+
}
|
|
60
|
+
static get is() { return "jump-pagination-table"; }
|
|
61
|
+
static get originalStyleUrls() {
|
|
62
|
+
return {
|
|
63
|
+
"$": ["jump-pagination-table.scss"]
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
static get styleUrls() {
|
|
67
|
+
return {
|
|
68
|
+
"$": ["jump-pagination-table.css"]
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
static get properties() {
|
|
72
|
+
return {
|
|
73
|
+
"elementsRanges": {
|
|
74
|
+
"type": "unknown",
|
|
75
|
+
"mutable": false,
|
|
76
|
+
"complexType": {
|
|
77
|
+
"original": "Array<number>",
|
|
78
|
+
"resolved": "number[]",
|
|
79
|
+
"references": {
|
|
80
|
+
"Array": {
|
|
81
|
+
"location": "global",
|
|
82
|
+
"id": "global::Array"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": false,
|
|
87
|
+
"optional": false,
|
|
88
|
+
"docs": {
|
|
89
|
+
"tags": [],
|
|
90
|
+
"text": "Values for the elements per page select"
|
|
91
|
+
},
|
|
92
|
+
"defaultValue": "[10, 20, 60, 100]"
|
|
93
|
+
},
|
|
94
|
+
"elPerPage": {
|
|
95
|
+
"type": "number",
|
|
96
|
+
"mutable": false,
|
|
97
|
+
"complexType": {
|
|
98
|
+
"original": "number",
|
|
99
|
+
"resolved": "number",
|
|
100
|
+
"references": {}
|
|
101
|
+
},
|
|
102
|
+
"required": false,
|
|
103
|
+
"optional": false,
|
|
104
|
+
"docs": {
|
|
105
|
+
"tags": [],
|
|
106
|
+
"text": ""
|
|
107
|
+
},
|
|
108
|
+
"attribute": "el-per-page",
|
|
109
|
+
"reflect": false,
|
|
110
|
+
"defaultValue": "10"
|
|
111
|
+
},
|
|
112
|
+
"pagLabel": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"mutable": false,
|
|
115
|
+
"complexType": {
|
|
116
|
+
"original": "string",
|
|
117
|
+
"resolved": "string",
|
|
118
|
+
"references": {}
|
|
119
|
+
},
|
|
120
|
+
"required": false,
|
|
121
|
+
"optional": false,
|
|
122
|
+
"docs": {
|
|
123
|
+
"tags": [],
|
|
124
|
+
"text": ""
|
|
125
|
+
},
|
|
126
|
+
"attribute": "pag-label",
|
|
127
|
+
"reflect": true,
|
|
128
|
+
"defaultValue": "'di'"
|
|
129
|
+
},
|
|
130
|
+
"labelElementsPerPage": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"mutable": false,
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "string",
|
|
135
|
+
"resolved": "string",
|
|
136
|
+
"references": {}
|
|
137
|
+
},
|
|
138
|
+
"required": false,
|
|
139
|
+
"optional": false,
|
|
140
|
+
"docs": {
|
|
141
|
+
"tags": [],
|
|
142
|
+
"text": "Label for the elements per page select"
|
|
143
|
+
},
|
|
144
|
+
"attribute": "label-elements-per-page",
|
|
145
|
+
"reflect": true,
|
|
146
|
+
"defaultValue": "'Elementi per pagina'"
|
|
147
|
+
},
|
|
148
|
+
"total": {
|
|
149
|
+
"type": "number",
|
|
150
|
+
"mutable": false,
|
|
151
|
+
"complexType": {
|
|
152
|
+
"original": "number",
|
|
153
|
+
"resolved": "number",
|
|
154
|
+
"references": {}
|
|
155
|
+
},
|
|
156
|
+
"required": false,
|
|
157
|
+
"optional": false,
|
|
158
|
+
"docs": {
|
|
159
|
+
"tags": [],
|
|
160
|
+
"text": ""
|
|
161
|
+
},
|
|
162
|
+
"attribute": "total",
|
|
163
|
+
"reflect": true,
|
|
164
|
+
"defaultValue": "100"
|
|
165
|
+
},
|
|
166
|
+
"first": {
|
|
167
|
+
"type": "number",
|
|
168
|
+
"mutable": false,
|
|
169
|
+
"complexType": {
|
|
170
|
+
"original": "number",
|
|
171
|
+
"resolved": "number",
|
|
172
|
+
"references": {}
|
|
173
|
+
},
|
|
174
|
+
"required": false,
|
|
175
|
+
"optional": false,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [],
|
|
178
|
+
"text": ""
|
|
179
|
+
},
|
|
180
|
+
"attribute": "first",
|
|
181
|
+
"reflect": true,
|
|
182
|
+
"defaultValue": "1"
|
|
183
|
+
},
|
|
184
|
+
"last": {
|
|
185
|
+
"type": "number",
|
|
186
|
+
"mutable": false,
|
|
187
|
+
"complexType": {
|
|
188
|
+
"original": "number",
|
|
189
|
+
"resolved": "number",
|
|
190
|
+
"references": {}
|
|
191
|
+
},
|
|
192
|
+
"required": false,
|
|
193
|
+
"optional": false,
|
|
194
|
+
"docs": {
|
|
195
|
+
"tags": [],
|
|
196
|
+
"text": ""
|
|
197
|
+
},
|
|
198
|
+
"attribute": "last",
|
|
199
|
+
"reflect": true,
|
|
200
|
+
"defaultValue": "10"
|
|
201
|
+
},
|
|
202
|
+
"showFirstAndLast": {
|
|
203
|
+
"type": "boolean",
|
|
204
|
+
"mutable": false,
|
|
205
|
+
"complexType": {
|
|
206
|
+
"original": "boolean",
|
|
207
|
+
"resolved": "boolean",
|
|
208
|
+
"references": {}
|
|
209
|
+
},
|
|
210
|
+
"required": false,
|
|
211
|
+
"optional": false,
|
|
212
|
+
"docs": {
|
|
213
|
+
"tags": [],
|
|
214
|
+
"text": ""
|
|
215
|
+
},
|
|
216
|
+
"attribute": "show-first-and-last",
|
|
217
|
+
"reflect": true,
|
|
218
|
+
"defaultValue": "false"
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
static get events() {
|
|
223
|
+
return [{
|
|
224
|
+
"method": "changePage",
|
|
225
|
+
"name": "jump-change-page",
|
|
226
|
+
"bubbles": true,
|
|
227
|
+
"cancelable": true,
|
|
228
|
+
"composed": true,
|
|
229
|
+
"docs": {
|
|
230
|
+
"tags": [],
|
|
231
|
+
"text": ""
|
|
232
|
+
},
|
|
233
|
+
"complexType": {
|
|
234
|
+
"original": "any",
|
|
235
|
+
"resolved": "any",
|
|
236
|
+
"references": {}
|
|
237
|
+
}
|
|
238
|
+
}, {
|
|
239
|
+
"method": "changeElPerPage",
|
|
240
|
+
"name": "jump-change-el-per-page",
|
|
241
|
+
"bubbles": true,
|
|
242
|
+
"cancelable": true,
|
|
243
|
+
"composed": true,
|
|
244
|
+
"docs": {
|
|
245
|
+
"tags": [],
|
|
246
|
+
"text": ""
|
|
247
|
+
},
|
|
248
|
+
"complexType": {
|
|
249
|
+
"original": "any",
|
|
250
|
+
"resolved": "any",
|
|
251
|
+
"references": {}
|
|
252
|
+
}
|
|
253
|
+
}];
|
|
254
|
+
}
|
|
255
|
+
static get watchers() {
|
|
256
|
+
return [{
|
|
257
|
+
"propName": "elPerPage",
|
|
258
|
+
"methodName": "elPerPageChanged"
|
|
259
|
+
}];
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
//# sourceMappingURL=jump-pagination-table.js.map
|