mypgs 2.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/.vscode/tasks.json +39 -0
  2. package/AGENTS.md +22 -21
  3. package/README.md +25 -25
  4. package/assets/javascript/components/_menu.js +2 -1
  5. package/assets/javascript/components/_modals.js +1 -1
  6. package/assets/javascript/components/_notifications.js +2 -1
  7. package/assets/javascript/components/_slides.js +2 -2
  8. package/assets/scss/base/_body.scss +5 -5
  9. package/assets/scss/base/_general.scss +27 -18
  10. package/assets/scss/base/_variables.scss +1 -1
  11. package/assets/scss/components/_accordion.scss +9 -9
  12. package/assets/scss/components/_alerts.scss +71 -0
  13. package/assets/scss/components/_badges.scss +40 -48
  14. package/assets/scss/components/_button.scss +28 -20
  15. package/assets/scss/components/_card.scss +9 -4
  16. package/assets/scss/components/_form.scss +0 -16
  17. package/assets/scss/components/_formAddon.scss +22 -0
  18. package/assets/scss/components/_logo.scss +3 -4
  19. package/assets/scss/components/_menu.scss +26 -3
  20. package/assets/scss/components/_modals.scss +6 -4
  21. package/assets/scss/components/_search.scss +2 -2
  22. package/assets/scss/components/_slides.scss +0 -1
  23. package/assets/scss/components/_stepTabs.scss +2 -1
  24. package/assets/scss/components/_tooltip.scss +0 -1
  25. package/assets/scss/index.scss +3 -3
  26. package/assets/scss/layout/_footer.scss +0 -2
  27. package/assets/scss/layout/_header.scss +10 -2
  28. package/assets/scss/layout/_pageShell.scss +6 -2
  29. package/assets/scss/layout/_responsive.scss +63 -0
  30. package/assets/scss/mixin/_mx-base.scss +4 -8
  31. package/assets/scss/mixin/_mx-button.scss +73 -115
  32. package/assets/scss/mixin/_mx-card.scss +39 -40
  33. package/assets/scss/mixin/_mx-form.scss +13 -10
  34. package/assets/scss/mixin/{_mx-form-addon.scss → _mx-formAddon.scss} +103 -64
  35. package/assets/scss/mixin/_mx-hover.scss +81 -0
  36. package/assets/scss/mixin/_mx-responsive.scss +81 -201
  37. package/assets/scss/mixin/_settings.scss +2 -1
  38. package/assets/scss/mixin/mixin.scss +2 -1
  39. package/demo/demo.css +9 -6
  40. package/demo/demo.html +7 -5
  41. package/demo/demo.js +37 -34
  42. package/dist/css/index.css +2469 -3825
  43. package/dist/css/index.css.map +1 -1
  44. package/dist/css/index.min.css +1 -1
  45. package/dist/javascript/index.js +7 -5
  46. package/dist/javascript/index.js.map +1 -1
  47. package/dist/javascript/index.min.js +1 -1
  48. package/docs/componenti-e-markup.md +9 -8
  49. package/docs/components/accordion.md +23 -23
  50. package/docs/components/alerts.md +67 -0
  51. package/docs/components/badges.md +29 -26
  52. package/docs/components/breadcumbs.md +8 -8
  53. package/docs/components/button.md +18 -18
  54. package/docs/components/card.md +25 -22
  55. package/docs/components/dropdown.md +29 -29
  56. package/docs/components/form.md +65 -41
  57. package/docs/components/formAddon.md +116 -0
  58. package/docs/components/logo.md +11 -11
  59. package/docs/components/menu.md +20 -20
  60. package/docs/components/modal.md +52 -51
  61. package/docs/components/notification.md +34 -34
  62. package/docs/components/search.md +54 -52
  63. package/docs/components/slides.md +41 -42
  64. package/docs/components/stepTabs.md +45 -45
  65. package/docs/components/steps.md +16 -16
  66. package/docs/components/summary.md +20 -20
  67. package/docs/components/table.md +7 -7
  68. package/docs/components/tooltip.md +24 -23
  69. package/docs/convenzioni.md +11 -11
  70. package/docs/export-e-sviluppo.md +4 -4
  71. package/docs/helper-javascript.md +8 -8
  72. package/docs/layout/body.md +11 -11
  73. package/docs/layout/footer.md +28 -24
  74. package/docs/layout/header.md +36 -35
  75. package/docs/layout/pageShell.md +19 -19
  76. package/docs/layout/responsive.md +90 -0
  77. package/docs/layout/section.md +38 -38
  78. package/docs/patterns/cookieConsent.md +42 -39
  79. package/docs/utilizzo-css-scss.md +33 -9
  80. package/package.json +1 -1
  81. package/reference/html/components/accordion.html +52 -0
  82. package/reference/html/components/alerts.html +59 -0
  83. package/reference/html/components/badges.html +62 -0
  84. package/{templates → reference}/html/components/breadcumbs.html +6 -6
  85. package/reference/html/components/button.html +51 -0
  86. package/reference/html/components/card.html +45 -0
  87. package/{templates → reference}/html/components/dropdown.html +25 -25
  88. package/reference/html/components/form.html +128 -0
  89. package/reference/html/components/formAddon.html +109 -0
  90. package/reference/html/components/logo.html +28 -0
  91. package/{templates → reference}/html/components/menu.html +17 -17
  92. package/reference/html/components/modal.html +123 -0
  93. package/reference/html/components/notification.html +71 -0
  94. package/reference/html/components/search.html +109 -0
  95. package/reference/html/components/slides.html +75 -0
  96. package/reference/html/components/stepTabs.html +83 -0
  97. package/reference/html/components/steps.html +49 -0
  98. package/reference/html/components/summary.html +41 -0
  99. package/{templates → reference}/html/components/table.html +5 -5
  100. package/reference/html/components/tooltip.html +44 -0
  101. package/reference/html/layout/body.html +34 -0
  102. package/reference/html/layout/footer.html +67 -0
  103. package/reference/html/layout/header.html +108 -0
  104. package/{templates → reference}/html/layout/pageShell.html +16 -16
  105. package/reference/html/layout/responsive.html +83 -0
  106. package/reference/html/layout/section.html +62 -0
  107. package/reference/html/patterns/cookieConsent.html +84 -0
  108. package/{templates → reference}/react/components/accordion.jsx +5 -5
  109. package/reference/react/components/alerts.jsx +46 -0
  110. package/{templates → reference}/react/components/breadcumbs.jsx +1 -1
  111. package/{templates → reference}/react/components/button.jsx +6 -6
  112. package/{templates → reference}/react/components/card.jsx +6 -6
  113. package/{templates → reference}/react/components/dropdown.jsx +8 -8
  114. package/{templates → reference}/react/components/form.jsx +3 -3
  115. package/{templates → reference}/react/components/modal.jsx +15 -15
  116. package/{templates → reference}/react/components/notification.jsx +3 -3
  117. package/{templates → reference}/react/components/search.jsx +8 -8
  118. package/{templates → reference}/react/components/slides.jsx +4 -4
  119. package/{templates → reference}/react/components/stepTabs.jsx +12 -12
  120. package/reference/react/components/summary.jsx +18 -0
  121. package/{templates → reference}/react/components/table.jsx +2 -2
  122. package/{templates → reference}/react/components/tooltip.jsx +1 -1
  123. package/{templates → reference}/react/layout/pageShell.jsx +2 -2
  124. package/reference/react/layout/responsive.jsx +61 -0
  125. package/reference/react/layout/section.jsx +44 -0
  126. package/{templates → reference}/react/patterns/cookieConsent.jsx +9 -9
  127. package/{templates → reference}/react/patterns/footer.jsx +4 -4
  128. package/{templates → reference}/react/patterns/header.jsx +4 -4
  129. package/scripts/generate-component-docs.js +12 -12
  130. package/assets/scss/layout/_flex.scss +0 -49
  131. package/assets/scss/layout/_gap.scss +0 -21
  132. package/assets/scss/layout/_grid.scss +0 -13
  133. package/docs/layout/flex.md +0 -116
  134. package/docs/layout/grid.md +0 -116
  135. package/templates/html/components/accordion.html +0 -52
  136. package/templates/html/components/badges.html +0 -60
  137. package/templates/html/components/button.html +0 -51
  138. package/templates/html/components/card.html +0 -43
  139. package/templates/html/components/form.html +0 -104
  140. package/templates/html/components/logo.html +0 -28
  141. package/templates/html/components/modal.html +0 -122
  142. package/templates/html/components/notification.html +0 -71
  143. package/templates/html/components/search.html +0 -107
  144. package/templates/html/components/slides.html +0 -76
  145. package/templates/html/components/stepTabs.html +0 -83
  146. package/templates/html/components/steps.html +0 -49
  147. package/templates/html/components/summary.html +0 -41
  148. package/templates/html/components/tooltip.html +0 -43
  149. package/templates/html/layout/body.html +0 -35
  150. package/templates/html/layout/flex.html +0 -109
  151. package/templates/html/layout/footer.html +0 -64
  152. package/templates/html/layout/grid.html +0 -109
  153. package/templates/html/layout/header.html +0 -107
  154. package/templates/html/layout/section.html +0 -62
  155. package/templates/html/patterns/cookieConsent.html +0 -82
  156. package/templates/react/components/summary.jsx +0 -18
  157. package/templates/react/layout/flex.jsx +0 -36
  158. package/templates/react/layout/grid.jsx +0 -36
  159. package/templates/react/layout/section.jsx +0 -44
  160. /package/{templates → reference}/react/components/logo.jsx +0 -0
  161. /package/{templates → reference}/react/components/menu.jsx +0 -0
  162. /package/{templates → reference}/react/components/steps.jsx +0 -0
  163. /package/{templates → reference}/react/layout/body.jsx +0 -0
