@zanichelli/albe-web-components 7.3.1 → 7.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index-e3299e0a.js +6 -30
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-header_11.cjs.entry.js +1052 -0
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +865 -2
- package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
- package/dist/cjs/z-menu.cjs.entry.js +1 -1
- package/dist/cjs/z-popover.cjs.entry.js +2 -1
- package/dist/cjs/z-tooltip.cjs.entry.js +8 -2
- package/dist/collection/components/inputs/z-searchbar/index.js +6 -17
- package/dist/collection/components/inputs/z-searchbar/styles.css +46 -95
- package/dist/collection/components/modal/z-modal/index.js +8 -1
- package/dist/collection/components/modal/z-modal/styles.css +13 -0
- package/dist/collection/components/navigation/z-app-header/index.js +171 -47
- package/dist/collection/components/navigation/z-app-header/index.stories.js +393 -0
- package/dist/collection/components/navigation/z-app-header/styles.css +167 -166
- package/dist/collection/components/navigation/z-menu/index.js +1 -0
- package/dist/collection/components/navigation/z-menu/styles.css +7 -7
- package/dist/collection/components/navigation/z-menu-section/styles.css +8 -9
- package/dist/collection/components/notification/z-tooltip/index.js +28 -4
- package/dist/collection/components/notification/z-tooltip/styles.css +1 -0
- package/dist/collection/components/z-offcanvas/index.js +34 -50
- package/dist/collection/components/z-popover/index.js +3 -2
- package/dist/esm/index-a2ca4b97.js +6 -30
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/polyfills/css-shim.js +0 -0
- package/dist/esm/{utils-970ac457.js → utils-a52a81ba.js} +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-header_11.entry.js +1038 -0
- package/dist/esm/z-chip.entry.js +1 -1
- package/dist/esm/z-combobox.entry.js +1 -1
- package/dist/esm/z-dragdrop-area_2.entry.js +865 -2
- package/dist/esm/z-file-upload.entry.js +1 -1
- package/dist/esm/z-menu-section.entry.js +1 -1
- package/dist/esm/z-menu.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +1 -1
- package/dist/esm/z-myz-list-item.entry.js +1 -1
- package/dist/esm/z-pocket_3.entry.js +1 -1
- package/dist/esm/z-popover.entry.js +2 -1
- package/dist/esm/z-select.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +1 -1
- package/dist/esm/z-slideshow.entry.js +1 -1
- package/dist/esm/z-table-header.entry.js +1 -1
- package/dist/esm/z-toggle-switch.entry.js +1 -1
- package/dist/esm/z-tooltip.entry.js +8 -2
- 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 +0 -0
- package/dist/types/components/buttons/z-chip/index.d.ts +0 -0
- package/dist/types/components/buttons/z-toggle-button/index.d.ts +0 -0
- 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 -2
- 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 +49 -17
- package/dist/types/components/navigation/z-link/index.d.ts +0 -0
- package/dist/types/components/navigation/z-menu/index.d.ts +1 -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 +0 -0
- package/dist/types/components/notification/z-tooltip/index.d.ts +9 -3
- 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 -0
- 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 +10 -12
- package/dist/types/components/z-pagination/index.d.ts +0 -0
- package/dist/types/components/z-popover/index.d.ts +2 -1
- 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 +51 -15
- 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 -0
- 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 +1 -1
- package/dist/web-components-library/{p-1f259ec0.entry.js → p-0bf3a704.entry.js} +1 -1
- package/{www/build/p-d982fc4c.entry.js → dist/web-components-library/p-10e036e4.entry.js} +1 -1
- package/dist/web-components-library/p-161a4e84.entry.js +1 -0
- package/dist/web-components-library/{p-dfc69cc3.js → p-1c6b0e09.js} +1 -1
- package/dist/web-components-library/{p-10625725.entry.js → p-1e71778f.entry.js} +1 -1
- package/dist/web-components-library/{p-068951a7.entry.js → p-1eaef57d.entry.js} +1 -1
- package/dist/web-components-library/p-27441384.entry.js +1 -0
- package/dist/web-components-library/{p-779c8d20.entry.js → p-378e3fd3.entry.js} +1 -1
- package/dist/web-components-library/{p-e2758870.entry.js → p-5c5a2680.entry.js} +1 -1
- package/dist/web-components-library/p-6d377fcb.entry.js +1 -0
- package/{www/build/p-191c9901.entry.js → dist/web-components-library/p-84b23d4b.entry.js} +1 -1
- package/dist/web-components-library/p-8ff45f5f.entry.js +1 -0
- package/dist/web-components-library/p-a7249453.entry.js +1 -0
- package/dist/web-components-library/p-b36fc3db.entry.js +1 -0
- package/dist/web-components-library/{p-bca446ef.entry.js → p-c9bb584c.entry.js} +1 -1
- package/dist/web-components-library/{p-59b1f1e9.entry.js → p-d986024a.entry.js} +1 -1
- package/dist/web-components-library/p-eefde77a.entry.js +1 -0
- package/dist/web-components-library/web-components-library.css +0 -0
- 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/www/build/index.esm.js +1 -1
- package/www/build/{p-1f259ec0.entry.js → p-0bf3a704.entry.js} +1 -1
- package/{dist/web-components-library/p-d982fc4c.entry.js → www/build/p-10e036e4.entry.js} +1 -1
- package/www/build/p-161a4e84.entry.js +1 -0
- package/www/build/{p-dfc69cc3.js → p-1c6b0e09.js} +1 -1
- package/www/build/{p-10625725.entry.js → p-1e71778f.entry.js} +1 -1
- package/www/build/{p-068951a7.entry.js → p-1eaef57d.entry.js} +1 -1
- package/www/build/p-27441384.entry.js +1 -0
- package/www/build/{p-779c8d20.entry.js → p-378e3fd3.entry.js} +1 -1
- package/www/build/{p-e2758870.entry.js → p-5c5a2680.entry.js} +1 -1
- package/www/build/p-6d377fcb.entry.js +1 -0
- package/www/build/p-70021fac.js +1 -0
- package/{dist/web-components-library/p-191c9901.entry.js → www/build/p-84b23d4b.entry.js} +1 -1
- package/www/build/p-8ff45f5f.entry.js +1 -0
- package/www/build/p-a7249453.entry.js +1 -0
- package/www/build/p-b36fc3db.entry.js +1 -0
- package/www/build/{p-bca446ef.entry.js → p-c9bb584c.entry.js} +1 -1
- package/www/build/{p-59b1f1e9.entry.js → p-d986024a.entry.js} +1 -1
- package/www/build/p-eefde77a.entry.js +1 -0
- package/www/build/web-components-library.css +0 -0
- 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 +1 -1
- package/CHANGELOG.md +0 -2439
- 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-divider.cjs.entry.js +0 -26
- package/dist/cjs/z-input_2.cjs.entry.js +0 -273
- package/dist/cjs/z-list_3.cjs.entry.js +0 -261
- package/dist/cjs/z-offcanvas.cjs.entry.js +0 -57
- package/dist/cjs/z-searchbar.cjs.entry.js +0 -248
- package/dist/esm/z-app-header_2.entry.js +0 -147
- package/dist/esm/z-button.entry.js +0 -39
- package/dist/esm/z-divider.entry.js +0 -22
- package/dist/esm/z-input_2.entry.js +0 -268
- package/dist/esm/z-list_3.entry.js +0 -255
- package/dist/esm/z-offcanvas.entry.js +0 -53
- package/dist/esm/z-searchbar.entry.js +0 -244
- 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-1c8e7c24.entry.js +0 -1
- package/dist/web-components-library/p-20682781.entry.js +0 -1
- package/dist/web-components-library/p-3d0f5e36.entry.js +0 -1
- package/dist/web-components-library/p-4f266607.entry.js +0 -1
- package/dist/web-components-library/p-51c946a5.entry.js +0 -1
- package/dist/web-components-library/p-975afabe.entry.js +0 -1
- package/dist/web-components-library/p-af283478.entry.js +0 -1
- package/dist/web-components-library/p-bae1911e.entry.js +0 -1
- package/dist/web-components-library/p-d0760bb1.entry.js +0 -1
- package/dist/web-components-library/p-deda8776.entry.js +0 -1
- package/dist/web-components-library/p-f3a8cc14.entry.js +0 -1
- package/src-react/index.ts +0 -1
- package/www/build/p-1570917d.entry.js +0 -1
- package/www/build/p-157aea3b.entry.js +0 -1
- package/www/build/p-1c8e7c24.entry.js +0 -1
- package/www/build/p-20682781.entry.js +0 -1
- package/www/build/p-3d0f5e36.entry.js +0 -1
- package/www/build/p-4f266607.entry.js +0 -1
- package/www/build/p-51c946a5.entry.js +0 -1
- package/www/build/p-77d28b14.js +0 -1
- package/www/build/p-975afabe.entry.js +0 -1
- package/www/build/p-af283478.entry.js +0 -1
- package/www/build/p-bae1911e.entry.js +0 -1
- package/www/build/p-d0760bb1.entry.js +0 -1
- package/www/build/p-deda8776.entry.js +0 -1
- package/www/build/p-f3a8cc14.entry.js +0 -1
|
@@ -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{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-text01);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host(:is([active],[open])) .label,.label:hover{border-color:var(--color-secondary01)}:
|
|
7
|
+
const stylesCss = ":host{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-text01);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host(:is([active],[open])) .label,.label:hover{border-color:var(--color-secondary01)}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}.label{display:flex;width:100%;align-items:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) / 2);border:0;border-bottom:var(--border-size-small) solid var(--color-surface05);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}::slotted([data-text]){display:inline-flex;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / \"\";font-weight:var(--font-bd);pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-icon02)}.items{display:flex;width:100%;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}.items>::slotted([slot=\"item\"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-2);line-height:1.4;outline:none}.items>::slotted([slot=\"item\"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-secondary01)}.items>::slotted([slot=\"item\"]:hover),.items>::slotted([slot=\"item\"]:focus:focus-visible),.items>::slotted([slot=\"item\"][active]){color:var(--color-secondary01);font-weight:var(--font-bd)}";
|
|
8
8
|
|
|
9
9
|
const ZMenuSection = 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 = ":host,::slotted(*),*{box-sizing:border-box}:host{position:relative;display:inline-flex;flex-direction:column}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-text01);font-family:var(--font-family-sans);font-weight:var(--font-rg)
|
|
7
|
+
const stylesCss = ":host,::slotted(*),*{box-sizing:border-box}:host{position:relative;display:inline-flex;flex-direction:column;--z-menu-label-color:var(--color-text01)}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-text01);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.menu-label{padding:0;border:0;margin:0;background:transparent;border-radius:0;color:inherit;outline:none;text-align:left}button.menu-label{cursor:pointer}.menu-label:focus-within{z-index:1;padding-right:calc(var(--space-unit) * 0.5);padding-left:calc(var(--space-unit) * 0.5);margin-right:calc(var(--space-unit) * -0.5);margin-left:calc(var(--space-unit) * -0.5);box-shadow:var(--shadow-focus-primary)}.menu-label .menu-label-content{position:relative;display:flex;align-items:center}:host(:is([active],[open])) .menu-label-content,.menu-label:focus-within .menu-label-content{font-weight:var(--font-bd)}:host(:is([active],[open])) .menu-label-content ::slotted(*),.menu-label:focus-within .menu-label-content ::slotted(*){letter-spacing:normal}:host(:is([active],[open],[vertical-context])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{position:absolute;bottom:0;left:0;width:100%;content:\"\";pointer-events:none}:host([vertical-context]) .menu-label-content::after{height:var(--border-size-small);background-color:var(--color-surface03)}:host(:is([active],[open])) .menu-label .menu-label-content::after,.menu-label .menu-label-content:hover::after,.menu-label:focus-within .menu-label-content::after{height:var(--border-size-large);background-color:var(--color-secondary01)}::slotted([data-text])::after{height:0;content:attr(data-text);content:attr(data-text) / \"\";font-weight:var(--font-bd);letter-spacing:normal;pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}::slotted([data-text]){display:inline-flex;flex-direction:column}.menu-label .menu-label-content ::slotted(*){display:inline-flex;width:100%;margin:0;appearance:none;color:var(--z-menu-label-color);font-family:var(--font-family-sans);font-size:var(--font-size-5);font-weight:inherit;letter-spacing:0.36px;line-height:1.2;outline:none}.menu-label .menu-label-content ::slotted(*),.menu-label .menu-label-content z-icon{padding:var(--space-unit) 0}.menu-label .menu-label-content z-icon{margin-left:calc(var(--space-unit) * 1.5);fill:currentcolor}.content{background:var(--color-surface01)}:host(:not([open])) .content{display:none}:host([floating]) .content{position:absolute;top:100%;left:0;width:375px;min-width:100%;max-width:100vw;padding:var(--space-unit) var(--space-unit) calc(var(--space-unit) * 2);box-shadow:var(--shadow-2)}:host(:not([floating])) .content{width:100%}.header{display:flex;align-items:center;padding:var(--space-unit) 0 calc(var(--space-unit) * 2)}.header ::slotted(img[slot=\"header\"]){width:calc(var(--space-unit) * 11.25);height:auto;object-fit:contain}.header ::slotted([slot=\"header\"]:not(:first-child)){margin:auto 0;margin-left:calc(var(--space-unit) * 2.5);font-size:var(--font-size-3);font-weight:var(--font-sb);line-height:1.5}.items{display:flex;flex-direction:column;align-items:flex-start;background:inherit}.items>::slotted([slot=\"item\"]){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.25;outline:none}.items>::slotted([slot=\"item\"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary)}.items>::slotted([slot=\"item\"]:not(z-menu-section)){padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 0.5);border-bottom:var(--border-size-small) solid var(--color-surface05)}.items>::slotted([slot=\"item\"]:hover),.items>::slotted([slot=\"item\"]:focus:focus-visible),.items>::slotted([slot=\"item\"]:active){border-color:var(--color-secondary01);font-weight:var(--font-bd)}";
|
|
8
8
|
|
|
9
9
|
const ZMenu = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -108,7 +108,8 @@ const ZPopover = class {
|
|
|
108
108
|
*/
|
|
109
109
|
this.center = false;
|
|
110
110
|
/**
|
|
111
|
-
*
|
|
111
|
+
* If true, the popover can be closed by clicking outside of it or pressing the escape key.
|
|
112
|
+
* Otherwise, it will be closed only programmatically (by setting `open` to `false`).
|
|
112
113
|
*/
|
|
113
114
|
this.closable = true;
|
|
114
115
|
}
|
|
@@ -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{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--z-tooltip-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base))}:host([dark]) z-popover{--z-popover-theme--surface:var(--color-surface05)}z-popover{--z-popover-padding:var(--space-unit);--z-popover-theme--surface:var(--z-tooltip-theme--surface);--z-popover-theme--text:var(--z-tooltip-theme--text);--z-popover-shadow-filter:var(--z-tooltip-shadow-filter)}";
|
|
8
|
+
const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--z-tooltip-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base))}:host([dark]) z-popover{--z-popover-theme--surface:var(--color-surface05);--z-popover-theme--text:var(--color-text-inverse)}z-popover{--z-popover-padding:var(--space-unit);--z-popover-theme--surface:var(--z-tooltip-theme--surface);--z-popover-theme--text:var(--z-tooltip-theme--text);--z-popover-shadow-filter:var(--z-tooltip-shadow-filter)}";
|
|
9
9
|
|
|
10
10
|
const ZTooltip = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -18,12 +18,18 @@ const ZTooltip = class {
|
|
|
18
18
|
* The open state of the tooltip.
|
|
19
19
|
*/
|
|
20
20
|
this.open = false;
|
|
21
|
+
/**
|
|
22
|
+
* Reflects `closable` prop of the popover.
|
|
23
|
+
* "If true, the popover can be closed by clicking outside of it or pressing the escape key.
|
|
24
|
+
* Otherwise, it will be closed only programmatically (by setting `open` to `false`)."
|
|
25
|
+
*/
|
|
26
|
+
this.closable = true;
|
|
21
27
|
}
|
|
22
28
|
onPopoverOpenChange() {
|
|
23
29
|
this.open = this.popover.open;
|
|
24
30
|
}
|
|
25
31
|
render() {
|
|
26
|
-
return (index.h("z-popover", { ref: (el) => (this.popover = el), bindTo: this.bindTo, open: this.open, position: this.position, center: true, showArrow: true }, index.h("slot", null)));
|
|
32
|
+
return (index.h("z-popover", { ref: (el) => (this.popover = el), bindTo: this.bindTo, open: this.open, position: this.position, closable: this.closable, center: true, showArrow: true }, index.h("slot", null)));
|
|
27
33
|
}
|
|
28
34
|
};
|
|
29
35
|
ZTooltip.style = stylesCss;
|
|
@@ -49,7 +49,7 @@ export class ZSearchbar {
|
|
|
49
49
|
this.currResultsCount = this.resultsCount;
|
|
50
50
|
}
|
|
51
51
|
watchValue() {
|
|
52
|
-
this.
|
|
52
|
+
this.searchString = this.value;
|
|
53
53
|
}
|
|
54
54
|
watchSearchString() {
|
|
55
55
|
this.emitSearchTyping(this.searchString);
|
|
@@ -57,13 +57,10 @@ export class ZSearchbar {
|
|
|
57
57
|
this.currResultsCount = this.resultsCount;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
clickListener(e) {
|
|
61
|
-
this.handleOutsideClick(e);
|
|
62
|
-
}
|
|
63
60
|
componentWillLoad() {
|
|
64
61
|
this.resultsItemsList = this.getResultsItemsList();
|
|
65
62
|
this.currResultsCount = this.resultsCount;
|
|
66
|
-
this.
|
|
63
|
+
this.searchString = this.value;
|
|
67
64
|
}
|
|
68
65
|
getResultsItemsList() {
|
|
69
66
|
return typeof this.resultsItems === "string" ? JSON.parse(this.resultsItems) : this.resultsItems;
|
|
@@ -108,15 +105,7 @@ export class ZSearchbar {
|
|
|
108
105
|
}
|
|
109
106
|
handleStopTyping(e) {
|
|
110
107
|
e.stopPropagation();
|
|
111
|
-
this.
|
|
112
|
-
}
|
|
113
|
-
handleInput(value) {
|
|
114
|
-
if ((value === null || value === void 0 ? void 0 : value.length) >= this.autocompleteMinChars) {
|
|
115
|
-
this.searchString = value;
|
|
116
|
-
}
|
|
117
|
-
else if (this.searchString) {
|
|
118
|
-
this.searchString = "";
|
|
119
|
-
}
|
|
108
|
+
this.searchString = e.detail.value;
|
|
120
109
|
}
|
|
121
110
|
handleSubmit() {
|
|
122
111
|
if (this.preventSubmit) {
|
|
@@ -222,10 +211,10 @@ export class ZSearchbar {
|
|
|
222
211
|
this.currResultsCount >= ((_b = this.resultsItemsList) === null || _b === void 0 ? void 0 : _b.length)) {
|
|
223
212
|
return null;
|
|
224
213
|
}
|
|
225
|
-
return (h("z-list-element", { role: "option", tabindex: 0, clickable: true, id: `list-item-${this.htmlid}-show-all`, onClickItem: () => (this.currResultsCount = 0) }, h("
|
|
214
|
+
return (h("z-list-element", { role: "option", tabindex: 0, clickable: true, id: `list-item-${this.htmlid}-show-all`, onClickItem: () => (this.currResultsCount = 0), color: "color-primary01" }, h("div", { class: "item-show-all" }, "Vedi tutti i risultati")));
|
|
226
215
|
}
|
|
227
216
|
render() {
|
|
228
|
-
return (h(Host, { onFocus: () => (this.showResults = true), onClick: (e) => this.handleOutsideClick(e)
|
|
217
|
+
return (h(Host, { onFocus: () => (this.showResults = true), onClick: (e) => this.handleOutsideClick(e), class: { "has-submit": this.showSearchButton, "has-results": this.autocomplete } }, h("div", { class: "input-container" }, this.renderInput(), this.renderResults()), this.renderButton()));
|
|
229
218
|
}
|
|
230
219
|
static get is() { return "z-searchbar"; }
|
|
231
220
|
static get encapsulation() { return "shadow"; }
|
|
@@ -602,7 +591,7 @@ export class ZSearchbar {
|
|
|
602
591
|
static get listeners() {
|
|
603
592
|
return [{
|
|
604
593
|
"name": "click",
|
|
605
|
-
"method": "
|
|
594
|
+
"method": "handleOutsideClick",
|
|
606
595
|
"target": "document",
|
|
607
596
|
"capture": false,
|
|
608
597
|
"passive": false
|
|
@@ -1,224 +1,175 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
width: inherit;
|
|
6
|
-
height: 44px;
|
|
2
|
+
z-index: 10;
|
|
3
|
+
display: flex;
|
|
4
|
+
column-gap: calc(var(--space-unit) * 2);
|
|
7
5
|
font-family: var(--font-family-sans);
|
|
8
6
|
font-weight: var(--font-rg);
|
|
9
7
|
}
|
|
10
8
|
|
|
11
|
-
:host
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
display: grid;
|
|
15
|
-
width: 100%;
|
|
16
|
-
gap: 0 calc(var(--space-unit) * 2);
|
|
17
|
-
grid-template-columns: auto;
|
|
18
|
-
grid-template-rows: auto;
|
|
9
|
+
:host,
|
|
10
|
+
* {
|
|
11
|
+
box-sizing: border-box;
|
|
19
12
|
}
|
|
20
13
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
:host > div.has-results {
|
|
26
|
-
grid-template-rows: auto auto;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
:host > div > z-input {
|
|
14
|
+
.input-container {
|
|
15
|
+
position: relative;
|
|
16
|
+
display: flex;
|
|
30
17
|
width: 100%;
|
|
31
|
-
|
|
32
|
-
grid-row: 1;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:host > div > z-button {
|
|
36
|
-
grid-column: 2;
|
|
37
|
-
grid-row: 1;
|
|
18
|
+
flex-direction: column;
|
|
38
19
|
}
|
|
39
20
|
|
|
40
|
-
|
|
41
|
-
|
|
21
|
+
.results-wrapper {
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: calc(100% - 1px);
|
|
24
|
+
left: 0;
|
|
25
|
+
width: 100%;
|
|
42
26
|
padding: calc(var(--space-unit) / 4);
|
|
43
|
-
padding-bottom: calc(var(--space-unit) / 4);
|
|
44
27
|
border: var(--border-size-small) solid var(--color-surface03);
|
|
45
28
|
border-top: none;
|
|
46
|
-
margin-top: -1px;
|
|
47
29
|
background: var(--color-surface01);
|
|
48
|
-
grid-column: 1;
|
|
49
|
-
grid-row: 2;
|
|
50
30
|
}
|
|
51
31
|
|
|
52
|
-
|
|
32
|
+
.results {
|
|
53
33
|
overflow: auto;
|
|
54
34
|
max-height: var(--z-searchbar-results-height, 540px);
|
|
55
|
-
padding: var(--space-unit) calc(var(--space-unit) * 1.5);
|
|
56
|
-
padding-bottom: calc(var(--space-unit) / 2);
|
|
35
|
+
padding: calc(var(--space-unit) / 2) calc(var(--space-unit) * 1.5);
|
|
57
36
|
scrollbar-color: var(--color-primary01) transparent;
|
|
58
37
|
}
|
|
59
38
|
|
|
60
|
-
|
|
39
|
+
.results::-webkit-scrollbar {
|
|
61
40
|
width: 10px;
|
|
62
41
|
background: linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);
|
|
63
42
|
border-radius: var(--border-radius);
|
|
64
43
|
}
|
|
65
44
|
|
|
66
|
-
|
|
45
|
+
.results::-webkit-scrollbar-track {
|
|
67
46
|
background-color: transparent;
|
|
68
47
|
}
|
|
69
48
|
|
|
70
|
-
|
|
49
|
+
.results::-webkit-scrollbar-thumb {
|
|
71
50
|
width: 10px;
|
|
72
51
|
background-color: var(--color-primary01);
|
|
73
52
|
border-radius: var(--border-radius);
|
|
74
53
|
}
|
|
75
54
|
|
|
76
|
-
|
|
55
|
+
.results .category-heading {
|
|
77
56
|
display: block;
|
|
78
57
|
font-size: var(--font-size-2);
|
|
79
58
|
font-weight: var(--font-rg);
|
|
80
59
|
line-height: var(--font-size-3);
|
|
81
60
|
}
|
|
82
61
|
|
|
83
|
-
|
|
62
|
+
.results .category-heading > * {
|
|
84
63
|
display: block;
|
|
85
64
|
}
|
|
86
65
|
|
|
87
|
-
|
|
66
|
+
.results .category-heading > .category {
|
|
88
67
|
color: var(--color-text05);
|
|
89
68
|
font-style: italic;
|
|
90
69
|
}
|
|
91
70
|
|
|
92
|
-
|
|
93
|
-
margin-top:
|
|
71
|
+
.results .category-heading > .subcategory {
|
|
72
|
+
margin-top: var(--space-unit);
|
|
94
73
|
color: var(--color-text01);
|
|
95
74
|
text-transform: uppercase;
|
|
96
75
|
}
|
|
97
76
|
|
|
98
|
-
|
|
77
|
+
.results z-list-element {
|
|
99
78
|
display: block;
|
|
100
79
|
}
|
|
101
80
|
|
|
102
|
-
|
|
103
|
-
box-shadow: var(--shadow-focus-primary);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
:host > div > div.results-wrapper > div.results .item {
|
|
81
|
+
.results .item {
|
|
107
82
|
--z-icon-height: 12px;
|
|
108
83
|
--z-icon-width: 12px;
|
|
109
84
|
|
|
110
85
|
display: flex;
|
|
111
86
|
flex-flow: row nowrap;
|
|
112
|
-
align-
|
|
113
|
-
align-items: flex-start;
|
|
87
|
+
align-items: center;
|
|
114
88
|
justify-content: flex-start;
|
|
115
89
|
color: var(--color-text01);
|
|
90
|
+
column-gap: calc(var(--space-unit) * 1.5);
|
|
116
91
|
fill: var(--color-icon02);
|
|
117
92
|
font-size: var(--font-size-2);
|
|
118
93
|
line-height: var(--font-size-3);
|
|
119
94
|
}
|
|
120
95
|
|
|
121
|
-
|
|
96
|
+
.results .item.ellipsis > .item-label {
|
|
122
97
|
overflow: hidden;
|
|
123
98
|
text-overflow: ellipsis;
|
|
124
99
|
white-space: nowrap;
|
|
125
100
|
}
|
|
126
101
|
|
|
127
|
-
|
|
128
|
-
:host > div > div.results-wrapper > div.results .item > span.item-label > * > mark {
|
|
102
|
+
.results .item > .item-label mark {
|
|
129
103
|
background: var(--color-primary03);
|
|
130
104
|
}
|
|
131
105
|
|
|
132
|
-
|
|
106
|
+
.results .item.has-category {
|
|
133
107
|
padding-left: calc(var(--space-unit) * 3);
|
|
134
108
|
}
|
|
135
109
|
|
|
136
|
-
|
|
137
|
-
padding: 2px 0;
|
|
138
|
-
margin-right: calc(var(--space-unit) * 1.5);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
:host > div > div.results-wrapper > div.results .item.item-search {
|
|
110
|
+
.results .item.item-search {
|
|
142
111
|
--z-icon-height: 16px;
|
|
143
112
|
--z-icon-width: 16px;
|
|
144
113
|
}
|
|
145
114
|
|
|
146
|
-
|
|
147
|
-
margin-right: var(--space-unit);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
:host > div > div.results-wrapper > div.results .item-show-all {
|
|
151
|
-
display: block;
|
|
115
|
+
.results .item-show-all {
|
|
152
116
|
text-align: center;
|
|
153
117
|
}
|
|
154
118
|
|
|
155
|
-
|
|
119
|
+
.results .item-no-results {
|
|
156
120
|
display: block;
|
|
157
121
|
font-size: var(--font-size-2);
|
|
158
122
|
font-style: italic;
|
|
159
123
|
line-height: var(--font-size-5);
|
|
160
124
|
}
|
|
161
125
|
|
|
162
|
-
|
|
126
|
+
.results .item-no-results > ul {
|
|
163
127
|
padding-left: calc(var(--space-unit) * 2);
|
|
164
128
|
margin: var(--space-unit);
|
|
165
129
|
}
|
|
166
130
|
|
|
167
131
|
/* Tablet breakpoint */
|
|
168
132
|
@media (min-width: 768px) {
|
|
169
|
-
|
|
133
|
+
.results .category-heading {
|
|
170
134
|
font-size: var(--font-size-3);
|
|
171
135
|
line-height: var(--font-size-6);
|
|
172
136
|
}
|
|
173
137
|
|
|
174
|
-
|
|
175
|
-
--z-icon-height: 12px;
|
|
176
|
-
--z-icon-width: 12px;
|
|
177
|
-
|
|
138
|
+
.results .item {
|
|
178
139
|
font-size: var(--font-size-3);
|
|
179
140
|
line-height: var(--font-size-6);
|
|
180
141
|
}
|
|
181
142
|
|
|
182
|
-
|
|
143
|
+
.results .item.item-search {
|
|
183
144
|
--z-icon-height: 18px;
|
|
184
145
|
--z-icon-width: 18px;
|
|
185
146
|
}
|
|
186
147
|
|
|
187
|
-
|
|
188
|
-
margin-top: calc(var(--space-unit) / 4);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
:host > div > div.results-wrapper > div.results .item.ellipsis > span.item-label {
|
|
148
|
+
.results .item.ellipsis > .item-label {
|
|
192
149
|
height: 24px;
|
|
193
150
|
}
|
|
194
|
-
|
|
195
|
-
:host > div > div.results-wrapper > div.results .item > z-icon.item-icon {
|
|
196
|
-
padding: 6px 0;
|
|
197
|
-
}
|
|
198
151
|
}
|
|
199
152
|
|
|
200
153
|
/* Desktop breakpoint */
|
|
201
154
|
@media (min-width: 1152px) {
|
|
202
|
-
|
|
155
|
+
.results .item {
|
|
203
156
|
cursor: pointer;
|
|
204
157
|
}
|
|
205
158
|
|
|
206
|
-
|
|
159
|
+
.results .item-no-results {
|
|
207
160
|
cursor: default;
|
|
208
161
|
font-size: var(--font-size-3);
|
|
209
162
|
line-height: var(--font-size-6);
|
|
210
163
|
}
|
|
211
164
|
}
|
|
212
165
|
|
|
213
|
-
:host([size="small"])
|
|
214
|
-
:host([size="x-small"])
|
|
215
|
-
:host([size="small"]) > div > div.results-wrapper > div.results .category-heading,
|
|
216
|
-
:host([size="x-small"]) > div > div.results-wrapper > div.results .category-heading {
|
|
166
|
+
:host([size="small"]) .results :is(.item, .category-heading),
|
|
167
|
+
:host([size="x-small"]) .results :is(.item, .category-heading) {
|
|
217
168
|
font-size: var(--font-size-2);
|
|
218
169
|
}
|
|
219
170
|
|
|
220
|
-
:host([size="small"])
|
|
221
|
-
:host([size="x-small"])
|
|
171
|
+
:host([size="small"]) .results .item:not(.has-category),
|
|
172
|
+
:host([size="x-small"]) .results .item:not(.has-category) {
|
|
222
173
|
--z-icon-height: 16px;
|
|
223
174
|
--z-icon-width: 16px;
|
|
224
175
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import dialogPolyfill from "dialog-polyfill";
|
|
2
3
|
import { KeyboardCode } from "../../../beans";
|
|
3
4
|
const FOCUSABLE_ELEMENTS_SELECTOR = ':is(button, input, select, textarea, [contenteditable=""], [contenteditable="true"], a[href], [tabindex], summary):not([disabled], [disabled=""], [tabindex="-1"], [aria-hidden="true"], [hidden])';
|
|
4
5
|
/**
|
|
@@ -28,7 +29,13 @@ export class ZModal {
|
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
componentDidLoad() {
|
|
31
|
-
|
|
32
|
+
if (typeof HTMLDialogElement !== "function") {
|
|
33
|
+
dialogPolyfill.registerDialog(this.dialog);
|
|
34
|
+
this.dialog.setAttribute("open", "true");
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
this.open();
|
|
38
|
+
}
|
|
32
39
|
}
|
|
33
40
|
/** open modal */
|
|
34
41
|
async open() {
|
|
@@ -20,6 +20,19 @@
|
|
|
20
20
|
display: none;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
/* polyfill style */
|
|
24
|
+
:host > dialog + .backdrop {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host > dialog:not([open]) {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host > dialog[open] {
|
|
33
|
+
display: block;
|
|
34
|
+
}
|
|
35
|
+
|
|
23
36
|
.modal-container {
|
|
24
37
|
z-index: 1010;
|
|
25
38
|
display: flex;
|