@zanichelli/albe-web-components 3.2.1 → 4.0.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 +28 -0
- package/dist/cjs/{index-b1289f95.js → index-6b6a3299.js} +27 -29
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-33df2456.js → utils-8cc414c9.js} +28 -2
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-switcher_12.cjs.entry.js +12 -14
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-avatar.cjs.entry.js +1 -1
- package/dist/cjs/z-button-filter.cjs.entry.js +49 -0
- package/dist/cjs/z-chip.cjs.entry.js +2 -2
- package/dist/cjs/z-combobox.cjs.entry.js +5 -5
- package/dist/cjs/z-contextual-menu.cjs.entry.js +1 -1
- package/dist/cjs/z-cookiebar.cjs.entry.js +1 -1
- package/dist/cjs/z-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +0 -1
- package/dist/cjs/z-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/z-file.cjs.entry.js +1 -2
- package/dist/cjs/z-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-input-deprecated.cjs.entry.js +271 -0
- package/dist/cjs/z-input-label_2.cjs.entry.js +272 -0
- package/dist/cjs/z-input_2.cjs.entry.js +228 -0
- package/dist/cjs/z-list-group.cjs.entry.js +54 -0
- package/dist/cjs/{z-list_3.cjs.entry.js → z-list_2.cjs.entry.js} +5 -52
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +4 -4
- package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
- package/dist/cjs/z-modal-login.cjs.entry.js +1 -1
- package/dist/cjs/z-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.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-topbar.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
- package/dist/cjs/z-otp.cjs.entry.js +1 -1
- package/dist/cjs/z-pagination-bar.cjs.entry.js +2 -2
- package/dist/cjs/z-pagination.cjs.entry.js +2 -2
- package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
- package/dist/cjs/z-popover.cjs.entry.js +2 -2
- package/dist/cjs/z-section-title.cjs.entry.js +1 -1
- package/dist/cjs/z-skip-to-content.cjs.entry.js +4 -4
- package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
- package/dist/cjs/z-status-tag.cjs.entry.js +1 -1
- package/dist/cjs/z-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/z-table-header.cjs.entry.js +2 -2
- package/dist/cjs/z-table-row.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/collection/beans/index.js +27 -29
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/buttons/z-button/index.js +12 -15
- package/dist/collection/components/buttons/z-button/styles.css +27 -31
- package/dist/collection/components/buttons/z-toggle-switch/index.js +6 -6
- package/dist/collection/components/file-upload/z-dragdrop-area/index.js +0 -1
- package/dist/collection/components/file-upload/z-file/index.js +0 -1
- package/dist/collection/components/inputs/z-combobox/index.js +4 -4
- package/dist/collection/components/inputs/z-input/index.js +58 -234
- package/dist/collection/components/inputs/z-input/styles.css +61 -34
- package/dist/collection/components/inputs/z-input-message/index.js +1 -1
- package/dist/collection/components/inputs/z-select/index.js +69 -134
- package/dist/collection/components/inputs/z-select/styles.css +16 -58
- package/dist/collection/components/modal/z-modal-login/index.js +1 -1
- package/dist/collection/components/navigation/z-menu-dropdown/index.js +4 -4
- package/dist/collection/components/z-date-picker/index.js +1 -1
- package/dist/collection/components/z-pagination/index.js +2 -2
- package/dist/collection/components/z-skip-to-content/index.js +1 -1
- package/dist/collection/components/z-skip-to-content/styles.css +1 -1
- package/dist/collection/deprecated/z-input-deprecated/index.js +824 -0
- package/dist/collection/deprecated/z-input-deprecated/styles.css +296 -0
- package/dist/collection/{components/inputs → deprecated}/z-input-label/index.js +0 -0
- package/dist/collection/{components/inputs → deprecated}/z-input-label/styles.css +0 -0
- package/dist/collection/snowflakes/myz/z-otp/index.js +1 -1
- package/dist/collection/utils/utils.js +27 -2
- package/dist/esm/{index-7424c64c.js → index-46ca649a.js} +28 -30
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-93d2b922.js → utils-5d5963ef.js} +28 -3
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-switcher_12.entry.js +12 -14
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +1 -1
- package/dist/esm/z-button-filter.entry.js +45 -0
- package/dist/esm/z-chip.entry.js +2 -2
- package/dist/esm/z-combobox.entry.js +5 -5
- package/dist/esm/z-contextual-menu.entry.js +1 -1
- package/dist/esm/z-cookiebar.entry.js +1 -1
- package/dist/esm/z-date-picker.entry.js +2 -2
- package/dist/esm/z-dragdrop-area_2.entry.js +0 -1
- package/dist/esm/z-file-upload.entry.js +2 -2
- package/dist/esm/z-file.entry.js +1 -2
- package/dist/esm/z-footer.entry.js +1 -1
- package/dist/esm/z-input-deprecated.entry.js +267 -0
- package/dist/esm/z-input-label_2.entry.js +267 -0
- package/dist/esm/z-input_2.entry.js +223 -0
- package/dist/esm/z-list-group.entry.js +50 -0
- package/dist/esm/z-list_2.entry.js +174 -0
- package/dist/esm/z-menu-dropdown_2.entry.js +4 -4
- package/dist/esm/z-messages-pocket.entry.js +1 -1
- package/dist/esm/z-modal-login.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.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +2 -2
- package/dist/esm/z-myz-card_4.entry.js +1 -1
- package/dist/esm/z-myz-list-item.entry.js +2 -2
- package/dist/esm/z-myz-topbar.entry.js +1 -1
- package/dist/esm/z-navigation-tab-link.entry.js +1 -1
- package/dist/esm/z-navigation-tab.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +1 -1
- package/dist/esm/z-otp.entry.js +1 -1
- package/dist/esm/z-pagination-bar.entry.js +2 -2
- package/dist/esm/z-pagination.entry.js +2 -2
- package/dist/esm/z-pocket_3.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +2 -2
- package/dist/esm/z-section-title.entry.js +1 -1
- package/dist/esm/z-skip-to-content.entry.js +4 -4
- package/dist/esm/z-slideshow.entry.js +2 -2
- package/dist/esm/z-status-tag.entry.js +1 -1
- package/dist/esm/z-table-cell.entry.js +1 -1
- package/dist/esm/z-table-header.entry.js +2 -2
- package/dist/esm/z-table-row.entry.js +1 -1
- package/dist/esm/z-table.entry.js +1 -1
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +1 -1
- package/dist/esm/z-toggle-switch.entry.js +3 -3
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/types/beans/index.d.ts +6 -7
- package/dist/types/components/buttons/z-button/index.d.ts +6 -4
- package/dist/types/components/buttons/z-toggle-switch/index.d.ts +2 -2
- package/dist/types/components/inputs/z-input/index.d.ts +16 -29
- package/dist/types/components/inputs/z-select/index.d.ts +11 -17
- package/dist/types/components.d.ts +193 -32
- package/dist/types/deprecated/z-input-deprecated/index.d.ts +102 -0
- package/dist/types/{components/inputs → deprecated}/z-input-label/index.d.ts +0 -0
- package/dist/types/utils/utils.d.ts +5 -0
- package/dist/web-components-library/index.esm.js +1 -1
- package/{www/build/p-e9b90127.entry.js → dist/web-components-library/p-02ea7e49.entry.js} +1 -1
- package/{www/build/p-e4b4b2e4.entry.js → dist/web-components-library/p-0a0aee35.entry.js} +1 -1
- package/dist/web-components-library/{p-2e510e79.entry.js → p-0d29d851.entry.js} +1 -1
- package/dist/web-components-library/{p-b0ea8c0e.entry.js → p-0ef6c549.entry.js} +1 -1
- package/dist/web-components-library/{p-4c282f06.entry.js → p-0f17db30.entry.js} +1 -1
- package/dist/web-components-library/{p-a391566a.entry.js → p-12af8652.entry.js} +1 -1
- package/dist/web-components-library/{p-3184d969.entry.js → p-1727c1c8.entry.js} +1 -1
- package/dist/web-components-library/{p-e7aadd3d.entry.js → p-20d62443.entry.js} +1 -1
- package/dist/web-components-library/{p-cd2ca92b.entry.js → p-3252be36.entry.js} +1 -1
- package/dist/web-components-library/{p-1b973c72.entry.js → p-3c111c2a.entry.js} +1 -1
- package/dist/web-components-library/{p-9721e132.entry.js → p-43329b81.entry.js} +1 -1
- package/dist/web-components-library/{p-9935973a.entry.js → p-4af112a7.entry.js} +1 -1
- package/dist/web-components-library/{p-03de95f1.entry.js → p-51cdabeb.entry.js} +1 -1
- package/dist/web-components-library/p-562e2d52.entry.js +1 -0
- package/dist/web-components-library/{p-709ab23c.entry.js → p-57d1acdc.entry.js} +1 -1
- package/dist/web-components-library/{p-0398165f.entry.js → p-5be162d5.entry.js} +1 -1
- package/{www/build/p-7e71d9b0.entry.js → dist/web-components-library/p-5eacbfc7.entry.js} +1 -1
- package/dist/web-components-library/{p-223bec2f.entry.js → p-63ccb013.entry.js} +1 -1
- package/dist/web-components-library/p-69ef6ddc.entry.js +1 -0
- package/dist/web-components-library/p-71accd8e.entry.js +1 -0
- package/dist/web-components-library/{p-56437e20.entry.js → p-7c6d4440.entry.js} +1 -1
- package/dist/web-components-library/p-99d7ab2f.entry.js +1 -0
- package/dist/web-components-library/{p-2ff952a3.entry.js → p-9aa5d36c.entry.js} +1 -1
- package/dist/web-components-library/p-9f5d707a.js +1 -0
- package/dist/web-components-library/{p-2711bc32.entry.js → p-9f9e4266.entry.js} +1 -1
- package/dist/web-components-library/{p-cce20009.entry.js → p-a851af81.entry.js} +1 -1
- package/dist/web-components-library/{p-d9d9d834.entry.js → p-a8875b97.entry.js} +2 -2
- package/dist/web-components-library/{p-adad78fc.entry.js → p-ae60bbdf.entry.js} +1 -1
- package/dist/web-components-library/p-b15efba3.entry.js +1 -0
- package/dist/web-components-library/p-b574d5f6.entry.js +1 -0
- package/dist/web-components-library/p-b9da171f.js +1 -0
- package/dist/web-components-library/{p-aae632ef.entry.js → p-ba29bc12.entry.js} +1 -1
- package/dist/web-components-library/p-bd886dd5.entry.js +1 -0
- package/dist/web-components-library/{p-542b3702.entry.js → p-bfe5693d.entry.js} +1 -1
- package/dist/web-components-library/{p-2b8975b1.entry.js → p-c9cdf4ee.entry.js} +1 -1
- package/dist/web-components-library/{p-dfc18671.entry.js → p-ccdebe3f.entry.js} +1 -1
- package/dist/web-components-library/p-cd8950d2.entry.js +1 -0
- package/dist/web-components-library/{p-c787ea21.entry.js → p-d33fea26.entry.js} +1 -1
- package/dist/web-components-library/p-d8069dab.entry.js +1 -0
- package/dist/web-components-library/{p-f3080685.entry.js → p-d97a2db9.entry.js} +1 -1
- package/dist/web-components-library/{p-1eef76bb.entry.js → p-d995d9dc.entry.js} +1 -1
- package/dist/web-components-library/{p-895f636e.entry.js → p-de25c7f0.entry.js} +1 -1
- package/dist/web-components-library/{p-66fbe5b8.entry.js → p-df4e963b.entry.js} +1 -1
- package/dist/web-components-library/p-e2102da3.entry.js +1 -0
- package/dist/web-components-library/{p-459dab30.entry.js → p-e84d6807.entry.js} +1 -1
- package/dist/web-components-library/p-edb8d2ab.entry.js +1 -0
- package/dist/web-components-library/{p-0b590426.entry.js → p-f322c5f0.entry.js} +1 -1
- package/dist/web-components-library/{p-da7760a3.entry.js → p-f7c3e9c3.entry.js} +1 -1
- package/{www/build/p-dcf4d1b6.entry.js → dist/web-components-library/p-fa925198.entry.js} +1 -1
- package/dist/web-components-library/{p-2c823f4c.entry.js → p-fe927bf4.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +1 -0
- package/react/components.js +4 -3
- package/react/components.js.map +1 -1
- package/www/build/index.esm.js +1 -1
- package/{dist/web-components-library/p-e9b90127.entry.js → www/build/p-02ea7e49.entry.js} +1 -1
- package/{dist/web-components-library/p-e4b4b2e4.entry.js → www/build/p-0a0aee35.entry.js} +1 -1
- package/www/build/{p-2e510e79.entry.js → p-0d29d851.entry.js} +1 -1
- package/www/build/{p-b0ea8c0e.entry.js → p-0ef6c549.entry.js} +1 -1
- package/www/build/{p-4c282f06.entry.js → p-0f17db30.entry.js} +1 -1
- package/www/build/{p-a391566a.entry.js → p-12af8652.entry.js} +1 -1
- package/www/build/{p-3184d969.entry.js → p-1727c1c8.entry.js} +1 -1
- package/www/build/{p-e7aadd3d.entry.js → p-20d62443.entry.js} +1 -1
- package/www/build/{p-cd2ca92b.entry.js → p-3252be36.entry.js} +1 -1
- package/www/build/{p-1b973c72.entry.js → p-3c111c2a.entry.js} +1 -1
- package/www/build/{p-9721e132.entry.js → p-43329b81.entry.js} +1 -1
- package/www/build/{p-9935973a.entry.js → p-4af112a7.entry.js} +1 -1
- package/www/build/{p-03de95f1.entry.js → p-51cdabeb.entry.js} +1 -1
- package/www/build/p-562e2d52.entry.js +1 -0
- package/www/build/{p-709ab23c.entry.js → p-57d1acdc.entry.js} +1 -1
- package/www/build/{p-0398165f.entry.js → p-5be162d5.entry.js} +1 -1
- package/{dist/web-components-library/p-7e71d9b0.entry.js → www/build/p-5eacbfc7.entry.js} +1 -1
- package/www/build/{p-223bec2f.entry.js → p-63ccb013.entry.js} +1 -1
- package/www/build/p-69ef6ddc.entry.js +1 -0
- package/www/build/p-71accd8e.entry.js +1 -0
- package/www/build/{p-56437e20.entry.js → p-7c6d4440.entry.js} +1 -1
- package/www/build/p-99d7ab2f.entry.js +1 -0
- package/www/build/{p-2ff952a3.entry.js → p-9aa5d36c.entry.js} +1 -1
- package/www/build/p-9f5d707a.js +1 -0
- package/www/build/{p-2711bc32.entry.js → p-9f9e4266.entry.js} +1 -1
- package/www/build/{p-cce20009.entry.js → p-a851af81.entry.js} +1 -1
- package/www/build/{p-d9d9d834.entry.js → p-a8875b97.entry.js} +2 -2
- package/www/build/{p-adad78fc.entry.js → p-ae60bbdf.entry.js} +1 -1
- package/www/build/p-b15efba3.entry.js +1 -0
- package/www/build/p-b574d5f6.entry.js +1 -0
- package/www/build/p-b6035e27.js +129 -0
- package/www/build/p-b9da171f.js +1 -0
- package/www/build/{p-aae632ef.entry.js → p-ba29bc12.entry.js} +1 -1
- package/www/build/p-bd886dd5.entry.js +1 -0
- package/www/build/{p-542b3702.entry.js → p-bfe5693d.entry.js} +1 -1
- package/www/build/{p-2b8975b1.entry.js → p-c9cdf4ee.entry.js} +1 -1
- package/www/build/{p-dfc18671.entry.js → p-ccdebe3f.entry.js} +1 -1
- package/www/build/p-cd8950d2.entry.js +1 -0
- package/www/build/{p-c787ea21.entry.js → p-d33fea26.entry.js} +1 -1
- package/www/build/p-d8069dab.entry.js +1 -0
- package/www/build/{p-f3080685.entry.js → p-d97a2db9.entry.js} +1 -1
- package/www/build/{p-1eef76bb.entry.js → p-d995d9dc.entry.js} +1 -1
- package/www/build/{p-895f636e.entry.js → p-de25c7f0.entry.js} +1 -1
- package/www/build/{p-66fbe5b8.entry.js → p-df4e963b.entry.js} +1 -1
- package/www/build/p-e2102da3.entry.js +1 -0
- package/www/build/{p-459dab30.entry.js → p-e84d6807.entry.js} +1 -1
- package/www/build/p-edb8d2ab.entry.js +1 -0
- package/www/build/{p-0b590426.entry.js → p-f322c5f0.entry.js} +1 -1
- package/www/build/{p-da7760a3.entry.js → p-f7c3e9c3.entry.js} +1 -1
- package/{dist/web-components-library/p-dcf4d1b6.entry.js → www/build/p-fa925198.entry.js} +1 -1
- package/www/build/{p-2c823f4c.entry.js → p-fe927bf4.entry.js} +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/cjs/z-button-filter_5.cjs.entry.js +0 -620
- package/dist/esm/z-button-filter_5.entry.js +0 -612
- package/dist/esm/z-list_3.entry.js +0 -220
- package/dist/web-components-library/p-14c9344f.entry.js +0 -1
- package/dist/web-components-library/p-21b9a94f.entry.js +0 -1
- package/dist/web-components-library/p-57270965.entry.js +0 -1
- package/dist/web-components-library/p-70be81b6.entry.js +0 -1
- package/dist/web-components-library/p-80369bb8.entry.js +0 -1
- package/dist/web-components-library/p-80a3e18a.js +0 -1
- package/dist/web-components-library/p-a785ff38.entry.js +0 -1
- package/dist/web-components-library/p-d3723aa7.entry.js +0 -1
- package/dist/web-components-library/p-fea5b98f.js +0 -1
- package/www/build/p-14c9344f.entry.js +0 -1
- package/www/build/p-21b9a94f.entry.js +0 -1
- package/www/build/p-57270965.entry.js +0 -1
- package/www/build/p-70be81b6.entry.js +0 -1
- package/www/build/p-80369bb8.entry.js +0 -1
- package/www/build/p-80a3e18a.js +0 -1
- package/www/build/p-a785ff38.entry.js +0 -1
- package/www/build/p-d3723aa7.entry.js +0 -1
- package/www/build/p-fa024b02.js +0 -129
- package/www/build/p-fea5b98f.js +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Component, Prop, h, Element } from "@stencil/core";
|
|
2
|
-
import classNames from "classnames";
|
|
3
2
|
import { ButtonVariantEnum, ButtonTypeEnum, ButtonSizeEnum, } from "../../../beans";
|
|
4
3
|
/**
|
|
5
4
|
* @slot - button label
|
|
@@ -18,24 +17,22 @@ export class ZButton {
|
|
|
18
17
|
getAttributes() {
|
|
19
18
|
return {
|
|
20
19
|
id: this.htmlid,
|
|
21
|
-
class: classNames(this.variant, this.size),
|
|
22
20
|
"aria-label": this.ariaLabel,
|
|
21
|
+
class: {
|
|
22
|
+
container: true,
|
|
23
|
+
[this.variant]: true,
|
|
24
|
+
[this.size]: true,
|
|
25
|
+
"has-text": !!this.hostElement.textContent
|
|
26
|
+
}
|
|
23
27
|
};
|
|
24
28
|
}
|
|
25
|
-
componentDidLoad() {
|
|
26
|
-
if (this.hostElement.innerText) {
|
|
27
|
-
this.hostElement.classList.add("with-text");
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
componentWillRender() {
|
|
31
|
-
this.hostElement.style.pointerEvents = this.disabled ? "none" : "auto";
|
|
32
|
-
}
|
|
33
29
|
render() {
|
|
34
|
-
if (this.href)
|
|
35
|
-
return (h("a", Object.assign({ href: this.href, target: this.target }
|
|
30
|
+
if (this.href) {
|
|
31
|
+
return (h("a", Object.assign({}, this.getAttributes(), { href: this.href, target: this.target }),
|
|
36
32
|
this.icon && h("z-icon", { name: this.icon, width: 16, height: 16 }),
|
|
37
33
|
h("slot", null)));
|
|
38
|
-
|
|
34
|
+
}
|
|
35
|
+
return (h("button", Object.assign({}, this.getAttributes(), { name: this.name, type: this.type, disabled: this.disabled }),
|
|
39
36
|
this.icon && h("z-icon", { name: this.icon, width: 16, height: 16 }),
|
|
40
37
|
h("slot", null)));
|
|
41
38
|
}
|
|
@@ -77,7 +74,7 @@ export class ZButton {
|
|
|
77
74
|
"optional": true,
|
|
78
75
|
"docs": {
|
|
79
76
|
"tags": [],
|
|
80
|
-
"text": "HTML a href attribute. If it is set, it renders an HTML a tag."
|
|
77
|
+
"text": "HTML <a> href attribute. If it is set, it renders an HTML <a> tag."
|
|
81
78
|
},
|
|
82
79
|
"attribute": "href",
|
|
83
80
|
"reflect": true
|
|
@@ -211,7 +208,7 @@ export class ZButton {
|
|
|
211
208
|
"text": "`z-icon` name to use (optional)."
|
|
212
209
|
},
|
|
213
210
|
"attribute": "icon",
|
|
214
|
-
"reflect":
|
|
211
|
+
"reflect": true
|
|
215
212
|
},
|
|
216
213
|
"size": {
|
|
217
214
|
"type": "string",
|
|
@@ -3,21 +3,20 @@
|
|
|
3
3
|
--z-icon-width: 16px;
|
|
4
4
|
--z-icon-height: 16px;
|
|
5
5
|
--z-icon-right-margin: 0;
|
|
6
|
-
--rgb-white: 240, 240, 240;
|
|
7
6
|
}
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
a:disabled {
|
|
8
|
+
:host([disabled]:not([disabled="false"])) {
|
|
11
9
|
pointer-events: none;
|
|
12
10
|
}
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
a {
|
|
12
|
+
:host .container {
|
|
16
13
|
box-sizing: border-box;
|
|
17
14
|
display: inline-flex;
|
|
18
15
|
align-items: center;
|
|
19
16
|
justify-content: center;
|
|
20
|
-
|
|
17
|
+
width: 100%;
|
|
18
|
+
padding: 0;
|
|
19
|
+
font-family: var(--font-family-sans);
|
|
21
20
|
font-weight: var(--font-sb);
|
|
22
21
|
font-size: 14px;
|
|
23
22
|
line-height: 1;
|
|
@@ -28,124 +27,121 @@ a {
|
|
|
28
27
|
text-transform: uppercase;
|
|
29
28
|
text-decoration: none;
|
|
30
29
|
cursor: pointer;
|
|
31
|
-
width: 100%;
|
|
32
30
|
white-space: nowrap;
|
|
33
31
|
outline: none;
|
|
34
32
|
fill: currentColor;
|
|
35
33
|
}
|
|
36
34
|
|
|
37
|
-
:host.
|
|
38
|
-
--z-icon-right-margin: var(--space-unit);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host.with-text button,
|
|
42
|
-
:host.with-text a {
|
|
35
|
+
:host .container.has-text {
|
|
43
36
|
min-width: calc(var(--space-unit) * 8);
|
|
44
37
|
padding: 0 calc(var(--space-unit) * 2);
|
|
45
38
|
}
|
|
46
39
|
|
|
47
|
-
.
|
|
40
|
+
:host .container.has-text z-icon {
|
|
41
|
+
--z-icon-right-margin: var(--space-unit);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host .big {
|
|
48
45
|
height: 44px;
|
|
49
46
|
min-width: 44px;
|
|
50
47
|
}
|
|
51
48
|
|
|
52
|
-
.small {
|
|
49
|
+
:host .small {
|
|
53
50
|
height: 36px;
|
|
54
51
|
min-width: 36px;
|
|
55
52
|
}
|
|
56
53
|
|
|
57
|
-
.x-small {
|
|
54
|
+
:host .x-small {
|
|
58
55
|
height: 32px;
|
|
59
56
|
min-width: 32px;
|
|
60
57
|
}
|
|
61
58
|
|
|
62
|
-
.primary {
|
|
59
|
+
:host .primary {
|
|
63
60
|
background-color: var(--color-primary01);
|
|
64
61
|
border-color: var(--color-primary01);
|
|
65
62
|
color: var(--color-text-inverse);
|
|
66
63
|
}
|
|
67
64
|
|
|
68
65
|
@media (hover: hover) {
|
|
69
|
-
.primary:hover {
|
|
66
|
+
:host .primary:hover {
|
|
70
67
|
background-color: var(--color-hover-primary);
|
|
71
68
|
border-color: var(--color-hover-primary);
|
|
72
69
|
color: var(--color-text-inverse);
|
|
73
70
|
}
|
|
74
71
|
}
|
|
75
72
|
|
|
76
|
-
|
|
77
|
-
a:focus:focus-visible {
|
|
73
|
+
:host .container:focus:focus-visible {
|
|
78
74
|
box-shadow: var(--shadow-focus-primary);
|
|
79
75
|
}
|
|
80
76
|
|
|
81
|
-
.primary:active {
|
|
77
|
+
:host .primary:active {
|
|
82
78
|
background-color: var(--color-pressed-primary);
|
|
83
79
|
border-color: var(--color-pressed-primary);
|
|
84
80
|
color: var(--color-text-inverse);
|
|
85
81
|
box-shadow: var(--shadow-2);
|
|
86
82
|
}
|
|
87
83
|
|
|
88
|
-
|
|
84
|
+
:host([disabled]:not([disabled="false"])) .primary {
|
|
89
85
|
background-color: var(--color-disabled01);
|
|
90
86
|
border-color: var(--color-disabled01);
|
|
91
87
|
color: var(--color-disabled02);
|
|
92
88
|
}
|
|
93
89
|
|
|
94
|
-
.secondary {
|
|
90
|
+
:host .secondary {
|
|
95
91
|
background-color: var(--color-surface01);
|
|
96
92
|
border-color: var(--color-primary01);
|
|
97
93
|
color: var(--color-primary01);
|
|
98
94
|
}
|
|
99
95
|
|
|
100
96
|
@media (hover: hover) {
|
|
101
|
-
.secondary:hover {
|
|
97
|
+
:host .secondary:hover {
|
|
102
98
|
background-color: var(--color-surface01);
|
|
103
99
|
border-color: var(--color-hover-primary);
|
|
104
100
|
color: var(--color-hover-primary);
|
|
105
101
|
}
|
|
106
102
|
}
|
|
107
103
|
|
|
108
|
-
.secondary:active {
|
|
104
|
+
:host .secondary:active {
|
|
109
105
|
background-color: var(--color-surface01);
|
|
110
106
|
border-color: var(--color-pressed-primary);
|
|
111
107
|
color: var(--color-pressed-primary);
|
|
112
108
|
box-shadow: var(--shadow-2);
|
|
113
109
|
}
|
|
114
110
|
|
|
115
|
-
|
|
111
|
+
:host([disabled]:not([disabled="false"])) .secondary {
|
|
116
112
|
background-color: var(--color-surface01);
|
|
117
113
|
border-color: var(--color-disabled01);
|
|
118
114
|
color: var(--color-disabled02);
|
|
119
115
|
}
|
|
120
116
|
|
|
121
|
-
.tertiary {
|
|
117
|
+
:host .tertiary {
|
|
122
118
|
background-color: transparent;
|
|
123
119
|
border-color: transparent;
|
|
124
120
|
color: var(--color-primary01);
|
|
125
121
|
}
|
|
126
122
|
|
|
127
123
|
@media (hover: hover) {
|
|
128
|
-
.tertiary:hover {
|
|
124
|
+
:host .tertiary:hover {
|
|
129
125
|
background-color: var(--color-primary03);
|
|
130
126
|
border-color: var(--color-primary03);
|
|
131
127
|
color: var(--color-hover-primary);
|
|
132
128
|
}
|
|
133
129
|
}
|
|
134
130
|
|
|
135
|
-
.tertiary:focus:focus-visible {
|
|
131
|
+
:host .tertiary:focus:focus-visible {
|
|
136
132
|
background-color: var(--color-surface01);
|
|
137
133
|
border-color: var(--color-surface01);
|
|
138
134
|
color: var(--color-primary01);
|
|
139
135
|
}
|
|
140
136
|
|
|
141
|
-
.tertiary:active {
|
|
137
|
+
:host .tertiary:active {
|
|
142
138
|
background-color: var(--color-surface01);
|
|
143
139
|
border-color: var(--color-surface01);
|
|
144
140
|
color: var(--color-primary01);
|
|
145
141
|
box-shadow: var(--shadow-2);
|
|
146
142
|
}
|
|
147
143
|
|
|
148
|
-
|
|
144
|
+
:host([disabled]:not([disabled="false"])) .tertiary {
|
|
149
145
|
background-color: transparent;
|
|
150
146
|
border-color: transparent;
|
|
151
147
|
color: var(--color-disabled02);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Component, Prop, h, Event } from "@stencil/core";
|
|
2
2
|
import { randomId } from "../../../utils/utils";
|
|
3
|
-
import {
|
|
3
|
+
import { LabelPositions } from "../../../beans";
|
|
4
4
|
export class ZToggleSwitch {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.disabled = false;
|
|
7
|
-
this.labelPosition =
|
|
7
|
+
this.labelPosition = LabelPositions.left;
|
|
8
8
|
this.checked = false;
|
|
9
9
|
this.htmlid = `toggle-switch-id-${randomId()}`;
|
|
10
10
|
}
|
|
@@ -68,10 +68,10 @@ export class ZToggleSwitch {
|
|
|
68
68
|
"type": "string",
|
|
69
69
|
"mutable": false,
|
|
70
70
|
"complexType": {
|
|
71
|
-
"original": "
|
|
72
|
-
"resolved": "
|
|
71
|
+
"original": "LabelPosition",
|
|
72
|
+
"resolved": "\"left\" | \"right\"",
|
|
73
73
|
"references": {
|
|
74
|
-
"
|
|
74
|
+
"LabelPosition": {
|
|
75
75
|
"location": "import",
|
|
76
76
|
"path": "../../../beans"
|
|
77
77
|
}
|
|
@@ -85,7 +85,7 @@ export class ZToggleSwitch {
|
|
|
85
85
|
},
|
|
86
86
|
"attribute": "label-position",
|
|
87
87
|
"reflect": true,
|
|
88
|
-
"defaultValue": "
|
|
88
|
+
"defaultValue": "LabelPositions.left"
|
|
89
89
|
},
|
|
90
90
|
"checked": {
|
|
91
91
|
"type": "boolean",
|
|
@@ -10,7 +10,6 @@ export class ZDragdropArea {
|
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
12
|
return (h("div", { tabIndex: 0, ref: (val) => (this.dragDropContainer = val), class: "dragdrop", onDragOver: (e) => {
|
|
13
|
-
console.log(e);
|
|
14
13
|
e.preventDefault();
|
|
15
14
|
this.dragDropContainer.classList.add("dragover");
|
|
16
15
|
}, onDragLeave: () => {
|
|
@@ -27,7 +27,6 @@ export class ZFile {
|
|
|
27
27
|
(_b = (_a = this.icon) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
28
28
|
}
|
|
29
29
|
elementHasEllipsis() {
|
|
30
|
-
console.log(this.ellipsis, this.ellipsis.offsetWidth, this.ellipsis.scrollWidth);
|
|
31
30
|
return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;
|
|
32
31
|
}
|
|
33
32
|
render() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, Prop, h, State, Listen, Watch, Event, } from "@stencil/core";
|
|
2
|
-
import { InputTypeEnum,
|
|
2
|
+
import { InputTypeEnum, KeyboardKeyCodeEnum, } from "../../../beans";
|
|
3
3
|
import { handleKeyboardSubmit } from "../../../utils/utils";
|
|
4
4
|
export class ZCombobox {
|
|
5
5
|
constructor() {
|
|
@@ -101,7 +101,7 @@ export class ZCombobox {
|
|
|
101
101
|
}
|
|
102
102
|
renderHeader() {
|
|
103
103
|
return (h("div", { class: "header", onClick: () => this.toggleComboBox(), onKeyDown: (ev) => {
|
|
104
|
-
if (ev.keyCode ===
|
|
104
|
+
if (ev.keyCode === KeyboardKeyCodeEnum.SPACE)
|
|
105
105
|
ev.preventDefault();
|
|
106
106
|
}, onKeyUp: (ev) => handleKeyboardSubmit(ev, this.toggleComboBox), role: "button", tabindex: 0 },
|
|
107
107
|
h("z-body", { level: 3, component: "p" },
|
|
@@ -147,7 +147,7 @@ export class ZCombobox {
|
|
|
147
147
|
renderSearchInput() {
|
|
148
148
|
if (!this.isopen)
|
|
149
149
|
return;
|
|
150
|
-
return (h("z-input", { htmlid: `${this.inputid}_search`, label: this.searchlabel, placeholder: this.searchplaceholder, htmltitle: this.searchtitle, type: this.inputType, value: this.searchValue,
|
|
150
|
+
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) => {
|
|
151
151
|
if (e.detail.keycode === 27)
|
|
152
152
|
return this.closeFilterItems();
|
|
153
153
|
this.filterItems(e.detail.value);
|
|
@@ -162,7 +162,7 @@ export class ZCombobox {
|
|
|
162
162
|
this.maxcheckableitems < this.itemsList.length })));
|
|
163
163
|
}
|
|
164
164
|
render() {
|
|
165
|
-
return (h("div", { "data-action": `combo-${this.inputid}`, class:
|
|
165
|
+
return (h("div", { "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed }, id: this.inputid },
|
|
166
166
|
this.renderHeader(),
|
|
167
167
|
this.renderContent()));
|
|
168
168
|
}
|