@zanichelli/albe-web-components 19.2.2 → 19.2.3
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/CHANGELOG.md +20 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +4 -4
- package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
- package/dist/cjs/z-notification.cjs.entry.js +3 -2
- package/dist/cjs/z-notification.cjs.entry.js.map +1 -1
- package/dist/cjs/z-otp.cjs.entry.js +2 -2
- package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
- package/dist/cjs/z-popover.cjs.entry.js +1 -1
- package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +3 -3
- package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/z-tool.cjs.entry.js +2 -2
- package/dist/cjs/z-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/collection/components/z-input/styles.css +5 -3
- package/dist/collection/components/z-notification/index.js +21 -1
- package/dist/collection/components/z-notification/index.js.map +1 -1
- package/dist/collection/components/z-notification/index.stories.js +31 -5
- package/dist/collection/components/z-notification/index.stories.js.map +1 -1
- package/dist/collection/components/z-notification/styles.css +18 -7
- package/dist/collection/components/z-offcanvas/index.js +2 -2
- package/dist/collection/components/z-panel-elem/index.js +2 -2
- package/dist/collection/components/z-popover/index.js +1 -1
- package/dist/collection/components/z-searchbar/index.js +1 -1
- package/dist/collection/components/z-skip-to-content/index.js +1 -1
- package/dist/collection/components/z-stepper/index.js +1 -1
- package/dist/collection/components/z-stepper-item/index.js +1 -1
- package/dist/collection/components/z-toast-notification/index.js +3 -3
- package/dist/collection/components/z-toast-notification-list/index.js +1 -1
- package/dist/collection/components/z-toggle-button/index.js +2 -2
- package/dist/collection/components/z-toggle-switch/index.js +3 -3
- package/dist/collection/components/z-tool/index.js +2 -2
- package/dist/collection/components/z-toolbar/index.js +1 -1
- package/dist/collection/components/z-tooltip/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
- package/dist/components/index12.js +1 -1
- package/dist/components/index12.js.map +1 -1
- package/dist/components/index18.js +1 -1
- package/dist/components/index19.js +1 -1
- package/dist/components/index20.js +1 -1
- package/dist/components/index21.js +1 -1
- package/dist/components/index22.js +1 -1
- package/dist/components/index23.js +2 -2
- package/dist/components/index24.js +1 -1
- package/dist/components/index25.js +1 -1
- package/dist/components/index27.js +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/z-myz-card-alert.js +1 -1
- package/dist/components/z-myz-card-dictionary.js +1 -1
- package/dist/components/z-myz-card-footer-sections.js +1 -1
- package/dist/components/z-myz-card-footer.js +1 -1
- package/dist/components/z-myz-card-icon.js +1 -1
- package/dist/components/z-myz-card-info.js +1 -1
- package/dist/components/z-myz-card-list.js +1 -1
- package/dist/components/z-myz-list.js +1 -1
- package/dist/components/z-notification.js +5 -3
- package/dist/components/z-notification.js.map +1 -1
- package/dist/components/z-otp.js +2 -2
- package/dist/components/z-panel-elem.js +2 -2
- package/dist/components/z-skip-to-content.js +1 -1
- package/dist/components/z-stepper-item.js +1 -1
- package/dist/components/z-stepper.js +1 -1
- package/dist/components/z-toast-notification-list.js +1 -1
- package/dist/components/z-toast-notification.js +3 -3
- package/dist/components/z-toggle-button.js +2 -2
- package/dist/components/z-toggle-switch.js +3 -3
- package/dist/components/z-tool.js +2 -2
- package/dist/components/z-toolbar.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-alert.entry.js +1 -1
- package/dist/esm/z-app-header_12.entry.js +4 -4
- package/dist/esm/z-app-header_12.entry.js.map +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +1 -1
- package/dist/esm/z-myz-card-list.entry.js +1 -1
- package/dist/esm/z-myz-card_4.entry.js +4 -4
- package/dist/esm/z-myz-list-item.entry.js +1 -1
- package/dist/esm/z-myz-list.entry.js +1 -1
- package/dist/esm/z-notification.entry.js +3 -2
- package/dist/esm/z-notification.entry.js.map +1 -1
- package/dist/esm/z-otp.entry.js +2 -2
- package/dist/esm/z-panel-elem.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +1 -1
- package/dist/esm/z-stepper-item.entry.js +1 -1
- package/dist/esm/z-stepper.entry.js +1 -1
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +3 -3
- package/dist/esm/z-toggle-button.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +3 -3
- package/dist/esm/z-tool.entry.js +2 -2
- package/dist/esm/z-toolbar.entry.js +1 -1
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/types/components/z-notification/index.d.ts +3 -0
- package/dist/types/components/z-notification/index.stories.d.ts +12 -1
- package/dist/types/components.d.ts +12 -0
- package/dist/web-components-library/{p-b7ec2cc4.entry.js → p-08b16bb4.entry.js} +2 -2
- package/dist/web-components-library/{p-43adca09.entry.js → p-0b9fc73c.entry.js} +2 -2
- package/dist/web-components-library/{p-f662e7ff.entry.js → p-146a4d4b.entry.js} +2 -2
- package/dist/web-components-library/{p-0aed3ddc.entry.js → p-2bb84080.entry.js} +2 -2
- package/dist/web-components-library/{p-5989465b.entry.js → p-36b84a8e.entry.js} +2 -2
- package/dist/web-components-library/p-463e0ac0.entry.js +2 -0
- package/{www/build/p-05be939d.entry.js.map → dist/web-components-library/p-463e0ac0.entry.js.map} +1 -1
- package/dist/web-components-library/{p-b391211f.entry.js → p-5372d49f.entry.js} +2 -2
- package/dist/web-components-library/{p-869295ce.entry.js → p-5b577b6f.entry.js} +2 -2
- package/dist/web-components-library/p-5fde1b41.entry.js +2 -0
- package/dist/web-components-library/{p-c811b0cf.entry.js → p-64d5fdd8.entry.js} +2 -2
- package/dist/web-components-library/{p-fbce9614.entry.js → p-662119bb.entry.js} +2 -2
- package/dist/web-components-library/{p-f2c2ad04.entry.js → p-68278c42.entry.js} +2 -2
- package/dist/web-components-library/{p-6d15da6f.entry.js → p-78af415b.entry.js} +2 -2
- package/{www/build/p-0643d684.entry.js → dist/web-components-library/p-7ade2a71.entry.js} +2 -2
- package/dist/web-components-library/p-80b04954.entry.js +2 -0
- package/{www/build/p-35d73edf.entry.js → dist/web-components-library/p-8ee2a9d2.entry.js} +2 -2
- package/dist/web-components-library/{p-4504375f.entry.js → p-8ff5b76b.entry.js} +2 -2
- package/dist/web-components-library/{p-accbc381.entry.js → p-93bb075f.entry.js} +2 -2
- package/dist/web-components-library/{p-b54d923e.entry.js → p-a6c07588.entry.js} +2 -2
- package/dist/web-components-library/{p-b7056859.entry.js → p-bbc20250.entry.js} +2 -2
- package/dist/web-components-library/{p-1b972597.entry.js → p-bd2156cc.entry.js} +2 -2
- package/dist/web-components-library/p-be1c414e.entry.js +2 -0
- package/dist/web-components-library/p-be1c414e.entry.js.map +1 -0
- package/dist/web-components-library/{p-8988eee3.entry.js → p-caced575.entry.js} +2 -2
- package/dist/web-components-library/{p-30a78a06.entry.js → p-d080b624.entry.js} +2 -2
- package/dist/web-components-library/{p-76d1d0e4.entry.js → p-d6f43903.entry.js} +2 -2
- package/dist/web-components-library/{p-e8eacbeb.entry.js → p-f74973b5.entry.js} +3 -3
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/dist/web-components-library/web-components-library.esm.js.map +1 -1
- package/package.json +1 -1
- package/www/build/{p-b7ec2cc4.entry.js → p-08b16bb4.entry.js} +2 -2
- package/www/build/{p-43adca09.entry.js → p-0b9fc73c.entry.js} +2 -2
- package/www/build/{p-f662e7ff.entry.js → p-146a4d4b.entry.js} +2 -2
- package/www/build/{p-0aed3ddc.entry.js → p-2bb84080.entry.js} +2 -2
- package/www/build/{p-5989465b.entry.js → p-36b84a8e.entry.js} +2 -2
- package/www/build/p-463e0ac0.entry.js +2 -0
- package/{dist/web-components-library/p-05be939d.entry.js.map → www/build/p-463e0ac0.entry.js.map} +1 -1
- package/www/build/{p-b391211f.entry.js → p-5372d49f.entry.js} +2 -2
- package/www/build/{p-869295ce.entry.js → p-5b577b6f.entry.js} +2 -2
- package/www/build/p-5fde1b41.entry.js +2 -0
- package/www/build/{p-c811b0cf.entry.js → p-64d5fdd8.entry.js} +2 -2
- package/www/build/{p-fbce9614.entry.js → p-662119bb.entry.js} +2 -2
- package/www/build/{p-f2c2ad04.entry.js → p-68278c42.entry.js} +2 -2
- package/www/build/{p-6d15da6f.entry.js → p-78af415b.entry.js} +2 -2
- package/{dist/web-components-library/p-0643d684.entry.js → www/build/p-7ade2a71.entry.js} +2 -2
- package/www/build/p-80b04954.entry.js +2 -0
- package/{dist/web-components-library/p-35d73edf.entry.js → www/build/p-8ee2a9d2.entry.js} +2 -2
- package/www/build/{p-4504375f.entry.js → p-8ff5b76b.entry.js} +2 -2
- package/www/build/{p-accbc381.entry.js → p-93bb075f.entry.js} +2 -2
- package/www/build/{p-b54d923e.entry.js → p-a6c07588.entry.js} +2 -2
- package/www/build/{p-b7056859.entry.js → p-bbc20250.entry.js} +2 -2
- package/www/build/{p-1b972597.entry.js → p-bd2156cc.entry.js} +2 -2
- package/www/build/p-be1c414e.entry.js +2 -0
- package/www/build/p-be1c414e.entry.js.map +1 -0
- package/www/build/{p-8988eee3.entry.js → p-caced575.entry.js} +2 -2
- package/www/build/{p-30a78a06.entry.js → p-d080b624.entry.js} +2 -2
- package/www/build/{p-4b38182a.js → p-d3d3edf1.js} +1 -1
- package/www/build/{p-76d1d0e4.entry.js → p-d6f43903.entry.js} +2 -2
- package/www/build/{p-e8eacbeb.entry.js → p-f74973b5.entry.js} +3 -3
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.esm.js.map +1 -1
- package/www/index.html +1 -1
- package/dist/web-components-library/p-05be939d.entry.js +0 -2
- package/dist/web-components-library/p-b71a3f69.entry.js +0 -2
- package/dist/web-components-library/p-c89e1f4b.entry.js +0 -2
- package/dist/web-components-library/p-c89e1f4b.entry.js.map +0 -1
- package/dist/web-components-library/p-f92e0c29.entry.js +0 -2
- package/www/build/p-05be939d.entry.js +0 -2
- package/www/build/p-b71a3f69.entry.js +0 -2
- package/www/build/p-c89e1f4b.entry.js +0 -2
- package/www/build/p-c89e1f4b.entry.js.map +0 -1
- package/www/build/p-f92e0c29.entry.js +0 -2
- /package/dist/web-components-library/{p-b7ec2cc4.entry.js.map → p-08b16bb4.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-43adca09.entry.js.map → p-0b9fc73c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f662e7ff.entry.js.map → p-146a4d4b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-0aed3ddc.entry.js.map → p-2bb84080.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-5989465b.entry.js.map → p-36b84a8e.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b391211f.entry.js.map → p-5372d49f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-869295ce.entry.js.map → p-5b577b6f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f92e0c29.entry.js.map → p-5fde1b41.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c811b0cf.entry.js.map → p-64d5fdd8.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fbce9614.entry.js.map → p-662119bb.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-f2c2ad04.entry.js.map → p-68278c42.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6d15da6f.entry.js.map → p-78af415b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-0643d684.entry.js.map → p-7ade2a71.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b71a3f69.entry.js.map → p-80b04954.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-35d73edf.entry.js.map → p-8ee2a9d2.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-4504375f.entry.js.map → p-8ff5b76b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-accbc381.entry.js.map → p-93bb075f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b54d923e.entry.js.map → p-a6c07588.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b7056859.entry.js.map → p-bbc20250.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-1b972597.entry.js.map → p-bd2156cc.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-8988eee3.entry.js.map → p-caced575.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-30a78a06.entry.js.map → p-d080b624.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-76d1d0e4.entry.js.map → p-d6f43903.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e8eacbeb.entry.js.map → p-f74973b5.entry.js.map} +0 -0
- /package/www/build/{p-b7ec2cc4.entry.js.map → p-08b16bb4.entry.js.map} +0 -0
- /package/www/build/{p-43adca09.entry.js.map → p-0b9fc73c.entry.js.map} +0 -0
- /package/www/build/{p-f662e7ff.entry.js.map → p-146a4d4b.entry.js.map} +0 -0
- /package/www/build/{p-0aed3ddc.entry.js.map → p-2bb84080.entry.js.map} +0 -0
- /package/www/build/{p-5989465b.entry.js.map → p-36b84a8e.entry.js.map} +0 -0
- /package/www/build/{p-b391211f.entry.js.map → p-5372d49f.entry.js.map} +0 -0
- /package/www/build/{p-869295ce.entry.js.map → p-5b577b6f.entry.js.map} +0 -0
- /package/www/build/{p-f92e0c29.entry.js.map → p-5fde1b41.entry.js.map} +0 -0
- /package/www/build/{p-c811b0cf.entry.js.map → p-64d5fdd8.entry.js.map} +0 -0
- /package/www/build/{p-fbce9614.entry.js.map → p-662119bb.entry.js.map} +0 -0
- /package/www/build/{p-f2c2ad04.entry.js.map → p-68278c42.entry.js.map} +0 -0
- /package/www/build/{p-6d15da6f.entry.js.map → p-78af415b.entry.js.map} +0 -0
- /package/www/build/{p-0643d684.entry.js.map → p-7ade2a71.entry.js.map} +0 -0
- /package/www/build/{p-b71a3f69.entry.js.map → p-80b04954.entry.js.map} +0 -0
- /package/www/build/{p-35d73edf.entry.js.map → p-8ee2a9d2.entry.js.map} +0 -0
- /package/www/build/{p-4504375f.entry.js.map → p-8ff5b76b.entry.js.map} +0 -0
- /package/www/build/{p-accbc381.entry.js.map → p-93bb075f.entry.js.map} +0 -0
- /package/www/build/{p-b54d923e.entry.js.map → p-a6c07588.entry.js.map} +0 -0
- /package/www/build/{p-b7056859.entry.js.map → p-bbc20250.entry.js.map} +0 -0
- /package/www/build/{p-1b972597.entry.js.map → p-bd2156cc.entry.js.map} +0 -0
- /package/www/build/{p-8988eee3.entry.js.map → p-caced575.entry.js.map} +0 -0
- /package/www/build/{p-30a78a06.entry.js.map → p-d080b624.entry.js.map} +0 -0
- /package/www/build/{p-76d1d0e4.entry.js.map → p-d6f43903.entry.js.map} +0 -0
- /package/www/build/{p-e8eacbeb.entry.js.map → p-f74973b5.entry.js.map} +0 -0
|
@@ -14,11 +14,12 @@ const StoryMeta = {
|
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
args: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
"--z-notification--content-max-width": "100%",
|
|
18
|
+
"contenticonname": "checkmark-circle-filled",
|
|
19
|
+
"actiontext": "Annulla",
|
|
20
|
+
"showclose": false,
|
|
21
|
+
"sticky": false,
|
|
22
|
+
"type": NotificationType.SUCCESS,
|
|
22
23
|
},
|
|
23
24
|
};
|
|
24
25
|
export default StoryMeta;
|
|
@@ -30,6 +31,28 @@ export const Default = {
|
|
|
30
31
|
.type=${args.type}
|
|
31
32
|
.showclose=${args.showclose}
|
|
32
33
|
.sticky=${args.sticky}
|
|
34
|
+
style="--z-notification--content-max-width: ${args["--z-notification--content-max-width"]}"
|
|
35
|
+
>
|
|
36
|
+
<div class="notification-container"><strong>NOVITÀ</strong>: Testo che descrive le novità.</div>
|
|
37
|
+
</z-notification>
|
|
38
|
+
`,
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* To use the border top variant set the `borderposition` property to `top`.
|
|
42
|
+
*/
|
|
43
|
+
export const BorderTop = {
|
|
44
|
+
args: {
|
|
45
|
+
borderposition: "top",
|
|
46
|
+
},
|
|
47
|
+
render: (args) => html `
|
|
48
|
+
<z-notification
|
|
49
|
+
.contenticonname=${args.contenticonname}
|
|
50
|
+
.actiontext=${args.actiontext}
|
|
51
|
+
.type=${args.type}
|
|
52
|
+
.showclose=${args.showclose}
|
|
53
|
+
.sticky=${args.sticky}
|
|
54
|
+
.borderposition=${args.borderposition}
|
|
55
|
+
style="--z-notification--content-max-width: ${args["--z-notification--content-max-width"]}"
|
|
33
56
|
>
|
|
34
57
|
<div class="notification-container"><strong>NOVITÀ</strong>: Testo che descrive le novità.</div>
|
|
35
58
|
</z-notification>
|
|
@@ -43,6 +66,7 @@ export const LongText = {
|
|
|
43
66
|
.type=${args.type}
|
|
44
67
|
.showclose=${args.showclose}
|
|
45
68
|
.sticky=${args.sticky}
|
|
69
|
+
style="--z-notification--content-max-width: ${args["--z-notification--content-max-width"]}"
|
|
46
70
|
>
|
|
47
71
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent rhoncus magna imperdiet malesuada interdum.
|
|
48
72
|
Curabitur volutpat mi purus, in maximus nisl volutpat quis. Suspendisse sed vestibulum magna. Quisque molestie,
|
|
@@ -71,6 +95,7 @@ export const BannerVariant = {
|
|
|
71
95
|
.type=${args.type}
|
|
72
96
|
.showclose=${args.showclose}
|
|
73
97
|
sticky="true"
|
|
98
|
+
style="--z-notification--content-max-width: ${args["--z-notification--content-max-width"]}"
|
|
74
99
|
>
|
|
75
100
|
${args.notificationText}
|
|
76
101
|
</z-notification>
|
|
@@ -131,6 +156,7 @@ export const InlineVariant = {
|
|
|
131
156
|
type=${args.type}
|
|
132
157
|
showclose=${args.showclose}
|
|
133
158
|
sticky="false"
|
|
159
|
+
style="--z-notification--content-max-width: ${args["--z-notification--content-max-width"]}"
|
|
134
160
|
>
|
|
135
161
|
${args.notificationText}
|
|
136
162
|
</z-notification>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../src/components/z-notification/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAC;AAC7C,OAAO,SAAS,CAAC;AACjB,OAAO,qBAAqB,CAAC;AAI7B,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,gBAAgB;IAC3B,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,cAAc;aACrB;YACD,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC;SACzC;KACF;IACD,IAAI,EAAE;QACJ,eAAe,EAAE,yBAAyB;QAC1C,UAAU,EAAE,SAAS;QACrB,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,gBAAgB,CAAC,OAAO;KAC/B;CACuC,CAAC;AAE3C,eAAe,SAAS,CAAC;AAIzB,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;;yBAEC,IAAI,CAAC,eAAe;oBACzB,IAAI,CAAC,UAAU;cACrB,IAAI,CAAC,IAAI;mBACJ,IAAI,CAAC,SAAS;gBACjB,IAAI,CAAC,MAAM;;;;GAIxB;CACc,CAAC;AAElB,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;;yBAEC,IAAI,CAAC,eAAe;oBACzB,IAAI,CAAC,UAAU;cACrB,IAAI,CAAC,IAAI;mBACJ,IAAI,CAAC,SAAS;gBACjB,IAAI,CAAC,MAAM;;;;;;;GAOxB;CACc,CAAC;AAElB;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE;QACJ,gBAAgB,EAAE,kCAAkC;KACrD;IACD,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,QAAQ,CAAC;SACpB;KACF;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;;;2BAGG,IAAI,CAAC,eAAe;sBACzB,IAAI,CAAC,UAAU;gBACrB,IAAI,CAAC,IAAI;qBACJ,IAAI,CAAC,SAAS;;;UAGzB,IAAI,CAAC,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqC5B;CACc,CAAC;AAElB;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE;QACJ,gBAAgB,EAAE,kCAAkC;KACrD;IACD,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,QAAQ,CAAC;SACpB;KACF;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;;;0BAGE,IAAI,CAAC,eAAe;qBACzB,IAAI,CAAC,UAAU;eACrB,IAAI,CAAC,IAAI;oBACJ,IAAI,CAAC,SAAS;;;UAGxB,IAAI,CAAC,gBAAgB;;;;;;;;;;GAU5B;CACc,CAAC","sourcesContent":["import {Meta, StoryObj} from \"@storybook/web-components\";\nimport {html} from \"lit\";\nimport {type ZNotification} from \".\";\nimport {NotificationType} from \"../../beans\";\nimport \"./index\";\nimport \"./index.stories.css\";\n\ntype ZNotificationStoriesArgs = ZNotification & {notificationText: string};\n\nconst StoryMeta = {\n title: \"ZNotification\",\n component: \"z-notification\",\n argTypes: {\n type: {\n control: {\n type: \"inline-radio\",\n },\n options: Object.values(NotificationType),\n },\n },\n args: {\n contenticonname: \"checkmark-circle-filled\",\n actiontext: \"Annulla\",\n showclose: false,\n sticky: false,\n type: NotificationType.SUCCESS,\n },\n} satisfies Meta<ZNotificationStoriesArgs>;\n\nexport default StoryMeta;\n\ntype Story = StoryObj<ZNotificationStoriesArgs>;\n\nexport const Default = {\n render: (args) => html`\n <z-notification\n .contenticonname=${args.contenticonname}\n .actiontext=${args.actiontext}\n .type=${args.type}\n .showclose=${args.showclose}\n .sticky=${args.sticky}\n >\n <div class=\"notification-container\"><strong>NOVITÀ</strong>: Testo che descrive le novità.</div>\n </z-notification>\n `,\n} satisfies Story;\n\nexport const LongText = {\n render: (args) => html`\n <z-notification\n .contenticonname=${args.contenticonname}\n .actiontext=${args.actiontext}\n .type=${args.type}\n .showclose=${args.showclose}\n .sticky=${args.sticky}\n >\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent rhoncus magna imperdiet malesuada interdum.\n Curabitur volutpat mi purus, in maximus nisl volutpat quis. Suspendisse sed vestibulum magna. Quisque molestie,\n justo non pretium egestas, lorem elit malesuada turpis, et malesuada sapien nunc a urna. Curabitur sagittis augue\n turpis, eu consectetur purus consectetur vitae.\n </z-notification>\n `,\n} satisfies Story;\n\n/**\n * To use the banner variant set the `sticky` property to `true`.\n */\nexport const BannerVariant = {\n args: {\n notificationText: \"Questo è il testo della notifica\",\n },\n parameters: {\n controls: {\n exclude: [\"sticky\"],\n },\n },\n render: (args) => html`\n <div class=\"banner-notification-demo\">\n <z-notification\n .contenticonname=${args.contenticonname}\n .actiontext=${args.actiontext}\n .type=${args.type}\n .showclose=${args.showclose}\n sticky=\"true\"\n >\n ${args.notificationText}\n </z-notification>\n <h2 class=\"heading-1-sb\">Titolo della pagina</h2>\n <div class=\"body-1\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent rhoncus magna imperdiet malesuada interdum.\n Curabitur volutpat mi purus, in maximus nisl volutpat quis. Suspendisse sed vestibulum magna. Quisque molestie,\n justo non pretium egestas, lorem elit malesuada turpis, et malesuada sapien nunc a urna. Curabitur sagittis\n augue turpis, eu consectetur purus consectetur vitae. Sed bibendum nisl diam, eget egestas enim elementum eget.\n Donec quis magna lobortis, tristique nunc in, fringilla lacus. Duis ac porta turpis. Aenean aliquam tortor sed\n felis interdum aliquet dignissim vel ligula. Donec auctor risus vitae nisi finibus, sed suscipit tellus\n fringilla. Sed malesuada gravida tincidunt. Duis tincidunt orci at magna egestas fermentum. Nulla laoreet ante\n felis, non molestie mi venenatis sit amet. Nullam sollicitudin tempus lacus ac maximus. Suspendisse erat magna,\n pellentesque ut lectus sit amet, aliquet scelerisque augue. In at felis facilisis, sodales tortor euismod,\n tincidunt tellus. Quisque vulputate dolor vitae nibh pharetra, a auctor turpis mattis. Nulla facilisi. Vivamus a\n facilisis ex. Vestibulum ultricies scelerisque sapien eu pharetra. Etiam ut porttitor lorem, id ullamcorper\n risus. Donec sed sollicitudin metus. Sed sapien lectus, bibendum quis lorem efficitur, pellentesque maximus\n lectus. Quisque quis lectus quis dolor ultrices facilisis placerat finibus nulla. Donec laoreet urna id varius\n facilisis. Nulla facilisi. Pellentesque dignissim aliquam interdum. Fusce ante mauris, blandit nec imperdiet\n mattis, dictum non sapien. Donec aliquet feugiat quam quis cursus. Curabitur et rutrum nunc. Phasellus ut lorem\n posuere, eleifend felis sed, lobortis arcu. Nam efficitur purus non dolor tincidunt, nec euismod lectus\n hendrerit. Sed eget rutrum odio, ac maximus lacus. Etiam rutrum purus diam, eu pellentesque elit vulputate eget.\n Donec nulla augue, euismod non mollis congue, laoreet vel orci. Cras eget suscipit felis. Phasellus eget erat eu\n nisl suscipit pulvinar. Nunc ullamcorper orci sit amet dui placerat, at vulputate libero finibus. Quisque\n dignissim risus dolor, a porta erat cursus vel. Sed cursus pellentesque magna fringilla varius. Proin sit amet\n posuere massa. Proin nisl massa, hendrerit non congue mattis, tincidunt in turpis. Etiam pharetra posuere est,\n non mollis sapien malesuada non. Quisque metus lectus, hendrerit vel accumsan et, ornare a eros. Donec tempor,\n elit ut pulvinar auctor, sapien velit consectetur justo, interdum lobortis risus ligula vitae nunc. Praesent\n quam felis, posuere et consequat consectetur, tempus non sem. Phasellus in ligula enim. Donec gravida, felis\n vitae elementum mattis, velit ipsum aliquam ipsum, a cursus nisi nisl nec sapien. Ut et orci nulla. Donec\n fringilla magna non risus imperdiet euismod. Sed viverra eget turpis et faucibus. Sed ante orci, interdum in\n ligula in, tincidunt feugiat arcu. In viverra efficitur urna laoreet tristique. Phasellus hendrerit, urna et\n condimentum aliquet, ex urna condimentum dui, vitae vestibulum mauris risus sit amet nunc. Quisque egestas est\n vel lorem commodo, eget vestibulum enim cursus. Cras lectus velit, fermentum eget mauris id, interdum cursus\n massa. Maecenas quis dui vehicula mauris condimentum finibus. Sed et magna velit. Duis eleifend dolor at\n sagittis ornare. Aenean commodo massa enim, ac varius augue varius quis.\n </div>\n </div>\n `,\n} satisfies Story;\n\n/**\n * To use the inline variant set the `sticky` property to `false`.\n */\nexport const InlineVariant = {\n args: {\n notificationText: \"Questo è il testo della notifica\",\n },\n parameters: {\n controls: {\n exclude: [\"sticky\"],\n },\n },\n render: (args) => html`\n <div class=\"inline-notification-demo\">\n <z-notification\n contenticonname=${args.contenticonname}\n actiontext=${args.actiontext}\n type=${args.type}\n showclose=${args.showclose}\n sticky=\"false\"\n >\n ${args.notificationText}\n </z-notification>\n <div class=\"content\">\n <h2 class=\"heading-1\">Titolo della scheda</h2>\n <div class=\"body-1\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent rhoncus magna imperdiet malesuada interdum.\n Curabitur volutpat mi purus, in maximus nisl volutpat quis. Suspendisse sed vestibulum magna.\n </div>\n </div>\n </div>\n `,\n} satisfies Story;\n"]}
|
|
1
|
+
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../src/components/z-notification/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAC,gBAAgB,EAAC,MAAM,aAAa,CAAC;AAE7C,OAAO,SAAS,CAAC;AACjB,OAAO,qBAAqB,CAAC;AAM7B,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,eAAe;IACtB,SAAS,EAAE,gBAAgB;IAC3B,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,cAAc;aACrB;YACD,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC;SACzC;KACF;IACD,IAAI,EAAE;QACJ,qCAAqC,EAAE,MAAM;QAC7C,iBAAiB,EAAE,yBAAyB;QAC5C,YAAY,EAAE,SAAS;QACvB,WAAW,EAAE,KAAK;QAClB,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,gBAAgB,CAAC,OAAO;KACjC;CACuC,CAAC;AAE3C,eAAe,SAAS,CAAC;AAIzB,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;;yBAEC,IAAI,CAAC,eAAe;oBACzB,IAAI,CAAC,UAAU;cACrB,IAAI,CAAC,IAAI;mBACJ,IAAI,CAAC,SAAS;gBACjB,IAAI,CAAC,MAAM;oDACyB,IAAI,CAAC,qCAAqC,CAAC;;;;GAI5F;CACc,CAAC;AAElB;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE;QACJ,cAAc,EAAE,KAAK;KACtB;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;;yBAEC,IAAI,CAAC,eAAe;oBACzB,IAAI,CAAC,UAAU;cACrB,IAAI,CAAC,IAAI;mBACJ,IAAI,CAAC,SAAS;gBACjB,IAAI,CAAC,MAAM;wBACH,IAAI,CAAC,cAAc;oDACS,IAAI,CAAC,qCAAqC,CAAC;;;;GAI5F;CACc,CAAC;AAElB,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;;yBAEC,IAAI,CAAC,eAAe;oBACzB,IAAI,CAAC,UAAU;cACrB,IAAI,CAAC,IAAI;mBACJ,IAAI,CAAC,SAAS;gBACjB,IAAI,CAAC,MAAM;oDACyB,IAAI,CAAC,qCAAqC,CAAC;;;;;;;GAO5F;CACc,CAAC;AAElB;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE;QACJ,gBAAgB,EAAE,kCAAkC;KACrD;IACD,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,QAAQ,CAAC;SACpB;KACF;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;;;2BAGG,IAAI,CAAC,eAAe;sBACzB,IAAI,CAAC,UAAU;gBACrB,IAAI,CAAC,IAAI;qBACJ,IAAI,CAAC,SAAS;;sDAEmB,IAAI,CAAC,qCAAqC,CAAC;;UAEvF,IAAI,CAAC,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqC5B;CACc,CAAC;AAElB;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE;QACJ,gBAAgB,EAAE,kCAAkC;KACrD;IACD,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,QAAQ,CAAC;SACpB;KACF;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;;;0BAGE,IAAI,CAAC,eAAe;qBACzB,IAAI,CAAC,UAAU;eACrB,IAAI,CAAC,IAAI;oBACJ,IAAI,CAAC,SAAS;;sDAEoB,IAAI,CAAC,qCAAqC,CAAC;;UAEvF,IAAI,CAAC,gBAAgB;;;;;;;;;;GAU5B;CACc,CAAC","sourcesContent":["import {Meta, StoryObj} from \"@storybook/web-components\";\nimport {html} from \"lit\";\nimport {type ZNotification} from \".\";\nimport {NotificationType} from \"../../beans\";\nimport {CSSVarsArguments} from \"../../utils/storybook-utils\";\nimport \"./index\";\nimport \"./index.stories.css\";\n\ntype ZNotificationStoriesArgs = ZNotification & {\n notificationText: string;\n} & CSSVarsArguments<\"--z-notification--content-max-width\">;\n\nconst StoryMeta = {\n title: \"ZNotification\",\n component: \"z-notification\",\n argTypes: {\n type: {\n control: {\n type: \"inline-radio\",\n },\n options: Object.values(NotificationType),\n },\n },\n args: {\n \"--z-notification--content-max-width\": \"100%\",\n \"contenticonname\": \"checkmark-circle-filled\",\n \"actiontext\": \"Annulla\",\n \"showclose\": false,\n \"sticky\": false,\n \"type\": NotificationType.SUCCESS,\n },\n} satisfies Meta<ZNotificationStoriesArgs>;\n\nexport default StoryMeta;\n\ntype Story = StoryObj<ZNotificationStoriesArgs>;\n\nexport const Default = {\n render: (args) => html`\n <z-notification\n .contenticonname=${args.contenticonname}\n .actiontext=${args.actiontext}\n .type=${args.type}\n .showclose=${args.showclose}\n .sticky=${args.sticky}\n style=\"--z-notification--content-max-width: ${args[\"--z-notification--content-max-width\"]}\"\n >\n <div class=\"notification-container\"><strong>NOVITÀ</strong>: Testo che descrive le novità.</div>\n </z-notification>\n `,\n} satisfies Story;\n\n/**\n * To use the border top variant set the `borderposition` property to `top`.\n */\nexport const BorderTop = {\n args: {\n borderposition: \"top\",\n },\n render: (args) => html`\n <z-notification\n .contenticonname=${args.contenticonname}\n .actiontext=${args.actiontext}\n .type=${args.type}\n .showclose=${args.showclose}\n .sticky=${args.sticky}\n .borderposition=${args.borderposition}\n style=\"--z-notification--content-max-width: ${args[\"--z-notification--content-max-width\"]}\"\n >\n <div class=\"notification-container\"><strong>NOVITÀ</strong>: Testo che descrive le novità.</div>\n </z-notification>\n `,\n} satisfies Story;\n\nexport const LongText = {\n render: (args) => html`\n <z-notification\n .contenticonname=${args.contenticonname}\n .actiontext=${args.actiontext}\n .type=${args.type}\n .showclose=${args.showclose}\n .sticky=${args.sticky}\n style=\"--z-notification--content-max-width: ${args[\"--z-notification--content-max-width\"]}\"\n >\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent rhoncus magna imperdiet malesuada interdum.\n Curabitur volutpat mi purus, in maximus nisl volutpat quis. Suspendisse sed vestibulum magna. Quisque molestie,\n justo non pretium egestas, lorem elit malesuada turpis, et malesuada sapien nunc a urna. Curabitur sagittis augue\n turpis, eu consectetur purus consectetur vitae.\n </z-notification>\n `,\n} satisfies Story;\n\n/**\n * To use the banner variant set the `sticky` property to `true`.\n */\nexport const BannerVariant = {\n args: {\n notificationText: \"Questo è il testo della notifica\",\n },\n parameters: {\n controls: {\n exclude: [\"sticky\"],\n },\n },\n render: (args) => html`\n <div class=\"banner-notification-demo\">\n <z-notification\n .contenticonname=${args.contenticonname}\n .actiontext=${args.actiontext}\n .type=${args.type}\n .showclose=${args.showclose}\n sticky=\"true\"\n style=\"--z-notification--content-max-width: ${args[\"--z-notification--content-max-width\"]}\"\n >\n ${args.notificationText}\n </z-notification>\n <h2 class=\"heading-1-sb\">Titolo della pagina</h2>\n <div class=\"body-1\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent rhoncus magna imperdiet malesuada interdum.\n Curabitur volutpat mi purus, in maximus nisl volutpat quis. Suspendisse sed vestibulum magna. Quisque molestie,\n justo non pretium egestas, lorem elit malesuada turpis, et malesuada sapien nunc a urna. Curabitur sagittis\n augue turpis, eu consectetur purus consectetur vitae. Sed bibendum nisl diam, eget egestas enim elementum eget.\n Donec quis magna lobortis, tristique nunc in, fringilla lacus. Duis ac porta turpis. Aenean aliquam tortor sed\n felis interdum aliquet dignissim vel ligula. Donec auctor risus vitae nisi finibus, sed suscipit tellus\n fringilla. Sed malesuada gravida tincidunt. Duis tincidunt orci at magna egestas fermentum. Nulla laoreet ante\n felis, non molestie mi venenatis sit amet. Nullam sollicitudin tempus lacus ac maximus. Suspendisse erat magna,\n pellentesque ut lectus sit amet, aliquet scelerisque augue. In at felis facilisis, sodales tortor euismod,\n tincidunt tellus. Quisque vulputate dolor vitae nibh pharetra, a auctor turpis mattis. Nulla facilisi. Vivamus a\n facilisis ex. Vestibulum ultricies scelerisque sapien eu pharetra. Etiam ut porttitor lorem, id ullamcorper\n risus. Donec sed sollicitudin metus. Sed sapien lectus, bibendum quis lorem efficitur, pellentesque maximus\n lectus. Quisque quis lectus quis dolor ultrices facilisis placerat finibus nulla. Donec laoreet urna id varius\n facilisis. Nulla facilisi. Pellentesque dignissim aliquam interdum. Fusce ante mauris, blandit nec imperdiet\n mattis, dictum non sapien. Donec aliquet feugiat quam quis cursus. Curabitur et rutrum nunc. Phasellus ut lorem\n posuere, eleifend felis sed, lobortis arcu. Nam efficitur purus non dolor tincidunt, nec euismod lectus\n hendrerit. Sed eget rutrum odio, ac maximus lacus. Etiam rutrum purus diam, eu pellentesque elit vulputate eget.\n Donec nulla augue, euismod non mollis congue, laoreet vel orci. Cras eget suscipit felis. Phasellus eget erat eu\n nisl suscipit pulvinar. Nunc ullamcorper orci sit amet dui placerat, at vulputate libero finibus. Quisque\n dignissim risus dolor, a porta erat cursus vel. Sed cursus pellentesque magna fringilla varius. Proin sit amet\n posuere massa. Proin nisl massa, hendrerit non congue mattis, tincidunt in turpis. Etiam pharetra posuere est,\n non mollis sapien malesuada non. Quisque metus lectus, hendrerit vel accumsan et, ornare a eros. Donec tempor,\n elit ut pulvinar auctor, sapien velit consectetur justo, interdum lobortis risus ligula vitae nunc. Praesent\n quam felis, posuere et consequat consectetur, tempus non sem. Phasellus in ligula enim. Donec gravida, felis\n vitae elementum mattis, velit ipsum aliquam ipsum, a cursus nisi nisl nec sapien. Ut et orci nulla. Donec\n fringilla magna non risus imperdiet euismod. Sed viverra eget turpis et faucibus. Sed ante orci, interdum in\n ligula in, tincidunt feugiat arcu. In viverra efficitur urna laoreet tristique. Phasellus hendrerit, urna et\n condimentum aliquet, ex urna condimentum dui, vitae vestibulum mauris risus sit amet nunc. Quisque egestas est\n vel lorem commodo, eget vestibulum enim cursus. Cras lectus velit, fermentum eget mauris id, interdum cursus\n massa. Maecenas quis dui vehicula mauris condimentum finibus. Sed et magna velit. Duis eleifend dolor at\n sagittis ornare. Aenean commodo massa enim, ac varius augue varius quis.\n </div>\n </div>\n `,\n} satisfies Story;\n\n/**\n * To use the inline variant set the `sticky` property to `false`.\n */\nexport const InlineVariant = {\n args: {\n notificationText: \"Questo è il testo della notifica\",\n },\n parameters: {\n controls: {\n exclude: [\"sticky\"],\n },\n },\n render: (args) => html`\n <div class=\"inline-notification-demo\">\n <z-notification\n contenticonname=${args.contenticonname}\n actiontext=${args.actiontext}\n type=${args.type}\n showclose=${args.showclose}\n sticky=\"false\"\n style=\"--z-notification--content-max-width: ${args[\"--z-notification--content-max-width\"]}\"\n >\n ${args.notificationText}\n </z-notification>\n <div class=\"content\">\n <h2 class=\"heading-1\">Titolo della scheda</h2>\n <div class=\"body-1\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent rhoncus magna imperdiet malesuada interdum.\n Curabitur volutpat mi purus, in maximus nisl volutpat quis. Suspendisse sed vestibulum magna.\n </div>\n </div>\n </div>\n `,\n} satisfies Story;\n"]}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
--z-notification--top-offset: 0;
|
|
3
|
+
--z-notification--content-max-width: 100%;
|
|
3
4
|
|
|
4
|
-
display:
|
|
5
|
+
display: block;
|
|
5
6
|
width: 100%;
|
|
6
|
-
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.main-container {
|
|
10
|
+
display: flex;
|
|
11
|
+
max-width: var(--z-notification--content-max-width);
|
|
7
12
|
align-items: flex-start;
|
|
8
13
|
padding: calc(var(--space-unit) * 2);
|
|
9
|
-
|
|
14
|
+
margin: 0 auto;
|
|
15
|
+
background-color: transparent;
|
|
10
16
|
font-family: var(--font-family-sans);
|
|
11
|
-
outline: none;
|
|
12
17
|
}
|
|
13
18
|
|
|
14
19
|
:host([sticky]) {
|
|
@@ -54,8 +59,15 @@
|
|
|
54
59
|
fill: var(--color-default-error);
|
|
55
60
|
}
|
|
56
61
|
|
|
57
|
-
:host
|
|
58
|
-
|
|
62
|
+
:host([borderposition="bottom"]) {
|
|
63
|
+
border-bottom: var(--border-size-medium) solid var(--color-surface03);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:host([borderposition="top"]) {
|
|
67
|
+
border-top: var(--border-size-medium) solid var(--color-surface03);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
button {
|
|
59
71
|
padding: 0;
|
|
60
72
|
border: none;
|
|
61
73
|
margin: 0;
|
|
@@ -78,7 +90,6 @@
|
|
|
78
90
|
}
|
|
79
91
|
|
|
80
92
|
.content-text {
|
|
81
|
-
max-width: 800px;
|
|
82
93
|
color: var(--color-default-text);
|
|
83
94
|
font-size: var(--font-size-2);
|
|
84
95
|
font-weight: var(--font-rg);
|
|
@@ -140,8 +140,8 @@ export class ZOffcanvas {
|
|
|
140
140
|
this.open = false;
|
|
141
141
|
}
|
|
142
142
|
render() {
|
|
143
|
-
return (h(Host, { key: '
|
|
144
|
-
this.showBackdrop && (h("div", { key: '
|
|
143
|
+
return (h(Host, { key: 'aafb9bddcf3eb99e0b77dc0eb86703294dab0b56', "skip-animation": this.skipAnimation, "aria-hidden": !this.open ? "true" : null }, h("div", { key: '1a73bcc5abb6fd674a9624f8a4390849b2383323', class: "canvas-container", role: "presentation", ref: (el) => (this.canvasContainer = el) }, h("div", { key: '412138eb75e5c8afee64269ee5d9c2da5fccf7fb', class: "canvas-content z-scrollbar", role: "presentation", ref: (el) => (this.canvasContent = el) }, h("slot", { key: '149934216905198a8c0b8cfaff7851b4d1934706', name: "canvasContent" }))), (this.variant == OffCanvasVariant.OVERLAY || this.transitiondirection === TransitionDirection.UP) &&
|
|
144
|
+
this.showBackdrop && (h("div", { key: '555fe547b7c672189987edd94e0a2fc64ead2b25', class: "backdrop", onClick: () => (this.open = false) }))));
|
|
145
145
|
}
|
|
146
146
|
static get is() { return "z-offcanvas"; }
|
|
147
147
|
static get encapsulation() { return "scoped"; }
|
|
@@ -16,12 +16,12 @@ export class ZPanelElem {
|
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
const elemId = this.elemid ? this.elemid : "";
|
|
19
|
-
return (h("div", { key: '
|
|
19
|
+
return (h("div", { key: '5d734919b0fd927095c2e65ff1200ed550e48bd2', class: "panel-elem-container" }, (this.imgurl || this.imgalt) && (h("div", { key: '3d315fef58dfe7ecf601ade8f1652e447fdbe636', "aria-hidden": "true", class: "panel-elem-icon" }, h("img", { key: '47f8a1c400949b67c984d25c5bdf9f20ee3d846b', src: this.imgurl, alt: this.imgalt }))), h("div", { key: '9757e879ebe255ccdbdd815c7404a6cfe9f9cb1e', class: "panel-elem-link" }, h("a", { key: '4ee9897a9875081e871e4a72d7cdd9c6df23f6e1', class: {
|
|
20
20
|
"z-link": true,
|
|
21
21
|
"z-link-disabled": this.isdisabled,
|
|
22
22
|
"z-link-icon": true,
|
|
23
23
|
"z-link-blue": true,
|
|
24
|
-
}, id: elemId + "link_id", href: this.url, target: this.target }, h("z-icon", { key: '
|
|
24
|
+
}, id: elemId + "link_id", href: this.url, target: this.target }, h("z-icon", { key: 'b651e1ab06b937189e46634c0a91470afcde9168', height: 14, width: 14, name: this.linkicon }), this.linklabel)), this.descrSlotName && (h("div", { key: '5ab6f6ba7f8f3f50a3018b56b7ff3ea75f7e5aa5', class: "panel-elem-desc" }, h("slot", { key: 'c4d1f5928e8be8f25e36f1a3bf9a33f603b37148', name: this.descrSlotName })))));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "z-panel-elem"; }
|
|
27
27
|
static get encapsulation() { return "scoped"; }
|
|
@@ -497,7 +497,7 @@ export class ZPopover {
|
|
|
497
497
|
cancelAnimationFrame(this.animationFrameRequestId);
|
|
498
498
|
}
|
|
499
499
|
render() {
|
|
500
|
-
return (h(Host, { key: '
|
|
500
|
+
return (h(Host, { key: '0a8cd5736765d61bf31b6f19f6fd6b3b61ffb414', "current-position": this.currentPosition }, h("slot", { key: '269e9c027b0636583b199d91e724ca2093aac615' })));
|
|
501
501
|
}
|
|
502
502
|
static get is() { return "z-popover"; }
|
|
503
503
|
static get encapsulation() { return "shadow"; }
|
|
@@ -288,7 +288,7 @@ export class ZSearchbar {
|
|
|
288
288
|
return (h("z-list-element", { role: "option", tabindex: 0, clickable: true, id: `list-item-${this.htmlid}-show-all`, onClickItem: () => (this.currResultsCount = 0), color: "color-primary01" }, h("div", { class: "item-show-all" }, "Vedi tutti i risultati")));
|
|
289
289
|
}
|
|
290
290
|
render() {
|
|
291
|
-
return (h(Host, { key: '
|
|
291
|
+
return (h(Host, { key: '0364ab12f13469240465abf3fa7688c764406d17', onFocus: () => (this.showResults = true), onClick: (e) => this.handleOutsideClick(e), class: { "has-submit": this.showSearchButton, "has-results": this.autocomplete } }, h("div", { key: '80f78bac48913d4ca1f692ef0576eeac16bafb61', class: "input-container" }, this.renderInput(), this.renderResults()), this.renderButton()));
|
|
292
292
|
}
|
|
293
293
|
static get is() { return "z-searchbar"; }
|
|
294
294
|
static get encapsulation() { return "shadow"; }
|
|
@@ -45,7 +45,7 @@ export class ZSkipToContent {
|
|
|
45
45
|
this.visible = false;
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: 'b28906d64e95ddb5bac9fe36fc2b522b1b77f51d', class: {
|
|
49
49
|
[this.variant]: true,
|
|
50
50
|
"skip-to-content-visible": this.visible,
|
|
51
51
|
} }, this.links.map((link, i) => {
|
|
@@ -4,7 +4,7 @@ import { Host, h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class ZStepper {
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '9328d928ff48b951720a6f0ca95b1d051a687cf4', role: "navigation" }, h("slot", { key: 'bd77ebf98a3eda51bf3124edae6aa96d0ad6cc7a' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "z-stepper"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,7 +15,7 @@ export class ZStepperItem {
|
|
|
15
15
|
return Object.assign(Object.assign(Object.assign(Object.assign({}, href), role), current), tabindex);
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: '91f2e37b743cbd76bad5b23d6a7038377ed325c3', role: "listitem" }, h("button", Object.assign({ key: '8f9c85524aff451dfa316fe050295cd17a95d817', class: "stepper-item", disabled: this.disabled }, this.getAttributes()), h("div", { key: '5f28d57cc6bc5508655297367ac09252f6df9452', class: "indicator" }, this.checked ? h("z-icon", { name: "checkmark" }) : this.index), h("span", { key: 'e24121243032ab104e2e19a373ec264db070525a' }, h("slot", { key: '06e7d27fa7a997c7fff44a539d065af3f7814880' })))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "z-stepper-item"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -152,19 +152,19 @@ export class ZToastNotification {
|
|
|
152
152
|
this.isdraggable && this.handleSlideOutDragAnimation();
|
|
153
153
|
}
|
|
154
154
|
render() {
|
|
155
|
-
return (h(Host, { key: '
|
|
155
|
+
return (h(Host, { key: 'a5863e7ce8d266fba25e2a0503b57413ea276420', style: { "--percentuale": `${this.percentage}%` }, class: { [this.transition]: !!this.transition, [this.type]: !!this.type }, onAnimationEnd: (e) => {
|
|
156
156
|
if (this.autoclose && e.animationName.includes("slidein")) {
|
|
157
157
|
this.startClosingTimeout(this.autoclose);
|
|
158
158
|
}
|
|
159
159
|
if (e.animationName.includes("slideout")) {
|
|
160
160
|
this.hostElement.parentNode.removeChild(this.hostElement);
|
|
161
161
|
}
|
|
162
|
-
} }, h("div", { key: '
|
|
162
|
+
} }, h("div", { key: '2ff98af17ebad39c00098acfc17b842784b268e0', class: "toast-notification-container" }, h("div", { key: '9e12233cc275ad5f4d00b72253005d1b6d45feab', class: "toast-notification-content" }, h("div", { key: 'a10e179aa0895c1ed51861e8818ae35eaeed195c', class: "toast-notification-text" }, this.heading && h("span", { key: '88d3e049e558a3f107e6a8fcab1f4c3835173def', class: "title" }, this.heading), h("span", { key: '73624c5b86d0d842477e9a5f0512d24359b6f939', class: "message" }, h("slot", { key: 'e7ad8066daef392d83fa77340a16d384204f59fc', name: "message" }, this.message && h("span", { key: '59582a721c306d09cd5c2ca12bfaac649b2e5a1f', innerHTML: DOMPurify.sanitize(this.message) })))), h("div", { key: '071e7a3a9a85f931bf8cc7d264c76f5109f69cc0', class: "button-container", hidden: !this.hasSlottedButton }, h("slot", { key: '3ff74ad6ce9cc2d4fca76032ff0aa68c7553f8de', name: "button", onSlotchange: () => this.checkSlottedButton() }))), this.closebutton && (h("button", { key: '26e256f736a3b04e5ccc7ed158305f69d806c42d', class: "close-button", "aria-label": "Chiudi notifica", onClick: () => this.close(SLIDE_OUT_TRANSITION_MAP[this.transition], true), onKeyDown: (e) => {
|
|
163
163
|
if (e.code == KeyboardCode.SPACE || e.code == KeyboardCode.ENTER) {
|
|
164
164
|
e.preventDefault();
|
|
165
165
|
this.close(SLIDE_OUT_TRANSITION_MAP[this.transition], true);
|
|
166
166
|
}
|
|
167
|
-
} }, h("z-icon", { key: '
|
|
167
|
+
} }, h("z-icon", { key: '25a4e24b16fb29ecd7148700367d319dbb9d9c6d', name: "multiply-circled" }))))));
|
|
168
168
|
}
|
|
169
169
|
static get is() { return "z-toast-notification"; }
|
|
170
170
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,7 +37,7 @@ export class ZToastNotificationList {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return h("slot", { key: '
|
|
40
|
+
return h("slot", { key: '188e85fc561b690f63f4f66edbbf63a0ed434cdf', name: "toasts" });
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "z-toast-notification-list"; }
|
|
43
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,10 +15,10 @@ export class ZToggleButton {
|
|
|
15
15
|
this.toggleClick.emit(this.opened);
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h("button", { key: '
|
|
18
|
+
return (h("button", { key: '6e9fbd985e60b38770ced1d2b681c57952616cc3', tabindex: this.avoidclick ? "-1" : "0", class: {
|
|
19
19
|
"isopen": this.opened,
|
|
20
20
|
"avoid-clicks": this.avoidclick,
|
|
21
|
-
}, disabled: this.isdisabled, "aria-expanded": this.opened ? "true" : "false", "aria-label": this.ariaLabel, onClick: () => this.emitToggleClick() }, h("z-icon", { key: '
|
|
21
|
+
}, disabled: this.isdisabled, "aria-expanded": this.opened ? "true" : "false", "aria-label": this.ariaLabel, onClick: () => this.emitToggleClick() }, h("z-icon", { key: '0a1cf5cd9da7ef67a5e62dcf77fe7af27d7328a6', name: this.opened ? "chevron-down" : "chevron-up", width: 16, height: 16 }), this.label));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "z-toggle-button"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -22,14 +22,14 @@ export class ZToggleSwitch {
|
|
|
22
22
|
this.emitToggleClick();
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '8f4df999fbedf80bcc55745ccf2bc9e973b042b4' }, h("input", { key: '8b76f5a66b5d9d331338f50622c61021bb5a28f7', id: this.htmlid, type: "checkbox", checked: this.checked, disabled: this.disabled, onChange: this.handleClick.bind(this) }), h("label", { key: '64a7c132da51820ebcd9b078cfc4981cf1981c30', htmlFor: this.htmlid, class: {
|
|
26
26
|
[this.labelPosition]: true,
|
|
27
27
|
disabled: this.disabled,
|
|
28
|
-
} }, h("span", { key: '
|
|
28
|
+
} }, h("span", { key: 'ea293ee5515a6c901c571d21f11689b442add25d' }, h("slot", { key: 'a20e7ec3dae106f9d5e0df3b0a8766092cc7b42a' })), h("span", { key: 'cb49f19d1cdc68d6cb2330a035e7a7720b21e863', class: {
|
|
29
29
|
container: true,
|
|
30
30
|
disabled: this.disabled,
|
|
31
31
|
checked: this.checked,
|
|
32
|
-
} }, h("span", { key: '
|
|
32
|
+
} }, h("span", { key: 'b6fb8026f43c0bd12a65f1cee9bb90c476e4cf3c', class: "circle" }, this.checked && (h("z-icon", { key: 'a4e6313096647089e7fccdcb3fb40b42bf7ad2f3', width: 12, height: 12, name: "checkmark" })))))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "z-toggle-switch"; }
|
|
35
35
|
static get encapsulation() { return "scoped"; }
|
|
@@ -181,10 +181,10 @@ export class ZTool {
|
|
|
181
181
|
(_a = this.mql) === null || _a === void 0 ? void 0 : _a.removeEventListener("change", this.onMobileViewChange);
|
|
182
182
|
}
|
|
183
183
|
render() {
|
|
184
|
-
return (h(Host, { key: '
|
|
184
|
+
return (h(Host, { key: 'e193d45ced8a7d4aa880d3a506d43614a76ffa71', class: { "z-tool-tooltip-open": this.tooltipOpen } }, h("button", { key: '6549559a4a5125d3db07d12d8b2ac4c68e8eee6a', class: "z-tool", type: "button", ref: (el) => (this.buttonRef = el), "aria-pressed": this.hasSlottedContent ? undefined : this.active ? "true" : "false", "aria-expanded": this.hasSlottedContent ? (this.open ? "true" : "false") : undefined, "aria-haspopup": this.hasSlottedContent ? "true" : undefined, "aria-label": this.htmlAriaLabel || this.tooltip || undefined, disabled: this.disabled, onClick: this.handleClick, onMouseEnter: this.handleTooltipOpen, onMouseLeave: this.handleTooltipClose, onFocus: this.handleTooltipOpen, onBlur: this.handleTooltipClose }, h("z-icon", { key: '0aac9cc6854a9d4a4ac83866eb34cc8d12140f69', ref: (el) => (this.iconRef = el), name: this.icon, indicatorColor: this.indicatorColor })), this.tooltip && (h("z-tooltip", { key: '2d403e91916f5d7909d0085f2f89db8514de32cc', class: "z-tool-tooltip", ref: (el) => (this.tooltipRef = el), bindTo: this.iconRef, open: this.tooltipOpen && !this.open, position: this.isNested ? PopoverPosition.BOTTOM : this.tooltipPosition, dark: true, onMouseLeave: this.handleTooltipClose, onBlur: this.handleTooltipClose, onOpenChange: this.onTooltipOpenChange }, h("span", { key: 'a94e6a413686d9668399137f331e499ceb9d6516', class: "body-4" }, this.tooltip))), this.hasSlottedContent && (h("z-popover", { key: '2d103f6d9b8643cc1dd30bc6bd238be593971586', class: "z-tool-submenu", open: this.open, bindTo: this.isMobile && this.mainToolbar ? this.mainToolbar : this.hostElement, center: true,
|
|
185
185
|
/* disable auto-close to prevent unwanted close behaviors on mobile,
|
|
186
186
|
when the bound element is the main toolbar */
|
|
187
|
-
closable: false, position: this.isMobile ? PopoverPosition.TOP : PopoverPosition.BOTTOM }, h("slot", { key: '
|
|
187
|
+
closable: false, position: this.isMobile ? PopoverPosition.TOP : PopoverPosition.BOTTOM }, h("slot", { key: 'b8e79406df1de9fa4df0b8b4aa42b27477407a05' })))));
|
|
188
188
|
}
|
|
189
189
|
static get is() { return "z-tool"; }
|
|
190
190
|
static get encapsulation() { return "shadow"; }
|
|
@@ -133,7 +133,7 @@ export class ZToolbar {
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
render() {
|
|
136
|
-
return (h(Host, { key: '
|
|
136
|
+
return (h(Host, { key: '5e00c2233560e5050ede29f987b8eb42e2af5935', role: "toolbar", "aria-label": this.htmlAriaLabel }, h("slot", { key: '9ea69fc40ffaa25d900ad80dc9ca42b8ddcb1140', onSlotchange: () => {
|
|
137
137
|
this.collectToolItems();
|
|
138
138
|
this.updateTabIndexes();
|
|
139
139
|
} })));
|
|
@@ -20,7 +20,7 @@ export class ZTooltip {
|
|
|
20
20
|
this.open = this.popoverEl.open;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h("z-popover", { key: '
|
|
23
|
+
return (h("z-popover", { key: 'cbfcd9d92fdb27c998b9293aea1520993bf6cc1a', ref: (el) => (this.popoverEl = el), bindTo: this.bindTo, open: this.open, position: this.position, closable: this.closable, center: true, showArrow: true, onOpenChange: (event) => this.openChange.emit(event.detail) }, h("slot", { key: '9638b5e67aba8472eea8894b1b39bf1aa5f2986e' })));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "z-tooltip"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -33,7 +33,7 @@ export class ZMyzCardComponent {
|
|
|
33
33
|
return elemClasses;
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h("div", { key: '
|
|
36
|
+
return (h("div", { key: 'f67975d8bf57387a4e4b0fc45df88e5b570c23e4', class: this.retrieveClass(), tabindex: "0" }, h("slot", { key: 'be9495f0b9a9c8270c22511d2afa68f940eae945' })));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "z-myz-card"; }
|
|
39
39
|
static get encapsulation() { return "shadow"; }
|
|
@@ -46,7 +46,7 @@ export class ZMyzCardAlert {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h("div", { key: '
|
|
49
|
+
return (h("div", { key: '4dde539d077258de85bceb9a99ce2245b5fb59b6', class: "alert-external-wrapper " + this.retrieveClass() }, h("z-alert", { key: '88285961e5ee72342253e3cbb8872df6bdb1d980', type: this.getAlertType() }, h("div", { key: 'fff86788515042337d0c03dd4fbf469d79a697a9', class: "relative-container" }, h("z-icon", { key: '1a70753172840860985935cf0a00ba7f7370fdc2', name: this.iconname, width: 18, height: 18, class: this.retrieveClass() }), h("span", { key: 'a17dd5f7e173b10a8aa76ab6f77bcb8bb75508ca', class: "content-text" }, this.contenttext), this.actiontext && !!this.actiontext.trim().length && (h("span", { key: '026a58d486e4d0b2bd7c150b9e05695f8c3c1f26', role: "button", tabindex: "0", class: "content-action", onClick: (e) => {
|
|
50
50
|
this.handleActionButtonClick(e);
|
|
51
51
|
}, onKeyPress: (e) => {
|
|
52
52
|
this.handleSpaceKeyPress(e);
|
|
@@ -5,7 +5,7 @@ import { h } from "@stencil/core";
|
|
|
5
5
|
*/
|
|
6
6
|
export class ZMyzCardBody {
|
|
7
7
|
render() {
|
|
8
|
-
return (h("div", { key: '
|
|
8
|
+
return (h("div", { key: 'f979e99bc3e8640e4c6ff7603d0bdba1bcd4f10f' }, h("slot", { key: 'e246c5398ab2e8d1917f3a42c1037c3caedee6fa', name: "alert" }), h("slot", { key: 'aa79cbf40366c68b839aa335b705ba4a8af20b7f', name: "cover" })));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "z-myz-card-body"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class ZMyzCardCover {
|
|
|
10
10
|
this.img = this.defaultimg;
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h("img", { key: '
|
|
13
|
+
return (h("img", { key: 'ca8f2207563979810f396544be243792903af17c', class: this.faded && "faded", onError: this.hadleOnImageError.bind(this), alt: this.titolo, src: this.img }));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "z-myz-card-cover"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -21,7 +21,7 @@ export class ZMyzCardDictionary {
|
|
|
21
21
|
this.cardFlipped.emit(showBack);
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h("div", { key: '
|
|
24
|
+
return (h("div", { key: '6b1346d29ca8d1c94dc5c3dd604315aedfa89e53' }, h("z-myz-card", { key: 'b55d663bd25dcf5907b2b568a8a7143b11dc34a6' }, h("z-myz-card-header", { key: '092cebee4734c33f36e6106d0df767f66ee53b72', titolo: this.name }), h("div", { key: 'd6e76b7417c31c4d4f130c70a97abc7dcbc5e35e', class: `content ${this.flipped ? "flipped" : ""}` }, h("div", { key: 'efa43a9507b952db1e1be06aa92ebc0663944031', class: "front" }, h("z-myz-card-body", { key: '3285eb249c09247fee8a05605c15bbd41a08c40a' }, h("z-myz-card-cover", { key: '6cf9e64d190cb385af2e53ddd86a0468e962c7f7', slot: "cover", titolo: this.name, img: this.cover, faded: this.disabled })), h("z-button", { key: 'b8a4b8181709eb7e794c0a5c66ddee3423db4571', class: { "hide-info": this.hideinfobtn }, variant: ButtonVariant.SECONDARY, icon: "informationsource", size: ButtonSize.X_SMALL, onClick: () => this.flipCard(true), disabled: this.flipped }, this.flipbuttonlabel)), h("div", { key: '3e728ca532b6eca130e888a6fceb6d8da630dd0a', class: "back" }, h("slot", { key: '173a377df9c1df6891ea4a724760b964ac00e410', name: "info" }))), h("slot", { key: '608d82ab5d4d322124f30b767be53280912f23f3' }))));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "z-myz-card-dictionary"; }
|
|
27
27
|
static get encapsulation() { return "shadow"; }
|
|
@@ -59,7 +59,7 @@ export class ZMyzCardFooter {
|
|
|
59
59
|
return this.host.querySelector("[slot=list] > li a");
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (h("div", { key: '
|
|
62
|
+
return (h("div", { key: 'b2c367deffbb414b14b26d4f9c6bc9da8164a350', class: Object.assign(Object.assign({}, this.retrieveClass()), { wrapper: true }) }, h("footer", { key: '4a5e9261262c078bbc6e36f6fe6188f914f3f892', class: this.retrieveClass(), onTransitionEnd: (e) => this.footerTransitionHandler(e) }, h("span", { key: 'd89f1c82507f524997001e23a667e2d7613d3db4', class: "toggle" }, h("slot", { key: '746bc0ef6b6e3b67d53027033a3125b1a88b6dbc', name: "toggle" })), this.titolo && h("p", { key: '9ab5fe483ca565306d185b1ad3757389880303c7', class: { "custom-content": this.customContent } }, this.titolo), h("div", { key: '3f13c2950c5c6b7a0a6eb5dcef9f66c2b5333755', class: { "content": true, "custom-content": this.customContent } }, h("div", { key: '33bc4ee1df0442430b252e89f5a5683dd090676f' }, h("p", { key: 'f8a74c735f1bfcccc7e53aac0339ea9bc23d70d5', class: "authors", ref: (el) => (this.ellipsisAuthors = el) }, h("span", { key: 'e768282b621bd4918d02f79d7b6fb435328e2ff7', title: this.getTitleAuthors() }, h("span", { key: '51e3506af92802176f696db218326cbf1c4b276d', "aria-description": "Autori", class: "bold" }, this.autori))), h("p", { key: 'ffee18d90a03c7828e2683c1c18cc7b07098208f', class: "year-isbn" }, h("span", { key: 'e95af54bc544e76269fcc9f120c184a1c7fcc768', class: "isbn" }, h("span", { key: '0a2e1414b5c770a43d1971d5df38a5533a9f7589' }, h("span", { key: '735f3054ea25c564632ddfb5b09849bb05f9ea6d', "aria-description": "ISBN edizione cartacea", class: "bold" }, this.isbn), " ", "(ed. cartacea)")))), h("div", { key: '5f0cccd6077cadd792659c426d5eee35cb0528c1', class: `slot-handler ${this.isOpen ? "visible" : "hidden"}` }, h("slot", { key: 'b147e0d5bd7a20bd562214e2a4274f1d2a7bd52b', name: "list" })))), this.customContent && h("slot", { key: '5ebdd6a9e733998f158f56718649d495cacb3c87', name: "content" })));
|
|
63
63
|
}
|
|
64
64
|
static get is() { return "z-myz-card-footer"; }
|
|
65
65
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ import { h } from "@stencil/core";
|
|
|
5
5
|
*/
|
|
6
6
|
export class ZMyzCardFooterSections {
|
|
7
7
|
render() {
|
|
8
|
-
return (h("div", { key: '
|
|
8
|
+
return (h("div", { key: 'a46083ba1265bd19e0b0d04e6314e43691222cde' }, h("footer", { key: 'd57858f24d1ecb5a0d9b4e2856a00641b5766f78' }, h("div", { key: 'd1cda03a27089e0c66ec4568bd4a044250d5aabf', class: "top" }, h("slot", { key: '96db1d35ba09c57dff19c381a4c86b7fbc3759a3', name: "top" })), h("div", { key: 'debf288a71d568c50f4e76d2abf8b1b4cdc25b1e', class: "bottom" }, h("slot", { key: '3464db01d4ec966cf1c13edb53e2a4e63eea59d2', name: "bottom" })))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "z-myz-card-footer-sections"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -30,7 +30,7 @@ export class ZMyzCardHeader {
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h("header", { key: '
|
|
33
|
+
return (h("header", { key: '3a55d0bf3dfd589c1880526191ddbdd311ba6b86', class: this.retrieveClass() }, h("slot", { key: 'faedfbb21b4fd7f56bd08093e5347a4655797008', name: "aria-heading" }), h("span", { key: '53805e713dec6b891a878388d98f9f0749951f31', class: "card-title", ref: (el) => (this.ellipsis = el), title: this.getTitle() }, this.titolo), h("slot", { key: '68479fd579921c6fd623fa92b27dafd24bc41d18', name: "icon" })));
|
|
34
34
|
}
|
|
35
35
|
static get is() { return "z-myz-card-header"; }
|
|
36
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,7 +6,7 @@ export class ZMyzCardIcon {
|
|
|
6
6
|
this.ariaLabel = "";
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return (h("button", { key: '
|
|
9
|
+
return (h("button", { key: '6c7bbcbde5d35a54fafe344f2c1e4be78f8b2d29', disabled: this.isdisabled, "aria-label": this.ariaLabel }, h("span", { key: '81c38638c37f57c5e68e8d2db9f16db83752bc15' }, h("z-icon", { key: '8d1b8d34c61411f7079c4a492294fde70cd923e2', name: this.icon, width: 16, height: 16 }))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "z-myz-card-icon"; }
|
|
12
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -114,7 +114,7 @@ export class ZMyzCardInfo {
|
|
|
114
114
|
return (h("section", { ref: (el) => (this.offlineLicenseWrapper = el) }, h("span", { class: "license-heading" }, h("span", null, "Licenza offline"), this.setExpirationLicenseMessage("offline")), "Scadenza il ", h("b", null, this.cardData.offlineLicense.expiration), h("br", null), "Installazioni disponibili: ", h("b", null, this.cardData.offlineLicense.installations)));
|
|
115
115
|
}
|
|
116
116
|
render() {
|
|
117
|
-
return (h("div", { key: '
|
|
117
|
+
return (h("div", { key: '81d2f2e223da107bea1c15bb4df6640567a37990' }, this.renderCloseIcon(), h("div", { key: 'fed0c665a34ab4c264313d726b642a587e04bd61', class: "content-wrapper", ref: (el) => (this.contentWrapper = el) }, this.renderGeneralSection(), this.renderTooltip(), this.renderOnlineLicenseSection(), this.renderOfflineLicenseSection()), h("div", { key: '8978d9206d452b14843fadad6c8c6bacd976f77c', class: "cta-wrapper" }, h("slot", { key: '2d2431d4c8a8ed03c7428e77fc19a6556cd1cc35' }))));
|
|
118
118
|
}
|
|
119
119
|
static get is() { return "z-myz-card-info"; }
|
|
120
120
|
static get encapsulation() { return "shadow"; }
|
|
@@ -23,7 +23,7 @@ export class ZMyzCardList {
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return h("ul", { key: '
|
|
26
|
+
return h("ul", { key: 'aa9fc5633a56ebb91f157bc65cb8cfb20cf1bacb' }, this.renderList(JSON.parse(this.listdata)));
|
|
27
27
|
}
|
|
28
28
|
static get is() { return "z-myz-card-list"; }
|
|
29
29
|
static get encapsulation() { return "shadow"; }
|
|
@@ -17,7 +17,7 @@ export class ZMyzList {
|
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
19
|
const lastElem = this.list ? this.list.length - 1 : -1;
|
|
20
|
-
return (h("ul", { key: '
|
|
20
|
+
return (h("ul", { key: '94453803cc1c6b3d3b81e19f107c09abc395bbff' }, this.list &&
|
|
21
21
|
this.list.map((bean, i) => (h("z-myz-list-item", { listitemid: bean.listitemid, text: bean.text, link: bean.link, linktarget: bean.linktarget, icon: bean.icon, underlined: lastElem != i })))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "z-myz-list"; }
|
|
@@ -20,7 +20,7 @@ export class ZMyzListItem {
|
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
22
|
const linkId = this.listitemid ? `link_${this.listitemid}` : "";
|
|
23
|
-
return (h("li", { key: '
|
|
23
|
+
return (h("li", { key: 'e8054df30e0540b758ecac0133a03ba8c64762ea', role: "button", id: this.listitemid, "data-action": this.action, onClick: (e) => this.emitZListItemClick(e, this.listitemid), onKeyPress: (ev) => handleKeyboardSubmit(ev, this.emitZListItemClick, this.listitemid) }, h("span", { key: 'e9fd1c5d30e270a4f1f5b6d309a2bcb40b023819', class: this.underlined && "border" }, this.icon && h("z-icon", { key: 'd714ad82aac6db611955e4c9669d272c44c5fbaf', name: this.icon }), this.link ? (h("a", { href: this.link ? this.link : null, target: this.linktarget, id: linkId, onClick: (e) => this.emitZListItemLinkClick(e, linkId), onKeyPress: (ev) => handleKeyboardSubmit(ev, this.emitZListItemLinkClick, linkId), role: this.link ? "link" : "button", tabindex: "0" }, this.text)) : (h("span", { innerHTML: this.text })), h("slot", { key: '77595259e1f32f42f1d36beb2dfaf216a115d887' }))));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "z-myz-list-item"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,7 +7,7 @@ export class ZAlert {
|
|
|
7
7
|
this.type = undefined;
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h("div", { key: '
|
|
10
|
+
return (h("div", { key: '089bda749c586a5910c417781923cbefe0372dd8', class: this.type }, h("slot", { key: '7d222e10b779779ba7ef9be1c1162aa436225610' })));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "z-alert"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,7 +14,7 @@ export class ZOtp {
|
|
|
14
14
|
this.otpRef = [...Array(this.inputNum)];
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h("div", { key: '
|
|
17
|
+
return (h("div", { key: '78c6a2c425f8b8d222be16db33bb9d12307015d1', class: "otp-container" }, h("div", { key: '18e0d6a908aabdfe49ce4613c094fb12166b0914', class: "digits-container" }, this.otp.map((_val, i) => (h("input", { class: this.status == InputStatus.ERROR ? "error" : null, onKeyDown: (e) => {
|
|
18
18
|
if (e.keyCode > 47) {
|
|
19
19
|
this.otpRef[i].value = "";
|
|
20
20
|
}
|
|
@@ -25,7 +25,7 @@ export class ZOtp {
|
|
|
25
25
|
}, onInput: (e) => {
|
|
26
26
|
this.otp[i] = e.target.value;
|
|
27
27
|
this.emitInputChange(this.otp.join(""));
|
|
28
|
-
}, type: "text", minlength: "1", maxlength: "1", autoComplete: "off", ref: (el) => (this.otpRef[i] = el) })))), h("z-input-message", { key: '
|
|
28
|
+
}, type: "text", minlength: "1", maxlength: "1", autoComplete: "off", ref: (el) => (this.otpRef[i] = el) })))), h("z-input-message", { key: '1d3207b1411926edb77efbc8a57e179972b77a2e', message: this.message, status: this.status })));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "z-otp"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|