@zanichelli/albe-web-components 19.2.6-RC2 → 19.2.7
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 +21 -0
- package/dist/cjs/{iconset-Bcbz2MS1.js → iconset-oiCBBbd2.js} +15 -3
- package/dist/cjs/index-D_S5lGcb.js +4 -4
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-app-header_12.cjs.entry.js +127 -199
- package/dist/cjs/z-combobox.cjs.entry.js +5 -3
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
- package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
- package/dist/cjs/z-otp.cjs.entry.js +2 -2
- package/dist/cjs/z-pagination.cjs.entry.js +2 -2
- package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/z-stepper.cjs.entry.js +1 -1
- package/dist/cjs/z-td.cjs.entry.js +3 -3
- package/dist/cjs/z-th.cjs.entry.js +5 -3
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +3 -3
- package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/z-tool.cjs.entry.js +2 -2
- package/dist/cjs/z-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/collection/components/css-components/z-scrollbar/styles.css +40 -0
- package/dist/collection/components/table/cells/{z-td/styles.css → z-table-cells.css} +0 -1
- package/dist/collection/components/table/cells/z-td/index.js +3 -3
- package/dist/collection/components/table/cells/z-th/index.js +3 -3
- package/dist/collection/components/table/cells/z-th/styles.css +0 -72
- package/dist/collection/components/z-combobox/index.js +3 -3
- package/dist/collection/components/z-combobox/styles.css +0 -12
- package/dist/collection/components/z-input/index.js +3 -3
- package/dist/collection/components/z-input/styles-checkbox-radio.css +130 -0
- package/dist/collection/components/z-input/styles-general.css +166 -0
- package/dist/collection/components/z-input/styles-text.css +87 -0
- package/dist/collection/components/z-input/styles-textarea.css +19 -0
- package/dist/collection/components/z-pagination/index.js +2 -2
- package/dist/collection/components/z-searchbar/index.js +111 -193
- package/dist/collection/components/z-searchbar/index.stories.js +3 -16
- package/dist/collection/components/z-searchbar/styles.css +87 -201
- package/dist/collection/components/z-skip-to-content/index.js +1 -1
- package/dist/collection/components/z-stepper/index.js +1 -1
- package/dist/collection/components/z-stepper-item/index.js +1 -1
- package/dist/collection/components/z-toast-notification/index.js +3 -3
- package/dist/collection/components/z-toast-notification-list/index.js +1 -1
- package/dist/collection/components/z-toggle-button/index.js +2 -2
- package/dist/collection/components/z-toggle-switch/index.js +3 -3
- package/dist/collection/components/z-tool/index.js +3 -3
- package/dist/collection/components/z-toolbar/index.js +1 -1
- package/dist/collection/components/z-tooltip/index.js +1 -1
- package/dist/collection/constants/iconset.js +15 -3
- package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
- package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
- package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
- package/dist/components/iconset.js +1 -1
- package/dist/components/index13.js +1 -1
- package/dist/components/index22.js +1 -1
- package/dist/components/index23.js +1 -1
- package/dist/components/index24.js +1 -1
- package/dist/components/index25.js +1 -1
- package/dist/components/index26.js +1 -1
- package/dist/components/index27.js +1 -1
- package/dist/components/index4.js +1 -1
- package/dist/components/index7.js +1 -1
- package/dist/components/z-combobox.js +1 -1
- package/dist/components/z-myz-card-alert.js +1 -1
- package/dist/components/z-myz-card-dictionary.js +1 -1
- package/dist/components/z-myz-card-footer-sections.js +1 -1
- package/dist/components/z-myz-card-footer.js +1 -1
- package/dist/components/z-myz-card-icon.js +1 -1
- package/dist/components/z-myz-card-info.js +1 -1
- package/dist/components/z-myz-card-list.js +1 -1
- package/dist/components/z-myz-list.js +1 -1
- package/dist/components/z-otp.js +1 -1
- package/dist/components/z-pagination.js +1 -1
- package/dist/components/z-skip-to-content.js +1 -1
- package/dist/components/z-stepper-item.js +1 -1
- package/dist/components/z-stepper.js +1 -1
- package/dist/components/z-td.js +1 -1
- package/dist/components/z-th.js +1 -1
- package/dist/components/z-toast-notification-list.js +1 -1
- package/dist/components/z-toast-notification.js +1 -1
- package/dist/components/z-toggle-button.js +1 -1
- package/dist/components/z-toggle-switch.js +1 -1
- package/dist/components/z-tool.js +1 -1
- package/dist/components/z-toolbar.js +1 -1
- package/dist/esm/{iconset-BanpkIXZ.js → iconset-CjHS9zeM.js} +15 -3
- package/dist/esm/index-DPdXlnVe.js +4 -4
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-0PByxJyN.js → utils-DYd3kO0P.js} +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-alert.entry.js +1 -1
- package/dist/esm/z-app-header_12.entry.js +129 -201
- package/dist/esm/z-book-card-deprecated.entry.js +1 -1
- package/dist/esm/z-breadcrumb.entry.js +1 -1
- package/dist/esm/z-color-picker.entry.js +1 -1
- package/dist/esm/z-combobox.entry.js +6 -4
- package/dist/esm/z-menu.entry.js +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +2 -2
- package/dist/esm/z-myz-card-list.entry.js +1 -1
- package/dist/esm/z-myz-card_4.entry.js +4 -4
- package/dist/esm/z-myz-list-item.entry.js +2 -2
- package/dist/esm/z-myz-list.entry.js +1 -1
- package/dist/esm/z-otp.entry.js +2 -2
- package/dist/esm/z-pagination.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +1 -1
- package/dist/esm/z-select.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +2 -2
- package/dist/esm/z-slideshow.entry.js +1 -1
- package/dist/esm/z-stepper-item.entry.js +1 -1
- package/dist/esm/z-stepper.entry.js +1 -1
- package/dist/esm/z-table.entry.js +1 -1
- package/dist/esm/z-td.entry.js +3 -3
- package/dist/esm/z-th.entry.js +5 -3
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +3 -3
- package/dist/esm/z-toggle-button.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +4 -4
- package/dist/esm/z-tool.entry.js +3 -3
- package/dist/esm/z-toolbar.entry.js +1 -1
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/esm/z-tr.entry.js +1 -1
- package/dist/types/components/z-searchbar/index.d.ts +24 -28
- package/dist/types/components.d.ts +14 -14
- package/dist/types/constants/iconset.d.ts +30 -6
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/p-087956fa.entry.js +1 -0
- package/dist/web-components-library/{p-5fa910e4.entry.js → p-13e7f751.entry.js} +1 -1
- package/dist/web-components-library/{p-2ce3ac48.entry.js → p-14b804f9.entry.js} +1 -1
- package/dist/web-components-library/{p-45866f64.entry.js → p-1580db58.entry.js} +1 -1
- package/{www/build/p-eed4e897.entry.js → dist/web-components-library/p-1d023220.entry.js} +1 -1
- package/dist/web-components-library/{p-de0b7109.entry.js → p-299f0f85.entry.js} +1 -1
- package/dist/web-components-library/{p-d11d39f5.entry.js → p-2c036e17.entry.js} +1 -1
- package/dist/web-components-library/{p-5b9cacd7.entry.js → p-2df6d169.entry.js} +1 -1
- package/dist/web-components-library/{p-550ee6c3.entry.js → p-37e84b71.entry.js} +1 -1
- package/dist/web-components-library/{p-6fb8a984.entry.js → p-3ea03d34.entry.js} +1 -1
- package/dist/web-components-library/p-41584e90.entry.js +1 -0
- package/dist/web-components-library/p-53670be4.entry.js +1 -0
- package/dist/web-components-library/{p-7d9477ed.entry.js → p-583b8152.entry.js} +1 -1
- package/dist/web-components-library/{p-538a1bd2.entry.js → p-5d20fc3d.entry.js} +1 -1
- package/dist/web-components-library/{p-364b0ca4.entry.js → p-658f022d.entry.js} +1 -1
- package/dist/web-components-library/{p-f94c360f.entry.js → p-788eaac7.entry.js} +1 -1
- package/dist/web-components-library/{p-a40ae683.entry.js → p-8261c869.entry.js} +1 -1
- package/{www/build/p-4ae7df7f.entry.js → dist/web-components-library/p-83da1031.entry.js} +1 -1
- package/{www/build/p-c6920758.entry.js → dist/web-components-library/p-85cac60d.entry.js} +1 -1
- package/dist/web-components-library/{p-c6ae9241.entry.js → p-88a3ba7c.entry.js} +1 -1
- package/dist/web-components-library/{p-e2d94c86.entry.js → p-8a8df4f4.entry.js} +1 -1
- package/dist/web-components-library/{p-ab50e989.entry.js → p-8b026993.entry.js} +1 -1
- package/dist/web-components-library/{p-8fd25c59.entry.js → p-9d15ecdf.entry.js} +1 -1
- package/dist/web-components-library/{p-D4yqZKyM.js → p-CPsEG702.js} +1 -1
- package/dist/web-components-library/p-CjHS9zeM.js +1 -0
- package/dist/web-components-library/{p-f5bbcaa6.entry.js → p-a4f673f8.entry.js} +1 -1
- package/dist/web-components-library/{p-2d6a4515.entry.js → p-b6223d7e.entry.js} +1 -1
- package/dist/web-components-library/{p-7835fdda.entry.js → p-b9343431.entry.js} +1 -1
- package/dist/web-components-library/{p-c539ae57.entry.js → p-c42ddd93.entry.js} +1 -1
- package/{www/build/p-eadf2552.entry.js → dist/web-components-library/p-c4e7bd16.entry.js} +1 -1
- package/dist/web-components-library/{p-3f996a63.entry.js → p-c944a943.entry.js} +1 -1
- package/dist/web-components-library/{p-19f5fdd3.entry.js → p-cd33f4b1.entry.js} +1 -1
- package/dist/web-components-library/p-d10e6b1a.entry.js +1 -0
- package/dist/web-components-library/p-dc5ab2cc.entry.js +1 -0
- package/dist/web-components-library/p-e48497f0.entry.js +1 -0
- package/dist/web-components-library/{p-19d3a16b.entry.js → p-eddc2d19.entry.js} +1 -1
- package/dist/web-components-library/{p-91503030.entry.js → p-ef5018bb.entry.js} +1 -1
- package/dist/web-components-library/{p-7a9d19b8.entry.js → p-f7e46ef2.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +2 -3
- package/www/build/index.esm.js +1 -1
- package/www/build/p-087956fa.entry.js +1 -0
- package/www/build/{p-5fa910e4.entry.js → p-13e7f751.entry.js} +1 -1
- package/www/build/{p-2ce3ac48.entry.js → p-14b804f9.entry.js} +1 -1
- package/www/build/{p-45866f64.entry.js → p-1580db58.entry.js} +1 -1
- package/{dist/web-components-library/p-eed4e897.entry.js → www/build/p-1d023220.entry.js} +1 -1
- package/www/build/{p-38f551b0.js → p-23143b48.js} +1 -1
- package/www/build/{p-de0b7109.entry.js → p-299f0f85.entry.js} +1 -1
- package/www/build/{p-d11d39f5.entry.js → p-2c036e17.entry.js} +1 -1
- package/www/build/{p-5b9cacd7.entry.js → p-2df6d169.entry.js} +1 -1
- package/www/build/{p-550ee6c3.entry.js → p-37e84b71.entry.js} +1 -1
- package/www/build/{p-6fb8a984.entry.js → p-3ea03d34.entry.js} +1 -1
- package/www/build/p-41584e90.entry.js +1 -0
- package/www/build/p-53670be4.entry.js +1 -0
- package/www/build/{p-7d9477ed.entry.js → p-583b8152.entry.js} +1 -1
- package/www/build/{p-538a1bd2.entry.js → p-5d20fc3d.entry.js} +1 -1
- package/www/build/{p-364b0ca4.entry.js → p-658f022d.entry.js} +1 -1
- package/www/build/{p-f94c360f.entry.js → p-788eaac7.entry.js} +1 -1
- package/www/build/{p-a40ae683.entry.js → p-8261c869.entry.js} +1 -1
- package/{dist/web-components-library/p-4ae7df7f.entry.js → www/build/p-83da1031.entry.js} +1 -1
- package/{dist/web-components-library/p-c6920758.entry.js → www/build/p-85cac60d.entry.js} +1 -1
- package/www/build/{p-c6ae9241.entry.js → p-88a3ba7c.entry.js} +1 -1
- package/www/build/{p-e2d94c86.entry.js → p-8a8df4f4.entry.js} +1 -1
- package/www/build/{p-ab50e989.entry.js → p-8b026993.entry.js} +1 -1
- package/www/build/{p-8fd25c59.entry.js → p-9d15ecdf.entry.js} +1 -1
- package/www/build/{p-D4yqZKyM.js → p-CPsEG702.js} +1 -1
- package/www/build/p-CjHS9zeM.js +1 -0
- package/www/build/{p-f5bbcaa6.entry.js → p-a4f673f8.entry.js} +1 -1
- package/www/build/{p-2d6a4515.entry.js → p-b6223d7e.entry.js} +1 -1
- package/www/build/{p-7835fdda.entry.js → p-b9343431.entry.js} +1 -1
- package/www/build/{p-c539ae57.entry.js → p-c42ddd93.entry.js} +1 -1
- package/{dist/web-components-library/p-eadf2552.entry.js → www/build/p-c4e7bd16.entry.js} +1 -1
- package/www/build/{p-3f996a63.entry.js → p-c944a943.entry.js} +1 -1
- package/www/build/{p-19f5fdd3.entry.js → p-cd33f4b1.entry.js} +1 -1
- package/www/build/p-d10e6b1a.entry.js +1 -0
- package/www/build/p-dc5ab2cc.entry.js +1 -0
- package/www/build/p-e48497f0.entry.js +1 -0
- package/www/build/{p-19d3a16b.entry.js → p-eddc2d19.entry.js} +1 -1
- package/www/build/{p-91503030.entry.js → p-ef5018bb.entry.js} +1 -1
- package/www/build/{p-7a9d19b8.entry.js → p-f7e46ef2.entry.js} +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/collection/components/z-input/styles.css +0 -406
- package/dist/web-components-library/p-2b7ceab2.entry.js +0 -1
- package/dist/web-components-library/p-BanpkIXZ.js +0 -1
- package/dist/web-components-library/p-a9d90b04.entry.js +0 -1
- package/dist/web-components-library/p-a9f848ef.entry.js +0 -1
- package/dist/web-components-library/p-ae69bb7d.entry.js +0 -1
- package/dist/web-components-library/p-f3436721.entry.js +0 -1
- package/dist/web-components-library/p-fc15a666.entry.js +0 -1
- package/www/build/p-2b7ceab2.entry.js +0 -1
- package/www/build/p-BanpkIXZ.js +0 -1
- package/www/build/p-a9d90b04.entry.js +0 -1
- package/www/build/p-a9f848ef.entry.js +0 -1
- package/www/build/p-ae69bb7d.entry.js +0 -1
- package/www/build/p-f3436721.entry.js +0 -1
- package/www/build/p-fc15a666.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-DPdXlnVe.js';
|
|
2
2
|
import { k as LabelPosition } from './index-BKCj6NR2.js';
|
|
3
|
-
import { r as randomId } from './utils-
|
|
3
|
+
import { r as randomId } from './utils-DYd3kO0P.js';
|
|
4
4
|
import './breakpoints-Q-tWjk7P.js';
|
|
5
5
|
|
|
6
6
|
const stylesCss = () => `.sc-z-toggle-switch-h{position:relative;display:inline-flex;font-family:var(--font-family-sans);font-weight:var(--font-rg)}label.sc-z-toggle-switch{display:flex;flex-direction:row;align-items:center;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{color:var(--color-default-text);letter-spacing:0}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{position:relative;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 4);height:18px;align-items:center;background-color:var(--gray500);border-radius:var(--space-unit);color:var(--gray500);cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){box-shadow:var(--shadow-focus-primary);outline:none}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{position:absolute;top:1px;left:1px;display:flex;width:calc(var(--space-unit) * 2);height:calc(var(--space-unit) * 2);align-items:center;justify-content:center;margin:0;background-color:var(--color-white);border-radius:7px;box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type="checkbox"].sc-z-toggle-switch{position:absolute;z-index:-1;opacity:0;pointer-events:none}`;
|
|
@@ -32,14 +32,14 @@ const ZToggleSwitch = class {
|
|
|
32
32
|
this.emitToggleClick();
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: 'd31f156ba646f113f8f2509afdaee3e79fdb33f7' }, h("input", { key: '48a3963dd555c00867816af0169ed677dc4ccc68', id: this.htmlid, type: "checkbox", checked: this.checked, disabled: this.disabled, onChange: this.handleClick.bind(this) }), h("label", { key: '3872377775f759727b62288794555cd84e60b12c', htmlFor: this.htmlid, class: {
|
|
36
36
|
[this.labelPosition]: true,
|
|
37
37
|
disabled: this.disabled,
|
|
38
|
-
} }, h("span", { key: '
|
|
38
|
+
} }, h("span", { key: 'b46cb8e359cdb11e696a116661659c9872d49a1e' }, h("slot", { key: '42fc26c0ced09c5fdda062735fe543b8cb57a658' })), h("span", { key: 'b55f0fbd2ff23f01c1ac0b845c6af5571d81c13f', class: {
|
|
39
39
|
container: true,
|
|
40
40
|
disabled: this.disabled,
|
|
41
41
|
checked: this.checked,
|
|
42
|
-
} }, h("span", { key: '
|
|
42
|
+
} }, h("span", { key: '87bc69be905d84458fec5384f756348a94e446fe', class: "circle" }, this.checked && (h("z-icon", { key: '4464b2bf8aa91a7c0c5c9e2bff26e84ff7c34be2', width: 12, height: 12, name: "checkmark" })))))));
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
ZToggleSwitch.style = stylesCss();
|
package/dist/esm/z-tool.entry.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-DPdXlnVe.js';
|
|
2
2
|
import { P as PopoverPosition, g as KeyboardCode } from './index-BKCj6NR2.js';
|
|
3
|
-
import { a as containsElement } from './utils-
|
|
3
|
+
import { a as containsElement } from './utils-DYd3kO0P.js';
|
|
4
4
|
import './breakpoints-Q-tWjk7P.js';
|
|
5
5
|
|
|
6
6
|
const stylesCss = () => `:host,*{box-sizing:border-box}.z-tool{--z-tool-size:calc(var(--space-unit) * 5.5);--z-tool-icon-size:calc(var(--space-unit) * 2.5);position:relative;display:inline-flex;width:var(--z-tool-size);height:var(--z-tool-size);align-items:center;justify-content:center;padding:0;border:none;margin:0;background-color:var(--color-surface01);border-radius:var(--border-radius);cursor:pointer}:host(:is([active],[open])) .z-tool{box-shadow:inset 0 0 0 2px var(--color-primary01)}:host([open]) .z-tool{background:var(--color-primary03)}@media (hover: hover){:host(:hover),:host(.z-tool-tooltip-open){z-index:1}:host(:not([disabled])) .z-tool:hover{background-color:var(--color-primary03)}}.z-tool:focus:focus-visible{background-color:var(--color-primary03);outline:none}z-icon{--z-icon-width:var(--z-tool-icon-size);--z-icon-height:var(--z-tool-icon-size);display:block;fill:var(--color-default-icon)}:host([disabled]) .z-tool{color:var(--color-disabled01-icon);cursor:not-allowed}:host([disabled]) z-icon{fill:var(--color-disabled01-icon)}.z-tool-tooltip{--z-tooltip-padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);--z-tooltip-shadow-filter:drop-shadow(0 4px 8px var(--shadow-color-base));position:relative;z-index:2;font-family:var(--font-family-sans);white-space:nowrap}.z-tool-submenu{z-index:3;border-radius:calc(var(--border-radius) + var(--border-size-small))}.z-tool-submenu ::slotted(z-color-picker){border:var(--border-size-small) solid var(--color-surface03);border-radius:var(--border-radius)}@media (max-width: 767px) and (hover: none){.z-tool-tooltip{display:none !important}}`;
|
|
@@ -187,10 +187,10 @@ const ZTool = class {
|
|
|
187
187
|
(_a = this.mql) === null || _a === void 0 ? void 0 : _a.removeEventListener("change", this.onMobileViewChange);
|
|
188
188
|
}
|
|
189
189
|
render() {
|
|
190
|
-
return (h(Host, { key: '
|
|
190
|
+
return (h(Host, { key: 'f5da5cd309607dc94dd12a28596b2ea02d28ba4c', class: { "z-tool-tooltip-open": this.tooltipOpen } }, h("button", { key: 'be63d078b5035ba1f08c480c8c08f365b3115191', class: "z-tool", type: "button", ref: (el) => (this.buttonRef = el), "aria-pressed": this.hasSlottedContent ? undefined : this.active ? "true" : "false", "aria-expanded": this.hasSlottedContent ? (this.open ? "true" : "false") : undefined, "aria-haspopup": this.hasSlottedContent ? "true" : undefined, "aria-label": this.htmlAriaLabel || this.tooltip || undefined, disabled: this.disabled, onClick: this.handleClick, onMouseEnter: this.handleTooltipOpen, onMouseLeave: this.handleTooltipClose, onFocus: this.handleTooltipOpen, onBlur: this.handleTooltipClose }, h("z-icon", { key: 'a08b5432871a1522374633050a835bb18001a6d6', ref: (el) => (this.iconRef = el), name: this.icon, indicatorColor: this.indicatorColor })), this.tooltip && (h("z-tooltip", { key: '9e0fa11a43662f333404543e315b097aa96ab08c', class: "z-tool-tooltip", ref: (el) => (this.tooltipRef = el), bindTo: this.iconRef, open: this.tooltipOpen && !this.open, position: this.isNested ? PopoverPosition.BOTTOM : this.tooltipPosition, dark: true, onMouseLeave: this.handleTooltipClose, onBlur: this.handleTooltipClose, onOpenChange: this.onTooltipOpenChange }, h("span", { key: 'bfc2be83824830ed05b70f423e9f044015624f49', class: "body-4" }, this.tooltip))), this.hasSlottedContent && (h("z-popover", { key: '717697756e5333f066f96c96695cd9741b006e93', class: "z-tool-submenu", open: this.open, bindTo: this.isMobile && this.mainToolbar ? this.mainToolbar : this.hostElement, center: true,
|
|
191
191
|
/* disable auto-close to prevent unwanted close behaviors on mobile,
|
|
192
192
|
when the bound element is the main toolbar */
|
|
193
|
-
closable: false, position: this.isMobile ? PopoverPosition.TOP : PopoverPosition.BOTTOM }, h("slot", { key: '
|
|
193
|
+
closable: false, position: this.isMobile ? PopoverPosition.TOP : PopoverPosition.BOTTOM }, h("slot", { key: 'd151d02e38fb7a0941012ec969b6cea647721846' })))));
|
|
194
194
|
}
|
|
195
195
|
get hostElement() { return getElement(this); }
|
|
196
196
|
static get watchers() { return {
|
|
@@ -129,7 +129,7 @@ const ZToolbar = class {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
render() {
|
|
132
|
-
return (h(Host, { key: '
|
|
132
|
+
return (h(Host, { key: '9f77e33a2a5e3566137ca23c4a41526b58b46515', role: "toolbar", "aria-label": this.htmlAriaLabel }, h("slot", { key: 'a62af35ef54781baee92f865a969a8642ce58703', onSlotchange: () => {
|
|
133
133
|
this.collectToolItems();
|
|
134
134
|
this.updateTabIndexes();
|
|
135
135
|
} })));
|
|
@@ -26,7 +26,7 @@ const ZTooltip = class {
|
|
|
26
26
|
this.open = this.popoverEl.open;
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h("z-popover", { key: '
|
|
29
|
+
return (h("z-popover", { key: '0cc1e8ea0e6896f5031309a5984c09df4b095d8b', ref: (el) => (this.popoverEl = el), bindTo: this.bindTo, open: this.open, position: this.position, closable: this.closable, center: true, showArrow: true, onOpenChange: (event) => this.openChange.emit(event.detail) }, h("slot", { key: 'a0548343b099fe7986066d821a455f1092428b38' })));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
ZTooltip.style = stylesCss();
|
package/dist/esm/z-tr.entry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-DPdXlnVe.js';
|
|
2
|
-
import { r as randomId } from './utils-
|
|
2
|
+
import { r as randomId } from './utils-DYd3kO0P.js';
|
|
3
3
|
import './z-td.entry.js';
|
|
4
4
|
import './z-th.entry.js';
|
|
5
5
|
import './index-BKCj6NR2.js';
|
|
@@ -6,13 +6,14 @@ import { ButtonVariant, ControlSize, SearchbarItem } from "../../beans";
|
|
|
6
6
|
* @cssprop --z-searchbar-tag-bg - Color of tag's background (default --color-hover-primary);
|
|
7
7
|
*/
|
|
8
8
|
export declare class ZSearchbar implements ComponentInterface {
|
|
9
|
-
|
|
9
|
+
host: HTMLZSearchbarElement;
|
|
10
|
+
/** The id of the searchbar element */
|
|
10
11
|
htmlid: string;
|
|
11
12
|
/** Prevent submit action */
|
|
12
13
|
preventSubmit?: boolean;
|
|
13
|
-
/**
|
|
14
|
+
/** The input label */
|
|
14
15
|
label?: string;
|
|
15
|
-
/**
|
|
16
|
+
/** The input aria-label */
|
|
16
17
|
htmlAriaLabel?: string;
|
|
17
18
|
/** Input search string */
|
|
18
19
|
value?: string;
|
|
@@ -22,7 +23,7 @@ export declare class ZSearchbar implements ComponentInterface {
|
|
|
22
23
|
autocomplete?: boolean;
|
|
23
24
|
/** Minimun number of characters to dispatch typing event */
|
|
24
25
|
autocompleteMinChars?: number;
|
|
25
|
-
/** Number of results shown
|
|
26
|
+
/** Number of results shown. Default: all */
|
|
26
27
|
resultsCount?: number;
|
|
27
28
|
/** Search helper text */
|
|
28
29
|
searchHelperLabel?: string;
|
|
@@ -32,55 +33,50 @@ export declare class ZSearchbar implements ComponentInterface {
|
|
|
32
33
|
sortResultsItems?: boolean;
|
|
33
34
|
/** Show submit button */
|
|
34
35
|
showSearchButton?: boolean;
|
|
35
|
-
/**
|
|
36
|
+
/** Hide the label of the submit button, showing only the icon */
|
|
36
37
|
searchButtonIconOnly?: boolean;
|
|
37
|
-
/**
|
|
38
|
+
/** Size of the `z-input` and submit `z-button` */
|
|
38
39
|
size?: ControlSize;
|
|
39
|
-
/**
|
|
40
|
+
/** Submit `z-button` variant */
|
|
40
41
|
variant?: ButtonVariant;
|
|
41
42
|
searchString: string;
|
|
42
|
-
currResultsCount: number;
|
|
43
|
+
currResultsCount: number | undefined;
|
|
43
44
|
showResults: boolean;
|
|
44
45
|
isMobile: boolean;
|
|
45
46
|
selectedItem?: SearchbarItem;
|
|
46
|
-
element: HTMLZSearchbarElement;
|
|
47
47
|
private resultsItemsList;
|
|
48
48
|
private inputRef;
|
|
49
|
-
|
|
50
|
-
private
|
|
49
|
+
/** Media query list for detecting mobile view. */
|
|
50
|
+
private mql?;
|
|
51
|
+
/** Listener for changes in the mobile view media query. */
|
|
52
|
+
private onMobileViewChange?;
|
|
51
53
|
/** Emitted on search submit, return search string */
|
|
52
54
|
searchSubmit: EventEmitter<string>;
|
|
53
|
-
private emitSearchSubmit;
|
|
54
55
|
/** Emitted on search typing, return search string */
|
|
55
56
|
searchTyping: EventEmitter<string>;
|
|
56
|
-
private emitSearchTyping;
|
|
57
57
|
/** Emitted on search result click, return item */
|
|
58
58
|
searchItemClick: EventEmitter<SearchbarItem>;
|
|
59
59
|
private emitSearchItemClick;
|
|
60
|
+
private emitSearchSubmit;
|
|
60
61
|
watchItems(): void;
|
|
61
62
|
watchResultsCount(): void;
|
|
62
63
|
watchValue(): void;
|
|
63
64
|
watchSearchString(): void;
|
|
64
|
-
watchShowResults(): void;
|
|
65
|
-
disconnectedCallback(): void;
|
|
66
|
-
componentDidLoad(): void;
|
|
67
|
-
componentWillLoad(): void;
|
|
68
65
|
private getResultsItemsList;
|
|
69
66
|
private getGroupedItems;
|
|
70
|
-
private
|
|
67
|
+
private onListItemKeyDown;
|
|
68
|
+
private onSearchHelperKeyDown;
|
|
69
|
+
private handleArrowsNavigation;
|
|
71
70
|
private handleStopTyping;
|
|
72
71
|
private handleSubmit;
|
|
73
72
|
private handleOutsideClick;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
private renderResults;
|
|
77
|
-
private renderResultsList;
|
|
78
|
-
private renderItems;
|
|
79
|
-
private handleArrowsNavigation;
|
|
80
|
-
private renderItem;
|
|
73
|
+
componentWillLoad(): void;
|
|
74
|
+
disconnectedCallback(): void;
|
|
81
75
|
private renderItemLabel;
|
|
82
|
-
private
|
|
83
|
-
|
|
84
|
-
|
|
76
|
+
private renderItem;
|
|
77
|
+
/**
|
|
78
|
+
* Renders the item grouped by category and subcategory. If `resultsCount` is set, it limits the number of rendered items.
|
|
79
|
+
*/
|
|
80
|
+
private renderItemGroups;
|
|
85
81
|
render(): HTMLZSearchbarElement;
|
|
86
82
|
}
|
|
@@ -2100,16 +2100,16 @@ export namespace Components {
|
|
|
2100
2100
|
*/
|
|
2101
2101
|
"autocompleteMinChars"?: number;
|
|
2102
2102
|
/**
|
|
2103
|
-
*
|
|
2103
|
+
* The input aria-label
|
|
2104
2104
|
*/
|
|
2105
2105
|
"htmlAriaLabel"?: string;
|
|
2106
2106
|
/**
|
|
2107
|
-
*
|
|
2107
|
+
* The id of the searchbar element
|
|
2108
2108
|
* @default `searchbar-${randomId()}`
|
|
2109
2109
|
*/
|
|
2110
2110
|
"htmlid": string;
|
|
2111
2111
|
/**
|
|
2112
|
-
*
|
|
2112
|
+
* The input label
|
|
2113
2113
|
*/
|
|
2114
2114
|
"label"?: string;
|
|
2115
2115
|
/**
|
|
@@ -2122,7 +2122,7 @@ export namespace Components {
|
|
|
2122
2122
|
*/
|
|
2123
2123
|
"preventSubmit"?: boolean;
|
|
2124
2124
|
/**
|
|
2125
|
-
* Number of results shown
|
|
2125
|
+
* Number of results shown. Default: all
|
|
2126
2126
|
*/
|
|
2127
2127
|
"resultsCount"?: number;
|
|
2128
2128
|
/**
|
|
@@ -2130,7 +2130,7 @@ export namespace Components {
|
|
|
2130
2130
|
*/
|
|
2131
2131
|
"resultsItems"?: SearchbarItem[] | string;
|
|
2132
2132
|
/**
|
|
2133
|
-
*
|
|
2133
|
+
* Hide the label of the submit button, showing only the icon
|
|
2134
2134
|
* @default false
|
|
2135
2135
|
*/
|
|
2136
2136
|
"searchButtonIconOnly"?: boolean;
|
|
@@ -2145,7 +2145,7 @@ export namespace Components {
|
|
|
2145
2145
|
*/
|
|
2146
2146
|
"showSearchButton"?: boolean;
|
|
2147
2147
|
/**
|
|
2148
|
-
*
|
|
2148
|
+
* Size of the `z-input` and submit `z-button`
|
|
2149
2149
|
* @default ControlSize.BIG
|
|
2150
2150
|
*/
|
|
2151
2151
|
"size"?: ControlSize;
|
|
@@ -2159,7 +2159,7 @@ export namespace Components {
|
|
|
2159
2159
|
*/
|
|
2160
2160
|
"value"?: string;
|
|
2161
2161
|
/**
|
|
2162
|
-
*
|
|
2162
|
+
* Submit `z-button` variant
|
|
2163
2163
|
* @default ButtonVariant.PRIMARY
|
|
2164
2164
|
*/
|
|
2165
2165
|
"variant"?: ButtonVariant;
|
|
@@ -6519,16 +6519,16 @@ declare namespace LocalJSX {
|
|
|
6519
6519
|
*/
|
|
6520
6520
|
"autocompleteMinChars"?: number;
|
|
6521
6521
|
/**
|
|
6522
|
-
*
|
|
6522
|
+
* The input aria-label
|
|
6523
6523
|
*/
|
|
6524
6524
|
"htmlAriaLabel"?: string;
|
|
6525
6525
|
/**
|
|
6526
|
-
*
|
|
6526
|
+
* The id of the searchbar element
|
|
6527
6527
|
* @default `searchbar-${randomId()}`
|
|
6528
6528
|
*/
|
|
6529
6529
|
"htmlid"?: string;
|
|
6530
6530
|
/**
|
|
6531
|
-
*
|
|
6531
|
+
* The input label
|
|
6532
6532
|
*/
|
|
6533
6533
|
"label"?: string;
|
|
6534
6534
|
/**
|
|
@@ -6553,7 +6553,7 @@ declare namespace LocalJSX {
|
|
|
6553
6553
|
*/
|
|
6554
6554
|
"preventSubmit"?: boolean;
|
|
6555
6555
|
/**
|
|
6556
|
-
* Number of results shown
|
|
6556
|
+
* Number of results shown. Default: all
|
|
6557
6557
|
*/
|
|
6558
6558
|
"resultsCount"?: number;
|
|
6559
6559
|
/**
|
|
@@ -6561,7 +6561,7 @@ declare namespace LocalJSX {
|
|
|
6561
6561
|
*/
|
|
6562
6562
|
"resultsItems"?: SearchbarItem[] | string;
|
|
6563
6563
|
/**
|
|
6564
|
-
*
|
|
6564
|
+
* Hide the label of the submit button, showing only the icon
|
|
6565
6565
|
* @default false
|
|
6566
6566
|
*/
|
|
6567
6567
|
"searchButtonIconOnly"?: boolean;
|
|
@@ -6576,7 +6576,7 @@ declare namespace LocalJSX {
|
|
|
6576
6576
|
*/
|
|
6577
6577
|
"showSearchButton"?: boolean;
|
|
6578
6578
|
/**
|
|
6579
|
-
*
|
|
6579
|
+
* Size of the `z-input` and submit `z-button`
|
|
6580
6580
|
* @default ControlSize.BIG
|
|
6581
6581
|
*/
|
|
6582
6582
|
"size"?: ControlSize;
|
|
@@ -6590,7 +6590,7 @@ declare namespace LocalJSX {
|
|
|
6590
6590
|
*/
|
|
6591
6591
|
"value"?: string;
|
|
6592
6592
|
/**
|
|
6593
|
-
*
|
|
6593
|
+
* Submit `z-button` variant
|
|
6594
6594
|
* @default ButtonVariant.PRIMARY
|
|
6595
6595
|
*/
|
|
6596
6596
|
"variant"?: ButtonVariant;
|