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,43 +1,43 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
/**
|
|
3
3
|
* @title Slides
|
|
4
|
-
* @description
|
|
4
|
+
* @description Slides markup, configuration, behavior, and usage example.
|
|
5
5
|
*
|
|
6
6
|
* @pgs
|
|
7
|
-
* - slides:
|
|
8
|
-
* - slides-container:
|
|
9
|
-
* - slides-prec:
|
|
10
|
-
* - slides-next:
|
|
11
|
-
* - slides-dots:
|
|
7
|
+
* - slides: identifies the slides element used by Slides.
|
|
8
|
+
* - slides-container: identifies the slides-container element used by Slides.
|
|
9
|
+
* - slides-prec: identifies the slides-prec element used by Slides.
|
|
10
|
+
* - slides-next: identifies the slides-next element used by Slides.
|
|
11
|
+
* - slides-dots: identifies the slides-dots element used by Slides.
|
|
12
12
|
*
|
|
13
13
|
* @pgs-option
|
|
14
|
-
* - singleScroll:
|
|
15
|
-
* - shadowDesktop:
|
|
16
|
-
* - notScrollAnimation:
|
|
17
|
-
* - notScrollWithMouse:
|
|
14
|
+
* - singleScroll: identifies the singleScroll element used by Slides.
|
|
15
|
+
* - shadowDesktop: identifies the shadowDesktop element used by Slides.
|
|
16
|
+
* - notScrollAnimation: identifies the notScrollAnimation element used by Slides.
|
|
17
|
+
* - notScrollWithMouse: identifies the notScrollWithMouse element used by Slides.
|
|
18
18
|
*
|
|
19
19
|
* @api
|
|
20
|
-
* - pgs.slides.init(root):
|
|
21
|
-
* - pgs.slides.api(element):
|
|
22
|
-
* - instance.previous():
|
|
23
|
-
* - instance.next():
|
|
24
|
-
* - instance.goTo(index):
|
|
25
|
-
* - instance.getCurrentIndexes():
|
|
26
|
-
* - instance.getCurrentElements():
|
|
27
|
-
* - instance.getTotal():
|
|
28
|
-
* - instance.isAtStart():
|
|
29
|
-
* - instance.isAtEnd():
|
|
30
|
-
* - instance.refresh():
|
|
20
|
+
* - pgs.slides.init(root): initializes matching elements within the specified root.
|
|
21
|
+
* - pgs.slides.api(element): returns the instance associated with the specified initialized element.
|
|
22
|
+
* - instance.previous(): moves to the previous item.
|
|
23
|
+
* - instance.next(): moves to the next item.
|
|
24
|
+
* - instance.goTo(index): provides the documented operation through the component public API.
|
|
25
|
+
* - instance.getCurrentIndexes(): provides the documented operation through the component public API.
|
|
26
|
+
* - instance.getCurrentElements(): provides the documented operation through the component public API.
|
|
27
|
+
* - instance.getTotal(): returns the total number of items.
|
|
28
|
+
* - instance.isAtStart(): provides the documented operation through the component public API.
|
|
29
|
+
* - instance.isAtEnd(): provides the documented operation through the component public API.
|
|
30
|
+
* - instance.refresh(): refreshes the component and returns its updated instance.
|
|
31
31
|
*
|
|
32
32
|
* @related
|
|
33
|
-
* - card:
|
|
34
|
-
* - card-img:
|
|
35
|
-
* - imgCover:
|
|
36
|
-
* - flexColumn:
|
|
37
|
-
* - flexColumnTexts:
|
|
38
|
-
* - buttonIcon:
|
|
33
|
+
* - card: uses the related card component or utility in this example.
|
|
34
|
+
* - card-img: uses the related card-img component or utility in this example.
|
|
35
|
+
* - imgCover: uses the related imgCover component or utility in this example.
|
|
36
|
+
* - flexColumn: uses the related flexColumn component or utility in this example.
|
|
37
|
+
* - flexColumnTexts: uses the related flexColumnTexts component or utility in this example.
|
|
38
|
+
* - buttonIcon: uses the related buttonIcon component or utility in this example.
|
|
39
39
|
*
|
|
40
|
-
* @return
|
|
40
|
+
* @return Complete HTML markup and usage example for Slides.
|
|
41
41
|
*/
|
|
42
42
|
-->
|
|
43
43
|
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<img pgs="card-img imgCover" src="https://placehold.co/800x500?text=Slide+1" alt="Slide 1">
|
|
49
49
|
<div pgs="flexColumnTexts">
|
|
50
50
|
<h3>Slide uno</h3>
|
|
51
|
-
<p>
|
|
51
|
+
<p>First slide content.</p>
|
|
52
52
|
</div>
|
|
53
53
|
</article>
|
|
54
54
|
</li>
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<img pgs="card-img imgCover" src="https://placehold.co/800x500?text=Slide+2" alt="Slide 2">
|
|
59
59
|
<div pgs="flexColumnTexts">
|
|
60
60
|
<h3>Slide due</h3>
|
|
61
|
-
<p>
|
|
61
|
+
<p>Second slide content.</p>
|
|
62
62
|
</div>
|
|
63
63
|
</article>
|
|
64
64
|
</li>
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
<img pgs="card-img imgCover" src="https://placehold.co/800x500?text=Slide+3" alt="Slide 3">
|
|
69
69
|
<div pgs="flexColumnTexts">
|
|
70
70
|
<h3>Slide tre</h3>
|
|
71
|
-
<p>
|
|
71
|
+
<p>Third slide content.</p>
|
|
72
72
|
</div>
|
|
73
73
|
</article>
|
|
74
74
|
</li>
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
/**
|
|
3
3
|
* @title Step Tabs
|
|
4
|
-
* @description
|
|
4
|
+
* @description Step Tabs markup, configuration, behavior, and usage example.
|
|
5
5
|
*
|
|
6
6
|
* @pgs
|
|
7
|
-
* - stepTabs:
|
|
8
|
-
* - stepTabs-dots:
|
|
9
|
-
* - stepTabs-dots-dot:
|
|
10
|
-
* - stepTabs-container:
|
|
11
|
-
* - tab:
|
|
12
|
-
* - stepTabs-prev:
|
|
13
|
-
* - stepTabs-restart:
|
|
14
|
-
* - stepTabs-next:
|
|
7
|
+
* - stepTabs: identifies the stepTabs element used by Step Tabs.
|
|
8
|
+
* - stepTabs-dots: identifies the stepTabs-dots element used by Step Tabs.
|
|
9
|
+
* - stepTabs-dots-dot: identifies the stepTabs-dots-dot element used by Step Tabs.
|
|
10
|
+
* - stepTabs-container: identifies the stepTabs-container element used by Step Tabs.
|
|
11
|
+
* - tab: identifies the tab element used by Step Tabs.
|
|
12
|
+
* - stepTabs-prev: identifies the stepTabs-prev element used by Step Tabs.
|
|
13
|
+
* - stepTabs-restart: identifies the stepTabs-restart element used by Step Tabs.
|
|
14
|
+
* - stepTabs-next: identifies the stepTabs-next element used by Step Tabs.
|
|
15
15
|
*
|
|
16
16
|
* @pgs-option
|
|
17
|
-
* - tabIcon:
|
|
18
|
-
* - step:
|
|
19
|
-
* - buttonReverse:
|
|
17
|
+
* - tabIcon: identifies the tabIcon element used by Step Tabs.
|
|
18
|
+
* - step: identifies the step element used by Step Tabs.
|
|
19
|
+
* - buttonReverse: identifies the buttonReverse element used by Step Tabs.
|
|
20
20
|
*
|
|
21
21
|
* @pgs-state
|
|
22
|
-
* - is-active:
|
|
23
|
-
* - is-completed:
|
|
24
|
-
* - is-locked:
|
|
22
|
+
* - is-active: identifies the is-active element used by Step Tabs.
|
|
23
|
+
* - is-completed: identifies the is-completed element used by Step Tabs.
|
|
24
|
+
* - is-locked: identifies the is-locked element used by Step Tabs.
|
|
25
25
|
*
|
|
26
26
|
* @api
|
|
27
|
-
* - pgs.stepTabs.init(root):
|
|
28
|
-
* - pgs.stepTabs.api(element):
|
|
27
|
+
* - pgs.stepTabs.init(root): initializes matching elements within the specified root.
|
|
28
|
+
* - pgs.stepTabs.api(element): returns the instance associated with the specified initialized element.
|
|
29
29
|
* - instance.restart(): torna al primo tab e ripristina i blocchi dichiarati inizialmente.
|
|
30
|
-
* - instance.goTo(index, scroll):
|
|
31
|
-
* - instance.next():
|
|
32
|
-
* - instance.prev():
|
|
33
|
-
* - instance.toggleLock(index, lock):
|
|
34
|
-
* - instance.refresh():
|
|
35
|
-
* - instance.getCurrent():
|
|
36
|
-
* - instance.getState():
|
|
30
|
+
* - instance.goTo(index, scroll): provides the documented operation through the component public API.
|
|
31
|
+
* - instance.next(): moves to the next item.
|
|
32
|
+
* - instance.prev(): moves to the previous item.
|
|
33
|
+
* - instance.toggleLock(index, lock): provides the documented operation through the component public API.
|
|
34
|
+
* - instance.refresh(): refreshes the component and returns its updated instance.
|
|
35
|
+
* - instance.getCurrent(): provides the documented operation through the component public API.
|
|
36
|
+
* - instance.getState(): provides the documented operation through the component public API.
|
|
37
37
|
*
|
|
38
38
|
* @related
|
|
39
|
-
* - flexColumnElements:
|
|
40
|
-
* - flexColumnTexts:
|
|
41
|
-
* - flexRow:
|
|
42
|
-
* - button:
|
|
39
|
+
* - flexColumnElements: uses the related flexColumnElements component or utility in this example.
|
|
40
|
+
* - flexColumnTexts: uses the related flexColumnTexts component or utility in this example.
|
|
41
|
+
* - flexRow: uses the related flexRow component or utility in this example.
|
|
42
|
+
* - button: uses the related button component or utility in this example.
|
|
43
43
|
*
|
|
44
|
-
* @return
|
|
44
|
+
* @return Complete HTML markup and usage example for Step Tabs.
|
|
45
45
|
*/
|
|
46
46
|
-->
|
|
47
47
|
|
|
@@ -50,25 +50,25 @@
|
|
|
50
50
|
|
|
51
51
|
<div pgs="stepTabs-container">
|
|
52
52
|
<section pgs="tab flexColumnTexts" tabindex="-1" pgs-option="tabIcon[fa-user]">
|
|
53
|
-
<h3>
|
|
54
|
-
<p>
|
|
53
|
+
<h3>Personal details</h3>
|
|
54
|
+
<p>First tab content.</p>
|
|
55
55
|
</section>
|
|
56
56
|
|
|
57
57
|
<section pgs="tab flexColumnTexts" tabindex="-1" pgs-option="tabIcon[fa-list-check]">
|
|
58
|
-
<h3>
|
|
59
|
-
<p>
|
|
58
|
+
<h3>Preferences</h3>
|
|
59
|
+
<p>Second tab content.</p>
|
|
60
60
|
</section>
|
|
61
61
|
|
|
62
62
|
<section pgs="tab flexColumnTexts" tabindex="-1" pgs-option="tabIcon[fa-check]">
|
|
63
|
-
<h3>
|
|
64
|
-
<p>
|
|
63
|
+
<h3>Confirmation</h3>
|
|
64
|
+
<p>Third tab content.</p>
|
|
65
65
|
</section>
|
|
66
66
|
</div>
|
|
67
67
|
|
|
68
68
|
<div pgs="flexRow">
|
|
69
69
|
<button pgs="stepTabs-prev button" type="button">
|
|
70
70
|
<i class="fa-solid fa-arrow-left" aria-hidden="true"></i>
|
|
71
|
-
|
|
71
|
+
Back
|
|
72
72
|
</button>
|
|
73
73
|
|
|
74
74
|
<button pgs="stepTabs-restart button" type="button">
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
</button>
|
|
77
77
|
|
|
78
78
|
<button pgs="stepTabs-next button" pgs-option="buttonReverse" type="button">
|
|
79
|
-
|
|
79
|
+
Next
|
|
80
80
|
<i class="fa-solid fa-arrow-right" aria-hidden="true"></i>
|
|
81
81
|
</button>
|
|
82
82
|
</div>
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
/**
|
|
3
3
|
* @title Steps
|
|
4
|
-
* @description
|
|
4
|
+
* @description Ordered list of steps showing a number, content, and connecting line, with missing structural elements added at runtime.
|
|
5
5
|
*
|
|
6
6
|
* @pgs
|
|
7
|
-
* - steps:
|
|
8
|
-
* - steps-step:
|
|
9
|
-
* - steps-step-circle:
|
|
10
|
-
* - steps-step-content:
|
|
11
|
-
* - steps-step-line:
|
|
7
|
+
* - steps: identifies the ordered list initialized by the steps module.
|
|
8
|
+
* - steps-step: identifies each step in the sequence.
|
|
9
|
+
* - steps-step-circle: identifies the numeric indicator, which is created automatically when missing.
|
|
10
|
+
* - steps-step-content: identifies the text content of the step.
|
|
11
|
+
* - steps-step-line: identifies the connecting line dynamically added to each step.
|
|
12
12
|
*
|
|
13
13
|
* @api
|
|
14
|
-
* - pgs.steps.init(root):
|
|
15
|
-
* - pgs.steps.api(element):
|
|
16
|
-
* - instance.steps():
|
|
17
|
-
* - instance.getStep(index):
|
|
18
|
-
* - instance.getTotal():
|
|
19
|
-
* - instance.refresh():
|
|
14
|
+
* - pgs.steps.init(root): initializes unregistered step lists within the specified Document or Element.
|
|
15
|
+
* - pgs.steps.api(element): returns the instance associated with an initialized steps root.
|
|
16
|
+
* - instance.steps(): returns an array containing every steps-step element.
|
|
17
|
+
* - instance.getStep(index): returns the step at the specified index.
|
|
18
|
+
* - instance.getTotal(): returns the total number of steps.
|
|
19
|
+
* - instance.refresh(): reinitializes the list, recreates missing elements, and returns the new instance.
|
|
20
20
|
*
|
|
21
|
-
* @return
|
|
21
|
+
* @return Ordered HTML list of numbered steps completed by the JavaScript module.
|
|
22
22
|
*/
|
|
23
23
|
-->
|
|
24
24
|
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
/**
|
|
3
3
|
* @title Summary
|
|
4
|
-
* @description
|
|
4
|
+
* @description Summary markup, configuration, behavior, and usage example.
|
|
5
5
|
*
|
|
6
6
|
* @pgs
|
|
7
|
-
* - summary:
|
|
8
|
-
* - summary-content:
|
|
9
|
-
* - summary-button:
|
|
7
|
+
* - summary: identifies the summary element used by Summary.
|
|
8
|
+
* - summary-content: identifies the summary-content element used by Summary.
|
|
9
|
+
* - summary-button: identifies the summary-button element used by Summary.
|
|
10
10
|
*
|
|
11
11
|
* @pgs-state
|
|
12
|
-
* - overflow:
|
|
13
|
-
* - open:
|
|
12
|
+
* - overflow: identifies the overflow element used by Summary.
|
|
13
|
+
* - open: identifies the open element used by Summary.
|
|
14
14
|
*
|
|
15
15
|
* @api
|
|
16
|
-
* - pgs.summary.init(root):
|
|
17
|
-
* - pgs.summary.api(element):
|
|
18
|
-
* - instance.open():
|
|
19
|
-
* - instance.close():
|
|
20
|
-
* - instance.toggle():
|
|
21
|
-
* - instance.refresh():
|
|
22
|
-
* - instance.isOpen():
|
|
16
|
+
* - pgs.summary.init(root): initializes matching elements within the specified root.
|
|
17
|
+
* - pgs.summary.api(element): returns the instance associated with the specified initialized element.
|
|
18
|
+
* - instance.open(): opens the component.
|
|
19
|
+
* - instance.close(): closes the component.
|
|
20
|
+
* - instance.toggle(): toggles the component state.
|
|
21
|
+
* - instance.refresh(): refreshes the component and returns its updated instance.
|
|
22
|
+
* - instance.isOpen(): returns true when the component is open.
|
|
23
23
|
*
|
|
24
|
-
* @return
|
|
24
|
+
* @return Complete HTML markup and usage example for Summary.
|
|
25
25
|
*/
|
|
26
26
|
-->
|
|
27
27
|
|
|
28
28
|
<div pgs="summary">
|
|
29
29
|
<div pgs="summary-content">
|
|
30
30
|
<p>
|
|
31
|
-
|
|
31
|
+
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.
|
|
32
32
|
</p>
|
|
33
33
|
<p>
|
|
34
|
-
|
|
34
|
+
When content exceeds three lines, a button is shown to expand or collapse the visible area.
|
|
35
35
|
</p>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
<button pgs="summary-button" type="button">
|
|
39
|
-
|
|
39
|
+
Show more
|
|
40
40
|
</button>
|
|
41
41
|
</div>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
/**
|
|
3
3
|
* @title Table
|
|
4
|
-
* @description
|
|
4
|
+
* @description Responsive container for a semantic table with headers and data rows consistent with the design system styles.
|
|
5
5
|
*
|
|
6
6
|
* @pgs
|
|
7
|
-
* - table:
|
|
7
|
+
* - table: identifies the wrapper that manages presentation and scrolling for the native table.
|
|
8
8
|
*
|
|
9
|
-
* @return
|
|
9
|
+
* @return Complete HTML table wrapped in the dedicated PGS container.
|
|
10
10
|
*/
|
|
11
11
|
-->
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<table>
|
|
15
15
|
<thead>
|
|
16
16
|
<tr>
|
|
17
|
-
<th>
|
|
17
|
+
<th>Name</th>
|
|
18
18
|
<th>Stato</th>
|
|
19
19
|
<th>Data</th>
|
|
20
20
|
</tr>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<tbody>
|
|
24
24
|
<tr>
|
|
25
25
|
<td>Elemento uno</td>
|
|
26
|
-
<td>
|
|
26
|
+
<td>Active</td>
|
|
27
27
|
<td>2026-01-01</td>
|
|
28
28
|
</tr>
|
|
29
29
|
<tr>
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
/**
|
|
3
3
|
* @title Tooltip
|
|
4
|
-
* @description
|
|
4
|
+
* @description Tooltip markup, configuration, behavior, and usage example.
|
|
5
5
|
*
|
|
6
6
|
* @pgs
|
|
7
|
-
* - tooltip:
|
|
8
|
-
* - tooltip-button:
|
|
9
|
-
* - tooltip-content:
|
|
7
|
+
* - tooltip: identifies the tooltip element used by Tooltip.
|
|
8
|
+
* - tooltip-button: identifies the tooltip-button element used by Tooltip.
|
|
9
|
+
* - tooltip-content: identifies the tooltip-content element used by Tooltip.
|
|
10
10
|
*
|
|
11
11
|
* @pgs-option
|
|
12
|
-
* - position:
|
|
12
|
+
* - position: identifies the position element used by Tooltip.
|
|
13
13
|
*
|
|
14
14
|
* @pgs-state
|
|
15
|
-
* - open:
|
|
15
|
+
* - open: identifies the open element used by Tooltip.
|
|
16
16
|
*
|
|
17
17
|
* @api
|
|
18
|
-
* - pgs.dropdown.init(root):
|
|
19
|
-
* - pgs.dropdown.api(element):
|
|
20
|
-
* - instance.open():
|
|
21
|
-
* - instance.close():
|
|
22
|
-
* - instance.toggle():
|
|
23
|
-
* - instance.refresh():
|
|
24
|
-
* - instance.isOpen():
|
|
18
|
+
* - pgs.dropdown.init(root): initializes matching elements within the specified root.
|
|
19
|
+
* - pgs.dropdown.api(element): returns the instance associated with the specified initialized element.
|
|
20
|
+
* - instance.open(): opens the component.
|
|
21
|
+
* - instance.close(): closes the component.
|
|
22
|
+
* - instance.toggle(): toggles the component state.
|
|
23
|
+
* - instance.refresh(): refreshes the component and returns its updated instance.
|
|
24
|
+
* - instance.isOpen(): returns true when the component is open.
|
|
25
25
|
*
|
|
26
26
|
* @related
|
|
27
|
-
* - dropdown:
|
|
28
|
-
* - dropdown-button:
|
|
29
|
-
* - dropdown-content:
|
|
30
|
-
* - buttonMini:
|
|
27
|
+
* - dropdown: uses the related dropdown component or utility in this example.
|
|
28
|
+
* - dropdown-button: uses the related dropdown-button component or utility in this example.
|
|
29
|
+
* - dropdown-content: uses the related dropdown-content component or utility in this example.
|
|
30
|
+
* - buttonMini: uses the related buttonMini component or utility in this example.
|
|
31
31
|
*
|
|
32
|
-
* @return
|
|
32
|
+
* @return Complete HTML markup and usage example for Tooltip.
|
|
33
33
|
*/
|
|
34
34
|
-->
|
|
35
35
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
/**
|
|
3
3
|
* @title Body
|
|
4
|
-
* @description
|
|
4
|
+
* @description Base HTML document that enables MyPGS, configures essential metadata, and applies shared background, text, and heading variants to the body.
|
|
5
5
|
*
|
|
6
6
|
* @pgs
|
|
7
|
-
* - htmlBase:
|
|
8
|
-
* - initP:
|
|
9
|
-
* - bodyBase:
|
|
10
|
-
* - bodyImg:
|
|
11
|
-
* - bodyText:
|
|
12
|
-
* - bodyHeading:
|
|
7
|
+
* - htmlBase: applies the fundamental rules to the html element.
|
|
8
|
+
* - initP: enables layout, component, and pattern styles scoped to the MyPGS namespace.
|
|
9
|
+
* - bodyBase: applies the base structure and spacing to the body.
|
|
10
|
+
* - bodyImg: enables shared rules for images contained in the page.
|
|
11
|
+
* - bodyText: enables text typography and spacing.
|
|
12
|
+
* - bodyHeading: enables the typographic heading hierarchy.
|
|
13
13
|
*
|
|
14
14
|
* @pgs-state
|
|
15
|
-
* - darkmode:
|
|
15
|
+
* - darkmode: is applied dynamically to html and body to activate the dark theme.
|
|
16
16
|
*
|
|
17
|
-
* @return
|
|
17
|
+
* @return Complete HTML skeleton required to initialize the MyPGS library.
|
|
18
18
|
*/
|
|
19
19
|
-->
|
|
20
20
|
|
|
@@ -32,4 +32,3 @@
|
|
|
32
32
|
</head>
|
|
33
33
|
|
|
34
34
|
<body pgs="bodyBase bodyImg bodyText bodyHeading" >
|
|
35
|
-
|
|
@@ -1,109 +1,109 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
/**
|
|
3
3
|
* @title Flex
|
|
4
|
-
* @description
|
|
4
|
+
* @description Flex markup, configuration, behavior, and usage example.
|
|
5
5
|
*
|
|
6
6
|
* @pgs
|
|
7
|
-
* - flex-2:
|
|
8
|
-
* - flex-3:
|
|
9
|
-
* - flex-4:
|
|
10
|
-
* - flex-6:
|
|
7
|
+
* - flex-2: identifies the flex-2 element used by Flex.
|
|
8
|
+
* - flex-3: identifies the flex-3 element used by Flex.
|
|
9
|
+
* - flex-4: identifies the flex-4 element used by Flex.
|
|
10
|
+
* - flex-6: identifies the flex-6 element used by Flex.
|
|
11
11
|
*
|
|
12
12
|
* @related
|
|
13
|
-
* - container:
|
|
14
|
-
* - flexColumnTexts:
|
|
15
|
-
* - card:
|
|
13
|
+
* - container: defines the container context for the introduction.
|
|
14
|
+
* - flexColumnTexts: vertically organizes and spaces card text and content.
|
|
15
|
+
* - card: makes the demonstration cells of the flex layout visible.
|
|
16
16
|
*
|
|
17
|
-
* @return
|
|
17
|
+
* @return HTML collection of responsive flex layouts with two, three, four, and six items.
|
|
18
18
|
*/
|
|
19
19
|
-->
|
|
20
20
|
|
|
21
21
|
<div pgs="container flexColumnTexts">
|
|
22
|
-
<strong>
|
|
23
|
-
<p>
|
|
22
|
+
<strong>Standard section</strong>
|
|
23
|
+
<p>Centered content inside a MyPGS section.</p>
|
|
24
24
|
</div>
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
<div pgs="flex-2">
|
|
28
28
|
<article pgs="card flexColumnTexts">
|
|
29
|
-
<strong>
|
|
30
|
-
<p>
|
|
29
|
+
<strong>Column one</strong>
|
|
30
|
+
<p>First column content.</p>
|
|
31
31
|
</article>
|
|
32
32
|
|
|
33
33
|
<article pgs="card flexColumnTexts">
|
|
34
|
-
<strong>
|
|
35
|
-
<p>
|
|
34
|
+
<strong>Column two</strong>
|
|
35
|
+
<p>Second column content.</p>
|
|
36
36
|
</article>
|
|
37
37
|
</div>
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
<div pgs="flex-3">
|
|
41
41
|
<article pgs="card flexColumnTexts">
|
|
42
|
-
<strong>
|
|
43
|
-
<p>
|
|
42
|
+
<strong>Column one</strong>
|
|
43
|
+
<p>First column content.</p>
|
|
44
44
|
</article>
|
|
45
45
|
|
|
46
46
|
<article pgs="card flexColumnTexts">
|
|
47
|
-
<strong>
|
|
48
|
-
<p>
|
|
47
|
+
<strong>Column two</strong>
|
|
48
|
+
<p>Second column content.</p>
|
|
49
49
|
</article>
|
|
50
50
|
|
|
51
51
|
<article pgs="card flexColumnTexts">
|
|
52
|
-
<strong>
|
|
53
|
-
<p>
|
|
52
|
+
<strong>Column three</strong>
|
|
53
|
+
<p>Third column content.</p>
|
|
54
54
|
</article>
|
|
55
55
|
</div>
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
<div pgs="flex-4">
|
|
59
59
|
<article pgs="card flexColumnTexts">
|
|
60
|
-
<strong>
|
|
61
|
-
<p>
|
|
60
|
+
<strong>Column one</strong>
|
|
61
|
+
<p>First column content.</p>
|
|
62
62
|
</article>
|
|
63
63
|
|
|
64
64
|
<article pgs="card flexColumnTexts">
|
|
65
|
-
<strong>
|
|
66
|
-
<p>
|
|
65
|
+
<strong>Column two</strong>
|
|
66
|
+
<p>Second column content.</p>
|
|
67
67
|
</article>
|
|
68
68
|
|
|
69
69
|
<article pgs="card flexColumnTexts">
|
|
70
|
-
<strong>
|
|
71
|
-
<p>
|
|
70
|
+
<strong>Column three</strong>
|
|
71
|
+
<p>Third column content.</p>
|
|
72
72
|
</article>
|
|
73
73
|
<article pgs="card flexColumnTexts">
|
|
74
|
-
<strong>
|
|
75
|
-
<p>
|
|
74
|
+
<strong>Column four</strong>
|
|
75
|
+
<p>Fourth column content.</p>
|
|
76
76
|
</article>
|
|
77
77
|
</div>
|
|
78
78
|
|
|
79
79
|
<div pgs="flex-6">
|
|
80
80
|
<article pgs="card flexColumnTexts">
|
|
81
|
-
<strong>
|
|
82
|
-
<p>
|
|
81
|
+
<strong>Column one</strong>
|
|
82
|
+
<p>First column content.</p>
|
|
83
83
|
</article>
|
|
84
84
|
|
|
85
85
|
<article pgs="card flexColumnTexts">
|
|
86
|
-
<strong>
|
|
87
|
-
<p>
|
|
86
|
+
<strong>Column two</strong>
|
|
87
|
+
<p>Second column content.</p>
|
|
88
88
|
</article>
|
|
89
89
|
|
|
90
90
|
<article pgs="card flexColumnTexts">
|
|
91
|
-
<strong>
|
|
92
|
-
<p>
|
|
91
|
+
<strong>Column three</strong>
|
|
92
|
+
<p>Third column content.</p>
|
|
93
93
|
</article>
|
|
94
94
|
|
|
95
95
|
<article pgs="card flexColumnTexts">
|
|
96
|
-
<strong>
|
|
97
|
-
<p>
|
|
96
|
+
<strong>Column four</strong>
|
|
97
|
+
<p>Fourth column content.</p>
|
|
98
98
|
</article>
|
|
99
99
|
|
|
100
100
|
<article pgs="card flexColumnTexts">
|
|
101
|
-
<strong>
|
|
102
|
-
<p>
|
|
101
|
+
<strong>Column five</strong>
|
|
102
|
+
<p>Fifth column content.</p>
|
|
103
103
|
</article>
|
|
104
104
|
|
|
105
105
|
<article pgs="card flexColumnTexts">
|
|
106
|
-
<strong>
|
|
107
|
-
<p>
|
|
106
|
+
<strong>Column six</strong>
|
|
107
|
+
<p>Sixth column content.</p>
|
|
108
108
|
</article>
|
|
109
|
-
</div
|
|
109
|
+
</div
|