@@ -1,52 +1,51 @@
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 reference/html/components/slides.html. Edit reference/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
+ - `buttonIcon`: styles the previous and next actions generated at runtime.
22
+
23
+ ## JavaScript API
24
+
25
+ - `pgs.slides.init(root)`: initializes matching elements within the specified root.
26
+ - `pgs.slides.api(element)`: returns the instance associated with the specified initialized element.
27
+ - `instance.previous()`: moves to the previous item.
28
+ - `instance.next()`: moves to the next item.
29
+ - `instance.goTo(index)`: provides the documented operation through the component public API.
30
+ - `instance.getCurrentIndexes()`: provides the documented operation through the component public API.
31
+ - `instance.getCurrentElements()`: provides the documented operation through the component public API.
32
+ - `instance.getTotal()`: returns the total number of items.
33
+ - `instance.isAtStart()`: provides the documented operation through the component public API.
34
+ - `instance.isAtEnd()`: provides the documented operation through the component public API.
35
+ - `instance.refresh()`: refreshes the component and returns its updated instance.
36
+
37
+ ## Related elements
38
+
39
+ - `card`: uses the related card component or utility in this example.
40
+ - `card-img`: uses the related card-img component or utility in this example.
41
+ - `imgCover`: uses the related imgCover component or utility in this example.
42
+ - `flexColumn`: uses the related flexColumn component or utility in this example.
44
43
 
