@zanichelli/albe-web-components 7.1.3 → 7.2.0-offcanvas-RC2
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 +22 -14
- package/dist/cjs/index-e3299e0a.js +6 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-header.cjs.entry.js +132 -0
- package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/cjs/z-button_3.cjs.entry.js +113 -0
- package/dist/cjs/z-card.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +3 -6
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -13
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +2 -2
- package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/z-toggle-button.cjs.entry.js +2 -4
- package/dist/collection/components/buttons/z-button-sort/index.js +2 -2
- package/dist/collection/components/buttons/z-button-sort/styles.css +1 -1
- package/dist/collection/components/buttons/z-chip/index.js +3 -25
- package/dist/collection/components/buttons/z-chip/styles.css +21 -28
- package/dist/collection/components/buttons/z-toggle-button/index.js +1 -21
- package/dist/collection/components/buttons/z-toggle-button/styles.css +3 -1
- package/dist/collection/components/indicators/z-stepper-item/styles.css +1 -1
- package/dist/collection/components/notification/z-toast-notification/index.js +1 -1
- package/dist/collection/components/z-card/index.js +0 -9
- package/dist/collection/components/z-card/styles.css +1 -1
- package/dist/collection/components/z-offcanvas/index.js +44 -29
- package/dist/collection/components/z-offcanvas/styles.css +78 -87
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -13
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +0 -12
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/styles.css +1 -1
- package/dist/collection/utils/storybook-utils.js +1 -1
- package/dist/esm/index-a2ca4b97.js +6 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/polyfills/css-shim.js +0 -0
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-header.entry.js +128 -0
- package/dist/esm/z-button-sort.entry.js +1 -1
- package/dist/esm/z-button_3.entry.js +107 -0
- package/dist/esm/z-card.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +4 -7
- package/dist/esm/z-myz-card-footer.entry.js +2 -14
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card_4.entry.js +2 -2
- package/dist/esm/z-stepper-item.entry.js +1 -1
- package/dist/esm/z-toggle-button.entry.js +2 -4
- package/dist/types/beans/index.d.ts +0 -0
- package/dist/types/components/buttons/z-button/index.d.ts +0 -0
- package/dist/types/components/buttons/z-button-sort/index.d.ts +2 -2
- package/dist/types/components/buttons/z-chip/index.d.ts +0 -2
- package/dist/types/components/buttons/z-toggle-button/index.d.ts +0 -2
- package/dist/types/components/buttons/z-toggle-switch/index.d.ts +0 -0
- package/dist/types/components/date-picker/utils.d.ts +0 -0
- package/dist/types/components/date-picker/z-date-picker/index.d.ts +0 -0
- package/dist/types/components/date-picker/z-range-picker/index.d.ts +0 -0
- package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +0 -0
- package/dist/types/components/file-upload/z-file/index.d.ts +0 -0
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +0 -0
- package/dist/types/components/icons/icons.d.ts +0 -0
- package/dist/types/components/icons/z-icon/index.d.ts +0 -0
- package/dist/types/components/index.d.ts +0 -0
- package/dist/types/components/indicators/z-stepper/index.d.ts +0 -0
- package/dist/types/components/indicators/z-stepper-item/index.d.ts +0 -0
- package/dist/types/components/inputs/z-combobox/index.d.ts +0 -0
- package/dist/types/components/inputs/z-input/index.d.ts +0 -0
- package/dist/types/components/inputs/z-input-message/index.d.ts +0 -0
- package/dist/types/components/inputs/z-searchbar/index.d.ts +0 -0
- package/dist/types/components/inputs/z-select/index.d.ts +0 -0
- package/dist/types/components/list/z-list/index.d.ts +0 -0
- package/dist/types/components/list/z-list-element/index.d.ts +0 -0
- package/dist/types/components/list/z-list-group/index.d.ts +0 -0
- package/dist/types/components/list/z-toast-notification-list/index.d.ts +0 -0
- package/dist/types/components/logo/z-logo/index.d.ts +0 -0
- package/dist/types/components/modal/z-modal/index.d.ts +0 -0
- package/dist/types/components/navigation/tabs/z-navigation-tab/index.d.ts +0 -0
- package/dist/types/components/navigation/tabs/z-navigation-tab-link/index.d.ts +0 -0
- package/dist/types/components/navigation/tabs/z-navigation-tabs/index.d.ts +0 -0
- package/dist/types/components/navigation/z-app-header/index.d.ts +0 -0
- package/dist/types/components/navigation/z-link/index.d.ts +0 -0
- package/dist/types/components/navigation/z-menu/index.d.ts +0 -0
- package/dist/types/components/navigation/z-menu-section/index.d.ts +0 -0
- package/dist/types/components/notification/z-info-box/index.d.ts +0 -0
- package/dist/types/components/notification/z-notification/index.d.ts +0 -0
- package/dist/types/components/notification/z-toast-notification/index.d.ts +1 -1
- package/dist/types/components/notification/z-tooltip/index.d.ts +0 -0
- package/dist/types/components/panel/z-panel-elem/index.d.ts +0 -0
- package/dist/types/components/z-anchor-navigation/index.d.ts +0 -0
- package/dist/types/components/z-aria-alert/index.d.ts +0 -0
- package/dist/types/components/z-avatar/index.d.ts +0 -0
- package/dist/types/components/z-card/index.d.ts +0 -9
- package/dist/types/components/z-carousel/index.d.ts +0 -0
- package/dist/types/components/z-contextual-menu/index.d.ts +0 -0
- package/dist/types/components/z-cover-hero/index.d.ts +0 -0
- package/dist/types/components/z-divider/index.d.ts +0 -0
- package/dist/types/components/z-ghost-loading/index.d.ts +0 -0
- package/dist/types/components/z-info-reveal/index.d.ts +0 -0
- package/dist/types/components/z-offcanvas/index.d.ts +6 -4
- package/dist/types/components/z-pagination/index.d.ts +0 -0
- package/dist/types/components/z-popover/index.d.ts +0 -0
- package/dist/types/components/z-section-title/index.d.ts +0 -0
- package/dist/types/components/z-skip-to-content/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-body/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-cell/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-empty-box/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-expanded-row/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-footer/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-head/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-header/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-header-row/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-row/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-sticky-footer/index.d.ts +0 -0
- package/dist/types/components/z-tag/index.d.ts +0 -0
- package/dist/types/components/z-visually-hidden/index.d.ts +0 -0
- package/dist/types/components.d.ts +9 -21
- package/dist/types/constants/breakpoints.d.ts +0 -0
- package/dist/types/constants/icons.d.ts +0 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +0 -2
- package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-messages-pocket/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket-body/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket-header/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket-message/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/z-alert/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/z-otp/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +0 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -0
- package/dist/types/utils/utils.d.ts +0 -0
- package/dist/web-components-library/index.esm.js +0 -0
- package/dist/web-components-library/p-0446752e.entry.js +1 -0
- package/dist/web-components-library/{p-f5a99b28.entry.js → p-05ced71c.entry.js} +1 -1
- package/dist/web-components-library/p-19ca449e.entry.js +1 -0
- package/dist/web-components-library/p-26b39ec3.entry.js +1 -0
- package/dist/web-components-library/p-3a9cc467.entry.js +1 -0
- package/dist/web-components-library/{p-10adc1fa.entry.js → p-417b1b6c.entry.js} +1 -1
- package/dist/web-components-library/{p-9db2bf11.entry.js → p-810bd730.entry.js} +1 -1
- package/dist/web-components-library/p-9d03a7d6.entry.js +1 -0
- package/dist/web-components-library/{p-f9f42d17.entry.js → p-c081e1f4.entry.js} +1 -1
- package/dist/web-components-library/{p-6736e894.entry.js → p-ede9fbf5.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.css +1 -2
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/loader/cdn.js +0 -0
- package/loader/index.cjs.js +0 -0
- package/loader/index.d.ts +0 -0
- package/loader/index.es2017.js +0 -0
- package/loader/index.js +0 -0
- package/loader/package.json +0 -0
- package/package.json +3 -2
- package/readme.md +1 -0
- package/www/build/index.esm.js +0 -0
- package/www/build/p-0446752e.entry.js +1 -0
- package/www/build/{p-f5a99b28.entry.js → p-05ced71c.entry.js} +1 -1
- package/www/build/p-19ca449e.entry.js +1 -0
- package/www/build/p-26b39ec3.entry.js +1 -0
- package/www/build/p-3a9cc467.entry.js +1 -0
- package/www/build/{p-10adc1fa.entry.js → p-417b1b6c.entry.js} +1 -1
- package/www/build/{p-9db2bf11.entry.js → p-810bd730.entry.js} +1 -1
- package/www/build/p-9bc44095.js +1 -0
- package/www/build/p-9d03a7d6.entry.js +1 -0
- package/www/build/{p-f39bb490.css → p-ab4e13f7.css} +1 -2
- package/www/build/{p-f9f42d17.entry.js → p-c081e1f4.entry.js} +1 -1
- package/www/build/{p-6736e894.entry.js → p-ede9fbf5.entry.js} +1 -1
- package/www/build/web-components-library.css +1 -2
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.js +0 -0
- package/www/host.config.json +0 -0
- package/www/index.html +40 -1
- package/dist/cjs/z-app-header_2.cjs.entry.js +0 -152
- package/dist/cjs/z-button.cjs.entry.js +0 -43
- package/dist/cjs/z-offcanvas.cjs.entry.js +0 -70
- package/dist/esm/z-app-header_2.entry.js +0 -147
- package/dist/esm/z-button.entry.js +0 -39
- package/dist/esm/z-offcanvas.entry.js +0 -66
- package/dist/web-components-library/p-068951a7.entry.js +0 -1
- package/dist/web-components-library/p-06b7dad4.entry.js +0 -1
- package/dist/web-components-library/p-1570917d.entry.js +0 -1
- package/dist/web-components-library/p-157aea3b.entry.js +0 -1
- package/dist/web-components-library/p-8d134dc4.entry.js +0 -1
- package/dist/web-components-library/p-c722c5a4.entry.js +0 -1
- package/www/build/p-068951a7.entry.js +0 -1
- package/www/build/p-06b7dad4.entry.js +0 -1
- package/www/build/p-1570917d.entry.js +0 -1
- package/www/build/p-157aea3b.entry.js +0 -1
- package/www/build/p-8d134dc4.entry.js +0 -1
- package/www/build/p-c722c5a4.entry.js +0 -1
- package/www/build/p-fcacd67c.js +0 -1
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
6
|
const index$1 = require('./index-7a9a8430.js');
|
|
7
7
|
|
|
8
|
-
const stylesCss = ":host{--aspect-ratio:1.62;--z-card--border-color:var(--gray200);--z-card--color-cover-background:var(--color-surface01);--z-card--text-background:var(--color-surface01);--z-card--text-border-radius:none;--z-card--text-border:none;position:relative;display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}*,::slotted(*){box-sizing:border-box}:host(:not([variant=\"overlay\"])) .cover-container{position:relative;width:100%}.cover-container{padding-bottom:calc(100% / var(--aspect-ratio))}::slotted([slot=\"cover\"]),.color-cover{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center}.cover-container>z-icon{--z-icon-width:calc(var(--space-unit) * 11);--z-icon-height:var(--z-icon-width);position:absolute;top:calc(50% - calc(var(--z-icon-height) / 2));left:calc(50% - calc(var(--z-icon-width) / 2));fill:var(--color-primary01)}.color-cover{background-color:var(--z-card--color-cover-background)}.content{display:flex;flex-direction:column;padding-top:var(--space-unit)}.color-cover .cover-content{display:flex;height:100%;flex-direction:column;justify-content:flex-end;padding:var(--space-unit)}::slotted([slot=\"metadata\"]),::slotted([slot=\"title\"]),::slotted([slot=\"text\"]){display:box;overflow:hidden;-webkit-box-orient:vertical}::slotted([slot=\"title\"]:not(:last-child)),::slotted([slot=\"text\"]:not(:last-child)){margin-bottom:var(--space-unit)}::slotted([slot=\"text\"]),::slotted([slot=\"actions\"]){margin:0}::slotted([slot=\"metadata\"]:not(:last-child)){margin:0 0 calc(var(--space-unit) * 0.25);-webkit-line-clamp:1;text-transform:uppercase}::slotted([slot=\"title\"]){margin:0;font-weight:var(--font-sb);-webkit-line-clamp:2}::slotted([slot=\"text\"]){-webkit-line-clamp:3}.actions{display:flex;flex-direction:row;align-items:center}::slotted([slot=\"action\"]:not(:last-child)){margin-right:calc(var(--space-unit) * 1.5)}:host([clickable]){cursor:pointer}:host([clickable]:focus:focus-visible){outline:none}:host(:not([variant])[clickable]:focus:focus-visible){padding:calc(var(--space-unit) * 0.5);box-shadow:var(--shadow-focus-primary)}:host([variant=\"text\"]){border:var(--z-card--text-border);background-color:var(--z-card--text-background);border-radius:var(--z-card--text-border-radius)}:host([showshadow])>.content,:host([variant=\"border\"])>.content,:host([variant=\"shadow\"])>.content{height:100%;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2)}:host([variant=\"text\"])>.content{padding:calc(var(--space-unit) * 2) var(--space-unit)}:host([variant=\"border\"]) .actions,:host([variant=\"shadow\"]) .actions{margin-top:auto}:host([variant=\"border\"]){border:var(--border-size-small) solid var(--z-card--border-color)}:host([variant=\"border\"][clickable]:hover)>.content{background:var(--color-background)}:host([variant=\"border\"][clickable]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}:host([variant=\"border\"][clickable]:active){border-color:transparent}:host([variant=\"shadow\"]),:host([showshadow]){box-shadow:var(--shadow-2)}:host([variant=\"shadow\"][clickable]:hover),:host([clickable][showshadow]:hover){box-shadow:var(--shadow-4)}:host([variant=\"shadow\"][clickable]:focus:focus-visible),:host([clickable][showshadow]:focus:focus-visible){box-shadow:var(--shadow-
|
|
8
|
+
const stylesCss = ":host{--aspect-ratio:1.62;--z-card--border-color:var(--gray200);--z-card--color-cover-background:var(--color-surface01);--z-card--text-background:var(--color-surface01);--z-card--text-border-radius:none;--z-card--text-border:none;position:relative;display:flex;flex-direction:column;font-family:var(--font-family-sans);font-weight:var(--font-rg)}*,::slotted(*){box-sizing:border-box}:host(:not([variant=\"overlay\"])) .cover-container{position:relative;width:100%}.cover-container{padding-bottom:calc(100% / var(--aspect-ratio))}::slotted([slot=\"cover\"]),.color-cover{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center}.cover-container>z-icon{--z-icon-width:calc(var(--space-unit) * 11);--z-icon-height:var(--z-icon-width);position:absolute;top:calc(50% - calc(var(--z-icon-height) / 2));left:calc(50% - calc(var(--z-icon-width) / 2));fill:var(--color-primary01)}.color-cover{background-color:var(--z-card--color-cover-background)}.content{display:flex;flex-direction:column;padding-top:var(--space-unit)}.color-cover .cover-content{display:flex;height:100%;flex-direction:column;justify-content:flex-end;padding:var(--space-unit)}::slotted([slot=\"metadata\"]),::slotted([slot=\"title\"]),::slotted([slot=\"text\"]){display:box;overflow:hidden;-webkit-box-orient:vertical}::slotted([slot=\"title\"]:not(:last-child)),::slotted([slot=\"text\"]:not(:last-child)){margin-bottom:var(--space-unit)}::slotted([slot=\"text\"]),::slotted([slot=\"actions\"]){margin:0}::slotted([slot=\"metadata\"]:not(:last-child)){margin:0 0 calc(var(--space-unit) * 0.25);-webkit-line-clamp:1;text-transform:uppercase}::slotted([slot=\"title\"]){margin:0;font-weight:var(--font-sb);-webkit-line-clamp:2}::slotted([slot=\"text\"]){-webkit-line-clamp:3}.actions{display:flex;flex-direction:row;align-items:center}::slotted([slot=\"action\"]:not(:last-child)){margin-right:calc(var(--space-unit) * 1.5)}:host([clickable]){cursor:pointer}:host([clickable]:focus:focus-visible){outline:none}:host(:not([variant])[clickable]:focus:focus-visible){padding:calc(var(--space-unit) * 0.5);box-shadow:var(--shadow-focus-primary)}:host([variant=\"text\"]){border:var(--z-card--text-border);background-color:var(--z-card--text-background);border-radius:var(--z-card--text-border-radius)}:host([showshadow])>.content,:host([variant=\"border\"])>.content,:host([variant=\"shadow\"])>.content{height:100%;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2)}:host([variant=\"text\"])>.content{padding:calc(var(--space-unit) * 2) var(--space-unit)}:host([variant=\"border\"]) .actions,:host([variant=\"shadow\"]) .actions{margin-top:auto}:host([variant=\"border\"]){border:var(--border-size-small) solid var(--z-card--border-color)}:host([variant=\"border\"][clickable]:hover)>.content{background:var(--color-background)}:host([variant=\"border\"][clickable]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}:host([variant=\"border\"][clickable]:active){border-color:transparent}:host([variant=\"shadow\"]),:host([showshadow]){box-shadow:var(--shadow-2)}:host([variant=\"shadow\"][clickable]:hover),:host([clickable][showshadow]:hover){box-shadow:var(--shadow-4)}:host([variant=\"shadow\"][clickable]:focus:focus-visible),:host([clickable][showshadow]:focus:focus-visible){box-shadow:var(--shadow-4)}:host([variant=\"shadow\"][clickable]:active),:host([clickable][showshadow]:active){box-shadow:none}:host([variant=\"overlay\"]) .content{position:absolute;top:0;right:0;bottom:0;left:0;justify-content:flex-end;padding:var(--space-unit);background-image:linear-gradient(to top, rgb(0 0 0 / 100%), rgb(0 0 0 / 0%));color:var(--color-text-inverse);fill:var(--color-text-inverse)}";
|
|
9
9
|
|
|
10
10
|
const ZCard = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -7,7 +7,7 @@ const index$1 = require('./index-7a9a8430.js');
|
|
|
7
7
|
const utils = require('./utils-305151da.js');
|
|
8
8
|
require('./breakpoints-88c4fd6c.js');
|
|
9
9
|
|
|
10
|
-
const stylesCss = ".sc-z-chip-h
|
|
10
|
+
const stylesCss = ".sc-z-chip-h>button.sc-z-chip{display:inline-flex;align-items:center;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--gray400);background-color:var(--bg-white);border-radius:14px;color:var(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);font-size:14px;font-weight:var(--font-sb)}.sc-z-chip-h>button.sc-z-chip:not(:disabled)>z-icon.sc-z-chip:last-child:hover{color:var(--color-hover-primary);fill:var(--color-hover-primary)}.sc-z-chip-h>button.sc-z-chip:hover:not(:disabled)>z-icon.sc-z-chip:first-child{fill:var(--color-icon02)}.sc-z-chip-h>button.sc-z-chip>z-icon.icon-sx.sc-z-chip{margin-right:calc(var(--space-unit) / 2)}.sc-z-chip-h>button.sc-z-chip>z-icon.sc-z-chip:last-child{margin-left:var(--space-unit);cursor:pointer;fill:var(--color-primary01)}.sc-z-chip-h>button.sc-z-chip:disabled,.sc-z-chip-h>button.sc-z-chip:disabled>z-icon.sc-z-chip{color:var(--color-disabled03);fill:var(--color-disabled03)}.sc-z-chip-h>button.sc-z-chip:disabled>z-icon.sc-z-chip{cursor:auto}.sc-z-chip-h>button.sc-z-chip:disabled{border:var(--border-size-small) solid var(--color-disabled01)}.sc-z-chip-h>button.sc-z-chip:focus:focus-visible,.sc-z-chip-h>div.sc-z-chip:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.sc-z-chip-h>button.sc-z-chip:hover:not(:disabled):active:hover>z-icon.sc-z-chip:last-child{color:var(--color-primary01);fill:var(--color-primary01)}.sc-z-chip-h>div.sc-z-chip{display:inline-flex;min-height:28px;align-items:center;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--bg-grey-200);background-color:var(--bg-white);border-radius:14px;color:var(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);font-size:14px;line-height:28px}.sc-z-chip-h>div.sc-z-chip>z-icon.sc-z-chip{margin-right:calc(var(--space-unit) / 2)}.sc-z-chip-h>button.default.sc-z-chip,.sc-z-chip-h>div.default.sc-z-chip{min-height:44px;border-radius:22px;line-height:44px}.sc-z-chip-h>button.medium.sc-z-chip,.sc-z-chip-h>div.medium.sc-z-chip{min-height:40px;border-radius:22px;line-height:40px}.sc-z-chip-h>button.small.sc-z-chip,.sc-z-chip-h>div.small.sc-z-chip{min-height:36px;border-radius:22px;line-height:36px}@media only screen and (min-width: 1152px){.sc-z-chip-h>button.sc-z-chip{font-size:12px}.sc-z-chip-h>div.sc-z-chip{font-size:12px}.sc-z-chip-h>button.default.sc-z-chip,.sc-z-chip-h>div.default.sc-z-chip{min-height:32px;border-radius:16px;line-height:32px}.sc-z-chip-h>button.medium.sc-z-chip,.sc-z-chip-h>div.medium.sc-z-chip{min-height:28px;border-radius:16px;line-height:28px}.sc-z-chip-h>button.small.sc-z-chip,.sc-z-chip-h>div.small.sc-z-chip{min-height:24px;border-radius:16px;line-height:24px}}";
|
|
11
11
|
|
|
12
12
|
const ZChip = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -17,8 +17,6 @@ const ZChip = class {
|
|
|
17
17
|
this.type = index$1.ZChipType.DEFAULT;
|
|
18
18
|
/** set z-chip as disabled */
|
|
19
19
|
this.disabled = false;
|
|
20
|
-
/** z-chip aria-label string */
|
|
21
|
-
this.ariaLabel = "";
|
|
22
20
|
}
|
|
23
21
|
emitinteractiveIconClick() {
|
|
24
22
|
this.interactiveIconClick.emit();
|
|
@@ -28,10 +26,9 @@ const ZChip = class {
|
|
|
28
26
|
}
|
|
29
27
|
render() {
|
|
30
28
|
if (this.interactiveIcon) {
|
|
31
|
-
return (index.h("
|
|
32
|
-
}, "aria-label": this.ariaLabel, disabled: this.disabled }, index.h("z-icon", { name: this.interactiveIcon, width: this.getIconSize(), height: this.getIconSize() }))));
|
|
29
|
+
return (index.h("button", { class: this.type, disabled: this.disabled, tabindex: "0", type: "button" }, this.icon && (index.h("z-icon", { class: "icon-sx", name: this.icon, width: this.getIconSize(), height: this.getIconSize() })), index.h("slot", null), index.h("z-icon", { tabIndex: this.disabled ? -1 : 0, onClick: () => this.emitinteractiveIconClick(), onKeyUp: (e) => utils.handleKeyboardSubmit(e, this.emitinteractiveIconClick.bind(this)), name: this.interactiveIcon, width: this.getIconSize(), height: this.getIconSize() })));
|
|
33
30
|
}
|
|
34
|
-
return (index.h("div", { class: `${this.type}
|
|
31
|
+
return (index.h("div", { class: `${this.type}`, tabindex: "0" }, this.icon && (index.h("z-icon", { name: this.icon, width: this.getIconSize(), height: this.getIconSize() })), index.h("slot", null)));
|
|
35
32
|
}
|
|
36
33
|
get el() { return index.getElement(this); }
|
|
37
34
|
};
|
|
@@ -19,14 +19,6 @@ const ZMyzCardFooter = class {
|
|
|
19
19
|
}
|
|
20
20
|
handleToggle() {
|
|
21
21
|
this.isOpen = !this.isOpen;
|
|
22
|
-
if (this.isOpen) {
|
|
23
|
-
const firstElem = this.getFirstListItem();
|
|
24
|
-
if (firstElem) {
|
|
25
|
-
requestAnimationFrame(() => {
|
|
26
|
-
firstElem.focus();
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
22
|
}
|
|
31
23
|
getTitleAuthors() {
|
|
32
24
|
return this.allowTooltipAuthors ? this.autori : "";
|
|
@@ -56,13 +48,9 @@ const ZMyzCardFooter = class {
|
|
|
56
48
|
this.elementsEllipsis();
|
|
57
49
|
}
|
|
58
50
|
}
|
|
59
|
-
getFirstListItem() {
|
|
60
|
-
return this.host.querySelector("[slot=list] > li a");
|
|
61
|
-
}
|
|
62
51
|
render() {
|
|
63
|
-
return (index.h("div", { class: Object.assign(Object.assign({}, this.retrieveClass()), { wrapper: true }) }, index.h("footer", { class: this.retrieveClass(), onTransitionEnd: (e) => this.footerTransitionHandler(e) }, index.h("span", { class: "toggle" }, index.h("slot", { name: "toggle" })), this.titolo && index.h("p", { class: { "custom-content": this.customContent } }, this.titolo), index.h("div", { class: { "content": true, "custom-content": this.customContent } }, index.h("div", null, index.h("p", { class: "authors", ref: (el) => (this.ellipsisAuthors = el) }, index.h("span", { title: this.getTitleAuthors() }, index.h("span", {
|
|
52
|
+
return (index.h("div", { class: Object.assign(Object.assign({}, this.retrieveClass()), { wrapper: true }) }, index.h("footer", { class: this.retrieveClass(), onTransitionEnd: (e) => this.footerTransitionHandler(e) }, index.h("span", { class: "toggle" }, index.h("slot", { name: "toggle" })), this.titolo && index.h("p", { class: { "custom-content": this.customContent } }, this.titolo), index.h("div", { class: { "content": true, "custom-content": this.customContent } }, index.h("div", null, index.h("p", { class: "authors", ref: (el) => (this.ellipsisAuthors = el) }, index.h("span", { title: this.getTitleAuthors() }, index.h("span", { class: "bold" }, this.autori))), index.h("p", { class: "year-isbn" }, index.h("span", { class: "isbn" }, index.h("span", null, index.h("span", { class: "bold" }, this.isbn), " (ed. cartacea)")))), index.h("div", { class: `slot-handler ${this.isOpen ? "visible" : "hidden"}` }, index.h("slot", { name: "list" })))), this.customContent && index.h("slot", { name: "content" })));
|
|
64
53
|
}
|
|
65
|
-
get host() { return index.getElement(this); }
|
|
66
54
|
};
|
|
67
55
|
ZMyzCardFooter.style = stylesCss;
|
|
68
56
|
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
6
|
|
|
7
|
-
const stylesCss = "button{display:flex;width:42px;width:calc(var(--space-unit) * 6);height:calc(var(--space-unit) * 5);height:calc(var(--space-unit) * 6);align-items:center;justify-content:center;padding:0;border:none;border-left:var(--border-size-medium) solid var(--color-surface03);margin:0;background:none;border-radius:0 var(--border-radius) 0 0;color:var(--color-primary01);cursor:pointer;fill:var(--color-primary01);outline:none}button:active,button:focus{color:var(--blue700);fill:var(--blue700)}button>span{display:flex;width:28px;height:28px;align-items:center;justify-content:center;border:0;border-radius:var(--border-radius)}button:hover>span{background:var(--color-primary03)}button:focus>span{background:var(--color-surface01);border-radius:var(--border-radius);box-shadow:var(--
|
|
7
|
+
const stylesCss = "button{display:flex;width:42px;width:calc(var(--space-unit) * 6);height:calc(var(--space-unit) * 5);height:calc(var(--space-unit) * 6);align-items:center;justify-content:center;padding:0;border:none;border-left:var(--border-size-medium) solid var(--color-surface03);margin:0;background:none;border-radius:0 var(--border-radius) 0 0;color:var(--color-primary01);cursor:pointer;fill:var(--color-primary01);outline:none}button:active,button:focus{color:var(--blue700);fill:var(--blue700)}button>span{display:flex;width:28px;height:28px;align-items:center;justify-content:center;border:0;border-radius:var(--border-radius)}button:hover>span{background:var(--color-primary03)}button:focus>span{background:var(--color-surface01);border-radius:var(--border-radius);box-shadow:0 0 2px 2px var(--accent-dark)}button:active>span{background:var(--color-surface01);border-radius:var(--border-radius);box-shadow:var(--shadow-2)}button:disabled{cursor:not-allowed}button:disabled>span{background:none;box-shadow:var(--shadow-0);pointer-events:none}button:disabled>span>z-icon{fill:var(--color-surface03)}button::-moz-focus-inner{border:0}";
|
|
8
8
|
|
|
9
9
|
const ZMyzCardIcon = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -70,7 +70,7 @@ const ZMyzCardCover = class {
|
|
|
70
70
|
};
|
|
71
71
|
ZMyzCardCover.style = stylesCss$1;
|
|
72
72
|
|
|
73
|
-
const stylesCss = "header{position:relative;display:flex;width:auto;height:calc(var(--space-unit) * 6);flex-direction:row;align-items:flex-start;justify-content:space-between;border-bottom:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius) var(--border-radius) var(--border-no-radius) var(--border-no-radius)}
|
|
73
|
+
const stylesCss = "header{position:relative;display:flex;width:auto;height:calc(var(--space-unit) * 6);flex-direction:row;align-items:flex-start;justify-content:space-between;border-bottom:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius) var(--border-radius) var(--border-no-radius) var(--border-no-radius)}header.real,header.trial,header.temp{border-bottom:var(--border-size-medium) solid var(--accent);background-color:var(--accent-lighter)}.card-title{overflow:hidden;height:calc(var(--space-unit) * 2);padding:calc(var(--space-unit) * 2);margin:0;color:var(--color-surface05);font-family:var(--font-family-sans);font-size:12px;font-weight:var(--font-sb);letter-spacing:0.22px;line-height:calc(var(--space-unit) * 2);text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.faded{border-bottom:var(--border-size-medium) solid var(--color-surface02)}.faded.real,.faded.trial,.faded.temp{border-top:var(--border-size-medium) solid var(--accent);border-right:var(--border-size-medium) solid var(--accent);border-left:var(--border-size-medium) solid var(--accent)}";
|
|
74
74
|
|
|
75
75
|
const ZMyzCardHeader = class {
|
|
76
76
|
constructor(hostRef) {
|
|
@@ -97,7 +97,7 @@ const ZMyzCardHeader = class {
|
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
render() {
|
|
100
|
-
return (index.h("header", { class: this.retrieveClass() }, index.h("
|
|
100
|
+
return (index.h("header", { class: this.retrieveClass() }, index.h("span", { class: "card-title", ref: (el) => (this.ellipsis = el), title: this.getTitle() }, this.titolo), index.h("slot", { name: "icon" })));
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
ZMyzCardHeader.style = stylesCss;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
6
|
|
|
7
|
-
const stylesCss = ":host{position:relative;width:calc(var(--space-unit) * 5);font-family:var(--dashboard-font);font-weight:var(--font-rg)}:host(:not(:last-child)){flex:1}:host(:not(:last-child))::after{position:absolute;z-index:1;top:calc(var(--space-unit) * 4);right:calc(var(--space-unit) * 2);left:calc(var(--space-unit) * 3);display:block;width:auto;border-bottom:solid 2px var(--bg-grey-700);margin:0 calc(-1 * calc(var(--space-unit) * 2)) 0 calc(var(--space-unit) * 2);content:\"\"}.stepper-item{display:flex;width:calc(var(--space-unit) * 5);flex-direction:column;align-items:center;padding:0;border:0;appearance:none;background:transparent;color:inherit;font-family:inherit;font-size:18px;line-height:28px;outline:0;text-decoration:none}.stepper-item span{display:none;width:calc(100% + calc(var(--space-unit) * 4));text-align:center}:host(:not([disabled])) .stepper-item{cursor:pointer}:host([disabled]) .stepper-item{pointer-events:none}.indicator{display:flex;width:calc(var(--space-unit) * 4);height:calc(var(--space-unit) * 4);box-sizing:border-box;align-items:center;justify-content:center;border:2px solid var(--myz-blue);margin:calc(var(--space-unit) * 2);background:var(--bg-white);border-radius:50%;color:var(--myz-blue);content:counter(stepper);font-size:14px;font-weight:var(--font-sb);line-height:1}:host([pressed]:not([disabled])) .indicator{border-color:var(--myz-blue-dark);background:var(--myz-blue-dark);color:var(--text-white)}:host(:not([disabled]):focus-within) .indicator{box-shadow:var(--
|
|
7
|
+
const stylesCss = ":host{position:relative;width:calc(var(--space-unit) * 5);font-family:var(--dashboard-font);font-weight:var(--font-rg)}:host(:not(:last-child)){flex:1}:host(:not(:last-child))::after{position:absolute;z-index:1;top:calc(var(--space-unit) * 4);right:calc(var(--space-unit) * 2);left:calc(var(--space-unit) * 3);display:block;width:auto;border-bottom:solid 2px var(--bg-grey-700);margin:0 calc(-1 * calc(var(--space-unit) * 2)) 0 calc(var(--space-unit) * 2);content:\"\"}.stepper-item{display:flex;width:calc(var(--space-unit) * 5);flex-direction:column;align-items:center;padding:0;border:0;appearance:none;background:transparent;color:inherit;font-family:inherit;font-size:18px;line-height:28px;outline:0;text-decoration:none}.stepper-item span{display:none;width:calc(100% + calc(var(--space-unit) * 4));text-align:center}:host(:not([disabled])) .stepper-item{cursor:pointer}:host([disabled]) .stepper-item{pointer-events:none}.indicator{display:flex;width:calc(var(--space-unit) * 4);height:calc(var(--space-unit) * 4);box-sizing:border-box;align-items:center;justify-content:center;border:2px solid var(--myz-blue);margin:calc(var(--space-unit) * 2);background:var(--bg-white);border-radius:50%;color:var(--myz-blue);content:counter(stepper);font-size:14px;font-weight:var(--font-sb);line-height:1}:host([pressed]:not([disabled])) .indicator{border-color:var(--myz-blue-dark);background:var(--myz-blue-dark);color:var(--text-white)}:host(:not([disabled]):focus-within) .indicator{box-shadow:0 0 2px 2px var(--accent-dark)}:host([disabled]) .indicator{border-color:currentcolor;background:var(--bg-grey-200);color:var(--text-grey-700)}@media only screen and (min-width: 768px){:host{width:calc(var(--space-unit) * 10)}:host(:not(:last-child))::after{top:calc(var(--space-unit) * 5);left:calc(var(--space-unit) * 8)}.stepper-item{width:calc(var(--space-unit) * 10)}.stepper-item span{display:block}.indicator{width:calc(var(--space-unit) * 6);height:calc(var(--space-unit) * 6);font-size:16px}}";
|
|
8
8
|
|
|
9
9
|
const ZStepperItem = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
6
|
|
|
7
|
-
const stylesCss = "button{height:36px;padding-right:calc(var(--space-unit) * 2);padding-left:0;border:var(--border-size-medium) solid;border-color:transparent;background-color:var(--bg-white);border-radius:var(--border-radius);box-shadow:0 0 4px 0 rgb(0 0 0 / 20%);color:var(--myz-blue);cursor:pointer;fill:var(--myz-blue);font-family:var(--dashboard-font);font-size:14px;font-weight:var(--font-sb);outline:none;text-transform:uppercase}button::-moz-focus-inner{border:0}button:hover{color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}button:focus{box-shadow:var(--
|
|
7
|
+
const stylesCss = "button{height:36px;padding-right:calc(var(--space-unit) * 2);padding-left:0;border:var(--border-size-medium) solid;border-color:transparent;background-color:var(--bg-white);border-radius:var(--border-radius);box-shadow:0 0 4px 0 rgb(0 0 0 / 20%);color:var(--myz-blue);cursor:pointer;fill:var(--myz-blue);font-family:var(--dashboard-font);font-size:14px;font-weight:var(--font-sb);outline:none;text-transform:uppercase;transition:all 200ms linear}button::-moz-focus-inner{border:0}button:hover{color:var(--myz-blue-dark);fill:var(--myz-blue-dark)}button:focus{border-color:var(--myz-blue);box-shadow:0 0 2px 2px var(--accent-dark);color:var(--myz-blue);fill:var(--myz-blue)}button:active{border-color:var(--myz-blue-light);box-shadow:0 2px 4px 0 rgb(0 0 0 / 40%);color:var(--myz-blue-light);fill:var(--myz-blue-light)}button:disabled{color:var(--text-grey-700);fill:var(--text-grey-700)}z-icon{display:inline-block;margin:0 var(--space-unit) 0 calc(var(--space-unit) * 2);transform:rotate(360deg);transition:all 200ms linear}button.isopen{top:-20px}button.avoid-clicks{pointer-events:none}";
|
|
8
8
|
|
|
9
9
|
const ZToggleButton = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -14,8 +14,6 @@ const ZToggleButton = class {
|
|
|
14
14
|
this.isdisabled = false;
|
|
15
15
|
/** open by default (optional) */
|
|
16
16
|
this.opened = false;
|
|
17
|
-
/** aria-label for the button */
|
|
18
|
-
this.ariaLabel = "";
|
|
19
17
|
}
|
|
20
18
|
emitToggleClick() {
|
|
21
19
|
if (this.isdisabled) {
|
|
@@ -28,7 +26,7 @@ const ZToggleButton = class {
|
|
|
28
26
|
return (index.h("button", { tabindex: this.avoidclick ? "-1" : "0", class: {
|
|
29
27
|
"isopen": this.opened,
|
|
30
28
|
"avoid-clicks": this.avoidclick,
|
|
31
|
-
}, disabled: this.isdisabled,
|
|
29
|
+
}, disabled: this.isdisabled, onClick: () => this.emitToggleClick() }, index.h("z-icon", { name: this.opened ? "chevron-down" : "chevron-up", width: 16, height: 16 }), this.label));
|
|
32
30
|
}
|
|
33
31
|
};
|
|
34
32
|
ZToggleButton.style = stylesCss;
|
|
@@ -115,7 +115,7 @@ export class ZButtonSort {
|
|
|
115
115
|
"optional": true,
|
|
116
116
|
"docs": {
|
|
117
117
|
"tags": [],
|
|
118
|
-
"text": "
|
|
118
|
+
"text": "occurrencies counter (optional)"
|
|
119
119
|
},
|
|
120
120
|
"attribute": "counter",
|
|
121
121
|
"reflect": false
|
|
@@ -208,7 +208,7 @@ export class ZButtonSort {
|
|
|
208
208
|
"composed": true,
|
|
209
209
|
"docs": {
|
|
210
210
|
"tags": [],
|
|
211
|
-
"text": "sorting direction click event, returns
|
|
211
|
+
"text": "sorting direction click event, returns buttonid and sortAsc"
|
|
212
212
|
},
|
|
213
213
|
"complexType": {
|
|
214
214
|
"original": "any",
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { Device, ZChipType } from "../../../beans";
|
|
3
|
-
import { getDevice } from "../../../utils/utils";
|
|
3
|
+
import { getDevice, handleKeyboardSubmit } from "../../../utils/utils";
|
|
4
4
|
export class ZChip {
|
|
5
5
|
constructor() {
|
|
6
6
|
/** z-chip size type, can be default, medium or small */
|
|
7
7
|
this.type = ZChipType.DEFAULT;
|
|
8
8
|
/** set z-chip as disabled */
|
|
9
9
|
this.disabled = false;
|
|
10
|
-
/** z-chip aria-label string */
|
|
11
|
-
this.ariaLabel = "";
|
|
12
10
|
}
|
|
13
11
|
emitinteractiveIconClick() {
|
|
14
12
|
this.interactiveIconClick.emit();
|
|
@@ -18,11 +16,9 @@ export class ZChip {
|
|
|
18
16
|
}
|
|
19
17
|
render() {
|
|
20
18
|
if (this.interactiveIcon) {
|
|
21
|
-
return (h("
|
|
22
|
-
() => this.emitinteractiveIconClick();
|
|
23
|
-
}, "aria-label": this.ariaLabel, disabled: this.disabled }, h("z-icon", { name: this.interactiveIcon, width: this.getIconSize(), height: this.getIconSize() }))));
|
|
19
|
+
return (h("button", { class: this.type, disabled: this.disabled, tabindex: "0", type: "button" }, this.icon && (h("z-icon", { class: "icon-sx", name: this.icon, width: this.getIconSize(), height: this.getIconSize() })), h("slot", null), h("z-icon", { tabIndex: this.disabled ? -1 : 0, onClick: () => this.emitinteractiveIconClick(), onKeyUp: (e) => handleKeyboardSubmit(e, this.emitinteractiveIconClick.bind(this)), name: this.interactiveIcon, width: this.getIconSize(), height: this.getIconSize() })));
|
|
24
20
|
}
|
|
25
|
-
return (h("div", { class: `${this.type}
|
|
21
|
+
return (h("div", { class: `${this.type}`, tabindex: "0" }, this.icon && (h("z-icon", { name: this.icon, width: this.getIconSize(), height: this.getIconSize() })), h("slot", null)));
|
|
26
22
|
}
|
|
27
23
|
static get is() { return "z-chip"; }
|
|
28
24
|
static get encapsulation() { return "scoped"; }
|
|
@@ -112,24 +108,6 @@ export class ZChip {
|
|
|
112
108
|
"attribute": "disabled",
|
|
113
109
|
"reflect": true,
|
|
114
110
|
"defaultValue": "false"
|
|
115
|
-
},
|
|
116
|
-
"ariaLabel": {
|
|
117
|
-
"type": "string",
|
|
118
|
-
"mutable": false,
|
|
119
|
-
"complexType": {
|
|
120
|
-
"original": "string",
|
|
121
|
-
"resolved": "string",
|
|
122
|
-
"references": {}
|
|
123
|
-
},
|
|
124
|
-
"required": false,
|
|
125
|
-
"optional": false,
|
|
126
|
-
"docs": {
|
|
127
|
-
"tags": [],
|
|
128
|
-
"text": "z-chip aria-label string"
|
|
129
|
-
},
|
|
130
|
-
"attribute": "aria-label",
|
|
131
|
-
"reflect": false,
|
|
132
|
-
"defaultValue": "\"\""
|
|
133
111
|
}
|
|
134
112
|
};
|
|
135
113
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:host >
|
|
1
|
+
:host > button {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
padding: 0 calc(var(--space-unit) * 1.5);
|
|
@@ -12,53 +12,46 @@
|
|
|
12
12
|
font-weight: var(--font-sb);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
:host >
|
|
15
|
+
:host > button:not(:disabled) > z-icon:last-child:hover {
|
|
16
16
|
color: var(--color-hover-primary);
|
|
17
17
|
fill: var(--color-hover-primary);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
:host >
|
|
20
|
+
:host > button:hover:not(:disabled) > z-icon:first-child {
|
|
21
21
|
fill: var(--color-icon02);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
:host >
|
|
25
|
-
padding: 0;
|
|
26
|
-
border: none;
|
|
27
|
-
margin-left: var(--space-unit);
|
|
28
|
-
background-color: transparent;
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
:host > .z-chip-container > z-icon.icon-sx {
|
|
24
|
+
:host > button > z-icon.icon-sx {
|
|
33
25
|
margin-right: calc(var(--space-unit) / 2);
|
|
34
26
|
}
|
|
35
27
|
|
|
36
|
-
:host >
|
|
28
|
+
:host > button > z-icon:last-child {
|
|
29
|
+
margin-left: var(--space-unit);
|
|
30
|
+
cursor: pointer;
|
|
37
31
|
fill: var(--color-primary01);
|
|
38
32
|
}
|
|
39
33
|
|
|
40
|
-
:host >
|
|
41
|
-
:host >
|
|
42
|
-
:host > .z-chip-container[aria-disabled] > button > z-icon {
|
|
34
|
+
:host > button:disabled,
|
|
35
|
+
:host > button:disabled > z-icon {
|
|
43
36
|
color: var(--color-disabled03);
|
|
44
37
|
fill: var(--color-disabled03);
|
|
45
38
|
}
|
|
46
39
|
|
|
47
|
-
:host >
|
|
40
|
+
:host > button:disabled > z-icon {
|
|
48
41
|
cursor: auto;
|
|
49
42
|
}
|
|
50
43
|
|
|
51
|
-
:host >
|
|
44
|
+
:host > button:disabled {
|
|
52
45
|
border: var(--border-size-small) solid var(--color-disabled01);
|
|
53
46
|
}
|
|
54
47
|
|
|
55
|
-
:host >
|
|
56
|
-
|
|
48
|
+
:host > button:focus:focus-visible,
|
|
49
|
+
:host > div:focus:focus-visible {
|
|
57
50
|
box-shadow: var(--shadow-focus-primary);
|
|
58
51
|
outline: none;
|
|
59
52
|
}
|
|
60
53
|
|
|
61
|
-
:host > button:hover:not(:disabled):active:hover >
|
|
54
|
+
:host > button:hover:not(:disabled):active:hover > z-icon:last-child {
|
|
62
55
|
color: var(--color-primary01);
|
|
63
56
|
fill: var(--color-primary01);
|
|
64
57
|
}
|
|
@@ -83,21 +76,21 @@
|
|
|
83
76
|
}
|
|
84
77
|
|
|
85
78
|
/* :host type */
|
|
86
|
-
:host > .
|
|
79
|
+
:host > button.default,
|
|
87
80
|
:host > div.default {
|
|
88
81
|
min-height: 44px;
|
|
89
82
|
border-radius: 22px;
|
|
90
83
|
line-height: 44px;
|
|
91
84
|
}
|
|
92
85
|
|
|
93
|
-
:host > .
|
|
86
|
+
:host > button.medium,
|
|
94
87
|
:host > div.medium {
|
|
95
88
|
min-height: 40px;
|
|
96
89
|
border-radius: 22px;
|
|
97
90
|
line-height: 40px;
|
|
98
91
|
}
|
|
99
92
|
|
|
100
|
-
:host > .
|
|
93
|
+
:host > button.small,
|
|
101
94
|
:host > div.small {
|
|
102
95
|
min-height: 36px;
|
|
103
96
|
border-radius: 22px;
|
|
@@ -106,7 +99,7 @@
|
|
|
106
99
|
|
|
107
100
|
/* Desktop breakpoint */
|
|
108
101
|
@media only screen and (min-width: 1152px) {
|
|
109
|
-
:host >
|
|
102
|
+
:host > button {
|
|
110
103
|
font-size: 12px;
|
|
111
104
|
}
|
|
112
105
|
|
|
@@ -115,21 +108,21 @@
|
|
|
115
108
|
}
|
|
116
109
|
|
|
117
110
|
/* :host type */
|
|
118
|
-
:host > .
|
|
111
|
+
:host > button.default,
|
|
119
112
|
:host > div.default {
|
|
120
113
|
min-height: 32px;
|
|
121
114
|
border-radius: 16px;
|
|
122
115
|
line-height: 32px;
|
|
123
116
|
}
|
|
124
117
|
|
|
125
|
-
:host > .
|
|
118
|
+
:host > button.medium,
|
|
126
119
|
:host > div.medium {
|
|
127
120
|
min-height: 28px;
|
|
128
121
|
border-radius: 16px;
|
|
129
122
|
line-height: 28px;
|
|
130
123
|
}
|
|
131
124
|
|
|
132
|
-
:host > .
|
|
125
|
+
:host > button.small,
|
|
133
126
|
:host > div.small {
|
|
134
127
|
min-height: 24px;
|
|
135
128
|
border-radius: 16px;
|
|
@@ -5,8 +5,6 @@ export class ZToggleButton {
|
|
|
5
5
|
this.isdisabled = false;
|
|
6
6
|
/** open by default (optional) */
|
|
7
7
|
this.opened = false;
|
|
8
|
-
/** aria-label for the button */
|
|
9
|
-
this.ariaLabel = "";
|
|
10
8
|
}
|
|
11
9
|
emitToggleClick() {
|
|
12
10
|
if (this.isdisabled) {
|
|
@@ -19,7 +17,7 @@ export class ZToggleButton {
|
|
|
19
17
|
return (h("button", { tabindex: this.avoidclick ? "-1" : "0", class: {
|
|
20
18
|
"isopen": this.opened,
|
|
21
19
|
"avoid-clicks": this.avoidclick,
|
|
22
|
-
}, disabled: this.isdisabled,
|
|
20
|
+
}, disabled: this.isdisabled, onClick: () => this.emitToggleClick() }, h("z-icon", { name: this.opened ? "chevron-down" : "chevron-up", width: 16, height: 16 }), this.label));
|
|
23
21
|
}
|
|
24
22
|
static get is() { return "z-toggle-button"; }
|
|
25
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -104,24 +102,6 @@ export class ZToggleButton {
|
|
|
104
102
|
"attribute": "opened",
|
|
105
103
|
"reflect": false,
|
|
106
104
|
"defaultValue": "false"
|
|
107
|
-
},
|
|
108
|
-
"ariaLabel": {
|
|
109
|
-
"type": "string",
|
|
110
|
-
"mutable": false,
|
|
111
|
-
"complexType": {
|
|
112
|
-
"original": "string",
|
|
113
|
-
"resolved": "string",
|
|
114
|
-
"references": {}
|
|
115
|
-
},
|
|
116
|
-
"required": false,
|
|
117
|
-
"optional": false,
|
|
118
|
-
"docs": {
|
|
119
|
-
"tags": [],
|
|
120
|
-
"text": "aria-label for the button"
|
|
121
|
-
},
|
|
122
|
-
"attribute": "aria-label",
|
|
123
|
-
"reflect": false,
|
|
124
|
-
"defaultValue": "\"\""
|
|
125
105
|
}
|
|
126
106
|
};
|
|
127
107
|
}
|
|
@@ -15,6 +15,7 @@ button {
|
|
|
15
15
|
font-weight: var(--font-sb);
|
|
16
16
|
outline: none;
|
|
17
17
|
text-transform: uppercase;
|
|
18
|
+
transition: all 200ms linear;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
button::-moz-focus-inner {
|
|
@@ -27,7 +28,8 @@ button:hover {
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
button:focus {
|
|
30
|
-
|
|
31
|
+
border-color: var(--myz-blue);
|
|
32
|
+
box-shadow: 0 0 2px 2px var(--accent-dark);
|
|
31
33
|
color: var(--myz-blue);
|
|
32
34
|
fill: var(--myz-blue);
|
|
33
35
|
}
|
|
@@ -295,7 +295,7 @@ export class ZToastNotification {
|
|
|
295
295
|
"optional": true,
|
|
296
296
|
"docs": {
|
|
297
297
|
"tags": [],
|
|
298
|
-
"text": "toast notification type:
|
|
298
|
+
"text": "toast notification type: dark, light, accent, error, success, warning"
|
|
299
299
|
},
|
|
300
300
|
"attribute": "type",
|
|
301
301
|
"reflect": false
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { CardVariant } from "../../beans";
|
|
3
|
-
/**
|
|
4
|
-
* ZCard component.
|
|
5
|
-
* @cssprop --aspect-ratio - Cover aspect ratio. Default: `1.62`
|
|
6
|
-
* @cssprop --z-card--border-color - Default: `var(--gray200)`
|
|
7
|
-
* @cssprop --z-card--color-cover-background - Cover color. Default: `var(--color-surface01)`
|
|
8
|
-
* @cssprop --z-card--text-background - Background color for the `text` variant. Default: `var(--color-surface01)`
|
|
9
|
-
* @cssprop --z-card--text-border-radius - Default: `none`
|
|
10
|
-
* @cssprop --z-card--text-border - Configure CSS `border`. Default: `none`
|
|
11
|
-
*/
|
|
12
3
|
export class ZCard {
|
|
13
4
|
constructor() {
|
|
14
5
|
/** Enable click interactions on the card. Default: false */
|
|
@@ -183,7 +183,7 @@ Unfortunately the `aspect-ratio` property is still experimental */
|
|
|
183
183
|
|
|
184
184
|
:host([variant="shadow"][clickable]:focus:focus-visible),
|
|
185
185
|
:host([clickable][showshadow]:focus:focus-visible) {
|
|
186
|
-
box-shadow: var(--shadow-
|
|
186
|
+
box-shadow: var(--shadow-4);
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
:host([variant="shadow"][clickable]:active),
|
|
@@ -13,46 +13,33 @@ export class ZOffcanvas {
|
|
|
13
13
|
this.variant = OffCanvasVariant.PUSHCONTENT;
|
|
14
14
|
/** open component. Default: false */
|
|
15
15
|
this.open = false;
|
|
16
|
+
/** allows you to skip the entry animation on page load, to be used with the open prop at true */
|
|
17
|
+
this.skipanimationonload = false;
|
|
16
18
|
/** open content transitioning in a specified direction left | right. Default: left */
|
|
17
19
|
this.transitiondirection = TransitionDirection.LEFT;
|
|
18
20
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
/** set skipAnimation */
|
|
22
|
+
async setSkipAanimationOnLoad(value) {
|
|
23
|
+
this.skipanimationonload = value;
|
|
21
24
|
}
|
|
22
25
|
onOpenChanged() {
|
|
23
|
-
this.
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
handleOpenStatus() {
|
|
27
|
-
if (this.open) {
|
|
28
|
-
this.hostElement.style.opacity = "0";
|
|
29
|
-
this.hostElement.style.display = "flex";
|
|
30
|
-
if (this.variant === OffCanvasVariant.OVERLAY) {
|
|
31
|
-
document.body.style.overflowY = "hidden";
|
|
32
|
-
}
|
|
26
|
+
if (!this.open && this.skipanimationonload) {
|
|
27
|
+
this.skipanimationonload = false;
|
|
33
28
|
}
|
|
34
|
-
|
|
35
|
-
this.
|
|
36
|
-
document.body.style.overflowX = "hidden";
|
|
29
|
+
if (this.open) {
|
|
30
|
+
this.handleOverflowProperty();
|
|
37
31
|
}
|
|
32
|
+
this.canvasOpenStatusChanged.emit(this.open);
|
|
38
33
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
else if (this.variant === OffCanvasVariant.OVERLAY) {
|
|
44
|
-
this.hostElement.style.display = "none";
|
|
45
|
-
document.body.style.overflowX = "initial";
|
|
46
|
-
document.body.style.overflowY = "initial";
|
|
47
|
-
}
|
|
34
|
+
handleOverflowProperty() {
|
|
35
|
+
const overflow = this.variant === OffCanvasVariant.OVERLAY ? "overflow-y" : "overflow-x";
|
|
36
|
+
document.body.style[overflow] = this.open ? "hidden" : "";
|
|
48
37
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
this.hostElement.style.opacity = "1";
|
|
52
|
-
}
|
|
38
|
+
handledTransitionEnd() {
|
|
39
|
+
this.handleOverflowProperty();
|
|
53
40
|
}
|
|
54
41
|
render() {
|
|
55
|
-
return (h(Host,
|
|
42
|
+
return (h(Host, { class: { "skip-animation": this.skipanimationonload } }, h("div", { role: "presentation", class: "canvas-container", onTransitionEnd: () => this.handledTransitionEnd() }, h("div", { role: "presentation", class: "canvas-content" }, h("slot", { name: "canvasContent" }))), this.variant == OffCanvasVariant.OVERLAY && (h("div", { class: "canvas-background", "data-action": "canvasBackground", onClick: () => (this.open = false) }))));
|
|
56
43
|
}
|
|
57
44
|
static get is() { return "z-offcanvas"; }
|
|
58
45
|
static get encapsulation() { return "scoped"; }
|
|
@@ -134,6 +121,11 @@ export class ZOffcanvas {
|
|
|
134
121
|
}
|
|
135
122
|
};
|
|
136
123
|
}
|
|
124
|
+
static get states() {
|
|
125
|
+
return {
|
|
126
|
+
"skipanimationonload": {}
|
|
127
|
+
};
|
|
128
|
+
}
|
|
137
129
|
static get events() {
|
|
138
130
|
return [{
|
|
139
131
|
"method": "canvasOpenStatusChanged",
|
|
@@ -152,6 +144,29 @@ export class ZOffcanvas {
|
|
|
152
144
|
}
|
|
153
145
|
}];
|
|
154
146
|
}
|
|
147
|
+
static get methods() {
|
|
148
|
+
return {
|
|
149
|
+
"setSkipAanimationOnLoad": {
|
|
150
|
+
"complexType": {
|
|
151
|
+
"signature": "(value: boolean) => Promise<void>",
|
|
152
|
+
"parameters": [{
|
|
153
|
+
"tags": [],
|
|
154
|
+
"text": ""
|
|
155
|
+
}],
|
|
156
|
+
"references": {
|
|
157
|
+
"Promise": {
|
|
158
|
+
"location": "global"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"return": "Promise<void>"
|
|
162
|
+
},
|
|
163
|
+
"docs": {
|
|
164
|
+
"text": "set skipAnimation",
|
|
165
|
+
"tags": []
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
}
|
|
155
170
|
static get elementRef() { return "hostElement"; }
|
|
156
171
|
static get watchers() {
|
|
157
172
|
return [{
|