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.
- package/README.md +25 -25
- package/assets/scss/components/_accordion.scss +0 -2
- package/assets/scss/components/_button.scss +1 -1
- package/assets/scss/components/_form.scss +0 -16
- package/assets/scss/components/_formAddon.scss +18 -0
- package/assets/scss/components/_modals.scss +5 -3
- package/assets/scss/components/_search.scss +2 -2
- package/assets/scss/components/_slides.scss +0 -1
- package/assets/scss/components/_tooltip.scss +0 -1
- package/assets/scss/index.scss +1 -0
- package/assets/scss/layout/_footer.scss +0 -2
- package/assets/scss/layout/_header.scss +9 -1
- package/assets/scss/layout/_pageShell.scss +6 -2
- package/assets/scss/mixin/_mx-button.scss +30 -76
- package/assets/scss/mixin/_mx-card.scss +11 -9
- package/assets/scss/mixin/_mx-form.scss +3 -5
- package/assets/scss/mixin/{_mx-form-addon.scss → _mx-formAddon.scss} +23 -26
- package/assets/scss/mixin/_mx-hover.scss +75 -0
- package/assets/scss/mixin/_settings.scss +2 -1
- package/assets/scss/mixin/mixin.scss +2 -1
- package/demo/demo.js +4 -3
- package/dist/css/index.css +1166 -1517
- package/dist/css/index.css.map +1 -1
- package/dist/css/index.min.css +1 -1
- package/docs/componenti-e-markup.md +6 -5
- package/docs/components/accordion.md +22 -22
- package/docs/components/badges.md +19 -19
- package/docs/components/breadcumbs.md +8 -8
- package/docs/components/button.md +17 -17
- package/docs/components/card.md +19 -19
- package/docs/components/dropdown.md +29 -29
- package/docs/components/form.md +63 -40
- package/docs/components/formAddon.md +79 -0
- package/docs/components/logo.md +11 -11
- package/docs/components/menu.md +20 -20
- package/docs/components/modal.md +46 -46
- package/docs/components/notification.md +34 -34
- package/docs/components/search.md +51 -50
- package/docs/components/slides.md +39 -39
- package/docs/components/stepTabs.md +41 -41
- package/docs/components/steps.md +16 -16
- package/docs/components/summary.md +20 -20
- package/docs/components/table.md +7 -7
- package/docs/components/tooltip.md +22 -22
- package/docs/convenzioni.md +11 -11
- package/docs/export-e-sviluppo.md +3 -3
- package/docs/helper-javascript.md +7 -7
- package/docs/layout/body.md +11 -11
- package/docs/layout/flex.md +44 -44
- package/docs/layout/footer.md +23 -23
- package/docs/layout/grid.md +44 -44
- package/docs/layout/header.md +34 -34
- package/docs/layout/pageShell.md +11 -11
- package/docs/layout/section.md +26 -26
- package/docs/patterns/cookieConsent.md +38 -38
- package/docs/utilizzo-css-scss.md +8 -8
- package/package.json +1 -1
- package/scripts/generate-component-docs.js +5 -5
- package/templates/html/components/accordion.html +19 -19
- package/templates/html/components/badges.html +17 -17
- package/templates/html/components/breadcumbs.html +6 -6
- package/templates/html/components/button.html +15 -15
- package/templates/html/components/card.html +17 -17
- package/templates/html/components/dropdown.html +25 -25
- package/templates/html/components/form.html +58 -35
- package/templates/html/components/formAddon.html +72 -0
- package/templates/html/components/logo.html +9 -9
- package/templates/html/components/menu.html +16 -16
- package/templates/html/components/modal.html +42 -42
- package/templates/html/components/notification.html +30 -30
- package/templates/html/components/search.html +43 -42
- package/templates/html/components/slides.html +31 -31
- package/templates/html/components/stepTabs.html +37 -37
- package/templates/html/components/steps.html +13 -13
- package/templates/html/components/summary.html +17 -17
- package/templates/html/components/table.html +5 -5
- package/templates/html/components/tooltip.html +18 -18
- package/templates/html/layout/body.html +9 -10
- package/templates/html/layout/flex.html +42 -42
- package/templates/html/layout/footer.html +20 -20
- package/templates/html/layout/grid.html +42 -42
- package/templates/html/layout/header.html +32 -32
- package/templates/html/layout/pageShell.html +8 -8
- package/templates/html/layout/section.html +24 -24
- package/templates/html/patterns/cookieConsent.html +33 -33
- package/templates/react/components/accordion.jsx +4 -4
- package/templates/react/components/breadcumbs.jsx +1 -1
- package/templates/react/components/button.jsx +5 -5
- package/templates/react/components/card.jsx +4 -4
- package/templates/react/components/dropdown.jsx +8 -8
- package/templates/react/components/form.jsx +2 -2
- package/templates/react/components/modal.jsx +14 -14
- package/templates/react/components/notification.jsx +3 -3
- package/templates/react/components/search.jsx +5 -5
- package/templates/react/components/slides.jsx +3 -3
- package/templates/react/components/stepTabs.jsx +8 -8
- package/templates/react/components/summary.jsx +3 -3
- package/templates/react/components/table.jsx +2 -2
- package/templates/react/layout/flex.jsx +8 -8
- package/templates/react/layout/grid.jsx +8 -8
- package/templates/react/layout/section.jsx +12 -12
- package/templates/react/patterns/cookieConsent.jsx +8 -8
- package/templates/react/patterns/footer.jsx +3 -3
- package/templates/react/patterns/header.jsx +3 -3
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
<!--
|
|
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
|
-
|
|
5
|
+
Notification markup, configuration, behavior, and usage example.
|
|
6
6
|
|
|
7
7
|
## PGS
|
|
8
8
|
|
|
9
|
-
- `notification`:
|
|
10
|
-
- `notificationTrigger`:
|
|
11
|
-
- `notification-element`:
|
|
12
|
-
- `notification-element-title`:
|
|
13
|
-
- `notification-element-content`:
|
|
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`:
|
|
18
|
-
- `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`:
|
|
23
|
-
- `error`:
|
|
24
|
-
- `warning`:
|
|
25
|
-
- `info`:
|
|
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
|
|
27
|
+
## JavaScript API
|
|
28
28
|
|
|
29
|
-
- `pgs.notification.trigger(root)`:
|
|
30
|
-
- `pgs.notification.alert.error(text, link, timeout, icon)`:
|
|
31
|
-
- `pgs.notification.alert.success(text, link, timeout, icon)`:
|
|
32
|
-
- `pgs.notification.alert.info(text, link, timeout, icon)`:
|
|
33
|
-
- `pgs.notification.alert.warning(text, link, timeout, icon)`:
|
|
34
|
-
- `pgs.notification.alert.deleteAll()`:
|
|
35
|
-
- `pgs.notification.toast.error(text, timeout, icon)`:
|
|
36
|
-
- `pgs.notification.toast.success(text, timeout, icon)`:
|
|
37
|
-
- `pgs.notification.toast.info(text, timeout, icon)`:
|
|
38
|
-
- `pgs.notification.toast.warning(text, timeout, icon)`:
|
|
39
|
-
- `pgs.notification.toast.deleteAll()`:
|
|
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
|
-
##
|
|
41
|
+
## Related elements
|
|
42
42
|
|
|
43
|
-
- `hidden`:
|
|
44
|
-
- `buttonClose`:
|
|
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
|
-
|
|
48
|
+
Complete HTML markup and usage example for Notification.
|
|
49
49
|
|
|
50
|
-
##
|
|
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": "
|
|
58
|
-
"message": "
|
|
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": "
|
|
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":"
|
|
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
|
-
<!--
|
|
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
|
-
|
|
5
|
+
Search markup, configuration, behavior, and usage example.
|
|
6
6
|
|
|
7
7
|
## PGS
|
|
8
8
|
|
|
9
|
-
- `search`:
|
|
10
|
-
- `search-suggestions`:
|
|
11
|
-
- `search-suggestions-item`:
|
|
12
|
-
- `search-modal`:
|
|
13
|
-
- `search-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`:
|
|
17
|
+
- `containerPGS`: identifies the containerPGS element used by Search.
|
|
18
18
|
|
|
19
19
|
## PGS States
|
|
20
20
|
|
|
21
|
-
- `open`:
|
|
22
|
-
- `loading`:
|
|
23
|
-
- `error`:
|
|
24
|
-
- `selected`:
|
|
25
|
-
|
|
26
|
-
## API
|
|
27
|
-
|
|
28
|
-
- `pgs.search.init(root)`:
|
|
29
|
-
- `pgs.search.api(element)`:
|
|
30
|
-
- `instance.configure(options)`:
|
|
31
|
-
- `instance.setSource(source)`:
|
|
32
|
-
- `instance.search(query)`:
|
|
33
|
-
- `instance.open()`:
|
|
34
|
-
- `instance.close()`:
|
|
35
|
-
- `instance.clear()`:
|
|
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)`:
|
|
38
|
-
- `instance.refresh()`:
|
|
39
|
-
- `instance.destroy()`:
|
|
40
|
-
- `instance.items()`:
|
|
41
|
-
- `instance.isOpen()`:
|
|
42
|
-
- `instance.isLoading()`:
|
|
43
|
-
- `instance.setActiveIndex(index)`:
|
|
44
|
-
|
|
45
|
-
##
|
|
46
|
-
|
|
47
|
-
- `buttonNohover`:
|
|
48
|
-
- `modal`:
|
|
49
|
-
- `modal-button`:
|
|
50
|
-
- `modal-close`:
|
|
51
|
-
- `buttonIcon`:
|
|
52
|
-
- `flexRow`:
|
|
53
|
-
- `section`:
|
|
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
|
-
|
|
57
|
+
Complete HTML markup and usage example for Search.
|
|
58
58
|
|
|
59
|
-
##
|
|
59
|
+
## Example
|
|
60
60
|
|
|
61
61
|
```html
|
|
62
62
|
<form pgs="buttonNohover search" autocomplete="off" action="" method="get">
|
|
63
|
-
<button type="submit" title="
|
|
64
|
-
<input type="search" name="s" placeholder="
|
|
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="
|
|
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="
|
|
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="
|
|
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
|
-
<!--
|
|
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
|
-
|
|
5
|
+
Slides markup, configuration, behavior, and usage example.
|
|
6
6
|
|
|
7
7
|
## PGS
|
|
8
8
|
|
|
9
|
-
- `slides`:
|
|
10
|
-
- `slides-container`:
|
|
11
|
-
- `slides-prec`:
|
|
12
|
-
- `slides-next`:
|
|
13
|
-
- `slides-dots`:
|
|
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`:
|
|
18
|
-
- `shadowDesktop`:
|
|
19
|
-
- `notScrollAnimation`:
|
|
20
|
-
- `notScrollWithMouse`:
|
|
21
|
-
|
|
22
|
-
## API
|
|
23
|
-
|
|
24
|
-
- `pgs.slides.init(root)`:
|
|
25
|
-
- `pgs.slides.api(element)`:
|
|
26
|
-
- `instance.previous()`:
|
|
27
|
-
- `instance.next()`:
|
|
28
|
-
- `instance.goTo(index)`:
|
|
29
|
-
- `instance.getCurrentIndexes()`:
|
|
30
|
-
- `instance.getCurrentElements()`:
|
|
31
|
-
- `instance.getTotal()`:
|
|
32
|
-
- `instance.isAtStart()`:
|
|
33
|
-
- `instance.isAtEnd()`:
|
|
34
|
-
- `instance.refresh()`:
|
|
35
|
-
|
|
36
|
-
##
|
|
37
|
-
|
|
38
|
-
- `card`:
|
|
39
|
-
- `card-img`:
|
|
40
|
-
- `imgCover`:
|
|
41
|
-
- `flexColumn`:
|
|
42
|
-
- `flexColumnTexts`:
|
|
43
|
-
- `buttonIcon`:
|
|
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
|
-
|
|
47
|
+
Complete HTML markup and usage example for Slides.
|
|
48
48
|
|
|
49
|
-
##
|
|
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>
|
|
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>
|
|
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>
|
|
79
|
+
<p>Third slide content.</p>
|
|
80
80
|
</div>
|
|
81
81
|
</article>
|
|
82
82
|
</li>
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
<!--
|
|
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
|
-
|
|
5
|
+
Step Tabs markup, configuration, behavior, and usage example.
|
|
6
6
|
|
|
7
7
|
## PGS
|
|
8
8
|
|
|
9
|
-
- `stepTabs`:
|
|
10
|
-
- `stepTabs-dots`:
|
|
11
|
-
- `stepTabs-dots-dot`:
|
|
12
|
-
- `stepTabs-container`:
|
|
13
|
-
- `tab`:
|
|
14
|
-
- `stepTabs-prev`:
|
|
15
|
-
- `stepTabs-restart`:
|
|
16
|
-
- `stepTabs-next`:
|
|
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`:
|
|
21
|
-
- `step`:
|
|
22
|
-
- `buttonReverse`:
|
|
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`:
|
|
27
|
-
- `is-completed`:
|
|
28
|
-
- `is-locked`:
|
|
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
|
|
30
|
+
## JavaScript API
|
|
31
31
|
|
|
32
|
-
- `pgs.stepTabs.init(root)`:
|
|
33
|
-
- `pgs.stepTabs.api(element)`:
|
|
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)`:
|
|
36
|
-
- `instance.next()`:
|
|
37
|
-
- `instance.prev()`:
|
|
38
|
-
- `instance.toggleLock(index, lock)`:
|
|
39
|
-
- `instance.refresh()`:
|
|
40
|
-
- `instance.getCurrent()`:
|
|
41
|
-
- `instance.getState()`:
|
|
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
|
-
##
|
|
43
|
+
## Related elements
|
|
44
44
|
|
|
45
|
-
- `flexColumnElements`:
|
|
46
|
-
- `flexColumnTexts`:
|
|
47
|
-
- `flexRow`:
|
|
48
|
-
- `button`:
|
|
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
|
-
|
|
52
|
+
Complete HTML markup and usage example for Step Tabs.
|
|
53
53
|
|
|
54
|
-
##
|
|
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>
|
|
63
|
-
<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>
|
|
68
|
-
<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>
|
|
73
|
-
<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
|
-
|
|
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
|
-
|
|
88
|
+
Next
|
|
89
89
|
<i class="fa-solid fa-arrow-right" aria-hidden="true"></i>
|
|
90
90
|
</button>
|
|
91
91
|
</div>
|
package/docs/components/steps.md
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
<!--
|
|
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
|
-
|
|
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`:
|
|
10
|
-
- `steps-step`:
|
|
11
|
-
- `steps-step-circle`:
|
|
12
|
-
- `steps-step-content`:
|
|
13
|
-
- `steps-step-line`:
|
|
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
|
|
15
|
+
## JavaScript API
|
|
16
16
|
|
|
17
|
-
- `pgs.steps.init(root)`:
|
|
18
|
-
- `pgs.steps.api(element)`:
|
|
19
|
-
- `instance.steps()`:
|
|
20
|
-
- `instance.getStep(index)`:
|
|
21
|
-
- `instance.getTotal()`:
|
|
22
|
-
- `instance.refresh()`:
|
|
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
|
-
|
|
26
|
+
Ordered HTML list of numbered steps completed by the JavaScript module.
|
|
27
27
|
|
|
28
|
-
##
|
|
28
|
+
## Example
|
|
29
29
|
|
|
30
30
|
```html
|
|
31
31
|
<ol pgs="steps">
|