@zanichelli/albe-web-components 3.2.0 → 4.0.0
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 +1692 -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 +2 -2
- 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 +35 -1
- package/dist/collection/components/z-pagination/index.js +2 -2
- 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 +2 -2
- 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/z-date-picker/index.d.ts +4 -0
- package/dist/types/components.d.ts +209 -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/dist/web-components-library/{p-21b9a94f.entry.js → p-08fa0a33.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-bbb0e7a7.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-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/src-react/index.ts +1 -0
- 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/www/build/{p-21b9a94f.entry.js → p-08fa0a33.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-bbb0e7a7.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-b574d5f6.entry.js +1 -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-e76afdbc.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-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-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-9ebf28f8.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-fea5b98f.js +0 -1
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
6
|
const hammer = require('./hammer-4f20813e.js');
|
|
7
|
-
const utils = require('./utils-
|
|
7
|
+
const utils = require('./utils-8cc414c9.js');
|
|
8
8
|
require('./_commonjsHelpers-537d719a.js');
|
|
9
|
-
require('./index-
|
|
9
|
+
require('./index-6b6a3299.js');
|
|
10
10
|
require('./breakpoints-88c4fd6c.js');
|
|
11
11
|
|
|
12
12
|
const stylesCss = ":host>div{height:48px;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-around;align-items:center;align-content:center}:host>div>z-icon{cursor:pointer;margin:calc(var(--space-unit) * 2) 0;color:var(--color-primary01);fill:var(--color-primary01)}:host>div>z-icon.disabled{cursor:default;pointer-events:none;color:var(--color-disabled01);fill:var(--color-disabled01)}";
|
|
@@ -192,7 +192,7 @@ const ZPagination = class {
|
|
|
192
192
|
pagesChunks.map((chunk) => (index.h("div", { class: "pages-chunk" }, chunk.map((page) => this.renderPage(page))))))), this.goToPage && (index.h("form", { class: "mobile-go-to-page", onSubmit: (ev) => {
|
|
193
193
|
ev.preventDefault();
|
|
194
194
|
this.selectPage(this.goToPageValue);
|
|
195
|
-
} }, index.h("z-input", { class: "go-to-page-input", type: "number",
|
|
195
|
+
} }, index.h("z-input", { class: "go-to-page-input", type: "number", message: false, onInput: (ev) => { this.goToPageValue = ev.target.value; }, placeholder: this.currentPage.toString(), hasclearicon: false }), index.h("span", null, `/${this.totalPages}`))), this.renderForwardButton()),
|
|
196
196
|
];
|
|
197
197
|
}
|
|
198
198
|
componentDidLoad() {
|
|
@@ -213,7 +213,7 @@ const ZPagination = class {
|
|
|
213
213
|
index.h("div", { class: "pagination-bar" }, this.label && index.h("span", { class: "page-label body-1-sb" }, this.label), this.edges && (index.h("button", { class: "pagination-button", type: "button", title: "Vai alla pagina 1", disabled: this.currentPage === 1, onClick: () => this.selectPage(1) }, "Pagina 1")), this.skip < this.totalPages && this.skip > 1 && (index.h("button", { class: "pagination-button", type: "button", title: `Vai alla pagina ${this.currentPage - this.skip}`, disabled: this.currentPage <= this.skip, onClick: () => this.selectPage(this.currentPage - this.skip) }, "-", this.skip)), this.navArrows && this.renderBackButton(), index.h("div", { class: "pages-container", role: "navigation", tabIndex: -1 }, this.split ?
|
|
214
214
|
this.renderSplitPages() :
|
|
215
215
|
this.renderPages()), this.navArrows && this.renderForwardButton(), this.skip < this.totalPages && this.skip > 1 && (index.h("button", { class: "pagination-button", type: "button", title: `Vai alla pagina ${this.currentPage + this.skip}`, disabled: this.currentPage > this.totalPages - this.skip, onClick: () => this.selectPage(this.currentPage + this.skip) }, "+", this.skip)), this.edges && (index.h("button", { class: "pagination-button", type: "button", title: `Vai alla pagina ${this.totalPages}`, disabled: this.currentPage === this.totalPages, onClick: () => this.selectPage(this.totalPages) }, "Pagina ", this.totalPages))),
|
|
216
|
-
this.goToPage && (index.h("div", { class: "go-to-page" }, index.h("span", { class: "label body-5-sb" }, "Vai a pagina:"), index.h("div", { class: "inputs" }, index.h("z-input", { class: "go-to-page-input", type: "number",
|
|
216
|
+
this.goToPage && (index.h("div", { class: "go-to-page" }, index.h("span", { class: "label body-5-sb" }, "Vai a pagina:"), index.h("div", { class: "inputs" }, index.h("z-input", { class: "go-to-page-input", type: "number", message: false, placeholder: "2", hasclearicon: false, onInput: (ev) => { this.goToPageValue = ev.target.value; }, onKeyDown: (ev) => ev.key === "Enter" && this.selectPage(this.goToPageValue) }), index.h("z-button", { disabled: !this.goToPageValue, title: "Vai alla pagina inserita", onClick: () => this.selectPage(this.goToPageValue) }, "vai")))),
|
|
217
217
|
];
|
|
218
218
|
}
|
|
219
219
|
get host() { return index.getElement(this); }
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
7
|
-
const utils = require('./utils-
|
|
6
|
+
const index$1 = require('./index-6b6a3299.js');
|
|
7
|
+
const utils = require('./utils-8cc414c9.js');
|
|
8
8
|
const hammer = require('./hammer-4f20813e.js');
|
|
9
9
|
require('./breakpoints-88c4fd6c.js');
|
|
10
10
|
require('./_commonjsHelpers-537d719a.js');
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
6
|
const index$2 = require('./index-1fda0714.js');
|
|
7
|
-
const index$1 = require('./index-
|
|
8
|
-
const utils = require('./utils-
|
|
7
|
+
const index$1 = require('./index-6b6a3299.js');
|
|
8
|
+
const utils = require('./utils-8cc414c9.js');
|
|
9
9
|
require('./_commonjsHelpers-537d719a.js');
|
|
10
10
|
require('./breakpoints-88c4fd6c.js');
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-6b6a3299.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = ":host{--z-section-title--divider-color:var(--red500);display:flex;flex-direction:column;align-items:flex-start;width:fit-content;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host,:host ::slotted(*){box-sizing:border-box}::slotted(*){margin:0}::slotted([slot=\"secondary-title\"]){padding-bottom:calc(var(--space-unit) / 2);border-bottom:var(--border-size-large) solid var(--z-section-title--divider-color);text-transform:uppercase;font-size:var(--font-size-3);line-height:1.5rem}::slotted([slot=\"primary-title\"]){font-size:var(--font-size-6);line-height:2rem}:host([uppercase]) ::slotted([slot=\"primary-title\"]){text-transform:uppercase}@media (min-width: 1152px){::slotted([slot=\"primary-title\"]){font-size:var(--font-size-7);line-height:2.25rem}}";
|
|
9
9
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const utils = require('./utils-
|
|
7
|
-
const index$1 = require('./index-
|
|
6
|
+
const utils = require('./utils-8cc414c9.js');
|
|
7
|
+
const index$1 = require('./index-6b6a3299.js');
|
|
8
8
|
require('./breakpoints-88c4fd6c.js');
|
|
9
9
|
|
|
10
10
|
const stylesCss = ".sc-z-skip-to-content-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);position:absolute;left:-100%;background-color:#24f4ff;padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 3);height:60px;box-sizing:border-box}.skip-to-content-visible.sc-z-skip-to-content-h,.sc-z-skip-to-content-h:focus{position:static;display:block}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{display:block;text-align:center}.sc-z-skip-to-content-h>z-link.link-invisible.sc-z-skip-to-content{height:0;width:0;overflow:hidden}.sc-z-skip-to-content-h>z-link.link-visible.sc-z-skip-to-content{height:initial;width:initial}.dark.sc-z-skip-to-content-h{background-color:var(--bg-grey-800);color:var(--color-white)}.light.sc-z-skip-to-content-h{background-color:var(--bg-white);color:var(--text-grey-800);border:2px solid var(--text-grey-800)}@media (min-width: 768px){.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{text-align:left}}@media (min-width: 1152px){.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{display:inline-block;padding:0 calc(var(--space-unit) * 3);border-right:1px solid var(--bg-grey-800)}.sc-z-skip-to-content-h>z-link.link-invisible.sc-z-skip-to-content{height:initial;width:initial;overflow:initial}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:first-child{padding-left:0}.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child,.dark.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child,.light.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content:last-child{border-right:none;padding-right:0}.dark.sc-z-skip-to-content-h>z-link.sc-z-skip-to-content{border-right:1px solid var(--bg-white)}}";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
7
|
-
const utils = require('./utils-
|
|
6
|
+
const index$1 = require('./index-6b6a3299.js');
|
|
7
|
+
const utils = require('./utils-8cc414c9.js');
|
|
8
8
|
require('./breakpoints-88c4fd6c.js');
|
|
9
9
|
|
|
10
10
|
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:block;width:inherit}:host>div{display:flex;flex-direction:column;width:inherit}main{position:relative;overflow:hidden;width:100%}main z-icon.scroll{position:absolute;top:50%;width:auto;cursor:pointer;transition:0.6s ease;margin:0 var(--space-unit);fill:var(--color-primary01);z-index:10}main .scroll.disabled{opacity:50%;pointer-events:none}main .scroll.right{right:0}#slides{display:flex;flex-wrap:wrap;transition:all 300ms;line-height:0px;overflow-y:hidden}footer{height:56px;width:100%;align-items:center;display:grid;grid-template-columns:2;grid-template-rows:2;grid-template-areas:\"center center\" \"left right\";border-top:var(--border-base) solid var(--color-surface02)}footer>div{align-items:center;width:100%}footer .footerCenter{grid-area:center}footer .footerLeft{grid-area:left}footer .footerRight{grid-area:right}footer .bulletContainer{display:flex;margin:0 auto;justify-content:center;align-items:center;min-height:60px}footer .bulletContainer .bullet{width:8px;height:8px;border-radius:50%;background-color:var(--bg-neutral-150);margin:var(--space-unit) 2px;pointer-events:none}footer .bulletContainer .bullet.selected{background-color:var(--bg-neutral-400)}@media only screen and (min-width: 768px){footer{grid-template-columns:1fr 2fr 1fr;grid-template-rows:1;grid-template-areas:\"left center right\";height:76px;border-top:var(--border-base) solid var(--color-surface02)}footer .bulletContainer .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 .bulletContainer .bullet{width:16px;height:16px;margin:var(--space-unit) calc(var(--space-unit) * 0.5);pointer-events:auto;cursor:pointer}}";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-6b6a3299.js');
|
|
7
7
|
const index$2 = require('./index-1fda0714.js');
|
|
8
8
|
require('./_commonjsHelpers-537d719a.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-6b6a3299.js');
|
|
7
7
|
const index$2 = require('./index-1fda0714.js');
|
|
8
8
|
require('./_commonjsHelpers-537d719a.js');
|
|
9
9
|
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
6
|
const index$2 = require('./index-1fda0714.js');
|
|
7
|
-
const index$1 = require('./index-
|
|
8
|
-
const utils = require('./utils-
|
|
7
|
+
const index$1 = require('./index-6b6a3299.js');
|
|
8
|
+
const utils = require('./utils-8cc414c9.js');
|
|
9
9
|
require('./_commonjsHelpers-537d719a.js');
|
|
10
10
|
require('./breakpoints-88c4fd6c.js');
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-6b6a3299.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = "z-table-row{display:table-row;font-family:var(--font-family-sans)}z-table-row[expanded-type=\"expandable\"]:hover{cursor:pointer}z-table-row[expanded-type=\"expandable\"]>z-table-cell:first-child,z-table-row[expanded-type=\"padding\"]>z-table-cell:first-child{--z-icon-width:16px;--z-icon-height:16px;width:24px;padding-left:16px;padding-right:0px;box-sizing:border-box;text-align:center;fill:var(--gray800);user-select:none}.z-icon-placeholder{width:24px;padding-right:0px}z-table-row[expanded-type=\"expandable\"]>z-table-cell:nth-child(2),z-table-row[expanded-type=\"padding\"]>z-table-cell:nth-child(2){padding-left:8px}z-table-row[expanded-type]:hover>z-table-cell:first-child{fill:var(--myz-blue-dark)}z-table-row[expanded]>z-table-cell{background-color:var(--gray50)}z-table-row[expanded]+z-table-expanded-row{display:table-row}z-table-row[expanded]>z-table-cell{border-bottom:none}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-6b6a3299.js');
|
|
7
7
|
const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
8
8
|
|
|
9
9
|
const stylesCss = "z-table{overflow-x:auto;display:block;width:100%;font-family:var(--dashboard-font);font-weight:var(--font-rg);background-color:var(--color-white)}z-table>div.table{display:table;width:100%;border-collapse:separate}z-table>div.table-bordered>z-table-body>z-table-row>z-table-cell:not(:last-child),z-table>div.table-bordered>z-table-head>z-table-header-row>z-table-header:not(:last-child){border-right:var(--border-size-small) solid var(--bg-grey-200)}z-table>div>z-table-body>z-table-row[expandable]>z-table-cell:first-child,z-table>div>z-table-head>z-table-header-row[expandable]>z-table-header:first-child{border-right:none}z-table>div>z-table-body>z-table-row[expanded]>z-table-cell{background-color:var(--gray50)}z-table>div>z-table-body>z-table-row[expanded]+z-table-expanded-row{border-bottom:1px solid var(--gray200)}z-table>div.table-column-sticky>z-table-body>z-table-row>z-table-cell:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{position:sticky;left:0;box-shadow:1px 0 4px -1px rgba(66, 69, 72, 0.4);z-index:1}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{position:sticky;top:0;box-shadow:0 2px 3px -3px rgba(66, 69, 72, 0.4)}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{z-index:2}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{z-index:5}z-table-body{width:auto;background-color:var(--color-white)}z-table-empty-box{display:flex;flex-direction:column;flex-grow:1;border-bottom:var(--border-size-small) solid var(--bg-grey-200)}z-table-empty-box.bordered{border-left:var(--border-size-small) solid var(--bg-grey-200)}.error-message{margin-top:calc(var(--space-unit) * 2)}.table-content{display:flex;flex-direction:row;width:100%}.error-content{font-family:var(--dashboard-font);padding:calc(var(--space-unit) * 3);display:flex}.error-content>img{width:244px;height:188px;margin-right:calc(var(--space-unit) * 3)}@media only screen and (max-width: 768px){z-table>div.table-empty{display:none}.error-content{display:flex;flex-direction:column}.error-content>img{width:auto;height:auto}.text{padding:calc(var(--space-unit) * 3) 0}}";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-6b6a3299.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);position:fixed;display:flex;flex-direction:column;flex-wrap:nowrap;z-index:10000;margin-bottom:calc(var(--space-unit) * 2);margin-top:calc(var(--space-unit) * 2)}::slotted(z-toast-notification){width:100vw}::slotted(:not(:last-child)){margin-bottom:calc(var(--space-unit) * 1)}:host(.bottom-centre),:host(.bottom-right),:host(.bottom-left){justify-content:flex-end;align-items:flex-end;bottom:0}:host(.top-left),:host(.top-right),:host(.top-centre){justify-content:flex-start;align-items:flex-start;top:0}@media only screen and (min-width: 768px){:host{margin:calc(var(--space-unit) * 3)}:host(.top-centre){justify-content:flex-start;align-items:center;top:0;left:50%;transform:translateX(-50%)}:host(.top-left){justify-content:flex-start;align-items:flex-start;top:0;left:0}:host(.top-right){justify-content:flex-start;align-items:flex-end;top:0;right:0}:host(.bottom-centre){justify-content:flex-end;align-items:center;bottom:0;left:50%;transform:translateX(-50%)}:host(.bottom-right){justify-content:flex-end;align-items:flex-end;bottom:0;right:0}:host(.bottom-left){justify-content:flex-end;align-items:flex-start;bottom:0;left:0}::slotted(z-toast-notification){width:50vw}}@media only screen and (min-width: 1366px){:host{margin:calc(var(--space-unit) * 4)}::slotted(z-toast-notification){width:33vw}}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-6b6a3299.js');
|
|
7
7
|
const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
8
8
|
const hammer = require('./hammer-4f20813e.js');
|
|
9
9
|
require('./_commonjsHelpers-537d719a.js');
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const utils = require('./utils-
|
|
7
|
-
const index$1 = require('./index-
|
|
6
|
+
const utils = require('./utils-8cc414c9.js');
|
|
7
|
+
const index$1 = require('./index-6b6a3299.js');
|
|
8
8
|
require('./breakpoints-88c4fd6c.js');
|
|
9
9
|
|
|
10
10
|
const stylesCss = ".sc-z-toggle-switch-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:inline-flex;position:relative}label.sc-z-toggle-switch{display:flex;align-items:center;flex-direction:row;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{letter-spacing:0;color:var(--color-text01)}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{display:flex;align-items:center}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{top:1px;left:1px;height:18px;width:calc(var(--space-unit) * 4);border-radius:var(--space-unit);color:var(--gray500);background-color:var(--gray500);position:relative;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){outline:none;box-shadow:var(--shadow-focus-primary)}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{top:1px;left:1px;position:absolute;display:flex;align-items:center;justify-content:center;margin:0;height:calc(var(--space-unit) * 2);width:calc(var(--space-unit) * 2);border-radius:7px;background-color:var(--color-white);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;opacity:0;z-index:-1;pointer-events:none}";
|
|
@@ -14,7 +14,7 @@ const ZToggleSwitch = class {
|
|
|
14
14
|
index.registerInstance(this, hostRef);
|
|
15
15
|
this.toggleClick = index.createEvent(this, "toggleClick", 7);
|
|
16
16
|
this.disabled = false;
|
|
17
|
-
this.labelPosition = index$1.
|
|
17
|
+
this.labelPosition = index$1.LabelPositions.left;
|
|
18
18
|
this.checked = false;
|
|
19
19
|
this.htmlid = `toggle-switch-id-${utils.randomId()}`;
|
|
20
20
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-6b6a3299.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--arrow-size:6px;--edge-offset:calc(-1 * (var(--arrow-size) + calc(var(--space-unit) * 2)));position:relative;display:none;align-items:center;justify-content:center;padding:var(--space-unit);min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);color:var(--z-tooltip-theme--text);fill:currentColor;font-family:var(--font-family-sans);text-align:center;border-radius:var(--border-radius-small);background:var(--z-tooltip-theme--surface);filter:drop-shadow(0 4px 8px var(--shadow-color-base));will-change:filter}:host(.legacy){display:inline-flex;padding:calc(var(--space-unit) * 2);min-width:auto;min-height:auto;max-width:200px;font-style:italic;line-height:16px;letter-spacing:0.32px;font-size:12px;border:var(--border-size-small) solid var(--gray200);border-radius:var(--border-radius);filter:drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.08))}:host(.legacy)::before{--arrow-size:14px}:host([position])::before{--arrow-edge-offset:calc(100% - var(--arrow-size) - var(--space-unit));--arrow-center-x-offset:calc(50% - calc(var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - calc(var(--arrow-size) / 2));content:'';position:absolute;width:var(--arrow-size);height:var(--arrow-size);background:inherit;transform:rotate(45deg)}:host([open][style*='top:']),:host([open][style*='inset:']){display:inline-flex}:host([position^='top']){margin-bottom:var(--space-unit)}:host([position='right']){margin-left:var(--space-unit)}:host([position='top_right']),:host([position='bottom_right']){margin-left:var(--edge-offset)}:host([position^='bottom']){margin-top:var(--space-unit)}:host([position='left']){margin-right:var(--space-unit)}:host([position='top_left']),:host([position='bottom_left']){margin-right:var(--edge-offset)}:host([position^='top'])::before{top:var(--arrow-center-y-offset)}:host([position^='bottom'])::before{bottom:var(--arrow-center-y-offset)}:host([position='top'])::before,:host([position='bottom'])::before{left:var(--arrow-center-x-offset)}:host([position='right'])::before,:host([position='left'])::before{top:var(--arrow-center-x-offset)}:host([position='right'])::before{right:var(--arrow-center-y-offset)}:host([position='top_right'])::before,:host([position='bottom_right'])::before{right:var(--arrow-edge-offset)}:host([position='left'])::before{left:var(--arrow-center-y-offset)}:host([position='top_left'])::before,:host([position='bottom_left'])::before{left:var(--arrow-edge-offset)}::slotted(*){flex:1 auto;overflow:auto}";
|
|
9
9
|
|
|
@@ -50,14 +50,12 @@ export var InputTypeEnum;
|
|
|
50
50
|
InputTypeEnum["textarea"] = "textarea";
|
|
51
51
|
InputTypeEnum["checkbox"] = "checkbox";
|
|
52
52
|
InputTypeEnum["radio"] = "radio";
|
|
53
|
-
InputTypeEnum["select"] = "select";
|
|
54
53
|
})(InputTypeEnum || (InputTypeEnum = {}));
|
|
55
54
|
export var InputStatusEnum;
|
|
56
55
|
(function (InputStatusEnum) {
|
|
57
56
|
InputStatusEnum["success"] = "success";
|
|
58
57
|
InputStatusEnum["error"] = "error";
|
|
59
58
|
InputStatusEnum["warning"] = "warning";
|
|
60
|
-
InputStatusEnum["selecting"] = "selecting";
|
|
61
59
|
})(InputStatusEnum || (InputStatusEnum = {}));
|
|
62
60
|
export var TooltipPosition;
|
|
63
61
|
(function (TooltipPosition) {
|
|
@@ -71,28 +69,28 @@ export var TooltipPosition;
|
|
|
71
69
|
TooltipPosition["BOTTOM_RIGHT"] = "bottom_right";
|
|
72
70
|
TooltipPosition["BOTTOM_LEFT"] = "bottom_left";
|
|
73
71
|
})(TooltipPosition || (TooltipPosition = {}));
|
|
74
|
-
export var
|
|
75
|
-
(function (
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
})(
|
|
85
|
-
export var
|
|
86
|
-
(function (
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
})(
|
|
72
|
+
export var KeyboardKeyCodeEnum;
|
|
73
|
+
(function (KeyboardKeyCodeEnum) {
|
|
74
|
+
KeyboardKeyCodeEnum[KeyboardKeyCodeEnum["TAB"] = 9] = "TAB";
|
|
75
|
+
KeyboardKeyCodeEnum[KeyboardKeyCodeEnum["SPACE"] = 32] = "SPACE";
|
|
76
|
+
KeyboardKeyCodeEnum[KeyboardKeyCodeEnum["ESC"] = 27] = "ESC";
|
|
77
|
+
KeyboardKeyCodeEnum[KeyboardKeyCodeEnum["ENTER"] = 13] = "ENTER";
|
|
78
|
+
KeyboardKeyCodeEnum[KeyboardKeyCodeEnum["ARROW_UP"] = 38] = "ARROW_UP";
|
|
79
|
+
KeyboardKeyCodeEnum[KeyboardKeyCodeEnum["ARROW_DOWN"] = 40] = "ARROW_DOWN";
|
|
80
|
+
KeyboardKeyCodeEnum[KeyboardKeyCodeEnum["BACKSPACE"] = 8] = "BACKSPACE";
|
|
81
|
+
KeyboardKeyCodeEnum[KeyboardKeyCodeEnum["DELETE"] = 46] = "DELETE";
|
|
82
|
+
})(KeyboardKeyCodeEnum || (KeyboardKeyCodeEnum = {}));
|
|
83
|
+
export var KeyboardCodeEnum;
|
|
84
|
+
(function (KeyboardCodeEnum) {
|
|
85
|
+
KeyboardCodeEnum["TAB"] = "Tab";
|
|
86
|
+
KeyboardCodeEnum["SPACE"] = "Space";
|
|
87
|
+
KeyboardCodeEnum["ESC"] = "Escape";
|
|
88
|
+
KeyboardCodeEnum["ENTER"] = "Enter";
|
|
89
|
+
KeyboardCodeEnum["ARROW_UP"] = "ArrowUp";
|
|
90
|
+
KeyboardCodeEnum["ARROW_DOWN"] = "ArrowDown";
|
|
91
|
+
KeyboardCodeEnum["BACKSPACE"] = "Backspace";
|
|
92
|
+
KeyboardCodeEnum["DELETE"] = "Delete";
|
|
93
|
+
})(KeyboardCodeEnum || (KeyboardCodeEnum = {}));
|
|
96
94
|
export var KeyboardKeys;
|
|
97
95
|
(function (KeyboardKeys) {
|
|
98
96
|
KeyboardKeys["ARROW_DOWN"] = "ArrowDown";
|
|
@@ -187,11 +185,11 @@ export var ExpandableListButtonAlign;
|
|
|
187
185
|
ExpandableListButtonAlign["right"] = "right";
|
|
188
186
|
ExpandableListButtonAlign["left"] = "left";
|
|
189
187
|
})(ExpandableListButtonAlign || (ExpandableListButtonAlign = {}));
|
|
190
|
-
export var
|
|
191
|
-
(function (
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
})(
|
|
188
|
+
export var LabelPositions;
|
|
189
|
+
(function (LabelPositions) {
|
|
190
|
+
LabelPositions["right"] = "right";
|
|
191
|
+
LabelPositions["left"] = "left";
|
|
192
|
+
})(LabelPositions || (LabelPositions = {}));
|
|
195
193
|
export var ListDividerType;
|
|
196
194
|
(function (ListDividerType) {
|
|
197
195
|
ListDividerType["none"] = "none";
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"./components/indicators/z-stepper-item/index.js",
|
|
20
20
|
"./components/inputs/z-input/index.js",
|
|
21
21
|
"./components/inputs/z-combobox/index.js",
|
|
22
|
-
"./components/inputs/z-input-label/index.js",
|
|
23
22
|
"./components/inputs/z-input-message/index.js",
|
|
24
23
|
"./components/inputs/z-select/index.js",
|
|
25
24
|
"./components/list/z-list/index.js",
|
|
@@ -80,6 +79,8 @@
|
|
|
80
79
|
"./deprecated/z-button-deprecated/index.js",
|
|
81
80
|
"./deprecated/z-button-filter/index.js",
|
|
82
81
|
"./deprecated/z-chip-deprecated/index.js",
|
|
82
|
+
"./deprecated/z-input-deprecated/index.js",
|
|
83
|
+
"./deprecated/z-input-label/index.js",
|
|
83
84
|
"./deprecated/z-status-tag/index.js",
|
|
84
85
|
"./snowflakes/myz/card/z-myz-card/index.js",
|
|
85
86
|
"./snowflakes/myz/card/z-myz-card-alert/index.js",
|
|
@@ -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() {
|