@zanichelli/albe-web-components 6.10.0-RC1 → 6.10.1
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 +57 -0
- package/dist/cjs/index-e3299e0a.js +14 -6
- package/dist/cjs/index.cjs.js +7 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-600bad93.js → utils-4cf6a5ac.js} +8 -0
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/{z-app-header_3.cjs.entry.js → z-app-header_2.cjs.entry.js} +4 -80
- package/dist/cjs/z-body.cjs.entry.js +18 -0
- package/dist/cjs/z-chip.cjs.entry.js +1 -1
- package/dist/cjs/z-combobox.cjs.entry.js +10 -8
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +77 -8
- package/dist/cjs/z-file-upload.cjs.entry.js +12 -12
- package/dist/cjs/z-heading.cjs.entry.js +18 -0
- package/dist/cjs/z-input_2.cjs.entry.js +20 -13
- package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
- package/dist/cjs/z-pocket_3.cjs.entry.js +1 -1
- package/dist/cjs/z-searchbar.cjs.entry.js +11 -7
- package/dist/cjs/z-select.cjs.entry.js +17 -9
- package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
- package/dist/cjs/z-slideshow.cjs.entry.js +1 -1
- package/dist/cjs/z-table-empty-box.cjs.entry.js +1 -1
- package/dist/cjs/z-table-header.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +1 -1
- package/dist/cjs/z-toggle-switch.cjs.entry.js +1 -1
- package/dist/cjs/{z-body_2.cjs.entry.js → z-typography.cjs.entry.js} +0 -12
- package/dist/collection/beans/index.js +1 -0
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js +1 -1
- package/dist/collection/components/file-upload/z-file-upload/index.js +10 -10
- package/dist/collection/components/file-upload/z-file-upload/styles.css +2 -2
- package/dist/collection/components/inputs/z-combobox/index.js +32 -7
- package/dist/collection/components/inputs/z-combobox/styles.css +31 -3
- package/dist/collection/components/inputs/z-input/index.js +42 -11
- package/dist/collection/components/inputs/z-input/styles.css +59 -0
- package/dist/collection/components/inputs/z-input-message/styles.css +15 -0
- package/dist/collection/components/inputs/z-searchbar/index.js +30 -8
- package/dist/collection/components/inputs/z-select/index.js +39 -8
- package/dist/collection/components/inputs/z-select/styles.css +9 -0
- package/dist/collection/components/modal/z-modal/index.js +50 -36
- package/dist/collection/components/modal/z-modal/styles.css +5 -1
- package/dist/collection/components/z-table/z-table/index.js +1 -1
- package/dist/collection/components/z-table/z-table-empty-box/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/styles.css +19 -0
- package/dist/collection/utils/utils.js +7 -0
- package/dist/esm/index-a2ca4b97.js +14 -6
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/polyfills/css-shim.js +0 -0
- package/dist/esm/{utils-6cf7efe2.js → utils-f2a0dac2.js} +8 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/{z-app-header_3.entry.js → z-app-header_2.entry.js} +5 -80
- package/dist/esm/z-body.entry.js +14 -0
- package/dist/esm/z-chip.entry.js +1 -1
- package/dist/esm/z-combobox.entry.js +11 -9
- package/dist/esm/z-dragdrop-area_2.entry.js +78 -9
- package/dist/esm/z-file-upload.entry.js +12 -12
- package/dist/esm/z-heading.entry.js +14 -0
- package/dist/esm/z-input_2.entry.js +21 -14
- package/dist/esm/z-myz-card-info.entry.js +1 -1
- package/dist/esm/z-myz-list-item.entry.js +2 -2
- package/dist/esm/z-pocket_3.entry.js +1 -1
- package/dist/esm/z-searchbar.entry.js +11 -7
- package/dist/esm/z-select.entry.js +18 -10
- 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-empty-box.entry.js +1 -1
- package/dist/esm/z-table-header.entry.js +1 -1
- package/dist/esm/z-table.entry.js +1 -1
- package/dist/esm/z-toggle-switch.entry.js +1 -1
- package/dist/esm/{z-body_2.entry.js → z-typography.entry.js} +1 -12
- package/dist/types/beans/index.d.ts +1 -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 +3 -1
- package/dist/types/components/inputs/z-input/index.d.ts +3 -1
- package/dist/types/components/inputs/z-input-message/index.d.ts +0 -0
- package/dist/types/components/inputs/z-searchbar/index.d.ts +4 -1
- package/dist/types/components/inputs/z-select/index.d.ts +4 -1
- 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 +15 -12
- 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-app-switcher/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 +0 -0
- 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 -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 +0 -0
- 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 +41 -9
- package/dist/types/constants/breakpoints.d.ts +0 -0
- package/dist/types/constants/icons.d.ts +0 -0
- package/dist/types/{components → deprecated}/typography/z-body/index.d.ts +0 -0
- package/dist/types/{components → deprecated}/typography/z-heading/index.d.ts +0 -0
- package/dist/types/{components → deprecated}/typography/z-typography/index.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 +1 -0
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/p-056a5f26.js +1 -0
- package/dist/web-components-library/p-0cf7d2b7.entry.js +1 -0
- package/dist/web-components-library/{p-6c163539.entry.js → p-24819d79.entry.js} +1 -1
- package/dist/web-components-library/{p-a05ce0a6.entry.js → p-321fbbcf.entry.js} +1 -1
- package/dist/web-components-library/{p-93142fac.entry.js → p-33fce170.entry.js} +1 -1
- package/dist/web-components-library/p-3860061a.entry.js +1 -0
- package/dist/web-components-library/p-4367f978.entry.js +1 -0
- package/dist/web-components-library/p-4ec46b85.entry.js +1 -0
- package/dist/web-components-library/p-52b084fb.entry.js +1 -0
- package/dist/web-components-library/p-5ac6109d.entry.js +1 -0
- package/dist/web-components-library/{p-53065788.entry.js → p-68af2f65.entry.js} +1 -1
- package/dist/web-components-library/{p-a6c0f149.entry.js → p-77e571f7.entry.js} +1 -1
- package/dist/web-components-library/p-a04e4731.entry.js +1 -0
- package/dist/web-components-library/{p-26033729.entry.js → p-a58e5d18.entry.js} +1 -1
- package/dist/web-components-library/p-acc73783.entry.js +1 -0
- package/dist/web-components-library/p-addc88f2.entry.js +1 -0
- package/dist/web-components-library/{p-d2127d84.entry.js → p-c0af3909.entry.js} +1 -1
- package/dist/web-components-library/p-d12d5468.entry.js +1 -0
- package/dist/web-components-library/p-d9a6a204.entry.js +1 -0
- package/dist/web-components-library/p-e78ce8ec.entry.js +1 -0
- package/dist/web-components-library/p-edd53386.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 +1 -1
- package/www/build/index.esm.js +1 -1
- package/www/build/p-056a5f26.js +1 -0
- package/www/build/p-082c7476.js +1 -0
- package/www/build/p-0cf7d2b7.entry.js +1 -0
- package/www/build/{p-6c163539.entry.js → p-24819d79.entry.js} +1 -1
- package/www/build/{p-a05ce0a6.entry.js → p-321fbbcf.entry.js} +1 -1
- package/www/build/{p-93142fac.entry.js → p-33fce170.entry.js} +1 -1
- package/www/build/p-3860061a.entry.js +1 -0
- package/www/build/p-4367f978.entry.js +1 -0
- package/www/build/p-4ec46b85.entry.js +1 -0
- package/www/build/p-52b084fb.entry.js +1 -0
- package/www/build/p-5ac6109d.entry.js +1 -0
- package/www/build/{p-53065788.entry.js → p-68af2f65.entry.js} +1 -1
- package/www/build/{p-a6c0f149.entry.js → p-77e571f7.entry.js} +1 -1
- package/www/build/p-a04e4731.entry.js +1 -0
- package/www/build/{p-26033729.entry.js → p-a58e5d18.entry.js} +1 -1
- package/www/build/p-acc73783.entry.js +1 -0
- package/www/build/p-addc88f2.entry.js +1 -0
- package/www/build/{p-d2127d84.entry.js → p-c0af3909.entry.js} +1 -1
- package/www/build/p-d12d5468.entry.js +1 -0
- package/www/build/p-d9a6a204.entry.js +1 -0
- package/www/build/p-e78ce8ec.entry.js +1 -0
- package/www/build/p-edd53386.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 -24
- package/dist/web-components-library/p-2e5f7ff1.entry.js +0 -1
- package/dist/web-components-library/p-54b18f6e.entry.js +0 -1
- package/dist/web-components-library/p-5c62387a.entry.js +0 -1
- package/dist/web-components-library/p-6acb48e3.entry.js +0 -1
- package/dist/web-components-library/p-735bdfa3.entry.js +0 -1
- package/dist/web-components-library/p-7b3b99ee.entry.js +0 -1
- package/dist/web-components-library/p-8ebe4adf.js +0 -1
- package/dist/web-components-library/p-95b8f109.entry.js +0 -1
- package/dist/web-components-library/p-a79d1412.entry.js +0 -1
- package/dist/web-components-library/p-b17981a4.entry.js +0 -1
- package/dist/web-components-library/p-bb92c90f.entry.js +0 -1
- package/dist/web-components-library/p-ff27c534.entry.js +0 -1
- package/www/build/p-0d36d640.js +0 -1
- package/www/build/p-2e5f7ff1.entry.js +0 -1
- package/www/build/p-54b18f6e.entry.js +0 -1
- package/www/build/p-5c62387a.entry.js +0 -1
- package/www/build/p-6acb48e3.entry.js +0 -1
- package/www/build/p-735bdfa3.entry.js +0 -1
- package/www/build/p-7b3b99ee.entry.js +0 -1
- package/www/build/p-8ebe4adf.js +0 -1
- package/www/build/p-95b8f109.entry.js +0 -1
- package/www/build/p-a79d1412.entry.js +0 -1
- package/www/build/p-b17981a4.entry.js +0 -1
- package/www/build/p-bb92c90f.entry.js +0 -1
- package/www/build/p-ff27c534.entry.js +0 -1
- /package/dist/collection/{components → deprecated}/typography/z-body/index.js +0 -0
- /package/dist/collection/{components → deprecated}/typography/z-heading/index.js +0 -0
- /package/dist/collection/{components → deprecated}/typography/z-typography/index.js +0 -0
- /package/dist/collection/{components → deprecated}/typography/z-typography/styles.css +0 -0
|
@@ -4,10 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
6
|
const index$1 = require('./index-fa110f37.js');
|
|
7
|
-
const utils = require('./utils-
|
|
7
|
+
const utils = require('./utils-4cf6a5ac.js');
|
|
8
8
|
require('./breakpoints-88c4fd6c.js');
|
|
9
9
|
|
|
10
|
-
const stylesCss = ".sc-z-select-h{display:inline-block;width:inherit;color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg)}.select-wrapper.sc-z-select>z-input.sc-z-select{width:100%}.select-wrapper.sc-z-select>div.sc-z-select{position:relative}.select-wrapper.sc-z-select>div.closed.sc-z-select{overflow:hidden;height:0}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select{position:absolute;width:100%;box-sizing:border-box;padding:calc(var(--space-unit) * 0.5) var(--space-unit);border:var(--border-size-small) solid var(--gray200);border-top:none;background:var(--color-surface01);outline:none}.select-wrapper.sc-z-select .closed.sc-z-select .ul-scroll-wrapper.sc-z-select{z-index:10}.select-wrapper.sc-z-select .open.sc-z-select .ul-scroll-wrapper.sc-z-select{z-index:20}.select-wrapper.sc-z-select .ul-scroll-wrapper.fixed.sc-z-select{position:static}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select{position:relative;overflow:auto;max-height:240px;padding:calc(var(--space-unit) * 0.5);outline:none;scrollbar-color:var(--color-primary01) transparent}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-track{background-color:transparent}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-content.sc-z-select{display:block;padding:0 calc(var(--space-unit) * 1.5)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-content.selected.sc-z-select{font-weight:bold}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select .no-results.sc-z-select z-icon.sc-z-select{margin-right:var(--space-unit)}.z-list-group-title.sc-z-select{color:var(--gray800)}.reset-item.sc-z-select{color:var(--color-primary01);fill:var(--color-primary01)}.reset-item-content.sc-z-select{display:flex;align-items:center}.reset-item.reset-item-margin.sc-z-select .reset-item-content.sc-z-select{margin-left:calc(var(--space-unit))}.reset-item.sc-z-select .reset-item-content.sc-z-select>z-icon.sc-z-select{margin-right:var(--space-unit)}.reset-item.hide.sc-z-select{display:none}";
|
|
10
|
+
const stylesCss = ".sc-z-select-h{display:inline-block;width:inherit;color:var(--color-text02);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg)}[size=\"small\"].sc-z-select-h,[size=\"x-small\"].sc-z-select-h{font-size:var(--font-size-2)}.select-wrapper.sc-z-select>z-input.sc-z-select{width:100%}.select-wrapper.sc-z-select>div.sc-z-select{position:relative}.select-wrapper.sc-z-select>div.closed.sc-z-select{overflow:hidden;height:0}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select{position:absolute;width:100%;box-sizing:border-box;padding:calc(var(--space-unit) * 0.5) var(--space-unit);border:var(--border-size-small) solid var(--gray200);border-top:none;background:var(--color-surface01);outline:none}.select-wrapper.sc-z-select .closed.sc-z-select .ul-scroll-wrapper.sc-z-select{z-index:10}.select-wrapper.sc-z-select .open.sc-z-select .ul-scroll-wrapper.sc-z-select{z-index:20}.select-wrapper.sc-z-select .ul-scroll-wrapper.fixed.sc-z-select{position:static}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select{position:relative;overflow:auto;max-height:240px;padding:calc(var(--space-unit) * 0.5);outline:none;scrollbar-color:var(--color-primary01) transparent}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-track{background-color:transparent}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select>z-list.sc-z-select::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-content.sc-z-select{display:block;padding:calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 1.5)}[size=\"x-small\"].sc-z-select-h .select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-content.sc-z-select{padding:0 calc(var(--space-unit) * 1.5)}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select z-list.sc-z-select z-list-element.sc-z-select .list-element-content.selected.sc-z-select{font-weight:bold}.select-wrapper.sc-z-select .ul-scroll-wrapper.sc-z-select .no-results.sc-z-select z-icon.sc-z-select{margin-right:var(--space-unit)}.z-list-group-title.sc-z-select{color:var(--gray800)}.reset-item.sc-z-select{color:var(--color-primary01);fill:var(--color-primary01)}.reset-item-content.sc-z-select{display:flex;align-items:center}.reset-item.reset-item-margin.sc-z-select .reset-item-content.sc-z-select{margin-left:calc(var(--space-unit))}.reset-item.sc-z-select .reset-item-content.sc-z-select>z-icon.sc-z-select{margin-right:var(--space-unit)}.reset-item.hide.sc-z-select{display:none}";
|
|
11
11
|
|
|
12
12
|
const ZSelect = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -30,6 +30,8 @@ const ZSelect = class {
|
|
|
30
30
|
this.noresultslabel = "Nessun risultato";
|
|
31
31
|
/** When fixed, it occupies space and pushes down next elements. */
|
|
32
32
|
this.isfixed = false;
|
|
33
|
+
/** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
|
|
34
|
+
this.size = index$1.ButtonSize.BIG;
|
|
33
35
|
this.isOpen = false;
|
|
34
36
|
this.selectedItem = null;
|
|
35
37
|
this.itemsList = [];
|
|
@@ -228,7 +230,7 @@ const ZSelect = class {
|
|
|
228
230
|
return (index.h("z-input", { class: {
|
|
229
231
|
"active-select": this.isOpen,
|
|
230
232
|
"cursor-select": !this.autocomplete,
|
|
231
|
-
}, id: `${this.htmlid}_input`, htmlid: `${this.htmlid}_input`, placeholder: this.placeholder, value: !this.isOpen && this.selectedItem ? this.selectedItem.name.replace(/<[^>]+>/g, "") : null, label: this.label, "aria-label": this.ariaLabel, icon: this.isOpen ? "caret-up" : "caret-down", hasclearicon: this.hasAutocomplete(), message: false, disabled: this.disabled, readonly: this.readonly || (!this.hasAutocomplete() && this.isOpen), status: this.isOpen ? undefined : this.status, autocomplete: "off", onClick: (e) => {
|
|
233
|
+
}, id: `${this.htmlid}_input`, htmlid: `${this.htmlid}_input`, placeholder: this.placeholder, value: !this.isOpen && this.selectedItem ? this.selectedItem.name.replace(/<[^>]+>/g, "") : null, label: this.label, "aria-label": this.ariaLabel, icon: this.isOpen ? "caret-up" : "caret-down", hasclearicon: this.hasAutocomplete(), message: false, disabled: this.disabled, readonly: this.readonly || (!this.hasAutocomplete() && this.isOpen), status: this.isOpen ? undefined : this.status, autocomplete: "off", size: this.size, onClick: (e) => {
|
|
232
234
|
this.handleInputClick(e);
|
|
233
235
|
}, onKeyUp: (e) => {
|
|
234
236
|
if (e.keyCode !== 13) {
|
|
@@ -251,7 +253,7 @@ const ZSelect = class {
|
|
|
251
253
|
return (index.h("div", { class: this.isOpen ? "open" : "closed", tabindex: "-1" }, index.h("div", { class: {
|
|
252
254
|
"ul-scroll-wrapper": true,
|
|
253
255
|
"fixed": this.isfixed,
|
|
254
|
-
}, tabindex: "-1" }, index.h("z-list", { role: "listbox", tabindex: this.disabled || this.readonly || !this.isOpen ? -1 : 0, id: this.htmlid, "aria-activedescendant": (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.id, "aria-multiselectable": false, class: {
|
|
256
|
+
}, tabindex: "-1" }, index.h("z-list", { role: "listbox", tabindex: this.disabled || this.readonly || !this.isOpen ? -1 : 0, id: this.htmlid, "aria-activedescendant": (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.id, "aria-multiselectable": false, size: this.listSizeType(), class: {
|
|
255
257
|
disabled: this.disabled,
|
|
256
258
|
readonly: this.readonly,
|
|
257
259
|
filled: !!this.selectedItem,
|
|
@@ -263,18 +265,24 @@ const ZSelect = class {
|
|
|
263
265
|
"hide": !this.selectedItem || !this.resetItem,
|
|
264
266
|
"reset-item": true,
|
|
265
267
|
"reset-item-margin": !this.hasGroupItems,
|
|
266
|
-
}, clickable: true, disabled: false, dividerType: index$1.ListDividerType.ELEMENT, role: "option", tabindex: "0", "aria-selected": "false", id: `${this.htmlid}_${this.resetItem ? "0" : "none"}`, onClickItem: () => {
|
|
268
|
+
}, clickable: true, disabled: false, dividerType: index$1.ListDividerType.ELEMENT, role: "option", tabindex: "0", "aria-selected": "false", id: `${this.htmlid}_${this.resetItem ? "0" : "none"}`, size: this.listSizeType(), onClickItem: () => {
|
|
267
269
|
this.selectedItem = null;
|
|
268
270
|
this.searchString = null;
|
|
269
271
|
this.emitResetSelect();
|
|
270
272
|
}, onKeyDown: (e) => this.arrowsSelectNav(e, 0) }, index.h("div", { class: "reset-item-content" }, index.h("z-icon", { name: "multiply-circled" }), index.h("span", null, this.resetItem))));
|
|
271
273
|
}
|
|
272
274
|
renderItem(item, key, lastItem) {
|
|
273
|
-
return (index.h("z-list-element", { clickable: !item.disabled, disabled: item.disabled, dividerType: lastItem ? index$1.ListDividerType.HEADER : index$1.ListDividerType.ELEMENT, role: "option", tabindex: item.disabled || !this.isOpen ? -1 : 0, "aria-selected": !!item.selected, id: `${this.htmlid}_${key}`, onClickItem: () => this.selectItem(item, true), onKeyDown: (e) => this.arrowsSelectNav(e, key) }, index.h("span", { class: {
|
|
275
|
+
return (index.h("z-list-element", { clickable: !item.disabled, disabled: item.disabled, dividerType: lastItem ? index$1.ListDividerType.HEADER : index$1.ListDividerType.ELEMENT, role: "option", tabindex: item.disabled || !this.isOpen ? -1 : 0, "aria-selected": !!item.selected, id: `${this.htmlid}_${key}`, size: this.listSizeType(), onClickItem: () => this.selectItem(item, true), onKeyDown: (e) => this.arrowsSelectNav(e, key) }, index.h("span", { class: {
|
|
274
276
|
"selected": !!item.selected,
|
|
275
277
|
"list-element-content": true,
|
|
276
278
|
}, innerHTML: item.name })));
|
|
277
279
|
}
|
|
280
|
+
listSizeType() {
|
|
281
|
+
if (this.size === index$1.ButtonSize.SMALL || this.size === index$1.ButtonSize.X_SMALL) {
|
|
282
|
+
return index$1.ListSize.SMALL;
|
|
283
|
+
}
|
|
284
|
+
return index$1.ListSize.MEDIUM;
|
|
285
|
+
}
|
|
278
286
|
renderSelectUlItems() {
|
|
279
287
|
if (!this.itemsList.length) {
|
|
280
288
|
return this.renderNoSearchResults();
|
|
@@ -300,17 +308,17 @@ const ZSelect = class {
|
|
|
300
308
|
return group;
|
|
301
309
|
}, {});
|
|
302
310
|
return Object.entries(newData).map(([key, value]) => {
|
|
303
|
-
return (index.h("z-list-group", { "divider-type": index$1.ListDividerType.ELEMENT }, index.h("
|
|
311
|
+
return (index.h("z-list-group", { "divider-type": index$1.ListDividerType.ELEMENT }, index.h("span", { class: "body-3-sb z-list-group-title", slot: "header-title" }, key), value.map((item) => item)));
|
|
304
312
|
});
|
|
305
313
|
}
|
|
306
314
|
renderNoSearchResults() {
|
|
307
|
-
return (index.h("z-list-element", { color: "blue500", class: "no-results" }, index.h("z-icon", { name: "multiply-circle", fill: "blue500" }), this.noresultslabel));
|
|
315
|
+
return (index.h("z-list-element", { color: "blue500", class: "no-results", size: this.listSizeType() }, index.h("z-icon", { name: "multiply-circle", fill: "blue500" }), this.noresultslabel));
|
|
308
316
|
}
|
|
309
317
|
renderMessage() {
|
|
310
318
|
if (utils.boolean(this.message) === false) {
|
|
311
319
|
return;
|
|
312
320
|
}
|
|
313
|
-
return (index.h("z-input-message", { message: utils.boolean(this.message) === true ? undefined : this.message, status: this.status }));
|
|
321
|
+
return (index.h("z-input-message", { message: utils.boolean(this.message) === true ? undefined : this.message, status: this.status, class: this.size }));
|
|
314
322
|
}
|
|
315
323
|
render() {
|
|
316
324
|
return (index.h("div", { class: "select-wrapper" }, this.renderInput(), this.renderSelectUl(), this.renderMessage()));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const utils = require('./utils-
|
|
6
|
+
const utils = require('./utils-4cf6a5ac.js');
|
|
7
7
|
const index$1 = require('./index-fa110f37.js');
|
|
8
8
|
require('./breakpoints-88c4fd6c.js');
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
6
|
const index$1 = require('./index-fa110f37.js');
|
|
7
|
-
const utils = require('./utils-
|
|
7
|
+
const utils = require('./utils-4cf6a5ac.js');
|
|
8
8
|
require('./breakpoints-88c4fd6c.js');
|
|
9
9
|
|
|
10
10
|
const stylesCss = ":host{display:block;width:inherit;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{display:flex;width:inherit;flex-direction:column}main{position:relative;overflow:hidden;width:100%}main z-icon.scroll{position:absolute;z-index:10;top:50%;width:auto;margin:0 var(--space-unit);cursor:pointer;fill:var(--color-primary01);transition:0.6s ease}main .scroll.disabled{opacity:0.5;pointer-events:none}main .scroll.right{right:0}#slides{display:flex;flex-wrap:wrap;line-height:0px;overflow-y:hidden;transition:all 300ms}footer{display:grid;width:100%;height:56px;align-items:center;border-top:var(--border-base) solid var(--color-surface02);grid-template:2 / 2;grid-template-areas:\"center center\" \"left right\"}footer>div{width:100%;align-items:center}footer .footer-center{grid-area:center}footer .footer-left{grid-area:left}footer .footer-right{grid-area:right}footer .bullet-container{display:flex;min-height:60px;align-items:center;justify-content:center;margin:0 auto}footer .bullet-container .bullet{width:8px;height:8px;margin:var(--space-unit) 2px;background-color:var(--bg-neutral-150);border-radius:50%;pointer-events:none}footer .bullet-container .bullet.selected{background-color:var(--bg-neutral-400)}@media only screen and (min-width: 768px){footer{height:76px;border-top:var(--border-base) solid var(--color-surface02);grid-template:1 / 1fr 2fr 1fr;grid-template-areas:\"left center right\"}footer .bullet-container .bullet{width:10px;height:10px;margin:var(--space-unit) 3px}}@media only screen and (min-width: 1025px){main z-icon.scroll{margin:0 10px}footer .bullet-container .bullet{width:16px;height:16px;margin:var(--space-unit) calc(var(--space-unit) * 0.5);cursor:pointer;pointer-events:auto}}";
|
|
@@ -19,7 +19,7 @@ const ZTableEmptyBox = class {
|
|
|
19
19
|
this.hasCta2Slot = !!this.hostElement.querySelector('[slot="cta2"]');
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (index.h(index.Host, null, index.h("
|
|
22
|
+
return (index.h(index.Host, null, index.h("span", { class: "body-3-sb" }, this.message), index.h("br", null), !!this.subtitle && index.h("span", { class: "body-4" }, this.subtitle), (!!this.hasCta1Slot || !!this.hasCta2Slot) && (index.h("div", { class: {
|
|
23
23
|
"cta": true,
|
|
24
24
|
"has-2-cta": !!this.hasCta1Slot && !!this.hasCta2Slot,
|
|
25
25
|
} }, index.h("slot", { name: "cta1" }), index.h("slot", { name: "cta2" })))));
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
6
|
const index$1 = require('./index-fa110f37.js');
|
|
7
|
-
const utils = require('./utils-
|
|
7
|
+
const utils = require('./utils-4cf6a5ac.js');
|
|
8
8
|
require('./breakpoints-88c4fd6c.js');
|
|
9
9
|
|
|
10
10
|
const stylesCss = ":host{position:relative;display:table-cell;border-bottom:var(--border-size-medium) solid var(--gray200);background-color:var(--gray50);font-family:var(--dashboard-font);font-weight:var(--font-sb);text-align:start}.container{display:flex;align-items:flex-end}:host(.sortable){cursor:pointer}:host([padding=\"x-small\"]){padding:calc(var(--space-unit) * 0.5)}:host([padding=\"small\"]){padding:calc(var(--space-unit))}:host([padding=\"medium\"]){padding:calc(var(--space-unit) * 2)}:host([padding=\"large\"]){padding:calc(var(--space-unit) * 2.5)}:host([padding=\"special\"]){padding:0}.arrow{padding-left:var(--space-unit);opacity:1}.popover-container{position:absolute;top:var(--space-unit);right:var(--space-unit);display:none}.popover-container z-popover{--z-popover-theme--surface:var(--gray200);position:relative;z-index:1}.popover-container.visible{display:block}:host(:hover) .popover-container{display:block}";
|
|
@@ -50,7 +50,7 @@ const ZTable = class {
|
|
|
50
50
|
}
|
|
51
51
|
renderError(tableClass) {
|
|
52
52
|
const minHeight = this.lines ? `calc(40px * ${this.lines})` : "auto";
|
|
53
|
-
return (index.h(index.Host, null, index.h("div", { class: tableClass }, index.h("slot", { name: "table-header" })), index.h("z-table-error", null, index.h("div", { class: "error-content", style: { minHeight } }, index.h("slot", { name: "error-image" }), index.h("div", { class: "text" }, index.h("
|
|
53
|
+
return (index.h(index.Host, null, index.h("div", { class: tableClass }, index.h("slot", { name: "table-header" })), index.h("z-table-error", null, index.h("div", { class: "error-content", style: { minHeight } }, index.h("slot", { name: "error-image" }), index.h("div", { class: "text" }, index.h("span", { class: "body-3-sb error-message" }, this.errorMessage), index.h("slot", { name: "error-action" }))))));
|
|
54
54
|
}
|
|
55
55
|
renderEmpty(tableClass) {
|
|
56
56
|
const buttonSize = this.isMobile ? index$1.ButtonSize.SMALL : index$1.ButtonSize.BIG;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const utils = require('./utils-
|
|
6
|
+
const utils = require('./utils-4cf6a5ac.js');
|
|
7
7
|
const index$1 = require('./index-fa110f37.js');
|
|
8
8
|
require('./breakpoints-88c4fd6c.js');
|
|
9
9
|
|
|
@@ -4,17 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
6
|
|
|
7
|
-
const ZBody = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
/** Font weight variant */
|
|
11
|
-
this.variant = "regular";
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return (index.h("z-typography", { tabIndex: 0, component: this.component || "span", level: `b${this.level}`, variant: this.variant }, index.h("slot", null)));
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
7
|
const stylesCss = ":host>*{margin:0;font-family:var(--dashboard-font)}:host(.regular)>*{font-weight:var(--font-rg)}:host(.semibold)>*{font-weight:600}:host(.light)>*{font-weight:300}:host(.h1)>*{font-size:32px;line-height:40px}:host(.h2)>*{font-size:28px;line-height:36px}:host(.h3)>*{font-size:24px;line-height:32px}:host(.h4)>*{font-size:20px;line-height:28px}:host(.b1)>*{font-size:20px;line-height:28px}:host(.b2)>*{font-size:18px;line-height:28px}:host(.b3)>*{font-size:16px;line-height:24px}:host(.b4)>*{font-size:14px;line-height:20px}:host(.b5)>*{font-size:12px;line-height:16px}:host(:focus-visible){outline:none}";
|
|
19
8
|
|
|
20
9
|
const ZTypography = class {
|
|
@@ -38,5 +27,4 @@ const ZTypography = class {
|
|
|
38
27
|
};
|
|
39
28
|
ZTypography.style = stylesCss;
|
|
40
29
|
|
|
41
|
-
exports.z_body = ZBody;
|
|
42
30
|
exports.z_typography = ZTypography;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"./
|
|
3
|
+
"./deprecated/typography/z-typography/index.js",
|
|
4
4
|
"./components/buttons/z-button/index.js",
|
|
5
5
|
"./components/buttons/z-button-sort/index.js",
|
|
6
6
|
"./components/buttons/z-chip/index.js",
|
|
@@ -39,8 +39,6 @@
|
|
|
39
39
|
"./components/notification/z-toast-notification/index.js",
|
|
40
40
|
"./components/notification/z-tooltip/index.js",
|
|
41
41
|
"./components/panel/z-panel-elem/index.js",
|
|
42
|
-
"./components/typography/z-body/index.js",
|
|
43
|
-
"./components/typography/z-heading/index.js",
|
|
44
42
|
"./components/z-anchor-navigation/index.js",
|
|
45
43
|
"./components/z-aria-alert/index.js",
|
|
46
44
|
"./components/z-avatar/index.js",
|
|
@@ -69,6 +67,8 @@
|
|
|
69
67
|
"./components/z-table/z-table-sticky-footer/index.js",
|
|
70
68
|
"./components/z-tag/index.js",
|
|
71
69
|
"./components/z-visually-hidden/index.js",
|
|
70
|
+
"./deprecated/typography/z-body/index.js",
|
|
71
|
+
"./deprecated/typography/z-heading/index.js",
|
|
72
72
|
"./snowflakes/myz/card/z-myz-card/index.js",
|
|
73
73
|
"./snowflakes/myz/card/z-myz-card-alert/index.js",
|
|
74
74
|
"./snowflakes/myz/card/z-myz-card-body/index.js",
|
|
@@ -4,7 +4,7 @@ export class ZDragdropArea {
|
|
|
4
4
|
this.fileDropped.emit(files);
|
|
5
5
|
}
|
|
6
6
|
renderOnDragOverMessage() {
|
|
7
|
-
return (h("div", { class: "dragover-container" }, h("div", { class: "dragover-message" }, h("
|
|
7
|
+
return (h("div", { class: "dragover-container" }, h("div", { class: "dragover-message" }, h("span", { class: "body-2-sb" }, "Rilascia i file in questa area per allegarli."))));
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
10
|
return (h("div", { tabIndex: 0, ref: (val) => (this.dragDropContainer = val), class: "dragdrop", onDragOver: (e) => {
|
|
@@ -92,10 +92,10 @@ export class ZFileUpload {
|
|
|
92
92
|
return errors;
|
|
93
93
|
}
|
|
94
94
|
renderTitle() {
|
|
95
|
-
return (h("
|
|
95
|
+
return (h("h2", { class: "heading-2-sb", id: "title" }, this.mainTitle));
|
|
96
96
|
}
|
|
97
|
-
renderDescription(
|
|
98
|
-
return
|
|
97
|
+
renderDescription(cssClass) {
|
|
98
|
+
return h("span", { class: cssClass }, this.description);
|
|
99
99
|
}
|
|
100
100
|
renderAllowedFileExtensions() {
|
|
101
101
|
let fileFormatString = "";
|
|
@@ -111,10 +111,10 @@ export class ZFileUpload {
|
|
|
111
111
|
fileWeightString = ` per un massimo di ${this.fileMaxSize}MB di peso`;
|
|
112
112
|
}
|
|
113
113
|
const finalString = `Puoi allegare file${fileFormatString}${fileWeightString}.`;
|
|
114
|
-
return h("
|
|
114
|
+
return h("span", { class: "body-3" }, fileFormatString || fileWeightString ? finalString : null);
|
|
115
115
|
}
|
|
116
116
|
renderFileSection() {
|
|
117
|
-
return (h("section", { class: `files-container ${!this.files.length ? "hidden" : ""}` }, h("
|
|
117
|
+
return (h("section", { class: `files-container ${!this.files.length ? "hidden" : ""}` }, h("h4", { class: "heading-4-sb" }, "File appena caricati"), h("div", { class: "files-wrapper" }, h("slot", { name: "files" })), h("z-divider", { size: DividerSize.MEDIUM })));
|
|
118
118
|
}
|
|
119
119
|
renderInput() {
|
|
120
120
|
return (h("input", Object.assign({}, this.inputAttributes, { onChange: () => this.fileInputHandler(), accept: this.acceptedFormat, ref: (val) => (this.input = val) })));
|
|
@@ -133,17 +133,17 @@ export class ZFileUpload {
|
|
|
133
133
|
renderUploadLink() {
|
|
134
134
|
return [
|
|
135
135
|
this.renderInput(),
|
|
136
|
-
h("
|
|
136
|
+
h("span", { class: "body-1 upload-link-text" }, "Trascinalo qui o", " ", h("span", { tabIndex: 0, class: "body-1-sb upload-link", onClick: () => this.input.click(), onKeyPress: (e) => {
|
|
137
137
|
if (e.code == "Space" || e.code == "Enter") {
|
|
138
138
|
e.preventDefault();
|
|
139
139
|
this.input.click();
|
|
140
140
|
}
|
|
141
|
-
},
|
|
141
|
+
}, ref: (val) => (this.uploadLink = val) }, "caricalo"), " ", "dal tuo computer"),
|
|
142
142
|
];
|
|
143
143
|
}
|
|
144
144
|
renderDefaultMode() {
|
|
145
145
|
return [
|
|
146
|
-
this.renderDescription("
|
|
146
|
+
this.renderDescription("body-3-sb"),
|
|
147
147
|
this.renderAllowedFileExtensions(),
|
|
148
148
|
this.renderFileSection(),
|
|
149
149
|
this.renderUploadButton(),
|
|
@@ -152,7 +152,7 @@ export class ZFileUpload {
|
|
|
152
152
|
renderDragDropMode() {
|
|
153
153
|
return [
|
|
154
154
|
this.renderFileSection(),
|
|
155
|
-
h("z-dragdrop-area", null, h("div", { class: "text-container" }, this.renderDescription("
|
|
155
|
+
h("z-dragdrop-area", null, h("div", { class: "text-container" }, this.renderDescription("body-1"), this.renderUploadLink(), this.renderAllowedFileExtensions())),
|
|
156
156
|
];
|
|
157
157
|
}
|
|
158
158
|
formatErrorString(key, value) {
|
|
@@ -162,7 +162,7 @@ export class ZFileUpload {
|
|
|
162
162
|
}
|
|
163
163
|
handleErrorModalContent() {
|
|
164
164
|
return (h("div", { slot: "modalContent" }, h("div", { class: "modal-wrapper" }, h("div", { class: "files" }, Array.from(this.invalidFiles).map(([key, value]) => {
|
|
165
|
-
return
|
|
165
|
+
return h("span", { class: "body-3" }, this.formatErrorString(key, value));
|
|
166
166
|
})))));
|
|
167
167
|
}
|
|
168
168
|
render() {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
margin: auto;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
:host .text-container
|
|
31
|
+
:host .text-container .body-1 {
|
|
32
32
|
text-align: center;
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -59,7 +59,7 @@ input#file-elem {
|
|
|
59
59
|
display: none;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
:host > .container > .files-container >
|
|
62
|
+
:host > .container > .files-container > .heading-4-sb {
|
|
63
63
|
display: inline-block;
|
|
64
64
|
margin: calc(var(--space-unit) * 3) 0;
|
|
65
65
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { InputType, KeyboardKeyCode, ListDividerType } from "../../../beans";
|
|
2
|
+
import { InputType, KeyboardKeyCode, ListDividerType, ControlSize } from "../../../beans";
|
|
3
3
|
import { handleKeyboardSubmit } from "../../../utils/utils";
|
|
4
4
|
export class ZCombobox {
|
|
5
5
|
constructor() {
|
|
@@ -23,6 +23,8 @@ export class ZCombobox {
|
|
|
23
23
|
this.uncheckalltext = "Deseleziona tutti";
|
|
24
24
|
/** max number of checkable items (0 = unlimited) */
|
|
25
25
|
this.maxcheckableitems = 0;
|
|
26
|
+
/** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
|
|
27
|
+
this.size = ControlSize.BIG;
|
|
26
28
|
this.renderItemsList = []; // used for render only
|
|
27
29
|
this.itemsList = [];
|
|
28
30
|
this.inputType = InputType.TEXT;
|
|
@@ -107,7 +109,7 @@ export class ZCombobox {
|
|
|
107
109
|
if (ev.keyCode === KeyboardKeyCode.SPACE) {
|
|
108
110
|
ev.preventDefault();
|
|
109
111
|
}
|
|
110
|
-
}, onKeyUp: (ev) => handleKeyboardSubmit(ev, this.toggleComboBox), role: "button", tabindex: 0 }, h("
|
|
112
|
+
}, onKeyUp: (ev) => handleKeyboardSubmit(ev, this.toggleComboBox), role: "button", tabindex: 0 }, h("p", { class: "body-3" }, this.label, h("span", null, this.selectedCounter > 0 && ` (${this.selectedCounter})`)), h("z-icon", { name: "caret-down", class: this.size })));
|
|
111
113
|
}
|
|
112
114
|
renderContent() {
|
|
113
115
|
if (!this.isopen) {
|
|
@@ -122,7 +124,7 @@ export class ZCombobox {
|
|
|
122
124
|
return (h("div", { class: this.searchValue && "search", tabindex: -1 }, this.renderList(this.renderItemsList), this.searchValue && this.renderCloseButton()));
|
|
123
125
|
}
|
|
124
126
|
renderItem(item, index, length) {
|
|
125
|
-
return (h("z-myz-list-item", { id: item.id, listitemid: item.id, action: `combo-li-${this.inputid}`, underlined: index !== length - 1 }, h("z-input", { type: InputType.CHECKBOX, checked: item.checked, htmlid: `combo-checkbox-${this.inputid}-${item.id}`, label: item.name, disabled: !item.checked && this.maxcheckableitems && this.maxcheckableitems === this.selectedCounter })));
|
|
127
|
+
return (h("z-myz-list-item", { id: item.id, listitemid: item.id, action: `combo-li-${this.inputid}`, underlined: index !== length - 1, class: this.size }, h("z-input", { type: InputType.CHECKBOX, checked: item.checked, htmlid: `combo-checkbox-${this.inputid}-${item.id}`, label: item.name, disabled: !item.checked && this.maxcheckableitems && this.maxcheckableitems === this.selectedCounter, size: this.size === ControlSize.X_SMALL ? ControlSize.SMALL : this.size })));
|
|
126
128
|
}
|
|
127
129
|
renderList(items) {
|
|
128
130
|
if (!items) {
|
|
@@ -148,12 +150,12 @@ export class ZCombobox {
|
|
|
148
150
|
return group;
|
|
149
151
|
}, {});
|
|
150
152
|
const listGroups = Object.entries(newData).map(([key, value]) => {
|
|
151
|
-
return (h("z-list-group", { "divider-type": ListDividerType.ELEMENT }, h("
|
|
153
|
+
return (h("z-list-group", { "divider-type": ListDividerType.ELEMENT }, h("span", { class: "body-3-sb z-list-group-title", slot: "header-title" }, key), value.map((item) => item)));
|
|
152
154
|
});
|
|
153
155
|
return h("ul", null, listGroups);
|
|
154
156
|
}
|
|
155
157
|
renderNoSearchResults() {
|
|
156
|
-
return (h("ul", null, h("z-myz-list-item", { id: "no-results", text: this.noresultslabel, listitemid: "no-results", icon: "multiply-circle" })));
|
|
158
|
+
return (h("ul", null, h("z-myz-list-item", { id: "no-results", text: this.noresultslabel, listitemid: "no-results", icon: "multiply-circle", class: this.size })));
|
|
157
159
|
}
|
|
158
160
|
renderCloseButton() {
|
|
159
161
|
return (h("div", null, h("a", { onClick: () => this.closeFilterItems(), onKeyUp: (e) => handleKeyboardSubmit(e, this.closeFilterItems), role: "button", tabindex: 0 }, this.closesearchtext)));
|
|
@@ -162,7 +164,7 @@ export class ZCombobox {
|
|
|
162
164
|
if (!this.isopen) {
|
|
163
165
|
return;
|
|
164
166
|
}
|
|
165
|
-
return (h("z-input", { htmlid: `${this.inputid}_search`, label: this.searchlabel, placeholder: this.searchplaceholder, htmltitle: this.searchtitle, type: this.inputType, value: this.searchValue, message: false, onInputChange: (e) => {
|
|
167
|
+
return (h("z-input", { htmlid: `${this.inputid}_search`, label: this.searchlabel, placeholder: this.searchplaceholder, htmltitle: this.searchtitle, type: this.inputType, value: this.searchValue, message: false, size: this.size, onInputChange: (e) => {
|
|
166
168
|
if (e.detail.keycode === 27) {
|
|
167
169
|
return this.closeFilterItems();
|
|
168
170
|
}
|
|
@@ -174,7 +176,7 @@ export class ZCombobox {
|
|
|
174
176
|
return;
|
|
175
177
|
}
|
|
176
178
|
const allChecked = this.selectedCounter === this.itemsList.length;
|
|
177
|
-
return (h("div", { class: "check-all-wrapper" }, h("z-input", { type: InputType.CHECKBOX, checked: allChecked, htmlid: `combo-checkbox-${this.inputid}-check-all`, label: allChecked ? this.uncheckalltext : this.checkalltext, disabled: this.maxcheckableitems && this.maxcheckableitems < this.itemsList.length })));
|
|
179
|
+
return (h("div", { class: "check-all-wrapper" }, h("z-input", { type: InputType.CHECKBOX, checked: allChecked, htmlid: `combo-checkbox-${this.inputid}-check-all`, label: allChecked ? this.uncheckalltext : this.checkalltext, disabled: this.maxcheckableitems && this.maxcheckableitems < this.itemsList.length, size: this.size === ControlSize.X_SMALL ? ControlSize.SMALL : this.size })));
|
|
178
180
|
}
|
|
179
181
|
render() {
|
|
180
182
|
return (h("div", { "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
|
|
@@ -496,6 +498,29 @@ export class ZCombobox {
|
|
|
496
498
|
},
|
|
497
499
|
"attribute": "hasgroupitems",
|
|
498
500
|
"reflect": false
|
|
501
|
+
},
|
|
502
|
+
"size": {
|
|
503
|
+
"type": "string",
|
|
504
|
+
"mutable": false,
|
|
505
|
+
"complexType": {
|
|
506
|
+
"original": "ControlSize",
|
|
507
|
+
"resolved": "ButtonSize.BIG | ButtonSize.SMALL | ButtonSize.X_SMALL",
|
|
508
|
+
"references": {
|
|
509
|
+
"ControlSize": {
|
|
510
|
+
"location": "import",
|
|
511
|
+
"path": "../../../beans"
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
"required": false,
|
|
516
|
+
"optional": true,
|
|
517
|
+
"docs": {
|
|
518
|
+
"tags": [],
|
|
519
|
+
"text": "Available sizes: `big`, `small` and `x-small`. Defaults to `big`."
|
|
520
|
+
},
|
|
521
|
+
"attribute": "size",
|
|
522
|
+
"reflect": false,
|
|
523
|
+
"defaultValue": "ControlSize.BIG"
|
|
499
524
|
}
|
|
500
525
|
};
|
|
501
526
|
}
|
|
@@ -21,6 +21,20 @@
|
|
|
21
21
|
cursor: pointer;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
:host([size="small"]) > div > .header {
|
|
25
|
+
min-height: 34px;
|
|
26
|
+
font-size: var(--font-size-2);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host([size="x-small"]) > div > .header {
|
|
30
|
+
min-height: 30px;
|
|
31
|
+
font-size: var(--font-size-2);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host([size="x-small"]) > div > .header p.body-3 {
|
|
35
|
+
padding: calc(var(--space-unit) * 0.5) 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
24
38
|
:host > div > .header:hover {
|
|
25
39
|
outline: var(--border-size-medium) solid var(--gray700);
|
|
26
40
|
outline-offset: -2px;
|
|
@@ -35,13 +49,13 @@
|
|
|
35
49
|
outline: none;
|
|
36
50
|
}
|
|
37
51
|
|
|
38
|
-
:host > div > .header >
|
|
52
|
+
:host > div > .header > p.body-3 {
|
|
39
53
|
padding: var(--space-unit) 0;
|
|
40
54
|
margin: 0;
|
|
41
55
|
color: var(--text-grey-800);
|
|
42
56
|
}
|
|
43
57
|
|
|
44
|
-
:host > div > .header >
|
|
58
|
+
:host > div > .header > p.body-3 > span {
|
|
45
59
|
font-weight: var(--font-sb);
|
|
46
60
|
}
|
|
47
61
|
|
|
@@ -51,6 +65,12 @@
|
|
|
51
65
|
transition: all 200ms linear;
|
|
52
66
|
}
|
|
53
67
|
|
|
68
|
+
:host > div > .header > z-icon.small,
|
|
69
|
+
:host > div > .header > z-icon.x-small {
|
|
70
|
+
--z-icon-width: 16px;
|
|
71
|
+
--z-icon-height: 16px;
|
|
72
|
+
}
|
|
73
|
+
|
|
54
74
|
:host > div.open > .header {
|
|
55
75
|
border: var(--border-size-small) solid var(--blue500);
|
|
56
76
|
border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;
|
|
@@ -65,7 +85,7 @@
|
|
|
65
85
|
fill: var(--color-disabled01);
|
|
66
86
|
}
|
|
67
87
|
|
|
68
|
-
:host > div.disabled .header >
|
|
88
|
+
:host > div.disabled .header > p.body-3 {
|
|
69
89
|
color: var(--text-grey-700);
|
|
70
90
|
}
|
|
71
91
|
|
|
@@ -167,3 +187,11 @@
|
|
|
167
187
|
margin-bottom: var(--space-unit);
|
|
168
188
|
text-align: left;
|
|
169
189
|
}
|
|
190
|
+
|
|
191
|
+
:host([size="small"]) > div.open > div.open-combo-data > div.check-all-wrapper {
|
|
192
|
+
padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 0.5);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
:host([size="x-small"]) > div.open > div.open-combo-data > div.check-all-wrapper {
|
|
196
|
+
padding: var(--space-unit) calc(var(--space-unit) * 0.5);
|
|
197
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import {
|
|
2
|
+
import { Host } from "@stencil/core/internal";
|
|
3
|
+
import { InputType, LabelPosition, ControlSize } from "../../../beans";
|
|
3
4
|
import { boolean, randomId } from "../../../utils/utils";
|
|
4
5
|
export class ZInput {
|
|
5
6
|
constructor() {
|
|
@@ -21,6 +22,8 @@ export class ZInput {
|
|
|
21
22
|
this.labelPosition = LabelPosition.RIGHT;
|
|
22
23
|
/** render clear icon when typing (optional): available for text */
|
|
23
24
|
this.hasclearicon = true;
|
|
25
|
+
/** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */
|
|
26
|
+
this.size = ControlSize.BIG;
|
|
24
27
|
this.isTyping = false;
|
|
25
28
|
this.passwordHidden = true;
|
|
26
29
|
this.typingtimeout = 300;
|
|
@@ -158,22 +161,22 @@ export class ZInput {
|
|
|
158
161
|
if (!this.icon) {
|
|
159
162
|
return;
|
|
160
163
|
}
|
|
161
|
-
return (h("button", { type: "button", class: "icon-button input-icon", tabIndex: -1 }, h("z-icon", { name: this.icon })));
|
|
164
|
+
return (h("button", { type: "button", class: "icon-button input-icon", tabIndex: -1 }, h("z-icon", { name: this.icon, class: this.size })));
|
|
162
165
|
}
|
|
163
166
|
renderResetIcon() {
|
|
164
167
|
if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == InputType.NUMBER) {
|
|
165
168
|
return;
|
|
166
169
|
}
|
|
167
|
-
return (h("button", { type: "button", class: "icon-button reset-icon", "aria-label": "cancella il contenuto dell'input", onClick: () => this.emitInputChange("") }, h("z-icon", { name: "multiply" })));
|
|
170
|
+
return (h("button", { type: "button", class: "icon-button reset-icon", "aria-label": "cancella il contenuto dell'input", onClick: () => this.emitInputChange("") }, h("z-icon", { name: "multiply", class: this.size })));
|
|
168
171
|
}
|
|
169
172
|
renderShowHidePassword() {
|
|
170
|
-
return (h("button", { type: "button", class: "icon-button toggle-password-icon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) }, h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled" })));
|
|
173
|
+
return (h("button", { type: "button", class: "icon-button toggle-password-icon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) }, h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled", class: this.size })));
|
|
171
174
|
}
|
|
172
175
|
renderMessage() {
|
|
173
176
|
if (boolean(this.message) === false) {
|
|
174
177
|
return;
|
|
175
178
|
}
|
|
176
|
-
return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status }));
|
|
179
|
+
return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status, class: this.size }));
|
|
177
180
|
}
|
|
178
181
|
/* END text/password/email/number */
|
|
179
182
|
/* START textarea */
|
|
@@ -193,7 +196,7 @@ export class ZInput {
|
|
|
193
196
|
"checkbox-label": true,
|
|
194
197
|
"after": this.labelPosition === LabelPosition.RIGHT,
|
|
195
198
|
"before": this.labelPosition === LabelPosition.LEFT,
|
|
196
|
-
} }, h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
|
|
199
|
+
} }, h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true", class: this.size }), this.label && h("span", { innerHTML: this.label }))));
|
|
197
200
|
}
|
|
198
201
|
/* END checkbox */
|
|
199
202
|
/* START radio */
|
|
@@ -202,20 +205,25 @@ export class ZInput {
|
|
|
202
205
|
"radio-label": true,
|
|
203
206
|
"after": this.labelPosition === LabelPosition.RIGHT,
|
|
204
207
|
"before": this.labelPosition === LabelPosition.LEFT,
|
|
205
|
-
} }, h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true" }), this.label && h("span", { innerHTML: this.label }))));
|
|
208
|
+
} }, h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true", class: this.size }), this.label && h("span", { innerHTML: this.label }))));
|
|
206
209
|
}
|
|
207
210
|
/* END radio */
|
|
208
211
|
render() {
|
|
212
|
+
let input;
|
|
209
213
|
switch (this.type) {
|
|
210
214
|
case InputType.TEXTAREA:
|
|
211
|
-
|
|
215
|
+
input = this.renderTextarea();
|
|
216
|
+
break;
|
|
212
217
|
case InputType.CHECKBOX:
|
|
213
|
-
|
|
218
|
+
input = this.renderCheckbox();
|
|
219
|
+
break;
|
|
214
220
|
case InputType.RADIO:
|
|
215
|
-
|
|
221
|
+
input = this.renderRadio();
|
|
222
|
+
break;
|
|
216
223
|
default:
|
|
217
|
-
|
|
224
|
+
input = this.renderInputText(this.type);
|
|
218
225
|
}
|
|
226
|
+
return h(Host, null, input);
|
|
219
227
|
}
|
|
220
228
|
static get is() { return "z-input"; }
|
|
221
229
|
static get encapsulation() { return "scoped"; }
|
|
@@ -628,6 +636,29 @@ export class ZInput {
|
|
|
628
636
|
},
|
|
629
637
|
"attribute": "pattern",
|
|
630
638
|
"reflect": false
|
|
639
|
+
},
|
|
640
|
+
"size": {
|
|
641
|
+
"type": "string",
|
|
642
|
+
"mutable": false,
|
|
643
|
+
"complexType": {
|
|
644
|
+
"original": "ControlSize",
|
|
645
|
+
"resolved": "ButtonSize.BIG | ButtonSize.SMALL | ButtonSize.X_SMALL",
|
|
646
|
+
"references": {
|
|
647
|
+
"ControlSize": {
|
|
648
|
+
"location": "import",
|
|
649
|
+
"path": "../../../beans"
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
"required": false,
|
|
654
|
+
"optional": true,
|
|
655
|
+
"docs": {
|
|
656
|
+
"tags": [],
|
|
657
|
+
"text": "Available sizes: `big`, `small` and `x-small`. Defaults to `big`."
|
|
658
|
+
},
|
|
659
|
+
"attribute": "size",
|
|
660
|
+
"reflect": true,
|
|
661
|
+
"defaultValue": "ControlSize.BIG"
|
|
631
662
|
}
|
|
632
663
|
};
|
|
633
664
|
}
|