mypgs 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/README.md +25 -25
  2. package/assets/scss/components/_accordion.scss +0 -2
  3. package/assets/scss/components/_button.scss +1 -1
  4. package/assets/scss/components/_form.scss +0 -16
  5. package/assets/scss/components/_formAddon.scss +18 -0
  6. package/assets/scss/components/_modals.scss +5 -3
  7. package/assets/scss/components/_search.scss +2 -2
  8. package/assets/scss/components/_slides.scss +0 -1
  9. package/assets/scss/components/_tooltip.scss +0 -1
  10. package/assets/scss/index.scss +1 -0
  11. package/assets/scss/layout/_footer.scss +0 -2
  12. package/assets/scss/layout/_header.scss +9 -1
  13. package/assets/scss/layout/_pageShell.scss +6 -2
  14. package/assets/scss/mixin/_mx-button.scss +30 -76
  15. package/assets/scss/mixin/_mx-card.scss +11 -9
  16. package/assets/scss/mixin/_mx-form.scss +3 -5
  17. package/assets/scss/mixin/{_mx-form-addon.scss → _mx-formAddon.scss} +23 -26
  18. package/assets/scss/mixin/_mx-hover.scss +75 -0
  19. package/assets/scss/mixin/_settings.scss +2 -1
  20. package/assets/scss/mixin/mixin.scss +2 -1
  21. package/demo/demo.js +4 -3
  22. package/dist/css/index.css +1166 -1517
  23. package/dist/css/index.css.map +1 -1
  24. package/dist/css/index.min.css +1 -1
  25. package/docs/componenti-e-markup.md +6 -5
  26. package/docs/components/accordion.md +22 -22
  27. package/docs/components/badges.md +19 -19
  28. package/docs/components/breadcumbs.md +8 -8
  29. package/docs/components/button.md +17 -17
  30. package/docs/components/card.md +19 -19
  31. package/docs/components/dropdown.md +29 -29
  32. package/docs/components/form.md +63 -40
  33. package/docs/components/formAddon.md +79 -0
  34. package/docs/components/logo.md +11 -11
  35. package/docs/components/menu.md +20 -20
  36. package/docs/components/modal.md +46 -46
  37. package/docs/components/notification.md +34 -34
  38. package/docs/components/search.md +51 -50
  39. package/docs/components/slides.md +39 -39
  40. package/docs/components/stepTabs.md +41 -41
  41. package/docs/components/steps.md +16 -16
  42. package/docs/components/summary.md +20 -20
  43. package/docs/components/table.md +7 -7
  44. package/docs/components/tooltip.md +22 -22
  45. package/docs/convenzioni.md +11 -11
  46. package/docs/export-e-sviluppo.md +3 -3
  47. package/docs/helper-javascript.md +7 -7
  48. package/docs/layout/body.md +11 -11
  49. package/docs/layout/flex.md +44 -44
  50. package/docs/layout/footer.md +23 -23
  51. package/docs/layout/grid.md +44 -44
  52. package/docs/layout/header.md +34 -34
  53. package/docs/layout/pageShell.md +11 -11
  54. package/docs/layout/section.md +26 -26
  55. package/docs/patterns/cookieConsent.md +38 -38
  56. package/docs/utilizzo-css-scss.md +8 -8
  57. package/package.json +1 -1
  58. package/scripts/generate-component-docs.js +5 -5
  59. package/templates/html/components/accordion.html +19 -19
  60. package/templates/html/components/badges.html +17 -17
  61. package/templates/html/components/breadcumbs.html +6 -6
  62. package/templates/html/components/button.html +15 -15
  63. package/templates/html/components/card.html +17 -17
  64. package/templates/html/components/dropdown.html +25 -25
  65. package/templates/html/components/form.html +58 -35
  66. package/templates/html/components/formAddon.html +72 -0
  67. package/templates/html/components/logo.html +9 -9
  68. package/templates/html/components/menu.html +16 -16
  69. package/templates/html/components/modal.html +42 -42
  70. package/templates/html/components/notification.html +30 -30
  71. package/templates/html/components/search.html +43 -42
  72. package/templates/html/components/slides.html +31 -31
  73. package/templates/html/components/stepTabs.html +37 -37
  74. package/templates/html/components/steps.html +13 -13
  75. package/templates/html/components/summary.html +17 -17
  76. package/templates/html/components/table.html +5 -5
  77. package/templates/html/components/tooltip.html +18 -18
  78. package/templates/html/layout/body.html +9 -10
  79. package/templates/html/layout/flex.html +42 -42
  80. package/templates/html/layout/footer.html +20 -20
  81. package/templates/html/layout/grid.html +42 -42
  82. package/templates/html/layout/header.html +32 -32
  83. package/templates/html/layout/pageShell.html +8 -8
  84. package/templates/html/layout/section.html +24 -24
  85. package/templates/html/patterns/cookieConsent.html +33 -33
  86. package/templates/react/components/accordion.jsx +4 -4
  87. package/templates/react/components/breadcumbs.jsx +1 -1
  88. package/templates/react/components/button.jsx +5 -5
  89. package/templates/react/components/card.jsx +4 -4
  90. package/templates/react/components/dropdown.jsx +8 -8
  91. package/templates/react/components/form.jsx +2 -2
  92. package/templates/react/components/modal.jsx +14 -14
  93. package/templates/react/components/notification.jsx +3 -3
  94. package/templates/react/components/search.jsx +5 -5
  95. package/templates/react/components/slides.jsx +3 -3
  96. package/templates/react/components/stepTabs.jsx +8 -8
  97. package/templates/react/components/summary.jsx +3 -3
  98. package/templates/react/components/table.jsx +2 -2
  99. package/templates/react/layout/flex.jsx +8 -8
  100. package/templates/react/layout/grid.jsx +8 -8
  101. package/templates/react/layout/section.jsx +12 -12
  102. package/templates/react/patterns/cookieConsent.jsx +8 -8
  103. package/templates/react/patterns/footer.jsx +3 -3
  104. package/templates/react/patterns/header.jsx +3 -3
