@jumpgroup/jump-design-system 0.3.67 → 0.3.69
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-design-system.cjs.js +1 -1
- package/dist/cjs/jump-filter-select.cjs.entry.js +69 -7
- package/dist/cjs/jump-filter-select.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-filter-switch.cjs.entry.js +105 -5
- package/dist/cjs/jump-filter-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/jump-filter-select/jump-filter-select.js +143 -8
- package/dist/collection/components/jump-filter-select/jump-filter-select.js.map +1 -1
- package/dist/collection/components/jump-filter-switch/jump-filter-switch.js +220 -6
- package/dist/collection/components/jump-filter-switch/jump-filter-switch.js.map +1 -1
- package/dist/components/jump-filter-select.js +73 -7
- package/dist/components/jump-filter-select.js.map +1 -1
- package/dist/components/jump-filter-switch.js +114 -7
- package/dist/components/jump-filter-switch.js.map +1 -1
- package/dist/esm/jump-design-system.js +1 -1
- package/dist/esm/jump-filter-select.entry.js +69 -7
- package/dist/esm/jump-filter-select.entry.js.map +1 -1
- package/dist/esm/jump-filter-switch.entry.js +105 -5
- package/dist/esm/jump-filter-switch.entry.js.map +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-469ccf77.entry.js → p-6148a37d.entry.js} +4 -4
- package/dist/jump-design-system/p-6148a37d.entry.js.map +1 -0
- package/dist/jump-design-system/{p-7c06855a.entry.js → p-79c78037.entry.js} +4 -4
- package/dist/jump-design-system/p-79c78037.entry.js.map +1 -0
- package/dist/jump-design-system-elements.json +8 -0
- package/dist/types/components/jump-filter-select/jump-filter-select.d.ts +22 -0
- package/dist/types/components/jump-filter-switch/jump-filter-switch.d.ts +33 -0
- package/dist/types/components.d.ts +53 -0
- package/package.json +1 -1
- package/dist/jump-design-system/p-469ccf77.entry.js.map +0 -1
- package/dist/jump-design-system/p-7c06855a.entry.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jump-filter-select.js","sourceRoot":"","sources":["../../../src/components/jump-filter-select/jump-filter-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAgB,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACtG,OAAO,2DAA2D,CAAC;AACnE,OAAO,2DAA2D,CAAC;AAEnE;;;GAGG;AAMH,MAAM,OAAO,gBAAgB;;;2BAQG,uBAAuB;;uBAMU,EAAE;wBAGpB,KAAK;wBAGtB,KAAK;wBAGL,KAAK;uBAGN,KAAK;oBAGP,KAAK;iCAGQ,KAAK;;IAQ3C;;OAEG;IACH,mBAAmB;QACjB,6DAA6D;QAC7D,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC;QAC9C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACzD,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,WAAW,CAC7D,CAAC;IACJ,CAAC;IAED;;OAEG;IACK,eAAe;QACrB,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;YACrC,IAAI,CAAC;gBACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAClC,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,OAAO,CAAC,KAAK,CAAC,mCAAmC,EAAE,CAAC,CAAC,CAAC;gBACtD,OAAO,EAAE,CAAC;YACZ,CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC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AAG,EAAE,CAAC;gBAG/B,CAAC,IAAI,CAAC,iBAAiB,IAAI,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CACrD,iBAAW,KAAK,EAAE,MAAM,CAAC,KAAK,IAAG,MAAM,CAAC,KAAK,CAAa,CAC3D,CAAC;gBAGF,8DAAa,CACH,CACP,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h, Event, EventEmitter, Method, State, Element } from '@stencil/core';\nimport '@shoelace-style/shoelace/dist/components/select/select.js';\nimport '@shoelace-style/shoelace/dist/components/option/option.js';\n\n/**\n * Componente select per filtri con supporto per opzioni e stato\n * @slot - Contenitore per elementi sl-option quando le opzioni sono definite come figli\n */\n@Component({\n tag: 'jump-filter-select',\n styleUrl: 'jump-filter-select.scss',\n shadow: true,\n})\nexport class JumpFilterSelect {\n /** Riferimento all'elemento host */\n @Element() hostElement: HTMLElement;\n\n /** Il valore selezionato */\n @Prop({ reflect: true, mutable: true }) value: string;\n\n /** Il placeholder da mostrare quando nessun valore è selezionato */\n @Prop() placeholder: string = 'Seleziona un\\'opzione';\n\n /** L'etichetta del select */\n @Prop() label: string;\n\n /** Opzioni del select come array di oggetti {value, label} o come stringa JSON */\n @Prop() options: string | { value: string; label: string }[] = [];\n\n /** Stato del select (disabilitato) */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Flag per indicare se è possibile selezionare più opzioni */\n @Prop() multiple: boolean = false;\n\n /** Flag per indicare se la selezione è obbligatoria */\n @Prop() required: boolean = false;\n\n /** Flag per indicare se il select è in stato di caricamento */\n @Prop() loading: boolean = false;\n\n /** Stato interno per gestire l'apertura del dropdown */\n @State() open: boolean = false;\n\n /** Flag per determinare se sono presenti opzioni come slot */\n @State() hasSlottedOptions: boolean = false;\n\n /** Riferimento all'elemento host */\n host: HTMLElement;\n\n /** Riferimento all'elemento sl-select interno */\n el: any;\n\n /**\n * Controlla se ci sono opzioni definite come slot\n */\n componentWillRender() {\n // Verifica se ci sono elementi sl-option definiti come figli\n const slotNodes = this.hostElement.childNodes;\n this.hasSlottedOptions = Array.from(slotNodes).some(node =>\n node.nodeName && node.nodeName.toLowerCase() === 'sl-option'\n );\n }\n\n /**\n * Converte le opzioni da string o array a array di oggetti\n */\n private getOptionsArray(): { value: string; label: string }[] {\n if (typeof this.options === 'string') {\n try {\n return JSON.parse(this.options);\n } catch (e) {\n console.error('Errore nel parsing delle opzioni:', e);\n return [];\n }\n }\n return this.options;\n }\n\n componentDidLoad() {\n this.listenSLChange();\n }\n\n /**\n * Ascolta gli eventi di cambio selezione dal select Shoelace\n */\n listenSLChange() {\n if (this.host) {\n this.host.addEventListener('sl-change', (event: any) => {\n if (this.disabled) {\n return;\n }\n\n this.value = event.target.value;\n\n const optionsArray = this.getOptionsArray();\n const selectedOption = optionsArray.find(option => option.value === this.value);\n\n const eventData = {\n value: this.value,\n selectedOption\n };\n\n this.selectionChange.emit(eventData);\n this.selectionFilterChange.emit(eventData);\n });\n }\n }\n\n /**\n * Evento emesso quando cambia la selezione\n */\n @Event({ eventName: 'jump-select-change' }) selectionChange: EventEmitter;\n @Event({ eventName: 'jump-filterchange' }) selectionFilterChange: EventEmitter;\n\n /**\n * Metodo pubblico per ottenere il valore selezionato\n * @returns Il valore attualmente selezionato\n */\n @Method()\n async getSelectedValue() {\n return this.value;\n }\n\n /**\n * Metodo pubblico per ottenere l'opzione selezionata\n * @returns L'opzione attualmente selezionata come oggetto {value, label}\n */\n @Method()\n async getSelectedOption() {\n const optionsArray = this.getOptionsArray();\n return optionsArray.find(option => option.value === this.value);\n }\n\n /**\n * Metodo pubblico per impostare programmaticamente il valore selezionato\n * @param newValue - Il nuovo valore da selezionare\n * @param emitEvent - Se emettere l'evento di cambio (default: true)\n * @returns Il nuovo valore impostato\n */\n @Method()\n async setValue(newValue: string, emitEvent: boolean = true) {\n this.value = newValue;\n\n // Aggiorna anche il valore dell'elemento sl-select interno\n if (this.el) {\n this.el.value = newValue;\n }\n\n // Emetti l'evento di cambio se richiesto\n if (emitEvent) {\n const optionsArray = this.getOptionsArray();\n const selectedOption = optionsArray.find(option => option.value === this.value);\n\n const eventData = {\n value: this.value,\n selectedOption,\n programmatic: true // Flag per indicare che il cambio è avvenuto programmaticamente\n };\n\n this.selectionChange.emit(eventData);\n this.selectionFilterChange.emit(eventData);\n }\n\n return this.value;\n }\n\n render() {\n const optionsArray = this.getOptionsArray();\n\n return (\n <Host ref={(host: HTMLElement) => (this.host = host)}>\n {this.label && (\n <div class=\"select-label\">{this.label}</div>\n )}\n <sl-select\n value={this.value}\n placeholder={this.placeholder}\n disabled={this.disabled}\n multiple={this.multiple}\n required={this.required}\n loading={this.loading}\n ref={(el: any) => (this.el = el)}\n >\n {/* Renderizza le opzioni dalla prop options solo se non ci sono sl-option nello slot */}\n {!this.hasSlottedOptions && optionsArray.map(option => (\n <sl-option value={option.value}>{option.label}</sl-option>\n ))}\n\n {/* Slot per le opzioni definite come figli */}\n <slot></slot>\n </sl-select>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"jump-filter-select.js","sourceRoot":"","sources":["../../../src/components/jump-filter-select/jump-filter-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAgB,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACtG,OAAO,2DAA2D,CAAC;AACnE,OAAO,2DAA2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C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h, Event, EventEmitter, Method, State, Element } from '@stencil/core';\nimport '@shoelace-style/shoelace/dist/components/select/select.js';\nimport '@shoelace-style/shoelace/dist/components/option/option.js';\n\n/**\n * Componente select per filtri con supporto per opzioni e stato\n * @slot - Contenitore per elementi sl-option quando le opzioni sono definite come figli\n */\n@Component({\n tag: 'jump-filter-select',\n styleUrl: 'jump-filter-select.scss',\n shadow: true,\n})\nexport class JumpFilterSelect {\n /** Riferimento all'elemento host */\n @Element() hostElement: HTMLElement;\n\n /** Il valore selezionato */\n @Prop({ reflect: true, mutable: true }) value: string;\n\n /** Il placeholder da mostrare quando nessun valore è selezionato */\n @Prop() placeholder: string = 'Seleziona un\\'opzione';\n\n /** L'etichetta del select */\n @Prop() label: string;\n\n /** Nome identificativo del filtro, utilizzato negli eventi */\n @Prop() name: string = 'select-filter';\n \n /** Opzioni del select come array di oggetti {value, label} o come stringa JSON */\n @Prop() options: string | { value: string; label: string }[] = [];\n\n /** Stato del select (disabilitato) */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Flag per indicare se è possibile selezionare più opzioni */\n @Prop() multiple: boolean = false;\n\n /** Flag per indicare se la selezione è obbligatoria */\n @Prop() required: boolean = false;\n\n /** Flag per indicare se il select è in stato di caricamento */\n @Prop() loading: boolean = false;\n\n /** Stato interno per gestire l'apertura del dropdown */\n @State() open: boolean = false;\n\n /** Flag per determinare se sono presenti opzioni come slot */\n @State() hasSlottedOptions: boolean = false;\n \n /** Stato interno per tenere traccia dei valori selezionati come array per compatibilità con gli altri filtri */\n @State() values: string[] = [];\n\n /** Riferimento all'elemento host */\n host: HTMLElement;\n\n /** Riferimento all'elemento sl-select interno */\n el: any;\n\n /**\n * Controlla se ci sono opzioni definite come slot\n */\n componentWillRender() {\n // Verifica se ci sono elementi sl-option definiti come figli\n const slotNodes = this.hostElement.childNodes;\n this.hasSlottedOptions = Array.from(slotNodes).some(node =>\n node.nodeName && node.nodeName.toLowerCase() === 'sl-option'\n );\n }\n\n /**\n * Converte le opzioni da string o array a array di oggetti\n */\n private getOptionsArray(): { value: string; label: string }[] {\n if (typeof this.options === 'string') {\n try {\n return JSON.parse(this.options);\n } catch (e) {\n console.error('Errore nel parsing delle opzioni:', e);\n return [];\n }\n }\n return this.options;\n }\n \n /**\n * Aggiorna l'array dei valori in base al valore selezionato\n */\n private updateValues() {\n this.values = this.value ? [this.value] : [];\n }\n\n componentDidLoad() {\n this.listenSLChange();\n // Inizializza l'array dei valori\n this.updateValues();\n }\n\n /**\n * Ascolta gli eventi di cambio selezione dal select Shoelace\n */\n listenSLChange() {\n if (this.host) {\n this.host.addEventListener('sl-change', (event: any) => {\n if (this.disabled) {\n return;\n }\n\n this.value = event.target.value;\n this.updateValues();\n \n const optionsArray = this.getOptionsArray();\n const selectedOption = optionsArray.find(option => option.value === this.value);\n \n // Evento specifico per il componente select\n const selectEventData = {\n value: this.value,\n selectedOption\n };\n this.selectionChange.emit(selectEventData);\n \n // Evento standard per il sistema di filtri\n const filterEventData = {\n name: this.name,\n values: this.values,\n value: this.value,\n selectedOption\n };\n this.selectionFilterChange.emit(filterEventData);\n });\n }\n }\n\n /**\n * Evento emesso quando cambia la selezione\n */\n @Event({ eventName: 'jump-select-change' }) selectionChange: EventEmitter;\n @Event({ eventName: 'jump-filterchange' }) selectionFilterChange: EventEmitter;\n /**\n * Evento emesso quando il valore viene cambiato programmaticamente\n */\n @Event({ eventName: 'jump-select-value-change' }) valueChange: EventEmitter;\n\n /**\n * Metodo pubblico per ottenere il valore selezionato\n * @returns Il valore attualmente selezionato\n */\n @Method()\n async getSelectedValue() {\n return this.value;\n }\n\n /**\n * Metodo pubblico per ottenere l'opzione selezionata\n * @returns L'opzione attualmente selezionata come oggetto {value, label}\n */\n @Method()\n async getSelectedOption() {\n const optionsArray = this.getOptionsArray();\n return optionsArray.find(option => option.value === this.value);\n }\n \n /**\n * Metodo pubblico per ottenere i valori selezionati come array\n * @returns Array contenente il valore selezionato o un array vuoto\n */\n @Method()\n async getValues() {\n return this.values;\n }\n \n /**\n * Metodo pubblico per ottenere il nome del filtro\n * @returns Il nome del filtro\n */\n @Method()\n async getName() {\n return this.name;\n }\n\n /**\n * Metodo pubblico per impostare programmaticamente il valore selezionato\n * @param newValue - Il nuovo valore da selezionare\n * @param emitEvent - Se emettere l'evento di cambio (default: true)\n * @returns Il nuovo valore impostato\n */\n @Method()\n async setValue(newValue: string, emitEvent: boolean = true) {\n // Se il componente è disabilitato, non fare nulla\n if (this.disabled) {\n return this.value;\n }\n \n // Salva il valore precedente per l'evento\n const oldValue = this.value;\n \n // Non fare nulla se il valore non è cambiato\n if (oldValue === newValue) {\n return this.value;\n }\n \n this.value = newValue;\n this.updateValues();\n \n // Aggiorna anche il valore dell'elemento sl-select interno\n if (this.el) {\n this.el.value = newValue;\n }\n \n // Emetti l'evento di cambio se richiesto\n if (emitEvent) {\n const optionsArray = this.getOptionsArray();\n const selectedOption = optionsArray.find(option => option.value === this.value);\n \n // Evento specifico per il componente select\n const selectEventData = {\n value: this.value,\n oldValue: oldValue,\n selectedOption,\n programmatic: true // Flag per indicare che il cambio è avvenuto programmaticamente\n };\n this.selectionChange.emit(selectEventData);\n \n // Evento standard per il sistema di filtri\n const filterEventData = {\n name: this.name,\n values: this.values,\n value: this.value,\n oldValue: oldValue,\n selectedOption,\n programmatic: true\n };\n this.selectionFilterChange.emit(filterEventData);\n \n // Evento specifico per cambio programmato\n this.valueChange.emit({\n value: this.value,\n oldValue: oldValue,\n selectedOption\n });\n }\n\n return this.value;\n }\n\n render() {\n const optionsArray = this.getOptionsArray();\n\n return (\n <Host ref={(host: HTMLElement) => (this.host = host)}>\n {this.label && (\n <div class=\"select-label\">{this.label}</div>\n )}\n <sl-select\n value={this.value}\n placeholder={this.placeholder}\n disabled={this.disabled}\n multiple={this.multiple}\n required={this.required}\n loading={this.loading}\n ref={(el: any) => (this.el = el)}\n >\n {/* Renderizza le opzioni dalla prop options solo se non ci sono sl-option nello slot */}\n {!this.hasSlottedOptions && optionsArray.map(option => (\n <sl-option value={option.value}>{option.label}</sl-option>\n ))}\n\n {/* Slot per le opzioni definite come figli */}\n <slot></slot>\n </sl-select>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -8,11 +8,38 @@ export class JumpFilterSwitch {
|
|
|
8
8
|
constructor() {
|
|
9
9
|
this.value = undefined;
|
|
10
10
|
this.label = undefined;
|
|
11
|
+
this.name = 'switch-filter';
|
|
11
12
|
this.checked = false;
|
|
12
13
|
this.disabled = false;
|
|
14
|
+
this.values = [];
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Watch sulla proprietà checked per reagire ai cambiamenti esterni
|
|
18
|
+
*/
|
|
19
|
+
checkedChanged(newValue, oldValue) {
|
|
20
|
+
if (newValue !== oldValue) {
|
|
21
|
+
// Aggiorna l'elemento sl-switch
|
|
22
|
+
if (this.el) {
|
|
23
|
+
this.el.checked = newValue;
|
|
24
|
+
}
|
|
25
|
+
// Aggiorna i valori
|
|
26
|
+
this.updateValues();
|
|
27
|
+
}
|
|
13
28
|
}
|
|
14
29
|
componentDidLoad() {
|
|
15
30
|
this.listenSLChange();
|
|
31
|
+
// Inizializza i valori in base allo stato del checkbox
|
|
32
|
+
this.updateValues();
|
|
33
|
+
// Se è stato passato un valore di checked, applica lo stato all'elemento sl-switch
|
|
34
|
+
if (this.el && this.checked) {
|
|
35
|
+
this.el.checked = this.checked;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Aggiorna l'array dei valori in base allo stato del checkbox
|
|
40
|
+
*/
|
|
41
|
+
updateValues() {
|
|
42
|
+
this.values = this.checked && this.value ? [this.value] : [];
|
|
16
43
|
}
|
|
17
44
|
/**
|
|
18
45
|
* Ascolta gli eventi di cambio stato dal switch Shoelace
|
|
@@ -25,14 +52,69 @@ export class JumpFilterSwitch {
|
|
|
25
52
|
return;
|
|
26
53
|
}
|
|
27
54
|
this.checked = !this.checked;
|
|
28
|
-
|
|
55
|
+
this.updateValues();
|
|
56
|
+
// Evento specifico per il componente switch
|
|
57
|
+
const switchEventData = {
|
|
29
58
|
value: this.value,
|
|
30
|
-
checked: this.checked
|
|
59
|
+
checked: this.checked
|
|
60
|
+
};
|
|
61
|
+
this.toggleCheckbox.emit(switchEventData);
|
|
62
|
+
// Evento standard per il sistema di filtri
|
|
63
|
+
const filterEventData = {
|
|
64
|
+
name: this.name,
|
|
65
|
+
values: this.values,
|
|
66
|
+
checked: this.checked
|
|
31
67
|
};
|
|
32
|
-
this.
|
|
33
|
-
|
|
68
|
+
this.toggleCheckboxFilterChange.emit(filterEventData);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Metodo pubblico per impostare programmaticamente lo stato del switch
|
|
74
|
+
* @param checked - Il nuovo stato del switch (true = acceso, false = spento)
|
|
75
|
+
* @param emitEvent - Se emettere eventi di cambio stato (default: true)
|
|
76
|
+
* @returns {Promise<boolean>} Il nuovo stato del switch
|
|
77
|
+
*/
|
|
78
|
+
async setValue(checked, emitEvent = true) {
|
|
79
|
+
// Se il component è disabilitato, non fare nulla
|
|
80
|
+
if (this.disabled) {
|
|
81
|
+
return this.checked;
|
|
82
|
+
}
|
|
83
|
+
// Salva il valore precedente per l'evento
|
|
84
|
+
const oldValue = this.checked;
|
|
85
|
+
// Imposta il nuovo valore
|
|
86
|
+
this.checked = checked;
|
|
87
|
+
// Aggiorna l'elemento sl-switch interno
|
|
88
|
+
if (this.el) {
|
|
89
|
+
this.el.checked = checked;
|
|
90
|
+
}
|
|
91
|
+
// Aggiorna l'array dei valori
|
|
92
|
+
this.updateValues();
|
|
93
|
+
// Emetti eventi se richiesto
|
|
94
|
+
if (emitEvent && oldValue !== checked) {
|
|
95
|
+
// Evento specifico per il componente switch
|
|
96
|
+
const switchEventData = {
|
|
97
|
+
value: this.value,
|
|
98
|
+
checked: this.checked,
|
|
99
|
+
programmatic: true
|
|
100
|
+
};
|
|
101
|
+
this.toggleCheckbox.emit(switchEventData);
|
|
102
|
+
// Evento standard per il sistema di filtri
|
|
103
|
+
const filterEventData = {
|
|
104
|
+
name: this.name,
|
|
105
|
+
values: this.values,
|
|
106
|
+
checked: this.checked,
|
|
107
|
+
programmatic: true
|
|
108
|
+
};
|
|
109
|
+
this.toggleCheckboxFilterChange.emit(filterEventData);
|
|
110
|
+
// Evento specifico per cambio valore programmato
|
|
111
|
+
this.valueChange.emit({
|
|
112
|
+
value: this.value,
|
|
113
|
+
checked: this.checked,
|
|
114
|
+
oldChecked: oldValue
|
|
34
115
|
});
|
|
35
116
|
}
|
|
117
|
+
return this.checked;
|
|
36
118
|
}
|
|
37
119
|
/**
|
|
38
120
|
* Metodo pubblico per verificare lo stato corrente del switch
|
|
@@ -41,8 +123,22 @@ export class JumpFilterSwitch {
|
|
|
41
123
|
async isChecked() {
|
|
42
124
|
return this.checked;
|
|
43
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* Metodo pubblico per ottenere i valori selezionati
|
|
128
|
+
* @returns {string[]} Array contenente il valore se selezionato, altrimenti array vuoto
|
|
129
|
+
*/
|
|
130
|
+
async getValues() {
|
|
131
|
+
return this.values;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Metodo pubblico per ottenere il nome del filtro
|
|
135
|
+
* @returns {string} Il nome del filtro
|
|
136
|
+
*/
|
|
137
|
+
async getName() {
|
|
138
|
+
return this.name;
|
|
139
|
+
}
|
|
44
140
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
141
|
+
return (h(Host, { key: '5aaeb4633e6b9392d4adc3c461d1842ec3a90173', ref: (host) => (this.host = host) }, this.value && this.label && (h("sl-switch", { key: 'd261e71b29afd307de4941f8e81e71d47246e036', value: this.value, ref: (el) => (this.el = el), checked: this.checked, disabled: this.disabled }, this.label))));
|
|
46
142
|
}
|
|
47
143
|
static get is() { return "jump-filter-switch"; }
|
|
48
144
|
static get encapsulation() { return "shadow"; }
|
|
@@ -92,9 +188,27 @@ export class JumpFilterSwitch {
|
|
|
92
188
|
"attribute": "label",
|
|
93
189
|
"reflect": false
|
|
94
190
|
},
|
|
191
|
+
"name": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"mutable": false,
|
|
194
|
+
"complexType": {
|
|
195
|
+
"original": "string",
|
|
196
|
+
"resolved": "string",
|
|
197
|
+
"references": {}
|
|
198
|
+
},
|
|
199
|
+
"required": false,
|
|
200
|
+
"optional": false,
|
|
201
|
+
"docs": {
|
|
202
|
+
"tags": [],
|
|
203
|
+
"text": "Nome identificativo del filtro, utilizzato negli eventi"
|
|
204
|
+
},
|
|
205
|
+
"attribute": "name",
|
|
206
|
+
"reflect": false,
|
|
207
|
+
"defaultValue": "'switch-filter'"
|
|
208
|
+
},
|
|
95
209
|
"checked": {
|
|
96
210
|
"type": "boolean",
|
|
97
|
-
"mutable":
|
|
211
|
+
"mutable": true,
|
|
98
212
|
"complexType": {
|
|
99
213
|
"original": "boolean",
|
|
100
214
|
"resolved": "boolean",
|
|
@@ -130,6 +244,11 @@ export class JumpFilterSwitch {
|
|
|
130
244
|
}
|
|
131
245
|
};
|
|
132
246
|
}
|
|
247
|
+
static get states() {
|
|
248
|
+
return {
|
|
249
|
+
"values": {}
|
|
250
|
+
};
|
|
251
|
+
}
|
|
133
252
|
static get events() {
|
|
134
253
|
return [{
|
|
135
254
|
"method": "toggleCheckbox",
|
|
@@ -161,10 +280,59 @@ export class JumpFilterSwitch {
|
|
|
161
280
|
"resolved": "any",
|
|
162
281
|
"references": {}
|
|
163
282
|
}
|
|
283
|
+
}, {
|
|
284
|
+
"method": "valueChange",
|
|
285
|
+
"name": "jump-switch-value-change",
|
|
286
|
+
"bubbles": true,
|
|
287
|
+
"cancelable": true,
|
|
288
|
+
"composed": true,
|
|
289
|
+
"docs": {
|
|
290
|
+
"tags": [],
|
|
291
|
+
"text": "Evento emesso quando il valore viene cambiato programmaticamente"
|
|
292
|
+
},
|
|
293
|
+
"complexType": {
|
|
294
|
+
"original": "any",
|
|
295
|
+
"resolved": "any",
|
|
296
|
+
"references": {}
|
|
297
|
+
}
|
|
164
298
|
}];
|
|
165
299
|
}
|
|
166
300
|
static get methods() {
|
|
167
301
|
return {
|
|
302
|
+
"setValue": {
|
|
303
|
+
"complexType": {
|
|
304
|
+
"signature": "(checked: boolean, emitEvent?: boolean) => Promise<boolean>",
|
|
305
|
+
"parameters": [{
|
|
306
|
+
"name": "checked",
|
|
307
|
+
"type": "boolean",
|
|
308
|
+
"docs": "- Il nuovo stato del switch (true = acceso, false = spento)"
|
|
309
|
+
}, {
|
|
310
|
+
"name": "emitEvent",
|
|
311
|
+
"type": "boolean",
|
|
312
|
+
"docs": "- Se emettere eventi di cambio stato (default: true)"
|
|
313
|
+
}],
|
|
314
|
+
"references": {
|
|
315
|
+
"Promise": {
|
|
316
|
+
"location": "global",
|
|
317
|
+
"id": "global::Promise"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"return": "Promise<boolean>"
|
|
321
|
+
},
|
|
322
|
+
"docs": {
|
|
323
|
+
"text": "Metodo pubblico per impostare programmaticamente lo stato del switch",
|
|
324
|
+
"tags": [{
|
|
325
|
+
"name": "param",
|
|
326
|
+
"text": "checked - Il nuovo stato del switch (true = acceso, false = spento)"
|
|
327
|
+
}, {
|
|
328
|
+
"name": "param",
|
|
329
|
+
"text": "emitEvent - Se emettere eventi di cambio stato (default: true)"
|
|
330
|
+
}, {
|
|
331
|
+
"name": "returns",
|
|
332
|
+
"text": "Il nuovo stato del switch"
|
|
333
|
+
}]
|
|
334
|
+
}
|
|
335
|
+
},
|
|
168
336
|
"isChecked": {
|
|
169
337
|
"complexType": {
|
|
170
338
|
"signature": "() => Promise<boolean>",
|
|
@@ -184,8 +352,54 @@ export class JumpFilterSwitch {
|
|
|
184
352
|
"text": "Lo stato corrente del switch (true = acceso, false = spento)"
|
|
185
353
|
}]
|
|
186
354
|
}
|
|
355
|
+
},
|
|
356
|
+
"getValues": {
|
|
357
|
+
"complexType": {
|
|
358
|
+
"signature": "() => Promise<string[]>",
|
|
359
|
+
"parameters": [],
|
|
360
|
+
"references": {
|
|
361
|
+
"Promise": {
|
|
362
|
+
"location": "global",
|
|
363
|
+
"id": "global::Promise"
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
"return": "Promise<string[]>"
|
|
367
|
+
},
|
|
368
|
+
"docs": {
|
|
369
|
+
"text": "Metodo pubblico per ottenere i valori selezionati",
|
|
370
|
+
"tags": [{
|
|
371
|
+
"name": "returns",
|
|
372
|
+
"text": "Array contenente il valore se selezionato, altrimenti array vuoto"
|
|
373
|
+
}]
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"getName": {
|
|
377
|
+
"complexType": {
|
|
378
|
+
"signature": "() => Promise<string>",
|
|
379
|
+
"parameters": [],
|
|
380
|
+
"references": {
|
|
381
|
+
"Promise": {
|
|
382
|
+
"location": "global",
|
|
383
|
+
"id": "global::Promise"
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"return": "Promise<string>"
|
|
387
|
+
},
|
|
388
|
+
"docs": {
|
|
389
|
+
"text": "Metodo pubblico per ottenere il nome del filtro",
|
|
390
|
+
"tags": [{
|
|
391
|
+
"name": "returns",
|
|
392
|
+
"text": "Il nome del filtro"
|
|
393
|
+
}]
|
|
394
|
+
}
|
|
187
395
|
}
|
|
188
396
|
};
|
|
189
397
|
}
|
|
398
|
+
static get watchers() {
|
|
399
|
+
return [{
|
|
400
|
+
"propName": "checked",
|
|
401
|
+
"methodName": "checkedChanged"
|
|
402
|
+
}];
|
|
403
|
+
}
|
|
190
404
|
}
|
|
191
405
|
//# sourceMappingURL=jump-filter-switch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jump-filter-switch.js","sourceRoot":"","sources":["../../../src/components/jump-filter-switch/jump-filter-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAgB,MAAM,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"jump-filter-switch.js","sourceRoot":"","sources":["../../../src/components/jump-filter-switch/jump-filter-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAgB,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,2DAA2D,CAAC;AAEnE;;;GAGG;AAMH,MAAM,OAAO,gBAAgB;;;;oBAQJ,eAAe;uBAGqB,KAAK;wBAGnB,KAAK;sBAGtB,EAAE;;IAE9B;;OAEG;IAEH,cAAc,CAAC,QAAiB,EAAE,QAAiB;QACjD,IAAI,QAAQ,KAAK,QAAQ,EAAE,CAAC;YAC1B,gCAAgC;YAChC,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC;gBACZ,IAAI,CAAC,EAAE,CAAC,OAAO,GAAG,QAAQ,CAAC;YAC7B,CAAC;YAED,oBAAoB;YACpB,IAAI,CAAC,YAAY,EAAE,CAAC;QACtB,CAAC;IACH,CAAC;IAQD,gBAAgB;QACd,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,uDAAuD;QACvD,IAAI,CAAC,YAAY,EAAE,CAAC;QAEpB,mFAAmF;Q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;OAGG;IAEH,KAAK,CAAC,SAAS;QACb,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;;;OAGG;IAEH,KAAK,CAAC,OAAO;QACX,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,GAAG,EAAE,CAAC,IAAiB,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IACjD,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI,CAC3B,kEACE,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,GAAG,EAAE,CAAC,EAAO,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,EAChC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAEtB,IAAI,CAAC,KAAK,CACD,CACb,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, Prop, h, Event, EventEmitter, Watch, Method, State } 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 /** Nome identificativo del filtro, utilizzato negli eventi */\n @Prop() name: string = 'switch-filter';\n\n /** Stato del switch (acceso/spento) */\n @Prop({ reflect: true, mutable: true }) checked: boolean = false;\n\n /** Stato del switch (disabilitato) */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /** Stato interno per tenere traccia dei valori selezionati */\n @State() values: string[] = [];\n\n /**\n * Watch sulla proprietà checked per reagire ai cambiamenti esterni\n */\n @Watch('checked')\n checkedChanged(newValue: boolean, oldValue: boolean) {\n if (newValue !== oldValue) {\n // Aggiorna l'elemento sl-switch\n if (this.el) {\n this.el.checked = newValue;\n }\n\n // Aggiorna i valori\n this.updateValues();\n }\n }\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 // Inizializza i valori in base allo stato del checkbox\n this.updateValues();\n\n // Se è stato passato un valore di checked, applica lo stato all'elemento sl-switch\n if (this.el && this.checked) {\n this.el.checked = this.checked;\n }\n }\n\n /**\n * Aggiorna l'array dei valori in base allo stato del checkbox\n */\n private updateValues() {\n this.values = this.checked && this.value ? [this.value] : [];\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 this.updateValues();\n\n // Evento specifico per il componente switch\n const switchEventData = {\n value: this.value,\n checked: this.checked\n };\n this.toggleCheckbox.emit(switchEventData);\n\n // Evento standard per il sistema di filtri\n const filterEventData = {\n name: this.name,\n values: this.values,\n checked: this.checked\n };\n this.toggleCheckboxFilterChange.emit(filterEventData);\n });\n }\n }\n\n /**\n * Metodo pubblico per impostare programmaticamente lo stato del switch\n * @param checked - Il nuovo stato del switch (true = acceso, false = spento)\n * @param emitEvent - Se emettere eventi di cambio stato (default: true)\n * @returns {Promise<boolean>} Il nuovo stato del switch\n */\n @Method()\n async setValue(checked: boolean, emitEvent: boolean = true): Promise<boolean> {\n // Se il component è disabilitato, non fare nulla\n if (this.disabled) {\n return this.checked;\n }\n\n // Salva il valore precedente per l'evento\n const oldValue = this.checked;\n\n // Imposta il nuovo valore\n this.checked = checked;\n\n // Aggiorna l'elemento sl-switch interno\n if (this.el) {\n this.el.checked = checked;\n }\n\n // Aggiorna l'array dei valori\n this.updateValues();\n\n // Emetti eventi se richiesto\n if (emitEvent && oldValue !== checked) {\n // Evento specifico per il componente switch\n const switchEventData = {\n value: this.value,\n checked: this.checked,\n programmatic: true\n };\n this.toggleCheckbox.emit(switchEventData);\n\n // Evento standard per il sistema di filtri\n const filterEventData = {\n name: this.name,\n values: this.values,\n checked: this.checked,\n programmatic: true\n };\n this.toggleCheckboxFilterChange.emit(filterEventData);\n\n // Evento specifico per cambio valore programmato\n this.valueChange.emit({\n value: this.value,\n checked: this.checked,\n oldChecked: oldValue\n });\n }\n\n return this.checked;\n }\n\n /**\n * Evento emesso quando cambia lo stato del switch\n */\n @Event({ eventName: 'jump-switch-change' }) toggleCheckbox: EventEmitter;\n @Event({ eventName: 'jump-filterchange' }) toggleCheckboxFilterChange: EventEmitter;\n /**\n * Evento emesso quando il valore viene cambiato programmaticamente\n */\n @Event({ eventName: 'jump-switch-value-change' }) valueChange: 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 /**\n * Metodo pubblico per ottenere i valori selezionati\n * @returns {string[]} Array contenente il valore se selezionato, altrimenti array vuoto\n */\n @Method()\n async getValues() {\n return this.values;\n }\n\n /**\n * Metodo pubblico per ottenere il nome del filtro\n * @returns {string} Il nome del filtro\n */\n @Method()\n async getName() {\n return this.name;\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"]}
|
|
@@ -4118,9 +4118,11 @@ const JumpFilterSelect$1 = /*@__PURE__*/ proxyCustomElement(class JumpFilterSele
|
|
|
4118
4118
|
this.__attachShadow();
|
|
4119
4119
|
this.selectionChange = createEvent(this, "jump-select-change", 7);
|
|
4120
4120
|
this.selectionFilterChange = createEvent(this, "jump-filterchange", 7);
|
|
4121
|
+
this.valueChange = createEvent(this, "jump-select-value-change", 7);
|
|
4121
4122
|
this.value = undefined;
|
|
4122
4123
|
this.placeholder = 'Seleziona un\'opzione';
|
|
4123
4124
|
this.label = undefined;
|
|
4125
|
+
this.name = 'select-filter';
|
|
4124
4126
|
this.options = [];
|
|
4125
4127
|
this.disabled = false;
|
|
4126
4128
|
this.multiple = false;
|
|
@@ -4128,6 +4130,7 @@ const JumpFilterSelect$1 = /*@__PURE__*/ proxyCustomElement(class JumpFilterSele
|
|
|
4128
4130
|
this.loading = false;
|
|
4129
4131
|
this.open = false;
|
|
4130
4132
|
this.hasSlottedOptions = false;
|
|
4133
|
+
this.values = [];
|
|
4131
4134
|
}
|
|
4132
4135
|
/**
|
|
4133
4136
|
* Controlla se ci sono opzioni definite come slot
|
|
@@ -4152,8 +4155,16 @@ const JumpFilterSelect$1 = /*@__PURE__*/ proxyCustomElement(class JumpFilterSele
|
|
|
4152
4155
|
}
|
|
4153
4156
|
return this.options;
|
|
4154
4157
|
}
|
|
4158
|
+
/**
|
|
4159
|
+
* Aggiorna l'array dei valori in base al valore selezionato
|
|
4160
|
+
*/
|
|
4161
|
+
updateValues() {
|
|
4162
|
+
this.values = this.value ? [this.value] : [];
|
|
4163
|
+
}
|
|
4155
4164
|
componentDidLoad() {
|
|
4156
4165
|
this.listenSLChange();
|
|
4166
|
+
// Inizializza l'array dei valori
|
|
4167
|
+
this.updateValues();
|
|
4157
4168
|
}
|
|
4158
4169
|
/**
|
|
4159
4170
|
* Ascolta gli eventi di cambio selezione dal select Shoelace
|
|
@@ -4165,14 +4176,23 @@ const JumpFilterSelect$1 = /*@__PURE__*/ proxyCustomElement(class JumpFilterSele
|
|
|
4165
4176
|
return;
|
|
4166
4177
|
}
|
|
4167
4178
|
this.value = event.target.value;
|
|
4179
|
+
this.updateValues();
|
|
4168
4180
|
const optionsArray = this.getOptionsArray();
|
|
4169
4181
|
const selectedOption = optionsArray.find(option => option.value === this.value);
|
|
4170
|
-
|
|
4182
|
+
// Evento specifico per il componente select
|
|
4183
|
+
const selectEventData = {
|
|
4184
|
+
value: this.value,
|
|
4185
|
+
selectedOption
|
|
4186
|
+
};
|
|
4187
|
+
this.selectionChange.emit(selectEventData);
|
|
4188
|
+
// Evento standard per il sistema di filtri
|
|
4189
|
+
const filterEventData = {
|
|
4190
|
+
name: this.name,
|
|
4191
|
+
values: this.values,
|
|
4171
4192
|
value: this.value,
|
|
4172
4193
|
selectedOption
|
|
4173
4194
|
};
|
|
4174
|
-
this.
|
|
4175
|
-
this.selectionFilterChange.emit(eventData);
|
|
4195
|
+
this.selectionFilterChange.emit(filterEventData);
|
|
4176
4196
|
});
|
|
4177
4197
|
}
|
|
4178
4198
|
}
|
|
@@ -4191,6 +4211,20 @@ const JumpFilterSelect$1 = /*@__PURE__*/ proxyCustomElement(class JumpFilterSele
|
|
|
4191
4211
|
const optionsArray = this.getOptionsArray();
|
|
4192
4212
|
return optionsArray.find(option => option.value === this.value);
|
|
4193
4213
|
}
|
|
4214
|
+
/**
|
|
4215
|
+
* Metodo pubblico per ottenere i valori selezionati come array
|
|
4216
|
+
* @returns Array contenente il valore selezionato o un array vuoto
|
|
4217
|
+
*/
|
|
4218
|
+
async getValues() {
|
|
4219
|
+
return this.values;
|
|
4220
|
+
}
|
|
4221
|
+
/**
|
|
4222
|
+
* Metodo pubblico per ottenere il nome del filtro
|
|
4223
|
+
* @returns Il nome del filtro
|
|
4224
|
+
*/
|
|
4225
|
+
async getName() {
|
|
4226
|
+
return this.name;
|
|
4227
|
+
}
|
|
4194
4228
|
/**
|
|
4195
4229
|
* Metodo pubblico per impostare programmaticamente il valore selezionato
|
|
4196
4230
|
* @param newValue - Il nuovo valore da selezionare
|
|
@@ -4198,7 +4232,18 @@ const JumpFilterSelect$1 = /*@__PURE__*/ proxyCustomElement(class JumpFilterSele
|
|
|
4198
4232
|
* @returns Il nuovo valore impostato
|
|
4199
4233
|
*/
|
|
4200
4234
|
async setValue(newValue, emitEvent = true) {
|
|
4235
|
+
// Se il componente è disabilitato, non fare nulla
|
|
4236
|
+
if (this.disabled) {
|
|
4237
|
+
return this.value;
|
|
4238
|
+
}
|
|
4239
|
+
// Salva il valore precedente per l'evento
|
|
4240
|
+
const oldValue = this.value;
|
|
4241
|
+
// Non fare nulla se il valore non è cambiato
|
|
4242
|
+
if (oldValue === newValue) {
|
|
4243
|
+
return this.value;
|
|
4244
|
+
}
|
|
4201
4245
|
this.value = newValue;
|
|
4246
|
+
this.updateValues();
|
|
4202
4247
|
// Aggiorna anche il valore dell'elemento sl-select interno
|
|
4203
4248
|
if (this.el) {
|
|
4204
4249
|
this.el.value = newValue;
|
|
@@ -4207,19 +4252,36 @@ const JumpFilterSelect$1 = /*@__PURE__*/ proxyCustomElement(class JumpFilterSele
|
|
|
4207
4252
|
if (emitEvent) {
|
|
4208
4253
|
const optionsArray = this.getOptionsArray();
|
|
4209
4254
|
const selectedOption = optionsArray.find(option => option.value === this.value);
|
|
4210
|
-
|
|
4255
|
+
// Evento specifico per il componente select
|
|
4256
|
+
const selectEventData = {
|
|
4211
4257
|
value: this.value,
|
|
4258
|
+
oldValue: oldValue,
|
|
4212
4259
|
selectedOption,
|
|
4213
4260
|
programmatic: true // Flag per indicare che il cambio è avvenuto programmaticamente
|
|
4214
4261
|
};
|
|
4215
|
-
this.selectionChange.emit(
|
|
4216
|
-
|
|
4262
|
+
this.selectionChange.emit(selectEventData);
|
|
4263
|
+
// Evento standard per il sistema di filtri
|
|
4264
|
+
const filterEventData = {
|
|
4265
|
+
name: this.name,
|
|
4266
|
+
values: this.values,
|
|
4267
|
+
value: this.value,
|
|
4268
|
+
oldValue: oldValue,
|
|
4269
|
+
selectedOption,
|
|
4270
|
+
programmatic: true
|
|
4271
|
+
};
|
|
4272
|
+
this.selectionFilterChange.emit(filterEventData);
|
|
4273
|
+
// Evento specifico per cambio programmato
|
|
4274
|
+
this.valueChange.emit({
|
|
4275
|
+
value: this.value,
|
|
4276
|
+
oldValue: oldValue,
|
|
4277
|
+
selectedOption
|
|
4278
|
+
});
|
|
4217
4279
|
}
|
|
4218
4280
|
return this.value;
|
|
4219
4281
|
}
|
|
4220
4282
|
render() {
|
|
4221
4283
|
const optionsArray = this.getOptionsArray();
|
|
4222
|
-
return (h(Host, { key: '
|
|
4284
|
+
return (h(Host, { key: '26ecef5862a3d5ef1d903ac9dad378027841d78c', ref: (host) => (this.host = host) }, this.label && (h("div", { key: '24bc20afb81ebe4b760889b3be866cc4c94b43f4', class: "select-label" }, this.label)), h("sl-select", { key: '7b578cf8ab02dd40df93848af918c51f7061bbbe', value: this.value, placeholder: this.placeholder, disabled: this.disabled, multiple: this.multiple, required: this.required, loading: this.loading, ref: (el) => (this.el = el) }, !this.hasSlottedOptions && optionsArray.map(option => (h("sl-option", { value: option.value }, option.label))), h("slot", { key: 'dc85029632cf9c9f6b00b72c4f9a83a8281e25dc' }))));
|
|
4223
4285
|
}
|
|
4224
4286
|
get hostElement() { return this; }
|
|
4225
4287
|
static get style() { return JumpFilterSelectStyle0; }
|
|
@@ -4227,6 +4289,7 @@ const JumpFilterSelect$1 = /*@__PURE__*/ proxyCustomElement(class JumpFilterSele
|
|
|
4227
4289
|
"value": [1537],
|
|
4228
4290
|
"placeholder": [1],
|
|
4229
4291
|
"label": [1],
|
|
4292
|
+
"name": [1],
|
|
4230
4293
|
"options": [1],
|
|
4231
4294
|
"disabled": [516],
|
|
4232
4295
|
"multiple": [4],
|
|
@@ -4234,8 +4297,11 @@ const JumpFilterSelect$1 = /*@__PURE__*/ proxyCustomElement(class JumpFilterSele
|
|
|
4234
4297
|
"loading": [4],
|
|
4235
4298
|
"open": [32],
|
|
4236
4299
|
"hasSlottedOptions": [32],
|
|
4300
|
+
"values": [32],
|
|
4237
4301
|
"getSelectedValue": [64],
|
|
4238
4302
|
"getSelectedOption": [64],
|
|
4303
|
+
"getValues": [64],
|
|
4304
|
+
"getName": [64],
|
|
4239
4305
|
"setValue": [64]
|
|
4240
4306
|
}]);
|
|
4241
4307
|
function defineCustomElement$1() {
|