@zanichelli/albe-web-components 2.24.9 → 2.24.13
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 +34 -0
- package/dist/cjs/{index-2e494cc2.js → index-dee3e21d.js} +4 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/web-components-library.cjs.js +2 -2
- package/dist/cjs/z-alert_65.cjs.entry.js +84 -26
- package/dist/cjs/z-app-header.cjs.entry.js +1 -1
- package/dist/cjs/z-candybar.cjs.entry.js +1 -1
- package/dist/cjs/z-cookiebar.cjs.entry.js +1 -1
- package/dist/cjs/z-heading.cjs.entry.js +1 -1
- package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
- package/dist/cjs/z-modal-login.cjs.entry.js +1 -1
- package/dist/cjs/z-modal.cjs.entry.js +4 -4
- 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-info.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-topbar.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +7 -3
- package/dist/cjs/z-otp.cjs.entry.js +1 -1
- package/dist/cjs/z-pocket-message.cjs.entry.js +1 -1
- package/dist/cjs/z-pocket_3.cjs.entry.js +1 -1
- package/dist/cjs/z-registro-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-slideshow.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 +1 -1
- package/dist/collection/components/inputs/z-input/index.js +3 -3
- package/dist/collection/components/inputs/z-input-label/index.js +18 -1
- package/dist/collection/components/inputs/z-select/index.js +1 -1
- package/dist/collection/components/modal/z-modal/index.js +4 -4
- package/dist/collection/components/modal/z-modal/styles.css +6 -6
- package/dist/collection/components/navigation/z-app-topbar/styles.css +5 -9
- package/dist/collection/components/navigation/z-navigation-tabs/index.js +9 -5
- package/dist/collection/components/navigation/z-user-dropdown/styles.css +5 -6
- package/dist/collection/components/notification/z-tooltip/index.js +75 -17
- package/dist/collection/components/notification/z-tooltip/styles.css +22 -18
- package/dist/esm/{index-6eb9a735.js → index-fa9e549c.js} +4 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/web-components-library.js +2 -2
- package/dist/esm/z-alert_65.entry.js +84 -26
- package/dist/esm/z-app-header.entry.js +1 -1
- package/dist/esm/z-candybar.entry.js +1 -1
- package/dist/esm/z-cookiebar.entry.js +1 -1
- package/dist/esm/z-heading.entry.js +1 -1
- package/dist/esm/z-messages-pocket.entry.js +1 -1
- package/dist/esm/z-modal-login.entry.js +1 -1
- package/dist/esm/z-modal.entry.js +4 -4
- 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-info.entry.js +1 -1
- package/dist/esm/z-myz-topbar.entry.js +1 -1
- package/dist/esm/z-navigation-tab.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +7 -3
- package/dist/esm/z-otp.entry.js +1 -1
- package/dist/esm/z-pocket-message.entry.js +1 -1
- package/dist/esm/z-pocket_3.entry.js +1 -1
- package/dist/esm/z-registro-table-footer.entry.js +1 -1
- package/dist/esm/z-slideshow.entry.js +1 -1
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +1 -1
- package/dist/types/components/inputs/z-input-label/index.d.ts +2 -0
- package/dist/types/components/notification/z-tooltip/index.d.ts +2 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/web-components-library/{p-ba896238.entry.js → p-017370c7.entry.js} +1 -1
- package/dist/web-components-library/p-139b1c56.entry.js +1 -0
- package/dist/web-components-library/{p-9c17ebe5.entry.js → p-140cc18f.entry.js} +1 -1
- package/dist/web-components-library/{p-b11b6985.entry.js → p-1c72783c.entry.js} +1 -1
- package/dist/web-components-library/{p-f4c34386.entry.js → p-3ad9ef65.entry.js} +1 -1
- package/dist/web-components-library/{p-cf0eda28.entry.js → p-418044b0.entry.js} +1 -1
- package/dist/web-components-library/{p-490a6fe0.entry.js → p-44de8dac.entry.js} +1 -1
- package/dist/web-components-library/{p-468bee84.entry.js → p-5ff2bb78.entry.js} +1 -1
- package/{www/build/p-1aa48115.entry.js → dist/web-components-library/p-6b7ee18b.entry.js} +1 -1
- package/dist/web-components-library/{p-b33e37be.entry.js → p-6fed64d8.entry.js} +1 -1
- package/dist/web-components-library/{p-afcdcad4.entry.js → p-8f5eaf9d.entry.js} +1 -1
- package/{www/build/p-859f6438.js → dist/web-components-library/p-904a85e4.js} +1 -1
- package/dist/web-components-library/{p-251558f4.entry.js → p-96e3aec6.entry.js} +1 -1
- package/{www/build/p-2231641e.entry.js → dist/web-components-library/p-ba400b3b.entry.js} +1 -1
- package/dist/web-components-library/{p-590be9d2.entry.js → p-c7af96eb.entry.js} +1 -1
- package/dist/web-components-library/{p-b6e7981c.entry.js → p-ccaa0324.entry.js} +2 -2
- package/dist/web-components-library/{p-37294b80.entry.js → p-ccf4d1e7.entry.js} +1 -1
- package/dist/web-components-library/{p-69ff80d0.entry.js → p-cfa47b41.entry.js} +1 -1
- package/dist/web-components-library/{p-ac2744d4.entry.js → p-cfd7f25f.entry.js} +1 -1
- package/dist/web-components-library/{p-acf171e5.entry.js → p-e86e2a5f.entry.js} +1 -1
- package/dist/web-components-library/{p-d428fe35.entry.js → p-f113a03a.entry.js} +1 -1
- package/dist/web-components-library/{p-a00d5a85.entry.js → p-fbfde057.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/{p-ba896238.entry.js → p-017370c7.entry.js} +1 -1
- package/www/build/p-139b1c56.entry.js +1 -0
- package/www/build/{p-9c17ebe5.entry.js → p-140cc18f.entry.js} +1 -1
- package/www/build/{p-b11b6985.entry.js → p-1c72783c.entry.js} +1 -1
- package/www/build/{p-f4c34386.entry.js → p-3ad9ef65.entry.js} +1 -1
- package/www/build/{p-cf0eda28.entry.js → p-418044b0.entry.js} +1 -1
- package/www/build/{p-490a6fe0.entry.js → p-44de8dac.entry.js} +1 -1
- package/www/build/{p-468bee84.entry.js → p-5ff2bb78.entry.js} +1 -1
- package/{dist/web-components-library/p-1aa48115.entry.js → www/build/p-6b7ee18b.entry.js} +1 -1
- package/www/build/{p-b33e37be.entry.js → p-6fed64d8.entry.js} +1 -1
- package/www/build/{p-afcdcad4.entry.js → p-8f5eaf9d.entry.js} +1 -1
- package/{dist/web-components-library/p-859f6438.js → www/build/p-904a85e4.js} +1 -1
- package/www/build/{p-251558f4.entry.js → p-96e3aec6.entry.js} +1 -1
- package/{dist/web-components-library/p-2231641e.entry.js → www/build/p-ba400b3b.entry.js} +1 -1
- package/www/build/{p-590be9d2.entry.js → p-c7af96eb.entry.js} +1 -1
- package/www/build/p-ca89b853.js +1 -0
- package/www/build/{p-b6e7981c.entry.js → p-ccaa0324.entry.js} +2 -2
- package/www/build/{p-37294b80.entry.js → p-ccf4d1e7.entry.js} +1 -1
- package/www/build/{p-69ff80d0.entry.js → p-cfa47b41.entry.js} +1 -1
- package/www/build/{p-ac2744d4.entry.js → p-cfd7f25f.entry.js} +1 -1
- package/www/build/{p-acf171e5.entry.js → p-e86e2a5f.entry.js} +1 -1
- package/www/build/p-ea943cbd.css +1 -0
- package/www/build/{p-d428fe35.entry.js → p-f113a03a.entry.js} +1 -1
- package/www/build/{p-a00d5a85.entry.js → p-fbfde057.entry.js} +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/web-components-library/p-f63a3dbe.entry.js +0 -1
- package/www/build/p-7f34c867.js +0 -122
- package/www/build/p-97a11655.css +0 -789
- package/www/build/p-f63a3dbe.entry.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
6
|
const index$1 = require('./index-8f4b351d.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = ".sc-z-modal-login-h{font-family:var(--dashboard-font);font-weight:var(--font-rg)}.sc-z-modal-login-h div.wrapper.sc-z-modal-login{color:var(--text-grey-800);padding:calc(var(--space-unit) * 4) calc(var(--space-unit) * 2)\n calc(var(--space-unit) * 3) calc(var(--space-unit) * 2);box-sizing:border-box;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch}z-button.sc-z-modal-login,z-input.sc-z-modal-login,.sc-z-modal-login-s>z-button,.sc-z-modal-login-s>z-input{display:inline-block;width:100%}z-link.sc-z-modal-login,.sc-z-modal-login-s>z-link{font-size:12px}.sc-z-modal-login-h div.wrapper.sc-z-modal-login>form.sc-z-modal-login{display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch}div.wrapper>form>div.username.sc-z-modal-login-s>z-input,div.wrapper>form>div.password.sc-z-modal-login-s>z-input,.sc-z-modal-login-h div.wrapper.sc-z-modal-login>form.sc-z-modal-login>div.username.sc-z-modal-login z-input.sc-z-modal-login,.sc-z-modal-login-h div.wrapper.sc-z-modal-login>form.sc-z-modal-login>div.password.sc-z-modal-login z-input.sc-z-modal-login{margin-bottom:var(--space-unit)}.sc-z-modal-login-h div.wrapper.sc-z-modal-login>form.sc-z-modal-login>z-link.forget.sc-z-modal-login{font-size:12px;align-self:flex-end}div.wrapper>form>div.login.sc-z-modal-login-s>z-button,.sc-z-modal-login-h div.wrapper.sc-z-modal-login>form.sc-z-modal-login>div.login.sc-z-modal-login z-button.sc-z-modal-login{margin:calc(var(--space-unit) * 3) 0;align-self:flex-start}.sc-z-modal-login-h div.wrapper.sc-z-modal-login>hr.sc-z-modal-login{width:100%;margin-bottom:calc(var(--space-unit) * 3);border:none;border-top:var(--border-size-medium) solid var(--bg-grey-200);margin-block-start:unset}div.wrapper>div.signup.sc-z-modal-login-s>z-button,.sc-z-modal-login-h div.wrapper.sc-z-modal-login>div.signup.sc-z-modal-login z-button.sc-z-modal-login{display:inline-block;margin:calc(var(--space-unit) * 2) 0}.sc-z-modal-login-h div.providers.sc-z-modal-login{display:grid;grid-template-columns:1fr;grid-auto-rows:auto;gap:calc(var(--space-unit) * 2) 0px}slot-fb[name=\"provider\"].sc-z-modal-login{display:grid;grid-template-columns:1fr;grid-auto-rows:auto;gap:calc(var(--space-unit) * 2) 0px}.sc-z-modal-login-h div.providers.sc-z-modal-login>z-body.sc-z-modal-login{padding-top:calc(var(--space-unit) * 2)}.sc-z-modal-login-h div.wrapper.sc-z-modal-login>div.providers.sc-z-modal-login .zd.sc-z-modal-login{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-items:center;align-content:center}.sc-z-modal-login-h div.wrapper.sc-z-modal-login>div.providers.sc-z-modal-login .zd.sc-z-modal-login>svg.sc-z-modal-login{margin-right:var(--space-unit)}@media only screen and (min-width: 768px){z-button.sc-z-modal-login,.sc-z-modal-login-s>z-button{width:initial}.sc-z-modal-login-h div.wrapper.sc-z-modal-login{width:396px;padding:calc(var(--space-unit) * 3)}.sc-z-modal-login-h div.providers.sc-z-modal-login{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:auto;gap:var(--space-unit);justify-content:center;align-items:center}.sc-z-modal-login-h div.providers.sc-z-modal-login>z-body.sc-z-modal-login{grid-column-start:1;grid-column-end:3;padding-bottom:var(--space-unit)}.sc-z-modal-login-s>[slot=\"provider\"]{width:100%}slot-fb[name=\"provider\"].sc-z-modal-login{grid-column-start:1;grid-column-end:3;display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:auto;gap:var(--space-unit);justify-content:center;align-items:center}slot-fb[name=\"provider\"].sc-z-modal-login>*.sc-z-modal-login{width:100%}}@media only screen and (min-width: 1366px){.sc-z-modal-login-h div.wrapper.sc-z-modal-login{width:477px;padding:calc(var(--space-unit) * 4)}}";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
6
|
|
|
7
|
-
const stylesCss = ":host{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;display:flex;flex-direction:row;justify-content:center;width:100%;height:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.modal-background{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--gray900);opacity:0.7}.modal-container{display:flex;flex-direction:column;z-index:1010;width:100%;height:100vh;overflow:-moz-scrollbars-none;overflow:hidden}.modal-container>header{display:flex;flex-wrap:nowrap;flex-direction:row;align-items:flex-start;justify-content:flex-start;padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);background:var(--color-surface02)}.modal-container>header button{margin:0;padding:0;border:none;background:transparent;cursor:pointer;margin-left:auto}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 2.5);--z-icon-height:calc(var(--space-unit) * 2.5);display:flex;fill:var(--color-icon01)}.modal-container>header>div{display:flex;flex-direction:column;width:100%;margin-right:calc(var(--space-unit) * 2)}.modal-container>header h1,.modal-container>header h2{margin:0;padding:0;font-weight:var(--font-rg);color:var(--color-text01)}.modal-container>header h1{font-size:var(--font-size-5);line-height:1.4;letter-spacing:0}.modal-container>header h2{font-size:var(--font-size-3);line-height:1.5;letter-spacing:0}.modal-container>header>div *:empty{display:none}.modal-container>header h1+h2{margin-top:calc(var(--space-unit) * 0.5)}.modal-container
|
|
7
|
+
const stylesCss = ":host{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;display:flex;flex-direction:row;justify-content:center;width:100%;height:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.modal-background{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--gray900);opacity:0.7}.modal-container{display:flex;flex-direction:column;z-index:1010;width:100%;height:100vh;overflow:-moz-scrollbars-none;overflow:hidden}.modal-container>header{display:flex;flex-wrap:nowrap;flex-direction:row;align-items:flex-start;justify-content:flex-start;padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);background:var(--color-surface02)}.modal-container>header button{margin:0;padding:0;border:none;background:transparent;cursor:pointer;margin-left:auto}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 2.5);--z-icon-height:calc(var(--space-unit) * 2.5);display:flex;fill:var(--color-icon01)}.modal-container>header>div{display:flex;flex-direction:column;width:100%;margin-right:calc(var(--space-unit) * 2)}.modal-container>header h1,.modal-container>header h2{margin:0;padding:0;font-weight:var(--font-rg);color:var(--color-text01)}.modal-container>header h1{font-size:var(--font-size-5);line-height:1.4;letter-spacing:0}.modal-container>header h2{font-size:var(--font-size-3);line-height:1.5;letter-spacing:0}.modal-container>header>div *:empty{display:none}.modal-container>header h1+h2{margin-top:calc(var(--space-unit) * 0.5)}.modal-container>.modal-content{flex:1 auto;background:var(--color-surface01);overflow:auto;overflow-x:hidden}.modal-container .modal-content::-webkit-scrollbar{background:linear-gradient(\n to right,\n transparent 0 3px,\n var(--gray200) 3px 7px,\n transparent 7px 10px\n );width:10px;border-radius:var(--border-radius)}.modal-container .modal-content::-webkit-scrollbar-track{background-color:transparent}.modal-container .modal-content::-webkit-scrollbar-thumb{background-color:var(--color-primary01);border-radius:var(--border-radius);width:10px}.modal-container .modal-content::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.modal-container .modal-content{scrollbar-color:var(--color-primary01) transparent}@media only screen and (min-width: 768px){.modal-container{position:absolute;top:calc(var(--space-unit) * 6);left:50%;transform:translateX(-50%);width:auto;height:auto;min-width:calc(var(--space-unit) * 40);min-height:calc(var(--space-unit) * 40);max-height:calc(100vh - calc(var(--space-unit) * 6 * 2));border-radius:var(--border-radius)}.modal-container>header z-icon{--z-icon-width:calc(var(--space-unit) * 3);--z-icon-height:calc(var(--space-unit) * 3)}}@media only screen and (min-width: 768px) and (max-width: 1151px){.modal-container>header{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 3)}}@media only screen and (min-width: 1152px){.modal-container>header{padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 4)}.modal-container>header h1{font-size:var(--font-size-6);line-height:1.33;letter-spacing:0}.modal-container>header h2{font-size:var(--font-size-4);line-height:1.5;letter-spacing:0}.modal-container>header h1+h2{margin-top:0}}";
|
|
8
8
|
|
|
9
9
|
const ZModal = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -13,7 +13,7 @@ const ZModal = class {
|
|
|
13
13
|
this.modalHeaderActive = index.createEvent(this, "modalHeaderActive", 7);
|
|
14
14
|
this.modalBackgroundClick = index.createEvent(this, "modalBackgroundClick", 7);
|
|
15
15
|
/** aria-label for close button (optional) */
|
|
16
|
-
this.closeButtonLabel =
|
|
16
|
+
this.closeButtonLabel = "close modal";
|
|
17
17
|
}
|
|
18
18
|
emitModalClose() {
|
|
19
19
|
this.modalClose.emit({ modalid: this.modalid });
|
|
@@ -26,7 +26,7 @@ const ZModal = class {
|
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
28
|
return [
|
|
29
|
-
index.h("div", { class: "modal-container", id: this.modalid }, index.h("header", { onClick: this.emitModalHeaderActive.bind(this) }, index.h("div", null, this.modaltitle && index.h("h1", null, this.modaltitle), this.modalsubtitle && index.h("h2", null, this.modalsubtitle)), index.h("slot", { name: "modalCloseButton" }, index.h("button", { "aria-label": this.closeButtonLabel, onClick: this.emitModalClose.bind(this) }, index.h("z-icon", { name: "multiply-circle-filled" })))), index.h("
|
|
29
|
+
index.h("div", { class: "modal-container", id: this.modalid, role: "dialog" }, index.h("header", { onClick: this.emitModalHeaderActive.bind(this) }, index.h("div", null, this.modaltitle && index.h("h1", null, this.modaltitle), this.modalsubtitle && index.h("h2", null, this.modalsubtitle)), index.h("slot", { name: "modalCloseButton" }, index.h("button", { "aria-label": this.closeButtonLabel, onClick: this.emitModalClose.bind(this) }, index.h("z-icon", { name: "multiply-circle-filled" })))), index.h("div", { class: "modal-content" }, index.h("slot", { name: "modalContent" }))),
|
|
30
30
|
index.h("div", { class: "modal-background", "data-action": "modalBackground", "data-modal": this.modalid, onClick: this.emitBackgroundClick.bind(this) })
|
|
31
31
|
];
|
|
32
32
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
6
|
const index$1 = require('./index-8f4b351d.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{position:relative;height:522px;width:100%;transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out, -webkit-transform 0.5s ease-out}:host>div .content{position:relative;height:522px;width:100%;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;transition:-webkit-transform 0.5s ease-out;transition:transform 0.5s ease-out;transition:transform 0.5s ease-out, -webkit-transform 0.5s ease-out;z-index:2}:host>div .content.flipped{-webkit-transform:rotateY(180deg);transform:rotateY(180deg);margin-top:-2px}:host>div .front,:host>div .back{position:absolute;height:100%;width:100%;top:0;left:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}:host>div .front{z-index:2;top:0;left:0;-webkit-transform:rotateY(0deg);transform:rotateY(0deg)}:host>div .front z-button{position:absolute;z-index:3;top:calc(var(--space-unit) * 0.5);left:calc(-1 * var(--space-unit))}:host>div .back{padding:0 var(--space-unit);margin-left:calc(-1 * var(--space-unit));z-index:1;top:0;left:0;-webkit-transform:rotateY(180deg);transform:rotateY(180deg);display:flex;justify-content:center}.hideInfo{display:none}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
6
|
|
|
7
7
|
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div>footer{box-sizing:border-box;border-radius:0px 0px var(--radius-base) var(--radius-base);border-top:var(--border-base) solid var(--color-surface03);padding:var(--space-unit) calc(var(--space-unit) * 2) 0;height:128px;color:var(--color-surface05);font-size:16px;line-height:24px}:host>div>footer>div.top,:host>div>footer>div.bottom{height:60px}";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
6
|
const index$1 = require('./index-8f4b351d.js');
|
|
7
7
|
const utils = require('./utils-6d6841cc.js');
|
|
8
8
|
require('./breakpoints-88c4fd6c.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
6
|
const index$1 = require('./index-8f4b351d.js');
|
|
7
7
|
const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
6
|
|
|
7
7
|
const stylesCss = "button{position:relative;z-index:0;display:flex;align-items:center;justify-content:center;width:100%;margin:0;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);background-color:unset;text-align:center;font-size:inherit;font-family:var(--font-family-sans);line-height:inherit;letter-spacing:inherit;white-space:nowrap;color:var(--color-primary01);fill:currentColor;border:none;border-radius:var(--border-no-radius);outline:none;cursor:pointer}*::before,*::after{box-sizing:border-box}:host(:hover:not([disabled])) button,:host([selected]) button{color:var(--color-hover-secondary);fill:currentColor}:host(:hover:not([disabled])) button::after,:host([selected]) button::after{content:'';position:absolute;background-color:var(--color-hover-secondary)}:host([orientation='horizontal']:not([disabled]):hover) button::after,:host([orientation='horizontal'][selected]) button::after{bottom:0;left:0;width:100%;height:var(--border-size-large)}:host([orientation='horizontal']) ::slotted(z-icon){margin-right:var(--space-unit)}:host(:hover:not([disabled])) button{background-color:var(--color-background)}button:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}:host([disabled]) button{pointer-events:all;cursor:not-allowed;color:var(--gray500);fill:currentColor}:host([size='small']) button{font-size:var(--font-size-2);line-height:1.4;letter-spacing:0.16px}:host([size='small'][orientation='horizontal']) button{padding:var(--space-unit) calc(var(--space-unit) * 2)}:host([size='small'][orientation='horizontal']:not([disabled]):hover) button::after,:host([size='small'][orientation='horizontal'][selected]) button::after{height:var(--border-size-medium)}:host([size='small']:not([orientation='vertical'])) ::slotted(z-icon){--z-icon-width:14px;--z-icon-height:14px}:host([orientation='vertical']) button{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}:host([orientation='vertical']:hover:not([disabled])) button::after,:host([orientation='vertical'][selected]) button::after{width:var(--border-size-large);height:100%;top:0;right:0}:host([orientation='vertical']) ::slotted([slot='label']){display:none}::slotted(z-icon){--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);margin:0}";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
6
|
const index$1 = require('./index-8f4b351d.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = ":host{--safe-scroll-area:4px;--negative-safe-scroll-area:calc(-1 * var(--safe-scroll-area));position:relative;display:flex;flex-direction:row;z-index:0;margin:var(--negative-safe-scroll-area);padding:var(--safe-scroll-area);font-family:var(--font-family-sans);font-weight:var(--font-rg);overflow:hidden}:host,:host *,::slotted(*){box-sizing:border-box}::-webkit-scrollbar{display:none}button.navigation{position:absolute;display:flex;align-items:center;justify-content:center;margin:0;padding:0;background:var(--color-white);border:none;outline:none;fill:var(--color-primary01);border-radius:var(--border-no-radius);cursor:pointer;z-index:1}button.navigation:focus{fill:var(--color-primary01);box-shadow:var(--shadow-focus-primary)}button.navigation:disabled{display:none}nav{display:flex;align-items:center;justify-content:flex-start;overflow:auto;margin:var(--negative-safe-scroll-area);padding:var(--safe-scroll-area);scroll-padding:var(--safe-scroll-area);scrollbar-width:none}:host([orientation='horizontal']) nav{width:100%}:host([orientation='horizontal']) button.navigation{top:0;height:100%;width:calc((var(--space-unit) * 4) + var(--safe-scroll-area))}:host([orientation='horizontal']) button.navigation:first-child{left:0;padding-left:var(--safe-scroll-area);box-shadow:5px 0px var(--safe-scroll-area) var(--negative-safe-scroll-area) rgba(66, 69, 72, 0.40)}:host([orientation='horizontal']) button.navigation:last-child{right:0;padding-right:4px;box-shadow:-5px 0px var(--safe-scroll-area) var(--negative-safe-scroll-area) rgba(66, 69, 72, 0.40)}:host([orientation='vertical']){flex-direction:column}:host([orientation='vertical']) nav{flex-direction:column;align-items:stretch;height:100%}:host([orientation='vertical']) button.navigation{left:0;width:100%;height:calc((var(--space-unit) * 4) + var(--safe-scroll-area))}:host([orientation='vertical']) button.navigation:first-child{top:0;padding-top:var(--safe-scroll-area);box-shadow:0px 5px var(--safe-scroll-area) var(--negative-safe-scroll-area) rgba(66, 69, 72, 0.40)}:host([orientation='vertical']) button.navigation:last-child{bottom:0;padding-bottom:var(--safe-scroll-area);box-shadow:0px -5px var(--safe-scroll-area) var(--negative-safe-scroll-area) rgba(66, 69, 72, 0.40)}:host([size='small'][orientation='vertical']) button.navigation{height:calc(var(--space-unit) * 4)}";
|
|
@@ -44,7 +44,8 @@ const ZNavigationTabs = class {
|
|
|
44
44
|
if (!this.tabsNav) {
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
-
this.canNavigateNext = this.tabsNav[`scroll${this.direction}`] +
|
|
47
|
+
this.canNavigateNext = this.tabsNav[`scroll${this.direction}`] +
|
|
48
|
+
this.tabsNav[`client${this.dimension}`] < this.tabsNav[`scroll${this.dimension}`];
|
|
48
49
|
this.canNavigatePrev = this.tabsNav[`scroll${this.direction}`] > 0;
|
|
49
50
|
}
|
|
50
51
|
selectedTabHandler(event) {
|
|
@@ -82,7 +83,10 @@ const ZNavigationTabs = class {
|
|
|
82
83
|
this.checkScrollVisible();
|
|
83
84
|
}
|
|
84
85
|
render() {
|
|
85
|
-
return index.h(index.Host, { class:
|
|
86
|
+
return index.h(index.Host, { class: {
|
|
87
|
+
'interactive-2': this.size === 'small',
|
|
88
|
+
'interactive-1': this.size !== 'small'
|
|
89
|
+
}, scrollable: this.canNavigate }, this.canNavigate && index.h("button", { class: "navigation", onClick: () => this.navigatePrevious(), tabindex: "-1", disabled: !this.canNavigatePrev }, index.h("z-icon", { name: this.orientation == 'horizontal' ? 'chevron-left' : 'chevron-up', width: 16, height: 16 })), index.h("nav", { role: "tablist", ref: (el) => this.tabsNav = el !== null && el !== void 0 ? el : this.tabsNav, onScroll: this.checkScrollEnabled.bind(this) }, index.h("slot", null)), this.canNavigate && index.h("button", { class: "navigation", onClick: () => { this.navigateNext(); }, tabindex: "-1", disabled: !this.canNavigateNext }, index.h("z-icon", { name: this.orientation == 'horizontal' ? 'chevron-right' : 'chevron-down', width: 16, height: 16 })));
|
|
86
90
|
}
|
|
87
91
|
get host() { return index.getElement(this); }
|
|
88
92
|
static get watchers() { return {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
6
|
const index$1 = require('./index-8f4b351d.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}.digits-container{display:flex;justify-content:flex-start}input{height:72px;width:calc(var(--space-unit) * 5);font-size:32px;font-weight:300;font-family:var(--font-family-sans);text-align:center;caret-color:transparent;box-sizing:border-box;padding:0;color:var(--color-surface05)}input.error{border:1px solid;border-radius:4px;border-color:var(--color-error01);background-color:var(--color-error-inverse)}input:not(:last-of-type){margin-right:var(--space-unit)}@media only screen and (min-width: 768px){input:not(:last-of-type){margin-right:calc(var(--space-unit) * 2)}}@media only screen and (min-width: 1025px){input{width:calc(var(--space-unit) * 6)}}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
6
|
|
|
7
7
|
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{color:var(--color-surface05);fill:var(--color-surface05);font-size:14px;border-bottom:var(--border-size-small) solid var(--color-surface03);padding-top:calc(var(--space-unit) * 1.5);display:grid;grid-template-rows:auto auto;grid-template-columns:36px auto}:host>div>z-icon{grid-row:1 / 2;grid-column:1 / 2}:host>div>div.content{grid-row:1 / 2;grid-column:2 / 3;margin-bottom:var(--space-unit)}:host>div>div.ctaWrapper{grid-row:2 / 3;grid-column:1 / 3;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-start;align-items:center;margin-bottom:var(--space-unit)}@media only screen and (min-width: 768px){:host>div>div.ctaWrapper{flex-direction:row;grid-column:2 / 3}}";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
6
|
const index$1 = require('./index-8f4b351d.js');
|
|
7
7
|
const utils = require('./utils-6d6841cc.js');
|
|
8
8
|
const hammer = require('./hammer-6e321f0b.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
6
|
|
|
7
7
|
const stylesCss = ".sc-z-registro-table-footer-h{display:table-footer-group;font-family:var(--dashboard-font);font-weight:var(--font-rg)}";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
6
|
const index$1 = require('./index-8f4b351d.js');
|
|
7
7
|
const utils = require('./utils-6d6841cc.js');
|
|
8
8
|
require('./breakpoints-88c4fd6c.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
6
|
const index$1 = require('./index-8f4b351d.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);position:fixed;display:flex;flex-direction:column;flex-wrap:nowrap;z-index:10000;margin-bottom:calc(var(--space-unit) * 2);margin-top:calc(var(--space-unit) * 2)}::slotted(z-toast-notification){width:100vw}::slotted(:not(:last-child)){margin-bottom:calc(var(--space-unit) * 1)}:host(.bottom-centre),:host(.bottom-right),:host(.bottom-left){justify-content:flex-end;align-items:flex-end;bottom:0}:host(.top-left),:host(.top-right),:host(.top-centre){justify-content:flex-start;align-items:flex-start;top:0}@media only screen and (min-width: 768px){:host{margin:calc(var(--space-unit) * 3)}:host(.top-centre){justify-content:flex-start;align-items:center;top:0;left:50%;transform:translateX(-50%)}:host(.top-left){justify-content:flex-start;align-items:flex-start;top:0;left:0}:host(.top-right){justify-content:flex-start;align-items:flex-end;top:0;right:0}:host(.bottom-centre){justify-content:flex-end;align-items:center;bottom:0;left:50%;transform:translateX(-50%)}:host(.bottom-right){justify-content:flex-end;align-items:flex-end;bottom:0;right:0}:host(.bottom-left){justify-content:flex-end;align-items:flex-start;bottom:0;left:0}::slotted(z-toast-notification){width:50vw}}@media only screen and (min-width: 1366px){:host{margin:calc(var(--space-unit) * 4)}::slotted(z-toast-notification){width:33vw}}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-dee3e21d.js');
|
|
6
6
|
const index$1 = require('./index-8f4b351d.js');
|
|
7
7
|
const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
8
8
|
const hammer = require('./hammer-6e321f0b.js');
|
|
@@ -160,7 +160,7 @@ export class ZInput {
|
|
|
160
160
|
renderLabel() {
|
|
161
161
|
if (!this.label)
|
|
162
162
|
return;
|
|
163
|
-
return (h("z-input-label", { value: this.label, disabled: this.disabled, "aria-label": this.label, id: `${this.htmlid}_label` }));
|
|
163
|
+
return (h("z-input-label", { htmlfor: this.htmlid, value: this.label, disabled: this.disabled, "aria-label": this.label, id: `${this.htmlid}_label` }));
|
|
164
164
|
}
|
|
165
165
|
renderIcons() {
|
|
166
166
|
return (h("span", { class: {
|
|
@@ -225,7 +225,7 @@ export class ZInput {
|
|
|
225
225
|
after: this.labelafter,
|
|
226
226
|
before: !this.labelafter,
|
|
227
227
|
} },
|
|
228
|
-
h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": true }),
|
|
228
|
+
h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true" }),
|
|
229
229
|
this.label && h("span", { innerHTML: this.label }))));
|
|
230
230
|
}
|
|
231
231
|
/* END checkbox */
|
|
@@ -238,7 +238,7 @@ export class ZInput {
|
|
|
238
238
|
after: this.labelafter,
|
|
239
239
|
before: !this.labelafter,
|
|
240
240
|
} },
|
|
241
|
-
h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": true }),
|
|
241
|
+
h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true" }),
|
|
242
242
|
this.label && h("span", { innerHTML: this.label }))));
|
|
243
243
|
}
|
|
244
244
|
/* END radio */
|
|
@@ -5,7 +5,7 @@ export class ZInputLabel {
|
|
|
5
5
|
this.disabled = false;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return h("label", { class: { disabled: this.disabled } }, this.value);
|
|
8
|
+
return h("label", { htmlFor: this.htmlfor, class: { disabled: this.disabled } }, this.value);
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "z-input-label"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -50,6 +50,23 @@ export class ZInputLabel {
|
|
|
50
50
|
"attribute": "disabled",
|
|
51
51
|
"reflect": false,
|
|
52
52
|
"defaultValue": "false"
|
|
53
|
+
},
|
|
54
|
+
"htmlfor": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"mutable": false,
|
|
57
|
+
"complexType": {
|
|
58
|
+
"original": "string",
|
|
59
|
+
"resolved": "string",
|
|
60
|
+
"references": {}
|
|
61
|
+
},
|
|
62
|
+
"required": false,
|
|
63
|
+
"optional": true,
|
|
64
|
+
"docs": {
|
|
65
|
+
"tags": [],
|
|
66
|
+
"text": "the label is attached to"
|
|
67
|
+
},
|
|
68
|
+
"attribute": "htmlfor",
|
|
69
|
+
"reflect": false
|
|
53
70
|
}
|
|
54
71
|
}; }
|
|
55
72
|
}
|
|
@@ -206,7 +206,7 @@ export class ZSelect {
|
|
|
206
206
|
renderLabel() {
|
|
207
207
|
if (!this.label)
|
|
208
208
|
return;
|
|
209
|
-
return (h("z-input-label", { value: this.label, disabled: this.disabled, "aria-label": this.label, id: `${this.htmlid}_input_label` }));
|
|
209
|
+
return (h("z-input-label", { htmlfor: this.htmlid, value: this.label, disabled: this.disabled, "aria-label": this.label, id: `${this.htmlid}_input_label` }));
|
|
210
210
|
}
|
|
211
211
|
renderInput() {
|
|
212
212
|
return (h("z-input", { id: `${this.htmlid}_input`, htmlid: `${this.htmlid}_input`, placeholder: this.placeholder, value: !this.isOpen && !this.multiple && this.selectedItems.length
|
|
@@ -6,7 +6,7 @@ import { Component, Prop, h, Event } from "@stencil/core";
|
|
|
6
6
|
export class ZModal {
|
|
7
7
|
constructor() {
|
|
8
8
|
/** aria-label for close button (optional) */
|
|
9
|
-
this.closeButtonLabel =
|
|
9
|
+
this.closeButtonLabel = "close modal";
|
|
10
10
|
}
|
|
11
11
|
emitModalClose() {
|
|
12
12
|
this.modalClose.emit({ modalid: this.modalid });
|
|
@@ -19,7 +19,7 @@ export class ZModal {
|
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
21
|
return [
|
|
22
|
-
h("div", { class: "modal-container", id: this.modalid },
|
|
22
|
+
h("div", { class: "modal-container", id: this.modalid, role: "dialog" },
|
|
23
23
|
h("header", { onClick: this.emitModalHeaderActive.bind(this) },
|
|
24
24
|
h("div", null,
|
|
25
25
|
this.modaltitle && h("h1", null, this.modaltitle),
|
|
@@ -27,7 +27,7 @@ export class ZModal {
|
|
|
27
27
|
h("slot", { name: "modalCloseButton" },
|
|
28
28
|
h("button", { "aria-label": this.closeButtonLabel, onClick: this.emitModalClose.bind(this) },
|
|
29
29
|
h("z-icon", { name: "multiply-circle-filled" })))),
|
|
30
|
-
h("
|
|
30
|
+
h("div", { class: "modal-content" },
|
|
31
31
|
h("slot", { name: "modalContent" }))),
|
|
32
32
|
h("div", { class: "modal-background", "data-action": "modalBackground", "data-modal": this.modalid, onClick: this.emitBackgroundClick.bind(this) })
|
|
33
33
|
];
|
|
@@ -108,7 +108,7 @@ export class ZModal {
|
|
|
108
108
|
},
|
|
109
109
|
"attribute": "close-button-label",
|
|
110
110
|
"reflect": false,
|
|
111
|
-
"defaultValue": "
|
|
111
|
+
"defaultValue": "\"close modal\""
|
|
112
112
|
}
|
|
113
113
|
}; }
|
|
114
114
|
static get events() { return [{
|
|
@@ -96,14 +96,14 @@
|
|
|
96
96
|
margin-top: calc(var(--space-unit) * 0.5);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
.modal-container >
|
|
99
|
+
.modal-container > .modal-content {
|
|
100
100
|
flex: 1 auto;
|
|
101
101
|
background: var(--color-surface01);
|
|
102
102
|
overflow: auto;
|
|
103
103
|
overflow-x: hidden;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
.modal-container
|
|
106
|
+
.modal-container .modal-content::-webkit-scrollbar {
|
|
107
107
|
background: linear-gradient(
|
|
108
108
|
to right,
|
|
109
109
|
transparent 0 3px,
|
|
@@ -114,22 +114,22 @@
|
|
|
114
114
|
border-radius: var(--border-radius);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
.modal-container
|
|
117
|
+
.modal-container .modal-content::-webkit-scrollbar-track {
|
|
118
118
|
background-color: transparent;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.modal-container
|
|
121
|
+
.modal-container .modal-content::-webkit-scrollbar-thumb {
|
|
122
122
|
background-color: var(--color-primary01);
|
|
123
123
|
border-radius: var(--border-radius);
|
|
124
124
|
width: 10px;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
.modal-container
|
|
127
|
+
.modal-container .modal-content::-webkit-scrollbar-thumb:hover {
|
|
128
128
|
background-color: var(--color-hover-primary);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
/* Firefox */
|
|
132
|
-
.modal-container
|
|
132
|
+
.modal-container .modal-content {
|
|
133
133
|
scrollbar-color: var(--color-primary01) transparent;
|
|
134
134
|
}
|
|
135
135
|
|
|
@@ -48,20 +48,19 @@
|
|
|
48
48
|
/* width: max-content; */
|
|
49
49
|
align-items: center;
|
|
50
50
|
justify-content: flex-end;
|
|
51
|
+
padding-right: var(--space-unit);
|
|
51
52
|
}
|
|
52
53
|
|
|
54
|
+
|
|
55
|
+
|
|
53
56
|
.right.hide-actions > slot[name="actions"] {
|
|
54
57
|
display: none;
|
|
55
58
|
}
|
|
56
59
|
|
|
57
|
-
.right > ::slotted(
|
|
60
|
+
.right > ::slotted(*) {
|
|
58
61
|
padding: calc(var(--space-unit) * .5);
|
|
59
62
|
}
|
|
60
63
|
|
|
61
|
-
.right > ::slotted(z-app-switcher) {
|
|
62
|
-
padding: 6px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
64
|
/* Tablet breakpoint */
|
|
66
65
|
@media only screen and (min-width: 768px) {
|
|
67
66
|
:host > div {
|
|
@@ -80,10 +79,7 @@
|
|
|
80
79
|
|
|
81
80
|
.right {
|
|
82
81
|
grid-column-gap: var(--space-unit);
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
.right > ::slotted(z-app-switcher) {
|
|
86
|
-
padding: 6px calc(var(--space-unit) * 2) 6px var(--space-unit);
|
|
82
|
+
padding-right: calc(var(--space-unit) * 1.5);
|
|
87
83
|
}
|
|
88
84
|
}
|
|
89
85
|
|
|
@@ -36,7 +36,8 @@ export class ZNavigationTabs {
|
|
|
36
36
|
if (!this.tabsNav) {
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
|
-
this.canNavigateNext = this.tabsNav[`scroll${this.direction}`] +
|
|
39
|
+
this.canNavigateNext = this.tabsNav[`scroll${this.direction}`] +
|
|
40
|
+
this.tabsNav[`client${this.dimension}`] < this.tabsNav[`scroll${this.dimension}`];
|
|
40
41
|
this.canNavigatePrev = this.tabsNav[`scroll${this.direction}`] > 0;
|
|
41
42
|
}
|
|
42
43
|
selectedTabHandler(event) {
|
|
@@ -74,12 +75,15 @@ export class ZNavigationTabs {
|
|
|
74
75
|
this.checkScrollVisible();
|
|
75
76
|
}
|
|
76
77
|
render() {
|
|
77
|
-
return h(Host, { class:
|
|
78
|
-
|
|
78
|
+
return h(Host, { class: {
|
|
79
|
+
'interactive-2': this.size === 'small',
|
|
80
|
+
'interactive-1': this.size !== 'small'
|
|
81
|
+
}, scrollable: this.canNavigate },
|
|
82
|
+
this.canNavigate && h("button", { class: "navigation", onClick: () => this.navigatePrevious(), tabindex: "-1", disabled: !this.canNavigatePrev },
|
|
79
83
|
h("z-icon", { name: this.orientation == 'horizontal' ? 'chevron-left' : 'chevron-up', width: 16, height: 16 })),
|
|
80
|
-
h("nav", { ref: (el) => this.tabsNav = el !== null && el !== void 0 ? el : this.tabsNav, onScroll: this.checkScrollEnabled.bind(this) },
|
|
84
|
+
h("nav", { role: "tablist", ref: (el) => this.tabsNav = el !== null && el !== void 0 ? el : this.tabsNav, onScroll: this.checkScrollEnabled.bind(this) },
|
|
81
85
|
h("slot", null)),
|
|
82
|
-
this.canNavigate && h("button", {
|
|
86
|
+
this.canNavigate && h("button", { class: "navigation", onClick: () => { this.navigateNext(); }, tabindex: "-1", disabled: !this.canNavigateNext },
|
|
83
87
|
h("z-icon", { name: this.orientation == 'horizontal' ? 'chevron-right' : 'chevron-down', width: 16, height: 16 })));
|
|
84
88
|
}
|
|
85
89
|
static get is() { return "z-navigation-tabs"; }
|
|
@@ -9,9 +9,8 @@ button {
|
|
|
9
9
|
margin: 0;
|
|
10
10
|
background: var(--bg-grey-900);
|
|
11
11
|
border: none;
|
|
12
|
-
padding: 0;
|
|
13
12
|
font-size: calc(var(--space-unit) * 2);
|
|
14
|
-
padding:
|
|
13
|
+
padding: calc(var(--space-unit) - 2px) 0;
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
button > z-icon {
|
|
@@ -94,11 +93,11 @@ ul > li:last-child {
|
|
|
94
93
|
align-content: stretch;
|
|
95
94
|
width: min-content;
|
|
96
95
|
position: absolute;
|
|
97
|
-
right:
|
|
96
|
+
right: calc(var(--space-unit) * -1);
|
|
98
97
|
box-shadow: 0px 2px calc(var(--space-unit) * .5) 0px rgba(0, 0, 0, 0.5);
|
|
99
98
|
background: var(--bg-white);
|
|
100
99
|
border-radius: calc(var(--space-unit) * .5);
|
|
101
|
-
padding: calc(var(--space-unit) * .5)
|
|
100
|
+
padding: calc(var(--space-unit) * .5) var(--space-unit);
|
|
102
101
|
transform: translate(0, -4px);
|
|
103
102
|
}
|
|
104
103
|
|
|
@@ -109,7 +108,6 @@ ul > li:last-child {
|
|
|
109
108
|
justify-content: flex-end;
|
|
110
109
|
align-items: end;
|
|
111
110
|
align-content: center;
|
|
112
|
-
padding: 6px var(--space-unit);
|
|
113
111
|
max-width: 200px;
|
|
114
112
|
}
|
|
115
113
|
|
|
@@ -155,7 +153,8 @@ ul > li:last-child {
|
|
|
155
153
|
ul > li {
|
|
156
154
|
color: var(--gray900);
|
|
157
155
|
border-bottom: var(--border-base) solid rgb(202, 204, 206);
|
|
158
|
-
padding: calc(var(--space-unit) * .5)
|
|
156
|
+
padding: calc(var(--space-unit) * .5);
|
|
157
|
+
margin: unset;
|
|
159
158
|
}
|
|
160
159
|
|
|
161
160
|
ul > li > * {
|