@@ -1,61 +1,61 @@
1
- <!-- File generato automaticamente da templates/html/components/notification.html. Modificare templates/html/components/notification.html e rieseguire npm run docs:generate. -->
1
+ <!-- Automatically generated from templates/html/components/notification.html. Edit templates/html/components/notification.html and run npm run docs:generate again. -->
2
2
 
3
3
  # Notification
4
4
 
5
- Sistema di notifiche persistenti o toast temporanei, generati dall'API oppure da una configurazione JSON dichiarativa contenuta nell'opzione notification.
5
+ Notification markup, configuration, behavior, and usage example.
6
6
 
7
7
  ## PGS
8
8
 
9
- - `notification`: identifica il contenitore delle notifiche, sia persistenti sia temporanee.
10
- - `notificationTrigger`: identifica una configurazione dichiarativa elaborata e rimossa all'inizializzazione.
11
- - `notification-element`: identifica ogni messaggio creato dinamicamente.
12
- - `notification-element-title`: identifica il titolo generato del messaggio.
13
- - `notification-element-content`: identifica il contenuto generato del messaggio.
9
+ - `notification`: identifies the notification element used by Notification.
10
+ - `notificationTrigger`: identifies the notificationTrigger element used by Notification.
11
+ - `notification-element`: identifies the notification-element element used by Notification.
12
+ - `notification-element-title`: identifies the notification-element-title element used by Notification.
13
+ - `notification-element-content`: identifies the notification-element-content element used by Notification.
14
14
 
15
15
  ## PGS Options
16
16
 
17
- - `toast`: sul contenitore notification abilita il posizionamento centrale e la sostituzione del messaggio temporaneo corrente.
18
- - `notification`: contiene un oggetto JSON con title, message, element, type, icon, duration e link usando la sintassi notification[{...}].
17
+ - `toast`: identifies the toast element used by Notification.
18
+ - `notification`: identifies the notification element used by Notification.
19
19
 
20
20
  ## PGS States
21
21
 
22
- - `success`: applica la variante positiva al messaggio generato.
23
- - `error`: applica la variante di errore e il ruolo alert.
24
- - `warning`: applica la variante di avviso.
25
- - `info`: applica la variante informativa predefinita.
22
+ - `success`: identifies the success element used by Notification.
23
+ - `error`: identifies the error element used by Notification.
24
+ - `warning`: identifies the warning element used by Notification.
25
+ - `info`: identifies the info element used by Notification.
26
26
 
27
- ## API JavaScript
27
+ ## JavaScript API
28
28
 
29
- - `pgs.notification.trigger(root)`: elabora e rimuove i notificationTrigger dichiarativi presenti nel contesto indicato.
30
- - `pgs.notification.alert.error(text, link, timeout, icon)`: crea una notifica persistente di errore, opzionalmente cliccabile e temporizzata.
31
- - `pgs.notification.alert.success(text, link, timeout, icon)`: crea una notifica persistente di successo.
32
- - `pgs.notification.alert.info(text, link, timeout, icon)`: crea una notifica persistente informativa.
33
- - `pgs.notification.alert.warning(text, link, timeout, icon)`: crea una notifica persistente di avviso.
34
- - `pgs.notification.alert.deleteAll()`: rimuove tutte le notifiche persistenti.
35
- - `pgs.notification.toast.error(text, timeout, icon)`: crea un toast di errore sostituendo quello eventualmente presente.
36
- - `pgs.notification.toast.success(text, timeout, icon)`: crea un toast di successo.
37
- - `pgs.notification.toast.info(text, timeout, icon)`: crea un toast informativo.
38
- - `pgs.notification.toast.warning(text, timeout, icon)`: crea un toast di avviso.
39
- - `pgs.notification.toast.deleteAll()`: rimuove il toast corrente.
29
+ - `pgs.notification.trigger(root)`: provides the documented operation through the component public API.
30
+ - `pgs.notification.alert.error(text, link, timeout, icon)`: provides the documented operation through the component public API.
31
+ - `pgs.notification.alert.success(text, link, timeout, icon)`: provides the documented operation through the component public API.
32
+ - `pgs.notification.alert.info(text, link, timeout, icon)`: provides the documented operation through the component public API.
33
+ - `pgs.notification.alert.warning(text, link, timeout, icon)`: provides the documented operation through the component public API.
34
+ - `pgs.notification.alert.deleteAll()`: provides the documented operation through the component public API.
35
+ - `pgs.notification.toast.error(text, timeout, icon)`: provides the documented operation through the component public API.
36
+ - `pgs.notification.toast.success(text, timeout, icon)`: provides the documented operation through the component public API.
37
+ - `pgs.notification.toast.info(text, timeout, icon)`: provides the documented operation through the component public API.
38
+ - `pgs.notification.toast.warning(text, timeout, icon)`: provides the documented operation through the component public API.
39
+ - `pgs.notification.toast.deleteAll()`: provides the documented operation through the component public API.
40
40
 