45
44
  ## Output
46
45
 
47
- Lista di slide basate su card, completata a runtime con pulsanti e indicatori.
46
+ Complete HTML markup and usage example for Slides.
48
47
 
49
- ## Esempio
48
+ ## Example
50
49
 
51
50
  ```html
52
51
  <div pgs="slides" pgs-option="singleScroll shadowDesktop">
@@ -54,9 +53,9 @@ Lista di slide basate su card, completata a runtime con pulsanti e indicatori.
54
53
  <li>
55
54
  <article pgs="card flexColumn">
56
55
  <img pgs="card-img imgCover" src="https://placehold.co/800x500?text=Slide+1" alt="Slide 1">
57
- <div pgs="flexColumnTexts">
56
+ <div pgs="flexColumn">
58
57
  <h3>Slide uno</h3>
59
- <p>Contenuto della prima slide.</p>
58
+ <p>First slide content.</p>
60
59
  </div>
61
60
  </article>
62
61
  </li>
@@ -64,9 +63,9 @@ Lista di slide basate su card, completata a runtime con pulsanti e indicatori.
64
63
  <li>
65
64
  <article pgs="card flexColumn">
66
65
  <img pgs="card-img imgCover" src="https://placehold.co/800x500?text=Slide+2" alt="Slide 2">
67
- <div pgs="flexColumnTexts">
66
+ <div pgs="flexColumn">
68
67
  <h3>Slide due</h3>
69
- <p>Contenuto della seconda slide.</p>
68
+ <p>Second slide content.</p>
70
69
  </div>
71
70
  </article>
72
71
  </li>
@@ -74,9 +73,9 @@ Lista di slide basate su card, completata a runtime con pulsanti e indicatori.
74
73
  <li>
75
74
  <article pgs="card flexColumn">
76
75
  <img pgs="card-img imgCover" src="https://placehold.co/800x500?text=Slide+3" alt="Slide 3">
77
- <div pgs="flexColumnTexts">
76
+ <div pgs="flexColumn">
78
77
  <h3>Slide tre</h3>
79
- <p>Contenuto della terza slide.</p>
78
+ <p>Third slide content.</p>
80
79
  </div>
81
80
  </article>
82
81
  </li>
@@ -1,83 +1,83 @@
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 reference/html/components/stepTabs.html. Edit reference/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
+ - `flexColumn`: uses the related flexColumn component or utility in this example.
46
+ - `gapElements`: applies element spacing to the step tab container.
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
- <div pgs="stepTabs flexColumnElements">
57
+ <div pgs="stepTabs flexColumn gapElements">
58
58
  <div pgs="stepTabs-dots" aria-label="Avanzamento"></div>
59
59
 
60
60
  <div pgs="stepTabs-container">
61
- <section pgs="tab flexColumnTexts" tabindex="-1" pgs-option="tabIcon[fa-user]">
62
- <h3>Dati personali</h3>
63
- <p>Contenuto del primo tab.</p>
61
+ <section pgs="tab flexColumn" tabindex="-1" pgs-option="tabIcon[fa-user]">
62
+ <h3>Personal details</h3>
63
+ <p>First tab content.</p>
64
64
  </section>
65
65
 
66
- <section pgs="tab flexColumnTexts" tabindex="-1" pgs-option="tabIcon[fa-list-check]">
67
- <h3>Preferenze</h3>
68
- <p>Contenuto del secondo tab.</p>
66
+ <section pgs="tab flexColumn" tabindex="-1" pgs-option="tabIcon[fa-list-check]">
67
+ <h3>Preferences</h3>
68
+ <p>Second tab content.</p>
69
69
  </section>
70
70
 
71
- <section pgs="tab flexColumnTexts" tabindex="-1" pgs-option="tabIcon[fa-check]">
72
- <h3>Conferma</h3>
73
- <p>Contenuto del terzo tab.</p>
71
+ <section pgs="tab flexColumn" tabindex="-1" pgs-option="tabIcon[fa-check]">
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 reference/html/components/steps.html. Edit reference/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">
@@ -1,49 +1,49 @@
1
- <!-- File generato automaticamente da templates/html/components/summary.html. Modificare templates/html/components/summary.html e rieseguire npm run docs:generate. -->
1
+ <!-- Automatically generated from reference/html/components/summary.html. Edit reference/html/components/summary.html and run npm run docs:generate again. -->
2
2
 
3
3
  # Summary
4
4
 
5
- Componente che limita inizialmente un testo lungo a tre righe e mostra il controllo di espansione solo quando il contenuto eccede tale altezza.
5
+ Summary markup, configuration, behavior, and usage example.
6
6
 
7
7
  ## PGS
8
8
 
9
- - `summary`: identifica il root inizializzato dal modulo summary.
10
- - `summary-content`: identifica il contenuto misurato e ridimensionato.
11
- - `summary-button`: identifica il controllo per mostrare più o meno contenuto.
9
+ - `summary`: identifies the summary element used by Summary.
10
+ - `summary-content`: identifies the summary-content element used by Summary.
11
+ - `summary-button`: identifies the summary-button element used by Summary.
12
12
 
13
13
  ## PGS States
14
14
 
15
- - `overflow`: indica che il contenuto supera l'altezza contratta e richiede il controllo.
16
- - `open`: indica che tutto il contenuto è espanso e visibile.
15
+ - `overflow`: identifies the overflow element used by Summary.
16
+ - `open`: identifies the open element used by Summary.
17
17
 
18
- ## API JavaScript
18
+ ## JavaScript API
19
19
 
20
- - `pgs.summary.init(root)`: inizializza i summary non ancora registrati dentro Document o Element indicato.
21
- - `pgs.summary.api(element)`: restituisce l'istanza associata a un root summary inizializzato.
22
- - `instance.open()`: espande il contenuto quando supera l'altezza contratta.
23
- - `instance.close()`: richiude il contenuto alla dimensione prevista.
24
- - `instance.toggle()`: inverte lo stato espanso o contratto.
25
- - `instance.refresh()`: ricalcola overflow e altezza conservando lo stato corrente.
26
- - `instance.isOpen()`: restituisce true quando il contenuto è espanso.
20
+ - `pgs.summary.init(root)`: initializes matching elements within the specified root.
21
+ - `pgs.summary.api(element)`: returns the instance associated with the specified initialized element.
22
+ - `instance.open()`: opens the component.
23
+ - `instance.close()`: closes the component.
24
+ - `instance.toggle()`: toggles the component state.
25
+ - `instance.refresh()`: refreshes the component and returns its updated instance.
26
+ - `instance.isOpen()`: returns true when the component is open.
27
27
 
28
28
  ## Output
29
29
 
30
- Struttura HTML con contenuto espandibile e pulsante sincronizzato tramite ARIA.
30
+ Complete HTML markup and usage example for Summary.
31
31
 
32
- ## Esempio
32
+ ## Example
33
33
 
34
34
  ```html
