@jumpgroup/jump-design-system 0.2.4 → 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-anchor.stories.js +1 -2
- package/dist/collection/components/jump-button/jump-button-anchor.stories.js.map +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-outline.stories.js.map +1 -1
- package/dist/collection/components/jump-button/jump-button.css +12 -55
- 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-9e47f451.entry.js +0 -2
- package/dist/jump-design-system/p-9e47f451.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,102 +0,0 @@
|
|
|
1
|
-
import { generateAttributesFromArgs } from "../../utils/utils";
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Components/Pagination/Products',
|
|
4
|
-
tags: ['autodocs'],
|
|
5
|
-
argTypes: {
|
|
6
|
-
pagLabel: {
|
|
7
|
-
name: "pagLabel",
|
|
8
|
-
control: 'text',
|
|
9
|
-
description: 'Indica la dicitura di paginazione. Di default è "di".'
|
|
10
|
-
},
|
|
11
|
-
completeVersion: {
|
|
12
|
-
name: 'completeVersion',
|
|
13
|
-
control: 'boolean',
|
|
14
|
-
description: 'Indica se mostrare la versione con selezione di prodotti'
|
|
15
|
-
},
|
|
16
|
-
showFirstAndLast: {
|
|
17
|
-
name: 'showFirstAndLast',
|
|
18
|
-
control: 'boolean',
|
|
19
|
-
description: 'Indica se mostrare le frecce aggiuntive per navigare rapidamente nella prima o ultima pagina. Da preferire con un numero elevato di pagine.'
|
|
20
|
-
},
|
|
21
|
-
firstPage: {
|
|
22
|
-
name: 'firstPage',
|
|
23
|
-
control: 'number',
|
|
24
|
-
description: 'Se si tratta di pagination per prodotti, indica il valore min di range di prodotto, altrimenti la prima pagina',
|
|
25
|
-
if: {
|
|
26
|
-
arg: 'completeVersion',
|
|
27
|
-
eq: true
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
initialPage: {
|
|
31
|
-
name: 'initialPage',
|
|
32
|
-
control: 'number',
|
|
33
|
-
description: 'Se si tratta di pagination per prodotti, indica il valore max di range di prodotto, altrimenti la pagina corrente'
|
|
34
|
-
},
|
|
35
|
-
lastPage: {
|
|
36
|
-
name: 'lastPage',
|
|
37
|
-
control: 'number',
|
|
38
|
-
description: 'Indica l\'ultima pagina',
|
|
39
|
-
if: {
|
|
40
|
-
arg: 'completeVersion',
|
|
41
|
-
eq: false
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
totalElements: {
|
|
45
|
-
name: 'totalElements',
|
|
46
|
-
control: 'number',
|
|
47
|
-
description: 'Indica il numero totale di elementi disponibili. ',
|
|
48
|
-
if: {
|
|
49
|
-
arg: 'completeVersion',
|
|
50
|
-
eq: true
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
labelElementsPerPage: {
|
|
54
|
-
name: 'labelElementsPerPage',
|
|
55
|
-
control: 'text',
|
|
56
|
-
description: 'Indica l\'etichetta per gli elementi per pagina',
|
|
57
|
-
if: {
|
|
58
|
-
arg: 'completeVersion',
|
|
59
|
-
eq: true
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
elementsRanges: {
|
|
63
|
-
name: 'elementsRanges',
|
|
64
|
-
control: 'multi-select',
|
|
65
|
-
options: [10, 20, 30],
|
|
66
|
-
if: {
|
|
67
|
-
arg: 'completeVersion',
|
|
68
|
-
eq: true
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
const Template = (args) => {
|
|
74
|
-
const attributes = generateAttributesFromArgs(args);
|
|
75
|
-
console.log('attributes', attributes);
|
|
76
|
-
return `<jump-pagination ${attributes}></jump-pagination>`;
|
|
77
|
-
};
|
|
78
|
-
export const PaginationPerProdottiRidotto = Template.bind({});
|
|
79
|
-
PaginationPerProdottiRidotto.args = {
|
|
80
|
-
completeVersion: true,
|
|
81
|
-
showFirstAndLast: false,
|
|
82
|
-
firstPage: 1,
|
|
83
|
-
initialPage: 1,
|
|
84
|
-
lastPage: 20,
|
|
85
|
-
totalElements: 150,
|
|
86
|
-
labelElementsPerPage: "Elementi per pagina",
|
|
87
|
-
elementsRanges: [10, 20, 60, 100],
|
|
88
|
-
pagLabel: 'di'
|
|
89
|
-
};
|
|
90
|
-
export const PaginationPerProdottiCompleto = Template.bind({});
|
|
91
|
-
PaginationPerProdottiCompleto.args = {
|
|
92
|
-
completeVersion: true,
|
|
93
|
-
showFirstAndLast: true,
|
|
94
|
-
firstPage: 1,
|
|
95
|
-
initialPage: 1,
|
|
96
|
-
lastPage: 20,
|
|
97
|
-
totalElements: 150,
|
|
98
|
-
labelElementsPerPage: "Elementi per pagina",
|
|
99
|
-
elementsRanges: [10, 20, 60, 100],
|
|
100
|
-
pagLabel: 'di'
|
|
101
|
-
};
|
|
102
|
-
//# sourceMappingURL=jump-pagination-products.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jump-pagination-products.stories.js","sourceRoot":"","sources":["../../../src/components/jump-pagination/jump-pagination-products.stories.ts"],"names":[],"mappings":"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","sourcesContent":["import { generateAttributesFromArgs} from '../../utils/utils';\n\nexport default {\n title: 'Components/Pagination/Products',\n tags: ['autodocs'],\n argTypes: {\n pagLabel:{\n name: \"pagLabel\",\n control: 'text',\n description: 'Indica la dicitura di paginazione. Di default è \"di\".'\n },\n completeVersion: {\n name: 'completeVersion',\n control: 'boolean',\n description: 'Indica se mostrare la versione con selezione di prodotti'\n },\n showFirstAndLast: {\n name: 'showFirstAndLast',\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 firstPage: {\n name: 'firstPage',\n control: 'number',\n description: 'Se si tratta di pagination per prodotti, indica il valore min di range di prodotto, altrimenti la prima pagina',\n if: {\n arg: 'completeVersion',\n eq: true\n },\n },\n initialPage: {\n name: 'initialPage',\n control: 'number',\n description: 'Se si tratta di pagination per prodotti, indica il valore max di range di prodotto, altrimenti la pagina corrente'\n },\n lastPage: {\n name: 'lastPage',\n control: 'number',\n description: 'Indica l\\'ultima pagina',\n if: {\n arg: 'completeVersion',\n eq: false\n },\n },\n totalElements: {\n name: 'totalElements',\n control: 'number',\n description: 'Indica il numero totale di elementi disponibili. ',\n if: {\n arg: 'completeVersion',\n eq: true\n },\n },\n labelElementsPerPage: {\n name: 'labelElementsPerPage',\n control: 'text',\n description: 'Indica l\\'etichetta per gli elementi per pagina',\n if: {\n arg: 'completeVersion',\n eq: true\n },\n },\n elementsRanges: {\n name: 'elementsRanges',\n control: 'multi-select', \n options: [10, 20, 30],\n if: {\n arg: 'completeVersion',\n eq: true\n }, \n },\n }\n};\n\nconst Template = (args) => {\n const attributes = generateAttributesFromArgs(args);\n console.log('attributes', attributes);\n return `<jump-pagination ${attributes}></jump-pagination>`;\n};\n\nexport const PaginationPerProdottiRidotto = Template.bind({});\n\nPaginationPerProdottiRidotto.args = {\n completeVersion: true,\n showFirstAndLast: false,\n firstPage: 1,\n initialPage: 1,\n lastPage:20,\n totalElements: 150,\n labelElementsPerPage: \"Elementi per pagina\",\n elementsRanges: [10, 20, 60, 100],\n pagLabel: 'di'\n};\n\nexport const PaginationPerProdottiCompleto = Template.bind({});\n\nPaginationPerProdottiCompleto.args = {\n completeVersion: true,\n showFirstAndLast: true,\n firstPage: 1,\n initialPage: 1,\n lastPage:20,\n totalElements: 150,\n labelElementsPerPage: \"Elementi per pagina\",\n elementsRanges: [10, 20, 60, 100],\n pagLabel: 'di'\n};"]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as e,c as a,h as i,H as t}from"./p-20ceb40c.js";const n=":host{display:block}.JumpPagination{--pagination-label-color:var(--neutral-grey-secondary);--pagination-arrows-color:var(--neutral-grey-secondary);--pagination-arrows-disabled:#CBCBCB;font-family:var(--ff-primary)}.JumpPagination__Wrapper{display:flex;justify-content:space-between}.JumpPagination__Wrapper .elementsPerPage{display:flex;gap:1rem;align-items:center}.JumpPagination__Wrapper .elementsPerPage label{color:var(--pagination-label-color);font-size:14px;font-weight:normal}.JumpPagination__Wrapper .indicators{font-size:16px;font-weight:normal;display:flex;justify-content:space-between;gap:20px;color:var(--pagination-label-color)}.JumpPagination__Wrapper .indicators .arrow{color:var(--pagination-arrows-color);display:flex;align-items:center;gap:10px}.JumpPagination__Wrapper .indicators .arrow button{background-color:transparent;border:none;cursor:pointer;padding:0px;display:flex;align-items:center}.JumpPagination__Wrapper .indicators .arrow button:disabled{cursor:not-allowed;color:var(--pagination-arrows-disabled)}.JumpPagination__Wrapper .indicators .elements{color:var(--pagination-label-color);display:flex;align-items:center;gap:5px}";const s=n;const r=class{constructor(i){e(this,i);this.jumpChangePage=a(this,"jump-change-page",7);this.firstPage=1;this.currentPage=undefined;this.totalElements=undefined;this.pagLabel="di";this.initialPage=1;this.lastPage=10;this.labelElementsPerPage="Elementi per pagina";this.elementsRanges=[10,20,60,100];this.completeVersion=false;this.showFirstAndLast=false}watchCurrentPage(e,a){let i={currentPage:e,previousPage:a,firstPage:this.firstPage,lastPage:this.lastPage,direction:e>a?"next":"prev"};this.jumpChangePage.emit(i)}componentWillLoad(){this.currentPage=this.initialPage}render(){var e;console.log("completeVersion",this.completeVersion);return i(t,{key:"32e300881b3a78d25edf6480e9a8a6594f907c76",class:"JumpPagination"},i("div",{key:"0c4e133e409740331083588fbb046d79c2878ea9",class:"JumpPagination__Wrapper"},this.completeVersion&&i("div",{key:"13daa8e819ec294b50823becc7e8d904eff66f32",class:"elementsPerPage"},i("label",{key:"162555e0ebfc295d96d5ba358ec879eba1730746",htmlFor:"elements"},(e=this.labelElementsPerPage)!==null&&e!==void 0?e:"Elements per page"),i("select",{key:"c4e99d784347a67c5616b3ed0ca25934dbdae55f",name:"elements",id:"elements"},this.elementsRanges.map((e=>i("option",{value:e},e))))),i("div",{key:"5eb516226cf5bcb23e575109371c4f55ca235e04",class:"indicators"},i("div",{key:"58a8655b582e8cdcd9f8c553343d9e407dd66971",class:"elements"},this.completeVersion?i("span",null,i("span",null,this.firstPage)," - ",i("span",null,this.currentPage)," ",this.pagLabel," ",i("span",null,this.totalElements)):i("span",null,i("span",null,this.currentPage)," ",this.pagLabel," ",i("span",null,this.lastPage))),i("div",{key:"92b5476c223e477532726304c282ed34e1acccc7",class:"arrow"},this.showFirstAndLast&&i("button",{key:"740c67ee4f73c5a55a022b2281913d8652deeed2",onClick:()=>{this.currentPage=this.firstPage},disabled:this.currentPage===this.firstPage?true:false}," ",i("jump-icon",{key:"5a880ea7c01afcc8ae9a4e84934e386e0edab58c",slot:"prefix",name:"chevrons-left"})," "),i("button",{key:"08fe7f7faa6c7645151ec3ea2b4bf4247f082a2d",onClick:()=>{this.currentPage--},disabled:this.currentPage===this.firstPage?true:false}," ",i("jump-icon",{key:"04a972584533f1272b10c7e9068ce332aef77299",slot:"prefix",name:"chevron-left"})," "),i("button",{key:"0ea012c03b06b587296c9190eece67351579b6e3",onClick:()=>{this.currentPage++},disabled:this.currentPage===this.lastPage?true:false}," ",i("jump-icon",{key:"155d6a407989f9cc5d38832df8fb98a3505c3113",slot:"prefix",name:"chevron-right"})," "),this.showFirstAndLast&&i("button",{key:"be46c67831f6d732d47e9340aca1a43a650af958",onClick:()=>{this.currentPage=this.lastPage},disabled:this.currentPage===this.lastPage?true:false}," ",i("jump-icon",{key:"b04a3d8a8726f945d5639761dde68a300e40f80a",slot:"prefix",name:"chevrons-right"})," ")))))}static get watchers(){return{currentPage:["watchCurrentPage"]}}};r.style=s;export{r as jump_pagination};
|
|
2
|
-
//# sourceMappingURL=p-87256ed6.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["jumpPaginationCss","JumpPaginationStyle0","JumpPagination","watchCurrentPage","newValue","oldValue","details","currentPage","previousPage","firstPage","this","lastPage","direction","jumpChangePage","emit","componentWillLoad","initialPage","render","console","log","completeVersion","h","Host","key","class","htmlFor","_a","labelElementsPerPage","name","id","elementsRanges","map","range","value","pagLabel","totalElements","showFirstAndLast","onClick","disabled","slot"],"sources":["src/components/jump-pagination/jump-pagination.scss?tag=jump-pagination","src/components/jump-pagination/jump-pagination.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.JumpPagination {\n --pagination-label-color: var(--neutral-grey-secondary);\n --pagination-arrows-color: var(--neutral-grey-secondary);\n --pagination-arrows-disabled: #CBCBCB;\n \n font-family: var(--ff-primary);\n\n &__Wrapper {\n display: flex;\n justify-content: space-between;\n\n .elementsPerPage {\n display: flex;\n gap: 1rem;\n align-items: center;\n\n label {\n color: var(--pagination-label-color);\n font-size: 14px;\n font-weight: normal;\n }\n } \n \n .indicators {\n font-size: 16px;\n font-weight: normal;\n display: flex;\n justify-content: space-between;\n gap: 20px;\n \n color: var(--pagination-label-color);\n\n .arrow {\n color: var(--pagination-arrows-color);\n display: flex;\n align-items: center;\n gap: 10px;\n\n button {\n background-color: transparent;\n border: none;\n cursor: pointer;\n padding: 0px;\n display: flex;\n align-items: center;\n }\n\n button:disabled {\n cursor: not-allowed;\n color: var(--pagination-arrows-disabled); \n \n }\n }\n\n .elements {\n color: var(--pagination-label-color);\n display: flex;\n align-items: center;\n gap: 5px;\n }\n }\n \n }\n \n}","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 /**\n * Indicates the first page/product of the list\n */\n @State() firstPage: number = 1;\n\n @State() currentPage: number;\n\n @Watch('currentPage')\n watchCurrentPage(newValue: number, oldValue: number) {\n let details = {\n currentPage: newValue,\n previousPage: oldValue,\n firstPage: this.firstPage,\n lastPage: this.lastPage,\n direction: newValue > oldValue ? 'next' : 'prev'\n };\n\n this.jumpChangePage.emit(details);\n }\n\n /* ---------------------- @PROPERTIES ------------------------- */\n\n @Prop({reflect:true}) totalElements: number;\n\n @Prop({reflect:true}) pagLabel: string = 'di'; // Identifica la label testuale di pagination. \n\n @Prop({reflect:true}) initialPage: number = 1;\n\n @Prop({reflect:true}) lastPage: number = 10; \n\n /**\n * Label for the elements per page select\n */\n @Prop({reflect:true}) labelElementsPerPage: string = 'Elementi per pagina';\n\n /**\n * Values for the elements per page select\n */\n @Prop({reflect:true}) elementsRanges: Array<number> = [10, 20, 60, 100];\n\n\n /**\n * If true, the component will show the complete version of the pagination, with elements informations\n */\n @Prop({reflect:true}) completeVersion: boolean = false;\n\n @Prop({reflect:true}) showFirstAndLast: boolean = false;\n\n /* ---------------------- @EVENTS ------------------------- */\n @Event({ eventName: 'jump-change-page' }) jumpChangePage: EventEmitter;\n\n /* ---------------------- @LIFECYCLE ------------------------- */\n componentWillLoad() {\n this.currentPage = this.initialPage;\n }\n\n render() {\n console.log('completeVersion', this.completeVersion);\n return (\n <Host class=\"JumpPagination\">\n <div class=\"JumpPagination__Wrapper\">\n { this.completeVersion && \n <div class=\"elementsPerPage\">\n <label htmlFor=\"elements\">{this.labelElementsPerPage ?? 'Elements per page'}</label>\n <select name=\"elements\" id=\"elements\">\n {this.elementsRanges.map((range) => (\n <option value={range}>{range}</option>\n ))}\n </select>\n </div> \n }\n <div class=\"indicators\"> \n <div class=\"elements\">\n {this.completeVersion ?\n <span>\n <span>{this.firstPage}</span> - <span>{this.currentPage}</span> {this.pagLabel} <span>{this.totalElements}</span>\n </span>\n \n :\n <span>\n <span>{this.currentPage}</span> {this.pagLabel} <span>{this.lastPage}</span>\n </span>\n }\n </div>\n <div class=\"arrow\">\n {this.showFirstAndLast &&\n <button \n onClick={() => {this.currentPage = this.firstPage} }\n disabled={(this.currentPage === this.firstPage) ? true : false}\n > <jump-icon slot=\"prefix\" name=\"chevrons-left\"></jump-icon> </button>\n }\n <button \n onClick={() => {this.currentPage--}} \n disabled={(this.currentPage === this.firstPage) ? true : false}\n > <jump-icon slot=\"prefix\" name=\"chevron-left\"></jump-icon> </button>\n <button \n onClick={() => {this.currentPage++}}\n disabled={(this.currentPage === this.lastPage) ? true : false}\n > <jump-icon slot=\"prefix\" name=\"chevron-right\"></jump-icon> </button>\n {this.showFirstAndLast &&\n <button \n onClick={() => {this.currentPage = this.lastPage}}\n disabled={(this.currentPage === this.lastPage) ? 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"],"mappings":"yDAAA,MAAMA,EAAoB,woCAC1B,MAAAC,EAAeD,E,MCMFE,EAAc,M,yFAMI,E,sEAqBY,K,iBAEG,E,cAEH,G,0BAKY,sB,oBAKE,CAAC,GAAI,GAAI,GAAI,K,qBAMlB,M,sBAEC,K,CAtCnD,gBAAAC,CAAiBC,EAAkBC,GACjC,IAAIC,EAAU,CACZC,YAAaH,EACbI,aAAcH,EACdI,UAAWC,KAAKD,UAChBE,SAAUD,KAAKC,SACfC,UAAWR,EAAWC,EAAW,OAAS,QAG5CK,KAAKG,eAAeC,KAAKR,E,CAmC3B,iBAAAS,GACEL,KAAKH,YAAcG,KAAKM,W,CAG1B,MAAAC,G,MACEC,QAAQC,IAAI,kBAAmBT,KAAKU,iBACpC,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAM,kBACVH,EAAA,OAAAE,IAAA,2CAAKC,MAAM,2BACPd,KAAKU,iBACLC,EAAA,OAAAE,IAAA,2CAAKC,MAAM,mBACTH,EAAA,SAAAE,IAAA,2CAAOE,QAAQ,aAAYC,EAAAhB,KAAKiB,wBAAoB,MAAAD,SAAA,EAAAA,EAAI,qBACpDL,EAAA,UAAAE,IAAA,2CAAQK,KAAK,WAAWC,GAAG,YACxBnB,KAAKoB,eAAeC,KAAKC,GACxBX,EAAA,UAAQY,MAAOD,GAAQA,OAKnCX,EAAA,OAAAE,IAAA,2CAAKC,MAAM,cACTH,EAAA,OAAAE,IAAA,2CAAKC,MAAM,YACRd,KAAKU,gBACJC,EAAA,YACEA,EAAA,YAAOX,KAAKD,WAAiB,MAAGY,EAAA,YAAOX,KAAKH,aAAmB,IAAEG,KAAKwB,SAAQ,IAAEb,EAAA,YAAOX,KAAKyB,gBAI9Fd,EAAA,YACEA,EAAA,YAAOX,KAAKH,aAAmB,IAAEG,KAAKwB,SAAQ,IAAEb,EAAA,YAAOX,KAAKC,YAIlEU,EAAA,OAAAE,IAAA,2CAAKC,MAAM,SACRd,KAAK0B,kBACJf,EAAA,UAAAE,IAAA,2CACEc,QAAS,KAAO3B,KAAKH,YAAcG,KAAKD,SAAS,EACjD6B,SAAW5B,KAAKH,cAAgBG,KAAKD,UAAa,KAAO,OAAK,IAC9DY,EAAA,aAAAE,IAAA,2CAAWgB,KAAK,SAASX,KAAK,kBAA4B,OAE9DP,EAAA,UAAAE,IAAA,2CACEc,QAAS,KAAO3B,KAAKH,aAAa,EAClC+B,SAAW5B,KAAKH,cAAgBG,KAAKD,UAAa,KAAO,OAAK,IAC9DY,EAAA,aAAAE,IAAA,2CAAWgB,KAAK,SAASX,KAAK,iBAA2B,OAC3DP,EAAA,UAAAE,IAAA,2CACEc,QAAS,KAAO3B,KAAKH,aAAa,EAClC+B,SAAW5B,KAAKH,cAAgBG,KAAKC,SAAY,KAAO,OAAK,IAC3DU,EAAA,aAAAE,IAAA,2CAAWgB,KAAK,SAASX,KAAK,kBAA4B,OAC7DlB,KAAK0B,kBACJf,EAAA,UAAAE,IAAA,2CACEc,QAAS,KAAO3B,KAAKH,YAAcG,KAAKC,QAAQ,EAChD2B,SAAW5B,KAAKH,cAAgBG,KAAKC,SAAY,KAAO,OAAK,IAC3DU,EAAA,aAAAE,IAAA,2CAAWgB,KAAK,SAASX,KAAK,mBAA6B,U"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as a,H as r}from"./p-20ceb40c.js";const o=':root{--neutral-grey-background:#eeeeee;--neutral-grey-disabled:#cbcbcb;--neutral-grey-primary:#282828;--neutral-grey-secondary:#707070;--neutral-white:#ffffff;--primary-hard:#e75a50;--primary-soft:#ffeae9;--primary-standard:#fa7268;--secondary-hard:#435171;--secondary-soft:#dde3ed;--secondary-standard:#5e79ba;--status-danger-hard:#ba250a;--status-danger-soft:#fdd3d1;--status-danger-standard:#d72c0d;--status-interaction-hard:#22559e;--status-interaction-soft:#f2f7fe;--status-interaction-standard:#2c6ecb;--status-success-hard:#156048;--status-success-soft:#f1f8f5;--status-success-standard:#1d7f60;--status-warning-hard:#987100;--status-warning-soft:#fef5ea;--status-warning-standard:#b98900;--ff-primary:"Inter";--ff-secondary:"Prompt";--lh-300:1.25rem;--lh-400:1.5rem;--lh-500:1.625rem;--lh-600:2rem;--lh-700:2.75rem;--lh-800:3.5rem;--lh-850:4.375rem;--lh-900:5.5rem;--fs-300:0.875rem;--fs-400:1rem;--fs-500:1.125rem;--fs-600:1.5rem;--fs-700:2.25rem;--fs-800:3rem;--fs-850:3.75rem;--fs-900:4.5rem;--fw-300:300;--fw-400:400;--fw-900:700}:host button,:host a{background-color:transparent;border:none;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer}:host{--jump-button-color:#ffffff;--jump-button-color-disabled:#cbcbcb;--jump-button-background:var(--primary-standard);--jump-button-background-outline:transparent;--jump-button-color-hover:#ffffff;--jump-button-background-hover:var(--primary-hard);--jump-button-border-radius:var(--border-radius-1, 0.1875rem) var(--border-radius-1, 0.1875rem) var(--border-radius-1, 0.1875rem) var(--border-radius-1, 0.1875rem);--jump-button-padding:1rem 1.25rem}:host button,:host a{background-color:var(--jump-button-background);border-radius:var(--jump-button-border-radius);color:var(--jump-button-color);position:relative;font-family:var(--ff-primary, "Arial"), sans-serif;font-weight:var(--fw-700, 700);font-size:var(--fs-400, 1rem);line-height:var(--lh-400, 1.3);display:flex;align-items:center;gap:var(--jump-button-gap, 0.5rem);text-decoration:none;padding:var(--jump-button-padding)}:host button:hover,:host a:hover{background-color:var(--jump-button-background-hover);color:var(--jump-button-color-hover)}:host button[data-variant=primary],:host a[data-variant=primary]{--jump-button-color:var(--neutral-white);--jump-button-background:var(--primary-standard);--jump-button-color-hover:var(--neutral-white);--jump-button-background-hover:var(--primary-hard)}:host button[data-variant=secondary],:host a[data-variant=secondary]{--jump-button-color:var(--neutral-white);--jump-button-background:var(--secondary-standard);--jump-button-color-hover:var(--neutral-white);--jump-button-background-hover:var(--secondary-hard)}:host button[data-variant=neutral],:host a[data-variant=neutral]{--jump-button-color:var(--neutral-white);--jump-button-background:var(--neutral-grey-secondary);--jump-button-color-hover:var(--neutral-white);--jump-button-background-hover:var(--neutral-grey-primary)}:host button[data-variant=white],:host a[data-variant=white]{--jump-button-color:var(--neutral-grey-primary);--jump-button-background:var(--neutral-white);--jump-button-color-hover:var(--neutral-grey-primary);--jump-button-background-hover:var(--neutral-grey-background)}:host button[disabled],:host a[disabled]{--jump-button-background:var(--jump-button-color-disabled);--jump-button-background-hover:var(--jump-button-color-disabled);cursor:not-allowed}:host button[data-pill],:host a[data-pill]{border-radius:100rem}:host button[data-size=small],:host a[data-size=small]{font-size:var(--fs-300, 0.875rem);line-height:var(--lh-300, 1.2);--jump-button-padding:0.65rem 1rem}:host button[data-size=medium],:host a[data-size=medium]{font-size:var(--fs-400, 1rem);line-height:var(--lh-400, 1.3);--jump-button-padding:0.75rem 1.25rem}:host button[data-size=large],:host a[data-size=large]{font-size:var(--fs-500, 1.125rem);line-height:var(--lh-500, 1.4);--jump-button-padding:1rem 1.5rem}:host button[data-full],:host a[data-full]{width:100%;justify-content:center}:host button[data-outline],:host a[data-outline]{background-color:var(--jump-button-background-outline);border:1px solid var(--jump-button-background);color:var(--jump-button-background)}:host button[data-outline]:hover,:host a[data-outline]:hover{background-color:var(--jump-button-background-hover);border:1px solid var(--jump-button-background-hover);color:var(--jump-button-color-hover)}:host button[data-text],:host a[data-text]{background-color:transparent;border:none;color:var(--jump-button-background);padding:0}:host button[data-text]:hover,:host a[data-text]:hover{background-color:transparent;border:none;color:var(--jump-button-background-hover)}:host button[data-only-icon],:host a[data-only-icon]{--jump-button-padding:0.5rem}:host button[data-only-icon][data-size=small],:host a[data-only-icon][data-size=small]{--jump-button-padding:0.5rem}:host button[data-only-icon][data-size=medium],:host a[data-only-icon][data-size=medium]{--jump-button-padding:0.875rem}:host button[data-only-icon][data-size=large],:host a[data-only-icon][data-size=large]{--jump-button-padding:1rem}:host button.chat,:host a.chat{--jump-button-color:var(--neutral-white);--jump-button-background:hsla(133, 54%, 58%, 1);--jump-button-color-hover:var(--neutral-white);--jump-button-background-hover:hsla(161, 63%, 31%, 1)}';const n=o;const e=class{constructor(a){t(this,a);this.disabled=false;this.variant="primary";this.outline=false;this.size="medium";this.full=false;this.pill=false;this.text=false;this.onlyIcon=false;this.href=undefined;this.target=undefined;this.type="button";this.name=undefined;this.value=undefined;this.ariaLabel=undefined;this.class=undefined;this.buttonId=undefined}componentWillLoad(){this.target=this.href?this.target:"_self"}render(){return a(r,{key:"2f1a96f504d7f273bfdf0b49d7a708aea570f59f"},this.href?a("a",{href:this.href,id:this.buttonId,class:this.class,"data-variant":this.variant,"data-outline":this.outline,"data-size":this.size,"data-full":this.full,"data-pill":this.pill,"data-text":this.text,"data-only-icon":this.onlyIcon,"aria-label":this.ariaLabel,target:this.target},a("slot",{name:"prefix"}),!this.onlyIcon&&a("slot",null),a("slot",{name:"suffix"})):a("button",{id:this.buttonId,class:this.class,"data-variant":this.variant,"data-outline":this.outline,"data-size":this.size,"data-full":this.full,"data-pill":this.pill,"data-text":this.text,"data-only-icon":this.onlyIcon,disabled:this.disabled,"aria-label":this.ariaLabel,type:this.type,name:this.name,value:this.value},a("slot",{name:"prefix"}),!this.onlyIcon&&a("slot",null),a("slot",{name:"suffix"})))}};e.style=n;export{e as jump_button};
|
|
2
|
-
//# sourceMappingURL=p-9e47f451.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["jumpButtonCss","JumpButtonStyle0","JumpButton","undefined","componentWillLoad","this","target","href","render","h","Host","key","id","buttonId","class","variant","outline","size","full","pill","text","onlyIcon","ariaLabel","name","disabled","type","value"],"sources":["src/components/jump-button/jump-button.scss?tag=jump-button&encapsulation=shadow","src/components/jump-button/jump-button.tsx"],"sourcesContent":[":root {\n /*BASE COLOR RULES*/\n --neutral-grey-background: #eeeeee;\n --neutral-grey-disabled: #cbcbcb;\n --neutral-grey-primary: #282828;\n --neutral-grey-secondary: #707070;\n --neutral-white: #ffffff;\n --primary-hard: #e75a50;\n --primary-soft: #ffeae9;\n --primary-standard: #fa7268;\n --secondary-hard: #435171;\n --secondary-soft: #dde3ed;\n --secondary-standard: #5e79ba;\n --status-danger-hard: #ba250a;\n --status-danger-soft: #fdd3d1;\n --status-danger-standard: #d72c0d;\n --status-interaction-hard: #22559e;\n --status-interaction-soft: #f2f7fe;\n --status-interaction-standard: #2c6ecb;\n --status-success-hard: #156048;\n --status-success-soft: #f1f8f5;\n --status-success-standard: #1d7f60;\n --status-warning-hard: #987100;\n --status-warning-soft: #fef5ea;\n --status-warning-standard: #b98900;\n\n /*TYPOGRAPHY RULES*/\n --ff-primary: 'Inter';\n --ff-secondary: 'Prompt';\n\n --lh-300: 1.25rem;\n --lh-400: 1.5rem;\n --lh-500: 1.625rem;\n --lh-600: 2rem;\n --lh-700: 2.75rem;\n --lh-800: 3.5rem;\n --lh-850: 4.375rem;\n --lh-900: 5.5rem;\n --fs-300: 0.875rem;\n --fs-400: 1rem;\n --fs-500: 1.125rem;\n --fs-600: 1.5rem;\n --fs-700: 2.25rem;\n --fs-800: 3rem;\n --fs-850: 3.75rem;\n --fs-900: 4.5rem;\n --fw-300: 300;\n --fw-400: 400;\n --fw-900: 700;\n}\n\n%reset-button {\n background-color: transparent;\n border: none;\n padding: 0;\n margin: 0;\n font: inherit;\n color: inherit;\n cursor: pointer;\n}\n\n:host {\n // display: inline-flex;\n // align-items: center;\n --jump-button-color: #ffffff;\n --jump-button-color-disabled: #cbcbcb;\n --jump-button-background: var(--primary-standard);\n --jump-button-background-outline: transparent;\n --jump-button-color-hover: #ffffff;\n --jump-button-background-hover: var(--primary-hard);\n --jump-button-border-radius: var(--border-radius-1, 0.1875rem) var(--border-radius-1, 0.1875rem) var(--border-radius-1, 0.1875rem) var(--border-radius-1, 0.1875rem);\n --jump-button-padding: 1rem 1.25rem;\n\n button,\n a {\n @extend %reset-button;\n background-color: var(--jump-button-background);\n border-radius: var(--jump-button-border-radius);\n color: var(--jump-button-color);\n position: relative;\n font-family: var(--ff-primary, 'Arial'), sans-serif;\n font-weight: var(--fw-700, 700);\n font-size: var(--fs-400, 1rem);\n line-height: var(--lh-400, 1.3);\n display: flex;\n align-items: center;\n gap: var(--jump-button-gap, 0.5rem);\n text-decoration: none;\n\n //TODO: internal padding of the button\n padding: var(--jump-button-padding);\n\n // TODO: gestire il focus con un outline\n &:hover {\n background-color: var(--jump-button-background-hover);\n color: var(--jump-button-color-hover);\n }\n\n &[data-variant='primary'] {\n --jump-button-color: var(--neutral-white);\n --jump-button-background: var(--primary-standard);\n --jump-button-color-hover: var(--neutral-white);\n --jump-button-background-hover: var(--primary-hard);\n }\n\n &[data-variant='secondary'] {\n --jump-button-color: var(--neutral-white);\n --jump-button-background: var(--secondary-standard);\n --jump-button-color-hover: var(--neutral-white);\n --jump-button-background-hover: var(--secondary-hard);\n }\n\n &[data-variant='neutral'] {\n --jump-button-color: var(--neutral-white);\n --jump-button-background: var(--neutral-grey-secondary);\n --jump-button-color-hover: var(--neutral-white);\n --jump-button-background-hover: var(--neutral-grey-primary);\n }\n\n &[data-variant='white'] {\n --jump-button-color: var(--neutral-grey-primary);\n --jump-button-background: var(--neutral-white);\n --jump-button-color-hover: var(--neutral-grey-primary);\n --jump-button-background-hover: var(--neutral-grey-background);\n }\n\n &[disabled] {\n --jump-button-background: var(--jump-button-color-disabled);\n --jump-button-background-hover: var(--jump-button-color-disabled);\n cursor: not-allowed;\n }\n\n &[data-pill] {\n border-radius: 100rem;\n }\n\n &[data-size='small'] {\n font-size: var(--fs-300, 0.875rem);\n line-height: var(--lh-300, 1.2);\n --jump-button-padding: 0.65rem 1rem;\n }\n\n &[data-size='medium'] {\n font-size: var(--fs-400, 1rem);\n line-height: var(--lh-400, 1.3);\n --jump-button-padding: 0.75rem 1.25rem;\n }\n\n &[data-size='large'] {\n font-size: var(--fs-500, 1.125rem);\n line-height: var(--lh-500, 1.4);\n --jump-button-padding: 1rem 1.5rem;\n }\n\n &[data-full] {\n width: 100%;\n justify-content: center;\n }\n\n &[data-outline] {\n background-color: var(--jump-button-background-outline);\n border: 1px solid var(--jump-button-background);\n color: var(--jump-button-background);\n &:hover {\n background-color: var(--jump-button-background-hover);\n border: 1px solid var(--jump-button-background-hover);\n color: var(--jump-button-color-hover);\n }\n }\n\n &[data-text] {\n background-color: transparent;\n border: none;\n color: var(--jump-button-background);\n padding: 0;\n &:hover {\n background-color: transparent;\n border: none;\n color: var(--jump-button-background-hover);\n }\n }\n\n &[data-only-icon] {\n --jump-button-padding: 0.5rem;\n }\n\n &[data-only-icon][data-size='small'] {\n --jump-button-padding: 0.5rem;\n }\n &[data-only-icon][data-size='medium'] {\n --jump-button-padding: 0.875rem;\n }\n &[data-only-icon][data-size='large'] {\n --jump-button-padding: 1rem;\n }\n\n &.chat {\n --jump-button-color: var(--neutral-white);\n --jump-button-background: hsla(133, 54%, 58%, 1);\n --jump-button-color-hover: var(--neutral-white);\n --jump-button-background-hover: hsla(161, 63%, 31%, 1);\n }\n }\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'jump-button',\n styleUrl: 'jump-button.scss',\n shadow: true,\n})\nexport class JumpButton {\n /**\n * Set the button as disabled; Vale solo per i bottoni\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Indicates the variant of the button\n */\n @Prop() variant: 'primary'|'secondary'|'white'|'neutral' = 'primary';\n\n /**\n * Indicates the button as outline\n */\n @Prop() outline: boolean = false;\n\n /**\n * Indicates the size of the button\n */\n @Prop() size: string = 'medium';\n\n /**\n * Indicates if the button is full width\n */\n @Prop() full: boolean = false;\n\n /**\n * Indicates the button as pill\n */\n @Prop() pill: boolean = false;\n\n /**\n * Indicates the button as text\n */\n @Prop() text: boolean = false;\n\n /**\n * Indicates the button as only icon\n **/\n @Prop() onlyIcon: boolean = false;\n\n /**\n * Indicates if button becames a anchor\n **/\n @Prop() href: string;\n\n /**\n * Indicates the type of anchor's target \n **/\n @Prop() target: '_blank' | '_parent' | '_self' | '_top'\n\n /**\n * Indicates type button\n **/\n @Prop() type: 'button'|'submit'|'reset' = 'button';\n\n /**\n * Indicates the name that the sender button will send\n **/\n @Prop() name: string = undefined;\n\n /**\n * Indicates the value that the sender button will send\n **/\n @Prop() value: string = undefined;\n\n /**\n * Indicates the value of text alternative to an element that has no visible text on the screen\n **/\n @Prop() ariaLabel: string = undefined;\n\n /**\n * Indicates classes of the component\n **/\n @Prop() class: string = undefined;\n\n /**\n * Indicates classes of the component\n **/\n @Prop() buttonId: string = undefined;\n\n componentWillLoad() {\n this.target = this.href ? this.target : '_self';\n }\n\n render() {\n \n return (\n <Host>\n {this.href ? (\n <a href={this.href} id={this.buttonId} class={this.class} data-variant={this.variant} data-outline={this.outline} data-size={this.size} data-full={this.full} data-pill={this.pill} data-text={this.text} data-only-icon={this.onlyIcon} aria-label={this.ariaLabel} target={this.target}>\n <slot name=\"prefix\"></slot>\n {!this.onlyIcon && <slot></slot>}\n <slot name=\"suffix\"></slot>\n </a>\n ) : ( \n <button id={this.buttonId} class={this.class} data-variant={this.variant} data-outline={this.outline} data-size={this.size} data-full={this.full} data-pill={this.pill} data-text={this.text} data-only-icon={this.onlyIcon} disabled={this.disabled} aria-label={this.ariaLabel} type={this.type} name={this.name} value={this.value}>\n <slot name=\"prefix\"></slot>\n {!this.onlyIcon && <slot></slot> }\n <slot name=\"suffix\"></slot>\n </button>\n )}\n </Host>\n );\n }\n\n}\n"],"mappings":"kDAAA,MAAMA,EAAgB,6sKACtB,MAAAC,EAAeD,E,MCMFE,EAAU,M,uCAIO,M,aAK+B,U,aAKhC,M,UAKJ,S,UAKC,M,UAKA,M,UAKA,M,cAKI,M,oDAec,S,UAKnBC,U,WAKCA,U,eAKIA,U,WAKJA,U,cAKGA,S,CAE3B,iBAAAC,GACEC,KAAKC,OAASD,KAAKE,KAAOF,KAAKC,OAAS,O,CAG1C,MAAAE,GAEE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACFN,KAAKE,KACJE,EAAA,KAAGF,KAAMF,KAAKE,KAAMK,GAAIP,KAAKQ,SAAUC,MAAOT,KAAKS,MAAK,eAAgBT,KAAKU,QAAO,eAAgBV,KAAKW,QAAO,YAAaX,KAAKY,KAAI,YAAaZ,KAAKa,KAAI,YAAab,KAAKc,KAAI,YAAad,KAAKe,KAAI,iBAAkBf,KAAKgB,SAAQ,aAAchB,KAAKiB,UAAWhB,OAAQD,KAAKC,QAChRG,EAAA,QAAMc,KAAK,YACTlB,KAAKgB,UAAYZ,EAAA,aACnBA,EAAA,QAAMc,KAAK,YAGbd,EAAA,UAAQG,GAAIP,KAAKQ,SAAUC,MAAOT,KAAKS,MAAK,eAAgBT,KAAKU,QAAO,eAAgBV,KAAKW,QAAO,YAAaX,KAAKY,KAAI,YAAaZ,KAAKa,KAAI,YAAab,KAAKc,KAAI,YAAad,KAAKe,KAAI,iBAAkBf,KAAKgB,SAAUG,SAAUnB,KAAKmB,SAAQ,aAAcnB,KAAKiB,UAAWG,KAAMpB,KAAKoB,KAAMF,KAAMlB,KAAKkB,KAAMG,MAAOrB,KAAKqB,OAC9TjB,EAAA,QAAMc,KAAK,YACTlB,KAAKgB,UAAYZ,EAAA,aACnBA,EAAA,QAAMc,KAAK,Y"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
tags: string[];
|
|
4
|
-
argTypes: {
|
|
5
|
-
pagLabel: {
|
|
6
|
-
name: string;
|
|
7
|
-
control: string;
|
|
8
|
-
description: string;
|
|
9
|
-
};
|
|
10
|
-
completeVersion: {
|
|
11
|
-
name: string;
|
|
12
|
-
control: string;
|
|
13
|
-
description: string;
|
|
14
|
-
};
|
|
15
|
-
showAdditionalChrevrons: {
|
|
16
|
-
name: string;
|
|
17
|
-
control: string;
|
|
18
|
-
description: string;
|
|
19
|
-
};
|
|
20
|
-
firstPage: {
|
|
21
|
-
name: string;
|
|
22
|
-
control: string;
|
|
23
|
-
description: string;
|
|
24
|
-
if: {
|
|
25
|
-
arg: string;
|
|
26
|
-
eq: boolean;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
initialPage: {
|
|
30
|
-
name: string;
|
|
31
|
-
control: string;
|
|
32
|
-
description: string;
|
|
33
|
-
};
|
|
34
|
-
lastPage: {
|
|
35
|
-
name: string;
|
|
36
|
-
control: string;
|
|
37
|
-
description: string;
|
|
38
|
-
if: {
|
|
39
|
-
arg: string;
|
|
40
|
-
eq: boolean;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
totalElements: {
|
|
44
|
-
name: string;
|
|
45
|
-
control: string;
|
|
46
|
-
description: string;
|
|
47
|
-
if: {
|
|
48
|
-
arg: string;
|
|
49
|
-
eq: boolean;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
labelElementsPerPage: {
|
|
53
|
-
name: string;
|
|
54
|
-
control: string;
|
|
55
|
-
description: string;
|
|
56
|
-
if: {
|
|
57
|
-
arg: string;
|
|
58
|
-
eq: boolean;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
elementsRanges: {
|
|
62
|
-
name: string;
|
|
63
|
-
control: string;
|
|
64
|
-
options: number[];
|
|
65
|
-
if: {
|
|
66
|
-
arg: string;
|
|
67
|
-
eq: boolean;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
export default _default;
|
|
73
|
-
export declare const Playground: any;
|
|
74
|
-
export declare const PaginationPerPagineRidotto: any;
|
|
75
|
-
export declare const PaginationPerPagineCompleto: any;
|
|
File without changes
|