41
- ## Elementi correlati
41
+ ## Related elements
42
42
 
43
- - `hidden`: nasconde i trigger dichiarativi prima che vengano elaborati.
44
- - `buttonClose`: identifica il pulsante di rimozione aggiunto a ogni messaggio.
43
+ - `hidden`: uses the related hidden component or utility in this example.
44
+ - `buttonClose`: uses the related buttonClose component or utility in this example.
45
45
 
46
46
  ## Output
47
47
 
48
- Due contenitori notification, uno persistente e uno configurato con l'opzione toast, con trigger dichiarativi configurati tramite pgs-option.
48
+ Complete HTML markup and usage example for Notification.
49
49
 
50
- ## Esempio
50
+ ## Example
51
51
 
52
52
  ```html
53
53
  <div pgs="notification" aria-live="polite"></div>
54
54
  <div pgs="notification" pgs-option="toast" aria-live="polite"></div>
55
55
 
56
56
  <div pgs="hidden notificationTrigger" pgs-option='notification[{
57
- "title": "Titolo",
58
- "message": "Messaggio",
57
+ "title": "Title",
58
+ "message": "Message",
59
59
  "element": "notification",
60
60
  "type": "info",
61
61
  "icon": null,
@@ -65,7 +65,7 @@ Due contenitori notification, uno persistente e uno configurato con l'opzione to
65
65
 
66
66
  <div pgs="hidden notificationTrigger" pgs-option='notification[{
67
67
  "title": "Benvenuto",
68
- "message": "Messaggio",
68
+ "message": "Message",
69
69
  "element": "toast",
70
70
  "type": "info",
71
71
  "icon": null,
@@ -75,7 +75,7 @@ Due contenitori notification, uno persistente e uno configurato con l'opzione to
75
75
  <!--
76
76
  <div
77
77
  pgs="hidden notificationTrigger"
78
- pgs-option='notification[{"title":"Titolo","message":"Messaggio","element":"notification","type":"info","icon":"<i class=\"fa-solid fa-rocket\"></i>","duration":"4000","link":"/pagina/"}]'>
78
+ pgs-option='notification[{"title":"Title","message":"Message","element":"notification","type":"info","icon":"<i class=\"fa-solid fa-rocket\"></i>","duration":"4000","link":"/page/"}]'>
79
79
  </div>
80
80
  -->
81
81
  ```
@@ -1,73 +1,73 @@
1
- <!-- File generato automaticamente da templates/html/components/search.html. Modificare templates/html/components/search.html e rieseguire npm run docs:generate. -->
1
+ <!-- Automatically generated from templates/html/components/search.html. Edit templates/html/components/search.html and run npm run docs:generate again. -->
2
2
 
3
3
  # Search
4
4
 
5
- Ricerca componibile con suggerimenti asincroni o locali, navigazione da tastiera, selezione, annullamento richieste e attributi ARIA gestiti dal modulo search.
5
+ Search markup, configuration, behavior, and usage example.
6
6
 
7
7
  ## PGS
8
8
 
9
- - `search`: identifica il form inizializzato come ricerca con suggerimenti.
10
- - `search-suggestions`: identifica la lista opzionale che riceve i risultati.
11
- - `search-suggestions-item`: identifica ogni risultato creato dinamicamente nella lista.
12
- - `search-modal`: identifica la variante di ricerca inserita in una modale per dispositivi mobili.
13
- - `search-mobile`: identifica il contenitore interno della ricerca mobile.
9
+ - `search`: identifies the search element used by Search.
10
+ - `search-suggestions`: identifies the search-suggestions element used by Search.
11
+ - `search-suggestions-item`: identifies the search-suggestions-item element used by Search.
12
+ - `search-modal`: identifies the search-modal element used by Search.
13
+ - `search-mobile`: identifies the search-mobile element used by Search.
14
14
 
15
15
  ## PGS Options
16
16
 
17
- - `containerPGS`: sul wrapper modal usa containerPGS[header] per spostare il dialog nell'header.
17
+ - `containerPGS`: identifies the containerPGS element used by Search.
18
18
 
19
19
  ## PGS States
20
20
 