35
35
  <div pgs="summary">
36
36
  <div pgs="summary-content">
37
37
  <p>
38
- Questo testo dimostrativo e' abbastanza lungo da occupare piu righe e mostrare il comportamento del componente summary. Il contenuto puo includere testo, link e altri elementi inline senza richiedere markup aggiuntivo.
38
+ This demonstration text is long enough to span multiple lines and show the summary component behavior. Content can include text, links, and other inline elements without requiring additional markup.
39
39
  </p>
40
40
  <p>
41
- Quando il contenuto supera tre righe viene mostrato un pulsante per espandere o richiudere l'area visibile.
41
+ When content exceeds three lines, a button is shown to expand or collapse the visible area.
42
42
  </p>
43
43
  </div>
44
44
 
45
45
  <button pgs="summary-button" type="button">
46
- Mostra di più
46
+ Show more
47
47
  </button>
48
48
  </div>
49
49
  ```
@@ -1,25 +1,25 @@
1
- <!-- File generato automaticamente da templates/html/components/table.html. Modificare templates/html/components/table.html e rieseguire npm run docs:generate. -->
1
+ <!-- Automatically generated from reference/html/components/table.html. Edit reference/html/components/table.html and run npm run docs:generate again. -->
2
2
 
3
3
  # Table
4
4
 
5
- Contenitore responsive per una tabella semantica con intestazioni e righe di dati coerenti con gli stili del design system.
5
+ Responsive container for a semantic table with headers and data rows consistent with the design system styles.
6
6
 
7
7
  ## PGS
8
8
 
9
- - `table`: identifica il wrapper che gestisce presentazione e scorrimento della tabella nativa.
9
+ - `table`: identifies the wrapper that manages presentation and scrolling for the native table.
10
10
 
11
11
  ## Output
12
12
 
13
- Tabella HTML completa racchiusa nel contenitore PGS dedicato.
13
+ Complete HTML table wrapped in the dedicated PGS container.
14
14
 
15
- ## Esempio
15
+ ## Example
16
16
 
17
17
  ```html
