@jumpgroup/jump-design-system 0.3.59 → 0.3.64
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/chunk.H33C3MRM-31110702.js +365 -0
- package/dist/cjs/chunk.H33C3MRM-31110702.js.map +1 -0
- package/dist/cjs/chunk.WLV3FVBR-bfad29d7.js +238 -0
- package/dist/cjs/chunk.WLV3FVBR-bfad29d7.js.map +1 -0
- package/dist/cjs/{class-map-b27ebf69.js → class-map-010ed95d.js} +3 -3
- package/dist/cjs/{class-map-b27ebf69.js.map → class-map-010ed95d.js.map} +1 -1
- package/dist/cjs/{chunk.H33C3MRM-2c09acb5.js → directive-helpers-b6926fa1.js} +2 -360
- package/dist/cjs/directive-helpers-b6926fa1.js.map +1 -0
- package/dist/cjs/if-defined-da1385f1.js +432 -0
- package/dist/cjs/if-defined-da1385f1.js.map +1 -0
- package/dist/cjs/{index-e91b2b41.js → index-864e40de.js} +5 -2
- package/dist/cjs/index-864e40de.js.map +1 -0
- package/dist/cjs/jump-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/jump-accordion.cjs.entry.js +32 -255
- package/dist/cjs/jump-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-badge.cjs.entry.js +1 -1
- package/dist/cjs/jump-button_2.cjs.entry.js +3 -2
- package/dist/cjs/jump-button_2.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-card-ecommerce-option.cjs.entry.js +1 -1
- package/dist/cjs/jump-card-ecommerce.cjs.entry.js +1 -1
- package/dist/cjs/jump-card.cjs.entry.js +1 -1
- package/dist/cjs/jump-design-system.cjs.js +2 -2
- package/dist/cjs/jump-filter-checkbox.cjs.entry.js +46 -470
- package/dist/cjs/jump-filter-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-filter-select.cjs.entry.js +4229 -0
- package/dist/cjs/jump-filter-select.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-filter-switch.cjs.entry.js +440 -0
- package/dist/cjs/jump-filter-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-filter.cjs.entry.js +1 -1
- package/dist/cjs/jump-filtergroup.cjs.entry.js +4 -4
- package/dist/cjs/jump-navbar.cjs.entry.js +6 -6
- package/dist/cjs/jump-pagination-table.cjs.entry.js +4 -4
- package/dist/cjs/jump-pagination.cjs.entry.js +4 -4
- package/dist/cjs/jump-quantity.cjs.entry.js +9 -13
- package/dist/cjs/jump-quantity.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-search-bar-dropdown-item.cjs.entry.js +2 -2
- package/dist/cjs/jump-search-bar-mobile.cjs.entry.js +5 -5
- package/dist/cjs/jump-search-bar.cjs.entry.js +1 -1
- package/dist/cjs/jump-tab-item.cjs.entry.js +3 -3
- package/dist/cjs/jump-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/jump-tab.cjs.entry.js +2 -2
- package/dist/cjs/live-a9a3fb36.js +14 -0
- package/dist/cjs/live-a9a3fb36.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/jump-filter-checkbox/jump-filter-checkbox.stories.js +0 -5
- package/dist/collection/components/jump-filter-checkbox/jump-filter-checkbox.stories.js.map +1 -1
- package/dist/collection/components/jump-filter-select/jump-filter-select.css +578 -0
- package/dist/collection/components/jump-filter-select/jump-filter-select.js +373 -0
- package/dist/collection/components/jump-filter-select/jump-filter-select.js.map +1 -0
- package/dist/collection/components/jump-filter-select/jump-filter-select.stories.js +211 -0
- package/dist/collection/components/jump-filter-switch/jump-filter-switch.css +536 -0
- package/dist/collection/components/jump-filter-switch/jump-filter-switch.js +175 -0
- package/dist/collection/components/jump-filter-switch/jump-filter-switch.js.map +1 -0
- package/dist/collection/components/jump-filter-switch/jump-filter-switch.stories.js +68 -0
- package/dist/collection/components/jump-filter-switch/jump-filter-switch.stories.js.map +1 -0
- package/dist/collection/components/jump-filtergroup/jump-filtergroup.js +3 -3
- package/dist/collection/components/jump-navbar/jump-navbar.js +5 -5
- package/dist/collection/components/jump-pagination/jump-pagination.js +3 -3
- package/dist/collection/components/jump-pagination-table/jump-pagination-table.js +3 -3
- package/dist/collection/components/jump-quantity/jump-quantity.js +8 -17
- package/dist/collection/components/jump-quantity/jump-quantity.js.map +1 -1
- package/dist/collection/components/jump-search-bar-dropdown-item/jump-search-bar-dropdown-item.js +1 -1
- package/dist/collection/components/jump-search-bar-mobile/jump-search-bar-mobile.js +4 -4
- package/dist/collection/components/jump-tab/jump-tab.js +1 -1
- package/dist/collection/components/jump-tab-item/jump-tab-item.js +2 -2
- package/dist/collection/components/jump-tab-panel/jump-tab-panel.js +1 -1
- package/dist/components/chunk.H33C3MRM.js +3 -170
- package/dist/components/chunk.H33C3MRM.js.map +1 -1
- package/dist/components/chunk.WLV3FVBR.js +230 -0
- package/dist/components/chunk.WLV3FVBR.js.map +1 -0
- package/dist/components/class-map.js +1 -1
- package/dist/{esm/chunk.H33C3MRM-632f8755.js → components/directive-helpers.js} +2 -359
- package/dist/components/directive-helpers.js.map +1 -0
- package/dist/components/if-defined.js +426 -0
- package/dist/components/if-defined.js.map +1 -0
- package/dist/components/jump-accordion.js +3 -226
- package/dist/components/jump-accordion.js.map +1 -1
- package/dist/components/jump-filter-checkbox.js +8 -432
- package/dist/components/jump-filter-checkbox.js.map +1 -1
- package/dist/components/jump-filter-select.d.ts +11 -0
- package/dist/components/jump-filter-select.js +4257 -0
- package/dist/components/jump-filter-select.js.map +1 -0
- package/dist/components/jump-filter-switch.d.ts +11 -0
- package/dist/components/jump-filter-switch.js +460 -0
- package/dist/components/jump-filter-switch.js.map +1 -0
- package/dist/components/jump-filtergroup.js +3 -3
- package/dist/components/jump-icon2.js +1 -0
- package/dist/components/jump-icon2.js.map +1 -1
- package/dist/components/jump-navbar.js +5 -5
- package/dist/components/jump-pagination-table.js +3 -3
- package/dist/components/jump-pagination.js +3 -3
- package/dist/components/jump-quantity.js +8 -13
- package/dist/components/jump-quantity.js.map +1 -1
- package/dist/components/jump-search-bar-dropdown-item.js +1 -1
- package/dist/components/jump-search-bar-mobile.js +4 -4
- package/dist/components/jump-tab-item.js +2 -2
- package/dist/components/jump-tab-panel.js +1 -1
- package/dist/components/jump-tab.js +1 -1
- package/dist/components/live.js +12 -0
- package/dist/components/live.js.map +1 -0
- package/dist/esm/chunk.H33C3MRM-7dcbd943.js +362 -0
- package/dist/esm/chunk.H33C3MRM-7dcbd943.js.map +1 -0
- package/dist/esm/chunk.WLV3FVBR-ded9a646.js +230 -0
- package/dist/esm/chunk.WLV3FVBR-ded9a646.js.map +1 -0
- package/dist/esm/{class-map-3150cdfe.js → class-map-a2676e27.js} +2 -2
- package/dist/esm/{class-map-3150cdfe.js.map → class-map-a2676e27.js.map} +1 -1
- package/dist/esm/directive-helpers-d80c2187.js +172 -0
- package/dist/esm/directive-helpers-d80c2187.js.map +1 -0
- package/dist/esm/if-defined-85ab7b97.js +426 -0
- package/dist/esm/if-defined-85ab7b97.js.map +1 -0
- package/dist/esm/{index-9a1da0f0.js → index-7eb565cd.js} +5 -2
- package/dist/esm/index-7eb565cd.js.map +1 -0
- package/dist/esm/jump-accordion-group.entry.js +1 -1
- package/dist/esm/jump-accordion.entry.js +5 -228
- package/dist/esm/jump-accordion.entry.js.map +1 -1
- package/dist/esm/jump-badge.entry.js +1 -1
- package/dist/esm/jump-button_2.entry.js +3 -2
- package/dist/esm/jump-button_2.entry.js.map +1 -1
- package/dist/esm/jump-card-ecommerce-option.entry.js +1 -1
- package/dist/esm/jump-card-ecommerce.entry.js +1 -1
- package/dist/esm/jump-card.entry.js +1 -1
- package/dist/esm/jump-design-system.js +3 -3
- package/dist/esm/jump-filter-checkbox.entry.js +9 -433
- package/dist/esm/jump-filter-checkbox.entry.js.map +1 -1
- package/dist/esm/jump-filter-select.entry.js +4225 -0
- package/dist/esm/jump-filter-select.entry.js.map +1 -0
- package/dist/esm/jump-filter-switch.entry.js +436 -0
- package/dist/esm/jump-filter-switch.entry.js.map +1 -0
- package/dist/esm/jump-filter.entry.js +1 -1
- package/dist/esm/jump-filtergroup.entry.js +4 -4
- package/dist/esm/jump-navbar.entry.js +6 -6
- package/dist/esm/jump-pagination-table.entry.js +4 -4
- package/dist/esm/jump-pagination.entry.js +4 -4
- package/dist/esm/jump-quantity.entry.js +9 -13
- package/dist/esm/jump-quantity.entry.js.map +1 -1
- package/dist/esm/jump-search-bar-dropdown-item.entry.js +2 -2
- package/dist/esm/jump-search-bar-mobile.entry.js +5 -5
- package/dist/esm/jump-search-bar.entry.js +1 -1
- package/dist/esm/jump-tab-item.entry.js +3 -3
- package/dist/esm/jump-tab-panel.entry.js +2 -2
- package/dist/esm/jump-tab.entry.js +2 -2
- package/dist/esm/live-253d6806.js +12 -0
- package/dist/esm/live-253d6806.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- 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-0cbcc5b3.entry.js +2 -0
- package/dist/jump-design-system/p-172a50cb.entry.js +2 -0
- package/dist/jump-design-system/p-172a50cb.entry.js.map +1 -0
- package/dist/jump-design-system/p-1b31e36f.js +17 -0
- package/dist/jump-design-system/p-1b31e36f.js.map +1 -0
- package/dist/jump-design-system/{p-2e2bd8a9.entry.js → p-201c09dd.entry.js} +2 -2
- package/dist/jump-design-system/p-35633b03.entry.js +848 -0
- package/dist/jump-design-system/p-35633b03.entry.js.map +1 -0
- package/dist/jump-design-system/p-39b82674.entry.js +2 -0
- package/dist/jump-design-system/{p-feb825e0.entry.js → p-3b4127b0.entry.js} +2 -2
- package/dist/jump-design-system/{p-6b1ab8c3.entry.js → p-3e31b638.entry.js} +2 -2
- package/dist/jump-design-system/p-53bf2958.entry.js +213 -0
- package/dist/jump-design-system/p-53bf2958.entry.js.map +1 -0
- package/dist/jump-design-system/p-67339850.js +63 -0
- package/dist/jump-design-system/p-67339850.js.map +1 -0
- package/dist/jump-design-system/{p-f7c323d2.entry.js → p-7dd5052b.entry.js} +2 -2
- package/dist/jump-design-system/p-8d1d2af9.entry.js +117 -0
- package/dist/jump-design-system/p-8d1d2af9.entry.js.map +1 -0
- package/dist/jump-design-system/p-8e0419b1.entry.js +2 -0
- package/dist/jump-design-system/{p-6dc529fc.entry.js → p-90c51b48.entry.js} +2 -2
- package/dist/jump-design-system/p-926c7bf0.entry.js +2 -0
- package/dist/jump-design-system/p-94229ed5.js +7 -0
- package/dist/jump-design-system/p-94229ed5.js.map +1 -0
- package/dist/jump-design-system/{p-02e863db.entry.js → p-94790673.entry.js} +2 -2
- package/dist/jump-design-system/{p-466e0ade.entry.js → p-947d7f9a.entry.js} +2 -2
- package/dist/jump-design-system/p-95a1bbc5.js +51 -0
- package/dist/jump-design-system/p-95a1bbc5.js.map +1 -0
- package/dist/jump-design-system/p-98ef4924.entry.js +2 -0
- package/dist/jump-design-system/{p-3f6d50d5.entry.js.map → p-98ef4924.entry.js.map} +1 -1
- package/dist/jump-design-system/{p-198cfe62.js → p-9d21c18a.js} +2 -2
- package/dist/jump-design-system/p-a05d9480.entry.js +178 -0
- package/dist/jump-design-system/p-a05d9480.entry.js.map +1 -0
- package/dist/jump-design-system/{p-a9b78af2.entry.js → p-ad550de6.entry.js} +2 -2
- package/dist/jump-design-system/{p-1aa5fb8a.entry.js → p-d3b62e9b.entry.js} +2 -2
- package/dist/jump-design-system/{p-bdafe87d.entry.js → p-d8bfd21c.entry.js} +2 -2
- package/dist/jump-design-system/{p-a1c25113.entry.js → p-d94fabc1.entry.js} +2 -2
- package/dist/jump-design-system/p-e516e812.js +3 -0
- package/dist/jump-design-system/p-e516e812.js.map +1 -0
- package/dist/jump-design-system/p-f2d287d6.js +2 -0
- package/dist/jump-design-system/p-f2d287d6.js.map +1 -0
- package/dist/jump-design-system/{p-07633158.entry.js → p-ff8d70ab.entry.js} +2 -2
- package/dist/jump-design-system-elements.json +66 -0
- package/dist/types/components/jump-filter-checkbox/jump-filter-checkbox.stories.d.ts +0 -5
- package/dist/types/components/jump-filter-select/jump-filter-select.d.ts +76 -0
- package/dist/types/components/jump-filter-switch/jump-filter-switch.d.ts +35 -0
- package/dist/types/components/jump-filter-switch/jump-filter-switch.stories.d.ts +24 -0
- package/dist/types/components/jump-quantity/jump-quantity.d.ts +0 -1
- package/dist/types/components.d.ts +206 -0
- package/package.json +1 -1
- package/dist/cjs/chunk.H33C3MRM-2c09acb5.js.map +0 -1
- package/dist/cjs/index-e91b2b41.js.map +0 -1
- package/dist/esm/chunk.H33C3MRM-632f8755.js.map +0 -1
- package/dist/esm/index-9a1da0f0.js.map +0 -1
- package/dist/jump-design-system/p-21aa0095.js +0 -3
- package/dist/jump-design-system/p-21aa0095.js.map +0 -1
- package/dist/jump-design-system/p-2e7c10a5.entry.js +0 -2
- package/dist/jump-design-system/p-2e7c10a5.entry.js.map +0 -1
- package/dist/jump-design-system/p-3f6d50d5.entry.js +0 -2
- package/dist/jump-design-system/p-6e7c80a3.entry.js +0 -244
- package/dist/jump-design-system/p-6e7c80a3.entry.js.map +0 -1
- package/dist/jump-design-system/p-842fff70.entry.js +0 -117
- package/dist/jump-design-system/p-842fff70.entry.js.map +0 -1
- package/dist/jump-design-system/p-8f581228.entry.js +0 -2
- package/dist/jump-design-system/p-a826c477.entry.js +0 -2
- package/dist/jump-design-system/p-b03c5b24.entry.js +0 -2
- package/dist/jump-design-system/p-c77d216c.entry.js +0 -2
- package/dist/jump-design-system/p-d33f4f1d.js +0 -66
- package/dist/jump-design-system/p-d33f4f1d.js.map +0 -1
- /package/dist/jump-design-system/{p-b03c5b24.entry.js.map → p-0cbcc5b3.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-2e2bd8a9.entry.js.map → p-201c09dd.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-8f581228.entry.js.map → p-39b82674.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-feb825e0.entry.js.map → p-3b4127b0.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-6b1ab8c3.entry.js.map → p-3e31b638.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-f7c323d2.entry.js.map → p-7dd5052b.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-c77d216c.entry.js.map → p-8e0419b1.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-6dc529fc.entry.js.map → p-90c51b48.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-a826c477.entry.js.map → p-926c7bf0.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-02e863db.entry.js.map → p-94790673.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-466e0ade.entry.js.map → p-947d7f9a.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-198cfe62.js.map → p-9d21c18a.js.map} +0 -0
- /package/dist/jump-design-system/{p-a9b78af2.entry.js.map → p-ad550de6.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-1aa5fb8a.entry.js.map → p-d3b62e9b.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-bdafe87d.entry.js.map → p-d8bfd21c.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-a1c25113.entry.js.map → p-d94fabc1.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-07633158.entry.js.map → p-ff8d70ab.entry.js.map} +0 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import "@shoelace-style/shoelace/dist/components/switch/switch.js";
|
|
3
|
+
/**
|
|
4
|
+
* Componente switch per filtri con supporto per label e stato
|
|
5
|
+
* @slot - Contenuto opzionale da mostrare accanto al switch (alternativo alla label)
|
|
6
|
+
*/
|
|
7
|
+
export class JumpFilterSwitch {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.value = undefined;
|
|
10
|
+
this.label = undefined;
|
|
11
|
+
this.checked = false;
|
|
12
|
+
this.disabled = false;
|
|
13
|
+
}
|
|
14
|
+
componentDidLoad() {
|
|
15
|
+
this.listenSLChange();
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Ascolta gli eventi di cambio stato dal switch Shoelace
|
|
19
|
+
*/
|
|
20
|
+
listenSLChange() {
|
|
21
|
+
if (this.host) {
|
|
22
|
+
this.host.addEventListener('sl-change', () => {
|
|
23
|
+
// Ignora l'evento se lo switch è disabilitato
|
|
24
|
+
if (this.disabled) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
this.checked = !this.checked;
|
|
28
|
+
const eventData = {
|
|
29
|
+
value: this.value,
|
|
30
|
+
checked: this.checked,
|
|
31
|
+
};
|
|
32
|
+
this.toggleCheckbox.emit(eventData);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Metodo pubblico per verificare lo stato corrente del switch
|
|
38
|
+
* @returns {boolean} Lo stato corrente del switch (true = acceso, false = spento)
|
|
39
|
+
*/
|
|
40
|
+
async isChecked() {
|
|
41
|
+
return this.checked;
|
|
42
|
+
}
|
|
43
|
+
render() {
|
|
44
|
+
return (h(Host, { key: 'f0ede0229c5942aaef3d39acb34930d3a8b7bb49', ref: (host) => (this.host = host) }, this.value && this.label && (h("sl-switch", { key: '93db07ff6db118788727e5052457cfa9c3b28754', value: this.value, ref: (el) => (this.el = el), checked: this.checked, disabled: this.disabled }, this.label))));
|
|
45
|
+
}
|
|
46
|
+
static get is() { return "jump-filter-switch"; }
|
|
47
|
+
static get encapsulation() { return "shadow"; }
|
|
48
|
+
static get originalStyleUrls() {
|
|
49
|
+
return {
|
|
50
|
+
"$": ["jump-filter-switch.scss"]
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
static get styleUrls() {
|
|
54
|
+
return {
|
|
55
|
+
"$": ["jump-filter-switch.css"]
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
static get properties() {
|
|
59
|
+
return {
|
|
60
|
+
"value": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"mutable": false,
|
|
63
|
+
"complexType": {
|
|
64
|
+
"original": "string",
|
|
65
|
+
"resolved": "string",
|
|
66
|
+
"references": {}
|
|
67
|
+
},
|
|
68
|
+
"required": false,
|
|
69
|
+
"optional": false,
|
|
70
|
+
"docs": {
|
|
71
|
+
"tags": [],
|
|
72
|
+
"text": "Il valore associato al switch"
|
|
73
|
+
},
|
|
74
|
+
"attribute": "value",
|
|
75
|
+
"reflect": false
|
|
76
|
+
},
|
|
77
|
+
"label": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"mutable": false,
|
|
80
|
+
"complexType": {
|
|
81
|
+
"original": "string",
|
|
82
|
+
"resolved": "string",
|
|
83
|
+
"references": {}
|
|
84
|
+
},
|
|
85
|
+
"required": false,
|
|
86
|
+
"optional": false,
|
|
87
|
+
"docs": {
|
|
88
|
+
"tags": [],
|
|
89
|
+
"text": "La label da mostrare accanto al switch"
|
|
90
|
+
},
|
|
91
|
+
"attribute": "label",
|
|
92
|
+
"reflect": false
|
|
93
|
+
},
|
|
94
|
+
"checked": {
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"mutable": false,
|
|
97
|
+
"complexType": {
|
|
98
|
+
"original": "boolean",
|
|
99
|
+
"resolved": "boolean",
|
|
100
|
+
"references": {}
|
|
101
|
+
},
|
|
102
|
+
"required": false,
|
|
103
|
+
"optional": false,
|
|
104
|
+
"docs": {
|
|
105
|
+
"tags": [],
|
|
106
|
+
"text": "Stato del switch (acceso/spento)"
|
|
107
|
+
},
|
|
108
|
+
"attribute": "checked",
|
|
109
|
+
"reflect": true,
|
|
110
|
+
"defaultValue": "false"
|
|
111
|
+
},
|
|
112
|
+
"disabled": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"mutable": false,
|
|
115
|
+
"complexType": {
|
|
116
|
+
"original": "boolean",
|
|
117
|
+
"resolved": "boolean",
|
|
118
|
+
"references": {}
|
|
119
|
+
},
|
|
120
|
+
"required": false,
|
|
121
|
+
"optional": false,
|
|
122
|
+
"docs": {
|
|
123
|
+
"tags": [],
|
|
124
|
+
"text": "Stato del switch (disabilitato)"
|
|
125
|
+
},
|
|
126
|
+
"attribute": "disabled",
|
|
127
|
+
"reflect": true,
|
|
128
|
+
"defaultValue": "false"
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
static get events() {
|
|
133
|
+
return [{
|
|
134
|
+
"method": "toggleCheckbox",
|
|
135
|
+
"name": "jump-switch-change",
|
|
136
|
+
"bubbles": true,
|
|
137
|
+
"cancelable": true,
|
|
138
|
+
"composed": true,
|
|
139
|
+
"docs": {
|
|
140
|
+
"tags": [],
|
|
141
|
+
"text": "Evento emesso quando cambia lo stato del switch"
|
|
142
|
+
},
|
|
143
|
+
"complexType": {
|
|
144
|
+
"original": "any",
|
|
145
|
+
"resolved": "any",
|
|
146
|
+
"references": {}
|
|
147
|
+
}
|
|
148
|
+
}];
|
|
149
|
+
}
|
|
150
|
+
static get methods() {
|
|
151
|
+
return {
|
|
152
|
+
"isChecked": {
|
|
153
|
+
"complexType": {
|
|
154
|
+
"signature": "() => Promise<boolean>",
|
|
155
|
+
"parameters": [],
|
|
156
|
+
"references": {
|
|
157
|
+
"Promise": {
|
|
158
|
+
"location": "global",
|
|
159
|
+
"id": "global::Promise"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"return": "Promise<boolean>"
|
|
163
|
+
},
|
|
164
|
+
"docs": {
|
|
165
|
+
"text": "Metodo pubblico per verificare lo stato corrente del switch",
|
|
166
|
+
"tags": [{
|
|
167
|
+
"name": "returns",
|
|
168
|
+
"text": "Lo stato corrente del switch (true = acceso, false = spento)"
|
|
169
|
+
}]
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
//# sourceMappingURL=jump-filter-switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-filter-switch.js","sourceRoot":"","sources":["../../../src/components/jump-filter-switch/jump-filter-switch.tsx"],"names":[],"mappings":"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AAE,IAAI,CAAC,QAAQ,IAEtB,IAAI,CAAC,KAAK,CACD,CACb,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h, Event, EventEmitter, Method } from '@stencil/core';\nimport '@shoelace-style/shoelace/dist/components/switch/switch.js';\n\n/**\n * Componente switch per filtri con supporto per label e stato\n * @slot - Contenuto opzionale da mostrare accanto al switch (alternativo alla label)\n */\n@Component({\n tag: 'jump-filter-switch',\n styleUrl: 'jump-filter-switch.scss',\n shadow: true,\n})\nexport class JumpFilterSwitch {\n /** Il valore associato al switch */\n @Prop() value: string;\n\n /** La label da mostrare accanto al switch */\n @Prop() label: string;\n\n /** Stato del switch (acceso/spento) */\n @Prop({ reflect: true }) checked: boolean = false;\n\n /** Stato del switch (disabilitato) */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Riferimento all'elemento host */\n host: HTMLElement;\n\n /** Riferimento all'elemento sl-switch interno */\n el: any; // Usiamo any per evitare problemi di tipo con le proprietà specifiche di sl-switch\n\n componentDidLoad() {\n this.listenSLChange();\n }\n\n /**\n * Ascolta gli eventi di cambio stato dal switch Shoelace\n */\n listenSLChange() {\n if (this.host) {\n this.host.addEventListener('sl-change', () => {\n // Ignora l'evento se lo switch è disabilitato\n if (this.disabled) {\n return;\n }\n\n this.checked = !this.checked;\n\n const eventData = {\n value: this.value,\n checked: this.checked,\n };\n\n this.toggleCheckbox.emit(eventData);\n });\n }\n }\n\n /**\n * Evento emesso quando cambia lo stato del switch\n */\n @Event({ eventName: 'jump-switch-change' }) toggleCheckbox: EventEmitter;\n\n /**\n * Metodo pubblico per verificare lo stato corrente del switch\n * @returns {boolean} Lo stato corrente del switch (true = acceso, false = spento)\n */\n @Method()\n async isChecked() {\n return this.checked;\n }\n\n render() {\n return (\n <Host ref={(host: HTMLElement) => (this.host = host)}>\n {this.value && this.label && (\n <sl-switch\n value={this.value}\n ref={(el: any) => (this.el = el)}\n checked={this.checked}\n disabled={this.disabled}\n >\n {this.label}\n </sl-switch>\n )}\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { generateAttributesFromArgs, formatHtml } from "../../utils/utils";
|
|
2
|
+
export default {
|
|
3
|
+
title: 'Components/Filters/JumpFilterSwitch',
|
|
4
|
+
tags: ['autodocs'],
|
|
5
|
+
argTypes: {
|
|
6
|
+
value: { control: 'text' },
|
|
7
|
+
label: { control: 'text' },
|
|
8
|
+
checked: { control: 'boolean' },
|
|
9
|
+
disabled: { control: 'boolean' },
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
const Template = (args) => {
|
|
13
|
+
const attributes = generateAttributesFromArgs(args);
|
|
14
|
+
return formatHtml(`<jump-filter-switch ${attributes}>${args.label}</jump-filter-switch>`);
|
|
15
|
+
};
|
|
16
|
+
export const Default = Template.bind({});
|
|
17
|
+
Default.args = {
|
|
18
|
+
value: 'switch-value',
|
|
19
|
+
label: 'switch Label',
|
|
20
|
+
checked: false,
|
|
21
|
+
disabled: false,
|
|
22
|
+
};
|
|
23
|
+
export const Checked = Template.bind({});
|
|
24
|
+
Checked.args = {
|
|
25
|
+
value: 'switch-value',
|
|
26
|
+
label: 'switch Label',
|
|
27
|
+
checked: true,
|
|
28
|
+
};
|
|
29
|
+
export const Disabled = Template.bind({});
|
|
30
|
+
Disabled.args = {
|
|
31
|
+
value: 'switch-value',
|
|
32
|
+
label: 'Switch disabilitato',
|
|
33
|
+
checked: false,
|
|
34
|
+
disabled: true,
|
|
35
|
+
};
|
|
36
|
+
export const DisabledChecked = Template.bind({});
|
|
37
|
+
DisabledChecked.args = {
|
|
38
|
+
value: 'switch-value',
|
|
39
|
+
label: 'Switch disabilitato ma acceso',
|
|
40
|
+
checked: true,
|
|
41
|
+
disabled: true,
|
|
42
|
+
};
|
|
43
|
+
const TemplateCustomStyles = (args) => {
|
|
44
|
+
const attributes = generateAttributesFromArgs(args);
|
|
45
|
+
return formatHtml(`
|
|
46
|
+
<div>
|
|
47
|
+
<style>
|
|
48
|
+
.custom-switch {
|
|
49
|
+
--jump-switch-active-color: green;
|
|
50
|
+
--jump-switch-inactive-color: red;
|
|
51
|
+
--jump-switch-width: 36px;
|
|
52
|
+
--jump-switch-height: 20px;
|
|
53
|
+
--jump-switch-thumb-size: 16px;
|
|
54
|
+
--jump-switch-font-size: 14px;
|
|
55
|
+
--jump-switch-font-weight: 300;
|
|
56
|
+
}
|
|
57
|
+
</style>
|
|
58
|
+
<jump-filter-switch class="custom-switch" ${attributes}>${args.label}</jump-filter-switch>
|
|
59
|
+
</div>
|
|
60
|
+
`);
|
|
61
|
+
};
|
|
62
|
+
export const CustomStyles = TemplateCustomStyles.bind({});
|
|
63
|
+
CustomStyles.args = {
|
|
64
|
+
value: 'custom-switch',
|
|
65
|
+
label: 'switch con stile personalizzato',
|
|
66
|
+
checked: false,
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=jump-filter-switch.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jump-filter-switch.stories.js","sourceRoot":"","sources":["../../../src/components/jump-filter-switch/jump-filter-switch.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE3E,eAAe;IACb,KAAK,EAAE,qCAAqC;IAC5C,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QAC1B,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QAC1B,OAAO,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;QAC/B,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;KACjC;CACF,CAA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CAAC,KAAK;;GAEvE,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1D,YAAY,CAAC,IAAI,GAAG;IAClB,KAAK,EAAE,eAAe;IACtB,KAAK,EAAE,iCAAiC;IACxC,OAAO,EAAE,KAAK;CACf,CAAC","sourcesContent":["import { generateAttributesFromArgs, formatHtml } from '../../utils/utils';\n\nexport default {\n title: 'Components/Filters/JumpFilterSwitch',\n tags: ['autodocs'],\n argTypes: {\n value: { control: 'text' },\n label: { control: 'text' },\n checked: { control: 'boolean' },\n disabled: { control: 'boolean' },\n },\n};\n\nconst Template = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return formatHtml(`<jump-filter-switch ${attributes}>${args.label}</jump-filter-switch>`);\n};\n\nexport const Default = Template.bind({});\nDefault.args = {\n value: 'switch-value',\n label: 'switch Label',\n checked: false,\n disabled: false,\n};\n\nexport const Checked = Template.bind({});\nChecked.args = {\n value: 'switch-value',\n label: 'switch Label',\n checked: true,\n};\n\nexport const Disabled = Template.bind({});\nDisabled.args = {\n value: 'switch-value',\n label: 'Switch disabilitato',\n checked: false,\n disabled: true,\n};\n\nexport const DisabledChecked = Template.bind({});\nDisabledChecked.args = {\n value: 'switch-value',\n label: 'Switch disabilitato ma acceso',\n checked: true,\n disabled: true,\n};\n\nconst TemplateCustomStyles = (args) => {\n const attributes = generateAttributesFromArgs(args);\n return formatHtml(`\n <div>\n <style>\n .custom-switch {\n --jump-switch-active-color: green;\n --jump-switch-inactive-color: red;\n --jump-switch-width: 36px;\n --jump-switch-height: 20px;\n --jump-switch-thumb-size: 16px;\n --jump-switch-font-size: 14px;\n --jump-switch-font-weight: 300;\n }\n </style>\n <jump-filter-switch class=\"custom-switch\" ${attributes}>${args.label}</jump-filter-switch>\n </div>\n `);\n};\n\nexport const CustomStyles = TemplateCustomStyles.bind({});\nCustomStyles.args = {\n value: 'custom-switch',\n label: 'switch con stile personalizzato',\n checked: false,\n};\n"]}
|
|
@@ -126,10 +126,10 @@ export class JumpFiltergroup {
|
|
|
126
126
|
//this.toggleHiddenItems();
|
|
127
127
|
}
|
|
128
128
|
render() {
|
|
129
|
-
return (h(Host, { key: '
|
|
130
|
-
h("jump-button", { key: '
|
|
129
|
+
return (h(Host, { key: 'dee7e7b4f944475835ecba5d39ae7d019bbc1f92' }, this.heading && h("h5", { key: '787e19d51042ce51b0eec8b57ad2f3d359a306ba' }, this.heading), h("div", { key: '91b955e133db5069d6110513e1b6bef6e80967cc', class: "filterGroup" }, h("slot", { key: '5e965e3b4d770b60f200a9cfacae8dc20b2e7ab7', ref: (el) => (this.slotItemsWrapper = el) })), this.inputs.length > this.maxElements &&
|
|
130
|
+
h("jump-button", { key: '8a3d43f0e8215a29992a35f8ec493ae74db302d5', variant: "primary", size: "small", text: true, name: this.label, "aria-label": this.label, ref: (showMoreBtn) => {
|
|
131
131
|
this.showMoreBtn = showMoreBtn;
|
|
132
|
-
}, onClick: () => this.handleShowMore() }, this.label, h("jump-icon", { key: '
|
|
132
|
+
}, onClick: () => this.handleShowMore() }, this.label, h("jump-icon", { key: '2a9b619b6d967fc62f0c2505d0123d62acb57998', slot: "suffix", name: !this.showMore ? 'chevron-down' : 'chevron-up' }))));
|
|
133
133
|
}
|
|
134
134
|
static get is() { return "jump-filtergroup"; }
|
|
135
135
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,14 +19,14 @@ export class JumpNavbar {
|
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
21
|
var _a, _b;
|
|
22
|
-
return (h(Host, { key: '
|
|
23
|
-
h("div", { key: '
|
|
24
|
-
h("jump-button", { key: '
|
|
22
|
+
return (h(Host, { key: 'c2e24aa88f60587f2177fc082cbb651bae5d9cbe' }, h("jump-button", { key: 'b539b91af97f734a800ac37385b7a67c3e477f64', variant: "primary", size: "small", text: true, href: this.logo['link'], target: (_a = this.logo['target']) !== null && _a !== void 0 ? _a : '_self' }, h("img", { key: 'bf67619c3980ea53d4ff216ebc55e2e5cebcd640', src: this.logo['image_url'], alt: this.logo['alt'] })), this.isMobile &&
|
|
23
|
+
h("div", { key: '70a5c44b45e239609e7c4a6e31f18e7b7d3699b7', class: "MobileMenuOffCanvas" }, h("div", { key: '86d5bfe1f9988ebc876036cb85562606e05213e4', class: "MobileMenuOffCanvas__Header" }, "/* TODO: ricerca + pulsante chiusura + profilo utente con immagine */"), h("div", { key: '00dc80ae32cec4435ffa4d95a2676dab96d07b10', class: "MobileMenuOffCanvas__Navbar" }, this.navbar.cloneNode(true)), h("div", { key: '6f2af08da187ffa416118095159b6d41fcb0e16d', class: "MobileMenuOffCanvas__Footer" }, "/* TODO: langswitcher */", this.mobileLogo &&
|
|
24
|
+
h("jump-button", { key: 'ce7beeb4d06feb1b6c104f209cfeac448d4bf090', variant: "primary", size: "small", text: true, href: this.mobileLogo['link'], target: (_b = this.mobileLogo['target']) !== null && _b !== void 0 ? _b : '_self' }, h("img", { key: 'c1b0258390efb012574ad30e98ecd78cfb3544a6', src: this.mobileLogo['image_url'], alt: this.mobileLogo['alt'] })))), h("nav", { key: '4f31f3704c53cfffd099b1801fc67396e3a05a2a', ref: (el) => {
|
|
25
25
|
this.navbar = el;
|
|
26
|
-
} }, h("ul", { key: '
|
|
26
|
+
} }, h("ul", { key: '21e88dff7d087077f3ed2314f4c208f9b8daaae3' }, this.navItems.map((item) => (h("li", null, h("jump-button", { variant: "primary", size: "small", text: true, href: item.link, target: item.target, class: item.class }, item.text, this.secondaryNavItems.some(secondaryItem => secondaryItem.parent === item.id) &&
|
|
27
27
|
h("jump-icon", { slot: "suffix", library: "lucide", name: "chevron-down", size: "small" })), this.secondaryNavItems.map((secondaryItem) => (secondaryItem.parent === item.id &&
|
|
28
28
|
h("ul", { "data-parent": secondaryItem.parent }, secondaryItem.title &&
|
|
29
|
-
h("h4", null, secondaryItem.title), " /* TODO: utilizzare jump-heading? */", secondaryItem.items.map((subItem) => (h("li", null, h("jump-button", { variant: "primary", size: "small", text: true, href: subItem.link, target: subItem.target, class: subItem.class }, subItem.text)))))))))))), h("slot", { key: '
|
|
29
|
+
h("h4", null, secondaryItem.title), " /* TODO: utilizzare jump-heading? */", secondaryItem.items.map((subItem) => (h("li", null, h("jump-button", { variant: "primary", size: "small", text: true, href: subItem.link, target: subItem.target, class: subItem.class }, subItem.text)))))))))))), h("slot", { key: '2bb867630eb5322ae556da2d37709d1e1c7e35de', name: "actions" }, h("slot", { key: 'd54c3ac869ede8f12093bda287927410be6a15c3', name: "lang_switcher" }), h("slot", { key: 'fd64141fa21f390ce8ce5121de38d0c68c83880f', name: "search" }), h("slot", { key: '14cbf3f5cdaf9102835f8ddeb633e283a63a4cee', name: "buttons" }), h("slot", { key: '63c496bba54fb7fcb68cf607cbc9f9d83b4324f5', name: "cart" }))));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "jump-navbar"; }
|
|
32
32
|
static get encapsulation() { return "shadow"; }
|
|
@@ -22,7 +22,7 @@ export class JumpPagination {
|
|
|
22
22
|
}
|
|
23
23
|
/* --------------------- RENDER ------------------------------- */
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: 'daa4ea1acee46e591d0b723c52291ee411c4f282', class: "JumpPagination" }, h("div", { key: '023afb01feacf36c1427e03e87e3695963322e6e', class: "JumpPagination__Wrapper" }, h("div", { key: '94b6eeab6b1dc2bbf18faaea7e926bc657838429', class: "indicators" }, h("div", { key: 'd3d1a55f975757ec032aff3011fa7c8683182e33', class: "elements" }, h("span", { key: '9d4dfeb0efa6da247c1e210aff0994d33c9a22f9' }, h("span", { key: 'd98f272362517f6d67ec463b16508510cf710630' }, this.current), " ", this.pagLabel, " ", h("span", { key: 'f0e3dcfdde172119495142d5479f642bc34d6a98' }, this.last))), h("div", { key: 'a2fbf14f2135ddaf7ae0a017d2bbc2b2e3173125', class: "arrow" }, this.showFirstAndLast &&
|
|
26
26
|
// <button
|
|
27
27
|
// onClick={() => {this.current = 1} }
|
|
28
28
|
// disabled={(this.current === 1) ? true : false}>
|
|
@@ -30,14 +30,14 @@ export class JumpPagination {
|
|
|
30
30
|
// disabled={(this.current === 1) ? true : false}
|
|
31
31
|
// ></jump-icon>
|
|
32
32
|
// </button>
|
|
33
|
-
h("jump-button", { key: '
|
|
33
|
+
h("jump-button", { key: '259e503d12209b40444801f4696492ab6261f9ad', onClick: () => { this.current = 1; }, variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: (this.current === 1) ? true : false }, " ", h("jump-icon", { key: 'f113f22ce185ea152408f8497563ff1a05164f85', slot: "suffix", name: "chevrons-left" }), " "), h("jump-button", { key: '58334f0c40274d1541aa5070fd105907841f1eb9', onClick: () => { this.current--; }, variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: (this.current === 1) ? true : false }, " ", h("jump-icon", { key: '1287849fc018a53e7167c09854e0d2dc6371423c', slot: "suffix", name: "chevron-left" }), " "), h("jump-button", { key: '285028224a87de99c35d9388c4a7762db96c14c0', onClick: () => { this.current++; }, variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: (this.current === this.last) ? true : false }, " ", h("jump-icon", { key: '314e94eced88d8d9bc735f11f5d9e13144de04bb', slot: "suffix", name: "chevron-right" }), " "), this.showFirstAndLast &&
|
|
34
34
|
// <button
|
|
35
35
|
// onClick={() => {this.current = this.last}}
|
|
36
36
|
// disabled={(this.current === this.last) ? true : false}
|
|
37
37
|
// >
|
|
38
38
|
// <jump-icon library="fa" category="regular" name="chevrons-right" size="small" slot="prefix"></jump-icon>
|
|
39
39
|
// </button>
|
|
40
|
-
h("jump-button", { key: '
|
|
40
|
+
h("jump-button", { key: '8eb0e583e59fef64245948b76cd48c4f29dc1c9f', onClick: () => { this.current = this.last; }, variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: (this.current === this.last) ? true : false }, " ", h("jump-icon", { key: '5895c3a6e74698cbb0015af3cafde30fe4535c2a', slot: "suffix", name: "chevrons-right" }), " "))))));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "jump-pagination"; }
|
|
43
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -70,9 +70,9 @@ export class JumpPaginationTable {
|
|
|
70
70
|
/* --------------------- RENDER ------------------------------- */
|
|
71
71
|
render() {
|
|
72
72
|
var _a;
|
|
73
|
-
return (h(Host, { key: '
|
|
74
|
-
h("jump-button", { key: '
|
|
75
|
-
h("jump-button", { key: '
|
|
73
|
+
return (h(Host, { key: '6a42ae0a8005203b2f13f6d46fb470ac4691a5de', class: "JumpPaginationTable" }, h("div", { key: 'cadff129eb21d242d0e3fa109a2b1eab8398a0f9', class: "JumpPaginationTable__Wrapper" }, h("div", { key: '51cf43620689ebc2e4c3617a9680143b5885f196', class: "elementsPerPage" }, h("label", { key: 'f59c18268d71fa486535f6a5432cd88cfddef0b1', htmlFor: "elements" }, (_a = this.labelElementsPerPage) !== null && _a !== void 0 ? _a : 'Elements per page'), h("select", { key: '13e06813b30e08ee9bf506db3d288f1908ae5bd5', name: "elements", id: "elements", onChange: (e) => this.setElPerPage(e) }, this.elementsRangesArray.map((range) => (h("option", { value: range, selected: (this.elPerPage == range) && true }, range))))), h("div", { key: 'b2bc9b2ede7cc4ca94a28d1725a91a75f30553d4', class: "indicators" }, h("div", { key: 'ed068a28e8719cea5d32cc33b8f935c8459c4026', class: "elements" }, h("span", { key: '8bcbedca1400a6f5f285304a1e9e658dbd15d4e6' }, h("span", { key: 'e0eaf549f834c38a530a76559db8189044bda390' }, this.first), " - ", h("span", { key: 'a7775a41a5931f37789cbc57b371203cf2d31e65' }, this.last), " ", this.pagLabel, " ", h("span", { key: '29d72598b5fcb9a1e9f06ad328f2164394defbf6' }, this.total))), h("div", { key: 'dbdde182111d2afbe2324ed004158b51143cdbd7', class: "arrow" }, this.showFirstAndLast &&
|
|
74
|
+
h("jump-button", { key: 'ecd2375623aef3014244100539d6b0722130bbb3', onClick: () => this.doChangePage('first'), variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: this.first === 1 }, " ", h("jump-icon", { key: 'f9bc40fed16b1f230748db55ba39faec6fafc107', slot: "suffix", name: "chevrons-left" }), " "), h("jump-button", { key: '1382cb2939e5427ef669d8d7d25a1dd108113a46', onClick: () => this.doChangePage('previous'), variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: this.first === 1 }, " ", h("jump-icon", { key: '355ef9e6fbdb8a03933b2b955e6ce4acaf5f1237', slot: "suffix", name: "chevron-left" }), " "), h("jump-button", { key: '2626fbadbb4c5a50eb9d0ae676a6885e5b7f90bd', onClick: () => this.doChangePage('next'), variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: this.last === this.total }, " ", h("jump-icon", { key: 'a830c7a19ec218ecd7ecb4be9010f3c5fef509c4', slot: "suffix", name: "chevron-right" }), " "), this.showFirstAndLast &&
|
|
75
|
+
h("jump-button", { key: 'aac1eff6a4827fe76d729a131228860ffb50f1b3', onClick: () => this.doChangePage('last'), variant: "primary", text: true, size: "small", name: "scopri", value: "value", "aria-label": "Scopri di pi\u00F9", id: "button", onlyIcon: true, disabled: this.last === this.total }, " ", h("jump-icon", { key: 'd0d4ffbb647933e7b1ffc68d5126ca3eec058db7', slot: "suffix", name: "chevrons-right" }), " "))))));
|
|
76
76
|
}
|
|
77
77
|
static get is() { return "jump-pagination-table"; }
|
|
78
78
|
static get originalStyleUrls() {
|
|
@@ -9,7 +9,6 @@ export class JumpQuantity {
|
|
|
9
9
|
this.variant = 'vertical';
|
|
10
10
|
this.showButtons = true;
|
|
11
11
|
this.value = undefined;
|
|
12
|
-
this.currentValue = undefined;
|
|
13
12
|
}
|
|
14
13
|
onValueChange(newValue, oldValue) {
|
|
15
14
|
this.change.emit({
|
|
@@ -22,7 +21,7 @@ export class JumpQuantity {
|
|
|
22
21
|
* Get the current value
|
|
23
22
|
*/
|
|
24
23
|
async getValue() {
|
|
25
|
-
return this.
|
|
24
|
+
return this.value;
|
|
26
25
|
}
|
|
27
26
|
/**
|
|
28
27
|
* Set the current value
|
|
@@ -32,11 +31,9 @@ export class JumpQuantity {
|
|
|
32
31
|
}
|
|
33
32
|
async reset() {
|
|
34
33
|
this.value = this.min;
|
|
35
|
-
this.currentValue = this.value;
|
|
36
34
|
}
|
|
37
35
|
componentWillLoad() {
|
|
38
36
|
this.value = this.min;
|
|
39
|
-
this.currentValue = this.value;
|
|
40
37
|
this.internals.setFormValue(this.value.toString());
|
|
41
38
|
}
|
|
42
39
|
formResetCallback() {
|
|
@@ -46,28 +43,27 @@ export class JumpQuantity {
|
|
|
46
43
|
handleChange(event) {
|
|
47
44
|
let value = parseInt(event.target.value);
|
|
48
45
|
if (value < this.min) {
|
|
49
|
-
this.
|
|
46
|
+
this.value = this.min;
|
|
50
47
|
}
|
|
51
48
|
else if (value > this.max) {
|
|
52
|
-
this.
|
|
49
|
+
this.value = this.max;
|
|
53
50
|
}
|
|
54
51
|
else {
|
|
55
|
-
this.
|
|
52
|
+
this.value = event.target.value;
|
|
56
53
|
}
|
|
57
54
|
}
|
|
58
55
|
//avoid user can change the value below the min
|
|
59
56
|
handleBlur(event) {
|
|
60
57
|
if (event.target.value < this.min) {
|
|
61
58
|
this.value = this.min;
|
|
62
|
-
this.currentValue = this.min;
|
|
63
59
|
}
|
|
64
60
|
}
|
|
65
61
|
render() {
|
|
66
|
-
return (h(Host, { key: '
|
|
67
|
-
h("jump-button", { key: '
|
|
62
|
+
return (h(Host, { key: '2545759aea7e95d367e1071c56fd2713d28b94c3', value: this.value, "data-variant": this.variant, "data-hasbuttons": this.showButtons }, this.label && h("label", { key: '75f20b28bc74cdf237100778aeb118a860d37227' }, this.label), h("div", { key: '528eb66ad0b83b22cb1b4edf083d48398146a1f2', class: `jump-quantity__InnerWrapper` }, this.showButtons &&
|
|
63
|
+
h("jump-button", { key: 'ee6e87290d2f3e01b3228956817b274ba854d46f', onClick: () => this.value = this.value - this.step, disabled: this.value <= this.min, variant: 'neutral', size: 'custom' }, h("jump-icon", { key: 'bb19f472ea27e02127db5436d7bbc87a1aaa1438', library: "lucide", name: "minus", size: "small" })), h("input", { key: '4eab2afcaef6295ee8e6e92528af6602d065a9d1', ref: (el) => {
|
|
68
64
|
this.inputEl = el;
|
|
69
|
-
}, type: 'number', value: this.
|
|
70
|
-
h("jump-button", { key: '
|
|
65
|
+
}, type: 'number', value: this.value, onInput: (event) => this.handleChange(event), min: this.min, max: this.max, step: this.step, "aria-hasbuttons": this.showButtons }), this.showButtons &&
|
|
66
|
+
h("jump-button", { key: '0f1bb0b97fc591c3baa3a1c98791c4b8658ab73e', onClick: () => this.value = this.value + this.step, disabled: this.value >= this.max, variant: 'neutral', size: 'custom' }, h("jump-icon", { key: '901b8a21adcf844227c5193d801cee415f495ff2', library: "lucide", name: "plus", size: "small" })))));
|
|
71
67
|
}
|
|
72
68
|
static get is() { return "jump-quantity"; }
|
|
73
69
|
static get encapsulation() { return "shadow"; }
|
|
@@ -228,11 +224,6 @@ export class JumpQuantity {
|
|
|
228
224
|
}
|
|
229
225
|
};
|
|
230
226
|
}
|
|
231
|
-
static get states() {
|
|
232
|
-
return {
|
|
233
|
-
"currentValue": {}
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
227
|
static get events() {
|
|
237
228
|
return [{
|
|
238
229
|
"method": "change",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jump-quantity.js","sourceRoot":"","sources":["../../../src/components/jump-quantity/jump-quantity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE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O,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE;wBACjB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;oBACpB,CAAC,EACM,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAC5C,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,IAAI,EAAE,IAAI,CAAC,IAAI,qBACE,IAAI,CAAC,WAAW,GACtC;gBACD,IAAI,CAAC,WAAW;oBACf,oEAAa,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,EACpF,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,QAAQ;wBAC1C,kEAAW,OAAO,EAAC,QAAQ,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,GAAa,CACrD,CACZ,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, AttachInternals, Watch, Method, Prop, h, Event, Element } from '@stencil/core';\n\n@Component({\n tag: 'jump-quantity',\n styleUrl: 'jump-quantity.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class JumpQuantity {\n\n @AttachInternals() internals: ElementInternals;\n @Element() el;\n\n @Prop() min: number = 1;\n @Prop() max: number;\n @Prop() step: number = 1;\n @Prop() label: string = '';\n @Prop() type: 'buttons' | 'dropdown' | 'input' = 'buttons';\n @Prop() variant: 'vertical' | 'horizontal' = 'vertical';\n @Prop() showButtons: boolean = true;\n @Prop() value: number;\n\n @Event({ eventName: 'jump-change' }) change;\n\n inputEl: HTMLInputElement;\n\n @Watch('value')\n onValueChange(newValue, oldValue) {\n this.change.emit({\n value: newValue,\n oldValue: oldValue,\n });\n this.internals.setFormValue(newValue);\n }\n\n /**\n * Get the current value\n */\n @Method()\n async getValue() {\n return this.value;\n }\n\n /**\n * Set the current value\n */\n @Method()\n async setMax(value: number) {\n this.max = value;\n }\n\n @Method()\n async reset() {\n this.value = this.min;\n }\n\n componentWillLoad() {\n this.value = this.min;\n this.internals.setFormValue(this.value.toString());\n }\n\n formResetCallback() {\n this.internals.setValidity({});\n this.internals.setFormValue('');\n }\n\n handleChange(event) {\n let value = parseInt(event.target.value);\n if(value < this.min){\n this.value = this.min;\n } else if(value > this.max){\n this.value = this.max;\n } else {\n this.value = event.target.value;\n }\n }\n\n //avoid user can change the value below the min\n handleBlur(event) {\n if (event.target.value < this.min) {\n this.value = this.min;\n }\n }\n\n render() {\n return (\n <Host value={this.value} data-variant={this.variant} data-hasbuttons={this.showButtons}>\n {this.label && <label>{this.label}</label>}\n <div class={`jump-quantity__InnerWrapper`}>\n {this.showButtons &&\n <jump-button onClick={() => this.value = this.value - this.step} disabled={this.value <= this.min}\n variant='neutral' size='custom'>\n <jump-icon library=\"lucide\" name=\"minus\" size=\"small\"></jump-icon>\n </jump-button>}\n <input ref={(el) => {\n this.inputEl = el;\n }}\n type='number'\n value={this.value}\n onInput={(event) => this.handleChange(event)}\n min={this.min}\n max={this.max}\n step={this.step}\n aria-hasbuttons={this.showButtons}\n />\n {this.showButtons &&\n <jump-button onClick={() => this.value = this.value + this.step} disabled={this.value >= this.max}\n variant='neutral' size='custom'>\n <jump-icon library=\"lucide\" name=\"plus\" size=\"small\"></jump-icon>\n </jump-button>}\n </div>\n </Host>\n );\n }\n}\n"]}
|
package/dist/collection/components/jump-search-bar-dropdown-item/jump-search-bar-dropdown-item.js
CHANGED
|
@@ -26,7 +26,7 @@ export class JumpSearchBarDropdownItem {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '71a7bb156013483eb6b35bdb6008a82becaedc62', ref: (el) => this.componentRef = el }));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "jump-search-bar-dropdown-item"; }
|
|
32
32
|
static get encapsulation() { return "shadow"; }
|
|
@@ -96,16 +96,16 @@ export class JumpSearchBarMobile {
|
|
|
96
96
|
;
|
|
97
97
|
/* --------------------- RENDER ------------------------------- */
|
|
98
98
|
render() {
|
|
99
|
-
return (h(Host, { key: '
|
|
100
|
-
h("div", { key: '
|
|
101
|
-
h("div", { key: '
|
|
99
|
+
return (h(Host, { key: '945581bd026d7fa4ecbcf8e1c1e643e218a24f55', class: "JumpSearchBarMobile", ref: (el) => (this.componentRef = el) }, h("jump-icon", { key: 'fdedfd5df7476ce9aa1f3e91895d4649d186104f', name: "magnifying-glass", category: "light", onClick: () => this.openDropdown() }), h("div", { key: 'ed4a9dd17a2aa33fa696cc08e7f7dfffa4e6cb13', class: "DropdownWrapper " + (this.isOpen ? 'open' : '') }, h("div", { key: '908d363c439a43ebce40a5fac70aec908daf9714', class: "InputWrapper" }, h("jump-icon", { key: 'cff6538be35630feadd7415b1f69143837c7e10e', class: "closeButton", category: "light", name: "arrow-left", onClick: () => this.closeDropdown() }), h("input", { key: 'd4fe30add80cf969850e4322c10d57db11194bbd', placeholder: this.placeholder, type: "search", id: this.identifier, class: "search-input", ref: (el) => { this.jumpSearchBar = el; }, onInput: this.debounce(this.doSearch), onFocus: this.handleFocus, onBlur: this.handleBlur }), h("jump-icon", { key: '52258975154aa6393dd2a6b89c46615cfad64ada', name: "magnifying-glass", category: "light" })), h("div", { key: 'c678e92004f5c0fca9989289fd44e7a80063b194', class: "Results" }, (this.resType == 'recents') &&
|
|
100
|
+
h("div", { key: '3222eb927ced985b3569531c41f4320a160781ac', class: "Results__Recents" }, this.recents.length != 0 && h("span", { key: '548a3faaf6ad46704459c826955708f2dbcd338b', class: "title" }, this.recentsTitle), h("div", { key: '2b6514cd31fac5e569597bb2748cf6c133007b63', class: "ResWrapper" }, this.innerResults.length > 0 && this.innerResults.map((item) => (h("div", { onClick: () => this.handleResClicked(item) }, h("jump-icon", { name: "magnifying-glass", category: "light" }), item['value']))))), this.resType == 'results' &&
|
|
101
|
+
h("div", { key: 'b5d1d0756ceb4694ccb1aae51645ed9b7cdfff69', class: "Results__Results" }, h("div", { key: 'bd3d7d79da59b4b98e3e247e8d074be7a6f27421', class: "ResWrapper" }, this.innerResults === undefined ?
|
|
102
102
|
h("div", { class: "helperText" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 100", preserveAspectRatio: "xMidYMid", width: "252", height: "252" }, h("g", null, h("g", { transform: "rotate(0 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.9s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(36 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.8s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(72 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.7s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(108 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.6s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(144 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.5s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(180 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.4s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(216 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.3s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(252 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.2s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(288 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "-0.1s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", { transform: "rotate(324 50 50)" }, h("rect", { fill: "#707070", height: "11", width: "4", ry: "1.87", rx: "1.87", y: "27.5", x: "48" }, h("animate", { repeatCount: "indefinite", begin: "0s", dur: "1s", keyTimes: "0;1", values: "1;0", attributeName: "opacity" }))), h("g", null))), this.loadingText)
|
|
103
103
|
:
|
|
104
104
|
(this.innerResults.length > 0 ?
|
|
105
105
|
this.innerResults.map((item) => (h("div", { onClick: () => this.handleResClicked(item), key: item['id'] }, item['img'] && h("img", { src: item['img'], alt: "result" }), item['value'])))
|
|
106
106
|
:
|
|
107
107
|
h("div", { class: "helperText" }, this.noResultText)), (this.innerResults && this.innerResults.length > 0) &&
|
|
108
|
-
h("div", { key: '
|
|
108
|
+
h("div", { key: '6d912d69fd8d882abb2a6a4736b81801b02b4e40', class: "totalRes" }, h("jump-button", { key: '9e339094d55d59e4a8ac4537e8e429f168e66055', variant: "secondary", size: "small", text: true, onClick: () => this.btnOrShowOtherClicked(), target: "_blank" }, " ", this.showAllResText, " "), this.totalResults && h("div", { key: '9b6c14f1345247b25c4d8fe142ffd4779e5340da' }, this.totalResults, " ", this.resultsText))))))));
|
|
109
109
|
}
|
|
110
110
|
static get is() { return "jump-search-bar-mobile"; }
|
|
111
111
|
static get encapsulation() { return "shadow"; }
|
|
@@ -66,7 +66,7 @@ export class JumpTab {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
|
-
return (h(Host, { key: '
|
|
69
|
+
return (h(Host, { key: '8a0199ca73b829bf916eb0065ea2349e3893b6d0', class: "JumpTab " + this.variant, id: this.tabGroupName, ref: (el) => { this.JumpTabEl = el; } }, h("div", { key: 'dbdef0b65d8149dd17f71022b802b53e6917dd4f', class: "Wrapper " + (this.fullBorder ? 'fullBorder' : '') }, h("div", { key: 'e8115b34e124bc2d85a273867dac7ab82a09db65', class: "ContentWrapper ContentWrapper--Items", style: { '--alignment': this.getAlignment(this.alignment) } }, h("div", { key: '973243bfa74224b6184d62ce36536f4720561f9c', class: "Content " + this.variant + " " + (this.disabled ? 'disabled' : '') + " " + (this.fullBorder ? 'fullBorder' : ''), style: { '--alignment': this.getAlignment(this.alignment) } }, h("slot", { key: 'c6ee4fb22decdb4f1e3d89e679987cd211e722ec', name: "tab-item" }))), h("div", { key: 'fa9565bba6ab3bc3eff4f9f232bfbd80829f6d4c', class: "ContentWrapper ContentWrapper--Panel" }, h("slot", { key: '0754dcab98e5e8ca3bd27babd3b90f9083c0c489', name: "tab-content" })))));
|
|
70
70
|
}
|
|
71
71
|
getAlignment(alignment) {
|
|
72
72
|
switch (alignment) {
|
|
@@ -18,8 +18,8 @@ export class JumpTabItem {
|
|
|
18
18
|
this.variant = parentVariant;
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
22
|
-
h("jump-icon", { key: '
|
|
21
|
+
return (h(Host, { key: '20bcab66648d2c1a2dab7fa45aeaf160cba65be0', ref: (el) => { this.tabEl = el; }, class: "JumpTabItem " + (this.active ? 'active' : '') + " " + (this.variant) + " " + (this.disabled ? 'disabled' : '') }, h("div", { key: '31fbceda6a68188b055c0e1d15ca2911a584c87a', class: "Content " + (this.iconName ? this.iconPosition : '') + " " + (this.variant) + " " + (this.active ? 'active' : '') + " " + (this.disabled ? 'disabled' : ''), onClick: () => this.changeTab(this.identifier), id: this.identifier }, (this.iconName && (this.variant == 'inline' || this.variant == 'boxed')) &&
|
|
22
|
+
h("jump-icon", { key: 'e3760a45cfc90383b284268d5185b04cfdc30a8e', library: "fa", category: "regular", name: this.iconName, size: "small" }), h("span", { key: 'ee2b41643c241569429b359c121d1c0827de7cbf', class: "label" }, this.label))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "jump-tab-item"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class JumpTabPanel {
|
|
|
5
5
|
this.active = false;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'cf92120024b87b2226981c093ff8addeb9f6047e', class: "JumpTabPanel", id: this.identifier }, h("div", { key: 'b3705621ee187894cdf1f0eda5fef73573046646', class: "JumpTabPanel__Content " + (this.active ? 'active' : '') }, h("slot", { key: '8f42f264b401f8f9c5336bdb6216bdb13fb2ba0d' }))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "jump-tab-panel"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|