@zanichelli/albe-web-components 2.34.1 → 2.34.2
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 +1238 -0
- package/dist/cjs/{index-de6c491e.js → index-3735f277.js} +6 -6
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-12053886.js → utils-6a2c0eab.js} +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-switcher.cjs.entry.js +1 -1
- package/dist/cjs/z-app-topbar.cjs.entry.js +1 -1
- 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-body_2.cjs.entry.js +40 -0
- package/dist/cjs/z-button-filter_5.cjs.entry.js +2 -2
- package/dist/cjs/z-button.cjs.entry.js +39 -0
- package/dist/cjs/z-card.cjs.entry.js +1 -1
- package/dist/cjs/z-combobox.cjs.entry.js +2 -2
- 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-divider.cjs.entry.js +1 -1
- package/dist/cjs/z-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-icon.cjs.entry.js +28 -0
- package/dist/cjs/z-list_3.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +2 -2
- 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-tabs.cjs.entry.js +1 -1
- package/dist/cjs/z-notification.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-pocket_3.cjs.entry.js +2 -2
- package/dist/cjs/z-popover.cjs.entry.js +127 -0
- 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-body.cjs.entry.js +24 -0
- package/dist/cjs/z-table-cell.cjs.entry.js +36 -0
- package/dist/cjs/z-table-empty-box.cjs.entry.js +28 -0
- package/dist/cjs/{z-registro-table-expanded-row.cjs.entry.js → z-table-expanded-row.cjs.entry.js} +3 -3
- package/dist/cjs/{z-registro-table-footer.cjs.entry.js → z-table-footer.cjs.entry.js} +4 -4
- package/dist/cjs/z-table-head.cjs.entry.js +23 -0
- package/dist/cjs/z-table-header-row.cjs.entry.js +22 -0
- package/dist/cjs/z-table-header.cjs.entry.js +88 -0
- package/dist/cjs/z-table-row.cjs.entry.js +43 -0
- package/dist/cjs/z-table-sticky-footer.cjs.entry.js +19 -0
- package/dist/cjs/z-table.cjs.entry.js +82 -0
- 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-tooltip.cjs.entry.js +1 -1
- package/dist/collection/beans/index.js +6 -6
- package/dist/collection/collection-manifest.json +12 -12
- package/dist/collection/{snowflakes/registro-table/z-registro-table → components/z-table/z-table}/index.js +5 -5
- package/dist/collection/{snowflakes/registro-table/z-registro-table → components/z-table/z-table}/styles.css +54 -54
- package/dist/collection/{snowflakes/registro-table/z-registro-table-body → components/z-table/z-table-body}/index.js +2 -2
- package/dist/collection/{snowflakes/registro-table/z-registro-table-body → components/z-table/z-table-body}/styles.css +1 -1
- package/dist/collection/{snowflakes/registro-table/z-registro-table-cell → components/z-table/z-table-cell}/index.js +2 -2
- package/dist/collection/{snowflakes/registro-table/z-registro-table-cell → components/z-table/z-table-cell}/styles.css +0 -0
- package/dist/collection/{snowflakes/registro-table/z-registro-table-empty-box → components/z-table/z-table-empty-box}/index.js +2 -2
- package/dist/collection/{snowflakes/registro-table/z-registro-table-empty-box → components/z-table/z-table-empty-box}/styles.css +0 -0
- package/dist/collection/{snowflakes/registro-table/z-registro-table-expanded-row → components/z-table/z-table-expanded-row}/index.js +2 -2
- package/dist/collection/{snowflakes/registro-table/z-registro-table-expanded-row → components/z-table/z-table-expanded-row}/styles.css +0 -0
- package/dist/collection/{snowflakes/registro-table/z-registro-table-head → components/z-table/z-table-footer}/index.js +2 -2
- package/dist/collection/{snowflakes/registro-table/z-registro-table-footer → components/z-table/z-table-footer}/styles.css +0 -0
- package/dist/collection/{snowflakes/registro-table/z-registro-table-footer → components/z-table/z-table-head}/index.js +2 -2
- package/dist/collection/{snowflakes/registro-table/z-registro-table-head → components/z-table/z-table-head}/styles.css +0 -0
- package/dist/collection/{snowflakes/registro-table/z-registro-table-header → components/z-table/z-table-header}/index.js +3 -3
- package/dist/collection/{snowflakes/registro-table/z-registro-table-header → components/z-table/z-table-header}/styles.css +0 -0
- package/dist/collection/{snowflakes/registro-table/z-registro-table-header-row → components/z-table/z-table-header-row}/index.js +3 -3
- package/dist/collection/components/z-table/z-table-header-row/styles.css +13 -0
- package/dist/collection/{snowflakes/registro-table/z-registro-table-row → components/z-table/z-table-row}/index.js +13 -13
- package/dist/collection/components/z-table/z-table-row/styles.css +54 -0
- package/dist/collection/{snowflakes/registro-table/z-registro-table-sticky-footer → components/z-table/z-table-sticky-footer}/index.js +2 -2
- package/dist/collection/{snowflakes/registro-table/z-registro-table-sticky-footer → components/z-table/z-table-sticky-footer}/styles.css +0 -0
- package/dist/esm/{index-09b57d95.js → index-56ab7a69.js} +7 -7
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-f0067254.js → utils-cde16cf3.js} +2 -2
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-switcher.entry.js +1 -1
- package/dist/esm/z-app-topbar.entry.js +1 -1
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +1 -1
- package/dist/esm/z-body_2.entry.js +35 -0
- package/dist/esm/z-button-filter_5.entry.js +2 -2
- package/dist/esm/z-button.entry.js +35 -0
- package/dist/esm/z-card.entry.js +1 -1
- package/dist/esm/z-combobox.entry.js +2 -2
- package/dist/esm/z-contextual-menu.entry.js +1 -1
- package/dist/esm/z-cookiebar.entry.js +1 -1
- package/dist/esm/z-divider.entry.js +1 -1
- package/dist/esm/z-footer.entry.js +1 -1
- package/dist/esm/z-icon.entry.js +24 -0
- package/dist/esm/z-list_3.entry.js +1 -1
- package/dist/esm/z-menu-dropdown_2.entry.js +2 -2
- 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-tabs.entry.js +1 -1
- package/dist/esm/z-notification.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-pocket_3.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +123 -0
- package/dist/esm/z-slideshow.entry.js +2 -2
- package/dist/esm/z-status-tag.entry.js +1 -1
- package/dist/esm/z-table-body.entry.js +20 -0
- package/dist/esm/z-table-cell.entry.js +32 -0
- package/dist/esm/z-table-empty-box.entry.js +24 -0
- package/dist/esm/{z-registro-table-expanded-row.entry.js → z-table-expanded-row.entry.js} +3 -3
- package/dist/esm/{z-registro-table-footer.entry.js → z-table-footer.entry.js} +4 -4
- package/dist/esm/z-table-head.entry.js +19 -0
- package/dist/esm/z-table-header-row.entry.js +18 -0
- package/dist/esm/z-table-header.entry.js +84 -0
- package/dist/esm/z-table-row.entry.js +39 -0
- package/dist/esm/z-table-sticky-footer.entry.js +15 -0
- package/dist/esm/z-table.entry.js +78 -0
- 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-tooltip.entry.js +1 -1
- package/dist/types/beans/index.d.ts +1 -1
- package/dist/types/{snowflakes/registro-table/z-registro-table → components/z-table/z-table}/index.d.ts +1 -1
- package/dist/types/{snowflakes/registro-table/z-registro-table-body → components/z-table/z-table-body}/index.d.ts +1 -1
- package/dist/types/{snowflakes/registro-table/z-registro-table-cell → components/z-table/z-table-cell}/index.d.ts +1 -1
- package/dist/types/{snowflakes/registro-table/z-registro-table-empty-box → components/z-table/z-table-empty-box}/index.d.ts +1 -1
- package/dist/types/{snowflakes/registro-table/z-registro-table-expanded-row → components/z-table/z-table-expanded-row}/index.d.ts +1 -1
- package/dist/types/{snowflakes/registro-table/z-registro-table-head → components/z-table/z-table-footer}/index.d.ts +1 -1
- package/dist/types/{snowflakes/registro-table/z-registro-table-footer → components/z-table/z-table-head}/index.d.ts +1 -1
- package/dist/types/{snowflakes/registro-table/z-registro-table-header → components/z-table/z-table-header}/index.d.ts +1 -1
- package/dist/types/{snowflakes/registro-table/z-registro-table-header-row → components/z-table/z-table-header-row}/index.d.ts +1 -1
- package/dist/types/{snowflakes/registro-table/z-registro-table-row → components/z-table/z-table-row}/index.d.ts +3 -3
- package/dist/types/{snowflakes/registro-table/z-registro-table-sticky-footer → components/z-table/z-table-sticky-footer}/index.d.ts +1 -1
- package/dist/types/components.d.ts +337 -337
- package/dist/web-components-library/index.esm.js +1 -1
- package/{www/build/p-b13d5b98.entry.js → dist/web-components-library/p-0ba3401a.entry.js} +1 -1
- package/dist/web-components-library/p-0f197b8e.entry.js +1 -0
- package/dist/web-components-library/p-1094e4de.entry.js +1 -0
- package/dist/web-components-library/p-1cf2c6f6.entry.js +1 -0
- package/dist/web-components-library/{p-01d11ec3.entry.js → p-21f3b77f.entry.js} +1 -1
- package/dist/web-components-library/{p-10ad64bc.entry.js → p-2b361a53.entry.js} +1 -1
- package/dist/web-components-library/{p-05f4fa42.entry.js → p-38091d2a.entry.js} +1 -1
- package/dist/web-components-library/{p-35fd465c.entry.js → p-3a5fc4ef.entry.js} +1 -1
- package/dist/web-components-library/{p-f77f6f60.entry.js → p-3ece97c0.entry.js} +1 -1
- package/dist/web-components-library/{p-0e6906af.js → p-45261bde.js} +1 -1
- package/dist/web-components-library/p-4665d79f.entry.js +1 -0
- package/dist/web-components-library/p-4a1404e2.entry.js +1 -0
- package/dist/web-components-library/p-4c1dc891.entry.js +1 -0
- package/dist/web-components-library/p-568b3728.entry.js +1 -0
- package/dist/web-components-library/{p-a82c9a77.entry.js → p-5f8b1594.entry.js} +1 -1
- package/dist/web-components-library/p-6384d72c.entry.js +1 -0
- package/dist/web-components-library/p-662b29d0.entry.js +1 -0
- package/dist/web-components-library/{p-82a59ded.entry.js → p-7c8a52e0.entry.js} +1 -1
- package/dist/web-components-library/{p-880a50a6.entry.js → p-7d7aee65.entry.js} +1 -1
- package/dist/web-components-library/{p-94814f44.entry.js → p-80d6185c.entry.js} +1 -1
- package/dist/web-components-library/{p-9d9dc98f.entry.js → p-8a12e2cd.entry.js} +1 -1
- package/dist/web-components-library/{p-08158e57.entry.js → p-8a9199e8.entry.js} +1 -1
- package/dist/web-components-library/p-8ccf136e.entry.js +1 -0
- package/dist/web-components-library/p-8deddec7.entry.js +1 -0
- package/dist/web-components-library/p-8edb6b65.entry.js +1 -0
- package/dist/web-components-library/{p-b630127d.entry.js → p-9621d591.entry.js} +1 -1
- package/dist/web-components-library/{p-f3354152.entry.js → p-a762915b.entry.js} +1 -1
- package/dist/web-components-library/{p-d227a145.entry.js → p-a93086bc.entry.js} +1 -1
- package/dist/web-components-library/p-aa77d746.entry.js +1 -0
- package/dist/web-components-library/{p-5e2762e6.entry.js → p-ac229c9e.entry.js} +1 -1
- package/dist/web-components-library/{p-18705ae9.entry.js → p-bc7e836a.entry.js} +1 -1
- package/dist/web-components-library/{p-c92c3f20.entry.js → p-be3eeede.entry.js} +1 -1
- package/dist/web-components-library/{p-957f298f.entry.js → p-cf899f93.entry.js} +1 -1
- package/dist/web-components-library/{p-9959e453.entry.js → p-d0c3eac6.entry.js} +1 -1
- package/dist/web-components-library/{p-fce08912.entry.js → p-d1896fdb.entry.js} +1 -1
- package/dist/web-components-library/p-d4c4b90a.entry.js +1 -0
- package/dist/web-components-library/{p-d83eee10.entry.js → p-d8bc4e21.entry.js} +1 -1
- package/dist/web-components-library/{p-34f4e805.entry.js → p-db8f3039.entry.js} +1 -1
- package/dist/web-components-library/p-ddc5aae2.entry.js +1 -0
- package/dist/web-components-library/{p-e29fe790.entry.js → p-de5f9244.entry.js} +1 -1
- package/dist/web-components-library/{p-fc47897e.entry.js → p-df4cf5b2.entry.js} +1 -1
- package/dist/web-components-library/{p-400e26c7.entry.js → p-e6aac31c.entry.js} +1 -1
- package/dist/web-components-library/{p-7e926220.entry.js → p-e8615a83.entry.js} +1 -1
- package/dist/web-components-library/p-ec13a382.entry.js +1 -0
- package/dist/web-components-library/{p-cc6363b9.entry.js → p-ee4fa9a8.entry.js} +1 -1
- package/dist/web-components-library/{p-0455dc43.entry.js → p-ee645fca.entry.js} +1 -1
- package/dist/web-components-library/{p-255c9150.entry.js → p-eface1ff.entry.js} +1 -1
- package/dist/web-components-library/p-f5e1d5a9.entry.js +1 -0
- package/dist/web-components-library/{p-f90dd488.js → p-fcfb7e03.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 +11 -11
- package/react/components.js +12 -12
- 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-b13d5b98.entry.js → www/build/p-0ba3401a.entry.js} +1 -1
- package/www/build/p-0f197b8e.entry.js +1 -0
- package/www/build/p-1094e4de.entry.js +1 -0
- package/www/build/p-1cf2c6f6.entry.js +1 -0
- package/www/build/{p-01d11ec3.entry.js → p-21f3b77f.entry.js} +1 -1
- package/www/build/{p-10ad64bc.entry.js → p-2b361a53.entry.js} +1 -1
- package/www/build/p-331e0cc6.js +1 -0
- package/www/build/{p-05f4fa42.entry.js → p-38091d2a.entry.js} +1 -1
- package/www/build/{p-35fd465c.entry.js → p-3a5fc4ef.entry.js} +1 -1
- package/www/build/{p-f77f6f60.entry.js → p-3ece97c0.entry.js} +1 -1
- package/www/build/{p-0e6906af.js → p-45261bde.js} +1 -1
- package/www/build/p-4665d79f.entry.js +1 -0
- package/www/build/p-4a1404e2.entry.js +1 -0
- package/www/build/p-4c1dc891.entry.js +1 -0
- package/www/build/p-568b3728.entry.js +1 -0
- package/www/build/{p-a82c9a77.entry.js → p-5f8b1594.entry.js} +1 -1
- package/www/build/p-6384d72c.entry.js +1 -0
- package/www/build/p-662b29d0.entry.js +1 -0
- package/www/build/{p-82a59ded.entry.js → p-7c8a52e0.entry.js} +1 -1
- package/www/build/{p-880a50a6.entry.js → p-7d7aee65.entry.js} +1 -1
- package/www/build/{p-94814f44.entry.js → p-80d6185c.entry.js} +1 -1
- package/www/build/{p-9d9dc98f.entry.js → p-8a12e2cd.entry.js} +1 -1
- package/www/build/{p-08158e57.entry.js → p-8a9199e8.entry.js} +1 -1
- package/www/build/p-8ccf136e.entry.js +1 -0
- package/www/build/p-8deddec7.entry.js +1 -0
- package/www/build/p-8edb6b65.entry.js +1 -0
- package/www/build/{p-b630127d.entry.js → p-9621d591.entry.js} +1 -1
- package/www/build/{p-f3354152.entry.js → p-a762915b.entry.js} +1 -1
- package/www/build/{p-d227a145.entry.js → p-a93086bc.entry.js} +1 -1
- package/www/build/p-aa77d746.entry.js +1 -0
- package/www/build/{p-5e2762e6.entry.js → p-ac229c9e.entry.js} +1 -1
- package/www/build/{p-18705ae9.entry.js → p-bc7e836a.entry.js} +1 -1
- package/www/build/{p-c92c3f20.entry.js → p-be3eeede.entry.js} +1 -1
- package/www/build/{p-957f298f.entry.js → p-cf899f93.entry.js} +1 -1
- package/www/build/{p-9959e453.entry.js → p-d0c3eac6.entry.js} +1 -1
- package/www/build/{p-fce08912.entry.js → p-d1896fdb.entry.js} +1 -1
- package/www/build/p-d4c4b90a.entry.js +1 -0
- package/www/build/{p-d83eee10.entry.js → p-d8bc4e21.entry.js} +1 -1
- package/www/build/{p-34f4e805.entry.js → p-db8f3039.entry.js} +1 -1
- package/www/build/p-ddc5aae2.entry.js +1 -0
- package/www/build/{p-e29fe790.entry.js → p-de5f9244.entry.js} +1 -1
- package/www/build/{p-fc47897e.entry.js → p-df4cf5b2.entry.js} +1 -1
- package/www/build/{p-400e26c7.entry.js → p-e6aac31c.entry.js} +1 -1
- package/www/build/{p-7e926220.entry.js → p-e8615a83.entry.js} +1 -1
- package/www/build/p-ec13a382.entry.js +1 -0
- package/www/build/{p-cc6363b9.entry.js → p-ee4fa9a8.entry.js} +1 -1
- package/www/build/{p-0455dc43.entry.js → p-ee645fca.entry.js} +1 -1
- package/www/build/{p-255c9150.entry.js → p-eface1ff.entry.js} +1 -1
- package/www/build/p-f5e1d5a9.entry.js +1 -0
- package/www/build/{p-f90dd488.js → p-fcfb7e03.js} +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/cjs/z-body_14.cjs.entry.js +0 -513
- package/dist/collection/snowflakes/registro-table/z-registro-table-header-row/styles.css +0 -13
- package/dist/collection/snowflakes/registro-table/z-registro-table-row/styles.css +0 -54
- package/dist/esm/z-body_14.entry.js +0 -496
- package/dist/web-components-library/p-017370c7.entry.js +0 -1
- package/dist/web-components-library/p-0fe60379.entry.js +0 -1
- package/dist/web-components-library/p-5fa8dc13.entry.js +0 -1
- package/dist/web-components-library/p-a15f8b52.entry.js +0 -1
- package/dist/web-components-library/p-cdcf738e.entry.js +0 -1
- package/www/build/p-017370c7.entry.js +0 -1
- package/www/build/p-0fe60379.entry.js +0 -1
- package/www/build/p-5fa8dc13.entry.js +0 -1
- package/www/build/p-a15f8b52.entry.js +0 -1
- package/www/build/p-cdcf738e.entry.js +0 -1
- package/www/build/p-e1879b27.js +0 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-fa9e549c.js';
|
|
2
|
+
import { i as ZTableRowExpandedType } from './index-56ab7a69.js';
|
|
3
|
+
|
|
4
|
+
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-tale-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}";
|
|
5
|
+
|
|
6
|
+
const ZTableRow = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.expand = createEvent(this, "expand", 7);
|
|
10
|
+
this.expandedType = ZTableRowExpandedType.none;
|
|
11
|
+
this.expanded = false;
|
|
12
|
+
}
|
|
13
|
+
emitOnExpand() {
|
|
14
|
+
this.expand.emit({ expanded: this.expanded });
|
|
15
|
+
}
|
|
16
|
+
handleExpand() {
|
|
17
|
+
this.expanded = !this.expanded;
|
|
18
|
+
this.emitOnExpand();
|
|
19
|
+
}
|
|
20
|
+
renderExpandButton() {
|
|
21
|
+
if (this.expandedType == ZTableRowExpandedType.expandable) {
|
|
22
|
+
return (h("z-table-cell", { style: { borderRight: "none" } }, h("z-icon", { name: this.expanded ? "minus-circled" : "plus-circled" })));
|
|
23
|
+
}
|
|
24
|
+
return (h("z-table-cell", { style: { borderRight: "none" } }, h("div", { class: "z-icon-placeholder" })));
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
return (h(Host, { role: "row", expanded: this.expanded, onClick: (event) => {
|
|
28
|
+
const contextualMenuClick = event.target.nodeName === 'Z-CONTEXTUAL-MENU';
|
|
29
|
+
const isExpandable = this.expandedType === ZTableRowExpandedType.expandable;
|
|
30
|
+
if (isExpandable && !contextualMenuClick) {
|
|
31
|
+
this.handleExpand();
|
|
32
|
+
}
|
|
33
|
+
} }, this.expandedType !== ZTableRowExpandedType.none &&
|
|
34
|
+
this.renderExpandButton(), h("slot", null)));
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
ZTableRow.style = stylesCss;
|
|
38
|
+
|
|
39
|
+
export { ZTableRow as z_table_row };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-fa9e549c.js';
|
|
2
|
+
|
|
3
|
+
const stylesCss = ".sc-z-table-sticky-footer-h{display:block;position:sticky;left:0;padding:var(--basex2);background-color:var(--bg-white);border-style:solid;border-color:var(--gray200);border-width:var(--border-size-small) 0 var(--border-base);font-weight:var(--font-rg)}";
|
|
4
|
+
|
|
5
|
+
const ZTableStickyFooter = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return (h("slot", null));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
ZTableStickyFooter.style = stylesCss;
|
|
14
|
+
|
|
15
|
+
export { ZTableStickyFooter as z_table_sticky_footer };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-fa9e549c.js';
|
|
2
|
+
import { B as ButtonVariantEnum, b as ButtonSizeEnum } from './index-56ab7a69.js';
|
|
3
|
+
import { m as mobileBreakpoint } from './breakpoints-c386984e.js';
|
|
4
|
+
|
|
5
|
+
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}}";
|
|
6
|
+
|
|
7
|
+
const ZTable = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
registerInstance(this, hostRef);
|
|
10
|
+
this.callToAction = createEvent(this, "callToAction", 7);
|
|
11
|
+
this.callToActionTwo = createEvent(this, "callToActionTwo", 7);
|
|
12
|
+
/** Error message */
|
|
13
|
+
this.errorMessage = "Siamo spiacenti, non siamo riusciti a caricare il contenuto richiesto";
|
|
14
|
+
/** Sets table with border */
|
|
15
|
+
this.bordered = false;
|
|
16
|
+
/** Sets first column sticky */
|
|
17
|
+
this.columnSticky = false;
|
|
18
|
+
/** Sets empty table */
|
|
19
|
+
this.empty = false;
|
|
20
|
+
/** Set error status */
|
|
21
|
+
this.error = false;
|
|
22
|
+
/** Sets header sticky */
|
|
23
|
+
this.headerSticky = false;
|
|
24
|
+
/** Set message */
|
|
25
|
+
this.message = "Siamo spiacenti, al momento non sono presenti dati da visualizzare";
|
|
26
|
+
/** Set subtitle */
|
|
27
|
+
this.subtitle = "";
|
|
28
|
+
}
|
|
29
|
+
handleResize() {
|
|
30
|
+
this.isMobile = window.innerWidth <= mobileBreakpoint;
|
|
31
|
+
}
|
|
32
|
+
handleOrientationChange() {
|
|
33
|
+
this.isMobile = screen.width <= mobileBreakpoint;
|
|
34
|
+
}
|
|
35
|
+
componentWillLoad() {
|
|
36
|
+
var _a;
|
|
37
|
+
this.isMobile = window.innerWidth <= mobileBreakpoint;
|
|
38
|
+
const tableBody = this.host.querySelector('[slot="table-body"]');
|
|
39
|
+
this.hasTableBody = !!((_a = tableBody === null || tableBody === void 0 ? void 0 : tableBody.children) === null || _a === void 0 ? void 0 : _a.length);
|
|
40
|
+
if (!!tableBody && !this.hasTableBody) {
|
|
41
|
+
tableBody.remove();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
componentWillRender() {
|
|
45
|
+
this.host.setAttribute("role", "table");
|
|
46
|
+
}
|
|
47
|
+
renderError(tableClass) {
|
|
48
|
+
const minHeight = this.lines ? `calc(40px * ${this.lines})` : "auto";
|
|
49
|
+
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" })), h("z-table-error", null, h("div", { class: "error-content", style: { minHeight } }, h("slot", { name: "error-image" }), h("div", { class: "text" }, h("z-body", { class: "error-message", level: 3, variant: "semibold" }, this.errorMessage), h("slot", { name: "error-action" }))))));
|
|
50
|
+
}
|
|
51
|
+
renderEmpty(tableClass) {
|
|
52
|
+
const buttonSize = this.isMobile
|
|
53
|
+
? ButtonSizeEnum.small
|
|
54
|
+
: ButtonSizeEnum.big;
|
|
55
|
+
const tableContentClass = `${!!this.hasTableBody ? "table-content" : ""}`;
|
|
56
|
+
if (this.hasTableBody) {
|
|
57
|
+
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" }), h("div", { class: tableContentClass }, h("slot", { name: "table-body" }), h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (h("z-button", { slot: "cta1", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (h("z-button", { slot: "cta2", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))))));
|
|
58
|
+
}
|
|
59
|
+
return (h(Host, null, h("div", { class: tableClass }, h("slot", { name: "table-header" })), h("z-table-empty-box", { class: this.bordered && "bordered", message: this.message, subtitle: this.subtitle }, !!this.callToActionLabel && (h("z-button", { slot: "cta1", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToAction.emit(), size: buttonSize }, this.callToActionLabel)), !!this.callToActionTwoLabel && (h("z-button", { slot: "cta2", variant: ButtonVariantEnum.tertiary, onClick: () => this.callToActionTwo.emit(), size: buttonSize }, this.callToActionTwoLabel)))));
|
|
60
|
+
}
|
|
61
|
+
render() {
|
|
62
|
+
const tableClass = `table ${this.empty ? "table-empty" : ""} ${this.bordered ? "table-bordered" : ""}
|
|
63
|
+
${this.columnSticky ? "table-column-sticky" : ""}
|
|
64
|
+
${this.headerSticky ? "table-header-sticky" : ""}`;
|
|
65
|
+
if (this.error) {
|
|
66
|
+
return this.renderError(tableClass);
|
|
67
|
+
}
|
|
68
|
+
if (this.empty) {
|
|
69
|
+
return this.renderEmpty(tableClass);
|
|
70
|
+
}
|
|
71
|
+
return (h(Host, null, h("div", { class: tableClass }, h("slot", null)), h("slot", { name: "sticky-footer" })));
|
|
72
|
+
}
|
|
73
|
+
static get assetsDirs() { return ["assets"]; }
|
|
74
|
+
get host() { return getElement(this); }
|
|
75
|
+
};
|
|
76
|
+
ZTable.style = stylesCss;
|
|
77
|
+
|
|
78
|
+
export { ZTable as z_table };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-fa9e549c.js';
|
|
2
|
-
import {
|
|
2
|
+
import { l as ToastNotificationPositionsEnum } from './index-56ab7a69.js';
|
|
3
3
|
|
|
4
4
|
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}}";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-fa9e549c.js';
|
|
2
|
-
import {
|
|
2
|
+
import { j as ToastNotificationTransitionsEnum } from './index-56ab7a69.js';
|
|
3
3
|
import { m as mobileBreakpoint } from './breakpoints-c386984e.js';
|
|
4
4
|
import { h as hammer } from './hammer-501342a9.js';
|
|
5
5
|
import './_commonjsHelpers-8b28c6fa.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-fa9e549c.js';
|
|
2
|
-
import {
|
|
2
|
+
import { f as TooltipPosition } from './index-56ab7a69.js';
|
|
3
3
|
|
|
4
4
|
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}";
|
|
5
5
|
|
|
@@ -326,7 +326,7 @@ export declare enum ToastNotificationPositionsEnum {
|
|
|
326
326
|
bottomLeft = "bottom-left",
|
|
327
327
|
bottomCentre = "bottom-centre"
|
|
328
328
|
}
|
|
329
|
-
export declare enum
|
|
329
|
+
export declare enum ZTableRowExpandedType {
|
|
330
330
|
expandable = "expandable",
|
|
331
331
|
padding = "padding",
|
|
332
332
|
none = "none"
|
|
@@ -3,7 +3,7 @@ import { EventEmitter } from "../../../stencil-public-runtime";
|
|
|
3
3
|
* @slot - table elements
|
|
4
4
|
* @slot sticky-footer - set the content of the sticky footer
|
|
5
5
|
*/
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class ZTable {
|
|
7
7
|
host: HTMLElement;
|
|
8
8
|
/** Number of lines of element */
|
|
9
9
|
lines?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
-
import {
|
|
3
|
-
export declare class
|
|
4
|
-
expandedType:
|
|
2
|
+
import { ZTableRowExpandedType } from "../../../beans";
|
|
3
|
+
export declare class ZTableRow {
|
|
4
|
+
expandedType: ZTableRowExpandedType;
|
|
5
5
|
expanded: boolean;
|
|
6
6
|
expand: EventEmitter;
|
|
7
7
|
emitOnExpand(): void;
|