18
18
  <div pgs="table">
19
19
  <table>
20
20
  <thead>
21
21
  <tr>
22
- <th>Nome</th>
22
+ <th>Name</th>
23
23
  <th>Stato</th>
24
24
  <th>Data</th>
25
25
  </tr>
@@ -28,7 +28,7 @@ Tabella HTML completa racchiusa nel contenitore PGS dedicato.
28
28
  <tbody>
29
29
  <tr>
30
30
  <td>Elemento uno</td>
31
- <td>Attivo</td>
31
+ <td>Active</td>
32
32
  <td>2026-01-01</td>
33
33
  </tr>
34
34
  <tr>
@@ -1,49 +1,50 @@
1
- <!-- File generato automaticamente da templates/html/components/tooltip.html. Modificare templates/html/components/tooltip.html e rieseguire npm run docs:generate. -->
1
+ <!-- Automatically generated from reference/html/components/tooltip.html. Edit reference/html/components/tooltip.html and run npm run docs:generate again. -->
2
2
 
3
3
  # Tooltip
4
4
 
5
- Variante compatta del dropdown che mostra un breve pannello informativo controllato da un pulsante a icona.
5
+ Tooltip markup, configuration, behavior, and usage example.
6
6
 
7
7
  ## PGS
8
8
 