21
- - `open`: sul root search indica che la lista dei suggerimenti è aperta.
22
- - `loading`: sul root search indica una sorgente dati in caricamento.
23
- - `error`: sul root search indica che il recupero dei suggerimenti è fallito.
24
- - `selected`: sul risultato generato indica l'elemento attivo durante la navigazione.
25
-
26
- ## API JavaScript
27
-
28
- - `pgs.search.init(root)`: inizializza le ricerche non ancora registrate dentro Document o Element indicato.
29
- - `pgs.search.api(element)`: restituisce l'istanza associata a un form search inizializzato.
30
- - `instance.configure(options)`: aggiorna minLength, debounce, limit, submitOnSelect, searchOnFocus, source e onSelect e restituisce l'istanza.
31
- - `instance.setSource(source)`: configura una sorgente array o funzione asincrona per i suggerimenti.
32
- - `instance.search(query)`: esegue subito la ricerca e restituisce una Promise con i suggerimenti normalizzati.
33
- - `instance.open()`: apre la lista quando sono disponibili risultati.
34
- - `instance.close()`: chiude la lista e azzera la selezione attiva.
35
- - `instance.clear()`: rimuove risultati e selezione e chiude la lista.
21
+ - `open`: identifies the open element used by Search.
22
+ - `loading`: identifies the loading element used by Search.
23
+ - `error`: identifies the error element used by Search.
24
+ - `selected`: identifies the selected element used by Search.
25
+
26
+ ## JavaScript API
27
+
28
+ - `pgs.search.init(root)`: initializes matching elements within the specified root.
29
+ - `pgs.search.api(element)`: returns the instance associated with the specified initialized element.
30
+ - `instance.configure(options)`: provides the documented operation through the component public API.
31
+ - `instance.setSource(source)`: provides the documented operation through the component public API.
32
+ - `instance.search(query)`: provides the documented operation through the component public API.
33
+ - `instance.open()`: opens the component.
34
+ - `instance.close()`: closes the component.
35
+ - `instance.clear()`: provides the documented operation through the component public API.
36
36
  - `instance.cancel()`: annulla debounce e richiesta attiva.
37
- - `instance.select(index, submit)`: seleziona un risultato, emette pgs:search:select e può inviare il form.
38
- - `instance.refresh()`: ripete la ricerca usando il valore corrente dell'input.
39
- - `instance.destroy()`: rimuove listener, annulla le operazioni e scollega l'istanza.
40
- - `instance.items()`: restituisce una copia dei suggerimenti correnti.
41
- - `instance.isOpen()`: restituisce true quando la lista dei suggerimenti è aperta.
42
- - `instance.isLoading()`: restituisce true durante il caricamento della sorgente.
43
- - `instance.setActiveIndex(index)`: imposta il suggerimento attivo e aggiorna selezione e attributi ARIA.
44
-
45
- ## Elementi correlati
46
-
47
- - `buttonNohover`: applica al form l'aspetto compatto condiviso con i controlli button.
48
- - `modal`: fornisce il contenitore e il comportamento della variante mobile.
49
- - `modal-button`: apre la ricerca mobile.
50
- - `modal-close`: chiude la ricerca mobile.
51
- - `buttonIcon`: presenta apertura e chiusura come pulsanti a icona.
52
- - `flexRow`: organizza il contenuto della variante mobile e gli elementi dei suggerimenti generati.
53
- - `section`: applica la spaziatura di sezione alla ricerca mobile.
37
+ - `instance.select(index, submit)`: provides the documented operation through the component public API.
38
+ - `instance.refresh()`: refreshes the component and returns its updated instance.
39
+ - `instance.destroy()`: removes listeners and releases the component instance.
40
+ - `instance.items()`: provides the documented operation through the component public API.
41
+ - `instance.isOpen()`: returns true when the component is open.
42
+ - `instance.isLoading()`: returns true while the component is loading.
43
+ - `instance.setActiveIndex(index)`: provides the documented operation through the component public API.
44
+
45
+ ## Related elements
46
+
47
+ - `buttonNohover`: uses the related buttonNohover component or utility in this example.
48
+ - `modal`: uses the related modal component or utility in this example.
49
+ - `modal-button`: uses the related modal-button component or utility in this example.
50
+ - `modal-close`: uses the related modal-close component or utility in this example.
51
+ - `buttonIcon`: uses the related buttonIcon component or utility in this example.
52
+ - `flexRow`: uses the related flexRow component or utility in this example.
53
+ - `section`: uses the related section component or utility in this example.
54
54
 
55
55
  ## Output
56
56
 
57
- Form di ricerca autonomo, variante mobile integrata in una modal e script di esempio con sorgente locale.
57
+ Complete HTML markup and usage example for Search.
58
58
 
59
- ## Esempio
59
+ ## Example
60
60
 
