@zanichelli/albe-web-components 13.4.0 → 13.5.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/CHANGELOG.md +2 -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 +3 -3
- package/dist/cjs/z-info-reveal.cjs.entry.js +28 -28
- package/dist/cjs/z-info-reveal.cjs.entry.js.map +1 -1
- package/dist/cjs/z-link.cjs.entry.js +1 -1
- package/dist/cjs/z-messages-pocket.cjs.entry.js +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.cjs.entry.js +1 -1
- package/dist/cjs/z-otp.cjs.entry.js +2 -2
- package/dist/cjs/z-pocket-message.cjs.entry.js +1 -1
- package/dist/cjs/z-pocket_3.cjs.entry.js +3 -3
- package/dist/cjs/z-popover.cjs.entry.js +1 -1
- package/dist/cjs/z-section-title.cjs.entry.js +1 -1
- package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
- package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
- package/dist/collection/components/z-info-reveal/index.js +94 -40
- package/dist/collection/components/z-info-reveal/index.js.map +1 -1
- package/dist/collection/components/z-info-reveal/styles.css +90 -61
- package/dist/collection/components/z-offcanvas/index.js +1 -1
- package/dist/collection/components/z-popover/index.js +1 -1
- package/dist/collection/components/z-section-title/index.js +1 -1
- package/dist/collection/components/z-skip-to-content/index.js +1 -1
- package/dist/collection/components/z-tag/index.js +2 -2
- package/dist/collection/components/z-visually-hidden/index.js +1 -1
- package/dist/collection/deprecated/z-link/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/pocket/z-messages-pocket/index.js +1 -1
- package/dist/collection/snowflakes/myz/pocket/z-pocket/index.js +1 -1
- package/dist/collection/snowflakes/myz/pocket/z-pocket-body/index.js +1 -1
- package/dist/collection/snowflakes/myz/pocket/z-pocket-header/index.js +1 -1
- package/dist/collection/snowflakes/myz/pocket/z-pocket-message/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/index16.js +1 -1
- package/dist/components/index17.js +1 -1
- package/dist/components/index18.js +1 -1
- package/dist/components/index19.js +1 -1
- package/dist/components/index21.js +1 -1
- package/dist/components/index22.js +1 -1
- package/dist/components/index23.js +1 -1
- package/dist/components/index24.js +1 -1
- package/dist/components/index25.js +1 -1
- package/dist/components/index27.js +2 -2
- package/dist/components/index3.js +1 -1
- package/dist/components/z-info-reveal.js +35 -33
- package/dist/components/z-info-reveal.js.map +1 -1
- package/dist/components/z-link.js +1 -1
- package/dist/components/z-messages-pocket.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-otp.js +2 -2
- package/dist/components/z-pocket-message.js +1 -1
- package/dist/components/z-section-title.js +1 -1
- package/dist/components/z-skip-to-content.js +1 -1
- package/dist/components/z-visually-hidden.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 +3 -3
- package/dist/esm/z-info-reveal.entry.js +29 -29
- package/dist/esm/z-info-reveal.entry.js.map +1 -1
- package/dist/esm/z-link.entry.js +1 -1
- package/dist/esm/z-messages-pocket.entry.js +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.entry.js +1 -1
- package/dist/esm/z-otp.entry.js +2 -2
- package/dist/esm/z-pocket-message.entry.js +1 -1
- package/dist/esm/z-pocket_3.entry.js +3 -3
- package/dist/esm/z-popover.entry.js +1 -1
- package/dist/esm/z-section-title.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +1 -1
- package/dist/esm/z-visually-hidden.entry.js +1 -1
- package/dist/types/components/z-info-reveal/index.d.ts +27 -15
- package/dist/types/components.d.ts +38 -6
- package/{www/build/p-de972497.entry.js → dist/web-components-library/p-02c08dd1.entry.js} +2 -2
- package/dist/web-components-library/{p-48c6050f.entry.js → p-164b4986.entry.js} +2 -2
- package/dist/web-components-library/{p-6b186398.entry.js → p-19ba8574.entry.js} +2 -2
- package/dist/web-components-library/p-2ae88c97.entry.js +2 -0
- package/dist/web-components-library/p-2ae88c97.entry.js.map +1 -0
- package/dist/web-components-library/p-2ed9ce08.entry.js +2 -0
- package/dist/web-components-library/{p-660b1494.entry.js → p-36f7ed38.entry.js} +2 -2
- package/dist/web-components-library/{p-e5e2e752.entry.js → p-41c72490.entry.js} +2 -2
- package/dist/web-components-library/{p-7579992d.entry.js → p-4cf24a3b.entry.js} +2 -2
- package/dist/web-components-library/{p-7ee8e11a.entry.js → p-4d944fcd.entry.js} +2 -2
- package/dist/web-components-library/{p-2ec544c4.entry.js → p-59875f0f.entry.js} +2 -2
- package/dist/web-components-library/{p-2ee5c83c.entry.js → p-5b260d8b.entry.js} +2 -2
- package/dist/web-components-library/{p-5c9e7645.entry.js → p-7787e428.entry.js} +2 -2
- package/{www/build/p-20226d0d.entry.js → dist/web-components-library/p-8ce62075.entry.js} +2 -2
- package/dist/web-components-library/{p-c49602b1.entry.js → p-acf5a569.entry.js} +2 -2
- package/dist/web-components-library/{p-06d2cd5d.entry.js → p-c2d44867.entry.js} +2 -2
- package/dist/web-components-library/p-ca65c04f.entry.js +2 -0
- package/dist/web-components-library/{p-fdc6cf5a.entry.js → p-d593548c.entry.js} +2 -2
- package/dist/web-components-library/{p-4e71c395.entry.js → p-e40b9b27.entry.js} +2 -2
- package/dist/web-components-library/{p-6f35845e.entry.js → p-e522c00c.entry.js} +2 -2
- package/dist/web-components-library/{p-7193d061.entry.js → p-eac25945.entry.js} +2 -2
- package/dist/web-components-library/{p-242b71f0.entry.js → p-eb10781f.entry.js} +2 -2
- 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/{dist/web-components-library/p-de972497.entry.js → www/build/p-02c08dd1.entry.js} +2 -2
- package/www/build/{p-48c6050f.entry.js → p-164b4986.entry.js} +2 -2
- package/www/build/{p-6b186398.entry.js → p-19ba8574.entry.js} +2 -2
- package/www/build/p-2ae88c97.entry.js +2 -0
- package/www/build/p-2ae88c97.entry.js.map +1 -0
- package/www/build/p-2ed9ce08.entry.js +2 -0
- package/www/build/{p-660b1494.entry.js → p-36f7ed38.entry.js} +2 -2
- package/www/build/{p-e5e2e752.entry.js → p-41c72490.entry.js} +2 -2
- package/www/build/{p-7579992d.entry.js → p-4cf24a3b.entry.js} +2 -2
- package/www/build/{p-7ee8e11a.entry.js → p-4d944fcd.entry.js} +2 -2
- package/www/build/{p-c239d399.js → p-57cd2f36.js} +1 -1
- package/www/build/{p-2ec544c4.entry.js → p-59875f0f.entry.js} +2 -2
- package/www/build/{p-2ee5c83c.entry.js → p-5b260d8b.entry.js} +2 -2
- package/www/build/{p-5c9e7645.entry.js → p-7787e428.entry.js} +2 -2
- package/{dist/web-components-library/p-20226d0d.entry.js → www/build/p-8ce62075.entry.js} +2 -2
- package/www/build/{p-c49602b1.entry.js → p-acf5a569.entry.js} +2 -2
- package/www/build/{p-06d2cd5d.entry.js → p-c2d44867.entry.js} +2 -2
- package/www/build/p-ca65c04f.entry.js +2 -0
- package/www/build/{p-fdc6cf5a.entry.js → p-d593548c.entry.js} +2 -2
- package/www/build/{p-4e71c395.entry.js → p-e40b9b27.entry.js} +2 -2
- package/www/build/{p-6f35845e.entry.js → p-e522c00c.entry.js} +2 -2
- package/www/build/{p-7193d061.entry.js → p-eac25945.entry.js} +2 -2
- package/www/build/{p-242b71f0.entry.js → p-eb10781f.entry.js} +2 -2
- 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-592a8b1f.entry.js +0 -2
- package/dist/web-components-library/p-592a8b1f.entry.js.map +0 -1
- package/dist/web-components-library/p-b4888995.entry.js +0 -2
- package/dist/web-components-library/p-b4d30129.entry.js +0 -2
- package/www/build/p-592a8b1f.entry.js +0 -2
- package/www/build/p-592a8b1f.entry.js.map +0 -1
- package/www/build/p-b4888995.entry.js +0 -2
- package/www/build/p-b4d30129.entry.js +0 -2
- /package/dist/web-components-library/{p-de972497.entry.js.map → p-02c08dd1.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-48c6050f.entry.js.map → p-164b4986.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6b186398.entry.js.map → p-19ba8574.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b4888995.entry.js.map → p-2ed9ce08.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-660b1494.entry.js.map → p-36f7ed38.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-e5e2e752.entry.js.map → p-41c72490.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7579992d.entry.js.map → p-4cf24a3b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7ee8e11a.entry.js.map → p-4d944fcd.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2ec544c4.entry.js.map → p-59875f0f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-2ee5c83c.entry.js.map → p-5b260d8b.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-5c9e7645.entry.js.map → p-7787e428.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-20226d0d.entry.js.map → p-8ce62075.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-c49602b1.entry.js.map → p-acf5a569.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-06d2cd5d.entry.js.map → p-c2d44867.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-b4d30129.entry.js.map → p-ca65c04f.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-fdc6cf5a.entry.js.map → p-d593548c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-4e71c395.entry.js.map → p-e40b9b27.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-6f35845e.entry.js.map → p-e522c00c.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-7193d061.entry.js.map → p-eac25945.entry.js.map} +0 -0
- /package/dist/web-components-library/{p-242b71f0.entry.js.map → p-eb10781f.entry.js.map} +0 -0
- /package/www/build/{p-de972497.entry.js.map → p-02c08dd1.entry.js.map} +0 -0
- /package/www/build/{p-48c6050f.entry.js.map → p-164b4986.entry.js.map} +0 -0
- /package/www/build/{p-6b186398.entry.js.map → p-19ba8574.entry.js.map} +0 -0
- /package/www/build/{p-b4888995.entry.js.map → p-2ed9ce08.entry.js.map} +0 -0
- /package/www/build/{p-660b1494.entry.js.map → p-36f7ed38.entry.js.map} +0 -0
- /package/www/build/{p-e5e2e752.entry.js.map → p-41c72490.entry.js.map} +0 -0
- /package/www/build/{p-7579992d.entry.js.map → p-4cf24a3b.entry.js.map} +0 -0
- /package/www/build/{p-7ee8e11a.entry.js.map → p-4d944fcd.entry.js.map} +0 -0
- /package/www/build/{p-2ec544c4.entry.js.map → p-59875f0f.entry.js.map} +0 -0
- /package/www/build/{p-2ee5c83c.entry.js.map → p-5b260d8b.entry.js.map} +0 -0
- /package/www/build/{p-5c9e7645.entry.js.map → p-7787e428.entry.js.map} +0 -0
- /package/www/build/{p-20226d0d.entry.js.map → p-8ce62075.entry.js.map} +0 -0
- /package/www/build/{p-c49602b1.entry.js.map → p-acf5a569.entry.js.map} +0 -0
- /package/www/build/{p-06d2cd5d.entry.js.map → p-c2d44867.entry.js.map} +0 -0
- /package/www/build/{p-b4d30129.entry.js.map → p-ca65c04f.entry.js.map} +0 -0
- /package/www/build/{p-fdc6cf5a.entry.js.map → p-d593548c.entry.js.map} +0 -0
- /package/www/build/{p-4e71c395.entry.js.map → p-e40b9b27.entry.js.map} +0 -0
- /package/www/build/{p-6f35845e.entry.js.map → p-e522c00c.entry.js.map} +0 -0
- /package/www/build/{p-7193d061.entry.js.map → p-eac25945.entry.js.map} +0 -0
- /package/www/build/{p-242b71f0.entry.js.map → p-eb10781f.entry.js.map} +0 -0
|
@@ -39,7 +39,7 @@ const ZMyzCardComponent = class {
|
|
|
39
39
|
return elemClasses;
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (index.h("div", { key: '
|
|
42
|
+
return (index.h("div", { key: 'a72f39c9ad9161449a5f58965e2d93d83a107490', class: this.retrieveClass(), tabindex: "0" }, index.h("slot", { key: '66669fd94e4018f6c6dd05ff9d9bda41c0f007bf' })));
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
ZMyzCardComponent.style = ZMyzCardStyle0;
|
|
@@ -52,7 +52,7 @@ const ZMyzCardBody = class {
|
|
|
52
52
|
index.registerInstance(this, hostRef);
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
|
-
return (index.h("div", { key: '
|
|
55
|
+
return (index.h("div", { key: '12386f13964444007e6bef9219e791d01f131d9a' }, index.h("slot", { key: '10378c336d6a6c70dea11375397fd734dc570f53', name: "alert" }), index.h("slot", { key: '7dfff15df0a1a32f63ac329a4be3b11d7d4554f6', name: "cover" })));
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
ZMyzCardBody.style = ZMyzCardBodyStyle0;
|
|
@@ -72,7 +72,7 @@ const ZMyzCardCover = class {
|
|
|
72
72
|
this.img = this.defaultimg;
|
|
73
73
|
}
|
|
74
74
|
render() {
|
|
75
|
-
return (index.h("img", { key: '
|
|
75
|
+
return (index.h("img", { key: '1123789029226a12e2953a6b58d5030eadec11ab', class: this.faded && "faded", onError: this.hadleOnImageError.bind(this), alt: this.titolo, src: this.img }));
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
ZMyzCardCover.style = ZMyzCardCoverStyle0;
|
|
@@ -108,7 +108,7 @@ const ZMyzCardHeader = class {
|
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
110
|
render() {
|
|
111
|
-
return (index.h("header", { key: '
|
|
111
|
+
return (index.h("header", { key: 'b78bcd035a80f910780071965ac3226cfe13d307', class: this.retrieveClass() }, index.h("slot", { key: '012280b6c5689ce3266f63460002bc8aba202493', name: "aria-heading" }), index.h("span", { key: 'ee783cc471606e97a88809eddf6d0436e07d15e7', class: "card-title", ref: (el) => (this.ellipsis = el), title: this.getTitle() }, this.titolo), index.h("slot", { key: '0a628219decd82055dc7e7b6c0b6fc30570e268e', name: "icon" })));
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
114
|
ZMyzCardHeader.style = ZMyzCardHeaderStyle0;
|
|
@@ -26,7 +26,7 @@ const ZMyzList = class {
|
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
28
|
const lastElem = this.list ? this.list.length - 1 : -1;
|
|
29
|
-
return (index.h("ul", { key: '
|
|
29
|
+
return (index.h("ul", { key: '943b3633a4b233466186116698cb65f49ecde7ce' }, this.list &&
|
|
30
30
|
this.list.map((bean, i) => (index.h("z-myz-list-item", { listitemid: bean.listitemid, text: bean.text, link: bean.link, linktarget: bean.linktarget, icon: bean.icon, underlined: lastElem != i })))));
|
|
31
31
|
}
|
|
32
32
|
static get watchers() { return {
|
|
@@ -24,7 +24,7 @@ const ZOtp = class {
|
|
|
24
24
|
this.otpRef = [...Array(this.inputNum)];
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (index.h("div", { key: '
|
|
27
|
+
return (index.h("div", { key: 'a7f919ee8d83098adb6303d6af70a701684d9752', class: "otp-container" }, index.h("div", { key: '07143c3078db7cd5dd9f5bf48c977d87df9457e9', class: "digits-container" }, this.otp.map((_val, i) => (index.h("input", { class: this.status == index$1.InputStatus.ERROR ? "error" : null, onKeyDown: (e) => {
|
|
28
28
|
if (e.keyCode > 47) {
|
|
29
29
|
this.otpRef[i].value = "";
|
|
30
30
|
}
|
|
@@ -35,7 +35,7 @@ const ZOtp = class {
|
|
|
35
35
|
}, onInput: (e) => {
|
|
36
36
|
this.otp[i] = e.target.value;
|
|
37
37
|
this.emitInputChange(this.otp.join(""));
|
|
38
|
-
}, type: "text", minlength: "1", maxlength: "1", autoComplete: "off", ref: (el) => (this.otpRef[i] = el) })))), index.h("z-input-message", { key: '
|
|
38
|
+
}, type: "text", minlength: "1", maxlength: "1", autoComplete: "off", ref: (el) => (this.otpRef[i] = el) })))), index.h("z-input-message", { key: '19663f9110cfe610c76ca900938192fb4f7fb96c', message: this.message, status: this.status })));
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
ZOtp.style = ZOtpStyle0;
|
|
@@ -12,7 +12,7 @@ const ZPocketMessage = class {
|
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (index.h("div", { key: '
|
|
15
|
+
return (index.h("div", { key: 'db10fcdf23fbd0da7833e01f8d72a6302f6cadba' }, index.h("z-icon", { key: '7c241ba1a147f71db15162c5ee6d84738536430e', name: "exclamation-circle" }), index.h("div", { key: '7ec8936f539f19047c644be7b9ec1dd985d3d42e', class: "content" }, index.h("slot", { key: 'a6cd9ab932dcac28058640df1a08da9f174e1a2b' })), index.h("div", { key: '376e912ec9d49a7148b620b54ce26d9e8a278f1f', class: "cta-wrapper" }, index.h("slot", { key: '3ccbb7a2cd41d211ab76734fb73e7b23aa100d9b', name: "cta" }))));
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
ZPocketMessage.style = ZPocketMessageStyle0;
|
|
@@ -64,7 +64,7 @@ const ZPocket = class {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return (index.h("div", { key: '
|
|
67
|
+
return (index.h("div", { key: 'e900c7a30cc100691a08e99eef3e75ab09228ac6' }, index.h("div", { key: '789f4dd2b162f4693b4d6d4d0636d6614a69e2a3', "data-action": "pocketBackground", "data-pocket": this.pocketid, class: `background ${this.status}`, onClick: (e) => this.handleBackgroundClick(e) }), index.h("div", { key: 'f53572738d1fc377efafa3f4c9b2b012eb8dcd87', id: this.pocketid, class: "content-wrapper" }, index.h("div", { key: '8bc1cdbc0c8cd10bb978dd4e04da88da183a2a0c' }, index.h("slot", { key: '6ac22e14a792914aca4dca5a7da5bd3999a6dd17' })))));
|
|
68
68
|
}
|
|
69
69
|
get hostElement() { return index.getElement(this); }
|
|
70
70
|
static get watchers() { return {
|
|
@@ -88,7 +88,7 @@ const ZPocketBody = class {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
render() {
|
|
91
|
-
return (index.h("main", { key: '
|
|
91
|
+
return (index.h("main", { key: 'c93989e78b34be843571bb21bbd26f324ae86456', class: this.status }, index.h("slot", { key: 'f4755713e7084a59b91d35456502d0456a2aa339' })));
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
94
|
ZPocketBody.style = ZPocketBodyStyle0;
|
|
@@ -118,7 +118,7 @@ const ZPocketHeader = class {
|
|
|
118
118
|
mc.on("pandown", () => this.emitPocketHeaderPan("down"));
|
|
119
119
|
}
|
|
120
120
|
render() {
|
|
121
|
-
return (index.h("header", { key: '
|
|
121
|
+
return (index.h("header", { key: '03faf1e1005718b682ebae5e663d880e6b3763a2', role: "button", tabindex: 0, onClick: () => this.emitPocketHeaderClick(), onKeyPress: (ev) => utils.handleKeyboardSubmit(ev, this.emitPocketHeaderClick), ref: (el) => (this.swipeWrap = el) }, index.h("slot", { key: '329c89a202e0a5f351c080ed513ce90e873caa75' })));
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
ZPocketHeader.style = ZPocketHeaderStyle0;
|
|
@@ -304,7 +304,7 @@ const ZPopover = class {
|
|
|
304
304
|
this.onOpen();
|
|
305
305
|
}
|
|
306
306
|
render() {
|
|
307
|
-
return index.h("slot", { key: '
|
|
307
|
+
return index.h("slot", { key: 'dcaaf8ad7c023e4f7b681aa8e39273d485e69d80' });
|
|
308
308
|
}
|
|
309
309
|
get host() { return index.getElement(this); }
|
|
310
310
|
static get watchers() { return {
|
|
@@ -18,7 +18,7 @@ const ZSectionTitle = class {
|
|
|
18
18
|
this.hasSecondaryTitle = !!this.host.querySelector("[slot=secondary-title]");
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (index.h(index.Host, { key: '
|
|
21
|
+
return (index.h(index.Host, { key: 'd691017e2953d129c291a8d1e8fa5411f0faf457' }, index.h("slot", { key: '99c8dce52dde7a85c2dd7423d08875b9a5ab4dfe', name: "secondary-title" }), !this.hasSecondaryTitle && this.dividerPosition === index$1.ZSectionTitleDividerPosition.BEFORE && (index.h("z-divider", { size: index$1.DividerSize.LARGE, color: "z-section-title--divider-color" })), index.h("slot", { key: 'de5810f9b9a3db9c2fb81a59ac3dda261079b81f', name: "primary-title" }), !this.hasSecondaryTitle && this.dividerPosition === index$1.ZSectionTitleDividerPosition.AFTER && (index.h("z-divider", { size: index$1.DividerSize.LARGE, color: "z-section-title--divider-color" }))));
|
|
22
22
|
}
|
|
23
23
|
get host() { return index.getElement(this); }
|
|
24
24
|
};
|
|
@@ -52,7 +52,7 @@ const ZSkipToContent = class {
|
|
|
52
52
|
this.visible = false;
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
|
-
return (index.h(index.Host, { key: '
|
|
55
|
+
return (index.h(index.Host, { key: 'a23874893887060f9581859334bd1a21603a46bb', class: {
|
|
56
56
|
[this.variant]: true,
|
|
57
57
|
"skip-to-content-visible": this.visible,
|
|
58
58
|
} }, this.links.map((link, i) => {
|
|
@@ -12,7 +12,7 @@ const ZVisuallyHidden = class {
|
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return index.h("slot", { key: '
|
|
15
|
+
return index.h("slot", { key: '3621cee7a23fe68812b92d58a239dce03caf4724' });
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
ZVisuallyHidden.style = ZVisuallyHiddenStyle0;
|
|
@@ -1,58 +1,53 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { InfoRevealPosition } from "../../beans";
|
|
2
|
+
import { ControlSize, InfoRevealPosition } from "../../beans";
|
|
3
3
|
/**
|
|
4
4
|
* Info reveal component.
|
|
5
5
|
*
|
|
6
|
-
* @slot -
|
|
7
|
-
*
|
|
8
|
-
* @cssprop --z-info-reveal-theme--surface - background color of the info reveal panel.
|
|
9
|
-
* @cssprop --z-info-reveal-theme--text - foreground color of the info reveal panel.
|
|
10
|
-
* @cssprop --z-info-reveal-shadow - shadow of the info reveal panel.
|
|
11
|
-
* @cssprop --z-info-reveal-max-width - max width of the info reveal panel.
|
|
6
|
+
* @slot - content of the info panel.
|
|
7
|
+
* @cssprop --z-info-reveal-panel-width - Width of the info panel.
|
|
12
8
|
*/
|
|
13
9
|
export class ZInfoReveal {
|
|
14
10
|
constructor() {
|
|
15
11
|
this.icon = "informationsource";
|
|
16
12
|
this.position = InfoRevealPosition.BOTTOM_RIGHT;
|
|
17
13
|
this.label = undefined;
|
|
14
|
+
this.ariaLabel = "Apri pannello informazioni";
|
|
15
|
+
this.size = ControlSize.BIG;
|
|
18
16
|
this.open = false;
|
|
19
|
-
this.currentIndex = null;
|
|
20
|
-
}
|
|
21
|
-
watchItems() {
|
|
22
|
-
Array.from(this.el.children).forEach((child, index) => {
|
|
23
|
-
if (this.currentIndex === index) {
|
|
24
|
-
child.setAttribute("data-current", "");
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
child.removeAttribute("data-current");
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
17
|
}
|
|
31
18
|
/**
|
|
32
|
-
*
|
|
19
|
+
* Adjust the position of the info panel to prevent exiting the viewport.
|
|
33
20
|
*/
|
|
34
|
-
|
|
35
|
-
this.
|
|
36
|
-
|
|
21
|
+
adjustPanelPosition() {
|
|
22
|
+
if (!this.open || !this.panel) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const rect = this.host.getBoundingClientRect();
|
|
26
|
+
const gridMargin = parseInt(getComputedStyle(document.documentElement).getPropertyValue("--grid-margin"), 10);
|
|
27
|
+
const pageWidth = document.documentElement.offsetWidth;
|
|
28
|
+
// Available space for the info panel to grow towards the edge of the page, based on the `position` prop.
|
|
29
|
+
const availableSpace = Math.round((this.position.includes("left") ? pageWidth - rect.left : rect.right) - gridMargin);
|
|
30
|
+
this.panel.style.maxWidth = `${availableSpace}px`;
|
|
37
31
|
}
|
|
38
32
|
/**
|
|
39
|
-
*
|
|
33
|
+
* Toggle the open state of the info panel.
|
|
40
34
|
*/
|
|
41
|
-
|
|
42
|
-
this.open =
|
|
35
|
+
togglePanel() {
|
|
36
|
+
this.open = !this.open;
|
|
43
37
|
}
|
|
44
38
|
/**
|
|
45
|
-
*
|
|
46
|
-
* It closes the info box after the last info has been navigated.
|
|
39
|
+
* Close the info panel.
|
|
47
40
|
*/
|
|
48
|
-
|
|
49
|
-
this.
|
|
50
|
-
|
|
51
|
-
|
|
41
|
+
closePanel() {
|
|
42
|
+
this.open = false;
|
|
43
|
+
}
|
|
44
|
+
handleEscapeKey(event) {
|
|
45
|
+
if (event.key === "Escape" && this.open) {
|
|
46
|
+
this.closePanel();
|
|
52
47
|
}
|
|
53
48
|
}
|
|
54
49
|
render() {
|
|
55
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'db425718606f2b7f411fab9cdac57d91ce88560c', open: this.open }, h("button", { key: 'a70882d456af51c526726220a05864ab54ea86d6', class: "z-info-reveal-trigger", type: "button", onClick: this.togglePanel.bind(this), "aria-label": !this.label ? this.ariaLabel : undefined, "aria-expanded": this.open ? "true" : "false", "aria-controls": "z-info-reveal-panel" }, this.icon && h("z-icon", { name: this.icon }), this.label && h("span", { class: "z-info-reveal-label" }, this.label)), h("div", { key: '765172552ea823e07e010a68c201f5fa76fbc93d', class: "z-info-reveal-panel", id: "z-info-reveal-panel", ref: (el) => (this.panel = el), hidden: !this.open }, h("slot", { key: 'f95ed8f0c6c94758b389139dde42289ef8b78ffc' }), h("button", { key: 'a80d002f3d07f101af8bcc84ef2a78d85da7036f', class: "z-info-reveal-close", type: "button", onClick: this.closePanel.bind(this), "aria-label": "Chiudi pannello informazioni" }, h("z-icon", { key: '015386db04b0f4bdb2fefd9da623fb03327fbf86', name: "multiply" })))));
|
|
56
51
|
}
|
|
57
52
|
static get is() { return "z-info-reveal"; }
|
|
58
53
|
static get encapsulation() { return "shadow"; }
|
|
@@ -80,7 +75,7 @@ export class ZInfoReveal {
|
|
|
80
75
|
"optional": true,
|
|
81
76
|
"docs": {
|
|
82
77
|
"tags": [],
|
|
83
|
-
"text": "Name of the icon for the
|
|
78
|
+
"text": "Name of the icon for the trigger button"
|
|
84
79
|
},
|
|
85
80
|
"attribute": "icon",
|
|
86
81
|
"reflect": false,
|
|
@@ -104,7 +99,7 @@ export class ZInfoReveal {
|
|
|
104
99
|
"optional": true,
|
|
105
100
|
"docs": {
|
|
106
101
|
"tags": [],
|
|
107
|
-
"text": "
|
|
102
|
+
"text": "The position of the z-info-reveal in the page. This helps to correctly place the info panel.\nThe panel will grow in the opposite direction of the position.\nFor example, with the default position `BOTTOM_RIGHT`, the panel will grow vertically upwards and horizontally to the left."
|
|
108
103
|
},
|
|
109
104
|
"attribute": "position",
|
|
110
105
|
"reflect": true,
|
|
@@ -122,24 +117,83 @@ export class ZInfoReveal {
|
|
|
122
117
|
"optional": true,
|
|
123
118
|
"docs": {
|
|
124
119
|
"tags": [],
|
|
125
|
-
"text": "
|
|
120
|
+
"text": "Label of the trigger button."
|
|
126
121
|
},
|
|
127
122
|
"attribute": "label",
|
|
128
123
|
"reflect": false
|
|
124
|
+
},
|
|
125
|
+
"ariaLabel": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"mutable": false,
|
|
128
|
+
"complexType": {
|
|
129
|
+
"original": "string",
|
|
130
|
+
"resolved": "string",
|
|
131
|
+
"references": {}
|
|
132
|
+
},
|
|
133
|
+
"required": false,
|
|
134
|
+
"optional": false,
|
|
135
|
+
"docs": {
|
|
136
|
+
"tags": [],
|
|
137
|
+
"text": "Aria label of the trigger button. It will be only used when `label` prop is empty."
|
|
138
|
+
},
|
|
139
|
+
"attribute": "aria-label",
|
|
140
|
+
"reflect": false,
|
|
141
|
+
"defaultValue": "\"Apri pannello informazioni\""
|
|
142
|
+
},
|
|
143
|
+
"size": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"mutable": false,
|
|
146
|
+
"complexType": {
|
|
147
|
+
"original": "ControlSize",
|
|
148
|
+
"resolved": "ControlSize.BIG | ControlSize.SMALL | ControlSize.X_SMALL",
|
|
149
|
+
"references": {
|
|
150
|
+
"ControlSize": {
|
|
151
|
+
"location": "import",
|
|
152
|
+
"path": "../../beans",
|
|
153
|
+
"id": "src/beans/index.tsx::ControlSize"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"required": false,
|
|
158
|
+
"optional": true,
|
|
159
|
+
"docs": {
|
|
160
|
+
"tags": [],
|
|
161
|
+
"text": "Size of the trigger button"
|
|
162
|
+
},
|
|
163
|
+
"attribute": "size",
|
|
164
|
+
"reflect": true,
|
|
165
|
+
"defaultValue": "ControlSize.BIG"
|
|
129
166
|
}
|
|
130
167
|
};
|
|
131
168
|
}
|
|
132
169
|
static get states() {
|
|
133
170
|
return {
|
|
134
|
-
"open": {}
|
|
135
|
-
"currentIndex": {}
|
|
171
|
+
"open": {}
|
|
136
172
|
};
|
|
137
173
|
}
|
|
138
|
-
static get elementRef() { return "
|
|
174
|
+
static get elementRef() { return "host"; }
|
|
139
175
|
static get watchers() {
|
|
140
176
|
return [{
|
|
141
|
-
"propName": "
|
|
142
|
-
"methodName": "
|
|
177
|
+
"propName": "position",
|
|
178
|
+
"methodName": "adjustPanelPosition"
|
|
179
|
+
}, {
|
|
180
|
+
"propName": "open",
|
|
181
|
+
"methodName": "adjustPanelPosition"
|
|
182
|
+
}];
|
|
183
|
+
}
|
|
184
|
+
static get listeners() {
|
|
185
|
+
return [{
|
|
186
|
+
"name": "resize",
|
|
187
|
+
"method": "adjustPanelPosition",
|
|
188
|
+
"target": "window",
|
|
189
|
+
"capture": false,
|
|
190
|
+
"passive": true
|
|
191
|
+
}, {
|
|
192
|
+
"name": "keydown",
|
|
193
|
+
"method": "handleEscapeKey",
|
|
194
|
+
"target": "window",
|
|
195
|
+
"capture": true,
|
|
196
|
+
"passive": false
|
|
143
197
|
}];
|
|
144
198
|
}
|
|
145
199
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-info-reveal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/z-info-reveal/index.tsx"],"names":[],"mappings":"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","sourcesContent":["import {Component, h, Prop, State, Host, Listen, Watch, Element} from \"@stencil/core\";\nimport {ControlSize, InfoRevealPosition} from \"../../beans\";\n\n/**\n * Info reveal component.\n *\n * @slot - content of the info panel.\n * @cssprop --z-info-reveal-panel-width - Width of the info panel.\n */\n@Component({\n tag: \"z-info-reveal\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZInfoReveal {\n /** Name of the icon for the trigger button */\n @Prop()\n icon? = \"informationsource\";\n\n /**\n * The position of the z-info-reveal in the page. This helps to correctly place the info panel.\n * The panel will grow in the opposite direction of the position.\n * For example, with the default position `BOTTOM_RIGHT`, the panel will grow vertically upwards and horizontally to the left.\n */\n @Prop({reflect: true})\n position?: InfoRevealPosition = InfoRevealPosition.BOTTOM_RIGHT;\n\n /** Label of the trigger button. */\n @Prop()\n label?: string;\n\n /** Aria label of the trigger button. It will be only used when `label` prop is empty. */\n @Prop()\n ariaLabel = \"Apri pannello informazioni\";\n\n /** Size of the trigger button */\n @Prop({reflect: true})\n size?: ControlSize = ControlSize.BIG;\n\n /** Whether the info panel is open. */\n @State()\n open = false;\n\n @Element() host: HTMLZInfoRevealElement;\n\n private panel: HTMLDivElement;\n\n /**\n * Adjust the position of the info panel to prevent exiting the viewport.\n */\n @Watch(\"position\")\n @Watch(\"open\")\n @Listen(\"resize\", {target: \"window\", passive: true})\n adjustPanelPosition(): void {\n if (!this.open || !this.panel) {\n return;\n }\n\n const rect = this.host.getBoundingClientRect();\n const gridMargin = parseInt(getComputedStyle(document.documentElement).getPropertyValue(\"--grid-margin\"), 10);\n const pageWidth = document.documentElement.offsetWidth;\n // Available space for the info panel to grow towards the edge of the page, based on the `position` prop.\n const availableSpace = Math.round(\n (this.position.includes(\"left\") ? pageWidth - rect.left : rect.right) - gridMargin\n );\n this.panel.style.maxWidth = `${availableSpace}px`;\n }\n\n /**\n * Toggle the open state of the info panel.\n */\n private togglePanel(): void {\n this.open = !this.open;\n }\n\n /**\n * Close the info panel.\n */\n private closePanel(): void {\n this.open = false;\n }\n\n @Listen(\"keydown\", {target: \"window\", capture: true})\n handleEscapeKey(event: KeyboardEvent): void {\n if (event.key === \"Escape\" && this.open) {\n this.closePanel();\n }\n }\n\n render(): HTMLZInfoRevealElement {\n return (\n <Host open={this.open}>\n <button\n class=\"z-info-reveal-trigger\"\n type=\"button\"\n onClick={this.togglePanel.bind(this)}\n aria-label={!this.label ? this.ariaLabel : undefined}\n aria-expanded={this.open ? \"true\" : \"false\"}\n aria-controls=\"z-info-reveal-panel\"\n >\n {this.icon && <z-icon name={this.icon} />}\n {this.label && <span class=\"z-info-reveal-label\">{this.label}</span>}\n </button>\n <div\n class=\"z-info-reveal-panel\"\n id=\"z-info-reveal-panel\"\n ref={(el) => (this.panel = el)}\n hidden={!this.open}\n >\n <slot></slot>\n <button\n class=\"z-info-reveal-close\"\n type=\"button\"\n onClick={this.closePanel.bind(this)}\n aria-label=\"Chiudi pannello informazioni\"\n >\n <z-icon name=\"multiply\" />\n </button>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1,103 +1,132 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
--z-info-reveal-
|
|
3
|
-
--
|
|
4
|
-
--z-info-reveal-shadow: var(--shadow-2);
|
|
5
|
-
--z-info-reveal-max-width: 375px; /* defaults to average width of mobile devices */
|
|
2
|
+
--z-info-reveal-panel-width: 384px; /* defaults half the size of the mobile breakpoint */
|
|
3
|
+
--trigger-size: 44px;
|
|
6
4
|
|
|
7
5
|
position: relative;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
font-size: var(--font-size-3);
|
|
13
|
-
font-weight: var(--font-rg);
|
|
14
|
-
letter-spacing: 0;
|
|
15
|
-
line-height: 1.5;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:host * {
|
|
9
|
+
box-sizing: border-box;
|
|
16
10
|
}
|
|
17
11
|
|
|
18
12
|
button {
|
|
13
|
+
--trigger-icon-size: calc(var(--trigger-size) / 2);
|
|
14
|
+
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
19
18
|
padding: 0;
|
|
20
19
|
border: none;
|
|
21
20
|
background-color: transparent;
|
|
22
|
-
border-radius: 0;
|
|
23
|
-
color: inherit;
|
|
24
21
|
cursor: pointer;
|
|
25
|
-
fill: currentcolor;
|
|
26
22
|
font-family: inherit;
|
|
27
|
-
font-size: inherit;
|
|
28
|
-
font-weight: inherit;
|
|
29
23
|
letter-spacing: inherit;
|
|
30
|
-
line-height: inherit;
|
|
31
24
|
}
|
|
32
25
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
display: flex;
|
|
26
|
+
button:focus:focus-visible {
|
|
27
|
+
box-shadow: var(--shadow-focus-primary);
|
|
28
|
+
outline: none;
|
|
38
29
|
}
|
|
39
30
|
|
|
40
31
|
.z-info-reveal-trigger {
|
|
32
|
+
min-width: var(--trigger-size);
|
|
33
|
+
height: var(--trigger-size);
|
|
34
|
+
padding: calc((var(--trigger-size) - var(--trigger-icon-size)) / 2);
|
|
35
|
+
background-color: var(--color-surface05);
|
|
36
|
+
border-radius: var(--border-radius);
|
|
37
|
+
color: var(--color-text04);
|
|
38
|
+
column-gap: var(--space-unit);
|
|
39
|
+
font-weight: var(--font-sb);
|
|
40
|
+
line-height: 1rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host([size="big"]) .z-info-reveal-trigger {
|
|
44
|
+
font-size: var(--font-size-2);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host([size="small"]) .z-info-reveal-trigger {
|
|
48
|
+
--trigger-size: 36px;
|
|
49
|
+
|
|
50
|
+
font-size: var(--font-size-2);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:host([size="x-small"]) .z-info-reveal-trigger {
|
|
54
|
+
--trigger-size: 32px;
|
|
55
|
+
|
|
56
|
+
padding: var(--space-unit);
|
|
57
|
+
font-size: var(--font-size-1);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:host > .z-info-reveal-trigger z-icon {
|
|
61
|
+
--z-icon-width: var(--trigger-icon-size);
|
|
62
|
+
--z-icon-height: var(--trigger-icon-size);
|
|
63
|
+
|
|
41
64
|
display: flex;
|
|
42
|
-
|
|
43
|
-
height: 100%;
|
|
44
|
-
align-items: center;
|
|
45
|
-
padding: calc(var(--space-unit) / 2);
|
|
46
|
-
box-shadow: var(--z-info-reveal-shadow);
|
|
47
|
-
column-gap: calc(var(--space-unit) / 2);
|
|
65
|
+
fill: var(--color-icon03);
|
|
48
66
|
}
|
|
49
67
|
|
|
50
|
-
:host([
|
|
51
|
-
|
|
52
|
-
flex-direction: row-reverse;
|
|
68
|
+
:host([size="small"]) > .z-info-reveal-trigger z-icon {
|
|
69
|
+
--trigger-icon-size: 18px;
|
|
53
70
|
}
|
|
54
71
|
|
|
55
|
-
:host([
|
|
56
|
-
|
|
72
|
+
:host([size="x-small"]) > .z-info-reveal-trigger z-icon {
|
|
73
|
+
--trigger-icon-size: 16px;
|
|
57
74
|
}
|
|
58
75
|
|
|
59
|
-
.info-
|
|
76
|
+
.z-info-reveal-panel {
|
|
60
77
|
position: absolute;
|
|
61
78
|
display: flex;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
79
|
+
width: var(--z-info-reveal-panel-width);
|
|
80
|
+
height: fit-content;
|
|
81
|
+
align-items: flex-start;
|
|
82
|
+
padding: calc(var(--space-unit) * 1.5);
|
|
83
|
+
background-color: var(--color-surface05);
|
|
84
|
+
border-radius: var(--border-radius);
|
|
85
|
+
box-shadow: var(--shadow-4);
|
|
86
|
+
color: var(--color-text04);
|
|
87
|
+
column-gap: var(--space-unit);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.z-info-reveal-panel[hidden] {
|
|
91
|
+
display: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:host([position="top_left"]) .z-info-reveal-panel,
|
|
95
|
+
:host([position="top_right"]) .z-info-reveal-panel {
|
|
96
|
+
top: 0;
|
|
68
97
|
}
|
|
69
98
|
|
|
70
|
-
:host([position="bottom_left"]) .info-
|
|
71
|
-
:host([position="bottom_right"]) .info-
|
|
99
|
+
:host([position="bottom_left"]) .z-info-reveal-panel,
|
|
100
|
+
:host([position="bottom_right"]) .z-info-reveal-panel {
|
|
72
101
|
bottom: 0;
|
|
73
102
|
}
|
|
74
103
|
|
|
75
|
-
:host([position="top_right"]) .info-
|
|
76
|
-
:host([position="bottom_right"]) .info-
|
|
104
|
+
:host([position="top_right"]) .z-info-reveal-panel,
|
|
105
|
+
:host([position="bottom_right"]) .z-info-reveal-panel {
|
|
77
106
|
right: 0;
|
|
78
107
|
}
|
|
79
108
|
|
|
80
|
-
:host([position="top_left"]) .info-
|
|
81
|
-
:host([position="bottom_left"]) .info-
|
|
109
|
+
:host([position="top_left"]) .z-info-reveal-panel,
|
|
110
|
+
:host([position="bottom_left"]) .z-info-reveal-panel {
|
|
82
111
|
left: 0;
|
|
83
|
-
flex-direction: row-reverse;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
::slotted(*) {
|
|
87
|
-
display: none;
|
|
88
|
-
width: max-content;
|
|
89
112
|
}
|
|
90
113
|
|
|
91
|
-
|
|
92
|
-
|
|
114
|
+
.z-info-reveal-panel .z-info-reveal-close {
|
|
115
|
+
margin-left: auto;
|
|
93
116
|
}
|
|
94
117
|
|
|
95
|
-
|
|
96
|
-
:
|
|
97
|
-
align-self: flex-start;
|
|
118
|
+
.z-info-reveal-panel z-icon {
|
|
119
|
+
fill: var(--color-icon03);
|
|
98
120
|
}
|
|
99
121
|
|
|
100
|
-
:
|
|
101
|
-
|
|
102
|
-
|
|
122
|
+
@media (max-width: 767px) {
|
|
123
|
+
.z-info-reveal-panel {
|
|
124
|
+
position: fixed;
|
|
125
|
+
top: auto !important;
|
|
126
|
+
bottom: auto !important;
|
|
127
|
+
left: var(--grid-margin) !important;
|
|
128
|
+
width: calc(100% - (var(--grid-margin) * 2)) !important;
|
|
129
|
+
max-width: none !important;
|
|
130
|
+
margin-top: calc(var(--trigger-size) * -1);
|
|
131
|
+
}
|
|
103
132
|
}
|
|
@@ -25,7 +25,7 @@ export class ZOffcanvas {
|
|
|
25
25
|
this.open = false;
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '554986cba00c7380f17f737267b450dcf0c3f52e', class: { "skip-animation": this.skipLoadAnimation } }, h("div", { key: 'dc736f68ce6842d9d7e65093e140f5eaebd460f9', role: "presentation", class: "canvas-container", onTransitionEnd: () => this.handlePageOverflow() }, h("div", { key: '416b060ab45249f20e0776cb5a65d27c71cd349b', role: "presentation", class: "canvas-content" }, h("slot", { key: 'e7a92fbd0696f8ed5a215610a3a3f78266ccec2f', name: "canvasContent" }))), this.variant == OffCanvasVariant.OVERLAY && (h("div", { class: "canvas-background", "data-action": "canvasBackground", onClick: () => (this.open = false) }))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "z-offcanvas"; }
|
|
31
31
|
static get encapsulation() { return "scoped"; }
|
|
@@ -301,7 +301,7 @@ export class ZPopover {
|
|
|
301
301
|
this.onOpen();
|
|
302
302
|
}
|
|
303
303
|
render() {
|
|
304
|
-
return h("slot", { key: '
|
|
304
|
+
return h("slot", { key: 'dcaaf8ad7c023e4f7b681aa8e39273d485e69d80' });
|
|
305
305
|
}
|
|
306
306
|
static get is() { return "z-popover"; }
|
|
307
307
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,7 +18,7 @@ export class ZSectionTitle {
|
|
|
18
18
|
this.hasSecondaryTitle = !!this.host.querySelector("[slot=secondary-title]");
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: 'd691017e2953d129c291a8d1e8fa5411f0faf457' }, h("slot", { key: '99c8dce52dde7a85c2dd7423d08875b9a5ab4dfe', name: "secondary-title" }), !this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.BEFORE && (h("z-divider", { size: DividerSize.LARGE, color: "z-section-title--divider-color" })), h("slot", { key: 'de5810f9b9a3db9c2fb81a59ac3dda261079b81f', name: "primary-title" }), !this.hasSecondaryTitle && this.dividerPosition === ZSectionTitleDividerPosition.AFTER && (h("z-divider", { size: DividerSize.LARGE, color: "z-section-title--divider-color" }))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "z-section-title"; }
|
|
24
24
|
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: 'a23874893887060f9581859334bd1a21603a46bb', class: {
|
|
49
49
|
[this.variant]: true,
|
|
50
50
|
"skip-to-content-visible": this.visible,
|
|
51
51
|
} }, this.links.map((link, i) => {
|