9
- - `tooltip`: identifica il root della variante tooltip.
10
- - `tooltip-button`: identifica il controllo specifico del tooltip.
11
- - `tooltip-content`: identifica il contenuto informativo del tooltip.
9
+ - `tooltip`: identifies the tooltip element used by Tooltip.
10
+ - `tooltip-button`: identifies the tooltip-button element used by Tooltip.
11
+ - `tooltip-content`: identifies the tooltip-content element used by Tooltip.
12
12
 
13
13
  ## PGS Options
14
14
 
15
- - `position`: può essere applicata al root condiviso con sintassi position[lato allineamento] per modificare la posizione ereditata dal dropdown.
15
+ - `position`: identifies the position element used by Tooltip.
16
+ - `buttonMini`: applies the smallest button variant to the tooltip trigger.
16
17
 
17
18
  ## PGS States
18
19
 
19
- - `open`: viene gestito dal modulo dropdown sul root per mostrare o nascondere il tooltip.
20
+ - `open`: identifies the open element used by Tooltip.
20
21
 
21
- ## API JavaScript
22
+ ## JavaScript API
22
23
 
23
- - `pgs.dropdown.init(root)`: inizializza il tooltip perché il suo root condivide il token dropdown.
24
- - `pgs.dropdown.api(element)`: restituisce l'istanza dropdown associata al root del tooltip.
25
- - `instance.open()`: apre il contenuto informativo.
26
- - `instance.close()`: chiude il contenuto informativo.
27
- - `instance.toggle()`: inverte la visibilità del tooltip.
28
- - `instance.refresh()`: reinizializza il contesto e ricalcola il posizionamento.
29
- - `instance.isOpen()`: restituisce true quando il tooltip è aperto.
24
+ - `pgs.dropdown.init(root)`: initializes matching elements within the specified root.
25
+ - `pgs.dropdown.api(element)`: returns the instance associated with the specified initialized element.
26
+ - `instance.open()`: opens the component.
27
+ - `instance.close()`: closes the component.
28
+ - `instance.toggle()`: toggles the component state.
29
+ - `instance.refresh()`: refreshes the component and returns its updated instance.
30
+ - `instance.isOpen()`: returns true when the component is open.
30
31
 
31
- ## Elementi correlati
32
+ ## Related elements
32
33
 