61
61
  ```html
62
62
  <form pgs="buttonNohover search" autocomplete="off" action="" method="get">
63
- <button type="submit" title="Cerca"><i class="fa-solid fa-search"></i></button>
64
- <input type="search" name="s" placeholder="Cerca" value="">
63
+ <button type="submit" title="Search"><i class="fa-solid fa-search"></i></button>
64
+ <input type="search" name="s" placeholder="Search" value="">
65
65
  <ul pgs="search-suggestions"></ul>
66
66
  </form>
67
67
 
68
68
  <div pgs="modal search-modal" pgs-option="containerPGS[header]">
69
69
 
70
- <button type="button" pgs="modal-button buttonIcon" title="Cerca">
70
+ <button type="button" pgs="modal-button buttonIcon" title="Search">
71
71
  <i class="fa-solid fa-search"></i>
72
72
  </button>
73
73
 
@@ -75,17 +75,18 @@ Form di ricerca autonomo, variante mobile integrata in una modal e script di ese
75
75
  <div pgs="flexRow section search-mobile">
76
76
 
77
77
  <form pgs="buttonNohover search" autocomplete="off" action="/" method="get">
78
- <button type="submit" title="Cerca">
78
+ <button type="submit" title="Search">
79
79
  <i class="fa-solid fa-search"></i>
80
80
  </button>
81
81
 
82
- <input type="search" name="s" placeholder="Cerca" value="">
82
+ <input type="search" name="s" placeholder="Search" value="">
83
83
  <ul pgs="search-suggestions"></ul>
84
+
85
+ <button type="button" pgs="modal-close buttonIcon">
86
+ <i class="fa-solid fa-close"></i>
87
+ </button>
84
88
  </form>
85
89
 
86
- <button type="button" pgs="modal-close buttonIcon">
87
- <i class="fa-solid fa-close"></i>
88
- </button>
89
90
 
90
91
  </div>
91
92
  </dialog>
@@ -1,52 +1,52 @@
1
- <!-- File generato automaticamente da templates/html/components/slides.html. Modificare templates/html/components/slides.html e rieseguire npm run docs:generate. -->
1
+ <!-- Automatically generated from templates/html/components/slides.html. Edit templates/html/components/slides.html and run npm run docs:generate again. -->
2
2
 
3
3
  # Slides
4
4
 
5
- Carosello orizzontale che osserva gli elementi visibili e crea automaticamente controlli precedente, successivo e indicatori di posizione.
5
+ Slides markup, configuration, behavior, and usage example.
6
6
 
7
7
  ## PGS
8
8
 
9
- - `slides`: identifica il root inizializzato dal modulo slides.
10
- - `slides-container`: identifica la lista orizzontale degli elementi scorrevoli.
11
- - `slides-prec`: identifica il pulsante precedente creato dinamicamente.
12
- - `slides-next`: identifica il pulsante successivo creato dinamicamente.
13
- - `slides-dots`: identifica il contenitore degli indicatori creato dinamicamente.
9
+ - `slides`: identifies the slides element used by Slides.
10
+ - `slides-container`: identifies the slides-container element used by Slides.
11
+ - `slides-prec`: identifies the slides-prec element used by Slides.
12
+ - `slides-next`: identifies the slides-next element used by Slides.
13
+ - `slides-dots`: identifies the slides-dots element used by Slides.
14
14
 
15
15
  ## PGS Options
16
16
 
17
- - `singleScroll`: usa un solo elemento visibile come riferimento per la navigazione precedente e successiva.
18
- - `shadowDesktop`: abilita l'ombreggiatura laterale del carosello sui layout desktop.
19
- - `notScrollAnimation`: applicata a un elemento li disabilita l'animazione visiva basata sulla percentuale di visibilità.
20
- - `notScrollWithMouse`: sul root disabilita la gestione dello scorrimento orizzontale tramite mouse.
21
-
22
- ## API JavaScript
23
-
24
- - `pgs.slides.init(root)`: inizializza il root stesso quando è un carosello e tutti i caroselli discendenti non ancora registrati; il valore predefinito è document.
25
- - `pgs.slides.api(element)`: restituisce l'istanza associata a un root slides inizializzato.
26
- - `instance.previous()`: porta in vista la slide precedente.
27
- - `instance.next()`: porta in vista la slide successiva.
28
- - `instance.goTo(index)`: porta in vista la slide con l'indice indicato.
29
- - `instance.getCurrentIndexes()`: restituisce gli indici delle slide attualmente visibili.
30
- - `instance.getCurrentElements()`: restituisce gli elementi slide attualmente visibili.
31
- - `instance.getTotal()`: restituisce il numero totale di slide.
32
- - `instance.isAtStart()`: restituisce true quando la prima slide è visibile.
33
- - `instance.isAtEnd()`: restituisce true quando l'ultima slide è visibile.
34
- - `instance.refresh()`: sincronizza controlli e dots, sostituisce listener e observer precedenti e restituisce la nuova API.
35
-
36
- ## Elementi correlati
37
-
38
- - `card`: usa card come contenuto dimostrativo di ogni slide.
39
- - `card-img`: identifica l'immagine delle card dimostrative.
40
- - `imgCover`: adatta le immagini allo spazio disponibile.
41
- - `flexColumn`: organizza verticalmente ogni card.
42
- - `flexColumnTexts`: applica la spaziatura ai testi delle card.
43
- - `buttonIcon`: viene applicato ai controlli precedente e successivo generati.
17
+ - `singleScroll`: identifies the singleScroll element used by Slides.
18
+ - `shadowDesktop`: identifies the shadowDesktop element used by Slides.
19
+ - `notScrollAnimation`: identifies the notScrollAnimation element used by Slides.
20
+ - `notScrollWithMouse`: identifies the notScrollWithMouse element used by Slides.
21
+
22
+ ## JavaScript API
23
+
24
+ - `pgs.slides.init(root)`: initializes matching elements within the specified root.
25
+ - `pgs.slides.api(element)`: returns the instance associated with the specified initialized element.
26
+ - `instance.previous()`: moves to the previous item.
27
+ - `instance.next()`: moves to the next item.
28
+ - `instance.goTo(index)`: provides the documented operation through the component public API.
29
+ - `instance.getCurrentIndexes()`: provides the documented operation through the component public API.
30
+ - `instance.getCurrentElements()`: provides the documented operation through the component public API.
31
+ - `instance.getTotal()`: returns the total number of items.
32
+ - `instance.isAtStart()`: provides the documented operation through the component public API.
33
+ - `instance.isAtEnd()`: provides the documented operation through the component public API.
34
+ - `instance.refresh()`: refreshes the component and returns its updated instance.
35
+
36
+ ## Related elements
37
+
38
+ - `card`: uses the related card component or utility in this example.
39
+ - `card-img`: uses the related card-img component or utility in this example.
40
+ - `imgCover`: uses the related imgCover component or utility in this example.
41
+ - `flexColumn`: uses the related flexColumn component or utility in this example.
42
+ - `flexColumnTexts`: uses the related flexColumnTexts component or utility in this example.
43
+ - `buttonIcon`: uses the related buttonIcon component or utility in this example.
44
44
 
45
45
  ## Output
46
46
 
47
- Lista di slide basate su card, completata a runtime con pulsanti e indicatori.
47
+ Complete HTML markup and usage example for Slides.
48
48
 
49
- ## Esempio
49
+ ## Example
50
50
 
51
51
  ```html
