@zanichelli/albe-web-components 7.3.6 → 7.4.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 +61 -0
- package/dist/cjs/{breakpoints-88c4fd6c.js → breakpoints-ebe1a437.js} +3 -1
- package/dist/cjs/{index-2dfdb7e2.js → index-b7c319f2.js} +11 -0
- package/dist/cjs/index-e3299e0a.js +2 -6
- package/dist/cjs/index.cjs.js +15 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-b447f1da.js → utils-38f8555a.js} +5 -3
- package/dist/cjs/{utils-f21f9a4f.js → utils-938e5834.js} +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
- package/dist/cjs/{z-app-header_11.cjs.entry.js → z-app-header_13.cjs.entry.js} +572 -23
- 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-sort.cjs.entry.js +1 -1
- package/dist/cjs/z-card.cjs.entry.js +2 -2
- package/dist/cjs/z-carousel.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +4 -4
- package/dist/cjs/z-combobox.cjs.entry.js +3 -3
- package/dist/cjs/z-contextual-menu.cjs.entry.js +1 -1
- package/dist/cjs/z-cover-hero.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 +1 -1
- package/dist/cjs/z-file-upload.cjs.entry.js +4 -4
- package/dist/cjs/z-file.cjs.entry.js +2 -2
- package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
- package/dist/cjs/z-messages-pocket.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 +3 -3
- package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list-item.cjs.entry.js +3 -3
- 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.cjs.entry.js +1 -1
- package/dist/cjs/z-pocket_3.cjs.entry.js +3 -3
- package/dist/cjs/z-range-picker.cjs.entry.js +2 -2
- package/dist/cjs/z-section-title.cjs.entry.js +1 -1
- package/dist/cjs/z-select.cjs.entry.js +3 -3
- package/dist/cjs/z-skip-to-content.cjs.entry.js +3 -3
- package/dist/cjs/z-slideshow.cjs.entry.js +3 -3
- package/dist/cjs/z-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/z-table-header.cjs.entry.js +3 -3
- package/dist/cjs/z-table-row.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +2 -2
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +2 -2
- 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 +11 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/buttons/z-chip/index.js +1 -1
- package/dist/collection/components/file-upload/z-file-upload/index.js +1 -1
- package/dist/collection/components/navigation/tabs/z-navigation-tab/index.js +1 -1
- package/dist/collection/components/z-breadcrumb/index.js +421 -0
- package/dist/collection/components/z-breadcrumb/styles.css +139 -0
- package/dist/collection/components/z-card/index.js +1 -1
- package/dist/collection/constants/breakpoints.js +3 -2
- package/dist/collection/utils/utils.js +4 -2
- package/dist/esm/breakpoints-9b81eb1b.js +5 -0
- package/dist/esm/{index-f3202f58.js → index-7e4df1be.js} +12 -1
- package/dist/esm/index-a2ca4b97.js +2 -6
- package/dist/esm/index.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-930405dd.js → utils-af924ea4.js} +1 -1
- package/dist/esm/{utils-0cfc97ad.js → utils-b7bdd1bf.js} +6 -4
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-anchor-navigation.entry.js +1 -1
- package/dist/esm/{z-app-header_11.entry.js → z-app-header_13.entry.js} +571 -24
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +1 -1
- package/dist/esm/z-button-sort.entry.js +1 -1
- package/dist/esm/z-card.entry.js +2 -2
- package/dist/esm/z-carousel.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +4 -4
- package/dist/esm/z-combobox.entry.js +3 -3
- package/dist/esm/z-contextual-menu.entry.js +1 -1
- package/dist/esm/z-cover-hero.entry.js +1 -1
- package/dist/esm/z-date-picker.entry.js +2 -2
- package/dist/esm/z-dragdrop-area_2.entry.js +1 -1
- package/dist/esm/z-file-upload.entry.js +4 -4
- package/dist/esm/z-file.entry.js +2 -2
- package/dist/esm/z-info-reveal.entry.js +1 -1
- package/dist/esm/z-messages-pocket.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 +3 -3
- package/dist/esm/z-myz-card_4.entry.js +1 -1
- package/dist/esm/z-myz-list-item.entry.js +3 -3
- 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.entry.js +1 -1
- package/dist/esm/z-pocket_3.entry.js +3 -3
- package/dist/esm/z-range-picker.entry.js +2 -2
- package/dist/esm/z-section-title.entry.js +1 -1
- package/dist/esm/z-select.entry.js +3 -3
- package/dist/esm/z-skip-to-content.entry.js +3 -3
- package/dist/esm/z-slideshow.entry.js +3 -3
- package/dist/esm/z-table-cell.entry.js +1 -1
- package/dist/esm/z-table-header.entry.js +3 -3
- package/dist/esm/z-table-row.entry.js +1 -1
- package/dist/esm/z-table.entry.js +2 -2
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +2 -2
- 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 +15 -1
- package/dist/types/components/navigation/tabs/z-navigation-tab/index.d.ts +1 -3
- package/dist/types/components/z-breadcrumb/index.d.ts +58 -0
- package/dist/types/components.d.ts +80 -3
- package/dist/types/constants/breakpoints.d.ts +3 -2
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/p-0235869e.entry.js +1 -0
- package/dist/web-components-library/p-0397366d.js +1 -0
- package/dist/web-components-library/{p-39c52a0d.entry.js → p-0418f9fb.entry.js} +1 -1
- package/dist/web-components-library/{p-b85be817.entry.js → p-079357ba.entry.js} +1 -1
- package/dist/web-components-library/{p-c736b92c.entry.js → p-0b822ad0.entry.js} +1 -1
- package/{www/build/p-cf53ce51.entry.js → dist/web-components-library/p-0c0735e5.entry.js} +1 -1
- package/dist/web-components-library/p-10f2be79.entry.js +1 -0
- package/dist/web-components-library/p-14ab82cd.entry.js +1 -0
- package/dist/web-components-library/{p-6736e894.entry.js → p-14db3f16.entry.js} +1 -1
- package/dist/web-components-library/p-1cc1a418.js +1 -0
- package/dist/web-components-library/{p-93191e1d.entry.js → p-1e7ef8ca.entry.js} +1 -1
- package/dist/web-components-library/{p-74c27fc5.entry.js → p-227667b6.entry.js} +1 -1
- package/dist/web-components-library/{p-daf06f6f.entry.js → p-27100ea1.entry.js} +1 -1
- package/dist/web-components-library/{p-0c07b4f9.entry.js → p-2f547970.entry.js} +1 -1
- package/dist/web-components-library/{p-515b46d9.entry.js → p-4610db36.entry.js} +1 -1
- package/dist/web-components-library/{p-2c871e12.entry.js → p-485bff7b.entry.js} +1 -1
- package/dist/web-components-library/{p-a93e5cad.entry.js → p-4b9882b3.entry.js} +1 -1
- package/dist/web-components-library/p-515c2acf.entry.js +1 -0
- package/dist/web-components-library/p-685ae50d.entry.js +1 -0
- package/dist/web-components-library/{p-4c85652a.entry.js → p-6be6a2f4.entry.js} +1 -1
- package/{www/build/p-82291408.entry.js → dist/web-components-library/p-7ac431a5.entry.js} +1 -1
- package/{www/build/p-c64c5cbb.entry.js → dist/web-components-library/p-8f7680ef.entry.js} +1 -1
- package/dist/web-components-library/{p-562eb005.entry.js → p-910ca14c.entry.js} +1 -1
- package/dist/web-components-library/{p-adce9752.entry.js → p-9fee86aa.entry.js} +1 -1
- package/dist/web-components-library/{p-eb293bba.entry.js → p-a19a70a0.entry.js} +1 -1
- package/{www/build/p-9566edeb.entry.js → dist/web-components-library/p-a250409a.entry.js} +1 -1
- package/dist/web-components-library/p-a4b91a8f.entry.js +1 -0
- package/dist/web-components-library/{p-c085be1d.entry.js → p-ac5dda12.entry.js} +1 -1
- package/dist/web-components-library/{p-84116d2d.entry.js → p-af5103a0.entry.js} +1 -1
- package/dist/web-components-library/p-b497e33e.js +1 -0
- package/{www/build/p-ffc56e80.entry.js → dist/web-components-library/p-bda48953.entry.js} +1 -1
- package/dist/web-components-library/{p-7d8711d1.entry.js → p-c241bab0.entry.js} +1 -1
- package/dist/web-components-library/{p-8d4b2131.entry.js → p-c47d529f.entry.js} +1 -1
- package/dist/web-components-library/{p-1505703f.entry.js → p-c8b36560.entry.js} +1 -1
- package/dist/web-components-library/p-c8bdfb84.entry.js +1 -0
- package/dist/web-components-library/{p-33251591.entry.js → p-cd456854.entry.js} +1 -1
- package/dist/web-components-library/{p-66c4eda8.entry.js → p-cfc9cf52.entry.js} +1 -1
- package/dist/web-components-library/{p-5d651052.entry.js → p-d011d1b5.entry.js} +1 -1
- package/{www/build/p-8539c6f2.entry.js → dist/web-components-library/p-d966a1b9.entry.js} +1 -1
- package/dist/web-components-library/{p-9c3f4437.entry.js → p-d98d3cf1.entry.js} +1 -1
- package/dist/web-components-library/{p-3bd60dc8.entry.js → p-e606b019.entry.js} +1 -1
- package/dist/web-components-library/{p-32c36f6c.entry.js → p-ec5242da.entry.js} +1 -1
- package/dist/web-components-library/{p-e9bf5f75.js → p-ee918c17.js} +1 -1
- package/dist/web-components-library/{p-a4e68d80.entry.js → p-f5a247b9.entry.js} +1 -1
- package/{www/build/p-642d6be4.entry.js → dist/web-components-library/p-fd8eae32.entry.js} +1 -1
- package/dist/web-components-library/{p-c75451cc.entry.js → p-ff838f90.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 +3 -2
- package/react/components.js.map +1 -1
- package/www/build/index.esm.js +1 -1
- package/www/build/p-0235869e.entry.js +1 -0
- package/www/build/p-0397366d.js +1 -0
- package/www/build/{p-39c52a0d.entry.js → p-0418f9fb.entry.js} +1 -1
- package/www/build/{p-b85be817.entry.js → p-079357ba.entry.js} +1 -1
- package/www/build/{p-c736b92c.entry.js → p-0b822ad0.entry.js} +1 -1
- package/{dist/web-components-library/p-cf53ce51.entry.js → www/build/p-0c0735e5.entry.js} +1 -1
- package/www/build/p-10f2be79.entry.js +1 -0
- package/www/build/p-14ab82cd.entry.js +1 -0
- package/www/build/{p-6736e894.entry.js → p-14db3f16.entry.js} +1 -1
- package/www/build/p-1cc1a418.js +1 -0
- package/www/build/{p-93191e1d.entry.js → p-1e7ef8ca.entry.js} +1 -1
- package/www/build/{p-74c27fc5.entry.js → p-227667b6.entry.js} +1 -1
- package/www/build/{p-daf06f6f.entry.js → p-27100ea1.entry.js} +1 -1
- package/www/build/{p-0c07b4f9.entry.js → p-2f547970.entry.js} +1 -1
- package/www/build/{p-515b46d9.entry.js → p-4610db36.entry.js} +1 -1
- package/www/build/{p-2c871e12.entry.js → p-485bff7b.entry.js} +1 -1
- package/www/build/{p-a93e5cad.entry.js → p-4b9882b3.entry.js} +1 -1
- package/www/build/p-515c2acf.entry.js +1 -0
- package/www/build/p-685ae50d.entry.js +1 -0
- package/www/build/{p-4c85652a.entry.js → p-6be6a2f4.entry.js} +1 -1
- package/{dist/web-components-library/p-82291408.entry.js → www/build/p-7ac431a5.entry.js} +1 -1
- package/{dist/web-components-library/p-c64c5cbb.entry.js → www/build/p-8f7680ef.entry.js} +1 -1
- package/www/build/{p-562eb005.entry.js → p-910ca14c.entry.js} +1 -1
- package/www/build/{p-adce9752.entry.js → p-9fee86aa.entry.js} +1 -1
- package/www/build/{p-eb293bba.entry.js → p-a19a70a0.entry.js} +1 -1
- package/{dist/web-components-library/p-9566edeb.entry.js → www/build/p-a250409a.entry.js} +1 -1
- package/www/build/p-a4b91a8f.entry.js +1 -0
- package/www/build/{p-c085be1d.entry.js → p-ac5dda12.entry.js} +1 -1
- package/www/build/{p-84116d2d.entry.js → p-af5103a0.entry.js} +1 -1
- package/www/build/p-b497e33e.js +1 -0
- package/{dist/web-components-library/p-ffc56e80.entry.js → www/build/p-bda48953.entry.js} +1 -1
- package/www/build/{p-7d8711d1.entry.js → p-c241bab0.entry.js} +1 -1
- package/www/build/{p-8d4b2131.entry.js → p-c47d529f.entry.js} +1 -1
- package/www/build/{p-1505703f.entry.js → p-c8b36560.entry.js} +1 -1
- package/www/build/p-c8bdfb84.entry.js +1 -0
- package/www/build/{p-33251591.entry.js → p-cd456854.entry.js} +1 -1
- package/www/build/{p-66c4eda8.entry.js → p-cfc9cf52.entry.js} +1 -1
- package/www/build/{p-5d651052.entry.js → p-d011d1b5.entry.js} +1 -1
- package/{dist/web-components-library/p-8539c6f2.entry.js → www/build/p-d966a1b9.entry.js} +1 -1
- package/www/build/{p-9c3f4437.entry.js → p-d98d3cf1.entry.js} +1 -1
- package/www/build/p-e35c7022.js +1 -0
- package/www/build/{p-3bd60dc8.entry.js → p-e606b019.entry.js} +1 -1
- package/www/build/{p-32c36f6c.entry.js → p-ec5242da.entry.js} +1 -1
- package/www/build/{p-e9bf5f75.js → p-ee918c17.js} +1 -1
- package/www/build/p-f39bb490.css +2 -0
- package/www/build/{p-a4e68d80.entry.js → p-f5a247b9.entry.js} +1 -1
- package/{dist/web-components-library/p-642d6be4.entry.js → www/build/p-fd8eae32.entry.js} +1 -1
- package/www/build/{p-c75451cc.entry.js → p-ff838f90.entry.js} +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +127 -1
- package/dist/cjs/z-popover.cjs.entry.js +0 -328
- package/dist/esm/breakpoints-c386984e.js +0 -4
- package/dist/esm/z-popover.entry.js +0 -324
- package/dist/web-components-library/p-01278f82.entry.js +0 -1
- package/dist/web-components-library/p-06de959d.entry.js +0 -1
- package/dist/web-components-library/p-1b4d5a24.entry.js +0 -1
- package/dist/web-components-library/p-6816cba3.entry.js +0 -1
- package/dist/web-components-library/p-6b454593.js +0 -1
- package/dist/web-components-library/p-7a276150.entry.js +0 -1
- package/dist/web-components-library/p-7c94ae08.entry.js +0 -1
- package/dist/web-components-library/p-98eac308.entry.js +0 -1
- package/dist/web-components-library/p-b1068026.js +0 -1
- package/dist/web-components-library/p-d69e14fb.js +0 -1
- package/dist/web-components-library/p-dcea357f.entry.js +0 -1
- package/www/build/p-01278f82.entry.js +0 -1
- package/www/build/p-06de959d.entry.js +0 -1
- package/www/build/p-18076d34.js +0 -129
- package/www/build/p-1b4d5a24.entry.js +0 -1
- package/www/build/p-6816cba3.entry.js +0 -1
- package/www/build/p-6b454593.js +0 -1
- package/www/build/p-7a276150.entry.js +0 -1
- package/www/build/p-7c94ae08.entry.js +0 -1
- package/www/build/p-98eac308.entry.js +0 -1
- package/www/build/p-b1068026.js +0 -1
- package/www/build/p-bc2bd463.css +0 -1617
- package/www/build/p-d69e14fb.js +0 -1
- package/www/build/p-dcea357f.entry.js +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-b7c319f2.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;box-sizing:border-box;padding-right:0;padding-left:16px;fill:var(--gray800);text-align:center;user-select:none}.z-icon-placeholder{width:24px;padding-right:0}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{border-bottom:none;background-color:var(--gray50)}z-table-row[expanded]+z-table-expanded-row{display:table-row}";
|
|
9
9
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
7
|
-
const breakpoints = require('./breakpoints-
|
|
6
|
+
const index$1 = require('./index-b7c319f2.js');
|
|
7
|
+
const breakpoints = require('./breakpoints-ebe1a437.js');
|
|
8
8
|
|
|
9
9
|
const stylesCss = "z-table{display:block;width:100%;background-color:var(--color-white);font-family:var(--dashboard-font);font-weight:var(--font-rg);overflow-x:auto}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;z-index:1;left:0;box-shadow:1px 0 4px -1px rgb(66 69 72 / 40%)}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{position:sticky;z-index:2;top:0;box-shadow:0 2px 3px -3px rgb(66 69 72 / 40%)}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;width:100%;flex-direction:row}.error-content{display:flex;padding:calc(var(--space-unit) * 3);font-family:var(--dashboard-font)}.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}}";
|
|
10
10
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-b7c319f2.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = ":host{position:fixed;z-index:10000;display:flex;flex-flow:column nowrap;margin-top:calc(var(--space-unit) * 2);margin-bottom:calc(var(--space-unit) * 2);font-family:var(--font-family-sans);font-weight:var(--font-rg)}::slotted(z-toast-notification){width:100vw}::slotted(:not(:last-child)){margin-bottom:calc(var(--space-unit) * 1)}:host([position=\"bottom-centre\"]),:host([position=\"bottom-right\"]),:host([position=\"bottom-left\"]){bottom:0;align-items:flex-end;justify-content:flex-end}:host([position=\"top-left\"]),:host([position=\"top-right\"]),:host([position=\"top-centre\"]){top:0;align-items:flex-start;justify-content:flex-start}@media only screen and (min-width: 768px){:host{margin:calc(var(--space-unit) * 3)}:host([position=\"top-centre\"]){top:0;left:50%;align-items:center;justify-content:flex-start;transform:translateX(-50%)}:host([position=\"top-left\"]){top:0;left:0;align-items:flex-start;justify-content:flex-start}:host([position=\"top-right\"]){top:0;right:0;align-items:flex-end;justify-content:flex-start}:host([position=\"bottom-centre\"]){bottom:0;left:50%;align-items:center;justify-content:flex-end;transform:translateX(-50%)}:host([position=\"bottom-right\"]){right:0;bottom:0;align-items:flex-end;justify-content:flex-end}:host([position=\"bottom-left\"]){bottom:0;left:0;align-items:flex-start;justify-content:flex-end}::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,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
7
|
-
const breakpoints = require('./breakpoints-
|
|
6
|
+
const index$1 = require('./index-b7c319f2.js');
|
|
7
|
+
const breakpoints = require('./breakpoints-ebe1a437.js');
|
|
8
8
|
const hammer = require('./hammer-4f20813e.js');
|
|
9
9
|
require('./_commonjsHelpers-537d719a.js');
|
|
10
10
|
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const utils = require('./utils-
|
|
7
|
-
const index$1 = require('./index-
|
|
8
|
-
require('./breakpoints-
|
|
6
|
+
const utils = require('./utils-38f8555a.js');
|
|
7
|
+
const index$1 = require('./index-b7c319f2.js');
|
|
8
|
+
require('./breakpoints-ebe1a437.js');
|
|
9
9
|
|
|
10
10
|
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-text01);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}";
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-e3299e0a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-b7c319f2.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--z-tooltip-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base))}:host([dark]) z-popover{--z-popover-theme--surface:var(--color-surface05);--z-popover-theme--text:var(--color-text-inverse)}z-popover{--z-popover-padding:var(--space-unit);--z-popover-theme--surface:var(--z-tooltip-theme--surface);--z-popover-theme--text:var(--z-tooltip-theme--text);--z-popover-shadow-filter:var(--z-tooltip-shadow-filter)}";
|
|
9
9
|
|
|
@@ -201,6 +201,7 @@ export var Device;
|
|
|
201
201
|
Device["MOBILE"] = "mobile";
|
|
202
202
|
Device["TABLET"] = "tablet";
|
|
203
203
|
Device["DESKTOP"] = "desktop";
|
|
204
|
+
Device["DESKTOP_WIDE"] = "desktop-wide";
|
|
204
205
|
})(Device || (Device = {}));
|
|
205
206
|
export var PocketStatus;
|
|
206
207
|
(function (PocketStatus) {
|
|
@@ -323,3 +324,13 @@ export var CarouselProgressMode;
|
|
|
323
324
|
CarouselProgressMode["DOTS"] = "dots";
|
|
324
325
|
CarouselProgressMode["NUMBERS"] = "numbers";
|
|
325
326
|
})(CarouselProgressMode || (CarouselProgressMode = {}));
|
|
327
|
+
export var BreadcrumbPathStyle;
|
|
328
|
+
(function (BreadcrumbPathStyle) {
|
|
329
|
+
BreadcrumbPathStyle["SEMIBOLD"] = "semibold";
|
|
330
|
+
BreadcrumbPathStyle["UNDERLINED"] = "underlined";
|
|
331
|
+
})(BreadcrumbPathStyle || (BreadcrumbPathStyle = {}));
|
|
332
|
+
export var BreadcrumbHomepageVariant;
|
|
333
|
+
(function (BreadcrumbHomepageVariant) {
|
|
334
|
+
BreadcrumbHomepageVariant["TEXT"] = "text";
|
|
335
|
+
BreadcrumbHomepageVariant["ICON"] = "icon";
|
|
336
|
+
})(BreadcrumbHomepageVariant || (BreadcrumbHomepageVariant = {}));
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"./components/z-anchor-navigation/index.js",
|
|
42
42
|
"./components/z-aria-alert/index.js",
|
|
43
43
|
"./components/z-avatar/index.js",
|
|
44
|
+
"./components/z-breadcrumb/index.js",
|
|
44
45
|
"./components/z-card/index.js",
|
|
45
46
|
"./components/z-carousel/index.js",
|
|
46
47
|
"./components/z-contextual-menu/index.js",
|
|
@@ -14,7 +14,7 @@ export class ZChip {
|
|
|
14
14
|
this.interactiveIconClick.emit();
|
|
15
15
|
}
|
|
16
16
|
getIconSize() {
|
|
17
|
-
return getDevice() !== Device.DESKTOP ? 22 : 14;
|
|
17
|
+
return getDevice() !== Device.DESKTOP && getDevice() !== Device.DESKTOP_WIDE ? 22 : 14;
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
20
|
if (this.interactiveIcon) {
|
|
@@ -83,7 +83,7 @@ export class ZNavigationTab {
|
|
|
83
83
|
"optional": true,
|
|
84
84
|
"docs": {
|
|
85
85
|
"tags": [],
|
|
86
|
-
"text": "
|
|
86
|
+
"text": "The aria-controls attribute refers to the id of the HTML element that has role=\"tabpanel\" and that contains the actual content of this tab.\nref: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls"
|
|
87
87
|
},
|
|
88
88
|
"attribute": "aria-controls",
|
|
89
89
|
"reflect": false
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { BreadcrumbHomepageVariant, BreadcrumbPathStyle, Device, KeyboardCode, ListDividerType, ListSize, PopoverPosition, } from "../../beans";
|
|
3
|
+
import { getDevice, handleKeyboardSubmit } from "../../utils/utils";
|
|
4
|
+
export class ZBreadcrumb {
|
|
5
|
+
constructor() {
|
|
6
|
+
/** [optional] Sets the path style */
|
|
7
|
+
this.pathStyle = BreadcrumbPathStyle.UNDERLINED;
|
|
8
|
+
/** [optional] Variant of first node */
|
|
9
|
+
this.homepageVariant = BreadcrumbHomepageVariant.ICON;
|
|
10
|
+
/** [optional] Sets max number of element to show */
|
|
11
|
+
this.maxNodesToShow = 5;
|
|
12
|
+
/** [optional] Controls the behaviour on <a> tag click/enter */
|
|
13
|
+
this.preventFollowUrl = false;
|
|
14
|
+
/** [optional] Sets max number of row for each path inside the popover. Zero equals unlimited */
|
|
15
|
+
this.overflowMenuItemRows = 0;
|
|
16
|
+
/** [optional] Sets the maximun number of chars per single node */
|
|
17
|
+
this.truncateChar = 30;
|
|
18
|
+
/** Detect whether the length of the nodes shown exceeds the container length */
|
|
19
|
+
this.hasOverflow = false;
|
|
20
|
+
this.popoverEllipsisOpen = false;
|
|
21
|
+
this.collapsedElements = [];
|
|
22
|
+
this.currentIndex = 0;
|
|
23
|
+
this.truncatePosition = null;
|
|
24
|
+
}
|
|
25
|
+
handleResize() {
|
|
26
|
+
this.viewPortWidth = getDevice();
|
|
27
|
+
if (this.viewPortWidth !== Device.MOBILE &&
|
|
28
|
+
this.wrapElement &&
|
|
29
|
+
this.wrapElement.scrollWidth > this.wrapElement.clientWidth) {
|
|
30
|
+
this.hasOverflow = true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
// eslint-disable-next-line lines-between-class-members
|
|
34
|
+
handlePropChange() {
|
|
35
|
+
this.initializeBreadcrumb(this.viewPortWidth === Device.MOBILE);
|
|
36
|
+
}
|
|
37
|
+
handleResizeUp(newValue, oldValue) {
|
|
38
|
+
if (newValue === Device.MOBILE ||
|
|
39
|
+
(oldValue === Device.MOBILE && newValue === Device.TABLET) ||
|
|
40
|
+
(oldValue === Device.MOBILE && newValue === Device.DESKTOP) ||
|
|
41
|
+
(oldValue === Device.MOBILE && newValue === Device.DESKTOP_WIDE) ||
|
|
42
|
+
(oldValue === Device.TABLET && newValue === Device.DESKTOP) ||
|
|
43
|
+
(oldValue === Device.TABLET && newValue === Device.DESKTOP_WIDE) ||
|
|
44
|
+
(oldValue === Device.DESKTOP && newValue === Device.DESKTOP_WIDE)) {
|
|
45
|
+
this.initializeBreadcrumb(this.viewPortWidth === Device.MOBILE);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
componentWillLoad() {
|
|
49
|
+
this.viewPortWidth = getDevice();
|
|
50
|
+
this.initializeBreadcrumb(this.viewPortWidth === Device.MOBILE);
|
|
51
|
+
}
|
|
52
|
+
componentWillRender() {
|
|
53
|
+
if (this.viewPortWidth !== Device.MOBILE && this.hasOverflow) {
|
|
54
|
+
this.checkEllipsisOrOverflowMenu();
|
|
55
|
+
this.hasOverflow = false;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
componentDidRender() {
|
|
59
|
+
if (this.collapsedElementsRef) {
|
|
60
|
+
this.anchorElements = Array.from(this.hostElement.shadowRoot.querySelectorAll("z-list-group a"));
|
|
61
|
+
}
|
|
62
|
+
if (this.viewPortWidth !== Device.MOBILE && this.wrapElement.scrollWidth > this.wrapElement.clientWidth) {
|
|
63
|
+
this.hasOverflow = true;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
initializeBreadcrumb(isMobile) {
|
|
67
|
+
if (isMobile) {
|
|
68
|
+
this.pathsList = this.getPathsItemsList().filter((item) => !!item.path);
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
this.pathsList = this.getPathsItemsList();
|
|
72
|
+
}
|
|
73
|
+
this.totalLenght = this.pathsList.length;
|
|
74
|
+
this.homepageNode = this.pathsList.shift();
|
|
75
|
+
this.pathListCopy = JSON.parse(JSON.stringify(this.pathsList));
|
|
76
|
+
this.collapsedElements = [];
|
|
77
|
+
if (this.totalLenght > this.maxNodesToShow) {
|
|
78
|
+
this.collapsedElements = this.pathsList.splice(0, this.pathsList.length - 2);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
checkEllipsisOrOverflowMenu() {
|
|
82
|
+
if (this.pathListCopy.length > 0) {
|
|
83
|
+
for (let i = 0; i < this.pathsList.length; i++) {
|
|
84
|
+
if (this.pathsList[i].text.length > this.truncateChar) {
|
|
85
|
+
if (this.truncatePosition !== null) {
|
|
86
|
+
if (this.truncatePosition > 0) {
|
|
87
|
+
const arrayToPush = this.pathListCopy.splice(0, this.truncatePosition);
|
|
88
|
+
arrayToPush.forEach((item) => {
|
|
89
|
+
this.collapsedElements.push(item);
|
|
90
|
+
});
|
|
91
|
+
this.pathsList.splice(0, this.truncatePosition);
|
|
92
|
+
this.truncatePosition = 0;
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
if (this.truncatePosition === 0) {
|
|
96
|
+
const arrayToPush = this.pathListCopy.splice(0, this.truncatePosition + 1);
|
|
97
|
+
this.collapsedElements.push(...arrayToPush);
|
|
98
|
+
this.pathsList.splice(0, this.truncatePosition + 1);
|
|
99
|
+
this.truncatePosition = null;
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
if (i !== this.pathsList.length - 1) {
|
|
104
|
+
const truncatedString = this.truncateWithEllipsis(this.pathsList[i].text, this.truncateChar);
|
|
105
|
+
this.currentEllipsisText = this.pathsList[i].text;
|
|
106
|
+
this.pathsList[i].text = truncatedString;
|
|
107
|
+
this.pathsList[i].hasTooltip = true;
|
|
108
|
+
this.truncatePosition = i;
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
truncateWithEllipsis(str, length) {
|
|
116
|
+
const ending = "…";
|
|
117
|
+
if (str.length > length) {
|
|
118
|
+
return str.substring(0, length - 1) + ending;
|
|
119
|
+
}
|
|
120
|
+
return str;
|
|
121
|
+
}
|
|
122
|
+
getPathsItemsList() {
|
|
123
|
+
if (!this.paths) {
|
|
124
|
+
return Array.from(this.hostElement.children).map((item) => {
|
|
125
|
+
return {
|
|
126
|
+
text: item.textContent,
|
|
127
|
+
path: item.href,
|
|
128
|
+
hasTooltip: false,
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
const ret = typeof this.paths === "string" ? JSON.parse(this.paths) : this.paths;
|
|
133
|
+
return ret.map((item) => {
|
|
134
|
+
return Object.assign(Object.assign({}, item), { hasTooltip: false });
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
renderMobileBreadcrumb() {
|
|
138
|
+
const lastPath = this.pathsList[this.pathsList.length - 1];
|
|
139
|
+
return (h("nav", { "aria-label": "Breadcrumb", class: {
|
|
140
|
+
underlined: this.pathStyle === BreadcrumbPathStyle.UNDERLINED,
|
|
141
|
+
semibold: this.pathStyle === BreadcrumbPathStyle.SEMIBOLD,
|
|
142
|
+
} }, h("ol", null, this.renderNode(lastPath, true))));
|
|
143
|
+
}
|
|
144
|
+
renderHomepageNode(item) {
|
|
145
|
+
return (h("li", null, h("a", { class: {
|
|
146
|
+
"homepage-icon": this.homepageVariant === BreadcrumbHomepageVariant.ICON,
|
|
147
|
+
"homepage-text": this.homepageVariant === BreadcrumbHomepageVariant.TEXT,
|
|
148
|
+
}, href: item.path, onClick: (e) => this.handlePreventFollowUrl(e, item) }, this.homepageVariant === BreadcrumbHomepageVariant.ICON ? (h("z-icon", { name: "home", fill: "color-link-primary", height: 16, width: 16 })) : ("Home"))));
|
|
149
|
+
}
|
|
150
|
+
renderNode(item, mobile) {
|
|
151
|
+
return (h("li", null, item.hasTooltip && (h("z-popover", { class: "full-path-tooltip", "bind-to": this.triggerEllipsis, open: this.popoverEllipsisOpen, position: PopoverPosition.BOTTOM, closable: false, showArrow: true }, h("span", { class: "tooltip-content" }, this.currentEllipsisText))), h("a", { class: {
|
|
152
|
+
"missing-path": !item.path,
|
|
153
|
+
"text-ellipsis": mobile,
|
|
154
|
+
}, ref: (val) => (this.triggerEllipsis = val), "aria-current": item.path ? undefined : "page", href: item.path, onClick: (e) => this.handlePreventFollowUrl(e, item), onMouseOver: () => {
|
|
155
|
+
if (item.hasTooltip) {
|
|
156
|
+
this.popoverEllipsisOpen = true;
|
|
157
|
+
}
|
|
158
|
+
}, onMouseLeave: () => {
|
|
159
|
+
if (item.hasTooltip) {
|
|
160
|
+
this.popoverEllipsisOpen = false;
|
|
161
|
+
}
|
|
162
|
+
}, innerHTML: mobile ? `<z-icon fill="color-link-primary" name="chevron-left"></z-icon> ${item.text}` : item.text })));
|
|
163
|
+
}
|
|
164
|
+
renderBreadcrumb() {
|
|
165
|
+
return (h("nav", { ref: (val) => (this.wrapElement = val), "aria-label": "Breadcrumb", class: {
|
|
166
|
+
underlined: this.pathStyle === BreadcrumbPathStyle.UNDERLINED,
|
|
167
|
+
semibold: this.pathStyle === BreadcrumbPathStyle.SEMIBOLD,
|
|
168
|
+
} }, h("ol", null, this.renderHomepageNode(this.homepageNode), this.collapsedElements.length ? this.renderOverflowMenu() : "", this.pathsList.map((item) => this.renderNode(item, false)))));
|
|
169
|
+
}
|
|
170
|
+
togglePopover() {
|
|
171
|
+
if (!this.collapsedElementsRef.open) {
|
|
172
|
+
this.collapsedElementsRef.open = true;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
handlePreventFollowUrl(e, item) {
|
|
176
|
+
if (this.preventFollowUrl) {
|
|
177
|
+
e.preventDefault();
|
|
178
|
+
this.clickOnNode.emit(item.path);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
handleOverflowMenuAccessibility(e) {
|
|
182
|
+
const anchorElementsLenght = this.anchorElements.length;
|
|
183
|
+
if (e.key === KeyboardCode.TAB) {
|
|
184
|
+
e.preventDefault();
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
e.stopPropagation();
|
|
188
|
+
const arrows = [KeyboardCode.ARROW_DOWN, KeyboardCode.ARROW_UP];
|
|
189
|
+
if (arrows.includes(e.key)) {
|
|
190
|
+
e.preventDefault();
|
|
191
|
+
if (e.key === KeyboardCode.ARROW_DOWN) {
|
|
192
|
+
this.currentIndex = anchorElementsLenght === this.currentIndex + 1 ? 0 : this.currentIndex + 1;
|
|
193
|
+
}
|
|
194
|
+
if (e.key === KeyboardCode.ARROW_UP) {
|
|
195
|
+
this.currentIndex = this.currentIndex <= 0 ? anchorElementsLenght - 1 : this.currentIndex - 1;
|
|
196
|
+
}
|
|
197
|
+
this.anchorElements[this.currentIndex].focus();
|
|
198
|
+
}
|
|
199
|
+
if (e.key === KeyboardCode.ESC) {
|
|
200
|
+
this.triggerButton.focus();
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
renderOverflowMenu() {
|
|
204
|
+
if (this.collapsedElements.length) {
|
|
205
|
+
return (h("li", null, h("z-popover", { class: "hidden-paths-popover", ref: (val) => (this.collapsedElementsRef = val), "bind-to": this.triggerButton, position: PopoverPosition.BOTTOM_RIGHT, closable: true, showArrow: true }, h("div", { class: "popover-content" }, h("z-list", null, h("z-list-group", { dividerType: ListDividerType.ELEMENT, size: ListSize.SMALL }, this.collapsedElements.map((item) => (h("z-list-element", { clickable: true }, h("a", { class: "text-ellipsis", href: item.path, onClick: (e) => this.handlePreventFollowUrl(e, item), onKeyDown: (e) => this.handleOverflowMenuAccessibility(e) }, item.text)))))))), h("button", { "aria-label": "Mostra pi\u00F9 breadcrumb", "aria-haspopup": "true", ref: (el) => (this.triggerButton = el), class: "dots", onClick: () => {
|
|
206
|
+
this.togglePopover();
|
|
207
|
+
}, onKeyDown: (e) => {
|
|
208
|
+
handleKeyboardSubmit(e, this.togglePopover.bind(this));
|
|
209
|
+
setTimeout(() => {
|
|
210
|
+
this.anchorElements[0].focus();
|
|
211
|
+
}, 100);
|
|
212
|
+
} }, "...")));
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
render() {
|
|
216
|
+
return (h(Host, { style: { "--line-clamp": `${this.overflowMenuItemRows}` } }, this.viewPortWidth === Device.MOBILE ? this.renderMobileBreadcrumb() : this.renderBreadcrumb()));
|
|
217
|
+
}
|
|
218
|
+
static get is() { return "z-breadcrumb"; }
|
|
219
|
+
static get encapsulation() { return "shadow"; }
|
|
220
|
+
static get originalStyleUrls() {
|
|
221
|
+
return {
|
|
222
|
+
"$": ["styles.css"]
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
static get styleUrls() {
|
|
226
|
+
return {
|
|
227
|
+
"$": ["styles.css"]
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
static get properties() {
|
|
231
|
+
return {
|
|
232
|
+
"paths": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"mutable": false,
|
|
235
|
+
"complexType": {
|
|
236
|
+
"original": "BreadcrumbPath[] | string",
|
|
237
|
+
"resolved": "BreadcrumbPath[] | string",
|
|
238
|
+
"references": {
|
|
239
|
+
"BreadcrumbPath": {
|
|
240
|
+
"location": "import",
|
|
241
|
+
"path": "../../beans"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"required": false,
|
|
246
|
+
"optional": true,
|
|
247
|
+
"docs": {
|
|
248
|
+
"tags": [],
|
|
249
|
+
"text": "[optional] Path elements, the first of which is the home path"
|
|
250
|
+
},
|
|
251
|
+
"attribute": "paths",
|
|
252
|
+
"reflect": false
|
|
253
|
+
},
|
|
254
|
+
"pathStyle": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"mutable": false,
|
|
257
|
+
"complexType": {
|
|
258
|
+
"original": "BreadcrumbPathStyle",
|
|
259
|
+
"resolved": "BreadcrumbPathStyle.SEMIBOLD | BreadcrumbPathStyle.UNDERLINED",
|
|
260
|
+
"references": {
|
|
261
|
+
"BreadcrumbPathStyle": {
|
|
262
|
+
"location": "import",
|
|
263
|
+
"path": "../../beans"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"required": false,
|
|
268
|
+
"optional": true,
|
|
269
|
+
"docs": {
|
|
270
|
+
"tags": [],
|
|
271
|
+
"text": "[optional] Sets the path style"
|
|
272
|
+
},
|
|
273
|
+
"attribute": "path-style",
|
|
274
|
+
"reflect": true,
|
|
275
|
+
"defaultValue": "BreadcrumbPathStyle.UNDERLINED"
|
|
276
|
+
},
|
|
277
|
+
"homepageVariant": {
|
|
278
|
+
"type": "string",
|
|
279
|
+
"mutable": false,
|
|
280
|
+
"complexType": {
|
|
281
|
+
"original": "BreadcrumbHomepageVariant",
|
|
282
|
+
"resolved": "BreadcrumbHomepageVariant.ICON | BreadcrumbHomepageVariant.TEXT",
|
|
283
|
+
"references": {
|
|
284
|
+
"BreadcrumbHomepageVariant": {
|
|
285
|
+
"location": "import",
|
|
286
|
+
"path": "../../beans"
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"required": false,
|
|
291
|
+
"optional": true,
|
|
292
|
+
"docs": {
|
|
293
|
+
"tags": [],
|
|
294
|
+
"text": "[optional] Variant of first node"
|
|
295
|
+
},
|
|
296
|
+
"attribute": "homepage-variant",
|
|
297
|
+
"reflect": false,
|
|
298
|
+
"defaultValue": "BreadcrumbHomepageVariant.ICON"
|
|
299
|
+
},
|
|
300
|
+
"maxNodesToShow": {
|
|
301
|
+
"type": "number",
|
|
302
|
+
"mutable": false,
|
|
303
|
+
"complexType": {
|
|
304
|
+
"original": "number",
|
|
305
|
+
"resolved": "number",
|
|
306
|
+
"references": {}
|
|
307
|
+
},
|
|
308
|
+
"required": false,
|
|
309
|
+
"optional": true,
|
|
310
|
+
"docs": {
|
|
311
|
+
"tags": [],
|
|
312
|
+
"text": "[optional] Sets max number of element to show"
|
|
313
|
+
},
|
|
314
|
+
"attribute": "max-nodes-to-show",
|
|
315
|
+
"reflect": false,
|
|
316
|
+
"defaultValue": "5"
|
|
317
|
+
},
|
|
318
|
+
"preventFollowUrl": {
|
|
319
|
+
"type": "boolean",
|
|
320
|
+
"mutable": false,
|
|
321
|
+
"complexType": {
|
|
322
|
+
"original": "boolean",
|
|
323
|
+
"resolved": "boolean",
|
|
324
|
+
"references": {}
|
|
325
|
+
},
|
|
326
|
+
"required": false,
|
|
327
|
+
"optional": true,
|
|
328
|
+
"docs": {
|
|
329
|
+
"tags": [],
|
|
330
|
+
"text": "[optional] Controls the behaviour on <a> tag click/enter"
|
|
331
|
+
},
|
|
332
|
+
"attribute": "prevent-follow-url",
|
|
333
|
+
"reflect": false,
|
|
334
|
+
"defaultValue": "false"
|
|
335
|
+
},
|
|
336
|
+
"overflowMenuItemRows": {
|
|
337
|
+
"type": "number",
|
|
338
|
+
"mutable": false,
|
|
339
|
+
"complexType": {
|
|
340
|
+
"original": "number",
|
|
341
|
+
"resolved": "number",
|
|
342
|
+
"references": {}
|
|
343
|
+
},
|
|
344
|
+
"required": false,
|
|
345
|
+
"optional": true,
|
|
346
|
+
"docs": {
|
|
347
|
+
"tags": [],
|
|
348
|
+
"text": "[optional] Sets max number of row for each path inside the popover. Zero equals unlimited"
|
|
349
|
+
},
|
|
350
|
+
"attribute": "overflow-menu-item-rows",
|
|
351
|
+
"reflect": false,
|
|
352
|
+
"defaultValue": "0"
|
|
353
|
+
},
|
|
354
|
+
"truncateChar": {
|
|
355
|
+
"type": "number",
|
|
356
|
+
"mutable": false,
|
|
357
|
+
"complexType": {
|
|
358
|
+
"original": "number",
|
|
359
|
+
"resolved": "number",
|
|
360
|
+
"references": {}
|
|
361
|
+
},
|
|
362
|
+
"required": false,
|
|
363
|
+
"optional": true,
|
|
364
|
+
"docs": {
|
|
365
|
+
"tags": [],
|
|
366
|
+
"text": "[optional] Sets the maximun number of chars per single node"
|
|
367
|
+
},
|
|
368
|
+
"attribute": "truncate-char",
|
|
369
|
+
"reflect": false,
|
|
370
|
+
"defaultValue": "30"
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
static get states() {
|
|
375
|
+
return {
|
|
376
|
+
"viewPortWidth": {},
|
|
377
|
+
"hasOverflow": {},
|
|
378
|
+
"popoverEllipsisOpen": {}
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
static get events() {
|
|
382
|
+
return [{
|
|
383
|
+
"method": "clickOnNode",
|
|
384
|
+
"name": "clickOnNode",
|
|
385
|
+
"bubbles": true,
|
|
386
|
+
"cancelable": true,
|
|
387
|
+
"composed": true,
|
|
388
|
+
"docs": {
|
|
389
|
+
"tags": [],
|
|
390
|
+
"text": "Emitted when preventFollowUrl=true to handle custom page transition"
|
|
391
|
+
},
|
|
392
|
+
"complexType": {
|
|
393
|
+
"original": "any",
|
|
394
|
+
"resolved": "any",
|
|
395
|
+
"references": {}
|
|
396
|
+
}
|
|
397
|
+
}];
|
|
398
|
+
}
|
|
399
|
+
static get elementRef() { return "hostElement"; }
|
|
400
|
+
static get watchers() {
|
|
401
|
+
return [{
|
|
402
|
+
"propName": "paths",
|
|
403
|
+
"methodName": "handlePropChange"
|
|
404
|
+
}, {
|
|
405
|
+
"propName": "maxNodesToShow",
|
|
406
|
+
"methodName": "handlePropChange"
|
|
407
|
+
}, {
|
|
408
|
+
"propName": "viewPortWidth",
|
|
409
|
+
"methodName": "handleResizeUp"
|
|
410
|
+
}];
|
|
411
|
+
}
|
|
412
|
+
static get listeners() {
|
|
413
|
+
return [{
|
|
414
|
+
"name": "resize",
|
|
415
|
+
"method": "handleResize",
|
|
416
|
+
"target": "window",
|
|
417
|
+
"capture": false,
|
|
418
|
+
"passive": true
|
|
419
|
+
}];
|
|
420
|
+
}
|
|
421
|
+
}
|