33
- - `dropdown`: fornisce apertura, chiusura e posizionamento del tooltip.
34
- - `dropdown-button`: collega il pulsante al comportamento dropdown.
35
- - `dropdown-content`: collega il pannello al comportamento dropdown.
36
- - `buttonMini`: presenta il controllo come pulsante a icona di dimensione minima.
34
+ - `button`: provides the base styling for the tooltip trigger.
35
+ - `dropdown`: uses the related dropdown component or utility in this example.
36
+ - `dropdown-button`: uses the related dropdown-button component or utility in this example.
37
+ - `dropdown-content`: uses the related dropdown-content component or utility in this example.
37
38
 
38
39
  ## Output
39
40
 
40
- Tooltip HTML composto tramite i token condivisi del dropdown.
41
+ Complete HTML markup and usage example for Tooltip.
41
42
 
42
- ## Esempio
43
+ ## Example
43
44
 
44
45
  ```html
45
46
  <span pgs="dropdown tooltip">
46
- <button pgs="dropdown-button buttonMini tooltip-button" title="open-tooltip" type="button">
47
+ <button pgs="dropdown-button button tooltip-button" pgs-option="buttonMini" title="open-tooltip" type="button">
47
48
  <i class="fa-solid fa-info"></i>
48
49
  </button>
49
50
  <div pgs="dropdown-content tooltip-content">
@@ -1,12 +1,12 @@
1
- # Convenzioni
1
+ # Conventions
2
2
 
3
- - Usa `pgs` come prima scelta per markup, layout, componenti e comportamenti.
4
- - Mantieni coerenti i token tra template, SCSS e JS.
5
- - Usa `pgs-state` per stati runtime.
6
- - Usa `pgs-option` per opzioni dichiarative.
7
- - Preferisci custom properties e mixin a CSS hardcoded.
8
- - Non duplicare componenti gia' presenti nella libreria.
9
- - Non inventare API: verifica i sorgenti in `assets/javascript/`.
10
- - Mantieni in `mypgs` solo stili e comportamenti riutilizzabili.
11
- - Mantieni nel progetto finale le personalizzazioni specifiche del progetto.
12
- - Aggiorna `AGENTS.md` quando introduci pattern importanti.
3
+ - Use `pgs` as the first choice for markup, layouts, components, and behaviors.
4
+ - Keep tokens consistent across references, SCSS, and JavaScript.
5
+ - Use `pgs-state` for runtime states.
6
+ - Use `pgs-option` for declarative options.
7
+ - Prefer custom properties and mixins to hardcoded CSS.
8
+ - Do not duplicate components that already exist in the library.
9
+ - Do not invent APIs: verify the sources in `assets/javascript/`.
10
+ - Keep only reusable styles and behaviors in `mypgs`.
11
+ - Keep project-specific customizations in the consuming project.
12
+ - Update `AGENTS.md` when introducing important patterns.
@@ -36,7 +36,7 @@ Uso sorgente SCSS:
36
36
 
37
37
  ## Sviluppo
38
38
 
39
- Build una tantum:
39
+ One-time build:
40
40
 
41
41
  ```bash
42
42
  npm run start
@@ -54,10 +54,10 @@ Creare un pacchetto locale:
54
54
  npm pack
55
55
  ```
56
56
 
57
- Flusso consigliato quando modifichi la libreria:
57
+ Recommended workflow when modifying the library:
58
58
 
59
59
  1. modifica i sorgenti in `assets/`;
60
- 2. aggiorna template o documentazione se cambia il modo d'uso;
60
+ 2. aggiorna i riferimenti o la documentazione se cambia il modo d'uso;
61
61
  3. ricompila con `npm run start`;
62
62
  4. verifica `dist/`;
63
63
  5. crea il pacchetto con `npm pack`;
@@ -67,7 +67,7 @@ Nota: se la build Webpack fallisce, non modificare manualmente `dist/javascript`
67
67
 
68
68
  ## Aggiungere un nuovo modulo
69
69
 
70
- Esempio componente:
70
+ Component example:
71
71
 
72
72
  ```js
73
73
  export function PGS_myComponent_init(root = document) {