52
52
  <div pgs="slides" pgs-option="singleScroll shadowDesktop">
@@ -56,7 +56,7 @@ Lista di slide basate su card, completata a runtime con pulsanti e indicatori.
56
56
  <img pgs="card-img imgCover" src="https://placehold.co/800x500?text=Slide+1" alt="Slide 1">
57
57
  <div pgs="flexColumnTexts">
58
58
  <h3>Slide uno</h3>
59
- <p>Contenuto della prima slide.</p>
59
+ <p>First slide content.</p>
60
60
  </div>
61
61
  </article>
62
62
  </li>
@@ -66,7 +66,7 @@ Lista di slide basate su card, completata a runtime con pulsanti e indicatori.
66
66
  <img pgs="card-img imgCover" src="https://placehold.co/800x500?text=Slide+2" alt="Slide 2">
67
67
  <div pgs="flexColumnTexts">
68
68
  <h3>Slide due</h3>
69
- <p>Contenuto della seconda slide.</p>
69
+ <p>Second slide content.</p>
70
70
  </div>
71
71
  </article>
72
72
  </li>
@@ -76,7 +76,7 @@ Lista di slide basate su card, completata a runtime con pulsanti e indicatori.
76
76
  <img pgs="card-img imgCover" src="https://placehold.co/800x500?text=Slide+3" alt="Slide 3">
77
77
  <div pgs="flexColumnTexts">
78
78
  <h3>Slide tre</h3>
79
- <p>Contenuto della terza slide.</p>
79
+ <p>Third slide content.</p>
80
80
  </div>
81
81
  </article>
82
82
  </li>
@@ -1,57 +1,57 @@
1
- <!-- File generato automaticamente da templates/html/components/stepTabs.html. Modificare templates/html/components/stepTabs.html e rieseguire npm run docs:generate. -->
1
+ <!-- Automatically generated from templates/html/components/stepTabs.html. Edit templates/html/components/stepTabs.html and run npm run docs:generate again. -->
2
2
 
3
3
  # Step Tabs
4
4
 
5
- Procedura guidata a schede con avanzamento sequenziale, indicatori generati, controlli di navigazione e possibilità di bloccare uno step.
5
+ Step Tabs markup, configuration, behavior, and usage example.
6
6
 
7
7
  ## PGS
8
8
 
