@maggioli-design-system/mds-paginator-item 1.0.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/dist/cjs/index-e927fcce.js +1102 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/mds-paginator-item.cjs.entry.js +62 -0
- package/dist/cjs/mds-paginator-item.cjs.js +19 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +115 -0
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +71 -0
- package/dist/collection/dictionary/autocomplete.js +59 -0
- package/dist/collection/dictionary/button.js +26 -0
- package/dist/collection/dictionary/color.js +19 -0
- package/dist/collection/dictionary/floating-ui.js +19 -0
- package/dist/collection/dictionary/icon.js +3 -0
- package/dist/collection/dictionary/input-text-type.js +13 -0
- package/dist/collection/dictionary/loading.js +5 -0
- package/dist/collection/dictionary/typography.js +59 -0
- package/dist/collection/dictionary/variant.js +65 -0
- package/dist/collection/fixtures/cities.js +110 -0
- package/dist/collection/interface/input-value.js +1 -0
- package/dist/collection/types/autocomplete.js +1 -0
- package/dist/collection/types/button.js +1 -0
- package/dist/collection/types/floating-ui.js +1 -0
- package/dist/collection/types/form-rel.js +1 -0
- package/dist/collection/types/input-text-type.js +1 -0
- package/dist/collection/types/input-value-type.js +1 -0
- package/dist/collection/types/loading.js +1 -0
- package/dist/collection/types/typography.js +1 -0
- package/dist/collection/types/variant.js +1 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/components/index.js +2 -0
- package/dist/components/mds-paginator-item.d.ts +11 -0
- package/dist/components/mds-paginator-item.js +80 -0
- package/dist/esm/index-83a6cf7b.js +1076 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/mds-paginator-item.entry.js +58 -0
- package/dist/esm/mds-paginator-item.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm-es5/index-83a6cf7b.js +2 -0
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/loader.js +1 -0
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -0
- package/dist/esm-es5/mds-paginator-item.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/mds-paginator-item/index.esm.js +0 -0
- package/dist/mds-paginator-item/mds-paginator-item.esm.js +1 -0
- package/dist/mds-paginator-item/mds-paginator-item.js +130 -0
- package/dist/mds-paginator-item/p-443e8754.system.entry.js +1 -0
- package/dist/mds-paginator-item/p-4cba8bec.system.js +2 -0
- package/dist/mds-paginator-item/p-50ea2036.system.js +1 -0
- package/dist/mds-paginator-item/p-5763f0b1.system.js +1 -0
- package/dist/mds-paginator-item/p-9275c4d0.js +2 -0
- package/dist/mds-paginator-item/p-b378e187.entry.js +1 -0
- package/dist/stats.json +483 -0
- package/dist/types/components/mds-paginator-item/mds-paginator-item.d.ts +15 -0
- package/dist/types/components.d.ts +61 -0
- package/dist/types/dictionary/autocomplete.d.ts +2 -0
- package/dist/types/dictionary/button.d.ts +5 -0
- package/dist/types/dictionary/color.d.ts +3 -0
- package/dist/types/dictionary/floating-ui.d.ts +3 -0
- package/dist/types/dictionary/icon.d.ts +2 -0
- package/dist/types/dictionary/input-text-type.d.ts +2 -0
- package/dist/types/dictionary/loading.d.ts +2 -0
- package/dist/types/dictionary/typography.d.ts +9 -0
- package/dist/types/dictionary/variant.d.ts +9 -0
- package/dist/types/fixtures/cities.d.ts +2 -0
- package/dist/types/interface/input-value.d.ts +4 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/types/autocomplete.d.ts +2 -0
- package/dist/types/types/button.d.ts +4 -0
- package/dist/types/types/floating-ui.d.ts +2 -0
- package/dist/types/types/form-rel.d.ts +1 -0
- package/dist/types/types/input-text-type.d.ts +1 -0
- package/dist/types/types/input-value-type.d.ts +1 -0
- package/dist/types/types/loading.d.ts +1 -0
- package/dist/types/types/typography.d.ts +8 -0
- package/dist/types/types/variant.d.ts +10 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +47 -0
- package/readme.md +39 -0
- package/src/components/mds-paginator-item/.gitlab-ci.yml +25 -0
- package/src/components/mds-paginator-item/mds-paginator-item.css +83 -0
- package/src/components/mds-paginator-item/mds-paginator-item.tsx +43 -0
- package/src/components/mds-paginator-item/readme.md +19 -0
- package/src/components.d.ts +61 -0
- package/src/dictionary/autocomplete.ts +62 -0
- package/src/dictionary/button.ts +35 -0
- package/src/dictionary/color.ts +24 -0
- package/src/dictionary/floating-ui.ts +25 -0
- package/src/dictionary/icon.ts +5 -0
- package/src/dictionary/input-text-type.ts +17 -0
- package/src/dictionary/loading.ts +9 -0
- package/src/dictionary/typography.ts +76 -0
- package/src/dictionary/variant.ts +82 -0
- package/src/fixtures/cities.ts +116 -0
- package/src/fixtures/icons.json +64 -0
- package/src/interface/input-value.ts +5 -0
- package/src/tailwind/components.css +14 -0
- package/src/types/autocomplete.ts +69 -0
- package/src/types/button.ts +24 -0
- package/src/types/floating-ui.ts +17 -0
- package/src/types/form-rel.ts +11 -0
- package/src/types/input-text-type.ts +11 -0
- package/src/types/input-value-type.ts +5 -0
- package/src/types/loading.ts +3 -0
- package/src/types/typography.ts +57 -0
- package/src/types/variant.ts +73 -0
- package/www/build/index.esm.js +0 -0
- package/www/build/mds-paginator-item.esm.js +1 -0
- package/www/build/mds-paginator-item.js +130 -0
- package/www/build/p-443e8754.system.entry.js +1 -0
- package/www/build/p-4cba8bec.system.js +2 -0
- package/www/build/p-50ea2036.system.js +1 -0
- package/www/build/p-5763f0b1.system.js +1 -0
- package/www/build/p-9275c4d0.js +2 -0
- package/www/build/p-b378e187.entry.js +1 -0
- package/www/host.config.json +15 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
const citiesDictionary = [
|
|
2
|
+
'Agrigento',
|
|
3
|
+
'Alessandria',
|
|
4
|
+
'Ancona',
|
|
5
|
+
'Aosta',
|
|
6
|
+
'Arezzo',
|
|
7
|
+
'Ascoli Piceno',
|
|
8
|
+
'Asti',
|
|
9
|
+
'Avellino',
|
|
10
|
+
'Bari',
|
|
11
|
+
'Barletta-Andria-Trani',
|
|
12
|
+
'Belluno',
|
|
13
|
+
'Benevento',
|
|
14
|
+
'Bergamo',
|
|
15
|
+
'Biella',
|
|
16
|
+
'Bologna',
|
|
17
|
+
'Bolzano',
|
|
18
|
+
'Brescia',
|
|
19
|
+
'Brindisi',
|
|
20
|
+
'Cagliari',
|
|
21
|
+
'Caltanissetta',
|
|
22
|
+
'Campobasso',
|
|
23
|
+
'Caserta',
|
|
24
|
+
'Catania',
|
|
25
|
+
'Catanzaro',
|
|
26
|
+
'Chieti',
|
|
27
|
+
'Como',
|
|
28
|
+
'Cosenza',
|
|
29
|
+
'Cremona',
|
|
30
|
+
'Crotone',
|
|
31
|
+
'Cuneo',
|
|
32
|
+
'Enna',
|
|
33
|
+
'Fermo',
|
|
34
|
+
'Ferrara',
|
|
35
|
+
'Firenze',
|
|
36
|
+
'Foggia',
|
|
37
|
+
'Forlì-Cesena',
|
|
38
|
+
'Frosinone',
|
|
39
|
+
'Genova',
|
|
40
|
+
'Gorizia',
|
|
41
|
+
'Grosseto',
|
|
42
|
+
'Imperia',
|
|
43
|
+
'Isernia',
|
|
44
|
+
'La Spezia',
|
|
45
|
+
'L\'Aquila',
|
|
46
|
+
'Latina',
|
|
47
|
+
'Lecce',
|
|
48
|
+
'Lecco',
|
|
49
|
+
'Livorno',
|
|
50
|
+
'Lodi',
|
|
51
|
+
'Lucca',
|
|
52
|
+
'Macerata',
|
|
53
|
+
'Mantova',
|
|
54
|
+
'Massa-Carrara',
|
|
55
|
+
'Matera',
|
|
56
|
+
'Messina',
|
|
57
|
+
'Milano',
|
|
58
|
+
'Modena',
|
|
59
|
+
'Monza e della Brianza',
|
|
60
|
+
'Napoli',
|
|
61
|
+
'Novara',
|
|
62
|
+
'Nuoro',
|
|
63
|
+
'Oristano',
|
|
64
|
+
'Padova',
|
|
65
|
+
'Palermo',
|
|
66
|
+
'Parma',
|
|
67
|
+
'Pavia',
|
|
68
|
+
'Perugia',
|
|
69
|
+
'Pesaro e Urbino',
|
|
70
|
+
'Pescara',
|
|
71
|
+
'Piacenza',
|
|
72
|
+
'Pisa',
|
|
73
|
+
'Pistoia',
|
|
74
|
+
'Pordenone',
|
|
75
|
+
'Potenza',
|
|
76
|
+
'Prato',
|
|
77
|
+
'Ragusa',
|
|
78
|
+
'Ravenna',
|
|
79
|
+
'Reggio Calabria',
|
|
80
|
+
'Reggio Emilia',
|
|
81
|
+
'Rieti',
|
|
82
|
+
'Rimini',
|
|
83
|
+
'Roma',
|
|
84
|
+
'Rovigo',
|
|
85
|
+
'Salerno',
|
|
86
|
+
'Sassari',
|
|
87
|
+
'Savona',
|
|
88
|
+
'Siena',
|
|
89
|
+
'Siracusa',
|
|
90
|
+
'Sondrio',
|
|
91
|
+
'Sud Sardegna',
|
|
92
|
+
'Taranto',
|
|
93
|
+
'Teramo',
|
|
94
|
+
'Terni',
|
|
95
|
+
'Torino',
|
|
96
|
+
'Trapani',
|
|
97
|
+
'Trento',
|
|
98
|
+
'Treviso',
|
|
99
|
+
'Trieste',
|
|
100
|
+
'Udine',
|
|
101
|
+
'Varese',
|
|
102
|
+
'Venezia',
|
|
103
|
+
'Verbano-Cusio-Ossola',
|
|
104
|
+
'Vercelli',
|
|
105
|
+
'Verona',
|
|
106
|
+
'Vibo Valentia',
|
|
107
|
+
'Vicenza',
|
|
108
|
+
'Viterbo',
|
|
109
|
+
];
|
|
110
|
+
export { citiesDictionary, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* MdsPaginatorItem custom elements */
|
|
2
|
+
export { MdsPaginatorItem as MdsPaginatorItem } from '../types/components/mds-paginator-item/mds-paginator-item';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Used to manually set the base path where assets can be found.
|
|
6
|
+
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
7
|
+
* such as "setAssetPath(import.meta.url)". Other options include
|
|
8
|
+
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
9
|
+
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
10
|
+
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
11
|
+
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
12
|
+
* will have to ensure the static assets are copied to its build directory.
|
|
13
|
+
*/
|
|
14
|
+
export declare const setAssetPath: (path: string) => void;
|
|
15
|
+
|
|
16
|
+
export interface SetPlatformOptions {
|
|
17
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
18
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
19
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
22
|
+
export * from '../types/components';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface MdsPaginatorItem extends Components.MdsPaginatorItem, HTMLElement {}
|
|
4
|
+
export const MdsPaginatorItem: {
|
|
5
|
+
prototype: MdsPaginatorItem;
|
|
6
|
+
new (): MdsPaginatorItem;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
function toVal(mix) {
|
|
4
|
+
var k, y, str='';
|
|
5
|
+
|
|
6
|
+
if (typeof mix === 'string' || typeof mix === 'number') {
|
|
7
|
+
str += mix;
|
|
8
|
+
} else if (typeof mix === 'object') {
|
|
9
|
+
if (Array.isArray(mix)) {
|
|
10
|
+
for (k=0; k < mix.length; k++) {
|
|
11
|
+
if (mix[k]) {
|
|
12
|
+
if (y = toVal(mix[k])) {
|
|
13
|
+
str && (str += ' ');
|
|
14
|
+
str += y;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
} else {
|
|
19
|
+
for (k in mix) {
|
|
20
|
+
if (mix[k]) {
|
|
21
|
+
str && (str += ' ');
|
|
22
|
+
str += k;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return str;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function clsx () {
|
|
32
|
+
var i=0, tmp, x, str='';
|
|
33
|
+
while (i < arguments.length) {
|
|
34
|
+
if (tmp = arguments[i++]) {
|
|
35
|
+
if (x = toVal(tmp)) {
|
|
36
|
+
str && (str += ' ');
|
|
37
|
+
str += x;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return str;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const mdsPaginatorItemCss = ".fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--background-disabled:rgb(var(--tone-neutral-09));--background-hover:rgb(var(--tone-neutral-08));--background-selected:rgb(var(--brand-maggioli-03));--background:rgb(var(--tone-neutral-09));--color-disabled:rgb(var(--tone-neutral-06));--color-hover:rgb(var(--tone-neutral-02));--color-selected:rgb(var(--tone-neutral));--color:rgb(var(--tone-neutral-02));--radius:200px;--shadow-disabled:none;--shadow-hover:none;--shadow-selected:0 0 1px 1px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);--shadow:none;--size:2.25rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding-left:0.75rem;padding-right:0.75rem;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;background-color:var(--background);border-radius:var(--radius);-webkit-box-shadow:var(--shadow);box-shadow:var(--shadow);color:var(--color);height:var(--size);min-width:var(--size)}:host(:hover){background-color:var(--background-hover);-webkit-box-shadow:var(--shadow-hover);box-shadow:var(--shadow-hover);color:var(--color-hover);fill:var(--color-hover)}:host([active]){pointer-events:none;background-color:var(--background-selected);-webkit-box-shadow:var(--shadow-selected);box-shadow:var(--shadow-selected);color:var(--color-selected);fill:var(--color-selected)}:host([disabled]){pointer-events:none;background-color:var(--background-disabled);-webkit-box-shadow:var(--shadow-disabled);box-shadow:var(--shadow-disabled);color:var(--color-disabled);fill:var(--color-disabled)}.icon{padding-left:0px;padding-right:0px}";
|
|
45
|
+
|
|
46
|
+
const MdsPaginatorItem$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
47
|
+
constructor() {
|
|
48
|
+
super();
|
|
49
|
+
this.__registerHost();
|
|
50
|
+
this.__attachShadow();
|
|
51
|
+
}
|
|
52
|
+
render() {
|
|
53
|
+
return (h(Host, { class: clsx(this.active && 'active', this.disabled && 'disabled', this.icon && 'icon') }, this.icon !== undefined
|
|
54
|
+
? h("mds-icon", { name: this.icon })
|
|
55
|
+
: h("mds-text", { class: "text", typography: "detail" }, h("slot", null))));
|
|
56
|
+
}
|
|
57
|
+
static get style() { return mdsPaginatorItemCss; }
|
|
58
|
+
}, [1, "mds-paginator-item", {
|
|
59
|
+
"icon": [1],
|
|
60
|
+
"active": [516],
|
|
61
|
+
"disabled": [516]
|
|
62
|
+
}]);
|
|
63
|
+
function defineCustomElement$1() {
|
|
64
|
+
if (typeof customElements === "undefined") {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
const components = ["mds-paginator-item"];
|
|
68
|
+
components.forEach(tagName => { switch (tagName) {
|
|
69
|
+
case "mds-paginator-item":
|
|
70
|
+
if (!customElements.get(tagName)) {
|
|
71
|
+
customElements.define(tagName, MdsPaginatorItem$1);
|
|
72
|
+
}
|
|
73
|
+
break;
|
|
74
|
+
} });
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
const MdsPaginatorItem = MdsPaginatorItem$1;
|
|
78
|
+
const defineCustomElement = defineCustomElement$1;
|
|
79
|
+
|
|
80
|
+
export { MdsPaginatorItem, defineCustomElement };
|