9
- - `stepTabs`: identifica il root della procedura guidata.
10
- - `stepTabs-dots`: identifica il contenitore degli indicatori di avanzamento.
11
- - `stepTabs-dots-dot`: identifica ogni indicatore creato dinamicamente.
12
- - `stepTabs-container`: contiene nell'ordine tutte le schede della procedura.
13
- - `tab`: identifica una singola scheda navigabile.
14
- - `stepTabs-prev`: identifica il controllo per tornare allo step precedente.
15
- - `stepTabs-restart`: identifica il controllo che riavvia la procedura dal primo step.
16
- - `stepTabs-next`: identifica il controllo per avanzare allo step successivo.
9
+ - `stepTabs`: identifies the stepTabs element used by Step Tabs.
10
+ - `stepTabs-dots`: identifies the stepTabs-dots element used by Step Tabs.
11
+ - `stepTabs-dots-dot`: identifies the stepTabs-dots-dot element used by Step Tabs.
12
+ - `stepTabs-container`: identifies the stepTabs-container element used by Step Tabs.
13
+ - `tab`: identifies the tab element used by Step Tabs.
14
+ - `stepTabs-prev`: identifies the stepTabs-prev element used by Step Tabs.
15
+ - `stepTabs-restart`: identifies the stepTabs-restart element used by Step Tabs.
16
+ - `stepTabs-next`: identifies the stepTabs-next element used by Step Tabs.
17
17
 
18
18
  ## PGS Options
19
19
 
20
- - `tabIcon`: su ogni tab usa tabIcon[classe] con una singola classe Font Awesome per l'indicatore corrispondente; il fallback è fa-circle.
21
- - `step`: viene applicata a ogni indicatore generato con la sintassi step[indice] per conservarne l'indice zero-based.
22
- - `buttonReverse`: inverte testo e icona sul pulsante successivo e appartiene al componente button.
20
+ - `tabIcon`: identifies the tabIcon element used by Step Tabs.
21
+ - `step`: identifies the step element used by Step Tabs.
22
+ - `buttonReverse`: identifies the buttonReverse element used by Step Tabs.
23
23
 
24
24
  ## PGS States
25
25
 
26
- - `is-active`: identifica la scheda corrente e il relativo indicatore.
27
- - `is-completed`: identifica gli indicatori degli step già completati e nuovamente selezionabili.
28
- - `is-locked`: applicato a un tab impedisce di avanzare finché lo step resta bloccato.
26
+ - `is-active`: identifies the is-active element used by Step Tabs.
27
+ - `is-completed`: identifies the is-completed element used by Step Tabs.
28
+ - `is-locked`: identifies the is-locked element used by Step Tabs.
29
29
 
30
- ## API JavaScript
30
+ ## JavaScript API
31
31
 
32
- - `pgs.stepTabs.init(root)`: inizializza le procedure non ancora registrate dentro Document o Element indicato.
33
- - `pgs.stepTabs.api(element)`: restituisce l'istanza associata a un root stepTabs inizializzato.
32
+ - `pgs.stepTabs.init(root)`: initializes matching elements within the specified root.
33
+ - `pgs.stepTabs.api(element)`: returns the instance associated with the specified initialized element.
34
34
  - `instance.restart()`: torna al primo tab e ripristina i blocchi dichiarati inizialmente.
35
- - `instance.goTo(index, scroll)`: attiva il tab indicato, aggiorna controlli e indicatori e opzionalmente scorre al componente.
36
- - `instance.next()`: attiva il tab successivo entro i limiti disponibili.
37
- - `instance.prev()`: attiva il tab precedente entro i limiti disponibili.
38
- - `instance.toggleLock(index, lock)`: aggiunge o rimuove is-locked dal tab indicato e aggiorna i controlli.
39
- - `instance.refresh()`: riesegue l'inizializzazione nel contenitore della procedura e restituisce l'istanza.
40
- - `instance.getCurrent()`: restituisce l'indice del tab corrente.
41
- - `instance.getState()`: restituisce un oggetto con indice corrente e numero totale di tab.
35
+ - `instance.goTo(index, scroll)`: provides the documented operation through the component public API.
36
+ - `instance.next()`: moves to the next item.
37
+ - `instance.prev()`: moves to the previous item.
38
+ - `instance.toggleLock(index, lock)`: provides the documented operation through the component public API.
39
+ - `instance.refresh()`: refreshes the component and returns its updated instance.
40
+ - `instance.getCurrent()`: provides the documented operation through the component public API.
41
+ - `instance.getState()`: provides the documented operation through the component public API.
42
42
 
43
- ## Elementi correlati
43
+ ## Related elements
44
44
 
45
- - `flexColumnElements`: organizza verticalmente le aree principali del componente.
46
- - `flexColumnTexts`: organizza il contenuto testuale di ogni tab.
47
- - `flexRow`: dispone sulla stessa riga i controlli di navigazione.
48
- - `button`: applica lo stile standard ai controlli precedente, riavvio e successivo.
45
+ - `flexColumnElements`: uses the related flexColumnElements component or utility in this example.
46
+ - `flexColumnTexts`: uses the related flexColumnTexts component or utility in this example.
47
+ - `flexRow`: uses the related flexRow component or utility in this example.
48
+ - `button`: uses the related button component or utility in this example.
49
49
 
50
50
  ## Output
51
51
 
52
- Procedura HTML a tre schede con indicatori e controlli di navigazione.
52
+ Complete HTML markup and usage example for Step Tabs.
53
53
 
54
- ## Esempio
54
+ ## Example
55
55
 
56
56
  ```html
57
57
  <div pgs="stepTabs flexColumnElements">
@@ -59,25 +59,25 @@ Procedura HTML a tre schede con indicatori e controlli di navigazione.
59
59
 
60
60
  <div pgs="stepTabs-container">
61
61
  <section pgs="tab flexColumnTexts" tabindex="-1" pgs-option="tabIcon[fa-user]">
62
- <h3>Dati personali</h3>
63
- <p>Contenuto del primo tab.</p>
62
+ <h3>Personal details</h3>
63
+ <p>First tab content.</p>
64
64
  </section>
65
65
 
66
66
  <section pgs="tab flexColumnTexts" tabindex="-1" pgs-option="tabIcon[fa-list-check]">
67
- <h3>Preferenze</h3>
68
- <p>Contenuto del secondo tab.</p>
67
+ <h3>Preferences</h3>
68
+ <p>Second tab content.</p>
69
69
  </section>
70
70
 
71
71
  <section pgs="tab flexColumnTexts" tabindex="-1" pgs-option="tabIcon[fa-check]">
72
- <h3>Conferma</h3>
73
- <p>Contenuto del terzo tab.</p>
72
+ <h3>Confirmation</h3>
73
+ <p>Third tab content.</p>
74
74
  </section>
75
75
  </div>
76
76
 
77
77
  <div pgs="flexRow">
78
78
  <button pgs="stepTabs-prev button" type="button">
79
79
  <i class="fa-solid fa-arrow-left" aria-hidden="true"></i>
80
- Indietro
80
+ Back
81
81
  </button>
82
82
 
83
83
  <button pgs="stepTabs-restart button" type="button">
@@ -85,7 +85,7 @@ Procedura HTML a tre schede con indicatori e controlli di navigazione.
85
85
  </button>
86
86
 
87
87
  <button pgs="stepTabs-next button" pgs-option="buttonReverse" type="button">
88
- Avanti
88
+ Next
89
89
  <i class="fa-solid fa-arrow-right" aria-hidden="true"></i>
90
90
  </button>
91
91
  </div>
@@ -1,31 +1,31 @@
1
- <!-- File generato automaticamente da templates/html/components/steps.html. Modificare templates/html/components/steps.html e rieseguire npm run docs:generate. -->
1
+ <!-- Automatically generated from templates/html/components/steps.html. Edit templates/html/components/steps.html and run npm run docs:generate again. -->
2
2
 
3
3
  # Steps
4
4
 
5
- Elenco ordinato di passaggi che presenta numero, contenuto e linea di collegamento, aggiungendo a runtime gli elementi strutturali mancanti.
5
+ Ordered list of steps showing a number, content, and connecting line, with missing structural elements added at runtime.
6
6
 
7
7
  ## PGS
8
8
 
9
- - `steps`: identifica la lista ordinata inizializzata dal modulo steps.
10
- - `steps-step`: identifica ogni passaggio della sequenza.
11
- - `steps-step-circle`: identifica l'indicatore numerico, creato automaticamente se assente.
12
- - `steps-step-content`: identifica il contenuto testuale del passaggio.
13
- - `steps-step-line`: identifica la linea di collegamento aggiunta dinamicamente a ogni passaggio.
9
+ - `steps`: identifies the ordered list initialized by the steps module.
10
+ - `steps-step`: identifies each step in the sequence.
11
+ - `steps-step-circle`: identifies the numeric indicator, which is created automatically when missing.
12
+ - `steps-step-content`: identifies the text content of the step.
13
+ - `steps-step-line`: identifies the connecting line dynamically added to each step.
14
14
 
15
- ## API JavaScript
15
+ ## JavaScript API
16
16
 
17
- - `pgs.steps.init(root)`: inizializza le liste steps non ancora registrate dentro Document o Element indicato.
18
- - `pgs.steps.api(element)`: restituisce l'istanza associata a un root steps inizializzato.
19
- - `instance.steps()`: restituisce un array con tutti gli elementi steps-step.
20
- - `instance.getStep(index)`: restituisce lo step corrispondente all'indice indicato.
21
- - `instance.getTotal()`: restituisce il numero totale di step.
22
- - `instance.refresh()`: reinizializza la lista, ricrea gli elementi mancanti e restituisce la nuova istanza.
17
+ - `pgs.steps.init(root)`: initializes unregistered step lists within the specified Document or Element.
18
+ - `pgs.steps.api(element)`: returns the instance associated with an initialized steps root.
19
+ - `instance.steps()`: returns an array containing every steps-step element.
20
+ - `instance.getStep(index)`: returns the step at the specified index.
21
+ - `instance.getTotal()`: returns the total number of steps.
22
+ - `instance.refresh()`: reinitializes the list, recreates missing elements, and returns the new instance.
23
23
 
24
24
  ## Output
25
25
 
26
- Lista ordinata HTML di passaggi numerati completata dal modulo JavaScript.
26
+ Ordered HTML list of numbered steps completed by the JavaScript module.
27
27
 
28
- ## Esempio
28
+ ## Example
29
29
 
30
30
  ```html
31
31
  <ol pgs="steps">